@ozdao/prometheus-framework 0.2.186 → 0.2.188

Sign up to get free protection for your applications and to get access to all the features.
Files changed (311) hide show
  1. package/dist/auth.server.js +35 -23
  2. package/dist/auth.server.mjs +35 -23
  3. package/dist/events.server.js +1 -1
  4. package/dist/events.server.mjs +1 -1
  5. package/dist/globals.server.js +1 -1
  6. package/dist/globals.server.mjs +1 -1
  7. package/dist/mailing-BQKyTI-q.js +77 -0
  8. package/dist/mailing-C3VD4l0h.mjs +78 -0
  9. package/dist/main-BVZtf9OG.js +92 -0
  10. package/dist/main-CbTw08vO.mjs +13584 -0
  11. package/dist/orders.server.js +162 -12
  12. package/dist/orders.server.mjs +162 -12
  13. package/dist/organizations.server.js +1 -1
  14. package/dist/organizations.server.mjs +1 -1
  15. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +1 -1
  16. package/dist/prometheus-framework/src/modules/auth/auth.client.js +41 -22
  17. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -0
  18. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +41 -0
  19. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -0
  20. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +124 -0
  21. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -0
  22. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +94 -0
  23. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -0
  24. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +82 -0
  25. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -0
  26. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +118 -0
  27. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -0
  28. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +168 -0
  29. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -0
  30. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +129 -0
  31. package/dist/prometheus-framework/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs +1 -0
  32. package/dist/prometheus-framework/src/modules/auth/views/components/sections/SliderFeatures.vue.js +88 -0
  33. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterCode.json.cjs +1 -0
  34. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterCode.json.js +20 -0
  35. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterPassword.json.cjs +1 -0
  36. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterPassword.json.js +26 -0
  37. package/dist/prometheus-framework/src/modules/auth/views/localization/ResetPassword.json.cjs +1 -0
  38. package/dist/prometheus-framework/src/modules/auth/views/localization/ResetPassword.json.js +30 -0
  39. package/dist/prometheus-framework/src/modules/auth/views/localization/SignIn.json.cjs +1 -0
  40. package/dist/prometheus-framework/src/modules/auth/views/localization/SignIn.json.js +38 -0
  41. package/dist/prometheus-framework/src/modules/auth/views/localization/SignUp.json.cjs +1 -0
  42. package/dist/prometheus-framework/src/modules/auth/views/localization/SignUp.json.js +32 -0
  43. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs +1 -0
  44. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js +30 -0
  45. package/dist/prometheus-framework/src/modules/auth/views/router/auth.cjs +1 -0
  46. package/dist/prometheus-framework/src/modules/auth/views/router/auth.js +119 -0
  47. package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs +1 -0
  48. package/dist/prometheus-framework/src/modules/auth/views/store/auth.js +176 -0
  49. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs +1 -0
  50. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.js +31 -0
  51. package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.cjs +1 -0
  52. package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.js +45 -0
  53. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +1 -1
  55. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +2 -2
  57. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +2 -2
  59. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +1 -1
  61. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  63. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +3 -4
  65. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +10 -10
  69. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  71. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +2 -2
  75. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  77. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +12 -13
  83. package/dist/prometheus-framework/src/modules/events/components/sections/FeaturedEvents.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/events/components/sections/FeaturedEvents.vue.js +1 -1
  85. package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/events/router/events.js +1 -1
  87. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  89. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  91. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/globals/globals.client.js +10 -6
  93. package/dist/prometheus-framework/src/modules/globals/localization/get-browser-locale.cjs +1 -0
  94. package/dist/prometheus-framework/src/modules/globals/localization/get-browser-locale.js +7 -0
  95. package/dist/prometheus-framework/src/modules/globals/mixins/mixins.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/globals/mixins/mixins.js +20 -16
  97. package/dist/prometheus-framework/src/modules/globals/router/routerGuards.cjs +1 -0
  98. package/dist/prometheus-framework/src/modules/globals/router/routerGuards.js +18 -0
  99. package/dist/prometheus-framework/src/modules/globals/router/scrollBehavior.cjs +1 -0
  100. package/dist/prometheus-framework/src/modules/globals/router/scrollBehavior.js +18 -0
  101. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/globals/store/globals.js +38 -76
  103. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +5 -5
  105. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  107. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  111. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  113. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  115. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  117. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -3
  119. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  121. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -5
  123. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +2 -2
  125. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -4
  127. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -3
  131. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +1 -1
  135. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.js +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/router/departments.router.cjs +1 -1
  138. package/dist/prometheus-framework/src/modules/organizations/router/departments.router.js +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/router/members.router.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/organizations/router/members.router.js +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  145. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.js +1 -1
  147. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.js +1 -1
  149. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  151. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  153. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
  155. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -3
  157. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +2 -3
  159. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
  161. package/dist/prometheus-framework/src/modules/products/router/categories.router.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/products/router/categories.router.js +1 -1
  163. package/dist/prometheus-framework/src/modules/products/router/leftovers.router.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/products/router/leftovers.router.js +1 -1
  165. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/products/router/products.router.js +1 -1
  167. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +2 -3
  169. package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/spots/router/spots.js +1 -1
  171. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  173. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  175. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -4
  177. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  179. package/dist/prometheus-framework/src/modules/users/router/users.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/users/router/users.js +3 -4
  181. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
  183. package/dist/prometheus-framework/src/modules/wallet/views/router/payments.router.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/wallet/views/router/payments.router.js +1 -1
  185. package/dist/prometheus-framework.cjs.js +1 -1
  186. package/dist/prometheus-framework.es.js +1 -1
  187. package/dist/style.css +1 -1
  188. package/dist/tickets.controller-BWVUA-GR.js +401 -0
  189. package/dist/tickets.controller-ChVmHHnj.mjs +402 -0
  190. package/dist/wallet.server.js +1 -1
  191. package/dist/wallet.server.mjs +1 -1
  192. package/dist/web-CK9TrlwB.js +1 -0
  193. package/dist/web-aOWHNbX1.mjs +54 -0
  194. package/package.json +1 -1
  195. package/src/components/Breadcrumbs/Breadcrumbs.vue +0 -1
  196. package/src/components/Sidebar/Sidebar.vue +1 -1
  197. package/src/modules/auth/auth.client.js +53 -28
  198. package/src/modules/auth/auth.server.js +32 -14
  199. package/src/modules/auth/{routes → controllers/routes}/auth.routes.js +3 -3
  200. package/src/modules/auth/{routes → controllers/routes}/twofa.routes.js +2 -2
  201. package/src/modules/auth/controllers/{auth.controller.js → services/auth.service.js} +2 -3
  202. package/src/modules/auth/models/role.model.js +9 -8
  203. package/src/modules/auth/{components → views/components}/layouts/Auth.vue +3 -3
  204. package/src/modules/auth/{components → views/components}/pages/EnterCode.vue +3 -3
  205. package/src/modules/auth/{components → views/components}/pages/EnterPassword.vue +3 -3
  206. package/src/modules/auth/{components → views/components}/pages/Invite.vue +2 -2
  207. package/src/modules/auth/{components → views/components}/pages/ResetPassword.vue +4 -4
  208. package/src/modules/auth/{components → views/components}/pages/SignIn.vue +3 -3
  209. package/src/modules/auth/{components → views/components}/pages/SignUp.vue +4 -4
  210. package/src/modules/{middlewares/client → auth/views/middlewares}/auth.validation.js +20 -1
  211. package/src/modules/auth/views/router/auth.js +102 -0
  212. package/src/modules/{middlewares/client → auth/views/validations}/inputs.validation.js +3 -6
  213. package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
  214. package/src/modules/backoffice/components/pages/Dashboard.vue +1 -1
  215. package/src/modules/backoffice/components/partials/Sidebar.vue +1 -1
  216. package/src/modules/backoffice/router/backoffice.js +1 -1
  217. package/src/modules/chats/routes/chats.routes.js +1 -1
  218. package/src/modules/community/components/layouts/Community.vue +1 -1
  219. package/src/modules/community/components/pages/Blog.vue +1 -1
  220. package/src/modules/community/components/pages/BlogPost.vue +1 -1
  221. package/src/modules/community/components/pages/Community.vue +1 -1
  222. package/src/modules/community/components/pages/CreateBlogPost.vue +1 -1
  223. package/src/modules/community/components/sections/HotPosts.vue +1 -1
  224. package/src/modules/community/routes/blog.routes.js +1 -1
  225. package/src/modules/events/components/elements/ButtonJoin.vue +1 -1
  226. package/src/modules/events/components/pages/EditEvent.vue +1 -1
  227. package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
  228. package/src/modules/events/components/pages/Event.vue +1 -1
  229. package/src/modules/events/components/pages/Events.vue +1 -1
  230. package/src/modules/events/components/sections/FeaturedEvents.vue +1 -1
  231. package/src/modules/events/router/events.js +1 -1
  232. package/src/modules/events/routes/events.routes.js +1 -1
  233. package/src/modules/files/routes/files.routes.js +1 -1
  234. package/src/modules/gallery/components/sections/BackofficeGallery.vue +1 -1
  235. package/src/modules/gallery/routes/gallery.routes.js +2 -2
  236. package/src/modules/globals/globals.client.js +6 -3
  237. package/src/modules/globals/router/routerGuards.js +1 -1
  238. package/src/modules/globals/router/scrollBehavior.js +30 -0
  239. package/src/modules/globals/store/globals.js +3 -3
  240. package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
  241. package/src/modules/legal/components/pages/Legal.vue +1 -1
  242. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  243. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +1 -1
  244. package/src/modules/orders/components/pages/Orders.vue +1 -1
  245. package/src/modules/orders/components/sections/FormAddCustomer.vue +1 -1
  246. package/src/modules/orders/models/order.model.js +0 -1
  247. package/src/modules/orders/orders.server.js +3 -1
  248. package/src/modules/orders/routes/applications.routes.js +2 -1
  249. package/src/modules/orders/routes/orders.routes.js +1 -1
  250. package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +1 -1
  251. package/src/modules/organizations/components/pages/Members.vue +1 -1
  252. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  253. package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +1 -1
  254. package/src/modules/organizations/components/pages/OrganizationCreate.vue +1 -1
  255. package/src/modules/organizations/components/pages/OrganizationDetails.vue +2 -2
  256. package/src/modules/organizations/components/pages/OrganizationEdit.vue +1 -1
  257. package/src/modules/organizations/components/pages/Organizations.vue +1 -1
  258. package/src/modules/organizations/components/sections/MembersAdd.vue +1 -1
  259. package/src/modules/organizations/components/sections/Organizations.vue +1 -1
  260. package/src/modules/organizations/components/sections/Publics.vue +1 -1
  261. package/src/modules/organizations/router/backoffice.router.js +1 -1
  262. package/src/modules/organizations/router/departments.router.js +1 -1
  263. package/src/modules/organizations/router/members.router.js +1 -1
  264. package/src/modules/organizations/router/organizations.js +1 -1
  265. package/src/modules/organizations/routes/invites.routes.js +1 -1
  266. package/src/modules/organizations/store/invites.js +1 -1
  267. package/src/modules/pages/views/components/pages/Page.vue +1 -1
  268. package/src/modules/pages/views/components/pages/Pages.vue +1 -1
  269. package/src/modules/pages/views/components/partials/SidebarPages.vue +1 -1
  270. package/src/modules/products/components/pages/EditLeftover.vue +1 -1
  271. package/src/modules/products/components/pages/Product.vue +1 -1
  272. package/src/modules/products/components/pages/Products.vue +1 -1
  273. package/src/modules/products/router/categories.router.js +1 -1
  274. package/src/modules/products/router/leftovers.router.js +1 -1
  275. package/src/modules/products/router/products.router.js +1 -1
  276. package/src/modules/spots/router/spots.js +1 -1
  277. package/src/modules/users/components/pages/Profile.vue +1 -1
  278. package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
  279. package/src/modules/users/components/pages/ProfileEdit.vue +2 -2
  280. package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
  281. package/src/modules/users/router/users.js +1 -2
  282. package/src/modules/wallet/controllers/routes/payments.routes.js +1 -1
  283. package/src/modules/wallet/controllers/routes/rewards.routes.js +1 -1
  284. package/src/modules/wallet/views/router/payments.router.js +1 -2
  285. package/src/modules/auth/router/auth.js +0 -111
  286. package/src/modules/globals/localization/methods/get-app-locales.js +0 -13
  287. package/src/modules/globals/localization/vue-i18n.js +0 -38
  288. package/src/modules/globals/localization/vue-i18n.singleton.js +0 -11
  289. package/src/modules/middlewares/client/states.validation.js +0 -23
  290. package/src/modules/middlewares/middlewares.client.js +0 -11
  291. package/src/modules/middlewares/middlewares.server.js +0 -18
  292. package/src/modules/orders/routes/backcalls.routes.js +0 -36
  293. package/src/modules/orders/routes/fastorders.routes.js +0 -32
  294. /package/src/modules/auth/{middlewares → controllers/middlewares}/authJwt.js +0 -0
  295. /package/src/modules/auth/{middlewares → controllers/middlewares}/authSecret.js +0 -0
  296. /package/src/modules/auth/{middlewares → controllers/middlewares}/index.js +0 -0
  297. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyAccesses.js +0 -0
  298. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyInvites.js +0 -0
  299. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifySignUp.js +0 -0
  300. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyUser.js +0 -0
  301. /package/src/modules/auth/controllers/{twofa.controller.js → services/twofa.service.js} +0 -0
  302. /package/src/modules/auth/{utils/server → controllers/utils}/verifyAppleIdToken.js +0 -0
  303. /package/src/modules/auth/{components → views/components}/sections/SliderFeatures.vue +0 -0
  304. /package/src/modules/auth/{localization → views/localization}/EnterCode.json +0 -0
  305. /package/src/modules/auth/{localization → views/localization}/EnterPassword.json +0 -0
  306. /package/src/modules/auth/{localization → views/localization}/ResetPassword.json +0 -0
  307. /package/src/modules/auth/{localization → views/localization}/SignIn.json +0 -0
  308. /package/src/modules/auth/{localization → views/localization}/SignUp.json +0 -0
  309. /package/src/modules/auth/{store → views/store}/auth.js +0 -0
  310. /package/src/modules/auth/{store → views/store}/twofa.js +0 -0
  311. /package/src/modules/globals/localization/{methods/get-browser-locale.js → get-browser-locale.js} +0 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../../../../components/Block/Block.vue.cjs"),w=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/Feed/Feed.vue.cjs"),C=require("../../../../components/Select/Select.vue2.cjs"),q=require("../../../../components/Popup/Popup.vue2.cjs");;/* empty css */const P=require("../blocks/CardPosition.vue.cjs"),x=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),v=require("vue-router"),p=require("../../../globals/store/globals.cjs"),V=require("../../../auth/store/auth.cjs"),t=require("../../store/leftovers.cjs"),m=require("../../store/products.cjs");;/* empty css */const B={class:"pd-thin"},E={class:"mn-b-medium gap-small flex-v-center flex-nowrap flex"},S={class:""},D={class:"bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big"},L={class:"gap-thin flex-v-center flex-nojustify flex"},R={class:"mn-r-auto"},F={__name:"EditLeftover",setup(O){const r=v.useRoute(),i=v.useRouter(),f=e.ref(m.state.all);e.ref(null);const b=e.computed(()=>Number(t.state.current.positions.reduce((a,s)=>Number(a)+Number(s.price),0))),c=e.ref(!1);function g(){c.value=!0}function h(){c.value=!1}e.onMounted(async()=>{if(r.params.leftover)try{await t.actions.fetch(r.params.leftover)}catch{console.error("error")}else t.state.current={type:"",order:"",positions:[]};try{const a=await m.actions.read({organization:r.params._id,limit:100});f.value=a}catch{console.error("error")}});function _(){r.params.leftover?t.actions.fetch(r.params.leftover):t.state.current={type:"",order:"",positions:[]}}function y(){t.state.current.organization=r.params._id,r.params.leftover?t.actions.update(t.state.current).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error")):(t.state.current.creator={type:"user",target:V.state.user._id},t.state.current.owner={type:"organization",target:r.params._id},console.log("leftover state is",t.state.current),t.actions.create(t.state.current).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error")))}function k(){t.actions.delete(r.params.leftover).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error"))}return(a,s)=>(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("header",E,[e.createElementVNode("h2",S,e.toDisplayString(e.unref(r).params.leftover?"Edit ":"Add ")+" Inventory",1),e.createVNode(C.default,{select:t.state.current.type,"onUpdate:select":s[0]||(s[0]=o=>t.state.current.type=o),options:["stock-in","stock-out"],placeholder:"Select type",class:"bg-main t-black w-max pd-small t-semi p-big uppercase radius-small"},null,8,["select"])]),e.createVNode(q.default,{title:"Add position",onClosePopup:h,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",D,[e.createVNode(N.default,{search:!0,states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:o=>m.actions.read(o),state:null},options:{organization:e.unref(r).params._id},class:""},{default:e.withCtx(({items:o})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,(n,l)=>(e.openBlock(),e.createBlock(x.default,{key:n._id,editable:!1,product:n,onClick:()=>{let u={...n};u.quantity=1,u.type="pcs",p.actions.add(t.state.current.positions,u),h()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["store","options"])])]),_:1},8,["isPopupOpen"]),e.createVNode(d.default,{title:"Invetory Sheet",actions:[{label:"+",function:()=>g()}],placeholder:"No positions added yet",class:"mn-b-semi"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.positions,(o,n)=>(e.openBlock(),e.createBlock(P.default,{key:o._id,product:o,array:t.state.current.positions,products:f.value,onUpdate:l=>p.actions.update(t.state.current.positions,l,n),onDelete:l=>p.actions.delete(t.state.current.positions,l,n),class:"mn-b-small radius-medium bg-white pd-small"},null,8,["product","array","products","onUpdate","onDelete"]))),128))]),_:1},8,["actions"]),e.createVNode(d.default,{title:"Comment",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(w.default,{field:t.state.current.comment,"onUpdate:field":s[1]||(s[1]=o=>t.state.current.comment=o),label:"Comment",type:"textarea",class:"w-100 bg-white radius-small pd-medium"},null,8,["field"])]),_:1}),e.createVNode(d.default,{class:""},{default:e.withCtx(()=>[e.createElementVNode("section",L,[e.createElementVNode("h3",R," In total: "+e.toDisplayString(a.formatPrice(b.value)),1),e.createElementVNode("a",{onClick:s[2]||(s[2]=o=>y()),class:"bg-main button"}," Save "),e.createElementVNode("a",{class:"t-white bg-second button",onClick:s[3]||(s[3]=o=>_())}," Reset "),e.unref(r).params.leftover?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:s[4]||(s[4]=o=>k()),class:"t-white bg-red button"}," Delete ")):e.createCommentVNode("",!0)])]),_:1})]))}};exports.default=F;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../../../../components/Block/Block.vue.cjs"),w=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/Feed/Feed.vue.cjs"),C=require("../../../../components/Select/Select.vue2.cjs"),q=require("../../../../components/Popup/Popup.vue2.cjs");;/* empty css */const P=require("../blocks/CardPosition.vue.cjs"),x=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),v=require("vue-router"),p=require("../../../globals/store/globals.cjs"),V=require("../../../auth/views/store/auth.cjs"),t=require("../../store/leftovers.cjs"),m=require("../../store/products.cjs");;/* empty css */const B={class:"pd-thin"},E={class:"mn-b-medium gap-small flex-v-center flex-nowrap flex"},S={class:""},D={class:"bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big"},L={class:"gap-thin flex-v-center flex-nojustify flex"},R={class:"mn-r-auto"},F={__name:"EditLeftover",setup(O){const r=v.useRoute(),i=v.useRouter(),f=e.ref(m.state.all);e.ref(null);const b=e.computed(()=>Number(t.state.current.positions.reduce((a,s)=>Number(a)+Number(s.price),0))),c=e.ref(!1);function g(){c.value=!0}function h(){c.value=!1}e.onMounted(async()=>{if(r.params.leftover)try{await t.actions.fetch(r.params.leftover)}catch{console.error("error")}else t.state.current={type:"",order:"",positions:[]};try{const a=await m.actions.read({organization:r.params._id,limit:100});f.value=a}catch{console.error("error")}});function _(){r.params.leftover?t.actions.fetch(r.params.leftover):t.state.current={type:"",order:"",positions:[]}}function y(){t.state.current.organization=r.params._id,r.params.leftover?t.actions.update(t.state.current).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error")):(t.state.current.creator={type:"user",target:V.state.user._id},t.state.current.owner={type:"organization",target:r.params._id},console.log("leftover state is",t.state.current),t.actions.create(t.state.current).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error")))}function k(){t.actions.delete(r.params.leftover).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error"))}return(a,s)=>(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("header",E,[e.createElementVNode("h2",S,e.toDisplayString(e.unref(r).params.leftover?"Edit ":"Add ")+" Inventory",1),e.createVNode(C.default,{select:t.state.current.type,"onUpdate:select":s[0]||(s[0]=o=>t.state.current.type=o),options:["stock-in","stock-out"],placeholder:"Select type",class:"bg-main t-black w-max pd-small t-semi p-big uppercase radius-small"},null,8,["select"])]),e.createVNode(q.default,{title:"Add position",onClosePopup:h,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",D,[e.createVNode(N.default,{search:!0,states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:o=>m.actions.read(o),state:null},options:{organization:e.unref(r).params._id},class:""},{default:e.withCtx(({items:o})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,(n,l)=>(e.openBlock(),e.createBlock(x.default,{key:n._id,editable:!1,product:n,onClick:()=>{let u={...n};u.quantity=1,u.type="pcs",p.actions.add(t.state.current.positions,u),h()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["store","options"])])]),_:1},8,["isPopupOpen"]),e.createVNode(d.default,{title:"Invetory Sheet",actions:[{label:"+",function:()=>g()}],placeholder:"No positions added yet",class:"mn-b-semi"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.positions,(o,n)=>(e.openBlock(),e.createBlock(P.default,{key:o._id,product:o,array:t.state.current.positions,products:f.value,onUpdate:l=>p.actions.update(t.state.current.positions,l,n),onDelete:l=>p.actions.delete(t.state.current.positions,l,n),class:"mn-b-small radius-medium bg-white pd-small"},null,8,["product","array","products","onUpdate","onDelete"]))),128))]),_:1},8,["actions"]),e.createVNode(d.default,{title:"Comment",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(w.default,{field:t.state.current.comment,"onUpdate:field":s[1]||(s[1]=o=>t.state.current.comment=o),label:"Comment",type:"textarea",class:"w-100 bg-white radius-small pd-medium"},null,8,["field"])]),_:1}),e.createVNode(d.default,{class:""},{default:e.withCtx(()=>[e.createElementVNode("section",L,[e.createElementVNode("h3",R," In total: "+e.toDisplayString(a.formatPrice(b.value)),1),e.createElementVNode("a",{onClick:s[2]||(s[2]=o=>y()),class:"bg-main button"}," Save "),e.createElementVNode("a",{class:"t-white bg-second button",onClick:s[3]||(s[3]=o=>_())}," Reset "),e.unref(r).params.leftover?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:s[4]||(s[4]=o=>k()),class:"t-white bg-red button"}," Delete ")):e.createCommentVNode("",!0)])]),_:1})]))}};exports.default=F;
