@ozdao/prometheus-framework 0.2.187 → 0.2.189

Sign up to get free protection for your applications and to get access to all the features.
Files changed (520) hide show
  1. package/dist/auth.server.js +35 -23
  2. package/dist/auth.server.mjs +35 -23
  3. package/dist/builder.js +6 -3
  4. package/dist/builder.mjs +6 -3
  5. package/dist/events.server.js +1 -1
  6. package/dist/events.server.mjs +1 -1
  7. package/dist/globals.server.js +1 -1
  8. package/dist/globals.server.mjs +1 -1
  9. package/dist/mailing-BQKyTI-q.js +77 -0
  10. package/dist/mailing-C3VD4l0h.mjs +78 -0
  11. package/dist/main-BVZtf9OG.js +92 -0
  12. package/dist/main-CbTw08vO.mjs +13584 -0
  13. package/dist/node_modules/@unhead/vue/dist/shared/vue.cf295fb1.cjs +1 -0
  14. package/dist/node_modules/@unhead/vue/dist/shared/vue.cf295fb1.js +26 -0
  15. package/dist/node_modules/@unhead/vue/dist/shared/vue.f36acd1f.cjs +1 -0
  16. package/dist/node_modules/@unhead/vue/dist/shared/vue.f36acd1f.js +26 -0
  17. package/dist/node_modules/unhead/dist/index.cjs +1 -0
  18. package/dist/node_modules/unhead/dist/index.js +7 -0
  19. package/dist/orders.server.js +162 -12
  20. package/dist/orders.server.mjs +162 -12
  21. package/dist/organizations.server.js +1 -1
  22. package/dist/organizations.server.mjs +1 -1
  23. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +5 -5
  25. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/auth/auth.client.js +41 -22
  27. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -0
  28. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +41 -0
  29. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -0
  30. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +124 -0
  31. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -0
  32. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +94 -0
  33. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -0
  34. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +82 -0
  35. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -0
  36. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +118 -0
  37. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -0
  38. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +168 -0
  39. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -0
  40. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +129 -0
  41. package/dist/prometheus-framework/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs +1 -0
  42. package/dist/prometheus-framework/src/modules/auth/views/components/sections/SliderFeatures.vue.js +88 -0
  43. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterCode.json.cjs +1 -0
  44. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterCode.json.js +20 -0
  45. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterPassword.json.cjs +1 -0
  46. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterPassword.json.js +26 -0
  47. package/dist/prometheus-framework/src/modules/auth/views/localization/ResetPassword.json.cjs +1 -0
  48. package/dist/prometheus-framework/src/modules/auth/views/localization/ResetPassword.json.js +30 -0
  49. package/dist/prometheus-framework/src/modules/auth/views/localization/SignIn.json.cjs +1 -0
  50. package/dist/prometheus-framework/src/modules/auth/views/localization/SignIn.json.js +38 -0
  51. package/dist/prometheus-framework/src/modules/auth/views/localization/SignUp.json.cjs +1 -0
  52. package/dist/prometheus-framework/src/modules/auth/views/localization/SignUp.json.js +32 -0
  53. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs +1 -0
  54. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js +30 -0
  55. package/dist/prometheus-framework/src/modules/auth/views/router/auth.cjs +1 -0
  56. package/dist/prometheus-framework/src/modules/auth/views/router/auth.js +119 -0
  57. package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs +1 -0
  58. package/dist/prometheus-framework/src/modules/auth/views/store/auth.js +176 -0
  59. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs +1 -0
  60. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.js +31 -0
  61. package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.cjs +1 -0
  62. package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.js +45 -0
  63. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +1 -1
  65. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +2 -2
  67. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +2 -2
  69. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +1 -1
  71. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  75. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +3 -4
  77. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +73 -42
  79. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +10 -10
  81. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  83. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +1 -1
  85. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  87. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
  89. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
  91. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +2 -2
  95. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  97. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
  101. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +12 -13
  103. package/dist/prometheus-framework/src/modules/events/components/sections/FeaturedEvents.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/events/components/sections/FeaturedEvents.vue.js +1 -1
  105. package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/events/router/events.js +1 -1
  107. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
  109. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
  111. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
  113. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  115. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
  117. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  119. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/globals/globals.client.js +34 -10
  121. package/dist/prometheus-framework/src/modules/globals/localization/get-browser-locale.cjs +1 -0
  122. package/dist/prometheus-framework/src/modules/globals/localization/get-browser-locale.js +7 -0
  123. package/dist/prometheus-framework/src/modules/globals/router/scrollBehavior.cjs +1 -0
  124. package/dist/prometheus-framework/src/modules/globals/router/scrollBehavior.js +18 -0
  125. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/globals/store/globals.js +38 -76
  127. package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.cjs +1 -0
  128. package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.js +72 -0
  129. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +1 -0
  130. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.js +57 -0
  131. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +1 -0
  132. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +35 -0
  133. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSorting.vue.cjs +1 -0
  134. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSorting.vue.js +75 -0
  135. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -0
  136. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +194 -0
  137. package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.cjs +1 -0
  138. package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.js +38 -0
  139. package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonSort.vue.cjs +1 -0
  140. package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonSort.vue.js +31 -0
  141. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -0
  142. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +66 -0
  143. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Empty.vue.cjs +1 -0
  144. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Empty.vue.js +16 -0
  145. package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -0
  146. package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +54 -0
  147. package/dist/prometheus-framework/src/modules/globals/views/localization/get-browser-locale.cjs +1 -0
  148. package/dist/prometheus-framework/src/modules/globals/views/localization/get-browser-locale.js +7 -0
  149. package/dist/prometheus-framework/src/modules/globals/views/mixins/mixins.cjs +1 -0
  150. package/dist/prometheus-framework/src/modules/globals/views/mixins/mixins.js +47 -0
  151. package/dist/prometheus-framework/src/modules/globals/views/router/scrollBehavior.cjs +1 -0
  152. package/dist/prometheus-framework/src/modules/globals/views/router/scrollBehavior.js +18 -0
  153. package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs +1 -0
  154. package/dist/prometheus-framework/src/modules/globals/views/store/globals.js +83 -0
  155. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +11 -11
  157. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  159. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +3 -3
  161. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +3 -3
  163. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +2 -2
  165. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  167. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +3 -3
  169. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +3 -3
  171. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  173. package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.js +1 -1
  175. package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +1 -1
  177. package/dist/prometheus-framework/src/modules/orders/store/applications.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/orders/store/applications.js +1 -1
  179. package/dist/prometheus-framework/src/modules/orders/store/customers.store.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/orders/store/customers.store.js +1 -1
  181. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
  183. package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +1 -1
  185. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  187. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -4
  189. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  190. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +4 -4
  191. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -5
  193. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +2 -2
  195. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  196. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -4
  197. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  199. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -4
  201. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  203. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +1 -1
  205. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.js +2 -2
  207. package/dist/prometheus-framework/src/modules/organizations/router/departments.router.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/organizations/router/departments.router.js +1 -1
  209. package/dist/prometheus-framework/src/modules/organizations/router/members.router.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/organizations/router/members.router.js +1 -1
  211. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +2 -2
  213. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  214. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  215. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  216. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +2 -2
  217. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
  219. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
  221. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.cjs +1 -1
  222. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.js +2 -2
  223. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
  225. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.js +3 -3
  227. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
  229. package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.js +1 -1
  231. package/dist/prometheus-framework/src/modules/pages/views/router/pages.router.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/pages/views/router/pages.router.js +1 -1
  233. package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs +1 -1
  234. package/dist/prometheus-framework/src/modules/pages/views/store/pages.js +1 -1
  235. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
  236. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +3 -3
  237. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  238. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  239. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -4
  243. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +2 -3
  245. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  246. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +2 -2
  247. package/dist/prometheus-framework/src/modules/products/router/categories.router.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/products/router/categories.router.js +1 -1
  249. package/dist/prometheus-framework/src/modules/products/router/leftovers.router.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/products/router/leftovers.router.js +1 -1
  251. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/products/router/products.router.js +1 -1
  253. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
  255. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
  257. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
  259. package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
  261. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +3 -4
  263. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +3 -3
  265. package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/spots/router/spots.js +2 -2
  267. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
  269. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  271. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  273. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -4
  275. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  277. package/dist/prometheus-framework/src/modules/users/router/users.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/users/router/users.js +3 -4
  279. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +1 -1
  281. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
  283. package/dist/prometheus-framework/src/modules/wallet/views/router/payments.router.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/wallet/views/router/payments.router.js +1 -1
  285. package/dist/prometheus-framework/src/modules/wallet/views/store/payments.store.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/wallet/views/store/payments.store.js +1 -1
  287. package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.js +1 -1
  289. package/dist/prometheus-framework.cjs.js +1 -1
  290. package/dist/prometheus-framework.es.js +1 -1
  291. package/dist/style.css +1 -1
  292. package/dist/tickets.controller-BWVUA-GR.js +401 -0
  293. package/dist/tickets.controller-ChVmHHnj.mjs +402 -0
  294. package/dist/wallet.server.js +1 -1
  295. package/dist/wallet.server.mjs +1 -1
  296. package/dist/web-CK9TrlwB.js +1 -0
  297. package/dist/web-aOWHNbX1.mjs +54 -0
  298. package/package.json +1 -1
  299. package/src/builder/modes/ssr.dev.js +4 -1
  300. package/src/builder/templates/page.js +1 -1
  301. package/src/builder/webpack/webpack.config.base.js +2 -1
  302. package/src/builder/webpack/webpack.config.spa.js +0 -1
  303. package/src/components/Breadcrumbs/Breadcrumbs.vue +0 -1
  304. package/src/components/Feed/Feed.vue +5 -5
  305. package/src/components/Sidebar/Sidebar.vue +2 -2
  306. package/src/modules/auth/auth.client.js +53 -28
  307. package/src/modules/auth/auth.server.js +32 -14
  308. package/src/modules/auth/{routes → controllers/routes}/auth.routes.js +3 -3
  309. package/src/modules/auth/{routes → controllers/routes}/twofa.routes.js +2 -2
  310. package/src/modules/auth/controllers/{auth.controller.js → services/auth.service.js} +2 -3
  311. package/src/modules/auth/controllers/{twofa.controller.js → services/twofa.service.js} +1 -1
  312. package/src/modules/auth/models/role.model.js +9 -8
  313. package/src/modules/auth/{components → views/components}/layouts/Auth.vue +3 -3
  314. package/src/modules/auth/{components → views/components}/pages/EnterCode.vue +4 -4
  315. package/src/modules/auth/{components → views/components}/pages/EnterPassword.vue +3 -3
  316. package/src/modules/auth/{components → views/components}/pages/Invite.vue +2 -2
  317. package/src/modules/auth/{components → views/components}/pages/ResetPassword.vue +4 -4
  318. package/src/modules/auth/{components → views/components}/pages/SignIn.vue +3 -3
  319. package/src/modules/auth/{components → views/components}/pages/SignUp.vue +4 -4
  320. package/src/modules/{middlewares/client → auth/views/middlewares}/auth.validation.js +20 -1
  321. package/src/modules/auth/views/router/auth.js +102 -0
  322. package/src/modules/auth/{store → views/store}/auth.js +1 -1
  323. package/src/modules/auth/{store → views/store}/twofa.js +1 -1
  324. package/src/modules/{middlewares/client → auth/views/validations}/inputs.validation.js +3 -6
  325. package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
  326. package/src/modules/backoffice/components/pages/Dashboard.vue +1 -1
  327. package/src/modules/backoffice/components/partials/Sidebar.vue +1 -1
  328. package/src/modules/backoffice/router/backoffice.js +2 -2
  329. package/src/modules/chats/controllers/chats.controller.js +1 -1
  330. package/src/modules/chats/routes/chats.routes.js +1 -1
  331. package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
  332. package/src/modules/community/components/layouts/Community.vue +1 -1
  333. package/src/modules/community/components/pages/Blog.vue +1 -1
  334. package/src/modules/community/components/pages/BlogPost.vue +64 -3
  335. package/src/modules/community/components/pages/Community.vue +1 -1
  336. package/src/modules/community/components/pages/CreateBlogPost.vue +1 -1
  337. package/src/modules/community/components/sections/Comment.vue +1 -1
  338. package/src/modules/community/components/sections/HotPosts.vue +1 -1
  339. package/src/modules/community/models/blogpost.model.js +4 -4
  340. package/src/modules/community/routes/blog.routes.js +1 -1
  341. package/src/modules/community/store/blogposts.js +1 -1
  342. package/src/modules/community/store/reactions.js +1 -1
  343. package/src/modules/events/components/blocks/CardEvent.vue +2 -2
  344. package/src/modules/events/components/elements/ButtonJoin.vue +1 -1
  345. package/src/modules/events/components/pages/EditEvent.vue +1 -1
  346. package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
  347. package/src/modules/events/components/pages/Event.vue +1 -1
  348. package/src/modules/events/components/pages/Events.vue +1 -1
  349. package/src/modules/events/components/sections/FeaturedEvents.vue +1 -1
  350. package/src/modules/events/controllers/events.controller.js +1 -1
  351. package/src/modules/events/controllers/tickets.controller.js +1 -1
  352. package/src/modules/events/models/event.model.js +4 -4
  353. package/src/modules/events/router/events.js +1 -1
  354. package/src/modules/events/routes/events.routes.js +1 -1
  355. package/src/modules/events/store/events.js +1 -1
  356. package/src/modules/events/store/tickets.js +1 -1
  357. package/src/modules/files/routes/files.routes.js +1 -1
  358. package/src/modules/gallery/components/pages/Gallery.vue +2 -2
  359. package/src/modules/gallery/components/sections/BackofficeGallery.vue +3 -3
  360. package/src/modules/gallery/models/photo.model.js +3 -3
  361. package/src/modules/gallery/routes/gallery.routes.js +2 -2
  362. package/src/modules/gallery/store/gallery.js +1 -1
  363. package/src/modules/globals/{services → controllers/classes}/globals.crud.js +2 -2
  364. package/src/modules/globals/globals.client.js +79 -8
  365. package/src/modules/globals/globals.server.js +3 -3
  366. package/src/modules/globals/models/{metadata.schema.js → schemas/metadata.schema.js} +1 -1
  367. package/src/modules/globals/{services → views/classes}/globals.store.js +1 -1
  368. package/src/modules/globals/{components → views/components}/blocks/BlockSorting.vue +1 -1
  369. package/src/modules/globals/views/components/layouts/App.vue +83 -0
  370. package/src/modules/globals/{components → views/components}/layouts/Client.vue +8 -8
  371. package/src/modules/globals/{components → views/components}/partials/Header.vue +1 -1
  372. package/src/modules/globals/views/middlewares/localization.js +16 -0
  373. package/src/modules/globals/views/router/scrollBehavior.js +30 -0
  374. package/src/modules/globals/{store → views/store}/globals.js +3 -3
  375. package/src/modules/integrations/stripe/controllers/webhooks/stripe.webhook.js +2 -2
  376. package/src/modules/landing/components/sections/SubscribeNewsletter.vue +2 -2
  377. package/src/modules/legal/components/pages/Legal.vue +1 -1
  378. package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
  379. package/src/modules/marketplace/router/marketplace.js +1 -1
  380. package/src/modules/orders/components/pages/Order.vue +1 -1
  381. package/src/modules/orders/components/pages/OrderBackoffice.vue +2 -2
  382. package/src/modules/orders/components/pages/OrderCreate.vue +2 -2
  383. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +3 -3
  384. package/src/modules/orders/components/pages/Orders.vue +3 -3
  385. package/src/modules/orders/components/sections/FormAddCustomer.vue +3 -3
  386. package/src/modules/orders/components/sections/FormDelivery.vue +1 -1
  387. package/src/modules/orders/controllers/applications.controller.js +1 -1
  388. package/src/modules/orders/controllers/orders.controller.js +1 -1
  389. package/src/modules/orders/models/customer.model.js +3 -3
  390. package/src/modules/orders/models/order.model.js +1 -2
  391. package/src/modules/orders/orders.server.js +4 -2
  392. package/src/modules/orders/router/orders.backoffice.router.js +1 -1
  393. package/src/modules/orders/router/orders.router.js +1 -1
  394. package/src/modules/orders/routes/applications.routes.js +2 -1
  395. package/src/modules/orders/routes/orders.routes.js +1 -1
  396. package/src/modules/orders/store/applications.js +1 -1
  397. package/src/modules/orders/store/customers.store.js +1 -1
  398. package/src/modules/orders/store/orders.js +1 -1
  399. package/src/modules/orders/store/shopcart.js +1 -1
  400. package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +1 -1
  401. package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
  402. package/src/modules/organizations/components/pages/Members.vue +3 -3
  403. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  404. package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +1 -1
  405. package/src/modules/organizations/components/pages/OrganizationCreate.vue +1 -1
  406. package/src/modules/organizations/components/pages/OrganizationDetails.vue +2 -2
  407. package/src/modules/organizations/components/pages/OrganizationEdit.vue +1 -1
  408. package/src/modules/organizations/components/pages/Organizations.vue +1 -1
  409. package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
  410. package/src/modules/organizations/components/sections/Organizations.vue +1 -1
  411. package/src/modules/organizations/components/sections/Publics.vue +1 -1
  412. package/src/modules/organizations/controllers/invites.controller.js +1 -1
  413. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  414. package/src/modules/organizations/models/invite.model.js +2 -2
  415. package/src/modules/organizations/models/organization.model.js +1 -1
  416. package/src/modules/organizations/router/backoffice.router.js +2 -2
  417. package/src/modules/organizations/router/departments.router.js +1 -1
  418. package/src/modules/organizations/router/members.router.js +1 -1
  419. package/src/modules/organizations/router/organizations.js +2 -2
  420. package/src/modules/organizations/routes/invites.routes.js +1 -1
  421. package/src/modules/organizations/store/departments.js +1 -1
  422. package/src/modules/organizations/store/invites.js +2 -2
  423. package/src/modules/organizations/store/memberships.js +1 -1
  424. package/src/modules/organizations/store/organizations.js +1 -1
  425. package/src/modules/pages/pages.server.js +1 -1
  426. package/src/modules/pages/views/components/pages/Page.vue +2 -2
  427. package/src/modules/pages/views/components/pages/PageEdit.vue +1 -1
  428. package/src/modules/pages/views/components/pages/Pages.vue +3 -3
  429. package/src/modules/pages/views/components/partials/SidebarPages.vue +2 -2
  430. package/src/modules/pages/views/router/pages.backoffice.router.js +1 -1
  431. package/src/modules/pages/views/router/pages.router.js +1 -1
  432. package/src/modules/pages/views/store/pages.js +1 -1
  433. package/src/modules/pages/views/store/pages.store.js +1 -1
  434. package/src/modules/products/components/blocks/CardLeftover.vue +1 -1
  435. package/src/modules/products/components/pages/EditLeftover.vue +2 -2
  436. package/src/modules/products/components/pages/Product.vue +1 -1
  437. package/src/modules/products/components/pages/ProductEdit.vue +1 -1
  438. package/src/modules/products/components/pages/Products.vue +2 -2
  439. package/src/modules/products/models/leftover.model.js +1 -1
  440. package/src/modules/products/router/categories.router.js +1 -1
  441. package/src/modules/products/router/leftovers.router.js +1 -1
  442. package/src/modules/products/router/products.router.js +1 -1
  443. package/src/modules/products/store/categories.js +1 -1
  444. package/src/modules/products/store/leftovers.js +1 -1
  445. package/src/modules/products/store/products.js +1 -1
  446. package/src/modules/projects/store/projects.js +1 -1
  447. package/src/modules/reports/store/reports.js +1 -1
  448. package/src/modules/spots/components/layouts/Spots.vue +1 -1
  449. package/src/modules/spots/components/pages/Map.vue +1 -1
  450. package/src/modules/spots/router/spots.js +2 -2
  451. package/src/modules/spots/spots.server.js +1 -1
  452. package/src/modules/spots/store/spots.js +1 -1
  453. package/src/modules/users/components/pages/Profile.vue +1 -1
  454. package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
  455. package/src/modules/users/components/pages/ProfileEdit.vue +2 -2
  456. package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
  457. package/src/modules/users/models/user.model.js +3 -3
  458. package/src/modules/users/router/users.js +1 -2
  459. package/src/modules/wallet/controllers/routes/payments.routes.js +2 -2
  460. package/src/modules/wallet/controllers/routes/rewards.routes.js +1 -1
  461. package/src/modules/wallet/views/components/pages/Payments.vue +1 -1
  462. package/src/modules/wallet/views/router/payments.router.js +1 -2
  463. package/src/modules/wallet/views/store/payments.store.js +1 -1
  464. package/src/modules/wallet/views/store/wallet.store.js +1 -1
  465. package/src/modules/auth/router/auth.js +0 -111
  466. package/src/modules/globals/localization/methods/get-app-locales.js +0 -13
  467. package/src/modules/globals/localization/vue-i18n.js +0 -38
  468. package/src/modules/globals/localization/vue-i18n.singleton.js +0 -11
  469. package/src/modules/globals/router/routerGuards.js +0 -29
  470. package/src/modules/middlewares/client/states.validation.js +0 -23
  471. package/src/modules/middlewares/middlewares.client.js +0 -11
  472. package/src/modules/middlewares/middlewares.server.js +0 -18
  473. package/src/modules/orders/routes/backcalls.routes.js +0 -36
  474. package/src/modules/orders/routes/fastorders.routes.js +0 -32
  475. /package/src/modules/auth/{middlewares → controllers/middlewares}/authJwt.js +0 -0
  476. /package/src/modules/auth/{middlewares → controllers/middlewares}/authSecret.js +0 -0
  477. /package/src/modules/auth/{middlewares → controllers/middlewares}/index.js +0 -0
  478. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyAccesses.js +0 -0
  479. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyInvites.js +0 -0
  480. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifySignUp.js +0 -0
  481. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyUser.js +0 -0
  482. /package/src/modules/auth/{utils/server → controllers/utils}/verifyAppleIdToken.js +0 -0
  483. /package/src/modules/auth/{components → views/components}/sections/SliderFeatures.vue +0 -0
  484. /package/src/modules/auth/{localization → views/localization}/EnterCode.json +0 -0
  485. /package/src/modules/auth/{localization → views/localization}/EnterPassword.json +0 -0
  486. /package/src/modules/auth/{localization → views/localization}/ResetPassword.json +0 -0
  487. /package/src/modules/auth/{localization → views/localization}/SignIn.json +0 -0
  488. /package/src/modules/auth/{localization → views/localization}/SignUp.json +0 -0
  489. /package/src/modules/globals/{services → controllers/classes}/globals.cache.js +0 -0
  490. /package/src/modules/globals/{services → controllers/classes}/globals.logger.js +0 -0
  491. /package/src/modules/globals/{services → controllers/classes}/globals.observer.js +0 -0
  492. /package/src/modules/globals/{services → controllers/classes}/globals.webhook.js +0 -0
  493. /package/src/modules/globals/{utils → controllers/utils}/mailing.js +0 -0
  494. /package/src/modules/globals/{utils → controllers/utils}/parseCookie.js +0 -0
  495. /package/src/modules/globals/{utils → controllers/utils}/seo-friendly-url.js +0 -0
  496. /package/src/modules/globals/{utils → controllers/utils}/sitemap.js +0 -0
  497. /package/src/modules/globals/models/{common.schema.js → schemas/common.schema.js} +0 -0
  498. /package/src/modules/globals/models/{credentials.schema.js → schemas/credentials.schema.js} +0 -0
  499. /package/src/modules/globals/models/{engagement.schema.js → schemas/engagement.schema.js} +0 -0
  500. /package/src/modules/globals/models/{ownership.schema.js → schemas/ownership.schema.js} +0 -0
  501. /package/src/modules/globals/models/{profile.schema.js → schemas/profile.schema.js} +0 -0
  502. /package/src/modules/globals/models/{socials.schema.js → schemas/socials.schema.js} +0 -0
  503. /package/src/modules/globals/{components → views/components}/blocks/BlockFilter.vue +0 -0
  504. /package/src/modules/globals/{components → views/components}/blocks/BlockSearch.vue +0 -0
  505. /package/src/modules/globals/{components → views/components}/blocks/CardFooter.vue +0 -0
  506. /package/src/modules/globals/{components → views/components}/blocks/CardHeader.vue +0 -0
  507. /package/src/modules/globals/{components → views/components}/elements/ButtonDate.vue +0 -0
  508. /package/src/modules/globals/{components → views/components}/elements/ButtonSort.vue +0 -0
  509. /package/src/modules/globals/{components → views/components}/layouts/Empty.vue +0 -0
  510. /package/src/modules/globals/{components → views/components}/pages/401.vue +0 -0
  511. /package/src/modules/globals/{components → views/components}/pages/404.vue +0 -0
  512. /package/src/modules/globals/{components → views/components}/partials/BottomNavigation.vue +0 -0
  513. /package/src/modules/globals/{components → views/components}/partials/Footer.vue +0 -0
  514. /package/src/modules/globals/{components → views/components}/partials/Navigation.vue +0 -0
  515. /package/src/modules/globals/{components → views/components}/partials/NavigationBar.vue +0 -0
  516. /package/src/modules/globals/{components → views/components}/sections/SectionPageTitle.vue +0 -0
  517. /package/src/modules/globals/{components → views/components}/sections/Title.vue +0 -0
  518. /package/src/modules/globals/{components → views/components}/sections/Walkthrough.vue +0 -0
  519. /package/src/modules/globals/{localization/methods → views/localization}/get-browser-locale.js +0 -0
  520. /package/src/modules/globals/{mixins → views/mixins}/mixins.js +0 -0
