@ozdao/prometheus-framework 0.2.252 โ†’ 0.2.254

Sign up to get free protection for your applications and to get access to all the features.
Files changed (310) hide show
  1. package/dist/auth.server.js +298 -14
  2. package/dist/auth.server.mjs +298 -14
  3. package/dist/builder.js +4 -4
  4. package/dist/builder.mjs +4 -4
  5. package/dist/chats.server.js +110 -0
  6. package/dist/chats.server.mjs +111 -0
  7. package/dist/community.server.js +38 -21
  8. package/dist/community.server.mjs +38 -21
  9. package/dist/events.server.js +38 -18
  10. package/dist/events.server.mjs +38 -17
  11. package/dist/files.server.js +12 -3
  12. package/dist/files.server.mjs +12 -3
  13. package/dist/gallery.server.js +17 -4
  14. package/dist/gallery.server.mjs +17 -4
  15. package/dist/organizations.server.js +43 -26
  16. package/dist/organizations.server.mjs +43 -26
  17. package/dist/products.server.js +49 -23
  18. package/dist/products.server.mjs +49 -22
  19. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +15 -3
  20. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs.map +1 -1
  21. package/dist/prometheus-framework/src/modules/auth/auth.client.js +16 -4
  22. package/dist/prometheus-framework/src/modules/auth/auth.client.js.map +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.cjs +95 -0
  24. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.cjs.map +1 -0
  25. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.js +95 -0
  26. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.js.map +1 -0
  27. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs +284 -0
  28. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -0
  29. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js +284 -0
  30. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -0
  31. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.cjs +2 -0
  32. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.cjs.map +1 -0
  33. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.js +2 -0
  34. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.js.map +1 -0
  35. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +85 -0
  36. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs.map +1 -0
  37. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +85 -0
  38. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js.map +1 -0
  39. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +176 -0
  40. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs.map +1 -0
  41. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js +176 -0
  42. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -0
  43. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs +2 -0
  44. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs.map +1 -0
  45. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.js +2 -0
  46. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.js.map +1 -0
  47. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs +114 -0
  48. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs.map +1 -0
  49. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.js +114 -0
  50. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.js.map +1 -0
  51. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.cjs +72 -0
  52. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.cjs.map +1 -0
  53. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.js +72 -0
  54. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.js.map +1 -0
  55. package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs +97 -0
  56. package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs.map +1 -0
  57. package/dist/prometheus-framework/src/modules/auth/views/router/users.js +97 -0
  58. package/dist/prometheus-framework/src/modules/auth/views/router/users.js.map +1 -0
  59. package/dist/prometheus-framework/src/modules/auth/views/store/users.cjs +95 -0
  60. package/dist/prometheus-framework/src/modules/auth/views/store/users.cjs.map +1 -0
  61. package/dist/prometheus-framework/src/modules/auth/views/store/users.js +95 -0
  62. package/dist/prometheus-framework/src/modules/auth/views/store/users.js.map +1 -0
  63. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs +32 -2
  64. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs.map +1 -1
  65. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js +32 -2
  66. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js.map +1 -1
  67. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +2 -2
  68. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs.map +1 -1
  69. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +2 -2
  70. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js.map +1 -1
  71. package/dist/prometheus-framework/src/modules/chats/chats.client.cjs +31 -0
  72. package/dist/prometheus-framework/src/modules/chats/chats.client.cjs.map +1 -0
  73. package/dist/prometheus-framework/src/modules/chats/chats.client.js +31 -0
  74. package/dist/prometheus-framework/src/modules/chats/chats.client.js.map +1 -0
  75. package/dist/prometheus-framework/src/modules/community/community.client.cjs +42 -7
  76. package/dist/prometheus-framework/src/modules/community/community.client.cjs.map +1 -1
  77. package/dist/prometheus-framework/src/modules/community/community.client.js +59 -24
  78. package/dist/prometheus-framework/src/modules/community/community.client.js.map +1 -1
  79. package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs +68 -70
  80. package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs.map +1 -1
  81. package/dist/prometheus-framework/src/modules/community/router/blogposts.js +68 -70
  82. package/dist/prometheus-framework/src/modules/community/router/blogposts.js.map +1 -1
  83. package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs +26 -3
  84. package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs.map +1 -1
  85. package/dist/prometheus-framework/src/modules/gallery/gallery.client.js +27 -4
  86. package/dist/prometheus-framework/src/modules/gallery/gallery.client.js.map +1 -1
  87. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.cjs +2 -2
  88. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.cjs.map +1 -1
  89. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.js +2 -2
  90. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.js.map +1 -1
  91. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs.map +1 -1
  93. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  94. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
  95. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs.map +1 -1
  97. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  98. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
  99. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +2 -2
  100. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs.map +1 -1
  101. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
  102. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js.map +1 -1
  103. package/dist/prometheus-framework/src/modules/orders/orders.client.cjs +4 -1
  104. package/dist/prometheus-framework/src/modules/orders/orders.client.cjs.map +1 -1
  105. package/dist/prometheus-framework/src/modules/orders/orders.client.js +4 -1
  106. package/dist/prometheus-framework/src/modules/orders/orders.client.js.map +1 -1
  107. package/dist/prometheus-framework/src/modules/orders/store/testimonials.cjs +63 -0
  108. package/dist/prometheus-framework/src/modules/orders/store/testimonials.cjs.map +1 -0
  109. package/dist/prometheus-framework/src/modules/orders/store/testimonials.js +63 -0
  110. package/dist/prometheus-framework/src/modules/orders/store/testimonials.js.map +1 -0
  111. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +2 -2
  112. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs.map +1 -1
  113. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +2 -2
  114. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js.map +1 -1
  115. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs.map +1 -1
  117. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  118. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
  119. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs.map +1 -1
  121. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
  122. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
  123. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs.map +1 -1
  125. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  126. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +1 -1
  127. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs.map +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  130. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
  131. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
  132. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +2 -2
  134. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs.map +1 -1
  135. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  136. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js.map +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +60 -11
  138. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs.map +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +95 -46
  140. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js.map +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +6 -10
  142. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +8 -12
  144. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
  145. package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +500 -500
  146. package/dist/prometheus-framework/src/modules/pages/pages.client.js +500 -500
  147. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs +179 -0
  148. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs.map +1 -0
  149. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js +179 -0
  150. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js.map +1 -0
  151. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs +64 -0
  152. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs.map +1 -0
  153. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js +64 -0
  154. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js.map +1 -0
  155. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +2 -2
  156. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +2 -2
  157. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +2 -2
  158. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
  159. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +2 -2
  160. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
  161. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs.map +1 -1
  163. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  164. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
  165. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs +156 -0
  166. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs.map +1 -0
  167. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js +157 -0
  168. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js.map +1 -0
  169. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs.map +1 -1
  171. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +1 -1
  172. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js.map +1 -1
  173. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs.map +1 -1
  175. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
  176. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js.map +1 -1
  177. package/dist/prometheus-framework/src/modules/products/products.client.cjs +72 -7
  178. package/dist/prometheus-framework/src/modules/products/products.client.cjs.map +1 -1
  179. package/dist/prometheus-framework/src/modules/products/products.client.js +114 -49
  180. package/dist/prometheus-framework/src/modules/products/products.client.js.map +1 -1
  181. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.cjs +46 -0
  182. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.cjs.map +1 -0
  183. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.js +46 -0
  184. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.js.map +1 -0
  185. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +79 -36
  186. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs.map +1 -1
  187. package/dist/prometheus-framework/src/modules/products/router/products.router.js +78 -35
  188. package/dist/prometheus-framework/src/modules/products/router/products.router.js.map +1 -1
  189. package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs +57 -0
  190. package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs.map +1 -0
  191. package/dist/prometheus-framework/src/modules/products/store/marketplace.js +57 -0
  192. package/dist/prometheus-framework/src/modules/products/store/marketplace.js.map +1 -0
  193. package/dist/prometheus-framework/src/modules/reports/reports.client.cjs +21 -2
  194. package/dist/prometheus-framework/src/modules/reports/reports.client.cjs.map +1 -1
  195. package/dist/prometheus-framework/src/modules/reports/reports.client.js +20 -1
  196. package/dist/prometheus-framework/src/modules/reports/reports.client.js.map +1 -1
  197. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs.map +1 -1
  199. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  200. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js.map +1 -1
  201. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +2 -2
  202. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs.map +1 -1
  203. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +2 -2
  204. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js.map +1 -1
  205. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs +2 -2
  206. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs.map +1 -1
  207. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js +2 -2
  208. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js.map +1 -1
  209. package/dist/reports.server.js +21 -8
  210. package/dist/reports.server.mjs +21 -8
  211. package/package.json +9 -1
  212. package/src/builder/webpack/webpack.config.client.js +2 -2
  213. package/src/builder/webpack/webpack.config.server.js +1 -1
  214. package/src/builder/webpack/webpack.config.spa.js +1 -1
  215. package/src/builder/webpack/webpack.config.ssr.js +1 -1
  216. package/src/modules/auth/auth.client.js +16 -3
  217. package/src/modules/auth/auth.server.js +22 -1
  218. package/src/modules/{users โ†’ auth/controllers}/routes/users.routes.js +1 -1
  219. package/src/modules/auth/controllers/services/auth.service.js +0 -1
  220. package/src/modules/{users โ†’ auth/views}/components/pages/Profile.vue +1 -1
  221. package/src/modules/{users โ†’ auth/views}/components/pages/ProfileEdit.vue +2 -2
  222. package/src/modules/{users โ†’ auth/views}/components/sections/FeaturedUsers.vue +2 -2
  223. package/src/modules/auth/views/router/users.js +79 -0
  224. package/src/modules/backoffice/backoffice.client.js +53 -11
  225. package/src/modules/backoffice/router/backoffice.js +29 -2
  226. package/src/modules/chats/chats.client.js +48 -0
  227. package/src/modules/chats/chats.server.js +32 -0
  228. package/src/modules/community/community.client.js +56 -10
  229. package/src/modules/community/community.server.js +35 -14
  230. package/src/modules/community/models/comment.model.js +7 -7
  231. package/src/modules/community/models/reaction.model.js +5 -5
  232. package/src/modules/community/router/blogposts.js +55 -57
  233. package/src/modules/events/events.server.js +37 -16
  234. package/src/modules/events/models/ticket.model.js +6 -6
  235. package/src/modules/files/files.server.js +17 -7
  236. package/src/modules/gallery/gallery.client.js +44 -8
  237. package/src/modules/gallery/gallery.server.js +28 -9
  238. package/src/modules/gallery/router/gallery.router.js +2 -2
  239. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  240. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +1 -1
  241. package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
  242. package/src/modules/orders/orders.client.js +4 -1
  243. package/src/modules/orders/orders.server.js +1 -0
  244. package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -1
  245. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  246. package/src/modules/organizations/components/pages/Department.vue +1 -1
  247. package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
  248. package/src/modules/organizations/components/pages/Members.vue +1 -1
  249. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  250. package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
  251. package/src/modules/organizations/controllers/organizations.controller.js +0 -2
  252. package/src/modules/organizations/models/department.model.js +7 -7
  253. package/src/modules/organizations/models/membership.model.js +5 -5
  254. package/src/modules/organizations/organizations.client.js +71 -16
  255. package/src/modules/organizations/organizations.server.js +43 -18
  256. package/src/modules/organizations/router/organizations.js +6 -13
  257. package/src/modules/{marketplace โ†’ products}/components/layouts/Marketplace.vue +20 -19
  258. package/src/modules/{marketplace โ†’ products}/components/pages/Catalog.vue +5 -5
  259. package/src/modules/products/components/pages/Products.vue +2 -2
  260. package/src/modules/products/components/sections/FilterProducts.vue +1 -1
  261. package/src/modules/{marketplace โ†’ products}/components/sections/Filters.vue +12 -15
  262. package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
  263. package/src/modules/products/components/sections/PopularProducts.vue +1 -1
  264. package/src/modules/products/models/category.model.js +3 -3
  265. package/src/modules/products/models/product.model.js +7 -7
  266. package/src/modules/products/products.client.js +93 -25
  267. package/src/modules/products/products.server.js +47 -16
  268. package/src/modules/products/router/marketplace.router.js +38 -0
  269. package/src/modules/products/router/products.router.js +72 -32
  270. package/src/modules/reports/models/report.model.js +4 -4
  271. package/src/modules/reports/reports.client.js +35 -14
  272. package/src/modules/reports/reports.server.js +27 -8
  273. package/src/modules/spots/components/layouts/Spots.vue +1 -1
  274. package/src/modules/spots/components/pages/Map.vue +1 -1
  275. package/src/modules/spots/components/pages/Spot.vue +1 -1
  276. package/src/modules/backoffice/router/admin.js +0 -51
  277. package/src/modules/landing/components/pages/404.vue +0 -3
  278. package/src/modules/landing/components/pages/Farming.vue +0 -226
  279. package/src/modules/landing/components/pages/Governance.vue +0 -144
  280. package/src/modules/landing/components/pages/Home.vue +0 -51
  281. package/src/modules/landing/components/pages/Hotel.vue +0 -43
  282. package/src/modules/landing/router/landing.js +0 -39
  283. package/src/modules/legal/components/pages/Legal.vue +0 -62
  284. package/src/modules/legal/components/pages/legal/Cookies.vue +0 -370
  285. package/src/modules/legal/components/pages/legal/EULA.vue +0 -2145
  286. package/src/modules/legal/components/pages/legal/Privacy.vue +0 -4284
  287. package/src/modules/legal/components/pages/legal/Terms.vue +0 -1283
  288. package/src/modules/legal/legal.client.js +0 -18
  289. package/src/modules/legal/router/legal.js +0 -59
  290. package/src/modules/marketplace/router/marketplace.js +0 -54
  291. package/src/modules/users/router/users.js +0 -90
  292. package/src/modules/users/users.client.js +0 -22
  293. package/src/modules/users/users.server.js +0 -13
  294. /package/src/modules/{users โ†’ auth/controllers}/middlewares/visitor.logger.js +0 -0
  295. /package/src/modules/{users/controllers/users.controller.js โ†’ auth/controllers/services/users.service.js} +0 -0
  296. /package/src/modules/{users โ†’ auth}/models/request.model.js +0 -0
  297. /package/src/modules/{users โ†’ auth}/models/user.model.js +0 -0
  298. /package/src/modules/{users โ†’ auth}/models/visitor.model.js +0 -0
  299. /package/src/modules/{users โ†’ auth/views}/components/blocks/CardUser.vue +0 -0
  300. /package/src/modules/{users โ†’ auth/views}/components/pages/ProfileBlogposts.vue +0 -0
  301. /package/src/modules/{users โ†’ auth/views}/components/pages/ProfileComments.vue +0 -0
  302. /package/src/modules/{users โ†’ auth/views}/components/pages/ProfileLikes.vue +0 -0
  303. /package/src/modules/{users โ†’ auth/views}/components/sections/ProfileCompletion.vue +0 -0
  304. /package/src/modules/{users โ†’ auth/views}/router/account.js +0 -0
  305. /package/src/modules/{users โ†’ auth/views}/store/users.js +0 -0
  306. /package/src/modules/{projects/controller โ†’ governance/controllers/factories}/projects.controller.js +0 -0
  307. /package/src/modules/{projects โ†’ governance/controllers}/routes/projects.routes.js +0 -0
  308. /package/src/modules/{projects โ†’ governance}/models/project.model.js +0 -0
  309. /package/src/modules/{projects โ†’ governance/views}/store/projects.js +0 -0
  310. /package/src/modules/{marketplace โ†’ products}/store/marketplace.js +0 -0