@@ -9,7 +9,7 @@ import V from "../blocks/CardPosition.vue.js";
9
9
  import A from "../../../orders/components/blocks/CardOrderItem.vue.js";
10
10
  import { useRoute as j, useRouter as q } from "vue-router";
11
11
  import { actions as y } from "../../../globals/store/globals.js";
12
- import { state as M } from "../../../auth/store/auth.js";
12
+ import { state as M } from "../../../auth/views/store/auth.js";
13
13
  import { state as e, actions as u } from "../../store/leftovers.js";
14
14
  import { state as G, actions as C } from "../../store/products.js";
15
15
  /* empty css */
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("../sections/PopularProducts.vue.cjs"),n=require("../sections/SectionProduct.vue.cjs"),o=require("vue-router"),a=require("vue-i18n"),l=require("../../../auth/store/auth.cjs"),t=require("../../store/products.cjs");require("../../store/categories.cjs");;/* empty css */const i={class:"flex flex-column w-100 o-hidden gap-thin pd-thin"},d={__name:"Product",setup(p){const r=o.useRoute();o.useRouter(),r.meta.title.en=t.state.current.name,r.meta.title.ru=t.state.current.name;const u=e.computed(()=>t.state.current),c={messages:{en:{},ru:{}}};return e.onMounted(async()=>{await t.actions.fetchProduct(r.params.product)}),a.useI18n(c),(m,_)=>(e.openBlock(),e.createElementBlock("div",i,[u.value?(e.openBlock(),e.createBlock(n.default,{key:0,product:u.value,user:l.state.user,class:"pos-relative"},null,8,["product","user"])):e.createCommentVNode("",!0),e.createVNode(s.default)]))}};exports.default=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("../sections/PopularProducts.vue.cjs"),n=require("../sections/SectionProduct.vue.cjs"),o=require("vue-router"),a=require("vue-i18n"),l=require("../../../auth/views/store/auth.cjs"),t=require("../../store/products.cjs");require("../../store/categories.cjs");;/* empty css */const i={class:"flex flex-column w-100 o-hidden gap-thin pd-thin"},d={__name:"Product",setup(p){const r=o.useRoute();o.useRouter(),r.meta.title.en=t.state.current.name,r.meta.title.ru=t.state.current.name;const u=e.computed(()=>t.state.current),c={messages:{en:{},ru:{}}};return e.onMounted(async()=>{await t.actions.fetchProduct(r.params.product)}),a.useI18n(c),(m,_)=>(e.openBlock(),e.createElementBlock("div",i,[u.value?(e.openBlock(),e.createBlock(n.default,{key:0,product:u.value,user:l.state.user,class:"pos-relative"},null,8,["product","user"])):e.createCommentVNode("",!0),e.createVNode(s.default)]))}};exports.default=d;
@@ -3,7 +3,7 @@ import i from "../sections/PopularProducts.vue.js";
3
3
  import l from "../sections/SectionProduct.vue.js";
4
4
  import { useRoute as d, useRouter as f } from "vue-router";
5
5
  import { useI18n as _ } from "vue-i18n";
6
- import { state as h } from "../../../auth/store/auth.js";
6
+ import { state as h } from "../../../auth/views/store/auth.js";
7
7
  import { state as e, actions as x } from "../../store/products.js";
8
8
  import "../../store/categories.js";