@@ -1,11 +1,11 @@
1
1
  import { computed as n, ref as l, onMounted as m, openBlock as e, createElementBlock as a, createVNode as c, createBlock as r, withCtx as u, Fragment as p, renderList as d, createCommentVNode as g } from "vue";
2
2
  import { useRoute as f, useRouter as _ } from "vue-router";
3
3
  import h from "../../../../../components/Block/Block.vue.js";
4
- import b from "../../../../globals/components/sections/SectionPageTitle.vue.js";
4
+ import b from "../../../../globals/views/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";
8
- import { useGlobalMixins as P } from "../../../../globals/mixins/mixins.js";
7
+ import { state as v } from "../../../../auth/views/store/auth.js";
8
+ import { useGlobalMixins as P } from "../../../../globals/views/mixins/mixins.js";
9
9
  const E = {
10
10
  __name: "Pages",
11
11
  setup(R) {
@@ -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/views/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,8 +6,8 @@ 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";
10
- import { useGlobalMixins as M } from "../../../../globals/mixins/mixins.js";
9
+ import { state as U } from "../../../../auth/views/store/auth.js";
10
+ import { useGlobalMixins as M } from "../../../../globals/views/mixins/mixins.js";
11
11
  const O = { class: "h-max-20r o-scroll" }, Q = {
12
12
  __name: "SidebarPages",
13
13
  setup(T) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../globals/components/layouts/Empty.vue.cjs"),a=require("../../../backoffice/components/partials/Sidebar.vue.cjs"),e=require("../components/partials/SidebarPages.vue.cjs"),r={path:"pages",component:t.default,meta:{title:{en:"Pages",ru:"Информация"},sidebar:a.default},children:[{path:"",name:"Backoffice Pages",component:()=>Promise.resolve().then(()=>require("../components/pages/Pages.vue.cjs"))},{path:"add",name:"Backoffice Pages Add",meta:{title:{en:"New Page",ru:"Новая страница"},sidebar:e.default},component:()=>Promise.resolve().then(()=>require("../components/pages/PageEdit.vue.cjs"))},{path:":url+",name:"Backoffice Pages Edit",meta:{title:{en:"Edit Page",ru:"Редактировать страницу"},sidebar:e.default},component:()=>Promise.resolve().then(()=>require("../components/pages/PageEdit.vue.cjs"))}]};exports.default=r;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../globals/views/components/layouts/Empty.vue.cjs"),a=require("../../../backoffice/components/partials/Sidebar.vue.cjs"),e=require("../components/partials/SidebarPages.vue.cjs"),r={path:"pages",component:t.default,meta:{title:{en:"Pages",ru:"Информация"},sidebar:a.default},children:[{path:"",name:"Backoffice Pages",component:()=>Promise.resolve().then(()=>require("../components/pages/Pages.vue.cjs"))},{path:"add",name:"Backoffice Pages Add",meta:{title:{en:"New Page",ru:"Новая страница"},sidebar:e.default},component:()=>Promise.resolve().then(()=>require("../components/pages/PageEdit.vue.cjs"))},{path:":url+",name:"Backoffice Pages Edit",meta:{title:{en:"Edit Page",ru:"Редактировать страницу"},sidebar:e.default},component:()=>Promise.resolve().then(()=>require("../components/pages/PageEdit.vue.cjs"))}]};exports.default=r;
@@ -1,4 +1,4 @@
1
- import a from "../../../globals/components/layouts/Empty.vue.js";
1
+ import a from "../../../globals/views/components/layouts/Empty.vue.js";
2
2
  import t from "../../../backoffice/components/partials/Sidebar.vue.js";
3
3
  import e from "../components/partials/SidebarPages.vue.js";
4
4
  const n = {
@@ -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={path:"pages",component:e.default,meta:{title:{en:"Pages",ru:"Информация"}},children:[{path:":url+",name:"Page",meta:{title:{en:"Page",ru:"Страница"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Page.vue.cjs"))}]};exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../../globals/views/components/layouts/Empty.vue.cjs"),t={path:"pages",component:e.default,meta:{title:{en:"Pages",ru:"Информация"}},children:[{path:":url+",name:"Page",meta:{title:{en:"Page",ru:"Страница"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Page.vue.cjs"))}]};exports.default=t;
@@ -1,4 +1,4 @@
1
- import e from "../../../globals/components/layouts/Empty.vue.js";
1
+ import e from "../../../globals/views/components/layouts/Empty.vue.js";
2
2
  const a = {
3
3
  path: "pages",
4
4
  component: e,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),c=require("axios"),a=require("../../../globals/store/globals.cjs"),i=process.env.API_URL,s=c.create({baseURL:i}),r=o.reactive({all:[],current:{name:"",localization:[],groups:[],url:"",content:[]}}),p={async create(t){try{return(await s.post("/api/pages/create",t)).data}catch(e){throw a.setError(e),e}},async read(t={}){try{return(await s.get("/api/pages/read",{params:t})).data}catch(e){throw a.setError(e),e}},async update(t){try{const e=await s.put("/api/pages/update",t);return r.current=e.data,e.data}catch(e){throw a.setError(e),e}},async delete(t){try{const e=await s.delete("/api/pages/delete",{data:t});return r.all.splice(r.all.findIndex(n=>n._id==t),1),e.data}catch(e){throw a.setError(e),e}}};o.watch(r,t=>{});exports.actions=p;exports.state=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),c=require("axios"),a=require("../../../globals/views/store/globals.cjs"),i=process.env.API_URL,s=c.create({baseURL:i}),r=o.reactive({all:[],current:{name:"",localization:[],groups:[],url:"",content:[]}}),p={async create(t){try{return(await s.post("/api/pages/create",t)).data}catch(e){throw a.setError(e),e}},async read(t={}){try{return(await s.get("/api/pages/read",{params:t})).data}catch(e){throw a.setError(e),e}},async update(t){try{const e=await s.put("/api/pages/update",t);return r.current=e.data,e.data}catch(e){throw a.setError(e),e}},async delete(t){try{const e=await s.delete("/api/pages/delete",{data:t});return r.all.splice(r.all.findIndex(n=>n._id==t),1),e.data}catch(e){throw a.setError(e),e}}};o.watch(r,t=>{});exports.actions=p;exports.state=r;
@@ -1,6 +1,6 @@
1
1
  import { reactive as n, watch as c } from "vue";
2
2
  import p from "axios";
3
- import { setError as r } from "../../../globals/store/globals.js";
3
+ import { setError as r } from "../../../globals/views/store/globals.js";
4
4
  const i = process.env.API_URL, a = p.create({ baseURL: i }), s = n({
5
5
  all: [],
6
6
  current: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router"),c=require("../../../globals/components/blocks/CardHeader.vue.cjs"),i=require("../../../icons/navigation/IconEdit.vue.cjs"),d=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");;/* empty css */const m=t=>(e.pushScopeId("data-v-839424cb"),t=t(),e.popScopeId(),t),u={class:"flex-column pos-relative flex-wrap"},f={class:"mn-t-small w-100 bg-white radius-small pd-small spoiler"},v={class:"flex-child flex-child-shrink-0"},h={key:0,class:"mn-r-thin mn-l-thin t-transp"},p={key:1,class:"flex-child flex-child-shrink-0"},k={key:2,class:"mn-r-thin mn-l-thin t-transp"},g={key:3,class:"t-truncate"},y={key:0},V={class:"mn-t-small w-100 mn-b-thin flex"},N={class:"w-50 flex"},E=m(()=>e.createElementVNode("span",{class:"mn-r-thin mn-l-thin t-transp"},"|",-1)),x={class:"w-50"},B={class:"t-transp"},C={class:"t-right w-50"},w={class:"t-transp"},S={__name:"CardLeftover",props:{leftover:Object},setup(t){s.useRouter();const r=e.ref(!0);return(n,l)=>{const a=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",u,[e.createVNode(c.default,{entity:t.leftover,entityType:"leftover",user:n.user,owner:t.leftover.creator,creator:t.leftover.creator,date:t.leftover.createdAt},null,8,["entity","user","owner","creator","date"]),e.createVNode(a,{to:{name:"LeftoverEdit",params:{_id:t.leftover.organization,leftover:t.leftover._id}},class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"},{default:e.withCtx(()=>[e.createVNode(i.default,{class:"i-regular",classes:"fill-white"})]),_:1},8,["to"]),e.createElementVNode("div",f,[e.createElementVNode("div",{onClick:l[0]||(l[0]=o=>r.value=!r.value),class:"flex-v-center flex"},[e.createElementVNode("span",{class:e.normalizeClass(["flex-child flex-child-shrink-0 capitalize w-max mn-r-thin t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin",{"bg-green":t.leftover.type==="stock-in","bg-red":t.leftover.type==="stock-out"}])},e.toDisplayString(t.leftover.type),3),e.createElementVNode("span",v,"Positions "+e.toDisplayString(t.leftover.positions.length),1),t.leftover.order?(e.openBlock(),e.createElementBlock("span",h,"|")):e.createCommentVNode("",!0),t.leftover.order?(e.openBlock(),e.createElementBlock("span",p,"For order "+e.toDisplayString(t.leftover.order),1)):e.createCommentVNode("",!0),t.leftover.comment?(e.openBlock(),e.createElementBlock("span",k,"|")):e.createCommentVNode("",!0),t.leftover.comment?(e.openBlock(),e.createElementBlock("p",g,"Comment: "+e.toDisplayString(t.leftover.comment),1)):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.leftover.positions,o=>(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("div",N,[e.createElementVNode("span",null,e.toDisplayString(o.name),1),E,e.createElementVNode("span",x,[e.createTextVNode(e.toDisplayString(o.price)+" ",1),e.createElementVNode("span",B,e.toDisplayString(n.returnCurrency()),1)])]),e.createElementVNode("div",C,[e.createTextVNode(e.toDisplayString(o.quantity)+" ",1),e.createElementVNode("span",w,e.toDisplayString(o.type),1)])]))),256))])):e.createCommentVNode("",!0)]),_:1})])])}}},_=d.default(S,[["__scopeId","data-v-839424cb"]]);exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router"),c=require("../../../globals/views/components/blocks/CardHeader.vue.cjs"),i=require("../../../icons/navigation/IconEdit.vue.cjs"),d=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");;/* empty css */const m=t=>(e.pushScopeId("data-v-1fed0c02"),t=t(),e.popScopeId(),t),u={class:"flex-column pos-relative flex-wrap"},f={class:"mn-t-small w-100 bg-white radius-small pd-small spoiler"},v={class:"flex-child flex-child-shrink-0"},h={key:0,class:"mn-r-thin mn-l-thin t-transp"},p={key:1,class:"flex-child flex-child-shrink-0"},k={key:2,class:"mn-r-thin mn-l-thin t-transp"},g={key:3,class:"t-truncate"},y={key:0},V={class:"mn-t-small w-100 mn-b-thin flex"},N={class:"w-50 flex"},E=m(()=>e.createElementVNode("span",{class:"mn-r-thin mn-l-thin t-transp"},"|",-1)),x={class:"w-50"},B={class:"t-transp"},C={class:"t-right w-50"},w={class:"t-transp"},S={__name:"CardLeftover",props:{leftover:Object},setup(t){s.useRouter();const r=e.ref(!0);return(n,l)=>{const a=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",u,[e.createVNode(c.default,{entity:t.leftover,entityType:"leftover",user:n.user,owner:t.leftover.creator,creator:t.leftover.creator,date:t.leftover.createdAt},null,8,["entity","user","owner","creator","date"]),e.createVNode(a,{to:{name:"LeftoverEdit",params:{_id:t.leftover.organization,leftover:t.leftover._id}},class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"},{default:e.withCtx(()=>[e.createVNode(i.default,{class:"i-regular",classes:"fill-white"})]),_:1},8,["to"]),e.createElementVNode("div",f,[e.createElementVNode("div",{onClick:l[0]||(l[0]=o=>r.value=!r.value),class:"flex-v-center flex"},[e.createElementVNode("span",{class:e.normalizeClass(["flex-child flex-child-shrink-0 capitalize w-max mn-r-thin t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin",{"bg-green":t.leftover.type==="stock-in","bg-red":t.leftover.type==="stock-out"}])},e.toDisplayString(t.leftover.type),3),e.createElementVNode("span",v,"Positions "+e.toDisplayString(t.leftover.positions.length),1),t.leftover.order?(e.openBlock(),e.createElementBlock("span",h,"|")):e.createCommentVNode("",!0),t.leftover.order?(e.openBlock(),e.createElementBlock("span",p,"For order "+e.toDisplayString(t.leftover.order),1)):e.createCommentVNode("",!0),t.leftover.comment?(e.openBlock(),e.createElementBlock("span",k,"|")):e.createCommentVNode("",!0),t.leftover.comment?(e.openBlock(),e.createElementBlock("p",g,"Comment: "+e.toDisplayString(t.leftover.comment),1)):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.leftover.positions,o=>(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("div",N,[e.createElementVNode("span",null,e.toDisplayString(o.name),1),E,e.createElementVNode("span",x,[e.createTextVNode(e.toDisplayString(o.price)+" ",1),e.createElementVNode("span",B,e.toDisplayString(n.returnCurrency()),1)])]),e.createElementVNode("div",C,[e.createTextVNode(e.toDisplayString(o.quantity)+" ",1),e.createElementVNode("span",w,e.toDisplayString(o.type),1)])]))),256))])):e.createCommentVNode("",!0)]),_:1})])])}}},_=d.default(S,[["__scopeId","data-v-1fed0c02"]]);exports.default=_;
