@ozdao/prometheus-framework 0.2.130 → 0.2.132

Sign up to get free protection for your applications and to get access to all the features.
Files changed (316) hide show
  1. package/dist/auth.server.js +0 -1
  2. package/dist/auth.server.mjs +0 -1
  3. package/dist/community.server.js +172 -31
  4. package/dist/community.server.mjs +172 -31
  5. package/dist/events.server.js +1 -1
  6. package/dist/events.server.mjs +1 -1
  7. package/dist/files.server.js +38 -4
  8. package/dist/files.server.mjs +38 -4
  9. package/dist/gallery.server.js +1 -1
  10. package/dist/gallery.server.mjs +1 -1
  11. package/dist/main-CI9l9xMs.js +92 -0
  12. package/dist/main-DPg58GOU.mjs +14509 -0
  13. package/dist/main.css +1 -1
  14. package/dist/orders.server.js +1 -1
  15. package/dist/orders.server.mjs +1 -1
  16. package/dist/organizations.server.js +4 -3
  17. package/dist/organizations.server.mjs +4 -3
  18. package/dist/products.server.js +2 -1
  19. package/dist/products.server.mjs +2 -1
  20. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -0
  21. package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -0
  22. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +22 -23
  24. package/dist/prometheus-framework/src/components/Block/Block.vue.js +13 -13
  25. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -0
  26. package/dist/prometheus-framework/src/components/Button/Button.vue.js +95 -0
  27. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
  28. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +26 -0
  29. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
  30. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +32 -33
  31. package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.cjs +1 -0
  32. package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.js +75 -0
  33. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -0
  34. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +57 -0
  35. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +93 -87
  37. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -0
  38. package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -0
  39. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +32 -29
  41. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +22 -23
  43. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +39 -39
  45. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
  46. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.js +5 -5
  47. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -0
  48. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -0
  49. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  50. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +46 -47
  51. package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +1 -0
  52. package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +13 -0
  53. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +22 -23
  55. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -0
  56. package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -0
  57. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  58. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +14 -15
  59. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +9 -10
  61. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +37 -34
  63. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
  65. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
  69. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
  71. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +31 -31
  73. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +32 -32
  75. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +20 -20
  77. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/auth/store/auth.js +11 -11
  79. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/community/community.client.js +12 -14
  83. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +55 -72
  85. package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.js +57 -29
  87. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +87 -77
  89. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +58 -28
  91. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +3 -3
  93. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +71 -80
  95. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -0
  96. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +104 -0
  97. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +99 -54
  99. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +29 -30
  101. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +45 -34
  103. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +31 -29
  105. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +32 -27
  109. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -0
  110. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +67 -0
  111. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +16 -16
  113. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +119 -112
  115. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
  117. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  119. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  121. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  123. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  125. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +21 -21
  126. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +30 -30
  128. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +33 -22
  130. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  132. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +18 -18
  134. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
  136. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +3 -9
  138. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +3 -3
  140. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +3 -3
  142. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +9 -9
  144. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  146. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  148. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +39 -38
  150. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  154. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  156. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +113 -86
  158. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  160. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +37 -36
  162. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +10 -10
  164. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  166. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  168. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +5 -5
  170. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +17 -17
  172. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +18 -18
  174. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
  176. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +6 -6
  178. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +12 -12
  179. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  181. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  183. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  185. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +3 -3
  187. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  189. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  190. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  191. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -2
  193. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  195. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  196. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  197. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +32 -37
  199. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  201. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  203. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +5 -5
  205. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +14 -14
  207. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +33 -33
  209. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +53 -35
  211. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
  213. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
  214. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js +30 -0
  215. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +1 -0
  216. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +42 -0
  217. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.cjs +1 -0
  218. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.js +26 -0
  219. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +1 -0
  220. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +42 -0
  221. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.cjs +1 -0
  222. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.js +26 -0
  223. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +158 -81
  225. package/dist/prometheus-framework.cjs.js +1 -1
  226. package/dist/prometheus-framework.es.js +14 -14
  227. package/dist/queryProcessor-DQSFR9YA.mjs +179 -0
  228. package/dist/queryProcessor-iewDZq_f.js +178 -0
  229. package/dist/style.css +1 -1
  230. package/dist/wallet.server.js +80 -27
  231. package/dist/wallet.server.mjs +80 -27
  232. package/dist/web-DZUec7pP.js +1 -0
  233. package/dist/web-krQQeSb6.mjs +54 -0
  234. package/package.json +1 -1
  235. package/src/components/Address/Address.vue +1 -1
  236. package/src/components/Chips/Chips.vue +1 -1
  237. package/src/components/Completion/Completion.vue +1 -4
  238. package/src/components/DatePicker/Calendar.vue +1 -1
  239. package/src/components/Draggable/Draggable.vue +113 -0
  240. package/src/components/Dropdown/Dropdown.vue +1 -1
  241. package/src/components/Feed/Feed.vue +18 -12
  242. package/src/components/FieldBig/FieldBig.vue +11 -1
  243. package/src/components/FieldPhone/FieldPhone.vue +1 -1
  244. package/src/components/FieldTags/FieldTags.vue +2 -1
  245. package/src/components/FieldTags/tag-input.vue +1 -1
  246. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  247. package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
  248. package/src/components/Shader/Shader.vue +2 -2
  249. package/src/components/Slider/Slider.vue +1 -5
  250. package/src/components/Spoiler/Spoiler.vue +1 -1
  251. package/src/components/Text/Text.vue +1 -4
  252. package/src/components/Tooltip/Tooltip.vue +1 -1
  253. package/src/components/Upload/Upload.vue +5 -3
  254. package/src/modules/auth/controllers/auth.controller.js +0 -2
  255. package/src/modules/auth/store/auth.js +2 -2
  256. package/src/modules/community/DOCUMENTATION.MD +4 -0
  257. package/src/modules/community/community.client.js +0 -2
  258. package/src/modules/community/components/blocks/CardBlogpost.vue +6 -2
  259. package/src/modules/community/components/blocks/FooterBlogpost.vue +21 -5
  260. package/src/modules/community/components/layouts/Community.vue +15 -11
  261. package/src/modules/community/components/pages/Blog.vue +25 -32
  262. package/src/modules/community/components/pages/CreateBlogPost.vue +8 -15
  263. package/src/modules/community/components/sections/Comment.vue +123 -0
  264. package/src/modules/community/components/sections/Comments.vue +90 -19
  265. package/src/modules/community/components/sections/HotPosts.vue +3 -6
  266. package/src/modules/community/controllers/blog.controller.js +1 -1
  267. package/src/modules/community/controllers/comments.controller.aggr.js +280 -0
  268. package/src/modules/community/controllers/comments.controller.js +187 -38
  269. package/src/modules/community/controllers/comments.controller.populate.js +180 -0
  270. package/src/modules/community/models/comment.model.js +15 -0
  271. package/src/modules/community/store/blogposts.js +20 -2
  272. package/src/modules/constructor/components/elements/Audio.vue +28 -40
  273. package/src/modules/constructor/components/elements/ImageUpload.vue +12 -7
  274. package/src/modules/constructor/components/elements/Video.vue +10 -18
  275. package/src/modules/constructor/components/sections/Constructor.vue +54 -47
  276. package/src/modules/files/controllers/files.controller.js +2 -0
  277. package/src/modules/files/middlewares/server/middlewareBusboy.js +32 -4
  278. package/src/modules/files/routes/files.routes.js +8 -0
  279. package/src/modules/globals/components/blocks/BlockFilter.vue +17 -7
  280. package/src/modules/globals/components/partials/Header.vue +12 -7
  281. package/src/modules/globals/controllers/utils/queryProcessor.js +1 -0
  282. package/src/modules/icons/logos/Logotype.vue +8 -6
  283. package/src/modules/icons/logos/LogotypeNunito.vue +12 -0
  284. package/src/modules/marketplace/components/layouts/Marketplace.vue +29 -27
  285. package/src/modules/marketplace/store/marketplace.js +2 -8
  286. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  287. package/src/modules/organizations/components/pages/Members.vue +1 -1
  288. package/src/modules/organizations/components/pages/Organization.vue +33 -5
  289. package/src/modules/organizations/components/pages/OrganizationEdit.vue +7 -4
  290. package/src/modules/organizations/components/sections/DetailsTab.vue +10 -10
  291. package/src/modules/organizations/components/sections/Publics.vue +2 -2
  292. package/src/modules/organizations/controllers/memberships.controller.js +2 -3
  293. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  294. package/src/modules/organizations/store/memberships.js +4 -1
  295. package/src/modules/products/components/blocks/CardProduct.vue +1 -1
  296. package/src/modules/products/components/sections/HeroRecommendation.vue +11 -8
  297. package/src/modules/products/models/product.model.js +2 -1
  298. package/src/modules/spots/components/layouts/Spots.vue +0 -3
  299. package/src/modules/spots/components/pages/Map.vue +13 -3
  300. package/src/modules/users/components/blocks/CardUser.vue +2 -2
  301. package/src/modules/users/components/pages/ProfileBlogposts.vue +45 -28
  302. package/src/modules/wallet/components/blocks/CardBalanceReplenished.vue +40 -0
  303. package/src/modules/wallet/components/blocks/CardDeposite.vue +55 -0
  304. package/src/modules/wallet/components/blocks/CashDeposite.vue +28 -0
  305. package/src/modules/wallet/components/blocks/CryptoDeposite.vue +55 -0
  306. package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +181 -0
  307. package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -113
  308. package/src/modules/wallet/controllers/factories/rewards.factory.population.js +213 -0
  309. package/src/modules/wallet/localization/Wallet.json +22 -0
  310. package/src/modules/wallet/views/components/pages/Wallet.vue +153 -53
  311. package/src/styles/base/all.scss +16 -26
  312. package/src/styles/config.scss +70 -34
  313. package/src/styles/typography.scss +5 -5
  314. package/src/modules/community/components/sections/Feed.vue +0 -148
  315. package/src/modules/middlewares/server/accessors/AccessController.js +0 -33
  316. package/src/modules/middlewares/server/accessors/ReadDepartments.js +0 -101
