@ozdao/prometheus-framework 0.2.38 → 0.2.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (278) 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 +10 -7
  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 +18 -15
  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 +16 -13
  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 +23 -20
  58. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.js +1 -1
  60. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/auth/store/auth.js +8 -8
  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 +2 -2
  126. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
  128. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  130. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +2 -2
  132. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +45 -42
  134. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
  136. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  138. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +6 -6
  140. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  142. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +5 -5
  144. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  146. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +60 -55
  148. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  150. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  154. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +1 -1
  156. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +18 -17
  158. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +20 -21
  160. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +7 -7
  161. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
  163. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  165. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  167. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  169. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +6 -6
  171. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
  173. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  175. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  177. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +37 -34
  179. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +23 -23
  181. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  183. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +8 -8
  184. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +6 -6
  186. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  188. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  190. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  192. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +31 -30
  194. package/dist/prometheus-framework.cjs.js +20 -20
  195. package/dist/prometheus-framework.es.js +1003 -999
  196. package/dist/style.css +1 -1
  197. package/package.json +1 -1
  198. package/src/components/Button/Button.vue +2 -3
  199. package/src/components/Chips/Chips.vue +9 -3
  200. package/src/components/Dropdown/Dropdown.vue +9 -3
  201. package/src/components/Feed/Feed.vue +7 -11
  202. package/src/components/Feed/Masonry.vue +177 -0
  203. package/src/components/FieldBig/FieldBig.vue +3 -3
  204. package/src/components/LocationSelection/LocationSelection.vue +1 -1
  205. package/src/components/Navigation/Navigation.vue +2 -0
  206. package/src/components/Shader/Shader.vue +161 -116
  207. package/src/components/Slider/Slider.vue +92 -0
  208. package/src/modules/applications/applications.client.js +2 -0
  209. package/src/modules/applications/components/sections/SubscribeNewsletter.vue +114 -0
  210. package/src/modules/applications/controllers/applications.controller.js +125 -136
  211. package/src/modules/applications/models/application.model.js +22 -7
  212. package/src/modules/applications/routes/applications.routes.js +29 -13
  213. package/src/modules/auth/components/pages/EnterCode.vue +4 -1
  214. package/src/modules/auth/components/pages/EnterPassword.vue +4 -1
  215. package/src/modules/auth/components/pages/ResetPassword.vue +4 -1
  216. package/src/modules/auth/components/pages/SignUp.vue +4 -1
  217. package/src/modules/auth/controllers/auth.controller.js +2 -3
  218. package/src/modules/auth/localization/SignUp.json +1 -1
  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 +80 -0
  257. package/src/modules/landing/components/sections/{Guide.vue → SectionGuide.vue} +1 -1
  258. package/src/modules/landing/components/sections/SectionHeroToken.vue +138 -0
  259. package/src/modules/landing/components/sections/SectionRoadmap.vue +108 -0
  260. package/src/modules/marketplace/components/layouts/Marketplace.vue +2 -2
  261. package/src/modules/orders/components/blocks/StatusHistory.vue +7 -1
  262. package/src/modules/orders/components/pages/Order.vue +3 -4
  263. package/src/modules/organizations/components/blocks/CardOrganization.vue +6 -6
  264. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  265. package/src/modules/organizations/components/sections/DetailsTab.vue +42 -43
  266. package/src/modules/organizations/components/sections/Publics.vue +3 -4
  267. package/src/modules/products/components/sections/HeroRecommendation.vue +9 -170
  268. package/src/modules/products/components/sections/MenuSection.vue +4 -4
  269. package/src/modules/products/components/sections/PopularProducts.vue +3 -3
  270. package/src/modules/spots/components/layouts/Spots.vue +2 -2
  271. package/src/modules/wallet/components/pages/Wallet.vue +1 -1
  272. package/src/styles/base/all.scss +4 -0
  273. package/src/styles/base/backgrounds.scss +2 -2
  274. package/src/styles/base/shadow_transitions_hover_refactor.scss +11 -1
  275. package/src/styles/typography.scss +19 -12
  276. package/src/modules/community/components/sections/SubscribeNewsletter.vue +0 -67
  277. package/src/modules/constructor/components/elements/Youtube.vue +0 -52
  278. package/src/modules/landing/components/sections/HeroGovernance.vue +0 -156