@@ -1,6 +1,8 @@
1
1
  import * as auth from "./views/store/auth.js";
2
2
  import * as twofa from "./views/store/twofa.js";
3
+ import * as users from "./views/store/users.js";
3
4
  import auth$1 from "./views/router/auth.js";
5
+ import users$1 from "./views/router/users.js";
4
6
  import * as auth_validation from "./views/middlewares/auth.validation.js";
5
7
  import _sfc_main from "./views/components/layouts/Auth.vue.js";
6
8
  import _sfc_main$1 from "./views/components/pages/EnterCode.vue.js";
@@ -9,22 +11,29 @@ import _sfc_main$3 from "./views/components/pages/EnterPassword.vue.js";
9
11
  import _sfc_main$4 from "./views/components/pages/ResetPassword.vue.js";
10
12
  import _sfc_main$5 from "./views/components/pages/SignUp.vue.js";
11
13
  import _sfc_main$6 from "./views/components/pages/SignIn.vue.js";
12
- import _sfc_main$7 from "./views/components/sections/SliderFeatures.vue.js";
14
+ import _sfc_main$7 from "./views/components/pages/Profile.vue.js";
15
+ import _sfc_main$8 from "./views/components/pages/ProfileEdit.vue.js";
16
+ import _sfc_main$9 from "./views/components/sections/SliderFeatures.vue.js";
17
+ import _sfc_main$a from "./views/components/sections/FeaturedUsers.vue.js";
13
18
  function initializeAuth(app, store, router, options = {}) {
14
19
  const route = options.route || "Home";
15
20
  router.addRoute(route, auth$1);
21
+ router.addRoute(route, users$1);
16
22
  store.addStore("auth", auth);
17
23
  store.addStore("twofa", twofa);
24
+ store.addStore("users", users);
18
25
  }
