@ozdao/prometheus-framework 0.2.39 → 0.2.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (274) hide show
  1. package/dist/auth.server.js +1 -2
  2. package/dist/auth.server.mjs +1 -2
  3. package/dist/files.server.js +1 -2
  4. package/dist/files.server.mjs +1 -2
  5. package/dist/globals.server.js +1 -1
  6. package/dist/globals.server.mjs +1 -1
  7. package/dist/mailing-10560277.mjs +78 -0
  8. package/dist/mailing-902d13d5.js +77 -0
  9. package/dist/main.css +1 -1
  10. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  11. package/dist/prometheus-framework/src/components/Button/Button.vue.js +225 -2
  12. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  13. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +2 -225
  14. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
  16. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +2 -61
  18. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +13 -9
  20. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
  21. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +4 -0
  22. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +26 -22
  24. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +29 -30
  26. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Field/Field.vue.js +76 -2
  28. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -76
  30. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
  32. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  33. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -70
  34. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
  36. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  37. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -95
  38. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -0
  39. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +69 -0
  40. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +44 -2
  42. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  43. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +2 -44
  44. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  46. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  48. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
  50. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
  52. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  54. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
  56. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
  58. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/auth/store/auth.js +8 -8
  60. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  62. package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/community/community.client.js +18 -20
  64. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +88 -62
  66. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +97 -68
  68. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +35 -34
  70. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +18 -18
  72. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +2 -2
  73. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +5 -5
  75. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +4 -4
  77. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +65 -19
  79. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +9 -9
  81. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +8 -7
  83. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +6 -6
  85. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  86. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +65 -2
  87. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  88. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -65
  89. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +64 -70
  91. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
  92. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  94. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  96. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +5 -5
  98. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +6 -5
  100. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  102. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +3 -3
  104. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +43 -42
  106. package/dist/prometheus-framework/src/modules/icons/entities/IconFeatured.vue.cjs +1 -0
  107. package/dist/prometheus-framework/src/modules/icons/entities/IconFeatured.vue.js +30 -0
  108. package/dist/prometheus-framework/src/modules/icons/entities/IconFollowing.vue.cjs +1 -0
  109. package/dist/prometheus-framework/src/modules/icons/entities/IconFollowing.vue.js +47 -0
  110. package/dist/prometheus-framework/src/modules/icons/entities/IconPopular.vue.cjs +1 -0
  111. package/dist/prometheus-framework/src/modules/icons/entities/IconPopular.vue.js +28 -0
  112. package/dist/prometheus-framework/src/modules/icons/entities/IconRecent.vue.cjs +1 -0
  113. package/dist/prometheus-framework/src/modules/icons/entities/IconRecent.vue.js +45 -0
  114. package/dist/prometheus-framework/src/modules/icons/navigation/IconArrow.vue.cjs +1 -0
  115. package/dist/prometheus-framework/src/modules/icons/navigation/IconArrow.vue.js +32 -0
  116. package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.js +3 -3
  118. package/dist/prometheus-framework/src/modules/icons/navigation/IconEdit.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/icons/navigation/IconEdit.vue.js +25 -14
  120. package/dist/prometheus-framework/src/modules/icons/navigation/IconEllipsis.vue.cjs +1 -0
  121. package/dist/prometheus-framework/src/modules/icons/navigation/IconEllipsis.vue.js +44 -0
  122. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +90 -67
  124. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
  126. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
  128. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -2
  130. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
  132. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  134. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +2 -2
  136. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +45 -42
  138. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
  140. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  142. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +6 -6
  144. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  146. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +3 -3
  148. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +5 -5
  150. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +60 -55
  154. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  156. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  160. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +1 -1
  162. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +18 -17
  164. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +20 -21
  166. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +7 -7
  167. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
  169. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  171. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  173. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  175. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +6 -6
  177. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
  179. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  181. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  183. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +37 -34
  185. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +23 -23
  187. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  189. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +8 -8
  190. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +7 -7
  192. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  194. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  195. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  196. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  197. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  198. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  199. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +31 -30
  200. package/dist/prometheus-framework.cjs.js +20 -20
  201. package/dist/prometheus-framework.es.js +1003 -999
  202. package/dist/style.css +1 -1
  203. package/package.json +1 -1
  204. package/src/components/Button/Button.vue +2 -3
  205. package/src/components/Chips/Chips.vue +9 -3
  206. package/src/components/Dropdown/Dropdown.vue +9 -3
  207. package/src/components/Feed/Feed.vue +7 -11
  208. package/src/components/Feed/Masonry.vue +177 -0
  209. package/src/components/FieldBig/FieldBig.vue +3 -3
  210. package/src/components/Navigation/Navigation.vue +2 -0
  211. package/src/components/Shader/Shader.vue +161 -116
  212. package/src/components/Slider/Slider.vue +92 -0
  213. package/src/modules/applications/applications.client.js +2 -0
  214. package/src/modules/applications/components/sections/SubscribeNewsletter.vue +114 -0
  215. package/src/modules/applications/controllers/applications.controller.js +125 -136
  216. package/src/modules/applications/models/application.model.js +22 -7
  217. package/src/modules/applications/routes/applications.routes.js +29 -13
  218. package/src/modules/auth/controllers/auth.controller.js +2 -3
  219. package/src/modules/auth/store/auth.js +3 -5
  220. package/src/modules/chats/components/blocks/ChatMessage.vue +3 -2
  221. package/src/modules/chats/components/pages/ChatPage.vue +6 -6
  222. package/src/modules/chats/components/sections/ChatWindow.vue +57 -12
  223. package/src/modules/chats/store/chat.store.js +6 -1
  224. package/src/modules/community/community.client.js +0 -2
  225. package/src/modules/community/components/blocks/CardBlogpost.vue +71 -33
  226. package/src/modules/community/components/layouts/Community.vue +63 -24
  227. package/src/modules/community/components/pages/Blog.vue +37 -0
  228. package/src/modules/community/components/pages/BlogPost.vue +5 -6
  229. package/src/modules/community/components/pages/Community.vue +1 -0
  230. package/src/modules/community/components/sections/Feed.vue +1 -1
  231. package/src/modules/community/components/sections/HotPosts.vue +64 -24
  232. package/src/modules/community/components/sections/JoinUs.vue +4 -5
  233. package/src/modules/community/store/blogposts.js +1 -0
  234. package/src/modules/constructor/components/elements/Embed.vue +7 -6
  235. package/src/modules/constructor/components/elements/Image.vue +2 -2
  236. package/src/modules/constructor/components/elements/Textarea.vue +1 -1
  237. package/src/modules/constructor/components/sections/Constructor.vue +2 -18
  238. package/src/modules/files/middlewares/server/middlewareBusboy.js +1 -1
  239. package/src/modules/files/routes/files.routes.js +9 -1
  240. package/src/modules/globals/components/blocks/CardHeader.vue +6 -3
  241. package/src/modules/globals/utils/mailing.js +12 -0
  242. package/src/modules/icons/entities/IconEarn.vue +20 -0
  243. package/src/modules/icons/entities/IconFeatured.vue +14 -0
  244. package/src/modules/icons/entities/IconFollowing.vue +17 -0
  245. package/src/modules/icons/entities/IconPopular.vue +14 -0
  246. package/src/modules/icons/entities/IconRecent.vue +17 -0
  247. package/src/modules/icons/navigation/IconAdd.vue +1 -3
  248. package/src/modules/icons/navigation/IconArrow.vue +21 -0
  249. package/src/modules/icons/navigation/IconCheckmark.vue +16 -0
  250. package/src/modules/icons/navigation/IconChevronRight.vue +2 -2
  251. package/src/modules/icons/navigation/IconEdit.vue +16 -2
  252. package/src/modules/icons/navigation/IconEllipsis.vue +16 -0
  253. package/src/modules/icons/placeholders/PlaceholderChat.vue +9 -0
  254. package/src/modules/landing/components/sections/MobileApp.vue +38 -21
  255. package/src/modules/landing/components/sections/SectionEarn.vue +104 -0
  256. package/src/modules/landing/components/sections/SectionFeatures.vue +7 -8
  257. package/src/modules/marketplace/components/layouts/Marketplace.vue +2 -2
  258. package/src/modules/orders/components/blocks/StatusHistory.vue +7 -1
  259. package/src/modules/orders/components/pages/Order.vue +3 -4
  260. package/src/modules/organizations/components/blocks/CardOrganization.vue +6 -6
  261. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  262. package/src/modules/organizations/components/sections/DetailsTab.vue +42 -43
  263. package/src/modules/organizations/components/sections/Publics.vue +3 -4
  264. package/src/modules/products/components/sections/HeroRecommendation.vue +9 -170
  265. package/src/modules/products/components/sections/MenuSection.vue +4 -4
  266. package/src/modules/products/components/sections/PopularProducts.vue +3 -3
  267. package/src/modules/spots/components/layouts/Spots.vue +2 -2
  268. package/src/modules/wallet/components/pages/Wallet.vue +1 -1
  269. package/src/styles/base/all.scss +4 -0
  270. package/src/styles/base/backgrounds.scss +2 -2
  271. package/src/styles/base/shadow_transitions_hover_refactor.scss +11 -1
  272. package/src/styles/typography.scss +19 -12
  273. package/src/modules/community/components/sections/SubscribeNewsletter.vue +0 -67
  274. package/src/modules/constructor/components/elements/Youtube.vue +0 -52