@@ -2,17 +2,17 @@ import { ref as e, openBlock as s, createElementBlock as i, createElementVNode a
2
2
  import { useRouter as w, useRoute as x } from "vue-router";
3
3
  import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
4
4
  import g from "../../../../components/Breadcrumbs/Breadcrumbs.vue2.js";
5
- import "../../../../components/Tab/Tab.vue.js";
6
- import "../../../../components/Field/Field.vue.js";
5
+ import "../../../../components/Tab/Tab.vue2.js";
6
+ import "../../../../components/Field/Field.vue2.js";
7
7
  import y from "../../../../../../_virtual/_plugin-vue_export-helper.js";
8
- import "../../../../components/Select/Select.vue.js";
9
- import "../../../../components/Checkbox/Checkbox.vue.js";
8
+ import "../../../../components/Select/Select.vue2.js";
9
+ import "../../../../components/Checkbox/Checkbox.vue2.js";
10
10
  import "../../../../components/Address/Address.vue.js";
11
11
  import "../../../../components/Loader/Loader.vue.js";
12
12
  import "../../../../components/LocationMarker/LocationMarker.vue.js";
13
- import d from "../../../../components/Button/Button.vue2.js";
13
+ import d from "../../../../components/Button/Button.vue.js";
14
14
  import "vue-i18n";
15
- import "../../../../components/Popup/Popup.vue.js";
15
+ import "../../../../components/Popup/Popup.vue2.js";
16
16
  import "../../../../../../node_modules/vue-select/dist/vue-select.es.js";
17
17
  import "../blocks/EditArray.vue2.js";
18
18
  import "../blocks/DepartmentSub.vue2.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const f=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Block/Block.vue.cjs"),b=require("../../../../components/Feed/Feed.vue.cjs");require("../../../mobile/components/Menu/Menu.vue.cjs");require("../../../mobile/components/Menu/MenuItem.vue.cjs");const v=require("../../../events/components/sections/Feed.vue.cjs"),h=require("../../../community/components/sections/Feed.vue.cjs"),q=require("../../../spots/components/blocks/CardSpot.vue.cjs"),g=require("../sections/DetailsTab.vue.cjs"),y=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/store/auth.cjs"),a=require("../../store/organizations.cjs"),w=require("../../store/memberships.cjs"),C=require("../../../spots/store/spots.cjs");require("./Organization.vue2.cjs");const N={key:0,class:"pd-thin for-transition w-100"},B={class:"pos-relative"},V={key:0},x={__name:"Organization",setup(z){const l=d.useRouter(),t=d.useRoute();let m=t.query.tab?t.query.tab:"community";const c=e.ref(null);e.onMounted(async()=>{c.value=await a.actions.read({_id:t.params._id,user:o.state.user._id}),await w.actions.read(t.params._id)});const r=e.ref(m);return t.query.tab=r.value,e.watch(r,u=>{l.replace({query:{...t.query,tab:u}})}),(u,n)=>{const i=e.resolveComponent("router-link");return c.value?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(g.default,{organization:a.state.current,user:o.state.user,class:"mn-b-semi"},null,8,["organization","user"]),e.createVNode(f.default,{selected:r.value,"onUpdate:selected":n[0]||(n[0]=s=>r.value=s),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("div",B,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="community"?(e.openBlock(),e.createBlock(h.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="events"?(e.openBlock(),e.createBlock(v.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner","sortParam"])):e.createCommentVNode("",!0)]),_:1}),r.value==="products"&&o.state.user._id===a.state.current.owner?(e.openBlock(),e.createBlock(k.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(i,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(i,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(i,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="products"?(e.openBlock(),e.createBlock(y.default,{key:0,organization:a.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="spots"?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(b.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:s=>C.actions.read(e.unref(t).params._id),state:a.state},options:{user:o.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,(p,_)=>(e.openBlock(),e.createBlock(q.default,{key:_,spot:p,organization:a.state.current,class:"radius-big bg-grey mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["states","store","options"]),o.state.user._id===a.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[1]||(n[1]=s=>u.$router.push(`/spots/${a.state.current._id}/spots/create`)),class:"mn-b-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const f=require("../../../../components/Tab/Tab.vue.cjs"),k=require("../../../../components/Block/Block.vue.cjs"),b=require("../../../../components/Feed/Feed.vue.cjs");require("../../../mobile/components/Menu/Menu.vue.cjs");require("../../../mobile/components/Menu/MenuItem.vue.cjs");const v=require("../../../events/components/sections/Feed.vue.cjs"),h=require("../../../community/components/sections/Feed.vue.cjs"),q=require("../../../spots/components/blocks/CardSpot.vue.cjs"),g=require("../sections/DetailsTab.vue.cjs"),w=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/store/auth.cjs"),a=require("../../store/organizations.cjs"),y=require("../../store/memberships.cjs"),C=require("../../../spots/store/spots.cjs");require("./Organization.vue2.cjs");const N={key:0,class:"pd-thin for-transition w-100"},B={class:"pos-relative"},V={key:0},x={__name:"Organization",setup(z){const l=c.useRouter(),t=c.useRoute();let m=t.query.tab?t.query.tab:"products";const d=e.ref(null);e.onMounted(async()=>{d.value=await a.actions.read({_id:t.params._id,user:o.state.user._id}),await y.actions.read(t.params._id)});const r=e.ref(m);return t.query.tab=r.value,e.watch(r,u=>{l.replace({query:{...t.query,tab:u}})}),(u,n)=>{const i=e.resolveComponent("router-link");return d.value?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(g.default,{organization:a.state.current,user:o.state.user,class:"mn-b-semi"},null,8,["organization","user"]),e.createVNode(f.default,{selected:r.value,"onUpdate:selected":n[0]||(n[0]=s=>r.value=s),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("div",B,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="community"?(e.openBlock(),e.createBlock(h.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="events"?(e.openBlock(),e.createBlock(v.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner","sortParam"])):e.createCommentVNode("",!0)]),_:1}),r.value==="products"&&o.state.user._id===a.state.current.owner?(e.openBlock(),e.createBlock(k.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(i,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(i,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(i,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="products"?(e.openBlock(),e.createBlock(w.default,{key:0,organization:a.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="spots"?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(b.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:s=>C.actions.read(e.unref(t).params._id),state:a.state},options:{user:o.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,(p,_)=>(e.openBlock(),e.createBlock(q.default,{key:_,spot:p,organization:a.state.current,class:"radius-big bg-grey mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["states","store","options"]),o.state.user._id===a.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[1]||(n[1]=s=>u.$router.push(`/spots/${a.state.current._id}/spots/create`)),class:"mn-b-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=x;
@@ -3,7 +3,7 @@ import { useRouter as N, useRoute as O } from "vue-router";
3
3
  import "vue-i18n";
4
4
  import "../../../globals/localization/vue-i18n.js";
5
5
  import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
6
- import P from "../../../../components/Tab/Tab.vue2.js";
6
+ import P from "../../../../components/Tab/Tab.vue.js";
7
7
  import V from "../../../../components/Block/Block.vue.js";
8
8
  import A from "../../../../components/Feed/Feed.vue.js";
9
9
  import "../../../mobile/components/Menu/Menu.vue.js";
@@ -25,7 +25,7 @@ const G = {
25
25
  __name: "Organization",
26
26
  setup(j) {
27
27
  const g = N(), e = O();
28
- let k = e.query.tab ? e.query.tab : "community";
28
+ let k = e.query.tab ? e.query.tab : "products";
29
29
  const v = y(null);
30
30
  $(async () => {
31
31
  v.value = await R.read({
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),n=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const p=require("../../../../components/FieldTags/BlockTags.vue.cjs");require("../../../../components/Tab/Tab.vue.cjs");const l=require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue.cjs");const f=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../../components/UploadImage/UploadImage.vue.cjs"),b=require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Popup/Popup.vue.cjs");const h=require("../../../auth/store/auth.cjs"),e=require("../../store/organizations.cjs");require("../../store/memberships.cjs");const y={class:"for-transition pd-thin"},V=t.createElementVNode("h3",{class:"mn-b-small"},"Type of group",-1),N=t.createElementVNode("p",{class:"mn-b-thin"},"Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.",-1),_=t.createElementVNode("h3",{class:"mn-b-small"},"Profile",-1),q={class:"mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},v=t.createElementVNode("h4",null,"Upload photo",-1),w=t.createElementVNode("h3",{class:"mn-b-small"},"Socials",-1),x=t.createElementVNode("p",{class:"mn-b-thin"},"Please provide only the username for social media profiles, without full links.",-1),U={__name:"OrganizationEdit",async setup(T){let o,i;const s=n.useRoute(),d=n.useRouter();e.actions.reset(),s.params._id&&([o,i]=t.withAsyncContext(()=>e.actions.read({_id:s.params._id})),await o,i());const u=t.computed(()=>e.state.current);async function c(){s.params._id?await e.actions.update(s.params._id,u.value):await e.actions.create(e.state.current,h.state.user._id)}function m(){d.replace({name:"Organization",params:{_id:e.state.current._id}})}return(k,a)=>(t.openBlock(),t.createElementBlock("div",y,[V,N,t.createVNode(f.default,{modelValue:e.state.current.types,"onUpdate:modelValue":a[0]||(a[0]=r=>e.state.current.types=r),options:["public","exclusive","hidden"],multiple:!1,taggable:!1,placeholder:"Type to search or add type of organization",class:"mn-b-semi bg-grey pd-medium radius-small"},null,8,["modelValue"]),_,t.createElementVNode("div",q,[t.createVNode(g.default,{photo:e.state.current.profile.photo,"onUpdate:photo":a[1]||(a[1]=r=>e.state.current.profile.photo=r),uploadPath:"organizations/"+e.state.current._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),v]),t.createVNode(l.default,{field:e.state.current.profile.name,"onUpdate:field":a[2]||(a[2]=r=>e.state.current.profile.name=r),placeholder:"Name of organization",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.profile.description,"onUpdate:field":a[3]||(a[3]=r=>e.state.current.profile.description=r),placeholder:"Brief description of your group",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(p.default,{onTagsChanged:a[4]||(a[4]=r=>e.state.current.profile.tags=r),tags:e.state.current.profile.tags},null,8,["tags"]),w,x,t.createVNode(l.default,{field:e.state.current.socials.instagram,"onUpdate:field":a[5]||(a[5]=r=>e.state.current.socials.instagram=r),label:"Instagram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.twitter,"onUpdate:field":a[6]||(a[6]=r=>e.state.current.socials.twitter=r),label:"Twitter",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.facebook,"onUpdate:field":a[7]||(a[7]=r=>e.state.current.socials.facebook=r),label:"Facebook",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.telegram,"onUpdate:field":a[8]||(a[8]=r=>e.state.current.socials.telegram=r),label:"Telegram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.youtube,"onUpdate:field":a[9]||(a[9]=r=>e.state.current.socials.youtube=r),label:"Telegram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(b.default,{submit:c,callback:m,class:"bg-main w-100 mn-b-thin"},{default:t.withCtx(()=>[t.createTextVNode("Save")]),_:1})]))}};exports.default=U;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),n=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const p=require("../../../../components/FieldTags/BlockTags.vue.cjs");require("../../../../components/Tab/Tab.vue2.cjs");const l=require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");const f=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../../components/UploadImage/UploadImage.vue.cjs"),b=require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Popup/Popup.vue2.cjs");const h=require("../../../auth/store/auth.cjs"),e=require("../../store/organizations.cjs");require("../../store/memberships.cjs");const y={class:"for-transition pd-thin"},V=t.createElementVNode("h3",{class:"mn-b-small"},"Type of group",-1),N=t.createElementVNode("p",{class:"mn-b-thin"},"Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.",-1),_=t.createElementVNode("h3",{class:"mn-b-small"},"Profile",-1),q={class:"mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},v=t.createElementVNode("h4",null,"Upload photo",-1),w=t.createElementVNode("h3",{class:"mn-b-small"},"Socials",-1),x=t.createElementVNode("p",{class:"mn-b-thin"},"Please provide only the username for social media profiles, without full links.",-1),U={__name:"OrganizationEdit",async setup(T){let o,i;const s=n.useRoute(),d=n.useRouter();e.actions.reset(),s.params._id&&([o,i]=t.withAsyncContext(()=>e.actions.read({_id:s.params._id})),await o,i());const u=t.computed(()=>e.state.current);async function c(){s.params._id?await e.actions.update(s.params._id,u.value):await e.actions.create(e.state.current,h.state.user._id)}function m(){d.replace({name:"Organization",params:{_id:e.state.current._id}})}return(k,a)=>(t.openBlock(),t.createElementBlock("div",y,[V,N,t.createVNode(f.default,{modelValue:e.state.current.types,"onUpdate:modelValue":a[0]||(a[0]=r=>e.state.current.types=r),options:["public","exclusive","hidden"],multiple:!1,taggable:!1,placeholder:"Type to search or add type of organization",class:"mn-b-semi bg-grey pd-medium radius-small"},null,8,["modelValue"]),_,t.createElementVNode("div",q,[t.createVNode(g.default,{photo:e.state.current.profile.photo,"onUpdate:photo":a[1]||(a[1]=r=>e.state.current.profile.photo=r),uploadPath:"organizations/"+e.state.current._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),v]),t.createVNode(l.default,{field:e.state.current.profile.name,"onUpdate:field":a[2]||(a[2]=r=>e.state.current.profile.name=r),placeholder:"Name of organization",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.profile.description,"onUpdate:field":a[3]||(a[3]=r=>e.state.current.profile.description=r),placeholder:"Brief description of your group",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(p.default,{onTagsChanged:a[4]||(a[4]=r=>e.state.current.profile.tags=r),tags:e.state.current.profile.tags},null,8,["tags"]),w,x,t.createVNode(l.default,{field:e.state.current.socials.instagram,"onUpdate:field":a[5]||(a[5]=r=>e.state.current.socials.instagram=r),label:"Instagram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.twitter,"onUpdate:field":a[6]||(a[6]=r=>e.state.current.socials.twitter=r),label:"Twitter",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.facebook,"onUpdate:field":a[7]||(a[7]=r=>e.state.current.socials.facebook=r),label:"Facebook",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.telegram,"onUpdate:field":a[8]||(a[8]=r=>e.state.current.socials.telegram=r),label:"Telegram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.youtube,"onUpdate:field":a[9]||(a[9]=r=>e.state.current.socials.youtube=r),label:"Telegram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(b.default,{submit:c,callback:m,class:"bg-main w-100 mn-b-thin"},{default:t.withCtx(()=>[t.createTextVNode("Save")]),_:1})]))}};exports.default=U;
@@ -4,13 +4,13 @@ import "vue-i18n";
4
4
  import "../../../globals/localization/vue-i18n.js";
5
5
  import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
6
6
  import v from "../../../../components/FieldTags/BlockTags.vue.js";
7
- import "../../../../components/Tab/Tab.vue.js";
8
- import i from "../../../../components/Field/Field.vue2.js";
9
- import "../../../../components/Select/Select.vue.js";
7
+ import "../../../../components/Tab/Tab.vue2.js";
8
+ import i from "../../../../components/Field/Field.vue.js";
9
+ import "../../../../components/Select/Select.vue2.js";
10
10
  import U from "../../../../components/SelectMulti/SelectMulti.vue.js";
11
11
  import k from "../../../../components/UploadImage/UploadImage.vue.js";
12
- import T from "../../../../components/Button/Button.vue2.js";
13
- import "../../../../components/Popup/Popup.vue.js";
12
+ import T from "../../../../components/Button/Button.vue.js";
13
+ import "../../../../components/Popup/Popup.vue2.js";
14
14
  import { state as z } from "../../../auth/store/auth.js";
15
15
  import { actions as s, state as e } from "../../store/organizations.js";
16
16
  import "../../store/memberships.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),c=require("../../../../components/Tab/Tab.vue2.cjs"),u=require("../sections/Feed.vue.cjs"),n=require("../../../auth/store/auth.cjs"),m={class:"pd-thin"},b={class:"mn-b-medium flex-v-center flex-nowrap flex"},f=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),_={__name:"Organizations",setup(p){const t=l.useRoute(),d=l.useRouter();let i=t.query.tab?t.query.tab:"owner";const r=e.ref(i);return t.query.tab=r.value,e.watch(r,o=>{d.replace({query:{...t.query,tab:o}})}),(o,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",b,[f,e.createElementVNode("button",{onClick:a[0]||(a[0]=s=>o.$router.push({name:"Create Organization"})),class:"bg-second radius-100 i-big hover-scale-1 cursor-pointer t-whitebg-second"}," + ")]),e.createVNode(c.default,{selected:r.value,"onUpdate:selected":a[1]||(a[1]=s=>r.value=s),tabs:[{name:"Owner",value:"owner"},{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-b-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="owner"?(e.openBlock(),e.createBlock(u.default,{key:0,user:n.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="member"?(e.openBlock(),e.createBlock(u.default,{key:0,user:n.state.user._id,member:e.unref(t).params._id},null,8,["user","member"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="follower"?(e.openBlock(),e.createBlock(u.default,{key:0,user:n.state.user._id,subscriber:e.unref(t).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),c=require("../../../../components/Tab/Tab.vue.cjs"),u=require("../sections/Feed.vue.cjs"),n=require("../../../auth/store/auth.cjs"),m={class:"pd-thin"},b={class:"mn-b-medium flex-v-center flex-nowrap flex"},f=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),_={__name:"Organizations",setup(p){const t=l.useRoute(),d=l.useRouter();let i=t.query.tab?t.query.tab:"owner";const r=e.ref(i);return t.query.tab=r.value,e.watch(r,o=>{d.replace({query:{...t.query,tab:o}})}),(o,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",b,[f,e.createElementVNode("button",{onClick:a[0]||(a[0]=s=>o.$router.push({name:"Create Organization"})),class:"bg-second radius-100 i-big hover-scale-1 cursor-pointer t-whitebg-second"}," + ")]),e.createVNode(c.default,{selected:r.value,"onUpdate:selected":a[1]||(a[1]=s=>r.value=s),tabs:[{name:"Owner",value:"owner"},{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-b-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="owner"?(e.openBlock(),e.createBlock(u.default,{key:0,user:n.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="member"?(e.openBlock(),e.createBlock(u.default,{key:0,user:n.state.user._id,member:e.unref(t).params._id},null,8,["user","member"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="follower"?(e.openBlock(),e.createBlock(u.default,{key:0,user:n.state.user._id,subscriber:e.unref(t).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=_;
@@ -1,6 +1,6 @@
1
1
  import { ref as v, watch as w, openBlock as a, createElementBlock as h, createElementVNode as b, createVNode as s, Transition as n, withCtx as u, createBlock as l, unref as m, createCommentVNode as i } from "vue";
2
2
  import { useRoute as g, useRouter as y } from "vue-router";
3
- import k from "../../../../components/Tab/Tab.vue2.js";
3
+ import k from "../../../../components/Tab/Tab.vue.js";
4
4
  import d from "../sections/Feed.vue.js";
5
5
  import { state as c } from "../../../auth/store/auth.js";
6
6
  const q = { class: "pd-thin" }, x = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, C = /* @__PURE__ */ b("h2", { class: "mn-r-medium" }, "Groups", -1), E = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),d=require("../../../../components/Dropdown/Dropdown.vue.cjs"),m=require("../../../../components/Text/Text.vue.cjs"),g=require("../../../../components/Chips/Chips.vue.cjs"),b=require("../../../icons/navigation/IconEdit.vue.cjs"),k=require("../../../icons/placeholders/PlaceholderOrganizationPic.vue.cjs"),c=require("../elements/ButtonToggleMembership.vue.cjs"),f=require("../blocks/Socials.vue.cjs"),h=require("../../../reports/components/sections/FormReport.vue.cjs"),z=require("../../store/organizations.cjs"),B=require("../../store/memberships.cjs"),w={class:"t-center flex-center flex-column flex pd-medium radius-big bg-grey"},y={class:"bg-black pd-thin radius-small"},x=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),V=["src"],N={class:"mn-b-thin"},E={class:"mn-b-medium p-big"},q={class:"t-semi mn-b-small"},C={key:6,class:"mn-t-small mn-b-thin"},S={__name:"DetailsTab",props:{organization:Object,user:Object},setup(t){const s=u.useRoute(),l=({membership:i,status:o,target:n},r,a)=>{B.mutations.handleMembershipUpdate(z.state.current,i,o,n,r,a)};return(i,o)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>{var n,r;return[e.createElementVNode("section",w,[t.user._id!==t.organization.owner?(e.openBlock(),e.createBlock(d.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",y,[e.createVNode(h.default,{user:t.user._id,type:"organization",target:t.organization._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[x]),_:1},8,["user","target"]),t.user._id&&t.user._id!==t.organization.owner?(e.openBlock(),e.createBlock(c.default,{key:0,user:t.user._id,type:"organization",role:"blocked",target:t.organization._id,status:t.organization.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:o[0]||(o[0]=a=>l(a,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0),t.user._id===t.organization.owner?(e.openBlock(),e.createBlock(b.default,{key:1,onClick:o[1]||(o[1]=a=>i.$router.push({name:"Organization Edit",params:{_id:t.organization._id}})),class:"pos-absolute cursor-pointer pos-t-big pos-r-big i-regular t-transp"})):e.createCommentVNode("",!0),t.organization.profile.photo?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.organization.profile.photo,class:"radius-big bg-grey flex-center flex mn-b-small i-extra"},null,8,V)):(e.openBlock(),e.createBlock(k.default,{key:3,class:"radius-medium mn-b-small i-extra"})),e.createElementVNode("h1",N,e.toDisplayString(t.organization.profile.name),1),e.createElementVNode("p",E,[e.createVNode(m.default,{text:t.organization.profile.description||"",maxLen:240},null,8,["text"])]),((r=(n=t.organization.profile)==null?void 0:n.tags)==null?void 0:r.length)>0?(e.openBlock(),e.createBlock(g.default,{key:4,chips:t.organization.profile.tags,class:"mn-b-semi"},null,8,["chips"])):e.createCommentVNode("",!0),e.createElementVNode("p",q," 👨‍👨‍👧‍👧 "+e.toDisplayString(t.organization.numberOfSubscribers)+" followers ",1),t.user._id&&e.unref(s).params._id&&e.unref(s).params._id!==t.user._id&&t.organization.owner!==t.user._id?(e.openBlock(),e.createBlock(c.default,{key:5,user:t.user._id,type:"organization",role:"subscriber",target:t.organization._id,status:t.organization.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:o[2]||(o[2]=a=>l(a,"isSubscriber","numberOfSubscribers")),class:"w-min mn-b-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.organization.socials).some(a=>a)?(e.openBlock(),e.createElementBlock("h4",C," Find us in socials ")):e.createCommentVNode("",!0),e.createVNode(f.default,{telegram:t.organization.socials.telegram,facebook:t.organization.socials.facebook,instagram:t.organization.socials.instagram,twitter:t.organization.socials.twitter,youtube:t.organization.socials.youtube},null,8,["telegram","facebook","instagram","twitter","youtube"])])]}),_:1}))}};exports.default=S;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),d=require("../../../../components/Dropdown/Dropdown.vue.cjs"),m=require("../../../../components/Text/Text.vue.cjs"),g=require("../../../../components/Chips/Chips.vue.cjs"),b=require("../../../icons/entities/IconFollowing.vue.cjs"),h=require("../../../icons/navigation/IconEdit.vue.cjs"),f=require("../../../icons/navigation/IconEllipsis.vue.cjs"),k=require("../../../icons/placeholders/PlaceholderOrganizationPic.vue.cjs"),c=require("../elements/ButtonToggleMembership.vue.cjs"),z=require("../blocks/Socials.vue.cjs"),w=require("../../../reports/components/sections/FormReport.vue.cjs"),x=require("../../store/organizations.cjs"),B=require("../../store/memberships.cjs"),y={class:"flex-center flex flex-column t-center pd-medium radius-big bg-grey"},V={class:"bg-black pd-thin radius-small"},N=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),E=["src"],q={class:"mn-b-thin"},p={class:"flex-center pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max"},C={class:"mn-t-thin p-medium t-medium uppercase mn-b-thin"},S={class:"w-max-50r mn-t-regular mn-b-medium p-big"},v={key:5,class:"mn-t-small mn-b-thin"},O={__name:"DetailsTab",props:{organization:Object,user:Object},setup(t){const s=u.useRoute(),l=({membership:o,status:i,target:r},n,a)=>{B.mutations.handleMembershipUpdate(x.state.current,o,i,r,n,a)};return(o,i)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>{var r,n;return[e.createElementVNode("section",y,[t.user._id!==t.organization.owner?(e.openBlock(),e.createBlock(d.default,{key:0,label:{component:f.default,class:"i-regular t-transp"},align:"right",class:"cursor-pointer pos-absolute pos-r-regular pos-t-regular pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",V,[e.createVNode(w.default,{user:t.user._id,type:"organization",target:t.organization._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[N]),_:1},8,["user","target"]),t.user._id&&t.user._id!==t.organization.owner?(e.openBlock(),e.createBlock(c.default,{key:0,user:t.user._id,type:"organization",role:"blocked",target:t.organization._id,status:t.organization.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:i[0]||(i[0]=a=>l(a,"isBlocked")),class:"t-white w-100 mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0),t.user._id===t.organization.owner?(e.openBlock(),e.createBlock(h.default,{key:1,onClick:i[1]||(i[1]=a=>o.$router.push({name:"Organization Edit",params:{_id:t.organization._id}})),class:"pos-absolute cursor-pointer pos-t-big pos-r-big i-regular t-transp"})):e.createCommentVNode("",!0),t.organization.profile.photo?(e.openBlock(),e.createElementBlock("img",{key:2,src:(o.FILE_SERVER_URL||"")+t.organization.profile.photo,class:"radius-big bg-grey flex-center flex mn-b-small w-8r"},null,8,E)):(e.openBlock(),e.createBlock(k.default,{key:3,class:"radius-medium mn-b-small i-extra"})),e.createElementVNode("h1",q,e.toDisplayString(t.organization.profile.name),1),e.createElementVNode("div",p,[e.createVNode(b.default,{class:"i-medium mn-r-micro t-transp"}),e.createElementVNode("p",C,e.toDisplayString(t.organization.numberOfSubscribers)+" followers",1),t.user._id&&e.unref(s).params._id&&e.unref(s).params._id!==t.user._id&&t.organization.owner!==t.user._id?(e.openBlock(),e.createBlock(c.default,{key:0,user:t.user._id,type:"organization",role:"subscriber",target:t.organization._id,status:t.organization.isSubscriber,text:{create:"+",remove:"-"},onUpdateMembership:i[2]||(i[2]=a=>l(a,"isSubscriber","numberOfSubscribers")),class:"mn-l-thin p-medium t-medium radius-extra i-semi"},null,8,["user","target","status"])):e.createCommentVNode("",!0)]),e.createElementVNode("p",S,[e.createVNode(m.default,{text:t.organization.profile.description||"",maxLen:240},null,8,["text"])]),((n=(r=t.organization.profile)==null?void 0:r.tags)==null?void 0:n.length)>0?(e.openBlock(),e.createBlock(g.default,{key:4,chips:t.organization.profile.tags,class:"p-medium"},null,8,["chips"])):e.createCommentVNode("",!0),Object.values(t.organization.socials).some(a=>a)?(e.openBlock(),e.createElementBlock("h4",v," Find us in socials ")):e.createCommentVNode("",!0),e.createVNode(z.default,{telegram:t.organization.socials.telegram,facebook:t.organization.socials.facebook,instagram:t.organization.socials.instagram,twitter:t.organization.socials.twitter,youtube:t.organization.socials.youtube},null,8,["telegram","facebook","instagram","twitter","youtube"])])]}),_:1}))}};exports.default=O;
@@ -1,54 +1,56 @@
1
- import { openBlock as e, createBlock as o, Transition as k, withCtx as u, createElementVNode as r, createVNode as c, createCommentVNode as n, createElementBlock as b, toDisplayString as f, unref as z } from "vue";
2
- import { useRoute as w } from "vue-router";
3
- import y from "../../../../components/Dropdown/Dropdown.vue.js";
4
- import x from "../../../../components/Text/Text.vue.js";
5
- import E from "../../../../components/Chips/Chips.vue.js";
1
+ import { openBlock as e, createBlock as r, Transition as k, withCtx as c, createElementVNode as n, createVNode as u, createCommentVNode as o, createElementBlock as b, toDisplayString as f, unref as h } from "vue";
2
+ import { useRoute as x } from "vue-router";
3
+ import w from "../../../../components/Dropdown/Dropdown.vue.js";
4
+ import y from "../../../../components/Text/Text.vue.js";
5
+ import p from "../../../../components/Chips/Chips.vue.js";
6
+ import $ from "../../../icons/entities/IconFollowing.vue.js";
6
7
  import O from "../../../icons/navigation/IconEdit.vue.js";
7
- import U from "../../../icons/placeholders/PlaceholderOrganizationPic.vue.js";
8
- import h from "../elements/ButtonToggleMembership.vue.js";
9
- import $ from "../blocks/Socials.vue.js";
10
- import B from "../../../reports/components/sections/FormReport.vue.js";
11
- import { state as R } from "../../store/organizations.js";
12
- import { mutations as S } from "../../store/memberships.js";
13
- const v = { class: "t-center flex-center flex-column flex pd-medium radius-big bg-grey" }, M = { class: "bg-black pd-thin radius-small" }, V = /* @__PURE__ */ r("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), j = ["src"], C = { class: "mn-b-thin" }, D = { class: "mn-b-medium p-big" }, F = { class: "t-semi mn-b-small" }, L = {
14
- key: 6,
8
+ import B from "../../../icons/navigation/IconEllipsis.vue.js";
9
+ import E from "../../../icons/placeholders/PlaceholderOrganizationPic.vue.js";
10
+ import z from "../elements/ButtonToggleMembership.vue.js";
11
+ import R from "../blocks/Socials.vue.js";
12
+ import S from "../../../reports/components/sections/FormReport.vue.js";
13
+ import { state as U } from "../../store/organizations.js";
14
+ import { mutations as v } from "../../store/memberships.js";
15
+ const C = { class: "flex-center flex flex-column t-center pd-medium radius-big bg-grey" }, M = { class: "bg-black pd-thin radius-small" }, V = /* @__PURE__ */ n("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), j = ["src"], D = { class: "mn-b-thin" }, L = { class: "flex-center pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max" }, N = { class: "mn-t-thin p-medium t-medium uppercase mn-b-thin" }, F = { class: "w-max-50r mn-t-regular mn-b-medium p-big" }, P = {
16
+ key: 5,
15
17
  class: "mn-t-small mn-b-thin"
16
- }, W = {
18
+ }, tt = {
17
19
  __name: "DetailsTab",
18
20
  props: {
19
21
  organization: Object,
20
22
  user: Object
21
23
  },
22
24
  setup(t) {
23
- const d = w(), g = ({ membership: s, status: i, target: l }, m, a) => {
24
- S.handleMembershipUpdate(R.current, s, i, l, m, a);
25
+ const d = x(), g = ({ membership: s, status: i, target: l }, m, a) => {
26
+ v.handleMembershipUpdate(U.current, s, i, l, m, a);
25
27
  };
26
- return (s, i) => (e(), o(k, { name: "slide-fade" }, {
27
- default: u(() => {
28
+ return (s, i) => (e(), r(k, { name: "slide-fade" }, {
29
+ default: c(() => {
28
30
  var l, m;
29
31
  return [
30
- r("section", v, [
31
- t.user._id !== t.organization.owner ? (e(), o(y, {
32
+ n("section", C, [
33
+ t.user._id !== t.organization.owner ? (e(), r(w, {
32
34
  key: 0,
33
- label: "...",
35
+ label: { component: B, class: "i-regular t-transp" },
34
36
  align: "right",
35
- class: "cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"
37
+ class: "cursor-pointer pos-absolute pos-r-regular pos-t-regular pd-thin radius-extra"
36
38
  }, {
37
- default: u(() => [
38
- r("section", M, [
39
- c(B, {
39
+ default: c(() => [
40
+ n("section", M, [
41
+ u(S, {
40
42
  user: t.user._id,
41
43
  type: "organization",
42
44
  target: t.organization._id,
43
45
  text: "Report",
44
46
  class: "w-100"
45
47
  }, {
46
- default: u(() => [
48
+ default: c(() => [
47
49
  V
48
50
  ]),
49
51
  _: 1
50
52
  }, 8, ["user", "target"]),
51
- t.user._id && t.user._id !== t.organization.owner ? (e(), o(h, {
53
+ t.user._id && t.user._id !== t.organization.owner ? (e(), r(z, {
52
54
  key: 0,
53
55
  user: t.user._id,
54
56
  type: "organization",
@@ -57,13 +59,13 @@ const v = { class: "t-center flex-center flex-column flex pd-medium radius-big b
57
59
  status: t.organization.isBlocked,
58
60
  text: { create: "Block", remove: "Unblock" },
59
61
  onUpdateMembership: i[0] || (i[0] = (a) => g(a, "isBlocked")),
60
- class: "t-white mn-t-thin bg-red"
61
- }, null, 8, ["user", "target", "status"])) : n("", !0)
62
+ class: "t-white w-100 mn-t-thin bg-red"
63
+ }, null, 8, ["user", "target", "status"])) : o("", !0)
62
64
  ])
63
65
  ]),
64
66
  _: 1
65
- }, 8, ["label"])) : n("", !0),
66
- t.user._id === t.organization.owner ? (e(), o(O, {
67
+ }, 8, ["label"])) : o("", !0),
68
+ t.user._id === t.organization.owner ? (e(), r(O, {
67
69
  key: 1,
68
70
  onClick: i[1] || (i[1] = (a) => s.$router.push({
69
71
  name: "Organization Edit",
@@ -72,41 +74,44 @@ const v = { class: "t-center flex-center flex-column flex pd-medium radius-big b
72
74
  }
73
75
  })),
74
76
  class: "pos-absolute cursor-pointer pos-t-big pos-r-big i-regular t-transp"
75
- })) : n("", !0),
77
+ })) : o("", !0),
76
78
  t.organization.profile.photo ? (e(), b("img", {
77
79
  key: 2,
78
80
  src: (s.FILE_SERVER_URL || "") + t.organization.profile.photo,
79
- class: "radius-big bg-grey flex-center flex mn-b-small i-extra"
80
- }, null, 8, j)) : (e(), o(U, {
81
+ class: "radius-big bg-grey flex-center flex mn-b-small w-8r"
82
+ }, null, 8, j)) : (e(), r(E, {
81
83
  key: 3,
82
84
  class: "radius-medium mn-b-small i-extra"
83
85
  })),
84
- r("h1", C, f(t.organization.profile.name), 1),
85
- r("p", D, [
86
- c(x, {
86
+ n("h1", D, f(t.organization.profile.name), 1),
87
+ n("div", L, [
88
+ u($, { class: "i-medium mn-r-micro t-transp" }),
89
+ n("p", N, f(t.organization.numberOfSubscribers) + " followers", 1),
90
+ t.user._id && h(d).params._id && h(d).params._id !== t.user._id && t.organization.owner !== t.user._id ? (e(), r(z, {
91
+ key: 0,
92
+ user: t.user._id,
93
+ type: "organization",
94
+ role: "subscriber",
95
+ target: t.organization._id,
96
+ status: t.organization.isSubscriber,
97
+ text: { create: "+", remove: "-" },
98
+ onUpdateMembership: i[2] || (i[2] = (a) => g(a, "isSubscriber", "numberOfSubscribers")),
99
+ class: "mn-l-thin p-medium t-medium radius-extra i-semi"
100
+ }, null, 8, ["user", "target", "status"])) : o("", !0)
101
+ ]),
102
+ n("p", F, [
103
+ u(y, {
87
104
  text: t.organization.profile.description || "",
88
105
  maxLen: 240
89
106
  }, null, 8, ["text"])
90
107
  ]),
91
- ((m = (l = t.organization.profile) == null ? void 0 : l.tags) == null ? void 0 : m.length) > 0 ? (e(), o(E, {
108
+ ((m = (l = t.organization.profile) == null ? void 0 : l.tags) == null ? void 0 : m.length) > 0 ? (e(), r(p, {
92
109
  key: 4,
93
110
  chips: t.organization.profile.tags,
94
- class: "mn-b-semi"
95
- }, null, 8, ["chips"])) : n("", !0),
96
- r("p", F, " 👨‍👨‍👧‍👧 " + f(t.organization.numberOfSubscribers) + " followers ", 1),
97
- t.user._id && z(d).params._id && z(d).params._id !== t.user._id && t.organization.owner !== t.user._id ? (e(), o(h, {
98
- key: 5,
99
- user: t.user._id,
100
- type: "organization",
101
- role: "subscriber",
102
- target: t.organization._id,
103
- status: t.organization.isSubscriber,
104
- text: { create: "Follow", remove: "Unfollow" },
105
- onUpdateMembership: i[2] || (i[2] = (a) => g(a, "isSubscriber", "numberOfSubscribers")),
106
- class: "w-min mn-b-medium mn-r-auto mn-l-auto"
107
- }, null, 8, ["user", "target", "status"])) : n("", !0),
108
- Object.values(t.organization.socials).some((a) => a) ? (e(), b("h4", L, " Find us in socials ")) : n("", !0),
109
- c($, {
111
+ class: "p-medium"
112
+ }, null, 8, ["chips"])) : o("", !0),
113
+ Object.values(t.organization.socials).some((a) => a) ? (e(), b("h4", P, " Find us in socials ")) : o("", !0),
114
+ u(R, {
110
115
  telegram: t.organization.socials.telegram,
111
116
  facebook: t.organization.socials.facebook,
112
117
  instagram: t.organization.socials.instagram,
@@ -121,5 +126,5 @@ const v = { class: "t-center flex-center flex-column flex pd-medium radius-big b
121
126
  }
122
127
  };
123
128
  export {
124
- W as default
129
+ tt as default
125
130
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),m=require("../../../../components/Field/Field.vue2.cjs");require("vue-i18n");const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("../../../../components/Popup/Popup.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("./Documents.vue2.cjs");const f=o=>(e.pushScopeId("data-v-f93fcad7"),o=o(),e.popScopeId(),o),v={class:"documents"},h=f(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Список документов",-1)),k={class:"mn-b-big cols-4"},b=["onClick"],y={class:"mn-b-small"},E={class:"t-semi t-transp radius-small"},B={__name:"Documents",setup(o){r.useRouter(),r.useRoute();let l=[{name:"Паспорт",status:"Не добавлен",inputs:[{type:"text",name:"Номер и серия"},{type:"text",name:"Место выдачи"},{type:"text",name:"Дата выдачи"}]},{name:"ИНН",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"СНИЛС",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"Военный билет",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]}];const s=e.ref(!1),a=e.ref(null),p=u=>{a.value=u,s.value=!0},c=()=>{s.value=!1},i=()=>{c()};return e.watchEffect(()=>{}),(u,x)=>{const d=e.resolveComponent("Popup");return e.openBlock(),e.createElementBlock("div",v,[h,e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,onClick:P=>p(n),class:"h-100 pd-medium bg-white radius-small"},[e.createElementVNode("h3",y,e.toDisplayString(t.name),1),e.createElementVNode("p",E,e.toDisplayString(t.status),1)],8,b))),128))]),e.createVNode(d,{title:"Добавить документ",onClosePopup:c,isPopupOpen:s.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l)[a.value].inputs,t=>(e.openBlock(),e.createElementBlock("div",{key:t.name},[e.createVNode(m.default,{field:t.value,"onUpdate:field":n=>t.value=n,label:t.name,_id:t.name,placeholder:t.name,class:"w-100"},null,8,["field","onUpdate:field","label","_id","placeholder"])]))),128)),e.createElementVNode("button",{onClick:i,class:"w-100 mn-b-small button"},"Отправить на верификацию")]),_:1},8,["isPopupOpen"])])}}},g=_.default(B,[["__scopeId","data-v-f93fcad7"]]);exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),m=require("../../../../components/Field/Field.vue.cjs");require("vue-i18n");const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../../components/Button/Button.vue2.cjs");require("./Documents.vue2.cjs");const f=o=>(e.pushScopeId("data-v-f93fcad7"),o=o(),e.popScopeId(),o),v={class:"documents"},h=f(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Список документов",-1)),k={class:"mn-b-big cols-4"},b=["onClick"],y={class:"mn-b-small"},E={class:"t-semi t-transp radius-small"},B={__name:"Documents",setup(o){r.useRouter(),r.useRoute();let l=[{name:"Паспорт",status:"Не добавлен",inputs:[{type:"text",name:"Номер и серия"},{type:"text",name:"Место выдачи"},{type:"text",name:"Дата выдачи"}]},{name:"ИНН",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"СНИЛС",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"Военный билет",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]}];const s=e.ref(!1),a=e.ref(null),p=u=>{a.value=u,s.value=!0},c=()=>{s.value=!1},i=()=>{c()};return e.watchEffect(()=>{}),(u,x)=>{const d=e.resolveComponent("Popup");return e.openBlock(),e.createElementBlock("div",v,[h,e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,onClick:P=>p(n),class:"h-100 pd-medium bg-white radius-small"},[e.createElementVNode("h3",y,e.toDisplayString(t.name),1),e.createElementVNode("p",E,e.toDisplayString(t.status),1)],8,b))),128))]),e.createVNode(d,{title:"Добавить документ",onClosePopup:c,isPopupOpen:s.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l)[a.value].inputs,t=>(e.openBlock(),e.createElementBlock("div",{key:t.name},[e.createVNode(m.default,{field:t.value,"onUpdate:field":n=>t.value=n,label:t.name,_id:t.name,placeholder:t.name,class:"w-100"},null,8,["field","onUpdate:field","label","_id","placeholder"])]))),128)),e.createElementVNode("button",{onClick:i,class:"w-100 mn-b-small button"},"Отправить на верификацию")]),_:1},8,["isPopupOpen"])])}}},g=_.default(B,[["__scopeId","data-v-f93fcad7"]]);exports.default=g;
@@ -1,10 +1,10 @@
1
1
  import { ref as r, watchEffect as y, resolveComponent as P, openBlock as t, createElementBlock as s, createElementVNode as o, Fragment as i, renderList as d, unref as _, toDisplayString as f, createVNode as h, withCtx as k, pushScopeId as w, popScopeId as C } from "vue";
2
2
  import { useRouter as I, useRoute as g } from "vue-router";
3
- import D from "../../../../components/Field/Field.vue2.js";
3
+ import D from "../../../../components/Field/Field.vue.js";
4
4
  import "vue-i18n";
5
5
  import S from "../../../../../../_virtual/_plugin-vue_export-helper.js";
6
- import "../../../../components/Popup/Popup.vue.js";
7
- import "../../../../components/Button/Button.vue.js";
6
+ import "../../../../components/Popup/Popup.vue2.js";
7
+ import "../../../../components/Button/Button.vue2.js";
8
8
  import "./Documents.vue2.js";
9
9
  const E = (a) => (w("data-v-f93fcad7"), a = a(), C(), a), B = { class: "documents" }, F = /* @__PURE__ */ E(() => /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Список документов", -1)), N = { class: "mn-b-big cols-4" }, O = ["onClick"], R = { class: "mn-b-small" }, U = { class: "t-semi t-transp radius-small" }, V = {
10
10
  __name: "Documents",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const c=require("../blocks/EmptyState.vue.cjs"),m=require("../blocks/CardDepartment.vue.cjs"),d=require("../../store/departments.cjs"),p=require("../../../auth/store/auth.cjs"),g={__name:"FeedDepartments",props:{organization:Object,units:Array,memberships:Array},async setup(a){let l,u;const o=a;e.ref("departments"),[l,u]=e.withAsyncContext(()=>d.actions.read(o.organization._id)),await l,u();const i=e.computed(()=>{const n=d.state.departments,r=n.flatMap(t=>t.subdepartments.map(s=>s._id));return n.filter(t=>!r.includes(t._id))});return(n,r)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[i.value.length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>n.$router.push(`/organizations/${o.organization._id}/departments/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(t,s)=>(e.openBlock(),e.createBlock(m.default,{key:s,department:t,organization:a.organization,class:"radius-big bg-grey mn-b-thin"},null,8,["department","organization"]))),128)),i.value.length>0&&p.state.user._id===a.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:r[0]||(r[0]=t=>n.$router.push(`/organizations/${o.organization._id}/departments/create`)),class:"mn-b-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue2.cjs");const c=require("../blocks/EmptyState.vue.cjs"),m=require("../blocks/CardDepartment.vue.cjs"),d=require("../../store/departments.cjs"),p=require("../../../auth/store/auth.cjs"),g={__name:"FeedDepartments",props:{organization:Object,units:Array,memberships:Array},async setup(a){let l,u;const o=a;e.ref("departments"),[l,u]=e.withAsyncContext(()=>d.actions.read(o.organization._id)),await l,u();const i=e.computed(()=>{const n=d.state.departments,r=n.flatMap(t=>t.subdepartments.map(s=>s._id));return n.filter(t=>!r.includes(t._id))});return(n,r)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[i.value.length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>n.$router.push(`/organizations/${o.organization._id}/departments/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(t,s)=>(e.openBlock(),e.createBlock(m.default,{key:s,department:t,organization:a.organization,class:"radius-big bg-grey mn-b-thin"},null,8,["department","organization"]))),128)),i.value.length>0&&p.state.user._id===a.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:r[0]||(r[0]=t=>n.$router.push(`/organizations/${o.organization._id}/departments/create`)),class:"mn-b-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
@@ -1,5 +1,5 @@
1
1
  import { ref as g, withAsyncContext as b, computed as f, openBlock as n, createBlock as d, Transition as y, withCtx as _, createElementVNode as u, createCommentVNode as p, createElementBlock as c, Fragment as h, renderList as z } from "vue";
2
- import "../../../../components/Tab/Tab.vue.js";
2
+ import "../../../../components/Tab/Tab.vue2.js";
3
3
  import k from "../blocks/EmptyState.vue.js";
4
4
  import v from "../blocks/CardDepartment.vue.js";
5
5
  import { actions as $, state as A } from "../../store/departments.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("../../../../components/Field/Field.vue2.cjs"),v=require("../../../../components/Select/Select.vue2.cjs"),f=require("../../../../components/Button/Button.vue2.cjs");require("../../../middlewares/client/inputs.validation.cjs");const c=require("../../store/invites.cjs"),b={class:"mn-b-medium radius-medium pd-semi bg-white"},h=e.createElementVNode("h3",{class:"mn-b-medium"},"Добавить участников",-1),k=e.createElementVNode("p",{class:"mn-b-small t-transp p-medium"},"Укажите email или телефон, чтобы отправить ссылку с приглашением:",-1),E={class:"w-100 flex-nowrap flex"},V={key:0,class:"mn-r-medium flex-v-center flex"},N=["onClick"],g=e.createElementVNode("p",{class:"t-blue mn-r-small"},"+ Добавить приглашение",-1),w=[g],B=e.createElementVNode("span",null,"Отправить приглашения ",-1),x={__name:"MembersAdd",props:{organization:Object},emits:["send-invite"],setup(s,{emit:q}){const i=s,r=e.ref(null),t=e.ref([{contact:"",role:""}]);function d(){t.value.push({contact:"",role:""})}function m(n){t.value.splice(n,1)}async function u(n){await c.actions.create(i.organization._id,t.value)}function p(){}return(n,y)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("section",b,[h,k,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(l,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"br-1px br-solid br-grey flex radius-small mn-b-thin"},[e.createElementVNode("div",E,[e.createVNode(_.default,{field:l.contact,"onUpdate:field":a=>l.contact=a,placeholder:"Email или телефон",class:"w-100 bg-white",validation:r.value},null,8,["field","onUpdate:field","validation"]),o>0?(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("button",{onClick:a=>m(o),class:"button-small button"},"×",8,N)])):e.createCommentVNode("",!0)]),e.createVNode(v.default,{options:[{name:"Директор",value:"director"},{name:"Менеджер",value:"manager"},{name:"Сотрудник",value:"member"}],prop:l,content:"role",placeholder:"Роль",size:"small",class:"w-80"},null,8,["prop"])]))),128)),e.createElementVNode("div",{onClick:d,class:"mn-b-small flex-v-center flex-nowrap flex"},w),e.createVNode(f.default,{submit:n.a=()=>u(c.state.invites),callback:p,class:"mn-t-medium"},{default:e.withCtx(()=>[B]),_:1},8,["submit"])])]))}};exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("../../../../components/Field/Field.vue.cjs"),v=require("../../../../components/Select/Select.vue.cjs"),f=require("../../../../components/Button/Button.vue.cjs");require("../../../middlewares/client/inputs.validation.cjs");const c=require("../../store/invites.cjs"),b={class:"mn-b-medium radius-medium pd-semi bg-white"},h=e.createElementVNode("h3",{class:"mn-b-medium"},"Добавить участников",-1),k=e.createElementVNode("p",{class:"mn-b-small t-transp p-medium"},"Укажите email или телефон, чтобы отправить ссылку с приглашением:",-1),E={class:"w-100 flex-nowrap flex"},V={key:0,class:"mn-r-medium flex-v-center flex"},N=["onClick"],g=e.createElementVNode("p",{class:"t-blue mn-r-small"},"+ Добавить приглашение",-1),w=[g],B=e.createElementVNode("span",null,"Отправить приглашения ",-1),x={__name:"MembersAdd",props:{organization:Object},emits:["send-invite"],setup(s,{emit:q}){const i=s,r=e.ref(null),t=e.ref([{contact:"",role:""}]);function d(){t.value.push({contact:"",role:""})}function m(n){t.value.splice(n,1)}async function u(n){await c.actions.create(i.organization._id,t.value)}function p(){}return(n,y)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("section",b,[h,k,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(l,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"br-1px br-solid br-grey flex radius-small mn-b-thin"},[e.createElementVNode("div",E,[e.createVNode(_.default,{field:l.contact,"onUpdate:field":a=>l.contact=a,placeholder:"Email или телефон",class:"w-100 bg-white",validation:r.value},null,8,["field","onUpdate:field","validation"]),o>0?(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("button",{onClick:a=>m(o),class:"button-small button"},"×",8,N)])):e.createCommentVNode("",!0)]),e.createVNode(v.default,{options:[{name:"Директор",value:"director"},{name:"Менеджер",value:"manager"},{name:"Сотрудник",value:"member"}],prop:l,content:"role",placeholder:"Роль",size:"small",class:"w-80"},null,8,["prop"])]))),128)),e.createElementVNode("div",{onClick:d,class:"mn-b-small flex-v-center flex-nowrap flex"},w),e.createVNode(f.default,{submit:n.a=()=>u(c.state.invites),callback:p,class:"mn-t-medium"},{default:e.withCtx(()=>[B]),_:1},8,["submit"])])]))}};exports.default=x;
@@ -1,7 +1,7 @@
1
1
  import { ref as m, openBlock as l, createElementBlock as o, createElementVNode as e, Fragment as b, renderList as h, createVNode as i, createCommentVNode as w, withCtx as x } from "vue";
2
- import g from "../../../../components/Field/Field.vue2.js";
3
- import k from "../../../../components/Select/Select.vue2.js";
4
- import C from "../../../../components/Button/Button.vue2.js";
2
+ import g from "../../../../components/Field/Field.vue.js";
3
+ import k from "../../../../components/Select/Select.vue.js";
4
+ import C from "../../../../components/Button/Button.vue.js";
5
5
  import "../../../middlewares/client/inputs.validation.js";
6
6
  import { state as y, actions as V } from "../../store/invites.js";
7
7
  const z = { class: "mn-b-medium radius-medium pd-semi bg-white" }, E = /* @__PURE__ */ e("h3", { class: "mn-b-medium" }, "Добавить участников", -1), M = /* @__PURE__ */ e("p", { class: "mn-b-small t-transp p-medium" }, "Укажите email или телефон, чтобы отправить ссылку с приглашением:", -1), N = { class: "w-100 flex-nowrap flex" }, B = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../../../../components/Tab/Tab.vue2.cjs"),v={class:"mn-b-big radius-medium bg-white"},b={key:0,class:"pd-semi"},_={class:"br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium"},k={class:"w-100 mn-r-small"},h={class:"t-transp"},B={key:0,class:"mn-l-medium flex-v-center flex"},f=["onClick"],g={key:1,class:"pd-semi"},E={key:0},y={class:"br-grey br-1px br-solid radius-small mn-b-thin flex-nowrap flex-v-center flex pd-medium"},x={class:"w-100 mn-r-small"},N={class:"t-transp"},V={class:"mn-l-medium flex-v-center flex"},C=["onClick"],S={__name:"MembersList",props:{organization:Object,memberships:Array,invites:Array},emits:[["removeMember","removeInvite"]],setup(n,{emit:a}){const i=n,c=a,o=e.ref("members");function m(l,s){i.memberships.splice(l,1),c("removeMember",s)}function d(l,s){i.invites.splice(l,1),c("removeInvite",s)}return(l,s)=>(e.openBlock(),e.createElementBlock("section",v,[e.createVNode(p.default,{selected:o.value,"onUpdate:selected":s[0]||(s[0]=t=>o.value=t),class:"br-grey br-b br-solid radius-small",tabs:[{name:"Участники",value:"members"},{name:"Приглашения",value:"invites"}]},null,8,["selected"]),o.value==="members"?(e.openBlock(),e.createElementBlock("div",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.memberships,(t,r)=>(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("span",k,e.toDisplayString(t.user.email)+" "+e.toDisplayString(t.user.phone),1),e.createElementVNode("span",h,e.toDisplayString(t.position),1),t.position!=="Основатель"?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("button",{onClick:u=>m(r,t),class:"button-small button"},"×",8,f)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),o.value==="invites"?(e.openBlock(),e.createElementBlock("div",g,[n.invites.length<1?(e.openBlock(),e.createElementBlock("span",E,"В организации нет приглашений")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.invites,(t,r)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("span",x,e.toDisplayString(t.invitedEmail)+" "+e.toDisplayString(t.invitedPhone),1),e.createElementVNode("span",N,e.toDisplayString(t.status),1),e.createElementVNode("div",V,[e.createElementVNode("button",{onClick:u=>d(r,t),class:"button-small button"},"×",8,C)])]))),256))])):e.createCommentVNode("",!0)]))}};exports.default=S;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../../../../components/Tab/Tab.vue.cjs"),v={class:"mn-b-big radius-medium bg-white"},b={key:0,class:"pd-semi"},_={class:"br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium"},k={class:"w-100 mn-r-small"},h={class:"t-transp"},B={key:0,class:"mn-l-medium flex-v-center flex"},f=["onClick"],g={key:1,class:"pd-semi"},E={key:0},y={class:"br-grey br-1px br-solid radius-small mn-b-thin flex-nowrap flex-v-center flex pd-medium"},x={class:"w-100 mn-r-small"},N={class:"t-transp"},V={class:"mn-l-medium flex-v-center flex"},C=["onClick"],S={__name:"MembersList",props:{organization:Object,memberships:Array,invites:Array},emits:[["removeMember","removeInvite"]],setup(n,{emit:a}){const i=n,c=a,o=e.ref("members");function m(l,s){i.memberships.splice(l,1),c("removeMember",s)}function d(l,s){i.invites.splice(l,1),c("removeInvite",s)}return(l,s)=>(e.openBlock(),e.createElementBlock("section",v,[e.createVNode(p.default,{selected:o.value,"onUpdate:selected":s[0]||(s[0]=t=>o.value=t),class:"br-grey br-b br-solid radius-small",tabs:[{name:"Участники",value:"members"},{name:"Приглашения",value:"invites"}]},null,8,["selected"]),o.value==="members"?(e.openBlock(),e.createElementBlock("div",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.memberships,(t,r)=>(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("span",k,e.toDisplayString(t.user.email)+" "+e.toDisplayString(t.user.phone),1),e.createElementVNode("span",h,e.toDisplayString(t.position),1),t.position!=="Основатель"?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("button",{onClick:u=>m(r,t),class:"button-small button"},"×",8,f)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),o.value==="invites"?(e.openBlock(),e.createElementBlock("div",g,[n.invites.length<1?(e.openBlock(),e.createElementBlock("span",E,"В организации нет приглашений")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.invites,(t,r)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("span",x,e.toDisplayString(t.invitedEmail)+" "+e.toDisplayString(t.invitedPhone),1),e.createElementVNode("span",N,e.toDisplayString(t.status),1),e.createElementVNode("div",V,[e.createElementVNode("button",{onClick:u=>d(r,t),class:"button-small button"},"×",8,C)])]))),256))])):e.createCommentVNode("",!0)]))}};exports.default=S;
@@ -1,5 +1,5 @@
1
1
  import { ref as x, openBlock as s, createElementBlock as t, createVNode as k, Fragment as v, renderList as b, createElementVNode as n, toDisplayString as o, createCommentVNode as m } from "vue";
2
- import y from "../../../../components/Tab/Tab.vue2.js";
2
+ import y from "../../../../components/Tab/Tab.vue.js";
3
3
  const g = { class: "mn-b-big radius-medium bg-white" }, w = {
4
4
  key: 0,
5
5
  class: "pd-semi"
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");const p=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue.cjs");require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/EmptyState.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("../../../../components/Map/Map.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/User.vue2.cjs");require("../blocks/CardDepartment.vue2.cjs");require("../../store/departments.cjs");const b=require("../blocks/CardOrganization.vue.cjs");require("./Unit.vue.cjs");require("./Organizations.vue2.cjs");const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let q=n.query.tab?n.query.tab:"details";const i=e.ref(q);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(m.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(b.default,{key:l._id,organization:l,user:p.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");require("../../../../components/Tab/Tab.vue2.cjs");require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");require("../../../../components/Chips/Chips.vue2.cjs");const p=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/EmptyState.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("../../../../components/Map/Map.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/User.vue2.cjs");require("../blocks/CardDepartment.vue2.cjs");require("../../store/departments.cjs");const b=require("../blocks/CardOrganization.vue.cjs");require("./Unit.vue.cjs");require("./Organizations.vue2.cjs");const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let q=n.query.tab?n.query.tab:"details";const i=e.ref(q);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(m.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(b.default,{key:l._id,organization:l,user:p.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
@@ -1,15 +1,16 @@
1
- import { ref as m, withAsyncContext as b, watch as _, openBlock as t, createElementBlock as n, createElementVNode as f, createBlock as p, Fragment as g, renderList as h, normalizeClass as w } from "vue";
1
+ import { ref as m, withAsyncContext as b, watch as _, openBlock as e, createElementBlock as n, createElementVNode as f, createBlock as p, Fragment as g, renderList as h, normalizeClass as w } from "vue";
2
2
  import { useRouter as v, useRoute as z } from "vue-router";
3
3
  import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
4
- import "../../../../components/Tab/Tab.vue.js";
5
- import "../../../../components/Field/Field.vue.js";
6
- import "../../../../components/Select/Select.vue.js";
7
- import "../../../../components/Button/Button.vue.js";
4
+ import "../../../../components/Tab/Tab.vue2.js";
5
+ import "../../../../components/Field/Field.vue2.js";
6
+ import "../../../../components/Select/Select.vue2.js";
7
+ import "../../../../components/Button/Button.vue2.js";
8
8
  import "../../../../components/Dropdown/Dropdown.vue2.js";
9
+ import "../../../../components/Chips/Chips.vue2.js";
9
10
  import { state as k } from "../../../auth/store/auth.js";
10
11
  import "../../store/memberships.js";
11
12
  import "vue-i18n";
12
- import "../../../../components/Popup/Popup.vue.js";
13
+ import "../../../../components/Popup/Popup.vue2.js";
13
14
  import "../../../reports/store/reports.js";
14
15
  import { actions as q } from "../../store/organizations.js";
15
16
  import B from "../blocks/EmptyState.vue.js";
@@ -25,7 +26,7 @@ import "./Organizations.vue2.js";
25
26
  const M = { class: "for-transition bg-white radius-big w-100" }, N = { class: "" }, O = {
26
27
  key: 1,
27
28
  class: "cols-1"
28
- }, te = {
29
+ }, rt = {
29
30
  __name: "Organizations",
30
31
  props: {
31
32
  owner: {
@@ -48,23 +49,23 @@ const M = { class: "for-transition bg-white radius-big w-100" }, N = { class: ""
48
49
  const d = v(), a = z();
49
50
  let y = a.query.tab ? a.query.tab : "details";
50
51
  const l = m(y);
51
- return a.query.tab = l.value, _(l, (e) => {
52
- d.replace({ query: { ...a.query, tab: e } });
53
- }), (e, S) => (t(), n("div", M, [
52
+ return a.query.tab = l.value, _(l, (t) => {
53
+ d.replace({ query: { ...a.query, tab: t } });
54
+ }), (t, S) => (e(), n("div", M, [
54
55
  f("div", N, [
55
- o.value < 1 ? (t(), p(B, {
56
+ o.value < 1 ? (e(), p(B, {
56
57
  key: 0,
57
58
  title: "You Haven't Joined Any Organization Yet",
58
59
  description: "Weeder is all about community. Join an organization or maybe you want to create your own?",
59
60
  action: "Create organization",
60
- callback: e.a = () => e.$router.push("/app/organization/create/details")
61
- }, null, 8, ["callback"])) : (t(), n("div", O, [
62
- (t(!0), n(g, null, h(o.value, (u) => (t(), p(C, {
61
+ callback: t.a = () => t.$router.push("/app/organization/create/details")
62
+ }, null, 8, ["callback"])) : (e(), n("div", O, [
63
+ (e(!0), n(g, null, h(o.value, (u) => (e(), p(C, {
63
64
  key: u._id,
64
65
  organization: u,
65
66
  user: k.user,
66
- onUpdateMembership: e.handleMembershipUpdate,
67
- class: w(["w-100", { "mn-r-small": e.index !== o.value.length - 1 }])
67
+ onUpdateMembership: t.handleMembershipUpdate,
68
+ class: w(["w-100", { "mn-r-small": t.index !== o.value.length - 1 }])
68
69
  }, null, 8, ["organization", "user", "onUpdateMembership", "class"]))), 128))
69
70
  ]))
70
71
  ])
@@ -72,5 +73,5 @@ const M = { class: "for-transition bg-white radius-big w-100" }, N = { class: ""
72
73
  }
73
74
  };
74
75
  export {
75
- te as default
76
+ rt as default
76
77
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../blocks/CardOrganization.vue.cjs"),l=require("../../../../components/EmptyState/EmptyState.vue.cjs"),a=require("../../../auth/store/auth.cjs"),d=require("../../store/organizations.cjs"),m=require("../../store/memberships.cjs");require("./Publics.vue2.cjs");const p={class:"w-100 o-scroll"},f={key:1,class:"w-max gap-thin flex-nowrap flex"},_={__name:"Publics",setup(h){let t=e.ref(null);e.onMounted(async()=>{t.value=await d.actions.read({user:a.state.user._id,sort:"numberOfMemberships",limit:10,types:["public"]})});const i=({membership:n,status:o,target:r},s,u)=>{m.mutations.handleMembershipUpdate(organizations.state.current,n,o,r,s,u)};return(n,o)=>(e.openBlock(),e.createElementBlock("div",p,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(l.default,{key:0,title:"Unfortunately, we couldn't find any recommendations for you",description:"Explore and find a community or organization that suits your interests.",class:"radius-big bg-grey pd-medium"})):(e.openBlock(),e.createElementBlock("div",f,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(r,s)=>(e.openBlock(),e.createBlock(c.default,{key:r._id,organization:r,user:a.state.user,onUpdateMembership:i,class:"w-max"},null,8,["organization","user"]))),128)):e.createCommentVNode("",!0)]))]))}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../blocks/CardOrganization.vue.cjs"),l=require("../../../../components/EmptyState/EmptyState.vue.cjs"),s=require("../../../auth/store/auth.cjs"),d=require("../../store/organizations.cjs"),m=require("../../store/memberships.cjs");require("./Publics.vue2.cjs");const p={class:"w-100 o-scroll"},f={key:1,class:"w-max gap-thin flex-nowrap flex"},_={__name:"Publics",setup(g){let t=e.ref(null);e.onMounted(async()=>{t.value=await d.actions.read({user:s.state.user._id,sortParam:"profile.tags",limit:10})});const i=({membership:n,status:o,target:r},a,u)=>{m.mutations.handleMembershipUpdate(organizations.state.current,n,o,r,a,u)};return(n,o)=>(e.openBlock(),e.createElementBlock("div",p,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(l.default,{key:0,title:"Unfortunately, we couldn't find any recommendations for you",description:"Explore and find a community or organization that suits your interests.",class:"radius-big bg-grey pd-medium"})):(e.openBlock(),e.createElementBlock("div",f,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(r,a)=>(e.openBlock(),e.createBlock(c.default,{key:r._id,organization:r,user:s.state.user,onUpdateMembership:i,class:"w-max-20r radius-big"},null,8,["organization","user"]))),128)):e.createCommentVNode("",!0)]))]))}};exports.default=_;