@ozdao/prometheus-framework 0.2.187 → 0.2.188

Sign up to get free protection for your applications and to get access to all the features.
Files changed (306) 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 +5 -5
  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/router/scrollBehavior.cjs +1 -0
  96. package/dist/prometheus-framework/src/modules/globals/router/scrollBehavior.js +18 -0
  97. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/globals/store/globals.js +38 -76
  99. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +5 -5
  101. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  103. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  105. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  111. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  113. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -3
  115. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  117. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -5
  119. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +2 -2
  121. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -4
  123. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  125. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -3
  127. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +1 -1
  131. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.js +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/router/departments.router.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/organizations/router/departments.router.js +1 -1
  135. package/dist/prometheus-framework/src/modules/organizations/router/members.router.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/organizations/router/members.router.js +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  138. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  141. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.js +1 -1
  143. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.js +1 -1
  145. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  147. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  149. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
  151. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -3
  153. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +2 -3
  155. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
  157. package/dist/prometheus-framework/src/modules/products/router/categories.router.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/products/router/categories.router.js +1 -1
  159. package/dist/prometheus-framework/src/modules/products/router/leftovers.router.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/products/router/leftovers.router.js +1 -1
  161. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/products/router/products.router.js +1 -1
  163. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +2 -3
  165. package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/spots/router/spots.js +1 -1
  167. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  169. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  171. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -4
  173. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  175. package/dist/prometheus-framework/src/modules/users/router/users.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/users/router/users.js +3 -4
  177. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
  179. package/dist/prometheus-framework/src/modules/wallet/views/router/payments.router.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/wallet/views/router/payments.router.js +1 -1
  181. package/dist/prometheus-framework.cjs.js +1 -1
  182. package/dist/prometheus-framework.es.js +1 -1
  183. package/dist/style.css +1 -1
  184. package/dist/tickets.controller-BWVUA-GR.js +401 -0
  185. package/dist/tickets.controller-ChVmHHnj.mjs +402 -0
  186. package/dist/wallet.server.js +1 -1
  187. package/dist/wallet.server.mjs +1 -1
  188. package/dist/web-CK9TrlwB.js +1 -0
  189. package/dist/web-aOWHNbX1.mjs +54 -0
  190. package/package.json +1 -1
  191. package/src/components/Breadcrumbs/Breadcrumbs.vue +0 -1
  192. package/src/components/Sidebar/Sidebar.vue +1 -1
  193. package/src/modules/auth/auth.client.js +53 -28
  194. package/src/modules/auth/auth.server.js +32 -14
  195. package/src/modules/auth/{routes → controllers/routes}/auth.routes.js +3 -3
  196. package/src/modules/auth/{routes → controllers/routes}/twofa.routes.js +2 -2
  197. package/src/modules/auth/controllers/{auth.controller.js → services/auth.service.js} +2 -3
  198. package/src/modules/auth/models/role.model.js +9 -8
  199. package/src/modules/auth/{components → views/components}/layouts/Auth.vue +3 -3
  200. package/src/modules/auth/{components → views/components}/pages/EnterCode.vue +3 -3
  201. package/src/modules/auth/{components → views/components}/pages/EnterPassword.vue +3 -3
  202. package/src/modules/auth/{components → views/components}/pages/Invite.vue +2 -2
  203. package/src/modules/auth/{components → views/components}/pages/ResetPassword.vue +4 -4
  204. package/src/modules/auth/{components → views/components}/pages/SignIn.vue +3 -3
  205. package/src/modules/auth/{components → views/components}/pages/SignUp.vue +4 -4
  206. package/src/modules/{middlewares/client → auth/views/middlewares}/auth.validation.js +20 -1
  207. package/src/modules/auth/views/router/auth.js +102 -0
  208. package/src/modules/{middlewares/client → auth/views/validations}/inputs.validation.js +3 -6
  209. package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
  210. package/src/modules/backoffice/components/pages/Dashboard.vue +1 -1
  211. package/src/modules/backoffice/components/partials/Sidebar.vue +1 -1
  212. package/src/modules/backoffice/router/backoffice.js +1 -1
  213. package/src/modules/chats/routes/chats.routes.js +1 -1
  214. package/src/modules/community/components/layouts/Community.vue +1 -1
  215. package/src/modules/community/components/pages/Blog.vue +1 -1
  216. package/src/modules/community/components/pages/BlogPost.vue +1 -1
  217. package/src/modules/community/components/pages/Community.vue +1 -1
  218. package/src/modules/community/components/pages/CreateBlogPost.vue +1 -1
  219. package/src/modules/community/components/sections/HotPosts.vue +1 -1
  220. package/src/modules/community/routes/blog.routes.js +1 -1
  221. package/src/modules/events/components/elements/ButtonJoin.vue +1 -1
  222. package/src/modules/events/components/pages/EditEvent.vue +1 -1
  223. package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
  224. package/src/modules/events/components/pages/Event.vue +1 -1
  225. package/src/modules/events/components/pages/Events.vue +1 -1
  226. package/src/modules/events/components/sections/FeaturedEvents.vue +1 -1
  227. package/src/modules/events/router/events.js +1 -1
  228. package/src/modules/events/routes/events.routes.js +1 -1
  229. package/src/modules/files/routes/files.routes.js +1 -1
  230. package/src/modules/gallery/components/sections/BackofficeGallery.vue +1 -1
  231. package/src/modules/gallery/routes/gallery.routes.js +2 -2
  232. package/src/modules/globals/globals.client.js +4 -3
  233. package/src/modules/globals/router/scrollBehavior.js +30 -0
  234. package/src/modules/globals/store/globals.js +3 -3
  235. package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
  236. package/src/modules/legal/components/pages/Legal.vue +1 -1
  237. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  238. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +1 -1
  239. package/src/modules/orders/components/pages/Orders.vue +1 -1
  240. package/src/modules/orders/components/sections/FormAddCustomer.vue +1 -1
  241. package/src/modules/orders/models/order.model.js +0 -1
  242. package/src/modules/orders/orders.server.js +3 -1
  243. package/src/modules/orders/routes/applications.routes.js +2 -1
  244. package/src/modules/orders/routes/orders.routes.js +1 -1
  245. package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +1 -1
  246. package/src/modules/organizations/components/pages/Members.vue +1 -1
  247. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  248. package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +1 -1
  249. package/src/modules/organizations/components/pages/OrganizationCreate.vue +1 -1
  250. package/src/modules/organizations/components/pages/OrganizationDetails.vue +2 -2
  251. package/src/modules/organizations/components/pages/OrganizationEdit.vue +1 -1
  252. package/src/modules/organizations/components/pages/Organizations.vue +1 -1
  253. package/src/modules/organizations/components/sections/MembersAdd.vue +1 -1
  254. package/src/modules/organizations/components/sections/Organizations.vue +1 -1
  255. package/src/modules/organizations/components/sections/Publics.vue +1 -1
  256. package/src/modules/organizations/router/backoffice.router.js +1 -1
  257. package/src/modules/organizations/router/departments.router.js +1 -1
  258. package/src/modules/organizations/router/members.router.js +1 -1
  259. package/src/modules/organizations/router/organizations.js +1 -1
  260. package/src/modules/organizations/routes/invites.routes.js +1 -1
  261. package/src/modules/organizations/store/invites.js +1 -1
  262. package/src/modules/pages/views/components/pages/Page.vue +1 -1
  263. package/src/modules/pages/views/components/pages/Pages.vue +1 -1
  264. package/src/modules/pages/views/components/partials/SidebarPages.vue +1 -1
  265. package/src/modules/products/components/pages/EditLeftover.vue +1 -1
  266. package/src/modules/products/components/pages/Product.vue +1 -1
  267. package/src/modules/products/components/pages/Products.vue +1 -1
  268. package/src/modules/products/router/categories.router.js +1 -1
  269. package/src/modules/products/router/leftovers.router.js +1 -1
  270. package/src/modules/products/router/products.router.js +1 -1
  271. package/src/modules/spots/router/spots.js +1 -1
  272. package/src/modules/users/components/pages/Profile.vue +1 -1
  273. package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
  274. package/src/modules/users/components/pages/ProfileEdit.vue +2 -2
  275. package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
  276. package/src/modules/users/router/users.js +1 -2
  277. package/src/modules/wallet/controllers/routes/payments.routes.js +1 -1
  278. package/src/modules/wallet/controllers/routes/rewards.routes.js +1 -1
  279. package/src/modules/wallet/views/router/payments.router.js +1 -2
  280. package/src/modules/auth/router/auth.js +0 -111
  281. package/src/modules/globals/localization/methods/get-app-locales.js +0 -13
  282. package/src/modules/globals/localization/vue-i18n.js +0 -38
  283. package/src/modules/globals/localization/vue-i18n.singleton.js +0 -11
  284. package/src/modules/middlewares/client/states.validation.js +0 -23
  285. package/src/modules/middlewares/middlewares.client.js +0 -11
  286. package/src/modules/middlewares/middlewares.server.js +0 -18
  287. package/src/modules/orders/routes/backcalls.routes.js +0 -36
  288. package/src/modules/orders/routes/fastorders.routes.js +0 -32
  289. /package/src/modules/auth/{middlewares → controllers/middlewares}/authJwt.js +0 -0
  290. /package/src/modules/auth/{middlewares → controllers/middlewares}/authSecret.js +0 -0
  291. /package/src/modules/auth/{middlewares → controllers/middlewares}/index.js +0 -0
  292. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyAccesses.js +0 -0
  293. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyInvites.js +0 -0
  294. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifySignUp.js +0 -0
  295. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyUser.js +0 -0
  296. /package/src/modules/auth/controllers/{twofa.controller.js → services/twofa.service.js} +0 -0
  297. /package/src/modules/auth/{utils/server → controllers/utils}/verifyAppleIdToken.js +0 -0
  298. /package/src/modules/auth/{components → views/components}/sections/SliderFeatures.vue +0 -0
  299. /package/src/modules/auth/{localization → views/localization}/EnterCode.json +0 -0
  300. /package/src/modules/auth/{localization → views/localization}/EnterPassword.json +0 -0
  301. /package/src/modules/auth/{localization → views/localization}/ResetPassword.json +0 -0
  302. /package/src/modules/auth/{localization → views/localization}/SignIn.json +0 -0
  303. /package/src/modules/auth/{localization → views/localization}/SignUp.json +0 -0
  304. /package/src/modules/auth/{store → views/store}/auth.js +0 -0
  305. /package/src/modules/auth/{store → views/store}/twofa.js +0 -0
  306. /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("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const f=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Block/Block.vue.cjs"),c=require("../../../../components/Feed/Feed.vue.cjs"),b=require("../../../community/components/blocks/CardBlogpost.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const h=require("../../../events/components/sections/Feed.vue.cjs"),g=require("../../../spots/components/blocks/CardSpot.vue.cjs"),v=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/store/auth.cjs"),s=require("../../store/organizations.cjs"),B=require("../../store/memberships.cjs");require("../../store/departments.cjs");const q=require("../../../community/store/blogposts.cjs"),C=require("../../../spots/store/spots.cjs");;/* empty css */const w={key:0,class:"pd-thin for-transition w-100"},y={class:"pos-relative"},N={key:0},V={__name:"Organization",setup(x){d.useRouter();const t=d.useRoute();let p=t.query.tab?t.query.tab:"products";const l=e.ref(null);e.onMounted(async()=>{l.value=await s.actions.read({_id:t.params._id,user:o.state.user._id}),await B.actions.read({target:t.params._id})});const a=e.ref(p);return t.query.tab=a.value,(m,n)=>{const u=e.resolveComponent("router-link");return l.value?(e.openBlock(),e.createElementBlock("div",w,[e.createVNode(f.default,{selected:a.value,"onUpdate:selected":n[0]||(n[0]=r=>a.value=r),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"]),e.createElementVNode("div",y,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="community"?(e.openBlock(),e.createBlock(c.default,{key:0,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:r=>q.read(r)},options:{status:"published",user:o.state.user._id,owner:e.unref(t).params._id},class:"row-1 gap-thin"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,i=>(e.openBlock(),e.createBlock(b.default,{key:i._id,blogpost:i,user:o.state.user._id,class:"h-max-40r mn-b-medium"},null,8,["blogpost","user"]))),128))]),_:1},8,["store","options"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="events"?(e.openBlock(),e.createBlock(h.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),a.value==="products"&&o.state.user._id===s.state.current.owner?(e.openBlock(),e.createBlock(k.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(u,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(u,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(u,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="products"?(e.openBlock(),e.createBlock(v.default,{key:0,organization:s.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="spots"?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(c.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:r=>C.actions.read(e.unref(t).params._id),state:s.state},options:{user:o.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(i,_)=>(e.openBlock(),e.createBlock(g.default,{key:_,spot:i,organization:s.state.current,class:"radius-big bg-light mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["store","options"]),o.state.user._id===s.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[1]||(n[1]=r=>m.$router.push(`/spots/${s.state.current._id}/spots/create`)),class:"mn-b-thin bg-main button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");;/* empty css */const f=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Block/Block.vue.cjs"),c=require("../../../../components/Feed/Feed.vue.cjs"),b=require("../../../community/components/blocks/CardBlogpost.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const h=require("../../../events/components/sections/Feed.vue.cjs"),g=require("../../../spots/components/blocks/CardSpot.vue.cjs"),v=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/views/store/auth.cjs"),s=require("../../store/organizations.cjs"),B=require("../../store/memberships.cjs");require("../../store/departments.cjs");const C=require("../../../community/store/blogposts.cjs"),q=require("../../../spots/store/spots.cjs");;/* empty css */const w={key:0,class:"pd-thin for-transition w-100"},y={class:"pos-relative"},N={key:0},V={__name:"Organization",setup(x){d.useRouter();const t=d.useRoute();let p=t.query.tab?t.query.tab:"products";const l=e.ref(null);e.onMounted(async()=>{l.value=await s.actions.read({_id:t.params._id,user:o.state.user._id}),await B.actions.read({target:t.params._id})});const a=e.ref(p);return t.query.tab=a.value,(m,n)=>{const u=e.resolveComponent("router-link");return l.value?(e.openBlock(),e.createElementBlock("div",w,[e.createVNode(f.default,{selected:a.value,"onUpdate:selected":n[0]||(n[0]=r=>a.value=r),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"]),e.createElementVNode("div",y,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="community"?(e.openBlock(),e.createBlock(c.default,{key:0,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:r=>C.read(r)},options:{status:"published",user:o.state.user._id,owner:e.unref(t).params._id},class:"row-1 gap-thin"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,i=>(e.openBlock(),e.createBlock(b.default,{key:i._id,blogpost:i,user:o.state.user._id,class:"h-max-40r mn-b-medium"},null,8,["blogpost","user"]))),128))]),_:1},8,["store","options"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="events"?(e.openBlock(),e.createBlock(h.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),a.value==="products"&&o.state.user._id===s.state.current.owner?(e.openBlock(),e.createBlock(k.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(u,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(u,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(u,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="products"?(e.openBlock(),e.createBlock(v.default,{key:0,organization:s.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="spots"?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(c.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:r=>q.actions.read(e.unref(t).params._id),state:s.state},options:{user:o.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(i,_)=>(e.openBlock(),e.createBlock(g.default,{key:_,spot:i,organization:s.state.current,class:"radius-big bg-light mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["store","options"]),o.state.user._id===s.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[1]||(n[1]=r=>m.$router.push(`/spots/${s.state.current._id}/spots/create`)),class:"mn-b-thin bg-main button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=V;
@@ -1,19 +1,18 @@
1
1
  import { ref as g, onMounted as C, resolveComponent as z, openBlock as t, createElementBlock as d, createVNode as o, createElementVNode as B, Transition as _, withCtx as r, createBlock as u, unref as l, Fragment as h, renderList as k, createCommentVNode as i, createTextVNode as b } from "vue";
2
2
  import { useRouter as N, useRoute as P } from "vue-router";
3
3
  import "vue-i18n";
4
- import "../../../globals/localization/vue-i18n.js";
5
4
  /* empty css */
6
5
  import M from "../../../../components/Tab/Tab.vue2.js";
7
6
  import O from "../../../../components/Block/Block.vue.js";
8
7
  import y from "../../../../components/Feed/Feed.vue.js";
9
8
  import V from "../../../community/components/blocks/CardBlogpost.vue.js";
10
- /* empty css */
9
+ /* empty css */
11
10
  import "../../../../components/Menu/MenuItem.vue.js";
12
11
  /* empty css */
13
12
  import q from "../../../events/components/sections/Feed.vue.js";
14
13
  import A from "../../../spots/components/blocks/CardSpot.vue.js";
15
14
  import E from "../../../products/components/pages/Products.vue.js";
16
- import { state as n } from "../../../auth/store/auth.js";
15
+ import { state as n } from "../../../auth/views/store/auth.js";
17
16
  import { actions as F, state as m } from "../../store/organizations.js";
18
17
  import { actions as L } from "../../store/memberships.js";
19
18
  import "../../store/departments.js";
@@ -23,7 +22,7 @@ import { actions as R } from "../../../spots/store/spots.js";
23
22
  const T = {
24
23
  key: 0,
25
24
  class: "pd-thin for-transition w-100"
26
- }, D = { class: "pos-relative" }, G = { key: 0 }, pe = {
25
+ }, D = { class: "pos-relative" }, G = { key: 0 }, de = {
27
26
  __name: "Organization",
28
27
  setup(I) {
29
28
  N();
@@ -207,5 +206,5 @@ const T = {
207
206
  }
208
207
  };
209
208
  export {
210
- pe as default
209
+ de as default
211
210
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../components/Menu/Menu.vue2.cjs"),o=require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const l=require("../../../icons/entities/IconProducts.vue.cjs"),d=require("../../../icons/entities/IconEvents.vue.cjs"),m=require("../../../icons/entities/IconGroups.vue.cjs"),f=require("../../../icons/entities/IconGallery.vue.cjs"),p=require("../../../icons/entities/IconOrders.vue.cjs"),_=require("../../../icons/entities/IconLeftovers.vue.cjs"),u=require("vue-router"),n=require("../../../auth/store/auth.cjs");require("../../store/organizations.cjs");const k={class:""},h=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice",-1),v=e.createElementVNode("span",null," Members ",-1),N=e.createElementVNode("span",null," Products ",-1),V=e.createElementVNode("span",null," Leftovers ",-1),B=e.createElementVNode("span",null," Orders ",-1),C=e.createElementVNode("span",null," Gallery ",-1),b=e.createElementVNode("span",null," Events ",-1),g={__name:"OrganizationBackoffice",props:{favorites:Array},setup(q){const r=u.useRoute(),t=u.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),(a,s)=>(e.openBlock(),e.createElementBlock("div",k,[h,e.createVNode(i.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[a.hasAccess(e.unref(r).params._id,"members","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:0,onClick:s[0]||(s[0]=c=>e.unref(t).push({name:"Organization Members",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(m.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),v]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"products","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:1,onClick:s[1]||(s[1]=c=>e.unref(t).push({name:"Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(l.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),N]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"leftovers","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:2,onClick:s[2]||(s[2]=c=>e.unref(t).push({name:"Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(_.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),V]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"orders","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:3,onClick:s[3]||(s[3]=c=>e.unref(t).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(p.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),B]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"gallery","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:4,onClick:s[4]||(s[4]=c=>e.unref(t).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),C]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"events","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:5,onClick:s[5]||(s[5]=c=>e.unref(t).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(d.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),b]),_:1})):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../components/Menu/Menu.vue.cjs"),o=require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const l=require("../../../icons/entities/IconProducts.vue.cjs"),d=require("../../../icons/entities/IconEvents.vue.cjs"),m=require("../../../icons/entities/IconGroups.vue.cjs"),f=require("../../../icons/entities/IconGallery.vue.cjs"),p=require("../../../icons/entities/IconOrders.vue.cjs"),_=require("../../../icons/entities/IconLeftovers.vue.cjs"),u=require("vue-router"),n=require("../../../auth/views/store/auth.cjs");require("../../store/organizations.cjs");const k={class:""},h=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice",-1),v=e.createElementVNode("span",null," Members ",-1),N=e.createElementVNode("span",null," Products ",-1),V=e.createElementVNode("span",null," Leftovers ",-1),B=e.createElementVNode("span",null," Orders ",-1),C=e.createElementVNode("span",null," Gallery ",-1),b=e.createElementVNode("span",null," Events ",-1),g={__name:"OrganizationBackoffice",props:{favorites:Array},setup(q){const r=u.useRoute(),t=u.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),(a,s)=>(e.openBlock(),e.createElementBlock("div",k,[h,e.createVNode(i.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[a.hasAccess(e.unref(r).params._id,"members","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:0,onClick:s[0]||(s[0]=c=>e.unref(t).push({name:"Organization Members",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(m.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),v]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"products","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:1,onClick:s[1]||(s[1]=c=>e.unref(t).push({name:"Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(l.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),N]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"leftovers","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:2,onClick:s[2]||(s[2]=c=>e.unref(t).push({name:"Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(_.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),V]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"orders","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:3,onClick:s[3]||(s[3]=c=>e.unref(t).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(p.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),B]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"gallery","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:4,onClick:s[4]||(s[4]=c=>e.unref(t).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),C]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"events","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:5,onClick:s[5]||(s[5]=c=>e.unref(t).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(d.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),b]),_:1})):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=g;
@@ -1,5 +1,5 @@
1
1
  import { ref as f, onMounted as _, openBlock as a, createElementBlock as k, createVNode as i, withCtx as o, unref as s, createBlock as c, createCommentVNode as l, createElementVNode as t } from "vue";
2
- import v from "../../../../components/Menu/Menu.vue2.js";
2
+ import v from "../../../../components/Menu/Menu.vue.js";
3
3
  import p from "../../../../components/Menu/MenuItem.vue.js";
4
4
  /* empty css */
5
5
  import h from "../../../icons/entities/IconProducts.vue.js";
@@ -9,7 +9,7 @@ import $ from "../../../icons/entities/IconGallery.vue.js";
9
9
  import y from "../../../icons/entities/IconOrders.vue.js";
10
10
  import B from "../../../icons/entities/IconLeftovers.vue.js";
11
11
  import { useRoute as C, useRouter as w } from "vue-router";
12
- import { state as u } from "../../../auth/store/auth.js";
12
+ import { state as u } from "../../../auth/views/store/auth.js";
13
13
  import "../../store/organizations.js";
14
14
  const A = { class: "" }, E = /* @__PURE__ */ t("h1", { class: "pd-medium radius-medium bg-light mn-b-small" }, "Welcome to Backoffice", -1), O = /* @__PURE__ */ t("span", null, " Members ", -1), G = /* @__PURE__ */ t("span", null, " Products ", -1), M = /* @__PURE__ */ t("span", null, " Leftovers ", -1), N = /* @__PURE__ */ t("span", null, " Orders ", -1), V = /* @__PURE__ */ t("span", null, " Gallery ", -1), z = /* @__PURE__ */ t("span", null, " Events ", -1), T = {
15
15
  __name: "OrganizationBackoffice",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),i=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const c=require("../../../../components/FieldTags/BlockTags.vue.cjs");;/* empty css */const s=require("../../../../components/Field/Field.vue2.cjs");;/* empty css */const m=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),p=require("../../../../components/UploadImage/UploadImage.vue.cjs"),f=require("../../../../components/Button/Button.vue2.cjs");;/* empty css */const b=require("../../../auth/store/auth.cjs"),e=require("../../store/organizations.cjs");require("../../store/memberships.cjs");const g={class:"for-transition pd-thin"},h=t.createElementVNode("h3",{class:"mn-b-small"},"Type of group",-1),V=t.createElementVNode("p",{class:"mn-b-thin"},"Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.",-1),N=t.createElementVNode("h3",{class:"mn-b-small"},"Profile",-1),q={class:"mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex"},w=t.createElementVNode("h4",null,"Upload photo",-1),y=t.createElementVNode("h3",{class:"mn-b-small"},"Contacts",-1),U=t.createElementVNode("h3",{class:"mn-b-small"},"Socials",-1),v=t.createElementVNode("p",{class:"mn-b-thin"},"Please provide only the username for social media profiles, without full links.",-1),E={__name:"OrganizationEdit",setup(x){const r=i.useRoute(),o=i.useRouter();e.actions.reset(),t.onMounted(async()=>{r.params._id&&await e.actions.read({_id:r.params._id})});const n=t.computed(()=>e.state.current);async function d(){r.params._id?await e.actions.update(r.params._id,n.value):await e.actions.create(e.state.current,b.state.user._id)}function u(){o.replace({name:"Organization",params:{_id:e.state.current._id}})}return(_,l)=>(t.openBlock(),t.createElementBlock("div",g,[h,V,t.createVNode(m.default,{modelValue:e.state.current.types,"onUpdate:modelValue":l[0]||(l[0]=a=>e.state.current.types=a),options:["public","exclusive","hidden"],multiple:!1,taggable:!1,placeholder:"Type to search or add type of organization",class:"mn-b-semi bg-light pd-medium radius-small"},null,8,["modelValue"]),N,t.createElementVNode("div",q,[t.createVNode(p.default,{photo:e.state.current.profile.photo,"onUpdate:photo":l[1]||(l[1]=a=>e.state.current.profile.photo=a),uploadPath:"organizations/"+e.state.current._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),w]),t.createVNode(s.default,{field:e.state.current.profile.name,"onUpdate:field":l[2]||(l[2]=a=>e.state.current.profile.name=a),placeholder:"Name of organization",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(s.default,{field:e.state.current.profile.description,"onUpdate:field":l[3]||(l[3]=a=>e.state.current.profile.description=a),placeholder:"Brief description of your group",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(c.default,{onTagsChanged:l[4]||(l[4]=a=>e.state.current.profile.tags=a),tags:e.state.current.profile.tags,class:"mn-b-small"},null,8,["tags"]),y,t.createVNode(s.default,{field:e.state.current.contacts.email,"onUpdate:field":l[5]||(l[5]=a=>e.state.current.contacts.email=a),label:"Email",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(s.default,{field:e.state.current.contacts.website,"onUpdate:field":l[6]||(l[6]=a=>e.state.current.contacts.website=a),label:"Website",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(s.default,{field:e.state.current.contacts.phone,"onUpdate:field":l[7]||(l[7]=a=>e.state.current.contacts.phone=a),label:"Phone",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(s.default,{field:e.state.current.contacts.address,"onUpdate:field":l[8]||(l[8]=a=>e.state.current.contacts.address=a),label:"Address",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),U,v,t.createVNode(s.default,{field:e.state.current.socials.instagram,"onUpdate:field":l[9]||(l[9]=a=>e.state.current.socials.instagram=a),label:"Instagram",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(s.default,{field:e.state.current.socials.twitter,"onUpdate:field":l[10]||(l[10]=a=>e.state.current.socials.twitter=a),label:"Twitter",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(s.default,{field:e.state.current.socials.facebook,"onUpdate:field":l[11]||(l[11]=a=>e.state.current.socials.facebook=a),label:"Facebook",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(s.default,{field:e.state.current.socials.telegram,"onUpdate:field":l[12]||(l[12]=a=>e.state.current.socials.telegram=a),label:"Telegram",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(s.default,{field:e.state.current.socials.youtube,"onUpdate:field":l[13]||(l[13]=a=>e.state.current.socials.youtube=a),label:"Youtube",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(f.default,{submit:d,callback:u,class:"bg-main w-100 mn-b-thin"},{default:t.withCtx(()=>[t.createTextVNode("Save")]),_:1})]))}};exports.default=E;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),i=require("vue-router");require("vue-i18n");;/* empty css */const c=require("../../../../components/FieldTags/BlockTags.vue.cjs");;/* empty css */const s=require("../../../../components/Field/Field.vue2.cjs");;/* empty css */const m=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),p=require("../../../../components/UploadImage/UploadImage.vue.cjs"),f=require("../../../../components/Button/Button.vue2.cjs");;/* empty css */const b=require("../../../auth/views/store/auth.cjs"),e=require("../../store/organizations.cjs");require("../../store/memberships.cjs");const g={class:"for-transition pd-thin"},h=t.createElementVNode("h3",{class:"mn-b-small"},"Type of group",-1),V=t.createElementVNode("p",{class:"mn-b-thin"},"Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.",-1),N=t.createElementVNode("h3",{class:"mn-b-small"},"Profile",-1),q={class:"mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex"},w=t.createElementVNode("h4",null,"Upload photo",-1),y=t.createElementVNode("h3",{class:"mn-b-small"},"Contacts",-1),U=t.createElementVNode("h3",{class:"mn-b-small"},"Socials",-1),v=t.createElementVNode("p",{class:"mn-b-thin"},"Please provide only the username for social media profiles, without full links.",-1),E={__name:"OrganizationEdit",setup(x){const r=i.useRoute(),o=i.useRouter();e.actions.reset(),t.onMounted(async()=>{r.params._id&&await e.actions.read({_id:r.params._id})});const n=t.computed(()=>e.state.current);async function d(){r.params._id?await e.actions.update(r.params._id,n.value):await e.actions.create(e.state.current,b.state.user._id)}function u(){o.replace({name:"Organization",params:{_id:e.state.current._id}})}return(_,l)=>(t.openBlock(),t.createElementBlock("div",g,[h,V,t.createVNode(m.default,{modelValue:e.state.current.types,"onUpdate:modelValue":l[0]||(l[0]=a=>e.state.current.types=a),options:["public","exclusive","hidden"],multiple:!1,taggable:!1,placeholder:"Type to search or add type of organization",class:"mn-b-semi bg-light pd-medium radius-small"},null,8,["modelValue"]),N,t.createElementVNode("div",q,[t.createVNode(p.default,{photo:e.state.current.profile.photo,"onUpdate:photo":l[1]||(l[1]=a=>e.state.current.profile.photo=a),uploadPath:"organizations/"+e.state.current._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),w]),t.createVNode(s.default,{field:e.state.current.profile.name,"onUpdate:field":l[2]||(l[2]=a=>e.state.current.profile.name=a),placeholder:"Name of organization",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(s.default,{field:e.state.current.profile.description,"onUpdate:field":l[3]||(l[3]=a=>e.state.current.profile.description=a),placeholder:"Brief description of your group",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(c.default,{onTagsChanged:l[4]||(l[4]=a=>e.state.current.profile.tags=a),tags:e.state.current.profile.tags,class:"mn-b-small"},null,8,["tags"]),y,t.createVNode(s.default,{field:e.state.current.contacts.email,"onUpdate:field":l[5]||(l[5]=a=>e.state.current.contacts.email=a),label:"Email",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(s.default,{field:e.state.current.contacts.website,"onUpdate:field":l[6]||(l[6]=a=>e.state.current.contacts.website=a),label:"Website",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(s.default,{field:e.state.current.contacts.phone,"onUpdate:field":l[7]||(l[7]=a=>e.state.current.contacts.phone=a),label:"Phone",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(s.default,{field:e.state.current.contacts.address,"onUpdate:field":l[8]||(l[8]=a=>e.state.current.contacts.address=a),label:"Address",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),U,v,t.createVNode(s.default,{field:e.state.current.socials.instagram,"onUpdate:field":l[9]||(l[9]=a=>e.state.current.socials.instagram=a),label:"Instagram",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(s.default,{field:e.state.current.socials.twitter,"onUpdate:field":l[10]||(l[10]=a=>e.state.current.socials.twitter=a),label:"Twitter",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(s.default,{field:e.state.current.socials.facebook,"onUpdate:field":l[11]||(l[11]=a=>e.state.current.socials.facebook=a),label:"Facebook",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(s.default,{field:e.state.current.socials.telegram,"onUpdate:field":l[12]||(l[12]=a=>e.state.current.socials.telegram=a),label:"Telegram",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(s.default,{field:e.state.current.socials.youtube,"onUpdate:field":l[13]||(l[13]=a=>e.state.current.socials.youtube=a),label:"Youtube",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),t.createVNode(f.default,{submit:d,callback:u,class:"bg-main w-100 mn-b-thin"},{default:t.withCtx(()=>[t.createTextVNode("Save")]),_:1})]))}};exports.default=E;
@@ -1,7 +1,6 @@
1
1
  import { onMounted as p, computed as c, openBlock as f, createElementBlock as b, createVNode as i, createElementVNode as a, withCtx as g, createTextVNode as h } from "vue";
2
2
  import { useRoute as w, useRouter as y } from "vue-router";
3
3
  import "vue-i18n";
4
- import "../../../globals/localization/vue-i18n.js";
5
4
  /* empty css */
6
5
  import U from "../../../../components/FieldTags/BlockTags.vue.js";
7
6
  /* empty css */
@@ -11,10 +10,10 @@ import _ from "../../../../components/SelectMulti/SelectMulti.vue.js";
11
10
  import x from "../../../../components/UploadImage/UploadImage.vue.js";
12
11
  import v from "../../../../components/Button/Button.vue2.js";
13
12
  /* empty css */
14
- import { state as k } from "../../../auth/store/auth.js";
13
+ import { state as k } from "../../../auth/views/store/auth.js";
15
14
  import { actions as o, state as e } from "../../store/organizations.js";
16
15
  import "../../store/memberships.js";
17
- const T = { class: "for-transition pd-thin" }, z = /* @__PURE__ */ a("h3", { class: "mn-b-small" }, "Type of group", -1), P = /* @__PURE__ */ a("p", { class: "mn-b-thin" }, "Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.", -1), V = /* @__PURE__ */ a("h3", { class: "mn-b-small" }, "Profile", -1), E = { class: "mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex" }, N = /* @__PURE__ */ a("h4", null, "Upload photo", -1), S = /* @__PURE__ */ a("h3", { class: "mn-b-small" }, "Contacts", -1), $ = /* @__PURE__ */ a("h3", { class: "mn-b-small" }, "Socials", -1), B = /* @__PURE__ */ a("p", { class: "mn-b-thin" }, "Please provide only the username for social media profiles, without full links.", -1), X = {
16
+ const T = { class: "for-transition pd-thin" }, z = /* @__PURE__ */ a("h3", { class: "mn-b-small" }, "Type of group", -1), P = /* @__PURE__ */ a("p", { class: "mn-b-thin" }, "Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.", -1), V = /* @__PURE__ */ a("h3", { class: "mn-b-small" }, "Profile", -1), E = { class: "mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex" }, N = /* @__PURE__ */ a("h4", null, "Upload photo", -1), S = /* @__PURE__ */ a("h3", { class: "mn-b-small" }, "Contacts", -1), $ = /* @__PURE__ */ a("h3", { class: "mn-b-small" }, "Socials", -1), B = /* @__PURE__ */ a("p", { class: "mn-b-thin" }, "Please provide only the username for social media profiles, without full links.", -1), Q = {
18
17
  __name: "OrganizationEdit",
19
18
  setup(C) {
20
19
  const r = w(), n = y();
@@ -147,5 +146,5 @@ const T = { class: "for-transition pd-thin" }, z = /* @__PURE__ */ a("h3", { cla
147
146
  }
148
147
  };
149
148
  export {
150
- X as default
149
+ Q as default
151
150
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),c=require("../../../../components/Tab/Tab.vue2.cjs"),u=require("../sections/Feed.vue.cjs"),n=require("../../../auth/store/auth.cjs"),m={class:"pd-thin"},b={class:"mn-b-medium flex-v-center flex-nowrap flex"},f=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),_={__name:"Organizations",setup(p){const t=l.useRoute(),i=l.useRouter();let d=t.query.tab?t.query.tab:"owner";const r=e.ref(d);return t.query.tab=r.value,e.watch(r,o=>{i.replace({query:{...t.query,tab:o}})}),(o,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",b,[f,e.createElementVNode("button",{onClick:a[0]||(a[0]=s=>o.$router.push({name:"Create Organization"})),class:"bg-second radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")]),e.createVNode(c.default,{selected:r.value,"onUpdate:selected":a[1]||(a[1]=s=>r.value=s),tabs:[{name:"Owner",value:"owner"},{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-b-medium o-hidden h5 radius-big bg-light"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="owner"?(e.openBlock(),e.createBlock(u.default,{key:0,user:n.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="member"?(e.openBlock(),e.createBlock(u.default,{key:0,user:n.state.user._id,member:e.unref(t).params._id},null,8,["user","member"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="follower"?(e.openBlock(),e.createBlock(u.default,{key:0,user:n.state.user._id,subscriber:e.unref(t).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),c=require("../../../../components/Tab/Tab.vue2.cjs"),u=require("../sections/Feed.vue.cjs"),n=require("../../../auth/views/store/auth.cjs"),m={class:"pd-thin"},b={class:"mn-b-medium flex-v-center flex-nowrap flex"},f=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),_={__name:"Organizations",setup(p){const t=l.useRoute(),i=l.useRouter();let d=t.query.tab?t.query.tab:"owner";const r=e.ref(d);return t.query.tab=r.value,e.watch(r,o=>{i.replace({query:{...t.query,tab:o}})}),(o,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",b,[f,e.createElementVNode("button",{onClick:a[0]||(a[0]=s=>o.$router.push({name:"Create Organization"})),class:"bg-second radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")]),e.createVNode(c.default,{selected:r.value,"onUpdate:selected":a[1]||(a[1]=s=>r.value=s),tabs:[{name:"Owner",value:"owner"},{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-b-medium o-hidden h5 radius-big bg-light"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="owner"?(e.openBlock(),e.createBlock(u.default,{key:0,user:n.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="member"?(e.openBlock(),e.createBlock(u.default,{key:0,user:n.state.user._id,member:e.unref(t).params._id},null,8,["user","member"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="follower"?(e.openBlock(),e.createBlock(u.default,{key:0,user:n.state.user._id,subscriber:e.unref(t).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=_;
@@ -2,7 +2,7 @@ import { ref as v, watch as w, openBlock as a, createElementBlock as h, createEl
2
2
  import { useRoute as g, useRouter as y } from "vue-router";
3
3
  import k from "../../../../components/Tab/Tab.vue2.js";
4
4
  import d from "../sections/Feed.vue.js";
5
- import { state as c } from "../../../auth/store/auth.js";
5
+ import { state as c } from "../../../auth/views/store/auth.js";
6
6
  const q = { class: "pd-thin" }, x = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, C = /* @__PURE__ */ b("h2", { class: "mn-r-medium" }, "Groups", -1), E = {
7
7
  __name: "Organizations",
8
8
  setup(O) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("../../../../components/Field/Field.vue2.cjs");;/* empty css */const v=require("../../../../components/Button/Button.vue2.cjs"),k=require("../../../../components/Feed/Feed.vue.cjs"),b=require("../../../globals/components/blocks/BlockSearch.vue.cjs"),g=require("../../../users/components/blocks/CardUser.vue.cjs"),_=require("../../../icons/navigation/IconDelete.vue.cjs"),B=require("../../../icons/navigation/IconAdd.vue.cjs");require("../../../middlewares/client/inputs.validation.cjs");const w=require("../../../users/store/users.cjs"),x={class:"mn-b-thin t-transp p-medium"},E={class:"mn-b-thin pos-relative"},y={key:0,class:"mn-t-thin pos-absolute w-100 pos-t-100 pos-l-0 z-index-3 bg-light pd-small radius-small"},N={class:"cols-1 mn-b-small radius-medium pd-semi bg-light pos-relative"},V=["onClick"],q=e.createElementVNode("span",null,"Invite to organization",-1),C={__name:"MembersAdd",props:{organization:Object,text:String},emits:["send-invite"],setup(c,{emit:d}){let r=e.ref(null),l=e.ref(!1);const u=e.ref(null),m=d,n=e.ref([{contact:""}]);async function p(){return new Promise((i,s)=>{m("send-invite",n.value,i,s)})}return(i,s)=>{const f=e.resolveDirective("click-outside");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("p",x,e.toDisplayString(c.text),1),e.createElementVNode("div",E,[e.withDirectives(e.createVNode(b.default,{onSearch:s[0]||(s[0]=o=>{e.isRef(r)?r.value=o:r=o,e.isRef(l)?l.value=!0:l=!0}),placeholder:"Enter name, phone or email",class:"bg-grey"},null,512),[[f,()=>{e.isRef(l)?l.value=!1:l=!1}]]),e.unref(r)&&e.unref(l)?(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(k.default,{states:{empty:{title:"No User Found",description:"Currently, there are no such user."}},store:{read:o=>w.actions.read(o),state:null},options:{search:e.unref(r)},showLoadMore:!1,class:"h-max-20r o-scroll"},{default:e.withCtx(({items:o})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,(t,a)=>(e.openBlock(),e.createBlock(g.default,{key:t._id,user:t,photo:t.profile.photo,name:t.profile.name||t.phone||t.email,onClick:()=>{n.value.push({contact:t.email||t.phone}),e.isRef(l)?l.value=!1:l=!1},class:"bg-white h-2r pd-thin radius-medium w-100 mn-b-thin"},null,8,["user","photo","name","onClick"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0)]),e.createElementVNode("section",N,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(o,t)=>(e.openBlock(),e.createElementBlock("div",{key:t,class:"br-1px br-solid br-grey-transp-25 flex gap-thin radius-small mn-b-thin"},[e.createVNode(h.default,{field:o.contact,"onUpdate:field":a=>o.contact=a,placeholder:"Enter email or phone",class:"w-100 pd-small radius-small bg-white",validation:u.value},{default:e.withCtx(()=>[t<1?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:s[1]||(s[1]=()=>n.value.push({contact:""})),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-green"},[e.createVNode(B.default,{class:"i-medium",fill:"rgb(var(--white)"})])):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:()=>n.value.splice(t,1),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},[e.createVNode(_.default,{class:"i-medium",fill:"rgb(var(--white)"})],8,V))]),_:2},1032,["field","onUpdate:field","validation"])]))),128))]),e.createVNode(v.default,{submit:p,class:"w-100 bg-main"},{default:e.withCtx(()=>[q]),_:1})])}}};exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("../../../../components/Field/Field.vue2.cjs");;/* empty css */const v=require("../../../../components/Button/Button.vue2.cjs"),k=require("../../../../components/Feed/Feed.vue.cjs"),b=require("../../../globals/components/blocks/BlockSearch.vue.cjs"),g=require("../../../users/components/blocks/CardUser.vue.cjs"),_=require("../../../icons/navigation/IconDelete.vue.cjs"),B=require("../../../icons/navigation/IconAdd.vue.cjs"),w=require("../../../users/store/users.cjs"),x={class:"mn-b-thin t-transp p-medium"},E={class:"mn-b-thin pos-relative"},y={key:0,class:"mn-t-thin pos-absolute w-100 pos-t-100 pos-l-0 z-index-3 bg-light pd-small radius-small"},N={class:"cols-1 mn-b-small radius-medium pd-semi bg-light pos-relative"},V=["onClick"],C=e.createElementVNode("span",null,"Invite to organization",-1),q={__name:"MembersAdd",props:{organization:Object,text:String},emits:["send-invite"],setup(c,{emit:d}){let n=e.ref(null),l=e.ref(!1);const u=e.ref(null),m=d,r=e.ref([{contact:""}]);async function p(){return new Promise((a,s)=>{m("send-invite",r.value,a,s)})}return(a,s)=>{const f=e.resolveDirective("click-outside");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("p",x,e.toDisplayString(c.text),1),e.createElementVNode("div",E,[e.withDirectives(e.createVNode(b.default,{onSearch:s[0]||(s[0]=o=>{e.isRef(n)?n.value=o:n=o,e.isRef(l)?l.value=!0:l=!0}),placeholder:"Enter name, phone or email",class:"bg-grey"},null,512),[[f,()=>{e.isRef(l)?l.value=!1:l=!1}]]),e.unref(n)&&e.unref(l)?(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(k.default,{states:{empty:{title:"No User Found",description:"Currently, there are no such user."}},store:{read:o=>w.actions.read(o),state:null},options:{search:e.unref(n)},showLoadMore:!1,class:"h-max-20r o-scroll"},{default:e.withCtx(({items:o})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,(t,i)=>(e.openBlock(),e.createBlock(g.default,{key:t._id,user:t,photo:t.profile.photo,name:t.profile.name||t.phone||t.email,onClick:()=>{r.value.push({contact:t.email||t.phone}),e.isRef(l)?l.value=!1:l=!1},class:"bg-white h-2r pd-thin radius-medium w-100 mn-b-thin"},null,8,["user","photo","name","onClick"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0)]),e.createElementVNode("section",N,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(o,t)=>(e.openBlock(),e.createElementBlock("div",{key:t,class:"br-1px br-solid br-grey-transp-25 flex gap-thin radius-small mn-b-thin"},[e.createVNode(h.default,{field:o.contact,"onUpdate:field":i=>o.contact=i,placeholder:"Enter email or phone",class:"w-100 pd-small radius-small bg-white",validation:u.value},{default:e.withCtx(()=>[t<1?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:s[1]||(s[1]=()=>r.value.push({contact:""})),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-green"},[e.createVNode(B.default,{class:"i-medium",fill:"rgb(var(--white)"})])):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:()=>r.value.splice(t,1),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},[e.createVNode(_.default,{class:"i-medium",fill:"rgb(var(--white)"})],8,V))]),_:2},1032,["field","onUpdate:field","validation"])]))),128))]),e.createVNode(v.default,{submit:p,class:"w-100 bg-main"},{default:e.withCtx(()=>[C]),_:1})])}}};exports.default=q;
@@ -7,12 +7,11 @@ import B from "../../../globals/components/blocks/BlockSearch.vue.js";
7
7
  import D from "../../../users/components/blocks/CardUser.vue.js";
8
8
  import F from "../../../icons/navigation/IconDelete.vue.js";
9
9
  import M from "../../../icons/navigation/IconAdd.vue.js";
10
- import "../../../middlewares/client/inputs.validation.js";
11
10
  import { actions as L } from "../../../users/store/users.js";
12
11
  const j = { class: "mn-b-thin t-transp p-medium" }, A = { class: "mn-b-thin pos-relative" }, I = {
13
12
  key: 0,
14
13
  class: "mn-t-thin pos-absolute w-100 pos-t-100 pos-l-0 z-index-3 bg-light pd-small radius-small"
15
- }, O = { class: "cols-1 mn-b-small radius-medium pd-semi bg-light pos-relative" }, P = ["onClick"], R = /* @__PURE__ */ d("span", null, "Invite to organization", -1), ee = {
14
+ }, O = { class: "cols-1 mn-b-small radius-medium pd-semi bg-light pos-relative" }, P = ["onClick"], R = /* @__PURE__ */ d("span", null, "Invite to organization", -1), Z = {
16
15
  __name: "MembersAdd",
17
16
  props: {
18
17
  organization: Object,
@@ -130,5 +129,5 @@ const j = { class: "mn-b-thin t-transp p-medium" }, A = { class: "mn-b-thin pos-
130
129
  }
131
130
  };
132
131
  export {
133
- ee as default
132
+ Z as default
134
133
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const q=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");;/* empty css */require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/CardOrganization.vue.cjs"),b=require("../blocks/EmptyState.vue.cjs");;/* empty css */;/* empty css */const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let p=n.query.tab?n.query.tab:"details";const i=e.ref(p);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(b.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(m.default,{key:l._id,organization:l,user:q.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const q=require("../../../auth/views/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");;/* empty css */require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/CardOrganization.vue.cjs"),b=require("../blocks/EmptyState.vue.cjs");;/* empty css */;/* empty css */const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let p=n.query.tab?n.query.tab:"details";const i=e.ref(p);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(b.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(m.default,{key:l._id,organization:l,user:q.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
@@ -8,7 +8,7 @@ import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
- import { state as k } from "../../../auth/store/auth.js";
11
+ import { state as k } from "../../../auth/views/store/auth.js";
12
12
  import "../../store/memberships.js";
13
13
  import "vue-i18n";
14
14
  /* empty css */
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../blocks/CardOrganization.vue.cjs"),c=require("../../../../components/EmptyState/EmptyState.vue.cjs"),i=require("../../../auth/store/auth.cjs"),d=require("../../store/organizations.cjs"),m=require("../../store/memberships.cjs");;/* empty css */const p={class:"w-100 o-scroll"},f={key:1,class:"w-max gap-thin flex-nowrap flex"},b={__name:"Publics",setup(g){let t=e.ref(null);e.onMounted(async()=>{t.value=await d.actions.read({user:i.state.user._id,sortParam:"profile.tags",limit:10})});const u=({membership:s,status:r,target:n},a,o)=>{m.mutations.handleMembershipUpdate(t.value,s,r,n,a,o)};return(s,r)=>(e.openBlock(),e.createElementBlock("div",p,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"Unfortunately, we couldn't find any recommendations for you",description:"Explore and find a community or organization that suits your interests.",class:"radius-big bg-light pd-medium"})):(e.openBlock(),e.createElementBlock("div",f,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(n,a)=>(e.openBlock(),e.createBlock(l.default,{key:n._id,organization:n,user:i.state.user,onUpdateMembership:r[0]||(r[0]=o=>u(o,"isSubscriber","numberOfSubscribers")),class:"w-max-20r radius-big"},null,8,["organization","user"]))),128)):e.createCommentVNode("",!0)]))]))}};exports.default=b;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../blocks/CardOrganization.vue.cjs"),c=require("../../../../components/EmptyState/EmptyState.vue.cjs"),i=require("../../../auth/views/store/auth.cjs"),d=require("../../store/organizations.cjs"),m=require("../../store/memberships.cjs");;/* empty css */const p={class:"w-100 o-scroll"},f={key:1,class:"w-max gap-thin flex-nowrap flex"},b={__name:"Publics",setup(g){let t=e.ref(null);e.onMounted(async()=>{t.value=await d.actions.read({user:i.state.user._id,sortParam:"profile.tags",limit:10})});const u=({membership:s,status:r,target:n},a,o)=>{m.mutations.handleMembershipUpdate(t.value,s,r,n,a,o)};return(s,r)=>(e.openBlock(),e.createElementBlock("div",p,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"Unfortunately, we couldn't find any recommendations for you",description:"Explore and find a community or organization that suits your interests.",class:"radius-big bg-light pd-medium"})):(e.openBlock(),e.createElementBlock("div",f,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(n,a)=>(e.openBlock(),e.createBlock(l.default,{key:n._id,organization:n,user:i.state.user,onUpdateMembership:r[0]||(r[0]=o=>u(o,"isSubscriber","numberOfSubscribers")),class:"w-max-20r radius-big"},null,8,["organization","user"]))),128)):e.createCommentVNode("",!0)]))]))}};exports.default=b;
@@ -1,7 +1,7 @@
1
1
  import { ref as d, onMounted as p, openBlock as r, createElementBlock as n, unref as o, createBlock as u, Fragment as f, renderList as _, createCommentVNode as b } from "vue";
2
2
  import g from "../blocks/CardOrganization.vue.js";
3
3
  import h from "../../../../components/EmptyState/EmptyState.vue.js";
4
- import { state as l } from "../../../auth/store/auth.js";
4
+ import { state as l } from "../../../auth/views/store/auth.js";
5
5
  import { actions as y } from "../../store/organizations.js";
6
6
  import { mutations as x } from "../../store/memberships.js";
7
7
  /* empty css */
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../globals/components/layouts/Empty.vue.cjs");require("../../auth/store/auth.cjs");const t=[{path:"backoffice",component:e.default,children:[{path:"",name:"Backoffice",meta:{title:{en:"Backoffice",ru:"Управление"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/OrganizationBackoffice.vue.cjs"))}]}];exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../globals/components/layouts/Empty.vue.cjs");require("../../auth/views/store/auth.cjs");const t=[{path:"backoffice",component:e.default,children:[{path:"",name:"Backoffice",meta:{title:{en:"Backoffice",ru:"Управление"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/OrganizationBackoffice.vue.cjs"))}]}];exports.default=t;
@@ -1,5 +1,5 @@
1
1
  import o from "../../globals/components/layouts/Empty.vue.js";
2
- import "../../auth/store/auth.js";
2
+ import "../../auth/views/store/auth.js";
3
3
  const a = [{
4
4
  path: "backoffice",
5
5
  component: o,
@@ -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:"departments/create",name:"Department Creation",meta:{title:"Создание отдела"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/DepartmentEdit.vue.cjs"))},{path:"departments/:department",name:"Department",meta:{title:"Отдел"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/Department.vue.cjs"))},{path:"departments/:department/edit",name:"Department Edit",meta:{title:"Редактирование отдела"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/DepartmentEdit.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:"departments/create",name:"Department Creation",meta:{title:"Создание отдела"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/DepartmentEdit.vue.cjs"))},{path:"departments/:department",name:"Department",meta:{title:"Отдел"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/Department.vue.cjs"))},{path:"departments/:department/edit",name:"Department Edit",meta:{title:"Редактирование отдела"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/DepartmentEdit.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: "departments/create",
4
4
  name: "Department Creation",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("../../auth/store/auth.cjs");const e=[{path:"members",name:"Organization Members",meta:{title:{en:"Members",ru:"Участники"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Members.vue.cjs"))},{path:"members/invite",name:"Invite Member",component:()=>Promise.resolve().then(()=>require("../components/sections/MembersAdd.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:"members",name:"Organization Members",meta:{title:{en:"Members",ru:"Участники"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Members.vue.cjs"))},{path:"members/invite",name:"Invite Member",component:()=>Promise.resolve().then(()=>require("../components/sections/MembersAdd.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 m = [{
3
3
  path: "members",
4
4
  name: "Organization Members",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../globals/components/layouts/Empty.vue.cjs"),t=require("./members.router.cjs"),o=require("./departments.router.cjs"),n=require("../../products/router/products.router.cjs"),a=require("../../products/router/categories.router.cjs"),i=require("../../products/router/leftovers.router.cjs"),u=require("../../wallet/views/router/payments.router.cjs"),s=require("../../orders/router/orders.backoffice.router.cjs"),c=require("../../gallery/router/gallery.backoffice.router.cjs"),d=require("./backoffice.router.cjs"),r=require("../../middlewares/client/auth.validation.cjs"),l=[{path:"organizations",component:e.default,meta:{title:{en:"Organizations",ru:"Организации"},breadcrumbs:{hidden:!0}},children:[{path:"create",name:"Create Organization",meta:{title:{en:"Create Organization",ru:"Создать Организацию"}},beforeEnter:[r.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/OrganizationEdit.vue.cjs"))},{path:":_id",name:"OrganizationRoot",meta:{title:{en:"Group",ru:"Группа"}},component:e.default,children:[{path:"",name:"Organization",meta:{title:{en:"Group",ru:"Группа"},breadcrumbs:{hidden:!0}},component:()=>Promise.resolve().then(()=>require("../components/pages/Organization.vue.cjs"))},...t.default,...o.default,...n.default,...a.default,...i.default,...u.default,...s.default,...c.default,...d.default]},{path:":_id/edit",name:"Organization Edit",meta:{title:{en:"Edit Organization",ru:"Редактировать Организацию"}},beforeEnter:[r.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/OrganizationEdit.vue.cjs"))}]}];exports.default=l;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../globals/components/layouts/Empty.vue.cjs"),t=require("./members.router.cjs"),o=require("./departments.router.cjs"),n=require("../../products/router/products.router.cjs"),a=require("../../products/router/categories.router.cjs"),i=require("../../products/router/leftovers.router.cjs"),u=require("../../wallet/views/router/payments.router.cjs"),s=require("../../orders/router/orders.backoffice.router.cjs"),c=require("../../gallery/router/gallery.backoffice.router.cjs"),d=require("./backoffice.router.cjs"),r=require("../../auth/views/middlewares/auth.validation.cjs"),l=[{path:"organizations",component:e.default,meta:{title:{en:"Organizations",ru:"Организации"},breadcrumbs:{hidden:!0}},children:[{path:"create",name:"Create Organization",meta:{title:{en:"Create Organization",ru:"Создать Организацию"}},beforeEnter:[r.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/OrganizationEdit.vue.cjs"))},{path:":_id",name:"OrganizationRoot",meta:{title:{en:"Group",ru:"Группа"}},component:e.default,children:[{path:"",name:"Organization",meta:{title:{en:"Group",ru:"Группа"},breadcrumbs:{hidden:!0}},component:()=>Promise.resolve().then(()=>require("../components/pages/Organization.vue.cjs"))},...t.default,...o.default,...n.default,...a.default,...i.default,...u.default,...s.default,...c.default,...d.default]},{path:":_id/edit",name:"Organization Edit",meta:{title:{en:"Edit Organization",ru:"Редактировать Организацию"}},beforeEnter:[r.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/OrganizationEdit.vue.cjs"))}]}];exports.default=l;
@@ -8,7 +8,7 @@ import a from "../../wallet/views/router/payments.router.js";
8
8
  import p from "../../orders/router/orders.backoffice.router.js";
9
9
  import u from "../../gallery/router/gallery.backoffice.router.js";
10
10
  import d from "./backoffice.router.js";
11
- import { requiresAuth as r } from "../../middlewares/client/auth.validation.js";
11
+ import { requiresAuth as r } from "../../auth/views/middlewares/auth.validation.js";
12
12
  const y = [{
13
13
  path: "organizations",
14
14
  component: t,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("axios"),i=require("vue"),a=require("../../globals/store/globals.cjs"),n=require("../../auth/store/auth.cjs"),s=c.create({baseURL:process.env.API_URL,withCredentials:!0}),r=i.reactive({invites:[],invite:null,error:null}),l={async read(t){try{const e=await s.get(`/api/invites/${t.owner}`);return r.invites=e.data,r.error=null,e.data}catch(e){a.setError(e)}},async readOne(t){try{const e=await s.get(`/api/invites/get/${t}`);r.invite=e.data,n.state.user.phone=e.data.phone,n.state.user.email=e.data.email}catch(e){a.setError(e)}},async create(t){try{const e=await s.post("/api/invites/create",t);return Promise.resolve(e.data)}catch(e){a.setError(e)}},async update(t,e){try{await s.put("/api/invites/update",e),r.error=null}catch(o){a.setError(o)}},async delete(t){try{await s.delete(`/api/invites/delete/${t}`),r.error=null}catch(e){a.setError(e)}}};i.watch(r,(t,e)=>{});exports.actions=l;exports.state=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("axios"),i=require("vue"),a=require("../../globals/store/globals.cjs"),n=require("../../auth/views/store/auth.cjs"),s=c.create({baseURL:process.env.API_URL,withCredentials:!0}),r=i.reactive({invites:[],invite:null,error:null}),l={async read(t){try{const e=await s.get(`/api/invites/${t.owner}`);return r.invites=e.data,r.error=null,e.data}catch(e){a.setError(e)}},async readOne(t){try{const e=await s.get(`/api/invites/get/${t}`);r.invite=e.data,n.state.user.phone=e.data.phone,n.state.user.email=e.data.email}catch(e){a.setError(e)}},async create(t){try{const e=await s.post("/api/invites/create",t);return Promise.resolve(e.data)}catch(e){a.setError(e)}},async update(t,e){try{await s.put("/api/invites/update",e),r.error=null}catch(o){a.setError(o)}},async delete(t){try{await s.delete(`/api/invites/delete/${t}`),r.error=null}catch(e){a.setError(e)}}};i.watch(r,(t,e)=>{});exports.actions=l;exports.state=r;
@@ -1,7 +1,7 @@
1
1
  import s from "axios";
2
2
  import { reactive as c, watch as l } from "vue";
3
3
  import { setError as a } from "../../globals/store/globals.js";
4
- import { state as o } from "../../auth/store/auth.js";
4
+ import { state as o } from "../../auth/views/store/auth.js";
5
5
  const i = s.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = c({
6
6
  invites: [],
7
7
  invite: null,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("vue-router"),N=require("vue-i18n"),V=require("../../../../constructor/components/sections/Viewer.vue.cjs"),r=require("../blocks/CardPage.vue.cjs"),g=require("../../store/pages.cjs"),w=require("../../../../auth/store/auth.cjs"),B=require("../../../../globals/mixins/mixins.cjs"),E={key:0,style:{overflow:"clip"},class:"bg-light pos-relative"},y={class:"pd-medium pos-sticky mobile-only z-index-1 pos-t-0 bg-light w-100 br-b br-solid br-black-transp-10"},P={key:0,class:"z-index-0 pos-relative"},x={class:"transition-ease-in-out w-100 bg-light"},C={key:1,class:"cols-2-1_3 h-100 bg-light z-index-0 pos-relative"},R={key:0,class:"desktop-only h-100 bg-white o-scroll z-index-0 pos-relative"},q={class:"transition-ease-in-out w-100 bg-light"},M={class:"o-scroll pd-medium"},A={class:"gap-thin cols-2"},z={key:0,class:"bg-white pd-medium mn-b-thin radius-semi"},I=e.createElementVNode("h4",{class:"mn-b-small"},"Read Previous",-1),S={key:1,class:"bg-white pd-medium mn-b-thin radius-semi"},T=e.createElementVNode("h4",{class:"mn-b-small pd-micro"},"Table of Contents",-1),j={key:2,class:"bg-white pd-medium mn-b-thin radius-semi"},F=e.createElementVNode("h4",{class:"mn-b-small"},"Read Next",-1),O={__name:"Page",setup(U){const i=e.ref(!1);function p(){i.value=!i.value}function v(t){const l=[];function s(d,k=null){for(const u of d)l.push({...u,parent:k}),u.children.length>0&&s(u.children,u)}return s(t.children),l}const c=e.computed(()=>v(a.value)),o=e.computed(()=>{if(n.value._id===a.value._id)return{children:n.value.children,previousPage:null,nextPage:null};const t=c.value.findIndex(d=>d._id===n.value._id),l=t>0?c.value[t-1]:a.value,s=t<c.value.length-1?c.value[t+1]:null;return{previousPage:l,nextPage:s,children:[]}}),{normalizeUrlParam:D,joinArrayToUrl:_,isAdmin:b}=B.useGlobalMixins(),m=e.computed(()=>b(w.state.access.roles));N.useI18n();const h=f.useRoute(),a=e.ref(null),n=e.ref(null);return e.onMounted(async()=>{let t=h.params.url;t.length>0&&(t=t[0]),a.value=await g.actions.read({url:t});let l=h.params.url;l.length>0&&(l=_(l)),n.value=await g.actions.read({url:l})}),(t,l)=>n.value&&n.value.content?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("div",y,[e.createElementVNode("button",{onClick:p,class:"cursor-pointer"},e.toDisplayString(i.value===!1?"Show Menu":"Hide Menu"),1)]),i.value?(e.openBlock(),e.createElementBlock("div",P,[e.createElementVNode("ul",x,[e.createVNode(r.default,{page:a.value,hasAdminRights:m.value,class:"pd-thin"},null,8,["page","hasAdminRights"])])])):e.createCommentVNode("",!0),i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",C,[a.value.url!==n.value.url?(e.openBlock(),e.createElementBlock("div",R,[e.createElementVNode("ul",q,[e.createVNode(r.default,{page:a.value,hasAdminRights:m.value,class:"bg-white pd-thin"},null,8,["page","hasAdminRights"])])])):e.createCommentVNode("",!0),e.createElementVNode("div",M,[e.createVNode(V.default,{content:n.value.content,class:""},null,8,["content"]),e.createElementVNode("div",A,[o.value.previousPage?(e.openBlock(),e.createElementBlock("div",z,[I,e.createVNode(r.default,{page:o.value.previousPage,showChildren:!1,class:"h3 t-main bg-white mn-b-thin radius-semi"},null,8,["page"])])):e.createCommentVNode("",!0),o.value.children.length>0?(e.openBlock(),e.createElementBlock("div",S,[T,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.children,s=>(e.openBlock(),e.createBlock(r.default,{key:s.id,page:s,class:"bg-white pd-micro radius-semi"},null,8,["page"]))),128))])):e.createCommentVNode("",!0),o.value.nextPage?(e.openBlock(),e.createElementBlock("div",j,[F,e.createVNode(r.default,{page:o.value.nextPage,class:"h3 t-main bg-white mn-b-thin radius-semi",showChildren:!1},null,8,["page"])])):e.createCommentVNode("",!0)])])]))])):e.createCommentVNode("",!0)}};exports.default=O;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("vue-router"),N=require("vue-i18n"),V=require("../../../../constructor/components/sections/Viewer.vue.cjs"),r=require("../blocks/CardPage.vue.cjs"),g=require("../../store/pages.cjs"),w=require("../../../../auth/views/store/auth.cjs"),B=require("../../../../globals/mixins/mixins.cjs"),E={key:0,style:{overflow:"clip"},class:"bg-light pos-relative"},y={class:"pd-medium pos-sticky mobile-only z-index-1 pos-t-0 bg-light w-100 br-b br-solid br-black-transp-10"},P={key:0,class:"z-index-0 pos-relative"},x={class:"transition-ease-in-out w-100 bg-light"},C={key:1,class:"cols-2-1_3 h-100 bg-light z-index-0 pos-relative"},R={key:0,class:"desktop-only h-100 bg-white o-scroll z-index-0 pos-relative"},q={class:"transition-ease-in-out w-100 bg-light"},M={class:"o-scroll pd-medium"},A={class:"gap-thin cols-2"},z={key:0,class:"bg-white pd-medium mn-b-thin radius-semi"},I=e.createElementVNode("h4",{class:"mn-b-small"},"Read Previous",-1),S={key:1,class:"bg-white pd-medium mn-b-thin radius-semi"},T=e.createElementVNode("h4",{class:"mn-b-small pd-micro"},"Table of Contents",-1),j={key:2,class:"bg-white pd-medium mn-b-thin radius-semi"},F=e.createElementVNode("h4",{class:"mn-b-small"},"Read Next",-1),O={__name:"Page",setup(U){const i=e.ref(!1);function p(){i.value=!i.value}function v(t){const l=[];function s(d,k=null){for(const u of d)l.push({...u,parent:k}),u.children.length>0&&s(u.children,u)}return s(t.children),l}const c=e.computed(()=>v(a.value)),o=e.computed(()=>{if(n.value._id===a.value._id)return{children:n.value.children,previousPage:null,nextPage:null};const t=c.value.findIndex(d=>d._id===n.value._id),l=t>0?c.value[t-1]:a.value,s=t<c.value.length-1?c.value[t+1]:null;return{previousPage:l,nextPage:s,children:[]}}),{normalizeUrlParam:D,joinArrayToUrl:_,isAdmin:b}=B.useGlobalMixins(),m=e.computed(()=>b(w.state.access.roles));N.useI18n();const h=f.useRoute(),a=e.ref(null),n=e.ref(null);return e.onMounted(async()=>{let t=h.params.url;t.length>0&&(t=t[0]),a.value=await g.actions.read({url:t});let l=h.params.url;l.length>0&&(l=_(l)),n.value=await g.actions.read({url:l})}),(t,l)=>n.value&&n.value.content?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("div",y,[e.createElementVNode("button",{onClick:p,class:"cursor-pointer"},e.toDisplayString(i.value===!1?"Show Menu":"Hide Menu"),1)]),i.value?(e.openBlock(),e.createElementBlock("div",P,[e.createElementVNode("ul",x,[e.createVNode(r.default,{page:a.value,hasAdminRights:m.value,class:"pd-thin"},null,8,["page","hasAdminRights"])])])):e.createCommentVNode("",!0),i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",C,[a.value.url!==n.value.url?(e.openBlock(),e.createElementBlock("div",R,[e.createElementVNode("ul",q,[e.createVNode(r.default,{page:a.value,hasAdminRights:m.value,class:"bg-white pd-thin"},null,8,["page","hasAdminRights"])])])):e.createCommentVNode("",!0),e.createElementVNode("div",M,[e.createVNode(V.default,{content:n.value.content,class:""},null,8,["content"]),e.createElementVNode("div",A,[o.value.previousPage?(e.openBlock(),e.createElementBlock("div",z,[I,e.createVNode(r.default,{page:o.value.previousPage,showChildren:!1,class:"h3 t-main bg-white mn-b-thin radius-semi"},null,8,["page"])])):e.createCommentVNode("",!0),o.value.children.length>0?(e.openBlock(),e.createElementBlock("div",S,[T,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.children,s=>(e.openBlock(),e.createBlock(r.default,{key:s.id,page:s,class:"bg-white pd-micro radius-semi"},null,8,["page"]))),128))])):e.createCommentVNode("",!0),o.value.nextPage?(e.openBlock(),e.createElementBlock("div",j,[F,e.createVNode(r.default,{page:o.value.nextPage,class:"h3 t-main bg-white mn-b-thin radius-semi",showChildren:!1},null,8,["page"])])):e.createCommentVNode("",!0)])])]))])):e.createCommentVNode("",!0)}};exports.default=O;
@@ -4,7 +4,7 @@ import { useI18n as I } from "vue-i18n";
4
4
  import T from "../../../../constructor/components/sections/Viewer.vue.js";
5
5
  import h from "../blocks/CardPage.vue.js";
6
6
  import { actions as w } from "../../store/pages.js";
7
- import { state as V } from "../../../../auth/store/auth.js";
7
+ import { state as V } from "../../../../auth/views/store/auth.js";
8
8
  import { useGlobalMixins as E } from "../../../../globals/mixins/mixins.js";
9
9
  const F = {
10
10
  key: 0,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("vue-router"),n=require("../../../../../components/Block/Block.vue.cjs"),o=require("../../../../globals/components/sections/SectionPageTitle.vue.cjs"),u=require("../blocks/CardPage.vue.cjs"),c=require("../../store/pages.cjs"),i=require("../../../../auth/store/auth.cjs"),d=require("../../../../globals/mixins/mixins.cjs"),g={__name:"Pages",setup(m){const{normalizeUrlParam:h,joinArrayToUrl:p,isAdmin:r}=d.useGlobalMixins(),l=e.computed(()=>r(i.state.access.roles));a.useRoute(),a.useRouter();const t=e.ref(null);return e.onMounted(async()=>{t.value=await c.actions.read()}),(k,_)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(o.default,{title:"Pages",actions:[{to:{name:"Backoffice Pages Add"},label:"Create Page"}],class:"mn-b-small bg-light bg-light radius-big"}),t.value?(e.openBlock(),e.createBlock(n.default,{key:0,class:"mn-b-thin cols-1 gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,s=>(e.openBlock(),e.createBlock(u.default,{page:s,hasAdminRights:l.value,class:"bg-white pd-thin radius-small"},null,8,["page","hasAdminRights"]))),256))]),_:1})):e.createCommentVNode("",!0)]))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("vue-router"),n=require("../../../../../components/Block/Block.vue.cjs"),o=require("../../../../globals/components/sections/SectionPageTitle.vue.cjs"),u=require("../blocks/CardPage.vue.cjs"),c=require("../../store/pages.cjs"),i=require("../../../../auth/views/store/auth.cjs"),d=require("../../../../globals/mixins/mixins.cjs"),g={__name:"Pages",setup(m){const{normalizeUrlParam:h,joinArrayToUrl:p,isAdmin:r}=d.useGlobalMixins(),l=e.computed(()=>r(i.state.access.roles));a.useRoute(),a.useRouter();const t=e.ref(null);return e.onMounted(async()=>{t.value=await c.actions.read()}),(k,_)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(o.default,{title:"Pages",actions:[{to:{name:"Backoffice Pages Add"},label:"Create Page"}],class:"mn-b-small bg-light bg-light radius-big"}),t.value?(e.openBlock(),e.createBlock(n.default,{key:0,class:"mn-b-thin cols-1 gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,s=>(e.openBlock(),e.createBlock(u.default,{page:s,hasAdminRights:l.value,class:"bg-white pd-thin radius-small"},null,8,["page","hasAdminRights"]))),256))]),_:1})):e.createCommentVNode("",!0)]))}};exports.default=g;
@@ -4,7 +4,7 @@ import h from "../../../../../components/Block/Block.vue.js";
4
4
  import b from "../../../../globals/components/sections/SectionPageTitle.vue.js";
5
5
  import A from "../blocks/CardPage.vue.js";
6
6
  import { actions as k } from "../../store/pages.js";
7
- import { state as v } from "../../../../auth/store/auth.js";
7
+ import { state as v } from "../../../../auth/views/store/auth.js";
8
8
  import { useGlobalMixins as P } from "../../../../globals/mixins/mixins.js";
9
9
  const E = {
10
10
  __name: "Pages",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router"),g=require("../../../../../components/Block/Block.vue.cjs"),h=require("../../../../../components/Popup/Popup.vue2.cjs"),P=require("../../../../../components/Button/Button.vue2.cjs"),b=require("../../../../constructor/components/sections/Constructor.vue.cjs"),_=require("../blocks/CardPage.vue.cjs"),c=require("../../store/pages.cjs"),w=require("../../../../auth/store/auth.cjs"),k=require("../../../../globals/mixins/mixins.cjs"),q={class:"h-max-20r o-scroll"},x={__name:"SidebarPages",setup(B){const{normalizeUrlParam:i,joinArrayToUrl:C,isAdmin:p}=k.useGlobalMixins(),d=e.computed(()=>p(w.state.access.roles));s.useRoute();const l=s.useRouter(),a=e.ref(null);e.onMounted(async()=>{a.value=await c.actions.read()});const t=e.ref({url:null,name:null,parent:null,content:[]}),n=e.ref(!1);function m(o){n.value=!0,t.value.parent=o}function v(){n.value=!1,t.value={url:null,name:null,parent:null,content:[]}}async function f(){t.value.name=t.value.content[0].content,t.value.url=t.value.parent.url+"/"+i(t.value.name),t.value.parent=t.value.parent._id,await c.actions.create(t.value),l.push(l.resolve({name:"Backoffice Pages Edit",params:{url:t.value.url.split("/")}}).href)}return(o,r)=>a.value?(e.openBlock(),e.createBlock(g.default,{key:0,class:"mn-b-thin pd-small radius-semi cols-1 gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,u=>(e.openBlock(),e.createBlock(_.default,{page:u,class:"radius-small pd-thin",hasAdminRights:d.value,onCreatePage:m},null,8,["page","hasAdminRights"]))),256)),e.createVNode(h.default,{onClosePopup:v,isPopupOpen:n.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createVNode(b.default,{content:t.value.content,onUpdate:r[0]||(r[0]=u=>t.value.content=u)},null,8,["content"])]),e.createVNode(P.default,{submit:()=>f(),class:"mn-l-auto t-nowrap t-white bg-black w-max"},{default:e.withCtx(()=>[e.createTextVNode(" Save ")]),_:1},8,["submit"])]),_:1},8,["isPopupOpen"])]),_:1})):e.createCommentVNode("",!0)}};exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router"),g=require("../../../../../components/Block/Block.vue.cjs"),h=require("../../../../../components/Popup/Popup.vue2.cjs"),P=require("../../../../../components/Button/Button.vue2.cjs"),b=require("../../../../constructor/components/sections/Constructor.vue.cjs"),_=require("../blocks/CardPage.vue.cjs"),c=require("../../store/pages.cjs"),w=require("../../../../auth/views/store/auth.cjs"),k=require("../../../../globals/mixins/mixins.cjs"),q={class:"h-max-20r o-scroll"},x={__name:"SidebarPages",setup(B){const{normalizeUrlParam:i,joinArrayToUrl:C,isAdmin:p}=k.useGlobalMixins(),d=e.computed(()=>p(w.state.access.roles));s.useRoute();const l=s.useRouter(),a=e.ref(null);e.onMounted(async()=>{a.value=await c.actions.read()});const t=e.ref({url:null,name:null,parent:null,content:[]}),n=e.ref(!1);function m(o){n.value=!0,t.value.parent=o}function v(){n.value=!1,t.value={url:null,name:null,parent:null,content:[]}}async function f(){t.value.name=t.value.content[0].content,t.value.url=t.value.parent.url+"/"+i(t.value.name),t.value.parent=t.value.parent._id,await c.actions.create(t.value),l.push(l.resolve({name:"Backoffice Pages Edit",params:{url:t.value.url.split("/")}}).href)}return(o,r)=>a.value?(e.openBlock(),e.createBlock(g.default,{key:0,class:"mn-b-thin pd-small radius-semi cols-1 gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,u=>(e.openBlock(),e.createBlock(_.default,{page:u,class:"radius-small pd-thin",hasAdminRights:d.value,onCreatePage:m},null,8,["page","hasAdminRights"]))),256)),e.createVNode(h.default,{onClosePopup:v,isPopupOpen:n.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createVNode(b.default,{content:t.value.content,onUpdate:r[0]||(r[0]=u=>t.value.content=u)},null,8,["content"])]),e.createVNode(P.default,{submit:()=>f(),class:"mn-l-auto t-nowrap t-white bg-black w-max"},{default:e.withCtx(()=>[e.createTextVNode(" Save ")]),_:1},8,["submit"])]),_:1},8,["isPopupOpen"])]),_:1})):e.createCommentVNode("",!0)}};exports.default=x;
@@ -6,7 +6,7 @@ import V from "../../../../../components/Button/Button.vue2.js";
6
6
  import E from "../../../../constructor/components/sections/Constructor.vue.js";
7
7
  import S from "../blocks/CardPage.vue.js";
8
8
  import { actions as p } from "../../store/pages.js";
9
- import { state as U } from "../../../../auth/store/auth.js";
9
+ import { state as U } from "../../../../auth/views/store/auth.js";
10
10
  import { useGlobalMixins as M } from "../../../../globals/mixins/mixins.js";
11
11
  const O = { class: "h-max-20r o-scroll" }, Q = {
12
12
  __name: "SidebarPages",
@@ -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 */