@ozdao/prometheus-framework 0.1.99 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (292) hide show
  1. package/dist/main.css +1 -1
  2. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  3. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +5 -5
  4. package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.cjs +1 -1
  5. package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.js +1 -1
  6. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  7. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -2
  8. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
  9. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +10 -10
  10. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  11. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +12 -12
  12. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  13. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +15 -15
  14. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +8 -8
  16. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  17. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +14 -14
  18. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +14 -14
  20. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +9 -9
  22. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.js +4 -4
  24. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  26. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +8 -8
  28. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  30. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +10 -10
  32. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +4 -4
  34. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +9 -9
  36. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +8 -8
  38. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +3 -3
  40. package/dist/prometheus-framework/src/modules/community/components/sections/SubscribeNewsletter.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/community/components/sections/SubscribeNewsletter.vue.js +3 -3
  42. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +2 -2
  44. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +4 -4
  46. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +1 -1
  48. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +2 -2
  50. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +5 -5
  52. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +20 -11
  54. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  56. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +3 -3
  58. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +12 -12
  60. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +11 -11
  62. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  64. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +18 -18
  66. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +6 -6
  68. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +7 -7
  70. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +4 -4
  72. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +10 -10
  74. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +13 -13
  76. package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.js +4 -4
  78. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +3 -3
  80. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +6 -6
  82. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.js +2 -2
  84. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +1 -1
  86. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +8 -8
  88. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +3 -3
  90. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +1 -1
  92. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +8 -8
  94. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +4 -4
  96. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.js +1 -1
  98. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.js +1 -1
  100. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +7 -7
  102. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +5 -5
  104. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  106. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +13 -13
  108. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +7 -7
  110. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +5 -5
  112. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +14 -14
  114. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +8 -8
  116. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +5 -5
  118. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +5 -5
  120. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +7 -7
  122. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +2 -2
  123. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +4 -4
  125. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +5 -5
  127. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +2 -2
  129. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +4 -4
  131. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +8 -8
  133. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +5 -5
  135. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +7 -7
  137. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  138. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +6 -6
  139. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +18 -18
  141. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +5 -5
  143. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +9 -9
  145. package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.js +1 -1
  147. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +8 -8
  149. package/dist/prometheus-framework.cjs.js +1 -1
  150. package/dist/prometheus-framework.es.js +2 -2
  151. package/dist/style.css +1 -1
  152. package/package.json +1 -1
  153. package/src/components/EditImages/EditImages.vue +3 -3
  154. package/src/components/EmptyState/EmptyState.vue +2 -2
  155. package/src/components/Field/Field.svlt +1 -1
  156. package/src/components/Field/Field.vue +1 -1
  157. package/src/components/FieldTags/BlockTags.vue +4 -4
  158. package/src/components/Footer/Footer.vue +8 -8
  159. package/src/components/LocationSelection/LocationSelection.vue +4 -4
  160. package/src/components/Search/Search.vue +3 -3
  161. package/src/configurator/components/layouts/layoutConfigurator.vue +2 -2
  162. package/src/configurator/components/pages/Styles.vue +3 -3
  163. package/src/modules/auth/components/pages/EnterCode.vue +4 -4
  164. package/src/modules/auth/components/pages/EnterPassword.vue +9 -9
  165. package/src/modules/auth/components/pages/Invite.vue +6 -6
  166. package/src/modules/auth/components/pages/ResetPassword.vue +10 -10
  167. package/src/modules/auth/components/pages/SignIn.vue +11 -11
  168. package/src/modules/auth/components/pages/SignUp.vue +11 -11
  169. package/src/modules/auth/components/sections/SliderFeatures.vue +2 -2
  170. package/src/modules/backoffice/components/admin/Categories.vue +2 -2
  171. package/src/modules/backoffice/components/admin/CategoryEdit.vue +2 -2
  172. package/src/modules/backoffice/components/admin/Dashboard.vue +1 -1
  173. package/src/modules/backoffice/components/admin/FastOrders.vue +3 -3
  174. package/src/modules/backoffice/components/admin/PageEdit.vue +3 -3
  175. package/src/modules/backoffice/components/admin/Pages.vue +1 -1
  176. package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
  177. package/src/modules/backoffice/components/admin/User.vue +6 -6
  178. package/src/modules/backoffice/components/admin/Users.vue +4 -4
  179. package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
  180. package/src/modules/backoffice/components/pages/Dashboard.vue +1 -1
  181. package/src/modules/community/components/blocks/CardBlogpost.vue +5 -5
  182. package/src/modules/community/components/layouts/Community.vue +2 -2
  183. package/src/modules/community/components/pages/BlogPost.vue +4 -4
  184. package/src/modules/community/components/pages/Community.vue +2 -2
  185. package/src/modules/community/components/pages/CreateBlogPost.vue +5 -5
  186. package/src/modules/community/components/sections/Comments.vue +5 -5
  187. package/src/modules/community/components/sections/Feed.vue +2 -2
  188. package/src/modules/community/components/sections/JoinUs.vue +2 -2
  189. package/src/modules/community/components/sections/SubscribeNewsletter.vue +3 -3
  190. package/src/modules/constructor/components/elements/Audio.vue +2 -2
  191. package/src/modules/constructor/components/elements/Bullets.vue +1 -1
  192. package/src/modules/constructor/components/elements/Caption.vue +1 -1
  193. package/src/modules/constructor/components/elements/Embed.vue +2 -2
  194. package/src/modules/constructor/components/elements/H2.vue +1 -1
  195. package/src/modules/constructor/components/elements/Image.vue +19 -5
  196. package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
  197. package/src/modules/constructor/components/elements/Textarea.vue +1 -1
  198. package/src/modules/constructor/components/sections/Constructor.vue +4 -4
  199. package/src/modules/events/components/blocks/CardEvent.vue +5 -5
  200. package/src/modules/events/components/layouts/layoutEvents.vue +1 -1
  201. package/src/modules/events/components/pages/EditEvent.vue +12 -12
  202. package/src/modules/events/components/pages/Event.vue +4 -4
  203. package/src/modules/events/components/pages/Events.vue +1 -1
  204. package/src/modules/events/components/sections/Feed.vue +2 -2
  205. package/src/modules/events/components/sections/List.vue +1 -1
  206. package/src/modules/gallery/components/sections/BackofficeGallery.vue +10 -10
  207. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +6 -6
  208. package/src/modules/globals/components/sections/Feed.vue +1 -1
  209. package/src/modules/landing/components/sections/MobileApp.vue +7 -7
  210. package/src/modules/legal/components/pages/Legal.vue +5 -5
  211. package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
  212. package/src/modules/mobile/components/Menu/MenuItem.vue +2 -2
  213. package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
  214. package/src/modules/orders/components/blocks/Positions.vue +8 -8
  215. package/src/modules/orders/components/pages/EditOrder.vue +19 -19
  216. package/src/modules/orders/components/pages/Favorites.vue +2 -2
  217. package/src/modules/orders/components/pages/Order.vue +5 -5
  218. package/src/modules/orders/components/pages/Orders.vue +5 -5
  219. package/src/modules/orders/components/pages/ViewOrder.vue +7 -7
  220. package/src/modules/orders/components/partials/ShopCart.vue +3 -3
  221. package/src/modules/orders/components/sections/Form.vue +12 -12
  222. package/src/modules/orders/components/sections/Succes.vue +4 -4
  223. package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
  224. package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -3
  225. package/src/modules/organizations/components/blocks/Contacts.vue +1 -1
  226. package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +2 -2
  227. package/src/modules/organizations/components/blocks/EditArray.vue +2 -2
  228. package/src/modules/organizations/components/blocks/EmptyState.vue +3 -3
  229. package/src/modules/organizations/components/blocks/Rating.vue +1 -1
  230. package/src/modules/organizations/components/pages/Department.vue +6 -6
  231. package/src/modules/organizations/components/pages/DepartmentEdit.vue +16 -16
  232. package/src/modules/organizations/components/pages/Members.vue +2 -2
  233. package/src/modules/organizations/components/pages/Organization.vue +5 -5
  234. package/src/modules/organizations/components/pages/OrganizationEdit.vue +16 -16
  235. package/src/modules/organizations/components/pages/Organizations.vue +2 -2
  236. package/src/modules/organizations/components/sections/DetailsTab.vue +11 -11
  237. package/src/modules/organizations/components/sections/Documents.vue +4 -4
  238. package/src/modules/organizations/components/sections/Feed.vue +2 -2
  239. package/src/modules/organizations/components/sections/FeedDepartments.vue +2 -2
  240. package/src/modules/organizations/components/sections/MembersAdd.vue +5 -5
  241. package/src/modules/organizations/components/sections/MembersList.vue +2 -2
  242. package/src/modules/organizations/components/sections/Unit.vue +12 -12
  243. package/src/modules/payments/components/pages/Payments.vue +3 -3
  244. package/src/modules/products/components/blocks/CardLeftover.vue +4 -4
  245. package/src/modules/products/components/blocks/CardProduct.vue +3 -3
  246. package/src/modules/products/components/blocks/EditCategories.vue +4 -4
  247. package/src/modules/products/components/blocks/EditFilters.vue +4 -4
  248. package/src/modules/products/components/blocks/LeftoverPositions.vue +1 -1
  249. package/src/modules/products/components/pages/LeftoverAdd.vue +7 -7
  250. package/src/modules/products/components/pages/Leftovers.vue +5 -5
  251. package/src/modules/products/components/pages/OrganizationDetails.vue +4 -4
  252. package/src/modules/products/components/pages/OrganizationDocuments.vue +5 -5
  253. package/src/modules/products/components/pages/OrganizationPeople.vue +5 -5
  254. package/src/modules/products/components/pages/ProductEdit.vue +5 -5
  255. package/src/modules/products/components/pages/ProductRecommmendation.vue +1 -1
  256. package/src/modules/products/components/pages/ProductsBackoffice.vue +2 -2
  257. package/src/modules/products/components/sections/EditModifications.vue +8 -8
  258. package/src/modules/products/components/sections/EditParameters.vue +4 -4
  259. package/src/modules/products/components/sections/EditProductImages.vue +2 -2
  260. package/src/modules/products/components/sections/EditProductInfo.vue +5 -5
  261. package/src/modules/products/components/sections/FilterProducts.vue +9 -9
  262. package/src/modules/products/components/sections/HeroRecommendation.vue +5 -5
  263. package/src/modules/products/components/sections/PopularProducts.vue +1 -1
  264. package/src/modules/products/components/sections/ProductInformationSection.vue +27 -27
  265. package/src/modules/products/components/sections/SectionProduct.vue +6 -6
  266. package/src/modules/products/components/sections/SortProducts.vue +1 -1
  267. package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
  268. package/src/modules/reports/components/sections/FormReport.vue +4 -4
  269. package/src/modules/spots/components/blocks/CardSpot.vue +4 -4
  270. package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
  271. package/src/modules/spots/components/layouts/Spots.vue +3 -3
  272. package/src/modules/spots/components/pages/Spot.vue +4 -4
  273. package/src/modules/spots/components/pages/SpotEdit.vue +16 -16
  274. package/src/modules/spots/components/sections/Feed.vue +2 -2
  275. package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
  276. package/src/modules/spots/components/sections/Places.vue +1 -1
  277. package/src/modules/users/components/pages/Profile.vue +13 -13
  278. package/src/modules/users/components/pages/ProfileBlogposts.vue +2 -2
  279. package/src/modules/users/components/pages/ProfileComments.vue +1 -1
  280. package/src/modules/users/components/pages/ProfileEdit.vue +21 -21
  281. package/src/modules/users/components/pages/ProfileEvents.vue +2 -2
  282. package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
  283. package/src/modules/users/components/pages/ProfileOrganizations.vue +2 -2
  284. package/src/modules/users/components/sections/ProfileCompletion.vue +1 -1
  285. package/src/modules/wallet/components/pages/Wallet.vue +17 -17
  286. package/src/styles/base/all.scss +83 -324
  287. package/src/styles/base/border-radius.scss +47 -0
  288. package/src/styles/base/height.scss +60 -0
  289. package/src/styles/base/scrolling.scss +8 -8
  290. package/src/styles/base/width.scss +2 -0
  291. package/src/styles/config.scss +153 -51
  292. package/src/styles/responsive.scss +2 -2