@@ -1,10 +1,10 @@
1
1
  import { ref as h, resolveComponent as v, openBlock as s, createElementBlock as o, createVNode as a, withCtx as m, createElementVNode as t, normalizeClass as p, toDisplayString as r, createCommentVNode as l, Transition as x, Fragment as y, renderList as _, createTextVNode as f, pushScopeId as k, popScopeId as g } from "vue";
2
2
  import { useRouter as w } from "vue-router";
3
- import b from "../../../globals/components/blocks/CardHeader.vue.js";
3
+ import b from "../../../globals/views/components/blocks/CardHeader.vue.js";
4
4
  import C from "../../../icons/navigation/IconEdit.vue.js";
5
5
  import I from "../../../../../../_virtual/_plugin-vue_export-helper.js";
6
6
  /* empty css */
7
- const L = (e) => (k("data-v-839424cb"), e = e(), g(), e), N = { class: "flex-column pos-relative flex-wrap" }, S = { class: "mn-t-small w-100 bg-white radius-small pd-small spoiler" }, V = { class: "flex-child flex-child-shrink-0" }, z = {
7
+ const L = (e) => (k("data-v-1fed0c02"), e = e(), g(), e), N = { class: "flex-column pos-relative flex-wrap" }, S = { class: "mn-t-small w-100 bg-white radius-small pd-small spoiler" }, V = { class: "flex-child flex-child-shrink-0" }, z = {
8
8
  key: 0,
9
9
  class: "mn-r-thin mn-l-thin t-transp"
10
10
  }, E = {
@@ -95,7 +95,7 @@ const L = (e) => (k("data-v-839424cb"), e = e(), g(), e), N = { class: "flex-col
95
95
  ]);
96
96
  };
