@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,38 +1,38 @@
1
- import { ref as n, onMounted as A, computed as w, openBlock as i, createElementBlock as m, createElementVNode as r, unref as l, createBlock as k, createCommentVNode as p, createVNode as u, Transition as U, withCtx as v, createTextVNode as z } from "vue";
2
- import D from "../../../constructor/components/elements/Textarea.vue2.js";
3
- import N from "../../../constructor/components/sections/Constructor.vue.js";
4
- import O from "../../../../components/Popup/Popup.vue.js";
1
+ import { ref as r, onMounted as V, computed as w, openBlock as u, createElementBlock as m, createElementVNode as n, unref as l, createBlock as A, createCommentVNode as p, createVNode as i, Transition as U, withCtx as v, createTextVNode as z } from "vue";
2
+ /* empty css */
3
+ import D from "../../../constructor/components/sections/Constructor.vue.js";
4
+ import N from "../../../../components/Popup/Popup.vue.js";
5
5
  /* empty css */
6
6
  /* empty css */
7
- import E from "../../../../components/FieldTags/BlockTags.vue.js";
8
- import F from "../../../../components/Checkbox/Checkbox.vue.js";
9
- import L from "../../../../components/Field/Field.vue2.js";
10
- import M from "../../../../components/SelectMulti/SelectMulti.vue.js";
11
- import R from "../../../../components/Button/Button.vue2.js";
12
- import { useRoute as S, useRouter as H } from "vue-router";
13
- import { read as j, clean as q, state as G, update as y, create as P, remove as I } from "../../store/blogposts.js";
7
+ import O from "../../../../components/FieldTags/BlockTags.vue.js";
8
+ import E from "../../../../components/Checkbox/Checkbox.vue.js";
9
+ import F from "../../../../components/Field/Field.vue.js";
10
+ import L from "../../../../components/SelectMulti/SelectMulti.vue.js";
11
+ import M from "../../../../components/Button/Button.vue.js";
12
+ import { useRoute as R, useRouter as S } from "vue-router";
13
+ import { read as H, clean as j, state as q, update as k, create as y, remove as G } from "../../store/blogposts.js";
14
14
  import { state as f } from "../../../auth/store/auth.js";