9
9
  /* empty css */
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const o=require("../../../../components/Block/Block.vue.cjs");;/* empty css */const d=require("../../../../components/Field/Field.vue2.cjs"),B=require("../../../../components/Checkbox/Checkbox.vue.cjs"),_=require("../../../../components/Button/Button.vue2.cjs"),C=require("../../../../components/Popup/Popup.vue2.cjs"),V=require("../../../../components/Feed/Feed.vue.cjs"),q=require("../../../../components/EditImages/EditImages.vue.cjs"),b=require("../../../icons/navigation/IconDelete.vue.cjs"),y=require("../blocks/CardPosition.vue.cjs"),P=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),E=require("../sections/EditProductInfo.vue.cjs"),u=require("../../../globals/store/globals.cjs"),t=require("../../store/products.cjs"),w=require("../../store/categories.cjs");;/* empty css */const U={class:"for-transition w-100 cols-1 pd-thin gap-thin"},z={class:"mn-r-auto"},F={class:"cols-2 gap-thin"},I={key:0,class:"cols-1 gap-thin"},O={class:"bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big"},D={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},L={class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},S={__name:"ProductEdit",setup(T){const l=k.useRoute(),f=k.useRouter(),h=e.ref(t.state.all),p=e.ref(!1);function N(s){p.value=!0}function i(){p.value=!1}e.onMounted(async()=>{t.mutations.resetProduct(),l.params.product&&await t.actions.read({_id:l.params.product}),t.state.current.ingredients||(t.state.current.ingredients=[]),await w.actions.fetchCategories();try{const s=await t.actions.read({organization:l.params._id,limit:100});h.value=s}catch{console.error("error")}});function v(){l.params.product?t.actions.update(l.params.product,t.state.current):t.actions.create(l.params._id,t.state.current)}function x(){t.actions.deleteProduct(t.state.current._id)}function g(){f.push({name:"Organization",params:{_id:l.params._id}})}return(s,c)=>(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(o.default,{class:"flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",z,e.toDisplayString(e.unref(l).params.product?t.state.current.name:"Create Product"),1),e.unref(l).params.product?(e.openBlock(),e.createBlock(_.default,{key:0,submit:x,callback:g,class:"bg-red mn-r-thin"},{default:e.withCtx(()=>[e.createTextVNode(" Delete ")]),_:1})):e.createCommentVNode("",!0),e.createVNode(_.default,{submit:v,callback:g,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" Save ")]),_:1})]),_:1}),e.createVNode(o.default,{placeholder:"The product doesn't have any images yet.",class:"h-min"},{default:e.withCtx(()=>[e.createVNode(q.default,{images:t.state.current.images,uploadPath:"photos","onUpdate:images":c[0]||(c[0]=a=>{t.state.current.images=a})},null,8,["images"])]),_:1}),e.createElementVNode("div",F,[e.createVNode(o.default,{title:"Profile"},{default:e.withCtx(()=>[e.createVNode(E.default,{product:t.state.current},null,8,["product"])]),_:1}),e.createVNode(o.default,{title:"Ingredients",placeholder:"No ingridients added yet",actions:[{label:"+",function:()=>N()}]},{default:e.withCtx(()=>[t.state.current.ingredients.length>0?(e.openBlock(),e.createElementBlock("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.ingredients,(a,n)=>(e.openBlock(),e.createBlock(y.default,{key:a._id,product:a,array:t.state.current.ingredients,products:h.value,showPrice:!1,onAdd:c[1]||(c[1]=r=>{u.actions.add(t.state.current.ingredients,r),i()}),onUpdate:r=>{u.actions.update(t.state.current.ingredients,r,n),i()},onDelete:r=>{u.actions.delete(t.state.current.ingredients,r,n),i()}},null,8,["product","array","products","onUpdate","onDelete"]))),128))])):e.createCommentVNode("",!0)]),_:1},8,["actions"]),e.createVNode(C.default,{title:"Add ingredient",onClosePopup:i,isPopupOpen:p.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(V.default,{search:{class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:a=>t.actions.read(a),state:null},options:{organization:e.unref(l).params._id},class:""},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(n,r)=>(e.openBlock(),e.createBlock(P.default,{key:n._id,editable:!1,product:n,onClick:()=>{let m={...n};m.quantity=1,m.type="pcs",u.actions.add(t.state.current.ingredients,m),i()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["store","options"])])]),_:1},8,["isPopupOpen"])]),e.createVNode(o.default,{title:"Categories",actions:[{label:"+",function:()=>e.unref(f).push({name:"Categories Organization",params:{_id:e.unref(l).params._id}})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.state.all,(a,n)=>(e.openBlock(),e.createBlock(B.default,{label:a.name,name:"categories",value:a.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category,"onUpdate:radio":r=>t.state.current.category=r},null,8,["label","value","radio","onUpdate:radio"]))),256))]),_:1},8,["actions"]),e.createVNode(o.default,{title:"Parameters",placeholder:"No parameters added yet",actions:[{label:"+",function:()=>t.state.current.information.push({name:"",value:""})}],class:"cols-1 gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.information,(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin flex-nowrap flex",key:n},[e.createVNode(d.default,{field:a.name,"onUpdate:field":r=>a.name=r,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:a.value,"onUpdate:field":r=>a.value=r,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",D,[e.createVNode(b.default,{onClick:()=>t.state.current.information.splice(n,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),e.createVNode(o.default,{title:"Localization",placeholder:"No localizations added yet",actions:[{label:"+",function:()=>t.state.current.localization.push({name:"",value:""})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.localization,(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:n},[e.createVNode(d.default,{field:a.name,"onUpdate:field":r=>a.name=r,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:a.value,"onUpdate:field":r=>a.value=r,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",L,[e.createVNode(b.default,{onClick:()=>t.state.current.localization.splice(n,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"])]))}};exports.default=S;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("vue-router");require("vue-i18n");;/* empty css */const o=require("../../../../components/Block/Block.vue.cjs");;/* empty css */const d=require("../../../../components/Field/Field.vue2.cjs"),B=require("../../../../components/Checkbox/Checkbox.vue.cjs"),_=require("../../../../components/Button/Button.vue2.cjs"),C=require("../../../../components/Popup/Popup.vue2.cjs"),V=require("../../../../components/Feed/Feed.vue.cjs"),y=require("../../../../components/EditImages/EditImages.vue.cjs"),b=require("../../../icons/navigation/IconDelete.vue.cjs"),q=require("../blocks/CardPosition.vue.cjs"),P=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),E=require("../sections/EditProductInfo.vue.cjs"),u=require("../../../globals/store/globals.cjs"),t=require("../../store/products.cjs"),w=require("../../store/categories.cjs");;/* empty css */const U={class:"for-transition w-100 cols-1 pd-thin gap-thin"},z={class:"mn-r-auto"},F={class:"cols-2 gap-thin"},I={key:0,class:"cols-1 gap-thin"},O={class:"bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big"},D={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},L={class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},S={__name:"ProductEdit",setup(T){const l=k.useRoute(),f=k.useRouter(),h=e.ref(t.state.all),p=e.ref(!1);function N(s){p.value=!0}function i(){p.value=!1}e.onMounted(async()=>{t.mutations.resetProduct(),l.params.product&&await t.actions.read({_id:l.params.product}),t.state.current.ingredients||(t.state.current.ingredients=[]),await w.actions.fetchCategories();try{const s=await t.actions.read({organization:l.params._id,limit:100});h.value=s}catch{console.error("error")}});function v(){l.params.product?t.actions.update(l.params.product,t.state.current):t.actions.create(l.params._id,t.state.current)}function x(){t.actions.deleteProduct(t.state.current._id)}function g(){f.push({name:"Organization",params:{_id:l.params._id}})}return(s,c)=>(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(o.default,{class:"flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",z,e.toDisplayString(e.unref(l).params.product?t.state.current.name:"Create Product"),1),e.unref(l).params.product?(e.openBlock(),e.createBlock(_.default,{key:0,submit:x,callback:g,class:"bg-red mn-r-thin"},{default:e.withCtx(()=>[e.createTextVNode(" Delete ")]),_:1})):e.createCommentVNode("",!0),e.createVNode(_.default,{submit:v,callback:g,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" Save ")]),_:1})]),_:1}),e.createVNode(o.default,{placeholder:"The product doesn't have any images yet.",class:"h-min"},{default:e.withCtx(()=>[e.createVNode(y.default,{images:t.state.current.images,uploadPath:"photos","onUpdate:images":c[0]||(c[0]=a=>{t.state.current.images=a})},null,8,["images"])]),_:1}),e.createElementVNode("div",F,[e.createVNode(o.default,{title:"Profile"},{default:e.withCtx(()=>[e.createVNode(E.default,{product:t.state.current},null,8,["product"])]),_:1}),e.createVNode(o.default,{title:"Ingredients",placeholder:"No ingridients added yet",actions:[{label:"+",function:()=>N()}]},{default:e.withCtx(()=>[t.state.current.ingredients.length>0?(e.openBlock(),e.createElementBlock("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.ingredients,(a,n)=>(e.openBlock(),e.createBlock(q.default,{key:a._id,product:a,array:t.state.current.ingredients,products:h.value,showPrice:!1,onAdd:c[1]||(c[1]=r=>{u.actions.add(t.state.current.ingredients,r),i()}),onUpdate:r=>{u.actions.update(t.state.current.ingredients,r,n),i()},onDelete:r=>{u.actions.delete(t.state.current.ingredients,r,n),i()}},null,8,["product","array","products","onUpdate","onDelete"]))),128))])):e.createCommentVNode("",!0)]),_:1},8,["actions"]),e.createVNode(C.default,{title:"Add ingredient",onClosePopup:i,isPopupOpen:p.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(V.default,{search:{class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:a=>t.actions.read(a),state:null},options:{organization:e.unref(l).params._id},class:""},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(n,r)=>(e.openBlock(),e.createBlock(P.default,{key:n._id,editable:!1,product:n,onClick:()=>{let m={...n};m.quantity=1,m.type="pcs",u.actions.add(t.state.current.ingredients,m),i()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["store","options"])])]),_:1},8,["isPopupOpen"])]),e.createVNode(o.default,{title:"Categories",actions:[{label:"+",function:()=>e.unref(f).push({name:"Categories Organization",params:{_id:e.unref(l).params._id}})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.state.all,(a,n)=>(e.openBlock(),e.createBlock(B.default,{label:a.name,name:"categories",value:a.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category,"onUpdate:radio":r=>t.state.current.category=r},null,8,["label","value","radio","onUpdate:radio"]))),256))]),_:1},8,["actions"]),e.createVNode(o.default,{title:"Parameters",placeholder:"No parameters added yet",actions:[{label:"+",function:()=>t.state.current.information.push({name:"",value:""})}],class:"cols-1 gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.information,(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin flex-nowrap flex",key:n},[e.createVNode(d.default,{field:a.name,"onUpdate:field":r=>a.name=r,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:a.value,"onUpdate:field":r=>a.value=r,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",D,[e.createVNode(b.default,{onClick:()=>t.state.current.information.splice(n,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),e.createVNode(o.default,{title:"Localization",placeholder:"No localizations added yet",actions:[{label:"+",function:()=>t.state.current.localization.push({name:"",value:""})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.localization,(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:n},[e.createVNode(d.default,{field:a.name,"onUpdate:field":r=>a.name=r,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:a.value,"onUpdate:field":r=>a.value=r,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",L,[e.createVNode(b.default,{onClick:()=>t.state.current.localization.splice(n,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"])]))}};exports.default=S;
@@ -1,7 +1,6 @@
1
1
  import { ref as U, onMounted as B, openBlock as n, createElementBlock as s, createVNode as a, withCtx as o, createElementVNode as m, toDisplayString as E, unref as p, createBlock as b, createTextVNode as $, createCommentVNode as z, Fragment as f, renderList as _ } from "vue";
2
2
  import { useRoute as F, useRouter as R } from "vue-router";
3
3
  import "vue-i18n";
4
- import "../../../globals/localization/vue-i18n.js";
5
4
  /* empty css */
6
5
  import d from "../../../../components/Block/Block.vue.js";
7
6
  /* empty css */
@@ -22,7 +21,7 @@ import { actions as H, state as J } from "../../store/categories.js";
22
21
  const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class: "mn-r-auto" }, W = { class: "cols-2 gap-thin" }, X = {
23
22
  key: 0,
24
23
  class: "cols-1 gap-thin"
25
- }, Y = { class: "bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big" }, Z = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, ee = { class: "radius-small pd-small flex-center flex aspect-1x1 bg-red" }, ke = {
24
+ }, Y = { class: "bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big" }, Z = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, ee = { class: "radius-small pd-small flex-center flex aspect-1x1 bg-red" }, xe = {
26
25
  __name: "ProductEdit",
27
26
  setup(te) {
28
27
  const l = F(), k = R(), P = U(e.all), y = U(!1);
@@ -287,5 +286,5 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
287
286
  }
288
287
  };
289
288
  export {
290
- ke as default
289
+ xe as default
291
290
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("vue-router"),g=require("vue-i18n"),h=require("../../../../components/Loader/Loader.vue2.cjs");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const f=require("../../../../components/FieldBig/FieldBig.vue.cjs"),_=require("../sections/SectionProduct.vue.cjs");;/* empty css */const s=require("../../store/products.cjs");;/* empty css */;/* empty css */const k=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),q={id:"product-recommendation",class:"h-min-100 pd-thin t-white bg-black"},I={key:1,class:"section"},y={key:0,class:"mn-b-thin"},R={__name:"ProductRecommmendation",setup(T){const r=b.useRouter(),t=e.ref(!0),m=e.ref(!1),u=e.ref(["Loading all we know about the buds","Processing the cannabis universe","Creating a strain of knowledge","Harvesting taste insights"]),p={messages:{en:{TITLE:"Increase Your High,<br><b class='t-white'>Powered by AI Budtender</b>",DESCRIPTION:"AI's got your chill, bro. We're picking out the most cosmic weed strains based on your desired vibe:",placeholder:"Describe your desired high, bro...",action:"Transmit →"},ru:{TITLE:"Персональный Накур,<br><b class='t-white'>Напрямую от AI</b>",DESCRIPTION:"AI на страже твоего релакса, бро. Мы подбираем самые космические сорта травы, исходя из твоего желаемого настроения:",placeholder:"Опиши свой желамый хай, bro...",action:"Передать →"}}},{t:o}=g.useI18n(p),a=e.ref(u.value[0]);let c=e.ref(r.currentRoute.value.query.mood||o("Recommend me something"));e.watchEffect(async()=>{c.value=r.currentRoute.value.query.mood||o("Recommend me something"),t.value=!0,await s.actions.submitMood(c.value),t.value=!1}),e.onMounted(async()=>{}),setInterval(()=>{const i=u.value.indexOf(a.value);a.value=u.value[(i+1)%u.value.length]},2e3);let n=e.ref(r.currentRoute.value.query.mood||o("Recommend me something"));function v(){r.push({name:"Product Recommmendation",query:{mood:n.value}})}return(i,l)=>(e.openBlock(),e.createElementBlock("div",q,[t.value?(e.openBlock(),e.createBlock(h.default,{key:0,status:a.value,class:"pos-fixed"},null,8,["status"])):e.createCommentVNode("",!0),!t.value&&!m.value?(e.openBlock(),e.createElementBlock("div",I,[t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(f.default,{input:e.unref(n),loopTyping:!1,enableTyping:!1,placeholder:e.unref(o)("placeholder"),action:e.unref(o)("action"),"onUpdate:input":l[0]||(l[0]=d=>e.isRef(n)?n.value=d:n=d),onAction:v,class:"t-white bg-dark-transp-50 w-100"},null,8,["input","placeholder","action"])])),e.createVNode(_.default,{product:s.state.current,recommendation:s.state.current.recommendation,class:"bg-dark-transp-50 pd-big radius-big"},null,8,["product","recommendation"])])):e.createCommentVNode("",!0)]))}},w=k.default(R,[["__scopeId","data-v-bbe59673"]]);exports.default=w;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("vue-router"),g=require("vue-i18n"),h=require("../../../../components/Loader/Loader.vue2.cjs");;/* empty css */const f=require("../../../../components/FieldBig/FieldBig.vue.cjs"),_=require("../sections/SectionProduct.vue.cjs");;/* empty css */const s=require("../../store/products.cjs");;/* empty css */;/* empty css */const k=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),I={id:"product-recommendation",class:"h-min-100 pd-thin t-white bg-black"},q={key:1,class:"section"},y={key:0,class:"mn-b-thin"},R={__name:"ProductRecommmendation",setup(T){const r=b.useRouter(),t=e.ref(!0),m=e.ref(!1),u=e.ref(["Loading all we know about the buds","Processing the cannabis universe","Creating a strain of knowledge","Harvesting taste insights"]),p={messages:{en:{TITLE:"Increase Your High,<br><b class='t-white'>Powered by AI Budtender</b>",DESCRIPTION:"AI's got your chill, bro. We're picking out the most cosmic weed strains based on your desired vibe:",placeholder:"Describe your desired high, bro...",action:"Transmit →"},ru:{TITLE:"Персональный Накур,<br><b class='t-white'>Напрямую от AI</b>",DESCRIPTION:"AI на страже твоего релакса, бро. Мы подбираем самые космические сорта травы, исходя из твоего желаемого настроения:",placeholder:"Опиши свой желамый хай, bro...",action:"Передать →"}}},{t:o}=g.useI18n(p),a=e.ref(u.value[0]);let c=e.ref(r.currentRoute.value.query.mood||o("Recommend me something"));e.watchEffect(async()=>{c.value=r.currentRoute.value.query.mood||o("Recommend me something"),t.value=!0,await s.actions.submitMood(c.value),t.value=!1}),e.onMounted(async()=>{}),setInterval(()=>{const i=u.value.indexOf(a.value);a.value=u.value[(i+1)%u.value.length]},2e3);let n=e.ref(r.currentRoute.value.query.mood||o("Recommend me something"));function v(){r.push({name:"Product Recommmendation",query:{mood:n.value}})}return(i,l)=>(e.openBlock(),e.createElementBlock("div",I,[t.value?(e.openBlock(),e.createBlock(h.default,{key:0,status:a.value,class:"pos-fixed"},null,8,["status"])):e.createCommentVNode("",!0),!t.value&&!m.value?(e.openBlock(),e.createElementBlock("div",q,[t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(f.default,{input:e.unref(n),loopTyping:!1,enableTyping:!1,placeholder:e.unref(o)("placeholder"),action:e.unref(o)("action"),"onUpdate:input":l[0]||(l[0]=d=>e.isRef(n)?n.value=d:n=d),onAction:v,class:"t-white bg-dark-transp-50 w-100"},null,8,["input","placeholder","action"])])),e.createVNode(_.default,{product:s.state.current,recommendation:s.state.current.recommendation,class:"bg-dark-transp-50 pd-big radius-big"},null,8,["product","recommendation"])])):e.createCommentVNode("",!0)]))}},w=k.default(R,[["__scopeId","data-v-bbe59673"]]);exports.default=w;
@@ -2,7 +2,6 @@ import { ref as e, watchEffect as I, onMounted as y, openBlock as s, createEleme
2
2
  import { useRouter as k } from "vue-router";
3
3
  import { useI18n as T } from "vue-i18n";
4
4
  import x from "../../../../components/Loader/Loader.vue2.js";
5
- import "../../../globals/localization/vue-i18n.js";
6
5
  /* empty css */
7
6
  import P from "../../../../components/FieldBig/FieldBig.vue.js";
8
7
  import E from "../sections/SectionProduct.vue.js";
@@ -83,7 +82,7 @@ const B = {
83
82
  ])) : u("", !0)
84
83
  ]));
85
84
  }
86
- }, J = /* @__PURE__ */ q(N, [["__scopeId", "data-v-bbe59673"]]);
85
+ }, G = /* @__PURE__ */ q(N, [["__scopeId", "data-v-bbe59673"]]);
87
86
  export {
88
- J as default
87
+ G as default
89
88
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),p=require("../../../../components/Feed/Feed.vue.cjs"),m=require("../sections/FilterProducts.vue.cjs"),h=require("../../../globals/components/blocks/BlockSearch.vue.cjs"),b=require("../blocks/CardProduct.vue.cjs"),v=require("../../../auth/store/auth.cjs"),c=require("../../store/products.cjs"),f={class:"pd-thin"},g={key:0,class:"mn-b-medium flex-v-center flex-nowrap flex"},q=e.createElementVNode("h2",{class:"mn-r-medium"},"Products",-1),y={class:"cols-2-1_3 bg-light pd-thin radius-big gap-thin"},_={__name:"Products",setup(k){const t=l.useRoute(),n=l.useRouter(),a=e.ref(t.query.tabProducts?t.query.tabProducts:"all");t.query.tabProducts=a.value,e.watch(a,u=>{n.replace({query:{...t.query,tabProducts:u}})});function i(u){let r={...t.query};r.search=u,n.push({query:r})}return(u,r)=>(e.openBlock(),e.createElementBlock("div",f,[e.unref(t).name!=="Organization"?(e.openBlock(),e.createElementBlock("header",g,[q,e.createElementVNode("button",{onClick:r[0]||(r[0]=o=>u.$router.push({name:"ProductAdd"})),class:"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")])):e.createCommentVNode("",!0),e.unref(t).name!=="Organization"?(e.openBlock(),e.createBlock(d.default,{key:1,selected:a.value,"onUpdate:selected":r[1]||(r[1]=o=>a.value=o),tabs:[{name:"All",value:"all"},{name:"Published",value:"published"},{name:"Unpublished",value:"unpublished"},{name:"Archivied",value:"archivied"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"])):e.createCommentVNode("",!0),e.createElementVNode("div",y,[e.createVNode(m.default),e.createElementVNode("div",null,[e.createVNode(h.default,{onSearch:i,placeholder:"Enter product name",class:"bg-white mn-b-thin"}),e.createVNode(p.default,{states:{empty:{title:"No Products Found",description:"Currently, there are no products available."}},store:{read:o=>c.actions.read(o),state:c.state},options:{limit:15,organization:e.unref(t).params._id,categories:e.unref(t).query.categories,prices:e.unref(t).query.prices,delivery:e.unref(t).query.delivery,search:e.unref(t).query.search,...a.value!=="all"&&{status:a.value}},class:"cols-4 gap-thin"},{default:e.withCtx(({items:o})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,s=>(e.openBlock(),e.createBlock(b.default,{key:s._id,product:s,user:v.state.access,class:"h-max",onClickCapture:P=>u.$router.push({name:"Product Organization",params:{_id:e.unref(t).params._id,product:s._id}})},null,8,["product","user","onClickCapture"]))),128))]),_:1},8,["store","options"])])])]))}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),p=require("../../../../components/Feed/Feed.vue.cjs"),m=require("../sections/FilterProducts.vue.cjs"),h=require("../../../globals/components/blocks/BlockSearch.vue.cjs"),b=require("../blocks/CardProduct.vue.cjs"),v=require("../../../auth/views/store/auth.cjs"),c=require("../../store/products.cjs"),f={class:"pd-thin"},g={key:0,class:"mn-b-medium flex-v-center flex-nowrap flex"},q=e.createElementVNode("h2",{class:"mn-r-medium"},"Products",-1),y={class:"cols-2-1_3 bg-light pd-thin radius-big gap-thin"},_={__name:"Products",setup(k){const t=l.useRoute(),n=l.useRouter(),a=e.ref(t.query.tabProducts?t.query.tabProducts:"all");t.query.tabProducts=a.value,e.watch(a,u=>{n.replace({query:{...t.query,tabProducts:u}})});function i(u){let r={...t.query};r.search=u,n.push({query:r})}return(u,r)=>(e.openBlock(),e.createElementBlock("div",f,[e.unref(t).name!=="Organization"?(e.openBlock(),e.createElementBlock("header",g,[q,e.createElementVNode("button",{onClick:r[0]||(r[0]=o=>u.$router.push({name:"ProductAdd"})),class:"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")])):e.createCommentVNode("",!0),e.unref(t).name!=="Organization"?(e.openBlock(),e.createBlock(d.default,{key:1,selected:a.value,"onUpdate:selected":r[1]||(r[1]=o=>a.value=o),tabs:[{name:"All",value:"all"},{name:"Published",value:"published"},{name:"Unpublished",value:"unpublished"},{name:"Archivied",value:"archivied"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"])):e.createCommentVNode("",!0),e.createElementVNode("div",y,[e.createVNode(m.default),e.createElementVNode("div",null,[e.createVNode(h.default,{onSearch:i,placeholder:"Enter product name",class:"bg-white mn-b-thin"}),e.createVNode(p.default,{states:{empty:{title:"No Products Found",description:"Currently, there are no products available."}},store:{read:o=>c.actions.read(o),state:c.state},options:{limit:15,organization:e.unref(t).params._id,categories:e.unref(t).query.categories,prices:e.unref(t).query.prices,delivery:e.unref(t).query.delivery,search:e.unref(t).query.search,...a.value!=="all"&&{status:a.value}},class:"cols-4 gap-thin"},{default:e.withCtx(({items:o})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,s=>(e.openBlock(),e.createBlock(b.default,{key:s._id,product:s,user:v.state.access,class:"h-max",onClickCapture:P=>u.$router.push({name:"Product Organization",params:{_id:e.unref(t).params._id,product:s._id}})},null,8,["product","user","onClickCapture"]))),128))]),_:1},8,["store","options"])])])]))}};exports.default=_;
@@ -5,7 +5,7 @@ import $ from "../../../../components/Feed/Feed.vue.js";
5
5
  import k from "../sections/FilterProducts.vue.js";
6
6
  import C from "../../../globals/components/blocks/BlockSearch.vue.js";
7
7
  import w from "../blocks/CardProduct.vue.js";
8
- import { state as x } from "../../../auth/store/auth.js";
8
+ import { state as x } from "../../../auth/views/store/auth.js";
9
9
  import { actions as z, state as N } from "../../store/products.js";
10
10
  const A = { class: "pd-thin" }, B = {
11
11
  key: 0,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../middlewares/client/auth.validation.cjs"),t=[{path:"categories",name:"Categories Organization",meta:{title:{en:"Category",ru:"Категория"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Categories.vue.cjs"))},{path:"categories/add",name:"CategoryAdd",component:()=>Promise.resolve().then(()=>require("../components/pages/CategoryEdit.vue.cjs"))},{path:"categories/:category/edit",name:"CategoryEdit",beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/CategoryEdit.vue.cjs"))}];exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../auth/views/middlewares/auth.validation.cjs"),t=[{path:"categories",name:"Categories Organization",meta:{title:{en:"Category",ru:"Категория"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Categories.vue.cjs"))},{path:"categories/add",name:"CategoryAdd",component:()=>Promise.resolve().then(()=>require("../components/pages/CategoryEdit.vue.cjs"))},{path:"categories/:category/edit",name:"CategoryEdit",beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/CategoryEdit.vue.cjs"))}];exports.default=t;
@@ -1,4 +1,4 @@
1
- import { requiresAuth as e } from "../../middlewares/client/auth.validation.js";
1
+ import { requiresAuth as e } from "../../auth/views/middlewares/auth.validation.js";
2
2
  const o = [{
3
3
  path: "categories",
4
4
  name: "Categories Organization",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("../../auth/store/auth.cjs");const e=[{path:"leftovers",name:"Leftovers",meta:{title:{en:"Leftovers",ru:"Остатки"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/Leftovers.vue.cjs"))},{path:"leftovers/add",name:"LeftoverAdd",meta:{title:{en:"Leftovers Add",ru:"Управление Остатками"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/EditLeftover.vue.cjs"))},{path:"leftovers/:leftover",name:"LeftoverEdit",meta:{title:{en:"Leftovers Edit",ru:"Управление Остатками"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/EditLeftover.vue.cjs"))}];exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("../../auth/views/store/auth.cjs");const e=[{path:"leftovers",name:"Leftovers",meta:{title:{en:"Leftovers",ru:"Остатки"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/Leftovers.vue.cjs"))},{path:"leftovers/add",name:"LeftoverAdd",meta:{title:{en:"Leftovers Add",ru:"Управление Остатками"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/EditLeftover.vue.cjs"))},{path:"leftovers/:leftover",name:"LeftoverEdit",meta:{title:{en:"Leftovers Edit",ru:"Управление Остатками"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/EditLeftover.vue.cjs"))}];exports.default=e;
@@ -1,4 +1,4 @@
1
- import "../../auth/store/auth.js";
1
+ import "../../auth/views/store/auth.js";
2
2
  const t = [{
3
3
  path: "leftovers",
4
4
  name: "Leftovers",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../middlewares/client/auth.validation.cjs"),t=[{path:"products",name:"Products",meta:{title:{en:"Products",ru:"Товары"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/Products.vue.cjs"))},{path:"products/add",name:"ProductAdd",component:()=>Promise.resolve().then(()=>require("../components/pages/ProductEdit.vue.cjs"))},{path:"products/:product",name:"Product Organization",meta:{title:{en:"Product",ru:"Продукт"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Product.vue.cjs"))},{path:"products/:product/edit",name:"ProductEdit",beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/ProductEdit.vue.cjs"))}];exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../auth/views/middlewares/auth.validation.cjs"),t=[{path:"products",name:"Products",meta:{title:{en:"Products",ru:"Товары"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/Products.vue.cjs"))},{path:"products/add",name:"ProductAdd",component:()=>Promise.resolve().then(()=>require("../components/pages/ProductEdit.vue.cjs"))},{path:"products/:product",name:"Product Organization",meta:{title:{en:"Product",ru:"Продукт"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Product.vue.cjs"))},{path:"products/:product/edit",name:"ProductEdit",beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/ProductEdit.vue.cjs"))}];exports.default=t;
