@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
@@ -0,0 +1,38 @@
1
+ import { toRefs as g, computed as C, openBlock as T, createElementBlock as v, createVNode as y, createElementVNode as M, toDisplayString as U } from "vue";
2
+ import k from "../../../../icons/navigation/IconCalendar.vue.js";
3
+ const x = { class: "t-semi" }, w = {
4
+ __name: "ButtonDate",
5
+ props: {
6
+ action: {
7
+ type: Function
8
+ },
9
+ date: {
10
+ type: Object
11
+ }
12
+ },
13
+ setup(u) {
14
+ const i = u, { action: o, date: p } = g(i), m = C(() => f(p.value)), d = () => {
15
+ o.value && o.value();
16
+ };
17
+ function f(c) {
18
+ const t = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], { start: r, end: e } = c;
19
+ if (r === null && e === null)
20
+ return "All Time";
21
+ const n = new Date(r), s = n.getUTCDate(), l = t[n.getUTCMonth()], D = n.getUTCFullYear();
22
+ if (!e)
23
+ return `${s} ${l} ${D}`;
24
+ const a = new Date(e), h = a.getUTCDate(), _ = t[a.getUTCMonth()], $ = a.getUTCFullYear();
25
+ return `${s} ${l} - ${h} ${_} ${$}`;
26
+ }
27
+ return (c, t) => (T(), v("div", {
28
+ onClick: d,
29
+ class: "cursor-pointer flex-center flex"
30
+ }, [
31
+ y(k, { class: "w-1r mn-r-thin h-auto" }),
32
+ M("span", x, U(m.value), 1)
33
+ ]));
34
+ }
35
+ };
36
+ export {
37
+ w as default
38
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../icons/navigation/IconSort.vue.cjs"),l={__name:"ButtonSort",props:{action:{type:Function},order:{type:String,required:!0}},setup(r){const o=r,{action:t,order:c}=e.toRefs(o),n=()=>{t.value&&t.value()};return(s,a)=>(e.openBlock(),e.createElementBlock("div",{onClick:n,class:"cursor-pointer t-center t-black radius-small flex-center flex aspect-1x1"},[e.createVNode(u.default,{order:e.unref(c),class:"w-100 h-auto"},null,8,["order"])]))}};exports.default=l;
@@ -0,0 +1,31 @@
1
+ import { toRefs as n, openBlock as a, createElementBlock as s, createVNode as l, unref as i } from "vue";
2
+ import u from "../../../../icons/navigation/IconSort.vue.js";
3
+ const _ = {
4
+ __name: "ButtonSort",
5
+ props: {
6
+ action: {
7
+ type: Function
8
+ },
9
+ order: {
10
+ type: String,
11
+ required: !0
12
+ }
13
+ },
14
+ setup(r) {
15
+ const t = r, { action: e, order: o } = n(t), c = () => {
16
+ e.value && e.value();
17
+ };
18
+ return (p, d) => (a(), s("div", {
19
+ onClick: c,
20
+ class: "cursor-pointer t-center t-black radius-small flex-center flex aspect-1x1"
21
+ }, [
22
+ l(u, {
23
+ order: i(o),
24
+ class: "w-100 h-auto"
25
+ }, null, 8, ["order"])
26
+ ]));
27
+ }
28
+ };
29
+ export {
30
+ _ as default
31
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),g=require("../../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.cjs"),v=require("vue-i18n"),w=require("vue-router"),i="https://weeder.delivery",f={__name:"App",props:{messages:{type:Object,required:!0}},setup(l){const u=l,{t:e,locale:_}=v.useI18n({messages:u.messages}),c=t.computed(()=>s(`${i}${o.path}`)),o=w.useRoute(),d=["en","ru"];function s(r){return r.endsWith("/")?r.slice(0,-1):r}const p=t.computed(()=>({title:e("meta.title"),description:e("meta.description"),meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no"},{hid:"description",name:"description",content:e("meta.description")},{hid:"keywords",name:"keywords",content:e("meta.keywords")},{hid:"og:title",property:"og:title",content:e("meta.og.title")},{hid:"og:description",property:"og:description",content:e("meta.og.description")},{hid:"og:image",property:"og:image",content:i+"/favicon/cover.jpg"},{hid:"og:url",property:"og:url",content:c.value},{hid:"twitter:title",name:"twitter:title",content:e("meta.twitter.title")},{hid:"twitter:description",name:"twitter:description",content:e("meta.twitter.description")},{hid:"twitter:image",name:"twitter:image",content:i+"/favicon/cover.jpg"},{hid:"twitter:card",name:"twitter:card",content:e("meta.twitter.card")}],link:[{hid:"canonical",rel:"canonical",href:c.value},...m.value],htmlAttrs:{lang:e("meta.htmlAttrs.lang")}})),m=t.computed(()=>d.map(r=>{let n=o.path;console.log(o),o.params.locale?n=n.replace(`/${o.params.locale}`,`/${r}`):n=`/${r}${n}`;const a=s(`${i}${n}`);return{hid:"alternate",rel:"alternate",hreflang:r,href:a}}));return g.u(p.value),(r,n)=>{const a=t.resolveComponent("router-view");return t.openBlock(),t.createBlock(a,null,{default:t.withCtx(({Component:h})=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(h)))]),_:1})}}};exports.default=f;
@@ -0,0 +1,66 @@
1
+ import { computed as a, resolveComponent as f, openBlock as l, createBlock as m, withCtx as v, resolveDynamicComponent as _ } from "vue";
2
+ import { u as y } from "../../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.js";
3
+ import { useI18n as k } from "vue-i18n";
4
+ import { useRoute as $ } from "vue-router";
5
+ const o = "https://weeder.delivery", B = {
6
+ __name: "App",
7
+ props: {
8
+ messages: {
9
+ type: Object,
10
+ required: !0
11
+ }
12
+ },
13
+ setup(p) {
14
+ const d = p, { t, locale: A } = k({
15
+ messages: d.messages
16
+ }), c = a(() => s(`${o}${n.path}`)), n = $(), u = ["en", "ru"];
17
+ function s(e) {
18
+ return e.endsWith("/") ? e.slice(0, -1) : e;
19
+ }
20
+ const h = a(() => ({
21
+ title: t("meta.title"),
22
+ description: t("meta.description"),
23
+ meta: [
24
+ { charset: "utf-8" },
25
+ { name: "viewport", content: "width=device-width, initial-scale=1, shrink-to-fit=no" },
26
+ { hid: "description", name: "description", content: t("meta.description") },
27
+ { hid: "keywords", name: "keywords", content: t("meta.keywords") },
28
+ { hid: "og:title", property: "og:title", content: t("meta.og.title") },
29
+ { hid: "og:description", property: "og:description", content: t("meta.og.description") },
30
+ { hid: "og:image", property: "og:image", content: o + "/favicon/cover.jpg" },
31
+ { hid: "og:url", property: "og:url", content: c.value },
32
+ { hid: "twitter:title", name: "twitter:title", content: t("meta.twitter.title") },
33
+ { hid: "twitter:description", name: "twitter:description", content: t("meta.twitter.description") },
34
+ { hid: "twitter:image", name: "twitter:image", content: o + "/favicon/cover.jpg" },
35
+ { hid: "twitter:card", name: "twitter:card", content: t("meta.twitter.card") }
36
+ ],
37
+ link: [
38
+ { hid: "canonical", rel: "canonical", href: c.value },
39
+ ...g.value
40
+ ],
41
+ htmlAttrs: { lang: t("meta.htmlAttrs.lang") }
42
+ })), g = a(() => u.map((e) => {
43
+ let r = n.path;
44
+ console.log(n), n.params.locale ? r = r.replace(`/${n.params.locale}`, `/${e}`) : r = `/${e}${r}`;
45
+ const i = s(`${o}${r}`);
46
+ return {
47
+ hid: "alternate",
48
+ rel: "alternate",
49
+ hreflang: e,
50
+ href: i
51
+ };
52
+ }));
53
+ return y(h.value), (e, r) => {
54
+ const i = f("router-view");
55
+ return l(), m(i, null, {
56
+ default: v(({ Component: w }) => [
57
+ (l(), m(_(w)))
58
+ ]),
59
+ _: 1
60
+ });
61
+ };
62
+ }
63
+ };
64
+ export {
65
+ B as default
66
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../../../../_virtual/_plugin-vue_export-helper.cjs"),n={};function c(l,_){const t=e.resolveComponent("router-view");return e.openBlock(),e.createBlock(t,null,{default:e.withCtx(({Component:o,route:i})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o)))]),_:1})}const u=r.default(n,[["render",c]]);exports.default=u;
@@ -0,0 +1,16 @@
1
+ import { resolveComponent as n, openBlock as e, createBlock as o, withCtx as c, resolveDynamicComponent as _ } from "vue";
2
+ import m from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
3
+ const l = {};
4
+ function p(s, u) {
5
+ const t = n("router-view");
6
+ return e(), o(t, null, {
7
+ default: c(({ Component: r, route: a }) => [
8
+ (e(), o(_(r)))
9
+ ]),
10
+ _: 1
11
+ });
12
+ }
13
+ const d = /* @__PURE__ */ m(l, [["render", p]]);
14
+ export {
15
+ d as default
16
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../../components/Tab/Tab.vue2.cjs"),i={class:"pd-medium flex-v-center flex-nowrap flex"},u={class:"mn-r-auto"},d=["onClick"],m={__name:"SectionPageTitle",props:{title:String,actions:Array,tabs:Array,tabs_current:[Object,String]},emits:["update:tabs_current"],setup(r,{emit:l}){const n=l,s=o=>{n("update:tabs_current",o)};return(o,b)=>{const a=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("header",i,[e.createElementVNode("h1",u,e.toDisplayString(r.title),1),r.actions&&r.actions.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.actions,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.to?(e.openBlock(),e.createBlock(a,{key:t.to,to:t.to,class:e.normalizeClass(t.class||"radius-extra pd-thin uppercase t-medium hover-scale-1 transition-ease cursor-pointer t-white bg-second flex-center flex")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:2},1032,["to","class"])):e.createCommentVNode("",!0),t.method?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:t.method,class:e.normalizeClass(t.class||"radius-extra pd-thin uppercase t-medium hover-scale-1 transition-ease cursor-pointer t-white bg-second flex-center flex")},e.toDisplayString(t.label),11,d)):e.createCommentVNode("",!0)],64))),256)):e.createCommentVNode("",!0)]),r.tabs?(e.openBlock(),e.createBlock(c.default,{key:0,selected:r.tabs_current,"onUpdate:selected":s,tabs:r.tabs,class:"br-t br-solid br-black-transp-10 w-100 t-nowrap o-scroll h5"},null,8,["selected","tabs"])):e.createCommentVNode("",!0)])}}};exports.default=m;
@@ -0,0 +1,54 @@
1
+ import { resolveComponent as p, openBlock as r, createElementBlock as s, createElementVNode as o, toDisplayString as n, Fragment as c, renderList as f, createBlock as i, normalizeClass as u, withCtx as x, createTextVNode as k, createCommentVNode as a } from "vue";
2
+ import _ from "../../../../../components/Tab/Tab.vue2.js";
3
+ const g = { class: "pd-medium flex-v-center flex-nowrap flex" }, y = { class: "mn-r-auto" }, C = ["onClick"], B = {
4
+ __name: "SectionPageTitle",
5
+ props: {
6
+ title: String,
7
+ actions: Array,
8
+ tabs: Array,
9
+ tabs_current: [Object, String]
10
+ },
11
+ emits: [
12
+ "update:tabs_current"
13
+ ],
14
+ setup(t, { emit: d }) {
15
+ const m = d, b = (l) => {
16
+ m("update:tabs_current", l);
17
+ };
18
+ return (l, w) => {
19
+ const h = p("router-link");
20
+ return r(), s("div", null, [
21
+ o("header", g, [
22
+ o("h1", y, n(t.title), 1),
23
+ t.actions && t.actions.length > 0 ? (r(!0), s(c, { key: 0 }, f(t.actions, (e) => (r(), s(c, null, [
24
+ e.to ? (r(), i(h, {
25
+ key: e.to,
26
+ to: e.to,
27
+ class: u(e.class || "radius-extra pd-thin uppercase t-medium hover-scale-1 transition-ease cursor-pointer t-white bg-second flex-center flex")
28
+ }, {
29
+ default: x(() => [
30
+ k(n(e.label), 1)
31
+ ]),
32
+ _: 2
33
+ }, 1032, ["to", "class"])) : a("", !0),
34
+ e.method ? (r(), s("button", {
35
+ key: 1,
36
+ onClick: e.method,
37
+ class: u(e.class || "radius-extra pd-thin uppercase t-medium hover-scale-1 transition-ease cursor-pointer t-white bg-second flex-center flex")
38
+ }, n(e.label), 11, C)) : a("", !0)
39
+ ], 64))), 256)) : a("", !0)
40
+ ]),
41
+ t.tabs ? (r(), i(_, {
42
+ key: 0,
43
+ selected: t.tabs_current,
44
+ "onUpdate:selected": b,
45
+ tabs: t.tabs,
46
+ class: "br-t br-solid br-black-transp-10 w-100 t-nowrap o-scroll h5"
47
+ }, null, 8, ["selected", "tabs"])) : a("", !0)
48
+ ]);
49
+ };
50
+ }
51
+ };
52
+ export {
53
+ B as default
54
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function o(t={}){const n={...{countryCodeOnly:!1},...t},e=navigator.languages!==void 0?navigator.languages[0]:navigator.language;return e?n.countryCodeOnly?e.trim().split(/-|_/)[0]:e.trim():void 0}exports.default=o;
@@ -0,0 +1,7 @@
1
+ function r(n = {}) {
2
+ const e = { ...{ countryCodeOnly: !1 }, ...n }, t = navigator.languages !== void 0 ? navigator.languages[0] : navigator.language;
3
+ return t ? e.countryCodeOnly ? t.trim().split(/-|_/)[0] : t.trim() : void 0;
4
+ }
5
+ export {
6
+ r as default
7
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function m(){const y=t=>t?(t.includes("ROLE_ADMIN")?t.includes("ROLE_ADMIN"):!1)===!0:!1,d=(t,l,s,i)=>{const r=i.find(a=>a.organization===t);if(!r)return!1;const n=r.rights[l];return n?n[s]===!0:!1},u=()=>"฿",f=t=>{const l=u();return`${t.toFixed(2).replace(".",",").replace(/\B(?=(\d{3})+(?!\d))/g," ")} ${l}`},g=(t,l={})=>{var s=new Date(t),i=s.getFullYear().toString(),e=(s.getMonth()+1).toString(),r=s.getDate().toString(),n=s.getHours().toString(),a=s.getMinutes().toString(),o={dateOnly:l.dateOnly||!1,timeOnly:l.timeOnly||!1,dayMonth:l.dayMonth||!1,dayTime:l.dayTime||!1,monthYear:l.monthYear||!1,yearOnly:l.yearOnly||!1,custom:l.custom||""};return o.dateOnly?i+"."+(e[1]?e:"0"+e[0])+"."+(r[1]?r:"0"+r[0]):o.timeOnly?(n[1]?n:"0"+n[0])+":"+(a[1]?a:"0"+a[0]):o.dayMonth?(r[1]?r:"0"+r[0])+"."+(e[1]?e:"0"+e[0]):o.dayTime?(r[1]?r:"0"+r[0])+" в "+(n[1]?n:"0"+n[0])+":"+(a[1]?a:"0"+a[0]):o.monthYear?(e[1]?e:"0"+e[0])+"."+i:o.yearOnly?i:o.custom?o.custom.replace("yyyy",i).replace("mm",e[1]?e:"0"+e[0]).replace("dd",r[1]?r:"0"+r[0]).replace("hh",n[1]?n:"0"+n[0]).replace("min",a[1]?a:"0"+a[0]):(n[1]?n:"0"+n[0])+":"+(a[1]?a:"0"+a[0])+", "+i+"."+(e[1]?e:"0"+e[0])+"."+(r[1]?r:"0"+r[0])},c=t=>(t||(t=""),t.toLowerCase().replace(/ /g,"-").replace(/[^a-z0-9-]/g,""));return{isAdmin:y,hasAccess:d,returnCurrency:u,formatPrice:f,formatDate:g,normalizeUrlParam:c,joinArrayToUrl:t=>t.join("/"),getMarketplaceLink:(t,l,s,i)=>{let e=l?c(l):"",r=s?c(s):"",n=i?c(i):"",a="/marketplace";return a+=e?`/${e}`:"",a+=e&&r?`/${r}`:"",a+=e&&r&&n?`/${n}`:"",t&&t.length&&(a+=`?categories=${t.join(",")}`),a},getSpotsLink:(t,l,s)=>{let i=t?c(t):"",e=l?c(l):"",r=s?c(s):"",n="/spots";return n+=i?`/${i}`:"",n+=i&&e?`/${e}`:"",n+=i&&e&&r?`/${r}`:"",n}}}const h={methods:m()};exports.globalMixins=h;exports.useGlobalMixins=m;
@@ -0,0 +1,47 @@
1
+ function g() {
2
+ const m = (t) => t ? (t.includes("ROLE_ADMIN") ? t.includes("ROLE_ADMIN") : !1) === !0 : !1, y = (t, l, i, s) => {
3
+ const r = s.find((a) => a.organization === t);
4
+ if (!r)
5
+ return !1;
6
+ const n = r.rights[l];
7
+ return n ? n[i] === !0 : !1;
8
+ }, u = () => "฿", d = (t) => {
9
+ const l = u();
10
+ return `${t.toFixed(2).replace(".", ",").replace(/\B(?=(\d{3})+(?!\d))/g, " ")} ${l}`;
11
+ }, f = (t, l = {}) => {
12
+ var i = new Date(t), s = i.getFullYear().toString(), e = (i.getMonth() + 1).toString(), r = i.getDate().toString(), n = i.getHours().toString(), a = i.getMinutes().toString(), c = {
13
+ dateOnly: l.dateOnly || !1,
14
+ timeOnly: l.timeOnly || !1,
15
+ dayMonth: l.dayMonth || !1,
16
+ dayTime: l.dayTime || !1,
17
+ monthYear: l.monthYear || !1,
18
+ yearOnly: l.yearOnly || !1,
19
+ custom: l.custom || ""
20
+ };
21
+ return c.dateOnly ? s + "." + (e[1] ? e : "0" + e[0]) + "." + (r[1] ? r : "0" + r[0]) : c.timeOnly ? (n[1] ? n : "0" + n[0]) + ":" + (a[1] ? a : "0" + a[0]) : c.dayMonth ? (r[1] ? r : "0" + r[0]) + "." + (e[1] ? e : "0" + e[0]) : c.dayTime ? (r[1] ? r : "0" + r[0]) + " в " + (n[1] ? n : "0" + n[0]) + ":" + (a[1] ? a : "0" + a[0]) : c.monthYear ? (e[1] ? e : "0" + e[0]) + "." + s : c.yearOnly ? s : c.custom ? c.custom.replace("yyyy", s).replace("mm", e[1] ? e : "0" + e[0]).replace("dd", r[1] ? r : "0" + r[0]).replace("hh", n[1] ? n : "0" + n[0]).replace("min", a[1] ? a : "0" + a[0]) : (n[1] ? n : "0" + n[0]) + ":" + (a[1] ? a : "0" + a[0]) + ", " + s + "." + (e[1] ? e : "0" + e[0]) + "." + (r[1] ? r : "0" + r[0]);
22
+ }, o = (t) => (t || (t = ""), t.toLowerCase().replace(/ /g, "-").replace(/[^a-z0-9-]/g, ""));
23
+ return {
24
+ isAdmin: m,
25
+ hasAccess: y,
26
+ returnCurrency: u,
27
+ formatPrice: d,
28
+ formatDate: f,
29
+ normalizeUrlParam: o,
30
+ joinArrayToUrl: (t) => t.join("/"),
31
+ getMarketplaceLink: (t, l, i, s) => {
32
+ let e = l ? o(l) : "", r = i ? o(i) : "", n = s ? o(s) : "", a = "/marketplace";
33
+ return a += e ? `/${e}` : "", a += e && r ? `/${r}` : "", a += e && r && n ? `/${n}` : "", t && t.length && (a += `?categories=${t.join(",")}`), a;
34
+ },
35
+ getSpotsLink: (t, l, i) => {
36
+ let s = t ? o(t) : "", e = l ? o(l) : "", r = i ? o(i) : "", n = "/spots";
37
+ return n += s ? `/${s}` : "", n += s && e ? `/${e}` : "", n += s && e && r ? `/${r}` : "", n;
38
+ }
39
+ };
40
+ }
41
+ const O = {
42
+ methods: g()
43
+ };
44
+ export {
45
+ O as globalMixins,
46
+ g as useGlobalMixins
47
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});async function n(o,c,l){if(o.hash){const e=async(t,r)=>document.querySelector(t)||new Promise((s,u)=>{if(r>50)return s();setTimeout(()=>{s(e(t,++r||1))},1e3)});if(o.hash){let t=await e(o.hash),r=await e("#screen");return"scrollBehavior"in document.documentElement.style?r.scrollTo({top:t.offsetTop,behavior:"smooth"}):r.scrollTo(0,t.offsetTop)}}else return o.matched.some(e=>e.meta.scrollTo)?{top:m.meta.scrollTo.top,left:m.meta.scrollTo.left}:l?{savedPosition:l}:{top:0}}exports.default=n;
@@ -0,0 +1,18 @@
1
+ async function a(o, n, l) {
2
+ if (o.hash) {
3
+ const e = async (t, r) => document.querySelector(t) || new Promise((s, c) => {
4
+ if (r > 50)
5
+ return s();
6
+ setTimeout(() => {
7
+ s(e(t, ++r || 1));
8
+ }, 1e3);
9
+ });
10
+ if (o.hash) {
11
+ let t = await e(o.hash), r = await e("#screen");
12
+ return "scrollBehavior" in document.documentElement.style ? r.scrollTo({ top: t.offsetTop, behavior: "smooth" }) : r.scrollTo(0, t.offsetTop);
13
+ }
14
+ } else return o.matched.some((e) => e.meta.scrollTo) ? { top: m.meta.scrollTo.top, left: m.meta.scrollTo.left } : l ? { savedPosition: l } : { top: 0 };
15
+ }
16
+ export {
17
+ a as default
18
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),n=l.reactive({loading:!1,isOpenLocationPopup:!1,isOpenSidebar:!1,position:null,search:null,theme:{darkmode:!1},error:{status:"",headers:"",data:"",show:"",name:"",message:""}}),a={setLoading(e){n.loading=e},toggleTheme(){let e=document.querySelector(":root");n.theme.darkmode=!n.theme.darkmode,e.classList.toggle("dark-theme");const o=["--white","--light","--grey","--dark","--black"];n.theme.originalColors||(n.theme.originalColors={},o.forEach(t=>{const s=getComputedStyle(document.documentElement).getPropertyValue(t).trim();n.theme.originalColors[t]=s})),m(o,n.theme.originalColors)},add(e,o){const t=e.findIndex(s=>s._id===o._id);t===-1?e.push(o):e[t]=o},update(e,o){const t=e.findIndex(s=>s._id===o._id);t===-1?e.push(o):Object.assign(e[t],o)},delete(e,o){const t=e.findIndex(s=>s._id===o._id);t!==-1&&e.splice(t,1)},increment(e,o){console.log(e),console.log(o);const t=e.find(s=>s._id===o._id);t&&t.quantity++},decrement(e,o){const t=e.find(r=>r._id===o._id),s=e.indexOf(t);s>-1&&(t.quantity--,t.quantity<1&&e.splice(s,1))},reset(e){}};function c(e){var t;let o;o=e,(t=e==null?void 0:e.response)!=null&&t.data&&(o=e.response.data),e&&o.errorCode?n.error.message=i18n.global.t(`errors.${o.errorCode}`):n.error.message=o.message||"Unknown error",n.error.show=!0,setTimeout(()=>n.error.show=!1,3e3)}function m(e,o){e.forEach(t=>{const s=o[t],r=s.split(",").map(Number);let d;t==="--white"?d=r.map(i=>255-i/1.075):t==="--black"?d=r.map(i=>255-i):t==="--grey"?d=r.map(i=>255-i*2):d=r.map(i=>255-i/1.075),document.documentElement.style.setProperty(t,n.theme.darkmode?d.join(", "):s)})}exports.actions=a;exports.setError=c;exports.state=n;
@@ -0,0 +1,83 @@
1
+ import { reactive as l } from "vue";
2
+ const n = l({
3
+ loading: !1,
4
+ isOpenLocationPopup: !1,
5
+ isOpenSidebar: !1,
6
+ position: null,
7
+ search: null,
8
+ theme: {
9
+ darkmode: !1
10
+ },
11
+ error: {
12
+ status: "",
13
+ headers: "",
14
+ data: "",
15
+ show: "",
16
+ name: "",
17
+ message: ""
18
+ }
19
+ }), m = {
20
+ setLoading(e) {
21
+ n.loading = e;
22
+ },
23
+ // Black/White Theme
24
+ toggleTheme() {
25
+ let e = document.querySelector(":root");
26
+ n.theme.darkmode = !n.theme.darkmode, e.classList.toggle("dark-theme");
27
+ const o = [
28
+ "--white",
29
+ "--light",
30
+ "--grey",
31
+ "--dark",
32
+ "--black"
33
+ ];
34
+ n.theme.originalColors || (n.theme.originalColors = {}, o.forEach((t) => {
35
+ const s = getComputedStyle(document.documentElement).getPropertyValue(t).trim();
36
+ n.theme.originalColors[t] = s;
37
+ })), a(o, n.theme.originalColors);
38
+ },
39
+ add(e, o) {
40
+ const t = e.findIndex((s) => s._id === o._id);
41
+ t === -1 ? e.push(o) : e[t] = o;
42
+ },
43
+ update(e, o) {
44
+ const t = e.findIndex((s) => s._id === o._id);
45
+ t === -1 ? e.push(o) : Object.assign(e[t], o);
46
+ },
47
+ delete(e, o) {
48
+ const t = e.findIndex((s) => s._id === o._id);
49
+ t !== -1 && e.splice(t, 1);
50
+ },
51
+ increment(e, o) {
52
+ console.log(e), console.log(o);
53
+ const t = e.find(
54
+ (s) => s._id === o._id
55
+ );
56
+ t && t.quantity++;
57
+ },
58
+ decrement(e, o) {
59
+ const t = e.find(
60
+ (d) => d._id === o._id
61
+ ), s = e.indexOf(t);
62
+ s > -1 && (t.quantity--, t.quantity < 1 && e.splice(s, 1));
63
+ },
64
+ reset(e) {
65
+ }
66
+ };
67
+ function f(e) {
68
+ var t;
69
+ let o;
70
+ o = e, (t = e == null ? void 0 : e.response) != null && t.data && (o = e.response.data), e && o.errorCode ? n.error.message = i18n.global.t(`errors.${o.errorCode}`) : n.error.message = o.message || "Unknown error", n.error.show = !0, setTimeout(() => n.error.show = !1, 3e3);
71
+ }
72
+ function a(e, o) {
73
+ e.forEach((t) => {
74
+ const s = o[t], d = s.split(",").map(Number);
75
+ let r;
76
+ t === "--white" ? r = d.map((i) => 255 - i / 1.075) : t === "--black" ? r = d.map((i) => 255 - i) : t === "--grey" ? r = d.map((i) => 255 - i * 2) : r = d.map((i) => 255 - i / 1.075), document.documentElement.style.setProperty(t, n.theme.darkmode ? r.join(", ") : s);
77
+ });
78
+ }
79
+ export {
80
+ m as actions,
81
+ f as setError,
82
+ n as state
83
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-i18n"),p=require("../../localization/SubscribeNewsletter.json.cjs"),b=require("../../../../components/FieldBig/FieldBig.vue.cjs"),l=require("../../../globals/store/globals.cjs"),m=require("../../../orders/store/applications.cjs"),n=require("../../../middlewares/client/inputs.validation.cjs");;/* empty css */const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),v=r=>(e.pushScopeId("data-v-9d8f6473"),r=r(),e.popScopeId(),r),g={class:"pd-thin"},f={class:"pos-relative o-hidden t-black bg-main pd-big radius-big"},h={class:"pos-relative z-index-1"},w={class:"t-center z-index-1 mn-b-big"},N={class:"mn-l-auto mn-r-auto mn-b-medium"},S={class:"t-transp p-big"},E={class:"z-index-1 w-100 flex-nowrap flex"},y=v(()=>e.createElementVNode("div",{class:"w-100 h-100 pos-absolute pos-b-50-negative pos-r-0 z-index-0 grid"},[e.createElementVNode("div",{class:"spiral"})],-1)),V={__name:"SubscribeNewsletter",setup(r){const{t:a}=u.useI18n({useScope:"global",...p.default});let s=e.ref(""),c=e.ref(!1);async function d(){try{await n.validateInputs(c,n.validateEmail,s.value,"Wrong email")}catch{return l.setError({response:{status:"Invalid Email",data:{message:"The email address entered is invalid. Please provide a valid email address."}}}),!1}gtag("event","subscribe_newsletter",{event_category:"conversion",event_label:"Subscribe Newsletter"});try{let t={type:"newsletter",contacts:{email:s.value}};const i=await m.create(t);return Promise.resolve(i.data)}catch(t){return console.log(t),l.setError(t),Promise.reject(t)}}return(t,i)=>(e.openBlock(),e.createElementBlock("section",g,[e.createElementVNode("div",f,[e.createElementVNode("div",h,[e.createElementVNode("header",w,[e.createElementVNode("h2",N,e.toDisplayString(e.unref(a)("SubscribeNewsletter.title")),1),e.createElementVNode("p",S,e.toDisplayString(e.unref(a)("SubscribeNewsletter.subtitle")),1)]),e.createElementVNode("div",E,[e.createVNode(b.default,{input:e.unref(s),typingSpeed:75,loopTyping:!1,enableTyping:!1,placeholder:e.unref(a)("SubscribeNewsletter.placeholder"),action:e.unref(a)("SubscribeNewsletter.action"),"onUpdate:input":i[0]||(i[0]=o=>e.isRef(s)?s.value=o:s=o),onAction:d,class:"mn-l-auto mn-r-auto bg-white t-black w-100 w-max-30r"},null,8,["input","placeholder","action"])])]),y])]))}},q=_.default(V,[["__scopeId","data-v-9d8f6473"]]);exports.default=q;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-i18n"),p=require("../../localization/SubscribeNewsletter.json.cjs"),b=require("../../../../components/FieldBig/FieldBig.vue.cjs"),l=require("../../../globals/views/store/globals.cjs"),m=require("../../../orders/store/applications.cjs"),n=require("../../../auth/views/validations/inputs.validation.cjs");;/* empty css */const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),v=r=>(e.pushScopeId("data-v-4a28df5c"),r=r(),e.popScopeId(),r),g={class:"pd-thin"},f={class:"pos-relative o-hidden t-black bg-main pd-big radius-big"},h={class:"pos-relative z-index-1"},w={class:"t-center z-index-1 mn-b-big"},N={class:"mn-l-auto mn-r-auto mn-b-medium"},S={class:"t-transp p-big"},E={class:"z-index-1 w-100 flex-nowrap flex"},y=v(()=>e.createElementVNode("div",{class:"w-100 h-100 pos-absolute pos-b-50-negative pos-r-0 z-index-0 grid"},[e.createElementVNode("div",{class:"spiral"})],-1)),V={__name:"SubscribeNewsletter",setup(r){const{t:a}=u.useI18n({useScope:"global",...p.default});let s=e.ref(""),c=e.ref(!1);async function d(){try{await n.validateInputs(c,n.validateEmail,s.value,"Wrong email")}catch{return l.setError({response:{status:"Invalid Email",data:{message:"The email address entered is invalid. Please provide a valid email address."}}}),!1}gtag("event","subscribe_newsletter",{event_category:"conversion",event_label:"Subscribe Newsletter"});try{let t={type:"newsletter",contacts:{email:s.value}};const i=await m.create(t);return Promise.resolve(i.data)}catch(t){return console.log(t),l.setError(t),Promise.reject(t)}}return(t,i)=>(e.openBlock(),e.createElementBlock("section",g,[e.createElementVNode("div",f,[e.createElementVNode("div",h,[e.createElementVNode("header",w,[e.createElementVNode("h2",N,e.toDisplayString(e.unref(a)("SubscribeNewsletter.title")),1),e.createElementVNode("p",S,e.toDisplayString(e.unref(a)("SubscribeNewsletter.subtitle")),1)]),e.createElementVNode("div",E,[e.createVNode(b.default,{input:e.unref(s),typingSpeed:75,loopTyping:!1,enableTyping:!1,placeholder:e.unref(a)("SubscribeNewsletter.placeholder"),action:e.unref(a)("SubscribeNewsletter.action"),"onUpdate:input":i[0]||(i[0]=o=>e.isRef(s)?s.value=o:s=o),onAction:d,class:"mn-l-auto mn-r-auto bg-white t-black w-100 w-max-30r"},null,8,["input","placeholder","action"])])]),y])]))}},q=_.default(V,[["__scopeId","data-v-4a28df5c"]]);exports.default=q;
@@ -1,17 +1,17 @@
1
- import { ref as n, openBlock as u, createElementBlock as b, createElementVNode as e, toDisplayString as c, unref as o, createVNode as _, isRef as f, pushScopeId as v, popScopeId as h } from "vue";
1
+ import { ref as n, openBlock as u, createElementBlock as b, createElementVNode as e, toDisplayString as c, unref as a, createVNode as _, isRef as f, pushScopeId as v, popScopeId as h } from "vue";
2
2
  import { useI18n as g } from "vue-i18n";
3
3
  import w from "../../localization/SubscribeNewsletter.json.js";
4
4
  import S from "../../../../components/FieldBig/FieldBig.vue.js";
5
- import { setError as p } from "../../../globals/store/globals.js";
5
+ import { setError as p } from "../../../globals/views/store/globals.js";
6
6
  import { create as x } from "../../../orders/store/applications.js";
7
- import { validateInputs as y, validateEmail as N } from "../../../middlewares/client/inputs.validation.js";
7
+ import { validateInputs as y, validateEmail as N } from "../../../auth/views/validations/inputs.validation.js";
8
8
  /* empty css */
9
9
  import I from "../../../../../../_virtual/_plugin-vue_export-helper.js";
10
- const E = (a) => (v("data-v-9d8f6473"), a = a(), h(), a), k = { class: "pd-thin" }, z = { class: "pos-relative o-hidden t-black bg-main pd-big radius-big" }, P = { class: "pos-relative z-index-1" }, T = { class: "t-center z-index-1 mn-b-big" }, V = { class: "mn-l-auto mn-r-auto mn-b-medium" }, A = { class: "t-transp p-big" }, B = { class: "z-index-1 w-100 flex-nowrap flex" }, j = /* @__PURE__ */ E(() => /* @__PURE__ */ e("div", { class: "w-100 h-100 pos-absolute pos-b-50-negative pos-r-0 z-index-0 grid" }, [
10
+ const E = (o) => (v("data-v-4a28df5c"), o = o(), h(), o), k = { class: "pd-thin" }, z = { class: "pos-relative o-hidden t-black bg-main pd-big radius-big" }, P = { class: "pos-relative z-index-1" }, T = { class: "t-center z-index-1 mn-b-big" }, V = { class: "mn-l-auto mn-r-auto mn-b-medium" }, A = { class: "t-transp p-big" }, B = { class: "z-index-1 w-100 flex-nowrap flex" }, j = /* @__PURE__ */ E(() => /* @__PURE__ */ e("div", { class: "w-100 h-100 pos-absolute pos-b-50-negative pos-r-0 z-index-0 grid" }, [
11
11
  /* @__PURE__ */ e("div", { class: "spiral" })
12
12
  ], -1)), D = {
13
13
  __name: "SubscribeNewsletter",
14
- setup(a) {
14
+ setup(o) {
15
15
  const { t: i } = g({
16
16
  useScope: "global",
17
17
  ...w
@@ -56,17 +56,17 @@ const E = (a) => (v("data-v-9d8f6473"), a = a(), h(), a), k = { class: "pd-thin"
56
56
  e("div", z, [
57
57
  e("div", P, [
58
58
  e("header", T, [
59
- e("h2", V, c(o(i)("SubscribeNewsletter.title")), 1),
60
- e("p", A, c(o(i)("SubscribeNewsletter.subtitle")), 1)
59
+ e("h2", V, c(a(i)("SubscribeNewsletter.title")), 1),
60
+ e("p", A, c(a(i)("SubscribeNewsletter.subtitle")), 1)
61
61
  ]),
62
62
  e("div", B, [
63
63
  _(S, {
64
- input: o(s),
64
+ input: a(s),
65
65
  typingSpeed: 75,
66
66
  loopTyping: !1,
67
67
  enableTyping: !1,
68
- placeholder: o(i)("SubscribeNewsletter.placeholder"),
69
- action: o(i)("SubscribeNewsletter.action"),
68
+ placeholder: a(i)("SubscribeNewsletter.placeholder"),
69
+ action: a(i)("SubscribeNewsletter.action"),
70
70
  "onUpdate:input": r[0] || (r[0] = (l) => f(s) ? s.value = l : s = l),
71
71
  onAction: m,
72
72
  class: "mn-l-auto mn-r-auto bg-white t-black w-100 w-max-30r"
@@ -77,7 +77,7 @@ const E = (a) => (v("data-v-9d8f6473"), a = a(), h(), a), k = { class: "pd-thin"
77
77
  ])
78
78
  ]));
79
79
  }
80
- }, K = /* @__PURE__ */ I(D, [["__scopeId", "data-v-9d8f6473"]]);
80
+ }, K = /* @__PURE__ */ I(D, [["__scopeId", "data-v-4a28df5c"]]);
81
81
  export {
82
82
  K as default
83
83
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */const a=require("../../../../components/Menu/Menu.vue2.cjs"),r=require("../../../../components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-light radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */const a=require("../../../../components/Menu/Menu.vue.cjs"),r=require("../../../../components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/views/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-light radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;
@@ -2,10 +2,10 @@ import { ref as l, openBlock as m, createElementBlock as u, createVNode as t, wi
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
- import p from "../../../../components/Menu/Menu.vue2.js";
5
+ import p from "../../../../components/Menu/Menu.vue.js";
6
6
  import n from "../../../../components/Menu/MenuItem.vue.js";
7
7
  import { useRoute as d, useRouter as h } from "vue-router";
8
- import "../../../auth/store/auth.js";
8
+ import "../../../auth/views/store/auth.js";
9
9
  import "./Legal.vue2.js";
10
10
  const f = { class: "for-transition w-100 pd-medium" }, _ = /* @__PURE__ */ c('<div class="bg-light radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>', 1), b = /* @__PURE__ */ a("span", null, "Terms of Use", -1), k = /* @__PURE__ */ a("span", null, "Privacy Policy", -1), v = /* @__PURE__ */ a("span", null, "Cookie Policy", -1), y = /* @__PURE__ */ a("span", null, "EULA", -1), R = {
11
11
  __name: "Legal",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),D=require("vue-router"),C=require("../blocks/CardOrderItem.vue.cjs"),B=require("../../../organizations/components/blocks/CardOrganization.vue.cjs"),q=require("../../../chats/components/pages/ChatPage.vue.cjs"),z=require("../blocks/StatusHistory.vue.cjs"),I=require("../../../globals/store/globals.cjs"),m=require("../../store/orders.cjs"),M=require("../../../products/store/products.cjs"),T=require("../../../organizations/store/organizations.cjs");;/* empty css */const P=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),n=c=>(e.pushScopeId("data-v-804d49cd"),c=c(),e.popScopeId(),c),R={key:0,class:"pd-thin"},F={key:0,class:"mn-b-thin pos-relative w-100 bg-main radius-big pd-big"},H={class:"mn-b-small"},A=n(()=>e.createElementVNode("p",{class:"mn-b-medium w-m-40r p-medium"},"Your order has been successfully created. Our manager will contact you within five minutes to confirm your order.",-1)),U={class:"radius-extra mn-b-medium flex-nowrap flex h-1r pos-relativew-40r"},W={class:"pos-absolute pos-t-medium pos-r-medium t-medium p-medium"},Y={class:"p-small t-transp"},j={key:1,class:"gap-thin cols-2"},L={class:"w-100"},G={class:"mn-b-thin bg-light w-100 o-hidden radius-medium"},J={class:"pd-small flex-nowrap flex"},K={class:"mn-r-auto"},Q=n(()=>e.createElementVNode("span",{class:"d-block t-medium p-medium"},"Your order is",-1)),X={class:"t-lh-075 h2 d-block mn-b-small"},Z=n(()=>e.createElementVNode("p",{class:"pd-t-nano pd-b-nano pd-r-thin pd-l-thin radius-extra bg-black t-white w-max"},"as on 29 aug 2021, Friday",-1)),$={class:"pd-small cols-2 br-t br-black-transp-10 br-solid"},ee=n(()=>e.createElementVNode("p",{class:"w-100 t-medium p-medium"}," Phone ",-1)),te={class:"w-100 t-right"},ae={key:0,class:"pd-small cols-2 br-t br-black-transp-10 br-solid"},se={class:"w-100 t-medium p-medium"},re={class:"w-100 t-right"},le={class:"pd-small cols-2 br-t br-black-transp-10 br-solid"},ne=n(()=>e.createElementVNode("p",{class:"t-medium p-medium"}," Address ",-1)),ie={class:"w-100 t-right"},oe={class:"pd-small cols-2 br-t br-black-transp-10 br-solid"},de=n(()=>e.createElementVNode("p",{class:"mn-b-small t-medium p-medium"}," Delivery ",-1)),ce={class:"w-100 t-right mn-b-small"},ue={key:2,class:"t-transp"},me={class:"bg-light radius-big pd-medium mn-r-bold pd-r-big br-right-dark w-100"},pe=n(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Order Summary",-1)),ve={class:"flex gap-thin flex-column mn-b-semi"},he={class:"mn-b-medium radius-small br-solid br-1px br-black-transp-10 w-100"},be={class:"pd-small br-solid br-b br-black-transp-10 flex"},_e=n(()=>e.createElementVNode("p",{class:"mn-r-auto t-transp"},"In total",-1)),ge={class:"pd-small br-solid br-b br-black-transp-10 flex"},ye=n(()=>e.createElementVNode("p",{class:"mn-r-auto t-transp"},"Delivery",-1)),Ne={class:"pd-small flex-bottom flex"},Ve=n(()=>e.createElementVNode("p",{class:"mn-r-auto t-transp"},"In total to pay",-1)),Ee={class:"p-big t-semi"},fe=n(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Chat With Us",-1)),we={__name:"Order",setup(c){D.useRouter();const u=D.useRoute(),t=e.ref(null),p=e.ref(null),r=e.ref(null);e.onMounted(async()=>{var a,l,s;t.value=await m.actions.read({_id:u.params.order}),t.value=t.value[0],p.value=await M.actions.read({organization:(a=t.value)==null?void 0:a.owner.target._id}),r.value=await T.actions.read({_id:(l=t.value)==null?void 0:l.owner.target._id,location:(s=I.state.position)==null?void 0:s.location})});let v=e.computed(()=>{var a;return Number((a=t.value)==null?void 0:a.positions.reduce((l,s)=>l+s.price*s.quantity,0))});e.computed(()=>{var a;return Number((a=t.value)==null?void 0:a.positions.reduce((l,s)=>l+s.quantity,0))});let S=e.computed(()=>{var a;return(a=t.value)==null?void 0:a.positions.map(({_id:l,quantity:s})=>{const i=p.value.find(o=>o._id===l);return{name:i.name,images:i.images,price:i.price,_id:i._id,quantity:s}})});function O(a,l){if(!a)return null;const s=10*60*1e3,i=Math.ceil((20+3*a)/5)*5*60*1e3,o=new Date(l).getTime(),d=new Date(o+s+i);return console.log(l),console.log(d),d}return(a,l)=>{var s,i,o,d,h,b,_,g,y,N,V,E,f,w,k;return t.value&&r.value?(e.openBlock(),e.createElementBlock("div",R,[t.value?(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("h2",H,"Order is "+e.toDisplayString(t.value.status),1),A,e.createElementVNode("div",U,[e.createElementVNode("div",{class:e.normalizeClass(["bg-light br-anim br-glow radius-extra mn-r-thin h-100 w-20",{"br-anim br-glow br-glow-anim":["created","confirmed","packing","in delivery","delivered"].indexOf(t.value.status)===0}])},null,2),e.createElementVNode("div",{class:e.normalizeClass(["bg-light br-anim br-glow radius-extra mn-r-thin h-100 w-20",{"br-anim br-glow br-glow-anim":["created","confirmed","packing","in delivery","delivered"].indexOf(t.value.status)===0},{"t-transp":["created","confirmed","packing","in delivery","delivered"].indexOf(t.value.status)===-1},{blink:t.value.status==="created"}])},null,2),e.createElementVNode("div",{class:e.normalizeClass([{"br-anim br-glow br-glow-anim":["confirmed","packing","in delivery","delivered"].indexOf(t.value.status)===0},{"t-transp":["confirmed","packing","in delivery","delivered"].indexOf(t.value.status)===-1},{blink:t.value.status==="confirmed"},"bg-light radius-extra mn-r-thin h-100 w-40"])},null,2),e.createElementVNode("div",{class:e.normalizeClass(["bg-light radius-extra mn-r-thin h-100 w-40",{"br-anim br-glow br-glow-anim":["packing","in delivery","delivered"].indexOf(t.value.status)===0},{"t-transp":["packing","in delivery","delivered"].indexOf(t.value.status)===-1},{blink:t.value.status==="packing"}])},null,2),e.createElementVNode("div",{class:e.normalizeClass(["bg-light radius-extra h-100 w-20",{"br-anim br-glow br-glow-anim":["in delivery","delivered"].indexOf(t.value.status)===0},{"t-transp":["in delivery","delivered"].indexOf(t.value.status)===-1},{blink:t.value.status==="in delivery"}])},null,2)]),e.createElementVNode("p",null,"Estimated Arrival "+e.toDisplayString(a.formatDate(O((s=r.value[0])==null?void 0:s.distance,t.value.createdAt))),1),e.createElementVNode("h3",null,e.toDisplayString((i=r.value[0])!=null&&i.distance?Math.ceil((10+3*((o=r.value[0])==null?void 0:o.distance))/5)*5+"-"+Math.ceil((20+3*((d=r.value[0])==null?void 0:d.distance))/5)*5+" MIN":"Unavailable"),1),e.createElementVNode("p",W,[e.createTextVNode(" Order No: "),e.createElementVNode("span",Y,"#"+e.toDisplayString(t.value._id),1)])])):e.createCommentVNode("",!0),t.value?(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("div",L,[r.value[0]?(e.openBlock(),e.createBlock(B.default,{key:0,organization:r.value[0],showRating:!0,showFollowers:!1,showProducts:!1,class:"bg-light mn-b-thin w-100 o-hidden radius-big pd-small"},null,8,["organization"])):e.createCommentVNode("",!0),e.createElementVNode("div",G,[e.createElementVNode("div",J,[e.createElementVNode("div",K,[Q,e.createElementVNode("span",X,e.toDisplayString(t.value.status),1),Z])]),e.createElementVNode("div",$,[ee,e.createElementVNode("p",te,e.toDisplayString((h=t.value.user)==null?void 0:h.number),1)]),(b=t.value.user)!=null&&b.messenger.type?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("p",se,e.toDisplayString((_=t.value.user)==null?void 0:_.messenger.type),1),e.createElementVNode("p",re,e.toDisplayString((g=t.value.user)==null?void 0:g.messenger.value),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",le,[ne,e.createElementVNode("p",ie,e.toDisplayString((y=t.value.delivery)==null?void 0:y.address.slice(0,64)),1)]),e.createElementVNode("div",oe,[de,e.createElementVNode("p",ce,e.toDisplayString((N=t.value.delivery)==null?void 0:N.type),1)])]),m.state.current.status_history?(e.openBlock(),e.createBlock(z.default,{key:1,statusHistory:m.state.current.status_history,statusCurrent:m.state.current.status,edit:e.unref(u).name==="Order Edit"},null,8,["statusHistory","statusCurrent","edit"])):e.createCommentVNode("",!0),a.payment&&a.payment.Status==="CONFIRMED"?(e.openBlock(),e.createElementBlock("span",ue,"Paid")):e.createCommentVNode("",!0)]),e.createElementVNode("div",me,[pe,e.createElementVNode("ul",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(S),(x,xe)=>(e.openBlock(),e.createBlock(C.default,{key:x._id,editable:!1,product:x},null,8,["product"]))),128))]),e.createElementVNode("div",he,[e.createElementVNode("div",be,[_e,e.createElementVNode("p",null,e.toDisplayString(e.unref(v))+" "+e.toDisplayString(a.returnCurrency()),1)]),e.createElementVNode("div",ge,[ye,e.createElementVNode("p",null,e.toDisplayString(a.returnCurrency())+" "+e.toDisplayString(Math.trunc(100+20*((V=r.value[0])==null?void 0:V.distance)-7,5*(((E=r.value[0])==null?void 0:E.distance)/10))),1)]),e.createElementVNode("div",Ne,[Ve,e.createElementVNode("p",Ee,e.toDisplayString(a.returnCurrency())+" "+e.toDisplayString(Math.trunc(100+20*((f=r.value[0])==null?void 0:f.distance)-7,5*(((w=r.value[0])==null?void 0:w.distance)/10))+e.unref(v)),1)])]),fe,e.createVNode(q.default,{username:e.unref(u).name==="Order Status"?((k=t.value.user)==null?void 0:k.name)||"User":"Weeder Support",chatID:e.unref(u).params.order,class:"radius-semi bg-white o-hidden"},null,8,["username","chatID"])])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}},ke=P.default(we,[["__scopeId","data-v-804d49cd"]]);exports.default=ke;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),D=require("vue-router"),C=require("../blocks/CardOrderItem.vue.cjs"),B=require("../../../organizations/components/blocks/CardOrganization.vue.cjs"),q=require("../../../chats/components/pages/ChatPage.vue.cjs"),z=require("../blocks/StatusHistory.vue.cjs"),I=require("../../../globals/views/store/globals.cjs"),m=require("../../store/orders.cjs"),M=require("../../../products/store/products.cjs"),T=require("../../../organizations/store/organizations.cjs");;/* empty css */const P=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),n=c=>(e.pushScopeId("data-v-d2db1c69"),c=c(),e.popScopeId(),c),R={key:0,class:"pd-thin"},F={key:0,class:"mn-b-thin pos-relative w-100 bg-main radius-big pd-big"},H={class:"mn-b-small"},A=n(()=>e.createElementVNode("p",{class:"mn-b-medium w-m-40r p-medium"},"Your order has been successfully created. Our manager will contact you within five minutes to confirm your order.",-1)),U={class:"radius-extra mn-b-medium flex-nowrap flex h-1r pos-relativew-40r"},W={class:"pos-absolute pos-t-medium pos-r-medium t-medium p-medium"},Y={class:"p-small t-transp"},j={key:1,class:"gap-thin cols-2"},L={class:"w-100"},G={class:"mn-b-thin bg-light w-100 o-hidden radius-medium"},J={class:"pd-small flex-nowrap flex"},K={class:"mn-r-auto"},Q=n(()=>e.createElementVNode("span",{class:"d-block t-medium p-medium"},"Your order is",-1)),X={class:"t-lh-075 h2 d-block mn-b-small"},Z=n(()=>e.createElementVNode("p",{class:"pd-t-nano pd-b-nano pd-r-thin pd-l-thin radius-extra bg-black t-white w-max"},"as on 29 aug 2021, Friday",-1)),$={class:"pd-small cols-2 br-t br-black-transp-10 br-solid"},ee=n(()=>e.createElementVNode("p",{class:"w-100 t-medium p-medium"}," Phone ",-1)),te={class:"w-100 t-right"},ae={key:0,class:"pd-small cols-2 br-t br-black-transp-10 br-solid"},se={class:"w-100 t-medium p-medium"},re={class:"w-100 t-right"},le={class:"pd-small cols-2 br-t br-black-transp-10 br-solid"},ne=n(()=>e.createElementVNode("p",{class:"t-medium p-medium"}," Address ",-1)),ie={class:"w-100 t-right"},oe={class:"pd-small cols-2 br-t br-black-transp-10 br-solid"},de=n(()=>e.createElementVNode("p",{class:"mn-b-small t-medium p-medium"}," Delivery ",-1)),ce={class:"w-100 t-right mn-b-small"},ue={key:2,class:"t-transp"},me={class:"bg-light radius-big pd-medium mn-r-bold pd-r-big br-right-dark w-100"},pe=n(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Order Summary",-1)),ve={class:"flex gap-thin flex-column mn-b-semi"},be={class:"mn-b-medium radius-small br-solid br-1px br-black-transp-10 w-100"},he={class:"pd-small br-solid br-b br-black-transp-10 flex"},_e=n(()=>e.createElementVNode("p",{class:"mn-r-auto t-transp"},"In total",-1)),ge={class:"pd-small br-solid br-b br-black-transp-10 flex"},ye=n(()=>e.createElementVNode("p",{class:"mn-r-auto t-transp"},"Delivery",-1)),Ne={class:"pd-small flex-bottom flex"},Ve=n(()=>e.createElementVNode("p",{class:"mn-r-auto t-transp"},"In total to pay",-1)),Ee={class:"p-big t-semi"},fe=n(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Chat With Us",-1)),we={__name:"Order",setup(c){D.useRouter();const u=D.useRoute(),t=e.ref(null),p=e.ref(null),r=e.ref(null);e.onMounted(async()=>{var a,l,s;t.value=await m.actions.read({_id:u.params.order}),t.value=t.value[0],p.value=await M.actions.read({organization:(a=t.value)==null?void 0:a.owner.target._id}),r.value=await T.actions.read({_id:(l=t.value)==null?void 0:l.owner.target._id,location:(s=I.state.position)==null?void 0:s.location})});let v=e.computed(()=>{var a;return Number((a=t.value)==null?void 0:a.positions.reduce((l,s)=>l+s.price*s.quantity,0))});e.computed(()=>{var a;return Number((a=t.value)==null?void 0:a.positions.reduce((l,s)=>l+s.quantity,0))});let S=e.computed(()=>{var a;return(a=t.value)==null?void 0:a.positions.map(({_id:l,quantity:s})=>{const i=p.value.find(o=>o._id===l);return{name:i.name,images:i.images,price:i.price,_id:i._id,quantity:s}})});function O(a,l){if(!a)return null;const s=10*60*1e3,i=Math.ceil((20+3*a)/5)*5*60*1e3,o=new Date(l).getTime(),d=new Date(o+s+i);return console.log(l),console.log(d),d}return(a,l)=>{var s,i,o,d,b,h,_,g,y,N,V,E,f,w,k;return t.value&&r.value?(e.openBlock(),e.createElementBlock("div",R,[t.value?(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("h2",H,"Order is "+e.toDisplayString(t.value.status),1),A,e.createElementVNode("div",U,[e.createElementVNode("div",{class:e.normalizeClass(["bg-light br-anim br-glow radius-extra mn-r-thin h-100 w-20",{"br-anim br-glow br-glow-anim":["created","confirmed","packing","in delivery","delivered"].indexOf(t.value.status)===0}])},null,2),e.createElementVNode("div",{class:e.normalizeClass(["bg-light br-anim br-glow radius-extra mn-r-thin h-100 w-20",{"br-anim br-glow br-glow-anim":["created","confirmed","packing","in delivery","delivered"].indexOf(t.value.status)===0},{"t-transp":["created","confirmed","packing","in delivery","delivered"].indexOf(t.value.status)===-1},{blink:t.value.status==="created"}])},null,2),e.createElementVNode("div",{class:e.normalizeClass([{"br-anim br-glow br-glow-anim":["confirmed","packing","in delivery","delivered"].indexOf(t.value.status)===0},{"t-transp":["confirmed","packing","in delivery","delivered"].indexOf(t.value.status)===-1},{blink:t.value.status==="confirmed"},"bg-light radius-extra mn-r-thin h-100 w-40"])},null,2),e.createElementVNode("div",{class:e.normalizeClass(["bg-light radius-extra mn-r-thin h-100 w-40",{"br-anim br-glow br-glow-anim":["packing","in delivery","delivered"].indexOf(t.value.status)===0},{"t-transp":["packing","in delivery","delivered"].indexOf(t.value.status)===-1},{blink:t.value.status==="packing"}])},null,2),e.createElementVNode("div",{class:e.normalizeClass(["bg-light radius-extra h-100 w-20",{"br-anim br-glow br-glow-anim":["in delivery","delivered"].indexOf(t.value.status)===0},{"t-transp":["in delivery","delivered"].indexOf(t.value.status)===-1},{blink:t.value.status==="in delivery"}])},null,2)]),e.createElementVNode("p",null,"Estimated Arrival "+e.toDisplayString(a.formatDate(O((s=r.value[0])==null?void 0:s.distance,t.value.createdAt))),1),e.createElementVNode("h3",null,e.toDisplayString((i=r.value[0])!=null&&i.distance?Math.ceil((10+3*((o=r.value[0])==null?void 0:o.distance))/5)*5+"-"+Math.ceil((20+3*((d=r.value[0])==null?void 0:d.distance))/5)*5+" MIN":"Unavailable"),1),e.createElementVNode("p",W,[e.createTextVNode(" Order No: "),e.createElementVNode("span",Y,"#"+e.toDisplayString(t.value._id),1)])])):e.createCommentVNode("",!0),t.value?(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("div",L,[r.value[0]?(e.openBlock(),e.createBlock(B.default,{key:0,organization:r.value[0],showRating:!0,showFollowers:!1,showProducts:!1,class:"bg-light mn-b-thin w-100 o-hidden radius-big pd-small"},null,8,["organization"])):e.createCommentVNode("",!0),e.createElementVNode("div",G,[e.createElementVNode("div",J,[e.createElementVNode("div",K,[Q,e.createElementVNode("span",X,e.toDisplayString(t.value.status),1),Z])]),e.createElementVNode("div",$,[ee,e.createElementVNode("p",te,e.toDisplayString((b=t.value.user)==null?void 0:b.number),1)]),(h=t.value.user)!=null&&h.messenger.type?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("p",se,e.toDisplayString((_=t.value.user)==null?void 0:_.messenger.type),1),e.createElementVNode("p",re,e.toDisplayString((g=t.value.user)==null?void 0:g.messenger.value),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",le,[ne,e.createElementVNode("p",ie,e.toDisplayString((y=t.value.delivery)==null?void 0:y.address.slice(0,64)),1)]),e.createElementVNode("div",oe,[de,e.createElementVNode("p",ce,e.toDisplayString((N=t.value.delivery)==null?void 0:N.type),1)])]),m.state.current.status_history?(e.openBlock(),e.createBlock(z.default,{key:1,statusHistory:m.state.current.status_history,statusCurrent:m.state.current.status,edit:e.unref(u).name==="Order Edit"},null,8,["statusHistory","statusCurrent","edit"])):e.createCommentVNode("",!0),a.payment&&a.payment.Status==="CONFIRMED"?(e.openBlock(),e.createElementBlock("span",ue,"Paid")):e.createCommentVNode("",!0)]),e.createElementVNode("div",me,[pe,e.createElementVNode("ul",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(S),(x,xe)=>(e.openBlock(),e.createBlock(C.default,{key:x._id,editable:!1,product:x},null,8,["product"]))),128))]),e.createElementVNode("div",be,[e.createElementVNode("div",he,[_e,e.createElementVNode("p",null,e.toDisplayString(e.unref(v))+" "+e.toDisplayString(a.returnCurrency()),1)]),e.createElementVNode("div",ge,[ye,e.createElementVNode("p",null,e.toDisplayString(a.returnCurrency())+" "+e.toDisplayString(Math.trunc(100+20*((V=r.value[0])==null?void 0:V.distance)-7,5*(((E=r.value[0])==null?void 0:E.distance)/10))),1)]),e.createElementVNode("div",Ne,[Ve,e.createElementVNode("p",Ee,e.toDisplayString(a.returnCurrency())+" "+e.toDisplayString(Math.trunc(100+20*((f=r.value[0])==null?void 0:f.distance)-7,5*(((w=r.value[0])==null?void 0:w.distance)/10))+e.unref(v)),1)])]),fe,e.createVNode(q.default,{username:e.unref(u).name==="Order Status"?((k=t.value.user)==null?void 0:k.name)||"User":"Weeder Support",chatID:e.unref(u).params.order,class:"radius-semi bg-white o-hidden"},null,8,["username","chatID"])])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}},ke=P.default(we,[["__scopeId","data-v-d2db1c69"]]);exports.default=ke;
@@ -4,13 +4,13 @@ import j from "../blocks/CardOrderItem.vue.js";
4
4
  import G from "../../../organizations/components/blocks/CardOrganization.vue.js";
5
5
  import J from "../../../chats/components/pages/ChatPage.vue.js";
6
6
  import K from "../blocks/StatusHistory.vue.js";
7
- import { state as Q } from "../../../globals/store/globals.js";
7
+ import { state as Q } from "../../../globals/views/store/globals.js";
8
8
  import { actions as X, state as y } from "../../store/orders.js";
9
9
  import { actions as Z } from "../../../products/store/products.js";
10
10
  import { actions as ee } from "../../../organizations/store/organizations.js";
11
11
  /* empty css */
12
12
  import se from "../../../../../../_virtual/_plugin-vue_export-helper.js";
13
- const n = (h) => (H("data-v-804d49cd"), h = h(), W(), h), te = {
13
+ const n = (h) => (H("data-v-d2db1c69"), h = h(), W(), h), te = {
14
14
  key: 0,
15
15
  class: "pd-thin"
16
16
  }, ae = {
@@ -196,7 +196,7 @@ const n = (h) => (H("data-v-804d49cd"), h = h(), W(), h), te = {
196
196
  ])) : u("", !0);
197
197
  };
198
198
  }
199
- }, ts = /* @__PURE__ */ se(qe, [["__scopeId", "data-v-804d49cd"]]);
199
+ }, ts = /* @__PURE__ */ se(qe, [["__scopeId", "data-v-d2db1c69"]]);
200
200
  export {
201
201
  ts as default
202
202
  };