15
- import { actions as J } from "../../../organizations/store/organizations.js";
16
- const K = { class: "pd-thin" }, Q = {
15
+ import { actions as I } from "../../../organizations/store/organizations.js";
16
+ const J = { class: "pd-thin" }, K = {
17
17
  style: { "min-height": "100%" },
18
18
  class: "w-100 bg-light pd-big radius-big"
19
- }, W = { class: "w-full h-full" }, X = {
19
+ }, Q = /* @__PURE__ */ n("div", { class: "w-full h-full" }, null, -1), W = {
20
20
  key: 0,
21
21
  class: "pd-thin pos-sticky pos-l-0 pos-b-0 w-100"
22
- }, Y = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, Z = /* @__PURE__ */ r("h3", { class: "mn-b-small" }, "Final Touches", -1), ee = /* @__PURE__ */ r("h5", { class: "mn-b-thin" }, "Add source:", -1), te = /* @__PURE__ */ r("h5", { class: "mn-b-thin" }, "Add to public:", -1), oe = {
22
+ }, X = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, Y = /* @__PURE__ */ n("h3", { class: "mn-b-small" }, "Final Touches", -1), Z = /* @__PURE__ */ n("h5", { class: "mn-b-thin" }, "Add source:", -1), ee = /* @__PURE__ */ n("h5", { class: "mn-b-thin" }, "Add to public:", -1), te = {
23
23
  key: 0,
24
24
  class: "mn-b-thin"
25
- }, le = {
25
+ }, oe = {
26
26
  key: 1,
27
27
  class: "mn-b-medium br-grey-transp-25 br-2px br-solid pd-small radius-big"
28
- }, we = {
28
+ }, _e = {
29
29
  __name: "CreateBlogPost",
30
30
  setup(ae) {
31
- const c = S(), d = H();
32
- let e = n(null), b = n(null);
33
- const g = n([]), s = n(null);
34
- A(async () => {
35
- const t = await J.read({
31
+ const d = R(), c = S();
32
+ let e = r(null), b = r(null);
33
+ const g = r([]), s = r(null);
34
+ V(async () => {
35
+ const t = await I.read({
36
36
  user: f.user._id,
37
37
  postable: f.user._id,
38
38
  limit: 100
@@ -41,11 +41,11 @@ const K = { class: "pd-thin" }, Q = {
41
41
  name: o.profile.name,
42
42
  _id: o._id,
43
43
  photo: o.profile.photo
44
- })), c.params.url) {
45
- const o = await j({ user: f.user._id, url: c.params.url });
44
+ })), d.params.url) {
45
+ const o = await H({ user: f.user._id, url: d.params.url });
46
46
  e.value = o.pop();
47
47
  } else
48
- q(), e.value = G.current;
48
+ j(), e.value = q.current;
49
49
  e.value.owner || (e.value.owner = {
50
50
  target: f.user._id,
51
51
  type: "user"
@@ -57,88 +57,79 @@ const K = { class: "pd-thin" }, Q = {
57
57
  _id: e.value.owner.target._id,
58
58
  name: e.value.owner.target.profile.name,
59
59
  photo: e.value.owner.target.profile.photo
60
- }), console.log(t);
60
+ });
61
61
  });
62
- const x = n(""), _ = n([
62
+ const P = r(""), _ = r([
63
63
  { text: "story" },
64
64
  { text: "news" },
65
65
  { text: "guide" },
66
66
  { text: "discussion" },
67
67
  { text: "photos" }
68
68
  ]);
69
- w(() => _.value.filter((t) => t.text.toLowerCase().includes(x.value.toLowerCase()))), w(() => _.value.filter((t) => !g.value.some((o) => o.text === t.text)));
70
- const h = n(!1);
71
- function C() {
69
+ w(() => _.value.filter((t) => t.text.toLowerCase().includes(P.value.toLowerCase()))), w(() => _.value.filter((t) => !g.value.some((o) => o.text === t.text)));
70
+ const h = r(!1);
71
+ function x() {
72
72
  h.value = !0;
73
73
  }
74
- function $() {
74
+ function C() {
75
75
  h.value = !1;
76
76
  }
77
77
  function B() {
78
- g.value.length > 0 && g.value.map((t) => t.text), e.value.status = "draft", c.params.url ? y(e.value).then((t) => {
79
- d.push({ name: "BlogPost", params: { url: t.url } });
78
+ g.value.length > 0 && g.value.map((t) => t.text), e.value.status = "draft", e.value.name = e.value.content[0].content, d.params.url ? k(e.value).then((t) => {
79
+ c.push({ name: "BlogPost", params: { url: t.url } });
80
80
  }).catch((t) => {
81
81
  console.log(t);
82
- }) : P(e.value).then((t) => {
83
- d.push({ name: "BlogPost", params: { url: t.url } });
82
+ }) : y(e.value).then((t) => {
83
+ c.push({ name: "BlogPost", params: { url: t.url } });
84
84
  }).catch((t) => {
85
85
  console.log(t);
86
86
  });
87
87
  }
88
- function T() {
88
+ function $() {
89
89
  s.value && (e.value.owner = {
90
90
  target: s.value._id,
91
91
  type: "organization"
92
- }), s.value || (e.value.creator.hidden = !1), s.value || (e.value.organization = e.value.creator), e.value.status = "published", console.log(e.value), c.params.url ? y(e.value).then((t) => {
93
- console.log(e.value), d.push({ name: "BlogPost", params: { url: t.url } });
92
+ }), s.value || (e.value.creator.hidden = !1), s.value || (e.value.organization = e.value.creator), e.value.status = "published", e.value.name = e.value.content[0].content, d.params.url ? k(e.value).then((t) => {
93
+ console.log(e.value), c.push({ name: "BlogPost", params: { url: t.url } });
94
94
  }).catch((t) => {
95
95
  console.error(t);
96
- }) : P(e.value).then((t) => {
97
- d.push({ name: "BlogPost", params: { url: t.url } });
96
+ }) : y(e.value).then((t) => {
97
+ c.push({ name: "BlogPost", params: { url: t.url } });
98
98
  }).catch((t) => {
99
99
  console.error(t);
100
100
  });
101
101
  }
102
- function V() {
103
- confirm("Are you sure you want to delete this post?") && I(e.value._id).then((t) => {
104
- d.push({ name: "User Blogposts", params: { _id: e.value.creator.target._id } });
102
+ function T() {
103
+ confirm("Are you sure you want to delete this post?") && G(e.value._id).then((t) => {
104
+ c.push({ name: "User Blogposts", params: { _id: e.value.creator.target._id } });
105
105
  }).catch((t) => {
106
106
  console.log(t);
107
107
  });
108
108
  }
109
- return (t, o) => (i(), m("article", K, [
110
- r("section", Q, [
111
- r("div", W, [
112
- l(e) ? (i(), k(D, {
113
- key: 0,
114
- prop: l(e),
115
- setFocus: !0,
116
- content: "name",
117
- placeholder: "Enter post title",
118
- class: "h2"
119
- }, null, 8, ["prop"])) : p("", !0)
120
- ]),
121
- l(e) ? (i(), k(N, {
109
+ return (t, o) => (u(), m("article", J, [
110
+ n("section", K, [
111
+ Q,
112
+ l(e) ? (u(), A(D, {
122
113
  key: 0,
123
114
  content: l(e).content,
124
115
  onUpdate: o[0] || (o[0] = (a) => l(e).content = a)
125
116
  }, null, 8, ["content"])) : p("", !0)
126
117
  ]),
127
- u(U, { name: "scaleIn" }, {
118
+ i(U, { name: "scaleIn" }, {
128
119
  default: v(() => [
129
- l(e) ? (i(), m("section", X, [
130
- r("div", Y, [
131
- l(c).params.url ? (i(), m("a", {
120
+ l(e) ? (u(), m("section", W, [
121
+ n("div", X, [
122
+ l(d).params.url ? (u(), m("a", {
132
123
  key: 0,
133
- onClick: o[1] || (o[1] = (a) => V()),
124
+ onClick: o[1] || (o[1] = (a) => T()),
134
125
  class: "mn-r-auto bg-red t-white t-black button"
135
126
  }, "Delete")) : p("", !0),
136
- r("a", {
127
+ n("a", {
137
128
  onClick: o[2] || (o[2] = (a) => B()),
138
129
  class: "mn-l-auto bg-white t-black button"
139
130
  }, "To Drafts"),
140
- r("a", {
141
- onClick: o[3] || (o[3] = (a) => C()),
131
+ n("a", {
132
+ onClick: o[3] || (o[3] = (a) => x()),
142
133
  class: "mn-l-thin bg-black t-white button"
143
134
  }, "Publish")
144
135
  ])
@@ -146,27 +137,27 @@ const K = { class: "pd-thin" }, Q = {
146
137
  ]),
147
138
  _: 1
148
139
  }),
149
- u(O, {
150
- title: "Добавить участника",
151
- onClosePopup: $,
140
+ i(N, {
141
+ onClosePopup: C,
152
142
  isPopupOpen: h.value,
153
143
  class: "w-m-33r t-left pd-big bg-white radius-big"
154
144
  }, {
155
145
  default: v(() => [
156
- Z,
157
- u(E, {
146
+ Y,
147
+ i(O, {
158
148
  onTagsChanged: o[4] || (o[4] = (a) => l(e).tags = a),
159
- tags: l(e).tags
149
+ tags: l(e).tags,
150
+ class: "mn-b-small"
160
151
  }, null, 8, ["tags"]),
161
- ee,
162
- u(L, {
152
+ Z,
153
+ i(F, {
163
154
  field: l(e).source,
164
155
  "onUpdate:field": o[5] || (o[5] = (a) => l(e).source = a),
165
156
  placeholder: "Add full link to the source",
166
157
  class: "mn-b-medium bg-light radius-medium pd-small"
167
158
  }, null, 8, ["field"]),
168
- te,
169
- u(M, {
159
+ ee,
160
+ i(L, {
170
161
  modelValue: s.value,
171
162
  "onUpdate:modelValue": o[6] || (o[6] = (a) => s.value = a),
172
163
  options: l(b),
@@ -177,9 +168,9 @@ const K = { class: "pd-thin" }, Q = {
177
168
  "track-by": "_id",
178
169
  class: "mn-b-medium bg-light radius-medium pd-small"
179
170
  }, null, 8, ["modelValue", "options"]),
180
- s.value ? (i(), m("h5", oe, "Options:")) : p("", !0),
181
- s.value ? (i(), m("div", le, [
182
- u(F, {
171
+ s.value ? (u(), m("h5", te, "Options:")) : p("", !0),
172
+ s.value ? (u(), m("div", oe, [
173
+ i(E, {
183
174
  label: "Hide Author",
184
175
  radio: l(e).creator.hidden,
185
176
  "onUpdate:radio": o[7] || (o[7] = (a) => l(e).creator.hidden = a),
@@ -187,8 +178,8 @@ const K = { class: "pd-thin" }, Q = {
187
178
  class: "w-100"
188
179
  }, null, 8, ["radio"])
189
180
  ])) : p("", !0),
190
- u(R, {
191
- submit: T,
181
+ i(M, {
182
+ submit: $,
192
183
  callback: t.redirectTo,
193
184
  class: "w-100 bg-black t-white"
194
185
  }, {
@@ -204,5 +195,5 @@ const K = { class: "pd-thin" }, Q = {
204
195
  }
205
196
  };
206
197
  export {
207
- we as default
198
+ _e as default
208
199
  };
@@ -0,0 +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;
@@ -0,0 +1,104 @@
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";
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
+ key: 0,
5
+ class: "mn-l-medium mn-t-small bg-white w-100 radius-small pd-small reply-form"
6
+ }, T = {
7
+ key: 1,
8
+ class: "br-solid br-l br-grey-transp-25"
9
+ }, $ = {
10
+ __name: "Comment",
11
+ props: {
12
+ comment: {
13
+ type: Object,
14
+ required: !0
15
+ },
16
+ target: {
17
+ type: String,
18
+ required: !0
19
+ },
20
+ owner: {
21
+ type: String,
22
+ required: !0
23
+ }
24
+ },
25
+ emits: ["reply", "load-more"],
26
+ setup(e, { emit: p }) {
27
+ const m = e, u = p, d = v(!1), c = v(""), s = v(f(m.comment.depth));
28
+ function f(n) {
29
+ return n % 3 < 2;
30
+ }
31
+ const y = C(() => {
32
+ function n(t) {
33
+ return !t.children || t.children.length === 0 ? 0 : t.children.length + t.children.reduce((l, x) => l + n(x), 0);
34
+ }
35
+ return n(m.comment);
36
+ }), b = () => {
37
+ s.value = !s.value;
38
+ }, g = () => {
39
+ u("reply", m.comment._id, c.value), c.value = "", d.value = !1;
40
+ }, w = (n, t) => {
41
+ u("reply", n, t);
42
+ }, k = (n, t) => {
43
+ u("load-more", n, t);
44
+ };
45
+ return (n, t) => (r(), a("div", null, [
46
+ R(L, {
47
+ class: "mn-b-thin",
48
+ entity: e.comment,
49
+ entityType: "comment",
50
+ user: e.owner,
51
+ owner: { target: e.comment.user },
52
+ creator: { target: e.comment.user },
53
+ date: e.comment.createdAt
54
+ }, null, 8, ["entity", "user", "owner", "creator", "date"]),
55
+ o("div", M, [
56
+ o("p", N, h(e.comment.content), 1)
57
+ ]),
58
+ o("div", D, [
59
+ y.value > 0 ? (r(), a("button", {
60
+ key: 0,
61
+ onClick: b,
62
+ class: "t-second cursor-pointer t-medium font-second"
63
+ }, h(s.value ? "Hide" : y.value + (y.value === 1 ? " reply" : " replies")), 1)) : i("", !0),
64
+ e.owner ? (r(), a("button", {
65
+ key: 1,
66
+ class: "font-second cursor-pointer t-transp t-medium",
67
+ onClick: t[0] || (t[0] = (l) => d.value = !0)
68
+ }, " Reply ")) : i("", !0)
69
+ ]),
70
+ d.value ? (r(), a("div", F, [
71
+ B(o("textarea", {
72
+ class: "w-100",
73
+ "onUpdate:modelValue": t[1] || (t[1] = (l) => c.value = l)
74
+ }, null, 512), [
75
+ [E, c.value]
76
+ ]),
77
+ o("div", { class: "mn-l-auto gap-thin flex-nowrap flex" }, [
78
+ o("button", {
79
+ class: "bg-grey-transp-25 button",
80
+ onClick: g
81
+ }, "Cancel"),
82
+ o("button", {
83
+ class: "bg-main button",
84
+ onClick: g
85
+ }, "Send")
86
+ ])
87
+ ])) : i("", !0),
88
+ s.value && e.comment.children && e.comment.children.length ? (r(), a("div", T, [
89
+ (r(!0), a(S, null, V(e.comment.children, (l) => (r(), q($, {
90
+ key: l._id,
91
+ comment: l,
92
+ target: e.target,
93
+ owner: e.owner,
94
+ onReply: w,
95
+ onLoadMore: k,
96
+ class: "mn-l-medium mn-t-small"
97
+ }, null, 8, ["comment", "target", "owner"]))), 128))
98
+ ])) : i("", !0)
99
+ ]));
100
+ }
101
+ };
102
+ export {
103
+ $ as default
104
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("axios"),d=require("../../../globals/components/blocks/CardHeader.vue.cjs"),p={class:"mn-b-small"},g=e.createElementVNode("p",{class:"t-semi uppercase"},"Please log in to leave a comment.",-1),v=[g],b={key:1,class:"mn-b-small"},y=e.createElementVNode("button",{type:"submit",class:"mn-l-auto bg-main button"},"Send",-1),h={class:"pd-t-zero"},w={class:"p-big"},k={__name:"Comments",props:["target","owner","type"],setup(s){const o=s,c=u.create({baseURL:process.env.API_URL}),a=e.ref([]),r=e.ref(""),i=async()=>{const{data:n}=await c.get(`/comments/read?type=${o.type}&target=${o.target}&user=${o.owner}`);a.value=n},m=async()=>{if(r.value)try{const n=await c.post("/comments/create",{target:o.target,user:o.owner,type:o.type,content:r.value});n.data.owner=o.owner,a.value.push(n.data),r.value=""}catch(n){console.error(n)}};return i(),(n,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",null,[e.createElementVNode("h3",p,e.toDisplayString(a.value.length)+" comments",1),s.owner?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l[0]||(l[0]=t=>n.$router.push({name:"Sign In"})),class:"cursor-pointer mn-b-small section bg-black t-white flex-center flex radius-big"},v)),s.owner?(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("form",{onSubmit:e.withModifiers(m,["prevent"]),class:"bg-light radius-big pd-medium"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":l[1]||(l[1]=t=>r.value=t),placeholder:"Enter your comment",class:"pd-small p-big w-100 radius-small mn-r-small"},null,512),[[e.vModelText,r.value]]),y],32)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,t=>(e.openBlock(),e.createElementBlock("div",{key:t._id,class:"comment mn-b-small radius-big pd-medium bg-light"},[e.createVNode(d.default,{class:"mn-b-medium",entity:t,entityType:"comment",user:s.owner,owner:{target:t.user},creator:{target:t.user},date:t.createdAt},null,8,["entity","user","owner","creator","date"]),e.createElementVNode("div",h,[e.createElementVNode("p",w,e.toDisplayString(t.content),1)])]))),128))]))}};exports.default=k;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("axios"),b=require("./Comment.vue.cjs"),f={id:"comments"},w={class:"mn-b-small"},k=e.createElementVNode("p",{class:"t-semi uppercase"},"Please log in to leave a comment.",-1),E=[k],C={key:1,class:"mn-b-small"},B=e.createElementVNode("button",{type:"submit",class:"mn-l-auto bg-main button"},"Send",-1),V={__name:"Comments",props:["target","owner","type"],setup(s){const o=s,p=m.create({baseURL:process.env.API_URL}),l=e.ref([]),c=e.ref(""),g=async()=>{try{const t=await m.get("/comments/read",{params:{target:o.target,type:o.type,user:o.owner,maxDepth:2}});l.value=t.data}catch(t){console.error("Error fetching comments:",t)}},h=async(t,n)=>{try{const i=(await m.post("/comments/create",{content:n,target:o.target,type:o.type,user:o.owner,parent:t})).data;u(l.value,t,i)}catch(r){console.error("Error posting reply:",r)}},y=async(t,n)=>{try{const r=await m.get("/comments/read",{params:{target:o.target,type:o.type,user:o.owner,parentId:t,depth:n,maxDepth:10}});u(l.value,t,r.data,r.data.hasMore,!0)}catch(r){console.error("Error loading more comments:",r)}},u=(t,n,r,i,d=!1)=>{for(let a=0;a<t.length;a++){if(t[a]._id===n)return d?(t[a].children=[...t[a].children,...r],t[a].hasMore=i):t[a].children.push(r),!0;if(t[a].children&&u(t[a].children,n,r,i,d))return!0}return!1},v=async()=>{if(c.value)try{const t=await p.post("/comments/create",{target:o.target,user:o.owner,type:o.type,content:c.value});t.data.owner=o.owner,l.value.push(t.data),c.value=""}catch(t){console.error(t)}};return g(),(t,n)=>(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("div",null,[e.createElementVNode("h3",w,e.toDisplayString(l.value.length)+" comments",1),s.owner?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:n[0]||(n[0]=r=>t.$router.push({name:"Sign In"})),class:"cursor-pointer mn-b-small section bg-black t-white flex-center flex radius-big"},E)),s.owner?(e.openBlock(),e.createElementBlock("div",C,[e.createElementVNode("form",{onSubmit:e.withModifiers(v,["prevent"]),class:"bg-light radius-big pd-medium"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=r=>c.value=r),placeholder:"Enter your comment",class:"pd-small p-big w-100 radius-small mn-r-small"},null,512),[[e.vModelText,c.value]]),B],32)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,r=>(e.openBlock(),e.createBlock(b.default,{key:r._id,comment:r,target:s.target,type:s.type,owner:s.owner,onReply:h,onLoadMore:y,class:"comment mn-b-small radius-big pd-medium bg-light"},null,8,["comment","target","type","owner"]))),128))]))}};exports.default=V;
@@ -1,79 +1,124 @@
1
- import { ref as u, openBlock as r, createElementBlock as a, createElementVNode as s, toDisplayString as d, createCommentVNode as p, withModifiers as v, withDirectives as y, vModelText as h, Fragment as w, renderList as f, createVNode as _ } from "vue";
2
- import k from "axios";
3
- import x from "../../../globals/components/blocks/CardHeader.vue.js";
4
- const $ = { class: "mn-b-small" }, C = /* @__PURE__ */ s("p", { class: "t-semi uppercase" }, "Please log in to leave a comment.", -1), S = [
5
- C
6
- ], V = {
1
+ import { ref as h, openBlock as i, createElementBlock as u, createElementVNode as l, toDisplayString as C, createCommentVNode as y, withModifiers as k, withDirectives as _, vModelText as E, Fragment as M, renderList as R, createBlock as S } from "vue";
2
+ import d from "axios";
3
+ import $ from "./Comment.vue.js";
4
+ const B = { id: "comments" }, L = { class: "mn-b-small" }, U = /* @__PURE__ */ l("p", { class: "t-semi uppercase" }, "Please log in to leave a comment.", -1), V = [
5
+ U
6
+ ], D = {
7
7
  key: 1,
8
8
  class: "mn-b-small"
9
- }, E = /* @__PURE__ */ s("button", {
9
+ }, N = /* @__PURE__ */ l("button", {
10
10
  type: "submit",
11
11
  class: "mn-l-auto bg-main button"
12
- }, "Send", -1), L = { class: "pd-t-zero" }, N = { class: "p-big" }, D = {
12
+ }, "Send", -1), F = {
13
13
  __name: "Comments",
14
- props: ["target", "owner", "type"],
15
- setup(l) {
16
- const n = l, c = k.create({ baseURL: process.env.API_URL }), i = u([]), o = u(""), g = async () => {
17
- const { data: t } = await c.get(`/comments/read?type=${n.type}&target=${n.target}&user=${n.owner}`);
18
- i.value = t;
19
- }, b = async () => {
20
- if (o.value)
14
+ props: [
15
+ "target",
16
+ "owner",
17
+ "type"
18
+ ],
19
+ setup(a) {
20
+ const r = a, v = d.create({ baseURL: process.env.API_URL }), s = h([]), c = h(""), f = async () => {
21
+ try {
22
+ const e = await d.get("/comments/read", {
23
+ params: {
24
+ target: r.target,
25
+ type: r.type,
26
+ user: r.owner,
27
+ maxDepth: 2
28
+ }
29
+ });
30
+ s.value = e.data;
31
+ } catch (e) {
32
+ console.error("Error fetching comments:", e);
33
+ }
34
+ }, b = async (e, o) => {
35
+ try {
36
+ const m = (await d.post("/comments/create", {
37
+ content: o,
38
+ target: r.target,
39
+ type: r.type,
40
+ user: r.owner,
41
+ parent: e
42
+ })).data;
43
+ p(s.value, e, m);
44
+ } catch (t) {
45
+ console.error("Error posting reply:", t);
46
+ }
47
+ }, w = async (e, o) => {
48
+ try {
49
+ const t = await d.get("/comments/read", {
50
+ params: {
51
+ target: r.target,
52
+ type: r.type,
53
+ user: r.owner,
54
+ parentId: e,
55
+ depth: o,
56
+ maxDepth: 10
57
+ }
58
+ });
59
+ p(s.value, e, t.data, t.data.hasMore, !0);
60
+ } catch (t) {
61
+ console.error("Error loading more comments:", t);
62
+ }
63
+ }, p = (e, o, t, m, g = !1) => {
64
+ for (let n = 0; n < e.length; n++) {
65
+ if (e[n]._id === o)
66
+ return g ? (e[n].children = [...e[n].children, ...t], e[n].hasMore = m) : e[n].children.push(t), !0;
67
+ if (e[n].children && p(e[n].children, o, t, m, g))
68
+ return !0;
69
+ }
70
+ return !1;
71
+ }, x = async () => {
72
+ if (c.value)
21
73
  try {
22
- const t = await c.post("/comments/create", {
23
- target: n.target,
24
- user: n.owner,
25
- type: n.type,
26
- content: o.value
74
+ const e = await v.post("/comments/create", {
75
+ target: r.target,
76
+ user: r.owner,
77
+ type: r.type,
78
+ content: c.value
27
79
  });
28
- t.data.owner = n.owner, i.value.push(t.data), o.value = "";
29
- } catch (t) {
30
- console.error(t);
80
+ e.data.owner = r.owner, s.value.push(e.data), c.value = "";
81
+ } catch (e) {
82
+ console.error(e);
31
83
  }
32
84
  };
33
- return g(), (t, m) => (r(), a("div", null, [
34
- s("div", null, [
35
- s("h3", $, d(i.value.length) + " comments", 1),
36
- l.owner ? p("", !0) : (r(), a("div", {
85
+ return f(), (e, o) => (i(), u("div", B, [
86
+ l("div", null, [
87
+ l("h3", L, C(s.value.length) + " comments", 1),
88
+ a.owner ? y("", !0) : (i(), u("div", {
37
89
  key: 0,
38
- onClick: m[0] || (m[0] = (e) => t.$router.push({ name: "Sign In" })),
90
+ onClick: o[0] || (o[0] = (t) => e.$router.push({ name: "Sign In" })),
39
91
  class: "cursor-pointer mn-b-small section bg-black t-white flex-center flex radius-big"
40
- }, S)),
41
- l.owner ? (r(), a("div", V, [
42
- s("form", {
43
- onSubmit: v(b, ["prevent"]),
92
+ }, V)),
93
+ a.owner ? (i(), u("div", D, [
94
+ l("form", {
95
+ onSubmit: k(x, ["prevent"]),
44
96
  class: "bg-light radius-big pd-medium"
45
97
  }, [
46
- y(s("textarea", {
47
- "onUpdate:modelValue": m[1] || (m[1] = (e) => o.value = e),
98
+ _(l("textarea", {
99
+ "onUpdate:modelValue": o[1] || (o[1] = (t) => c.value = t),
48
100
  placeholder: "Enter your comment",
49
101
  class: "pd-small p-big w-100 radius-small mn-r-small"
50
102
  }, null, 512), [
51
- [h, o.value]
103
+ [E, c.value]
52
104
  ]),
53
- E
105
+ N
54
106
  ], 32)
55
- ])) : p("", !0)
107
+ ])) : y("", !0)
56
108
  ]),
57
- (r(!0), a(w, null, f(i.value, (e) => (r(), a("div", {
58
- key: e._id,
109
+ (i(!0), u(M, null, R(s.value, (t) => (i(), S($, {
110
+ key: t._id,
111
+ comment: t,
112
+ target: a.target,
113
+ type: a.type,
114
+ owner: a.owner,
115
+ onReply: b,
116
+ onLoadMore: w,
59
117
  class: "comment mn-b-small radius-big pd-medium bg-light"
60
- }, [
61
- _(x, {
62
- class: "mn-b-medium",
63
- entity: e,
64
- entityType: "comment",
65
- user: l.owner,
66
- owner: { target: e.user },
67
- creator: { target: e.user },
68
- date: e.createdAt
69
- }, null, 8, ["entity", "user", "owner", "creator", "date"]),
70
- s("div", L, [
71
- s("p", N, d(e.content), 1)
72
- ])
73
- ]))), 128))
118
+ }, null, 8, ["comment", "target", "type", "owner"]))), 128))
74
119
  ]));
75
120
  }
76
121
  };
77
122
  export {
78
- D as default
123
+ F as default
79
124
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const s=require("../../../../components/Slider/Slider.vue.cjs"),i=require("../../../icons/navigation/IconArrow.vue.cjs"),n=require("../blocks/CardBlogpost.vue.cjs"),l=require("../../store/blogposts.cjs"),r=require("../../../auth/store/auth.cjs");;/* empty css */const a={class:"pd-thin"},c={class:"bg-light radius-big pd-t-big pd-b-big"},u={class:"w-100 pd-b-small t-center flex-center flex"},d=e.createElementVNode("b",null,"Community",-1),p={__name:"HotPosts",setup(_){return(h,g)=>{const o=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",a,[e.createElementVNode("div",c,[e.createElementVNode("h2",u,[e.createTextVNode(" Discover Our "),e.createVNode(o,{to:{name:"Blog"},class:"transition-ease-in hover-bg-black hover-t-white transition-timing-1 hover-scale-0 bg-main cursor-pointer pd-thin mn-l-thin radius-extra flex flex-v-center"},{default:e.withCtx(()=>[d,e.createVNode(i.default,{class:"mn-l-thin radius-extra bg-white i-big"})]),_:1})]),e.createVNode(s.default,{store:{read:t=>l.read(t)},options:{skip:0,limit:8,user:r.state.user._id,period:"year"},text:{messages:{en:{title:"No Blogposts Found",description:"Currently, there are no blogposts available."}}},class:"slider-hotpost"},{default:e.withCtx(({item:t})=>[(e.openBlock(),e.createBlock(n.default,{key:t._id,blogpost:t,user:r.state.user._id,hideDescription:!0,class:"bg-white flex flex-column h-35r"},null,8,["blogpost","user"]))]),_:1},8,["store","options"])])])}}};exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const s=require("../../../../components/Slider/Slider.vue.cjs"),i=require("../blocks/CardBlogpost.vue.cjs"),l=require("../../store/blogposts.cjs"),r=require("../../../auth/store/auth.cjs");;/* empty css */const n={class:"pd-thin"},a={class:"bg-light radius-big pd-t-big pd-b-big"},c={class:"w-100 pd-b-small t-center flex-center flex"},u=e.createElementVNode("b",null,"Community",-1),d={__name:"HotPosts",setup(p){return(_,h)=>{const o=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",n,[e.createElementVNode("div",a,[e.createElementVNode("h2",c,[e.createTextVNode(" Discover Our "),e.createVNode(o,{to:{name:"Blog"},class:"transition-ease-in hover-bg-black hover-t-white transition-timing-1 hover-scale-0 bg-main cursor-pointer pd-thin pd-r-small pd-l-small mn-l-thin radius-extra flex flex-v-center"},{default:e.withCtx(()=>[u]),_:1})]),e.createVNode(s.default,{store:{read:t=>l.read(t)},options:{skip:0,limit:8,user:r.state.user._id,period:"year",category:"featured"},text:{messages:{en:{title:"No Blogposts Found",description:"Currently, there are no blogposts available."}}},class:"slider-hotpost"},{default:e.withCtx(({item:t})=>[(e.openBlock(),e.createBlock(i.default,{key:t._id,blogpost:t,user:r.state.user._id,hideDescription:!0,class:"bg-white flex flex-column h-35r"},null,8,["blogpost","user"]))]),_:1},8,["store","options"])])])}}};exports.default=d;