@ozdao/prometheus-framework 0.2.188 → 0.2.189

Sign up to get free protection for your applications and to get access to all the features.
Files changed (298) hide show
  1. package/dist/builder.js +6 -3
  2. package/dist/builder.mjs +6 -3
  3. package/dist/node_modules/@unhead/vue/dist/shared/vue.cf295fb1.cjs +1 -0
  4. package/dist/node_modules/@unhead/vue/dist/shared/vue.cf295fb1.js +26 -0
  5. package/dist/node_modules/@unhead/vue/dist/shared/vue.f36acd1f.cjs +1 -0
  6. package/dist/node_modules/@unhead/vue/dist/shared/vue.f36acd1f.js +26 -0
  7. package/dist/node_modules/unhead/dist/index.cjs +1 -0
  8. package/dist/node_modules/unhead/dist/index.js +7 -0
  9. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +5 -5
  11. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -1
  12. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +1 -1
  13. package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs +1 -1
  14. package/dist/prometheus-framework/src/modules/auth/views/store/auth.js +1 -1
  15. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs +1 -1
  16. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.js +1 -1
  17. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  18. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  19. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +73 -42
  21. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +1 -1
  23. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  24. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
  25. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
  27. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  29. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
  31. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
  33. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
  35. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  37. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
  39. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/globals/globals.client.js +34 -10
  41. package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.cjs +1 -0
  42. package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.js +72 -0
  43. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +1 -0
  44. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.js +57 -0
  45. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +1 -0
  46. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +35 -0
  47. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSorting.vue.cjs +1 -0
  48. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSorting.vue.js +75 -0
  49. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -0
  50. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +194 -0
  51. package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.cjs +1 -0
  52. package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.js +38 -0
  53. package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonSort.vue.cjs +1 -0
  54. package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonSort.vue.js +31 -0
  55. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -0
  56. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +66 -0
  57. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Empty.vue.cjs +1 -0
  58. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Empty.vue.js +16 -0
  59. package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -0
  60. package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +54 -0
  61. package/dist/prometheus-framework/src/modules/globals/views/localization/get-browser-locale.cjs +1 -0
  62. package/dist/prometheus-framework/src/modules/globals/views/localization/get-browser-locale.js +7 -0
  63. package/dist/prometheus-framework/src/modules/globals/views/mixins/mixins.cjs +1 -0
  64. package/dist/prometheus-framework/src/modules/globals/views/mixins/mixins.js +47 -0
  65. package/dist/prometheus-framework/src/modules/globals/views/router/scrollBehavior.cjs +1 -0
  66. package/dist/prometheus-framework/src/modules/globals/views/router/scrollBehavior.js +18 -0
  67. package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs +1 -0
  68. package/dist/prometheus-framework/src/modules/globals/views/store/globals.js +83 -0
  69. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +11 -11
  71. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +3 -3
  73. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +3 -3
  75. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  77. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +2 -2
  81. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
  83. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  85. package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.js +1 -1
  87. package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +1 -1
  89. package/dist/prometheus-framework/src/modules/orders/store/applications.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/orders/store/applications.js +1 -1
  91. package/dist/prometheus-framework/src/modules/orders/store/customers.store.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/orders/store/customers.store.js +1 -1
  93. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
  95. package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +1 -1
  97. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  101. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  103. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.js +1 -1
  105. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +1 -1
  107. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  109. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  111. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
  113. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
  115. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.js +1 -1
  117. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
  119. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.js +2 -2
  121. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  123. package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.js +1 -1
  125. package/dist/prometheus-framework/src/modules/pages/views/router/pages.router.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/pages/views/router/pages.router.js +1 -1
  127. package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/pages/views/store/pages.js +1 -1
  129. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +3 -3
  131. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  133. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  135. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
  137. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  138. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
  139. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
  141. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
  143. package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
  145. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  147. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +3 -3
  149. package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/spots/router/spots.js +1 -1
  151. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  152. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
  153. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +1 -1
  155. package/dist/prometheus-framework/src/modules/wallet/views/store/payments.store.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/wallet/views/store/payments.store.js +1 -1
  157. package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.js +1 -1
  159. package/dist/style.css +1 -1
  160. package/package.json +1 -1
  161. package/src/builder/modes/ssr.dev.js +4 -1
  162. package/src/builder/templates/page.js +1 -1
  163. package/src/builder/webpack/webpack.config.base.js +2 -1
  164. package/src/builder/webpack/webpack.config.spa.js +0 -1
  165. package/src/components/Feed/Feed.vue +5 -5
  166. package/src/components/Sidebar/Sidebar.vue +1 -1
  167. package/src/modules/auth/controllers/services/twofa.service.js +1 -1
  168. package/src/modules/auth/views/components/pages/EnterCode.vue +1 -1
  169. package/src/modules/auth/views/store/auth.js +1 -1
  170. package/src/modules/auth/views/store/twofa.js +1 -1
  171. package/src/modules/auth/views/validations/inputs.validation.js +1 -1
  172. package/src/modules/backoffice/router/backoffice.js +1 -1
  173. package/src/modules/chats/controllers/chats.controller.js +1 -1
  174. package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
  175. package/src/modules/community/components/pages/BlogPost.vue +63 -2
  176. package/src/modules/community/components/sections/Comment.vue +1 -1
  177. package/src/modules/community/models/blogpost.model.js +4 -4
  178. package/src/modules/community/store/blogposts.js +1 -1
  179. package/src/modules/community/store/reactions.js +1 -1
  180. package/src/modules/events/components/blocks/CardEvent.vue +2 -2
  181. package/src/modules/events/controllers/events.controller.js +1 -1
  182. package/src/modules/events/controllers/tickets.controller.js +1 -1
  183. package/src/modules/events/models/event.model.js +4 -4
  184. package/src/modules/events/store/events.js +1 -1
  185. package/src/modules/events/store/tickets.js +1 -1
  186. package/src/modules/gallery/components/pages/Gallery.vue +2 -2
  187. package/src/modules/gallery/components/sections/BackofficeGallery.vue +2 -2
  188. package/src/modules/gallery/models/photo.model.js +3 -3
  189. package/src/modules/gallery/store/gallery.js +1 -1
  190. package/src/modules/globals/{services → controllers/classes}/globals.crud.js +2 -2
  191. package/src/modules/globals/globals.client.js +78 -8
  192. package/src/modules/globals/globals.server.js +3 -3
  193. package/src/modules/globals/models/{metadata.schema.js → schemas/metadata.schema.js} +1 -1
  194. package/src/modules/globals/{services → views/classes}/globals.store.js +1 -1
  195. package/src/modules/globals/{components → views/components}/blocks/BlockSorting.vue +1 -1
  196. package/src/modules/globals/views/components/layouts/App.vue +83 -0
  197. package/src/modules/globals/{components → views/components}/layouts/Client.vue +8 -8
  198. package/src/modules/globals/{components → views/components}/partials/Header.vue +1 -1
  199. package/src/modules/globals/views/middlewares/localization.js +16 -0
  200. package/src/modules/integrations/stripe/controllers/webhooks/stripe.webhook.js +2 -2
  201. package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
  202. package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
  203. package/src/modules/marketplace/router/marketplace.js +1 -1
  204. package/src/modules/orders/components/pages/Order.vue +1 -1
  205. package/src/modules/orders/components/pages/OrderBackoffice.vue +2 -2
  206. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  207. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +2 -2
  208. package/src/modules/orders/components/pages/Orders.vue +2 -2
  209. package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
  210. package/src/modules/orders/components/sections/FormDelivery.vue +1 -1
  211. package/src/modules/orders/controllers/applications.controller.js +1 -1
  212. package/src/modules/orders/controllers/orders.controller.js +1 -1
  213. package/src/modules/orders/models/customer.model.js +3 -3
  214. package/src/modules/orders/models/order.model.js +1 -1
  215. package/src/modules/orders/orders.server.js +1 -1
  216. package/src/modules/orders/router/orders.backoffice.router.js +1 -1
  217. package/src/modules/orders/router/orders.router.js +1 -1
  218. package/src/modules/orders/store/applications.js +1 -1
  219. package/src/modules/orders/store/customers.store.js +1 -1
  220. package/src/modules/orders/store/orders.js +1 -1
  221. package/src/modules/orders/store/shopcart.js +1 -1
  222. package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
  223. package/src/modules/organizations/components/pages/Members.vue +2 -2
  224. package/src/modules/organizations/components/sections/MembersAdd.vue +1 -1
  225. package/src/modules/organizations/controllers/invites.controller.js +1 -1
  226. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  227. package/src/modules/organizations/models/invite.model.js +2 -2
  228. package/src/modules/organizations/models/organization.model.js +1 -1
  229. package/src/modules/organizations/router/backoffice.router.js +1 -1
  230. package/src/modules/organizations/router/organizations.js +1 -1
  231. package/src/modules/organizations/store/departments.js +1 -1
  232. package/src/modules/organizations/store/invites.js +1 -1
  233. package/src/modules/organizations/store/memberships.js +1 -1
  234. package/src/modules/organizations/store/organizations.js +1 -1
  235. package/src/modules/pages/pages.server.js +1 -1
  236. package/src/modules/pages/views/components/pages/Page.vue +1 -1
  237. package/src/modules/pages/views/components/pages/PageEdit.vue +1 -1
  238. package/src/modules/pages/views/components/pages/Pages.vue +2 -2
  239. package/src/modules/pages/views/components/partials/SidebarPages.vue +1 -1
  240. package/src/modules/pages/views/router/pages.backoffice.router.js +1 -1
  241. package/src/modules/pages/views/router/pages.router.js +1 -1
  242. package/src/modules/pages/views/store/pages.js +1 -1
  243. package/src/modules/pages/views/store/pages.store.js +1 -1
  244. package/src/modules/products/components/blocks/CardLeftover.vue +1 -1
  245. package/src/modules/products/components/pages/EditLeftover.vue +1 -1
  246. package/src/modules/products/components/pages/ProductEdit.vue +1 -1
  247. package/src/modules/products/components/pages/Products.vue +1 -1
  248. package/src/modules/products/models/leftover.model.js +1 -1
  249. package/src/modules/products/store/categories.js +1 -1
  250. package/src/modules/products/store/leftovers.js +1 -1
  251. package/src/modules/products/store/products.js +1 -1
  252. package/src/modules/projects/store/projects.js +1 -1
  253. package/src/modules/reports/store/reports.js +1 -1
  254. package/src/modules/spots/components/layouts/Spots.vue +1 -1
  255. package/src/modules/spots/components/pages/Map.vue +1 -1
  256. package/src/modules/spots/router/spots.js +1 -1
  257. package/src/modules/spots/spots.server.js +1 -1
  258. package/src/modules/spots/store/spots.js +1 -1
  259. package/src/modules/users/models/user.model.js +3 -3
  260. package/src/modules/wallet/controllers/routes/payments.routes.js +1 -1
  261. package/src/modules/wallet/views/components/pages/Payments.vue +1 -1
  262. package/src/modules/wallet/views/store/payments.store.js +1 -1
  263. package/src/modules/wallet/views/store/wallet.store.js +1 -1
  264. package/src/modules/globals/router/routerGuards.js +0 -29
  265. /package/src/modules/globals/{services → controllers/classes}/globals.cache.js +0 -0
  266. /package/src/modules/globals/{services → controllers/classes}/globals.logger.js +0 -0
  267. /package/src/modules/globals/{services → controllers/classes}/globals.observer.js +0 -0
  268. /package/src/modules/globals/{services → controllers/classes}/globals.webhook.js +0 -0
  269. /package/src/modules/globals/{utils → controllers/utils}/mailing.js +0 -0
  270. /package/src/modules/globals/{utils → controllers/utils}/parseCookie.js +0 -0
  271. /package/src/modules/globals/{utils → controllers/utils}/seo-friendly-url.js +0 -0
  272. /package/src/modules/globals/{utils → controllers/utils}/sitemap.js +0 -0
  273. /package/src/modules/globals/models/{common.schema.js → schemas/common.schema.js} +0 -0
  274. /package/src/modules/globals/models/{credentials.schema.js → schemas/credentials.schema.js} +0 -0
  275. /package/src/modules/globals/models/{engagement.schema.js → schemas/engagement.schema.js} +0 -0
  276. /package/src/modules/globals/models/{ownership.schema.js → schemas/ownership.schema.js} +0 -0
  277. /package/src/modules/globals/models/{profile.schema.js → schemas/profile.schema.js} +0 -0
  278. /package/src/modules/globals/models/{socials.schema.js → schemas/socials.schema.js} +0 -0
  279. /package/src/modules/globals/{components → views/components}/blocks/BlockFilter.vue +0 -0
  280. /package/src/modules/globals/{components → views/components}/blocks/BlockSearch.vue +0 -0
  281. /package/src/modules/globals/{components → views/components}/blocks/CardFooter.vue +0 -0
  282. /package/src/modules/globals/{components → views/components}/blocks/CardHeader.vue +0 -0
  283. /package/src/modules/globals/{components → views/components}/elements/ButtonDate.vue +0 -0
  284. /package/src/modules/globals/{components → views/components}/elements/ButtonSort.vue +0 -0
  285. /package/src/modules/globals/{components → views/components}/layouts/Empty.vue +0 -0
  286. /package/src/modules/globals/{components → views/components}/pages/401.vue +0 -0
  287. /package/src/modules/globals/{components → views/components}/pages/404.vue +0 -0
  288. /package/src/modules/globals/{components → views/components}/partials/BottomNavigation.vue +0 -0
  289. /package/src/modules/globals/{components → views/components}/partials/Footer.vue +0 -0
  290. /package/src/modules/globals/{components → views/components}/partials/Navigation.vue +0 -0
  291. /package/src/modules/globals/{components → views/components}/partials/NavigationBar.vue +0 -0
  292. /package/src/modules/globals/{components → views/components}/sections/SectionPageTitle.vue +0 -0
  293. /package/src/modules/globals/{components → views/components}/sections/Title.vue +0 -0
  294. /package/src/modules/globals/{components → views/components}/sections/Walkthrough.vue +0 -0
  295. /package/src/modules/globals/{localization → views/localization}/get-browser-locale.js +0 -0
  296. /package/src/modules/globals/{mixins → views/mixins}/mixins.js +0 -0
  297. /package/src/modules/globals/{router → views/router}/scrollBehavior.js +0 -0
  298. /package/src/modules/globals/{store → views/store}/globals.js +0 -0
