@ozdao/prometheus-framework 0.2.251 → 0.2.253

Sign up to get free protection for your applications and to get access to all the features.
Files changed (450) 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/community.server.js +38 -21
  6. package/dist/community.server.mjs +38 -21
  7. package/dist/events.server.js +38 -18
  8. package/dist/events.server.mjs +38 -17
  9. package/dist/gallery.server.js +17 -4
  10. package/dist/gallery.server.mjs +17 -4
  11. package/dist/organizations.server.js +43 -26
  12. package/dist/organizations.server.mjs +43 -26
  13. package/dist/products.server.js +49 -23
  14. package/dist/products.server.mjs +49 -22
  15. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
  17. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  18. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
  19. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
  21. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +15 -3
  24. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs.map +1 -1
  25. package/dist/prometheus-framework/src/modules/auth/auth.client.js +16 -4
  26. package/dist/prometheus-framework/src/modules/auth/auth.client.js.map +1 -1
  27. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.cjs +95 -0
  28. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.cjs.map +1 -0
  29. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.js +95 -0
  30. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.js.map +1 -0
  31. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
  32. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
  33. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
  35. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
  37. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs +284 -0
  38. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -0
  39. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js +284 -0
  40. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -0
  41. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.cjs +2 -0
  42. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.cjs.map +1 -0
  43. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.js +2 -0
  44. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.js.map +1 -0
  45. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +85 -0
  46. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs.map +1 -0
  47. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +85 -0
  48. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js.map +1 -0
  49. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +176 -0
  50. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs.map +1 -0
  51. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js +176 -0
  52. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -0
  53. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs +2 -0
  54. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs.map +1 -0
  55. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.js +2 -0
  56. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.js.map +1 -0
  57. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
  59. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
  61. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
  63. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs +114 -0
  64. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs.map +1 -0
  65. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.js +114 -0
  66. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.js.map +1 -0
  67. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.cjs +72 -0
  68. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.cjs.map +1 -0
  69. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.js +72 -0
  70. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.js.map +1 -0
  71. package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs +97 -0
  72. package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs.map +1 -0
  73. package/dist/prometheus-framework/src/modules/auth/views/router/users.js +97 -0
  74. package/dist/prometheus-framework/src/modules/auth/views/router/users.js.map +1 -0
  75. package/dist/prometheus-framework/src/modules/auth/views/store/users.cjs +95 -0
  76. package/dist/prometheus-framework/src/modules/auth/views/store/users.cjs.map +1 -0
  77. package/dist/prometheus-framework/src/modules/auth/views/store/users.js +95 -0
  78. package/dist/prometheus-framework/src/modules/auth/views/store/users.js.map +1 -0
  79. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs +32 -2
  80. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs.map +1 -1
  81. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js +32 -2
  82. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js.map +1 -1
  83. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +2 -2
  84. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs.map +1 -1
  85. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +2 -2
  86. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js.map +1 -1
  87. package/dist/prometheus-framework/src/modules/community/community.client.cjs +42 -7
  88. package/dist/prometheus-framework/src/modules/community/community.client.cjs.map +1 -1
  89. package/dist/prometheus-framework/src/modules/community/community.client.js +59 -24
  90. package/dist/prometheus-framework/src/modules/community/community.client.js.map +1 -1
  91. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +2 -2
  94. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +2 -2
  95. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +3 -3
  96. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +3 -3
  97. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
  98. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  99. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  101. package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs +68 -70
  102. package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs.map +1 -1
  103. package/dist/prometheus-framework/src/modules/community/router/blogposts.js +68 -70
  104. package/dist/prometheus-framework/src/modules/community/router/blogposts.js.map +1 -1
  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/elements/ButtonJoin.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
  110. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  111. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
  112. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  113. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
  115. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
  117. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
  119. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
  121. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
  122. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  123. package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs +26 -3
  124. package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs.map +1 -1
  125. package/dist/prometheus-framework/src/modules/gallery/gallery.client.js +27 -4
  126. package/dist/prometheus-framework/src/modules/gallery/gallery.client.js.map +1 -1
  127. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.cjs +2 -2
  128. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.cjs.map +1 -1
  129. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.js +2 -2
  130. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.js.map +1 -1
  131. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs.map +1 -1
  132. package/dist/prometheus-framework/src/modules/globals/globals.client.js.map +1 -1
  133. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
  134. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
  135. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -2
  136. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +2 -2
  137. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +2 -2
  138. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +2 -2
  139. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
  141. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +2 -2
  142. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  143. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  145. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs.map +1 -1
  147. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  148. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
  149. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +4 -4
  150. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs.map +1 -1
  151. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +4 -4
  152. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
  153. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +4 -4
  154. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs.map +1 -1
  155. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +4 -4
  156. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js.map +1 -1
  157. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  159. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  161. package/dist/prometheus-framework/src/modules/orders/orders.client.cjs +4 -1
  162. package/dist/prometheus-framework/src/modules/orders/orders.client.cjs.map +1 -1
  163. package/dist/prometheus-framework/src/modules/orders/orders.client.js +4 -1
  164. package/dist/prometheus-framework/src/modules/orders/orders.client.js.map +1 -1
  165. package/dist/prometheus-framework/src/modules/orders/store/testimonials.cjs +63 -0
  166. package/dist/prometheus-framework/src/modules/orders/store/testimonials.cjs.map +1 -0
  167. package/dist/prometheus-framework/src/modules/orders/store/testimonials.js +63 -0
  168. package/dist/prometheus-framework/src/modules/orders/store/testimonials.js.map +1 -0
  169. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +2 -2
  170. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs.map +1 -1
  171. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +2 -2
  172. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js.map +1 -1
  173. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs.map +1 -1
  175. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  176. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
  177. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  179. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs.map +1 -1
  181. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
  182. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
  183. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +5 -5
  184. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs.map +1 -1
  185. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +5 -5
  186. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +1 -1
  187. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +2 -2
  188. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs.map +1 -1
  189. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  190. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
  191. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
  192. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
  193. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +3 -3
  194. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  195. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +3 -3
  196. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  197. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
  199. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +4 -4
  200. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs.map +1 -1
  201. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +4 -4
  202. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js.map +1 -1
  203. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +3 -3
  204. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  205. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +60 -11
  206. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs.map +1 -1
  207. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +95 -46
  208. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js.map +1 -1
  209. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +6 -10
  210. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
  211. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +8 -12
  212. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
  213. package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +786 -773
  214. package/dist/prometheus-framework/src/modules/pages/pages.client.js +786 -773
  215. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
  216. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
  217. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
  219. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +2 -2
  220. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
  221. package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs +5 -7
  222. package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs.map +1 -1
  223. package/dist/prometheus-framework/src/modules/pages/views/store/pages.js +1 -3
  224. package/dist/prometheus-framework/src/modules/pages/views/store/pages.js.map +1 -1
  225. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  227. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
  229. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  231. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs +178 -0
  232. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs.map +1 -0
  233. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js +178 -0
  234. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js.map +1 -0
  235. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs +62 -0
  236. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs.map +1 -0
  237. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js +62 -0
  238. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js.map +1 -0
  239. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
  242. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  243. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +2 -2
  244. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  245. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +2 -2
  246. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  247. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +3 -3
  248. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -3
  249. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +2 -2
  250. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
  251. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +2 -2
  252. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
  253. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +3 -3
  254. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  255. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs.map +1 -1
  257. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  258. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
  259. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs +156 -0
  260. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs.map +1 -0
  261. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js +157 -0
  262. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js.map +1 -0
  263. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs.map +1 -1
  265. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +1 -1
  266. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js.map +1 -1
  267. package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.cjs +128 -0
  268. package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.cjs.map +1 -0
  269. package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.js +128 -0
  270. package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.js.map +1 -0
  271. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +2 -2
  272. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs.map +1 -1
  273. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +2 -2
  274. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js.map +1 -1
  275. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  277. package/dist/prometheus-framework/src/modules/products/products.client.cjs +74 -7
  278. package/dist/prometheus-framework/src/modules/products/products.client.cjs.map +1 -1
  279. package/dist/prometheus-framework/src/modules/products/products.client.js +114 -47
  280. package/dist/prometheus-framework/src/modules/products/products.client.js.map +1 -1
  281. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.cjs +46 -0
  282. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.cjs.map +1 -0
  283. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.js +46 -0
  284. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.js.map +1 -0
  285. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +79 -36
  286. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs.map +1 -1
  287. package/dist/prometheus-framework/src/modules/products/router/products.router.js +78 -35
  288. package/dist/prometheus-framework/src/modules/products/router/products.router.js.map +1 -1
  289. package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs +57 -0
  290. package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs.map +1 -0
  291. package/dist/prometheus-framework/src/modules/products/store/marketplace.js +57 -0
  292. package/dist/prometheus-framework/src/modules/products/store/marketplace.js.map +1 -0
  293. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +3 -3
  294. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  295. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  297. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs.map +1 -1
  299. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  300. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js.map +1 -1
  301. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +3 -3
  302. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs.map +1 -1
  303. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +3 -3
  304. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js.map +1 -1
  305. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs +2 -2
  306. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs.map +1 -1
  307. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js +2 -2
  308. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js.map +1 -1
  309. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
  310. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
  311. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +2 -2
  312. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  313. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +1 -1
  315. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
  317. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +3 -3
  318. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
  319. package/package.json +1 -1
  320. package/src/builder/webpack/webpack.config.client.js +2 -2
  321. package/src/builder/webpack/webpack.config.server.js +1 -1
  322. package/src/builder/webpack/webpack.config.spa.js +1 -1
  323. package/src/builder/webpack/webpack.config.ssr.js +1 -1
  324. package/src/modules/auth/auth.client.js +16 -3
  325. package/src/modules/auth/auth.server.js +22 -1
  326. package/src/modules/{users → auth/controllers}/routes/users.routes.js +1 -1
  327. package/src/modules/auth/controllers/services/auth.service.js +0 -1
  328. package/src/modules/{users → auth/views}/components/pages/Profile.vue +1 -1
  329. package/src/modules/{users → auth/views}/components/pages/ProfileEdit.vue +2 -2
  330. package/src/modules/{users → auth/views}/components/sections/FeaturedUsers.vue +2 -2
  331. package/src/modules/auth/views/router/users.js +79 -0
  332. package/src/modules/backoffice/backoffice.client.js +53 -11
  333. package/src/modules/backoffice/router/backoffice.js +29 -2
  334. package/src/modules/community/community.client.js +56 -10
  335. package/src/modules/community/community.server.js +35 -14
  336. package/src/modules/community/models/comment.model.js +7 -7
  337. package/src/modules/community/models/reaction.model.js +5 -5
  338. package/src/modules/community/router/blogposts.js +55 -57
  339. package/src/modules/events/events.server.js +37 -16
  340. package/src/modules/events/models/ticket.model.js +6 -6
  341. package/src/modules/gallery/gallery.client.js +44 -8
  342. package/src/modules/gallery/gallery.server.js +28 -9
  343. package/src/modules/gallery/router/gallery.router.js +2 -2
  344. package/src/modules/globals/globals.client.js +15 -14
  345. package/src/modules/governance/controllers/factories/initiatives.controller.js +94 -0
  346. package/src/modules/governance/controllers/factories/tasks.controller.js +94 -0
  347. package/src/modules/governance/controllers/factories/votes.controller.js +68 -0
  348. package/src/modules/governance/controllers/factories/votings.controller.js +112 -0
  349. package/src/modules/governance/controllers/routes/initiatives.routes.js +13 -0
  350. package/src/modules/governance/controllers/routes/tasks.routes.js +13 -0
  351. package/src/modules/governance/controllers/routes/votes.routes.js +11 -0
  352. package/src/modules/governance/controllers/routes/votings.routes.js +14 -0
  353. package/src/modules/governance/models/initiative.model.js +25 -0
  354. package/src/modules/governance/models/task.model.js +21 -0
  355. package/src/modules/governance/models/vote.model.js +20 -0
  356. package/src/modules/governance/models/voting.model.js +22 -0
  357. package/src/modules/governance/views/components/blocks/CardInitiativeItem.vue +18 -0
  358. package/src/modules/governance/views/components/blocks/CardTaskItem.vue +19 -0
  359. package/src/modules/governance/views/components/blocks/CardVotingItem.vue +18 -0
  360. package/src/modules/governance/views/components/pages/Initiative.vue +22 -0
  361. package/src/modules/governance/views/components/pages/InitiativeCreate.vue +24 -0
  362. package/src/modules/governance/views/components/pages/Initiatives.vue +19 -0
  363. package/src/modules/governance/views/components/pages/Task.vue +23 -0
  364. package/src/modules/governance/views/components/pages/TaskCreate.vue +25 -0
  365. package/src/modules/governance/views/components/pages/Tasks.vue +19 -0
  366. package/src/modules/governance/views/components/pages/Voting.vue +30 -0
  367. package/src/modules/governance/views/components/pages/VotingCreate.vue +25 -0
  368. package/src/modules/governance/views/components/pages/Votings.vue +19 -0
  369. package/src/modules/governance/views/components/partials/RewardDisplay.vue +19 -0
  370. package/src/modules/governance/views/components/partials/VoteDisplay.vue +21 -0
  371. package/src/modules/governance/views/components/partials/VotingResult.vue +21 -0
  372. package/src/modules/governance/views/components/sections/FormInitiativeDetails.vue +37 -0
  373. package/src/modules/governance/views/components/sections/FormTaskDetails.vue +41 -0
  374. package/src/modules/governance/views/components/sections/FormVotingDetails.vue +37 -0
  375. package/src/modules/governance/views/components/sections/VoteForm.vue +29 -0
  376. package/src/modules/governance/views/store/initiatives.js +102 -0
  377. package/src/modules/governance/views/store/tasks.js +104 -0
  378. package/src/modules/governance/views/store/votes.js +115 -0
  379. package/src/modules/governance/views/store/votings.js +81 -0
  380. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  381. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +1 -1
  382. package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
  383. package/src/modules/orders/orders.client.js +4 -1
  384. package/src/modules/orders/orders.server.js +1 -0
  385. package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -1
  386. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  387. package/src/modules/organizations/components/pages/Department.vue +1 -1
  388. package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
  389. package/src/modules/organizations/components/pages/Members.vue +1 -1
  390. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  391. package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
  392. package/src/modules/organizations/controllers/organizations.controller.js +0 -2
  393. package/src/modules/organizations/models/department.model.js +7 -7
  394. package/src/modules/organizations/models/membership.model.js +5 -5
  395. package/src/modules/organizations/organizations.client.js +71 -16
  396. package/src/modules/organizations/organizations.server.js +43 -18
  397. package/src/modules/organizations/router/organizations.js +6 -13
  398. package/src/modules/pages/views/store/pages.js +1 -3
  399. package/src/modules/{marketplace → products}/components/layouts/Marketplace.vue +19 -19
  400. package/src/modules/{marketplace → products}/components/pages/Catalog.vue +0 -2
  401. package/src/modules/products/components/pages/Products.vue +2 -2
  402. package/src/modules/products/components/sections/FilterProducts.vue +1 -1
  403. package/src/modules/{marketplace → products}/components/sections/Filters.vue +12 -15
  404. package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
  405. package/src/modules/products/components/sections/MenuSection.vue +8 -9
  406. package/src/modules/products/components/sections/PopularProducts.vue +1 -1
  407. package/src/modules/products/models/category.model.js +3 -3
  408. package/src/modules/products/models/product.model.js +7 -7
  409. package/src/modules/products/products.client.js +95 -27
  410. package/src/modules/products/products.server.js +47 -16
  411. package/src/modules/products/router/marketplace.router.js +38 -0
  412. package/src/modules/products/router/products.router.js +72 -32
  413. package/src/modules/spots/components/layouts/Spots.vue +1 -1
  414. package/src/modules/spots/components/pages/Map.vue +1 -1
  415. package/src/modules/spots/components/pages/Spot.vue +1 -1
  416. package/src/modules/backoffice/router/admin.js +0 -51
  417. package/src/modules/landing/components/pages/404.vue +0 -3
  418. package/src/modules/landing/components/pages/Farming.vue +0 -226
  419. package/src/modules/landing/components/pages/Governance.vue +0 -144
  420. package/src/modules/landing/components/pages/Home.vue +0 -51
  421. package/src/modules/landing/components/pages/Hotel.vue +0 -43
  422. package/src/modules/landing/router/landing.js +0 -39
  423. package/src/modules/legal/components/pages/Legal.vue +0 -62
  424. package/src/modules/legal/components/pages/legal/Cookies.vue +0 -370
  425. package/src/modules/legal/components/pages/legal/EULA.vue +0 -2145
  426. package/src/modules/legal/components/pages/legal/Privacy.vue +0 -4284
  427. package/src/modules/legal/components/pages/legal/Terms.vue +0 -1283
  428. package/src/modules/legal/legal.client.js +0 -18
  429. package/src/modules/legal/router/legal.js +0 -59
  430. package/src/modules/marketplace/router/marketplace.js +0 -55
  431. package/src/modules/users/router/users.js +0 -90
  432. package/src/modules/users/users.client.js +0 -22
  433. package/src/modules/users/users.server.js +0 -13
  434. /package/src/modules/{users → auth/controllers}/middlewares/visitor.logger.js +0 -0
  435. /package/src/modules/{users/controllers/users.controller.js → auth/controllers/services/users.service.js} +0 -0
  436. /package/src/modules/{users → auth}/models/request.model.js +0 -0
  437. /package/src/modules/{users → auth}/models/user.model.js +0 -0
  438. /package/src/modules/{users → auth}/models/visitor.model.js +0 -0
  439. /package/src/modules/{users → auth/views}/components/blocks/CardUser.vue +0 -0
  440. /package/src/modules/{users → auth/views}/components/pages/ProfileBlogposts.vue +0 -0
  441. /package/src/modules/{users → auth/views}/components/pages/ProfileComments.vue +0 -0
  442. /package/src/modules/{users → auth/views}/components/pages/ProfileLikes.vue +0 -0
  443. /package/src/modules/{users → auth/views}/components/sections/ProfileCompletion.vue +0 -0
  444. /package/src/modules/{users → auth/views}/router/account.js +0 -0
  445. /package/src/modules/{users → auth/views}/store/users.js +0 -0
  446. /package/src/modules/{projects/controller → governance/controllers/factories}/projects.controller.js +0 -0
  447. /package/src/modules/{projects → governance/controllers}/routes/projects.routes.js +0 -0
  448. /package/src/modules/{projects → governance}/models/project.model.js +0 -0
  449. /package/src/modules/{projects → governance/views}/store/projects.js +0 -0
  450. /package/src/modules/{marketplace → products}/store/marketplace.js +0 -0