19
26
  const ModuleAuth = {
20
27
  initialize: initializeAuth,
21
28
  views: {
22
29
  store: {
23
30
  storeAuth: auth,
24
- storeTwofa: twofa
31
+ storeTwofa: twofa,
32
+ storeUsers: users
25
33
  },
26
34
  router: {
27
- routerAuth: auth$1
35
+ routerAuth: auth$1,
36
+ routerUsers: users$1
28
37
  },
29
38
  middlewares: {
30
39
  validationAuth: auth_validation
@@ -39,8 +48,11 @@ const ModuleAuth = {
39
48
  ResetPassword: _sfc_main$4,
40
49
  SignUp: _sfc_main$5,
41
50
  SignIn: _sfc_main$6,
51
+ Profile: _sfc_main$7,
52
+ ProfileEdit: _sfc_main$8,
42
53
  // Sections
43
- SliderFeatures: _sfc_main$7
54
+ SliderFeatures: _sfc_main$9,
55
+ FeaturedUsers: _sfc_main$a
44
56
  }
45
57
  }
46
58
  };
@@ -1 +1 @@
1
- {"version":3,"file":"auth.client.js","sources":["../../../../../src/modules/auth/auth.client.js"],"sourcesContent":["// Store\nimport * as storeAuth from './views/store/auth.js';\nimport * as storeTwofa from './views/store/twofa.js';\n\n// Router\nimport routerAuth from './views/router/auth.js';\n\n// Middlewares\nimport * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\n// Views\nimport Auth from './views/components/layouts/Auth.vue';\nimport EnterCode from './views/components/pages/EnterCode.vue';\nimport Invite from './views/components/pages/Invite.vue';\nimport EnterPassword from './views/components/pages/EnterPassword.vue';\nimport ResetPassword from './views/components/pages/ResetPassword.vue';\nimport SignUp from './views/components/pages/SignUp.vue';\nimport SignIn from './views/components/pages/SignIn.vue';\n\n// Importing sections components\nimport SliderFeatures from './views/components/sections/SliderFeatures.vue';\n\n// ะŸั€ะธะผะตั€ ั„ัƒะฝะบั†ะธะธ ะธะฝะธั†ะธะฐะปะธะทะฐั†ะธะธ ะดะปั ะผะพะดัƒะปั ะฐัƒั‚ะตะฝั‚ะธั„ะธะบะฐั†ะธะธ\nfunction initializeAuth(app, store, router, options = {}) {\n const route = options.route || 'Home';\n \n router.addRoute(route, routerAuth);\n \n store.addStore('auth', storeAuth);\n store.addStore('twofa', storeTwofa);\n}\n\nconst ModuleAuth = {\n initialize: initializeAuth,\n views: {\n store: {\n storeAuth,\n storeTwofa\n },\n router: {\n routerAuth\n },\n middlewares: {\n validationAuth\n },\n components: {\n // Layout\n Auth,\n // Pages\n EnterCode,\n Invite,\n EnterPassword,\n ResetPassword,\n SignUp,\n SignIn,\n // Sections\n SliderFeatures\n }\n }\n}\n\nexport default ModuleAuth"],"names":["routerAuth","storeAuth","storeTwofa","validationAuth","Auth","EnterCode","Invite","EnterPassword","ResetPassword","SignUp","SignIn","SliderFeatures"],"mappings":";;;;;;;;;;;;AAuBA,SAAS,eAAe,KAAK,OAAO,QAAQ,UAAU,CAAA,GAAI;AACxD,QAAM,QAAQ,QAAQ,SAAS;AAE/B,SAAO,SAAS,OAAOA,MAAU;AAEjC,QAAM,SAAS,QAAQC,IAAS;AAChC,QAAM,SAAS,SAASC,KAAU;AACpC;AAEK,MAAC,aAAa;AAAA,EACjB,YAAY;AAAA,EACZ,OAAO;AAAA,IACL,OAAO;AAAA,MACX,WAAMD;AAAAA,MACN,YAAMC;AAAAA,IACD;AAAA,IACD,QAAQ;AAAA,MACZ,YAAMF;AAAAA,IACD;AAAA,IACD,aAAa;AAAA,MACjB,gBAAMG;AAAAA,IACD;AAAA,IACD,YAAY;AAAA;AAAA,MAEhB,MAAMC;AAAAA;AAAAA,MAEN,WAAMC;AAAAA,MACN,QAAMC;AAAAA,MACN,eAAMC;AAAAA,MACN,eAAMC;AAAAA,MACN,QAAMC;AAAAA,MACN,QAAMC;AAAAA;AAAAA,MAEN,gBAAMC;AAAAA,IACD;AAAA,EACF;AACH;"}
1
+ {"version":3,"file":"auth.client.js","sources":["../../../../../src/modules/auth/auth.client.js"],"sourcesContent":["// Store\nimport * as storeAuth from './views/store/auth.js';\nimport * as storeTwofa from './views/store/twofa.js';\nimport * as storeUsers from './views/store/users.js';\n\n// Router\nimport routerAuth from './views/router/auth.js';\nimport routerUsers from './views/router/users.js';\n\n// Middlewares\nimport * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\n// Views\nimport Auth from './views/components/layouts/Auth.vue';\nimport EnterCode from './views/components/pages/EnterCode.vue';\nimport Invite from './views/components/pages/Invite.vue';\nimport EnterPassword from './views/components/pages/EnterPassword.vue';\nimport ResetPassword from './views/components/pages/ResetPassword.vue';\nimport SignUp from './views/components/pages/SignUp.vue';\nimport SignIn from './views/components/pages/SignIn.vue';\nimport Profile from './views/components/pages/Profile.vue';\nimport ProfileEdit from './views/components/pages/ProfileEdit.vue'\n\n// Importing sections components\nimport SliderFeatures from './views/components/sections/SliderFeatures.vue';\nimport FeaturedUsers from './views/components/sections/FeaturedUsers.vue';\n\n// ะŸั€ะธะผะตั€ ั„ัƒะฝะบั†ะธะธ ะธะฝะธั†ะธะฐะปะธะทะฐั†ะธะธ ะดะปั ะผะพะดัƒะปั ะฐัƒั‚ะตะฝั‚ะธั„ะธะบะฐั†ะธะธ\nfunction initializeAuth(app, store, router, options = {}) {\n const route = options.route || 'Home';\n \n router.addRoute(route, routerAuth);\n router.addRoute(route, routerUsers);\n \n store.addStore('auth', storeAuth);\n store.addStore('twofa', storeTwofa);\n store.addStore('users', storeUsers);\n \n}\n\nconst ModuleAuth = {\n initialize: initializeAuth,\n views: {\n store: {\n storeAuth,\n storeTwofa,\n storeUsers\n },\n router: {\n routerAuth,\n routerUsers\n },\n middlewares: {\n validationAuth\n },\n components: {\n // Layout\n Auth,\n // Pages\n EnterCode,\n Invite,\n EnterPassword,\n ResetPassword,\n SignUp,\n SignIn,\n Profile,\n ProfileEdit,\n // Sections\n SliderFeatures,\n FeaturedUsers\n }\n }\n}\n\nexport default ModuleAuth"],"names":["routerAuth","routerUsers","storeAuth","storeTwofa","storeUsers","validationAuth","Auth","EnterCode","Invite","EnterPassword","ResetPassword","SignUp","SignIn","Profile","ProfileEdit","SliderFeatures","FeaturedUsers"],"mappings":";;;;;;;;;;;;;;;;;AA4BA,SAAS,eAAe,KAAK,OAAO,QAAQ,UAAU,CAAA,GAAI;AACxD,QAAM,QAAQ,QAAQ,SAAS;AAE/B,SAAO,SAAS,OAAOA,MAAU;AACjC,SAAO,SAAS,OAAOC,OAAW;AAElC,QAAM,SAAS,QAAQC,IAAS;AAChC,QAAM,SAAS,SAASC,KAAU;AAClC,QAAM,SAAS,SAASC,KAAU;AAEpC;AAEK,MAAC,aAAa;AAAA,EACjB,YAAY;AAAA,EACZ,OAAO;AAAA,IACL,OAAO;AAAA,MACX,WAAMF;AAAAA,MACN,YAAMC;AAAAA,MACN,YAAMC;AAAAA,IACD;AAAA,IACD,QAAQ;AAAA,MACZ,YAAMJ;AAAAA,MACN,aAAMC;AAAAA,IACD;AAAA,IACD,aAAa;AAAA,MACjB,gBAAMI;AAAAA,IACD;AAAA,IACD,YAAY;AAAA;AAAA,MAEhB,MAAMC;AAAAA;AAAAA,MAEN,WAAMC;AAAAA,MACN,QAAMC;AAAAA,MACN,eAAMC;AAAAA,MACN,eAAMC;AAAAA,MACN,QAAMC;AAAAA,MACN,QAAMC;AAAAA,MACN,SAAMC;AAAAA,MACN,aAAMC;AAAAA;AAAAA,MAEN,gBAAMC;AAAAA,MACN,eAAMC;AAAAA,IACD;AAAA,EACF;AACH;"}
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue = require("vue");
4
+ const PlaceholderUserpic = require("../../../../icons/placeholders/PlaceholderUserpic.vue.cjs");
5
+ const _hoisted_1 = { class: "flex-v-center flex-nowrap flex" };
6
+ const _hoisted_2 = ["src"];
7
+ const _hoisted_3 = { class: "h4" };
8
+ const _hoisted_4 = { class: "t-transp mn-r-small" };
9
+ const _hoisted_5 = {
10
+ key: 2,
11
+ class: "mn-l-auto flex-stretch flex-v-center flex"
12
+ };
13
+ const _hoisted_6 = {
14
+ key: 0,
15
+ 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"
16
+ };
17
+ const _sfc_main = {
18
+ __name: "CardUser",
19
+ props: {
20
+ _id: {
21
+ type: String,
22
+ default: null
23
+ },
24
+ user: {
25
+ type: Object,
26
+ required: true
27
+ },
28
+ action: {
29
+ type: Object
30
+ },
31
+ photo: {
32
+ type: String,
33
+ default: null
34
+ },
35
+ name: {
36
+ type: String,
37
+ default: "No name"
38
+ },
39
+ role: {
40
+ type: String
41
+ },
42
+ phone: {
43
+ type: String
44
+ },
45
+ email: {
46
+ type: String
47
+ }
48
+ },
49
+ setup(__props) {
50
+ return (_ctx, _cache) => {
51
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
52
+ __props.photo ? (vue.openBlock(), vue.createElementBlock("img", {
53
+ key: 0,
54
+ loading: "lazy",
55
+ src: (_ctx.FILE_SERVER_URL || "") + __props.photo,
56
+ class: "radius-medium aspect-1x1 bg-white object-fit-cover mn-r-thin h-100 w-auto",
57
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => _ctx.$router.push({
58
+ name: __props.user.type === "user" ? "User Profile" : "Organization",
59
+ params: {
60
+ _id: __props.user._id
61
+ }
62
+ }), ["stop"]))
63
+ }, null, 8, _hoisted_2)) : vue.createCommentVNode("", true),
64
+ !__props.photo ? (vue.openBlock(), vue.createBlock(PlaceholderUserpic.default, {
65
+ key: 1,
66
+ class: "radius-medium aspect-1x1 mn-r-thin h-100 w-auto",
67
+ onClick: _cache[1] || (_cache[1] = vue.withModifiers(($event) => _ctx.$router.push({
68
+ name: "User Profile",
69
+ params: {
70
+ _id: __props.user._id || __props._id
71
+ }
72
+ }), ["stop"]))
73
+ })) : vue.createCommentVNode("", true),
74
+ vue.createElementVNode("div", null, [
75
+ vue.createElementVNode("p", _hoisted_3, vue.toDisplayString(__props.name), 1),
76
+ vue.createElementVNode("span", _hoisted_4, vue.toDisplayString(__props.phone || __props.email), 1)
77
+ ]),
78
+ __props.action || __props.role ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [
79
+ __props.role ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6, vue.toDisplayString(__props.role), 1)) : vue.createCommentVNode("", true),
80
+ __props.action ? (vue.openBlock(), vue.createElementBlock("button", {
81
+ key: 1,
82
+ onClick: _cache[2] || (_cache[2] = vue.withModifiers((...args) => __props.action.method && __props.action.method(...args), ["stop"])),
83
+ class: "h-2r w-2r t-white mn-l-thin capitalize t-medium radius-big bg-red"
84
+ }, [
85
+ __props.action.label.is ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(__props.action.label.is), vue.normalizeProps(vue.mergeProps({ key: 0 }, __props.action.label.props)), null, 16)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
86
+ vue.createTextVNode(vue.toDisplayString(__props.action.label), 1)
87
+ ], 64))
88
+ ])) : vue.createCommentVNode("", true)
89
+ ])) : vue.createCommentVNode("", true)
90
+ ]);
91
+ };
92
+ }
93
+ };
94
+ exports.default = _sfc_main;
95
+ //# sourceMappingURL=CardUser.vue.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardUser.vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,95 @@
1
+ import { openBlock, createElementBlock, withModifiers, createCommentVNode, createBlock, createElementVNode, toDisplayString, resolveDynamicComponent, normalizeProps, mergeProps, Fragment, createTextVNode } from "vue";
2
+ import PlaceholderUserpic from "../../../../icons/placeholders/PlaceholderUserpic.vue.js";
3
+ const _hoisted_1 = { class: "flex-v-center flex-nowrap flex" };
4
+ const _hoisted_2 = ["src"];
5
+ const _hoisted_3 = { class: "h4" };
6
+ const _hoisted_4 = { class: "t-transp mn-r-small" };
7
+ const _hoisted_5 = {
8
+ key: 2,
9
+ class: "mn-l-auto flex-stretch flex-v-center flex"
10
+ };
11
+ const _hoisted_6 = {
12
+ key: 0,
13
+ 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"
14
+ };
15
+ const _sfc_main = {
16
+ __name: "CardUser",
17
+ props: {
18
+ _id: {
19
+ type: String,
20
+ default: null
21
+ },
22
+ user: {
23
+ type: Object,
24
+ required: true
25
+ },
26
+ action: {
27
+ type: Object
28
+ },
29
+ photo: {
30
+ type: String,
31
+ default: null
32
+ },
33
+ name: {
34
+ type: String,
35
+ default: "No name"
36
+ },
37
+ role: {
38
+ type: String
39
+ },
40
+ phone: {
41
+ type: String
42
+ },
43
+ email: {
44
+ type: String
45
+ }
46
+ },
47
+ setup(__props) {
48
+ return (_ctx, _cache) => {
49
+ return openBlock(), createElementBlock("div", _hoisted_1, [
50
+ __props.photo ? (openBlock(), createElementBlock("img", {
51
+ key: 0,
52
+ loading: "lazy",
53
+ src: (_ctx.FILE_SERVER_URL || "") + __props.photo,
54
+ class: "radius-medium aspect-1x1 bg-white object-fit-cover mn-r-thin h-100 w-auto",
55
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.$router.push({
56
+ name: __props.user.type === "user" ? "User Profile" : "Organization",
57
+ params: {
58
+ _id: __props.user._id
59
+ }
60
+ }), ["stop"]))
61
+ }, null, 8, _hoisted_2)) : createCommentVNode("", true),
62
+ !__props.photo ? (openBlock(), createBlock(PlaceholderUserpic, {
63
+ key: 1,
64
+ class: "radius-medium aspect-1x1 mn-r-thin h-100 w-auto",
65
+ onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.$router.push({
66
+ name: "User Profile",
67
+ params: {
68
+ _id: __props.user._id || __props._id
69
+ }
70
+ }), ["stop"]))
71
+ })) : createCommentVNode("", true),
72
+ createElementVNode("div", null, [
73
+ createElementVNode("p", _hoisted_3, toDisplayString(__props.name), 1),
74
+ createElementVNode("span", _hoisted_4, toDisplayString(__props.phone || __props.email), 1)
75
+ ]),
76
+ __props.action || __props.role ? (openBlock(), createElementBlock("div", _hoisted_5, [
77
+ __props.role ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(__props.role), 1)) : createCommentVNode("", true),
78
+ __props.action ? (openBlock(), createElementBlock("button", {
79
+ key: 1,
80
+ onClick: _cache[2] || (_cache[2] = withModifiers((...args) => __props.action.method && __props.action.method(...args), ["stop"])),
81
+ class: "h-2r w-2r t-white mn-l-thin capitalize t-medium radius-big bg-red"
82
+ }, [
83
+ __props.action.label.is ? (openBlock(), createBlock(resolveDynamicComponent(__props.action.label.is), normalizeProps(mergeProps({ key: 0 }, __props.action.label.props)), null, 16)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
84
+ createTextVNode(toDisplayString(__props.action.label), 1)
85
+ ], 64))
86
+ ])) : createCommentVNode("", true)
87
+ ])) : createCommentVNode("", true)
88
+ ]);
89
+ };
90
+ }
91
+ };
92
+ export {
93
+ _sfc_main as default
94
+ };
95
+ //# sourceMappingURL=CardUser.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardUser.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,284 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue = require("vue");
4
+ ;/* empty css */
5
+ ;/* empty css */
6
+ ;/* empty css */
7
+ const Dropdown = require("../../../../../components/Dropdown/Dropdown.vue.cjs");
8
+ const Completion = require("../../../../../components/Completion/Completion.vue.cjs");
9
+ const Menu = require("../../../../../components/Menu/Menu.vue.cjs");
10
+ const MenuItem = require("../../../../../components/Menu/MenuItem.vue.cjs");
11
+ const ButtonToggleMembership = require("../../../../organizations/components/elements/ButtonToggleMembership.vue.cjs");
12
+ const FormReport = require("../../../../reports/components/sections/FormReport.vue.cjs");
13
+ const Socials = require("../../../../organizations/components/blocks/Socials.vue.cjs");
14
+ const IconEvents = require("../../../../icons/entities/IconEvents.vue.cjs");
15
+ const IconGroups = require("../../../../icons/entities/IconGroups.vue.cjs");
16
+ const IconCommunity = require("../../../../icons/entities/IconCommunity.vue.cjs");
17
+ const IconEdit = require("../../../../icons/navigation/IconEdit.vue.cjs");
18
+ const PlaceholderUserpic = require("../../../../icons/placeholders/PlaceholderUserpic.vue.cjs");
19
+ const vueRouter = require("vue-router");
20
+ const auth = require("../../store/auth.cjs");
21
+ const users = require("../../store/users.cjs");
22
+ const memberships = require("../../../../organizations/store/memberships.cjs");
23
+ require("./Profile.vue2.cjs");
24
+ const _hoisted_1 = {
25
+ key: 0,
26
+ class: "for-transition w-100"
27
+ };
28
+ const _hoisted_2 = {
29
+ key: 0,
30
+ class: "flex-center flex pd-medium radius-big bg-light uppercase t-semi w-100 h-100"
31
+ };
32
+ const _hoisted_3 = {
33
+ key: 1,
34
+ _id: "dash",
35
+ class: "pd-b-extra pd-thin w-100"
36
+ };
37
+ const _hoisted_4 = { class: "flex-center pos-relative flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-light" };
38
+ const _hoisted_5 = { class: "bg-black pd-thin radius-small" };
39
+ const _hoisted_6 = ["src"];
40
+ const _hoisted_7 = { class: "mn-b-thin" };
41
+ const _hoisted_8 = {
42
+ key: 4,
43
+ class: "mn-b-thin t-main t-semi"
44
+ };
45
+ const _hoisted_9 = { class: "mn-b-small p-medium" };
46
+ const _hoisted_10 = { class: "mn-b-medium flex-center flex-nowrap flex" };
47
+ const _hoisted_11 = { class: "t-semi mn-b-small" };
48
+ const _hoisted_12 = {
49
+ key: 6,
50
+ class: "mn-t-small mn-b-thin"
51
+ };
52
+ const _sfc_main = {
53
+ __name: "Profile",
54
+ setup(__props) {
55
+ const route = vueRouter.useRoute();
56
+ const router = vueRouter.useRouter();
57
+ const show = vue.ref(false);
58
+ vue.onMounted(async () => {
59
+ await users.actions.read({ _id: route.params._id, user: auth.state.user._id });
60
+ show.value = true;
61
+ });
62
+ const handleMembershipUpdate = ({ membership, status, target }, statusName, statusNumber) => {
63
+ memberships.mutations.handleMembershipUpdate(users.state.current, membership, status, target, statusName, statusNumber);
64
+ };
65
+ function logout() {
66
+ auth.actions.logout();
67
+ router.push({ name: "Sign In" });
68
+ }
69
+ return (_ctx, _cache) => {
70
+ return show.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
71
+ users.state.current.status === "removed" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, " Sorry, user has been removed. ")) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
72
+ vue.unref(route).params._id === auth.state.user._id && show.value ? (vue.openBlock(), vue.createBlock(Completion.default, {
73
+ key: 0,
74
+ user: auth.state.user._id,
75
+ target: users.state.current,
76
+ cta: true,
77
+ text_cta: "Fill Profile",
78
+ text: "Profile completed at",
79
+ class: "mn-b-medium"
80
+ }, null, 8, ["user", "target"])) : vue.createCommentVNode("", true),
81
+ vue.createElementVNode("section", _hoisted_4, [
82
+ vue.unref(route).params._id && vue.unref(route).params._id !== auth.state.user._id ? (vue.openBlock(), vue.createBlock(Dropdown.default, {
83
+ key: 0,
84
+ label: "...",
85
+ align: "right",
86
+ class: "cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"
87
+ }, {
88
+ default: vue.withCtx(() => [
89
+ vue.createElementVNode("section", _hoisted_5, [
90
+ vue.createVNode(FormReport.default, {
91
+ user: auth.state.user._id,
92
+ type: "user",
93
+ target: users.state.current._id,
94
+ text: "Report",
95
+ class: "w-100"
96
+ }, {
97
+ default: vue.withCtx(() => _cache[10] || (_cache[10] = [
98
+ vue.createElementVNode("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1)
99
+ ])),
100
+ _: 1
101
+ }, 8, ["user", "target"]),
102
+ auth.state.user._id ? (vue.openBlock(), vue.createBlock(ButtonToggleMembership.default, {
103
+ key: 0,
104
+ user: auth.state.user._id,
105
+ type: "user",
106
+ role: "blocked",
107
+ target: users.state.current._id,
108
+ status: users.state.current.isBlocked,
109
+ text: { create: "Block", remove: "Unblock" },
110
+ onUpdateMembership: _cache[0] || (_cache[0] = (event) => handleMembershipUpdate(event, "isBlocked")),
111
+ class: "t-white mn-t-thin bg-red"
112
+ }, null, 8, ["user", "target", "status"])) : vue.createCommentVNode("", true)
113
+ ])
114
+ ]),
115
+ _: 1
116
+ })) : vue.createCommentVNode("", true),
117
+ vue.unref(route).params._id === auth.state.user._id ? (vue.openBlock(), vue.createBlock(IconEdit.default, {
118
+ key: 1,
119
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$router.push({
120
+ name: "User Edit Profile",
121
+ params: {
122
+ _id: auth.state.user._id
123
+ }
124
+ })),
125
+ class: "cursor-pointer pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
126
+ })) : vue.createCommentVNode("", true),
127
+ users.state.current.profile.photo && users.state.current.profile.photo.length > 0 ? (vue.openBlock(), vue.createElementBlock("img", {
128
+ key: 2,
129
+ loading: "lazy",
130
+ src: (_ctx.FILE_SERVER_URL || "") + users.state.current.profile.photo,
131
+ class: "radius-extra bg-white mn-b-small object-fit-cover i-extra"
132
+ }, null, 8, _hoisted_6)) : (vue.openBlock(), vue.createBlock(PlaceholderUserpic.default, {
133
+ key: 3,
134
+ class: "radius-medium mn-b-small i-extra"
135
+ })),
136
+ vue.createElementVNode("h3", _hoisted_7, vue.toDisplayString(users.state.current.profile.name ? users.state.current.profile.name : "Anonymous"), 1),
137
+ users.state.current.username ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_8, " @" + vue.toDisplayString(users.state.current.username ? users.state.current.username : "Not specified"), 1)) : vue.createCommentVNode("", true),
138
+ vue.createElementVNode("p", _hoisted_9, vue.toDisplayString(users.state.current.profile.description ? users.state.current.profile.description : "Bio not specified"), 1),
139
+ vue.createElementVNode("div", _hoisted_10, [
140
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(users.state.current.roles, (role, index) => {
141
+ return vue.openBlock(), vue.createElementBlock("div", {
142
+ class: vue.normalizeClass(["pd-thin radius-small t-semi bg-white", { "mn-r-thin": index !== users.state.current.roles.length - 1 }])
143
+ }, vue.toDisplayString(role.icon) + " " + vue.toDisplayString(role.name), 3);
144
+ }), 256))
145
+ ]),
146
+ vue.createElementVNode("p", _hoisted_11, " ๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ง " + vue.toDisplayString(users.state.current.numberOfSubscribers) + " followers ", 1),
147
+ auth.state.user._id && vue.unref(route).params._id && vue.unref(route).params._id !== auth.state.user._id ? (vue.openBlock(), vue.createBlock(ButtonToggleMembership.default, {
148
+ key: 5,
149
+ user: auth.state.user._id,
150
+ type: "user",
151
+ role: "subscriber",
152
+ target: users.state.current._id,
153
+ status: users.state.current.isSubscriber,
154
+ text: { create: "Follow", remove: "Unfollow" },
155
+ onUpdateMembership: _cache[2] || (_cache[2] = (event) => handleMembershipUpdate(event, "isSubscriber", "numberOfSubscribers")),
156
+ class: "w-min mn-b-medium mn-r-auto mn-l-auto"
157
+ }, null, 8, ["user", "target", "status"])) : vue.createCommentVNode("", true),
158
+ Object.values(users.state.current.socials).some((value) => value) ? (vue.openBlock(), vue.createElementBlock("h4", _hoisted_12, " Find Me in Socials ")) : vue.createCommentVNode("", true),
159
+ vue.createVNode(Socials.default, {
160
+ telegram: users.state.current.socials.telegram,
161
+ facebook: users.state.current.socials.facebook,
162
+ instagram: users.state.current.socials.instagram,
163
+ twitter: users.state.current.socials.twitter,
164
+ class: "mn-r-auto mn-l-auto"
165
+ }, null, 8, ["telegram", "facebook", "instagram", "twitter"])
166
+ ]),
167
+ vue.createVNode(Menu.default, { class: "mn-b-regular bg-light" }, {
168
+ default: vue.withCtx(() => [
169
+ vue.createVNode(MenuItem.default, {
170
+ onClick: _cache[3] || (_cache[3] = ($event) => vue.unref(router).push({ name: "User Events", params: { user: vue.unref(route).params._id } })),
171
+ class: "cursor-pointer"
172
+ }, {
173
+ default: vue.withCtx(() => [
174
+ vue.createVNode(IconEvents.default, {
175
+ class: "i-semi",
176
+ icon: true,
177
+ fill: "rgb(var(--white))"
178
+ }),
179
+ _cache[11] || (_cache[11] = vue.createElementVNode("span", null, "Events", -1))
180
+ ]),
181
+ _: 1
182
+ }),
183
+ vue.createVNode(MenuItem.default, {
184
+ onClick: _cache[4] || (_cache[4] = ($event) => vue.unref(router).push({ name: "User Organizations", params: { _id: vue.unref(route).params._id } })),
185
+ class: "cursor-pointer"
186
+ }, {
187
+ default: vue.withCtx(() => [
188
+ vue.createVNode(IconGroups.default, {
189
+ class: "i-semi",
190
+ icon: true
191
+ }),
192
+ _cache[12] || (_cache[12] = vue.createElementVNode("span", null, "Groups", -1))
193
+ ]),
194
+ _: 1
195
+ }),
196
+ vue.createVNode(MenuItem.default, {
197
+ onClick: _cache[5] || (_cache[5] = ($event) => vue.unref(router).push({ name: "User Blogposts", params: { _id: vue.unref(route).params._id } })),
198
+ class: "cursor-pointer"
199
+ }, {
200
+ default: vue.withCtx(() => [
201
+ vue.createVNode(IconCommunity.default, {
202
+ class: "i-semi",
203
+ icon: true
204
+ }),
205
+ _cache[13] || (_cache[13] = vue.createElementVNode("span", null, "Posts", -1))
206
+ ]),
207
+ _: 1
208
+ })
209
+ ]),
210
+ _: 1
211
+ }),
212
+ _ctx.APP_NAME === "Weeder" ? (vue.openBlock(), vue.createBlock(Menu.default, {
213
+ key: 1,
214
+ class: "mn-b-regular bg-light"
215
+ }, {
216
+ default: vue.withCtx(() => [
217
+ vue.createVNode(MenuItem.default, {
218
+ onClick: _cache[6] || (_cache[6] = ($event) => vue.unref(router).push({ name: "User Wallet", params: { _id: vue.unref(route).params._id } })),
219
+ class: "cursor-pointer"
220
+ }, {
221
+ default: vue.withCtx(() => [
222
+ vue.createVNode(IconGroups.default, {
223
+ class: "i-semi",
224
+ icon: true
225
+ }),
226
+ _cache[14] || (_cache[14] = vue.createElementVNode("span", null, "Wallet", -1))
227
+ ]),
228
+ _: 1
229
+ })
230
+ ]),
231
+ _: 1
232
+ })) : vue.createCommentVNode("", true),
233
+ auth.state.user._id === vue.unref(route).params._id ? (vue.openBlock(), vue.createBlock(Menu.default, {
234
+ key: 2,
235
+ class: "bg-light"
236
+ }, {
237
+ default: vue.withCtx(() => [
238
+ vue.createVNode(MenuItem.default, {
239
+ onClick: _cache[7] || (_cache[7] = ($event) => vue.unref(router).push({
240
+ name: "User Edit Profile",
241
+ params: {
242
+ _id: vue.unref(route).params._id
243
+ }
244
+ })),
245
+ class: "cursor-pointer"
246
+ }, {
247
+ default: vue.withCtx(() => _cache[15] || (_cache[15] = [
248
+ vue.createElementVNode("span", null, " Settings ", -1)
249
+ ])),
250
+ _: 1
251
+ }),
252
+ vue.createVNode(MenuItem.default, {
253
+ onClick: _cache[8] || (_cache[8] = ($event) => vue.unref(router).push({
254
+ name: "Legal",
255
+ params: {
256
+ _id: vue.unref(route).params._id
257
+ }
258
+ })),
259
+ class: "cursor-pointer"
260
+ }, {
261
+ default: vue.withCtx(() => _cache[16] || (_cache[16] = [
262
+ vue.createElementVNode("span", null, " About ", -1)
263
+ ])),
264
+ _: 1
265
+ }),
266
+ vue.createVNode(MenuItem.default, {
267
+ class: "cursor-pointer",
268
+ onClick: _cache[9] || (_cache[9] = ($event) => logout())
269
+ }, {
270
+ default: vue.withCtx(() => _cache[17] || (_cache[17] = [
271
+ vue.createElementVNode("span", { class: "t-red" }, " Logout ", -1)
272
+ ])),
273
+ _: 1
274
+ })
275
+ ]),
276
+ _: 1
277
+ })) : vue.createCommentVNode("", true)
278
+ ]))
279
+ ])) : vue.createCommentVNode("", true);
280
+ };
281
+ }
282
+ };
283
+ exports.default = _sfc_main;
284
+ //# sourceMappingURL=Profile.vue.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Profile.vue.cjs","sources":["../../../../../../../../src/modules/auth/views/components/pages/Profile.vue"],"sourcesContent":["<template>\n\t<div \n\t\tv-if=\"show\"\n\t\tclass=\"for-transition w-100\"\n\t>\n\t\t<div \n\t\t\tv-if=\"users.state.current.status === 'removed'\"\n\t\t\tclass=\"flex-center flex pd-medium radius-big bg-light uppercase t-semi w-100 h-100\"\n\t\t>\n\t\t\tSorry, user has been removed.\n\t\t</div>\n\n\t\t<div \n\t\t\tv-else\n\t\t\t_id=\"dash\" \n\t\t\tclass=\"pd-b-extra pd-thin w-100\"\n\t\t>\n\t\t\t<Completion \n\t\t\t\tv-if=\"route.params._id === auth.state.user._id && show\" \n\t\t :user=\"auth.state.user._id\"\n\t\t :target=\"users.state.current\"\n\t\t :cta=\"true\" \n\t\t text_cta=\"Fill Profile\"\n\t\t text=\"Profile completed at\"\n\t\t class=\"mn-b-medium\"\n\t\t\t/>\n\n\t\t\t<section \n\n\t\t\t\tclass=\"flex-center pos-relative flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-light\"\n\t\t\t>\n\n\t\t\t\t<Dropdown \n\t\t\t\t\tv-if=\"route.params._id && route.params._id !== auth.state.user._id\"\n\t\t\t\t\t:label=\"'...'\" \n\t\t\t\t\t:align=\"'right'\"\n\t\t\t\t\tclass=\"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra \"\n\t\t\t\t>\n\t\t\t\t\t<section \n\t\t\t\t\t\tclass=\"bg-black pd-thin radius-small\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<FormReport \n\t\t\t\t\t\t\t:user=\"auth.state.user._id\"\n\t\t\t\t\t\t\t:type=\"'user'\" \n\t\t\t\t\t\t\t:target=\"users.state.current._id\" \n\t\t\t\t\t\t\t:text=\"'Report'\" \n\t\t\t\t\t\t\tclass=\"w-100\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<button \n\t\t\t\t\t\t\t\tclass=\"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\tReport\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</FormReport>\n\n\t\t\t\t\t\t<ButtonToggleMembership\n\t\t\t\t\t\t\tv-if=\"auth.state.user._id\"\n\t\t\t\t :user=\"auth.state.user._id\"\n\t\t\t\t :type=\"'user'\" \n\t\t\t \t:role=\"'blocked'\" \n\t\t\t\t :target=\"users.state.current._id\" \n\t\t\t\t :status=\"users.state.current.isBlocked\" \n\t\t\t\t :text=\"{create: 'Block', remove: 'Unblock'}\"\n\t\t\t\t @updateMembership=\"event => handleMembershipUpdate(event, 'isBlocked')\"\n\t\t\t\t class=\"t-white mn-t-thin bg-red\" \n\t\t\t \t/>\n\t\t\t\t\t</section>\n\t </Dropdown>\t\n\n\n\t\t\t\t<IconEdit\n\t\t\t\t\tv-if=\"route.params._id === auth.state.user._id\"\n\t\t\t\t\t@click=\"$router.push({\n\t\t\t\t\t\tname: 'User Edit Profile', \n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t_id: auth.state.user._id\n\t\t\t\t\t\t}\n\t\t\t\t\t})\" \n\t\t\t\t\tclass=\"cursor-pointer pos-absolute pos-t-regular pos-r-regular i-regular t-transp\"\n\t\t\t\t/>\n\n\t\t\t\t<img loading=\"lazy\" \n\t\t\t\t\tv-if=\"users.state.current.profile.photo && users.state.current.profile.photo.length > 0\" \n\t\t\t\t\t:src=\"(FILE_SERVER_URL || '')+ users.state.current.profile.photo\" \n\t\t\t\t\tclass=\"radius-extra bg-white mn-b-small object-fit-cover i-extra\" \n\t\t\t\t/>\n\t\t\t\t\n\t\t\t\t<PlaceholderUserpic \n\t\t\t\t\tv-else \n\t\t\t\t\tclass=\"radius-medium mn-b-small i-extra\"\n\t\t\t\t/>\n\n\t\t\t\t<h3 \n\t\t\t\t\tclass=\"mn-b-thin\"\n\t\t\t\t>\n\t\t\t\t\t{{users.state.current.profile.name ? users.state.current.profile.name : 'Anonymous' }}\n\t\t\t\t</h3>\n\t\t\t\t\n\t\t\t\t<p \n\t\t\t\t\tv-if=\"users.state.current.username\"\n\t\t\t\t\tclass=\"mn-b-thin t-main t-semi\"\n\t\t\t\t>\n\t\t\t\t\t@{{ users.state.current.username ? users.state.current.username : 'Not specified' }}\n\t\t\t\t</p>\n\n\t\t\t\t<p \n\t\t\t\t\tclass=\"mn-b-small p-medium\"\n\t\t\t\t>\n\t\t\t\t {{ users.state.current.profile.description ? users.state.current.profile.description : 'Bio not specified' }}\n\t\t\t\t</p>\n\t\t\t\t\n\t\t\t\t<div class=\"mn-b-medium flex-center flex-nowrap flex\">\n\t\t\t\t\t<div \n\t\t\t\t\t v-for=\"(role,index) in users.state.current.roles\" \n\t\t\t\t\t class=\"pd-thin radius-small t-semi bg-white\" \n\t\t\t\t\t :class=\"{'mn-r-thin': index !== users.state.current.roles.length - 1}\"\n\t\t\t\t\t >\n\t\t\t\t\t\t{{role.icon}}\n\t\t\t\t\t\t{{role.name}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\t\t\n\n\t\t\t\t<p \n\t\t\t\t\tclass=\"t-semi mn-b-small\"\n\t\t\t\t>\n\t\t\t\t\t<!-- ๐Ÿ‘ 3 212 likes ยท -->\n\t\t\t\t\t<!-- ๐Ÿ’ฌ 342 comments ยท -->\n\t\t\t\t\t๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ง {{users.state.current.numberOfSubscribers}} followers\n\t\t\t\t</p>\n\t\t\t\t\n\t \t<ButtonToggleMembership\n\t \t\tv-if=\"auth.state.user._id && route.params._id && route.params._id !== auth.state.user._id\"\n\t\t :user=\"auth.state.user._id\"\n\t\t :type=\"'user'\" \n\t \t:role=\"'subscriber'\" \n\t\t :target=\"users.state.current._id\" \n\t\t :status=\"users.state.current.isSubscriber\" \n\t\t\t\t\t:text=\"{create: 'Follow', remove: 'Unfollow'}\"\n\t\t @updateMembership=\"event => handleMembershipUpdate(event, 'isSubscriber', 'numberOfSubscribers')\"\n\t\t class=\"w-min mn-b-medium\tmn-r-auto mn-l-auto\" \n\t \t/>\n\n\t \t<h4 \n\t \tv-if=\"Object.values(users.state.current.socials).some(value => value)\" \n\t \tclass=\"mn-t-small mn-b-thin\"\n\t >\n\t \t\tFind Me in Socials\n\t \t</h4>\n\t \t<Socials \n\t \t\t:telegram=\"users.state.current.socials.telegram\"\n\t \t\t:facebook=\"users.state.current.socials.facebook\"\n\t \t\t:instagram=\"users.state.current.socials.instagram\"\n\t \t\t:twitter=\"users.state.current.socials.twitter\"\n\t \t\tclass=\"mn-r-auto mn-l-auto\"\n\t \t/>\n\n\t\t\t</section>\n\t\t\t\n\t\t\t\n\n\t\t\t<Menu class=\"mn-b-regular bg-light\">\n\n\t\t\t <MenuItem @click=\"router.push({name: 'User Events', params: {user: route.params._id}})\" class=\"cursor-pointer\">\n\t\t\t <IconEvents class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t\t <span>Events</span>\n\t\t\t </MenuItem> \n\n\t\t\t <MenuItem @click=\"router.push({name: 'User Organizations', params: {_id: route.params._id}})\" class=\"cursor-pointer\">\n\t\t\t <IconGroups class=\"i-semi\" :icon=\"true\"/>\n\t\t\t <span>Groups</span>\n\t\t\t </MenuItem>\n\n\t\t\t \t<MenuItem @click=\"router.push({name: 'User Blogposts', params: {_id: route.params._id}})\" class=\"cursor-pointer\">\n\t\t\t \t\t<IconCommunity class=\"i-semi\" :icon=\"true\"/>\n\t\t\t <span>Posts</span>\n\t\t\t </MenuItem>\n\t\t\t</Menu>\n\n\t\t\t<Menu v-if=\"APP_NAME === 'Weeder'\"class=\"mn-b-regular bg-light\">\n\t\t\t\t<MenuItem @click=\"router.push({name: 'User Wallet', params: {_id: route.params._id}})\" class=\"cursor-pointer\">\n\t\t\t <IconGroups class=\"i-semi\" :icon=\"true\"/>\n\t\t\t <span>Wallet</span>\n\t\t\t </MenuItem>\n\t\t\t</Menu>\n\t\t\t \n\t\t\t <!-- <MenuItem @click=\"router.push({name: 'User Comments', params: {_id: route.params._id}})\" class=\"cursor-pointer\">\n\t\t\t <span>Comments</span>\n\t\t\t </MenuItem>\n\t\t\t <MenuItem @click=\"router.push({name: 'User Likes', params: {_id: route.params._id}})\" class=\"cursor-pointer\">\n\t\t\t <span>Likes</span>\n\t\t\t </MenuItem> -->\n\t\t\t \n\t\t\t<Menu \n\t\t\t\tv-if=\"auth.state.user._id === route.params._id\"\n\t\t\t\tclass=\"bg-light\"\n\t\t\t>\n\t\t\t <MenuItem \n\t\t\t \t@click=\"router.push({\n\t\t\t \t\tname: 'User Edit Profile', \n\t\t\t \t\tparams: {\n\t\t\t \t\t\t_id: route.params._id\n\t\t\t \t\t}\n\t\t\t \t})\" \n\t\t\t \tclass=\"cursor-pointer\">\n\t\t\t <span>\n\t\t\t \tSettings\n\t\t\t </span>\n\t\t\t </MenuItem>\n\n\t\t\t <MenuItem \n\t\t\t \t@click=\"router.push({\n\t\t\t \t\tname: 'Legal', \n\t\t\t \t\tparams: {\n\t\t\t \t\t\t_id: route.params._id\n\t\t\t \t\t}\n\t\t\t \t})\" \n\t\t\t \tclass=\"cursor-pointer\">\n\t\t\t <span>\n\t\t\t \tAbout\n\t\t\t </span>\n\t\t\t </MenuItem>\n\t\t\t \n\t\t\t <MenuItem \n\t\t\t \tclass=\"cursor-pointer\"\n\t\t\t\t\t@click=\"logout()\"\n\t\t\t >\n\t\t\t <span \n\t\t\t \tclass=\"t-red\"\n\t\t\t >\n\t\t\t \tLogout\n\t\t\t </span>\n\t\t\t </MenuItem>\n\t\t\t</Menu>\n\n\t\t</div>\n\t</div>\n</template>\n\n<script setup>\n// Import components\nimport Field from '@pf/src/components/Field/Field.vue'\nimport Button from '@pf/src/components/Button/Button.vue'\nimport Dropdown from \"@pf/src/components/Dropdown/Dropdown.vue\";\nimport Completion from '@pf/src/components/Completion/Completion.vue'\n// Mobile Module\nimport Menu from '@pf/src/components/Menu/Menu.vue'\nimport MenuItem from '@pf/src/components/Menu/MenuItem.vue'\n// Org Module\nimport ButtonToggleMembership from '@pf/src/modules/organizations/components/elements/ButtonToggleMembership.vue'\n// Report Module\nimport FormReport from '@pf/src/modules/reports/components/sections/FormReport.vue' \n// Community Module \nimport Activity from '@pf/src/modules/community/components/blocks/Activity.vue'; \nimport Socials from '@pf/src/modules/organizations/components/blocks/Socials.vue'\n// Icons Module\nimport IconEvents from '@pf/src/modules/icons/entities/IconEvents.vue'\nimport IconGroups from '@pf/src/modules/icons/entities/IconGroups.vue'\nimport IconCommunity from '@pf/src/modules/icons/entities/IconCommunity.vue'\n\nimport IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'\n\nimport PlaceholderUserpic from '@pf/src/modules/icons/placeholders/PlaceholderUserpic.vue'\n// Import libs\nimport { computed, watch, onMounted, ref, onBeforeMount } from 'vue'\nimport { useRoute, useRouter } from 'vue-router'\n// Import state\nimport * as auth from '@pf/src/modules/auth/views/store/auth'\nimport * as users from '@pf/src/modules/auth/views/store/users'\nimport * as memberships from '@pf/src/modules/organizations/store/memberships'\n// Accessing router\nconst route = useRoute()\nconst router = useRouter()\n// Get organization _id from cookie\nconst show = ref(false)\n\nonMounted(async () => {\n \tawait users.actions.read({ _id: route.params._id, user: auth.state.user._id });\n \tshow.value = true\n})\n\nconst handleMembershipUpdate = ({ membership, status, target }, statusName, statusNumber) => {\n memberships.mutations.handleMembershipUpdate(users.state.current, membership, status, target, statusName, statusNumber)\n};\n\nfunction logout () {\n auth.actions.logout()\n\n router.push({name: 'Sign In'})\n}\n</script>\n\n<style lang=\"scss\">\n\t#header {\n\t\t// height: 3rem;\n\t}\n</style>\n"],"names":["useRoute","useRouter","ref","onMounted","users.actions","auth.state","memberships.mutations","users.state","auth.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8QA,UAAM,QAAQA,UAAAA,SAAU;AACxB,UAAM,SAASC,UAAAA,UAAW;AAE1B,UAAM,OAAOC,IAAG,IAAC,KAAK;AAEtBC,QAAAA,UAAU,YAAY;AACpB,YAAMC,cAAc,KAAK,EAAE,KAAK,MAAM,OAAO,KAAK,MAAMC,KAAU,MAAC,KAAK,IAAK,CAAA;AAC7E,WAAK,QAAQ;AAAA,IACf,CAAC;AAED,UAAM,yBAAyB,CAAC,EAAE,YAAY,QAAQ,OAAQ,GAAE,YAAY,iBAAiB;AAC3FC,4BAAsB,uBAAuBC,MAAAA,MAAY,SAAS,YAAY,QAAQ,QAAQ,YAAY,YAAY;AAAA,IACxH;AAEA,aAAS,SAAU;AACjBC,WAAAA,QAAa,OAAQ;AAErB,aAAO,KAAK,EAAC,MAAM,UAAS,CAAC;AAAA,IAC/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}