package/dist/builder.js CHANGED
@@ -55,7 +55,7 @@ var page = `
55
55
  <!-- <!DOCTYPE html> -->
56
56
  <html {{{ meta.htmlAttrs }}}>
57
57
  <head {{{ meta.headAttrs }}}>
58
- {{{ meta.head }}}
58
+ {{{ meta.headTags }}}
59
59
  <link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png">
60
60
  <link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png">
61
61
  <link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png">
@@ -197,7 +197,10 @@ var ssr_dev = function createSsrDevServer(projectRoot, { clientConfig: clientCon
197
197
  const jsonStats = stats.toJson();
198
198
  if (stats.hasErrors()) {
199
199
  console.error(chalk$1.red("Client compilation error"));
200
- jsonStats.errors.forEach((err) => console.error(chalk$1.red(err.details)));
200
+ jsonStats.errors.forEach((err) => {
201
+ if (err.details) console.error(chalk$1.red(err.details));
202
+ else console.error(chalk$1.red(err.stack));
203
+ });
201
204
  return;
202
205
  }
203
206
  const { entrypoints, outputPath } = jsonStats;
@@ -545,6 +548,7 @@ var webpack_config_base = (projectRoot) => {
545
548
  new VueLoaderPlugin(),
546
549
  new Dotenv({
547
550
  path: `.env.${process.env.NODE_ENV}`
551
+ // ...(process.env.MODE === "SPA" ? [{path: '.env.mobile'}] : []),
548
552
  }),
549
553
  new webpack$4.DefinePlugin({
550
554
  __VUE_I18N_LEGACY_API__: false,
@@ -690,7 +694,6 @@ const { StatsWriterPlugin } = require$$4$2;
690
694
  const Mustache = require$$1;
691
695
  require$$0$1.promises;
692
696
  const getClientConfig = webpack_config_client;
693
- path$1.resolve(__dirname, "../templates/page.html");
694
697
  const isProd = process.env.NODE_ENV === "production";
695
698
  var webpack_config_spa = (projectRoot) => {
696
699
  const spaConfig2 = {
package/dist/builder.mjs CHANGED
@@ -32,7 +32,7 @@ var page = `
32
32
  <!-- <!DOCTYPE html> -->
33
33
  <html {{{ meta.htmlAttrs }}}>
34
34
  <head {{{ meta.headAttrs }}}>
35
- {{{ meta.head }}}
35
+ {{{ meta.headTags }}}
36
36
  <link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png">
37
37
  <link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png">
38
38
  <link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png">