@@ -1,4 +1,4 @@
1
- import { requiresAuth as t } from "../../middlewares/client/auth.validation.js";
1
+ import { requiresAuth as t } from "../../auth/views/middlewares/auth.validation.js";
2
2
  const r = [{
3
3
  path: "products",
4
4
  name: "Products",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("vue-router"),v=require("vue-i18n");;/* empty css */;/* empty css */require("../../../globals/localization/vue-i18n.cjs");;/* empty css */;/* empty css */const m=require("../../../globals/store/globals.cjs"),f=require("../../../products/store/categories.cjs"),g=require("../../../marketplace/store/marketplace.cjs"),h={class:"w-100 h-100"},k={class:"h-100 w-100 flex-nowrap flex-column flex gap-thin"},_={class:"pos-absolute z-index-2 w-100"},w={class:"bg-black-transp-25 t-white pd-small w-100 bg-blur-big mn-l-auto mn-r-auto t-center"},b=e.createElementVNode("span",{class:""},"Weed in ",-1),B={key:0},q={key:1},E={key:2},C={__name:"Spots",setup(O){const s=y.useRoute(),n=y.useRouter(),o=e.ref({city:null,state:null,country:null});function u(t){return t.replace(/-/g," ").replace(/\b\w/g,r=>r.toUpperCase())}e.onMounted(async()=>{if(s.params){let t={country:u(s.params.country),state:u(s.params.state),city:u(s.params.city)};o.value=t}if(s.query){const t=s.query,r={categories:t.categories?t.categories.split(","):[],prices:t.prices?t.prices.split(","):[],delivery:t.delivery?t.delivery.split(","):[]};g.state.filter.selected=r}await f.actions.fetchCategories()}),e.watch(()=>g.state.filter.selected,(t,r)=>{const a={...s.query};Object.keys(r).forEach(l=>{a[l]&&delete a[l]});const i=Object.fromEntries(Object.entries(t).filter(([l,c])=>Array.isArray(c)&&c.length>0).map(([l,c])=>[l,c.join(",")]));Object.assign(a,i),n.push({query:a})},{deep:!0});function p(t){return t.toLowerCase().replace(/ /g,"-").replace(/[^a-z0-9-]/g,"")}e.watch(()=>m.state.position,t=>{const r={...n.currentRoute.value};let a={country:p(t.country),state:p(t.state),city:p(t.city)};r.params=a,n.replace(r)},{deep:!0});const d={locale:"en",messages:{en:{meta:{title:"Marketplace – Shop Our Wide Selection of Quality Weed for Delivery",description:"Browse our marketplace of top-grade weed strains and choose from a variety of delivery options. Order now and have your favorite strains delivered straight to your door. Safe, fast, and reliable."},breadcrumbs:{home:"Home",store:"Marketplace"},categoriesTitle:"Category",categories:[],sort:{price:"By price",newest:"By newest",popularity:"By popularity"},filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{meta:{title:"Маркетплейс – Выбирайте из нашего ассортимента качественной травки для доставки",description:"Маркетплейс – Изучите наши продукты высокого качества и выбирайте из различных вариантов доставки. Закажите сейчас и получите свои любимые сорта на дом. Безопасно, быстро и надежно."},breadcrumbs:{home:"Главная",store:"Маркетплейс"},categoriesTitle:"Категория",categories:[],sort:{price:"По цене",newest:"По новизне",popularity:"По популярности"},filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};return f.state.all.forEach(t=>{t.localization.forEach(r=>{d.messages[r.locale].categories.push(r.text)})}),v.useI18n(d),(t,r)=>{const a=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",k,[e.createElementVNode("div",_,[e.createElementVNode("h2",w,[b,o.value.city||o.value.state||o.value.country?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[0]||(r[0]=i=>{m.state.isOpenLocationPopup=!0}),class:"t-semi t-main"},[o.value.city?(e.openBlock(),e.createElementBlock("span",B,e.toDisplayString(o.value.city)+", ",1)):e.createCommentVNode("",!0),o.value.state?(e.openBlock(),e.createElementBlock("span",q,e.toDisplayString(o.value.state)+", ",1)):e.createCommentVNode("",!0),o.value.country?(e.openBlock(),e.createElementBlock("span",E,e.toDisplayString(o.value.country),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",{key:1,onClick:r[1]||(r[1]=i=>{m.state.isOpenLocationPopup=!0}),class:"t-semi t-main"}," The World "))])]),e.createVNode(a,null,{default:e.withCtx(({Component:i,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{ref:"page",key:l.path,localPosition:o.value,apiKey:t.GOOGLE_MAPS_API_KEY,locale:t.$i18n.locale,class:""},null,8,["localPosition","apiKey","locale"]))]),_:2},1024)]),_:1})])])}}};exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("vue-router"),v=require("vue-i18n");;/* empty css */;/* empty css */;/* empty css */;/* empty css */const m=require("../../../globals/store/globals.cjs"),f=require("../../../products/store/categories.cjs"),g=require("../../../marketplace/store/marketplace.cjs"),h={class:"w-100 h-100"},k={class:"h-100 w-100 flex-nowrap flex-column flex gap-thin"},_={class:"pos-absolute z-index-2 w-100"},w={class:"bg-black-transp-25 t-white pd-small w-100 bg-blur-big mn-l-auto mn-r-auto t-center"},b=e.createElementVNode("span",{class:""},"Weed in ",-1),B={key:0},E={key:1},q={key:2},C={__name:"Spots",setup(O){const s=y.useRoute(),n=y.useRouter(),o=e.ref({city:null,state:null,country:null});function u(t){return t.replace(/-/g," ").replace(/\b\w/g,r=>r.toUpperCase())}e.onMounted(async()=>{if(s.params){let t={country:u(s.params.country),state:u(s.params.state),city:u(s.params.city)};o.value=t}if(s.query){const t=s.query,r={categories:t.categories?t.categories.split(","):[],prices:t.prices?t.prices.split(","):[],delivery:t.delivery?t.delivery.split(","):[]};g.state.filter.selected=r}await f.actions.fetchCategories()}),e.watch(()=>g.state.filter.selected,(t,r)=>{const a={...s.query};Object.keys(r).forEach(l=>{a[l]&&delete a[l]});const i=Object.fromEntries(Object.entries(t).filter(([l,c])=>Array.isArray(c)&&c.length>0).map(([l,c])=>[l,c.join(",")]));Object.assign(a,i),n.push({query:a})},{deep:!0});function p(t){return t.toLowerCase().replace(/ /g,"-").replace(/[^a-z0-9-]/g,"")}e.watch(()=>m.state.position,t=>{const r={...n.currentRoute.value};let a={country:p(t.country),state:p(t.state),city:p(t.city)};r.params=a,n.replace(r)},{deep:!0});const d={locale:"en",messages:{en:{meta:{title:"Marketplace – Shop Our Wide Selection of Quality Weed for Delivery",description:"Browse our marketplace of top-grade weed strains and choose from a variety of delivery options. Order now and have your favorite strains delivered straight to your door. Safe, fast, and reliable."},breadcrumbs:{home:"Home",store:"Marketplace"},categoriesTitle:"Category",categories:[],sort:{price:"By price",newest:"By newest",popularity:"By popularity"},filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{meta:{title:"Маркетплейс – Выбирайте из нашего ассортимента качественной травки для доставки",description:"Маркетплейс – Изучите наши продукты высокого качества и выбирайте из различных вариантов доставки. Закажите сейчас и получите свои любимые сорта на дом. Безопасно, быстро и надежно."},breadcrumbs:{home:"Главная",store:"Маркетплейс"},categoriesTitle:"Категория",categories:[],sort:{price:"По цене",newest:"По новизне",popularity:"По популярности"},filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};return f.state.all.forEach(t=>{t.localization.forEach(r=>{d.messages[r.locale].categories.push(r.text)})}),v.useI18n(d),(t,r)=>{const a=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",k,[e.createElementVNode("div",_,[e.createElementVNode("h2",w,[b,o.value.city||o.value.state||o.value.country?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[0]||(r[0]=i=>{m.state.isOpenLocationPopup=!0}),class:"t-semi t-main"},[o.value.city?(e.openBlock(),e.createElementBlock("span",B,e.toDisplayString(o.value.city)+", ",1)):e.createCommentVNode("",!0),o.value.state?(e.openBlock(),e.createElementBlock("span",E,e.toDisplayString(o.value.state)+", ",1)):e.createCommentVNode("",!0),o.value.country?(e.openBlock(),e.createElementBlock("span",q,e.toDisplayString(o.value.country),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",{key:1,onClick:r[1]||(r[1]=i=>{m.state.isOpenLocationPopup=!0}),class:"t-semi t-main"}," The World "))])]),e.createVNode(a,null,{default:e.withCtx(({Component:i,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{ref:"page",key:l.path,localPosition:o.value,apiKey:t.GOOGLE_MAPS_API_KEY,locale:t.$i18n.locale,class:""},null,8,["localPosition","apiKey","locale"]))]),_:2},1024)]),_:1})])])}}};exports.default=C;