@@ -1,8 +1,8 @@
1
1
  import { ref as d, resolveComponent as C, openBlock as k, createElementBlock as E, 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";
2
- import S from "../../../../components/Tab/Tab.vue2.js";
3
- import x from "../../../../components/Field/Field.vue2.js";
2
+ import S from "../../../../components/Tab/Tab.vue.js";
3
+ import x from "../../../../components/Field/Field.vue.js";
4
4
  import N from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import D from "../../../../components/Button/Button.vue2.js";
5
+ import D from "../../../../components/Button/Button.vue.js";
6
6
  import { useRoute as I, useRouter as P } from "vue-router";
7
7
  import { useI18n as U } from "vue-i18n";
8
8
  import F from "../../localization/SignUp.json.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../../../node_modules/axios/lib/axios.cjs"),d=require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs"),l=require("../../../../node_modules/@capacitor/preferences/dist/esm/index.cjs"),w=require("vue"),n=require("../../globals/store/globals.cjs"),O=require("./twofa.cjs"),i=f.default.create({baseURL:process.env.API_URL,withCredentials:!0}),o=w.reactive({user:{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1}});async function g(){const e=await P("user");if(console.log("user cookie is "+e),e){const{_id:t,email:s,phone:c,roles:a,accessToken:r}=e;Object.assign(o.user,{_id:t,email:s,phone:c}),Object.assign(o.access,{token:r,roles:a,status:!!r}),i.interceptors.request.use(u=>(r&&(u.headers["x-access-token"]=r),u),u=>Promise.reject(u))}}g();const k={async login(e,t){try{const s=await i.post("/api/auth/signin",{...e,type:t});return p("user",s.data),Object.assign(o.user,{...s.data}),Object.assign(o.access,{token:s.data.accessToken,status:!0,roles:s.data.roles}),s.data}catch(s){return Object.assign(o.access,{token:null,status:!1,roles:null}),n.setError(s),Promise.reject(s)}},async signup(e,t,s){const{password:c,passwordRepeat:a}=o.user;if(c!==a){const r={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw n.setError(r),new Error(r.response.status)}try{e.phone=e.phone.number;const r=await i.post("/api/auth/signup",{...e,type:t,inviteCode:s});return r.data.accessToken&&p("user",r.data),Object.assign(o.user,{...r.data}),Object.assign(o.access,{token:r.data.accessToken,status:!0,roles:r.data.roles}),r.data}catch(r){throw n.setError(r),console.log("Sign up falied"),r}},logout(){m("user"),Object.assign(o.user,{email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(o.access,{token:null,status:!1})},async resetPassword(e,t){try{const s=await i.post("/api/auth/reset-password",{email:e.email,phone:e.phone.number,type:t});return Object.assign(O.state.code,{...s.data,isSended:!0}),s.data}catch(s){return n.setError(s),Promise.reject(s)}},async updatePassword(e,t){const{password:s,passwordRepeat:c}=o.user;if(s!==c){const a={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw n.setError(a),new Error(a.response.status)}try{const a=await i.post("/api/auth/update-password",{email:e.email,phone:e.phone.number,password:e.password,passwordRepeat:e.passwordRepeat,type:t});return a.data.accessToken&&p("user",a.data),Object.assign(o.user,{...a.data}),Object.assign(o.access,{token:a.data.accessToken,status:!0}),a.data}catch(a){return n.setError(a),Promise.reject(a)}}},h={development:{secure:!1,expires:1},production:{expires:1,domain:process.env.API_URL,sameSite:"none",secure:!0}};async function P(e){if(process.env.MOBILE_APP){const{value:t}=await l.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.NODE_ENV){process.env.MOBILE_APP?l.Preferences.set({key:e,value:JSON.stringify(t)}):d.default.set(e,JSON.stringify(t),h[s])}function m(e,t=process.env.NODE_ENV){if(process.env.MOBILE_APP)l.Preferences.remove({key:e});else{const s=t==="production"?{domain:process.env.API_URL}:{};d.default.remove(e,s)}}w.watch(o,(e,t)=>{});exports.actions=k;exports.state=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../../../node_modules/axios/lib/axios.cjs"),d=require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs"),l=require("../../../../node_modules/@capacitor/preferences/dist/esm/index.cjs"),w=require("vue"),n=require("../../globals/store/globals.cjs"),O=require("./twofa.cjs"),i=f.default.create({baseURL:process.env.API_URL,withCredentials:!0}),o=w.reactive({user:{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1}});async function g(){const e=await P("user");if(e){const{_id:t,email:s,phone:c,roles:a,accessToken:r}=e;Object.assign(o.user,{_id:t,email:s,phone:c}),Object.assign(o.access,{token:r,roles:a,status:!!r}),i.interceptors.request.use(u=>(r&&(u.headers["x-access-token"]=r),u),u=>Promise.reject(u))}}g();const h={async login(e,t){try{const s=await i.post("/api/auth/signin",{...e,type:t});return p("user",s.data),Object.assign(o.user,{...s.data}),Object.assign(o.access,{token:s.data.accessToken,status:!0,roles:s.data.roles}),s.data}catch(s){return Object.assign(o.access,{token:null,status:!1,roles:null}),n.setError(s),Promise.reject(s)}},async signup(e,t,s){const{password:c,passwordRepeat:a}=o.user;if(c!==a){const r={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw n.setError(r),new Error(r.response.status)}try{e.phone=e.phone.number;const r=await i.post("/api/auth/signup",{...e,type:t,inviteCode:s});return r.data.accessToken&&p("user",r.data),Object.assign(o.user,{...r.data}),Object.assign(o.access,{token:r.data.accessToken,status:!0,roles:r.data.roles}),r.data}catch(r){throw n.setError(r),console.log("Sign up falied"),r}},logout(){m("user"),Object.assign(o.user,{email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(o.access,{token:null,status:!1})},async resetPassword(e,t){try{const s=await i.post("/api/auth/reset-password",{email:e.email,phone:e.phone.number,type:t});return Object.assign(O.state.code,{...s.data,isSended:!0}),s.data}catch(s){return n.setError(s),Promise.reject(s)}},async updatePassword(e,t){const{password:s,passwordRepeat:c}=o.user;if(s!==c){const a={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw n.setError(a),new Error(a.response.status)}try{const a=await i.post("/api/auth/update-password",{email:e.email,phone:e.phone.number,password:e.password,passwordRepeat:e.passwordRepeat,type:t});return a.data.accessToken&&p("user",a.data),Object.assign(o.user,{...a.data}),Object.assign(o.access,{token:a.data.accessToken,status:!0}),a.data}catch(a){return n.setError(a),Promise.reject(a)}}},k={development:{secure:!1,expires:7},production:{expires:7,path:"/",domain:process.env.API_URL,sameSite:"none",secure:!0}};async function P(e){if(process.env.MOBILE_APP){const{value:t}=await l.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?l.Preferences.set({key:e,value:JSON.stringify(t)}):d.default.set(e,JSON.stringify(t),k[s])}function m(e,t=process.env.NODE_ENV){if(process.env.MOBILE_APP)l.Preferences.remove({key:e});else{const s=t==="production"?{domain:process.env.API_URL}:{};d.default.remove(e,s)}}w.watch(o,(e,t)=>{});exports.actions=h;exports.state=o;