@@ -1,15 +1,15 @@
1
- import { ref as p, onMounted as U, resolveComponent as k, openBlock as C, createElementBlock as E, createElementVNode as l, createTextVNode as c, toDisplayString as d, unref as o, createVNode as i, withCtx as u, Transition as f, withDirectives as v, vShow as g } from "vue";
1
+ import { ref as p, onMounted as U, resolveComponent as k, openBlock as C, createElementBlock as E, createElementVNode as l, createTextVNode as c, toDisplayString as d, unref as o, createVNode as i, withCtx as u, Transition as f, withDirectives as v, vShow as b } from "vue";
2
2
  import I from "../../../../components/Tab/Tab.vue2.js";
3
- import w from "../../../../components/Field/Field.vue2.js";
3
+ import g from "../../../../components/Field/Field.vue2.js";
4
4
  import D from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
5
  import j from "../../../../components/Button/Button.vue2.js";
6
6
  import { useRoute as F, useRouter as N } from "vue-router";
7
7
  import { useI18n as O } from "vue-i18n";
8
8
  import T from "../../localization/SignIn.json.js";
9
9
  import { state as s, actions as q } from "../../store/auth.js";
10
- import { validateInputs as b, validatePhone as A, validateEmail as B } from "../../../middlewares/client/inputs.validation.js";
10
+ import { validateInputs as w, validatePhone as A, validateEmail as B } from "../../../middlewares/client/inputs.validation.js";
11
11
  import "./SignIn.vue2.js";