@@ -174,7 +174,10 @@ var ssr_dev = function createSsrDevServer(projectRoot, { clientConfig: clientCon
174
174
  const jsonStats = stats.toJson();
175
175
  if (stats.hasErrors()) {
176
176
  console.error(chalk$1.red("Client compilation error"));
177
- jsonStats.errors.forEach((err) => console.error(chalk$1.red(err.details)));
177
+ jsonStats.errors.forEach((err) => {
178
+ if (err.details) console.error(chalk$1.red(err.details));
179
+ else console.error(chalk$1.red(err.stack));
180
+ });
178
181
  return;
179
182
  }
180
183
  const { entrypoints, outputPath } = jsonStats;
@@ -522,6 +525,7 @@ var webpack_config_base = (projectRoot) => {
522
525
  new VueLoaderPlugin(),
523
526
  new Dotenv({
524
527
  path: `.env.${process.env.NODE_ENV}`
528
+ // ...(process.env.MODE === "SPA" ? [{path: '.env.mobile'}] : []),
525
529
  }),
526
530
  new webpack$4.DefinePlugin({
527
531
  __VUE_I18N_LEGACY_API__: false,
@@ -667,7 +671,6 @@ const { StatsWriterPlugin } = require$$4$2;
667
671
  const Mustache = require$$1;
668
672
  require$$0$1.promises;
669
673
  const getClientConfig = webpack_config_client;
670
- path$1.resolve(__dirname, "../templates/page.html");
671
674
  const isProd = process.env.NODE_ENV === "production";
672
675
  var webpack_config_spa = (projectRoot) => {
673
676
  const spaConfig2 = {
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),f=require("../../../../unhead/dist/index.cjs");o.version.startsWith("3");function l(e){return typeof e=="function"?e():o.unref(e)}function r(e,c=""){if(e instanceof Promise)return e;const n=l(e);return!e||!n?n:Array.isArray(n)?n.map(t=>r(t,c)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([t,i])=>t==="titleTemplate"||t.startsWith("on")?[t,o.unref(i)]:[t,r(i,t)])):n}const a="usehead",s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},u="__unhead_injection_handler__";function d(){if(u in s)return s[u]();const e=o.inject(a);return!e&&process.env.NODE_ENV!=="production"&&console.warn("Unhead is missing Vue context, falling back to shared context. This may have unexpected results."),e||f.getActiveHead()}exports.h=a;exports.i=d;exports.r=r;
@@ -0,0 +1,26 @@
1
+ import { version as u, unref as a, inject as c } from "vue";
2
+ import { getActiveHead as l } from "../../../../unhead/dist/index.js";
3
+ u.startsWith("3");
4
+ function d(e) {
5
+ return typeof e == "function" ? e() : a(e);
6
+ }
7
+ function r(e, f = "") {
8
+ if (e instanceof Promise)
9
+ return e;
10
+ const n = d(e);
11
+ return !e || !n ? n : Array.isArray(n) ? n.map((t) => r(t, f)) : typeof n == "object" ? Object.fromEntries(
12
+ Object.entries(n).map(([t, o]) => t === "titleTemplate" || t.startsWith("on") ? [t, a(o)] : [t, r(o, t)])
13
+ ) : n;
14
+ }
15
+ const p = "usehead", i = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = "__unhead_injection_handler__";
16
+ function b() {
17
+ if (s in i)
18
+ return i[s]();
19
+ const e = c(p);
20
+ return !e && process.env.NODE_ENV !== "production" && console.warn("Unhead is missing Vue context, falling back to shared context. This may have unexpected results."), e || l();
21
+ }
22
+ export {
23
+ p as h,
24
+ b as i,
25
+ r
26
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./vue.cf295fb1.cjs");function f(r,n={}){const t=n.head||s.i();if(t)return t.ssr?t.push(r,n):v(t,r,n)}function v(r,n,t={}){const u=e.ref(!1),a=e.ref({});e.watchEffect(()=>{a.value=u.value?{}:s.r(n)});const c=r.push(a.value,t);return e.watch(a,o=>{c.patch(o)}),e.getCurrentInstance()&&(e.onBeforeUnmount(()=>{c.dispose()}),e.onDeactivated(()=>{u.value=!0}),e.onActivated(()=>{u.value=!1})),c}exports.u=f;
@@ -0,0 +1,26 @@
1
+ import { ref as u, watchEffect as o, watch as f, getCurrentInstance as d, onBeforeUnmount as v, onDeactivated as i, onActivated as l } from "vue";
2
+ import { i as h, r as m } from "./vue.cf295fb1.js";
3
+ function w(a, t = {}) {
4
+ const e = t.head || h();
5
+ if (e)
6
+ return e.ssr ? e.push(a, t) : p(e, a, t);
7
+ }
8
+ function p(a, t, e = {}) {
9
+ const n = u(!1), r = u({});
10
+ o(() => {
11
+ r.value = n.value ? {} : m(t);
12
+ });
13
+ const s = a.push(r.value, e);
14
+ return f(r, (c) => {
15
+ s.patch(c);
16
+ }), d() && (v(() => {
17
+ s.dispose();
18
+ }), i(() => {
19
+ n.value = !0;
20
+ }), l(() => {
21
+ n.value = !1;
22
+ })), s;
23
+ }
24
+ export {
25
+ w as u
26
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let e;function t(){return e}exports.getActiveHead=t;
@@ -0,0 +1,7 @@
1
+ let e;
2
+ function t() {
3
+ return e;
4
+ }
5
+ export {
6
+ t as getActiveHead
7
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");;/* empty css */const M=require("../EmptyState/EmptyState.vue.cjs"),B=require("../Dropdown/Dropdown.vue.cjs"),N=require("../DatePicker/Calendar.vue2.cjs"),x=require("../BottomSheet/BottomSheet.vue.cjs"),S=require("../../modules/globals/components/blocks/BlockSearch.vue.cjs"),q=require("../../modules/globals/components/blocks/BlockSorting.vue.cjs"),E=require("../../modules/globals/components/blocks/BlockFilter.vue.cjs"),z=require("../../modules/globals/components/elements/ButtonSort.vue.cjs"),O=require("../../modules/globals/components/elements/ButtonDate.vue.cjs"),L=require("../../modules/icons/navigation/IconFilter.vue.cjs");;/* empty css */const F={key:0,class:"flex-nowrap flex gap-thin"},j={__name:"Feed",props:e.mergeModels({showLoadMore:{type:Boolean,default:!0},search:{type:[Boolean,Object],default:!1},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},external:{type:Boolean,default:!1},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},{search:{},searchModifiers:{},sort:{},sortModifiers:{},filter:{},filterModifiers:{},date:{},dateModifiers:{},items:{},itemsModifiers:{}}),emits:["update:search","update:sort","update:filter","update:date","update:items"],setup(s){const m=e.useModel(s,"search"),a=e.useModel(s,"sort"),o=e.useModel(s,"filter"),r=e.useModel(s,"date"),h=e.useModel(s,"items"),u=s,n=e.ref(h.value||[]),d=e.ref(!1);let p=e.ref(!0),b=e.ref(null),i=e.ref(u.options.skip?u.options.skip:0),v=e.ref(u.options.limit?u.options.limit:10),k=e.ref("");function C(t){k.value=t,i.value=0,v.value=10,f()}const y=async()=>{if(d.value){i.value+=v.value;const t=await u.store.read({skip:i.value,limit:v.value,search:k.value,dateStart:r.value?r.value.start:null,dateEnd:r.value?r.value.end:null,sortParam:a.value?a.value.param:null,sortOrder:a.value?a.value.order:null,...u.options});t.length===0||t.length<v.value?d.value=!1:d.value=!0,n.value=[...n.value,...t],h.value&&(h.value=n.value)}},f=async()=>{const t=await u.store.read({skip:i.value,limit:v.value,dateStart:r.value?r.value.start:null,dateEnd:r.value?r.value.end:null,sortParam:a.value?a.value.param:null,sortOrder:a.value?a.value.order:null,search:k.value,...u.options});t.length===0||t.length<v.value?d.value=!1:d.value=!0,n.value=t,h.value&&(h.value=n.value),p.value=!1};e.watch(()=>u.external,(t,l)=>{t!==l&&(i.value=0,f())},{deep:!0}),e.watch(()=>r.value,(t,l)=>{t!==l&&(i.value=0,f())},{deep:!0}),e.watch(()=>{var t;return(t=a.value)==null?void 0:t.order},(t,l)=>{t!==l&&(i.value=0,f())}),e.watch(()=>{var t;return(t=a.value)==null?void 0:t.param},(t,l)=>{t!==l&&(i.value=0,f())}),e.watch(()=>u.options,(t,l)=>{(t.organization!==l.organization||t.categories!==l.categories||t.prices!==l.prices||t.delivery!==l.delivery||t.search!==l.search||t.status!==l.status||t.hidden!==l.hidden||t.type!==l.type||t.tags!==l.tags||t.following!==l.following)&&(i.value=0,f())},{deep:!0});let g=null;return e.onMounted(async()=>{await f(),typeof window<"u"&&!u.showLoadMore&&(g=new IntersectionObserver(t=>{t.some(l=>l.isIntersecting)&&y()}),g.observe(b.value))}),e.onUnmounted(()=>{g&&g.disconnect()}),(t,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[m.value||r.value||a.value&&!a.value.hideButton?(e.openBlock(),e.createElementBlock("div",F,[m.value?(e.openBlock(),e.createBlock(S.default,{key:0,placeholder:m.value.placeholder||"Search...",class:e.normalizeClass(m.value.class||"bg-light"),onSearch:C},null,8,["placeholder","class"])):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:e.normalizeClass([o.value.class||"bg-light","flex-center flex pd-thin bg-light radius-extra aspect-1x1 h-100"])},[e.createVNode(L.default,{onClick:l[0]||(l[0]=()=>o.value.active=!o.value.active),class:"w-1r h-auto"})],2),o.value.active?(e.openBlock(),e.createBlock(x.default,{key:0,show:o.value.active,onToggle:l[2]||(l[2]=()=>o.value.active=!1),class:e.normalizeClass(["z-index-10 pos-fixed pos-t-0 pos-r-0",{"pos-t-0":o.value.active,"pos-t-100":!o.value.active}])},{default:e.withCtx(()=>[e.createVNode(E.default,{filter:o.value,"onUpdate:filter":l[1]||(l[1]=c=>o.value=c),options:o.value.options,class:"h-100 w-100 pd-small bg-light"},null,8,["filter","options"])]),_:1},8,["show","class"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createBlock(B.default,{key:2,label:{component:O.default,props:{date:r.value}},class:e.normalizeClass([r.value.class||"bg-light","flex-child flex-child-shrink-0 pd-r-small pd-l-small pd-thin bg-light radius-big"]),align:m.value?"right":"left"},{default:e.withCtx(()=>[e.createVNode(N.default,{date:r.value,"onUpdate:date":l[3]||(l[3]=c=>r.value=c),locale:t.$i18n.locale,allowRange:!0,class:"radius-semi w-100 o-hidden bg-light"},null,8,["date","locale"])]),_:1},8,["label","class","align"])):e.createCommentVNode("",!0),a.value&&!a.value.hideButton?(e.openBlock(),e.createBlock(B.default,{key:3,label:{component:z.default,props:{order:a.value.order},class:"w-1r"},class:e.normalizeClass([a.value.class||"bg-light","radius-extra aspect-1x1 h-100"]),align:m.value?"right":"left"},{default:e.withCtx(()=>[e.createVNode(q.default,{param:a.value.param,"onUpdate:param":l[4]||(l[4]=c=>a.value.param=c),order:a.value.order,"onUpdate:order":l[5]||(l[5]=c=>a.value.order=c),options:a.value.options,class:"h-100 pd-small radius-semi t-white bg-black"},null,8,["param","order","options"])]),_:1},8,["label","class","align"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.unref(p)?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:1,tag:"ul",name:"scaleTransition"},{default:e.withCtx(()=>[e.unref(p)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(v),c=>(e.openBlock(),e.createBlock(w.default,{key:"skeleton-"+c,class:"mn-b-small radius-big o-hidden d-block"}))),128)):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),!e.unref(p)&&n.value.length<1?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:2,tag:"ul",name:"feed"},{default:e.withCtx(()=>[!e.unref(p)&&n.value.length<1?(e.openBlock(),e.createBlock(M.default,{key:0,title:s.states.empty.title,description:s.states.empty.description,action:s.states.empty.action,callback:s.states.empty.callback,class:"pd-medium mn-b-thin bg-light radius-big"},null,8,["title","description","action","callback"])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.TransitionGroup,{tag:"ul",name:"feed",class:e.normalizeClass(t.$attrs.class)},{default:e.withCtx(()=>[!e.unref(p)&&n.value.length>0?e.renderSlot(t.$slots,"default",{key:0,items:n.value}):e.createCommentVNode("",!0),s.showLoadMore&&d.value&&n.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:y,class:"col-w-100 w-100 bg-main button"}," Load More ")):e.createCommentVNode("",!0),e.createElementVNode("div",{key:"sentinel",ref_key:"sentinel",ref:b,class:"sentinel"},null,512)]),_:3},8,["class"])],64))}};exports.default=j;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");;/* empty css */const M=require("../EmptyState/EmptyState.vue.cjs"),B=require("../Dropdown/Dropdown.vue.cjs"),N=require("../DatePicker/Calendar.vue2.cjs"),x=require("../BottomSheet/BottomSheet.vue.cjs"),S=require("../../modules/globals/views/components/blocks/BlockSearch.vue.cjs"),q=require("../../modules/globals/views/components/blocks/BlockSorting.vue.cjs"),E=require("../../modules/globals/views/components/blocks/BlockFilter.vue.cjs"),z=require("../../modules/globals/views/components/elements/ButtonSort.vue.cjs"),O=require("../../modules/globals/views/components/elements/ButtonDate.vue.cjs"),L=require("../../modules/icons/navigation/IconFilter.vue.cjs");;/* empty css */const F={key:0,class:"flex-nowrap flex gap-thin"},j={__name:"Feed",props:e.mergeModels({showLoadMore:{type:Boolean,default:!0},search:{type:[Boolean,Object],default:!1},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},external:{type:Boolean,default:!1},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},{search:{},searchModifiers:{},sort:{},sortModifiers:{},filter:{},filterModifiers:{},date:{},dateModifiers:{},items:{},itemsModifiers:{}}),emits:["update:search","update:sort","update:filter","update:date","update:items"],setup(s){const m=e.useModel(s,"search"),a=e.useModel(s,"sort"),o=e.useModel(s,"filter"),r=e.useModel(s,"date"),h=e.useModel(s,"items"),u=s,n=e.ref(h.value||[]),d=e.ref(!1);let p=e.ref(!0),b=e.ref(null),i=e.ref(u.options.skip?u.options.skip:0),v=e.ref(u.options.limit?u.options.limit:10),k=e.ref("");function C(t){k.value=t,i.value=0,v.value=10,f()}const y=async()=>{if(d.value){i.value+=v.value;const t=await u.store.read({skip:i.value,limit:v.value,search:k.value,dateStart:r.value?r.value.start:null,dateEnd:r.value?r.value.end:null,sortParam:a.value?a.value.param:null,sortOrder:a.value?a.value.order:null,...u.options});t.length===0||t.length<v.value?d.value=!1:d.value=!0,n.value=[...n.value,...t],h.value&&(h.value=n.value)}},f=async()=>{const t=await u.store.read({skip:i.value,limit:v.value,dateStart:r.value?r.value.start:null,dateEnd:r.value?r.value.end:null,sortParam:a.value?a.value.param:null,sortOrder:a.value?a.value.order:null,search:k.value,...u.options});t.length===0||t.length<v.value?d.value=!1:d.value=!0,n.value=t,h.value&&(h.value=n.value),p.value=!1};e.watch(()=>u.external,(t,l)=>{t!==l&&(i.value=0,f())},{deep:!0}),e.watch(()=>r.value,(t,l)=>{t!==l&&(i.value=0,f())},{deep:!0}),e.watch(()=>{var t;return(t=a.value)==null?void 0:t.order},(t,l)=>{t!==l&&(i.value=0,f())}),e.watch(()=>{var t;return(t=a.value)==null?void 0:t.param},(t,l)=>{t!==l&&(i.value=0,f())}),e.watch(()=>u.options,(t,l)=>{(t.organization!==l.organization||t.categories!==l.categories||t.prices!==l.prices||t.delivery!==l.delivery||t.search!==l.search||t.status!==l.status||t.hidden!==l.hidden||t.type!==l.type||t.tags!==l.tags||t.following!==l.following)&&(i.value=0,f())},{deep:!0});let g=null;return e.onMounted(async()=>{await f(),typeof window<"u"&&!u.showLoadMore&&(g=new IntersectionObserver(t=>{t.some(l=>l.isIntersecting)&&y()}),g.observe(b.value))}),e.onUnmounted(()=>{g&&g.disconnect()}),(t,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[m.value||r.value||a.value&&!a.value.hideButton?(e.openBlock(),e.createElementBlock("div",F,[m.value?(e.openBlock(),e.createBlock(S.default,{key:0,placeholder:m.value.placeholder||"Search...",class:e.normalizeClass(m.value.class||"bg-light"),onSearch:C},null,8,["placeholder","class"])):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:e.normalizeClass([o.value.class||"bg-light","flex-center flex pd-thin bg-light radius-extra aspect-1x1 h-100"])},[e.createVNode(L.default,{onClick:l[0]||(l[0]=()=>o.value.active=!o.value.active),class:"w-1r h-auto"})],2),o.value.active?(e.openBlock(),e.createBlock(x.default,{key:0,show:o.value.active,onToggle:l[2]||(l[2]=()=>o.value.active=!1),class:e.normalizeClass(["z-index-10 pos-fixed pos-t-0 pos-r-0",{"pos-t-0":o.value.active,"pos-t-100":!o.value.active}])},{default:e.withCtx(()=>[e.createVNode(E.default,{filter:o.value,"onUpdate:filter":l[1]||(l[1]=c=>o.value=c),options:o.value.options,class:"h-100 w-100 pd-small bg-light"},null,8,["filter","options"])]),_:1},8,["show","class"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createBlock(B.default,{key:2,label:{component:O.default,props:{date:r.value}},class:e.normalizeClass([r.value.class||"bg-light","flex-child flex-child-shrink-0 pd-r-small pd-l-small pd-thin bg-light radius-big"]),align:m.value?"right":"left"},{default:e.withCtx(()=>[e.createVNode(N.default,{date:r.value,"onUpdate:date":l[3]||(l[3]=c=>r.value=c),locale:t.$i18n.locale,allowRange:!0,class:"radius-semi w-100 o-hidden bg-light"},null,8,["date","locale"])]),_:1},8,["label","class","align"])):e.createCommentVNode("",!0),a.value&&!a.value.hideButton?(e.openBlock(),e.createBlock(B.default,{key:3,label:{component:z.default,props:{order:a.value.order},class:"w-1r"},class:e.normalizeClass([a.value.class||"bg-light","radius-extra aspect-1x1 h-100"]),align:m.value?"right":"left"},{default:e.withCtx(()=>[e.createVNode(q.default,{param:a.value.param,"onUpdate:param":l[4]||(l[4]=c=>a.value.param=c),order:a.value.order,"onUpdate:order":l[5]||(l[5]=c=>a.value.order=c),options:a.value.options,class:"h-100 pd-small radius-semi t-white bg-black"},null,8,["param","order","options"])]),_:1},8,["label","class","align"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.unref(p)?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:1,tag:"ul",name:"scaleTransition"},{default:e.withCtx(()=>[e.unref(p)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(v),c=>(e.openBlock(),e.createBlock(w.default,{key:"skeleton-"+c,class:"mn-b-small radius-big o-hidden d-block"}))),128)):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),!e.unref(p)&&n.value.length<1?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:2,tag:"ul",name:"feed"},{default:e.withCtx(()=>[!e.unref(p)&&n.value.length<1?(e.openBlock(),e.createBlock(M.default,{key:0,title:s.states.empty.title,description:s.states.empty.description,action:s.states.empty.action,callback:s.states.empty.callback,class:"pd-medium mn-b-thin bg-light radius-big"},null,8,["title","description","action","callback"])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.TransitionGroup,{tag:"ul",name:"feed",class:e.normalizeClass(t.$attrs.class)},{default:e.withCtx(()=>[!e.unref(p)&&n.value.length>0?e.renderSlot(t.$slots,"default",{key:0,items:n.value}):e.createCommentVNode("",!0),s.showLoadMore&&d.value&&n.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:y,class:"col-w-100 w-100 bg-main button"}," Load More ")):e.createCommentVNode("",!0),e.createElementVNode("div",{key:"sentinel",ref_key:"sentinel",ref:b,class:"sentinel"},null,512)]),_:3},8,["class"])],64))}};exports.default=j;
@@ -5,11 +5,11 @@ import A from "../EmptyState/EmptyState.vue.js";
5
5
  import z from "../Dropdown/Dropdown.vue.js";
6
6
  import D from "../DatePicker/Calendar.vue2.js";
7
7
  import H from "../BottomSheet/BottomSheet.vue.js";
8
- import J from "../../modules/globals/components/blocks/BlockSearch.vue.js";
9
- import K from "../../modules/globals/components/blocks/BlockSorting.vue.js";
10
- import Q from "../../modules/globals/components/blocks/BlockFilter.vue.js";
11
- import W from "../../modules/globals/components/elements/ButtonSort.vue.js";
12
- import X from "../../modules/globals/components/elements/ButtonDate.vue.js";
8
+ import J from "../../modules/globals/views/components/blocks/BlockSearch.vue.js";
9
+ import K from "../../modules/globals/views/components/blocks/BlockSorting.vue.js";
10
+ import Q from "../../modules/globals/views/components/blocks/BlockFilter.vue.js";
11
+ import W from "../../modules/globals/views/components/elements/ButtonSort.vue.js";
12
+ import X from "../../modules/globals/views/components/elements/ButtonDate.vue.js";
13
13
  import Y from "../../modules/icons/navigation/IconFilter.vue.js";
14
14
  /* empty css */
15
15
  const Z = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");;/* empty css */const f=require("vue-router"),w=require("vue-i18n"),E=require("../../store/auth.cjs"),p=require("../../store/twofa.cjs"),c=require("../../../../globals/store/globals.cjs"),S=require("../../localization/EnterCode.json.cjs"),q={class:"t-center pd-medium"},D={class:"mn-b-medium"},I={class:"mn-b-big t-transp"},k={class:"w-100 mn-b-big flex-nowrap flex"},C={key:1},N={__name:"EnterCode",setup(V){const g=f.useRoute(),v=f.useRouter(),{t:d}=w.useI18n({useScope:"global",...S.default}),o=n.reactive({digits:["","","",""],error:null});n.watch(()=>o.digits[0],s=>{if(s&&String(s).length>1){let e=String(s).split("");console.log(e);let t=[...o.digits];e.forEach((l,r)=>{console.log(r),console.log(t[r]),console.log(l),t[r]=l}),o.digits=t,u(3)}});const m=n.ref(null),i=n.ref(0);async function y(){try{await p.sendCode(E.state.user,g.query.method,g.query.type),i.value=30;const s=setInterval(()=>{i.value>0?i.value-=1:clearInterval(s)},1e3)}catch{c.setError({response:{data:{errorCode:"CODE_NOT_SENT"}}})}}const a=(s,e)=>{if(s.key==="Backspace"&&(o.digits[e]===null||o.digits[e]===void 0||o.digits[e]==="")){s.preventDefault();const t=document.querySelectorAll("input"),l=e>0?t[e-1]:null;l&&(l.focus(),l.setSelectionRange(l.value.length,l.value.length))}},u=s=>{const e=document.querySelectorAll("input"),t=e[s+1],l=s>0?e[s-1]:null;if(o.digits[s]!==""&&o.digits[s]!==null&&o.digits[s]!==void 0&&s<4&&(s<3?t.focus():m.value.focus()),(o.digits[s]===null||o.digits[s]===void 0||o.digits[s]==="")&&s>0&&l.focus(),o.digits.every(r=>r!=="")){const r=o.digits.join(""),b=p.state.code.code.toString();r===b?(p.state.code.isValid=!0,v.push({path:"/auth/enter-password",query:{type:p.state.code.type,method:g.query.method}})):(c.setError({response:{data:{errorCode:"WRONG_CODE"}}}),m.value.focus(),o.digits=["","","",""])}};return(s,e)=>(n.openBlock(),n.createElementBlock("section",q,[n.createElementVNode("h3",D,n.toDisplayString(n.unref(d)("verifyNumberTitle")),1),n.createElementVNode("p",I,n.toDisplayString(n.unref(d)("instructions")),1),n.createElementVNode("div",k,[n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[0]||(e[0]=t=>o.digits[0]=t),ref_key:"firstInput",ref:m,maxlength:"1",onInput:e[1]||(e[1]=t=>u(0)),onPaste:e[2]||(e[2]=t=>s.onPaste(t,0)),onKeydown:e[3]||(e[3]=t=>a(t,0)),class:"w-100 h1 pd-small t-center bg-light radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[0]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[4]||(e[4]=t=>o.digits[1]=t),maxlength:"1",onInput:e[5]||(e[5]=t=>u(1)),onPaste:e[6]||(e[6]=t=>s.onPaste(t,1)),onKeydown:e[7]||(e[7]=t=>a(t,1)),class:"w-100 h1 pd-small t-center bg-light radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[1]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[8]||(e[8]=t=>o.digits[2]=t),maxlength:"1",onInput:e[9]||(e[9]=t=>u(2)),onPaste:e[10]||(e[10]=t=>s.onPaste(t,2)),onKeydown:e[11]||(e[11]=t=>a(t,2)),class:"w-100 h1 pd-small t-center bg-light radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[2]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[12]||(e[12]=t=>o.digits[3]=t),maxlength:"1",onInput:e[13]||(e[13]=t=>u(3)),onPaste:e[14]||(e[14]=t=>s.onPaste(t,3)),onKeydown:e[15]||(e[15]=t=>a(t,3)),class:"w-100 h1 pd-small t-center bg-light radius-small"},null,544),[[n.vModelText,o.digits[3]]])]),i.value<1?(n.openBlock(),n.createElementBlock("a",{key:0,onClick:y,class:"t-blue"},n.toDisplayString(n.unref(d)("resendCode")),1)):(n.openBlock(),n.createElementBlock("span",C,n.toDisplayString(i.value)+" "+n.toDisplayString(n.unref(d)("secondsResend")),1))]))}};exports.default=N;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");;/* empty css */const f=require("vue-router"),w=require("vue-i18n"),E=require("../../store/auth.cjs"),p=require("../../store/twofa.cjs"),c=require("../../../../globals/views/store/globals.cjs"),S=require("../../localization/EnterCode.json.cjs"),q={class:"t-center pd-medium"},D={class:"mn-b-medium"},I={class:"mn-b-big t-transp"},k={class:"w-100 mn-b-big flex-nowrap flex"},C={key:1},N={__name:"EnterCode",setup(V){const g=f.useRoute(),v=f.useRouter(),{t:d}=w.useI18n({useScope:"global",...S.default}),o=n.reactive({digits:["","","",""],error:null});n.watch(()=>o.digits[0],s=>{if(s&&String(s).length>1){let e=String(s).split("");console.log(e);let t=[...o.digits];e.forEach((l,r)=>{console.log(r),console.log(t[r]),console.log(l),t[r]=l}),o.digits=t,u(3)}});const m=n.ref(null),i=n.ref(0);async function y(){try{await p.sendCode(E.state.user,g.query.method,g.query.type),i.value=30;const s=setInterval(()=>{i.value>0?i.value-=1:clearInterval(s)},1e3)}catch{c.setError({response:{data:{errorCode:"CODE_NOT_SENT"}}})}}const a=(s,e)=>{if(s.key==="Backspace"&&(o.digits[e]===null||o.digits[e]===void 0||o.digits[e]==="")){s.preventDefault();const t=document.querySelectorAll("input"),l=e>0?t[e-1]:null;l&&(l.focus(),l.setSelectionRange(l.value.length,l.value.length))}},u=s=>{const e=document.querySelectorAll("input"),t=e[s+1],l=s>0?e[s-1]:null;if(o.digits[s]!==""&&o.digits[s]!==null&&o.digits[s]!==void 0&&s<4&&(s<3?t.focus():m.value.focus()),(o.digits[s]===null||o.digits[s]===void 0||o.digits[s]==="")&&s>0&&l.focus(),o.digits.every(r=>r!=="")){const r=o.digits.join(""),b=p.state.code.code.toString();r===b?(p.state.code.isValid=!0,v.push({path:"/auth/enter-password",query:{type:p.state.code.type,method:g.query.method}})):(c.setError({response:{data:{errorCode:"WRONG_CODE"}}}),m.value.focus(),o.digits=["","","",""])}};return(s,e)=>(n.openBlock(),n.createElementBlock("section",q,[n.createElementVNode("h3",D,n.toDisplayString(n.unref(d)("verifyNumberTitle")),1),n.createElementVNode("p",I,n.toDisplayString(n.unref(d)("instructions")),1),n.createElementVNode("div",k,[n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[0]||(e[0]=t=>o.digits[0]=t),ref_key:"firstInput",ref:m,maxlength:"1",onInput:e[1]||(e[1]=t=>u(0)),onPaste:e[2]||(e[2]=t=>s.onPaste(t,0)),onKeydown:e[3]||(e[3]=t=>a(t,0)),class:"w-100 h1 pd-small t-center bg-light radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[0]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[4]||(e[4]=t=>o.digits[1]=t),maxlength:"1",onInput:e[5]||(e[5]=t=>u(1)),onPaste:e[6]||(e[6]=t=>s.onPaste(t,1)),onKeydown:e[7]||(e[7]=t=>a(t,1)),class:"w-100 h1 pd-small t-center bg-light radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[1]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[8]||(e[8]=t=>o.digits[2]=t),maxlength:"1",onInput:e[9]||(e[9]=t=>u(2)),onPaste:e[10]||(e[10]=t=>s.onPaste(t,2)),onKeydown:e[11]||(e[11]=t=>a(t,2)),class:"w-100 h1 pd-small t-center bg-light radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[2]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[12]||(e[12]=t=>o.digits[3]=t),maxlength:"1",onInput:e[13]||(e[13]=t=>u(3)),onPaste:e[14]||(e[14]=t=>s.onPaste(t,3)),onKeydown:e[15]||(e[15]=t=>a(t,3)),class:"w-100 h1 pd-small t-center bg-light radius-small"},null,544),[[n.vModelText,o.digits[3]]])]),i.value<1?(n.openBlock(),n.createElementBlock("a",{key:0,onClick:y,class:"t-blue"},n.toDisplayString(n.unref(d)("resendCode")),1)):(n.openBlock(),n.createElementBlock("span",C,n.toDisplayString(i.value)+" "+n.toDisplayString(n.unref(d)("secondsResend")),1))]))}};exports.default=N;