97
97
  }
98
- }, U = /* @__PURE__ */ I(R, [["__scopeId", "data-v-839424cb"]]);
98
+ }, U = /* @__PURE__ */ I(R, [["__scopeId", "data-v-1fed0c02"]]);
99
99
  export {
100
100
  U as default
101
101
  };
@@ -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/views/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;
@@ -8,8 +8,8 @@ import O from "../../../../components/Popup/Popup.vue2.js";
8
8
  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
- import { actions as y } from "../../../globals/store/globals.js";
12
- import { state as M } from "../../../auth/store/auth.js";
11
+ import { actions as y } from "../../../globals/views/store/globals.js";
12
+ import { state as M } from "../../../auth/views/store/auth.js";
13
13
  import { state as e, actions as u } from "../../store/leftovers.js";
14
14
  import { state as G, actions as C } from "../../store/products.js";
15
15
  /* empty css */
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("../sections/PopularProducts.vue.cjs"),n=require("../sections/SectionProduct.vue.cjs"),o=require("vue-router"),a=require("vue-i18n"),l=require("../../../auth/store/auth.cjs"),t=require("../../store/products.cjs");require("../../store/categories.cjs");;/* empty css */const i={class:"flex flex-column w-100 o-hidden gap-thin pd-thin"},d={__name:"Product",setup(p){const r=o.useRoute();o.useRouter(),r.meta.title.en=t.state.current.name,r.meta.title.ru=t.state.current.name;const u=e.computed(()=>t.state.current),c={messages:{en:{},ru:{}}};return e.onMounted(async()=>{await t.actions.fetchProduct(r.params.product)}),a.useI18n(c),(m,_)=>(e.openBlock(),e.createElementBlock("div",i,[u.value?(e.openBlock(),e.createBlock(n.default,{key:0,product:u.value,user:l.state.user,class:"pos-relative"},null,8,["product","user"])):e.createCommentVNode("",!0),e.createVNode(s.default)]))}};exports.default=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("../sections/PopularProducts.vue.cjs"),n=require("../sections/SectionProduct.vue.cjs"),o=require("vue-router"),a=require("vue-i18n"),l=require("../../../auth/views/store/auth.cjs"),t=require("../../store/products.cjs");require("../../store/categories.cjs");;/* empty css */const i={class:"flex flex-column w-100 o-hidden gap-thin pd-thin"},d={__name:"Product",setup(p){const r=o.useRoute();o.useRouter(),r.meta.title.en=t.state.current.name,r.meta.title.ru=t.state.current.name;const u=e.computed(()=>t.state.current),c={messages:{en:{},ru:{}}};return e.onMounted(async()=>{await t.actions.fetchProduct(r.params.product)}),a.useI18n(c),(m,_)=>(e.openBlock(),e.createElementBlock("div",i,[u.value?(e.openBlock(),e.createBlock(n.default,{key:0,product:u.value,user:l.state.user,class:"pos-relative"},null,8,["product","user"])):e.createCommentVNode("",!0),e.createVNode(s.default)]))}};exports.default=d;
@@ -3,7 +3,7 @@ import i from "../sections/PopularProducts.vue.js";
3
3
  import l from "../sections/SectionProduct.vue.js";
4
4
  import { useRoute as d, useRouter as f } from "vue-router";
5
5
  import { useI18n as _ } from "vue-i18n";
6
- import { state as h } from "../../../auth/store/auth.js";
6
+ import { state as h } from "../../../auth/views/store/auth.js";
7
7
  import { state as e, actions as x } from "../../store/products.js";
8
8
  import "../../store/categories.js";