12
- const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE__ */ l("br", null, null, -1), z = { class: "t-semi" }, G = { class: "mn-big" }, H = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, J = { class: "pos-relative" }, K = { class: "mn-thin radius-small" }, Q = { class: "mn-thin radius-small o-hidden" }, W = { class: "w-100 mn-big" }, de = {
12
+ const R = { class: "" }, $ = ["src"], L = { class: "mn-b-medium" }, M = /* @__PURE__ */ l("br", null, null, -1), z = { class: "t-semi" }, G = { class: "mn-b-big" }, H = { class: "mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, J = { class: "pos-relative" }, K = { class: "mn-b-thin radius-small" }, Q = { class: "mn-b-thin radius-small o-hidden" }, W = { class: "w-100 mn-b-big" }, de = {
13
13
  __name: "SignIn",
14
14
  setup(X) {
15
15
  const h = p(null), y = p(null), _ = p(null);
@@ -23,12 +23,12 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
23
23
  });
24
24
  async function P() {
25
25
  try {
26
- n.value === "phone" && await b(
26
+ n.value === "phone" && await w(
27
27
  h,
28
28
  A,
29
29
  s.user.phone,
30
30
  "Некорректный телефон"
31
- ), n.value === "email" && await b(
31
+ ), n.value === "email" && await w(
32
32
  _,
33
33
  B,
34
34
  s.user.email,
@@ -54,7 +54,7 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
54
54
  return C(), E("section", R, [
55
55
  l("img", {
56
56
  src: "/logo/logo_square.svg",
57
- class: "i-extra radius-small mn-small"
57
+ class: "i-extra radius-small mn-b-small"
58
58
  }, null, 8, $),
59
59
  l("h3", L, [
60
60
  c(d(o(a)("title")) + " ", 1),
@@ -97,10 +97,10 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
97
97
  validation: h.value,
98
98
  mode: "national",
99
99
  inputOptions: { placeholder: o(a)("phonePlaceholder") },
100
- class: "bg-grey pd-small radius-small mn-thin"
100
+ class: "bg-grey pd-small radius-small mn-b-thin"
101
101
  }, null, 8, ["modelValue", "validation", "inputOptions"])
102
102
  ], 512), [
103
- [g, n.value === "phone"]
103
+ [b, n.value === "phone"]
104
104
  ])
105
105
  ]),
106
106
  _: 1
@@ -108,7 +108,7 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
108
108
  i(f, { name: "slide-fade" }, {
109
109
  default: u(() => [
110
110
  v(l("div", Q, [
111
- i(w, {
111
+ i(g, {
112
112
  field: s.user.email,
113
113
  "onUpdate:field": t[2] || (t[2] = (e) => s.user.email = e),
114
114
  placeholder: o(a)("emailPlaceholder"),
@@ -116,19 +116,19 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
116
116
  class: "bg-grey pd-medium radius-small"
117
117
  }, null, 8, ["field", "placeholder", "validation"])
118
118
  ], 512), [
119
- [g, n.value === "email"]
119
+ [b, n.value === "email"]
120
120
  ])
121
121
  ]),
122
122
  _: 1
123
123
  })
124
124
  ]),
125
- i(w, {
125
+ i(g, {
126
126
  field: s.user.password,
127
127
  "onUpdate:field": t[3] || (t[3] = (e) => s.user.password = e),
128
128
  type: "password",
129
129
  validation: y.value,
130
130
  placeholder: o(a)("passwordPlaceholder"),
131
- class: "bg-grey pd-medium radius-small mn-semi"
131
+ class: "bg-grey pd-medium radius-small mn-b-semi"
132
132
  }, null, 8, ["field", "validation", "placeholder"]),
133
133
  l("div", W, [
134
134
  i(m, {
@@ -144,7 +144,7 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
144
144
  i(j, {
145
145
  submit: P,
146
146
  callback: S,
147
- class: "mn-thin"
147
+ class: "mn-b-thin"
148
148
  }, {
149
149
  default: u(() => [
150
150
  c(d(o(a)("signin")), 1)
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Tab/Tab.vue2.cjs"),f=require("../../../../components/Field/Field.vue2.cjs"),_=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../components/Button/Button.vue2.cjs"),u=require("vue-router"),g=require("vue-i18n"),w=require("../../localization/SignUp.json.cjs"),n=require("../../store/auth.cjs"),N=require("../../store/twofa.cjs"),s=require("../../../middlewares/client/inputs.validation.cjs");require("./SignUp.vue2.cjs");const b={class:"t-left pd-medium"},E={class:"mn-small"},S={class:"mn-small t-transp"},y={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},q={class:"pos-relative"},C={class:"mn-semi radius-small"},D={class:"mn-small t-transp"},x={class:"mn-semi radius-small o-hidden"},T={class:"mn-small t-transp"},k={class:"w-100"},I={__name:"SignUp",setup(P){const{t}=g.useI18n(w.default),i=e.ref(null),r=e.ref(null);u.useRoute();const c=u.useRouter(),a=e.ref("phone");async function m(){try{a.value==="phone"&&await s.validateInputs(i,s.validatePhone,n.state.user.phone,"Некорректный телефон"),a.value==="email"&&await s.validateInputs(r,s.validateEmail,n.state.user.email,"Некорректный email")}catch{throw new Error}try{await N.sendCode(n.state.user,"signup",a.value)}catch{throw new Error}}function p(){c.push({name:"Enter Code"})}return(d,l)=>{const h=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",b,[e.createElementVNode("h3",E,e.toDisplayString(e.unref(t)("title")),1),e.createElementVNode("p",S,e.toDisplayString(e.unref(t)("description")),1),e.createElementVNode("div",y,[e.createVNode(v.default,{selected:a.value,"onUpdate:selected":l[0]||(l[0]=o=>a.value=o),tabs:[{name:e.unref(t)("phone"),value:"phone"},{name:e.unref(t)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",q,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",C,[e.createElementVNode("p",D,e.toDisplayString(e.unref(t)("smsNotice")),1),e.createVNode(_.default,{modelValue:n.state.user.phone,"onUpdate:modelValue":l[1]||(l[1]=o=>n.state.user.phone=o),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:i.value,mode:"national",inputOptions:{placeholder:e.unref(t)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,a.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",x,[e.createElementVNode("p",T,e.toDisplayString(e.unref(t)("emailNotice")),1),e.createVNode(f.default,{field:n.state.user.email,"onUpdate:field":l[2]||(l[2]=o=>n.state.user.email=o),placeholder:e.unref(t)("emailPlaceholder"),validation:r.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,a.value==="email"]])]),_:1})]),e.createVNode(V.default,{submit:m,callback:p,class:"mn-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1}),e.createElementVNode("div",k,[e.createVNode(h,{to:"/auth/signin",class:"underline mn-medium d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("haveAccount")),1)]),_:1})])])}}};exports.default=I;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Tab/Tab.vue2.cjs"),f=require("../../../../components/Field/Field.vue2.cjs"),_=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),b=require("../../../../components/Button/Button.vue2.cjs"),u=require("vue-router"),V=require("vue-i18n"),g=require("../../localization/SignUp.json.cjs"),n=require("../../store/auth.cjs"),w=require("../../store/twofa.cjs"),s=require("../../../middlewares/client/inputs.validation.cjs");require("./SignUp.vue2.cjs");const N={class:"t-left pd-medium"},E={class:"mn-b-small"},S={class:"mn-b-small t-transp"},y={class:"mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden"},q={class:"pos-relative"},C={class:"mn-b-semi radius-small"},D={class:"mn-b-small t-transp"},x={class:"mn-b-semi radius-small o-hidden"},T={class:"mn-b-small t-transp"},k={class:"w-100"},I={__name:"SignUp",setup(P){const{t}=V.useI18n(g.default),i=e.ref(null),r=e.ref(null);u.useRoute();const c=u.useRouter(),a=e.ref("phone");async function m(){try{a.value==="phone"&&await s.validateInputs(i,s.validatePhone,n.state.user.phone,"Некорректный телефон"),a.value==="email"&&await s.validateInputs(r,s.validateEmail,n.state.user.email,"Некорректный email")}catch{throw new Error}try{await w.sendCode(n.state.user,"signup",a.value)}catch{throw new Error}}function p(){c.push({name:"Enter Code"})}return(d,l)=>{const h=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",N,[e.createElementVNode("h3",E,e.toDisplayString(e.unref(t)("title")),1),e.createElementVNode("p",S,e.toDisplayString(e.unref(t)("description")),1),e.createElementVNode("div",y,[e.createVNode(v.default,{selected:a.value,"onUpdate:selected":l[0]||(l[0]=o=>a.value=o),tabs:[{name:e.unref(t)("phone"),value:"phone"},{name:e.unref(t)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",q,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",C,[e.createElementVNode("p",D,e.toDisplayString(e.unref(t)("smsNotice")),1),e.createVNode(_.default,{modelValue:n.state.user.phone,"onUpdate:modelValue":l[1]||(l[1]=o=>n.state.user.phone=o),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:i.value,mode:"national",inputOptions:{placeholder:e.unref(t)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,a.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",x,[e.createElementVNode("p",T,e.toDisplayString(e.unref(t)("emailNotice")),1),e.createVNode(f.default,{field:n.state.user.email,"onUpdate:field":l[2]||(l[2]=o=>n.state.user.email=o),placeholder:e.unref(t)("emailPlaceholder"),validation:r.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,a.value==="email"]])]),_:1})]),e.createVNode(b.default,{submit:m,callback:p,class:"mn-b-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1}),e.createElementVNode("div",k,[e.createVNode(h,{to:"/auth/signin",class:"underline mn-b-medium d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("haveAccount")),1)]),_:1})])])}}};exports.default=I;
@@ -8,22 +8,22 @@ import { useI18n as U } from "vue-i18n";
8
8
  import F from "../../localization/SignUp.json.js";
9
9
  import { state as s } from "../../store/auth.js";
10
10
  import { sendCode as O } from "../../store/twofa.js";
11
- import { validateInputs as w, validatePhone as T, validateEmail as A } from "../../../middlewares/client/inputs.validation.js";
11
+ import { validateInputs as b, validatePhone as T, validateEmail as A } from "../../../middlewares/client/inputs.validation.js";
12
12
  import "./SignUp.vue2.js";
13
- const B = { class: "t-left pd-medium" }, R = { class: "mn-small" }, $ = { class: "mn-small t-transp" }, L = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, j = { class: "pos-relative" }, q = { class: "mn-semi radius-small" }, z = { class: "mn-small t-transp" }, G = { class: "mn-semi radius-small o-hidden" }, H = { class: "mn-small t-transp" }, J = { class: "w-100" }, ie = {
13
+ const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { class: "mn-b-small t-transp" }, L = { class: "mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, j = { class: "pos-relative" }, q = { class: "mn-b-semi radius-small" }, z = { class: "mn-b-small t-transp" }, G = { class: "mn-b-semi radius-small o-hidden" }, H = { class: "mn-b-small t-transp" }, J = { class: "w-100" }, ie = {
14
14
  __name: "SignUp",
15
15
  setup(K) {
16
16
  const { t: e } = U(F), u = d(null), c = d(null);
17
17
  I();
18
- const b = P(), l = d("phone");
18
+ const w = P(), l = d("phone");
19
19
  async function g() {
20
20
  try {
21
- l.value === "phone" && await w(
21
+ l.value === "phone" && await b(
22
22
  u,
23
23
  T,
24
24
  s.user.phone,
25
25
  "Некорректный телефон"
26
- ), l.value === "email" && await w(
26
+ ), l.value === "email" && await b(
27
27
  c,
28
28
  A,
29
29
  s.user.email,
@@ -39,7 +39,7 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-small" }, $ = { class:
39
39
  }
40
40
  }
41
41
  function V() {
42
- b.push({ name: "Enter Code" });
42
+ w.push({ name: "Enter Code" });
43
43
  }
44
44
  return (p, i) => {
45
45
  const y = C("router-link");
@@ -72,7 +72,7 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-small" }, $ = { class:
72
72
  validation: u.value,
73
73
  mode: "national",
74
74
  inputOptions: { placeholder: t(e)("phonePlaceholder") },
75
- class: "bg-grey pd-small radius-small mn-thin"
75
+ class: "bg-grey pd-small radius-small mn-b-thin"
76
76
  }, null, 8, ["modelValue", "validation", "inputOptions"])
77
77
  ], 512), [
78
78
  [f, l.value === "phone"]
@@ -101,7 +101,7 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-small" }, $ = { class:
101
101
  a(D, {
102
102
  submit: g,
103
103
  callback: V,
104
- class: "mn-big"
104
+ class: "mn-b-big"
105
105
  }, {
106
106
  default: m(() => [
107
107
  v(n(t(e)("sendCode")), 1)
@@ -111,7 +111,7 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-small" }, $ = { class:
111
111
  o("div", J, [
112
112
  a(y, {
113
113
  to: "/auth/signin",
114
- class: "underline mn-medium d-block t-blue"
114
+ class: "underline mn-b-medium d-block t-blue"
115
115
  }, {
116
116
  default: m(() => [
117
117
  v(n(t(e)("haveAccount")), 1)
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../../../node_modules/vue3-carousel/dist/carousel.css.cjs");const l=require("vue-i18n"),s=require("../../../../../../node_modules/vue3-carousel/dist/carousel.es.cjs");require("./SliderFeatures.vue2.cjs");const u={class:"parent-div"},c={class:"mn-small"},d={class:"mn-big mn-r-small mn-l-small"},p={__name:"SliderFeatures",setup(m){const t=e.ref(null),n={messages:{en:{features:[{title:"What's the Weeder Token, Dude?",description:"WDT is like, the backbone of our rad community. It's cash, it's power, it's an investment. Groovy, right?"},{title:"Light Up and Level Up",description:"Order up, light up, and earn Weeder tokens. More tokes, more cash in your pocket, man."},{title:"Hang Ten with Our Community",description:"Find the dopest strains and start floating on cloud 9 with us!"},{title:"Shop 'Til You Drop... Into Your Couch",description:"Score primo bud and gear with just a few clicks. Delivered right to your pad!"}]},ru:{features:[{title:"Что такое токен Weeder, Бро?",description:"WDT - это как основа нашего крутого сообщества. Это деньги, это власть, это инвестиции. Круто, а?"},{title:"Зажигай и Развивайся",description:"Закажи шмали, курни и зарабатывай токены Weeder. Чем больше курнешь, тем больше кэша у тебя в кармане, чувак."},{title:"Веселись с Нашим Сообществом",description:"Найди самые крутые сорта и начни шмалить на девятом облаке вместе с нами."},{title:"Покупайте, Когда Накурились",description:"Закажи премиумную бошку и крутые аксессуары за пару кликов, чувак. Прямо к твоей двери!"}]}}},{tm:i,rt:g}=l.useI18n(n),a=e.ref(!1);return e.onMounted(()=>{setTimeout(()=>{t.value.restartCarousel(),a.value=!0},"500")}),(h,f)=>(e.openBlock(),e.createBlock(e.unref(s.Carousel),{ref_key:"ImagesSlider",ref:t,"items-to-show":1,wrapAround:!0,transition:330,autoplay:3e3,pauseAutoplayOnHover:!0,class:"bg-grey w-100"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i)("features"),(r,o)=>(e.openBlock(),e.createBlock(e.unref(s.Slide),{key:o,class:"w-100 flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("div",u,[e.createElementVNode("div",{class:"background-div",style:e.normalizeStyle(`background-image: url(/assets/images/features/${o}.png); background-size: auto 100%; background-repeat: no-repeat; background-position: center center;`)},null,4),e.createElementVNode("h4",c,e.toDisplayString(r.title),1),e.createElementVNode("p",d,e.toDisplayString(r.description),1)])]),_:2},1024))),128))]),_:1},512))}};exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../../../node_modules/vue3-carousel/dist/carousel.css.cjs");const l=require("vue-i18n"),s=require("../../../../../../node_modules/vue3-carousel/dist/carousel.es.cjs");require("./SliderFeatures.vue2.cjs");const u={class:"parent-div"},c={class:"mn-b-small"},d={class:"mn-b-big mn-r-small mn-l-small"},p={__name:"SliderFeatures",setup(m){const t=e.ref(null),n={messages:{en:{features:[{title:"What's the Weeder Token, Dude?",description:"WDT is like, the backbone of our rad community. It's cash, it's power, it's an investment. Groovy, right?"},{title:"Light Up and Level Up",description:"Order up, light up, and earn Weeder tokens. More tokes, more cash in your pocket, man."},{title:"Hang Ten with Our Community",description:"Find the dopest strains and start floating on cloud 9 with us!"},{title:"Shop 'Til You Drop... Into Your Couch",description:"Score primo bud and gear with just a few clicks. Delivered right to your pad!"}]},ru:{features:[{title:"Что такое токен Weeder, Бро?",description:"WDT - это как основа нашего крутого сообщества. Это деньги, это власть, это инвестиции. Круто, а?"},{title:"Зажигай и Развивайся",description:"Закажи шмали, курни и зарабатывай токены Weeder. Чем больше курнешь, тем больше кэша у тебя в кармане, чувак."},{title:"Веселись с Нашим Сообществом",description:"Найди самые крутые сорта и начни шмалить на девятом облаке вместе с нами."},{title:"Покупайте, Когда Накурились",description:"Закажи премиумную бошку и крутые аксессуары за пару кликов, чувак. Прямо к твоей двери!"}]}}},{tm:i,rt:g}=l.useI18n(n),a=e.ref(!1);return e.onMounted(()=>{setTimeout(()=>{t.value.restartCarousel(),a.value=!0},"500")}),(h,f)=>(e.openBlock(),e.createBlock(e.unref(s.Carousel),{ref_key:"ImagesSlider",ref:t,"items-to-show":1,wrapAround:!0,transition:330,autoplay:3e3,pauseAutoplayOnHover:!0,class:"bg-grey w-100"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i)("features"),(r,o)=>(e.openBlock(),e.createBlock(e.unref(s.Slide),{key:o,class:"w-100 flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("div",u,[e.createElementVNode("div",{class:"background-div",style:e.normalizeStyle(`background-image: url(/assets/images/features/${o}.png); background-size: auto 100%; background-repeat: no-repeat; background-position: center center;`)},null,4),e.createElementVNode("h4",c,e.toDisplayString(r.title),1),e.createElementVNode("p",d,e.toDisplayString(r.description),1)])]),_:2},1024))),128))]),_:1},512))}};exports.default=p;
@@ -1,9 +1,9 @@
1
1
  import { ref as n, onMounted as m, openBlock as t, createBlock as a, unref as r, withCtx as l, createElementBlock as g, Fragment as h, renderList as f, createElementVNode as e, normalizeStyle as k, toDisplayString as u } from "vue";
2
2
  import "../../../../../../node_modules/vue3-carousel/dist/carousel.css.js";
3
3
  import { useI18n as _ } from "vue-i18n";
4
- import { Carousel as y, Slide as v } from "../../../../../../node_modules/vue3-carousel/dist/carousel.es.js";
4
+ import { Carousel as y, Slide as b } from "../../../../../../node_modules/vue3-carousel/dist/carousel.es.js";
5
5
  import "./SliderFeatures.vue2.js";
6
- const b = { class: "parent-div" }, w = { class: "mn-small" }, S = { class: "mn-big mn-r-small mn-l-small" }, O = {
6
+ const v = { class: "parent-div" }, w = { class: "mn-b-small" }, S = { class: "mn-b-big mn-r-small mn-l-small" }, O = {
7
7
  __name: "SliderFeatures",
8
8
  setup(W) {
9
9
  const o = n(null), c = {
@@ -65,12 +65,12 @@ const b = { class: "parent-div" }, w = { class: "mn-small" }, S = { class: "mn-b
65
65
  class: "bg-grey w-100"
66
66
  }, {
67
67
  default: l(() => [
68
- (t(!0), g(h, null, f(r(d)("features"), (s, i) => (t(), a(r(v), {
68
+ (t(!0), g(h, null, f(r(d)("features"), (s, i) => (t(), a(r(b), {
69
69
  key: i,
70
70
  class: "w-100 flex-v-center flex"
71
71
  }, {
72
72
  default: l(() => [
73
- e("div", b, [
73
+ e("div", v, [
74
74
  e("div", {
75
75
  class: "background-div",
76
76
  style: k(`background-image: url(/assets/images/features/${i}.png); background-size: auto 100%; background-repeat: no-repeat; background-position: center center;`)
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../mobile/components/Menu/Menu.vue2.cjs"),n=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),o=require("vue-router"),i={class:""},l=e.createElementVNode("h1",{class:"mn-small"},"Your Backoffice",-1),d=e.createElementVNode("span",null," Organizations ",-1),f=e.createElementVNode("span",null," Events ",-1),c=e.createElementVNode("span",null," Community ",-1),p=e.createElementVNode("span",null," Products ",-1),m=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),k=e.createElementVNode("span",null," Payments ",-1),C=e.createElementVNode("span",null," Gallery ",-1),N=e.createElementVNode("span",null," Reports ",-1),V={__name:"Dashboard",props:{favorites:Array},setup(v){const r=o.useRoute(),s=o.useRouter();return(h,t)=>(e.openBlock(),e.createElementBlock("div",i,[l,e.createVNode(u.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[0]||(t[0]=a=>e.unref(s).push({name:"Backoffice Organizations",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(n.default,{onClick:t[1]||(t[1]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[f]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=a=>e.unref(s).push({name:"Backoffice Community",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=a=>e.unref(s).push({name:"Backoffice Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[p]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=a=>e.unref(s).push({name:"Backoffice Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=a=>e.unref(s).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[_]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=a=>e.unref(s).push({name:"Backoffice Payments",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=a=>e.unref(s).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[C]),_:1}),e.createVNode(n.default,{onClick:t[8]||(t[8]=a=>e.unref(s).push({name:"Backoffice Reports",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1})]),_:1})]))}};exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../mobile/components/Menu/Menu.vue2.cjs"),n=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),o=require("vue-router"),i={class:""},l=e.createElementVNode("h1",{class:"mn-b-small"},"Your Backoffice",-1),d=e.createElementVNode("span",null," Organizations ",-1),f=e.createElementVNode("span",null," Events ",-1),c=e.createElementVNode("span",null," Community ",-1),p=e.createElementVNode("span",null," Products ",-1),m=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),k=e.createElementVNode("span",null," Payments ",-1),C=e.createElementVNode("span",null," Gallery ",-1),N=e.createElementVNode("span",null," Reports ",-1),V={__name:"Dashboard",props:{favorites:Array},setup(v){const r=o.useRoute(),s=o.useRouter();return(h,t)=>(e.openBlock(),e.createElementBlock("div",i,[l,e.createVNode(u.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[0]||(t[0]=a=>e.unref(s).push({name:"Backoffice Organizations",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(n.default,{onClick:t[1]||(t[1]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[f]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=a=>e.unref(s).push({name:"Backoffice Community",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=a=>e.unref(s).push({name:"Backoffice Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[p]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=a=>e.unref(s).push({name:"Backoffice Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=a=>e.unref(s).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[_]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=a=>e.unref(s).push({name:"Backoffice Payments",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=a=>e.unref(s).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[C]),_:1}),e.createVNode(n.default,{onClick:t[8]||(t[8]=a=>e.unref(s).push({name:"Backoffice Reports",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1})]),_:1})]))}};exports.default=V;
@@ -2,7 +2,7 @@ import { openBlock as p, createElementBlock as u, createVNode as e, withCtx as a
2
2
  import m from "../../../mobile/components/Menu/Menu.vue2.js";
3
3
  import i from "../../../mobile/components/Menu/MenuItem.vue.js";
4
4
  import { useRoute as d, useRouter as _ } from "vue-router";
5
- const f = { class: "" }, c = /* @__PURE__ */ n("h1", { class: "mn-small" }, "Your Backoffice", -1), k = /* @__PURE__ */ n("span", null, " Organizations ", -1), v = /* @__PURE__ */ n("span", null, " Events ", -1), B = /* @__PURE__ */ n("span", null, " Community ", -1), C = /* @__PURE__ */ n("span", null, " Products ", -1), $ = /* @__PURE__ */ n("span", null, " Leftovers ", -1), y = /* @__PURE__ */ n("span", null, " Orders ", -1), h = /* @__PURE__ */ n("span", null, " Payments ", -1), g = /* @__PURE__ */ n("span", null, " Gallery ", -1), E = /* @__PURE__ */ n("span", null, " Reports ", -1), G = {
5
+ const f = { class: "" }, c = /* @__PURE__ */ n("h1", { class: "mn-b-small" }, "Your Backoffice", -1), k = /* @__PURE__ */ n("span", null, " Organizations ", -1), v = /* @__PURE__ */ n("span", null, " Events ", -1), B = /* @__PURE__ */ n("span", null, " Community ", -1), C = /* @__PURE__ */ n("span", null, " Products ", -1), $ = /* @__PURE__ */ n("span", null, " Leftovers ", -1), y = /* @__PURE__ */ n("span", null, " Orders ", -1), h = /* @__PURE__ */ n("span", null, " Payments ", -1), g = /* @__PURE__ */ n("span", null, " Gallery ", -1), E = /* @__PURE__ */ n("span", null, " Reports ", -1), G = {
6
6
  __name: "Dashboard",
7
7
  props: {
8
8
  favorites: Array
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../globals/components/blocks/CardHeader.vue.cjs"),i=require("./FooterBlogpost.vue.cjs"),d=require("../../../../components/Chips/Chips.vue.cjs"),m=require("../../../icons/navigation/IconEdit.vue.cjs"),g=require("vue-router"),p={class:"pos-relative bg-grey radius-big"},b=["src"],y={class:"pd-t-zero pd-medium"},k={key:0,class:"cursor-pointer mn-thin flex-nowrap flex w-100"},h={key:0,class:"pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"},f={key:1,class:"mn-small t-transp p-big"},B={key:2,class:"mn-small h2"},v={__name:"CardBlogpost",props:["blogpost","user","type"],setup(t){const a=g.useRouter(),n=t,s=e.computed(()=>n.blogpost.content.find(o=>o.type==="ImageUpload")),r=e.computed(()=>n.blogpost.content.find(o=>o.type==="Textarea"));return(o,l)=>(e.openBlock(),e.createElementBlock("article",p,[t.user&&t.user===t.blogpost.creator.target._id?(e.openBlock(),e.createBlock(m.default,{key:0,onClick:l[0]||(l[0]=e.withModifiers(c=>o.$router.push({name:"Edit BlogPost",params:{url:t.blogpost.url}}),["stop"])),class:"z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),e.createVNode(u.default,{class:e.normalizeClass({"mn-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),entity:t.blogpost,entityType:"blogpost",user:t.user,owner:t.blogpost.owner,creator:t.blogpost.creator,date:t.blogpost.createdAt},null,8,["class","entity","user","owner","creator","date"]),s.value&&s.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:1,src:(o.FILE_SERVER_URL||"")+s.value.content,alt:"Blog post image",class:"mn-medium object-fit-cover w-100 h-20r"},null,8,b)):e.createCommentVNode("",!0),e.createElementVNode("section",y,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("h3",{onClick:l[1]||(l[1]=c=>e.unref(a).push({name:"BlogPost",params:{url:t.blogpost.url}})),class:""},e.toDisplayString(t.blogpost.name),1),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",h,e.toDisplayString(t.blogpost.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r.value&&r.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("p",f,e.toDisplayString(r.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"?(e.openBlock(),e.createElementBlock("h3",B,e.toDisplayString(t.blogpost.name),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default"),t.type!=="short"&&t.blogpost.tags.length>0?(e.openBlock(),e.createBlock(d.default,{key:3,chips:t.blogpost.tags},null,8,["chips"])):e.createCommentVNode("",!0)]),e.createVNode(i.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])]))}};exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../globals/components/blocks/CardHeader.vue.cjs"),i=require("./FooterBlogpost.vue.cjs"),d=require("../../../../components/Chips/Chips.vue.cjs"),m=require("../../../icons/navigation/IconEdit.vue.cjs"),g=require("vue-router"),p={class:"pos-relative bg-grey radius-big"},b=["src"],y={class:"pd-t-zero pd-medium"},k={key:0,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},h={key:0,class:"pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"},f={key:1,class:"mn-b-small t-transp p-big"},B={key:2,class:"mn-b-small h2"},v={__name:"CardBlogpost",props:["blogpost","user","type"],setup(t){const a=g.useRouter(),n=t,s=e.computed(()=>n.blogpost.content.find(o=>o.type==="ImageUpload")),r=e.computed(()=>n.blogpost.content.find(o=>o.type==="Textarea"));return(o,l)=>(e.openBlock(),e.createElementBlock("article",p,[t.user&&t.user===t.blogpost.creator.target._id?(e.openBlock(),e.createBlock(m.default,{key:0,onClick:l[0]||(l[0]=e.withModifiers(c=>o.$router.push({name:"Edit BlogPost",params:{url:t.blogpost.url}}),["stop"])),class:"z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),e.createVNode(u.default,{class:e.normalizeClass({"mn-b-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),entity:t.blogpost,entityType:"blogpost",user:t.user,owner:t.blogpost.owner,creator:t.blogpost.creator,date:t.blogpost.createdAt},null,8,["class","entity","user","owner","creator","date"]),s.value&&s.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:1,src:(o.FILE_SERVER_URL||"")+s.value.content,alt:"Blog post image",class:"mn-b-medium object-fit-cover w-100 h-20r"},null,8,b)):e.createCommentVNode("",!0),e.createElementVNode("section",y,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("h3",{onClick:l[1]||(l[1]=c=>e.unref(a).push({name:"BlogPost",params:{url:t.blogpost.url}})),class:""},e.toDisplayString(t.blogpost.name),1),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",h,e.toDisplayString(t.blogpost.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r.value&&r.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("p",f,e.toDisplayString(r.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"?(e.openBlock(),e.createElementBlock("h3",B,e.toDisplayString(t.blogpost.name),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default"),t.type!=="short"&&t.blogpost.tags.length>0?(e.openBlock(),e.createBlock(d.default,{key:3,chips:t.blogpost.tags},null,8,["chips"])):e.createCommentVNode("",!0)]),e.createVNode(i.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])]))}};exports.default=v;
@@ -6,25 +6,25 @@ import B from "../../../icons/navigation/IconEdit.vue.js";
6
6
  import { useRouter as E } from "vue-router";
7
7
  const $ = { class: "pos-relative bg-grey radius-big" }, P = ["src"], C = { class: "pd-t-zero pd-medium" }, z = {
8
8
  key: 0,
9
- class: "cursor-pointer mn-thin flex-nowrap flex w-100"
9
+ class: "cursor-pointer mn-b-thin flex-nowrap flex w-100"
10
10
  }, I = {
11
11
  key: 0,
12
12
  class: "pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"
13
13
  }, R = {
14
14
  key: 1,
15
- class: "mn-small t-transp p-big"
15
+ class: "mn-b-small t-transp p-big"
16
16
  }, V = {
17
17
  key: 2,
18
- class: "mn-small h2"
18
+ class: "mn-b-small h2"
19
19
  }, A = {
20
20
  __name: "CardBlogpost",
21
21
  props: ["blogpost", "user", "type"],
22
22
  setup(t) {
23
- const p = E(), c = t, n = u(() => c.blogpost.content.find((o) => o.type === "ImageUpload")), i = u(() => c.blogpost.content.find((o) => o.type === "Textarea"));
23
+ const b = E(), c = t, n = u(() => c.blogpost.content.find((o) => o.type === "ImageUpload")), i = u(() => c.blogpost.content.find((o) => o.type === "Textarea"));
24
24
  return (o, r) => (e(), l("article", $, [
25
25
  t.user && t.user === t.blogpost.creator.target._id ? (e(), m(B, {
26
26
  key: 0,
27
- onClick: r[0] || (r[0] = f((b) => o.$router.push({
27
+ onClick: r[0] || (r[0] = f((p) => o.$router.push({
28
28
  name: "Edit BlogPost",
29
29
  params: {
30
30
  url: t.blogpost.url
@@ -34,7 +34,7 @@ const $ = { class: "pos-relative bg-grey radius-big" }, P = ["src"], C = { class
34
34
  })) : s("", !0),
35
35
  g(v, {
36
36
  class: y({
37
- "mn-small pd-medium": t.type !== "short",
37
+ "mn-b-small pd-medium": t.type !== "short",
38
38
  "flex-child-order-last flex-child mn-l-small": t.type === "short"
39
39
  }),
40
40
  entity: t.blogpost,
@@ -48,12 +48,12 @@ const $ = { class: "pos-relative bg-grey radius-big" }, P = ["src"], C = { class
48
48
  key: 1,
49
49
  src: (o.FILE_SERVER_URL || "") + n.value.content,
50
50
  alt: "Blog post image",
51
- class: "mn-medium object-fit-cover w-100 h-20r"
51
+ class: "mn-b-medium object-fit-cover w-100 h-20r"
52
52
  }, null, 8, P)) : s("", !0),
53
53
  d("section", C, [
54
54
  t.type !== "blogpostPage" ? (e(), l("div", z, [
55
55
  d("h3", {
56
- onClick: r[1] || (r[1] = (b) => h(p).push({
56
+ onClick: r[1] || (r[1] = (p) => h(b).push({
57
57
  name: "BlogPost",
58
58
  params: {
59
59
  url: t.blogpost.url
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),u=require("../../../../components/Select/Select.vue2.cjs"),a=require("../../store/blogposts.cjs"),c=require("../../../auth/store/auth.cjs"),m={class:"min-h-100vh pd-thin"},d={class:"mn-thin flex-v-center t-left flex-nowrap flex"},p={class:"flex-v-center flex-nowrap flex t-left"},f=e.createElementVNode("span",{class:""},"Topics for ",-1),g={class:"w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex"},h={class:""},w={__name:"Community",setup(k){const l=n.useRoute(),r=n.useRouter();return(y,t)=>{const s=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",d,[e.createElementVNode("h2",p,[f,e.createVNode(u.default,{options:["today","week","month","year"],select:a.state.filter.period,"onUpdate:select":t[0]||(t[0]=o=>a.state.filter.period=o),placeholder:"Select type",class:"w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createElementVNode("ul",g,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="featured"},"t-medium pd-thin radius-small"]),onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="popular"},"t-medium pd-thin radius-small"]),onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="new"},"t-medium pd-thin radius-small"]),onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),c.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="following"},"t-medium pd-thin radius-small"]),onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",h,[e.createVNode(s,null,{default:e.withCtx(({Component:o,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:i.query}))]),_:2},1024)]),_:1})])])}}};exports.default=w;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),u=require("../../../../components/Select/Select.vue2.cjs"),a=require("../../store/blogposts.cjs"),c=require("../../../auth/store/auth.cjs"),m={class:"min-h-100vh pd-thin"},d={class:"mn-b-thin flex-v-center t-left flex-nowrap flex"},p={class:"flex-v-center flex-nowrap flex t-left"},f=e.createElementVNode("span",{class:""},"Topics for ",-1),g={class:"w-100 bg-grey pd-small radius-big mn-b-semi gap-thin flex-nowrap flex"},h={class:""},w={__name:"Community",setup(k){const l=n.useRoute(),r=n.useRouter();return(y,t)=>{const s=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",d,[e.createElementVNode("h2",p,[f,e.createVNode(u.default,{options:["today","week","month","year"],select:a.state.filter.period,"onUpdate:select":t[0]||(t[0]=o=>a.state.filter.period=o),placeholder:"Select type",class:"w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createElementVNode("ul",g,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="featured"},"t-medium pd-thin radius-small"]),onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="popular"},"t-medium pd-thin radius-small"]),onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="new"},"t-medium pd-thin radius-small"]),onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),c.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="following"},"t-medium pd-thin radius-small"]),onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",h,[e.createVNode(s,null,{default:e.withCtx(({Component:o,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:i.query}))]),_:2},1024)]),_:1})])])}}};exports.default=w;
@@ -3,7 +3,7 @@ import { useRoute as _, useRouter as k } from "vue-router";
3
3
  import b from "../../../../components/Select/Select.vue2.js";
4
4
  import { state as c } from "../../store/blogposts.js";
5
5
  import { state as v } from "../../../auth/store/auth.js";
6
- const x = { class: "min-h-100vh pd-thin" }, C = { class: "mn-thin flex-v-center t-left flex-nowrap flex" }, B = { class: "flex-v-center flex-nowrap flex t-left" }, $ = /* @__PURE__ */ o("span", { class: "" }, "Topics for ", -1), N = { class: "w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex" }, V = { class: "" }, D = {
6
+ const x = { class: "min-h-100vh pd-thin" }, C = { class: "mn-b-thin flex-v-center t-left flex-nowrap flex" }, B = { class: "flex-v-center flex-nowrap flex t-left" }, $ = /* @__PURE__ */ o("span", { class: "" }, "Topics for ", -1), N = { class: "w-100 bg-grey pd-small radius-big mn-b-semi gap-thin flex-nowrap flex" }, V = { class: "" }, D = {
7
7
  __name: "Community",
8
8
  setup(E) {
9
9
  const s = _(), a = k();
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const p=require("../../../../components/EmptyState/EmptyState.vue.cjs"),d=require("../blocks/CardBlogpost.vue.cjs"),m=require("../../../icons/skeletons/SkeletonBlogpost.vue.cjs"),g=require("../../../organizations/components/sections/Publics.vue.cjs"),f=require("../sections/Comments.vue.cjs"),v=require("../../../constructor/components/elements/Image.vue.cjs"),y=require("../../store/blogposts.cjs"),a=require("../../../auth/store/auth.cjs"),B=require("vue-router"),C={class:"pd-thin"},k={__name:"BlogPost",setup(_){const u=B.useRoute(),r=e.ref(null),o=e.ref(!0);e.onMounted(async()=>{o.value=!0;const t=await y.read({user:a.state.user._id,url:u.params.url});r.value=t[0],o.value=!1});const c={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:v.default};function i(t){return t.type==="Textarea"?{innerHTML:t.content,class:"p-medium"}:t.type==="H2"?{innerHTML:t.content,class:"h3"}:t.type==="Caption"?{innerHTML:t.content}:t.type==="ImageUpload"?{src:t.content}:{}}return(t,s)=>(e.openBlock(),e.createElementBlock("section",C,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,n=>e.createVNode(m.default,{key:n})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!o.value&&!r.value?(e.openBlock(),e.createBlock(p.default,{key:0,title:"No Blogpost Found",description:"Currently, there are no blogposts available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!o.value&&r.value?(e.openBlock(),e.createBlock(d.default,{key:0,onClick:s[0]||(s[0]=n=>t.$router.push({name:"Blogpost",params:{url:r.value.url}})),blogpost:r.value,user:a.state.user._id,type:"blogpostPage",class:e.normalizeClass(["mn-medium",{"br-b br-solid br-black-transp-10":t.index!==r.value.length-1}])},{default:e.withCtx(()=>[e.createElementVNode("section",null,[r.value&&r.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value.content,(n,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[n.type]),e.mergeProps({key:l,index:l,component:n,prop:n,class:n.class,content:"content"},i(n),{class:"mn-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["blogpost","user","class"])):e.createCommentVNode("",!0),e.createVNode(g.default,{class:"mn-small"}),!o.value&&r.value?(e.openBlock(),e.createBlock(f.default,{key:1,type:"blogpost",target:r.value._id,owner:a.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=k;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const p=require("../../../../components/EmptyState/EmptyState.vue.cjs"),d=require("../blocks/CardBlogpost.vue.cjs"),m=require("../../../icons/skeletons/SkeletonBlogpost.vue.cjs"),g=require("../../../organizations/components/sections/Publics.vue.cjs"),f=require("../sections/Comments.vue.cjs"),v=require("../../../constructor/components/elements/Image.vue.cjs"),y=require("../../store/blogposts.cjs"),a=require("../../../auth/store/auth.cjs"),B=require("vue-router"),C={class:"pd-thin"},k={__name:"BlogPost",setup(_){const u=B.useRoute(),r=e.ref(null),o=e.ref(!0);e.onMounted(async()=>{o.value=!0;const t=await y.read({user:a.state.user._id,url:u.params.url});r.value=t[0],o.value=!1});const c={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:v.default};function i(t){return t.type==="Textarea"?{innerHTML:t.content,class:"p-medium"}:t.type==="H2"?{innerHTML:t.content,class:"h3"}:t.type==="Caption"?{innerHTML:t.content}:t.type==="ImageUpload"?{src:t.content}:{}}return(t,s)=>(e.openBlock(),e.createElementBlock("section",C,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,n=>e.createVNode(m.default,{key:n})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!o.value&&!r.value?(e.openBlock(),e.createBlock(p.default,{key:0,title:"No Blogpost Found",description:"Currently, there are no blogposts available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!o.value&&r.value?(e.openBlock(),e.createBlock(d.default,{key:0,onClick:s[0]||(s[0]=n=>t.$router.push({name:"Blogpost",params:{url:r.value.url}})),blogpost:r.value,user:a.state.user._id,type:"blogpostPage",class:e.normalizeClass(["mn-b-medium",{"br-b br-solid br-black-transp-10":t.index!==r.value.length-1}])},{default:e.withCtx(()=>[e.createElementVNode("section",null,[r.value&&r.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value.content,(n,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[n.type]),e.mergeProps({key:l,index:l,component:n,prop:n,class:n.class,content:"content"},i(n),{class:"mn-b-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["blogpost","user","class"])):e.createCommentVNode("",!0),e.createVNode(g.default,{class:"mn-b-small"}),!o.value&&r.value?(e.openBlock(),e.createBlock(f.default,{key:1,type:"blogpost",target:r.value._id,owner:a.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=k;
@@ -1,4 +1,4 @@
1
- import { ref as d, onMounted as B, openBlock as n, createElementBlock as i, createVNode as o, TransitionGroup as f, withCtx as l, Fragment as g, renderList as _, createCommentVNode as s, Transition as C, createBlock as u, normalizeClass as T, createElementVNode as $, resolveDynamicComponent as b, mergeProps as k } from "vue";
1
+ import { ref as d, onMounted as h, openBlock as n, createElementBlock as i, createVNode as o, TransitionGroup as f, withCtx as l, Fragment as g, renderList as _, createCommentVNode as s, Transition as B, createBlock as u, normalizeClass as C, createElementVNode as T, resolveDynamicComponent as $, mergeProps as k } from "vue";
2
2
  import "../../../../components/Loader/Loader.vue.js";
3
3
  import x from "../../../../components/EmptyState/EmptyState.vue.js";
4
4
  import H from "../blocks/CardBlogpost.vue.js";
@@ -13,7 +13,7 @@ const E = { class: "pd-thin" }, K = {
13
13
  __name: "BlogPost",
14
14
  setup(F) {
15
15
  const v = V(), t = d(null), a = d(!0);
16
- B(async () => {
16
+ h(async () => {
17
17
  a.value = !0;
18
18
  const e = await N({ user: m.user._id, url: v.params.url });
19
19
  t.value = e[0], a.value = !1;
@@ -25,7 +25,7 @@ const E = { class: "pd-thin" }, K = {
25
25
  Caption: "p",
26
26
  ImageUpload: w
27
27
  };
28
- function h(e) {
28
+ function b(e) {
29
29
  return e.type === "Textarea" ? { innerHTML: e.content, class: "p-medium" } : e.type === "H2" ? { innerHTML: e.content, class: "h3" } : e.type === "Caption" ? { innerHTML: e.content } : e.type === "ImageUpload" ? { src: e.content } : {};
30
30
  }
31
31
  return (e, p) => (n(), i("section", E, [
@@ -39,13 +39,13 @@ const E = { class: "pd-thin" }, K = {
39
39
  ]),
40
40
  _: 1
41
41
  }),
42
- o(C, { name: "fade" }, {
42
+ o(B, { name: "fade" }, {
43
43
  default: l(() => [
44
44
  !a.value && !t.value ? (n(), u(x, {
45
45
  key: 0,
46
46
  title: "No Blogpost Found",
47
47
  description: "Currently, there are no blogposts available. Please check back later.",
48
- class: "pd-medium mn-thin bg-grey radius-big"
48
+ class: "pd-medium mn-b-thin bg-grey radius-big"
49
49
  })) : s("", !0)
50
50
  ]),
51
51
  _: 1
@@ -62,25 +62,25 @@ const E = { class: "pd-thin" }, K = {
62
62
  blogpost: t.value,
63
63
  user: m.user._id,
64
64
  type: "blogpostPage",
65
- class: T(["mn-medium", {
65
+ class: C(["mn-b-medium", {
66
66
  "br-b br-solid br-black-transp-10": e.index !== t.value.length - 1
67
67
  }])
68
68
  }, {
69
69
  default: l(() => [
70
- $("section", null, [
71
- t.value && t.value.content ? (n(!0), i(g, { key: 0 }, _(t.value.content, (r, c) => (n(), u(b(y[r.type]), k({
70
+ T("section", null, [
71
+ t.value && t.value.content ? (n(!0), i(g, { key: 0 }, _(t.value.content, (r, c) => (n(), u($(y[r.type]), k({
72
72
  key: c,
73
73
  index: c,
74
74
  component: r,
75
75
  prop: r,
76
76
  class: r.class,
77
77
  content: "content"
78
- }, h(r), { class: "mn-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : s("", !0)
78
+ }, b(r), { class: "mn-b-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : s("", !0)
79
79
  ])
80
80
  ]),
81
81
  _: 1
82
82
  }, 8, ["blogpost", "user", "class"])) : s("", !0),
83
- o(M, { class: "mn-small" }),
83
+ o(M, { class: "mn-b-small" }),
84
84
  !a.value && t.value ? (n(), u(P, {
85
85
  key: 1,
86
86
  type: "blogpost",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../../constructor/components/elements/Textarea.vue2.cjs"),V=require("../../../constructor/components/sections/Constructor.vue.cjs"),y=require("../../../../components/Popup/Popup.vue.cjs");require("../../../../components/FieldTags/tag-input.vue.cjs");require("../../../../components/FieldTags/vue-tags-input.scss.cjs");const B=require("../../../../components/FieldTags/BlockTags.vue.cjs"),N=require("../../../../components/Checkbox/Checkbox.vue.cjs"),P=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),x=require("../../../../components/Button/Button.vue2.cjs"),f=require("vue-router"),n=require("../../store/blogposts.cjs"),i=require("../../../auth/store/auth.cjs"),C=require("../../../organizations/store/organizations.cjs"),q={class:"pd-thin"},E={key:0,class:"h-100 w-100 bg-grey pd-big radius-big"},T={class:"w-full h-full"},z={key:1,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},O={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},D=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),M=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),S={key:0,class:"mn-thin"},U={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},A={__name:"CreateBlogPost",setup(R){const s=f.useRoute(),u=f.useRouter();let t=e.ref(null),p=e.ref(null);const c=e.ref([]),r=e.ref(null);e.onMounted(async()=>{if(s.params.url){const a=await n.read({user:i.state.user._id,url:s.params.url});t.value=a.pop()}else n.clean(),t.value=n.state.current;t.value.owner||(t.value.owner={target:i.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:i.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(r.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const o=await C.actions.read({user:i.state.user._id,postable:i.state.user._id,limit:100});console.log(o),p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const g=e.ref(""),m=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);e.computed(()=>m.value.filter(o=>o.text.toLowerCase().includes(g.value.toLowerCase()))),e.computed(()=>m.value.filter(o=>!c.value.some(a=>a.text===o.text)));const d=e.ref(!1);function v(){d.value=!0}function h(){d.value=!1}function b(){c.value.length>0&&c.value.map(o=>o.text),t.value.status="draft",s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)})}function k(){r.value&&(t.value.owner={target:r.value._id,type:"organization"}),r.value||(t.value.creator.hidden=!1),r.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)})}function _(){confirm("Are you sure you want to delete this post?")&&n.remove(t.value._id).then(o=>{u.push({name:"User Blogposts",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.log(o)})}return(o,a)=>(e.openBlock(),e.createElementBlock("article",q,[e.unref(t)?(e.openBlock(),e.createElementBlock("section",E,[e.createElementVNode("div",T,[e.createVNode(w.default,{prop:e.unref(t),content:"name",placeholder:"Enter post title",class:"h2"},null,8,["prop"])]),e.createVNode(V.default,{content:e.unref(t).content,onUpdate:a[0]||(a[0]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",z,[e.createElementVNode("div",O,[e.unref(s).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[1]||(a[1]=l=>_()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[2]||(a[2]=l=>b()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[3]||(a[3]=l=>v()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(y.default,{title:"Добавить участника",onClosePopup:h,isPopupOpen:d.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[D,e.createVNode(B.default,{onTagsChanged:a[4]||(a[4]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),M,e.createVNode(P.default,{modelValue:r.value,"onUpdate:modelValue":a[5]||(a[5]=l=>r.value=l),options:e.unref(p),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),r.value?(e.openBlock(),e.createElementBlock("h5",S,"Options:")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(N.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[6]||(a[6]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(x.default,{submit:k,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])]))}};exports.default=A;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../../constructor/components/elements/Textarea.vue2.cjs"),V=require("../../../constructor/components/sections/Constructor.vue.cjs"),y=require("../../../../components/Popup/Popup.vue.cjs");require("../../../../components/FieldTags/tag-input.vue.cjs");require("../../../../components/FieldTags/vue-tags-input.scss.cjs");const B=require("../../../../components/FieldTags/BlockTags.vue.cjs"),N=require("../../../../components/Checkbox/Checkbox.vue.cjs"),P=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),x=require("../../../../components/Button/Button.vue2.cjs"),f=require("vue-router"),n=require("../../store/blogposts.cjs"),i=require("../../../auth/store/auth.cjs"),C=require("../../../organizations/store/organizations.cjs"),q={class:"pd-thin"},E={key:0,class:"h-100 w-100 bg-grey pd-big radius-big"},T={class:"w-full h-full"},z={key:1,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},O={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},D=e.createElementVNode("h3",{class:"mn-b-small"},"Final Touches",-1),M=e.createElementVNode("h5",{class:"mn-b-thin"},"Add to public:",-1),S={key:0,class:"mn-b-thin"},U={key:1,class:"mn-b-medium br-grey br-2px br-solid pd-small radius-big"},A={__name:"CreateBlogPost",setup(R){const s=f.useRoute(),u=f.useRouter();let t=e.ref(null),p=e.ref(null);const c=e.ref([]),r=e.ref(null);e.onMounted(async()=>{if(s.params.url){const a=await n.read({user:i.state.user._id,url:s.params.url});t.value=a.pop()}else n.clean(),t.value=n.state.current;t.value.owner||(t.value.owner={target:i.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:i.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(r.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const o=await C.actions.read({user:i.state.user._id,postable:i.state.user._id,limit:100});console.log(o),p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const g=e.ref(""),m=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);e.computed(()=>m.value.filter(o=>o.text.toLowerCase().includes(g.value.toLowerCase()))),e.computed(()=>m.value.filter(o=>!c.value.some(a=>a.text===o.text)));const d=e.ref(!1);function v(){d.value=!0}function h(){d.value=!1}function b(){c.value.length>0&&c.value.map(o=>o.text),t.value.status="draft",s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)})}function k(){r.value&&(t.value.owner={target:r.value._id,type:"organization"}),r.value||(t.value.creator.hidden=!1),r.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)})}function _(){confirm("Are you sure you want to delete this post?")&&n.remove(t.value._id).then(o=>{u.push({name:"User Blogposts",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.log(o)})}return(o,a)=>(e.openBlock(),e.createElementBlock("article",q,[e.unref(t)?(e.openBlock(),e.createElementBlock("section",E,[e.createElementVNode("div",T,[e.createVNode(w.default,{prop:e.unref(t),content:"name",placeholder:"Enter post title",class:"h2"},null,8,["prop"])]),e.createVNode(V.default,{content:e.unref(t).content,onUpdate:a[0]||(a[0]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",z,[e.createElementVNode("div",O,[e.unref(s).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[1]||(a[1]=l=>_()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[2]||(a[2]=l=>b()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[3]||(a[3]=l=>v()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(y.default,{title:"Добавить участника",onClosePopup:h,isPopupOpen:d.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[D,e.createVNode(B.default,{onTagsChanged:a[4]||(a[4]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),M,e.createVNode(P.default,{modelValue:r.value,"onUpdate:modelValue":a[5]||(a[5]=l=>r.value=l),options:e.unref(p),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-b-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),r.value?(e.openBlock(),e.createElementBlock("h5",S,"Options:")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(N.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[6]||(a[6]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(x.default,{submit:k,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])]))}};exports.default=A;
@@ -18,12 +18,12 @@ const G = { class: "pd-thin" }, J = {
18
18
  }, K = { class: "w-full h-full" }, Q = {
19
19
  key: 1,
20
20
  class: "pd-thin pos-sticky pos-l-0 pos-b-0 w-100"
21
- }, W = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, X = /* @__PURE__ */ p("h3", { class: "mn-small" }, "Final Touches", -1), Y = /* @__PURE__ */ p("h5", { class: "mn-thin" }, "Add to public:", -1), Z = {
21
+ }, W = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, X = /* @__PURE__ */ p("h3", { class: "mn-b-small" }, "Final Touches", -1), Y = /* @__PURE__ */ p("h5", { class: "mn-b-thin" }, "Add to public:", -1), Z = {
22
22
  key: 0,
23
- class: "mn-thin"
23
+ class: "mn-b-thin"
24
24
  }, I = {
25
25
  key: 1,
26
- class: "mn-medium br-grey br-2px br-solid pd-small radius-big"
26
+ class: "mn-b-medium br-grey br-2px br-solid pd-small radius-big"
27
27
  }, ge = {
28
28
  __name: "CreateBlogPost",
29
29
  setup(ee) {
@@ -160,7 +160,7 @@ const G = { class: "pd-thin" }, J = {
160
160
  placeholder: "Type to search or add tag",
161
161
  label: "name",
162
162
  "track-by": "_id",
163
- class: "mn-medium bg-grey radius-medium pd-small"
163
+ class: "mn-b-medium bg-grey radius-medium pd-small"
164
164
  }, null, 8, ["modelValue", "options"]),
165
165
  s.value ? (u(), i("h5", Z, "Options:")) : m("", !0),
166
166
  s.value ? (u(), i("div", I, [
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../../node_modules/axios/lib/axios.cjs"),d=require("../../../globals/components/blocks/CardHeader.vue.cjs"),p={class:"mn-small"},g=e.createElementVNode("p",{class:"t-semi uppercase"},"Please log in to leave a comment.",-1),v=[g],y={key:1,class:"mn-small"},b=["onSubmit"],w=e.createElementVNode("button",{type:"submit",class:"mn-l-auto bg-main button"},"Send",-1),h={class:"pd-t-zero"},k={class:"p-big"},_={__name:"Comments",props:["target","owner","type"],setup(s){const o=s,c=u.default.create({baseURL:process.env.API_URL}),a=e.ref([]),r=e.ref(""),i=async()=>{const{data:n}=await c.get(`/comments/read?type=${o.type}&target=${o.target}&user=${o.owner}`);a.value=n},m=async()=>{if(r.value)try{const n=await c.post("/comments/create",{target:o.target,user:o.owner,type:o.type,content:r.value});n.data.owner=o.owner,a.value.push(n.data),r.value=""}catch(n){console.error(n)}};return i(),(n,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",null,[e.createElementVNode("h3",p,e.toDisplayString(a.value.length)+" comments",1),s.owner?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l[0]||(l[0]=t=>n.$router.push({name:"Sign In"})),class:"cursor-pointer mn-small section bg-black t-white flex-center flex radius-big"},v)),s.owner?(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("form",{onSubmit:e.withModifiers(m,["prevent"]),class:"bg-grey radius-big pd-medium"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":l[1]||(l[1]=t=>r.value=t),placeholder:"Enter your comment",class:"pd-small p-big w-100 radius-small mn-r-small"},null,512),[[e.vModelText,r.value]]),w],40,b)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,t=>(e.openBlock(),e.createElementBlock("div",{key:t._id,class:"comment mn-small radius-big pd-medium bg-grey"},[e.createVNode(d.default,{class:"mn-medium",entity:t,entityType:"comment",user:s.owner,owner:{target:t.user},creator:{target:t.user},date:t.createdAt},null,8,["entity","user","owner","creator","date"]),e.createElementVNode("div",h,[e.createElementVNode("p",k,e.toDisplayString(t.content),1)])]))),128))]))}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../../node_modules/axios/lib/axios.cjs"),d=require("../../../globals/components/blocks/CardHeader.vue.cjs"),p={class:"mn-b-small"},g=e.createElementVNode("p",{class:"t-semi uppercase"},"Please log in to leave a comment.",-1),b=[g],v={key:1,class:"mn-b-small"},y=["onSubmit"],w=e.createElementVNode("button",{type:"submit",class:"mn-l-auto bg-main button"},"Send",-1),h={class:"pd-t-zero"},k={class:"p-big"},_={__name:"Comments",props:["target","owner","type"],setup(s){const o=s,c=u.default.create({baseURL:process.env.API_URL}),a=e.ref([]),r=e.ref(""),i=async()=>{const{data:n}=await c.get(`/comments/read?type=${o.type}&target=${o.target}&user=${o.owner}`);a.value=n},m=async()=>{if(r.value)try{const n=await c.post("/comments/create",{target:o.target,user:o.owner,type:o.type,content:r.value});n.data.owner=o.owner,a.value.push(n.data),r.value=""}catch(n){console.error(n)}};return i(),(n,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",null,[e.createElementVNode("h3",p,e.toDisplayString(a.value.length)+" comments",1),s.owner?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l[0]||(l[0]=t=>n.$router.push({name:"Sign In"})),class:"cursor-pointer mn-b-small section bg-black t-white flex-center flex radius-big"},b)),s.owner?(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("form",{onSubmit:e.withModifiers(m,["prevent"]),class:"bg-grey radius-big pd-medium"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":l[1]||(l[1]=t=>r.value=t),placeholder:"Enter your comment",class:"pd-small p-big w-100 radius-small mn-r-small"},null,512),[[e.vModelText,r.value]]),w],40,y)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,t=>(e.openBlock(),e.createElementBlock("div",{key:t._id,class:"comment mn-b-small radius-big pd-medium bg-grey"},[e.createVNode(d.default,{class:"mn-b-medium",entity:t,entityType:"comment",user:s.owner,owner:{target:t.user},creator:{target:t.user},date:t.createdAt},null,8,["entity","user","owner","creator","date"]),e.createElementVNode("div",h,[e.createElementVNode("p",k,e.toDisplayString(t.content),1)])]))),128))]))}};exports.default=_;
@@ -1,11 +1,11 @@
1
- import { ref as u, openBlock as r, createElementBlock as a, createElementVNode as s, toDisplayString as d, createCommentVNode as p, withModifiers as y, withDirectives as b, vModelText as w, Fragment as h, renderList as _, createVNode as f } from "vue";
1
+ import { ref as u, openBlock as r, createElementBlock as a, createElementVNode as s, toDisplayString as d, createCommentVNode as p, withModifiers as v, withDirectives as y, vModelText as w, Fragment as h, renderList as _, createVNode as f } from "vue";
2
2
  import k from "../../../../../node_modules/axios/lib/axios.js";
3
3
  import x from "../../../globals/components/blocks/CardHeader.vue.js";
4
- const $ = { class: "mn-small" }, C = /* @__PURE__ */ s("p", { class: "t-semi uppercase" }, "Please log in to leave a comment.", -1), S = [
4
+ const $ = { class: "mn-b-small" }, C = /* @__PURE__ */ s("p", { class: "t-semi uppercase" }, "Please log in to leave a comment.", -1), S = [
5
5
  C
6
6
  ], V = {
7
7
  key: 1,
8
- class: "mn-small"
8
+ class: "mn-b-small"
9
9
  }, E = ["onSubmit"], L = /* @__PURE__ */ s("button", {
10
10
  type: "submit",
11
11
  class: "mn-l-auto bg-main button"
@@ -16,7 +16,7 @@ const $ = { class: "mn-small" }, C = /* @__PURE__ */ s("p", { class: "t-semi upp
16
16
  const n = l, c = k.create({ baseURL: process.env.API_URL }), i = u([]), o = u(""), g = async () => {
17
17
  const { data: t } = await c.get(`/comments/read?type=${n.type}&target=${n.target}&user=${n.owner}`);
18
18
  i.value = t;
19
- }, v = async () => {
19
+ }, b = async () => {
20
20
  if (o.value)
21
21
  try {
22
22
  const t = await c.post("/comments/create", {
@@ -36,14 +36,14 @@ const $ = { class: "mn-small" }, C = /* @__PURE__ */ s("p", { class: "t-semi upp
36
36
  l.owner ? p("", !0) : (r(), a("div", {
37
37
  key: 0,
38
38
  onClick: m[0] || (m[0] = (e) => t.$router.push({ name: "Sign In" })),
39
- class: "cursor-pointer mn-small section bg-black t-white flex-center flex radius-big"
39
+ class: "cursor-pointer mn-b-small section bg-black t-white flex-center flex radius-big"
40
40
  }, S)),
41
41
  l.owner ? (r(), a("div", V, [
42
42
  s("form", {
43
- onSubmit: y(v, ["prevent"]),
43
+ onSubmit: v(b, ["prevent"]),
44
44
  class: "bg-grey radius-big pd-medium"
45
45
  }, [
46
- b(s("textarea", {
46
+ y(s("textarea", {
47
47
  "onUpdate:modelValue": m[1] || (m[1] = (e) => o.value = e),
48
48
  placeholder: "Enter your comment",
49
49
  class: "pd-small p-big w-100 radius-small mn-r-small"
@@ -56,10 +56,10 @@ const $ = { class: "mn-small" }, C = /* @__PURE__ */ s("p", { class: "t-semi upp
56
56
  ]),
57
57
  (r(!0), a(h, null, _(i.value, (e) => (r(), a("div", {
58
58
  key: e._id,
59
- class: "comment mn-small radius-big pd-medium bg-grey"
59
+ class: "comment mn-b-small radius-big pd-medium bg-grey"
60
60
  }, [
61
61
  f(x, {
62
- class: "mn-medium",
62
+ class: "mn-b-medium",
63
63
  entity: e,
64
64
  entityType: "comment",
65
65
  user: l.owner,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../../../../components/Loader/Loader.vue2.cjs"),f=require("../../../../components/EmptyState/EmptyState.vue.cjs"),g=require("../blocks/CardBlogpost.vue.cjs"),c=require("../../store/blogposts.cjs"),m={__name:"Feed",props:{category:{type:String,default:null},limit:{type:Number,default:7},skip:{type:Number,default:0},owner:{type:String,default:null},creator:{type:String,default:null},following:{type:String,default:null},status:{type:String,default:"published"},user:{type:[String,Number],default:null},period:{type:String,default:null}},setup(u){const t=u,a=e.ref([]),r=e.ref(!0);let o=e.ref(!0),n=e.ref(t.skip),s=e.ref(t.limit);const d=async()=>{if(r.value){n.value+=s.value;const l=await c.read({skip:n.value,limit:s.value,category:t.category,user:t.user,owner:t.owner,following:t.following,creator:t.creator,status:t.status,period:t.period});l.length===0&&(r.value=!1),a.value=[...a.value,...l]}};return e.onMounted(async()=>{const l=await c.read({skip:n.value,limit:s.value,category:t.category,user:t.user,owner:t.owner,following:t.following,status:t.status,creator:t.creator,period:t.period});l.length===0?r.value=!1:r.value=!0,a.value=l,o.value=!1}),(l,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[e.unref(o)?(e.openBlock(),e.createBlock(p.default,{key:0,class:"z-index-5 pos-t-50 left-t-50 pos-absolute"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(o)&&a.value.length<1?(e.openBlock(),e.createBlock(f.default,{key:0,title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.$attrs.class)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,i=>(e.openBlock(),e.createBlock(g.default,{key:i._id,blogpost:i,user:u.user,class:"mn-medium"},null,8,["blogpost","user"]))),128)),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[r.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d,class:"w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:1})],2))]),_:1})],64))}};exports.default=m;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../../../../components/Loader/Loader.vue2.cjs"),f=require("../../../../components/EmptyState/EmptyState.vue.cjs"),g=require("../blocks/CardBlogpost.vue.cjs"),c=require("../../store/blogposts.cjs"),m={__name:"Feed",props:{category:{type:String,default:null},limit:{type:Number,default:7},skip:{type:Number,default:0},owner:{type:String,default:null},creator:{type:String,default:null},following:{type:String,default:null},status:{type:String,default:"published"},user:{type:[String,Number],default:null},period:{type:String,default:null}},setup(u){const t=u,a=e.ref([]),r=e.ref(!0);let o=e.ref(!0),n=e.ref(t.skip),s=e.ref(t.limit);const d=async()=>{if(r.value){n.value+=s.value;const l=await c.read({skip:n.value,limit:s.value,category:t.category,user:t.user,owner:t.owner,following:t.following,creator:t.creator,status:t.status,period:t.period});l.length===0&&(r.value=!1),a.value=[...a.value,...l]}};return e.onMounted(async()=>{const l=await c.read({skip:n.value,limit:s.value,category:t.category,user:t.user,owner:t.owner,following:t.following,status:t.status,creator:t.creator,period:t.period});l.length===0?r.value=!1:r.value=!0,a.value=l,o.value=!1}),(l,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[e.unref(o)?(e.openBlock(),e.createBlock(p.default,{key:0,class:"z-index-5 pos-t-50 left-t-50 pos-absolute"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(o)&&a.value.length<1?(e.openBlock(),e.createBlock(f.default,{key:0,title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.$attrs.class)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,i=>(e.openBlock(),e.createBlock(g.default,{key:i._id,blogpost:i,user:u.user,class:"mn-b-medium"},null,8,["blogpost","user"]))),128)),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[r.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d,class:"w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:1})],2))]),_:1})],64))}};exports.default=m;