@@ -4,7 +4,7 @@ import { useRoute as q, useRouter as $ } from "vue-router";
4
4
  import { useI18n as K } from "vue-i18n";
5
5
  import { state as N } from "../../store/auth.js";
6
6
  import { state as I, sendCode as R } from "../../store/twofa.js";
7
- import { setError as C } from "../../../../globals/store/globals.js";
7
+ import { setError as C } from "../../../../globals/views/store/globals.js";
8
8
  import T from "../../localization/EnterCode.json.js";
9
9
  const V = { class: "t-center pd-medium" }, A = { class: "mn-b-medium" }, O = { class: "mn-b-big t-transp" }, U = { class: "w-100 mn-b-big flex-nowrap flex" }, B = { key: 1 }, L = {
10
10
  __name: "EnterCode",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("axios"),d=require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs"),g=require("../../../../../node_modules/@capacitor/preferences/dist/esm/index.cjs"),w=require("vue"),c=require("../../../globals/store/globals.cjs"),h=require("./twofa.cjs"),i=k.create({baseURL:process.env.API_URL,withCredentials:!0}),o=w.reactive({user:{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1},accesses:[]});async function l(){try{const e=await j("user");if(console.log("cookie is",e),e){const{_id:t,email:s,phone:n,roles:a,accessToken:r}=e;console.log("accessToken is",r),i.interceptors.request.use(u=>(u.headers["x-access-token"]=r,u),u=>Promise.reject(u));const f=(await i.get("/api/auth/check-accesses")).data;Object.assign(o.user,{_id:t,email:s,phone:n}),Object.assign(o.access,{token:r,roles:a,status:!!r}),o.accesses=f}}catch(e){console.error("Error initializing app:",e),O("user"),o.accesses=[]}}l();const m={async login(e,t){try{const s=await i.post("/api/auth/signin",{...e,type:t});return p("user",s.data),Object.assign(o.user,{...s.data}),Object.assign(o.access,{token:s.data.accessToken,status:!0,roles:s.data.roles}),await l(),s.data}catch(s){return Object.assign(o.access,{token:null,status:!1,roles:null}),console.log(s),c.setError(s),Promise.reject(s)}},async signup(e,t,s){const{password:n,passwordRepeat:a}=o.user;if(console.log(n),console.log(a),n!==a){const r={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw c.setError(r),new Error(r.response.status)}try{const r=await i.post("/api/auth/signup",{...e,type:t,inviteCode:s});return console.log(r),r.data.accessToken&&p("user",r.data),Object.assign(o.user,{...r.data}),Object.assign(o.access,{token:r.data.accessToken,status:!0,roles:r.data.roles}),await l(),r.data}catch(r){throw c.setError(r),console.log("Sign up falied"),r}},logout(){O("user"),Object.assign(o.user,{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(o.access,{roles:null,token:null,status:!1}),o.accesses=[]},async resetPassword(e,t){try{const s=await i.post("/api/auth/reset-password",{email:e.email,phone:e.phone,type:t});return Object.assign(h.state.code,{...s.data,isSended:!0}),s.data}catch(s){return c.setError(s),Promise.reject(s)}},async updatePassword(e,t){const{password:s,passwordRepeat:n}=o.user;if(s!==n){const a={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw c.setError(a),new Error(a.response.status)}try{const a=await i.post("/api/auth/update-password",{email:e.email,phone:e.phone,password:e.password,passwordRepeat:e.passwordRepeat,type:t});return a.data.accessToken&&p("user",a.data),Object.assign(o.user,{...a.data}),Object.assign(o.access,{token:a.data.accessToken,status:!0}),a.data}catch(a){return c.setError(a),Promise.reject(a)}}},P={development:{secure:!1,expires:7,sameSite:"Lax"},production:{expires:7,path:"/",domain:process.env.DOMAIN_URL,sameSite:"none",secure:!0}};async function j(e){if(process.env.MOBILE_APP){const{value:t}=await g.Preferences.get({key:e});return t?JSON.parse(t):null}else{const t=d.default.get(e);return t?JSON.parse(t):null}}function p(e,t,s=process.env.DOMAIN_URL){process.env.MOBILE_APP?g.Preferences.set({key:e,value:JSON.stringify(t)}):d.default.set(e,JSON.stringify(t),P[s])}function O(e,t=process.env.NODE_ENV){if(process.env.MOBILE_APP)g.Preferences.remove({key:e});else{const s=t==="production"?{domain:process.env.DOMAIN_URL}:{};d.default.remove(e,s)}}w.watch(o,(e,t)=>{});exports.actions=m;exports.initialize=l;exports.state=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("axios"),d=require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs"),g=require("../../../../../node_modules/@capacitor/preferences/dist/esm/index.cjs"),w=require("vue"),c=require("../../../globals/views/store/globals.cjs"),h=require("./twofa.cjs"),i=k.create({baseURL:process.env.API_URL,withCredentials:!0}),o=w.reactive({user:{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1},accesses:[]});async function l(){try{const e=await j("user");if(console.log("cookie is",e),e){const{_id:t,email:s,phone:n,roles:a,accessToken:r}=e;console.log("accessToken is",r),i.interceptors.request.use(u=>(u.headers["x-access-token"]=r,u),u=>Promise.reject(u));const f=(await i.get("/api/auth/check-accesses")).data;Object.assign(o.user,{_id:t,email:s,phone:n}),Object.assign(o.access,{token:r,roles:a,status:!!r}),o.accesses=f}}catch(e){console.error("Error initializing app:",e),O("user"),o.accesses=[]}}l();const m={async login(e,t){try{const s=await i.post("/api/auth/signin",{...e,type:t});return p("user",s.data),Object.assign(o.user,{...s.data}),Object.assign(o.access,{token:s.data.accessToken,status:!0,roles:s.data.roles}),await l(),s.data}catch(s){return Object.assign(o.access,{token:null,status:!1,roles:null}),console.log(s),c.setError(s),Promise.reject(s)}},async signup(e,t,s){const{password:n,passwordRepeat:a}=o.user;if(console.log(n),console.log(a),n!==a){const r={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw c.setError(r),new Error(r.response.status)}try{const r=await i.post("/api/auth/signup",{...e,type:t,inviteCode:s});return console.log(r),r.data.accessToken&&p("user",r.data),Object.assign(o.user,{...r.data}),Object.assign(o.access,{token:r.data.accessToken,status:!0,roles:r.data.roles}),await l(),r.data}catch(r){throw c.setError(r),console.log("Sign up falied"),r}},logout(){O("user"),Object.assign(o.user,{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(o.access,{roles:null,token:null,status:!1}),o.accesses=[]},async resetPassword(e,t){try{const s=await i.post("/api/auth/reset-password",{email:e.email,phone:e.phone,type:t});return Object.assign(h.state.code,{...s.data,isSended:!0}),s.data}catch(s){return c.setError(s),Promise.reject(s)}},async updatePassword(e,t){const{password:s,passwordRepeat:n}=o.user;if(s!==n){const a={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw c.setError(a),new Error(a.response.status)}try{const a=await i.post("/api/auth/update-password",{email:e.email,phone:e.phone,password:e.password,passwordRepeat:e.passwordRepeat,type:t});return a.data.accessToken&&p("user",a.data),Object.assign(o.user,{...a.data}),Object.assign(o.access,{token:a.data.accessToken,status:!0}),a.data}catch(a){return c.setError(a),Promise.reject(a)}}},P={development:{secure:!1,expires:7,sameSite:"Lax"},production:{expires:7,path:"/",domain:process.env.DOMAIN_URL,sameSite:"none",secure:!0}};async function j(e){if(process.env.MOBILE_APP){const{value:t}=await g.Preferences.get({key:e});return t?JSON.parse(t):null}else{const t=d.default.get(e);return t?JSON.parse(t):null}}function p(e,t,s=process.env.DOMAIN_URL){process.env.MOBILE_APP?g.Preferences.set({key:e,value:JSON.stringify(t)}):d.default.set(e,JSON.stringify(t),P[s])}function O(e,t=process.env.NODE_ENV){if(process.env.MOBILE_APP)g.Preferences.remove({key:e});else{const s=t==="production"?{domain:process.env.DOMAIN_URL}:{};d.default.remove(e,s)}}w.watch(o,(e,t)=>{});exports.actions=m;exports.initialize=l;exports.state=o;
@@ -2,7 +2,7 @@ import O from "axios";
2
2
  import d from "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
3
3
  import { Preferences as w } from "../../../../../node_modules/@capacitor/preferences/dist/esm/index.js";
4
4
  import { reactive as f, watch as h } from "vue";
5
- import { setError as c } from "../../../globals/store/globals.js";
5
+ import { setError as c } from "../../../globals/views/store/globals.js";
6
6
  import { state as k } from "./twofa.js";
7
7
  const i = O.create({ baseURL: process.env.API_URL, withCredentials: !0 }), a = f({
8
8
  user: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("axios");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const i=require("vue"),d=require("../../../globals/store/globals.cjs"),c=n.create({baseURL:process.env.API_URL,withCredentials:!0}),t=i.reactive({code:{value:"",type:"",method:"",isSended:!1,isValid:!1}});async function l(a,o,r){let s="/api/twofa/sendcode";return o==="reset-password"&&(s="/api/twofa/sendcodereset"),await c.post(s,{phone:a.phone,email:a.email,method:o,type:r}).then(e=>(t.code=e.data,t.code.isSended=!0,Promise.resolve(e.data)),e=>(console.log(e),d.setError(e),Promise.reject(e)))}i.watch(t,(a,o)=>{});exports.sendCode=l;exports.state=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("axios");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const i=require("vue"),d=require("../../../globals/views/store/globals.cjs"),c=n.create({baseURL:process.env.API_URL,withCredentials:!0}),t=i.reactive({code:{value:"",type:"",method:"",isSended:!1,isValid:!1}});async function l(a,o,r){let s="/api/twofa/sendcode";return o==="reset-password"&&(s="/api/twofa/sendcodereset"),await c.post(s,{phone:a.phone,email:a.email,method:o,type:r}).then(e=>(t.code=e.data,t.code.isSended=!0,Promise.resolve(e.data)),e=>(console.log(e),d.setError(e),Promise.reject(e)))}i.watch(t,(a,o)=>{});exports.sendCode=l;exports.state=t;
@@ -1,7 +1,7 @@
1
1
  import r from "axios";
2
2
  import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
3
3
  import { reactive as d, watch as n } from "vue";
4
- import { setError as c } from "../../../globals/store/globals.js";
4
+ import { setError as c } from "../../../globals/views/store/globals.js";
5
5
  const p = r.create({ baseURL: process.env.API_URL, withCredentials: !0 }), a = d({
6
6
  code: {
7
7
  value: "",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../globals/components/blocks/CardHeader.vue.cjs"),d=require("./FooterBlogpost.vue.cjs"),m=require("../../../../components/Text/Text.vue.cjs");;/* empty css */const g=require("vue-router"),b={class:"pos-relative bg-light radius-big flex-column flex"},p={class:"pd-t-zero pd-b-zero pd-medium"},y={key:0,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},f={key:1,class:"pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"},h={key:1,class:"mn-b-small t-transp p-big"},k={key:2,class:"mn-b-small h2"},v=["src"],B={key:1,controls:"",class:"mn-b-medium object-fit-cover w-100 h-max-20r"},x=["src"],V={__name:"CardBlogpost",props:{blogpost:{type:Object},user:{type:String},type:{type:String},hideDescription:{type:Boolean,default:!1},hideTitle:{type:Boolean,default:!1}},setup(t){const i=g.useRouter(),n=t,l=e.computed(()=>n.blogpost.content.find(o=>o.type==="ImageUpload")),s=e.computed(()=>n.blogpost.content.find(o=>o.type==="Video")),a=e.computed(()=>n.blogpost.content.find(o=>o.type==="Textarea"));return(o,r)=>{var c;return e.openBlock(),e.createElementBlock("article",b,[e.createVNode(u.default,{class:e.normalizeClass({"mn-b-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),entity:t.blogpost,entityType:"blogpost",user:t.user,owner:t.blogpost.owner,creator:t.blogpost.creator,date:t.blogpost.createdAt,actions:t.user&&t.user===t.blogpost.creator.target._id?[{to:{name:"Edit BlogPost",params:{url:t.blogpost.url}},label:"Edit"}]:null},null,8,["class","entity","user","owner","creator","date","actions"]),e.createElementVNode("section",p,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",y,[t.hideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m.default,{key:0,text:t.blogpost.name||"",maxLen:80,class:"h3 d-block",onClick:r[0]||(r[0]=E=>e.unref(i).push({name:"BlogPost",params:{url:t.blogpost.url}}))},null,8,["text"])),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",f,e.toDisplayString(t.blogpost.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),a.value&&a.value.content&&t.type!=="blogpostPage"&&!t.hideDescription?(e.openBlock(),e.createElementBlock("p",h,e.toDisplayString(a.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"&&!t.hideTitle?(e.openBlock(),e.createElementBlock("h3",k,e.toDisplayString(t.blogpost.name),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default")]),l.value&&l.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+l.value.content,alt:"Blog post image",class:"mn-b-medium object-fit-cover w-100 h-min-10r h-100"},null,8,v)):e.createCommentVNode("",!0),!((c=l.value)!=null&&c.content)&&s.value&&s.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("video",B,[e.createElementVNode("source",{src:s.value.content,type:"video/mp4"},null,8,x),e.createTextVNode(" Your browser does not support the video tag. ")])):e.createCommentVNode("",!0),e.createVNode(d.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])])}}};exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../globals/views/components/blocks/CardHeader.vue.cjs"),d=require("./FooterBlogpost.vue.cjs"),m=require("../../../../components/Text/Text.vue.cjs");;/* empty css */const g=require("vue-router"),b={class:"pos-relative bg-light radius-big flex-column flex"},p={class:"pd-t-zero pd-b-zero pd-medium"},y={key:0,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},f={key:1,class:"pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"},h={key:1,class:"mn-b-small t-transp p-big"},k={key:2,class:"mn-b-small h2"},v=["src"],B={key:1,controls:"",class:"mn-b-medium object-fit-cover w-100 h-max-20r"},x=["src"],V={__name:"CardBlogpost",props:{blogpost:{type:Object},user:{type:String},type:{type:String},hideDescription:{type:Boolean,default:!1},hideTitle:{type:Boolean,default:!1}},setup(t){const i=g.useRouter(),n=t,l=e.computed(()=>n.blogpost.content.find(o=>o.type==="ImageUpload")),s=e.computed(()=>n.blogpost.content.find(o=>o.type==="Video")),a=e.computed(()=>n.blogpost.content.find(o=>o.type==="Textarea"));return(o,r)=>{var c;return e.openBlock(),e.createElementBlock("article",b,[e.createVNode(u.default,{class:e.normalizeClass({"mn-b-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),entity:t.blogpost,entityType:"blogpost",user:t.user,owner:t.blogpost.owner,creator:t.blogpost.creator,date:t.blogpost.createdAt,actions:t.user&&t.user===t.blogpost.creator.target._id?[{to:{name:"Edit BlogPost",params:{url:t.blogpost.url}},label:"Edit"}]:null},null,8,["class","entity","user","owner","creator","date","actions"]),e.createElementVNode("section",p,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",y,[t.hideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m.default,{key:0,text:t.blogpost.name||"",maxLen:80,class:"h3 d-block",onClick:r[0]||(r[0]=E=>e.unref(i).push({name:"BlogPost",params:{url:t.blogpost.url}}))},null,8,["text"])),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",f,e.toDisplayString(t.blogpost.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),a.value&&a.value.content&&t.type!=="blogpostPage"&&!t.hideDescription?(e.openBlock(),e.createElementBlock("p",h,e.toDisplayString(a.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"&&!t.hideTitle?(e.openBlock(),e.createElementBlock("h3",k,e.toDisplayString(t.blogpost.name),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default")]),l.value&&l.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+l.value.content,alt:"Blog post image",class:"mn-b-medium object-fit-cover w-100 h-min-10r h-100"},null,8,v)):e.createCommentVNode("",!0),!((c=l.value)!=null&&c.content)&&s.value&&s.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("video",B,[e.createElementVNode("source",{src:s.value.content,type:"video/mp4"},null,8,x),e.createTextVNode(" Your browser does not support the video tag. ")])):e.createCommentVNode("",!0),e.createVNode(d.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])])}}};exports.default=V;