9
9
  /* empty css */
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const o=require("../../../../components/Block/Block.vue.cjs");;/* empty css */const d=require("../../../../components/Field/Field.vue2.cjs"),B=require("../../../../components/Checkbox/Checkbox.vue.cjs"),_=require("../../../../components/Button/Button.vue2.cjs"),C=require("../../../../components/Popup/Popup.vue2.cjs"),V=require("../../../../components/Feed/Feed.vue.cjs"),q=require("../../../../components/EditImages/EditImages.vue.cjs"),b=require("../../../icons/navigation/IconDelete.vue.cjs"),y=require("../blocks/CardPosition.vue.cjs"),P=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),E=require("../sections/EditProductInfo.vue.cjs"),u=require("../../../globals/store/globals.cjs"),t=require("../../store/products.cjs"),w=require("../../store/categories.cjs");;/* empty css */const U={class:"for-transition w-100 cols-1 pd-thin gap-thin"},z={class:"mn-r-auto"},F={class:"cols-2 gap-thin"},I={key:0,class:"cols-1 gap-thin"},O={class:"bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big"},D={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},L={class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},S={__name:"ProductEdit",setup(T){const l=k.useRoute(),f=k.useRouter(),h=e.ref(t.state.all),p=e.ref(!1);function N(s){p.value=!0}function i(){p.value=!1}e.onMounted(async()=>{t.mutations.resetProduct(),l.params.product&&await t.actions.read({_id:l.params.product}),t.state.current.ingredients||(t.state.current.ingredients=[]),await w.actions.fetchCategories();try{const s=await t.actions.read({organization:l.params._id,limit:100});h.value=s}catch{console.error("error")}});function v(){l.params.product?t.actions.update(l.params.product,t.state.current):t.actions.create(l.params._id,t.state.current)}function x(){t.actions.deleteProduct(t.state.current._id)}function g(){f.push({name:"Organization",params:{_id:l.params._id}})}return(s,c)=>(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(o.default,{class:"flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",z,e.toDisplayString(e.unref(l).params.product?t.state.current.name:"Create Product"),1),e.unref(l).params.product?(e.openBlock(),e.createBlock(_.default,{key:0,submit:x,callback:g,class:"bg-red mn-r-thin"},{default:e.withCtx(()=>[e.createTextVNode(" Delete ")]),_:1})):e.createCommentVNode("",!0),e.createVNode(_.default,{submit:v,callback:g,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" Save ")]),_:1})]),_:1}),e.createVNode(o.default,{placeholder:"The product doesn't have any images yet.",class:"h-min"},{default:e.withCtx(()=>[e.createVNode(q.default,{images:t.state.current.images,uploadPath:"photos","onUpdate:images":c[0]||(c[0]=a=>{t.state.current.images=a})},null,8,["images"])]),_:1}),e.createElementVNode("div",F,[e.createVNode(o.default,{title:"Profile"},{default:e.withCtx(()=>[e.createVNode(E.default,{product:t.state.current},null,8,["product"])]),_:1}),e.createVNode(o.default,{title:"Ingredients",placeholder:"No ingridients added yet",actions:[{label:"+",function:()=>N()}]},{default:e.withCtx(()=>[t.state.current.ingredients.length>0?(e.openBlock(),e.createElementBlock("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.ingredients,(a,n)=>(e.openBlock(),e.createBlock(y.default,{key:a._id,product:a,array:t.state.current.ingredients,products:h.value,showPrice:!1,onAdd:c[1]||(c[1]=r=>{u.actions.add(t.state.current.ingredients,r),i()}),onUpdate:r=>{u.actions.update(t.state.current.ingredients,r,n),i()},onDelete:r=>{u.actions.delete(t.state.current.ingredients,r,n),i()}},null,8,["product","array","products","onUpdate","onDelete"]))),128))])):e.createCommentVNode("",!0)]),_:1},8,["actions"]),e.createVNode(C.default,{title:"Add ingredient",onClosePopup:i,isPopupOpen:p.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(V.default,{search:{class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:a=>t.actions.read(a),state:null},options:{organization:e.unref(l).params._id},class:""},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(n,r)=>(e.openBlock(),e.createBlock(P.default,{key:n._id,editable:!1,product:n,onClick:()=>{let m={...n};m.quantity=1,m.type="pcs",u.actions.add(t.state.current.ingredients,m),i()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["store","options"])])]),_:1},8,["isPopupOpen"])]),e.createVNode(o.default,{title:"Categories",actions:[{label:"+",function:()=>e.unref(f).push({name:"Categories Organization",params:{_id:e.unref(l).params._id}})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.state.all,(a,n)=>(e.openBlock(),e.createBlock(B.default,{label:a.name,name:"categories",value:a.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category,"onUpdate:radio":r=>t.state.current.category=r},null,8,["label","value","radio","onUpdate:radio"]))),256))]),_:1},8,["actions"]),e.createVNode(o.default,{title:"Parameters",placeholder:"No parameters added yet",actions:[{label:"+",function:()=>t.state.current.information.push({name:"",value:""})}],class:"cols-1 gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.information,(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin flex-nowrap flex",key:n},[e.createVNode(d.default,{field:a.name,"onUpdate:field":r=>a.name=r,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:a.value,"onUpdate:field":r=>a.value=r,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",D,[e.createVNode(b.default,{onClick:()=>t.state.current.information.splice(n,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),e.createVNode(o.default,{title:"Localization",placeholder:"No localizations added yet",actions:[{label:"+",function:()=>t.state.current.localization.push({name:"",value:""})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.localization,(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:n},[e.createVNode(d.default,{field:a.name,"onUpdate:field":r=>a.name=r,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:a.value,"onUpdate:field":r=>a.value=r,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",L,[e.createVNode(b.default,{onClick:()=>t.state.current.localization.splice(n,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"])]))}};exports.default=S;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("vue-router");require("vue-i18n");;/* empty css */const o=require("../../../../components/Block/Block.vue.cjs");;/* empty css */const d=require("../../../../components/Field/Field.vue2.cjs"),B=require("../../../../components/Checkbox/Checkbox.vue.cjs"),_=require("../../../../components/Button/Button.vue2.cjs"),C=require("../../../../components/Popup/Popup.vue2.cjs"),V=require("../../../../components/Feed/Feed.vue.cjs"),y=require("../../../../components/EditImages/EditImages.vue.cjs"),b=require("../../../icons/navigation/IconDelete.vue.cjs"),q=require("../blocks/CardPosition.vue.cjs"),P=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),E=require("../sections/EditProductInfo.vue.cjs"),u=require("../../../globals/views/store/globals.cjs"),t=require("../../store/products.cjs"),w=require("../../store/categories.cjs");;/* empty css */const U={class:"for-transition w-100 cols-1 pd-thin gap-thin"},z={class:"mn-r-auto"},F={class:"cols-2 gap-thin"},I={key:0,class:"cols-1 gap-thin"},O={class:"bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big"},D={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},L={class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},S={__name:"ProductEdit",setup(T){const l=k.useRoute(),f=k.useRouter(),h=e.ref(t.state.all),p=e.ref(!1);function N(s){p.value=!0}function i(){p.value=!1}e.onMounted(async()=>{t.mutations.resetProduct(),l.params.product&&await t.actions.read({_id:l.params.product}),t.state.current.ingredients||(t.state.current.ingredients=[]),await w.actions.fetchCategories();try{const s=await t.actions.read({organization:l.params._id,limit:100});h.value=s}catch{console.error("error")}});function v(){l.params.product?t.actions.update(l.params.product,t.state.current):t.actions.create(l.params._id,t.state.current)}function x(){t.actions.deleteProduct(t.state.current._id)}function g(){f.push({name:"Organization",params:{_id:l.params._id}})}return(s,c)=>(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(o.default,{class:"flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",z,e.toDisplayString(e.unref(l).params.product?t.state.current.name:"Create Product"),1),e.unref(l).params.product?(e.openBlock(),e.createBlock(_.default,{key:0,submit:x,callback:g,class:"bg-red mn-r-thin"},{default:e.withCtx(()=>[e.createTextVNode(" Delete ")]),_:1})):e.createCommentVNode("",!0),e.createVNode(_.default,{submit:v,callback:g,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" Save ")]),_:1})]),_:1}),e.createVNode(o.default,{placeholder:"The product doesn't have any images yet.",class:"h-min"},{default:e.withCtx(()=>[e.createVNode(y.default,{images:t.state.current.images,uploadPath:"photos","onUpdate:images":c[0]||(c[0]=a=>{t.state.current.images=a})},null,8,["images"])]),_:1}),e.createElementVNode("div",F,[e.createVNode(o.default,{title:"Profile"},{default:e.withCtx(()=>[e.createVNode(E.default,{product:t.state.current},null,8,["product"])]),_:1}),e.createVNode(o.default,{title:"Ingredients",placeholder:"No ingridients added yet",actions:[{label:"+",function:()=>N()}]},{default:e.withCtx(()=>[t.state.current.ingredients.length>0?(e.openBlock(),e.createElementBlock("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.ingredients,(a,n)=>(e.openBlock(),e.createBlock(q.default,{key:a._id,product:a,array:t.state.current.ingredients,products:h.value,showPrice:!1,onAdd:c[1]||(c[1]=r=>{u.actions.add(t.state.current.ingredients,r),i()}),onUpdate:r=>{u.actions.update(t.state.current.ingredients,r,n),i()},onDelete:r=>{u.actions.delete(t.state.current.ingredients,r,n),i()}},null,8,["product","array","products","onUpdate","onDelete"]))),128))])):e.createCommentVNode("",!0)]),_:1},8,["actions"]),e.createVNode(C.default,{title:"Add ingredient",onClosePopup:i,isPopupOpen:p.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(V.default,{search:{class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:a=>t.actions.read(a),state:null},options:{organization:e.unref(l).params._id},class:""},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(n,r)=>(e.openBlock(),e.createBlock(P.default,{key:n._id,editable:!1,product:n,onClick:()=>{let m={...n};m.quantity=1,m.type="pcs",u.actions.add(t.state.current.ingredients,m),i()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["store","options"])])]),_:1},8,["isPopupOpen"])]),e.createVNode(o.default,{title:"Categories",actions:[{label:"+",function:()=>e.unref(f).push({name:"Categories Organization",params:{_id:e.unref(l).params._id}})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.state.all,(a,n)=>(e.openBlock(),e.createBlock(B.default,{label:a.name,name:"categories",value:a.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category,"onUpdate:radio":r=>t.state.current.category=r},null,8,["label","value","radio","onUpdate:radio"]))),256))]),_:1},8,["actions"]),e.createVNode(o.default,{title:"Parameters",placeholder:"No parameters added yet",actions:[{label:"+",function:()=>t.state.current.information.push({name:"",value:""})}],class:"cols-1 gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.information,(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin flex-nowrap flex",key:n},[e.createVNode(d.default,{field:a.name,"onUpdate:field":r=>a.name=r,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:a.value,"onUpdate:field":r=>a.value=r,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",D,[e.createVNode(b.default,{onClick:()=>t.state.current.information.splice(n,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),e.createVNode(o.default,{title:"Localization",placeholder:"No localizations added yet",actions:[{label:"+",function:()=>t.state.current.localization.push({name:"",value:""})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.localization,(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:n},[e.createVNode(d.default,{field:a.name,"onUpdate:field":r=>a.name=r,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:a.value,"onUpdate:field":r=>a.value=r,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",L,[e.createVNode(b.default,{onClick:()=>t.state.current.localization.splice(n,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"])]))}};exports.default=S;
@@ -1,7 +1,6 @@
1
1
  import { ref as U, onMounted as B, openBlock as n, createElementBlock as s, createVNode as a, withCtx as o, createElementVNode as m, toDisplayString as E, unref as p, createBlock as b, createTextVNode as $, createCommentVNode as z, Fragment as f, renderList as _ } from "vue";
2
2
  import { useRoute as F, useRouter as R } from "vue-router";
3
3
  import "vue-i18n";
4
- import "../../../globals/localization/vue-i18n.js";
5
4
  /* empty css */
6
5
  import d from "../../../../components/Block/Block.vue.js";
7
6
  /* empty css */
@@ -15,14 +14,14 @@ import D from "../../../icons/navigation/IconDelete.vue.js";
15
14
  import q from "../blocks/CardPosition.vue.js";
16
15
  import M from "../../../orders/components/blocks/CardOrderItem.vue.js";
17
16
  import j from "../sections/EditProductInfo.vue.js";
18
- import { actions as w } from "../../../globals/store/globals.js";
17
+ import { actions as w } from "../../../globals/views/store/globals.js";
19
18
  import { state as e, mutations as G, actions as c } from "../../store/products.js";
20
19
  import { actions as H, state as J } from "../../store/categories.js";
21
20
  /* empty css */
22
21
  const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class: "mn-r-auto" }, W = { class: "cols-2 gap-thin" }, X = {
23
22
  key: 0,
24
23
  class: "cols-1 gap-thin"
25
- }, Y = { class: "bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big" }, Z = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, ee = { class: "radius-small pd-small flex-center flex aspect-1x1 bg-red" }, ke = {
24
+ }, Y = { class: "bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big" }, Z = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, ee = { class: "radius-small pd-small flex-center flex aspect-1x1 bg-red" }, xe = {
26
25
  __name: "ProductEdit",
27
26
  setup(te) {
28
27
  const l = F(), k = R(), P = U(e.all), y = U(!1);
@@ -287,5 +286,5 @@ const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
287
286
  }
288
287
  };
289
288
  export {
290
- ke as default
289
+ xe as default
291
290
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("vue-router"),g=require("vue-i18n"),h=require("../../../../components/Loader/Loader.vue2.cjs");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const f=require("../../../../components/FieldBig/FieldBig.vue.cjs"),_=require("../sections/SectionProduct.vue.cjs");;/* empty css */const s=require("../../store/products.cjs");;/* empty css */;/* empty css */const k=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),q={id:"product-recommendation",class:"h-min-100 pd-thin t-white bg-black"},I={key:1,class:"section"},y={key:0,class:"mn-b-thin"},R={__name:"ProductRecommmendation",setup(T){const r=b.useRouter(),t=e.ref(!0),m=e.ref(!1),u=e.ref(["Loading all we know about the buds","Processing the cannabis universe","Creating a strain of knowledge","Harvesting taste insights"]),p={messages:{en:{TITLE:"Increase Your High,<br><b class='t-white'>Powered by AI Budtender</b>",DESCRIPTION:"AI's got your chill, bro. We're picking out the most cosmic weed strains based on your desired vibe:",placeholder:"Describe your desired high, bro...",action:"Transmit →"},ru:{TITLE:"Персональный Накур,<br><b class='t-white'>Напрямую от AI</b>",DESCRIPTION:"AI на страже твоего релакса, бро. Мы подбираем самые космические сорта травы, исходя из твоего желаемого настроения:",placeholder:"Опиши свой желамый хай, bro...",action:"Передать →"}}},{t:o}=g.useI18n(p),a=e.ref(u.value[0]);let c=e.ref(r.currentRoute.value.query.mood||o("Recommend me something"));e.watchEffect(async()=>{c.value=r.currentRoute.value.query.mood||o("Recommend me something"),t.value=!0,await s.actions.submitMood(c.value),t.value=!1}),e.onMounted(async()=>{}),setInterval(()=>{const i=u.value.indexOf(a.value);a.value=u.value[(i+1)%u.value.length]},2e3);let n=e.ref(r.currentRoute.value.query.mood||o("Recommend me something"));function v(){r.push({name:"Product Recommmendation",query:{mood:n.value}})}return(i,l)=>(e.openBlock(),e.createElementBlock("div",q,[t.value?(e.openBlock(),e.createBlock(h.default,{key:0,status:a.value,class:"pos-fixed"},null,8,["status"])):e.createCommentVNode("",!0),!t.value&&!m.value?(e.openBlock(),e.createElementBlock("div",I,[t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(f.default,{input:e.unref(n),loopTyping:!1,enableTyping:!1,placeholder:e.unref(o)("placeholder"),action:e.unref(o)("action"),"onUpdate:input":l[0]||(l[0]=d=>e.isRef(n)?n.value=d:n=d),onAction:v,class:"t-white bg-dark-transp-50 w-100"},null,8,["input","placeholder","action"])])),e.createVNode(_.default,{product:s.state.current,recommendation:s.state.current.recommendation,class:"bg-dark-transp-50 pd-big radius-big"},null,8,["product","recommendation"])])):e.createCommentVNode("",!0)]))}},w=k.default(R,[["__scopeId","data-v-bbe59673"]]);exports.default=w;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("vue-router"),g=require("vue-i18n"),h=require("../../../../components/Loader/Loader.vue2.cjs");;/* empty css */const f=require("../../../../components/FieldBig/FieldBig.vue.cjs"),_=require("../sections/SectionProduct.vue.cjs");;/* empty css */const s=require("../../store/products.cjs");;/* empty css */;/* empty css */const k=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),I={id:"product-recommendation",class:"h-min-100 pd-thin t-white bg-black"},q={key:1,class:"section"},y={key:0,class:"mn-b-thin"},R={__name:"ProductRecommmendation",setup(T){const r=b.useRouter(),t=e.ref(!0),m=e.ref(!1),u=e.ref(["Loading all we know about the buds","Processing the cannabis universe","Creating a strain of knowledge","Harvesting taste insights"]),p={messages:{en:{TITLE:"Increase Your High,<br><b class='t-white'>Powered by AI Budtender</b>",DESCRIPTION:"AI's got your chill, bro. We're picking out the most cosmic weed strains based on your desired vibe:",placeholder:"Describe your desired high, bro...",action:"Transmit →"},ru:{TITLE:"Персональный Накур,<br><b class='t-white'>Напрямую от AI</b>",DESCRIPTION:"AI на страже твоего релакса, бро. Мы подбираем самые космические сорта травы, исходя из твоего желаемого настроения:",placeholder:"Опиши свой желамый хай, bro...",action:"Передать →"}}},{t:o}=g.useI18n(p),a=e.ref(u.value[0]);let c=e.ref(r.currentRoute.value.query.mood||o("Recommend me something"));e.watchEffect(async()=>{c.value=r.currentRoute.value.query.mood||o("Recommend me something"),t.value=!0,await s.actions.submitMood(c.value),t.value=!1}),e.onMounted(async()=>{}),setInterval(()=>{const i=u.value.indexOf(a.value);a.value=u.value[(i+1)%u.value.length]},2e3);let n=e.ref(r.currentRoute.value.query.mood||o("Recommend me something"));function v(){r.push({name:"Product Recommmendation",query:{mood:n.value}})}return(i,l)=>(e.openBlock(),e.createElementBlock("div",I,[t.value?(e.openBlock(),e.createBlock(h.default,{key:0,status:a.value,class:"pos-fixed"},null,8,["status"])):e.createCommentVNode("",!0),!t.value&&!m.value?(e.openBlock(),e.createElementBlock("div",q,[t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(f.default,{input:e.unref(n),loopTyping:!1,enableTyping:!1,placeholder:e.unref(o)("placeholder"),action:e.unref(o)("action"),"onUpdate:input":l[0]||(l[0]=d=>e.isRef(n)?n.value=d:n=d),onAction:v,class:"t-white bg-dark-transp-50 w-100"},null,8,["input","placeholder","action"])])),e.createVNode(_.default,{product:s.state.current,recommendation:s.state.current.recommendation,class:"bg-dark-transp-50 pd-big radius-big"},null,8,["product","recommendation"])])):e.createCommentVNode("",!0)]))}},w=k.default(R,[["__scopeId","data-v-bbe59673"]]);exports.default=w;
@@ -2,7 +2,6 @@ import { ref as e, watchEffect as I, onMounted as y, openBlock as s, createEleme
2
2
  import { useRouter as k } from "vue-router";
3
3
  import { useI18n as T } from "vue-i18n";
4
4
  import x from "../../../../components/Loader/Loader.vue2.js";
5
- import "../../../globals/localization/vue-i18n.js";
6
5
  /* empty css */
7
6
  import P from "../../../../components/FieldBig/FieldBig.vue.js";
8
7
  import E from "../sections/SectionProduct.vue.js";
@@ -83,7 +82,7 @@ const B = {
83
82
  ])) : u("", !0)
84
83
  ]));
85
84
  }
86
- }, J = /* @__PURE__ */ q(N, [["__scopeId", "data-v-bbe59673"]]);
85
+ }, G = /* @__PURE__ */ q(N, [["__scopeId", "data-v-bbe59673"]]);
87
86
  export {
88
- J as default
87
+ G as default
89
88
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),p=require("../../../../components/Feed/Feed.vue.cjs"),m=require("../sections/FilterProducts.vue.cjs"),h=require("../../../globals/components/blocks/BlockSearch.vue.cjs"),b=require("../blocks/CardProduct.vue.cjs"),v=require("../../../auth/store/auth.cjs"),c=require("../../store/products.cjs"),f={class:"pd-thin"},g={key:0,class:"mn-b-medium flex-v-center flex-nowrap flex"},q=e.createElementVNode("h2",{class:"mn-r-medium"},"Products",-1),y={class:"cols-2-1_3 bg-light pd-thin radius-big gap-thin"},_={__name:"Products",setup(k){const t=l.useRoute(),n=l.useRouter(),a=e.ref(t.query.tabProducts?t.query.tabProducts:"all");t.query.tabProducts=a.value,e.watch(a,u=>{n.replace({query:{...t.query,tabProducts:u}})});function i(u){let r={...t.query};r.search=u,n.push({query:r})}return(u,r)=>(e.openBlock(),e.createElementBlock("div",f,[e.unref(t).name!=="Organization"?(e.openBlock(),e.createElementBlock("header",g,[q,e.createElementVNode("button",{onClick:r[0]||(r[0]=o=>u.$router.push({name:"ProductAdd"})),class:"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")])):e.createCommentVNode("",!0),e.unref(t).name!=="Organization"?(e.openBlock(),e.createBlock(d.default,{key:1,selected:a.value,"onUpdate:selected":r[1]||(r[1]=o=>a.value=o),tabs:[{name:"All",value:"all"},{name:"Published",value:"published"},{name:"Unpublished",value:"unpublished"},{name:"Archivied",value:"archivied"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"])):e.createCommentVNode("",!0),e.createElementVNode("div",y,[e.createVNode(m.default),e.createElementVNode("div",null,[e.createVNode(h.default,{onSearch:i,placeholder:"Enter product name",class:"bg-white mn-b-thin"}),e.createVNode(p.default,{states:{empty:{title:"No Products Found",description:"Currently, there are no products available."}},store:{read:o=>c.actions.read(o),state:c.state},options:{limit:15,organization:e.unref(t).params._id,categories:e.unref(t).query.categories,prices:e.unref(t).query.prices,delivery:e.unref(t).query.delivery,search:e.unref(t).query.search,...a.value!=="all"&&{status:a.value}},class:"cols-4 gap-thin"},{default:e.withCtx(({items:o})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,s=>(e.openBlock(),e.createBlock(b.default,{key:s._id,product:s,user:v.state.access,class:"h-max",onClickCapture:P=>u.$router.push({name:"Product Organization",params:{_id:e.unref(t).params._id,product:s._id}})},null,8,["product","user","onClickCapture"]))),128))]),_:1},8,["store","options"])])])]))}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),p=require("../../../../components/Feed/Feed.vue.cjs"),m=require("../sections/FilterProducts.vue.cjs"),h=require("../../../globals/views/components/blocks/BlockSearch.vue.cjs"),b=require("../blocks/CardProduct.vue.cjs"),v=require("../../../auth/views/store/auth.cjs"),c=require("../../store/products.cjs"),f={class:"pd-thin"},g={key:0,class:"mn-b-medium flex-v-center flex-nowrap flex"},q=e.createElementVNode("h2",{class:"mn-r-medium"},"Products",-1),y={class:"cols-2-1_3 bg-light pd-thin radius-big gap-thin"},_={__name:"Products",setup(k){const t=l.useRoute(),n=l.useRouter(),a=e.ref(t.query.tabProducts?t.query.tabProducts:"all");t.query.tabProducts=a.value,e.watch(a,u=>{n.replace({query:{...t.query,tabProducts:u}})});function i(u){let r={...t.query};r.search=u,n.push({query:r})}return(u,r)=>(e.openBlock(),e.createElementBlock("div",f,[e.unref(t).name!=="Organization"?(e.openBlock(),e.createElementBlock("header",g,[q,e.createElementVNode("button",{onClick:r[0]||(r[0]=o=>u.$router.push({name:"ProductAdd"})),class:"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")])):e.createCommentVNode("",!0),e.unref(t).name!=="Organization"?(e.openBlock(),e.createBlock(d.default,{key:1,selected:a.value,"onUpdate:selected":r[1]||(r[1]=o=>a.value=o),tabs:[{name:"All",value:"all"},{name:"Published",value:"published"},{name:"Unpublished",value:"unpublished"},{name:"Archivied",value:"archivied"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"])):e.createCommentVNode("",!0),e.createElementVNode("div",y,[e.createVNode(m.default),e.createElementVNode("div",null,[e.createVNode(h.default,{onSearch:i,placeholder:"Enter product name",class:"bg-white mn-b-thin"}),e.createVNode(p.default,{states:{empty:{title:"No Products Found",description:"Currently, there are no products available."}},store:{read:o=>c.actions.read(o),state:c.state},options:{limit:15,organization:e.unref(t).params._id,categories:e.unref(t).query.categories,prices:e.unref(t).query.prices,delivery:e.unref(t).query.delivery,search:e.unref(t).query.search,...a.value!=="all"&&{status:a.value}},class:"cols-4 gap-thin"},{default:e.withCtx(({items:o})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,s=>(e.openBlock(),e.createBlock(b.default,{key:s._id,product:s,user:v.state.access,class:"h-max",onClickCapture:P=>u.$router.push({name:"Product Organization",params:{_id:e.unref(t).params._id,product:s._id}})},null,8,["product","user","onClickCapture"]))),128))]),_:1},8,["store","options"])])])]))}};exports.default=_;
@@ -3,9 +3,9 @@ import { useRoute as y, useRouter as q } from "vue-router";
3
3
  import P from "../../../../components/Tab/Tab.vue2.js";
4
4
  import $ from "../../../../components/Feed/Feed.vue.js";
5
5
  import k from "../sections/FilterProducts.vue.js";
6
- import C from "../../../globals/components/blocks/BlockSearch.vue.js";
6
+ import C from "../../../globals/views/components/blocks/BlockSearch.vue.js";
7
7
  import w from "../blocks/CardProduct.vue.js";
8
- import { state as x } from "../../../auth/store/auth.js";
8
+ import { state as x } from "../../../auth/views/store/auth.js";
9
9
  import { actions as z, state as N } from "../../store/products.js";
10
10
  const A = { class: "pd-thin" }, B = {
11
11
  key: 0,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../middlewares/client/auth.validation.cjs"),t=[{path:"categories",name:"Categories Organization",meta:{title:{en:"Category",ru:"Категория"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Categories.vue.cjs"))},{path:"categories/add",name:"CategoryAdd",component:()=>Promise.resolve().then(()=>require("../components/pages/CategoryEdit.vue.cjs"))},{path:"categories/:category/edit",name:"CategoryEdit",beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/CategoryEdit.vue.cjs"))}];exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../auth/views/middlewares/auth.validation.cjs"),t=[{path:"categories",name:"Categories Organization",meta:{title:{en:"Category",ru:"Категория"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Categories.vue.cjs"))},{path:"categories/add",name:"CategoryAdd",component:()=>Promise.resolve().then(()=>require("../components/pages/CategoryEdit.vue.cjs"))},{path:"categories/:category/edit",name:"CategoryEdit",beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/CategoryEdit.vue.cjs"))}];exports.default=t;
@@ -1,4 +1,4 @@
1
- import { requiresAuth as e } from "../../middlewares/client/auth.validation.js";
1
+ import { requiresAuth as e } from "../../auth/views/middlewares/auth.validation.js";
2
2
  const o = [{
3
3
  path: "categories",
4
4
  name: "Categories Organization",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("../../auth/store/auth.cjs");const e=[{path:"leftovers",name:"Leftovers",meta:{title:{en:"Leftovers",ru:"Остатки"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/Leftovers.vue.cjs"))},{path:"leftovers/add",name:"LeftoverAdd",meta:{title:{en:"Leftovers Add",ru:"Управление Остатками"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/EditLeftover.vue.cjs"))},{path:"leftovers/:leftover",name:"LeftoverEdit",meta:{title:{en:"Leftovers Edit",ru:"Управление Остатками"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/EditLeftover.vue.cjs"))}];exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("../../auth/views/store/auth.cjs");const e=[{path:"leftovers",name:"Leftovers",meta:{title:{en:"Leftovers",ru:"Остатки"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/Leftovers.vue.cjs"))},{path:"leftovers/add",name:"LeftoverAdd",meta:{title:{en:"Leftovers Add",ru:"Управление Остатками"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/EditLeftover.vue.cjs"))},{path:"leftovers/:leftover",name:"LeftoverEdit",meta:{title:{en:"Leftovers Edit",ru:"Управление Остатками"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/EditLeftover.vue.cjs"))}];exports.default=e;
@@ -1,4 +1,4 @@
1
- import "../../auth/store/auth.js";
1
+ import "../../auth/views/store/auth.js";
2
2
  const t = [{
3
3
  path: "leftovers",
4
4
  name: "Leftovers",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../middlewares/client/auth.validation.cjs"),t=[{path:"products",name:"Products",meta:{title:{en:"Products",ru:"Товары"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/Products.vue.cjs"))},{path:"products/add",name:"ProductAdd",component:()=>Promise.resolve().then(()=>require("../components/pages/ProductEdit.vue.cjs"))},{path:"products/:product",name:"Product Organization",meta:{title:{en:"Product",ru:"Продукт"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Product.vue.cjs"))},{path:"products/:product/edit",name:"ProductEdit",beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/ProductEdit.vue.cjs"))}];exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../auth/views/middlewares/auth.validation.cjs"),t=[{path:"products",name:"Products",meta:{title:{en:"Products",ru:"Товары"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/Products.vue.cjs"))},{path:"products/add",name:"ProductAdd",component:()=>Promise.resolve().then(()=>require("../components/pages/ProductEdit.vue.cjs"))},{path:"products/:product",name:"Product Organization",meta:{title:{en:"Product",ru:"Продукт"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Product.vue.cjs"))},{path:"products/:product/edit",name:"ProductEdit",beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/ProductEdit.vue.cjs"))}];exports.default=t;