@@ -19,14 +19,14 @@ const i = m.create({ baseURL: process.env.API_URL, withCredentials: !0 }), o = w
19
19
  status: !1
20
20
  }
21
21
  });
22
- async function g() {
22
+ async function h() {
23
23
  const e = await k("user");
24
- if (console.log("user cookie is " + e), e) {
24
+ if (e) {
25
25
  const { _id: t, email: s, phone: c, roles: a, accessToken: r } = e;
26
26
  Object.assign(o.user, { _id: t, email: s, phone: c }), Object.assign(o.access, { token: r, roles: a, status: !!r }), i.interceptors.request.use((p) => (r && (p.headers["x-access-token"] = r), p), (p) => Promise.reject(p));
27
27
  }
28
28
  }
29
- g();
29
+ h();
30
30
  const R = {
31
31
  async login(e, t) {
32
32
  try {
@@ -131,9 +131,9 @@ const R = {
131
131
  return n(a), Promise.reject(a);
132
132
  }
133
133
  }
134
- }, h = {
135
- development: { secure: !1, expires: 1 },
136
- production: { expires: 1, domain: process.env.API_URL, sameSite: "none", secure: !0 }
134
+ }, g = {
135
+ development: { secure: !1, expires: 7 },
136
+ production: { expires: 7, path: "/", domain: process.env.API_URL, sameSite: "none", secure: !0 }
137
137
  };
138
138
  async function k(e) {
139
139
  if (process.env.MOBILE_APP) {
@@ -144,11 +144,11 @@ async function k(e) {
144
144
  return t ? JSON.parse(t) : null;
145
145
  }
146
146
  }
147
- function u(e, t, s = process.env.NODE_ENV) {
147
+ function u(e, t, s = process.env.DOMAIN_URL) {
148
148
  process.env.MOBILE_APP ? l.set({
149
149
  key: e,
150
150
  value: JSON.stringify(t)
151
- }) : d.set(e, JSON.stringify(t), h[s]);
151
+ }) : d.set(e, JSON.stringify(t), g[s]);
152
152
  }
153
153
  function P(e, t = process.env.NODE_ENV) {
154
154
  if (process.env.MOBILE_APP)
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../mobile/components/Menu/Menu.vue.cjs"),n=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),c=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),d=require("vue-router"),f=require("../../../auth/store/auth.cjs"),p=require("../../../organizations/store/organizations.cjs"),m={class:""},_=e.createElementVNode("span",null," Members ",-1),V=e.createElementVNode("span",null," Events ",-1),v=e.createElementVNode("span",null," Community ",-1),C=e.createElementVNode("span",null," Products ",-1),k=e.createElementVNode("span",null," Leftovers ",-1),N=e.createElementVNode("span",null," Orders ",-1),h=e.createElementVNode("span",null," Payments ",-1),g=e.createElementVNode("span",null," Organizations ",-1),b=e.createElementVNode("span",null," Gallery ",-1),E=e.createElementVNode("span",null," Reports ",-1),w={__name:"Dashboard",props:{favorites:Array},setup(x){const r=d.useRoute(),s=d.useRouter(),u=e.ref(null),l=e.ref([]);return e.onMounted(async()=>{const o=await p.actions.read({user:f.state.user._id,postable:f.state.user._id,limit:100});console.log(o),l.value=o.map(t=>({name:t.profile.name,_id:t._id,photo:t.profile.photo}))}),(o,t)=>(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(c.default,{modelValue:u.value,"onUpdate:modelValue":t[0]||(t[0]=a=>u.value=a),options:l.value,multiple:!1,taggable:!1,placeholder:"Select organization",label:"name","track-by":"_id",class:"mn-b-medium h1 bg-grey radius-medium pd-big"},null,8,["modelValue","options"]),e.createVNode(i.default,{class:"bg-grey mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[1]||(t[1]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[_]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[V]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=a=>e.unref(s).push({name:"Backoffice Community",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[v]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=a=>e.unref(s).push({name:"Backoffice Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[C]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=a=>e.unref(s).push({name:"Backoffice Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=a=>e.unref(s).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=a=>e.unref(s).push({name:"Backoffice Payments",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[h]),_:1})]),_:1}),e.createVNode(i.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[8]||(t[8]=a=>e.unref(s).push({name:"Backoffice Organizations",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[g]),_:1}),e.createVNode(n.default,{onClick:t[9]||(t[9]=a=>e.unref(s).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[b]),_:1}),e.createVNode(n.default,{onClick:t[10]||(t[10]=a=>e.unref(s).push({name:"Backoffice Reports",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[E]),_:1})]),_:1})]))}};exports.default=w;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../mobile/components/Menu/Menu.vue2.cjs"),n=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),c=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),d=require("vue-router"),f=require("../../../auth/store/auth.cjs"),p=require("../../../organizations/store/organizations.cjs"),m={class:""},_=e.createElementVNode("span",null," Members ",-1),V=e.createElementVNode("span",null," Events ",-1),v=e.createElementVNode("span",null," Community ",-1),C=e.createElementVNode("span",null," Products ",-1),k=e.createElementVNode("span",null," Leftovers ",-1),N=e.createElementVNode("span",null," Orders ",-1),h=e.createElementVNode("span",null," Payments ",-1),g=e.createElementVNode("span",null," Organizations ",-1),b=e.createElementVNode("span",null," Gallery ",-1),E=e.createElementVNode("span",null," Reports ",-1),w={__name:"Dashboard",props:{favorites:Array},setup(x){const r=d.useRoute(),s=d.useRouter(),u=e.ref(null),l=e.ref([]);return e.onMounted(async()=>{const o=await p.actions.read({user:f.state.user._id,postable:f.state.user._id,limit:100});console.log(o),l.value=o.map(t=>({name:t.profile.name,_id:t._id,photo:t.profile.photo}))}),(o,t)=>(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(c.default,{modelValue:u.value,"onUpdate:modelValue":t[0]||(t[0]=a=>u.value=a),options:l.value,multiple:!1,taggable:!1,placeholder:"Select organization",label:"name","track-by":"_id",class:"mn-b-medium h1 bg-grey radius-medium pd-big"},null,8,["modelValue","options"]),e.createVNode(i.default,{class:"bg-grey mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[1]||(t[1]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[_]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[V]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=a=>e.unref(s).push({name:"Backoffice Community",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[v]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=a=>e.unref(s).push({name:"Backoffice Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[C]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=a=>e.unref(s).push({name:"Backoffice Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=a=>e.unref(s).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=a=>e.unref(s).push({name:"Backoffice Payments",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[h]),_:1})]),_:1}),e.createVNode(i.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[8]||(t[8]=a=>e.unref(s).push({name:"Backoffice Organizations",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[g]),_:1}),e.createVNode(n.default,{onClick:t[9]||(t[9]=a=>e.unref(s).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[b]),_:1}),e.createVNode(n.default,{onClick:t[10]||(t[10]=a=>e.unref(s).push({name:"Backoffice Reports",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[E]),_:1})]),_:1})]))}};exports.default=w;
@@ -1,5 +1,5 @@
1
1
  import { ref as d, onMounted as c, openBlock as k, createElementBlock as v, createVNode as o, withCtx as a, unref as e, createElementVNode as l } from "vue";
