@ozdao/prometheus-framework 0.2.187 → 0.2.189

Sign up to get free protection for your applications and to get access to all the features.
Files changed (520) hide show
  1. package/dist/auth.server.js +35 -23
  2. package/dist/auth.server.mjs +35 -23
  3. package/dist/builder.js +6 -3
  4. package/dist/builder.mjs +6 -3
  5. package/dist/events.server.js +1 -1
  6. package/dist/events.server.mjs +1 -1
  7. package/dist/globals.server.js +1 -1
  8. package/dist/globals.server.mjs +1 -1
  9. package/dist/mailing-BQKyTI-q.js +77 -0
  10. package/dist/mailing-C3VD4l0h.mjs +78 -0
  11. package/dist/main-BVZtf9OG.js +92 -0
  12. package/dist/main-CbTw08vO.mjs +13584 -0
  13. package/dist/node_modules/@unhead/vue/dist/shared/vue.cf295fb1.cjs +1 -0
  14. package/dist/node_modules/@unhead/vue/dist/shared/vue.cf295fb1.js +26 -0
  15. package/dist/node_modules/@unhead/vue/dist/shared/vue.f36acd1f.cjs +1 -0
  16. package/dist/node_modules/@unhead/vue/dist/shared/vue.f36acd1f.js +26 -0
  17. package/dist/node_modules/unhead/dist/index.cjs +1 -0
  18. package/dist/node_modules/unhead/dist/index.js +7 -0
  19. package/dist/orders.server.js +162 -12
  20. package/dist/orders.server.mjs +162 -12
  21. package/dist/organizations.server.js +1 -1
  22. package/dist/organizations.server.mjs +1 -1
  23. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +5 -5
  25. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/auth/auth.client.js +41 -22
  27. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -0
  28. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +41 -0
  29. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -0
  30. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +124 -0
  31. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -0
  32. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +94 -0
  33. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -0
  34. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +82 -0
  35. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -0
  36. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +118 -0
  37. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -0
  38. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +168 -0
  39. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -0
  40. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +129 -0
  41. package/dist/prometheus-framework/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs +1 -0
  42. package/dist/prometheus-framework/src/modules/auth/views/components/sections/SliderFeatures.vue.js +88 -0
  43. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterCode.json.cjs +1 -0
  44. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterCode.json.js +20 -0
  45. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterPassword.json.cjs +1 -0
  46. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterPassword.json.js +26 -0
  47. package/dist/prometheus-framework/src/modules/auth/views/localization/ResetPassword.json.cjs +1 -0
  48. package/dist/prometheus-framework/src/modules/auth/views/localization/ResetPassword.json.js +30 -0
  49. package/dist/prometheus-framework/src/modules/auth/views/localization/SignIn.json.cjs +1 -0
  50. package/dist/prometheus-framework/src/modules/auth/views/localization/SignIn.json.js +38 -0
  51. package/dist/prometheus-framework/src/modules/auth/views/localization/SignUp.json.cjs +1 -0
  52. package/dist/prometheus-framework/src/modules/auth/views/localization/SignUp.json.js +32 -0
  53. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs +1 -0
  54. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js +30 -0
  55. package/dist/prometheus-framework/src/modules/auth/views/router/auth.cjs +1 -0
  56. package/dist/prometheus-framework/src/modules/auth/views/router/auth.js +119 -0
  57. package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs +1 -0
  58. package/dist/prometheus-framework/src/modules/auth/views/store/auth.js +176 -0
  59. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs +1 -0
  60. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.js +31 -0
  61. package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.cjs +1 -0
  62. package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.js +45 -0
  63. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +1 -1
  65. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +2 -2
  67. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +2 -2
  69. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +1 -1
  71. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  75. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +3 -4
  77. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +73 -42
  79. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +10 -10
  81. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  83. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +1 -1
  85. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  87. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
  89. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
  91. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +2 -2
  95. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  97. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
  101. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +12 -13
  103. package/dist/prometheus-framework/src/modules/events/components/sections/FeaturedEvents.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/events/components/sections/FeaturedEvents.vue.js +1 -1
  105. package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/events/router/events.js +1 -1
  107. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
  109. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
  111. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
  113. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  115. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
  117. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  119. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/globals/globals.client.js +34 -10
  121. package/dist/prometheus-framework/src/modules/globals/localization/get-browser-locale.cjs +1 -0
  122. package/dist/prometheus-framework/src/modules/globals/localization/get-browser-locale.js +7 -0
  123. package/dist/prometheus-framework/src/modules/globals/router/scrollBehavior.cjs +1 -0
  124. package/dist/prometheus-framework/src/modules/globals/router/scrollBehavior.js +18 -0
  125. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/globals/store/globals.js +38 -76
  127. package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.cjs +1 -0
  128. package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.js +72 -0
  129. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +1 -0
  130. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.js +57 -0
  131. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +1 -0
  132. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +35 -0
  133. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSorting.vue.cjs +1 -0
  134. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSorting.vue.js +75 -0
  135. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -0
  136. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +194 -0
  137. package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.cjs +1 -0
  138. package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.js +38 -0
  139. package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonSort.vue.cjs +1 -0
  140. package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonSort.vue.js +31 -0
  141. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -0
  142. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +66 -0
  143. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Empty.vue.cjs +1 -0
  144. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Empty.vue.js +16 -0
  145. package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -0
  146. package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +54 -0
  147. package/dist/prometheus-framework/src/modules/globals/views/localization/get-browser-locale.cjs +1 -0
  148. package/dist/prometheus-framework/src/modules/globals/views/localization/get-browser-locale.js +7 -0
  149. package/dist/prometheus-framework/src/modules/globals/views/mixins/mixins.cjs +1 -0
  150. package/dist/prometheus-framework/src/modules/globals/views/mixins/mixins.js +47 -0
  151. package/dist/prometheus-framework/src/modules/globals/views/router/scrollBehavior.cjs +1 -0
  152. package/dist/prometheus-framework/src/modules/globals/views/router/scrollBehavior.js +18 -0
  153. package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs +1 -0
  154. package/dist/prometheus-framework/src/modules/globals/views/store/globals.js +83 -0
  155. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +11 -11
  157. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  159. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +3 -3
  161. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +3 -3
  163. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +2 -2
  165. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  167. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +3 -3
  169. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +3 -3
  171. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  173. package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.js +1 -1
  175. package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +1 -1
  177. package/dist/prometheus-framework/src/modules/orders/store/applications.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/orders/store/applications.js +1 -1
  179. package/dist/prometheus-framework/src/modules/orders/store/customers.store.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/orders/store/customers.store.js +1 -1
  181. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
  183. package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +1 -1
  185. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  187. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -4
  189. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  190. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +4 -4
  191. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -5
  193. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +2 -2
  195. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  196. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -4
  197. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  199. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -4
  201. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  203. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +1 -1
  205. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.js +2 -2
  207. package/dist/prometheus-framework/src/modules/organizations/router/departments.router.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/organizations/router/departments.router.js +1 -1
  209. package/dist/prometheus-framework/src/modules/organizations/router/members.router.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/organizations/router/members.router.js +1 -1
  211. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +2 -2
  213. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  214. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  215. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  216. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +2 -2
  217. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
  219. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
  221. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.cjs +1 -1
  222. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.js +2 -2
  223. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
  225. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.js +3 -3
  227. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
  229. package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.js +1 -1
  231. package/dist/prometheus-framework/src/modules/pages/views/router/pages.router.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/pages/views/router/pages.router.js +1 -1
  233. package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs +1 -1
  234. package/dist/prometheus-framework/src/modules/pages/views/store/pages.js +1 -1
  235. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
  236. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +3 -3
  237. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  238. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  239. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -4
  243. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +2 -3
  245. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  246. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +2 -2
  247. package/dist/prometheus-framework/src/modules/products/router/categories.router.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/products/router/categories.router.js +1 -1
  249. package/dist/prometheus-framework/src/modules/products/router/leftovers.router.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/products/router/leftovers.router.js +1 -1
  251. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/products/router/products.router.js +1 -1
  253. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
  255. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
  257. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
  259. package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
  261. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +3 -4
  263. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +3 -3
  265. package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/spots/router/spots.js +2 -2
  267. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
  269. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  271. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  273. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -4
  275. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  277. package/dist/prometheus-framework/src/modules/users/router/users.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/users/router/users.js +3 -4
  279. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +1 -1
  281. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
  283. package/dist/prometheus-framework/src/modules/wallet/views/router/payments.router.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/wallet/views/router/payments.router.js +1 -1
  285. package/dist/prometheus-framework/src/modules/wallet/views/store/payments.store.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/wallet/views/store/payments.store.js +1 -1
  287. package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.js +1 -1
  289. package/dist/prometheus-framework.cjs.js +1 -1
  290. package/dist/prometheus-framework.es.js +1 -1
  291. package/dist/style.css +1 -1
  292. package/dist/tickets.controller-BWVUA-GR.js +401 -0
  293. package/dist/tickets.controller-ChVmHHnj.mjs +402 -0
  294. package/dist/wallet.server.js +1 -1
  295. package/dist/wallet.server.mjs +1 -1
  296. package/dist/web-CK9TrlwB.js +1 -0
  297. package/dist/web-aOWHNbX1.mjs +54 -0
  298. package/package.json +1 -1
  299. package/src/builder/modes/ssr.dev.js +4 -1
  300. package/src/builder/templates/page.js +1 -1
  301. package/src/builder/webpack/webpack.config.base.js +2 -1
  302. package/src/builder/webpack/webpack.config.spa.js +0 -1
  303. package/src/components/Breadcrumbs/Breadcrumbs.vue +0 -1
  304. package/src/components/Feed/Feed.vue +5 -5
  305. package/src/components/Sidebar/Sidebar.vue +2 -2
  306. package/src/modules/auth/auth.client.js +53 -28
  307. package/src/modules/auth/auth.server.js +32 -14
  308. package/src/modules/auth/{routes → controllers/routes}/auth.routes.js +3 -3
  309. package/src/modules/auth/{routes → controllers/routes}/twofa.routes.js +2 -2
  310. package/src/modules/auth/controllers/{auth.controller.js → services/auth.service.js} +2 -3
  311. package/src/modules/auth/controllers/{twofa.controller.js → services/twofa.service.js} +1 -1
  312. package/src/modules/auth/models/role.model.js +9 -8
  313. package/src/modules/auth/{components → views/components}/layouts/Auth.vue +3 -3
  314. package/src/modules/auth/{components → views/components}/pages/EnterCode.vue +4 -4
  315. package/src/modules/auth/{components → views/components}/pages/EnterPassword.vue +3 -3
  316. package/src/modules/auth/{components → views/components}/pages/Invite.vue +2 -2
  317. package/src/modules/auth/{components → views/components}/pages/ResetPassword.vue +4 -4
  318. package/src/modules/auth/{components → views/components}/pages/SignIn.vue +3 -3
  319. package/src/modules/auth/{components → views/components}/pages/SignUp.vue +4 -4
  320. package/src/modules/{middlewares/client → auth/views/middlewares}/auth.validation.js +20 -1
  321. package/src/modules/auth/views/router/auth.js +102 -0
  322. package/src/modules/auth/{store → views/store}/auth.js +1 -1
  323. package/src/modules/auth/{store → views/store}/twofa.js +1 -1
  324. package/src/modules/{middlewares/client → auth/views/validations}/inputs.validation.js +3 -6
  325. package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
  326. package/src/modules/backoffice/components/pages/Dashboard.vue +1 -1
  327. package/src/modules/backoffice/components/partials/Sidebar.vue +1 -1
  328. package/src/modules/backoffice/router/backoffice.js +2 -2
  329. package/src/modules/chats/controllers/chats.controller.js +1 -1
  330. package/src/modules/chats/routes/chats.routes.js +1 -1
  331. package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
  332. package/src/modules/community/components/layouts/Community.vue +1 -1
  333. package/src/modules/community/components/pages/Blog.vue +1 -1
  334. package/src/modules/community/components/pages/BlogPost.vue +64 -3
  335. package/src/modules/community/components/pages/Community.vue +1 -1
  336. package/src/modules/community/components/pages/CreateBlogPost.vue +1 -1
  337. package/src/modules/community/components/sections/Comment.vue +1 -1
  338. package/src/modules/community/components/sections/HotPosts.vue +1 -1
  339. package/src/modules/community/models/blogpost.model.js +4 -4
  340. package/src/modules/community/routes/blog.routes.js +1 -1
  341. package/src/modules/community/store/blogposts.js +1 -1
  342. package/src/modules/community/store/reactions.js +1 -1
  343. package/src/modules/events/components/blocks/CardEvent.vue +2 -2
  344. package/src/modules/events/components/elements/ButtonJoin.vue +1 -1
  345. package/src/modules/events/components/pages/EditEvent.vue +1 -1
  346. package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
  347. package/src/modules/events/components/pages/Event.vue +1 -1
  348. package/src/modules/events/components/pages/Events.vue +1 -1
  349. package/src/modules/events/components/sections/FeaturedEvents.vue +1 -1
  350. package/src/modules/events/controllers/events.controller.js +1 -1
  351. package/src/modules/events/controllers/tickets.controller.js +1 -1
  352. package/src/modules/events/models/event.model.js +4 -4
  353. package/src/modules/events/router/events.js +1 -1
  354. package/src/modules/events/routes/events.routes.js +1 -1
  355. package/src/modules/events/store/events.js +1 -1
  356. package/src/modules/events/store/tickets.js +1 -1
  357. package/src/modules/files/routes/files.routes.js +1 -1
  358. package/src/modules/gallery/components/pages/Gallery.vue +2 -2
  359. package/src/modules/gallery/components/sections/BackofficeGallery.vue +3 -3
  360. package/src/modules/gallery/models/photo.model.js +3 -3
  361. package/src/modules/gallery/routes/gallery.routes.js +2 -2
  362. package/src/modules/gallery/store/gallery.js +1 -1
  363. package/src/modules/globals/{services → controllers/classes}/globals.crud.js +2 -2
  364. package/src/modules/globals/globals.client.js +79 -8
  365. package/src/modules/globals/globals.server.js +3 -3
  366. package/src/modules/globals/models/{metadata.schema.js → schemas/metadata.schema.js} +1 -1
  367. package/src/modules/globals/{services → views/classes}/globals.store.js +1 -1
  368. package/src/modules/globals/{components → views/components}/blocks/BlockSorting.vue +1 -1
  369. package/src/modules/globals/views/components/layouts/App.vue +83 -0
  370. package/src/modules/globals/{components → views/components}/layouts/Client.vue +8 -8
  371. package/src/modules/globals/{components → views/components}/partials/Header.vue +1 -1
  372. package/src/modules/globals/views/middlewares/localization.js +16 -0
  373. package/src/modules/globals/views/router/scrollBehavior.js +30 -0
  374. package/src/modules/globals/{store → views/store}/globals.js +3 -3
  375. package/src/modules/integrations/stripe/controllers/webhooks/stripe.webhook.js +2 -2
  376. package/src/modules/landing/components/sections/SubscribeNewsletter.vue +2 -2
  377. package/src/modules/legal/components/pages/Legal.vue +1 -1
  378. package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
  379. package/src/modules/marketplace/router/marketplace.js +1 -1
  380. package/src/modules/orders/components/pages/Order.vue +1 -1
  381. package/src/modules/orders/components/pages/OrderBackoffice.vue +2 -2
  382. package/src/modules/orders/components/pages/OrderCreate.vue +2 -2
  383. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +3 -3
  384. package/src/modules/orders/components/pages/Orders.vue +3 -3
  385. package/src/modules/orders/components/sections/FormAddCustomer.vue +3 -3
  386. package/src/modules/orders/components/sections/FormDelivery.vue +1 -1
  387. package/src/modules/orders/controllers/applications.controller.js +1 -1
  388. package/src/modules/orders/controllers/orders.controller.js +1 -1
  389. package/src/modules/orders/models/customer.model.js +3 -3
  390. package/src/modules/orders/models/order.model.js +1 -2
  391. package/src/modules/orders/orders.server.js +4 -2
  392. package/src/modules/orders/router/orders.backoffice.router.js +1 -1
  393. package/src/modules/orders/router/orders.router.js +1 -1
  394. package/src/modules/orders/routes/applications.routes.js +2 -1
  395. package/src/modules/orders/routes/orders.routes.js +1 -1
  396. package/src/modules/orders/store/applications.js +1 -1
  397. package/src/modules/orders/store/customers.store.js +1 -1
  398. package/src/modules/orders/store/orders.js +1 -1
  399. package/src/modules/orders/store/shopcart.js +1 -1
  400. package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +1 -1
  401. package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
  402. package/src/modules/organizations/components/pages/Members.vue +3 -3
  403. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  404. package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +1 -1
  405. package/src/modules/organizations/components/pages/OrganizationCreate.vue +1 -1
  406. package/src/modules/organizations/components/pages/OrganizationDetails.vue +2 -2
  407. package/src/modules/organizations/components/pages/OrganizationEdit.vue +1 -1
  408. package/src/modules/organizations/components/pages/Organizations.vue +1 -1
  409. package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
  410. package/src/modules/organizations/components/sections/Organizations.vue +1 -1
  411. package/src/modules/organizations/components/sections/Publics.vue +1 -1
  412. package/src/modules/organizations/controllers/invites.controller.js +1 -1
  413. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  414. package/src/modules/organizations/models/invite.model.js +2 -2
  415. package/src/modules/organizations/models/organization.model.js +1 -1
  416. package/src/modules/organizations/router/backoffice.router.js +2 -2
  417. package/src/modules/organizations/router/departments.router.js +1 -1
  418. package/src/modules/organizations/router/members.router.js +1 -1
  419. package/src/modules/organizations/router/organizations.js +2 -2
  420. package/src/modules/organizations/routes/invites.routes.js +1 -1
  421. package/src/modules/organizations/store/departments.js +1 -1
  422. package/src/modules/organizations/store/invites.js +2 -2
  423. package/src/modules/organizations/store/memberships.js +1 -1
  424. package/src/modules/organizations/store/organizations.js +1 -1
  425. package/src/modules/pages/pages.server.js +1 -1
  426. package/src/modules/pages/views/components/pages/Page.vue +2 -2
  427. package/src/modules/pages/views/components/pages/PageEdit.vue +1 -1
  428. package/src/modules/pages/views/components/pages/Pages.vue +3 -3
  429. package/src/modules/pages/views/components/partials/SidebarPages.vue +2 -2
  430. package/src/modules/pages/views/router/pages.backoffice.router.js +1 -1
  431. package/src/modules/pages/views/router/pages.router.js +1 -1
  432. package/src/modules/pages/views/store/pages.js +1 -1
  433. package/src/modules/pages/views/store/pages.store.js +1 -1
  434. package/src/modules/products/components/blocks/CardLeftover.vue +1 -1
  435. package/src/modules/products/components/pages/EditLeftover.vue +2 -2
  436. package/src/modules/products/components/pages/Product.vue +1 -1
  437. package/src/modules/products/components/pages/ProductEdit.vue +1 -1
  438. package/src/modules/products/components/pages/Products.vue +2 -2
  439. package/src/modules/products/models/leftover.model.js +1 -1
  440. package/src/modules/products/router/categories.router.js +1 -1
  441. package/src/modules/products/router/leftovers.router.js +1 -1
  442. package/src/modules/products/router/products.router.js +1 -1
  443. package/src/modules/products/store/categories.js +1 -1
  444. package/src/modules/products/store/leftovers.js +1 -1
  445. package/src/modules/products/store/products.js +1 -1
  446. package/src/modules/projects/store/projects.js +1 -1
  447. package/src/modules/reports/store/reports.js +1 -1
  448. package/src/modules/spots/components/layouts/Spots.vue +1 -1
  449. package/src/modules/spots/components/pages/Map.vue +1 -1
  450. package/src/modules/spots/router/spots.js +2 -2
  451. package/src/modules/spots/spots.server.js +1 -1
  452. package/src/modules/spots/store/spots.js +1 -1
  453. package/src/modules/users/components/pages/Profile.vue +1 -1
  454. package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
  455. package/src/modules/users/components/pages/ProfileEdit.vue +2 -2
  456. package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
  457. package/src/modules/users/models/user.model.js +3 -3
  458. package/src/modules/users/router/users.js +1 -2
  459. package/src/modules/wallet/controllers/routes/payments.routes.js +2 -2
  460. package/src/modules/wallet/controllers/routes/rewards.routes.js +1 -1
  461. package/src/modules/wallet/views/components/pages/Payments.vue +1 -1
  462. package/src/modules/wallet/views/router/payments.router.js +1 -2
  463. package/src/modules/wallet/views/store/payments.store.js +1 -1
  464. package/src/modules/wallet/views/store/wallet.store.js +1 -1
  465. package/src/modules/auth/router/auth.js +0 -111
  466. package/src/modules/globals/localization/methods/get-app-locales.js +0 -13
  467. package/src/modules/globals/localization/vue-i18n.js +0 -38
  468. package/src/modules/globals/localization/vue-i18n.singleton.js +0 -11
  469. package/src/modules/globals/router/routerGuards.js +0 -29
  470. package/src/modules/middlewares/client/states.validation.js +0 -23
  471. package/src/modules/middlewares/middlewares.client.js +0 -11
  472. package/src/modules/middlewares/middlewares.server.js +0 -18
  473. package/src/modules/orders/routes/backcalls.routes.js +0 -36
  474. package/src/modules/orders/routes/fastorders.routes.js +0 -32
  475. /package/src/modules/auth/{middlewares → controllers/middlewares}/authJwt.js +0 -0
  476. /package/src/modules/auth/{middlewares → controllers/middlewares}/authSecret.js +0 -0
  477. /package/src/modules/auth/{middlewares → controllers/middlewares}/index.js +0 -0
  478. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyAccesses.js +0 -0
  479. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyInvites.js +0 -0
  480. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifySignUp.js +0 -0
  481. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyUser.js +0 -0
  482. /package/src/modules/auth/{utils/server → controllers/utils}/verifyAppleIdToken.js +0 -0
  483. /package/src/modules/auth/{components → views/components}/sections/SliderFeatures.vue +0 -0
  484. /package/src/modules/auth/{localization → views/localization}/EnterCode.json +0 -0
  485. /package/src/modules/auth/{localization → views/localization}/EnterPassword.json +0 -0
  486. /package/src/modules/auth/{localization → views/localization}/ResetPassword.json +0 -0
  487. /package/src/modules/auth/{localization → views/localization}/SignIn.json +0 -0
  488. /package/src/modules/auth/{localization → views/localization}/SignUp.json +0 -0
  489. /package/src/modules/globals/{services → controllers/classes}/globals.cache.js +0 -0
  490. /package/src/modules/globals/{services → controllers/classes}/globals.logger.js +0 -0
  491. /package/src/modules/globals/{services → controllers/classes}/globals.observer.js +0 -0
  492. /package/src/modules/globals/{services → controllers/classes}/globals.webhook.js +0 -0
  493. /package/src/modules/globals/{utils → controllers/utils}/mailing.js +0 -0
  494. /package/src/modules/globals/{utils → controllers/utils}/parseCookie.js +0 -0
  495. /package/src/modules/globals/{utils → controllers/utils}/seo-friendly-url.js +0 -0
  496. /package/src/modules/globals/{utils → controllers/utils}/sitemap.js +0 -0
  497. /package/src/modules/globals/models/{common.schema.js → schemas/common.schema.js} +0 -0
  498. /package/src/modules/globals/models/{credentials.schema.js → schemas/credentials.schema.js} +0 -0
  499. /package/src/modules/globals/models/{engagement.schema.js → schemas/engagement.schema.js} +0 -0
  500. /package/src/modules/globals/models/{ownership.schema.js → schemas/ownership.schema.js} +0 -0
  501. /package/src/modules/globals/models/{profile.schema.js → schemas/profile.schema.js} +0 -0
  502. /package/src/modules/globals/models/{socials.schema.js → schemas/socials.schema.js} +0 -0
  503. /package/src/modules/globals/{components → views/components}/blocks/BlockFilter.vue +0 -0
  504. /package/src/modules/globals/{components → views/components}/blocks/BlockSearch.vue +0 -0
  505. /package/src/modules/globals/{components → views/components}/blocks/CardFooter.vue +0 -0
  506. /package/src/modules/globals/{components → views/components}/blocks/CardHeader.vue +0 -0
  507. /package/src/modules/globals/{components → views/components}/elements/ButtonDate.vue +0 -0
  508. /package/src/modules/globals/{components → views/components}/elements/ButtonSort.vue +0 -0
  509. /package/src/modules/globals/{components → views/components}/layouts/Empty.vue +0 -0
  510. /package/src/modules/globals/{components → views/components}/pages/401.vue +0 -0
  511. /package/src/modules/globals/{components → views/components}/pages/404.vue +0 -0
  512. /package/src/modules/globals/{components → views/components}/partials/BottomNavigation.vue +0 -0
  513. /package/src/modules/globals/{components → views/components}/partials/Footer.vue +0 -0
  514. /package/src/modules/globals/{components → views/components}/partials/Navigation.vue +0 -0
  515. /package/src/modules/globals/{components → views/components}/partials/NavigationBar.vue +0 -0
  516. /package/src/modules/globals/{components → views/components}/sections/SectionPageTitle.vue +0 -0
  517. /package/src/modules/globals/{components → views/components}/sections/Title.vue +0 -0
  518. /package/src/modules/globals/{components → views/components}/sections/Walkthrough.vue +0 -0
  519. /package/src/modules/globals/{localization/methods → views/localization}/get-browser-locale.js +0 -0
  520. /package/src/modules/globals/{mixins → views/mixins}/mixins.js +0 -0