@@ -1,4 +1,4 @@
1
- import { requiresAuth as t } from "../../middlewares/client/auth.validation.js";
1
+ import { requiresAuth as t } from "../../auth/views/middlewares/auth.validation.js";
2
2
  const r = [{
3
3
  path: "products",
4
4
  name: "Products",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),u=require("axios"),a=require("../../globals/store/globals.cjs"),s=u.create({baseURL:process.env.API_URL,withCredentials:!0}),r=o.reactive({all:[],current:{order:1,name:"",url:"",status:"draft",subcategories:[],filters:[],localization:[]}}),c={async fetchCategories(t){return await s.get("/categories",{params:t}).then(e=>(r.all=e.data,Promise.resolve(e.data)),e=>(a.setError(e),Promise.reject(e)))},updateCategories(t){return s.post("/categories",t).then(e=>(r.all=t,Promise.resolve(t)),e=>(a.setError(e),Promise.reject(e)))},fetchCategory(t){return s.get("/categories/"+t).then(e=>(r.current=e.data,Promise.resolve(e.data)),e=>(a.setError(e),Promise.reject(e)))},addCategory(){return s.post("/categories/add",r.current).then(t=>(r.all.push(t.data),Promise.resolve(t.data)),t=>(a.setError(t),Promise.reject(t)))},updateCategory(t){return s.post("/categories/"+t,r.current).then(e=>(r.current=e.data,Promise.resolve(e.data)),e=>(a.setError(e),Promise.reject(e)))},resetCategory(){r.current={order:0,name:"",url:"",status:"draft",subcategories:[],filters:[],localization:[]}},deleteCategory(t){return s.delete("/categories/"+t).then(e=>{const n=r.all.findIndex(i=>i.url===t);r.all.splice(n,1)},e=>{a.setError(e)})}};o.watch(r,t=>{});exports.actions=c;exports.state=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),u=require("axios"),a=require("../../globals/views/store/globals.cjs"),s=u.create({baseURL:process.env.API_URL,withCredentials:!0}),r=o.reactive({all:[],current:{order:1,name:"",url:"",status:"draft",subcategories:[],filters:[],localization:[]}}),c={async fetchCategories(t){return await s.get("/categories",{params:t}).then(e=>(r.all=e.data,Promise.resolve(e.data)),e=>(a.setError(e),Promise.reject(e)))},updateCategories(t){return s.post("/categories",t).then(e=>(r.all=t,Promise.resolve(t)),e=>(a.setError(e),Promise.reject(e)))},fetchCategory(t){return s.get("/categories/"+t).then(e=>(r.current=e.data,Promise.resolve(e.data)),e=>(a.setError(e),Promise.reject(e)))},addCategory(){return s.post("/categories/add",r.current).then(t=>(r.all.push(t.data),Promise.resolve(t.data)),t=>(a.setError(t),Promise.reject(t)))},updateCategory(t){return s.post("/categories/"+t,r.current).then(e=>(r.current=e.data,Promise.resolve(e.data)),e=>(a.setError(e),Promise.reject(e)))},resetCategory(){r.current={order:0,name:"",url:"",status:"draft",subcategories:[],filters:[],localization:[]}},deleteCategory(t){return s.delete("/categories/"+t).then(e=>{const n=r.all.findIndex(i=>i.url===t);r.all.splice(n,1)},e=>{a.setError(e)})}};o.watch(r,t=>{});exports.actions=c;exports.state=r;
