@ozdao/prometheus-framework 0.2.251 → 0.2.253

Sign up to get free protection for your applications and to get access to all the features.
Files changed (450) hide show
  1. package/dist/auth.server.js +298 -14
  2. package/dist/auth.server.mjs +298 -14
  3. package/dist/builder.js +4 -4
  4. package/dist/builder.mjs +4 -4
  5. package/dist/community.server.js +38 -21
  6. package/dist/community.server.mjs +38 -21
  7. package/dist/events.server.js +38 -18
  8. package/dist/events.server.mjs +38 -17
  9. package/dist/gallery.server.js +17 -4
  10. package/dist/gallery.server.mjs +17 -4
  11. package/dist/organizations.server.js +43 -26
  12. package/dist/organizations.server.mjs +43 -26
  13. package/dist/products.server.js +49 -23
  14. package/dist/products.server.mjs +49 -22
  15. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
  17. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  18. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
  19. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
  21. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +15 -3
  24. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs.map +1 -1
  25. package/dist/prometheus-framework/src/modules/auth/auth.client.js +16 -4
  26. package/dist/prometheus-framework/src/modules/auth/auth.client.js.map +1 -1
  27. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.cjs +95 -0
  28. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.cjs.map +1 -0
  29. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.js +95 -0
  30. package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.js.map +1 -0
  31. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
  32. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
  33. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
  35. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
  37. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs +284 -0
  38. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -0
  39. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js +284 -0
  40. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -0
  41. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.cjs +2 -0
  42. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.cjs.map +1 -0
  43. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.js +2 -0
  44. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.js.map +1 -0
  45. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +85 -0
  46. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs.map +1 -0
  47. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +85 -0
  48. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js.map +1 -0
  49. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +176 -0
  50. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs.map +1 -0
  51. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js +176 -0
  52. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -0
  53. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs +2 -0
  54. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs.map +1 -0
  55. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.js +2 -0
  56. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.js.map +1 -0
  57. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
  59. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
  61. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
  63. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs +114 -0
  64. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs.map +1 -0
  65. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.js +114 -0
  66. package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.js.map +1 -0
  67. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.cjs +72 -0
  68. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.cjs.map +1 -0
  69. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.js +72 -0
  70. package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.js.map +1 -0
  71. package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs +97 -0
  72. package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs.map +1 -0
  73. package/dist/prometheus-framework/src/modules/auth/views/router/users.js +97 -0
  74. package/dist/prometheus-framework/src/modules/auth/views/router/users.js.map +1 -0
  75. package/dist/prometheus-framework/src/modules/auth/views/store/users.cjs +95 -0
  76. package/dist/prometheus-framework/src/modules/auth/views/store/users.cjs.map +1 -0
  77. package/dist/prometheus-framework/src/modules/auth/views/store/users.js +95 -0
  78. package/dist/prometheus-framework/src/modules/auth/views/store/users.js.map +1 -0
  79. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs +32 -2
  80. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs.map +1 -1
  81. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js +32 -2
  82. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js.map +1 -1
  83. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +2 -2
  84. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs.map +1 -1
  85. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +2 -2
  86. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js.map +1 -1
  87. package/dist/prometheus-framework/src/modules/community/community.client.cjs +42 -7
  88. package/dist/prometheus-framework/src/modules/community/community.client.cjs.map +1 -1
  89. package/dist/prometheus-framework/src/modules/community/community.client.js +59 -24
  90. package/dist/prometheus-framework/src/modules/community/community.client.js.map +1 -1
  91. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +2 -2
  94. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +2 -2
  95. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +3 -3
  96. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +3 -3
  97. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
  98. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  99. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  101. package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs +68 -70
  102. package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs.map +1 -1
  103. package/dist/prometheus-framework/src/modules/community/router/blogposts.js +68 -70
  104. package/dist/prometheus-framework/src/modules/community/router/blogposts.js.map +1 -1
  105. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
  110. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  111. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
  112. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  113. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
  115. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
  117. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
  119. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
  121. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
  122. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  123. package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs +26 -3
  124. package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs.map +1 -1
  125. package/dist/prometheus-framework/src/modules/gallery/gallery.client.js +27 -4
  126. package/dist/prometheus-framework/src/modules/gallery/gallery.client.js.map +1 -1
  127. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.cjs +2 -2
  128. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.cjs.map +1 -1
  129. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.js +2 -2
  130. package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.js.map +1 -1
  131. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs.map +1 -1
  132. package/dist/prometheus-framework/src/modules/globals/globals.client.js.map +1 -1
  133. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
  134. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
  135. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -2
  136. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +2 -2
  137. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +2 -2
  138. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +2 -2
  139. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
  141. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +2 -2
  142. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  143. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  145. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs.map +1 -1
  147. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  148. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
  149. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +4 -4
  150. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs.map +1 -1
  151. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +4 -4
  152. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
  153. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +4 -4
  154. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs.map +1 -1
  155. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +4 -4
  156. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js.map +1 -1
  157. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  159. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  161. package/dist/prometheus-framework/src/modules/orders/orders.client.cjs +4 -1
  162. package/dist/prometheus-framework/src/modules/orders/orders.client.cjs.map +1 -1
  163. package/dist/prometheus-framework/src/modules/orders/orders.client.js +4 -1
  164. package/dist/prometheus-framework/src/modules/orders/orders.client.js.map +1 -1
  165. package/dist/prometheus-framework/src/modules/orders/store/testimonials.cjs +63 -0
  166. package/dist/prometheus-framework/src/modules/orders/store/testimonials.cjs.map +1 -0
  167. package/dist/prometheus-framework/src/modules/orders/store/testimonials.js +63 -0
  168. package/dist/prometheus-framework/src/modules/orders/store/testimonials.js.map +1 -0
  169. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +2 -2
  170. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs.map +1 -1
  171. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +2 -2
  172. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js.map +1 -1
  173. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs.map +1 -1
  175. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  176. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
  177. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  179. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs.map +1 -1
  181. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
  182. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
  183. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +5 -5
  184. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs.map +1 -1
  185. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +5 -5
  186. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +1 -1
  187. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +2 -2
  188. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs.map +1 -1
  189. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  190. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
  191. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
  192. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
  193. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +3 -3
  194. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  195. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +3 -3
  196. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  197. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
  199. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +4 -4
  200. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs.map +1 -1
  201. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +4 -4
  202. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js.map +1 -1
  203. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +3 -3
  204. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  205. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +60 -11
  206. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs.map +1 -1
  207. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +95 -46
  208. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js.map +1 -1
  209. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +6 -10
  210. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
  211. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +8 -12
  212. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
  213. package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +786 -773
  214. package/dist/prometheus-framework/src/modules/pages/pages.client.js +786 -773
  215. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
  216. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
  217. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
  219. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +2 -2
  220. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
  221. package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs +5 -7
  222. package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs.map +1 -1
  223. package/dist/prometheus-framework/src/modules/pages/views/store/pages.js +1 -3
  224. package/dist/prometheus-framework/src/modules/pages/views/store/pages.js.map +1 -1
  225. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  227. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
  229. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  231. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs +178 -0
  232. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs.map +1 -0
  233. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js +178 -0
  234. package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js.map +1 -0
  235. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs +62 -0
  236. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs.map +1 -0
  237. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js +62 -0
  238. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js.map +1 -0
  239. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
  242. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  243. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +2 -2
  244. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  245. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +2 -2
  246. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  247. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +3 -3
  248. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -3
  249. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +2 -2
  250. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
  251. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +2 -2
  252. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
  253. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +3 -3
  254. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  255. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs.map +1 -1
  257. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  258. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
  259. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs +156 -0
  260. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs.map +1 -0
  261. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js +157 -0
  262. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js.map +1 -0
  263. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs.map +1 -1
  265. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +1 -1
  266. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js.map +1 -1
  267. package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.cjs +128 -0
  268. package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.cjs.map +1 -0
  269. package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.js +128 -0
  270. package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.js.map +1 -0
  271. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +2 -2
  272. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs.map +1 -1
  273. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +2 -2
  274. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js.map +1 -1
  275. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  277. package/dist/prometheus-framework/src/modules/products/products.client.cjs +74 -7
  278. package/dist/prometheus-framework/src/modules/products/products.client.cjs.map +1 -1
  279. package/dist/prometheus-framework/src/modules/products/products.client.js +114 -47
  280. package/dist/prometheus-framework/src/modules/products/products.client.js.map +1 -1
  281. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.cjs +46 -0
  282. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.cjs.map +1 -0
  283. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.js +46 -0
  284. package/dist/prometheus-framework/src/modules/products/router/marketplace.router.js.map +1 -0
  285. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +79 -36
  286. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs.map +1 -1
  287. package/dist/prometheus-framework/src/modules/products/router/products.router.js +78 -35
  288. package/dist/prometheus-framework/src/modules/products/router/products.router.js.map +1 -1
  289. package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs +57 -0
  290. package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs.map +1 -0
  291. package/dist/prometheus-framework/src/modules/products/store/marketplace.js +57 -0
  292. package/dist/prometheus-framework/src/modules/products/store/marketplace.js.map +1 -0
  293. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +3 -3
  294. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  295. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  297. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs.map +1 -1
  299. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  300. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js.map +1 -1
  301. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +3 -3
  302. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs.map +1 -1
  303. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +3 -3
  304. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js.map +1 -1
  305. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs +2 -2
  306. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs.map +1 -1
  307. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js +2 -2
  308. package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js.map +1 -1
  309. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
  310. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
  311. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +2 -2
  312. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  313. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +1 -1
  315. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
  317. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +3 -3
  318. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
  319. package/package.json +1 -1
  320. package/src/builder/webpack/webpack.config.client.js +2 -2
  321. package/src/builder/webpack/webpack.config.server.js +1 -1
  322. package/src/builder/webpack/webpack.config.spa.js +1 -1
  323. package/src/builder/webpack/webpack.config.ssr.js +1 -1
  324. package/src/modules/auth/auth.client.js +16 -3
  325. package/src/modules/auth/auth.server.js +22 -1
  326. package/src/modules/{users → auth/controllers}/routes/users.routes.js +1 -1
  327. package/src/modules/auth/controllers/services/auth.service.js +0 -1
  328. package/src/modules/{users → auth/views}/components/pages/Profile.vue +1 -1
  329. package/src/modules/{users → auth/views}/components/pages/ProfileEdit.vue +2 -2
  330. package/src/modules/{users → auth/views}/components/sections/FeaturedUsers.vue +2 -2
  331. package/src/modules/auth/views/router/users.js +79 -0
  332. package/src/modules/backoffice/backoffice.client.js +53 -11
  333. package/src/modules/backoffice/router/backoffice.js +29 -2
  334. package/src/modules/community/community.client.js +56 -10
  335. package/src/modules/community/community.server.js +35 -14
  336. package/src/modules/community/models/comment.model.js +7 -7
  337. package/src/modules/community/models/reaction.model.js +5 -5
  338. package/src/modules/community/router/blogposts.js +55 -57
  339. package/src/modules/events/events.server.js +37 -16
  340. package/src/modules/events/models/ticket.model.js +6 -6
  341. package/src/modules/gallery/gallery.client.js +44 -8
  342. package/src/modules/gallery/gallery.server.js +28 -9
  343. package/src/modules/gallery/router/gallery.router.js +2 -2
  344. package/src/modules/globals/globals.client.js +15 -14
  345. package/src/modules/governance/controllers/factories/initiatives.controller.js +94 -0
  346. package/src/modules/governance/controllers/factories/tasks.controller.js +94 -0
  347. package/src/modules/governance/controllers/factories/votes.controller.js +68 -0
  348. package/src/modules/governance/controllers/factories/votings.controller.js +112 -0
  349. package/src/modules/governance/controllers/routes/initiatives.routes.js +13 -0
  350. package/src/modules/governance/controllers/routes/tasks.routes.js +13 -0
  351. package/src/modules/governance/controllers/routes/votes.routes.js +11 -0
  352. package/src/modules/governance/controllers/routes/votings.routes.js +14 -0
  353. package/src/modules/governance/models/initiative.model.js +25 -0
  354. package/src/modules/governance/models/task.model.js +21 -0
  355. package/src/modules/governance/models/vote.model.js +20 -0
  356. package/src/modules/governance/models/voting.model.js +22 -0
  357. package/src/modules/governance/views/components/blocks/CardInitiativeItem.vue +18 -0
  358. package/src/modules/governance/views/components/blocks/CardTaskItem.vue +19 -0
  359. package/src/modules/governance/views/components/blocks/CardVotingItem.vue +18 -0
  360. package/src/modules/governance/views/components/pages/Initiative.vue +22 -0
  361. package/src/modules/governance/views/components/pages/InitiativeCreate.vue +24 -0
  362. package/src/modules/governance/views/components/pages/Initiatives.vue +19 -0
  363. package/src/modules/governance/views/components/pages/Task.vue +23 -0
  364. package/src/modules/governance/views/components/pages/TaskCreate.vue +25 -0
  365. package/src/modules/governance/views/components/pages/Tasks.vue +19 -0
  366. package/src/modules/governance/views/components/pages/Voting.vue +30 -0
  367. package/src/modules/governance/views/components/pages/VotingCreate.vue +25 -0
  368. package/src/modules/governance/views/components/pages/Votings.vue +19 -0
  369. package/src/modules/governance/views/components/partials/RewardDisplay.vue +19 -0
  370. package/src/modules/governance/views/components/partials/VoteDisplay.vue +21 -0
  371. package/src/modules/governance/views/components/partials/VotingResult.vue +21 -0
  372. package/src/modules/governance/views/components/sections/FormInitiativeDetails.vue +37 -0
  373. package/src/modules/governance/views/components/sections/FormTaskDetails.vue +41 -0
  374. package/src/modules/governance/views/components/sections/FormVotingDetails.vue +37 -0
  375. package/src/modules/governance/views/components/sections/VoteForm.vue +29 -0
  376. package/src/modules/governance/views/store/initiatives.js +102 -0
  377. package/src/modules/governance/views/store/tasks.js +104 -0
  378. package/src/modules/governance/views/store/votes.js +115 -0
  379. package/src/modules/governance/views/store/votings.js +81 -0
  380. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  381. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +1 -1
  382. package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
  383. package/src/modules/orders/orders.client.js +4 -1
  384. package/src/modules/orders/orders.server.js +1 -0
  385. package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -1
  386. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  387. package/src/modules/organizations/components/pages/Department.vue +1 -1
  388. package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
  389. package/src/modules/organizations/components/pages/Members.vue +1 -1
  390. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  391. package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
  392. package/src/modules/organizations/controllers/organizations.controller.js +0 -2
  393. package/src/modules/organizations/models/department.model.js +7 -7
  394. package/src/modules/organizations/models/membership.model.js +5 -5
  395. package/src/modules/organizations/organizations.client.js +71 -16
  396. package/src/modules/organizations/organizations.server.js +43 -18
  397. package/src/modules/organizations/router/organizations.js +6 -13
  398. package/src/modules/pages/views/store/pages.js +1 -3
  399. package/src/modules/{marketplace → products}/components/layouts/Marketplace.vue +19 -19
  400. package/src/modules/{marketplace → products}/components/pages/Catalog.vue +0 -2
  401. package/src/modules/products/components/pages/Products.vue +2 -2
  402. package/src/modules/products/components/sections/FilterProducts.vue +1 -1
  403. package/src/modules/{marketplace → products}/components/sections/Filters.vue +12 -15
  404. package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
  405. package/src/modules/products/components/sections/MenuSection.vue +8 -9
  406. package/src/modules/products/components/sections/PopularProducts.vue +1 -1
  407. package/src/modules/products/models/category.model.js +3 -3
  408. package/src/modules/products/models/product.model.js +7 -7
  409. package/src/modules/products/products.client.js +95 -27
  410. package/src/modules/products/products.server.js +47 -16
  411. package/src/modules/products/router/marketplace.router.js +38 -0
  412. package/src/modules/products/router/products.router.js +72 -32
  413. package/src/modules/spots/components/layouts/Spots.vue +1 -1
  414. package/src/modules/spots/components/pages/Map.vue +1 -1
  415. package/src/modules/spots/components/pages/Spot.vue +1 -1
  416. package/src/modules/backoffice/router/admin.js +0 -51
  417. package/src/modules/landing/components/pages/404.vue +0 -3
  418. package/src/modules/landing/components/pages/Farming.vue +0 -226
  419. package/src/modules/landing/components/pages/Governance.vue +0 -144
  420. package/src/modules/landing/components/pages/Home.vue +0 -51
  421. package/src/modules/landing/components/pages/Hotel.vue +0 -43
  422. package/src/modules/landing/router/landing.js +0 -39
  423. package/src/modules/legal/components/pages/Legal.vue +0 -62
  424. package/src/modules/legal/components/pages/legal/Cookies.vue +0 -370
  425. package/src/modules/legal/components/pages/legal/EULA.vue +0 -2145
  426. package/src/modules/legal/components/pages/legal/Privacy.vue +0 -4284
  427. package/src/modules/legal/components/pages/legal/Terms.vue +0 -1283
  428. package/src/modules/legal/legal.client.js +0 -18
  429. package/src/modules/legal/router/legal.js +0 -59
  430. package/src/modules/marketplace/router/marketplace.js +0 -55
  431. package/src/modules/users/router/users.js +0 -90
  432. package/src/modules/users/users.client.js +0 -22
  433. package/src/modules/users/users.server.js +0 -13
  434. /package/src/modules/{users → auth/controllers}/middlewares/visitor.logger.js +0 -0
  435. /package/src/modules/{users/controllers/users.controller.js → auth/controllers/services/users.service.js} +0 -0
  436. /package/src/modules/{users → auth}/models/request.model.js +0 -0
  437. /package/src/modules/{users → auth}/models/user.model.js +0 -0
  438. /package/src/modules/{users → auth}/models/visitor.model.js +0 -0
  439. /package/src/modules/{users → auth/views}/components/blocks/CardUser.vue +0 -0
  440. /package/src/modules/{users → auth/views}/components/pages/ProfileBlogposts.vue +0 -0
  441. /package/src/modules/{users → auth/views}/components/pages/ProfileComments.vue +0 -0
  442. /package/src/modules/{users → auth/views}/components/pages/ProfileLikes.vue +0 -0
  443. /package/src/modules/{users → auth/views}/components/sections/ProfileCompletion.vue +0 -0
  444. /package/src/modules/{users → auth/views}/router/account.js +0 -0
  445. /package/src/modules/{users → auth/views}/store/users.js +0 -0
  446. /package/src/modules/{projects/controller → governance/controllers/factories}/projects.controller.js +0 -0
  447. /package/src/modules/{projects → governance/controllers}/routes/projects.routes.js +0 -0
  448. /package/src/modules/{projects → governance}/models/project.model.js +0 -0
  449. /package/src/modules/{projects → governance/views}/store/projects.js +0 -0
  450. /package/src/modules/{marketplace → products}/store/marketplace.js +0 -0