@@ -1,5 +1,5 @@
1
1
  import { computed as c, openBlock as o, createElementBlock as l, createVNode as g, normalizeClass as f, createElementVNode as b, createBlock as h, unref as y, createCommentVNode as s, toDisplayString as u, renderSlot as v, createTextVNode as x } from "vue";
2
- import k from "../../../globals/components/blocks/CardHeader.vue.js";
2
+ import k from "../../../globals/views/components/blocks/CardHeader.vue.js";
3
3
  import w from "./FooterBlogpost.vue.js";
4
4
  import B from "../../../../components/Text/Text.vue.js";
5
5
  /* empty css */
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const s=require("../../../../components/EmptyState/EmptyState.vue.cjs"),c=require("../blocks/CardBlogpost.vue.cjs"),i=require("../../../icons/skeletons/SkeletonBlogpost.vue.cjs"),d=require("../../../organizations/components/sections/Publics.vue.cjs"),m=require("../sections/Comments.vue.cjs"),p=require("../../../constructor/components/sections/Viewer.vue.cjs"),g=require("../../store/blogposts.cjs"),r=require("../../../auth/views/store/auth.cjs"),k=require("vue-router"),b={class:"pd-thin"},v=["href"],h=e.createElementVNode("h3",{class:"mn-b-small"},"Recommended Communities",-1),_={__name:"BlogPost",setup(f){const n=k.useRoute(),t=e.ref(null),o=e.ref(!0);return e.onMounted(async()=>{o.value=!0;const a=await g.read({user:r.state.user._id,url:n.params.url});t.value=a[0],o.value=!1}),(a,l)=>(e.openBlock(),e.createElementBlock("section",b,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-light radius-big"},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,u=>e.createVNode(i.default,{key:u})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!o.value&&!t.value?(e.openBlock(),e.createBlock(s.default,{key:0,title:"No Blogpost Found",description:"Currently, there are no blogposts available. Please check back later.",class:"pd-medium mn-b-thin bg-light radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!o.value&&t.value?(e.openBlock(),e.createBlock(c.default,{key:0,onClick:l[0]||(l[0]=u=>a.$router.push({name:"Blogpost",params:{url:t.value.url}})),blogpost:t.value,user:r.state.user._id,type:"blogpostPage",hideTitle:!0,class:"mn-b-medium"},{default:e.withCtx(()=>[t.value&&t.value.content?(e.openBlock(),e.createBlock(p.default,{key:0,content:t.value.content},null,8,["content"])):e.createCommentVNode("",!0),t.value.source?(e.openBlock(),e.createElementBlock("a",{key:1,href:t.value.source,target:"_blank",class:"mn-b-semi d-block w-max radius-big pd-thin bg-black t-white"}," Check Source 🔗 ",8,v)):e.createCommentVNode("",!0)]),_:1},8,["blogpost","user"])):e.createCommentVNode("",!0),h,e.createVNode(d.default,{class:"mn-b-small"}),!o.value&&t.value?(e.openBlock(),e.createBlock(m.default,{key:1,type:"blogpost",target:t.value._id,owner:r.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.cjs");;/* empty css */const f=require("../../../../components/EmptyState/EmptyState.vue.cjs"),_=require("../blocks/CardBlogpost.vue.cjs"),b=require("../../../icons/skeletons/SkeletonBlogpost.vue.cjs"),B=require("../../../organizations/components/sections/Publics.vue.cjs"),y=require("../sections/Comments.vue.cjs"),C=require("../../../constructor/components/sections/Viewer.vue.cjs"),w=require("../../store/blogposts.cjs"),c=require("../../../auth/views/store/auth.cjs"),V=require("vue-router"),N={class:"pd-thin"},q=["href"],x=e.createElementVNode("h3",{class:"mn-b-small"},"Recommended Communities",-1),S={__name:"BlogPost",async setup(T){let l,s;const p=V.useRoute(),t=e.ref(null),n=e.ref(!0),v=e.ref(!1);e.onMounted(()=>{v.value=!!navigator.share}),n.value=!0;const g=([l,s]=e.withAsyncContext(()=>w.read({user:c.state.user._id,url:p.params.url})),l=await l,s(),l);t.value=g[0],n.value=!1,e.computed(()=>{var o;return(o=t.value)==null?void 0:o.content.find(a=>a.type==="ImageUpload")}),e.computed(()=>{var o;return(o=t.value)==null?void 0:o.content.find(a=>a.type==="Video")});const u=e.computed(()=>{var o;return(o=t.value)==null?void 0:o.content[2]}),h=e.computed(()=>{var o,a,r,i,d,m;return{title:(o=t.value)==null?void 0:o.name,description:(a=u.value)==null?void 0:a.content.slice(0,120),meta:[{hid:"description",name:"description",content:(r=u.value)==null?void 0:r.content.slice(0,120)},{hid:"og:title",property:"og:title",content:(i=t.value)==null?void 0:i.name},{hid:"og:description",property:"og:description",content:(d=u.value)==null?void 0:d.content.slice(0,120)},{hid:"twitter:title",name:"twitter:title",content:(m=t.value)==null?void 0:m.name},{hid:"twitter:description",name:"twitter:description",content:u.value}]}});return k.u(h.value),(o,a)=>(e.openBlock(),e.createElementBlock("section",N,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-light radius-big"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,r=>e.createVNode(b.default,{key:r})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!n.value&&!t.value?(e.openBlock(),e.createBlock(f.default,{key:0,title:"No Blogpost Found",description:"Currently, there are no blogposts available. Please check back later.",class:"pd-medium mn-b-thin bg-light radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!n.value&&t.value?(e.openBlock(),e.createBlock(_.default,{key:0,onClick:a[0]||(a[0]=r=>o.$router.push({name:"Blogpost",params:{url:t.value.url}})),blogpost:t.value,user:c.state.user._id,type:"blogpostPage",hideTitle:!0,class:"mn-b-medium"},{default:e.withCtx(()=>[t.value&&t.value.content?(e.openBlock(),e.createBlock(C.default,{key:0,content:t.value.content},null,8,["content"])):e.createCommentVNode("",!0),t.value.source?(e.openBlock(),e.createElementBlock("a",{key:1,href:t.value.source,target:"_blank",class:"mn-b-semi d-block w-max radius-big pd-thin bg-black t-white"}," Check Source 🔗 ",8,q)):e.createCommentVNode("",!0)]),_:1},8,["blogpost","user"])):e.createCommentVNode("",!0),x,e.createVNode(B.default,{class:"mn-b-small"}),!n.value&&t.value?(e.openBlock(),e.createBlock(y.default,{key:1,type:"blogpost",target:t.value._id,owner:c.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=S;
@@ -1,81 +1,112 @@
1
- import { ref as d, onMounted as f, openBlock as t, createElementBlock as u, createVNode as r, TransitionGroup as p, withCtx as l, Fragment as g, renderList as b, createCommentVNode as a, Transition as v, createBlock as s, createElementVNode as h } from "vue";
1
+ import { ref as p, onMounted as $, withAsyncContext as x, computed as c, openBlock as a, createElementBlock as _, createVNode as i, TransitionGroup as k, withCtx as m, Fragment as N, renderList as T, createCommentVNode as r, Transition as V, createBlock as d, createElementVNode as P } from "vue";
2
+ import { u as S } from "../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.js";
2
3
  /* empty css */
3
- import k from "../../../../components/EmptyState/EmptyState.vue.js";
4
- import y from "../blocks/CardBlogpost.vue.js";
5
- import B from "../../../icons/skeletons/SkeletonBlogpost.vue.js";
6
- import $ from "../../../organizations/components/sections/Publics.vue.js";
7
- import w from "../sections/Comments.vue.js";
8
- import C from "../../../constructor/components/sections/Viewer.vue.js";
9
- import { read as N } from "../../store/blogposts.js";
10
- import { state as i } from "../../../auth/views/store/auth.js";
11
- import { useRoute as x } from "vue-router";
12
- const P = { class: "pd-thin" }, T = ["href"], V = /* @__PURE__ */ h("h3", { class: "mn-b-small" }, "Recommended Communities", -1), H = {
4
+ import E from "../../../../components/EmptyState/EmptyState.vue.js";
5
+ import F from "../blocks/CardBlogpost.vue.js";
6
+ import L from "../../../icons/skeletons/SkeletonBlogpost.vue.js";
7
+ import R from "../../../organizations/components/sections/Publics.vue.js";
8
+ import A from "../sections/Comments.vue.js";
9
+ import G from "../../../constructor/components/sections/Viewer.vue.js";
10
+ import { read as H } from "../../store/blogposts.js";
11
+ import { state as f } from "../../../auth/views/store/auth.js";
12
+ import { useRoute as I } from "vue-router";
13
+ const M = { class: "pd-thin" }, U = ["href"], j = /* @__PURE__ */ P("h3", { class: "mn-b-small" }, "Recommended Communities", -1), oe = {
13
14
  __name: "BlogPost",
14
- setup(E) {
15
- const _ = x(), e = d(null), o = d(!0);
16
- return f(async () => {
17
- o.value = !0;
18
- const n = await N({ user: i.user._id, url: _.params.url });
19
- e.value = n[0], o.value = !1;
20
- }), (n, m) => (t(), u("section", P, [
21
- r(p, {
15
+ async setup(q) {
16
+ let s, v;
17
+ const y = I(), e = p(null), n = p(!0), w = p(!1);
18
+ $(() => {
19
+ w.value = !!navigator.share;
20
+ }), n.value = !0;
21
+ const B = ([s, v] = x(() => H({ user: f.user._id, url: y.params.url })), s = await s, v(), s);
22
+ e.value = B[0], n.value = !1, c(() => {
23
+ var t;
24
+ return (t = e.value) == null ? void 0 : t.content.find((o) => o.type === "ImageUpload");
25
+ }), c(() => {
26
+ var t;
27
+ return (t = e.value) == null ? void 0 : t.content.find((o) => o.type === "Video");
28
+ });
29
+ const u = c(() => {
30
+ var t;
31
+ return (t = e.value) == null ? void 0 : t.content[2];
32
+ }), C = c(() => {
33
+ var t, o, l, g, h, b;
34
+ return {
35
+ title: (t = e.value) == null ? void 0 : t.name,
36
+ description: (o = u.value) == null ? void 0 : o.content.slice(0, 120),
37
+ meta: [
38
+ { hid: "description", name: "description", content: (l = u.value) == null ? void 0 : l.content.slice(0, 120) },
39
+ // { hid: 'keywords', name: 'keywords', content: t('meta.keywords') },
40
+ { hid: "og:title", property: "og:title", content: (g = e.value) == null ? void 0 : g.name },
41
+ { hid: "og:description", property: "og:description", content: (h = u.value) == null ? void 0 : h.content.slice(0, 120) },
42
+ // { hid: 'og:image', property: 'og:image', content: base_url + '/favicon/cover.jpg' },
43
+ // { hid: 'og:url', property: 'og:url', content: current_url.value },
44
+ { hid: "twitter:title", name: "twitter:title", content: (b = e.value) == null ? void 0 : b.name },
45
+ { hid: "twitter:description", name: "twitter:description", content: u.value }
46
+ // { hid: 'twitter:image', name: 'twitter:image', content: base_url + '/favicon/cover.jpg' },
47
+ // { hid: 'twitter:card', name: 'twitter:card', content: t('meta.twitter.card') },
48
+ ]
49
+ };
50
+ });
51
+ return S(C.value), (t, o) => (a(), _("section", M, [
52
+ i(k, {
22
53
  tag: "ul",
23
54
  name: "fade",
24
55
  class: "o-hidden bg-light radius-big"
25
56
  }, {
26
- default: l(() => [
27
- o.value ? (t(), u(g, { key: 0 }, b(3, (c) => r(B, { key: c })), 64)) : a("", !0)
57
+ default: m(() => [
58
+ n.value ? (a(), _(N, { key: 0 }, T(3, (l) => i(L, { key: l })), 64)) : r("", !0)
28
59
  ]),
29
60
  _: 1
30
61
  }),
31
- r(v, { name: "fade" }, {
32
- default: l(() => [
33
- !o.value && !e.value ? (t(), s(k, {
62
+ i(V, { name: "fade" }, {
63
+ default: m(() => [
64
+ !n.value && !e.value ? (a(), d(E, {
34
65
  key: 0,
35
66
  title: "No Blogpost Found",
36
67
  description: "Currently, there are no blogposts available. Please check back later.",
37
68
  class: "pd-medium mn-b-thin bg-light radius-big"
38
- })) : a("", !0)
69
+ })) : r("", !0)
39
70
  ]),
40
71
  _: 1
41
72
  }),
42
- r(p, {
73
+ i(k, {
43
74
  tag: "ul",
44
75
  name: "fade",
45
76
  class: "container"
46
77
  }, {
47
- default: l(() => [
48
- !o.value && e.value ? (t(), s(y, {
78
+ default: m(() => [
79
+ !n.value && e.value ? (a(), d(F, {
49
80
  key: 0,
50
- onClick: m[0] || (m[0] = (c) => n.$router.push({ name: "Blogpost", params: { url: e.value.url } })),
81
+ onClick: o[0] || (o[0] = (l) => t.$router.push({ name: "Blogpost", params: { url: e.value.url } })),
51
82
  blogpost: e.value,
52
- user: i.user._id,
83
+ user: f.user._id,
53
84
  type: "blogpostPage",
54
85
  hideTitle: !0,
55
86
  class: "mn-b-medium"
56
87
  }, {
57
- default: l(() => [
58
- e.value && e.value.content ? (t(), s(C, {
88
+ default: m(() => [
89
+ e.value && e.value.content ? (a(), d(G, {
59
90
  key: 0,
60
91
  content: e.value.content
61
- }, null, 8, ["content"])) : a("", !0),
62
- e.value.source ? (t(), u("a", {
92
+ }, null, 8, ["content"])) : r("", !0),
93
+ e.value.source ? (a(), _("a", {
63
94
  key: 1,
64
95
  href: e.value.source,
65
96
  target: "_blank",
66
97
  class: "mn-b-semi d-block w-max radius-big pd-thin bg-black t-white"
67
- }, " Check Source 🔗 ", 8, T)) : a("", !0)
98
+ }, " Check Source 🔗 ", 8, U)) : r("", !0)
68
99
  ]),
69
100
  _: 1
70
- }, 8, ["blogpost", "user"])) : a("", !0),
71
- V,
72
- r($, { class: "mn-b-small" }),
73
- !o.value && e.value ? (t(), s(w, {
101
+ }, 8, ["blogpost", "user"])) : r("", !0),
102
+ j,
103
+ i(R, { class: "mn-b-small" }),
104
+ !n.value && e.value ? (a(), d(A, {
74
105
  key: 1,
75
106
  type: "blogpost",
76
107
  target: e.value._id,
77
- owner: i.user._id
78
- }, null, 8, ["target", "owner"])) : a("", !0)
108
+ owner: f.user._id
109
+ }, null, 8, ["target", "owner"])) : r("", !0)
79
110
  ]),
80
111
  _: 1
81
112
  })
@@ -83,5 +114,5 @@ const P = { class: "pd-thin" }, T = ["href"], V = /* @__PURE__ */ h("h3", { clas
83
114
  }
84
115
  };
85
116
  export {
86
- H as default
117
+ oe as default
87
118
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../globals/components/blocks/CardHeader.vue.cjs"),b={class:"pd-t-zero"},w={class:"p-big"},B={class:"mn-t-thin flex-v-center flex-nowrap flex gap-small"},E={key:0,class:"mn-l-medium mn-t-small bg-white w-100 radius-small pd-small reply-form"},V={key:1,class:"br-solid br-l br-grey-transp-25"},i={__name:"Comment",props:{comment:{type:Object,required:!0},target:{type:String,required:!0},owner:{type:String,required:!0}},emits:["reply","load-more"],setup(t,{emit:y}){const a=t,m=y,s=e.ref(!1),r=e.ref(""),c=e.ref(p(a.comment.depth));function p(l){return l%3<2}const d=e.computed(()=>{function l(n){return!n.children||n.children.length===0?0:n.children.length+n.children.reduce((o,h)=>o+l(h),0)}return l(a.comment)}),v=()=>{c.value=!c.value},u=()=>{m("reply",a.comment._id,r.value),r.value="",s.value=!1},g=(l,n)=>{m("reply",l,n)},k=(l,n)=>{m("load-more",l,n)};return(l,n)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(f.default,{class:"mn-b-thin",entity:t.comment,entityType:"comment",user:t.owner,owner:{target:t.comment.user},creator:{target:t.comment.user},date:t.comment.createdAt},null,8,["entity","user","owner","creator","date"]),e.createElementVNode("div",b,[e.createElementVNode("p",w,e.toDisplayString(t.comment.content),1)]),e.createElementVNode("div",B,[d.value>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:v,class:"t-second cursor-pointer t-medium font-second"},e.toDisplayString(c.value?"Hide":d.value+(d.value===1?" reply":" replies")),1)):e.createCommentVNode("",!0),t.owner?(e.openBlock(),e.createElementBlock("button",{key:1,class:"font-second cursor-pointer t-transp t-medium",onClick:n[0]||(n[0]=o=>s.value=!0)}," Reply ")):e.createCommentVNode("",!0)]),s.value?(e.openBlock(),e.createElementBlock("div",E,[e.withDirectives(e.createElementVNode("textarea",{class:"w-100","onUpdate:modelValue":n[1]||(n[1]=o=>r.value=o)},null,512),[[e.vModelText,r.value]]),e.createElementVNode("div",{class:"mn-l-auto gap-thin flex-nowrap flex"},[e.createElementVNode("button",{class:"bg-grey-transp-25 button",onClick:u},"Cancel"),e.createElementVNode("button",{class:"bg-main button",onClick:u},"Send")])])):e.createCommentVNode("",!0),c.value&&t.comment.children&&t.comment.children.length?(e.openBlock(),e.createElementBlock("div",V,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.comment.children,o=>(e.openBlock(),e.createBlock(i,{key:o._id,comment:o,target:t.target,owner:t.owner,onReply:g,onLoadMore:k,class:"mn-l-medium mn-t-small"},null,8,["comment","target","owner"]))),128))])):e.createCommentVNode("",!0)]))}};exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../globals/views/components/blocks/CardHeader.vue.cjs"),b={class:"pd-t-zero"},w={class:"p-big"},B={class:"mn-t-thin flex-v-center flex-nowrap flex gap-small"},E={key:0,class:"mn-l-medium mn-t-small bg-white w-100 radius-small pd-small reply-form"},V={key:1,class:"br-solid br-l br-grey-transp-25"},i={__name:"Comment",props:{comment:{type:Object,required:!0},target:{type:String,required:!0},owner:{type:String,required:!0}},emits:["reply","load-more"],setup(t,{emit:y}){const a=t,m=y,s=e.ref(!1),r=e.ref(""),c=e.ref(p(a.comment.depth));function p(l){return l%3<2}const d=e.computed(()=>{function l(n){return!n.children||n.children.length===0?0:n.children.length+n.children.reduce((o,h)=>o+l(h),0)}return l(a.comment)}),v=()=>{c.value=!c.value},u=()=>{m("reply",a.comment._id,r.value),r.value="",s.value=!1},g=(l,n)=>{m("reply",l,n)},k=(l,n)=>{m("load-more",l,n)};return(l,n)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(f.default,{class:"mn-b-thin",entity:t.comment,entityType:"comment",user:t.owner,owner:{target:t.comment.user},creator:{target:t.comment.user},date:t.comment.createdAt},null,8,["entity","user","owner","creator","date"]),e.createElementVNode("div",b,[e.createElementVNode("p",w,e.toDisplayString(t.comment.content),1)]),e.createElementVNode("div",B,[d.value>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:v,class:"t-second cursor-pointer t-medium font-second"},e.toDisplayString(c.value?"Hide":d.value+(d.value===1?" reply":" replies")),1)):e.createCommentVNode("",!0),t.owner?(e.openBlock(),e.createElementBlock("button",{key:1,class:"font-second cursor-pointer t-transp t-medium",onClick:n[0]||(n[0]=o=>s.value=!0)}," Reply ")):e.createCommentVNode("",!0)]),s.value?(e.openBlock(),e.createElementBlock("div",E,[e.withDirectives(e.createElementVNode("textarea",{class:"w-100","onUpdate:modelValue":n[1]||(n[1]=o=>r.value=o)},null,512),[[e.vModelText,r.value]]),e.createElementVNode("div",{class:"mn-l-auto gap-thin flex-nowrap flex"},[e.createElementVNode("button",{class:"bg-grey-transp-25 button",onClick:u},"Cancel"),e.createElementVNode("button",{class:"bg-main button",onClick:u},"Send")])])):e.createCommentVNode("",!0),c.value&&t.comment.children&&t.comment.children.length?(e.openBlock(),e.createElementBlock("div",V,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.comment.children,o=>(e.openBlock(),e.createBlock(i,{key:o._id,comment:o,target:t.target,owner:t.owner,onReply:g,onLoadMore:k,class:"mn-l-medium mn-t-small"},null,8,["comment","target","owner"]))),128))])):e.createCommentVNode("",!0)]))}};exports.default=i;
@@ -1,5 +1,5 @@
1
1
  import { ref as v, computed as C, openBlock as r, createElementBlock as a, createVNode as R, createElementVNode as o, toDisplayString as h, createCommentVNode as i, withDirectives as B, vModelText as E, Fragment as S, renderList as V, createBlock as q } from "vue";
2
- import L from "../../../globals/components/blocks/CardHeader.vue.js";
2
+ import L from "../../../globals/views/components/blocks/CardHeader.vue.js";
3
3
  const M = { class: "pd-t-zero" }, N = { class: "p-big" }, D = { class: "mn-t-thin flex-v-center flex-nowrap flex gap-small" }, F = {
4
4
  key: 0,
5
5
  class: "mn-l-medium mn-t-small bg-white w-100 radius-small pd-small reply-form"
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("axios"),u=require("vue"),c=require("../../globals/store/globals.cjs"),l=m.create({baseURL:process.env.API_URL,withCredentials:!0}),a=u.reactive({all:[],filter:{tags:[],period:""},pagination:{page:1,perPage:18},sort:{param:"createdAt",order:"desc",hideButton:!0,options:[{label:"Date",value:"createdAt"},{label:"Popularity",value:"views"},{label:"Creator",value:"creator"}]},current:{_id:"",url:"",status:"",name:"",tags:[],owner:{},source:null,date:"",views:0,content:[]}});async function n(e={}){e.params=e.params||{},e.params.skip=e.skip||0,e.params.limit=e.limit||9,e.params.tags=e.tags||[],e.period&&(e.params.period=e.period),e.url&&(e.params={url:e.url}),e.category&&(e.params.category=e.category),e.owner&&(e.params.owner=e.owner),e.following&&(e.params.following=e.following),e.creator&&(e.params.creator=e.creator),e.status&&(e.params.status=e.status),e.user&&(e.params.user=e.user),e.sortParam&&(e.params.sortParam=e.sortParam),e.sortOrder&&(e.params.sortOrder=e.sortOrder),e.params.skip=e.skip||0,e.params.limit=e.limit||10;try{const r=await l.get("/api/blog/read",{params:e.params});return e.url?t(r.data,"current"):t(r.data,"all"),Promise.resolve(r.data)}catch(r){return c.setError(r),Promise.reject(r)}}async function i(e){return l.post("/api/blog/create",e).then(r=>(t(r.data,"current"),Promise.resolve(r.data)),r=>(c.setError(r),Promise.reject(r)))}async function f(e){return l.post("/api/blog/update",e).then(r=>(t(r.data,"current"),Promise.resolve(r.data)),r=>(c.setError(r),Promise.reject(r)))}async function g(e){return await l.delete(`/api/blog/delete/${e}`).then(r=>{const s=a.all.findIndex(d=>d._id===e);return s!==-1&&a.all.splice(s,1),Promise.resolve(r.data)},r=>(c.setError(r),Promise.reject(r)))}function t(e,r){a[r]=e}function w(){a.current={_id:"",url:"",status:"",name:"",tags:[],author:"",owner:"",date:"",views:0,content:[]}}function v(e){const r={order:a.project.content.length+1,type:e.type,data:e.data,class:e.class,content:e.content};a.project.content.push(r)}u.watch(a,(e,r)=>{});exports.blockAdd=v;exports.clean=w;exports.create=i;exports.read=n;exports.remove=g;exports.set=t;exports.state=a;exports.update=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("axios"),u=require("vue"),c=require("../../globals/views/store/globals.cjs"),l=m.create({baseURL:process.env.API_URL,withCredentials:!0}),a=u.reactive({all:[],filter:{tags:[],period:""},pagination:{page:1,perPage:18},sort:{param:"createdAt",order:"desc",hideButton:!0,options:[{label:"Date",value:"createdAt"},{label:"Popularity",value:"views"},{label:"Creator",value:"creator"}]},current:{_id:"",url:"",status:"",name:"",tags:[],owner:{},source:null,date:"",views:0,content:[]}});async function n(e={}){e.params=e.params||{},e.params.skip=e.skip||0,e.params.limit=e.limit||9,e.params.tags=e.tags||[],e.period&&(e.params.period=e.period),e.url&&(e.params={url:e.url}),e.category&&(e.params.category=e.category),e.owner&&(e.params.owner=e.owner),e.following&&(e.params.following=e.following),e.creator&&(e.params.creator=e.creator),e.status&&(e.params.status=e.status),e.user&&(e.params.user=e.user),e.sortParam&&(e.params.sortParam=e.sortParam),e.sortOrder&&(e.params.sortOrder=e.sortOrder),e.params.skip=e.skip||0,e.params.limit=e.limit||10;try{const r=await l.get("/api/blog/read",{params:e.params});return e.url?t(r.data,"current"):t(r.data,"all"),Promise.resolve(r.data)}catch(r){return c.setError(r),Promise.reject(r)}}async function i(e){return l.post("/api/blog/create",e).then(r=>(t(r.data,"current"),Promise.resolve(r.data)),r=>(c.setError(r),Promise.reject(r)))}async function f(e){return l.post("/api/blog/update",e).then(r=>(t(r.data,"current"),Promise.resolve(r.data)),r=>(c.setError(r),Promise.reject(r)))}async function g(e){return await l.delete(`/api/blog/delete/${e}`).then(r=>{const s=a.all.findIndex(d=>d._id===e);return s!==-1&&a.all.splice(s,1),Promise.resolve(r.data)},r=>(c.setError(r),Promise.reject(r)))}function t(e,r){a[r]=e}function w(){a.current={_id:"",url:"",status:"",name:"",tags:[],author:"",owner:"",date:"",views:0,content:[]}}function v(e){const r={order:a.project.content.length+1,type:e.type,data:e.data,class:e.class,content:e.content};a.project.content.push(r)}u.watch(a,(e,r)=>{});exports.blockAdd=v;exports.clean=w;exports.create=i;exports.read=n;exports.remove=g;exports.set=t;exports.state=a;exports.update=f;
@@ -1,6 +1,6 @@
1
1
  import m from "axios";
2
2
  import { reactive as d, watch as n } from "vue";
3
- import { setError as c } from "../../globals/store/globals.js";
3
+ import { setError as c } from "../../globals/views/store/globals.js";
4
4
  const l = m.create({ baseURL: process.env.API_URL, withCredentials: !0 }), a = d({
5
5
  all: [],
6
6
  filter: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("axios"),c=require("vue"),o=require("../../globals/store/globals.cjs"),i=l.create({baseURL:process.env.API_URL,withCredentials:!0}),s=c.reactive({reactions:[],error:null}),d={async read(r){try{const e={};r.user&&(e.user=r.user),r.type&&(e.type=r.type),r.target&&(e.target=r.target),r.targetString&&(e.targetString=r.targetString);const a=await i.get("/api/reactions/read",{params:e});return s.error=null,s.reactions=a.data,Promise.resolve(a.data)}catch(e){return o.setError(e),Promise.reject(e)}},async create(r){try{const e=await i.post("/api/reactions/create",r);return s.error=null,Promise.resolve(e.data)}catch(e){return console.log(e),o.setError(e),Promise.reject(e)}},async update(r){try{const e=await i.post("/api/reactions/update",r);return s.error=null,Promise.resolve(e.data)}catch(e){return o.setError(e),Promise.reject(e)}},async delete(r){try{const e=await i.post("/api/reactions/delete",r);return s.error=null,Promise.resolve(e.data)}catch(e){return o.setError(e),Promise.reject(e)}}},y={handleReactionUpdate(r,e,a){let t;if(Array.isArray(r)?t=r.find(n=>n._id===e.target):typeof r=="object"&&r._id===e.target&&(t=r),t)if(t.hasReaction=a,a)t.reactions.push(e),t.numberOfReactions+=1;else{const n=t.reactions.findIndex(u=>u._id===e._id);n!==-1&&(t.reactions.splice(n,1),t.numberOfReactions-=1)}}};c.watch(s,r=>{});exports.actions=d;exports.mutations=y;exports.state=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("axios"),c=require("vue"),o=require("../../globals/views/store/globals.cjs"),i=l.create({baseURL:process.env.API_URL,withCredentials:!0}),s=c.reactive({reactions:[],error:null}),d={async read(r){try{const e={};r.user&&(e.user=r.user),r.type&&(e.type=r.type),r.target&&(e.target=r.target),r.targetString&&(e.targetString=r.targetString);const a=await i.get("/api/reactions/read",{params:e});return s.error=null,s.reactions=a.data,Promise.resolve(a.data)}catch(e){return o.setError(e),Promise.reject(e)}},async create(r){try{const e=await i.post("/api/reactions/create",r);return s.error=null,Promise.resolve(e.data)}catch(e){return console.log(e),o.setError(e),Promise.reject(e)}},async update(r){try{const e=await i.post("/api/reactions/update",r);return s.error=null,Promise.resolve(e.data)}catch(e){return o.setError(e),Promise.reject(e)}},async delete(r){try{const e=await i.post("/api/reactions/delete",r);return s.error=null,Promise.resolve(e.data)}catch(e){return o.setError(e),Promise.reject(e)}}},y={handleReactionUpdate(r,e,a){let t;if(Array.isArray(r)?t=r.find(n=>n._id===e.target):typeof r=="object"&&r._id===e.target&&(t=r),t)if(t.hasReaction=a,a)t.reactions.push(e),t.numberOfReactions+=1;else{const n=t.reactions.findIndex(u=>u._id===e._id);n!==-1&&(t.reactions.splice(n,1),t.numberOfReactions-=1)}}};c.watch(s,r=>{});exports.actions=d;exports.mutations=y;exports.state=s;
@@ -1,6 +1,6 @@
1
1
  import l from "axios";
2
2
  import { reactive as u, watch as p } from "vue";
3
- import { setError as i } from "../../globals/store/globals.js";
3
+ import { setError as i } from "../../globals/views/store/globals.js";
4
4
  const n = l.create({
5
5
  baseURL: process.env.API_URL,
6
6
  withCredentials: !0