@@ -0,0 +1,176 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue = require("vue");
4
+ ;/* empty css */
5
+ const Field = require("../../../../../components/Field/Field.vue2.cjs");
6
+ const Checkbox = require("../../../../../components/Checkbox/Checkbox.vue.cjs");
7
+ const Button = require("../../../../../components/Button/Button.vue2.cjs");
8
+ const UploadImage = require("../../../../../components/UploadImage/UploadImage.vue.cjs");
9
+ const ProfileCompletion = require("../sections/ProfileCompletion.vue.cjs");
10
+ const vueRouter = require("vue-router");
11
+ const auth = require("../../store/auth.cjs");
12
+ const users = require("../../store/users.cjs");
13
+ const globals = require("../../../../globals/views/store/globals.cjs");
14
+ require("./ProfileEdit.vue2.cjs");
15
+ const _hoisted_1 = {
16
+ key: 0,
17
+ class: "pd-medium for-transition w-100"
18
+ };
19
+ const _hoisted_2 = { class: "mn-b-semi" };
20
+ const _hoisted_3 = { class: "mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex" };
21
+ const _sfc_main = {
22
+ __name: "ProfileEdit",
23
+ setup(__props) {
24
+ vue.ref(null);
25
+ const route = vueRouter.useRoute();
26
+ const router = vueRouter.useRouter();
27
+ vue.ref(null);
28
+ const show = vue.ref(false);
29
+ vue.onMounted(async () => {
30
+ await users.actions.read({ _id: route.params._id, user: auth.state.user._id });
31
+ show.value = true;
32
+ });
33
+ async function onSubmit() {
34
+ await users.actions.update(users.state.current);
35
+ }
36
+ async function onSubmitDelete() {
37
+ const confirmation = window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.");
38
+ if (!confirmation) {
39
+ return;
40
+ }
41
+ users.state.current.status = "removed";
42
+ await users.actions.update(users.state.current);
43
+ auth.actions.logout();
44
+ }
45
+ function redirectTo() {
46
+ router.replace({ name: "User Profile", params: { _id: users.state.current._id } });
47
+ }
48
+ return (_ctx, _cache) => {
49
+ return show.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
50
+ vue.unref(route).params._id === auth.state.user._id ? (vue.openBlock(), vue.createBlock(ProfileCompletion.default, {
51
+ key: 0,
52
+ user: auth.state.user._id,
53
+ target: users.state.current,
54
+ cta: false
55
+ }, null, 8, ["user", "target"])) : vue.createCommentVNode("", true),
56
+ _cache[14] || (_cache[14] = vue.createElementVNode("h3", { class: "mn-b-small" }, "Username", -1)),
57
+ vue.createVNode(Field.default, {
58
+ field: users.state.current.username,
59
+ "onUpdate:field": _cache[0] || (_cache[0] = ($event) => users.state.current.username = $event),
60
+ label: "@",
61
+ placeholder: "Not specified",
62
+ class: "mn-b-thin w-100 bg-light pd-medium radius-small",
63
+ disabled: "true",
64
+ validation: _ctx.organizationName
65
+ }, null, 8, ["field", "validation"]),
66
+ vue.createElementVNode("p", _hoisted_2, "Your username will be used for URL of profile like " + vue.toDisplayString(_ctx.API_URL) + "/users/username", 1),
67
+ _cache[15] || (_cache[15] = vue.createElementVNode("h3", { class: "mn-b-small" }, "Profile", -1)),
68
+ vue.createElementVNode("div", _hoisted_3, [
69
+ vue.createVNode(UploadImage.default, {
70
+ photo: users.state.current.profile.photo,
71
+ "onUpdate:photo": _cache[1] || (_cache[1] = ($event) => users.state.current.profile.photo = $event),
72
+ uploadPath: "users/" + users.state.current._id + "/avatars",
73
+ class: "h-4r w-4r aspect-1x1 o-hidden bg-white mn-b-thin radius-extra"
74
+ }, null, 8, ["photo", "uploadPath"]),
75
+ _cache[11] || (_cache[11] = vue.createElementVNode("h4", null, "Upload userpic", -1))
76
+ ]),
77
+ vue.createVNode(Field.default, {
78
+ field: users.state.current.profile.name,
79
+ "onUpdate:field": _cache[2] || (_cache[2] = ($event) => users.state.current.profile.name = $event),
80
+ label: "Name",
81
+ placeholder: "Not specified",
82
+ class: "mn-b-thin bg-light pd-medium radius-small",
83
+ validation: _ctx.organizationName
84
+ }, null, 8, ["field", "validation"]),
85
+ vue.createVNode(Field.default, {
86
+ field: users.state.current.profile.description,
87
+ "onUpdate:field": _cache[3] || (_cache[3] = ($event) => users.state.current.profile.description = $event),
88
+ label: "Description",
89
+ placeholder: "Not specified",
90
+ class: "mn-b-semi bg-light pd-medium radius-small",
91
+ validation: _ctx.organizationName
92
+ }, null, 8, ["field", "validation"]),
93
+ _cache[16] || (_cache[16] = vue.createElementVNode("h3", { class: "mn-b-small" }, "Socials", -1)),
94
+ _cache[17] || (_cache[17] = vue.createElementVNode("p", { class: "mn-b-thin" }, "Please provide only the username for social media profiles, without full links.", -1)),
95
+ vue.createVNode(Field.default, {
96
+ field: users.state.current.socials.instagram,
97
+ "onUpdate:field": _cache[4] || (_cache[4] = ($event) => users.state.current.socials.instagram = $event),
98
+ label: "Instagram",
99
+ placeholder: "",
100
+ class: "mn-b-thin bg-light pd-medium radius-small"
101
+ }, null, 8, ["field"]),
102
+ vue.createVNode(Field.default, {
103
+ field: users.state.current.socials.twitter,
104
+ "onUpdate:field": _cache[5] || (_cache[5] = ($event) => users.state.current.socials.twitter = $event),
105
+ label: "Twitter",
106
+ placeholder: "",
107
+ class: "mn-b-thin bg-light pd-medium radius-small"
108
+ }, null, 8, ["field"]),
109
+ vue.createVNode(Field.default, {
110
+ field: users.state.current.socials.facebook,
111
+ "onUpdate:field": _cache[6] || (_cache[6] = ($event) => users.state.current.socials.facebook = $event),
112
+ label: "Facebook",
113
+ placeholder: "",
114
+ class: "mn-b-thin bg-light pd-medium radius-small"
115
+ }, null, 8, ["field"]),
116
+ vue.createVNode(Field.default, {
117
+ field: users.state.current.socials.telegram,
118
+ "onUpdate:field": _cache[7] || (_cache[7] = ($event) => users.state.current.socials.telegram = $event),
119
+ label: "Telegram",
120
+ placeholder: "",
121
+ class: "mn-b-semi bg-light pd-medium radius-small"
122
+ }, null, 8, ["field"]),
123
+ _cache[18] || (_cache[18] = vue.createElementVNode("h3", { class: "mn-b-small" }, "Settings", -1)),
124
+ vue.createVNode(Checkbox.default, {
125
+ label: "Darkmode",
126
+ radio: globals.state.theme.darkmode,
127
+ "onUpdate:radio": _cache[8] || (_cache[8] = (event) => globals.actions.toggleTheme()),
128
+ class: "mn-b-semi w-100 bg-light t-black pd-medium radius-small"
129
+ }, null, 8, ["radio"]),
130
+ _cache[19] || (_cache[19] = vue.createElementVNode("h3", { class: "mn-b-small" }, "Account", -1)),
131
+ vue.createVNode(Field.default, {
132
+ field: users.state.current.phone,
133
+ "onUpdate:field": _cache[9] || (_cache[9] = ($event) => users.state.current.phone = $event),
134
+ label: "Phone",
135
+ placeholder: "Not specified",
136
+ class: "mn-b-thin bg-light pd-medium mn-b-thin radius-small",
137
+ disabled: "true",
138
+ validation: _ctx.organizationName
139
+ }, null, 8, ["field", "validation"]),
140
+ vue.createVNode(Field.default, {
141
+ field: users.state.current.email,
142
+ "onUpdate:field": _cache[10] || (_cache[10] = ($event) => users.state.current.email = $event),
143
+ label: "Email",
144
+ placeholder: "Not specified",
145
+ class: "mn-b-semi bg-light pd-medium radius-small",
146
+ disabled: true,
147
+ validation: _ctx.organizationName
148
+ }, null, 8, ["field", "validation"]),
149
+ vue.createVNode(Button.default, {
150
+ submit: onSubmit,
151
+ callback: redirectTo,
152
+ class: "mn-b-thin bg-main w-100"
153
+ }, {
154
+ default: vue.withCtx(() => _cache[12] || (_cache[12] = [
155
+ vue.createTextVNode(" Save ")
156
+ ])),
157
+ _: 1
158
+ }),
159
+ vue.createVNode(Button.default, {
160
+ submit: onSubmitDelete,
161
+ callback: _ctx.a = () => {
162
+ vue.unref(router).push({ name: "Sign In" });
163
+ },
164
+ class: "mn-b-thin w-100 bg-red t-white"
165
+ }, {
166
+ default: vue.withCtx(() => _cache[13] || (_cache[13] = [
167
+ vue.createTextVNode(" Delete Account ")
168
+ ])),
169
+ _: 1
170
+ }, 8, ["callback"])
171
+ ])) : vue.createCommentVNode("", true);
172
+ };
173
+ }
174
+ };
175
+ exports.default = _sfc_main;
176
+ //# sourceMappingURL=ProfileEdit.vue.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileEdit.vue.cjs","sources":["../../../../../../../../src/modules/auth/views/components/pages/ProfileEdit.vue"],"sourcesContent":["<template>\n\t<div v-if=\"show\" class=\"pd-medium for-transition w-100\">\n \n <ProfileCompletion \n v-if=\"route.params._id === auth.state.user._id\" \n :user=\"auth.state.user._id\"\n :target=\"users.state.current\"\n :cta=\"false\"\n />\n <!-- -->\n <h3 class=\"mn-b-small\">Username</h3>\n\n <Field \n v-model:field=\"users.state.current.username\" \n label=\"@\" \n placeholder=\"Not specified\" \n class=\"mn-b-thin w-100 bg-light pd-medium radius-small\" \n disabled=\"true\"\n :validation=\"organizationName\" \n />\n\n <p class=\"mn-b-semi\">Your username will be used for URL of profile like {{API_URL}}/users/username</p>\n <!-- -->\n <h3 class=\"mn-b-small\">Profile</h3>\n\n <div class=\"mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex\">\n <UploadImage \n v-model:photo=\"users.state.current.profile.photo\"\n :uploadPath=\"'users/' + users.state.current._id + '/avatars'\"\n class=\"h-4r w-4r aspect-1x1 o-hidden bg-white mn-b-thin radius-extra\" \n />\n <h4>Upload userpic</h4>\n </div>\n\n <Field \n v-model:field=\"users.state.current.profile.name\" \n label=\"Name\" \n placeholder=\"Not specified\" \n class=\"mn-b-thin bg-light pd-medium radius-small\" \n :validation=\"organizationName\" \n />\n\n <Field \n v-model:field=\"users.state.current.profile.description\" \n label=\"Description\" \n placeholder=\"Not specified\" \n class=\"mn-b-semi bg-light pd-medium radius-small\" \n :validation=\"organizationName\" \n />\n\n <!-- <p class=\"mn-b-thin\">Select your birthday if you want to receive your birthday gift.</p>\n \n <Field \n v-model:field=\"users.state.current.birthday\" \n label=\"Birthday\" \n type=\"date\"\n placeholder=\"Not specified\" \n class=\"mn-b-semi bg-light pd-medium radius-small\" \n :validation=\"organizationName\" \n /> -->\n <h3 class=\"mn-b-small\">Socials</h3>\n <p class=\"mn-b-thin\">Please provide only the username for social media profiles, without full links.</p>\n\n <Field \n v-model:field=\"users.state.current.socials.instagram\"\n label=\"Instagram\" \n placeholder=\"\" \n class=\"mn-b-thin bg-light pd-medium radius-small\" \n />\n <Field \n v-model:field=\"users.state.current.socials.twitter\"\n label=\"Twitter\" \n placeholder=\"\" \n class=\"mn-b-thin bg-light pd-medium radius-small\" \n />\n <Field \n v-model:field=\"users.state.current.socials.facebook\"\n label=\"Facebook\" \n placeholder=\"\" \n class=\"mn-b-thin bg-light pd-medium radius-small\" \n />\n <Field \n v-model:field=\"users.state.current.socials.telegram\"\n label=\"Telegram\" \n placeholder=\"\" \n class=\"mn-b-semi bg-light pd-medium radius-small\" \n />\n <h3 class=\"mn-b-small\">Settings</h3>\n <Checkbox \n :label=\"'Darkmode'\"\n :radio=\"globals.state.theme.darkmode\"\n @update:radio=\"event => globals.actions.toggleTheme()\"\n class=\"mn-b-semi w-100 bg-light t-black pd-medium radius-small\"\n />\n\n <!-- -->\n <h3 class=\"mn-b-small\">Account</h3>\n \n <Field \n v-model:field=\"users.state.current.phone\" \n label=\"Phone\" \n placeholder=\"Not specified\" \n class=\"mn-b-thin bg-light pd-medium mn-b-thin radius-small\" \n disabled=\"true\"\n :validation=\"organizationName\" \n />\n\n <Field \n v-model:field=\"users.state.current.email\" \n label=\"Email\" \n placeholder=\"Not specified\" \n class=\"mn-b-semi bg-light pd-medium radius-small\" \n :disabled=\"true\"\n :validation=\"organizationName\" \n />\n\n <Button \n :submit=\"onSubmit\" \n :callback=\"redirectTo\" \n class=\"mn-b-thin bg-main w-100\"\n > \n Save\n </Button>\n\n\t\t<Button\n :submit=\"onSubmitDelete\" \n :callback=\"a = () => {router.push({name: 'Sign In'})}\" \n class=\"mn-b-thin w-100 bg-red t-white\"\n >\n Delete Account\n </Button>\n\t</div>\n</template>\n\n<script setup>\n // Import components\n import Tab from '@pf/src/components/Tab/Tab.vue'\n import Field from '@pf/src/components/Field/Field.vue'\n import Checkbox from '@pf/src/components/Checkbox/Checkbox.vue'\n import Button from '@pf/src/components/Button/Button.vue'\n import UploadImage from '@pf/src/components/UploadImage/UploadImage.vue';\n\n import ProfileCompletion from '@pf/src/modules/auth/views/components/sections/ProfileCompletion.vue'\n // Import libs\n import { computed, onMounted, ref, onBeforeMount } from 'vue'\n import { useRoute, useRouter } from 'vue-router'\n // Import state\n import * as auth from '@pf/src/modules/auth/views/store/auth'\n import * as users from '@pf/src/modules/auth/views/store/users'\n import * as globals from '@pf/src/modules/globals/views/store/globals'\n // Import validation\n import * as inputsValidation from '@pf/src/modules/auth/views/validations/inputs.validation'\n const passswordValidation = ref(null)\n // Accessing router\n const route = useRoute()\n const router = useRouter()\n\n const user = ref(null)\n const show = ref(false)\n\n\n onMounted(async () => {\n await users.actions.read({ _id: route.params._id, user: auth.state.user._id });\n show.value = true\n })\n // Methods\n async function onSubmit() {\n await users.actions.update(users.state.current)\n }\n\n async function onSubmitDelete() {\n const confirmation = window.confirm(\"Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.\");\n \n if (!confirmation) {\n return;\n }\n\n users.state.current.status = 'removed'\n await users.actions.update(users.state.current)\n auth.actions.logout()\n }\n function redirectTo () {\n router.replace({ name: 'User Profile', params: { _id: users.state.current._id }});\n }\n</script>\n\n<style lang=\"scss\">\n\t#header {\n\t\t// height: 3rem;\n\t}\n</style>\n"],"names":["ref","useRoute","useRouter","onMounted","users.actions","auth.state","users.state","auth.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAwJ8BA,QAAAA,IAAI,IAAI;AAEpC,UAAM,QAAQC,UAAAA,SAAU;AACxB,UAAM,SAASC,UAAAA,UAAW;AAEbF,QAAAA,IAAI,IAAI;AACrB,UAAM,OAAOA,IAAG,IAAC,KAAK;AAGtBG,QAAAA,UAAU,YAAY;AACpB,YAAMC,cAAc,KAAK,EAAE,KAAK,MAAM,OAAO,KAAK,MAAMC,KAAU,MAAC,KAAK,IAAK,CAAA;AAC7E,WAAK,QAAQ;AAAA,IACjB,CAAG;AAED,mBAAe,WAAW;AACxB,YAAMD,cAAc,OAAOE,MAAW,MAAC,OAAO;AAAA,IAC/C;AAED,mBAAe,iBAAiB;AAC9B,YAAM,eAAe,OAAO,QAAQ,oHAAoH;AAExJ,UAAI,CAAC,cAAc;AACf;AAAA,MACH;AAEDA,kBAAY,QAAQ,SAAS;AAC7B,YAAMF,cAAc,OAAOE,MAAW,MAAC,OAAO;AAC9CC,WAAAA,QAAa,OAAQ;AAAA,IACtB;AACD,aAAS,aAAc;AACrB,aAAO,QAAQ,EAAE,MAAM,gBAAgB,QAAQ,EAAE,KAAKD,YAAY,QAAQ,IAAG,EAAE,CAAC;AAAA,IACjF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,176 @@
1
+ import { ref, onMounted, openBlock, createElementBlock, unref, createBlock, createCommentVNode, createElementVNode, createVNode, toDisplayString, withCtx, createTextVNode } from "vue";
2
+ /* empty css */
3
+ import Field from "../../../../../components/Field/Field.vue2.js";
4
+ import _sfc_main$3 from "../../../../../components/Checkbox/Checkbox.vue.js";
5
+ import _sfc_main$4 from "../../../../../components/Button/Button.vue2.js";
6
+ import _sfc_main$2 from "../../../../../components/UploadImage/UploadImage.vue.js";
7
+ import _sfc_main$1 from "../sections/ProfileCompletion.vue.js";
8
+ import { useRoute, useRouter } from "vue-router";
9
+ import { state, actions as actions$2 } from "../../store/auth.js";
10
+ import { actions, state as state$1 } from "../../store/users.js";
11
+ import { state as state$2, actions as actions$1 } from "../../../../globals/views/store/globals.js";
12
+ import "./ProfileEdit.vue2.js";
13
+ const _hoisted_1 = {
14
+ key: 0,
15
+ class: "pd-medium for-transition w-100"
16
+ };
17
+ const _hoisted_2 = { class: "mn-b-semi" };
18
+ const _hoisted_3 = { class: "mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex" };
19
+ const _sfc_main = {
20
+ __name: "ProfileEdit",
21
+ setup(__props) {
22
+ ref(null);
23
+ const route = useRoute();
24
+ const router = useRouter();
25
+ ref(null);
26
+ const show = ref(false);
27
+ onMounted(async () => {
28
+ await actions.read({ _id: route.params._id, user: state.user._id });
29
+ show.value = true;
30
+ });
31
+ async function onSubmit() {
32
+ await actions.update(state$1.current);
33
+ }
34
+ async function onSubmitDelete() {
35
+ const confirmation = window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.");
36
+ if (!confirmation) {
37
+ return;
38
+ }
39
+ state$1.current.status = "removed";
40
+ await actions.update(state$1.current);
41
+ actions$2.logout();
42
+ }
43
+ function redirectTo() {
44
+ router.replace({ name: "User Profile", params: { _id: state$1.current._id } });
45
+ }
46
+ return (_ctx, _cache) => {
47
+ return show.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
48
+ unref(route).params._id === state.user._id ? (openBlock(), createBlock(_sfc_main$1, {
49
+ key: 0,
50
+ user: state.user._id,
51
+ target: state$1.current,
52
+ cta: false
53
+ }, null, 8, ["user", "target"])) : createCommentVNode("", true),
54
+ _cache[14] || (_cache[14] = createElementVNode("h3", { class: "mn-b-small" }, "Username", -1)),
55
+ createVNode(Field, {
56
+ field: state$1.current.username,
57
+ "onUpdate:field": _cache[0] || (_cache[0] = ($event) => state$1.current.username = $event),
58
+ label: "@",
59
+ placeholder: "Not specified",
60
+ class: "mn-b-thin w-100 bg-light pd-medium radius-small",
61
+ disabled: "true",
62
+ validation: _ctx.organizationName
63
+ }, null, 8, ["field", "validation"]),
64
+ createElementVNode("p", _hoisted_2, "Your username will be used for URL of profile like " + toDisplayString(_ctx.API_URL) + "/users/username", 1),
65
+ _cache[15] || (_cache[15] = createElementVNode("h3", { class: "mn-b-small" }, "Profile", -1)),
66
+ createElementVNode("div", _hoisted_3, [
67
+ createVNode(_sfc_main$2, {
68
+ photo: state$1.current.profile.photo,
69
+ "onUpdate:photo": _cache[1] || (_cache[1] = ($event) => state$1.current.profile.photo = $event),
70
+ uploadPath: "users/" + state$1.current._id + "/avatars",
71
+ class: "h-4r w-4r aspect-1x1 o-hidden bg-white mn-b-thin radius-extra"
72
+ }, null, 8, ["photo", "uploadPath"]),
73
+ _cache[11] || (_cache[11] = createElementVNode("h4", null, "Upload userpic", -1))
74
+ ]),
75
+ createVNode(Field, {
76
+ field: state$1.current.profile.name,
77
+ "onUpdate:field": _cache[2] || (_cache[2] = ($event) => state$1.current.profile.name = $event),
78
+ label: "Name",
79
+ placeholder: "Not specified",
80
+ class: "mn-b-thin bg-light pd-medium radius-small",
81
+ validation: _ctx.organizationName
82
+ }, null, 8, ["field", "validation"]),
83
+ createVNode(Field, {
84
+ field: state$1.current.profile.description,
85
+ "onUpdate:field": _cache[3] || (_cache[3] = ($event) => state$1.current.profile.description = $event),
86
+ label: "Description",
87
+ placeholder: "Not specified",
88
+ class: "mn-b-semi bg-light pd-medium radius-small",
89
+ validation: _ctx.organizationName
90
+ }, null, 8, ["field", "validation"]),
91
+ _cache[16] || (_cache[16] = createElementVNode("h3", { class: "mn-b-small" }, "Socials", -1)),
92
+ _cache[17] || (_cache[17] = createElementVNode("p", { class: "mn-b-thin" }, "Please provide only the username for social media profiles, without full links.", -1)),
93
+ createVNode(Field, {
94
+ field: state$1.current.socials.instagram,
95
+ "onUpdate:field": _cache[4] || (_cache[4] = ($event) => state$1.current.socials.instagram = $event),
96
+ label: "Instagram",
97
+ placeholder: "",
98
+ class: "mn-b-thin bg-light pd-medium radius-small"
99
+ }, null, 8, ["field"]),
100
+ createVNode(Field, {
101
+ field: state$1.current.socials.twitter,
102
+ "onUpdate:field": _cache[5] || (_cache[5] = ($event) => state$1.current.socials.twitter = $event),
103
+ label: "Twitter",
104
+ placeholder: "",
105
+ class: "mn-b-thin bg-light pd-medium radius-small"
106
+ }, null, 8, ["field"]),
107
+ createVNode(Field, {
108
+ field: state$1.current.socials.facebook,
109
+ "onUpdate:field": _cache[6] || (_cache[6] = ($event) => state$1.current.socials.facebook = $event),
110
+ label: "Facebook",
111
+ placeholder: "",
112
+ class: "mn-b-thin bg-light pd-medium radius-small"
113
+ }, null, 8, ["field"]),
114
+ createVNode(Field, {
115
+ field: state$1.current.socials.telegram,
116
+ "onUpdate:field": _cache[7] || (_cache[7] = ($event) => state$1.current.socials.telegram = $event),
117
+ label: "Telegram",
118
+ placeholder: "",
119
+ class: "mn-b-semi bg-light pd-medium radius-small"
120
+ }, null, 8, ["field"]),
121
+ _cache[18] || (_cache[18] = createElementVNode("h3", { class: "mn-b-small" }, "Settings", -1)),
122
+ createVNode(_sfc_main$3, {
123
+ label: "Darkmode",
124
+ radio: state$2.theme.darkmode,
125
+ "onUpdate:radio": _cache[8] || (_cache[8] = (event) => actions$1.toggleTheme()),
126
+ class: "mn-b-semi w-100 bg-light t-black pd-medium radius-small"
127
+ }, null, 8, ["radio"]),
128
+ _cache[19] || (_cache[19] = createElementVNode("h3", { class: "mn-b-small" }, "Account", -1)),
129
+ createVNode(Field, {
130
+ field: state$1.current.phone,
131
+ "onUpdate:field": _cache[9] || (_cache[9] = ($event) => state$1.current.phone = $event),
132
+ label: "Phone",
133
+ placeholder: "Not specified",
134
+ class: "mn-b-thin bg-light pd-medium mn-b-thin radius-small",
135
+ disabled: "true",
136
+ validation: _ctx.organizationName
137
+ }, null, 8, ["field", "validation"]),
138
+ createVNode(Field, {
139
+ field: state$1.current.email,
140
+ "onUpdate:field": _cache[10] || (_cache[10] = ($event) => state$1.current.email = $event),
141
+ label: "Email",
142
+ placeholder: "Not specified",
143
+ class: "mn-b-semi bg-light pd-medium radius-small",
144
+ disabled: true,
145
+ validation: _ctx.organizationName
146
+ }, null, 8, ["field", "validation"]),
147
+ createVNode(_sfc_main$4, {
148
+ submit: onSubmit,
149
+ callback: redirectTo,
150
+ class: "mn-b-thin bg-main w-100"
151
+ }, {
152
+ default: withCtx(() => _cache[12] || (_cache[12] = [
153
+ createTextVNode(" Save ")
154
+ ])),
155
+ _: 1
156
+ }),
157
+ createVNode(_sfc_main$4, {
158
+ submit: onSubmitDelete,
159
+ callback: _ctx.a = () => {
160
+ unref(router).push({ name: "Sign In" });
161
+ },
162
+ class: "mn-b-thin w-100 bg-red t-white"
163
+ }, {
164
+ default: withCtx(() => _cache[13] || (_cache[13] = [
165
+ createTextVNode(" Delete Account ")
166
+ ])),
167
+ _: 1
168
+ }, 8, ["callback"])
169
+ ])) : createCommentVNode("", true);
170
+ };
171
+ }
172
+ };
173
+ export {
174
+ _sfc_main as default
175
+ };
176
+ //# sourceMappingURL=ProfileEdit.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileEdit.vue.js","sources":["../../../../../../../../src/modules/auth/views/components/pages/ProfileEdit.vue"],"sourcesContent":["<template>\n\t<div v-if=\"show\" class=\"pd-medium for-transition w-100\">\n \n <ProfileCompletion \n v-if=\"route.params._id === auth.state.user._id\" \n :user=\"auth.state.user._id\"\n :target=\"users.state.current\"\n :cta=\"false\"\n />\n <!-- -->\n <h3 class=\"mn-b-small\">Username</h3>\n\n <Field \n v-model:field=\"users.state.current.username\" \n label=\"@\" \n placeholder=\"Not specified\" \n class=\"mn-b-thin w-100 bg-light pd-medium radius-small\" \n disabled=\"true\"\n :validation=\"organizationName\" \n />\n\n <p class=\"mn-b-semi\">Your username will be used for URL of profile like {{API_URL}}/users/username</p>\n <!-- -->\n <h3 class=\"mn-b-small\">Profile</h3>\n\n <div class=\"mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex\">\n <UploadImage \n v-model:photo=\"users.state.current.profile.photo\"\n :uploadPath=\"'users/' + users.state.current._id + '/avatars'\"\n class=\"h-4r w-4r aspect-1x1 o-hidden bg-white mn-b-thin radius-extra\" \n />\n <h4>Upload userpic</h4>\n </div>\n\n <Field \n v-model:field=\"users.state.current.profile.name\" \n label=\"Name\" \n placeholder=\"Not specified\" \n class=\"mn-b-thin bg-light pd-medium radius-small\" \n :validation=\"organizationName\" \n />\n\n <Field \n v-model:field=\"users.state.current.profile.description\" \n label=\"Description\" \n placeholder=\"Not specified\" \n class=\"mn-b-semi bg-light pd-medium radius-small\" \n :validation=\"organizationName\" \n />\n\n <!-- <p class=\"mn-b-thin\">Select your birthday if you want to receive your birthday gift.</p>\n \n <Field \n v-model:field=\"users.state.current.birthday\" \n label=\"Birthday\" \n type=\"date\"\n placeholder=\"Not specified\" \n class=\"mn-b-semi bg-light pd-medium radius-small\" \n :validation=\"organizationName\" \n /> -->\n <h3 class=\"mn-b-small\">Socials</h3>\n <p class=\"mn-b-thin\">Please provide only the username for social media profiles, without full links.</p>\n\n <Field \n v-model:field=\"users.state.current.socials.instagram\"\n label=\"Instagram\" \n placeholder=\"\" \n class=\"mn-b-thin bg-light pd-medium radius-small\" \n />\n <Field \n v-model:field=\"users.state.current.socials.twitter\"\n label=\"Twitter\" \n placeholder=\"\" \n class=\"mn-b-thin bg-light pd-medium radius-small\" \n />\n <Field \n v-model:field=\"users.state.current.socials.facebook\"\n label=\"Facebook\" \n placeholder=\"\" \n class=\"mn-b-thin bg-light pd-medium radius-small\" \n />\n <Field \n v-model:field=\"users.state.current.socials.telegram\"\n label=\"Telegram\" \n placeholder=\"\" \n class=\"mn-b-semi bg-light pd-medium radius-small\" \n />\n <h3 class=\"mn-b-small\">Settings</h3>\n <Checkbox \n :label=\"'Darkmode'\"\n :radio=\"globals.state.theme.darkmode\"\n @update:radio=\"event => globals.actions.toggleTheme()\"\n class=\"mn-b-semi w-100 bg-light t-black pd-medium radius-small\"\n />\n\n <!-- -->\n <h3 class=\"mn-b-small\">Account</h3>\n \n <Field \n v-model:field=\"users.state.current.phone\" \n label=\"Phone\" \n placeholder=\"Not specified\" \n class=\"mn-b-thin bg-light pd-medium mn-b-thin radius-small\" \n disabled=\"true\"\n :validation=\"organizationName\" \n />\n\n <Field \n v-model:field=\"users.state.current.email\" \n label=\"Email\" \n placeholder=\"Not specified\" \n class=\"mn-b-semi bg-light pd-medium radius-small\" \n :disabled=\"true\"\n :validation=\"organizationName\" \n />\n\n <Button \n :submit=\"onSubmit\" \n :callback=\"redirectTo\" \n class=\"mn-b-thin bg-main w-100\"\n > \n Save\n </Button>\n\n\t\t<Button\n :submit=\"onSubmitDelete\" \n :callback=\"a = () => {router.push({name: 'Sign In'})}\" \n class=\"mn-b-thin w-100 bg-red t-white\"\n >\n Delete Account\n </Button>\n\t</div>\n</template>\n\n<script setup>\n // Import components\n import Tab from '@pf/src/components/Tab/Tab.vue'\n import Field from '@pf/src/components/Field/Field.vue'\n import Checkbox from '@pf/src/components/Checkbox/Checkbox.vue'\n import Button from '@pf/src/components/Button/Button.vue'\n import UploadImage from '@pf/src/components/UploadImage/UploadImage.vue';\n\n import ProfileCompletion from '@pf/src/modules/auth/views/components/sections/ProfileCompletion.vue'\n // Import libs\n import { computed, onMounted, ref, onBeforeMount } from 'vue'\n import { useRoute, useRouter } from 'vue-router'\n // Import state\n import * as auth from '@pf/src/modules/auth/views/store/auth'\n import * as users from '@pf/src/modules/auth/views/store/users'\n import * as globals from '@pf/src/modules/globals/views/store/globals'\n // Import validation\n import * as inputsValidation from '@pf/src/modules/auth/views/validations/inputs.validation'\n const passswordValidation = ref(null)\n // Accessing router\n const route = useRoute()\n const router = useRouter()\n\n const user = ref(null)\n const show = ref(false)\n\n\n onMounted(async () => {\n await users.actions.read({ _id: route.params._id, user: auth.state.user._id });\n show.value = true\n })\n // Methods\n async function onSubmit() {\n await users.actions.update(users.state.current)\n }\n\n async function onSubmitDelete() {\n const confirmation = window.confirm(\"Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.\");\n \n if (!confirmation) {\n return;\n }\n\n users.state.current.status = 'removed'\n await users.actions.update(users.state.current)\n auth.actions.logout()\n }\n function redirectTo () {\n router.replace({ name: 'User Profile', params: { _id: users.state.current._id }});\n }\n</script>\n\n<style lang=\"scss\">\n\t#header {\n\t\t// height: 3rem;\n\t}\n</style>\n"],"names":["users.actions","auth.state","users.state","auth.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwJ8B,QAAI,IAAI;AAEpC,UAAM,QAAQ,SAAU;AACxB,UAAM,SAAS,UAAW;AAEb,QAAI,IAAI;AACrB,UAAM,OAAO,IAAI,KAAK;AAGtB,cAAU,YAAY;AACpB,YAAMA,QAAc,KAAK,EAAE,KAAK,MAAM,OAAO,KAAK,MAAMC,MAAW,KAAK,IAAK,CAAA;AAC7E,WAAK,QAAQ;AAAA,IACjB,CAAG;AAED,mBAAe,WAAW;AACxB,YAAMD,QAAc,OAAOE,QAAY,OAAO;AAAA,IAC/C;AAED,mBAAe,iBAAiB;AAC9B,YAAM,eAAe,OAAO,QAAQ,oHAAoH;AAExJ,UAAI,CAAC,cAAc;AACf;AAAA,MACH;AAEDA,cAAY,QAAQ,SAAS;AAC7B,YAAMF,QAAc,OAAOE,QAAY,OAAO;AAC9CC,gBAAa,OAAQ;AAAA,IACtB;AACD,aAAS,aAAc;AACrB,aAAO,QAAQ,EAAE,MAAM,gBAAgB,QAAQ,EAAE,KAAKD,QAAY,QAAQ,IAAG,EAAE,CAAC;AAAA,IACjF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=ProfileEdit.vue2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileEdit.vue2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=ProfileEdit.vue2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileEdit.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -4,7 +4,7 @@ const vue = require("vue");
4
4
  const Tab = require("../../../../../components/Tab/Tab.vue2.cjs");