@@ -3,8 +3,8 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const vue = require("vue");
4
4
  const IconEdit = require("../../../../icons/navigation/IconEdit.vue.cjs");
5
5
  const IconAdd = require("../../../../icons/navigation/IconAdd.vue.cjs");
6
- ;/* empty css */
7
- ;/* empty css */
6
+ ;/* empty css */
7
+ ;/* empty css */
8
8
  ;/* empty css */
9
9
  const vueRouter = require("vue-router");
10
10
  ;/* empty css */
@@ -1,8 +1,8 @@
1
1
  import { ref, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, createVNode, unref, withCtx, createTextVNode, toDisplayString, createBlock, createCommentVNode, Fragment, renderList } from "vue";
2
2
  import _sfc_main$1 from "../../../../icons/navigation/IconEdit.vue.js";
3
3
  import _sfc_main$2 from "../../../../icons/navigation/IconAdd.vue.js";
4
- /* empty css */
5
- /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
6
  /* empty css */
7
7
  import { useRouter } from "vue-router";
8
8
  /* empty css */
@@ -4,7 +4,7 @@ const vue = require("vue");
4
4
  const vueRouter = require("vue-router");
5
5
  const mixins = require("../../../../globals/views/mixins/mixins.cjs");
6
6
  const pages = require("../../store/pages.cjs");