@@ -1,29 +1,29 @@
1
- import { ref as d, resolveComponent as E, openBlock as S, createElementBlock as x, createElementVNode as o, toDisplayString as r, unref as t, createVNode as a, Transition as h, withCtx as m, withDirectives as f, vShow as _, createTextVNode as v } from "vue";
1
+ import { ref as d, resolveComponent as E, openBlock as S, createElementBlock as x, createElementVNode as o, toDisplayString as r, unref as t, createVNode as a, Transition as h, withCtx as m, withDirectives as _, vShow as f, createTextVNode as v } from "vue";
2
2
  import N from "../../../../components/Tab/Tab.vue2.js";
3
- import V from "../../../../components/Field/Field.vue2.js";
3
+ import V from "../../../../components/Field/Field.vue.js";
4
4
  import y from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import D from "../../../../components/Button/Button.vue2.js";
6
- import { useRoute as I, useRouter as P } from "vue-router";
7
- import { useI18n as F } from "vue-i18n";
8
- import O from "../../localization/SignUp.json.js";
5
+ import D from "../../../../components/Button/Button.vue.js";
6
+ import { useRoute as I, useRouter as O } from "vue-router";
7
+ import { useI18n as P } from "vue-i18n";
8
+ import T from "../../localization/SignUp.json.js";
9
9
  import { state as s } from "../../store/auth.js";
10
- import { sendCode as T } from "../../store/twofa.js";
11
- import { validateInputs as b, validatePhone as U, validateEmail as A } from "../../../middlewares/client/inputs.validation.js";
10
+ import { sendCode as U } from "../../store/twofa.js";
11
+ import { validateInputs as b, validatePhone as $, validateEmail as A } from "../../../middlewares/client/inputs.validation.js";
12
12
  /* empty css */