@@ -1,6 +1,6 @@
1
1
  import { reactive as i, watch as u } from "vue";
2
2
  import c from "axios";
3
- import { setError as a } from "../../globals/store/globals.js";
3
+ import { setError as a } from "../../globals/views/store/globals.js";
4
4
  const s = c.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = i({
5
5
  all: [],
6
6
  current: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),p=require("axios"),s=require("../../globals/store/globals.cjs"),o=p.create({baseURL:process.env.API_URL,withCredentials:!0}),e=c.reactive({all:[],current:{organization:"",type:"",comment:null,order:null,positions:[]}}),h={async read(r){try{const t=await o.get("/leftovers",{params:r});return e.all=t.data,t.data}catch(t){throw s.setError(t),t}},async fetch(r){try{const t=await o.get("/leftovers/"+r);return e.current=t.data,t.data}catch(t){throw s.setError(t),t}},async create({organization:r,type:t,order:n,positions:l,creator:i,owner:d,comment:u}){try{const a=await o.post("/leftovers",{organization:r,type:t,order:n,positions:l,creator:i,owner:d,comment:u});return e.all.push(a.data),a.data}catch(a){throw s.setError(a),a}},async update(r){try{const t=await o.post("/leftovers/"+r._id,r);return e.current=t.data,t.data}catch(t){throw s.setError(t),t}},async delete(r){try{const t=await o.delete("/leftovers/"+r);return e.all.splice(e.all.findIndex(n=>n._id==r),1),t.data}catch(t){throw s.setError(t),t}}};c.watch(e,r=>{});exports.actions=h;exports.state=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),p=require("axios"),s=require("../../globals/views/store/globals.cjs"),o=p.create({baseURL:process.env.API_URL,withCredentials:!0}),e=c.reactive({all:[],current:{organization:"",type:"",comment:null,order:null,positions:[]}}),h={async read(r){try{const t=await o.get("/leftovers",{params:r});return e.all=t.data,t.data}catch(t){throw s.setError(t),t}},async fetch(r){try{const t=await o.get("/leftovers/"+r);return e.current=t.data,t.data}catch(t){throw s.setError(t),t}},async create({organization:r,type:t,order:n,positions:l,creator:i,owner:d,comment:u}){try{const a=await o.post("/leftovers",{organization:r,type:t,order:n,positions:l,creator:i,owner:d,comment:u});return e.all.push(a.data),a.data}catch(a){throw s.setError(a),a}},async update(r){try{const t=await o.post("/leftovers/"+r._id,r);return e.current=t.data,t.data}catch(t){throw s.setError(t),t}},async delete(r){try{const t=await o.delete("/leftovers/"+r);return e.all.splice(e.all.findIndex(n=>n._id==r),1),t.data}catch(t){throw s.setError(t),t}}};c.watch(e,r=>{});exports.actions=h;exports.state=e;
@@ -1,6 +1,6 @@
1
1
  import { reactive as p, watch as h } from "vue";
2
2
  import u from "axios";