7
- const Button = require("../../../../../components/Button/Button.vue.cjs");
7
+ const Button = require("../../../../../components/Button/Button.vue2.cjs");
8
8
  ;/* empty css */
9
9
  ;/* empty css */
10
10
  ;/* empty css */
@@ -2,7 +2,7 @@ import { ref, onMounted, openBlock, createElementBlock, createVNode, createComme
2
2
  import { useRoute, useRouter } from "vue-router";
3
3
  import { useGlobalMixins } from "../../../../globals/views/mixins/mixins.js";
4
4
  import { actions, state } from "../../store/pages.js";
5
- import _sfc_main$2 from "../../../../../components/Button/Button.vue.js";
5
+ import _sfc_main$2 from "../../../../../components/Button/Button.vue2.js";
6
6
  /* empty css */
7
7
  /* empty css */
8
8
  /* empty css */
@@ -3,8 +3,8 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const vue = require("vue");
4
4
  const vueRouter = require("vue-router");
5
5
  const Block = require("../../../../../components/Block/Block.vue.cjs");
6
- const Popup = require("../../../../../components/Popup/Popup.vue.cjs");
7
- const Button = require("../../../../../components/Button/Button.vue.cjs");
6
+ const Popup = require("../../../../../components/Popup/Popup.vue2.cjs");
7
+ const Button = require("../../../../../components/Button/Button.vue2.cjs");
8
8
  const Constructor = require("../../../../constructor/components/sections/Constructor.vue.cjs");
9
9
  const CardPage = require("../blocks/CardPage.vue.cjs");
10
10
  const pages = require("../../store/pages.cjs");
@@ -1,8 +1,8 @@
1
1
  import { computed, ref, onMounted, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createVNode, createElementVNode, createTextVNode, createCommentVNode } from "vue";
2
2
  import { useRoute, useRouter } from "vue-router";
3
3
  import _sfc_main$1 from "../../../../../components/Block/Block.vue.js";
4
- import _sfc_main$3 from "../../../../../components/Popup/Popup.vue.js";
5
- import _sfc_main$5 from "../../../../../components/Button/Button.vue.js";
4
+ import _sfc_main$3 from "../../../../../components/Popup/Popup.vue2.js";
5
+ import _sfc_main$5 from "../../../../../components/Button/Button.vue2.js";
6
6
  import _sfc_main$4 from "../../../../constructor/components/sections/Constructor.vue.js";
7
7
  import _sfc_main$2 from "../blocks/CardPage.vue.js";
8
8
  import { actions } from "../../store/pages.js";
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const vue = require("vue");
4
- const axios = require("axios");
5
4
  const globals = require("../../../globals/views/store/globals.cjs");
6
- const clientUrl = process.env.API_URL;
7
- const $axios = axios.create({ baseURL: clientUrl });
5
+ const axiosInstance = require("../../../globals/views/utils/axios-instance.cjs");
8
6
  const state = vue.reactive({
9
7
  all: [],
10
8
  current: {
@@ -18,7 +16,7 @@ const state = vue.reactive({
18
16
  const actions = {
19
17
  async create(page) {
20
18
  try {
21
- const response = await $axios.post(`/api/pages/create`, page);
19
+ const response = await axiosInstance.default.post(`/api/pages/create`, page);
22
20
  return response.data;
23
21
  } catch (error) {
24
22
  globals.setError(error);
@@ -27,7 +25,7 @@ const actions = {
27
25
  },
28
26
  async read(options = {}) {
29
27
  try {
30
- const response = await $axios.get("/api/pages/read", { params: options });
28
+ const response = await axiosInstance.default.get("/api/pages/read", { params: options });
31
29
  return response.data;
32
30
  } catch (error) {
33
31
  globals.setError(error);
@@ -36,7 +34,7 @@ const actions = {
36
34
  },
37
35
  async update(page) {
38
36
  try {
39
- const response = await $axios.put(`/api/pages/update`, page);
37
+ const response = await axiosInstance.default.put(`/api/pages/update`, page);
40
38
  state.current = response.data;
41
39
  return response.data;
42
40
  } catch (error) {
@@ -46,7 +44,7 @@ const actions = {
46
44
  },
47
45
  async delete(page) {
48
46
  try {
49
- const response = await $axios.delete(`/api/pages/delete`, {
47
+ const response = await axiosInstance.default.delete(`/api/pages/delete`, {
50
48
  data: page
51
49
  });
52
50
  state.all.splice(state.all.findIndex((p) => p._id == page), 1);
@@ -1 +1 @@
1
- {"version":3,"file":"pages.cjs","sources":["../../../../../../../src/modules/pages/views/store/pages.js"],"sourcesContent":["import { reactive, watch } from \"vue\";\nimport axios from \"axios\";\nimport { setError } from \"@pf/src/modules/globals/views/store/globals\";\n\nconst clientUrl = process.env.API_URL;\nconst $axios = axios.create({ baseURL: clientUrl });\n\nconst state = reactive({\n all: [],\n current: {\n name: \"\",\n localization: [],\n groups: [],\n url: \"\",\n content: [],\n },\n});\n\nconst actions = {\n async create(page) {\n try {\n const response = await $axios.post(`/api/pages/create`, page);\n\n return response.data;\n } catch (error) {\n setError(error);\n throw error;\n }\n },\n\n\n async read(options = {}) {\n try {\n const response = await $axios.get('/api/pages/read', { params: options });\n\n return response.data;\n } catch (error) {\n setError(error);\n throw error;\n }\n },\n\n\n async update(page) {\n try {\n const response = await $axios.put(`/api/pages/update`, page);\n\n state.current = response.data;\n return response.data;\n } catch (error) {\n setError(error);\n throw error;\n }\n },\n\n async delete(page) {\n try {\n const response = await $axios.delete(`/api/pages/delete`, { \n data: page\n });\n\n state.all.splice(state.all.findIndex((p) => p._id == page), 1);\n return response.data;\n } catch (error) {\n setError(error);\n throw error;\n }\n },\n};\n\nconst history = [];\nhistory.push(state);\n\nwatch(state, (newState) => {\n history.push(newState);\n});\n\nexport { state, actions };"],"names":["reactive","setError","watch"],"mappings":";;;;;AAIA,MAA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H;AAKAC,IAAAA,MAAM,OAAO,CAAC,aAAa;AAE3B,CAAC;;;"}
1
+ {"version":3,"file":"pages.cjs","sources":["../../../../../../../src/modules/pages/views/store/pages.js"],"sourcesContent":["import { reactive, watch } from \"vue\";\nimport { setError } from \"@pf/src/modules/globals/views/store/globals\";\n\nimport $axios from '@pf/src/modules/globals/views/utils/axios-instance.js';\n\nconst state = reactive({\n all: [],\n current: {\n name: \"\",\n localization: [],\n groups: [],\n url: \"\",\n content: [],\n },\n});\n\nconst actions = {\n async create(page) {\n try {\n const response = await $axios.post(`/api/pages/create`, page);\n\n return response.data;\n } catch (error) {\n setError(error);\n throw error;\n }\n },\n\n\n async read(options = {}) {\n try {\n const response = await $axios.get('/api/pages/read', { params: options });\n\n return response.data;\n } catch (error) {\n setError(error);\n throw error;\n }\n },\n\n\n async update(page) {\n try {\n const response = await $axios.put(`/api/pages/update`, page);\n\n state.current = response.data;\n return response.data;\n } catch (error) {\n setError(error);\n throw error;\n }\n },\n\n async delete(page) {\n try {\n const response = await $axios.delete(`/api/pages/delete`, { \n data: page\n });\n\n state.all.splice(state.all.findIndex((p) => p._id == page), 1);\n return response.data;\n } catch (error) {\n setError(error);\n throw error;\n }\n },\n};\n\nconst history = [];\nhistory.push(state);\n\nwatch(state, (newState) => {\n history.push(newState);\n});\n\nexport { state, actions };"],"names":["reactive","$axios","setError","watch"],"mappings":";;;;;AAKK,MAAC,QAAQA,IAAAA,SAAS;AAAA,EACrB,KAAK,CAAE;AAAA,EACP,SAAS;AAAA,IACP,MAAM;AAAA,IACN,cAAc,CAAE;AAAA,IAChB,QAAQ,CAAE;AAAA,IACV,KAAK;AAAA,IACL,SAAS,CAAE;AAAA,EACZ;AACH,CAAC;AAEI,MAAC,UAAU;AAAA,EACd,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,WAAW,MAAMC,sBAAO,KAAK,qBAAqB,IAAI;AAE5D,aAAO,SAAS;AAAA,IACjB,SAAQ,OAAO;AACdC,cAAQ,SAAC,KAAK;AACd,YAAM;AAAA,IACP;AAAA,EACF;AAAA,EAGD,MAAM,KAAK,UAAU,IAAI;AACvB,QAAI;AACF,YAAM,WAAW,MAAMD,cAAAA,QAAO,IAAI,mBAAmB,EAAE,QAAQ,QAAO,CAAE;AAExE,aAAO,SAAS;AAAA,IACjB,SAAQ,OAAO;AACdC,cAAQ,SAAC,KAAK;AACd,YAAM;AAAA,IACP;AAAA,EACF;AAAA,EAGD,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,WAAW,MAAMD,sBAAO,IAAI,qBAAqB,IAAI;AAE3D,YAAM,UAAU,SAAS;AACzB,aAAO,SAAS;AAAA,IACjB,SAAQ,OAAO;AACdC,cAAQ,SAAC,KAAK;AACd,YAAM;AAAA,IACP;AAAA,EACF;AAAA,EAED,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,WAAW,MAAMD,cAAAA,QAAO,OAAO,qBAAqB;AAAA,QACxD,MAAM;AAAA,MACd,CAAO;AAED,YAAM,IAAI,OAAO,MAAM,IAAI,UAAU,CAAC,MAAM,EAAE,OAAO,IAAI,GAAG,CAAC;AAC7D,aAAO,SAAS;AAAA,IACjB,SAAQ,OAAO;AACdC,cAAQ,SAAC,KAAK;AACd,YAAM;AAAA,IACP;AAAA,EACF;AACH;AAKAC,IAAAA,MAAM,OAAO,CAAC,aAAa;AAE3B,CAAC;;;"}
@@ -1,8 +1,6 @@
1
1
  import { reactive, watch } from "vue";
2
- import axios from "axios";
3
2
  import { setError } from "../../../globals/views/store/globals.js";
4
- const clientUrl = process.env.API_URL;
5
- const $axios = axios.create({ baseURL: clientUrl });
3
+ import $axios from "../../../globals/views/utils/axios-instance.js";
6
4
  const state = reactive({
7
5
  all: [],
8
6
  current: {
@@ -1 +1 @@
1
- {"version":3,"file":"pages.js","sources":["../../../../../../../src/modules/pages/views/store/pages.js"],"sourcesContent":["import { reactive, watch } from \"vue\";\nimport axios from \"axios\";\nimport { setError } from \"@pf/src/modules/globals/views/store/globals\";\n\nconst clientUrl = process.env.API_URL;\nconst $axios = axios.create({ baseURL: clientUrl });\n\nconst state = reactive({\n all: [],\n current: {\n name: \"\",\n localization: [],\n groups: [],\n url: \"\",\n content: [],\n },\n});\n\nconst actions = {\n async create(page) {\n try {\n const response = await $axios.post(`/api/pages/create`, page);\n\n return response.data;\n } catch (error) {\n setError(error);\n throw error;\n }\n },\n\n\n async read(options = {}) {\n try {\n const response = await $axios.get('/api/pages/read', { params: options });\n\n return response.data;\n } catch (error) {\n setError(error);\n throw error;\n }\n },\n\n\n async update(page) {\n try {\n const response = await $axios.put(`/api/pages/update`, page);\n\n state.current = response.data;\n return response.data;\n } catch (error) {\n setError(error);\n throw error;\n }\n },\n\n async delete(page) {\n try {\n const response = await $axios.delete(`/api/pages/delete`, { \n data: page\n });\n\n state.all.splice(state.all.findIndex((p) => p._id == page), 1);\n return response.data;\n } catch (error) {\n setError(error);\n throw error;\n }\n },\n};\n\nconst history = [];\nhistory.push(state);\n\nwatch(state, (newState) => {\n history.push(newState);\n});\n\nexport { state, actions };"],"names":[],"mappings":";;;AAIA,MAAM,YAAY,QAAQ,IAAI;AAC9B,MAAM,SAAS,MAAM,OAAO,EAAE,SAAS,UAAW,CAAA;AAE7C,MAAC,QAAQ,SAAS;AAAA,EACrB,KAAK,CAAE;AAAA,EACP,SAAS;AAAA,IACP,MAAM;AAAA,IACN,cAAc,CAAE;AAAA,IAChB,QAAQ,CAAE;AAAA,IACV,KAAK;AAAA,IACL,SAAS,CAAE;AAAA,EACZ;AACH,CAAC;AAEI,MAAC,UAAU;AAAA,EACd,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,WAAW,MAAM,OAAO,KAAK,qBAAqB,IAAI;AAE5D,aAAO,SAAS;AAAA,IACjB,SAAQ,OAAO;AACd,eAAS,KAAK;AACd,YAAM;AAAA,IACP;AAAA,EACF;AAAA,EAGD,MAAM,KAAK,UAAU,IAAI;AACvB,QAAI;AACF,YAAM,WAAW,MAAM,OAAO,IAAI,mBAAmB,EAAE,QAAQ,QAAO,CAAE;AAExE,aAAO,SAAS;AAAA,IACjB,SAAQ,OAAO;AACd,eAAS,KAAK;AACd,YAAM;AAAA,IACP;AAAA,EACF;AAAA,EAGD,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,WAAW,MAAM,OAAO,IAAI,qBAAqB,IAAI;AAE3D,YAAM,UAAU,SAAS;AACzB,aAAO,SAAS;AAAA,IACjB,SAAQ,OAAO;AACd,eAAS,KAAK;AACd,YAAM;AAAA,IACP;AAAA,EACF;AAAA,EAED,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,WAAW,MAAM,OAAO,OAAO,qBAAqB;AAAA,QACxD,MAAM;AAAA,MACd,CAAO;AAED,YAAM,IAAI,OAAO,MAAM,IAAI,UAAU,CAAC,MAAM,EAAE,OAAO,IAAI,GAAG,CAAC;AAC7D,aAAO,SAAS;AAAA,IACjB,SAAQ,OAAO;AACd,eAAS,KAAK;AACd,YAAM;AAAA,IACP;AAAA,EACF;AACH;AAKA,MAAM,OAAO,CAAC,aAAa;AAE3B,CAAC;"}
1
+ {"version":3,"file":"pages.js","sources":["../../../../../../../src/modules/pages/views/store/pages.js"],"sourcesContent":["import { reactive, watch } from \"vue\";\nimport { setError } from \"@pf/src/modules/globals/views/store/globals\";\n\nimport $axios from '@pf/src/modules/globals/views/utils/axios-instance.js';\n\nconst state = reactive({\n all: [],\n current: {\n name: \"\",\n localization: [],\n groups: [],\n url: \"\",\n content: [],\n },\n});\n\nconst actions = {\n async create(page) {\n try {\n const response = await $axios.post(`/api/pages/create`, page);\n\n return response.data;\n } catch (error) {\n setError(error);\n throw error;\n }\n },\n\n\n async read(options = {}) {\n try {\n const response = await $axios.get('/api/pages/read', { params: options });\n\n return response.data;\n } catch (error) {\n setError(error);\n throw error;\n }\n },\n\n\n async update(page) {\n try {\n const response = await $axios.put(`/api/pages/update`, page);\n\n state.current = response.data;\n return response.data;\n } catch (error) {\n setError(error);\n throw error;\n }\n },\n\n async delete(page) {\n try {\n const response = await $axios.delete(`/api/pages/delete`, { \n data: page\n });\n\n state.all.splice(state.all.findIndex((p) => p._id == page), 1);\n return response.data;\n } catch (error) {\n setError(error);\n throw error;\n }\n },\n};\n\nconst history = [];\nhistory.push(state);\n\nwatch(state, (newState) => {\n history.push(newState);\n});\n\nexport { state, actions };"],"names":[],"mappings":";;;AAKK,MAAC,QAAQ,SAAS;AAAA,EACrB,KAAK,CAAE;AAAA,EACP,SAAS;AAAA,IACP,MAAM;AAAA,IACN,cAAc,CAAE;AAAA,IAChB,QAAQ,CAAE;AAAA,IACV,KAAK;AAAA,IACL,SAAS,CAAE;AAAA,EACZ;AACH,CAAC;AAEI,MAAC,UAAU;AAAA,EACd,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,WAAW,MAAM,OAAO,KAAK,qBAAqB,IAAI;AAE5D,aAAO,SAAS;AAAA,IACjB,SAAQ,OAAO;AACd,eAAS,KAAK;AACd,YAAM;AAAA,IACP;AAAA,EACF;AAAA,EAGD,MAAM,KAAK,UAAU,IAAI;AACvB,QAAI;AACF,YAAM,WAAW,MAAM,OAAO,IAAI,mBAAmB,EAAE,QAAQ,QAAO,CAAE;AAExE,aAAO,SAAS;AAAA,IACjB,SAAQ,OAAO;AACd,eAAS,KAAK;AACd,YAAM;AAAA,IACP;AAAA,EACF;AAAA,EAGD,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,WAAW,MAAM,OAAO,IAAI,qBAAqB,IAAI;AAE3D,YAAM,UAAU,SAAS;AACzB,aAAO,SAAS;AAAA,IACjB,SAAQ,OAAO;AACd,eAAS,KAAK;AACd,YAAM;AAAA,IACP;AAAA,EACF;AAAA,EAED,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,WAAW,MAAM,OAAO,OAAO,qBAAqB;AAAA,QACxD,MAAM;AAAA,MACd,CAAO;AAED,YAAM,IAAI,OAAO,MAAM,IAAI,UAAU,CAAC,MAAM,EAAE,OAAO,IAAI,GAAG,CAAC;AAC7D,aAAO,SAAS;AAAA,IACjB,SAAQ,OAAO;AACd,eAAS,KAAK;AACd,YAAM;AAAA,IACP;AAAA,EACF;AACH;AAKA,MAAM,OAAO,CAAC,aAAa;AAE3B,CAAC;"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const Field = require("../../../../components/Field/Field.vue2.cjs");
5
- const Select = require("../../../../components/Select/Select.vue.cjs");
5
+ const Select = require("../../../../components/Select/Select.vue2.cjs");
6
6
  ;/* empty css */
7
7
  const IconAdd = require("../../../icons/navigation/IconAdd.vue.cjs");
8
8
  const IconDelete = require("../../../icons/navigation/IconDelete.vue.cjs");
@@ -1,6 +1,6 @@
1
1
  import { ref, computed, watch, openBlock, createElementBlock, createElementVNode, toDisplayString, createBlock, withCtx, createVNode, createCommentVNode, unref } from "vue";
2
2
  import Field from "../../../../components/Field/Field.vue2.js";
3
- import Select from "../../../../components/Select/Select.vue.js";
3
+ import Select from "../../../../components/Select/Select.vue2.js";
4
4
  /* empty css */
5
5
  import _sfc_main$1 from "../../../icons/navigation/IconAdd.vue.js";
6
6
  import _sfc_main$2 from "../../../icons/navigation/IconDelete.vue.js";
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
- const Loader = require("../../../../components/Loader/Loader.vue.cjs");
4
+ const Loader = require("../../../../components/Loader/Loader.vue2.cjs");
5
5
  ;/* empty css */
6
6
  const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
7
7
  const _hoisted_1 = { class: "product-360-viewer" };
@@ -1,5 +1,5 @@
1
1
  import { ref, computed, watch, onMounted, onUnmounted, openBlock, createElementBlock, createStaticVNode, createVNode, Transition, withCtx, withModifiers, createCommentVNode, createBlock } from "vue";
2
- import Loader from "../../../../components/Loader/Loader.vue.js";
2
+ import Loader from "../../../../components/Loader/Loader.vue2.js";
3
3
  /* empty css */
4
4
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
5
  const _hoisted_1 = { class: "product-360-viewer" };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
- const Popup = require("../../../../components/Popup/Popup.vue.cjs");
4
+ const Popup = require("../../../../components/Popup/Popup.vue2.cjs");
5
5
  const PhotoViewer = require("../../../../components/PhotoViewer/PhotoViewer.vue.cjs");
6
6
  ;/* empty css */
7
7
  const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
@@ -1,5 +1,5 @@
1
1
  import { ref, openBlock, createElementBlock, createElementVNode, Fragment, renderList, createVNode, withCtx } from "vue";
2
- import _sfc_main$1 from "../../../../components/Popup/Popup.vue.js";
2
+ import _sfc_main$1 from "../../../../components/Popup/Popup.vue2.js";
3
3
  import _sfc_main$2 from "../../../../components/PhotoViewer/PhotoViewer.vue.js";
4
4
  /* empty css */
5
5
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
@@ -0,0 +1,178 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue = require("vue");
4
+ const vueRouter = require("vue-router");
5
+ const vueI18n = require("vue-i18n");
6
+ const BlockFilter = require("../../../globals/views/components/blocks/BlockFilter.vue.cjs");
7
+ const marketplace = require("../../store/marketplace.cjs");
8
+ const categories = require("../../store/categories.cjs");
9
+ const _hoisted_1 = {
10
+ style: { "min-height": "100%" },
11
+ class: "h-min-100 pd-thin"
12
+ };
13
+ const _hoisted_2 = { class: "pd-semi radius-big bg-light mn-b-small" };
14
+ const _hoisted_3 = { class: "" };
15
+ const _hoisted_4 = { class: "gap-thin cols-2-1_3" };
16
+ const _hoisted_5 = { class: "desktop-only radius-big o-hidden" };
17
+ const _hoisted_6 = { class: "rows-1 gap-thin" };
18
+ const _sfc_main = {
19
+ __name: "Marketplace",
20
+ setup(__props) {
21
+ const route = vueRouter.useRoute();
22
+ const router = vueRouter.useRouter();
23
+ const localPosition = vue.ref({
24
+ city: null,
25
+ state: null,
26
+ country: null
27
+ });
28
+ vue.ref(null);
29
+ function denormalizeUrlParam(param) {
30
+ return param.replace(/-/g, " ").replace(/\b\w/g, (l) => l.toUpperCase());
31
+ }
32
+ function normalizeUrlParam(param) {
33
+ return param.toLowerCase().replace(/ /g, "-").replace(/[^a-z0-9-]/g, "");
34
+ }
35
+ if (route.params) {
36
+ let newState = {
37
+ country: denormalizeUrlParam(route.params.country),
38
+ state: denormalizeUrlParam(route.params.state),
39
+ city: denormalizeUrlParam(route.params.city)
40
+ };
41
+ localPosition.value = newState;
42
+ }
43
+ if (route.query) {
44
+ const query = route.query;
45
+ marketplace.state.filter.selected.categories = query.categories ? query.categories.split(",") : [];
46
+ marketplace.state.filter.selected.prices = query.prices ? query.prices.split(",") : [];
47
+ marketplace.state.filter.selected.delivery = query.delivery ? query.delivery.split(",") : [];
48
+ }
49
+ if (route.query.sortParam) marketplace.state.sort.param = route.query.sortParam;
50
+ if (route.query.sortOrder) marketplace.state.sort.order = route.query.sortOrder;
51
+ vue.onMounted(async () => {
52
+ let options = {
53
+ status: "published"
54
+ };
55
+ let categoriesFilter = await categories.actions.fetchCategories(options);
56
+ categoriesFilter = categoriesFilter.map((category) => ({
57
+ value: category.url,
58
+ label: category.name
59
+ }));
60
+ const index = marketplace.state.filter.options.findIndex((option) => option.value === "categories");
61
+ const categoryOption = {
62
+ title: "Categories",
63
+ value: "categories",
64
+ options: categoriesFilter
65
+ };
66
+ if (index !== -1) {
67
+ marketplace.state.filter.options[index] = categoryOption;
68
+ } else {
69
+ marketplace.state.filter.options.unshift(categoryOption);
70
+ }
71
+ });
72
+ vue.watch(() => marketplace.state.sort, (newSortValue, oldSortValue) => {
73
+ let query = { ...route.query };
74
+ query.sortParam = newSortValue.param;
75
+ query.sortOrder = newSortValue.order;
76
+ router.replace({ query });
77
+ }, { deep: true });
78
+ vue.watch(() => marketplace.state.filter.selected, (newFilterValue, oldFilterValue) => {
79
+ const query = { ...route.query };
80
+ Object.keys(oldFilterValue).forEach((key) => {
81
+ if (query[key]) {
82
+ delete query[key];
83
+ }
84
+ });
85
+ const newQueryValues = Object.fromEntries(
86
+ Object.entries(newFilterValue).filter(([key, value]) => Array.isArray(value) && value.length > 0).map(([key, value]) => [key, value.join(",")])
87
+ );
88
+ delete query.options;
89
+ Object.assign(query, newQueryValues);
90
+ router.replace({ query });
91
+ }, { deep: true });
92
+ vue.watch(() => globals.state.position, (newPosition) => {
93
+ const currentRoute = { ...router.currentRoute.value };
94
+ let newParams = {
95
+ country: normalizeUrlParam(newPosition.country),
96
+ state: normalizeUrlParam(newPosition.state),
97
+ city: normalizeUrlParam(newPosition.city)
98
+ };
99
+ currentRoute.params = newParams;
100
+ router.replace(currentRoute);
101
+ }, { deep: true });
102
+ const text = {
103
+ locale: "en",
104
+ messages: {
105
+ en: {
106
+ meta: {
107
+ title: "Marketplace – Shop Our Wide Selection of Quality Weed for Delivery",
108
+ 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."
109
+ }
110
+ },
111
+ ru: {
112
+ meta: {
113
+ title: "Маркетплейс – Выбирайте из нашего ассортимента качественной травки для доставки",
114
+ description: "Маркетплейс – Изучите наши продукты высокого качества и выбирайте из различных вариантов доставки. Закажите сейчас и получите свои любимые сорта на дом. Безопасно, быстро и надежно."
115
+ }
116
+ }
117
+ }
118
+ };
119
+ vueI18n.useI18n(text);
120
+ return (_ctx, _cache) => {
121
+ const _component_router_view = vue.resolveComponent("router-view");
122
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
123
+ vue.createElementVNode("header", _hoisted_2, [
124
+ vue.createElementVNode("h2", _hoisted_3, [
125
+ _cache[3] || (_cache[3] = vue.createElementVNode("span", { class: "" }, "Weed in ", -1)),
126
+ localPosition.value.city || localPosition.value.state || localPosition.value.country ? (vue.openBlock(), vue.createElementBlock("span", {
127
+ key: 0,
128
+ onClick: _cache[0] || (_cache[0] = (a) => {
129
+ _ctx.globals.state.isOpenLocationPopup = true;
130
+ }),
131
+ class: "t-main t-semi cursor-pointer"
132
+ }, [
133
+ localPosition.value.city ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
134
+ vue.createTextVNode(vue.toDisplayString(localPosition.value.city) + ", ", 1)
135
+ ], 64)) : vue.createCommentVNode("", true),
136
+ localPosition.value.state ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
137
+ vue.createTextVNode(vue.toDisplayString(localPosition.value.state) + ", ", 1)
138
+ ], 64)) : vue.createCommentVNode("", true),
139
+ localPosition.value.country ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
140
+ vue.createTextVNode(vue.toDisplayString(localPosition.value.country), 1)
141
+ ], 64)) : vue.createCommentVNode("", true)
142
+ ])) : (vue.openBlock(), vue.createElementBlock("span", {
143
+ key: 1,
144
+ onClick: _cache[1] || (_cache[1] = (a) => {
145
+ _ctx.globals.state.isOpenLocationPopup = true;
146
+ }),
147
+ class: "h2 pd-l-small pd-r-small pd-t-micro pd-b-micro d-inline-block t-semi radius-extra bg-main t-black cursor-pointer"
148
+ }, " The World "))
149
+ ])
150
+ ]),
151
+ vue.createElementVNode("div", _hoisted_4, [
152
+ vue.createElementVNode("div", _hoisted_5, [
153
+ vue.createVNode(BlockFilter.default, {
154
+ filter: marketplace.state.filter,
155
+ "onUpdate:filter": _cache[2] || (_cache[2] = ($event) => marketplace.state.filter = $event),
156
+ options: marketplace.state.filter.options,
157
+ class: "h-100 w-100 pd-small bg-light"
158
+ }, null, 8, ["filter", "options"])
159
+ ]),
160
+ vue.createElementVNode("div", _hoisted_6, [
161
+ vue.createVNode(_component_router_view, null, {
162
+ default: vue.withCtx(({ Component, route: route2 }) => [
163
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(Component), {
164
+ ref: "page",
165
+ key: route2,
166
+ localPosition: localPosition.value
167
+ }, null, 8, ["localPosition"]))
168
+ ]),
169
+ _: 1
170
+ })
171
+ ])
172
+ ])
173
+ ]);
174
+ };
175
+ }
176
+ };
177
+ exports.default = _sfc_main;
178
+ //# sourceMappingURL=Marketplace.vue.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Marketplace.vue.cjs","sources":["../../../../../../../src/modules/products/components/layouts/Marketplace.vue"],"sourcesContent":["<template>\n\t<div style=\"min-height: 100%;\" class=\"h-min-100 pd-thin\">\n\t\t<header class=\"pd-semi radius-big bg-light mn-b-small\">\n \t<h2 class=\"\">\n \t\t<span class=\"\">Weed in </span>\n\n \t\t<span \n \t\t\tv-if=\"localPosition.city || localPosition.state || localPosition.country\"\n \t\t\t@click=\"a => { globals.state.isOpenLocationPopup = true }\" \n \t\t\tclass=\"t-main t-semi cursor-pointer \"\n \t\t>\n \t\t\t\t<template v-if=\"localPosition.city\">{{localPosition.city}}, </template>\n \t\t\t\t<template v-if=\"localPosition.state\">{{localPosition.state}}, </template>\n \t\t\t\t<template v-if=\"localPosition.country\">{{localPosition.country}}</template>\n \t\t</span>\n\n \t\t<span v-else @click=\"a => { globals.state.isOpenLocationPopup = true }\" class=\"h2 pd-l-small pd-r-small pd-t-micro pd-b-micro d-inline-block t-semi radius-extra bg-main t-black cursor-pointer\">\n\t\t\t\t\t\tThe World\n \t\t</span>\n \t</h2>\n\t\t</header>\n\n\t\t<div class=\"gap-thin \tcols-2-1_3\">\n\t\t\t<div class=\"desktop-only radius-big o-hidden\">\n\t <BlockFilter\n v-model:filter=\"marketplace.state.filter\"\n :options=\"marketplace.state.filter.options\"\n class=\"h-100 w-100 pd-small bg-light\"\n />\n </div>\n\t\t\t<!-- Catalog wrapper -->\n\t\t\t<div class=\"rows-1 gap-thin\">\n\t\t\t\t<router-view v-slot=\"{ Component, route }\">\n\t\t\t\t\t<component ref=\"page\" :key=\"route\" :localPosition=\"localPosition\" :is=\"Component\" />\n\t\t\t\t</router-view>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n\n\n<script setup=\"props\">\n\t// Import libs\n\timport { computed, onMounted, watch, ref } from 'vue'\n\timport { useRoute, useRouter,onBeforeRouteLeave } from 'vue-router'\n\timport { useI18n } from 'vue-i18n'\n\n\timport BlockFilter from '@pf/src/modules/globals/views/components/blocks/BlockFilter.vue'\n\n\timport * as marketplace from '@pf/src/modules/products/store/marketplace';\n import * as categories from '@pf/src/modules/products/store/categories';\n\n\t// Accessing router and store\n\tconst route = useRoute()\n\tconst router = useRouter()\n\n\tconst localPosition = ref({\n\t\tcity: null,\n\t\tstate: null,\n\t\tcountry: null\n\t});\n\n\tconst desktopFilters = ref(null)\n\n\tfunction denormalizeUrlParam(param) {\n\t return param\n\t .replace(/-/g, ' ') // Замена дефисов на пробелы\n\t .replace(/\\b\\w/g, l => l.toUpperCase()); // Преобразование первой буквы каждого слова в заглавную\n\t}\n\n\tfunction normalizeUrlParam(param) {\n\t return param\n\t .toLowerCase()\n\t .replace(/ /g, '-')\n\t .replace(/[^a-z0-9-]/g, '');\n\t}\n\n\tif (route.params) {\n // Загружаем новые значения из параметров маршрута в состояние\n let newState = {\n country: denormalizeUrlParam(route.params.country),\n state: denormalizeUrlParam(route.params.state),\n city: denormalizeUrlParam(route.params.city),\n };\n\n\t // Обновляем глобальное состояние\n\t localPosition.value = newState;\n\t}\n\n\tif (route.query) {\n\t \tconst query = route.query;\n\n\t\tmarketplace.state.filter.selected.categories = query.categories ? query.categories.split(',') : [];\n\t\tmarketplace.state.filter.selected.prices = query.prices ? query.prices.split(',') : [];\n\t\tmarketplace.state.filter.selected.delivery = query.delivery ? query.delivery.split(',') : [];\n\t}\n\n\tif (route.query.sortParam) marketplace.state.sort.param = route.query.sortParam\n\tif (route.query.sortOrder) marketplace.state.sort.order = route.query.sortOrder\n\n\tonMounted(async () => {\n\t let options = {\n status: 'published'\n }\n\n let categoriesFilter = await categories.actions.fetchCategories(options);\n\n categoriesFilter = categoriesFilter.map(category => ({\n value: category.url,\n label: category.name\n }));\n\n const index = marketplace.state.filter.options.findIndex(option => option.value === 'categories');\n\n const categoryOption = {\n title: 'Categories',\n value: 'categories',\n options: categoriesFilter\n };\n\n if (index !== -1) {\n marketplace.state.filter.options[index] = categoryOption;\n } else {\n marketplace.state.filter.options.unshift(categoryOption);\n }\n\t})\n\n\twatch(() => marketplace.state.sort, (newSortValue, oldSortValue) => {\n\t\tlet query = { ...route.query}\n\t\t\n\t\tquery.sortParam = newSortValue.param\n\t\tquery.sortOrder = newSortValue.order\n\t \n\t // replace the current route\n\t router.replace({ query });\n\t}, { deep: true });\n\n\n\twatch(() => marketplace.state.filter.selected, (newFilterValue, oldFilterValue) => {\n\t // Переводим фильтр в формат query\n\t const query = { ...route.query };\n\n\t // Удаляем старые значения фильтра из query\n\t Object.keys(oldFilterValue).forEach(key => {\n\t if (query[key]) {\n\t delete query[key];\n\t }\n\t });\n\n\t // Добавляем новые значения фильтра в query\n\t const newQueryValues = Object.fromEntries(\n\t Object.entries(newFilterValue)\n\t .filter(([key, value]) => Array.isArray(value) && value.length > 0)\n\t .map(([key, value]) => [key, value.join(',')])\n\t );\n\n\t delete query.options;\n\t Object.assign(query, newQueryValues);\n\n\t // Обновляем маршрут с новым query\n\t router.replace({ query });\n\t}, { deep: true })\n\n\twatch(() => globals.state.position, (newPosition) => {\n\t // get the current route\n\t const currentRoute = { ...router.currentRoute.value };\n\t \n\t // create new parameters based on globals state position\n\t let newParams = {\n\t country: normalizeUrlParam(newPosition.country),\n\t state: normalizeUrlParam(newPosition.state),\n\t city: normalizeUrlParam(newPosition.city),\n\t };\n\t \n\t // update route params\n\t currentRoute.params = newParams;\n\t \n\t // replace the current route\n\t router.replace(currentRoute);\n\t}, { deep: true });\n\n const text = {\n locale: 'en',\n messages: {\n en: {\n\t \tmeta: {\n title: \"Marketplace – Shop Our Wide Selection of Quality Weed for Delivery\",\n 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.\",\n }\n },\n ru: {\n\t meta: {\n title: \"Маркетплейс – Выбирайте из нашего ассортимента качественной травки для доставки\",\n description: \"Маркетплейс – Изучите наши продукты высокого качества и выбирайте из различных вариантов доставки. Закажите сейчас и получите свои любимые сорта на дом. Безопасно, быстро и надежно.\",\n }\n }\n }\n }\n\n \tconst { t } = useI18n(text)\n</script>\n\n<style lang=\"scss\">\n\n\n</style>\n"],"names":["useRoute","useRouter","ref","marketplace.state","onMounted","categories.actions","watch","useI18n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAqDC,UAAM,QAAQA,UAAAA,SAAU;AACxB,UAAM,SAASC,UAAAA,UAAW;AAE1B,UAAM,gBAAgBC,IAAAA,IAAI;AAAA,MACzB,MAAM;AAAA,MACN,OAAO;AAAA,MACP,SAAS;AAAA,IACX,CAAE;AAEsBA,QAAAA,IAAI,IAAI;AAE/B,aAAS,oBAAoB,OAAO;AAClC,aAAO,MACJ,QAAQ,MAAM,GAAG,EACjB,QAAQ,SAAS,OAAK,EAAE,YAAa,CAAA;AAAA,IACzC;AAED,aAAS,kBAAkB,OAAO;AAChC,aAAO,MACJ,YAAa,EACb,QAAQ,MAAM,GAAG,EACjB,QAAQ,eAAe,EAAE;AAAA,IAC7B;AAED,QAAI,MAAM,QAAQ;AAEf,UAAI,WAAW;AAAA,QACb,SAAS,oBAAoB,MAAM,OAAO,OAAO;AAAA,QACjD,OAAO,oBAAoB,MAAM,OAAO,KAAK;AAAA,QAC7C,MAAM,oBAAoB,MAAM,OAAO,IAAI;AAAA,MACjD;AAGG,oBAAc,QAAQ;AAAA,IACvB;AAED,QAAI,MAAM,OAAO;AACf,YAAM,QAAQ,MAAM;AAErBC,kBAAAA,MAAkB,OAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,178 @@
1
+ import { ref, onMounted, watch, resolveComponent, openBlock, createElementBlock, createElementVNode, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode, withCtx, createBlock, resolveDynamicComponent } from "vue";
2
+ import { useRoute, useRouter } from "vue-router";
3
+ import { useI18n } from "vue-i18n";
4
+ import _sfc_main$1 from "../../../globals/views/components/blocks/BlockFilter.vue.js";
5
+ import { state } from "../../store/marketplace.js";
6
+ import { actions } from "../../store/categories.js";
7
+ const _hoisted_1 = {
8
+ style: { "min-height": "100%" },
9
+ class: "h-min-100 pd-thin"
10
+ };
11
+ const _hoisted_2 = { class: "pd-semi radius-big bg-light mn-b-small" };
12
+ const _hoisted_3 = { class: "" };
13
+ const _hoisted_4 = { class: "gap-thin cols-2-1_3" };
14
+ const _hoisted_5 = { class: "desktop-only radius-big o-hidden" };
15
+ const _hoisted_6 = { class: "rows-1 gap-thin" };
16
+ const _sfc_main = {
17
+ __name: "Marketplace",
18
+ setup(__props) {
19
+ const route = useRoute();
20
+ const router = useRouter();
21
+ const localPosition = ref({
22
+ city: null,
23
+ state: null,
24
+ country: null
25
+ });
26
+ ref(null);
27
+ function denormalizeUrlParam(param) {
28
+ return param.replace(/-/g, " ").replace(/\b\w/g, (l) => l.toUpperCase());
29
+ }
30
+ function normalizeUrlParam(param) {
31
+ return param.toLowerCase().replace(/ /g, "-").replace(/[^a-z0-9-]/g, "");
32
+ }
33
+ if (route.params) {
34
+ let newState = {
35
+ country: denormalizeUrlParam(route.params.country),
36
+ state: denormalizeUrlParam(route.params.state),
37
+ city: denormalizeUrlParam(route.params.city)
38
+ };
39
+ localPosition.value = newState;
40
+ }
41
+ if (route.query) {
42
+ const query = route.query;
43
+ state.filter.selected.categories = query.categories ? query.categories.split(",") : [];
44
+ state.filter.selected.prices = query.prices ? query.prices.split(",") : [];
45
+ state.filter.selected.delivery = query.delivery ? query.delivery.split(",") : [];
46
+ }
47
+ if (route.query.sortParam) state.sort.param = route.query.sortParam;
48
+ if (route.query.sortOrder) state.sort.order = route.query.sortOrder;
49
+ onMounted(async () => {
50
+ let options = {
51
+ status: "published"
52
+ };
53
+ let categoriesFilter = await actions.fetchCategories(options);
54
+ categoriesFilter = categoriesFilter.map((category) => ({
55
+ value: category.url,
56
+ label: category.name
57
+ }));
58
+ const index = state.filter.options.findIndex((option) => option.value === "categories");
59
+ const categoryOption = {
60
+ title: "Categories",
61
+ value: "categories",
62
+ options: categoriesFilter
63
+ };
64
+ if (index !== -1) {
65
+ state.filter.options[index] = categoryOption;
66
+ } else {
67
+ state.filter.options.unshift(categoryOption);
68
+ }
69
+ });
70
+ watch(() => state.sort, (newSortValue, oldSortValue) => {
71
+ let query = { ...route.query };
72
+ query.sortParam = newSortValue.param;
73
+ query.sortOrder = newSortValue.order;
74
+ router.replace({ query });
75
+ }, { deep: true });
76
+ watch(() => state.filter.selected, (newFilterValue, oldFilterValue) => {
77
+ const query = { ...route.query };
78
+ Object.keys(oldFilterValue).forEach((key) => {
79
+ if (query[key]) {
80
+ delete query[key];
81
+ }
82
+ });
83
+ const newQueryValues = Object.fromEntries(
84
+ Object.entries(newFilterValue).filter(([key, value]) => Array.isArray(value) && value.length > 0).map(([key, value]) => [key, value.join(",")])
85
+ );
86
+ delete query.options;
87
+ Object.assign(query, newQueryValues);
88
+ router.replace({ query });
89
+ }, { deep: true });
90
+ watch(() => globals.state.position, (newPosition) => {
91
+ const currentRoute = { ...router.currentRoute.value };
92
+ let newParams = {
93
+ country: normalizeUrlParam(newPosition.country),
94
+ state: normalizeUrlParam(newPosition.state),
95
+ city: normalizeUrlParam(newPosition.city)
96
+ };
97
+ currentRoute.params = newParams;
98
+ router.replace(currentRoute);
99
+ }, { deep: true });
100
+ const text = {
101
+ locale: "en",
102
+ messages: {
103
+ en: {
104
+ meta: {
105
+ title: "Marketplace – Shop Our Wide Selection of Quality Weed for Delivery",
106
+ 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."
107
+ }
108
+ },
109
+ ru: {
110
+ meta: {
111
+ title: "Маркетплейс – Выбирайте из нашего ассортимента качественной травки для доставки",
112
+ description: "Маркетплейс – Изучите наши продукты высокого качества и выбирайте из различных вариантов доставки. Закажите сейчас и получите свои любимые сорта на дом. Безопасно, быстро и надежно."
113
+ }
114
+ }
115
+ }
116
+ };
117
+ useI18n(text);
118
+ return (_ctx, _cache) => {
119
+ const _component_router_view = resolveComponent("router-view");
120
+ return openBlock(), createElementBlock("div", _hoisted_1, [
121
+ createElementVNode("header", _hoisted_2, [
122
+ createElementVNode("h2", _hoisted_3, [
123
+ _cache[3] || (_cache[3] = createElementVNode("span", { class: "" }, "Weed in ", -1)),
124
+ localPosition.value.city || localPosition.value.state || localPosition.value.country ? (openBlock(), createElementBlock("span", {
125
+ key: 0,
126
+ onClick: _cache[0] || (_cache[0] = (a) => {
127
+ _ctx.globals.state.isOpenLocationPopup = true;
128
+ }),
129
+ class: "t-main t-semi cursor-pointer"
130
+ }, [
131
+ localPosition.value.city ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
132
+ createTextVNode(toDisplayString(localPosition.value.city) + ", ", 1)
133
+ ], 64)) : createCommentVNode("", true),
134
+ localPosition.value.state ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
135
+ createTextVNode(toDisplayString(localPosition.value.state) + ", ", 1)
136
+ ], 64)) : createCommentVNode("", true),
137
+ localPosition.value.country ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
138
+ createTextVNode(toDisplayString(localPosition.value.country), 1)
139
+ ], 64)) : createCommentVNode("", true)
140
+ ])) : (openBlock(), createElementBlock("span", {
141
+ key: 1,
142
+ onClick: _cache[1] || (_cache[1] = (a) => {
143
+ _ctx.globals.state.isOpenLocationPopup = true;
144
+ }),
145
+ class: "h2 pd-l-small pd-r-small pd-t-micro pd-b-micro d-inline-block t-semi radius-extra bg-main t-black cursor-pointer"
146
+ }, " The World "))
147
+ ])
148
+ ]),
149
+ createElementVNode("div", _hoisted_4, [
150
+ createElementVNode("div", _hoisted_5, [
151
+ createVNode(_sfc_main$1, {
152
+ filter: state.filter,
153
+ "onUpdate:filter": _cache[2] || (_cache[2] = ($event) => state.filter = $event),
154
+ options: state.filter.options,
155
+ class: "h-100 w-100 pd-small bg-light"
156
+ }, null, 8, ["filter", "options"])
157
+ ]),
158
+ createElementVNode("div", _hoisted_6, [
159
+ createVNode(_component_router_view, null, {
160
+ default: withCtx(({ Component, route: route2 }) => [
161
+ (openBlock(), createBlock(resolveDynamicComponent(Component), {
162
+ ref: "page",
163
+ key: route2,
164
+ localPosition: localPosition.value
165
+ }, null, 8, ["localPosition"]))
166
+ ]),
167
+ _: 1
168
+ })
169
+ ])
170
+ ])
171
+ ]);
172
+ };
173
+ }
174
+ };
175
+ export {
176
+ _sfc_main as default
177
+ };
178
+ //# sourceMappingURL=Marketplace.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Marketplace.vue.js","sources":["../../../../../../../src/modules/products/components/layouts/Marketplace.vue"],"sourcesContent":["<template>\n\t<div style=\"min-height: 100%;\" class=\"h-min-100 pd-thin\">\n\t\t<header class=\"pd-semi radius-big bg-light mn-b-small\">\n \t<h2 class=\"\">\n \t\t<span class=\"\">Weed in </span>\n\n \t\t<span \n \t\t\tv-if=\"localPosition.city || localPosition.state || localPosition.country\"\n \t\t\t@click=\"a => { globals.state.isOpenLocationPopup = true }\" \n \t\t\tclass=\"t-main t-semi cursor-pointer \"\n \t\t>\n \t\t\t\t<template v-if=\"localPosition.city\">{{localPosition.city}}, </template>\n \t\t\t\t<template v-if=\"localPosition.state\">{{localPosition.state}}, </template>\n \t\t\t\t<template v-if=\"localPosition.country\">{{localPosition.country}}</template>\n \t\t</span>\n\n \t\t<span v-else @click=\"a => { globals.state.isOpenLocationPopup = true }\" class=\"h2 pd-l-small pd-r-small pd-t-micro pd-b-micro d-inline-block t-semi radius-extra bg-main t-black cursor-pointer\">\n\t\t\t\t\t\tThe World\n \t\t</span>\n \t</h2>\n\t\t</header>\n\n\t\t<div class=\"gap-thin \tcols-2-1_3\">\n\t\t\t<div class=\"desktop-only radius-big o-hidden\">\n\t <BlockFilter\n v-model:filter=\"marketplace.state.filter\"\n :options=\"marketplace.state.filter.options\"\n class=\"h-100 w-100 pd-small bg-light\"\n />\n </div>\n\t\t\t<!-- Catalog wrapper -->\n\t\t\t<div class=\"rows-1 gap-thin\">\n\t\t\t\t<router-view v-slot=\"{ Component, route }\">\n\t\t\t\t\t<component ref=\"page\" :key=\"route\" :localPosition=\"localPosition\" :is=\"Component\" />\n\t\t\t\t</router-view>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n\n\n<script setup=\"props\">\n\t// Import libs\n\timport { computed, onMounted, watch, ref } from 'vue'\n\timport { useRoute, useRouter,onBeforeRouteLeave } from 'vue-router'\n\timport { useI18n } from 'vue-i18n'\n\n\timport BlockFilter from '@pf/src/modules/globals/views/components/blocks/BlockFilter.vue'\n\n\timport * as marketplace from '@pf/src/modules/products/store/marketplace';\n import * as categories from '@pf/src/modules/products/store/categories';\n\n\t// Accessing router and store\n\tconst route = useRoute()\n\tconst router = useRouter()\n\n\tconst localPosition = ref({\n\t\tcity: null,\n\t\tstate: null,\n\t\tcountry: null\n\t});\n\n\tconst desktopFilters = ref(null)\n\n\tfunction denormalizeUrlParam(param) {\n\t return param\n\t .replace(/-/g, ' ') // Замена дефисов на пробелы\n\t .replace(/\\b\\w/g, l => l.toUpperCase()); // Преобразование первой буквы каждого слова в заглавную\n\t}\n\n\tfunction normalizeUrlParam(param) {\n\t return param\n\t .toLowerCase()\n\t .replace(/ /g, '-')\n\t .replace(/[^a-z0-9-]/g, '');\n\t}\n\n\tif (route.params) {\n // Загружаем новые значения из параметров маршрута в состояние\n let newState = {\n country: denormalizeUrlParam(route.params.country),\n state: denormalizeUrlParam(route.params.state),\n city: denormalizeUrlParam(route.params.city),\n };\n\n\t // Обновляем глобальное состояние\n\t localPosition.value = newState;\n\t}\n\n\tif (route.query) {\n\t \tconst query = route.query;\n\n\t\tmarketplace.state.filter.selected.categories = query.categories ? query.categories.split(',') : [];\n\t\tmarketplace.state.filter.selected.prices = query.prices ? query.prices.split(',') : [];\n\t\tmarketplace.state.filter.selected.delivery = query.delivery ? query.delivery.split(',') : [];\n\t}\n\n\tif (route.query.sortParam) marketplace.state.sort.param = route.query.sortParam\n\tif (route.query.sortOrder) marketplace.state.sort.order = route.query.sortOrder\n\n\tonMounted(async () => {\n\t let options = {\n status: 'published'\n }\n\n let categoriesFilter = await categories.actions.fetchCategories(options);\n\n categoriesFilter = categoriesFilter.map(category => ({\n value: category.url,\n label: category.name\n }));\n\n const index = marketplace.state.filter.options.findIndex(option => option.value === 'categories');\n\n const categoryOption = {\n title: 'Categories',\n value: 'categories',\n options: categoriesFilter\n };\n\n if (index !== -1) {\n marketplace.state.filter.options[index] = categoryOption;\n } else {\n marketplace.state.filter.options.unshift(categoryOption);\n }\n\t})\n\n\twatch(() => marketplace.state.sort, (newSortValue, oldSortValue) => {\n\t\tlet query = { ...route.query}\n\t\t\n\t\tquery.sortParam = newSortValue.param\n\t\tquery.sortOrder = newSortValue.order\n\t \n\t // replace the current route\n\t router.replace({ query });\n\t}, { deep: true });\n\n\n\twatch(() => marketplace.state.filter.selected, (newFilterValue, oldFilterValue) => {\n\t // Переводим фильтр в формат query\n\t const query = { ...route.query };\n\n\t // Удаляем старые значения фильтра из query\n\t Object.keys(oldFilterValue).forEach(key => {\n\t if (query[key]) {\n\t delete query[key];\n\t }\n\t });\n\n\t // Добавляем новые значения фильтра в query\n\t const newQueryValues = Object.fromEntries(\n\t Object.entries(newFilterValue)\n\t .filter(([key, value]) => Array.isArray(value) && value.length > 0)\n\t .map(([key, value]) => [key, value.join(',')])\n\t );\n\n\t delete query.options;\n\t Object.assign(query, newQueryValues);\n\n\t // Обновляем маршрут с новым query\n\t router.replace({ query });\n\t}, { deep: true })\n\n\twatch(() => globals.state.position, (newPosition) => {\n\t // get the current route\n\t const currentRoute = { ...router.currentRoute.value };\n\t \n\t // create new parameters based on globals state position\n\t let newParams = {\n\t country: normalizeUrlParam(newPosition.country),\n\t state: normalizeUrlParam(newPosition.state),\n\t city: normalizeUrlParam(newPosition.city),\n\t };\n\t \n\t // update route params\n\t currentRoute.params = newParams;\n\t \n\t // replace the current route\n\t router.replace(currentRoute);\n\t}, { deep: true });\n\n const text = {\n locale: 'en',\n messages: {\n en: {\n\t \tmeta: {\n title: \"Marketplace – Shop Our Wide Selection of Quality Weed for Delivery\",\n 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.\",\n }\n },\n ru: {\n\t meta: {\n title: \"Маркетплейс – Выбирайте из нашего ассортимента качественной травки для доставки\",\n description: \"Маркетплейс – Изучите наши продукты высокого качества и выбирайте из различных вариантов доставки. Закажите сейчас и получите свои любимые сорта на дом. Безопасно, быстро и надежно.\",\n }\n }\n }\n }\n\n \tconst { t } = useI18n(text)\n</script>\n\n<style lang=\"scss\">\n\n\n</style>\n"],"names":["marketplace.state","categories.actions"],"mappings":";;;;;;;;;;;;;;;;;;AAqDC,UAAM,QAAQ,SAAU;AACxB,UAAM,SAAS,UAAW;AAE1B,UAAM,gBAAgB,IAAI;AAAA,MACzB,MAAM;AAAA,MACN,OAAO;AAAA,MACP,SAAS;AAAA,IACX,CAAE;AAEsB,QAAI,IAAI;AAE/B,aAAS,oBAAoB,OAAO;AAClC,aAAO,MACJ,QAAQ,MAAM,GAAG,EACjB,QAAQ,SAAS,OAAK,EAAE,YAAa,CAAA;AAAA,IACzC;AAED,aAAS,kBAAkB,OAAO;AAChC,aAAO,MACJ,YAAa,EACb,QAAQ,MAAM,GAAG,EACjB,QAAQ,eAAe,EAAE;AAAA,IAC7B;AAED,QAAI,MAAM,QAAQ;AAEf,UAAI,WAAW;AAAA,QACb,SAAS,oBAAoB,MAAM,OAAO,OAAO;AAAA,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