@@ -3,13 +3,12 @@ import { useRoute as B, useRouter as S } from "vue-router";
3
3
  import { useI18n as j } from "vue-i18n";
4
4
  /* empty css */
5
5
  /* empty css */
6
- import "../../../globals/localization/vue-i18n.js";
7
6
  /* empty css */
8
7
  /* empty css */
9
8
  import { state as h } from "../../../globals/store/globals.js";
10
9
  import { actions as q, state as R } from "../../../products/store/categories.js";
11
10
  import { state as b } from "../../../marketplace/store/marketplace.js";
12
- const T = { class: "w-100 h-100" }, V = { class: "h-100 w-100 flex-nowrap flex-column flex gap-thin" }, z = { class: "pos-absolute z-index-2 w-100" }, A = { class: "bg-black-transp-25 t-white pd-small w-100 bg-blur-big mn-l-auto mn-r-auto t-center" }, F = /* @__PURE__ */ p("span", { class: "" }, "Weed in ", -1), L = { key: 0 }, M = { key: 1 }, W = { key: 2 }, Z = {
11
+ const T = { class: "w-100 h-100" }, V = { class: "h-100 w-100 flex-nowrap flex-column flex gap-thin" }, z = { class: "pos-absolute z-index-2 w-100" }, A = { class: "bg-black-transp-25 t-white pd-small w-100 bg-blur-big mn-l-auto mn-r-auto t-center" }, F = /* @__PURE__ */ p("span", { class: "" }, "Weed in ", -1), L = { key: 0 }, M = { key: 1 }, W = { key: 2 }, X = {
13
12
  __name: "Spots",
14
13
  setup(D) {
15
14
  const a = B(), u = S(), r = k({
@@ -177,5 +176,5 @@ const T = { class: "w-100 h-100" }, V = { class: "h-100 w-100 flex-nowrap flex-c
177
176
  }
178
177
  };
179
178
  export {
180
- Z as default
179
+ X as default
181
180
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../globals/components/layouts/Empty.vue.cjs"),r=require("../components/layouts/Spots.vue.cjs"),e=require("../../middlewares/client/auth.validation.cjs"),o={path:"spots",component:t.default,meta:{title:{en:"Spots",ru:"Места"},breadcrumbs:{hide:!0,hidden:!0}},children:[{path:":country?",component:r.default,meta:{title:{en:"Spots",ru:"Места"},header_theme:"dark",footer_theme:"dark"},children:[{path:":state?",name:"Spots tate",component:()=>Promise.resolve().then(()=>require("../components/pages/Map.vue.cjs")),children:[{path:":city?",name:"Spots City",component:()=>Promise.resolve().then(()=>require("../components/pages/Map.vue.cjs"))}]}]},{path:":_id/spots/create",name:"Spot Creation",meta:{title:"Создание точки"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/SpotEdit.vue.cjs"))},{path:":_id/spots/:spot",name:"Spot",meta:{title:"Точка"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/Spot.vue.cjs"))},{path:":_id/spots/:spot/edit",name:"Spot Edit",meta:{title:"Редактирование точки"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/SpotEdit.vue.cjs"))}]};exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../globals/components/layouts/Empty.vue.cjs"),r=require("../components/layouts/Spots.vue.cjs"),e=require("../../auth/views/middlewares/auth.validation.cjs"),o={path:"spots",component:t.default,meta:{title:{en:"Spots",ru:"Места"},breadcrumbs:{hide:!0,hidden:!0}},children:[{path:":country?",component:r.default,meta:{title:{en:"Spots",ru:"Места"},header_theme:"dark",footer_theme:"dark"},children:[{path:":state?",name:"Spots tate",component:()=>Promise.resolve().then(()=>require("../components/pages/Map.vue.cjs")),children:[{path:":city?",name:"Spots City",component:()=>Promise.resolve().then(()=>require("../components/pages/Map.vue.cjs"))}]}]},{path:":_id/spots/create",name:"Spot Creation",meta:{title:"Создание точки"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/SpotEdit.vue.cjs"))},{path:":_id/spots/:spot",name:"Spot",meta:{title:"Точка"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/Spot.vue.cjs"))},{path:":_id/spots/:spot/edit",name:"Spot Edit",meta:{title:"Редактирование точки"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/SpotEdit.vue.cjs"))}]};exports.default=o;
@@ -1,6 +1,6 @@
1
1
  import e from "../../globals/components/layouts/Empty.vue.js";