5
5
  const Field = require("../../../../../components/Field/Field.vue2.cjs");
6
6
  const FieldPhone = require("../../../../../components/FieldPhone/FieldPhone.vue.cjs");
7
- const Button = require("../../../../../components/Button/Button.vue.cjs");
7
+ const Button = require("../../../../../components/Button/Button.vue2.cjs");
8
8
  const vueRouter = require("vue-router");
9
9
  const vueI18n = require("vue-i18n");
10
10
  const ResetPassword = require("../../localization/ResetPassword.json.cjs");
@@ -2,7 +2,7 @@ import { ref, openBlock, createElementBlock, createElementVNode, toDisplayString
2
2
  import _sfc_main$1 from "../../../../../components/Tab/Tab.vue2.js";
3
3
  import Field from "../../../../../components/Field/Field.vue2.js";
4
4
  import _sfc_main$2 from "../../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import _sfc_main$3 from "../../../../../components/Button/Button.vue.js";
5
+ import _sfc_main$3 from "../../../../../components/Button/Button.vue2.js";
6
6
  import { useRoute, useRouter } from "vue-router";
7
7
  import { useI18n } from "vue-i18n";
8
8
  import text from "../../localization/ResetPassword.json.js";
@@ -4,7 +4,7 @@ const vue = require("vue");
4
4
  const Tab = require("../../../../../components/Tab/Tab.vue2.cjs");
5
5
  const Field = require("../../../../../components/Field/Field.vue2.cjs");
6
6
  const FieldPhone = require("../../../../../components/FieldPhone/FieldPhone.vue.cjs");
7
- const Button = require("../../../../../components/Button/Button.vue.cjs");
7
+ const Button = require("../../../../../components/Button/Button.vue2.cjs");
8
8
  const vueRouter = require("vue-router");
9
9
  const vueI18n = require("vue-i18n");
10
10
  const SignIn = require("../../localization/SignIn.json.cjs");
@@ -2,7 +2,7 @@ import { ref, onMounted, resolveComponent, openBlock, createElementBlock, create
2
2
  import _sfc_main$1 from "../../../../../components/Tab/Tab.vue2.js";
3
3
  import Field from "../../../../../components/Field/Field.vue2.js";
4
4
  import _sfc_main$2 from "../../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import _sfc_main$3 from "../../../../../components/Button/Button.vue.js";
5
+ import _sfc_main$3 from "../../../../../components/Button/Button.vue2.js";
6
6
  import { useRoute, useRouter } from "vue-router";
7
7
  import { useI18n } from "vue-i18n";
8
8
  import text from "../../localization/SignIn.json.js";
@@ -4,7 +4,7 @@ const vue = require("vue");
4
4
  const Tab = require("../../../../../components/Tab/Tab.vue2.cjs");
5
5
  const Field = require("../../../../../components/Field/Field.vue2.cjs");
6
6
  const FieldPhone = require("../../../../../components/FieldPhone/FieldPhone.vue.cjs");
7
- const Button = require("../../../../../components/Button/Button.vue.cjs");
7
+ const Button = require("../../../../../components/Button/Button.vue2.cjs");
8
8
  const vueRouter = require("vue-router");
9
9
  const vueI18n = require("vue-i18n");
10
10
  const SignUp = require("../../localization/SignUp.json.cjs");
@@ -2,7 +2,7 @@ import { ref, resolveComponent, openBlock, createElementBlock, createElementVNod
2
2
  import _sfc_main$1 from "../../../../../components/Tab/Tab.vue2.js";
3
3
  import Field from "../../../../../components/Field/Field.vue2.js";
4
4
  import _sfc_main$2 from "../../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import _sfc_main$3 from "../../../../../components/Button/Button.vue.js";
5
+ import _sfc_main$3 from "../../../../../components/Button/Button.vue2.js";
6
6
  import { useRoute, useRouter } from "vue-router";
7
7
  import { useI18n } from "vue-i18n";
8
8
  import text from "../../localization/SignUp.json.js";
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue = require("vue");
4
+ const users = require("../../store/users.cjs");
5
+ const Marquee = require("../../../../../components/Marquee/Marquee.vue.cjs");
6
+ const CardUser = require("../blocks/CardUser.vue.cjs");
7
+ ;/* empty css */
8
+ const _hoisted_1 = { class: "o-hidden w-100" };
9
+ const _hoisted_2 = { class: "flex flex-nowrap" };
10
+ const _hoisted_3 = { class: "flex flex-nowrap" };
11
+ const _hoisted_4 = { class: "flex flex-nowrap" };
12
+ const _sfc_main = {
13
+ __name: "FeaturedUsers",
14
+ setup(__props) {
15
+ const usersList = vue.ref([]);
16
+ vue.onMounted(async () => {
17
+ usersList.value = await users.actions.read({
18
+ limit: 25
19
+ });
20
+ });
21
+ return (_ctx, _cache) => {
22
+ const _component_router_link = vue.resolveComponent("router-link");
23
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
24
+ _cache[1] || (_cache[1] = vue.createElementVNode("div", { class: "flex-center flex w-100" }, [
25
+ vue.createElementVNode("h2", { class: "t-center h2 w-max-50 mn-b-big" }, " Ask the hundreds shaping your entertainment for decades ")
26
+ ], -1)),
27
+ vue.createVNode(Marquee.default, {
28
+ class: "mn-b-thin",
29
+ gradient: true,
30
+ gradientColor: "var(--white)",
31
+ gradientLength: "10%",
32
+ direction: "normal",
33
+ pauseOnHover: false,
34
+ clone: true
35
+ }, {
36
+ default: vue.withCtx(() => [
37
+ vue.createElementVNode("div", _hoisted_2, [
38
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(usersList.value.slice(0, 6), (user) => {
39
+ return vue.openBlock(), vue.createBlock(CardUser.default, {
40
+ class: "mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium",
41
+ user,
42
+ photo: user.profile.photo,
43
+ name: user.profile.name || user.phone || user.username,
44
+ phone: "DJ"
45
+ }, null, 8, ["user", "photo", "name"]);
46
+ }), 256))
47
+ ])
48
+ ]),
49
+ _: 1
50
+ }),
51
+ vue.createVNode(Marquee.default, {
52
+ class: "mn-b-thin",
53
+ gradient: true,
54
+ gradientColor: "var(--white)",
55
+ gradientLength: "10%",
56
+ direction: "reverse",
57
+ pauseOnHover: false,
58
+ clone: true
59
+ }, {
60
+ default: vue.withCtx(() => [
61
+ vue.createElementVNode("div", _hoisted_3, [
62
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(usersList.value.slice(7, 14), (user) => {
63
+ return vue.openBlock(), vue.createBlock(CardUser.default, {
64
+ class: "mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium",
65
+ user,
66
+ photo: user.profile.photo,
67
+ name: user.profile.name || user.phone || user.username,
68
+ phone: "DJ"
69
+ }, null, 8, ["user", "photo", "name"]);
70
+ }), 256))
71
+ ])
72
+ ]),
73
+ _: 1
74
+ }),
75
+ vue.createVNode(Marquee.default, {
76
+ class: "mn-b-big",
77
+ gradient: true,
78
+ gradientColor: "var(--white)",
79
+ gradientLength: "10%",
80
+ direction: "normal",
81
+ pauseOnHover: false,
82
+ clone: true
83
+ }, {
84
+ default: vue.withCtx(() => [
85
+ vue.createElementVNode("div", _hoisted_4, [
86
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(usersList.value.slice(15, 22), (user) => {
87
+ return vue.openBlock(), vue.createBlock(CardUser.default, {
88
+ class: "mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium",
89
+ user,
90
+ photo: user.profile.photo,
91
+ name: user.profile.name || user.phone || user.username,
92
+ phone: "DJ"
93
+ }, null, 8, ["user", "photo", "name"]);
94
+ }), 256))
95
+ ])
96
+ ]),
97
+ _: 1
98
+ }),
99
+ _cache[2] || (_cache[2] = vue.createElementVNode("p", { class: "w-m-33r mn-r-auto mn-l-auto t-center mn-b-small p-big" }, " Together, we're shaping the future of the globals music community. ", -1)),
100
+ vue.createVNode(_component_router_link, {
101
+ to: { name: "Sign In" },
102
+ class: "bg-black mn-r-auto mn-l-auto t-medium t-white button"
103
+ }, {
104
+ default: vue.withCtx(() => _cache[0] || (_cache[0] = [
105
+ vue.createTextVNode(" Join Now ")
106
+ ])),
107
+ _: 1
108
+ })
109
+ ]);
110
+ };
111
+ }
112
+ };
113
+ exports.default = _sfc_main;
114
+ //# sourceMappingURL=FeaturedUsers.vue.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeaturedUsers.vue.cjs","sources":["../../../../../../../../src/modules/auth/views/components/sections/FeaturedUsers.vue"],"sourcesContent":["<template>\n <div class=\"o-hidden w-100\">\n <div class=\"flex-center flex w-100\">\n <h2 class=\"t-center h2 w-max-50 mn-b-big\">\n Ask the hundreds shaping your entertainment for decades\n </h2>\n </div>\n <Marquee\n class=\"mn-b-thin\"\n :gradient=\"true\"\n :gradientColor=\"'var(--white)'\"\n :gradientLength=\"'10%'\"\n :direction=\"'normal'\"\n :pauseOnHover=\"false\"\n :clone=\"true\"\n >\n <div class=\"flex flex-nowrap\">\n <CardUser \n v-for=\"user in usersList.slice(0,6)\" \n class=\"mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium\"\n :user=\"user\" \n :photo=\"user.profile.photo\"\n :name=\"user.profile.name || user.phone || user.username\"\n :phone=\"'DJ'\"\n /> \n </div>\n </Marquee>\n\n <Marquee\n class=\"mn-b-thin\"\n :gradient=\"true\"\n :gradientColor=\"'var(--white)'\"\n :gradientLength=\"'10%'\"\n :direction=\"'reverse'\"\n :pauseOnHover=\"false\"\n :clone=\"true\"\n >\n <div class=\"flex flex-nowrap\">\n <CardUser \n v-for=\"user in usersList.slice(7,14)\" \n class=\"mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium\"\n :user=\"user\" \n :photo=\"user.profile.photo\"\n :name=\"user.profile.name || user.phone || user.username\"\n :phone=\"'DJ'\"\n /> \n </div>\n </Marquee>\n\n <Marquee\n class=\"mn-b-big\"\n :gradient=\"true\"\n :gradientColor=\"'var(--white)'\"\n :gradientLength=\"'10%'\"\n :direction=\"'normal'\"\n :pauseOnHover=\"false\"\n :clone=\"true\"\n >\n <div class=\"flex flex-nowrap\">\n <CardUser \n v-for=\"user in usersList.slice(15,22)\" \n class=\"mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium\"\n :user=\"user\" \n :photo=\"user.profile.photo\"\n :name=\"user.profile.name || user.phone || user.username\"\n :phone=\"'DJ'\"\n /> \n </div>\n </Marquee>\n\n <p class=\"w-m-33r mn-r-auto mn-l-auto t-center mn-b-small p-big\">\n Together, we're shaping the future of the globals music community.\n </p>\n <router-link :to=\"{ name: 'Sign In' }\" class=\"bg-black mn-r-auto mn-l-auto t-medium t-white button\">\n Join Now\n </router-link>\n </div>\n</template>\n\n<script setup>\nimport { ref, onMounted } from 'vue';\n\nimport * as users from '@pf/src/modules/auth/views/store/users'\n\nimport Marquee from '@pf/src/components/Marquee/Marquee.vue'\n\nimport CardUser from '@pf/src/modules/auth/views/components/blocks/CardUser.vue'\n\nconst usersList = ref([])\n\nonMounted(async() => {\n usersList.value = await users.actions.read({\n limit: 25\n })\n});\n</script>\n\n<style lang=\"scss\">\n .selector {\n flex-grow: 1;\n flex-basis: 0;\n min-width: 0;\n }\n</style>\n"],"names":["ref","onMounted","users.actions"],"mappings":";;;;;;;;;;;;;;AAwFA,UAAM,YAAYA,IAAG,IAAC,EAAE;AAExBC,QAAAA,UAAU,YAAW;AACnB,gBAAU,QAAQ,MAAMC,MAAa,QAAC,KAAK;AAAA,QACzC,OAAO;AAAA,MACX,CAAG;AAAA,IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}