13
- const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { class: "mn-b-small p-small uppercase t-semi bg-light radius-big o-hidden" }, L = { class: "pos-relative" }, j = { class: "mn-b-semi radius-small" }, q = { class: "mn-b-small t-transp" }, z = { class: "mn-b-semi radius-small o-hidden" }, G = { class: "mn-b-small t-transp" }, H = { class: "w-100" }, ie = {
13
+ const B = { class: "t-left pd-medium" }, F = { class: "mn-b-small" }, R = { class: "mn-b-small p-small uppercase t-semi bg-light radius-big o-hidden" }, L = { class: "pos-relative" }, j = { class: "mn-b-semi radius-small" }, q = { class: "mn-b-small t-transp" }, z = { class: "mn-b-semi radius-small o-hidden" }, G = { class: "mn-b-small t-transp" }, H = { class: "w-100" }, ie = {
14
14
  __name: "SignUp",
15
15
  setup(J) {
16
- const { t: e } = F({
16
+ const { t: e } = P({
17
17
  useScope: "global",
18
- ...O
18
+ ...T
19
19
  }), u = d(null), c = d(null);
20
20
  I();
21
- const g = P(), l = d("phone");
21
+ const g = O(), l = d("phone");
22
22
  async function w() {
23
23
  try {
24
24
  l.value === "phone" && await b(
25
25
  u,
26
- U,
26
+ $,
27
27
  s.user.phone,
28
28
  "Некорректный телефон"
29
29
  ), l.value === "email" && await b(
@@ -36,7 +36,7 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { clas
36
36
  throw new Error();
37
37
  }
38
38
  try {
39
- await T(s.user, "signup", l.value);
39
+ await U(s.user, "signup", l.value);
40
40
  } catch {
41
41
  throw new Error();
42
42
  }
@@ -47,8 +47,8 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { clas
47
47
  return (p, i) => {
48
48
  const k = E("router-link");
49
49
  return S(), x("section", B, [
50
- o("h3", R, r(t(e)("title")), 1),
51
- o("div", $, [
50
+ o("h3", F, r(t(e)("title")), 1),
51
+ o("div", R, [
52
52
  a(N, {
53
53
  selected: l.value,
54
54
  "onUpdate:selected": i[0] || (i[0] = (n) => l.value = n),
@@ -61,7 +61,7 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { clas
61
61
  o("div", L, [
62
62
  a(h, { name: "slide-fade" }, {
63
63
  default: m(() => [
64
- f(o("div", j, [
64
+ _(o("div", j, [
65
65
  o("p", q, r(t(e)("smsNotice")), 1),
66
66
  a(y, {
67
67
  onChange: i[1] || (i[1] = (n) => s.user.phone = n),
@@ -76,14 +76,14 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { clas
76
76
  class: "bg-light pd-small radius-small mn-b-thin"
77
77
  }, null, 8, ["validation", "inputOptions"])
78
78
  ], 512), [
79
- [_, l.value === "phone"]
79
+ [f, l.value === "phone"]
80
80
  ])
81
81
  ]),
82
82
  _: 1
83
83
  }),
84
84
  a(h, { name: "slide-fade" }, {
85
85
  default: m(() => [
86
- f(o("div", z, [
86
+ _(o("div", z, [
87
87
  o("p", G, r(t(e)("emailNotice")), 1),
88
88
  a(V, {
89
89
  field: s.user.email,
@@ -93,7 +93,7 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { clas
93
93
  class: "bg-light pd-medium radius-small"
94
94
  }, null, 8, ["field", "placeholder", "validation"])
95
95
  ], 512), [
96
- [_, l.value === "email"]
96
+ [f, l.value === "email"]
97
97
  ])
98
98
  ]),
99
99
  _: 1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=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"),k=require("./twofa.cjs"),u=l.create({baseURL:process.env.API_URL,withCredentials:!0}),a=w.reactive({user:{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1},accesses:[]});async function f(){try{const e=await m("user");if(e){const{_id:t,email:s,phone:n,roles:o,accessToken:r}=e;l.interceptors.request.use(i=>(i.headers["x-access-token"]=r,i),i=>Promise.reject(i));const h=(await l.get("/api/auth/check-accesses")).data;Object.assign(a.user,{_id:t,email:s,phone:n}),Object.assign(a.access,{token:r,roles:o,status:!!r}),a.accesses=h}}catch(e){console.error("Error initializing app:",e),O("user"),a.accesses=[]}}f();const P={async login(e,t){try{const s=await u.post("/api/auth/signin",{...e,type:t});return p("user",s.data),Object.assign(a.user,{...s.data}),Object.assign(a.access,{token:s.data.accessToken,status:!0,roles:s.data.roles}),s.data}catch(s){return Object.assign(a.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:o}=a.user;if(console.log(n),console.log(o),n!==o){const r={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw c.setError(r),new Error(r.response.status)}try{const r=await u.post("/api/auth/signup",{...e,type:t,inviteCode:s});return console.log(r),r.data.accessToken&&p("user",r.data),Object.assign(a.user,{...r.data}),Object.assign(a.access,{token:r.data.accessToken,status:!0,roles:r.data.roles}),r.data}catch(r){throw c.setError(r),console.log("Sign up falied"),r}},logout(){O("user"),Object.assign(a.user,{email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(a.access,{token:null,status:!1})},async resetPassword(e,t){try{const s=await u.post("/api/auth/reset-password",{email:e.email,phone:e.phone,type:t});return Object.assign(k.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}=a.user;if(s!==n){const o={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw c.setError(o),new Error(o.response.status)}try{const o=await u.post("/api/auth/update-password",{email:e.email,phone:e.phone,password:e.password,passwordRepeat:e.passwordRepeat,type:t});return o.data.accessToken&&p("user",o.data),Object.assign(a.user,{...o.data}),Object.assign(a.access,{token:o.data.accessToken,status:!0}),o.data}catch(o){return c.setError(o),Promise.reject(o)}}},j={development:{secure:!1,expires:7,sameSite:"Lax"},production:{expires:7,path:"/",domain:process.env.API_URL,sameSite:"none",secure:!0}};async function m(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),j[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.API_URL}:{};d.default.remove(e,s)}}w.watch(a,(e,t)=>{});exports.actions=P;exports.initialize=f;exports.state=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=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"),k=require("./twofa.cjs"),u=l.create({baseURL:process.env.API_URL,withCredentials:!0}),a=w.reactive({user:{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1},accesses:[]});async function O(){try{const e=await m("user");if(e){const{_id:t,email:s,phone:n,roles:o,accessToken:r}=e;l.interceptors.request.use(i=>(i.headers["x-access-token"]=r,i),i=>Promise.reject(i));const h=(await l.get("/api/auth/check-accesses")).data;Object.assign(a.user,{_id:t,email:s,phone:n}),Object.assign(a.access,{token:r,roles:o,status:!!r}),a.accesses=h}}catch(e){console.error("Error initializing app:",e),f("user"),a.accesses=[]}}O();const P={async login(e,t){try{const s=await u.post("/api/auth/signin",{...e,type:t});return p("user",s.data),Object.assign(a.user,{...s.data}),Object.assign(a.access,{token:s.data.accessToken,status:!0,roles:s.data.roles}),s.data}catch(s){return Object.assign(a.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:o}=a.user;if(console.log(n),console.log(o),n!==o){const r={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw c.setError(r),new Error(r.response.status)}try{const r=await u.post("/api/auth/signup",{...e,type:t,inviteCode:s});return console.log(r),r.data.accessToken&&p("user",r.data),Object.assign(a.user,{...r.data}),Object.assign(a.access,{token:r.data.accessToken,status:!0,roles:r.data.roles}),r.data}catch(r){throw c.setError(r),console.log("Sign up falied"),r}},logout(){f("user"),Object.assign(a.user,{email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(a.access,{token:null,status:!1})},async resetPassword(e,t){try{const s=await u.post("/api/auth/reset-password",{email:e.email,phone:e.phone,type:t});return Object.assign(k.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}=a.user;if(s!==n){const o={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw c.setError(o),new Error(o.response.status)}try{const o=await u.post("/api/auth/update-password",{email:e.email,phone:e.phone,password:e.password,passwordRepeat:e.passwordRepeat,type:t});return o.data.accessToken&&p("user",o.data),Object.assign(a.user,{...o.data}),Object.assign(a.access,{token:o.data.accessToken,status:!0}),o.data}catch(o){return c.setError(o),Promise.reject(o)}}},j={development:{secure:!1,expires:7,sameSite:"Lax"},production:{expires:7,path:"/",domain:process.env.DOMAIN_URL,sameSite:"none",secure:!0}};async function m(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),j[s])}function f(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(a,(e,t)=>{});exports.actions=P;exports.initialize=O;exports.state=a;
@@ -1,10 +1,10 @@
1
1
  import d from "axios";
2
2
  import l 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
- import { reactive as f, watch as O } from "vue";
4
+ import { reactive as O, watch as f } from "vue";
5
5
  import { setError as c } from "../../globals/store/globals.js";
6
6
  import { state as h } from "./twofa.js";
7
- const p = d.create({ baseURL: process.env.API_URL, withCredentials: !0 }), o = f({
7
+ const p = d.create({ baseURL: process.env.API_URL, withCredentials: !0 }), o = O({
8
8
  user: {
9
9
  _id: void 0,
10
10
  username: "",
@@ -22,7 +22,7 @@ const p = d.create({ baseURL: process.env.API_URL, withCredentials: !0 }), o = f
22
22
  });
23
23
  async function k() {
24
24
  try {
25
- const e = await j("user");
25
+ const e = await v("user");
26
26
  if (e) {
27
27
  const { _id: t, email: s, phone: n, roles: r, accessToken: a } = e;
28
28
  d.interceptors.request.use((i) => (i.headers["x-access-token"] = a, i), (i) => Promise.reject(i));
@@ -34,7 +34,7 @@ async function k() {
34
34
  }
35
35
  }
36
36
  k();
37
- const C = {
37
+ const N = {
38
38
  async login(e, t) {
39
39
  try {
40
40
  const s = await p.post("/api/auth/signin", {
@@ -137,11 +137,11 @@ const C = {
137
137
  return c(r), Promise.reject(r);
138
138
  }
139
139
  }
140
- }, P = {
140
+ }, j = {
141
141
  development: { secure: !1, expires: 7, sameSite: "Lax" },
142
- production: { expires: 7, path: "/", domain: process.env.API_URL, sameSite: "none", secure: !0 }
142
+ production: { expires: 7, path: "/", domain: process.env.DOMAIN_URL, sameSite: "none", secure: !0 }
143
143
  };
144
- async function j(e) {
144
+ async function v(e) {
145
145
  if (process.env.MOBILE_APP) {
146
146
  const { value: t } = await w.get({ key: e });
147
147
  return t ? JSON.parse(t) : null;
@@ -154,20 +154,20 @@ function u(e, t, s = process.env.DOMAIN_URL) {
154
154
  process.env.MOBILE_APP ? w.set({
155
155
  key: e,
156
156
  value: JSON.stringify(t)
157
- }) : l.set(e, JSON.stringify(t), P[s]);
157
+ }) : l.set(e, JSON.stringify(t), j[s]);
158
158
  }
159
159
  function g(e, t = process.env.NODE_ENV) {
160
160
  if (process.env.MOBILE_APP)
161
161
  w.remove({ key: e });
162
162
  else {
163
- const s = t === "production" ? { domain: process.env.API_URL } : {};
163
+ const s = t === "production" ? { domain: process.env.DOMAIN_URL } : {};
164
164
  l.remove(e, s);
165
165
  }
166
166
  }
167
- O(o, (e, t) => {
167
+ f(o, (e, t) => {
168
168
  });
169
169
  export {
170
- C as actions,
170
+ N as actions,
171
171
  k as initialize,
172
172
  o as state
173
173
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../components/Menu/Menu.vue2.cjs"),s=require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const a=require("../../../icons/entities/IconProducts.vue.cjs"),u=require("../../../icons/entities/IconEvents.vue.cjs"),i=require("../../../icons/entities/IconGroups.vue.cjs"),c=require("../../../icons/entities/IconGallery.vue.cjs"),d=require("../../../icons/entities/IconOrders.vue.cjs"),f=require("../../../icons/entities/IconLeftovers.vue.cjs"),l=require("vue-router");require("../../../auth/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const m={class:""},p=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice2",-1),N=e.createElementVNode("span",null," Members ",-1),V=e.createElementVNode("span",null," Community ",-1),v=e.createElementVNode("span",null," Products ",-1),h=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),C=e.createElementVNode("span",null," Gallery ",-1),k=e.createElementVNode("span",null," Events ",-1),g=e.createElementVNode("span",null," Payments ",-1),w=e.createElementVNode("span",null," Organizations ",-1),b=e.createElementVNode("span",null," Pages ",-1),E=e.createElementVNode("span",null," Reports ",-1),x={__name:"Dashboard",props:{favorites:Array},setup(q){l.useRoute();const r=l.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),($,t)=>(e.openBlock(),e.createElementBlock("div",m,[p,e.createVNode(n.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(s.default,{onClick:t[0]||(t[0]=o=>e.unref(r).push({name:"Organization Members"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(i.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),N]),_:1}),e.createVNode(s.default,{onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Backoffice Community"})),class:"cursor-pointer"},{default:e.withCtx(()=>[V]),_:1}),e.createVNode(s.default,{onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Products"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(a.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),v]),_:1}),e.createVNode(s.default,{onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Leftovers"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),h]),_:1}),e.createVNode(s.default,{onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Backoffice Orders"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(d.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),_]),_:1}),e.createVNode(s.default,{onClick:t[5]||(t[5]=o=>e.unref(r).push({name:"Backoffice Gallery"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(c.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),C]),_:1}),e.createVNode(s.default,{onClick:t[6]||(t[6]=o=>e.unref(r).push({name:"Backoffice Events"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(u.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),k]),_:1}),e.createVNode(s.default,{onClick:t[7]||(t[7]=o=>e.unref(r).push({name:"Payments"})),class:"cursor-pointer"},{default:e.withCtx(()=>[g]),_:1})]),_:1}),e.createVNode(n.default,{class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(s.default,{onClick:t[8]||(t[8]=o=>e.unref(r).push({name:"Backoffice Organizations"})),class:"cursor-pointer"},{default:e.withCtx(()=>[w]),_:1}),e.createVNode(s.default,{onClick:t[9]||(t[9]=o=>e.unref(r).push({name:"Backoffice Pages"})),class:"cursor-pointer"},{default:e.withCtx(()=>[b]),_:1}),e.createVNode(s.default,{onClick:t[10]||(t[10]=o=>e.unref(r).push({name:"Backoffice Reports"})),class:"cursor-pointer"},{default:e.withCtx(()=>[E]),_:1})]),_:1})]))}};exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../components/Menu/Menu.vue.cjs"),s=require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const a=require("../../../icons/entities/IconProducts.vue.cjs"),u=require("../../../icons/entities/IconEvents.vue.cjs"),i=require("../../../icons/entities/IconGroups.vue.cjs"),c=require("../../../icons/entities/IconGallery.vue.cjs"),d=require("../../../icons/entities/IconOrders.vue.cjs"),f=require("../../../icons/entities/IconLeftovers.vue.cjs"),l=require("vue-router");require("../../../auth/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const m={class:""},p=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice2",-1),N=e.createElementVNode("span",null," Members ",-1),V=e.createElementVNode("span",null," Community ",-1),v=e.createElementVNode("span",null," Products ",-1),h=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),C=e.createElementVNode("span",null," Gallery ",-1),k=e.createElementVNode("span",null," Events ",-1),g=e.createElementVNode("span",null," Payments ",-1),w=e.createElementVNode("span",null," Organizations ",-1),b=e.createElementVNode("span",null," Pages ",-1),E=e.createElementVNode("span",null," Reports ",-1),x={__name:"Dashboard",props:{favorites:Array},setup(q){l.useRoute();const r=l.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),($,t)=>(e.openBlock(),e.createElementBlock("div",m,[p,e.createVNode(n.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(s.default,{onClick:t[0]||(t[0]=o=>e.unref(r).push({name:"Organization Members"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(i.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),N]),_:1}),e.createVNode(s.default,{onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Backoffice Community"})),class:"cursor-pointer"},{default:e.withCtx(()=>[V]),_:1}),e.createVNode(s.default,{onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Products"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(a.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),v]),_:1}),e.createVNode(s.default,{onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Leftovers"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),h]),_:1}),e.createVNode(s.default,{onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Backoffice Orders"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(d.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),_]),_:1}),e.createVNode(s.default,{onClick:t[5]||(t[5]=o=>e.unref(r).push({name:"Backoffice Gallery"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(c.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),C]),_:1}),e.createVNode(s.default,{onClick:t[6]||(t[6]=o=>e.unref(r).push({name:"Backoffice Events"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(u.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),k]),_:1}),e.createVNode(s.default,{onClick:t[7]||(t[7]=o=>e.unref(r).push({name:"Payments"})),class:"cursor-pointer"},{default:e.withCtx(()=>[g]),_:1})]),_:1}),e.createVNode(n.default,{class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(s.default,{onClick:t[8]||(t[8]=o=>e.unref(r).push({name:"Backoffice Organizations"})),class:"cursor-pointer"},{default:e.withCtx(()=>[w]),_:1}),e.createVNode(s.default,{onClick:t[9]||(t[9]=o=>e.unref(r).push({name:"Backoffice Pages"})),class:"cursor-pointer"},{default:e.withCtx(()=>[b]),_:1}),e.createVNode(s.default,{onClick:t[10]||(t[10]=o=>e.unref(r).push({name:"Backoffice Reports"})),class:"cursor-pointer"},{default:e.withCtx(()=>[E]),_:1})]),_:1})]))}};exports.default=x;
@@ -1,5 +1,5 @@
1
1
  import { ref as a, onMounted as m, openBlock as f, createElementBlock as c, createVNode as e, withCtx as o, unref as i, createElementVNode as t } from "vue";
2
- import u from "../../../../components/Menu/Menu.vue2.js";
2
+ import u from "../../../../components/Menu/Menu.vue.js";
3
3
  import r from "../../../../components/Menu/MenuItem.vue.js";
4
4
  /* empty css */
5
5
  import p from "../../../icons/entities/IconProducts.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components/layouts/Community.vue.cjs"),e=require("./components/pages/CreateBlogPost.vue.cjs"),o=require("./components/pages/BlogPost.vue.cjs"),s=require("./components/pages/Blog.vue.cjs"),r=require("./components/blocks/FooterBlogpost.vue.cjs"),u=require("./components/blocks/Activity.vue.cjs"),l=require("./components/blocks/CardBlogpost.vue.cjs"),i=require("./components/sections/Feed.vue.cjs"),n=require("./components/sections/JoinUs.vue.cjs"),a=require("./components/sections/Comments.vue.cjs"),c=require("./components/sections/HotPosts.vue.cjs"),d=require("./store/blogposts.cjs"),g=require("./store/reactions.cjs"),q=require("./router/blogposts.cjs");exports.Community=t.default;exports.CreateBlogPost=e.default;exports.BlogPost=o.default;exports.Blog=s.default;exports.FooterBlogpost=r.default;exports.Activity=u.default;exports.CardBlogpost=l.default;exports.Feed=i.default;exports.JoinUs=n.default;exports.Comments=a.default;exports.HotPosts=c.default;exports.blogpostsStore=d;exports.reactionsStore=g;exports.blogpostsRoutes=q.default;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components/layouts/Community.vue.cjs"),o=require("./components/pages/CreateBlogPost.vue.cjs"),e=require("./components/pages/BlogPost.vue.cjs"),s=require("./components/pages/Blog.vue.cjs"),r=require("./components/blocks/FooterBlogpost.vue.cjs"),u=require("./components/blocks/Activity.vue.cjs"),l=require("./components/blocks/CardBlogpost.vue.cjs"),i=require("./components/sections/JoinUs.vue.cjs"),n=require("./components/sections/Comments.vue.cjs"),a=require("./components/sections/HotPosts.vue.cjs"),c=require("./store/blogposts.cjs"),g=require("./store/reactions.cjs"),d=require("./router/blogposts.cjs");exports.Community=t.default;exports.CreateBlogPost=o.default;exports.BlogPost=e.default;exports.Blog=s.default;exports.FooterBlogpost=r.default;exports.Activity=u.default;exports.CardBlogpost=l.default;exports.JoinUs=i.default;exports.Comments=n.default;exports.HotPosts=a.default;exports.blogpostsStore=c;exports.reactionsStore=g;exports.blogpostsRoutes=d.default;
@@ -1,30 +1,28 @@
1
1
  import { default as s } from "./components/layouts/Community.vue.js";
2
2
  import { default as f } from "./components/pages/CreateBlogPost.vue.js";
3
3
  import { default as l } from "./components/pages/BlogPost.vue.js";
4
- import { default as d } from "./components/pages/Blog.vue.js";
5
- import { default as x } from "./components/blocks/FooterBlogpost.vue.js";
4
+ import { default as u } from "./components/pages/Blog.vue.js";
5
+ import { default as d } from "./components/blocks/FooterBlogpost.vue.js";
6
6
  import { default as i } from "./components/blocks/Activity.vue.js";
7
7
  import { default as B } from "./components/blocks/CardBlogpost.vue.js";
8
- import { default as b } from "./components/sections/Feed.vue.js";
9
- import { default as P } from "./components/sections/JoinUs.vue.js";
10
- import { default as F } from "./components/sections/Comments.vue.js";
11
- import { default as v } from "./components/sections/HotPosts.vue.js";
8
+ import { default as b } from "./components/sections/JoinUs.vue.js";
9
+ import { default as P } from "./components/sections/Comments.vue.js";
10
+ import { default as S } from "./components/sections/HotPosts.vue.js";
12
11
  import * as o from "./store/blogposts.js";
13
12
  import * as t from "./store/reactions.js";
14
- import { default as H } from "./router/blogposts.js";
13
+ import { default as A } from "./router/blogposts.js";
15
14
  export {
16
15
  i as Activity,
17
- d as Blog,
16
+ u as Blog,
18
17
  l as BlogPost,
19
18
  B as CardBlogpost,
20
- F as Comments,
19
+ P as Comments,
21
20
  s as Community,
22
21
  f as CreateBlogPost,
23
- b as Feed,
24
- x as FooterBlogpost,
25
- v as HotPosts,
26
- P as JoinUs,
27
- H as blogpostsRoutes,
22
+ d as FooterBlogpost,
23
+ S as HotPosts,
24
+ b as JoinUs,
25
+ A as blogpostsRoutes,
28
26
  o as blogpostsStore,
29
27
  t as reactionsStore
30
28
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../../../globals/components/blocks/CardHeader.vue.cjs"),m=require("./FooterBlogpost.vue.cjs"),g=require("../../../../components/Text/Text.vue.cjs");;/* empty css */const p=require("../../../icons/navigation/IconEdit.vue.cjs"),b=require("vue-router"),y={class:"pos-relative bg-light radius-big flex-column flex"},f={class:"pd-t-zero pd-b-zero pd-medium"},h={key:0,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},k={key:0,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"},v={key:1,class:"mn-b-small t-transp p-big"},B={key:2,class:"mn-b-small h2"},x=["src"],V={key:2,controls:"",class:"mn-b-medium object-fit-cover w-100 h-max-20r"},E=["src"],N={__name:"CardBlogpost",props:{blogpost:{type:Object},user:{type:String},type:{type:String},hideDescription:{type:Boolean,default:!1}},setup(t){const u=b.useRouter(),s=t,l=e.computed(()=>s.blogpost.content.find(o=>o.type==="ImageUpload")),r=e.computed(()=>s.blogpost.content.find(o=>o.type==="Video")),n=e.computed(()=>s.blogpost.content.find(o=>o.type==="Textarea"));return(o,a)=>{var c;const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("article",y,[t.user&&t.user===t.blogpost.creator.target._id?(e.openBlock(),e.createBlock(i,{key:0,to:{name:"Edit BlogPost",params:{url:t.blogpost.url}},class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"},{default:e.withCtx(()=>[e.createVNode(p.default,{class:"i-regular",classes:"fill-white"})]),_:1},8,["to"])):e.createCommentVNode("",!0),e.createVNode(d.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},null,8,["class","entity","user","owner","creator","date"]),e.createElementVNode("section",f,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",h,[e.createVNode(g.default,{text:t.blogpost.name||"",maxLen:80,class:"h3 d-block",onClick:a[0]||(a[0]=C=>e.unref(u).push({name:"BlogPost",params:{url:t.blogpost.url}}))},null,8,["text"]),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",k,e.toDisplayString(t.blogpost.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),n.value&&n.value.content&&t.type!=="blogpostPage"&&!t.hideDescription?(e.openBlock(),e.createElementBlock("p",v,e.toDisplayString(n.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"?(e.openBlock(),e.createElementBlock("h3",B,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:1,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,x)):e.createCommentVNode("",!0),!((c=l.value)!=null&&c.content)&&r.value&&r.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("video",V,[e.createElementVNode("source",{src:r.value.content,type:"video/mp4"},null,8,E),e.createTextVNode(" Your browser does not support the video tag. ")])):e.createCommentVNode("",!0),e.createVNode(m.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])])}}};exports.default=N;
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:0,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"},v={key:2,class:"mn-b-small h2"},k=["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}},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")),r=e.computed(()=>n.blogpost.content.find(o=>o.type==="Textarea"));return(o,a)=>{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,[e.createVNode(m.default,{text:t.blogpost.name||"",maxLen:80,class:"h3 d-block",onClick:a[0]||(a[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),r.value&&r.value.content&&t.type!=="blogpostPage"&&!t.hideDescription?(e.openBlock(),e.createElementBlock("p",h,e.toDisplayString(r.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"?(e.openBlock(),e.createElementBlock("h3",v,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,k)):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,27 +1,26 @@
1
- import { computed as u, resolveComponent as h, openBlock as o, createElementBlock as s, createBlock as y, withCtx as v, createVNode as n, createCommentVNode as l, normalizeClass as x, createElementVNode as p, unref as k, toDisplayString as m, renderSlot as w, createTextVNode as B } from "vue";
2
- import P from "../../../globals/components/blocks/CardHeader.vue.js";
3
- import V from "./FooterBlogpost.vue.js";
4
- import C from "../../../../components/Text/Text.vue.js";
5
- /* empty css */
6
- import E from "../../../icons/navigation/IconEdit.vue.js";
7
- import { useRouter as $ } from "vue-router";
8
- const S = { class: "pos-relative bg-light radius-big flex-column flex" }, z = { class: "pd-t-zero pd-b-zero pd-medium" }, N = {
1
+ import { computed as c, openBlock as o, createElementBlock as l, createVNode as m, normalizeClass as f, createElementVNode as b, unref as y, toDisplayString as u, createCommentVNode as s, renderSlot as h, createTextVNode as v } from "vue";
2
+ import x from "../../../globals/components/blocks/CardHeader.vue.js";
3
+ import k from "./FooterBlogpost.vue.js";
4
+ import w from "../../../../components/Text/Text.vue.js";
5
+ /* empty css */
6
+ import { useRouter as B } from "vue-router";
7
+ const E = { class: "pos-relative bg-light radius-big flex-column flex" }, P = { class: "pd-t-zero pd-b-zero pd-medium" }, V = {
9
8
  key: 0,
10
9
  class: "cursor-pointer mn-b-thin flex-nowrap flex w-100"
11
- }, R = {
10
+ }, S = {
12
11
  key: 0,
13
12
  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"
14
- }, T = {
13
+ }, $ = {
15
14
  key: 1,
16
15
  class: "mn-b-small t-transp p-big"
17
- }, j = {
16
+ }, z = {
18
17
  key: 2,
19
18
  class: "mn-b-small h2"
20
- }, D = ["src"], I = {
21
- key: 2,
19
+ }, C = ["src"], N = {
20
+ key: 1,
22
21
  controls: "",
23
22
  class: "mn-b-medium object-fit-cover w-100 h-max-20r"
24
- }, L = ["src"], J = {
23
+ }, R = ["src"], F = {
25
24
  __name: "CardBlogpost",
26
25
  props: {
27
26
  blogpost: {
@@ -38,83 +37,67 @@ const S = { class: "pos-relative bg-light radius-big flex-column flex" }, z = {
38
37
  default: !1
39
38
  }
40
39
  },
41
- setup(e) {
42
- const b = $(), a = e, r = u(() => a.blogpost.content.find((t) => t.type === "ImageUpload")), i = u(() => a.blogpost.content.find((t) => t.type === "Video")), c = u(() => a.blogpost.content.find((t) => t.type === "Textarea"));
43
- return (t, d) => {
40
+ setup(t) {
41
+ const p = B(), a = t, n = c(() => a.blogpost.content.find((e) => e.type === "ImageUpload")), r = c(() => a.blogpost.content.find((e) => e.type === "Video")), i = c(() => a.blogpost.content.find((e) => e.type === "Textarea"));
42
+ return (e, d) => {
44
43
  var g;
45
- const f = h("router-link");
46
- return o(), s("article", S, [
47
- e.user && e.user === e.blogpost.creator.target._id ? (o(), y(f, {
48
- key: 0,
49
- to: {
50
- name: "Edit BlogPost",
51
- params: {
52
- url: e.blogpost.url
53
- }
54
- },
55
- class: "cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"
56
- }, {
57
- default: v(() => [
58
- n(E, {
59
- class: "i-regular",
60
- classes: "fill-white"
61
- })
62
- ]),
63
- _: 1
64
- }, 8, ["to"])) : l("", !0),
65
- n(P, {
66
- class: x({
67
- "mn-b-small pd-medium": e.type !== "short",
68
- "flex-child-order-last flex-child mn-l-small": e.type === "short"
44
+ return o(), l("article", E, [
45
+ m(x, {
46
+ class: f({
47
+ "mn-b-small pd-medium": t.type !== "short",
48
+ "flex-child-order-last flex-child mn-l-small": t.type === "short"
69
49
  }),
70
- entity: e.blogpost,
50
+ entity: t.blogpost,
71
51
  entityType: "blogpost",
72
- user: e.user,
73
- owner: e.blogpost.owner,
74
- creator: e.blogpost.creator,
75
- date: e.blogpost.createdAt
76
- }, null, 8, ["class", "entity", "user", "owner", "creator", "date"]),
77
- p("section", z, [
78
- e.type !== "blogpostPage" ? (o(), s("div", N, [
79
- n(C, {
80
- text: e.blogpost.name || "",
52
+ user: t.user,
53
+ owner: t.blogpost.owner,
54
+ creator: t.blogpost.creator,
55
+ date: t.blogpost.createdAt,
56
+ actions: t.user && t.user === t.blogpost.creator.target._id ? [
57
+ { to: { name: "Edit BlogPost", params: { url: t.blogpost.url } }, label: "Edit" }
58
+ ] : null
59
+ }, null, 8, ["class", "entity", "user", "owner", "creator", "date", "actions"]),
60
+ b("section", P, [
61
+ t.type !== "blogpostPage" ? (o(), l("div", V, [
62
+ m(w, {
63
+ text: t.blogpost.name || "",
81
64
  maxLen: 80,
82
65
  class: "h3 d-block",
83
- onClick: d[0] || (d[0] = (U) => k(b).push({
66
+ onClick: d[0] || (d[0] = (T) => y(p).push({
84
67
  name: "BlogPost",
85
68
  params: {
86
- url: e.blogpost.url
69
+ url: t.blogpost.url
87
70
  }
88
71
  }))
89
72
  }, null, 8, ["text"]),
90
- e.blogpost.status === "draft" ? (o(), s("div", R, m(e.blogpost.status), 1)) : l("", !0)
91
- ])) : l("", !0),
92
- c.value && c.value.content && e.type !== "blogpostPage" && !e.hideDescription ? (o(), s("p", T, m(c.value.content.slice(0, 120)) + "... ", 1)) : l("", !0),
93
- e.type === "blogpostPage" ? (o(), s("h3", j, m(e.blogpost.name), 1)) : l("", !0),
94
- w(t.$slots, "default")
73
+ t.blogpost.status === "draft" ? (o(), l("div", S, u(t.blogpost.status), 1)) : s("", !0)
74
+ ])) : s("", !0),
75
+ i.value && i.value.content && t.type !== "blogpostPage" && !t.hideDescription ? (o(), l("p", $, u(i.value.content.slice(0, 120)) + "... ", 1)) : s("", !0),
76
+ t.type === "blogpostPage" ? (o(), l("h3", z, u(t.blogpost.name), 1)) : s("", !0),
77
+ h(e.$slots, "default")
95
78
  ]),
96
- r.value && r.value.content && e.type !== "blogpostPage" ? (o(), s("img", {
97
- key: 1,
98
- src: (t.FILE_SERVER_URL || "") + r.value.content,
79
+ n.value && n.value.content && t.type !== "blogpostPage" ? (o(), l("img", {
80
+ key: 0,
81
+ src: (e.FILE_SERVER_URL || "") + n.value.content,
99
82
  alt: "Blog post image",
100
83
  class: "mn-b-medium object-fit-cover w-100 h-min-10r h-100"
101
- }, null, 8, D)) : l("", !0),
102
- !((g = r.value) != null && g.content) && i.value && i.value.content && e.type !== "blogpostPage" ? (o(), s("video", I, [
103
- p("source", {
104
- src: i.value.content,
84
+ }, null, 8, C)) : s("", !0),
85
+ !((g = n.value) != null && g.content) && r.value && r.value.content && t.type !== "blogpostPage" ? (o(), l("video", N, [
86
+ b("source", {
87
+ src: r.value.content,
105
88
  type: "video/mp4"
106
- }, null, 8, L),
107
- B(" Your browser does not support the video tag. ")
108
- ])) : l("", !0),
109
- n(V, {
89
+ }, null, 8, R),
90
+ v(" Your browser does not support the video tag. ")
91
+ ])) : s("", !0),
92
+ m(k, {
110
93
  class: "pd-t-zero pd-medium",
111
- blogpost: e.blogpost,
112
- user: e.user
94
+ blogpost: t.blogpost,
95
+ user: t.user
113
96
  }, null, 8, ["blogpost", "user"])
114
97
  ]);
115
98
  };
116
99
  }
117
100
  };
118
101
  export {
119
- J as default
102
+ F as default
120
103
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("vue-router");const i=require("../../store/reactions.cjs"),p={class:"t-semi br-top-dark flex-nowrap flex-nojustify flex"},m=e.createElementVNode("span",{class:"mn-r-small mn-l-small d-block"},"·",-1),g={class:"cursor-pointer"},v=e.createElementVNode("span",{class:"mn-r-small mn-l-small d-block"},"·",-1),f={__name:"FooterBlogpost",props:["blogpost","owner","user"],setup(l){const o=l,r=e.ref(o.blogpost.numberOfReactions),a=e.ref(o.blogpost.isReacted),s=e.ref(o.blogpost.reactionId);async function u(c){if(!o.user){alert("Please login to add a reaction");return}try{const t={target:o.blogpost._id,type:"blogpost",user:o.user,class:"like"},n=await i.actions.create(t);n.reaction.class==="like"&&(r.value+=1,a.value=!0,s.value=n.reaction._id)}catch(t){console.error(t),alert("Error adding reaction. Please try again later.")}}async function d(c){if(!o.user){alert("Please login to add a reaction");return}try{const t={_id:s.value};await i.actions.delete(t),r.value-=1,a.value=!1,s.value=null}catch{alert("Error adding reaction. Please try again later.")}}return(c,t)=>(e.openBlock(),e.createElementBlock("footer",p,[e.createTextVNode(" 👁️ "+e.toDisplayString(l.blogpost.views)+" ",1),m,e.createElementVNode("div",g,[a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"cursor-pointer",onClick:t[0]||(t[0]=n=>u())}," 👍 "+e.toDisplayString(r.value),1)),a.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cursor-pointer",onClick:t[1]||(t[1]=n=>d())}," 👍 "+e.toDisplayString(r.value),1)):e.createCommentVNode("",!0)]),v,e.createTextVNode(" 💬 "+e.toDisplayString(l.blogpost.numberOfComments),1)]))}};exports.default=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("vue-router");const c=require("../../store/reactions.cjs"),g={class:"t-semi br-top-dark flex-nowrap flex-nojustify flex"},m={class:"hover-bg-white pd-l-thin pd-r-thin radius-big cursor-pointer"},v={__name:"FooterBlogpost",props:["blogpost","owner","user"],setup(r){const o=r,n=e.ref(o.blogpost.numberOfReactions),s=e.ref(o.blogpost.isReacted),l=e.ref(o.blogpost.reactionId);async function u(i){if(!o.user){alert("Please login to add a reaction");return}try{const t={target:o.blogpost._id,type:"blogpost",user:o.user,class:"like"},a=await c.actions.create(t);a.reaction.class==="like"&&(n.value+=1,s.value=!0,l.value=a.reaction._id)}catch(t){console.error(t),alert("Error adding reaction. Please try again later.")}}async function d(i){if(!o.user){alert("Please login to add a reaction");return}try{const t={_id:l.value};await c.actions.delete(t),n.value-=1,s.value=!1,l.value=null}catch{alert("Error adding reaction. Please try again later.")}}return(i,t)=>{const a=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("footer",g,[e.createVNode(a,{to:{name:"BlogPost",params:{url:r.blogpost.url}},class:"font-second cursor-pointer hover-bg-white pd-l-thin pd-r-thin radius-big"},{default:e.withCtx(()=>[e.createTextVNode(" 👁️ "+e.toDisplayString(r.blogpost.views),1)]),_:1},8,["to"]),e.createElementVNode("div",m,[s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"cursor-pointer",onClick:t[0]||(t[0]=p=>u())}," 👍 "+e.toDisplayString(n.value),1)),s.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cursor-pointer",onClick:t[1]||(t[1]=p=>d())}," 👍 "+e.toDisplayString(n.value),1)):e.createCommentVNode("",!0)]),e.createVNode(a,{to:{name:"BlogPost",hash:"#comments",params:{url:r.blogpost.url}},class:"font-second cursor-pointer hover-bg-white pd-l-thin pd-r-thin radius-big"},{default:e.withCtx(()=>[e.createTextVNode(" 💬 "+e.toDisplayString(r.blogpost.numberOfComments),1)]),_:1},8,["to"])])}}};exports.default=v;
@@ -1,12 +1,12 @@
1
- import { ref as c, openBlock as i, createElementBlock as u, createTextVNode as m, toDisplayString as s, createElementVNode as d, createCommentVNode as f } from "vue";
1
+ import { ref as i, resolveComponent as k, openBlock as c, createElementBlock as u, createVNode as p, withCtx as g, createTextVNode as m, toDisplayString as s, createElementVNode as w, createCommentVNode as f } from "vue";
2
2
  import "vue-router";
3
- import { actions as g } from "../../store/reactions.js";
4
- const y = { class: "t-semi br-top-dark flex-nowrap flex-nojustify flex" }, k = /* @__PURE__ */ d("span", { class: "mn-r-small mn-l-small d-block" }, "·", -1), _ = { class: "cursor-pointer" }, x = /* @__PURE__ */ d("span", { class: "mn-r-small mn-l-small d-block" }, "·", -1), E = {
3
+ import { actions as v } from "../../store/reactions.js";
4
+ const x = { class: "t-semi br-top-dark flex-nowrap flex-nojustify flex" }, C = { class: "hover-bg-white pd-l-thin pd-r-thin radius-big cursor-pointer" }, R = {
5
5
  __name: "FooterBlogpost",
6
6
  props: ["blogpost", "owner", "user"],
7
- setup(n) {
8
- const t = n, o = c(t.blogpost.numberOfReactions), r = c(t.blogpost.isReacted), l = c(t.blogpost.reactionId);
9
- async function v(p) {
7
+ setup(o) {
8
+ const t = o, a = i(t.blogpost.numberOfReactions), n = i(t.blogpost.isReacted), l = i(t.blogpost.reactionId);
9
+ async function b(d) {
10
10
  if (!t.user) {
11
11
  alert("Please login to add a reaction");
12
12
  return;
@@ -17,44 +17,72 @@ const y = { class: "t-semi br-top-dark flex-nowrap flex-nojustify flex" }, k = /
17
17
  type: "blogpost",
18
18
  user: t.user,
19
19
  class: "like"
20
- }, a = await g.create(e);
21
- a.reaction.class === "like" && (o.value += 1, r.value = !0, l.value = a.reaction._id);
20
+ }, r = await v.create(e);
21
+ r.reaction.class === "like" && (a.value += 1, n.value = !0, l.value = r.reaction._id);
22
22
  } catch (e) {
23
23
  console.error(e), alert("Error adding reaction. Please try again later.");
24
24
  }
25
25
  }
26
- async function b(p) {
26
+ async function h(d) {
27
27
  if (!t.user) {
28
28
  alert("Please login to add a reaction");
29
29
  return;
30
30
  }
31
31
  try {
32
32
  const e = { _id: l.value };
33
- await g.delete(e), o.value -= 1, r.value = !1, l.value = null;
33
+ await v.delete(e), a.value -= 1, n.value = !1, l.value = null;
34
34
  } catch {
35
35
  alert("Error adding reaction. Please try again later.");
36
36
  }
37
37
  }
38
- return (p, e) => (i(), u("footer", y, [
39
- m(" 👁️ " + s(n.blogpost.views) + " ", 1),
40
- k,
41
- d("div", _, [
42
- r.value ? f("", !0) : (i(), u("div", {
43
- key: 0,
44
- class: "cursor-pointer",
45
- onClick: e[0] || (e[0] = (a) => v())
46
- }, " 👍 " + s(o.value), 1)),
47
- r.value ? (i(), u("div", {
48
- key: 1,
49
- class: "cursor-pointer",
50
- onClick: e[1] || (e[1] = (a) => b())
51
- }, " 👍 " + s(o.value), 1)) : f("", !0)
52
- ]),
53
- x,
54
- m(" 💬 " + s(n.blogpost.numberOfComments), 1)
55
- ]));
38
+ return (d, e) => {
39
+ const r = k("router-link");
40
+ return c(), u("footer", x, [
41
+ p(r, {
42
+ to: {
43
+ name: "BlogPost",
44
+ params: {
45
+ url: o.blogpost.url
46
+ }
47
+ },
48
+ class: "font-second cursor-pointer hover-bg-white pd-l-thin pd-r-thin radius-big"
49
+ }, {
50
+ default: g(() => [
51
+ m(" 👁️ " + s(o.blogpost.views), 1)
52
+ ]),
53
+ _: 1
54
+ }, 8, ["to"]),
55
+ w("div", C, [
56
+ n.value ? f("", !0) : (c(), u("div", {
57
+ key: 0,
58
+ class: "cursor-pointer",
59
+ onClick: e[0] || (e[0] = (y) => b())
60
+ }, " 👍 " + s(a.value), 1)),
61
+ n.value ? (c(), u("div", {
62
+ key: 1,
63
+ class: "cursor-pointer",
64
+ onClick: e[1] || (e[1] = (y) => h())
65
+ }, " 👍 " + s(a.value), 1)) : f("", !0)
66
+ ]),
67
+ p(r, {
68
+ to: {
69
+ name: "BlogPost",
70
+ hash: "#comments",
71
+ params: {
72
+ url: o.blogpost.url
73
+ }
74
+ },
75
+ class: "font-second cursor-pointer hover-bg-white pd-l-thin pd-r-thin radius-big"
76
+ }, {
77
+ default: g(() => [
78
+ m(" 💬 " + s(o.blogpost.numberOfComments), 1)
79
+ ]),
80
+ _: 1
81
+ }, 8, ["to"])
82
+ ]);
83
+ };
56
84
  }
57
85
  };
58
86
  export {
59
- E as default
87
+ R as default
60
88
  };