2
2
  import o from "../components/layouts/Spots.vue.js";
3
- import { requiresAuth as t } from "../../middlewares/client/auth.validation.js";
3
+ import { requiresAuth as t } from "../../auth/views/middlewares/auth.validation.js";
4
4
  const n = {
5
5
  path: "spots",
6
6
  component: e,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */const h=require("../../../../components/Dropdown/Dropdown.vue.cjs"),g=require("../../../../components/Completion/Completion.vue.cjs"),d=require("../../../../components/Menu/Menu.vue2.cjs"),l=require("../../../../components/Menu/MenuItem.vue.cjs"),p=require("../../../organizations/components/elements/ButtonToggleMembership.vue.cjs"),N=require("../../../reports/components/sections/FormReport.vue.cjs"),V=require("../../../organizations/components/blocks/Socials.vue.cjs"),B=require("../../../icons/entities/IconEvents.vue.cjs"),f=require("../../../icons/entities/IconGroups.vue.cjs"),w=require("../../../icons/entities/IconCommunity.vue.cjs"),C=require("../../../icons/navigation/IconEdit.vue.cjs"),E=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),_=require("vue-router"),o=require("../../../auth/store/auth.cjs"),t=require("../../store/users.cjs"),v=require("../../../organizations/store/memberships.cjs");require("./Profile.vue2.cjs");const x={key:0,class:"for-transition w-100"},y={key:0,class:"flex-center flex pd-medium radius-big bg-light uppercase t-semi w-100 h-100"},q={key:1,_id:"dash",class:"pd-b-extra pd-thin w-100"},S={class:"flex-center pos-relative flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-light"},U={class:"bg-black pd-thin radius-small"},M=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),P=["src"],R={class:"mn-b-thin"},$={key:4,class:"mn-b-thin t-main t-semi"},D={class:"mn-b-small p-medium"},I={class:"mn-b-medium flex-center flex-nowrap flex"},F={class:"t-semi mn-b-small"},L={key:6,class:"mn-t-small mn-b-thin"},O=e.createElementVNode("span",null,"Events",-1),A=e.createElementVNode("span",null,"Groups",-1),j=e.createElementVNode("span",null,"Posts",-1),W=e.createElementVNode("span",null,"Wallet",-1),z=e.createElementVNode("span",null," Settings ",-1),G=e.createElementVNode("span",null," About ",-1),T=e.createElementVNode("span",{class:"t-red"}," Logout ",-1),H={__name:"Profile",setup(J){const a=_.useRoute(),n=_.useRouter(),u=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:a.params._id,user:o.state.user._id}),u.value=!0});const m=({membership:i,status:r,target:s},c,k)=>{v.mutations.handleMembershipUpdate(t.state.current,i,r,s,c,k)};function b(){o.actions.logout(),n.push({name:"Sign In"})}return(i,r)=>u.value?(e.openBlock(),e.createElementBlock("div",x,[t.state.current.status==="removed"?(e.openBlock(),e.createElementBlock("div",y," Sorry, user has been removed. ")):(e.openBlock(),e.createElementBlock("div",q,[e.unref(a).params._id===o.state.user._id&&u.value?(e.openBlock(),e.createBlock(g.default,{key:0,user:o.state.user._id,target:t.state.current,cta:!0,text_cta:"Fill Profile",text:"Profile completed at",class:"mn-b-medium"},null,8,["user","target"])):e.createCommentVNode("",!0),e.createElementVNode("section",S,[e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(h.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",U,[e.createVNode(N.default,{user:o.state.user._id,type:"user",target:t.state.current._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[M]),_:1},8,["user","target"]),o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:0,user:o.state.user._id,type:"user",role:"blocked",target:t.state.current._id,status:t.state.current.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:r[0]||(r[0]=s=>m(s,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1})):e.createCommentVNode("",!0),e.unref(a).params._id===o.state.user._id?(e.openBlock(),e.createBlock(C.default,{key:1,onClick:r[1]||(r[1]=s=>i.$router.push({name:"User Edit Profile",params:{_id:o.state.user._id}})),class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.state.current.profile.photo&&t.state.current.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.state.current.profile.photo,class:"radius-extra bg-white mn-b-small object-fit-cover i-extra"},null,8,P)):(e.openBlock(),e.createBlock(E.default,{key:3,class:"radius-medium mn-b-small i-extra"})),e.createElementVNode("h3",R,e.toDisplayString(t.state.current.profile.name?t.state.current.profile.name:"Anonymous"),1),t.state.current.username?(e.openBlock(),e.createElementBlock("p",$," @"+e.toDisplayString(t.state.current.username?t.state.current.username:"Not specified"),1)):e.createCommentVNode("",!0),e.createElementVNode("p",D,e.toDisplayString(t.state.current.profile.description?t.state.current.profile.description:"Bio not specified"),1),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.roles,(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-white",{"mn-r-thin":c!==t.state.current.roles.length-1}])},e.toDisplayString(s.icon)+" "+e.toDisplayString(s.name),3))),256))]),e.createElementVNode("p",F," 👨‍👨‍👧‍👧 "+e.toDisplayString(t.state.current.numberOfSubscribers)+" followers ",1),o.state.user._id&&e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:5,user:o.state.user._id,type:"user",role:"subscriber",target:t.state.current._id,status:t.state.current.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:r[2]||(r[2]=s=>m(s,"isSubscriber","numberOfSubscribers")),class:"w-min mn-b-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.state.current.socials).some(s=>s)?(e.openBlock(),e.createElementBlock("h4",L," Find Me in Socials ")):e.createCommentVNode("",!0),e.createVNode(V.default,{telegram:t.state.current.socials.telegram,facebook:t.state.current.socials.facebook,instagram:t.state.current.socials.instagram,twitter:t.state.current.socials.twitter,class:"mn-r-auto mn-l-auto"},null,8,["telegram","facebook","instagram","twitter"])]),e.createVNode(d.default,{class:"mn-b-regular bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[3]||(r[3]=s=>e.unref(n).push({name:"User Events",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(B.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),O]),_:1}),e.createVNode(l.default,{onClick:r[4]||(r[4]=s=>e.unref(n).push({name:"User Organizations",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),A]),_:1}),e.createVNode(l.default,{onClick:r[5]||(r[5]=s=>e.unref(n).push({name:"User Blogposts",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(w.default,{class:"i-semi",icon:!0}),j]),_:1})]),_:1}),i.APP_NAME==="Weeder"?(e.openBlock(),e.createBlock(d.default,{key:1,class:"mn-b-regular bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[6]||(r[6]=s=>e.unref(n).push({name:"User Wallet",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),W]),_:1})]),_:1})):e.createCommentVNode("",!0),o.state.user._id===e.unref(a).params._id?(e.openBlock(),e.createBlock(d.default,{key:2,class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[7]||(r[7]=s=>e.unref(n).push({name:"User Edit Profile",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[z]),_:1}),e.createVNode(l.default,{onClick:r[8]||(r[8]=s=>e.unref(n).push({name:"Legal",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[G]),_:1}),e.createVNode(l.default,{class:"cursor-pointer",onClick:r[9]||(r[9]=s=>b())},{default:e.withCtx(()=>[T]),_:1})]),_:1})):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}};exports.default=H;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */const h=require("../../../../components/Dropdown/Dropdown.vue.cjs"),g=require("../../../../components/Completion/Completion.vue.cjs"),d=require("../../../../components/Menu/Menu.vue.cjs"),l=require("../../../../components/Menu/MenuItem.vue.cjs"),p=require("../../../organizations/components/elements/ButtonToggleMembership.vue.cjs"),N=require("../../../reports/components/sections/FormReport.vue.cjs"),V=require("../../../organizations/components/blocks/Socials.vue.cjs"),B=require("../../../icons/entities/IconEvents.vue.cjs"),f=require("../../../icons/entities/IconGroups.vue.cjs"),w=require("../../../icons/entities/IconCommunity.vue.cjs"),C=require("../../../icons/navigation/IconEdit.vue.cjs"),E=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),_=require("vue-router"),o=require("../../../auth/views/store/auth.cjs"),t=require("../../store/users.cjs"),v=require("../../../organizations/store/memberships.cjs");require("./Profile.vue2.cjs");const x={key:0,class:"for-transition w-100"},y={key:0,class:"flex-center flex pd-medium radius-big bg-light uppercase t-semi w-100 h-100"},q={key:1,_id:"dash",class:"pd-b-extra pd-thin w-100"},S={class:"flex-center pos-relative flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-light"},U={class:"bg-black pd-thin radius-small"},M=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),P=["src"],R={class:"mn-b-thin"},$={key:4,class:"mn-b-thin t-main t-semi"},D={class:"mn-b-small p-medium"},I={class:"mn-b-medium flex-center flex-nowrap flex"},F={class:"t-semi mn-b-small"},L={key:6,class:"mn-t-small mn-b-thin"},O=e.createElementVNode("span",null,"Events",-1),A=e.createElementVNode("span",null,"Groups",-1),j=e.createElementVNode("span",null,"Posts",-1),W=e.createElementVNode("span",null,"Wallet",-1),z=e.createElementVNode("span",null," Settings ",-1),G=e.createElementVNode("span",null," About ",-1),T=e.createElementVNode("span",{class:"t-red"}," Logout ",-1),H={__name:"Profile",setup(J){const a=_.useRoute(),n=_.useRouter(),u=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:a.params._id,user:o.state.user._id}),u.value=!0});const m=({membership:i,status:r,target:s},c,k)=>{v.mutations.handleMembershipUpdate(t.state.current,i,r,s,c,k)};function b(){o.actions.logout(),n.push({name:"Sign In"})}return(i,r)=>u.value?(e.openBlock(),e.createElementBlock("div",x,[t.state.current.status==="removed"?(e.openBlock(),e.createElementBlock("div",y," Sorry, user has been removed. ")):(e.openBlock(),e.createElementBlock("div",q,[e.unref(a).params._id===o.state.user._id&&u.value?(e.openBlock(),e.createBlock(g.default,{key:0,user:o.state.user._id,target:t.state.current,cta:!0,text_cta:"Fill Profile",text:"Profile completed at",class:"mn-b-medium"},null,8,["user","target"])):e.createCommentVNode("",!0),e.createElementVNode("section",S,[e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(h.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",U,[e.createVNode(N.default,{user:o.state.user._id,type:"user",target:t.state.current._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[M]),_:1},8,["user","target"]),o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:0,user:o.state.user._id,type:"user",role:"blocked",target:t.state.current._id,status:t.state.current.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:r[0]||(r[0]=s=>m(s,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1})):e.createCommentVNode("",!0),e.unref(a).params._id===o.state.user._id?(e.openBlock(),e.createBlock(C.default,{key:1,onClick:r[1]||(r[1]=s=>i.$router.push({name:"User Edit Profile",params:{_id:o.state.user._id}})),class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.state.current.profile.photo&&t.state.current.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.state.current.profile.photo,class:"radius-extra bg-white mn-b-small object-fit-cover i-extra"},null,8,P)):(e.openBlock(),e.createBlock(E.default,{key:3,class:"radius-medium mn-b-small i-extra"})),e.createElementVNode("h3",R,e.toDisplayString(t.state.current.profile.name?t.state.current.profile.name:"Anonymous"),1),t.state.current.username?(e.openBlock(),e.createElementBlock("p",$," @"+e.toDisplayString(t.state.current.username?t.state.current.username:"Not specified"),1)):e.createCommentVNode("",!0),e.createElementVNode("p",D,e.toDisplayString(t.state.current.profile.description?t.state.current.profile.description:"Bio not specified"),1),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.roles,(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-white",{"mn-r-thin":c!==t.state.current.roles.length-1}])},e.toDisplayString(s.icon)+" "+e.toDisplayString(s.name),3))),256))]),e.createElementVNode("p",F," 👨‍👨‍👧‍👧 "+e.toDisplayString(t.state.current.numberOfSubscribers)+" followers ",1),o.state.user._id&&e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:5,user:o.state.user._id,type:"user",role:"subscriber",target:t.state.current._id,status:t.state.current.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:r[2]||(r[2]=s=>m(s,"isSubscriber","numberOfSubscribers")),class:"w-min mn-b-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.state.current.socials).some(s=>s)?(e.openBlock(),e.createElementBlock("h4",L," Find Me in Socials ")):e.createCommentVNode("",!0),e.createVNode(V.default,{telegram:t.state.current.socials.telegram,facebook:t.state.current.socials.facebook,instagram:t.state.current.socials.instagram,twitter:t.state.current.socials.twitter,class:"mn-r-auto mn-l-auto"},null,8,["telegram","facebook","instagram","twitter"])]),e.createVNode(d.default,{class:"mn-b-regular bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[3]||(r[3]=s=>e.unref(n).push({name:"User Events",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(B.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),O]),_:1}),e.createVNode(l.default,{onClick:r[4]||(r[4]=s=>e.unref(n).push({name:"User Organizations",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),A]),_:1}),e.createVNode(l.default,{onClick:r[5]||(r[5]=s=>e.unref(n).push({name:"User Blogposts",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(w.default,{class:"i-semi",icon:!0}),j]),_:1})]),_:1}),i.APP_NAME==="Weeder"?(e.openBlock(),e.createBlock(d.default,{key:1,class:"mn-b-regular bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[6]||(r[6]=s=>e.unref(n).push({name:"User Wallet",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),W]),_:1})]),_:1})):e.createCommentVNode("",!0),o.state.user._id===e.unref(a).params._id?(e.openBlock(),e.createBlock(d.default,{key:2,class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[7]||(r[7]=s=>e.unref(n).push({name:"User Edit Profile",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[z]),_:1}),e.createVNode(l.default,{onClick:r[8]||(r[8]=s=>e.unref(n).push({name:"Legal",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[G]),_:1}),e.createVNode(l.default,{class:"cursor-pointer",onClick:r[9]||(r[9]=s=>b())},{default:e.withCtx(()=>[T]),_:1})]),_:1})):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}};exports.default=H;