3
- import { setError as o } from "../../globals/store/globals.js";
3
+ import { setError as o } from "../../globals/views/store/globals.js";
4
4
  const s = u.create({ baseURL: process.env.API_URL, withCredentials: !0 }), e = p({
5
5
  all: [],
6
6
  current: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),o=require("axios"),s=require("../../globals/store/globals.cjs"),i=o.create({baseURL:process.env.API_URL,withCredentials:!0}),t=n.reactive({all:[],current:{recommendation:!1,category:[],status:"unpublished",information:[],images:[],files:[],image3d:!1,name:"",sale:0,price:0,localization:[],modifications:[],quantityDiscount:[],ingredients:[],description:""}}),u={async create(e,r){const a={...r,organization:e};return await i.post("/api/products/create",a).then(c=>(l(c.data,"current"),Promise.resolve(c.data)),c=>(s.setError(c),Promise.reject(c)))},async read(e={}){let r={};e._id&&(r._id=e._id),e.category&&(r.category=e.category),e.organization&&(r.organization=e.organization),e.count&&(r.count=e.count),e.categories&&(r.categories=e.categories),e.prices&&(r.prices=e.prices),e.delivery&&(r.delivery=e.delivery),e.status&&(r.status=e.status),e.search&&(r.search=e.search),r.sort="createdAt",r.skip=e.skip,r.limit=e.limit;try{const a=await i.get("/api/products/read",{params:r});return e._id?(t.current={...a.data[0]},Promise.resolve(a.data[0])):Promise.resolve(a.data)}catch(a){return s.setError(a),Promise.reject(a)}},async update(e,r){return await i.post("/api/products/"+e,r).then(a=>Promise.resolve(a.data),a=>(s.setError(a),Promise.reject(a)))},async deleteProduct(e){return await i.delete("/api/products/"+e).then(r=>Promise.resolve(r.data),r=>(s.setError(r),Promise.reject(r)))},async submitMood(e=null){return i.post("/api/product/recommended",{mood:e}).then(r=>(t.current=r.data.product,t.current.recommendation=r.data.recommendationText,Promise.resolve(r.data)),r=>(s.setError(r),Promise.reject(r)))},async fetchProducts(){return await i.get("/api/products/read").then(e=>(t.all=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},async fetchProductsPopular(){return await i.get("/api/products/popular").then(e=>(t.popular=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},async fetchProductsPublished(){return await i.get("/api/products").then(e=>{let r=e.data.filter(function(a,c){return a.status!=="unpublished"});return t.all=r,t.filtered=r.slice(),t.filteredPrice=t.filtered,t.filteredPrice.sort(function(a,c){return a[t.sort.current]>c[t.sort.current]?t.sort.ascending?1:-1:a[t.sort.current]<c[t.sort.current]?t.sort.ascending?-1:1:0}),Promise.resolve(e.data)},e=>(s.setError(e),Promise.reject(e)))},async fetchProduct(e){try{const r=await i.get("/api/products/"+e);return t.current=r.data[0],Promise.resolve(r.data[0])}catch(r){return s.setError(r),Promise.reject(r)}},async fetchProductPopular(){return await i.get("/api/products").then(e=>(t.all=e.data.slice(1,5),Promise.resolve(e.data.slice(1,5))),e=>(s.setError(e),Promise.reject(e)))}},d={resetProduct(e){t.current={recommendation:!1,category:[],status:"unpublished",information:[],images:[],files:[],image3d:!1,name:"",sale:0,price:0,localization:[],modifications:[],quantityDiscount:[],ingredients:[],description:""}}};function l(e,r){t[r]=e}const m={};n.watch(t,(e,r)=>{});exports.actions=u;exports.getters=m;exports.mutations=d;exports.state=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),o=require("axios"),s=require("../../globals/views/store/globals.cjs"),i=o.create({baseURL:process.env.API_URL,withCredentials:!0}),t=n.reactive({all:[],current:{recommendation:!1,category:[],status:"unpublished",information:[],images:[],files:[],image3d:!1,name:"",sale:0,price:0,localization:[],modifications:[],quantityDiscount:[],ingredients:[],description:""}}),u={async create(e,r){const a={...r,organization:e};return await i.post("/api/products/create",a).then(c=>(l(c.data,"current"),Promise.resolve(c.data)),c=>(s.setError(c),Promise.reject(c)))},async read(e={}){let r={};e._id&&(r._id=e._id),e.category&&(r.category=e.category),e.organization&&(r.organization=e.organization),e.count&&(r.count=e.count),e.categories&&(r.categories=e.categories),e.prices&&(r.prices=e.prices),e.delivery&&(r.delivery=e.delivery),e.status&&(r.status=e.status),e.search&&(r.search=e.search),r.sort="createdAt",r.skip=e.skip,r.limit=e.limit;try{const a=await i.get("/api/products/read",{params:r});return e._id?(t.current={...a.data[0]},Promise.resolve(a.data[0])):Promise.resolve(a.data)}catch(a){return s.setError(a),Promise.reject(a)}},async update(e,r){return await i.post("/api/products/"+e,r).then(a=>Promise.resolve(a.data),a=>(s.setError(a),Promise.reject(a)))},async deleteProduct(e){return await i.delete("/api/products/"+e).then(r=>Promise.resolve(r.data),r=>(s.setError(r),Promise.reject(r)))},async submitMood(e=null){return i.post("/api/product/recommended",{mood:e}).then(r=>(t.current=r.data.product,t.current.recommendation=r.data.recommendationText,Promise.resolve(r.data)),r=>(s.setError(r),Promise.reject(r)))},async fetchProducts(){return await i.get("/api/products/read").then(e=>(t.all=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},async fetchProductsPopular(){return await i.get("/api/products/popular").then(e=>(t.popular=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},async fetchProductsPublished(){return await i.get("/api/products").then(e=>{let r=e.data.filter(function(a,c){return a.status!=="unpublished"});return t.all=r,t.filtered=r.slice(),t.filteredPrice=t.filtered,t.filteredPrice.sort(function(a,c){return a[t.sort.current]>c[t.sort.current]?t.sort.ascending?1:-1:a[t.sort.current]<c[t.sort.current]?t.sort.ascending?-1:1:0}),Promise.resolve(e.data)},e=>(s.setError(e),Promise.reject(e)))},async fetchProduct(e){try{const r=await i.get("/api/products/"+e);return t.current=r.data[0],Promise.resolve(r.data[0])}catch(r){return s.setError(r),Promise.reject(r)}},async fetchProductPopular(){return await i.get("/api/products").then(e=>(t.all=e.data.slice(1,5),Promise.resolve(e.data.slice(1,5))),e=>(s.setError(e),Promise.reject(e)))}},d={resetProduct(e){t.current={recommendation:!1,category:[],status:"unpublished",information:[],images:[],files:[],image3d:!1,name:"",sale:0,price:0,localization:[],modifications:[],quantityDiscount:[],ingredients:[],description:""}}};function l(e,r){t[r]=e}const m={};n.watch(t,(e,r)=>{});exports.actions=u;exports.getters=m;exports.mutations=d;exports.state=t;
@@ -1,6 +1,6 @@
1
1
  import { reactive as n, watch as u } from "vue";
2
2
  import o from "axios";
3
- import { setError as i } from "../../globals/store/globals.js";
3
+ import { setError as i } from "../../globals/views/store/globals.js";
4
4
  const s = o.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = n({
5
5
  all: [],
6
6
  current: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),s=require("../../globals/store/globals.cjs"),l=require("axios"),a=l.create({baseURL:process.env.API_URL}),r=c.reactive({all:[],current:{_id:"",status:"",user:"",type:"",reason:"",target:""},form:{isOpen:!1,status:"",user:"",type:"",reason:"",target:""}}),i={async read(){try{const t=await a.get("/reports");return o.setAll(t.data),t.data}catch(t){throw s.setError(t),t}},async create(t){try{return console.log(t),(await a.post("/reports",t)).data}catch(e){throw s.setError(e),e}},async update(t){try{const e=await a.put("/reports/"+t._id,t);return o.updateReportInAll(e.data),e.data}catch(e){throw s.setError(e),e}},async remove(t){try{const e=await a.delete("/reports/"+t._id);return o.removeReportFromAll(t._id),e.data}catch(e){throw s.setError(e),e}}},o={setAll(t){r.all=t},setCurrent(t){r.current=t},updateReportInAll(t){const e=r.all.findIndex(n=>n._id===t._id);e!==-1&&(r.all[e]=t)},removeReportFromAll(t){const e=r.all.findIndex(n=>n._id===t);e!==-1&&r.all.splice(e,1)},toggleForm(){r.form.isOpen=!r.form.isOpen,r.form={status:"",user:"",type:"",reason:"",target:""}}};c.watch(r,(t,e)=>{});exports.actions=i;exports.mutations=o;exports.state=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),s=require("../../globals/views/store/globals.cjs"),l=require("axios"),a=l.create({baseURL:process.env.API_URL}),r=c.reactive({all:[],current:{_id:"",status:"",user:"",type:"",reason:"",target:""},form:{isOpen:!1,status:"",user:"",type:"",reason:"",target:""}}),i={async read(){try{const t=await a.get("/reports");return o.setAll(t.data),t.data}catch(t){throw s.setError(t),t}},async create(t){try{return console.log(t),(await a.post("/reports",t)).data}catch(e){throw s.setError(e),e}},async update(t){try{const e=await a.put("/reports/"+t._id,t);return o.updateReportInAll(e.data),e.data}catch(e){throw s.setError(e),e}},async remove(t){try{const e=await a.delete("/reports/"+t._id);return o.removeReportFromAll(t._id),e.data}catch(e){throw s.setError(e),e}}},o={setAll(t){r.all=t},setCurrent(t){r.current=t},updateReportInAll(t){const e=r.all.findIndex(n=>n._id===t._id);e!==-1&&(r.all[e]=t)},removeReportFromAll(t){const e=r.all.findIndex(n=>n._id===t);e!==-1&&r.all.splice(e,1)},toggleForm(){r.form.isOpen=!r.form.isOpen,r.form={status:"",user:"",type:"",reason:"",target:""}}};c.watch(r,(t,e)=>{});exports.actions=i;exports.mutations=o;exports.state=r;
@@ -1,5 +1,5 @@
1
1
  import { reactive as c, watch as l } from "vue";
2
- import { setError as a } from "../../globals/store/globals.js";
2
+ import { setError as a } from "../../globals/views/store/globals.js";
3
3
  import i from "axios";
4
4
  const o = i.create({ baseURL: process.env.API_URL }), r = c({
5
5
  all: [],
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("vue-router"),v=require("vue-i18n");;/* empty css */;/* empty css */require("../../../globals/localization/vue-i18n.cjs");;/* empty css */;/* empty css */const m=require("../../../globals/store/globals.cjs"),f=require("../../../products/store/categories.cjs"),g=require("../../../marketplace/store/marketplace.cjs"),h={class:"w-100 h-100"},k={class:"h-100 w-100 flex-nowrap flex-column flex gap-thin"},_={class:"pos-absolute z-index-2 w-100"},w={class:"bg-black-transp-25 t-white pd-small w-100 bg-blur-big mn-l-auto mn-r-auto t-center"},b=e.createElementVNode("span",{class:""},"Weed in ",-1),B={key:0},q={key:1},E={key:2},C={__name:"Spots",setup(O){const s=y.useRoute(),n=y.useRouter(),o=e.ref({city:null,state:null,country:null});function u(t){return t.replace(/-/g," ").replace(/\b\w/g,r=>r.toUpperCase())}e.onMounted(async()=>{if(s.params){let t={country:u(s.params.country),state:u(s.params.state),city:u(s.params.city)};o.value=t}if(s.query){const t=s.query,r={categories:t.categories?t.categories.split(","):[],prices:t.prices?t.prices.split(","):[],delivery:t.delivery?t.delivery.split(","):[]};g.state.filter.selected=r}await f.actions.fetchCategories()}),e.watch(()=>g.state.filter.selected,(t,r)=>{const a={...s.query};Object.keys(r).forEach(l=>{a[l]&&delete a[l]});const i=Object.fromEntries(Object.entries(t).filter(([l,c])=>Array.isArray(c)&&c.length>0).map(([l,c])=>[l,c.join(",")]));Object.assign(a,i),n.push({query:a})},{deep:!0});function p(t){return t.toLowerCase().replace(/ /g,"-").replace(/[^a-z0-9-]/g,"")}e.watch(()=>m.state.position,t=>{const r={...n.currentRoute.value};let a={country:p(t.country),state:p(t.state),city:p(t.city)};r.params=a,n.replace(r)},{deep:!0});const d={locale:"en",messages:{en:{meta:{title:"Marketplace – Shop Our Wide Selection of Quality Weed for Delivery",description:"Browse our marketplace of top-grade weed strains and choose from a variety of delivery options. Order now and have your favorite strains delivered straight to your door. Safe, fast, and reliable."},breadcrumbs:{home:"Home",store:"Marketplace"},categoriesTitle:"Category",categories:[],sort:{price:"By price",newest:"By newest",popularity:"By popularity"},filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{meta:{title:"Маркетплейс – Выбирайте из нашего ассортимента качественной травки для доставки",description:"Маркетплейс – Изучите наши продукты высокого качества и выбирайте из различных вариантов доставки. Закажите сейчас и получите свои любимые сорта на дом. Безопасно, быстро и надежно."},breadcrumbs:{home:"Главная",store:"Маркетплейс"},categoriesTitle:"Категория",categories:[],sort:{price:"По цене",newest:"По новизне",popularity:"По популярности"},filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};return f.state.all.forEach(t=>{t.localization.forEach(r=>{d.messages[r.locale].categories.push(r.text)})}),v.useI18n(d),(t,r)=>{const a=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",k,[e.createElementVNode("div",_,[e.createElementVNode("h2",w,[b,o.value.city||o.value.state||o.value.country?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[0]||(r[0]=i=>{m.state.isOpenLocationPopup=!0}),class:"t-semi t-main"},[o.value.city?(e.openBlock(),e.createElementBlock("span",B,e.toDisplayString(o.value.city)+", ",1)):e.createCommentVNode("",!0),o.value.state?(e.openBlock(),e.createElementBlock("span",q,e.toDisplayString(o.value.state)+", ",1)):e.createCommentVNode("",!0),o.value.country?(e.openBlock(),e.createElementBlock("span",E,e.toDisplayString(o.value.country),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",{key:1,onClick:r[1]||(r[1]=i=>{m.state.isOpenLocationPopup=!0}),class:"t-semi t-main"}," The World "))])]),e.createVNode(a,null,{default:e.withCtx(({Component:i,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{ref:"page",key:l.path,localPosition:o.value,apiKey:t.GOOGLE_MAPS_API_KEY,locale:t.$i18n.locale,class:""},null,8,["localPosition","apiKey","locale"]))]),_:2},1024)]),_:1})])])}}};exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("vue-router"),v=require("vue-i18n");;/* empty css */;/* empty css */;/* empty css */;/* empty css */const m=require("../../../globals/views/store/globals.cjs"),f=require("../../../products/store/categories.cjs"),g=require("../../../marketplace/store/marketplace.cjs"),h={class:"w-100 h-100"},k={class:"h-100 w-100 flex-nowrap flex-column flex gap-thin"},_={class:"pos-absolute z-index-2 w-100"},w={class:"bg-black-transp-25 t-white pd-small w-100 bg-blur-big mn-l-auto mn-r-auto t-center"},b=e.createElementVNode("span",{class:""},"Weed in ",-1),B={key:0},E={key:1},q={key:2},C={__name:"Spots",setup(O){const s=y.useRoute(),n=y.useRouter(),o=e.ref({city:null,state:null,country:null});function u(t){return t.replace(/-/g," ").replace(/\b\w/g,r=>r.toUpperCase())}e.onMounted(async()=>{if(s.params){let t={country:u(s.params.country),state:u(s.params.state),city:u(s.params.city)};o.value=t}if(s.query){const t=s.query,r={categories:t.categories?t.categories.split(","):[],prices:t.prices?t.prices.split(","):[],delivery:t.delivery?t.delivery.split(","):[]};g.state.filter.selected=r}await f.actions.fetchCategories()}),e.watch(()=>g.state.filter.selected,(t,r)=>{const a={...s.query};Object.keys(r).forEach(l=>{a[l]&&delete a[l]});const i=Object.fromEntries(Object.entries(t).filter(([l,c])=>Array.isArray(c)&&c.length>0).map(([l,c])=>[l,c.join(",")]));Object.assign(a,i),n.push({query:a})},{deep:!0});function p(t){return t.toLowerCase().replace(/ /g,"-").replace(/[^a-z0-9-]/g,"")}e.watch(()=>m.state.position,t=>{const r={...n.currentRoute.value};let a={country:p(t.country),state:p(t.state),city:p(t.city)};r.params=a,n.replace(r)},{deep:!0});const d={locale:"en",messages:{en:{meta:{title:"Marketplace – Shop Our Wide Selection of Quality Weed for Delivery",description:"Browse our marketplace of top-grade weed strains and choose from a variety of delivery options. Order now and have your favorite strains delivered straight to your door. Safe, fast, and reliable."},breadcrumbs:{home:"Home",store:"Marketplace"},categoriesTitle:"Category",categories:[],sort:{price:"By price",newest:"By newest",popularity:"By popularity"},filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{meta:{title:"Маркетплейс – Выбирайте из нашего ассортимента качественной травки для доставки",description:"Маркетплейс – Изучите наши продукты высокого качества и выбирайте из различных вариантов доставки. Закажите сейчас и получите свои любимые сорта на дом. Безопасно, быстро и надежно."},breadcrumbs:{home:"Главная",store:"Маркетплейс"},categoriesTitle:"Категория",categories:[],sort:{price:"По цене",newest:"По новизне",popularity:"По популярности"},filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};return f.state.all.forEach(t=>{t.localization.forEach(r=>{d.messages[r.locale].categories.push(r.text)})}),v.useI18n(d),(t,r)=>{const a=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",k,[e.createElementVNode("div",_,[e.createElementVNode("h2",w,[b,o.value.city||o.value.state||o.value.country?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[0]||(r[0]=i=>{m.state.isOpenLocationPopup=!0}),class:"t-semi t-main"},[o.value.city?(e.openBlock(),e.createElementBlock("span",B,e.toDisplayString(o.value.city)+", ",1)):e.createCommentVNode("",!0),o.value.state?(e.openBlock(),e.createElementBlock("span",E,e.toDisplayString(o.value.state)+", ",1)):e.createCommentVNode("",!0),o.value.country?(e.openBlock(),e.createElementBlock("span",q,e.toDisplayString(o.value.country),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",{key:1,onClick:r[1]||(r[1]=i=>{m.state.isOpenLocationPopup=!0}),class:"t-semi t-main"}," The World "))])]),e.createVNode(a,null,{default:e.withCtx(({Component:i,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{ref:"page",key:l.path,localPosition:o.value,apiKey:t.GOOGLE_MAPS_API_KEY,locale:t.$i18n.locale,class:""},null,8,["localPosition","apiKey","locale"]))]),_:2},1024)]),_:1})])])}}};exports.default=C;
@@ -3,13 +3,12 @@ import { useRoute as B, useRouter as S } from "vue-router";
3
3
  import { useI18n as j } from "vue-i18n";
4
4
  /* empty css */
5
5
  /* empty css */
6
- import "../../../globals/localization/vue-i18n.js";
7
6
  /* empty css */
8
7
  /* empty css */
9
- import { state as h } from "../../../globals/store/globals.js";
8
+ import { state as h } from "../../../globals/views/store/globals.js";
10
9
  import { actions as q, state as R } from "../../../products/store/categories.js";
11
10
  import { state as b } from "../../../marketplace/store/marketplace.js";
12
- const T = { class: "w-100 h-100" }, V = { class: "h-100 w-100 flex-nowrap flex-column flex gap-thin" }, z = { class: "pos-absolute z-index-2 w-100" }, A = { class: "bg-black-transp-25 t-white pd-small w-100 bg-blur-big mn-l-auto mn-r-auto t-center" }, F = /* @__PURE__ */ p("span", { class: "" }, "Weed in ", -1), L = { key: 0 }, M = { key: 1 }, W = { key: 2 }, Z = {
11
+ const T = { class: "w-100 h-100" }, V = { class: "h-100 w-100 flex-nowrap flex-column flex gap-thin" }, z = { class: "pos-absolute z-index-2 w-100" }, A = { class: "bg-black-transp-25 t-white pd-small w-100 bg-blur-big mn-l-auto mn-r-auto t-center" }, F = /* @__PURE__ */ p("span", { class: "" }, "Weed in ", -1), L = { key: 0 }, M = { key: 1 }, W = { key: 2 }, X = {
13
12
  __name: "Spots",
14
13
  setup(D) {
15
14
  const a = B(), u = S(), r = k({
@@ -177,5 +176,5 @@ const T = { class: "w-100 h-100" }, V = { class: "h-100 w-100 flex-nowrap flex-c
177
176
  }
178
177
  };
179
178
  export {
180
- Z as default
179
+ X as default
181
180
  };