@@ -1,6 +1,5 @@
1
- import { reactive as E } from "vue";
2
- import d from "../localization/vue-i18n.js";
3
- const n = E({
1
+ import { reactive as l } from "vue";
2
+ const n = l({
4
3
  loading: !1,
5
4
  isOpenLocationPopup: !1,
6
5
  isOpenSidebar: !1,
@@ -17,7 +16,7 @@ const n = E({
17
16
  name: "",
18
17
  message: ""
19
18
  }
20
- }), g = {
19
+ }), m = {
21
20
  setLoading(e) {
22
21
  n.loading = e;
23
22
  },
@@ -25,97 +24,60 @@ const n = E({
25
24
  toggleTheme() {
26
25
  let e = document.querySelector(":root");
27
26
  n.theme.darkmode = !n.theme.darkmode, e.classList.toggle("dark-theme");
28
- const t = [
27
+ const o = [
29
28
  "--white",
30
29
  "--light",
31
30
  "--grey",
32
31
  "--dark",
33
32
  "--black"
34
33
  ];
35
- n.theme.originalColors || (n.theme.originalColors = {}, t.forEach((o) => {
36
- const s = getComputedStyle(document.documentElement).getPropertyValue(o).trim();
37
- n.theme.originalColors[o] = s;
38
- })), l(t, n.theme.originalColors);
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);
39
38
  },
40
- add(e, t) {
41
- const o = e.findIndex((s) => s._id === t._id);
42
- o === -1 ? e.push(t) : e[o] = t;
39
+ add(e, o) {
40
+ const t = e.findIndex((s) => s._id === o._id);
41
+ t === -1 ? e.push(o) : e[t] = o;
43
42
  },
44
- update(e, t) {
45
- const o = e.findIndex((s) => s._id === t._id);
46
- o === -1 ? e.push(t) : Object.assign(e[o], t);
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);
47
46
  },
48
- delete(e, t) {
49
- const o = e.findIndex((s) => s._id === t._id);
50
- o !== -1 && e.splice(o, 1);
47
+ delete(e, o) {
48
+ const t = e.findIndex((s) => s._id === o._id);
49
+ t !== -1 && e.splice(t, 1);
51
50
  },
52
- increment(e, t) {
53
- console.log(e), console.log(t);
54
- const o = e.find(
55
- (s) => s._id === t._id
51
+ increment(e, o) {
52
+ console.log(e), console.log(o);
53
+ const t = e.find(
54
+ (s) => s._id === o._id
56
55
  );
57
- o && o.quantity++;
56
+ t && t.quantity++;
58
57
  },
59
- decrement(e, t) {
60
- const o = e.find(
61
- (i) => i._id === t._id
62
- ), s = e.indexOf(o);
63
- s > -1 && (o.quantity--, o.quantity < 1 && e.splice(s, 1));
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));
64
63
  },
65
64
  reset(e) {
66
65
  }
67
- }, _ = {
68
- ru: {
69
- errors: {
70
- USER_ALREADY_REGISTERED: "Такой пользователь уже зарегистрирован!",
71
- USER_NOT_REGISTERED_YET: "Такой пользователь еще не зарегистрирован!",
72
- USER_PHONE_OR_PASSWORD_NOT_FOUND: "Пользователь с таким телефоном или паролем не найден!",
73
- INCORRECT_PASSWORD_ENTERED: "Вы ввели неверный пароль!",
74
- INVALID_INVITATION_CODE: "Неверный код приглашения",
75
- MISSING_REQUIRED_PARAMETERS: "Отсутствуют необходимые параметры.",
76
- ERROR_UPDATING_USER: "Произошла ошибка при обновлении пользователя.",
77
- PASSWORDS_DO_NOT_MATCH: "Введенные вами пароли не совпадают. Исправьте ошибки и попробуйте еще раз.",
78
- CODE_NOT_SENT: "Что-то пошло не так и код не был отправлен. Попробуйте еще раз.",
79
- INPUT_ERROR: "Вставьте только четырехзначный код.",
80
- WRONG_CODE: "Вы ввели неверный код. Попробуйте еще раз.",
81
- POST_URL_ALREADY_IN_USE: "Ошибка! Публикация с этим URL уже используется!",
82
- NAME_CANNOT_BE_EMPTY: "Ошибка: Название не может быть пустым. Пожалуйста, введите название."
83
- }
84
- },
85
- en: {
86
- errors: {
87
- USER_ALREADY_REGISTERED: "Such user is already registered!",
88
- USER_NOT_REGISTERED_YET: "This user has not been registered yet!",
89
- USER_PHONE_OR_PASSWORD_NOT_FOUND: "User with such phone or password not found!",
90
- INCORRECT_PASSWORD_ENTERED: "You entered an incorrect password!",
91
- INVALID_INVITATION_CODE: "Incorrect invitation code.",
92
- MISSING_REQUIRED_PARAMETERS: "Missing required parameters.",
93
- ERROR_UPDATING_USER: "Something wrong when updating user.",
94
- PASSWORDS_DO_NOT_MATCH: "The passwords you entered do not match. Please correct the errors and try again.",
95
- CODE_NOT_SENT: "Something went wrong and the code was not sent. Please try again.",
96
- INPUT_ERROR: "Please enter only a four-digit code.",
97
- WRONG_CODE: "You entered an incorrect code. Please try again.",
98
- POST_URL_ALREADY_IN_USE: "Failed! Blogpost with this URL is already in use!",
99
- NAME_CANNOT_BE_EMPTY: "Error: Name cannot be empty. Please enter a name."
100
- }
101
- }
102
66
  };
103
- d.global.mergeLocaleMessage("ru", _.ru);
104
- d.global.mergeLocaleMessage("en", _.en);
105
- function m(e) {
106
- var o;
107
- let t;
108
- t = e, (o = e == null ? void 0 : e.response) != null && o.data && (t = e.response.data), e && t.errorCode ? n.error.message = d.global.t(`errors.${t.errorCode}`) : n.error.message = t.message || "Unknown error", n.error.show = !0, setTimeout(() => n.error.show = !1, 3e3);
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);
109
71
  }
110
- function l(e, t) {
111
- e.forEach((o) => {
112
- const s = t[o], i = s.split(",").map(Number);
113
- let a;
114
- o === "--white" ? a = i.map((r) => 255 - r / 1.075) : o === "--black" ? a = i.map((r) => 255 - r) : o === "--grey" ? a = i.map((r) => 255 - r * 2) : a = i.map((r) => 255 - r / 1.075), document.documentElement.style.setProperty(o, n.theme.darkmode ? a.join(", ") : s);
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);
115
77
  });
116
78
  }
117
79
  export {
118
- g as actions,
119
- m as setError,
80
+ m as actions,
81
+ f as setError,
120
82
  n as state
121
83
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("vue"),d=require("../store/globals.cjs");class u{constructor(e){this.state=c.reactive({items:[],current:{}}),this.apiUrl=e}async request(e,t={}){const a=e.startsWith("http")?e:`${this.apiUrl}${e}`,s={...{credentials:"include",headers:{}},...t};!s.headers["Content-Type"]&&t.body&&(s.headers["Content-Type"]="application/json",s.body=JSON.stringify(t.body));try{const r=await fetch(a,s);if(!r.ok){const i=await r.json(),o=new Error(i.message||"Unknown error");throw o.errorCode=i.errorCode||"UNKNOWN_ERROR",o}return await r.json()}catch(r){throw console.error(r),d.setError(r),r}}async create(e){return await this.request("/create",{method:"POST",body:e})}async read(e={}){const t=new URLSearchParams(e).toString();return await this.request(`/read?${t}`)}async update(e){return await this.request("/update",{method:"PUT",body:e})}async delete(e){return await this.request(`/delete/${e}`,{method:"DELETE"})}setItems(e,t){t||this.state.items,t.splice(0,t.length,...e)}addItem(e,t,a="_id"){const n=t||this.state.items,s=n.findIndex(r=>r[a]===e[a]);s===-1?n.splice(0,0,e):Object.assign(n[s],e)}updateItem(e,t,a="_id"){const n=t||this.state.items,s=n.findIndex(r=>r[a]===e[a]);s!==-1&&n.splice(s,1,e)}removeItem(e,t,a="_id"){const n=t||this.state.items,s=n.findIndex(r=>r[a]===e[a]);s!==-1&&n.splice(s,1)}}exports.default=u;
@@ -0,0 +1,72 @@
1
+ import { reactive as c } from "vue";
2
+ import { setError as d } from "../store/globals.js";
3
+ class m {
4
+ constructor(t) {
5
+ this.state = c({
6
+ items: [],
7
+ current: {}
8
+ }), this.apiUrl = t;
9
+ }
10
+ // Simplified request method to avoid repetition and enhance maintainability
11
+ async request(t, e = {}) {
12
+ const a = t.startsWith("http") ? t : `${this.apiUrl}${t}`, s = {
13
+ ...{
14
+ credentials: "include",
15
+ // Assumes credentials needed for each request
16
+ headers: {}
17
+ },
18
+ ...e
19
+ };
20
+ !s.headers["Content-Type"] && e.body && (s.headers["Content-Type"] = "application/json", s.body = JSON.stringify(e.body));
21
+ try {
22
+ const r = await fetch(a, s);
23
+ if (!r.ok) {
24
+ const i = await r.json(), o = new Error(i.message || "Unknown error");
25
+ throw o.errorCode = i.errorCode || "UNKNOWN_ERROR", o;
26
+ }
27
+ return await r.json();
28
+ } catch (r) {
29
+ throw console.error(r), d(r), r;
30
+ }
31
+ }
32
+ async create(t) {
33
+ return await this.request("/create", {
34
+ method: "POST",
35
+ body: t
36
+ });
37
+ }
38
+ async read(t = {}) {
39
+ const e = new URLSearchParams(t).toString();
40
+ return await this.request(`/read?${e}`);
41
+ }
42
+ async update(t) {
43
+ return await this.request("/update", {
44
+ method: "PUT",
45
+ body: t
46
+ });
47
+ }
48
+ async delete(t) {
49
+ return await this.request(`/delete/${t}`, {
50
+ method: "DELETE"
51
+ });
52
+ }
53
+ // Enhanced Mutations utilizing Vue reactivity system efficiently
54
+ setItems(t, e) {
55
+ e || this.state.items, e.splice(0, e.length, ...t);
56
+ }
57
+ addItem(t, e, a = "_id") {
58
+ const n = e || this.state.items, s = n.findIndex((r) => r[a] === t[a]);
59
+ s === -1 ? n.splice(0, 0, t) : Object.assign(n[s], t);
60
+ }
61
+ updateItem(t, e, a = "_id") {
62
+ const n = e || this.state.items, s = n.findIndex((r) => r[a] === t[a]);
63
+ s !== -1 && n.splice(s, 1, t);
64
+ }
65
+ removeItem(t, e, a = "_id") {
66
+ const n = e || this.state.items, s = n.findIndex((r) => r[a] === t[a]);
67
+ s !== -1 && n.splice(s, 1);
68
+ }
69
+ }
70
+ export {
71
+ m as default
72
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../../components/Checkbox/Checkbox.vue.cjs"),c=require("../../../../../components/Spoiler/Spoiler.vue2.cjs"),u=require("../../../../icons/navigation/IconChevronBottom.vue.cjs"),d={class:"w-100 o-scroll"},m={class:"cursor-pointer w-100 flex-v-center flex-nowrap flex"},p={class:"w-100"},b={__name:"BlockFilter",props:e.mergeModels({title:{type:String,default:"Sorting Options"},options:{type:Array}},{filter:{},filterModifiers:{}}),emits:["update:filter"],setup(o){const r=e.useModel(o,"filter");return(g,s)=>(e.openBlock(),e.createElementBlock("div",d,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.options,t=>(e.openBlock(),e.createBlock(c.default,{class:"o-hidden bg-white pd-medium radius-big mn-b-small",status:!0},{header:e.withCtx(({isOpen:l})=>[e.createElementVNode("div",m,[e.createElementVNode("h4",p,e.toDisplayString(t.title),1),e.createVNode(u.default,{class:e.normalizeClass([{"rotate-180":l},"radius-big pd-micro bg-light i-semi"]),fill:"rgb(var(--black))"},null,8,["class"])])]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,(l,a)=>(e.openBlock(),e.createBlock(i.default,{key:a,label:l.label,value:l.value,class:"w-100 mn-t-small mn-b-small br-1px br-solid br-light radius-small pd-small",radio:r.value.selected[t.value],"onUpdate:radio":n=>r.value.selected[t.value]=n},null,8,["label","value","radio","onUpdate:radio"]))),128))]),_:2},1024))),256)),e.createElementVNode("button",{onClick:s[0]||(s[0]=()=>r.value.selected={}),class:"bg-main w-100 button"},"Reset Filters")]))}};exports.default=b;
@@ -0,0 +1,57 @@
1
+ import { mergeModels as b, useModel as f, openBlock as e, createElementBlock as s, Fragment as n, renderList as d, createBlock as c, withCtx as m, createElementVNode as a, toDisplayString as g, createVNode as v, normalizeClass as _ } from "vue";
2
+ import h from "../../../../../components/Checkbox/Checkbox.vue.js";
3
+ import w from "../../../../../components/Spoiler/Spoiler.vue2.js";
4
+ import k from "../../../../icons/navigation/IconChevronBottom.vue.js";
5
+ const x = { class: "w-100 o-scroll" }, y = { class: "cursor-pointer w-100 flex-v-center flex-nowrap flex" }, B = { class: "w-100" }, N = {
6
+ __name: "BlockFilter",
7
+ props: /* @__PURE__ */ b({
8
+ title: {
9
+ type: String,
10
+ default: "Sorting Options"
11
+ },
12
+ options: {
13
+ type: Array
14
+ }
15
+ }, {
16
+ filter: {},
17
+ filterModifiers: {}
18
+ }),
19
+ emits: ["update:filter"],
20
+ setup(o) {
21
+ const r = f(o, "filter");
22
+ return (C, i) => (e(), s("div", x, [
23
+ (e(!0), s(n, null, d(o.options, (t) => (e(), c(w, {
24
+ class: "o-hidden bg-white pd-medium radius-big mn-b-small",
25
+ status: !0
26
+ }, {
27
+ header: m(({ isOpen: l }) => [
28
+ a("div", y, [
29
+ a("h4", B, g(t.title), 1),
30
+ v(k, {
31
+ class: _([{ "rotate-180": l }, "radius-big pd-micro bg-light i-semi"]),
32
+ fill: "rgb(var(--black))"
33
+ }, null, 8, ["class"])
34
+ ])
35
+ ]),
36
+ content: m(() => [
37
+ (e(!0), s(n, null, d(t.options, (l, u) => (e(), c(h, {
38
+ key: u,
39
+ label: l.label,
40
+ value: l.value,
41
+ class: "w-100 mn-t-small mn-b-small br-1px br-solid br-light radius-small pd-small",
42
+ radio: r.value.selected[t.value],
43
+ "onUpdate:radio": (p) => r.value.selected[t.value] = p
44
+ }, null, 8, ["label", "value", "radio", "onUpdate:radio"]))), 128))
45
+ ]),
46
+ _: 2
47
+ }, 1024))), 256)),
48
+ a("button", {
49
+ onClick: i[0] || (i[0] = () => r.value.selected = {}),
50
+ class: "bg-main w-100 button"
51
+ }, "Reset Filters")
52
+ ]));
53
+ }
54
+ };
55
+ export {
56
+ N as default
57
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("../../../../icons/navigation/IconSearch.vue.cjs"),u=require("../../../../../components/Field/Field.vue2.cjs"),d={class:"flex-v-center flex-nowrap flex pd-small bg-light w-100 radius-big"},i={__name:"BlockSearch",props:{placeholder:{type:String,default:"Enter shop or product name"},button:{type:String,default:"Search"}},emits:["search"],setup(l,{emit:a}){const c=a;e.ref(null);const o=t=>{c("search",t)};return(t,r)=>(e.openBlock(),e.createElementBlock("div",d,[e.createVNode(s.default,{class:"i-medium t-transp mn-r-thin"}),e.createVNode(u.default,{placeholder:l.placeholder,"onUpdate:field":r[0]||(r[0]=n=>o(n)),class:"w-100"},null,8,["placeholder"])]))}};exports.default=i;
@@ -0,0 +1,35 @@
1
+ import { ref as s, openBlock as p, createElementBlock as i, createVNode as r } from "vue";
2
+ import d from "../../../../icons/navigation/IconSearch.vue.js";
3
+ import m from "../../../../../components/Field/Field.vue2.js";
4
+ const f = { class: "flex-v-center flex-nowrap flex pd-small bg-light w-100 radius-big" }, g = {
5
+ __name: "BlockSearch",
6
+ props: {
7
+ placeholder: {
8
+ type: String,
9
+ default: "Enter shop or product name"
10
+ },
11
+ button: {
12
+ type: String,
13
+ default: "Search"
14
+ }
15
+ },
16
+ emits: ["search"],
17
+ setup(l, { emit: o }) {
18
+ const a = o;
19
+ s(null);
20
+ const c = (e) => {
21
+ a("search", e);
22
+ };
23
+ return (e, t) => (p(), i("div", f, [
24
+ r(d, { class: "i-medium t-transp mn-r-thin" }),
25
+ r(m, {
26
+ placeholder: l.placeholder,
27
+ "onUpdate:field": t[0] || (t[0] = (n) => c(n)),
28
+ class: "w-100"
29
+ }, null, 8, ["placeholder"])
30
+ ]));
31
+ }
32
+ };
33
+ export {
34
+ g as default
35
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../../components/Radio/Radio.vue.cjs"),s=require("../../../../icons/navigation/IconSort.vue.cjs"),d={class:"w-100 o-hidden"},c={class:"mn-b-thin"},u={class:"w-100 flex-nowrap flex gap-micro"},p={__name:"BlockSorting",props:e.mergeModels({title:{type:String,default:"Sorting Options"},options:{type:Array,default:[{label:"Date",value:"createdAt"},{label:"Popularity",value:"popularity"},{label:"Creator",value:"creator"}]}},{param:{},paramModifiers:{},order:{},orderModifiers:{}}),emits:["update:param","update:order"],setup(r){const t=e.useModel(r,"param"),l=e.useModel(r,"order");return(b,a)=>(e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("h4",c,e.toDisplayString(r.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,o=>(e.openBlock(),e.createBlock(n.default,{radio:t.value,"onUpdate:radio":a[0]||(a[0]=i=>t.value=i),label:o.label,value:o.value,class:"w-100 mn-b-thin"},null,8,["radio","label","value"]))),256)),e.createElementVNode("div",u,[e.createElementVNode("button",{onClick:a[1]||(a[1]=e.withModifiers(()=>l.value="asc",["stop"])),class:e.normalizeClass([{"bg-white t-black":l.value==="asc"},"radius-semi flex-center w-100 uppercase p-small flex-nowrap flex gap-thin pd-thin br-solid br-1px br-grey-transp-25 w-100"])},[e.createVNode(s.default,{order:"asc",fill:l.value==="asc"?"rgb(var(--black))":"rgb(var(--white))",class:"i-small"},null,8,["fill"]),e.createTextVNode(" Ascending ")],2),e.createElementVNode("button",{onClick:a[2]||(a[2]=e.withModifiers(()=>l.value="desc",["stop"])),class:e.normalizeClass([{"bg-white t-black":l.value==="desc"},"radius-semi flex-center w-100 uppercase p-small flex-nowrap flex gap-thin pd-thin br-solid br-1px br-grey-transp-25 w-100"])},[e.createVNode(s.default,{order:"desc",fill:l.value==="desc"?"rgb(var(--black))":"rgb(var(--white))",class:"i-small"},null,8,["fill"]),e.createTextVNode(" Descending ")],2)])]))}};exports.default=p;
@@ -0,0 +1,75 @@
1
+ import { mergeModels as f, useModel as o, openBlock as t, createElementBlock as n, createElementVNode as r, toDisplayString as v, Fragment as g, renderList as w, createBlock as x, withModifiers as d, normalizeClass as c, createVNode as p, createTextVNode as u } from "vue";
2
+ import h from "../../../../../components/Radio/Radio.vue.js";
3
+ import m from "../../../../icons/navigation/IconSort.vue.js";
4
+ const k = { class: "w-100 o-hidden" }, y = { class: "mn-b-thin" }, M = { class: "w-100 flex-nowrap flex gap-micro" }, A = {
5
+ __name: "BlockSorting",
6
+ props: /* @__PURE__ */ f({
7
+ title: {
8
+ type: String,
9
+ default: "Sorting Options"
10
+ },
11
+ options: {
12
+ type: Array,
13
+ default: [{
14
+ label: "Date",
15
+ value: "createdAt"
16
+ }, {
17
+ label: "Popularity",
18
+ value: "popularity"
19
+ }, {
20
+ label: "Creator",
21
+ value: "creator"
22
+ }]
23
+ }
24
+ }, {
25
+ param: {},
26
+ paramModifiers: {},
27
+ order: {},
28
+ orderModifiers: {}
29
+ }),
30
+ emits: ["update:param", "update:order"],
31
+ setup(a) {
32
+ const s = o(a, "param"), e = o(a, "order");
33
+ return (B, l) => (t(), n("div", k, [
34
+ r("h4", y, v(a.title), 1),
35
+ (t(!0), n(g, null, w(a.options, (i) => (t(), x(h, {
36
+ radio: s.value,
37
+ "onUpdate:radio": l[0] || (l[0] = (b) => s.value = b),
38
+ label: i.label,
39
+ value: i.value,
40
+ class: "w-100 mn-b-thin"
41
+ }, null, 8, ["radio", "label", "value"]))), 256)),
42
+ r("div", M, [
43
+ r("button", {
44
+ onClick: l[1] || (l[1] = d(() => e.value = "asc", ["stop"])),
45
+ class: c([{
46
+ "bg-white t-black": e.value === "asc"
47
+ }, "radius-semi flex-center w-100 uppercase p-small flex-nowrap flex gap-thin pd-thin br-solid br-1px br-grey-transp-25 w-100"])
48
+ }, [
49
+ p(m, {
50
+ order: "asc",
51
+ fill: e.value === "asc" ? "rgb(var(--black))" : "rgb(var(--white))",
52
+ class: "i-small"
53
+ }, null, 8, ["fill"]),
54
+ u(" Ascending ")
55
+ ], 2),
56
+ r("button", {
57
+ onClick: l[2] || (l[2] = d(() => e.value = "desc", ["stop"])),
58
+ class: c([{
59
+ "bg-white t-black": e.value === "desc"
60
+ }, "radius-semi flex-center w-100 uppercase p-small flex-nowrap flex gap-thin pd-thin br-solid br-1px br-grey-transp-25 w-100"])
61
+ }, [
62
+ p(m, {
63
+ order: "desc",
64
+ fill: e.value === "desc" ? "rgb(var(--black))" : "rgb(var(--white))",
65
+ class: "i-small"
66
+ }, null, 8, ["fill"]),
67
+ u(" Descending ")
68
+ ], 2)
69
+ ])
70
+ ]));
71
+ }
72
+ };
73
+ export {
74
+ A as default
75
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("vue-router"),C=require("../../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),V=require("../../../../reports/components/sections/FormReport.vue.cjs"),N=require("../../../../../components/Tooltip/Tooltip.vue2.cjs"),v=require("../../../../../components/Dropdown/Dropdown.vue.cjs");;/* empty css */;/* empty css */require("../../../../auth/views/store/auth.cjs");require("../../../../organizations/store/memberships.cjs");const $=require("../../../../icons/navigation/IconEllipsis.vue.cjs"),S={key:0,class:"pd-b-zero"},z={class:"w-100 flex-v-center flex-nojustify flex"},D={class:"w-100 flex-nowrap flex-v-center flex"},M=["src"],q={key:2,class:"t-semi"},R={key:1,class:"mn-l-micro mn-r-micro"},F={key:2,class:"pos-relative"},P={key:3},T={class:"d-block mn-l-auto flex-nowrap flex flex-v-center"},U={key:0,class:"w-4r pos-relative i-thin"},L={style:{position:"absolute",top:"0px",right:"0px"},class:"br-solid br-2px br-white z-index-1 radius-big i-thin bg-second flex flex-center t-white p-small t-semi"},I=["src"],O={class:"bg-black flex-column flex gap-thin pd-thin radius-small"},j=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),A=["onClick"],H={__name:"CardHeader",props:["user","entity","entityType","date","dateFormatted","owner","creator","members","membersPhotos","type","actions"],setup(t){x.useRouter();function E(n){const r=new Date,d=new Date(n),m=Math.abs(r-d),u=Math.floor(m/1e3),a=Math.floor(u/60),s=Math.floor(a/60),i=Math.floor(s/24),c=Math.floor(i/7);return c>0?`${c} week${c>1?"s":""} ago`:i>0?`${i} day${i>1?"s":""} ago`:s>0?`${s} hour${s>1?"s":""} ago`:a>0?`${a} minute${a>1?"s":""} ago`:"Just now"}return(n,r)=>{var m,u,a,s,i,c,k,h,g,b,f,y,w,B,p;const d=e.resolveComponent("router-link");return t.owner?(e.openBlock(),e.createElementBlock("header",S,[e.createElementVNode("div",z,[e.createElementVNode("div",D,[((a=(u=(m=t.owner.target)==null?void 0:m.profile)==null?void 0:u.photo)==null?void 0:a.length)>0&&t.type!=="short"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(n.FILE_SERVER_URL||"")+t.owner.target.profile.photo,class:"radius-medium object-fit-cover mn-r-thin i-thin",onClick:r[0]||(r[0]=e.withModifiers(o=>n.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},null,8,M)):e.createCommentVNode("",!0),!((i=(s=t.owner.target)==null?void 0:s.profile)!=null&&i.photo)&&t.type!=="short"?(e.openBlock(),e.createBlock(C.default,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:r[1]||(r[1]=e.withModifiers(o=>n.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))})):e.createCommentVNode("",!0),t.type!=="short"?(e.openBlock(),e.createElementBlock("span",q,[e.createElementVNode("span",{onClick:r[2]||(r[2]=e.withModifiers(o=>n.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},e.toDisplayString(((k=(c=t.owner.target)==null?void 0:c.profile)==null?void 0:k.name)||((h=t.creator.target)==null?void 0:h.username)||"Anonymous"),1),!t.creator.hidden&&((b=(g=t.owner.target)==null?void 0:g.profile)==null?void 0:b.name)!==((y=(f=t.creator.target)==null?void 0:f.profile)==null?void 0:y.name)?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[3]||(r[3]=e.withModifiers(o=>{var l;return n.$router.push({name:"User Profile",params:{_id:(l=t.creator.target)==null?void 0:l._id}})},["stop"]))}," · by "+e.toDisplayString(((B=(w=t.creator.target)==null?void 0:w.profile)==null?void 0:B.name)||((p=t.creator.target)==null?void 0:p.username)||"Anonymous"),1)):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",R,"·")):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",F,[t.date?(e.openBlock(),e.createBlock(N.default,{key:0,text:n.formatDate(t.date)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E(t.date)),1)]),_:1},8,["text"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.dateFormatted?(e.openBlock(),e.createElementBlock("span",P," · "+e.toDisplayString(t.dateFormatted),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",T,[t.members?(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("span",L,e.toDisplayString(t.members),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.membersPhotos.slice(0,2),(o,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o?(e.openBlock(),e.createElementBlock("img",{key:l,src:(n.FILE_SERVER_URL||"")+o,style:e.normalizeStyle({position:"absolute",top:"0px",right:l*20+20+"%",zIndex:1-l}),class:"br-solid br-2px br-white i-thin bg-light radius-big"},null,12,I)):(e.openBlock(),e.createBlock(C.default,{key:1,style:e.normalizeStyle({position:"absolute",top:"0px",right:l*20+20+"%",zIndex:1-l}),class:"br-solid br-2px br-white i-thin bg-light radius-big"},null,8,["style"]))],64))),256))])):e.createCommentVNode("",!0)]),t.type!=="short"&&t.user?(e.openBlock(),e.createBlock(v.default,{key:3,label:{component:$.default,class:"t-transp i-regular"},align:"right",class:"cursor-pointer z-index-2"},{default:e.withCtx(()=>[e.createElementVNode("section",O,[t.user!==t.creator.target._id?(e.openBlock(),e.createBlock(V.default,{key:0,user:t.user,type:t.entityType,target:t.entity._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[j]),_:1},8,["user","type","target"])):e.createCommentVNode("",!0),t.actions&&t.actions.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.actions,o=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.to?(e.openBlock(),e.createBlock(d,{key:o.to,to:o.to,class:e.normalizeClass(o.class||"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["to","class"])):e.createCommentVNode("",!0),o.method?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:o.method,class:e.normalizeClass(o.class||"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button")},e.toDisplayString(o.label),11,A)):e.createCommentVNode("",!0)],64))),256)):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)}}};exports.default=H;
@@ -0,0 +1,194 @@
1
+ import { resolveComponent as S, openBlock as t, createElementBlock as s, createElementVNode as c, withModifiers as y, createCommentVNode as o, createBlock as b, toDisplayString as d, withCtx as w, createTextVNode as U, Fragment as k, renderList as F, normalizeStyle as D, normalizeClass as L } from "vue";
2
+ import { useRouter as T } from "vue-router";
3
+ import V from "../../../../icons/placeholders/PlaceholderUserpic.vue.js";
4
+ import A from "../../../../reports/components/sections/FormReport.vue.js";
5
+ import B from "../../../../../components/Tooltip/Tooltip.vue2.js";
6
+ import N from "../../../../../components/Dropdown/Dropdown.vue.js";
7
+ /* empty css */
8
+ /* empty css */
9
+ import "../../../../auth/views/store/auth.js";
10
+ import "../../../../organizations/store/memberships.js";
11
+ import O from "../../../../icons/navigation/IconEllipsis.vue.js";
12
+ const j = {
13
+ key: 0,
14
+ class: "pd-b-zero"
15
+ }, H = { class: "w-100 flex-v-center flex-nojustify flex" }, J = { class: "w-100 flex-nowrap flex-v-center flex" }, q = ["src"], G = {
16
+ key: 2,
17
+ class: "t-semi"
18
+ }, K = {
19
+ key: 1,
20
+ class: "mn-l-micro mn-r-micro"
21
+ }, Q = {
22
+ key: 2,
23
+ class: "pos-relative"
24
+ }, W = { key: 3 }, X = { class: "d-block mn-l-auto flex-nowrap flex flex-v-center" }, Y = {
25
+ key: 0,
26
+ class: "w-4r pos-relative i-thin"
27
+ }, Z = {
28
+ style: {
29
+ position: "absolute",
30
+ top: "0px",
31
+ right: "0px"
32
+ },
33
+ class: "br-solid br-2px br-white z-index-1 radius-big i-thin bg-second flex flex-center t-white p-small t-semi"
34
+ }, _ = ["src"], ee = { class: "bg-black flex-column flex gap-thin pd-thin radius-small" }, te = /* @__PURE__ */ c("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), re = ["onClick"], be = {
35
+ __name: "CardHeader",
36
+ props: [
37
+ "user",
38
+ "entity",
39
+ "entityType",
40
+ "date",
41
+ "dateFormatted",
42
+ "owner",
43
+ "creator",
44
+ "members",
45
+ "membersPhotos",
46
+ "type",
47
+ "actions"
48
+ ],
49
+ setup(e) {
50
+ T();
51
+ function I(i) {
52
+ const n = /* @__PURE__ */ new Date(), x = new Date(i), f = Math.abs(n - x), g = Math.floor(f / 1e3), l = Math.floor(g / 60), u = Math.floor(l / 60), m = Math.floor(u / 24), h = Math.floor(m / 7);
53
+ return h > 0 ? `${h} week${h > 1 ? "s" : ""} ago` : m > 0 ? `${m} day${m > 1 ? "s" : ""} ago` : u > 0 ? `${u} hour${u > 1 ? "s" : ""} ago` : l > 0 ? `${l} minute${l > 1 ? "s" : ""} ago` : "Just now";
54
+ }
55
+ return (i, n) => {
56
+ var f, g, l, u, m, h, $, v, p, C, z, E, R, M, P;
57
+ const x = S("router-link");
58
+ return e.owner ? (t(), s("header", j, [
59
+ c("div", H, [
60
+ c("div", J, [
61
+ ((l = (g = (f = e.owner.target) == null ? void 0 : f.profile) == null ? void 0 : g.photo) == null ? void 0 : l.length) > 0 && e.type !== "short" ? (t(), s("img", {
62
+ key: 0,
63
+ src: (i.FILE_SERVER_URL || "") + e.owner.target.profile.photo,
64
+ class: "radius-medium object-fit-cover mn-r-thin i-thin",
65
+ onClick: n[0] || (n[0] = y((r) => i.$router.push({
66
+ name: e.owner.type === "user" ? "User Profile" : "Organization",
67
+ params: {
68
+ _id: e.owner.target._id
69
+ }
70
+ }), ["stop"]))
71
+ }, null, 8, q)) : o("", !0),
72
+ !((m = (u = e.owner.target) == null ? void 0 : u.profile) != null && m.photo) && e.type !== "short" ? (t(), b(V, {
73
+ key: 1,
74
+ class: "radius-medium mn-r-thin i-thin",
75
+ onClick: n[1] || (n[1] = y((r) => i.$router.push({
76
+ name: e.owner.type === "user" ? "User Profile" : "Organization",
77
+ params: {
78
+ _id: e.owner.target._id
79
+ }
80
+ }), ["stop"]))
81
+ })) : o("", !0),
82
+ e.type !== "short" ? (t(), s("span", G, [
83
+ c("span", {
84
+ onClick: n[2] || (n[2] = y((r) => i.$router.push({
85
+ name: e.owner.type === "user" ? "User Profile" : "Organization",
86
+ params: {
87
+ _id: e.owner.target._id
88
+ }
89
+ }), ["stop"]))
90
+ }, d((($ = (h = e.owner.target) == null ? void 0 : h.profile) == null ? void 0 : $.name) || ((v = e.creator.target) == null ? void 0 : v.username) || "Anonymous"), 1),
91
+ !e.creator.hidden && ((C = (p = e.owner.target) == null ? void 0 : p.profile) == null ? void 0 : C.name) !== ((E = (z = e.creator.target) == null ? void 0 : z.profile) == null ? void 0 : E.name) ? (t(), s("span", {
92
+ key: 0,
93
+ onClick: n[3] || (n[3] = y((r) => {
94
+ var a;
95
+ return i.$router.push({
96
+ name: "User Profile",
97
+ params: {
98
+ _id: (a = e.creator.target) == null ? void 0 : a._id
99
+ }
100
+ });
101
+ }, ["stop"]))
102
+ }, " · by " + d(((M = (R = e.creator.target) == null ? void 0 : R.profile) == null ? void 0 : M.name) || ((P = e.creator.target) == null ? void 0 : P.username) || "Anonymous"), 1)) : o("", !0),
103
+ e.date ? (t(), s("span", K, "·")) : o("", !0),
104
+ e.date ? (t(), s("span", Q, [
105
+ e.date ? (t(), b(B, {
106
+ key: 0,
107
+ text: i.formatDate(e.date)
108
+ }, {
109
+ default: w(() => [
110
+ U(d(I(e.date)), 1)
111
+ ]),
112
+ _: 1
113
+ }, 8, ["text"])) : o("", !0)
114
+ ])) : o("", !0),
115
+ e.dateFormatted ? (t(), s("span", W, " · " + d(e.dateFormatted), 1)) : o("", !0)
116
+ ])) : o("", !0),
117
+ c("div", X, [
118
+ e.members ? (t(), s("div", Y, [
119
+ c("span", Z, d(e.members), 1),
120
+ (t(!0), s(k, null, F(e.membersPhotos.slice(0, 2), (r, a) => (t(), s(k, null, [
121
+ r ? (t(), s("img", {
122
+ key: a,
123
+ src: (i.FILE_SERVER_URL || "") + r,
124
+ style: D({
125
+ position: "absolute",
126
+ top: "0px",
127
+ right: a * 20 + 20 + "%",
128
+ zIndex: 1 - a
129
+ }),
130
+ class: "br-solid br-2px br-white i-thin bg-light radius-big"
131
+ }, null, 12, _)) : (t(), b(V, {
132
+ key: 1,
133
+ style: D({
134
+ position: "absolute",
135
+ top: "0px",
136
+ right: a * 20 + 20 + "%",
137
+ zIndex: 1 - a
138
+ }),
139
+ class: "br-solid br-2px br-white i-thin bg-light radius-big"
140
+ }, null, 8, ["style"]))
141
+ ], 64))), 256))
142
+ ])) : o("", !0)
143
+ ]),
144
+ e.type !== "short" && e.user ? (t(), b(N, {
145
+ key: 3,
146
+ label: { component: O, class: "t-transp i-regular" },
147
+ align: "right",
148
+ class: "cursor-pointer z-index-2"
149
+ }, {
150
+ default: w(() => [
151
+ c("section", ee, [
152
+ e.user !== e.creator.target._id ? (t(), b(A, {
153
+ key: 0,
154
+ user: e.user,
155
+ type: e.entityType,
156
+ target: e.entity._id,
157
+ text: "Report",
158
+ class: "w-100"
159
+ }, {
160
+ default: w(() => [
161
+ te
162
+ ]),
163
+ _: 1
164
+ }, 8, ["user", "type", "target"])) : o("", !0),
165
+ e.actions && e.actions.length > 0 ? (t(!0), s(k, { key: 1 }, F(e.actions, (r) => (t(), s(k, null, [
166
+ r.to ? (t(), b(x, {
167
+ key: r.to,
168
+ to: r.to,
169
+ class: L(r.class || "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button")
170
+ }, {
171
+ default: w(() => [
172
+ U(d(r.label), 1)
173
+ ]),
174
+ _: 2
175
+ }, 1032, ["to", "class"])) : o("", !0),
176
+ r.method ? (t(), s("button", {
177
+ key: 1,
178
+ onClick: r.method,
179
+ class: L(r.class || "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button")
180
+ }, d(r.label), 11, re)) : o("", !0)
181
+ ], 64))), 256)) : o("", !0)
182
+ ])
183
+ ]),
184
+ _: 1
185
+ }, 8, ["label"])) : o("", !0)
186
+ ])
187
+ ])
188
+ ])) : o("", !0);
189
+ };
190
+ }
191
+ };
192
+ export {
193
+ be as default
194
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),C=require("../../../../icons/navigation/IconCalendar.vue.cjs"),M={class:"t-semi"},T={__name:"ButtonDate",props:{action:{type:Function},date:{type:Object}},setup(i){const d=i,{action:c,date:p}=t.toRefs(d),f=t.computed(()=>m(p.value)),D=()=>{c.value&&c.value()};function m(r){const e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],{start:s,end:n}=r;if(s===null&&n===null)return"All Time";const a=new Date(s),l=a.getUTCDate(),u=e[a.getUTCMonth()],g=a.getUTCFullYear();if(!n)return`${l} ${u} ${g}`;const o=new Date(n),h=o.getUTCDate(),_=e[o.getUTCMonth()],v=o.getUTCFullYear();return`${l} ${u} - ${h} ${_} ${v}`}return(r,e)=>(t.openBlock(),t.createElementBlock("div",{onClick:D,class:"cursor-pointer flex-center flex"},[t.createVNode(C.default,{class:"w-1r mn-r-thin h-auto"}),t.createElementVNode("span",M,t.toDisplayString(f.value),1)]))}};exports.default=T;