@@ -4,7 +4,7 @@ import { ref as U, onMounted as C, openBlock as i, createElementBlock as c, unre
4
4
  /* empty css */
5
5
  import B from "../../../../components/Dropdown/Dropdown.vue.js";
6
6
  import M from "../../../../components/Completion/Completion.vue.js";
7
- import k from "../../../../components/Menu/Menu.vue2.js";
7
+ import k from "../../../../components/Menu/Menu.vue.js";
8
8
  import _ from "../../../../components/Menu/MenuItem.vue.js";
9
9
  import w from "../../../organizations/components/elements/ButtonToggleMembership.vue.js";
10
10
  import R from "../../../reports/components/sections/FormReport.vue.js";
@@ -15,7 +15,7 @@ import N from "../../../icons/entities/IconCommunity.vue.js";
15
15
  import A from "../../../icons/navigation/IconEdit.vue.js";
16
16
  import I from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
17
17
  import { useRoute as O, useRouter as V } from "vue-router";
18
- import { state as l, actions as W } from "../../../auth/store/auth.js";
18
+ import { state as l, actions as W } from "../../../auth/views/store/auth.js";
19
19
  import { actions as j, state as e } from "../../store/users.js";
20
20
  import { mutations as z } from "../../../organizations/store/memberships.js";
21
21
  import "./Profile.vue2.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),p=require("../../../../components/Feed/Feed.vue.cjs"),m=require("../../../community/components/blocks/CardBlogpost.vue.cjs"),o=require("../../../auth/store/auth.cjs"),f=require("../../../community/store/blogposts.cjs"),b={class:"pd-thin"},g={class:"mn-b-medium flex-v-center flex-nowrap flex"},_=e.createElementVNode("h2",{class:"mn-r-medium"},"Posts",-1),h={__name:"ProfileBlogposts",setup(v){const t=n.useRoute(),i=n.useRouter();let c=t.query.tab?t.query.tab:"posts";const r=e.ref(c);return t.query.tab=r.value,e.watch(r,l=>{i.replace({query:{...t.query,tab:l}})}),(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("header",g,[_,o.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=s=>l.$router.push({name:"Create BlogPost"})),class:"radius-100 t-white t-semi i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),o.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createBlock(d.default,{key:0,selected:r.value,"onUpdate:selected":a[1]||(a[1]=s=>r.value=s),tabs:[{name:"My posts",value:"posts"},{name:"Drafts",value:"drafts"},{name:"Following",value:"following"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"])):e.createCommentVNode("",!0),e.createVNode(p.default,{showLoadMore:!1,states:{empty:{title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later."}},store:{read:s=>f.read(s)},options:{limit:15,category:e.unref(t).params.category,period:e.unref(t).query.period,status:r.value==="drafts"?"draft":"published",user:o.state.user._id,creator:["posts","drafts"].includes(r.value)?e.unref(t).params._id:null,following:r.value==="following"?o.state.user._id:null},class:"row-1 gap-thin"},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,u=>(e.openBlock(),e.createBlock(m.default,{key:u._id,blogpost:u,user:o.state.user._id,class:"h-max-40r mn-b-medium"},null,8,["blogpost","user"]))),128))]),_:1},8,["store","options"])]))}};exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),p=require("../../../../components/Feed/Feed.vue.cjs"),m=require("../../../community/components/blocks/CardBlogpost.vue.cjs"),o=require("../../../auth/views/store/auth.cjs"),f=require("../../../community/store/blogposts.cjs"),b={class:"pd-thin"},g={class:"mn-b-medium flex-v-center flex-nowrap flex"},_=e.createElementVNode("h2",{class:"mn-r-medium"},"Posts",-1),h={__name:"ProfileBlogposts",setup(v){const t=n.useRoute(),i=n.useRouter();let c=t.query.tab?t.query.tab:"posts";const r=e.ref(c);return t.query.tab=r.value,e.watch(r,l=>{i.replace({query:{...t.query,tab:l}})}),(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("header",g,[_,o.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=s=>l.$router.push({name:"Create BlogPost"})),class:"radius-100 t-white t-semi i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),o.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createBlock(d.default,{key:0,selected:r.value,"onUpdate:selected":a[1]||(a[1]=s=>r.value=s),tabs:[{name:"My posts",value:"posts"},{name:"Drafts",value:"drafts"},{name:"Following",value:"following"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"])):e.createCommentVNode("",!0),e.createVNode(p.default,{showLoadMore:!1,states:{empty:{title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later."}},store:{read:s=>f.read(s)},options:{limit:15,category:e.unref(t).params.category,period:e.unref(t).query.period,status:r.value==="drafts"?"draft":"published",user:o.state.user._id,creator:["posts","drafts"].includes(r.value)?e.unref(t).params._id:null,following:r.value==="following"?o.state.user._id:null},class:"row-1 gap-thin"},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,u=>(e.openBlock(),e.createBlock(m.default,{key:u._id,blogpost:u,user:o.state.user._id,class:"h-max-40r mn-b-medium"},null,8,["blogpost","user"]))),128))]),_:1},8,["store","options"])]))}};exports.default=h;
@@ -3,7 +3,7 @@ import { useRoute as w, useRouter as k } from "vue-router";
3
3
  import q from "../../../../components/Tab/Tab.vue2.js";
4
4
  import x from "../../../../components/Feed/Feed.vue.js";
5
5
  import B from "../../../community/components/blocks/CardBlogpost.vue.js";
6
- import { state as a } from "../../../auth/store/auth.js";
6
+ import { state as a } from "../../../auth/views/store/auth.js";
7
7
  import { read as C } from "../../../community/store/blogposts.js";
8
8
  const P = { class: "pd-thin" }, $ = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, N = /* @__PURE__ */ c("h2", { class: "mn-r-medium" }, "Posts", -1), O = {
9
9
  __name: "ProfileBlogposts",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const i=require("../../../../components/Field/Field.vue2.cjs"),u=require("../../../../components/Button/Button.vue2.cjs"),b=require("../../../../components/UploadImage/UploadImage.vue.cjs"),h=require("../sections/ProfileCompletion.vue.cjs"),c=require("vue-router"),s=require("../../../auth/store/auth.cjs"),t=require("../../store/users.cjs");require("../../../middlewares/client/inputs.validation.cjs");require("./ProfileEdit.vue2.cjs");const g={key:0,class:"pd-medium for-transition w-100"},N=e.createElementVNode("h3",{class:"mn-b-small"},"Username",-1),w={class:"mn-b-semi"},V=e.createElementVNode("h3",{class:"mn-b-small"},"Profile",-1),v={class:"mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex"},U=e.createElementVNode("h4",null,"Upload userpic",-1),k=e.createElementVNode("h3",{class:"mn-b-small"},"Socials",-1),_=e.createElementVNode("p",{class:"mn-b-thin"},"Please provide only the username for social media profiles, without full links.",-1),y=e.createElementVNode("h3",{class:"mn-b-small"},"Account",-1),q={__name:"ProfileEdit",setup(E){e.ref(null);const o=c.useRoute(),n=c.useRouter();e.ref(null);const d=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:o.params._id,user:s.state.user._id}),d.value=!0});async function m(){await t.actions.update(t.state.current)}async function f(){window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.")&&(t.state.current.status="removed",await t.actions.update(t.state.current),s.actions.logout())}function p(){n.replace({name:"User Profile",params:{_id:t.state.current._id}})}return(r,a)=>d.value?(e.openBlock(),e.createElementBlock("div",g,[e.unref(o).params._id===s.state.user._id?(e.openBlock(),e.createBlock(h.default,{key:0,user:s.state.user._id,target:t.state.current,cta:!1},null,8,["user","target"])):e.createCommentVNode("",!0),N,e.createVNode(i.default,{field:t.state.current.username,"onUpdate:field":a[0]||(a[0]=l=>t.state.current.username=l),label:"@",placeholder:"Not specified",class:"mn-b-thin w-100 bg-light pd-medium radius-small",disabled:"true",validation:r.organizationName},null,8,["field","validation"]),e.createElementVNode("p",w,"Your username will be used for URL of profile like "+e.toDisplayString(r.API_URL)+"/users/username",1),V,e.createElementVNode("div",v,[e.createVNode(b.default,{photo:t.state.current.profile.photo,"onUpdate:photo":a[1]||(a[1]=l=>t.state.current.profile.photo=l),uploadPath:"users/"+t.state.current._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden bg-white mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),U]),e.createVNode(i.default,{field:t.state.current.profile.name,"onUpdate:field":a[2]||(a[2]=l=>t.state.current.profile.name=l),label:"Name",placeholder:"Not specified",class:"mn-b-thin bg-light pd-medium radius-small",validation:r.organizationName},null,8,["field","validation"]),e.createVNode(i.default,{field:t.state.current.profile.description,"onUpdate:field":a[3]||(a[3]=l=>t.state.current.profile.description=l),label:"Description",placeholder:"Not specified",class:"mn-b-semi bg-light pd-medium radius-small",validation:r.organizationName},null,8,["field","validation"]),k,_,e.createVNode(i.default,{field:t.state.current.socials.instagram,"onUpdate:field":a[4]||(a[4]=l=>t.state.current.socials.instagram=l),label:"Instagram",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:t.state.current.socials.twitter,"onUpdate:field":a[5]||(a[5]=l=>t.state.current.socials.twitter=l),label:"Twitter",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:t.state.current.socials.facebook,"onUpdate:field":a[6]||(a[6]=l=>t.state.current.socials.facebook=l),label:"Facebook",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:t.state.current.socials.telegram,"onUpdate:field":a[7]||(a[7]=l=>t.state.current.socials.telegram=l),label:"Telegram",placeholder:"",class:"mn-b-semi bg-light pd-medium radius-small"},null,8,["field"]),y,e.createVNode(i.default,{field:t.state.current.phone,"onUpdate:field":a[8]||(a[8]=l=>t.state.current.phone=l),label:"Phone",placeholder:"Not specified",class:"mn-b-thin bg-light pd-medium mn-b-thin radius-small",disabled:"true",validation:r.organizationName},null,8,["field","validation"]),e.createVNode(i.default,{field:t.state.current.email,"onUpdate:field":a[9]||(a[9]=l=>t.state.current.email=l),label:"Email",placeholder:"Not specified",class:"mn-b-semi bg-light pd-medium radius-small",disabled:!0,validation:r.organizationName},null,8,["field","validation"]),e.createVNode(u.default,{submit:m,callback:p,class:"mn-b-thin bg-main w-100"},{default:e.withCtx(()=>[e.createTextVNode(" Save ")]),_:1}),e.createVNode(u.default,{submit:f,callback:r.a=()=>{e.unref(n).push({name:"Sign In"})},class:"mn-b-thin w-100 bg-red t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Delete Account ")]),_:1},8,["callback"])])):e.createCommentVNode("",!0)}};exports.default=q;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const i=require("../../../../components/Field/Field.vue2.cjs"),u=require("../../../../components/Button/Button.vue2.cjs"),b=require("../../../../components/UploadImage/UploadImage.vue.cjs"),h=require("../sections/ProfileCompletion.vue.cjs"),c=require("vue-router"),s=require("../../../auth/views/store/auth.cjs"),t=require("../../store/users.cjs");require("./ProfileEdit.vue2.cjs");const g={key:0,class:"pd-medium for-transition w-100"},N=e.createElementVNode("h3",{class:"mn-b-small"},"Username",-1),w={class:"mn-b-semi"},V=e.createElementVNode("h3",{class:"mn-b-small"},"Profile",-1),v={class:"mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex"},U=e.createElementVNode("h4",null,"Upload userpic",-1),k=e.createElementVNode("h3",{class:"mn-b-small"},"Socials",-1),_=e.createElementVNode("p",{class:"mn-b-thin"},"Please provide only the username for social media profiles, without full links.",-1),y=e.createElementVNode("h3",{class:"mn-b-small"},"Account",-1),E={__name:"ProfileEdit",setup(q){e.ref(null);const o=c.useRoute(),n=c.useRouter();e.ref(null);const d=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:o.params._id,user:s.state.user._id}),d.value=!0});async function m(){await t.actions.update(t.state.current)}async function f(){window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.")&&(t.state.current.status="removed",await t.actions.update(t.state.current),s.actions.logout())}function p(){n.replace({name:"User Profile",params:{_id:t.state.current._id}})}return(r,a)=>d.value?(e.openBlock(),e.createElementBlock("div",g,[e.unref(o).params._id===s.state.user._id?(e.openBlock(),e.createBlock(h.default,{key:0,user:s.state.user._id,target:t.state.current,cta:!1},null,8,["user","target"])):e.createCommentVNode("",!0),N,e.createVNode(i.default,{field:t.state.current.username,"onUpdate:field":a[0]||(a[0]=l=>t.state.current.username=l),label:"@",placeholder:"Not specified",class:"mn-b-thin w-100 bg-light pd-medium radius-small",disabled:"true",validation:r.organizationName},null,8,["field","validation"]),e.createElementVNode("p",w,"Your username will be used for URL of profile like "+e.toDisplayString(r.API_URL)+"/users/username",1),V,e.createElementVNode("div",v,[e.createVNode(b.default,{photo:t.state.current.profile.photo,"onUpdate:photo":a[1]||(a[1]=l=>t.state.current.profile.photo=l),uploadPath:"users/"+t.state.current._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden bg-white mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),U]),e.createVNode(i.default,{field:t.state.current.profile.name,"onUpdate:field":a[2]||(a[2]=l=>t.state.current.profile.name=l),label:"Name",placeholder:"Not specified",class:"mn-b-thin bg-light pd-medium radius-small",validation:r.organizationName},null,8,["field","validation"]),e.createVNode(i.default,{field:t.state.current.profile.description,"onUpdate:field":a[3]||(a[3]=l=>t.state.current.profile.description=l),label:"Description",placeholder:"Not specified",class:"mn-b-semi bg-light pd-medium radius-small",validation:r.organizationName},null,8,["field","validation"]),k,_,e.createVNode(i.default,{field:t.state.current.socials.instagram,"onUpdate:field":a[4]||(a[4]=l=>t.state.current.socials.instagram=l),label:"Instagram",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:t.state.current.socials.twitter,"onUpdate:field":a[5]||(a[5]=l=>t.state.current.socials.twitter=l),label:"Twitter",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:t.state.current.socials.facebook,"onUpdate:field":a[6]||(a[6]=l=>t.state.current.socials.facebook=l),label:"Facebook",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:t.state.current.socials.telegram,"onUpdate:field":a[7]||(a[7]=l=>t.state.current.socials.telegram=l),label:"Telegram",placeholder:"",class:"mn-b-semi bg-light pd-medium radius-small"},null,8,["field"]),y,e.createVNode(i.default,{field:t.state.current.phone,"onUpdate:field":a[8]||(a[8]=l=>t.state.current.phone=l),label:"Phone",placeholder:"Not specified",class:"mn-b-thin bg-light pd-medium mn-b-thin radius-small",disabled:"true",validation:r.organizationName},null,8,["field","validation"]),e.createVNode(i.default,{field:t.state.current.email,"onUpdate:field":a[9]||(a[9]=l=>t.state.current.email=l),label:"Email",placeholder:"Not specified",class:"mn-b-semi bg-light pd-medium radius-small",disabled:!0,validation:r.organizationName},null,8,["field","validation"]),e.createVNode(u.default,{submit:m,callback:p,class:"mn-b-thin bg-main w-100"},{default:e.withCtx(()=>[e.createTextVNode(" Save ")]),_:1}),e.createVNode(u.default,{submit:f,callback:r.a=()=>{e.unref(n).push({name:"Sign In"})},class:"mn-b-thin w-100 bg-red t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Delete Account ")]),_:1},8,["callback"])])):e.createCommentVNode("",!0)}};exports.default=E;