2
- import f from "../../../mobile/components/Menu/Menu.vue.js";
2
+ import f from "../../../mobile/components/Menu/Menu.vue2.js";
3
3
  import i from "../../../mobile/components/Menu/MenuItem.vue.js";
4
4
  import g from "../../../../components/SelectMulti/SelectMulti.vue.js";
5
5
  import { useRoute as C, useRouter as b } from "vue-router";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/layouts/Community.vue.cjs"),t=require("./components/pages/CreateBlogPost.vue.cjs"),o=require("./components/pages/BlogPost.vue.cjs"),r=require("./components/pages/Blog.vue.cjs"),s=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/SubscribeNewsletter.vue.cjs"),c=require("./components/sections/JoinUs.vue.cjs"),a=require("./components/sections/Comments.vue.cjs"),d=require("./components/sections/HotPosts.vue.cjs"),g=require("./store/blogposts.cjs"),q=require("./store/reactions.cjs"),f=require("./router/blogposts.cjs");exports.Community=e.default;exports.CreateBlogPost=t.default;exports.BlogPost=o.default;exports.Blog=r.default;exports.FooterBlogpost=s.default;exports.Activity=u.default;exports.CardBlogpost=l.default;exports.Feed=i.default;exports.SubscribeNewsletter=n.default;exports.JoinUs=c.default;exports.Comments=a.default;exports.HotPosts=d.default;exports.blogpostsStore=g;exports.reactionsStore=q;exports.blogpostsRoutes=f.default;
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,32 +1,30 @@
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
- import { default as p } from "./components/pages/BlogPost.vue.js";
4
- import { default as u } from "./components/pages/Blog.vue.js";
3
+ import { default as l } from "./components/pages/BlogPost.vue.js";
4
+ import { default as d } from "./components/pages/Blog.vue.js";
5
5
  import { default as x } from "./components/blocks/FooterBlogpost.vue.js";
