@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
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
2
  const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
4
3
  const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
5
4
  require("uuid");
@@ -7,8 +6,8 @@ const require$$0 = require("mongoose");
7
6
  require("path");
8
7
  const require$$3 = require("openai");
9
8
  const queryProcessor = require("./queryProcessor-CcsJEUBr.js");
10
- var product_model = (mongoose) => {
11
- const ProductSchema = new mongoose.Schema({
9
+ var product_model = (db) => {
10
+ const ProductSchema = new db.mongoose.Schema({
12
11
  status: { type: String },
13
12
  name: { type: String },
14
13
  category: { type: Array },
@@ -28,7 +27,7 @@ var product_model = (mongoose) => {
28
27
  prices: { type: Array },
29
28
  //
30
29
  variants: [{
31
- _id: { type: mongoose.Schema.Types.ObjectId, auto: true },
30
+ _id: { type: db.mongoose.Schema.Types.ObjectId, auto: true },
32
31
  name: { type: String },
33
32
  price: { type: Number },
34
33
  options: [{
@@ -39,7 +38,7 @@ var product_model = (mongoose) => {
39
38
  }],
40
39
  ingredients: [{
41
40
  _id: {
42
- type: mongoose.Schema.Types.ObjectId,
41
+ type: db.mongoose.Schema.Types.ObjectId,
43
42
  ref: "Product"
44
43
  },
45
44
  price: {
@@ -74,11 +73,11 @@ var product_model = (mongoose) => {
74
73
  }],
75
74
  // Refactor
76
75
  owner: {
77
- type: mongoose.Schema.Types.ObjectId,
76
+ type: db.mongoose.Schema.Types.ObjectId,
78
77
  ref: "User"
79
78
  },
80
79
  organization: {
81
- type: mongoose.Schema.Types.ObjectId,
80
+ type: db.mongoose.Schema.Types.ObjectId,
82
81
  ref: "Organization"
83
82
  }
84
83
  }, {
@@ -89,12 +88,11 @@ var product_model = (mongoose) => {
89
88
  ProductSchema.index({ organization: 1 });
90
89
  ProductSchema.index({ category: 1 });
91
90
  ProductSchema.index({ price: 1 });
92
- const Product = mongoose.model("Product", ProductSchema);
91
+ const Product = db.mongoose.model("Product", ProductSchema);
93
92
  return Product;
94
93
  };
95
- const product_model$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(product_model);
96
- var category_model = (mongoose) => {
97
- const СategorySchema = new mongoose.Schema({
94
+ var category_model = (db) => {
95
+ const СategorySchema = new db.mongoose.Schema({
98
96
  name: {
99
97
  type: String,
100
98
  required: true,
@@ -162,10 +160,9 @@ var category_model = (mongoose) => {
162
160
  }
163
161
  });
164
162
  СategorySchema.index({ "owner.target": 1, "creator.target": 1 });
165
- const Сategory = mongoose.model("Сategory", СategorySchema, "categories");
163
+ const Сategory = db.mongoose.model("Сategory", СategorySchema, "categories");
166
164
  return Сategory;
167
165
  };
168
- const category_model$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(category_model);
169
166
  const applyOwnershipSchema = ownership_schema.ownership_schema;
170
167
  var leftover_model = (db) => {
171
168
  const LeftoverSchema = new db.mongoose.Schema({
@@ -216,7 +213,6 @@ var leftover_model = (db) => {
216
213
  const Leftover = db.mongoose.model("Leftover", LeftoverSchema);
217
214
  return Leftover;
218
215
  };
219
- const leftover_model$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(leftover_model);
220
216
  const ObjectId = require$$0.Types.ObjectId;
221
217
  const OpenAI = require$$3;
222
218
  const openai = new OpenAI({
@@ -554,7 +550,6 @@ var products_routes = function(app, db, allowedOrigins) {
554
550
  controller.getProductRecommendation
555
551
  );
556
552
  };
557
- const products_routes$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(products_routes);
558
553
  const controllerFactory$3 = (db) => {
559
554
  const Category = db.category;
560
555
  const getCategories = async (req, res) => {
@@ -721,7 +716,6 @@ var categories_routes = function(app, db) {
721
716
  controller.deleteCategory
722
717
  );
723
718
  };
724
- const categories_routes$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(categories_routes);
725
719
  const queryProcessorGlobals = queryProcessor.queryProcessor;
726
720
  const controllerFactory$1 = (db) => {
727
721
  const Leftover = db.leftover;
@@ -865,10 +859,42 @@ var leftovers_routes = function(app, db) {
865
859
  controller.delete
866
860
  );
867
861
  };
868
- const leftovers_routes$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(leftovers_routes);
869
- exports.CategoryModel = category_model$1;
870
- exports.LeftoverModel = leftover_model$1;
871
- exports.ProductModel = product_model$1;
872
- exports.categoriesRoutes = categories_routes$1;
873
- exports.leftoversRoutes = leftovers_routes$1;
874
- exports.productsRoutes = products_routes$1;
862
+ const ProductModel = product_model;
863
+ const CategoryModel = category_model;
864
+ const LeftoverModel = leftover_model;
865
+ const productsRoutes = products_routes;
866
+ const categoriesRoutes = categories_routes;
867
+ const leftoversRoutes = leftovers_routes;
868
+ const ProductController = products_controller;
869
+ const CategoryController = categories_controller;
870
+ const LeftoverController = leftovers_controller;
871
+ function initializeProduct(app, db, origins, publicPath) {
872
+ db.product = ProductModel(db);
873
+ db.category = CategoryModel(db);
874
+ db.leftover = LeftoverModel(db);
875
+ if (app) {
876
+ productsRoutes(app, db);
877
+ categoriesRoutes(app, db);
878
+ leftoversRoutes(app, db);
879
+ }
880
+ }
881
+ var products_server = {
882
+ initialize: initializeProduct,
883
+ models: {
884
+ ProductModel,
885
+ CategoryModel,
886
+ LeftoverModel
887
+ },
888
+ routes: {
889
+ productsRoutes,
890
+ categoriesRoutes,
891
+ leftoversRoutes
892
+ },
893
+ controllers: {
894
+ ProductController,
895
+ CategoryController,
896
+ LeftoverController
897
+ }
898
+ };
899
+ const products_server$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(products_server);
900
+ module.exports = products_server$1;
@@ -5,8 +5,8 @@ import require$$0 from "mongoose";
5
5
  import "path";
6
6
  import require$$3 from "openai";
7
7
  import { q as queryProcessor } from "./queryProcessor-CU4A6Y4N.mjs";
8
- var product_model = (mongoose) => {
9
- const ProductSchema = new mongoose.Schema({
8
+ var product_model = (db) => {
9
+ const ProductSchema = new db.mongoose.Schema({
10
10
  status: { type: String },
11
11
  name: { type: String },
12
12
  category: { type: Array },
@@ -26,7 +26,7 @@ var product_model = (mongoose) => {
26
26
  prices: { type: Array },
27
27
  //
28
28
  variants: [{
29
- _id: { type: mongoose.Schema.Types.ObjectId, auto: true },
29
+ _id: { type: db.mongoose.Schema.Types.ObjectId, auto: true },
30
30
  name: { type: String },
31
31
  price: { type: Number },
32
32
  options: [{
@@ -37,7 +37,7 @@ var product_model = (mongoose) => {
37
37
  }],
38
38
  ingredients: [{
39
39
  _id: {
40
- type: mongoose.Schema.Types.ObjectId,
40
+ type: db.mongoose.Schema.Types.ObjectId,
41
41
  ref: "Product"
42
42
  },
43
43
  price: {
@@ -72,11 +72,11 @@ var product_model = (mongoose) => {
72
72
  }],
73
73
  // Refactor
74
74
  owner: {
75
- type: mongoose.Schema.Types.ObjectId,
75
+ type: db.mongoose.Schema.Types.ObjectId,
76
76
  ref: "User"
77
77
  },
78
78
  organization: {
79
- type: mongoose.Schema.Types.ObjectId,
79
+ type: db.mongoose.Schema.Types.ObjectId,
80
80
  ref: "Organization"
81
81
  }
82
82
  }, {
@@ -87,12 +87,11 @@ var product_model = (mongoose) => {
87
87
  ProductSchema.index({ organization: 1 });
88
88
  ProductSchema.index({ category: 1 });
89
89
  ProductSchema.index({ price: 1 });
90
- const Product = mongoose.model("Product", ProductSchema);
90
+ const Product = db.mongoose.model("Product", ProductSchema);
91
91
  return Product;
92
92
  };
93
- const product_model$1 = /* @__PURE__ */ getDefaultExportFromCjs(product_model);
94
- var category_model = (mongoose) => {
95
- const СategorySchema = new mongoose.Schema({
93
+ var category_model = (db) => {
94
+ const СategorySchema = new db.mongoose.Schema({
96
95
  name: {
97
96
  type: String,
98
97
  required: true,
@@ -160,10 +159,9 @@ var category_model = (mongoose) => {
160
159
  }
161
160
  });
162
161
  СategorySchema.index({ "owner.target": 1, "creator.target": 1 });
163
- const Сategory = mongoose.model("Сategory", СategorySchema, "categories");
162
+ const Сategory = db.mongoose.model("Сategory", СategorySchema, "categories");
164
163
  return Сategory;
165
164
  };
166
- const category_model$1 = /* @__PURE__ */ getDefaultExportFromCjs(category_model);
167
165
  const applyOwnershipSchema = ownership_schema;
168
166
  var leftover_model = (db) => {
169
167
  const LeftoverSchema = new db.mongoose.Schema({
@@ -214,7 +212,6 @@ var leftover_model = (db) => {
214
212
  const Leftover = db.mongoose.model("Leftover", LeftoverSchema);
215
213
  return Leftover;
216
214
  };
217
- const leftover_model$1 = /* @__PURE__ */ getDefaultExportFromCjs(leftover_model);
218
215
  const ObjectId = require$$0.Types.ObjectId;
219
216
  const OpenAI = require$$3;
220
217
  const openai = new OpenAI({
@@ -552,7 +549,6 @@ var products_routes = function(app, db, allowedOrigins) {
552
549
  controller.getProductRecommendation
553
550
  );
554
551
  };
555
- const products_routes$1 = /* @__PURE__ */ getDefaultExportFromCjs(products_routes);
556
552
  const controllerFactory$3 = (db) => {
557
553
  const Category = db.category;
558
554
  const getCategories = async (req, res) => {
@@ -719,7 +715,6 @@ var categories_routes = function(app, db) {
719
715
  controller.deleteCategory
720
716
  );
721
717
  };
722
- const categories_routes$1 = /* @__PURE__ */ getDefaultExportFromCjs(categories_routes);
723
718
  const queryProcessorGlobals = queryProcessor;
724
719
  const controllerFactory$1 = (db) => {
725
720
  const Leftover = db.leftover;
@@ -863,12 +858,44 @@ var leftovers_routes = function(app, db) {
863
858
  controller.delete
864
859
  );
865
860
  };
866
- const leftovers_routes$1 = /* @__PURE__ */ getDefaultExportFromCjs(leftovers_routes);
861
+ const ProductModel = product_model;
862
+ const CategoryModel = category_model;
863
+ const LeftoverModel = leftover_model;
864
+ const productsRoutes = products_routes;
865
+ const categoriesRoutes = categories_routes;
866
+ const leftoversRoutes = leftovers_routes;
867
+ const ProductController = products_controller;
868
+ const CategoryController = categories_controller;
869
+ const LeftoverController = leftovers_controller;
870
+ function initializeProduct(app, db, origins, publicPath) {
871
+ db.product = ProductModel(db);
872
+ db.category = CategoryModel(db);
873
+ db.leftover = LeftoverModel(db);
874
+ if (app) {
875
+ productsRoutes(app, db);
876
+ categoriesRoutes(app, db);
877
+ leftoversRoutes(app, db);
878
+ }
879
+ }
880
+ var products_server = {
881
+ initialize: initializeProduct,
882
+ models: {
883
+ ProductModel,
884
+ CategoryModel,
885
+ LeftoverModel
886
+ },
887
+ routes: {
888
+ productsRoutes,
889
+ categoriesRoutes,
890
+ leftoversRoutes
891
+ },
892
+ controllers: {
893
+ ProductController,
894
+ CategoryController,
895
+ LeftoverController
896
+ }
897
+ };
898
+ const products_server$1 = /* @__PURE__ */ getDefaultExportFromCjs(products_server);
867
899
  export {
868
- category_model$1 as CategoryModel,
869
- leftover_model$1 as LeftoverModel,
870
- product_model$1 as ProductModel,
871
- categories_routes$1 as categoriesRoutes,
872
- leftovers_routes$1 as leftoversRoutes,
873
- products_routes$1 as productsRoutes
900
+ products_server$1 as default
874
901
  };
@@ -2,7 +2,7 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const SkeletonEvent = require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");
5
- const Loader = require("../Loader/Loader.vue.cjs");
5
+ const Loader = require("../Loader/Loader.vue2.cjs");
6
6
  const EmptyState = require("../EmptyState/EmptyState.vue.cjs");
7
7
  const Dropdown = require("../Dropdown/Dropdown.vue.cjs");
8
8
  const Calendar = require("../DatePicker/Calendar.vue2.cjs");
@@ -1,6 +1,6 @@
1
1
  import { mergeModels, useModel, shallowRef, ref, watch, onMounted, onUnmounted, openBlock, createElementBlock, Fragment, createBlock, normalizeClass, createCommentVNode, createElementVNode, createVNode, withCtx, unref, TransitionGroup, renderList, renderSlot } from "vue";
2
2
  import SkeletonEvent from "../../modules/icons/skeletons/SkeletonEvent.vue.js";
3
- import Loader from "../Loader/Loader.vue.js";
3
+ import Loader from "../Loader/Loader.vue2.js";
4
4
  import _sfc_main$a from "../EmptyState/EmptyState.vue.js";
5
5
  import _sfc_main$5 from "../Dropdown/Dropdown.vue.js";
6
6
  import _sfc_main$7 from "../DatePicker/Calendar.vue2.js";
@@ -2,7 +2,7 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const index = require("../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs");
5
- const Loader = require("../Loader/Loader.vue.cjs");
5
+ const Loader = require("../Loader/Loader.vue2.cjs");
6
6
  ;/* empty css */
7
7
  const _hoisted_1 = { class: "pos-relative" };
8
8
  const _hoisted_2 = {
@@ -1,6 +1,6 @@
1
1
  import { ref, onMounted, watchEffect, openBlock, createElementBlock, createElementVNode, createVNode, Transition, withCtx, createBlock } from "vue";
2
2
  import { Loader } from "../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
3
- import Loader$1 from "../Loader/Loader.vue.js";
3
+ import Loader$1 from "../Loader/Loader.vue2.js";
4
4
  /* empty css */
5
5
  const _hoisted_1 = { class: "pos-relative" };
6
6
  const _hoisted_2 = {
@@ -5,7 +5,7 @@ const vueRouter = require("vue-router");
5
5
  require("vue-i18n");
6
6
  const emblaCarouselVue_esm = require("../../../../node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs");
7
7
  const emblaCarouselAutoplay_esm = require("../../../../node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs");
8
- ;/* empty css */
8
+ ;/* empty css */
9
9
  const _hoisted_1 = { class: "embla__container" };
10
10
  const _sfc_main = {
11
11
  __name: "Slider",
@@ -3,7 +3,7 @@ import { useRouter } from "vue-router";
3
3
  import "vue-i18n";
4
4
  import emblaCarouselVue from "../../../../node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js";
5
5
  import Autoplay from "../../../../node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js";
6
- /* empty css */
6
+ /* empty css */
7
7
  const _hoisted_1 = { class: "embla__container" };
8
8
  const _sfc_main = {
9
9
  __name: "Slider",
@@ -2,7 +2,7 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const axios = require("axios");
5
- const Loader = require("../Loader/Loader.vue.cjs");
5
+ const Loader = require("../Loader/Loader.vue2.cjs");
6
6
  const IconUpload = require("../../modules/icons/navigation/IconUpload.vue.cjs");
7
7
  const _hoisted_1 = {
8
8
  key: 0,
@@ -1,6 +1,6 @@
1
1
  import { ref, openBlock, createElementBlock, withModifiers, createVNode, Transition, withCtx, toDisplayString, createCommentVNode, createBlock, createElementVNode } from "vue";
2
2
  import axios from "axios";
3
- import Loader from "../Loader/Loader.vue.js";
3
+ import Loader from "../Loader/Loader.vue2.js";
4
4
  import _sfc_main$1 from "../../modules/icons/navigation/IconUpload.vue.js";
5
5
  const _hoisted_1 = {
6
6
  key: 0,
@@ -2,7 +2,9 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const auth = require("./views/store/auth.cjs");
4
4
  const twofa = require("./views/store/twofa.cjs");
5
+ const users = require("./views/store/users.cjs");
5
6
  const auth$1 = require("./views/router/auth.cjs");
7
+ const users$1 = require("./views/router/users.cjs");
6
8
  const auth_validation = require("./views/middlewares/auth.validation.cjs");
7
9
  const Auth = require("./views/components/layouts/Auth.vue.cjs");
8
10
  const EnterCode = require("./views/components/pages/EnterCode.vue.cjs");
@@ -11,22 +13,29 @@ const EnterPassword = require("./views/components/pages/EnterPassword.vue.cjs");
11
13
  const ResetPassword = require("./views/components/pages/ResetPassword.vue.cjs");
12
14
  const SignUp = require("./views/components/pages/SignUp.vue.cjs");
13
15
  const SignIn = require("./views/components/pages/SignIn.vue.cjs");
16
+ const Profile = require("./views/components/pages/Profile.vue.cjs");
17
+ const ProfileEdit = require("./views/components/pages/ProfileEdit.vue.cjs");
14
18
  const SliderFeatures = require("./views/components/sections/SliderFeatures.vue.cjs");
19
+ const FeaturedUsers = require("./views/components/sections/FeaturedUsers.vue.cjs");
15
20
  function initializeAuth(app, store, router, options = {}) {
16
21
  const route = options.route || "Home";
17
22
  router.addRoute(route, auth$1.default);
23
+ router.addRoute(route, users$1.default);
18
24
  store.addStore("auth", auth);
19
25
  store.addStore("twofa", twofa);
26
+ store.addStore("users", users);
20
27
  }
21
28
  const ModuleAuth = {
22
29
  initialize: initializeAuth,
23
30
  views: {
24
31
  store: {
25
32
  storeAuth: auth,
26
- storeTwofa: twofa
33
+ storeTwofa: twofa,
34
+ storeUsers: users
27
35
  },
28
36
  router: {
29
- routerAuth: auth$1.default
37
+ routerAuth: auth$1.default,
38
+ routerUsers: users$1.default
30
39
  },
31
40
  middlewares: {
32
41
  validationAuth: auth_validation
@@ -41,8 +50,11 @@ const ModuleAuth = {
41
50
  ResetPassword: ResetPassword.default,
42
51
  SignUp: SignUp.default,
43
52
  SignIn: SignIn.default,
53
+ Profile: Profile.default,
54
+ ProfileEdit: ProfileEdit.default,
44
55
  // Sections
45
- SliderFeatures: SliderFeatures.default
56
+ SliderFeatures: SliderFeatures.default,
57
+ FeaturedUsers: FeaturedUsers.default
46
58
  }
47
59
  }
48
60
  };
@@ -1 +1 @@
1
- {"version":3,"file":"auth.client.cjs","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,OAAAA,OAAU;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,OAAU;AAAA,IACX;AAAA,IACD,aAAa;AAAA,MACjB,gBAAMG;AAAAA,IACD;AAAA,IACD,YAAY;AAAA;AAAA,MAEhB,MAAMC,KAAI;AAAA;AAAA,MAEV,WAAMC,UAAS;AAAA,MACf,QAAMC,OAAM;AAAA,MACZ,eAAMC,cAAa;AAAA,MACnB,eAAMC,cAAa;AAAA,MACnB,QAAMC,OAAM;AAAA,MACZ,QAAMC,OAAM;AAAA;AAAA,MAEZ,gBAAMC,eAAc;AAAA,IACf;AAAA,EACF;AACH;;"}
1
+ {"version":3,"file":"auth.client.cjs","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,OAAAA,OAAU;AACjC,SAAO,SAAS,OAAOC,QAAAA,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,OAAU;AAAA,MAChB,aAAMC,QAAW;AAAA,IACZ;AAAA,IACD,aAAa;AAAA,MACjB,gBAAMI;AAAAA,IACD;AAAA,IACD,YAAY;AAAA;AAAA,MAEhB,MAAMC,KAAI;AAAA;AAAA,MAEV,WAAMC,UAAS;AAAA,MACf,QAAMC,OAAM;AAAA,MACZ,eAAMC,cAAa;AAAA,MACnB,eAAMC,cAAa;AAAA,MACnB,QAAMC,OAAM;AAAA,MACZ,QAAMC,OAAM;AAAA,MACZ,SAAMC,QAAO;AAAA,MACb,aAAMC,YAAW;AAAA;AAAA,MAEjB,gBAAMC,eAAc;AAAA,MACpB,eAAMC,cAAa;AAAA,IACd;AAAA,EACF;AACH;;"}
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}