@@ -5,14 +5,13 @@ import w from "../../../../components/Button/Button.vue2.js";
5
5
  import S from "../../../../components/UploadImage/UploadImage.vue.js";
6
6
  import z from "../sections/ProfileCompletion.vue.js";
7
7
  import { useRoute as R, useRouter as $ } from "vue-router";
8
- import { state as s, actions as A } from "../../../auth/store/auth.js";
8
+ import { state as s, actions as A } from "../../../auth/views/store/auth.js";
9
9
  import { actions as d, state as e } from "../../store/users.js";
10
- import "../../../middlewares/client/inputs.validation.js";
11
10
  import "./ProfileEdit.vue2.js";
12
11
  const D = {
13
12
  key: 0,
14
13
  class: "pd-medium for-transition w-100"
15
- }, E = /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Username", -1), T = { class: "mn-b-semi" }, V = /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Profile", -1), B = { class: "mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex" }, I = /* @__PURE__ */ o("h4", null, "Upload userpic", -1), x = /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Socials", -1), C = /* @__PURE__ */ o("p", { class: "mn-b-thin" }, "Please provide only the username for social media profiles, without full links.", -1), F = /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Account", -1), X = {
14
+ }, E = /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Username", -1), T = { class: "mn-b-semi" }, V = /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Profile", -1), B = { class: "mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex" }, I = /* @__PURE__ */ o("h4", null, "Upload userpic", -1), x = /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Socials", -1), C = /* @__PURE__ */ o("p", { class: "mn-b-thin" }, "Please provide only the username for social media profiles, without full links.", -1), F = /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Account", -1), W = {
16
15
  __name: "ProfileEdit",
17
16
  setup(L) {
18
17
  n(null);
@@ -150,5 +149,5 @@ const D = {
150
149
  }
151
150
  };
152
151
  export {
153
- X as default
152
+ W as default
154
153
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),c=require("../../../events/components/sections/Feed.vue.cjs"),n=require("../../../auth/store/auth.cjs"),m={class:"pd-thin"},p={class:"mn-b-medium flex-v-center flex-nowrap flex"},v=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),_={__name:"ProfileEvents",setup(b){const t=l.useRoute(),o=l.useRouter();let i=t.query.tab?t.query.tab:"owner";const r=e.ref(i);return t.query.tab=r.value,e.watch(r,s=>{o.replace({query:{...t.query,tab:s}})}),(s,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[v,n.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=u=>e.unref(o).push({name:"Create Event"})),class:"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(d.default,{selected:r.value,"onUpdate:selected":a[1]||(a[1]=u=>r.value=u),tabs:[{name:"My",value:"owner"},{name:"Participant",value:"participant"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"]),r.value==="owner"?(e.openBlock(),e.createBlock(c.default,{key:0,user:n.state.user._id,creator:e.unref(t).params._id,sortOrder:"asc"},null,8,["user","creator"])):e.createCommentVNode("",!0),r.value==="participant"?(e.openBlock(),e.createBlock(c.default,{key:1,user:n.state.user._id,participant:e.unref(t).params._id,sortOrder:"desc"},null,8,["user","participant"])):e.createCommentVNode("",!0)]))}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),c=require("../../../events/components/sections/Feed.vue.cjs"),n=require("../../../auth/views/store/auth.cjs"),m={class:"pd-thin"},p={class:"mn-b-medium flex-v-center flex-nowrap flex"},v=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),_={__name:"ProfileEvents",setup(b){const t=l.useRoute(),o=l.useRouter();let i=t.query.tab?t.query.tab:"owner";const r=e.ref(i);return t.query.tab=r.value,e.watch(r,s=>{o.replace({query:{...t.query,tab:s}})}),(s,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[v,n.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=u=>e.unref(o).push({name:"Create Event"})),class:"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(d.default,{selected:r.value,"onUpdate:selected":a[1]||(a[1]=u=>r.value=u),tabs:[{name:"My",value:"owner"},{name:"Participant",value:"participant"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"]),r.value==="owner"?(e.openBlock(),e.createBlock(c.default,{key:0,user:n.state.user._id,creator:e.unref(t).params._id,sortOrder:"asc"},null,8,["user","creator"])):e.createCommentVNode("",!0),r.value==="participant"?(e.openBlock(),e.createBlock(c.default,{key:1,user:n.state.user._id,participant:e.unref(t).params._id,sortOrder:"desc"},null,8,["user","participant"])):e.createCommentVNode("",!0)]))}};exports.default=_;
@@ -2,7 +2,7 @@ import { ref as f, watch as b, openBlock as a, createElementBlock as c, createEl
2
2
  import { useRoute as h, useRouter as y } from "vue-router";
3
3
  import k from "../../../../components/Tab/Tab.vue2.js";
4
4
  import d from "../../../events/components/sections/Feed.vue.js";
5
- import { state as n } from "../../../auth/store/auth.js";
5
+ import { state as n } from "../../../auth/views/store/auth.js";
6
6
  const g = { class: "pd-thin" }, w = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, q = /* @__PURE__ */ p("h2", { class: "mn-r-medium" }, " Events ", -1), V = {
7
7
  __name: "ProfileEvents",
8
8
  setup(x) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("../../auth/store/auth.cjs");const e=require("../../middlewares/client/auth.validation.cjs"),t=[{path:"profile/:_id",name:"User Profile",meta:{title:{en:"Profile",ru:"Профиль"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Profile.vue.cjs"))},{path:"profile/:_id/edit",name:"User Edit Profile",beforeEnter:[e.requiresAuth],meta:{title:{en:"Edit Profile",ru:"Редактировать Профиль"}},component:()=>Promise.resolve().then(()=>require("../components/pages/ProfileEdit.vue.cjs"))},{path:"profile/:_id/blogposts",name:"User Blogposts",meta:{title:{en:"Posts",ru:"Посты"}},component:()=>Promise.resolve().then(()=>require("../components/pages/ProfileBlogposts.vue.cjs"))},{path:"profile/:_id/events",name:"User Events",meta:{title:{en:"Events",ru:"События"}},component:()=>Promise.resolve().then(()=>require("../components/pages/ProfileEvents.vue.cjs"))},{path:"profile/:_id/organizations",name:"User Organizations",meta:{title:{en:"Groups",ru:"Группы"}},component:()=>Promise.resolve().then(()=>require("../../organizations/components/pages/Organizations.vue.cjs"))},{path:"profile/:_id/wallet",name:"User Wallet",meta:{title:{en:"Wallet",ru:"Кошелек"}},component:()=>Promise.resolve().then(()=>require("../../wallet/views/components/pages/Wallet.vue.cjs"))}];exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../auth/views/middlewares/auth.validation.cjs"),t=[{path:"profile/:_id",name:"User Profile",meta:{title:{en:"Profile",ru:"Профиль"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Profile.vue.cjs"))},{path:"profile/:_id/edit",name:"User Edit Profile",beforeEnter:[e.requiresAuth],meta:{title:{en:"Edit Profile",ru:"Редактировать Профиль"}},component:()=>Promise.resolve().then(()=>require("../components/pages/ProfileEdit.vue.cjs"))},{path:"profile/:_id/blogposts",name:"User Blogposts",meta:{title:{en:"Posts",ru:"Посты"}},component:()=>Promise.resolve().then(()=>require("../components/pages/ProfileBlogposts.vue.cjs"))},{path:"profile/:_id/events",name:"User Events",meta:{title:{en:"Events",ru:"События"}},component:()=>Promise.resolve().then(()=>require("../components/pages/ProfileEvents.vue.cjs"))},{path:"profile/:_id/organizations",name:"User Organizations",meta:{title:{en:"Groups",ru:"Группы"}},component:()=>Promise.resolve().then(()=>require("../../organizations/components/pages/Organizations.vue.cjs"))},{path:"profile/:_id/wallet",name:"User Wallet",meta:{title:{en:"Wallet",ru:"Кошелек"}},component:()=>Promise.resolve().then(()=>require("../../wallet/views/components/pages/Wallet.vue.cjs"))}];exports.default=t;
@@ -1,6 +1,5 @@
1
- import "../../auth/store/auth.js";
2
- import { requiresAuth as e } from "../../middlewares/client/auth.validation.js";
3
- const r = [
1
+ import { requiresAuth as e } from "../../auth/views/middlewares/auth.validation.js";
2
+ const o = [
4
3
  {
5
4
  path: "profile/:_id",
6
5
  name: "User Profile",
@@ -111,5 +110,5 @@ const r = [
111
110
  // },
112
111
  ];
113
112
  export {
114
- r as default
113
+ o as default
115
114
  };