6
- import { default as g } from "./components/blocks/Activity.vue.js";
7
- import { default as n } from "./components/blocks/CardBlogpost.vue.js";
8
- import { default as c } from "./components/sections/Feed.vue.js";
9
- import { default as P } from "./components/sections/SubscribeNewsletter.vue.js";
10
- import { default as y } from "./components/sections/JoinUs.vue.js";
11
- import { default as v } from "./components/sections/Comments.vue.js";
12
- import { default as A } from "./components/sections/HotPosts.vue.js";
6
+ import { default as i } from "./components/blocks/Activity.vue.js";
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";
13
12
  import * as o from "./store/blogposts.js";
14
13
  import * as t from "./store/reactions.js";
15
- import { default as J } from "./router/blogposts.js";
14
+ import { default as H } from "./router/blogposts.js";
16
15
  export {
17
- g as Activity,
18
- u as Blog,
19
- p as BlogPost,
20
- n as CardBlogpost,
21
- v as Comments,
16
+ i as Activity,
17
+ d as Blog,
18
+ l as BlogPost,
19
+ B as CardBlogpost,
20
+ F as Comments,
22
21
  s as Community,
23
22
  f as CreateBlogPost,
24
- c as Feed,
23
+ b as Feed,
25
24
  x as FooterBlogpost,
26
- A as HotPosts,
27
- y as JoinUs,
28
- P as SubscribeNewsletter,
29
- J as blogpostsRoutes,
25
+ v as HotPosts,
26
+ P as JoinUs,
27
+ H as blogpostsRoutes,
30
28
  o as blogpostsStore,
31
29
  t as reactionsStore
32
30
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("../../../globals/components/blocks/CardHeader.vue.cjs"),g=require("./FooterBlogpost.vue.cjs"),p=require("../../../../components/Chips/Chips.vue.cjs"),b=require("../../../icons/navigation/IconEdit.vue.cjs"),y=require("vue-router"),h={class:"pos-relative bg-grey radius-big"},k=["src"],f={key:2,class:"flex-center flex"},v={controls:"",class:"mn-b-medium object-fit-cover w-100 h-20r"},B=["src"],V={class:"pd-t-zero pd-medium"},E={key:0,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},N={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"},C={key:1,class:"mn-b-small t-transp p-big"},w={key:2,class:"mn-b-small h2"},x={__name:"CardBlogpost",props:["blogpost","user","type"],setup(t){const i=y.useRouter(),n=t,l=e.computed(()=>n.blogpost.content.find(o=>o.type==="ImageUpload")),r=e.computed(()=>n.blogpost.content.find(o=>o.type==="Video")),a=e.computed(()=>n.blogpost.content.find(o=>o.type==="Textarea"));return(o,s)=>{var c,u;return e.openBlock(),e.createElementBlock("article",h,[t.user&&t.user===t.blogpost.creator.target._id?(e.openBlock(),e.createBlock(b.default,{key:0,onClick:s[0]||(s[0]=e.withModifiers(d=>o.$router.push({name:"Edit BlogPost",params:{url:t.blogpost.url}}),["stop"])),class:"z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),e.createVNode(m.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"]),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-20r"},null,8,k)):e.createCommentVNode("",!0),!((c=l.value)!=null&&c.content)&&r.value&&r.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("video",v,[e.createElementVNode("source",{src:r.value.content,type:"video/mp4"},null,8,B),e.createTextVNode(" Your browser does not support the video tag. ")])])):e.createCommentVNode("",!0),e.createElementVNode("section",V,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("h3",{onClick:s[1]||(s[1]=d=>e.unref(i).push({name:"BlogPost",params:{url:t.blogpost.url}})),class:""},e.toDisplayString(t.blogpost.name),1),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",N,e.toDisplayString(t.blogpost.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),a.value&&a.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("p",C,e.toDisplayString(a.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"?(e.openBlock(),e.createElementBlock("h3",w,e.toDisplayString(t.blogpost.name),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default"),t.type!=="short"&&((u=t.blogpost.tags)==null?void 0:u.length)>0?(e.openBlock(),e.createBlock(p.default,{key:3,chips:t.blogpost.tags},null,8,["chips"])):e.createCommentVNode("",!0)]),e.createVNode(g.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])])}}};exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("../../../globals/components/blocks/CardHeader.vue.cjs"),g=require("./FooterBlogpost.vue.cjs"),p=require("../../../../components/Text/Text.vue.cjs"),b=require("../../../../components/Chips/Chips.vue.cjs"),h=require("../../../icons/navigation/IconEdit.vue.cjs"),y=require("vue-router"),f={class:"pos-relative bg-grey radius-big flex-column flex"},k=["src"],v={key:2,class:"flex-center flex"},B={controls:"",class:"mn-b-medium object-fit-cover w-100 h-min-10r h-max-20r"},x=["src"],V={class:"pd-t-zero pd-medium"},N={key:0,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},C={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"},E={key:1,class:"mn-b-small t-transp p-big"},w={key:2,class:"mn-b-small h2"},S={__name:"CardBlogpost",props:{blogpost:{type:Object},user:{type:String},type:{type:String},hideDescription:{type:Boolean,default:!1}},setup(t){const i=y.useRouter(),s=t,l=e.computed(()=>s.blogpost.content.find(o=>o.type==="ImageUpload")),n=e.computed(()=>s.blogpost.content.find(o=>o.type==="Video")),r=e.computed(()=>s.blogpost.content.find(o=>o.type==="Textarea"));return(o,c)=>{var a,u;const d=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("article",f,[t.user&&t.user===t.blogpost.creator.target._id?(e.openBlock(),e.createBlock(d,{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(h.default,{class:"i-regular",classes:"fill-white"})]),_:1},8,["to"])):e.createCommentVNode("",!0),e.createVNode(m.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"]),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,k)):e.createCommentVNode("",!0),!((a=l.value)!=null&&a.content)&&n.value&&n.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("video",B,[e.createElementVNode("source",{src:n.value.content,type:"video/mp4"},null,8,x),e.createTextVNode(" Your browser does not support the video tag. ")])])):e.createCommentVNode("",!0),e.createElementVNode("section",V,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(p.default,{text:t.blogpost.name||"",maxLen:80,class:"h3 d-block",onClick:c[0]||(c[0]=P=>e.unref(i).push({name:"BlogPost",params:{url:t.blogpost.url}}))},null,8,["text"]),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",C,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",E,e.toDisplayString(r.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"?(e.openBlock(),e.createElementBlock("h3",w,e.toDisplayString(t.blogpost.name),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default"),t.type!=="short"&&((u=t.blogpost.tags)==null?void 0:u.length)>0?(e.openBlock(),e.createBlock(b.default,{key:3,chips:t.blogpost.tags},null,8,["chips"])):e.createCommentVNode("",!0)]),e.createVNode(g.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])])}}};exports.default=S;
@@ -1,102 +1,128 @@
1
- import { computed as d, openBlock as o, createElementBlock as l, createBlock as p, withModifiers as v, createCommentVNode as s, createVNode as f, normalizeClass as k, createElementVNode as a, createTextVNode as x, unref as w, toDisplayString as i, renderSlot as B } from "vue";
2
- import E from "../../../globals/components/blocks/CardHeader.vue.js";
3
- import P from "./FooterBlogpost.vue.js";
4
- import V from "../../../../components/Chips/Chips.vue.js";
5
- import $ from "../../../icons/navigation/IconEdit.vue.js";
6
- import { useRouter as C } from "vue-router";
7
- const z = { class: "pos-relative bg-grey radius-big" }, I = ["src"], N = {
1
+ import { computed as u, resolveComponent as v, openBlock as t, createElementBlock as l, createBlock as f, withCtx as x, createVNode as r, createCommentVNode as s, normalizeClass as k, createElementVNode as m, createTextVNode as w, unref as B, toDisplayString as d, renderSlot as C } from "vue";
2
+ import P from "../../../globals/components/blocks/CardHeader.vue.js";
3
+ import V from "./FooterBlogpost.vue.js";
4
+ import E from "../../../../components/Text/Text.vue.js";
5
+ import $ from "../../../../components/Chips/Chips.vue.js";
6
+ import S from "../../../icons/navigation/IconEdit.vue.js";
7
+ import { useRouter as N } from "vue-router";
8
+ const R = { class: "pos-relative bg-grey radius-big flex-column flex" }, T = ["src"], j = {
8
9
  key: 2,
9
10
  class: "flex-center flex"
10
- }, R = {
11
+ }, z = {
11
12
  controls: "",
12
- class: "mn-b-medium object-fit-cover w-100 h-20r"
13
- }, T = ["src"], S = { class: "pd-t-zero pd-medium" }, j = {
13
+ class: "mn-b-medium object-fit-cover w-100 h-min-10r h-max-20r"
14
+ }, D = ["src"], I = { class: "pd-t-zero pd-medium" }, L = {
14
15
  key: 0,
15
16
  class: "cursor-pointer mn-b-thin flex-nowrap flex w-100"
16
- }, L = {
17
+ }, U = {
17
18
  key: 0,
18
19
  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"
19
- }, U = {
20
+ }, A = {
20
21
  key: 1,
21
22
  class: "mn-b-small t-transp p-big"
22
- }, A = {
23
+ }, F = {
23
24
  key: 2,
24
25
  class: "mn-b-small h2"
25
- }, H = {
26
+ }, Q = {
26
27
  __name: "CardBlogpost",
27
- props: ["blogpost", "user", "type"],
28
- setup(t) {
29
- const h = C(), c = t, r = d(() => c.blogpost.content.find((e) => e.type === "ImageUpload")), u = d(() => c.blogpost.content.find((e) => e.type === "Video")), m = d(() => c.blogpost.content.find((e) => e.type === "Textarea"));
30
- return (e, n) => {
31
- var g, b;
32
- return o(), l("article", z, [
33
- t.user && t.user === t.blogpost.creator.target._id ? (o(), p($, {
28
+ props: {
29
+ blogpost: {
30
+ type: Object
31
+ },
32
+ user: {
33
+ type: String
34
+ },
35
+ type: {
36
+ type: String
37
+ },
38
+ hideDescription: {
39
+ type: Boolean,
40
+ default: !1
41
+ }
42
+ },
43
+ setup(e) {
44
+ const h = N(), a = e, n = u(() => a.blogpost.content.find((o) => o.type === "ImageUpload")), i = u(() => a.blogpost.content.find((o) => o.type === "Video")), c = u(() => a.blogpost.content.find((o) => o.type === "Textarea"));
45
+ return (o, g) => {
46
+ var p, b;
47
+ const y = v("router-link");
48
+ return t(), l("article", R, [
49
+ e.user && e.user === e.blogpost.creator.target._id ? (t(), f(y, {
34
50
  key: 0,
35
- onClick: n[0] || (n[0] = v((y) => e.$router.push({
51
+ to: {
36
52
  name: "Edit BlogPost",
37
53
  params: {
38
- url: t.blogpost.url
54
+ url: e.blogpost.url
39
55
  }
40
- }), ["stop"])),
41
- class: "z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
42
- })) : s("", !0),
43
- f(E, {
56
+ },
57
+ class: "cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"
58
+ }, {
59
+ default: x(() => [
60
+ r(S, {
61
+ class: "i-regular",
62
+ classes: "fill-white"
63
+ })
64
+ ]),
65
+ _: 1
66
+ }, 8, ["to"])) : s("", !0),
67
+ r(P, {
44
68
  class: k({
45
- "mn-b-small pd-medium": t.type !== "short",
46
- "flex-child-order-last flex-child mn-l-small": t.type === "short"
69
+ "mn-b-small pd-medium": e.type !== "short",
70
+ "flex-child-order-last flex-child mn-l-small": e.type === "short"
47
71
  }),
48
- entity: t.blogpost,
72
+ entity: e.blogpost,
49
73
  entityType: "blogpost",
50
- user: t.user,
51
- owner: t.blogpost.owner,
52
- creator: t.blogpost.creator,
53
- date: t.blogpost.createdAt
74
+ user: e.user,
75
+ owner: e.blogpost.owner,
76
+ creator: e.blogpost.creator,
77
+ date: e.blogpost.createdAt
54
78
  }, null, 8, ["class", "entity", "user", "owner", "creator", "date"]),
55
- r.value && r.value.content && t.type !== "blogpostPage" ? (o(), l("img", {
79
+ n.value && n.value.content && e.type !== "blogpostPage" ? (t(), l("img", {
56
80
  key: 1,
57
- src: (e.FILE_SERVER_URL || "") + r.value.content,
81
+ src: (o.FILE_SERVER_URL || "") + n.value.content,
58
82
  alt: "Blog post image",
59
- class: "mn-b-medium object-fit-cover w-100 h-20r"
60
- }, null, 8, I)) : s("", !0),
61
- !((g = r.value) != null && g.content) && u.value && u.value.content && t.type !== "blogpostPage" ? (o(), l("div", N, [
62
- a("video", R, [
63
- a("source", {
64
- src: u.value.content,
83
+ class: "mn-b-medium object-fit-cover w-100 h-min-10r h-100"
84
+ }, null, 8, T)) : s("", !0),
85
+ !((p = n.value) != null && p.content) && i.value && i.value.content && e.type !== "blogpostPage" ? (t(), l("div", j, [
86
+ m("video", z, [
87
+ m("source", {
88
+ src: i.value.content,
65
89
  type: "video/mp4"
66
- }, null, 8, T),
67
- x(" Your browser does not support the video tag. ")
90
+ }, null, 8, D),
91
+ w(" Your browser does not support the video tag. ")
68
92
  ])
69
93
  ])) : s("", !0),
70
- a("section", S, [
71
- t.type !== "blogpostPage" ? (o(), l("div", j, [
72
- a("h3", {
73
- onClick: n[1] || (n[1] = (y) => w(h).push({
94
+ m("section", I, [
95
+ e.type !== "blogpostPage" ? (t(), l("div", L, [
96
+ r(E, {
97
+ text: e.blogpost.name || "",
98
+ maxLen: 80,
99
+ class: "h3 d-block",
100
+ onClick: g[0] || (g[0] = (O) => B(h).push({
74
101
  name: "BlogPost",
75
102
  params: {
76
- url: t.blogpost.url
103
+ url: e.blogpost.url
77
104
  }
78
- })),
79
- class: ""
80
- }, i(t.blogpost.name), 1),
81
- t.blogpost.status === "draft" ? (o(), l("div", L, i(t.blogpost.status), 1)) : s("", !0)
105
+ }))
106
+ }, null, 8, ["text"]),
107
+ e.blogpost.status === "draft" ? (t(), l("div", U, d(e.blogpost.status), 1)) : s("", !0)
82
108
  ])) : s("", !0),
83
- m.value && m.value.content && t.type !== "blogpostPage" ? (o(), l("p", U, i(m.value.content.slice(0, 120)) + "... ", 1)) : s("", !0),
84
- t.type === "blogpostPage" ? (o(), l("h3", A, i(t.blogpost.name), 1)) : s("", !0),
85
- B(e.$slots, "default"),
86
- t.type !== "short" && ((b = t.blogpost.tags) == null ? void 0 : b.length) > 0 ? (o(), p(V, {
109
+ c.value && c.value.content && e.type !== "blogpostPage" && !e.hideDescription ? (t(), l("p", A, d(c.value.content.slice(0, 120)) + "... ", 1)) : s("", !0),
110
+ e.type === "blogpostPage" ? (t(), l("h3", F, d(e.blogpost.name), 1)) : s("", !0),
111
+ C(o.$slots, "default"),
112
+ e.type !== "short" && ((b = e.blogpost.tags) == null ? void 0 : b.length) > 0 ? (t(), f($, {
87
113
  key: 3,
88
- chips: t.blogpost.tags
114
+ chips: e.blogpost.tags
89
115
  }, null, 8, ["chips"])) : s("", !0)
90
116
  ]),
91
- f(P, {
117
+ r(V, {
92
118
  class: "pd-t-zero pd-medium",
93
- blogpost: t.blogpost,
94
- user: t.user
119
+ blogpost: e.blogpost,
120
+ user: e.user
95
121
  }, null, 8, ["blogpost", "user"])
96
122
  ]);
97
123
  };
98
124
  }
99
125
  };
100
126
  export {
101
- H as default
127
+ Q as default
102
128
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router"),f=require("../../../../components/Select/Select.vue2.cjs"),g=require("../../../../components/Feed/Feed.vue.cjs"),h=require("../../../organizations/components/blocks/CardOrganization.vue.cjs"),m=require("../../store/blogposts.cjs"),i=require("../../../auth/store/auth.cjs"),u=require("../../../organizations/store/organizations.cjs"),b=require("../../../organizations/store/memberships.cjs"),w={style:{"grid-template-columns":"1fr 3fr 1fr"},class:"cols-3 gap-thin pd-thin"},_={class:"w-100 bg-grey radius-big pd-medium p-medium gap-thin flex-column flex-nowrap flex"},k={class:"pos-relative"},y={class:"bg-black t-white radius-big pd-medium pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex"},v={class:"pos-relative flex-v-center flex-nowrap flex t-left"},C=e.createElementVNode("span",{class:""},"Topics for ",-1),N={class:"bg-grey radius-big pd-medium"},x=e.createElementVNode("div",{class:"gap-thin flex-nowrap flex"},[e.createElementVNode("p",{class:"mn-b-small"},"POPULAR COMMUNITIES"),e.createElementVNode("button",{class:"radius-extra flex-center flex i-medium bg-main"},"+")],-1),V={__name:"Community",setup(E){const r=d.useRoute(),a=d.useRouter(),p=({membership:c,status:o,target:n},l,t)=>{b.mutations.handleMembershipUpdate(u.state.current,c,o,n,l,t)};return(c,o)=>{const n=e.resolveComponent("router-link"),l=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",w,[e.createElementVNode("ul",_,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="featured"},"cursor-pointer t-medium pd-thin radius-small"]),onClick:o[0]||(o[0]=t=>e.unref(a).push({name:"Blog",params:{category:"featured"}}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="popular"},"cursor-pointer t-medium pd-thin radius-small"]),onClick:o[1]||(o[1]=t=>e.unref(a).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="new"},"cursor-pointer t-medium pd-thin radius-small"]),onClick:o[2]||(o[2]=t=>e.unref(a).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),i.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="following"},"cursor-pointer t-medium pd-thin radius-small"]),onClick:o[3]||(o[3]=t=>e.unref(a).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0),e.createVNode(n,{to:{name:"Create BlogPost"},class:"button mn-t-small bg-main w-100"},{default:e.withCtx(()=>[e.createTextVNode("Create Post")]),_:1})]),e.createElementVNode("section",k,[e.createElementVNode("header",y,[e.createElementVNode("h2",v,[C,e.createVNode(f.default,{options:["today","week","month","year"],select:m.state.filter.period,"onUpdate:select":o[4]||(o[4]=t=>m.state.filter.period=t),placeholder:"Select type",class:"pos-relative w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createVNode(l,null,{default:e.withCtx(({Component:t,route:s})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t),{ref:"page",key:s.query}))]),_:2},1024)]),_:1})]),e.createElementVNode("div",N,[x,e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createVNode(g.default,{states:{empty:{title:"No Organization Found",description:"Currently, there are no organization available."}},store:{read:t=>u.actions.read(t),state:u.state},options:{user:i.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,s=>(e.openBlock(),e.createBlock(h.default,{key:s._id,organization:s,user:i.state.user,showProducts:!1,showRating:!1,showFeatured:!1,showFollowers:!1,onUpdateMembership:p,class:"mn-b-thin w-100 pd-0 bg-white radius-big o-hidden"},null,8,["organization","user"]))),128))]),_:1},8,["states","store","options"])]),_:1})])])}}};exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router"),f=require("../../../../components/Select/Select.vue.cjs"),g=require("../../../../components/Feed/Feed.vue.cjs"),h=require("../../../organizations/components/blocks/CardOrganization.vue.cjs"),x=require("../../../icons/entities/IconFeatured.vue.cjs"),b=require("../../../icons/entities/IconPopular.vue.cjs"),_=require("../../../icons/entities/IconRecent.vue.cjs"),w=require("../../../icons/entities/IconFollowing.vue.cjs"),m=require("../../store/blogposts.cjs"),l=require("../../../auth/store/auth.cjs"),c=require("../../../organizations/store/organizations.cjs"),k=require("../../../organizations/store/memberships.cjs"),N={style:{"grid-template-columns":"1fr 3fr 1fr"},class:"cols-3 gap-thin pd-thin"},V={class:"align-self-start pos-sticky pos-t-0 w-100 bg-grey radius-big pd-medium p-medium gap-thin flex-column flex-nowrap flex"},v={class:"pos-relative"},C={class:"bg-main t-black radius-big pd-medium pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex"},y={class:"pos-relative flex-v-center flex-nowrap flex"},B=e.createElementVNode("span",{class:"mn-r-small"},"Topics for ",-1),q={class:"bg-grey radius-big pd-medium"},E={class:"gap-thin flex-nowrap flex"},z=e.createElementVNode("p",{class:"t-medium mn-b-small"},"Popular Communities",-1),T={__name:"Community",setup(F){const o=d.useRoute(),a=d.useRouter(),p=({membership:u,status:r,target:s},i,t)=>{k.mutations.handleMembershipUpdate(c.state.current,u,r,s,i,t)};return(u,r)=>{const s=e.resolveComponent("router-link"),i=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("ul",V,[e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="featured"},"cursor-pointer flex-v-center flex t-medium pd-thin radius-extra"]),onClick:r[0]||(r[0]=t=>e.unref(a).push({name:"Blog",params:{category:"featured"}}))},[e.createVNode(x.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Featured ")],2),e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="popular"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:r[1]||(r[1]=t=>e.unref(a).push({name:"Blog",params:{category:"popular"}}))},[e.createVNode(b.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Popular ")],2),e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="new"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:r[2]||(r[2]=t=>e.unref(a).push({name:"Blog",params:{category:"new"}}))},[e.createVNode(_.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Recent ")],2),l.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(o).params.category==="following"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:r[3]||(r[3]=t=>e.unref(a).push({name:"Blog",params:{category:"following"}}))},[e.createVNode(w.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Following ")],2)):e.createCommentVNode("",!0),e.createVNode(s,{to:{name:"Create BlogPost"},class:"button t-medium mn-t-small bg-main w-100"},{default:e.withCtx(()=>[e.createTextVNode(" Create Post ")]),_:1})]),e.createElementVNode("section",v,[e.createElementVNode("header",C,[e.createElementVNode("h2",y,[B,e.createVNode(f.default,{options:["today","week","month","year"],select:m.state.filter.period,"onUpdate:select":r[4]||(r[4]=t=>m.state.filter.period=t),placeholder:"Select type",class:"t-semi pos-relative w-max bg-main t-black pd-thin radius-medium h2 t-center br-solid br-2px br-black-transp-10"},null,8,["select"])])]),e.createVNode(i,null,{default:e.withCtx(({Component:t,route:n})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t),{ref:"page",key:n.query}))]),_:2},1024)]),_:1})]),e.createElementVNode("div",q,[e.createElementVNode("div",E,[z,l.state.user._id?(e.openBlock(),e.createBlock(s,{key:0,to:{name:"Create Organization"},class:"t-medium cursor-pointer hover-scale-1 radius-extra flex-center flex i-medium bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" + ")]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createVNode(g.default,{states:{empty:{title:"No Organization Found",description:"Currently, there are no organization available."}},store:{read:t=>c.actions.read(t),state:c.state},options:{user:l.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,n=>(e.openBlock(),e.createBlock(h.default,{key:n._id,organization:n,user:l.state.user,showProducts:!1,showRating:!1,showFeatured:!1,showFollowers:!1,onUpdateMembership:p,class:"mn-b-thin w-100 pd-0 bg-white radius-big o-hidden"},null,8,["organization","user"]))),128))]),_:1},8,["states","store","options"])]),_:1})])])}}};exports.default=T;