@ozdao/prometheus-framework 0.1.99 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (324) hide show
  1. package/dist/main.css +1 -1
  2. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  3. package/dist/prometheus-framework/src/components/Button/Button.vue.js +224 -2
  4. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  5. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +2 -224
  6. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  7. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +49 -2
  8. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  9. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +2 -49
  10. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  11. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +5 -5
  12. package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.cjs +1 -1
  13. package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.js +1 -1
  14. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -2
  16. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +10 -10
  18. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -1
  20. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
  22. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
  24. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
  26. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +12 -12
  28. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +15 -15
  30. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +9 -9
  32. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +15 -15
  34. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +15 -15
  36. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +10 -10
  38. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.js +4 -4
  40. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +2 -2
  42. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +8 -8
  44. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +2 -2
  46. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +10 -10
  48. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +6 -6
  50. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +9 -9
  52. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +8 -8
  54. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +3 -3
  56. package/dist/prometheus-framework/src/modules/community/components/sections/SubscribeNewsletter.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/community/components/sections/SubscribeNewsletter.vue.js +3 -3
  58. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +2 -2
  60. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +4 -4
  62. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +1 -1
  64. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +2 -2
  66. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +5 -5
  68. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +20 -11
  70. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  72. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -1
  73. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +62 -2
  74. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -4
  75. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -62
  76. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +13 -13
  78. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +11 -11
  80. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  82. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +2 -2
  84. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +20 -20
  86. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +6 -6
  88. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
  90. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +7 -7
  92. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +4 -4
  94. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +12 -12
  96. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +15 -15
  98. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
  100. package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.js +4 -4
  102. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +3 -3
  104. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +8 -8
  106. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
  108. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
  110. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.js +2 -2
  112. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +1 -1
  114. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +8 -8
  116. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +3 -3
  118. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +1 -1
  120. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +9 -9
  122. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +4 -4
  124. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.js +1 -1
  126. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.js +1 -1
  128. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  130. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +7 -7
  132. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +7 -7
  134. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +5 -5
  136. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +15 -15
  138. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +7 -7
  140. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +6 -6
  142. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +15 -15
  144. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +8 -8
  146. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +5 -5
  148. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +7 -7
  150. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +7 -7
  152. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  154. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +2 -2
  155. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +4 -4
  157. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +5 -5
  159. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +2 -2
  161. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +6 -6
  163. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +8 -8
  165. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +5 -5
  167. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +10 -10
  169. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +6 -6
  171. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +19 -19
  173. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +5 -5
  175. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +9 -9
  177. package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.js +1 -1
  179. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +8 -8
  181. package/dist/prometheus-framework.cjs.js +1 -1
  182. package/dist/prometheus-framework.es.js +2 -2
  183. package/dist/style.css +1 -1
  184. package/package.json +1 -1
  185. package/src/components/EditImages/EditImages.vue +3 -3
  186. package/src/components/EmptyState/EmptyState.vue +2 -2
  187. package/src/components/Field/Field.svlt +1 -1
  188. package/src/components/Field/Field.vue +1 -1
  189. package/src/components/FieldTags/BlockTags.vue +4 -4
  190. package/src/components/Footer/Footer.vue +8 -8
  191. package/src/components/LocationSelection/LocationSelection.vue +4 -4
  192. package/src/components/Search/Search.vue +3 -3
  193. package/src/configurator/components/layouts/layoutConfigurator.vue +2 -2
  194. package/src/configurator/components/pages/Styles.vue +3 -3
  195. package/src/modules/auth/components/pages/EnterCode.vue +4 -4
  196. package/src/modules/auth/components/pages/EnterPassword.vue +9 -9
  197. package/src/modules/auth/components/pages/Invite.vue +6 -6
  198. package/src/modules/auth/components/pages/ResetPassword.vue +10 -10
  199. package/src/modules/auth/components/pages/SignIn.vue +11 -11
  200. package/src/modules/auth/components/pages/SignUp.vue +11 -11
  201. package/src/modules/auth/components/sections/SliderFeatures.vue +2 -2
  202. package/src/modules/backoffice/components/admin/Categories.vue +2 -2
  203. package/src/modules/backoffice/components/admin/CategoryEdit.vue +2 -2
  204. package/src/modules/backoffice/components/admin/Dashboard.vue +1 -1
  205. package/src/modules/backoffice/components/admin/FastOrders.vue +3 -3
  206. package/src/modules/backoffice/components/admin/PageEdit.vue +3 -3
  207. package/src/modules/backoffice/components/admin/Pages.vue +1 -1
  208. package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
  209. package/src/modules/backoffice/components/admin/User.vue +6 -6
  210. package/src/modules/backoffice/components/admin/Users.vue +4 -4
  211. package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
  212. package/src/modules/backoffice/components/pages/Dashboard.vue +1 -1
  213. package/src/modules/community/components/blocks/CardBlogpost.vue +5 -5
  214. package/src/modules/community/components/layouts/Community.vue +2 -2
  215. package/src/modules/community/components/pages/BlogPost.vue +4 -4
  216. package/src/modules/community/components/pages/Community.vue +2 -2
  217. package/src/modules/community/components/pages/CreateBlogPost.vue +5 -5
  218. package/src/modules/community/components/sections/Comments.vue +5 -5
  219. package/src/modules/community/components/sections/Feed.vue +2 -2
  220. package/src/modules/community/components/sections/JoinUs.vue +2 -2
  221. package/src/modules/community/components/sections/SubscribeNewsletter.vue +3 -3
  222. package/src/modules/constructor/components/elements/Audio.vue +2 -2
  223. package/src/modules/constructor/components/elements/Bullets.vue +1 -1
  224. package/src/modules/constructor/components/elements/Caption.vue +1 -1
  225. package/src/modules/constructor/components/elements/Embed.vue +2 -2
  226. package/src/modules/constructor/components/elements/H2.vue +1 -1
  227. package/src/modules/constructor/components/elements/Image.vue +19 -5
  228. package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
  229. package/src/modules/constructor/components/elements/Textarea.vue +1 -1
  230. package/src/modules/constructor/components/sections/Constructor.vue +4 -4
  231. package/src/modules/events/components/blocks/CardEvent.vue +5 -5
  232. package/src/modules/events/components/layouts/layoutEvents.vue +1 -1
  233. package/src/modules/events/components/pages/EditEvent.vue +12 -12
  234. package/src/modules/events/components/pages/Event.vue +4 -4
  235. package/src/modules/events/components/pages/Events.vue +1 -1
  236. package/src/modules/events/components/sections/Feed.vue +2 -2
  237. package/src/modules/events/components/sections/List.vue +1 -1
  238. package/src/modules/gallery/components/sections/BackofficeGallery.vue +10 -10
  239. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +6 -6
  240. package/src/modules/globals/components/sections/Feed.vue +1 -1
  241. package/src/modules/landing/components/sections/MobileApp.vue +7 -7
  242. package/src/modules/legal/components/pages/Legal.vue +5 -5
  243. package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
  244. package/src/modules/mobile/components/Menu/MenuItem.vue +2 -2
  245. package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
  246. package/src/modules/orders/components/blocks/Positions.vue +8 -8
  247. package/src/modules/orders/components/pages/EditOrder.vue +19 -19
  248. package/src/modules/orders/components/pages/Favorites.vue +2 -2
  249. package/src/modules/orders/components/pages/Order.vue +5 -5
  250. package/src/modules/orders/components/pages/Orders.vue +5 -5
  251. package/src/modules/orders/components/pages/ViewOrder.vue +7 -7
  252. package/src/modules/orders/components/partials/ShopCart.vue +3 -3
  253. package/src/modules/orders/components/sections/Form.vue +12 -12
  254. package/src/modules/orders/components/sections/Succes.vue +4 -4
  255. package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
  256. package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -3
  257. package/src/modules/organizations/components/blocks/Contacts.vue +1 -1
  258. package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +2 -2
  259. package/src/modules/organizations/components/blocks/EditArray.vue +2 -2
  260. package/src/modules/organizations/components/blocks/EmptyState.vue +3 -3
  261. package/src/modules/organizations/components/blocks/Rating.vue +1 -1
  262. package/src/modules/organizations/components/pages/Department.vue +6 -6
  263. package/src/modules/organizations/components/pages/DepartmentEdit.vue +16 -16
  264. package/src/modules/organizations/components/pages/Members.vue +2 -2
  265. package/src/modules/organizations/components/pages/Organization.vue +5 -5
  266. package/src/modules/organizations/components/pages/OrganizationEdit.vue +16 -16
  267. package/src/modules/organizations/components/pages/Organizations.vue +2 -2
  268. package/src/modules/organizations/components/sections/DetailsTab.vue +11 -11
  269. package/src/modules/organizations/components/sections/Documents.vue +4 -4
  270. package/src/modules/organizations/components/sections/Feed.vue +2 -2
  271. package/src/modules/organizations/components/sections/FeedDepartments.vue +2 -2
  272. package/src/modules/organizations/components/sections/MembersAdd.vue +5 -5
  273. package/src/modules/organizations/components/sections/MembersList.vue +2 -2
  274. package/src/modules/organizations/components/sections/Unit.vue +12 -12
  275. package/src/modules/payments/components/pages/Payments.vue +3 -3
  276. package/src/modules/products/components/blocks/CardLeftover.vue +4 -4
  277. package/src/modules/products/components/blocks/CardProduct.vue +3 -3
  278. package/src/modules/products/components/blocks/EditCategories.vue +4 -4
  279. package/src/modules/products/components/blocks/EditFilters.vue +4 -4
  280. package/src/modules/products/components/blocks/LeftoverPositions.vue +1 -1
  281. package/src/modules/products/components/pages/LeftoverAdd.vue +7 -7
  282. package/src/modules/products/components/pages/Leftovers.vue +5 -5
  283. package/src/modules/products/components/pages/OrganizationDetails.vue +4 -4
  284. package/src/modules/products/components/pages/OrganizationDocuments.vue +5 -5
  285. package/src/modules/products/components/pages/OrganizationPeople.vue +5 -5
  286. package/src/modules/products/components/pages/ProductEdit.vue +5 -5
  287. package/src/modules/products/components/pages/ProductRecommmendation.vue +1 -1
  288. package/src/modules/products/components/pages/ProductsBackoffice.vue +2 -2
  289. package/src/modules/products/components/sections/EditModifications.vue +8 -8
  290. package/src/modules/products/components/sections/EditParameters.vue +4 -4
  291. package/src/modules/products/components/sections/EditProductImages.vue +2 -2
  292. package/src/modules/products/components/sections/EditProductInfo.vue +5 -5
  293. package/src/modules/products/components/sections/FilterProducts.vue +9 -9
  294. package/src/modules/products/components/sections/HeroRecommendation.vue +5 -5
  295. package/src/modules/products/components/sections/PopularProducts.vue +1 -1
  296. package/src/modules/products/components/sections/ProductInformationSection.vue +27 -27
  297. package/src/modules/products/components/sections/SectionProduct.vue +6 -6
  298. package/src/modules/products/components/sections/SortProducts.vue +1 -1
  299. package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
  300. package/src/modules/reports/components/sections/FormReport.vue +4 -4
  301. package/src/modules/spots/components/blocks/CardSpot.vue +4 -4
  302. package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
  303. package/src/modules/spots/components/layouts/Spots.vue +3 -3
  304. package/src/modules/spots/components/pages/Spot.vue +4 -4
  305. package/src/modules/spots/components/pages/SpotEdit.vue +16 -16
  306. package/src/modules/spots/components/sections/Feed.vue +2 -2
  307. package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
  308. package/src/modules/spots/components/sections/Places.vue +1 -1
  309. package/src/modules/users/components/pages/Profile.vue +13 -13
  310. package/src/modules/users/components/pages/ProfileBlogposts.vue +2 -2
  311. package/src/modules/users/components/pages/ProfileComments.vue +1 -1
  312. package/src/modules/users/components/pages/ProfileEdit.vue +21 -21
  313. package/src/modules/users/components/pages/ProfileEvents.vue +2 -2
  314. package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
  315. package/src/modules/users/components/pages/ProfileOrganizations.vue +2 -2
  316. package/src/modules/users/components/sections/ProfileCompletion.vue +1 -1
  317. package/src/modules/wallet/components/pages/Wallet.vue +17 -17
  318. package/src/styles/base/all.scss +83 -324
  319. package/src/styles/base/border-radius.scss +47 -0
  320. package/src/styles/base/height.scss +60 -0
  321. package/src/styles/base/scrolling.scss +8 -8
  322. package/src/styles/base/width.scss +2 -0
  323. package/src/styles/config.scss +153 -51
  324. package/src/styles/responsive.scss +2 -2
@@ -1,64 +1,4 @@
1
- import { ref as d, onUpdated as x, nextTick as s, onMounted as m, openBlock as h, createElementBlock as B, withDirectives as g, createElementVNode as v, vModelText as y } from "vue";
2
- import "./Textarea.vue.js";
3
- const T = ["placeholder"], b = {
4
- __name: "Textarea",
5
- props: ["prop", "value", "content", "placeholder", "index", "setFocus"],
6
- emits: ["deleteBlock", "updateBlock", "addBlock", "focus"],
7
- setup(n, { emit: u }) {
8
- const e = n, a = u;
9
- d(e);
10
- const t = d(null);
11
- d(0);
12
- function p(l) {
13
- let o = l.target.value.split(/\n+/);
14
- if (o.length > 1) {
15
- e.prop[e.content] = o[0], s(() => {
16
- c();
17
- });
18
- let r = o.slice(1).map((k) => ({ __name: "Textarea", content: k }));
19
- a("addBlock", "Textarea", "", e.index, { blocks: r, ref: t });
20
- } else
21
- l.target.value.trim() === "" && l.target.value.includes(`
22
-
23
- `) && (console.log("We are adding new block:" + e.index + newBlocks + t), a("addBlock", "Textarea", "", e.index, { blocks: newBlocks, ref: t })), c();
24
- }
25
- function f(l) {
26
- (l.keyCode === 8 || l.keyCode === 46) && e.prop[e.content].trim() === "" && a("deleteBlock", e.prop);
27
- }
28
- function i() {
29
- s(() => {
30
- t.value.focus(), a("updateBlock", e.prop, { setFocus: !1 });
31
- });
32
- }
33
- function c() {
34
- t.value.style.height = "1rem", t.value.style.height = t.value.scrollHeight + "px";
35
- }
36
- return x(() => {
37
- e.setFocus && s(() => {
38
- i();
39
- }), c();
40
- }), m(() => {
41
- e.setFocus && s(() => {
42
- i();
43
- }), c();
44
- }), (l, o) => (h(), B("div", null, [
45
- g(v("textarea", {
46
- "onUpdate:modelValue": o[0] || (o[0] = (r) => n.prop[n.content] = r),
47
- placeholder: n.placeholder ? n.placeholder : "Enter text",
48
- onInput: p,
49
- onFocus: o[1] || (o[1] = (r) => a("focus", t.value)),
50
- onKeyup: f,
51
- ref_key: "textarea",
52
- ref: t,
53
- tabindex: "-1",
54
- class: "text-area mn-thin"
55
- }, `
56
- `, 40, T), [
57
- [y, n.prop[n.content]]
58
- ])
59
- ]));
60
- }
61
- };
1
+ const e = "";
62
2
  export {
63
- b as default
3
+ e as default
64
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),E=require("../elements/Textarea.vue2.cjs"),x=require("../elements/H2.vue.cjs"),N=require("../elements/Caption.vue.cjs"),y=require("../elements/Bullets.vue.cjs"),A=require("../elements/ImageUpload.vue.cjs"),V=require("../elements/Embed.vue.cjs"),q=require("../elements/Audio.vue.cjs"),D=require("../../../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs"),M=["onMouseover"],T={key:0,class:"z-index-5 radius-thin pd-thin bg-white w-max mn-small flex-nowrap flex-column flex"},$=["onClick"],F=["onClick"],I=["onClick"],S=["onClick"],U={__name:"Constructor",props:["content"],emits:["update"],setup(v,{emit:f}){const k=v,u=f;let t=e.ref(null);e.ref(null),t.value={content:k.content};const g={Textarea:E.default,H2:x.default,Bullets:y.default,Caption:N.default,ImageUpload:A.default,Embed:V.default,Audio:q.default};function s(c="Textarea",l="",n,o){console.log("We are adding new block (functuin HandleAddBlock):"+c+l+n+o);let a={order:t.value.content.length+1,type:c,style:"",class:"",content:l,blocks:[],setFocus:!0};if(o&&o.blocks&&Array.isArray(o.blocks)){let m=o.blocks.map(_=>({...a,content:_.content})),B=[(o.index||n)+1,0].concat(m);t.value.content.splice.apply(t.value.content,B);const C=m[m.length-1];console.log("New block is"+C)}else n!==void 0?(t.value.content.splice(n+1,0,a),console.log("Latest block is"+a)):(console.log("Another block is"+a),t.value.content.push(a));i.value=null,u("update",t.value.content)}function h(c,l){const n=t.value.content.findIndex(o=>o===c);n!==-1&&(t.value.content[n]={...t.value.content[n],...l}),u("update",t.value.content)}function p(c){let l=t.value.content.findIndex(n=>n===c);l!==-1&&t.value.content.splice(l,1),t.value.content[l-1].setFocus=!0,u("update",t.value.content)}const i=e.ref(null),d=e.ref(!1),r=e.ref(!1);function b(){d.value=!0}function w(){d.value=!1}return e.watchEffect(()=>{t.value&&t.value.content.length===0&&s("Textarea",""),u("update",t.value.content)}),(c,l)=>(e.openBlock(),e.createElementBlock("section",null,[e.unref(t).content?(e.openBlock(),e.createBlock(e.unref(D.VueDraggableNext),{key:0,class:"w-full",list:e.unref(t).content,onStart:b,onEnd:w},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).content,(n,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"pos-relative"},[e.createElementVNode("div",{onMouseover:a=>(i.value=o,r.value=!1),class:"pos-relative w-full h-full"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g[n.type]),{index:o,component:n,prop:n,class:e.normalizeClass(n.class),setFocus:n.setFocus,content:"content",onDeleteBlock:p,onAddBlock:s,onUpdateBlock:h},null,40,["index","component","prop","class","setFocus"]))],40,M),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.value===o?(e.openBlock(),e.createElementBlock("div",{key:0,class:"pos-absolute z-index-4 i-semi",style:{right:"calc(100% + 0.5rem)",top:"calc(50% - 1.125rem)"},onMousedown:l[1]||(l[1]=e.withModifiers(a=>d.value=!0,["prevent"]))},[e.createElementVNode("button",{onClick:l[0]||(l[0]=a=>r.value=!r.value),class:"mn-small cursor-pointer w-100 i-semi bg-white radius-thin"},e.toDisplayString(n.content?"...":"+"),1),r.value?(e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("span",{onClick:a=>p(n),class:"mn-thin w-max t-red bg-white button-small button"}," Remove ",8,$),e.createElementVNode("span",{onClick:a=>s("ImageUpload","",o),class:"mn-thin w-max t-black bg-white button-small button"}," Add Image ",8,F),e.createElementVNode("span",{onClick:a=>s("H2","",o),class:"w-max button-small t-black bg-white button"}," Add Title ",8,I),e.createElementVNode("span",{onClick:a=>s("Embed","",o),class:"w-max button-small t-black bg-white button"}," Add Embed ",8,S)])):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)]),_:2},1024)]))),128))]),_:1},8,["list"])):e.createCommentVNode("",!0)]))}};exports.default=U;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),E=require("../elements/Textarea.vue.cjs"),x=require("../elements/H2.vue.cjs"),N=require("../elements/Caption.vue.cjs"),y=require("../elements/Bullets.vue.cjs"),A=require("../elements/ImageUpload.vue.cjs"),V=require("../elements/Embed.vue.cjs"),q=require("../elements/Audio.vue.cjs"),D=require("../../../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs"),M=["onMouseover"],T={key:0,class:"z-index-5 radius-thin pd-thin bg-white w-max mn-b-small flex-nowrap flex-column flex"},$=["onClick"],F=["onClick"],I=["onClick"],S=["onClick"],U={__name:"Constructor",props:["content"],emits:["update"],setup(v,{emit:f}){const k=v,u=f;let t=e.ref(null);e.ref(null),t.value={content:k.content};const b={Textarea:E.default,H2:x.default,Bullets:y.default,Caption:N.default,ImageUpload:A.default,Embed:V.default,Audio:q.default};function s(c="Textarea",l="",n,o){console.log("We are adding new block (functuin HandleAddBlock):"+c+l+n+o);let a={order:t.value.content.length+1,type:c,style:"",class:"",content:l,blocks:[],setFocus:!0};if(o&&o.blocks&&Array.isArray(o.blocks)){let m=o.blocks.map(_=>({...a,content:_.content})),B=[(o.index||n)+1,0].concat(m);t.value.content.splice.apply(t.value.content,B);const C=m[m.length-1];console.log("New block is"+C)}else n!==void 0?(t.value.content.splice(n+1,0,a),console.log("Latest block is"+a)):(console.log("Another block is"+a),t.value.content.push(a));i.value=null,u("update",t.value.content)}function g(c,l){const n=t.value.content.findIndex(o=>o===c);n!==-1&&(t.value.content[n]={...t.value.content[n],...l}),u("update",t.value.content)}function p(c){let l=t.value.content.findIndex(n=>n===c);l!==-1&&t.value.content.splice(l,1),t.value.content[l-1].setFocus=!0,u("update",t.value.content)}const i=e.ref(null),d=e.ref(!1),r=e.ref(!1);function h(){d.value=!0}function w(){d.value=!1}return e.watchEffect(()=>{t.value&&t.value.content.length===0&&s("Textarea",""),u("update",t.value.content)}),(c,l)=>(e.openBlock(),e.createElementBlock("section",null,[e.unref(t).content?(e.openBlock(),e.createBlock(e.unref(D.VueDraggableNext),{key:0,class:"w-full",list:e.unref(t).content,onStart:h,onEnd:w},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).content,(n,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"pos-relative"},[e.createElementVNode("div",{onMouseover:a=>(i.value=o,r.value=!1),class:"pos-relative w-full h-full"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b[n.type]),{index:o,component:n,prop:n,class:e.normalizeClass(n.class),setFocus:n.setFocus,content:"content",onDeleteBlock:p,onAddBlock:s,onUpdateBlock:g},null,40,["index","component","prop","class","setFocus"]))],40,M),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.value===o?(e.openBlock(),e.createElementBlock("div",{key:0,class:"pos-absolute z-index-4 i-semi",style:{right:"calc(100% + 0.5rem)",top:"calc(50% - 1.125rem)"},onMousedown:l[1]||(l[1]=e.withModifiers(a=>d.value=!0,["prevent"]))},[e.createElementVNode("button",{onClick:l[0]||(l[0]=a=>r.value=!r.value),class:"mn-b-small cursor-pointer w-100 i-semi bg-white radius-thin"},e.toDisplayString(n.content?"...":"+"),1),r.value?(e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("span",{onClick:a=>p(n),class:"mn-b-thin w-max t-red bg-white button-small button"}," Remove ",8,$),e.createElementVNode("span",{onClick:a=>s("ImageUpload","",o),class:"mn-b-thin w-max t-black bg-white button-small button"}," Add Image ",8,F),e.createElementVNode("span",{onClick:a=>s("H2","",o),class:"w-max button-small t-black bg-white button"}," Add Title ",8,I),e.createElementVNode("span",{onClick:a=>s("Embed","",o),class:"w-max button-small t-black bg-white button"}," Add Embed ",8,S)])):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)]),_:2},1024)]))),128))]),_:1},8,["list"])):e.createCommentVNode("",!0)]))}};exports.default=U;
@@ -1,5 +1,5 @@
1
- import { ref as u, watchEffect as M, openBlock as a, createElementBlock as r, unref as p, createBlock as g, withCtx as b, Fragment as N, renderList as I, createElementVNode as c, resolveDynamicComponent as T, normalizeClass as U, createVNode as V, Transition as z, withModifiers as H, toDisplayString as S, createCommentVNode as k } from "vue";
2
- import L from "../elements/Textarea.vue2.js";
1
+ import { ref as u, watchEffect as M, openBlock as a, createElementBlock as r, unref as p, createBlock as _, withCtx as g, Fragment as N, renderList as I, createElementVNode as c, resolveDynamicComponent as T, normalizeClass as U, createVNode as V, Transition as z, withModifiers as H, toDisplayString as S, createCommentVNode as k } from "vue";
2
+ import L from "../elements/Textarea.vue.js";
3
3
  import R from "../elements/H2.vue.js";
4
4
  import W from "../elements/Caption.vue.js";
5
5
  import j from "../elements/Bullets.vue.js";
@@ -9,7 +9,7 @@ import J from "../elements/Audio.vue.js";
9
9
  import { VueDraggableNext as K } from "../../../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js";
10
10
  const O = ["onMouseover"], P = {
11
11
  key: 0,
12
- class: "z-index-5 radius-thin pd-thin bg-white w-max mn-small flex-nowrap flex-column flex"
12
+ class: "z-index-5 radius-thin pd-thin bg-white w-max mn-b-small flex-nowrap flex-column flex"
13
13
  }, Q = ["onClick"], X = ["onClick"], Y = ["onClick"], Z = ["onClick"], ue = {
14
14
  __name: "Constructor",
15
15
  props: ["content"],
@@ -54,7 +54,7 @@ const O = ["onMouseover"], P = {
54
54
  const t = e.value.content.findIndex((n) => n === s);
55
55
  t !== -1 && (e.value.content[t] = { ...e.value.content[t], ...o }), m("update", e.value.content);
56
56
  }
57
- function _(s) {
57
+ function b(s) {
58
58
  let o = e.value.content.findIndex((t) => t === s);
59
59
  o !== -1 && e.value.content.splice(o, 1), e.value.content[o - 1].setFocus = !0, m("update", e.value.content);
60
60
  }
@@ -68,14 +68,14 @@ const O = ["onMouseover"], P = {
68
68
  return M(() => {
69
69
  e.value && e.value.content.length === 0 && i("Textarea", ""), m("update", e.value.content);
70
70
  }), (s, o) => (a(), r("section", null, [
71
- p(e).content ? (a(), g(p(K), {
71
+ p(e).content ? (a(), _(p(K), {
72
72
  key: 0,
73
73
  class: "w-full",
74
74
  list: p(e).content,
75
75
  onStart: y,
76
76
  onEnd: A
77
77
  }, {
78
- default: b(() => [
78
+ default: g(() => [
79
79
  (a(!0), r(N, null, I(p(e).content, (t, n) => (a(), r("div", {
80
80
  key: n,
81
81
  class: "pos-relative"
@@ -84,20 +84,20 @@ const O = ["onMouseover"], P = {
84
84
  onMouseover: (l) => (f.value = n, d.value = !1),
85
85
  class: "pos-relative w-full h-full"
86
86
  }, [
87
- (a(), g(T($[t.type]), {
87
+ (a(), _(T($[t.type]), {
88
88
  index: n,
89
89
  component: t,
90
90
  prop: t,
91
91
  class: U(t.class),
92
92
  setFocus: t.setFocus,
93
93
  content: "content",
94
- onDeleteBlock: _,
94
+ onDeleteBlock: b,
95
95
  onAddBlock: i,
96
96
  onUpdateBlock: B
97
97
  }, null, 40, ["index", "component", "prop", "class", "setFocus"]))
98
98
  ], 40, O),
99
99
  V(z, { name: "fade" }, {
100
- default: b(() => [
100
+ default: g(() => [
101
101
  f.value === n ? (a(), r("div", {
102
102
  key: 0,
103
103
  class: "pos-absolute z-index-4 i-semi",
@@ -106,16 +106,16 @@ const O = ["onMouseover"], P = {
106
106
  }, [
107
107
  c("button", {
108
108
  onClick: o[0] || (o[0] = (l) => d.value = !d.value),
109
- class: "mn-small cursor-pointer w-100 i-semi bg-white radius-thin"
109
+ class: "mn-b-small cursor-pointer w-100 i-semi bg-white radius-thin"
110
110
  }, S(t.content ? "..." : "+"), 1),
111
111
  d.value ? (a(), r("div", P, [
112
112
  c("span", {
113
- onClick: (l) => _(t),
114
- class: "mn-thin w-max t-red bg-white button-small button"
113
+ onClick: (l) => b(t),
114
+ class: "mn-b-thin w-max t-red bg-white button-small button"
115
115
  }, " Remove ", 8, Q),
116
116
  c("span", {
117
117
  onClick: (l) => i("ImageUpload", "", n),
118
- class: "mn-thin w-max t-black bg-white button-small button"
118
+ class: "mn-b-thin w-max t-black bg-white button-small button"
119
119
  }, " Add Image ", 8, X),
120
120
  c("span", {
121
121
  onClick: (l) => i("H2", "", n),
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../components/Chips/Chips.vue.cjs"),y=require("../../../icons/navigation/IconEdit.vue.cjs"),C=require("../../../globals/components/blocks/CardHeader.vue.cjs");require("../../../community/store/reactions.cjs");const k=require("vue-router"),p={key:0,class:"o-hidden pos-relative bg-grey mn-small w-100"},E=["src"],T=["src"],w={class:"w-max mn-r-thin pd-thin radius-small t-semi bg-main"},B={key:0,class:"t-semi"},D={class:"t-semi"},U={key:0,class:"t-semi uppercase"},N={key:1,class:"cursor-pointer mn-thin flex-nowrap flex w-100"},b={key:0,class:""},V={key:1,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"},S={key:2,class:"mn-small p-big"},x={__name:"CardEvent",props:["event","user","short","type"],setup(t){e.ref(new Date),k.useRouter();const o=t;e.computed(()=>o.event.content.find(n=>n.type.name==="ImageUpload")),e.computed(()=>o.event.content.find(n=>n.type.name==="Textarea"));const u=e.computed(()=>{const n=new Date,s=Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds()),r=new Date(o.event.date.start),a=Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds())-s;if(a<0)return"Finished";if(a===0)return"Starting Now";{const d=Math.floor(a/1e3),l=Math.floor(d/60),c=Math.floor(l/60),m=Math.floor(c/24);return m>0?`${m} days until event`:c>0?`${c} hours until event`:l>0?`${l} minutes until event`:`${d} seconds until event`}}),v=e.computed(()=>{const n=new Date(o.event.date.start),s={day:"2-digit",month:"2-digit"};return n.toLocaleDateString(void 0,s)}),h=e.computed(()=>{console.log(o.event.date.start),console.log(o.event.date.end);const n=new Date(o.event.date.start),s=new Date(o.event.date.end),r=new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(n),i=new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(s);return`${r}-${i}`}),f=e.computed(()=>{const n=o.event.name;return n.length>26?`${n.substring(0,22)}…`:n});return(n,s)=>(e.openBlock(),e.createElementBlock("article",{class:e.normalizeClass([{"flex-nowrap flex-v-center flex":t.type==="short"},"pos-relative"])},[e.createVNode(C.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.event,entityType:"event",user:t.user,owner:t.event.owner,creator:t.event.creator,members:t.event.numberOfTickets,membersPhotos:t.event.participantsPhotos,type:t.type,dateFormatted:u.value},null,8,["class","entity","user","owner","creator","members","membersPhotos","type","dateFormatted"]),t.event.cover&&t.type!=="short"?(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("img",{src:(n.FILE_SERVER_URL||"")+t.event.cover,alt:"Event image",class:"pos-relative z-index-1 d-block mn-auto h-20r"},null,8,E),e.createElementVNode("img",{src:(n.FILE_SERVER_URL||"")+t.event.cover,alt:"Event Background",class:"z-index-0 pos-absolute w-100 h-100 pos-t-0 pos-r-0",style:{transform:"scale(1.5)",filter:"blur(2rem)","-webkit-filter":"blur(2rem)"}},null,8,T)])):e.createCommentVNode("",!0),e.createElementVNode("section",{class:e.normalizeClass(["pos-relative w-100",{"pd-t-zero pd-medium":t.type!=="short"}])},[t.user===t.event.creator.target._id?(e.openBlock(),e.createBlock(y.default,{key:0,onClick:s[0]||(s[0]=e.withModifiers(r=>n.$router.push({name:"Edit Event",params:{url:t.event.url}}),["stop"])),class:"z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([{"mn-small":t.type!=="short"},"flex-v-center flex-nowrap flex"])},[e.createElementVNode("div",w,[t.type!=="short"?(e.openBlock(),e.createElementBlock("span",B,e.toDisplayString(v.value)+" | ",1)):e.createCommentVNode("",!0),e.createElementVNode("span",D,e.toDisplayString(h.value),1)]),t.type==="short"?(e.openBlock(),e.createElementBlock("span",U,e.toDisplayString(f.value),1)):e.createCommentVNode("",!0)],2),t.type!=="short"?(e.openBlock(),e.createElementBlock("div",N,[t.type!=="short"?(e.openBlock(),e.createElementBlock("h3",b,e.toDisplayString(t.event.name),1)):e.createCommentVNode("",!0),t.event.status==="draft"?(e.openBlock(),e.createElementBlock("div",V,e.toDisplayString(t.event.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.type!=="short"?(e.openBlock(),e.createElementBlock("p",S,e.toDisplayString(t.event.description),1)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default"),t.type!=="short"&&t.event.tags.length>0?(e.openBlock(),e.createBlock(g.default,{key:3,chips:t.event.tags},null,8,["chips"])):e.createCommentVNode("",!0)],2)],2))}};exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../components/Chips/Chips.vue.cjs"),y=require("../../../icons/navigation/IconEdit.vue.cjs"),C=require("../../../globals/components/blocks/CardHeader.vue.cjs");require("../../../community/store/reactions.cjs");const k=require("vue-router"),p={key:0,class:"o-hidden pos-relative bg-grey mn-b-small w-100"},E=["src"],T=["src"],w={class:"w-max mn-r-thin pd-thin radius-small t-semi bg-main"},b={key:0,class:"t-semi"},B={class:"t-semi"},D={key:0,class:"t-semi uppercase"},U={key:1,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},N={key:0,class:""},V={key:1,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"},S={key:2,class:"mn-b-small p-big"},x={__name:"CardEvent",props:["event","user","short","type"],setup(t){e.ref(new Date),k.useRouter();const o=t;e.computed(()=>o.event.content.find(n=>n.type.name==="ImageUpload")),e.computed(()=>o.event.content.find(n=>n.type.name==="Textarea"));const u=e.computed(()=>{const n=new Date,s=Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds()),r=new Date(o.event.date.start),a=Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds())-s;if(a<0)return"Finished";if(a===0)return"Starting Now";{const d=Math.floor(a/1e3),l=Math.floor(d/60),c=Math.floor(l/60),m=Math.floor(c/24);return m>0?`${m} days until event`:c>0?`${c} hours until event`:l>0?`${l} minutes until event`:`${d} seconds until event`}}),v=e.computed(()=>{const n=new Date(o.event.date.start),s={day:"2-digit",month:"2-digit"};return n.toLocaleDateString(void 0,s)}),h=e.computed(()=>{console.log(o.event.date.start),console.log(o.event.date.end);const n=new Date(o.event.date.start),s=new Date(o.event.date.end),r=new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(n),i=new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(s);return`${r}-${i}`}),f=e.computed(()=>{const n=o.event.name;return n.length>26?`${n.substring(0,22)}…`:n});return(n,s)=>(e.openBlock(),e.createElementBlock("article",{class:e.normalizeClass([{"flex-nowrap flex-v-center flex":t.type==="short"},"pos-relative"])},[e.createVNode(C.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.event,entityType:"event",user:t.user,owner:t.event.owner,creator:t.event.creator,members:t.event.numberOfTickets,membersPhotos:t.event.participantsPhotos,type:t.type,dateFormatted:u.value},null,8,["class","entity","user","owner","creator","members","membersPhotos","type","dateFormatted"]),t.event.cover&&t.type!=="short"?(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("img",{src:(n.FILE_SERVER_URL||"")+t.event.cover,alt:"Event image",class:"pos-relative z-index-1 d-block mn-auto h-20r"},null,8,E),e.createElementVNode("img",{src:(n.FILE_SERVER_URL||"")+t.event.cover,alt:"Event Background",class:"z-index-0 pos-absolute w-100 h-100 pos-t-0 pos-r-0",style:{transform:"scale(1.5)",filter:"blur(2rem)","-webkit-filter":"blur(2rem)"}},null,8,T)])):e.createCommentVNode("",!0),e.createElementVNode("section",{class:e.normalizeClass(["pos-relative w-100",{"pd-t-zero pd-medium":t.type!=="short"}])},[t.user===t.event.creator.target._id?(e.openBlock(),e.createBlock(y.default,{key:0,onClick:s[0]||(s[0]=e.withModifiers(r=>n.$router.push({name:"Edit Event",params:{url:t.event.url}}),["stop"])),class:"z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([{"mn-b-small":t.type!=="short"},"flex-v-center flex-nowrap flex"])},[e.createElementVNode("div",w,[t.type!=="short"?(e.openBlock(),e.createElementBlock("span",b,e.toDisplayString(v.value)+" | ",1)):e.createCommentVNode("",!0),e.createElementVNode("span",B,e.toDisplayString(h.value),1)]),t.type==="short"?(e.openBlock(),e.createElementBlock("span",D,e.toDisplayString(f.value),1)):e.createCommentVNode("",!0)],2),t.type!=="short"?(e.openBlock(),e.createElementBlock("div",U,[t.type!=="short"?(e.openBlock(),e.createElementBlock("h3",N,e.toDisplayString(t.event.name),1)):e.createCommentVNode("",!0),t.event.status==="draft"?(e.openBlock(),e.createElementBlock("div",V,e.toDisplayString(t.event.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.type!=="short"?(e.openBlock(),e.createElementBlock("p",S,e.toDisplayString(t.event.description),1)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default"),t.type!=="short"&&t.event.tags.length>0?(e.openBlock(),e.createBlock(g.default,{key:3,chips:t.event.tags},null,8,["chips"])):e.createCommentVNode("",!0)],2)],2))}};exports.default=x;
@@ -1,4 +1,4 @@
1
- import { ref as b, computed as l, openBlock as n, createElementBlock as i, normalizeClass as m, createVNode as x, createElementVNode as c, createCommentVNode as a, createBlock as w, withModifiers as D, toDisplayString as d, renderSlot as E } from "vue";
1
+ import { ref as k, computed as l, openBlock as n, createElementBlock as i, normalizeClass as m, createVNode as x, createElementVNode as c, createCommentVNode as a, createBlock as w, withModifiers as D, toDisplayString as d, renderSlot as E } from "vue";
2
2
  import p from "../../../../components/Chips/Chips.vue.js";
3
3
  import $ from "../../../icons/navigation/IconEdit.vue.js";
4
4
  import I from "../../../globals/components/blocks/CardHeader.vue.js";
@@ -6,7 +6,7 @@ import "../../../community/store/reactions.js";
6
6
  import { useRouter as M } from "vue-router";
7
7
  const F = {
8
8
  key: 0,
9
- class: "o-hidden pos-relative bg-grey mn-small w-100"
9
+ class: "o-hidden pos-relative bg-grey mn-b-small w-100"
10
10
  }, S = ["src"], R = ["src"], N = { class: "w-max mn-r-thin pd-thin radius-small t-semi bg-main" }, z = {
11
11
  key: 0,
12
12
  class: "t-semi"
@@ -15,7 +15,7 @@ const F = {
15
15
  class: "t-semi uppercase"
16
16
  }, B = {
17
17
  key: 1,
18
- class: "cursor-pointer mn-thin flex-nowrap flex w-100"
18
+ class: "cursor-pointer mn-b-thin flex-nowrap flex w-100"
19
19
  }, H = {
20
20
  key: 0,
21
21
  class: ""
@@ -24,12 +24,12 @@ const F = {
24
24
  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"
25
25
  }, Y = {
26
26
  key: 2,
27
- class: "mn-small p-big"
27
+ class: "mn-b-small p-big"
28
28
  }, K = {
29
29
  __name: "CardEvent",
30
30
  props: ["event", "user", "short", "type"],
31
31
  setup(e) {
32
- b(/* @__PURE__ */ new Date()), M();
32
+ k(/* @__PURE__ */ new Date()), M();
33
33
  const s = e;
34
34
  l(() => s.event.content.find((t) => t.type.name === "ImageUpload")), l(() => s.event.content.find((t) => t.type.name === "Textarea"));
35
35
  const T = l(() => {
@@ -45,11 +45,11 @@ const F = {
45
45
  }), C = l(() => {
46
46
  const t = new Date(s.event.date.start), o = { day: "2-digit", month: "2-digit" };
47
47
  return t.toLocaleDateString(void 0, o);
48
- }), U = l(() => {
48
+ }), b = l(() => {
49
49
  console.log(s.event.date.start), console.log(s.event.date.end);
50
50
  const t = new Date(s.event.date.start), o = new Date(s.event.date.end), r = new Intl.DateTimeFormat(void 0, { hour: "2-digit", minute: "2-digit", hourCycle: "h23" }).format(t), v = new Intl.DateTimeFormat(void 0, { hour: "2-digit", minute: "2-digit", hourCycle: "h23" }).format(o);
51
51
  return `${r}-${v}`;
52
- }), k = l(() => {
52
+ }), U = l(() => {
53
53
  const t = s.event.name;
54
54
  return t.length > 26 ? `${t.substring(0, 22)}…` : t;
55
55
  });
@@ -60,7 +60,7 @@ const F = {
60
60
  }, [
61
61
  x(I, {
62
62
  class: m({
63
- "mn-small pd-medium": e.type !== "short",
63
+ "mn-b-small pd-medium": e.type !== "short",
64
64
  "flex-child-order-last flex-child mn-l-small": e.type === "short"
65
65
  }),
66
66
  entity: e.event,
@@ -100,13 +100,13 @@ const F = {
100
100
  class: "z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
101
101
  })) : a("", !0),
102
102
  c("div", {
103
- class: m([{ "mn-small": e.type !== "short" }, "flex-v-center flex-nowrap flex"])
103
+ class: m([{ "mn-b-small": e.type !== "short" }, "flex-v-center flex-nowrap flex"])
104
104
  }, [
105
105
  c("div", N, [
106
106
  e.type !== "short" ? (n(), i("span", z, d(C.value) + " | ", 1)) : a("", !0),
107
- c("span", L, d(U.value), 1)
107
+ c("span", L, d(b.value), 1)
108
108
  ]),
109
- e.type === "short" ? (n(), i("span", V, d(k.value), 1)) : a("", !0)
109
+ e.type === "short" ? (n(), i("span", V, d(U.value), 1)) : a("", !0)
110
110
  ], 2),
111
111
  e.type !== "short" ? (n(), i("div", B, [
112
112
  e.type !== "short" ? (n(), i("h3", H, d(e.event.name), 1)) : a("", !0),
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),p=require("../../../../components/Button/Button.vue2.cjs");require("../../../auth/store/auth.cjs");const s=require("../../store/tickets.cjs");require("./ButtonJoin.vue2.cjs");const g=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),k={__name:"ButtonJoin",props:{type:{type:String,required:!0},userId:{type:String,required:!0},hasTicket:{type:Boolean,required:!0},targetId:{type:String,required:!0}},emits:["updateTicket"],setup(o,{emit:c}){const n=c,t=o,u=async()=>{t.hasTicket?await l(t.targetId):await d(t.targetId)};async function d(i){try{const e={type:t.type,target:i,user:t.userId},r=await s.actions.create(e);n("updateTicket",{ticket:r,hasTicket:!0,targetId:t.targetId})}catch(e){throw console.log(e),e}}async function l(i){const e={type:t.type,target:i,user:t.userId};try{const r=await s.actions.delete(e);n("updateTicket",{ticket:r,hasTicket:!1,targetId:t.targetId})}catch(r){throw console.log(r),r}}return(i,e)=>(a.openBlock(),a.createBlock(p.default,{submit:u,class:"bg-main button-small radius-extra button"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o.hasTicket?"Leave":"Join"),1)]),_:1}))}},y=g.default(k,[["__scopeId","data-v-872ff798"]]);exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),p=require("../../../../components/Button/Button.vue.cjs");require("../../../auth/store/auth.cjs");const s=require("../../store/tickets.cjs");require("./ButtonJoin.vue2.cjs");const g=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),k={__name:"ButtonJoin",props:{type:{type:String,required:!0},userId:{type:String,required:!0},hasTicket:{type:Boolean,required:!0},targetId:{type:String,required:!0}},emits:["updateTicket"],setup(o,{emit:c}){const n=c,t=o,u=async()=>{t.hasTicket?await l(t.targetId):await d(t.targetId)};async function d(i){try{const e={type:t.type,target:i,user:t.userId},r=await s.actions.create(e);n("updateTicket",{ticket:r,hasTicket:!0,targetId:t.targetId})}catch(e){throw console.log(e),e}}async function l(i){const e={type:t.type,target:i,user:t.userId};try{const r=await s.actions.delete(e);n("updateTicket",{ticket:r,hasTicket:!1,targetId:t.targetId})}catch(r){throw console.log(r),r}}return(i,e)=>(a.openBlock(),a.createBlock(p.default,{submit:u,class:"bg-main button-small radius-extra button"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o.hasTicket?"Leave":"Join"),1)]),_:1}))}},y=g.default(k,[["__scopeId","data-v-872ff798"]]);exports.default=y;
@@ -1,5 +1,5 @@
1
1
  import { openBlock as d, createBlock as g, withCtx as m, createTextVNode as l, toDisplayString as k } from "vue";
2
- import f from "../../../../components/Button/Button.vue2.js";
2
+ import f from "../../../../components/Button/Button.vue.js";
3
3
  import "../../../auth/store/auth.js";
4
4
  import { actions as c } from "../../store/tickets.js";
5
5
  import "./ButtonJoin.vue2.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("../../../../components/Select/Select.vue.cjs");const f=require("../../../../components/DatePicker/DatePicker.vue.cjs"),i=require("../../store/events.cjs"),m={class:"pd-thin min-h-100vh"},g=e.createElementVNode("div",{class:"mn-thin br-solid br-1px br-grey bg-grey radius-big"},null,-1),y={class:""},_={__name:"layoutEvents",setup(b){const l=c.useRoute(),d=c.useRouter(),u=p(new Date);function p(t){return`${t.getDate().toString().padStart(2,"0")}${(t.getMonth()+1).toString().padStart(2,"0")}${t.getFullYear()}`}if(l.query){const t=l.query,s={tags:t.tags?t.tags.split(","):null,date:t.date?t.date:u};i.state.filter=s}else{const t={date:u};i.state.filter=t}return e.watch(()=>i.state.filter,(t,s)=>{const a={...l.query};Object.keys(s).forEach(o=>{a[o]&&delete a[o]});const n=Object.fromEntries(Object.entries(t).filter(([o,r])=>Array.isArray(r)&&r.length>0||typeof r=="string"&&r).map(([o,r])=>[o,Array.isArray(r)?r.join(","):r]));Object.assign(a,n),d.push({query:a})},{deep:!0}),(t,s)=>{const a=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createVNode(f.default,{date:i.state.filter.date,"onUpdate:date":s[0]||(s[0]=n=>i.state.filter.date=n),locale:t.$i18n.locale,class:"radius-small bg-grey pd-l-zero pd-r-zero pd-medium"},null,8,["date","locale"]),g,e.createElementVNode("section",y,[e.createVNode(a,null,{default:e.withCtx(({Component:n,route:o})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n),{ref:"page",key:o.query}))]),_:2},1024)]),_:1})])])}}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("../../../../components/Select/Select.vue2.cjs");const f=require("../../../../components/DatePicker/DatePicker.vue.cjs"),i=require("../../store/events.cjs"),m={class:"pd-thin min-h-100vh"},g=e.createElementVNode("div",{class:"mn-b-thin br-solid br-1px br-grey bg-grey radius-big"},null,-1),y={class:""},_={__name:"layoutEvents",setup(b){const l=c.useRoute(),d=c.useRouter(),u=p(new Date);function p(t){return`${t.getDate().toString().padStart(2,"0")}${(t.getMonth()+1).toString().padStart(2,"0")}${t.getFullYear()}`}if(l.query){const t=l.query,s={tags:t.tags?t.tags.split(","):null,date:t.date?t.date:u};i.state.filter=s}else{const t={date:u};i.state.filter=t}return e.watch(()=>i.state.filter,(t,s)=>{const a={...l.query};Object.keys(s).forEach(o=>{a[o]&&delete a[o]});const n=Object.fromEntries(Object.entries(t).filter(([o,r])=>Array.isArray(r)&&r.length>0||typeof r=="string"&&r).map(([o,r])=>[o,Array.isArray(r)?r.join(","):r]));Object.assign(a,n),d.push({query:a})},{deep:!0}),(t,s)=>{const a=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createVNode(f.default,{date:i.state.filter.date,"onUpdate:date":s[0]||(s[0]=n=>i.state.filter.date=n),locale:t.$i18n.locale,class:"radius-small bg-grey pd-l-zero pd-r-zero pd-medium"},null,8,["date","locale"]),g,e.createElementVNode("section",y,[e.createVNode(a,null,{default:e.withCtx(({Component:n,route:o})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n),{ref:"page",key:o.query}))]),_:2},1024)]),_:1})])])}}};exports.default=_;
@@ -1,9 +1,9 @@
1
1
  import { watch as y, resolveComponent as g, openBlock as u, createElementBlock as _, createVNode as l, createElementVNode as m, withCtx as d, Transition as b, createBlock as h, resolveDynamicComponent as w } from "vue";
2
2
  import { useRoute as D, useRouter as q } from "vue-router";
3
- import "../../../../components/Select/Select.vue.js";
3
+ import "../../../../components/Select/Select.vue2.js";
4
4
  import j from "../../../../components/DatePicker/DatePicker.vue.js";
5
5
  import { state as s } from "../../store/events.js";
6
- const k = { class: "pd-thin min-h-100vh" }, E = /* @__PURE__ */ m("div", { class: "mn-thin br-solid br-1px br-grey bg-grey radius-big" }, null, -1), V = { class: "" }, B = {
6
+ const k = { class: "pd-thin min-h-100vh" }, E = /* @__PURE__ */ m("div", { class: "mn-b-thin br-solid br-1px br-grey bg-grey radius-big" }, null, -1), V = { class: "" }, B = {
7
7
  __name: "layoutEvents",
8
8
  setup($) {
9
9
  const i = D(), p = q(), c = f(/* @__PURE__ */ new Date());
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../constructor/components/elements/Textarea.vue.cjs");const N=require("../../../constructor/components/sections/Constructor.vue.cjs"),E=require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.cjs");const y=require("../../../../components/Popup/Popup.vue.cjs"),f=require("../../../../components/Field/Field.vue2.cjs"),q=require("../../../../components/FieldTags/BlockTags.vue.cjs"),P=require("../../../../components/Checkbox/Checkbox.vue.cjs"),C=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),x=require("../../../../components/UploadImage/UploadImage.vue.cjs"),B=require("../../../../components/Button/Button.vue2.cjs"),v=require("vue-router"),s=require("../../store/events.cjs"),u=require("../../../auth/store/auth.cjs"),D=require("../../../organizations/store/organizations.cjs");require("./EditEvent.vue2.cjs");const U={key:0,class:"h-100 pd-thin"},T={class:"mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},z=e.createElementVNode("h4",null,"Upload Event Cover",-1),O=e.createElementVNode("h3",{class:"mn-small"},"Date",-1),M=e.createElementVNode("h3",{class:"mn-small"},"Description",-1),S={key:0,class:"pd-b-extra w-100 bg-grey pd-big radius-big"},A={key:1,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},R={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},$=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),F=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),j={key:0,class:"mn-thin"},H={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},G={__name:"EditEvent",setup(J){const i=v.useRoute(),d=v.useRouter();let t=e.ref(null),p=e.ref(null);const m=e.ref([]),n=e.ref(null),r=e.ref(),h=()=>({top:0,left:0});e.onMounted(async()=>{if(i.params.url){const a=await s.read({user:u.state.user._id,url:i.params.url});t.value=a.pop();const l=t.value.date.start,_=t.value.date.end;r.value=[l,_]}else{s.clean(),t.value=s.state.current;const a=new Date,l=new Date;r.value=[a,l]}t.value.owner||(t.value.owner={target:u.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:u.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(n.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const o=await D.actions.read({user:u.state.user._id,postable:u.state.user._id,limit:100});p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const c=e.ref(!1);function g(){c.value=!0}function b(){c.value=!1}function k(){m.value.length>0&&m.value.map(o=>o.text),t.value.status="draft",t.value.date={start:r.value[0],end:r.value[1]},i.params.url?s.update(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.error(o)}):s.create(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.error(o)})}function V(){n.value&&(t.value.owner={target:n.value._id,type:"organization"}),n.value||(t.value.creator.hidden=!1),n.value||(t.value.organization=t.value.creator),t.value.status="published",t.value.date={start:r.value[0],end:r.value[1]},console.log(r.value),i.params.url?s.update(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.log(o)}):s.create(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.log(o)})}function w(){confirm("Are you sure you want to delete this event?")&&s.remove(t.value._id).then(o=>{d.push({name:"User Events",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.error(o)})}return(o,a)=>e.unref(t)?(e.openBlock(),e.createElementBlock("article",U,[e.createElementVNode("div",T,[e.createVNode(x.default,{photo:e.unref(t).cover,"onUpdate:photo":a[0]||(a[0]=l=>e.unref(t).cover=l),uploadPath:"users/"+u.state.user._id+"/events",class:"h-4r w-4r aspect-1x1 o-hidden mn-thin radius-extra"},null,8,["photo","uploadPath"]),z]),e.createVNode(f.default,{field:e.unref(t).name,"onUpdate:field":a[1]||(a[1]=l=>e.unref(t).name=l),placeholder:"Event name",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(f.default,{field:e.unref(t).description,"onUpdate:field":a[2]||(a[2]=l=>e.unref(t).description=l),type:"textfield",placeholder:"Enter short description",class:"mn-semi w-100 bg-grey pd-medium radius-small"},null,8,["field"]),O,e.createVNode(e.unref(E.default),{modelValue:r.value,"onUpdate:modelValue":a[3]||(a[3]=l=>r.value=l),"alt-position":h,range:"",class:"mn-semi"},null,8,["modelValue"]),M,e.unref(t)?(e.openBlock(),e.createElementBlock("section",S,[e.createVNode(N.default,{content:e.unref(t).content,onUpdate:a[4]||(a[4]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",A,[e.createElementVNode("div",R,[e.unref(i).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[5]||(a[5]=l=>w()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[6]||(a[6]=l=>k()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[7]||(a[7]=l=>g()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(y.default,{title:"Добавить участника",onClosePopup:b,isPopupOpen:c.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[$,e.createVNode(q.default,{onTagsChanged:a[8]||(a[8]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),F,e.createVNode(C.default,{modelValue:n.value,"onUpdate:modelValue":a[9]||(a[9]=l=>n.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"]),n.value?(e.openBlock(),e.createElementBlock("h5",j,"Options:")):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createElementBlock("div",H,[e.createVNode(P.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[10]||(a[10]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(B.default,{submit:V,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])])):e.createCommentVNode("",!0)}};exports.default=G;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../constructor/components/elements/Textarea.vue2.cjs");const N=require("../../../constructor/components/sections/Constructor.vue.cjs"),E=require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.cjs");const y=require("../../../../components/Popup/Popup.vue.cjs"),f=require("../../../../components/Field/Field.vue2.cjs"),q=require("../../../../components/FieldTags/BlockTags.vue.cjs"),P=require("../../../../components/Checkbox/Checkbox.vue.cjs"),C=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),x=require("../../../../components/UploadImage/UploadImage.vue.cjs"),B=require("../../../../components/Button/Button.vue.cjs"),v=require("vue-router"),s=require("../../store/events.cjs"),u=require("../../../auth/store/auth.cjs"),D=require("../../../organizations/store/organizations.cjs");require("./EditEvent.vue2.cjs");const U={key:0,class:"h-100 pd-thin"},T={class:"mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},z=e.createElementVNode("h4",null,"Upload Event Cover",-1),O=e.createElementVNode("h3",{class:"mn-b-small"},"Date",-1),M=e.createElementVNode("h3",{class:"mn-b-small"},"Description",-1),S={key:0,class:"pd-b-extra w-100 bg-grey pd-big radius-big"},A={key:1,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},R={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},$=e.createElementVNode("h3",{class:"mn-b-small"},"Final Touches",-1),F=e.createElementVNode("h5",{class:"mn-b-thin"},"Add to public:",-1),j={key:0,class:"mn-b-thin"},H={key:1,class:"mn-b-medium br-grey br-2px br-solid pd-small radius-big"},G={__name:"EditEvent",setup(J){const i=v.useRoute(),d=v.useRouter();let t=e.ref(null),p=e.ref(null);const m=e.ref([]),n=e.ref(null),r=e.ref(),b=()=>({top:0,left:0});e.onMounted(async()=>{if(i.params.url){const a=await s.read({user:u.state.user._id,url:i.params.url});t.value=a.pop();const l=t.value.date.start,_=t.value.date.end;r.value=[l,_]}else{s.clean(),t.value=s.state.current;const a=new Date,l=new Date;r.value=[a,l]}t.value.owner||(t.value.owner={target:u.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:u.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(n.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const o=await D.actions.read({user:u.state.user._id,postable:u.state.user._id,limit:100});p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const c=e.ref(!1);function h(){c.value=!0}function g(){c.value=!1}function k(){m.value.length>0&&m.value.map(o=>o.text),t.value.status="draft",t.value.date={start:r.value[0],end:r.value[1]},i.params.url?s.update(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.error(o)}):s.create(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.error(o)})}function V(){n.value&&(t.value.owner={target:n.value._id,type:"organization"}),n.value||(t.value.creator.hidden=!1),n.value||(t.value.organization=t.value.creator),t.value.status="published",t.value.date={start:r.value[0],end:r.value[1]},console.log(r.value),i.params.url?s.update(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.log(o)}):s.create(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.log(o)})}function w(){confirm("Are you sure you want to delete this event?")&&s.remove(t.value._id).then(o=>{d.push({name:"User Events",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.error(o)})}return(o,a)=>e.unref(t)?(e.openBlock(),e.createElementBlock("article",U,[e.createElementVNode("div",T,[e.createVNode(x.default,{photo:e.unref(t).cover,"onUpdate:photo":a[0]||(a[0]=l=>e.unref(t).cover=l),uploadPath:"users/"+u.state.user._id+"/events",class:"h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),z]),e.createVNode(f.default,{field:e.unref(t).name,"onUpdate:field":a[1]||(a[1]=l=>e.unref(t).name=l),placeholder:"Event name",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(f.default,{field:e.unref(t).description,"onUpdate:field":a[2]||(a[2]=l=>e.unref(t).description=l),type:"textfield",placeholder:"Enter short description",class:"mn-b-semi w-100 bg-grey pd-medium radius-small"},null,8,["field"]),O,e.createVNode(e.unref(E.default),{modelValue:r.value,"onUpdate:modelValue":a[3]||(a[3]=l=>r.value=l),"alt-position":b,range:"",class:"mn-b-semi"},null,8,["modelValue"]),M,e.unref(t)?(e.openBlock(),e.createElementBlock("section",S,[e.createVNode(N.default,{content:e.unref(t).content,onUpdate:a[4]||(a[4]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",A,[e.createElementVNode("div",R,[e.unref(i).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[5]||(a[5]=l=>w()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[6]||(a[6]=l=>k()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[7]||(a[7]=l=>h()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(y.default,{title:"Добавить участника",onClosePopup:g,isPopupOpen:c.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[$,e.createVNode(q.default,{onTagsChanged:a[8]||(a[8]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),F,e.createVNode(C.default,{modelValue:n.value,"onUpdate:modelValue":a[9]||(a[9]=l=>n.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"]),n.value?(e.openBlock(),e.createElementBlock("h5",j,"Options:")):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createElementBlock("div",H,[e.createVNode(P.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[10]||(a[10]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(B.default,{submit:V,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])])):e.createCommentVNode("",!0)}};exports.default=G;
@@ -1,5 +1,5 @@
1
1
  import { ref as u, onMounted as $, unref as l, openBlock as d, createElementBlock as m, createElementVNode as i, createVNode as s, createCommentVNode as p, withCtx as _, createTextVNode as T } from "vue";
2
- import "../../../constructor/components/elements/Textarea.vue.js";
2
+ import "../../../constructor/components/elements/Textarea.vue2.js";
3
3
  import z from "../../../constructor/components/sections/Constructor.vue.js";
4
4
  import N from "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
5
5
  import "../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.js";
@@ -9,7 +9,7 @@ import A from "../../../../components/FieldTags/BlockTags.vue.js";
9
9
  import B from "../../../../components/Checkbox/Checkbox.vue.js";
10
10
  import F from "../../../../components/SelectMulti/SelectMulti.vue.js";
11
11
  import M from "../../../../components/UploadImage/UploadImage.vue.js";
12
- import R from "../../../../components/Button/Button.vue2.js";
12
+ import R from "../../../../components/Button/Button.vue.js";
13
13
  import { useRoute as S, useRouter as j } from "vue-router";
14
14
  import { read as H, clean as q, state as G, update as y, create as k, remove as J } from "../../store/events.js";
15
15
  import { state as c } from "../../../auth/store/auth.js";
@@ -18,24 +18,24 @@ import "./EditEvent.vue2.js";
18
18
  const L = {
19
19
  key: 0,
20
20
  class: "h-100 pd-thin"
21
- }, Q = { class: "mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, W = /* @__PURE__ */ i("h4", null, "Upload Event Cover", -1), X = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Date", -1), Y = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Description", -1), Z = {
21
+ }, Q = { class: "mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, W = /* @__PURE__ */ i("h4", null, "Upload Event Cover", -1), X = /* @__PURE__ */ i("h3", { class: "mn-b-small" }, "Date", -1), Y = /* @__PURE__ */ i("h3", { class: "mn-b-small" }, "Description", -1), Z = {
22
22
  key: 0,
23
23
  class: "pd-b-extra w-100 bg-grey pd-big radius-big"
24
24
  }, I = {
25
25
  key: 1,
26
26
  class: "pd-thin pos-sticky pos-l-0 pos-b-0 w-100"
27
- }, ee = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, te = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Final Touches", -1), ae = /* @__PURE__ */ i("h5", { class: "mn-thin" }, "Add to public:", -1), oe = {
27
+ }, ee = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, te = /* @__PURE__ */ i("h3", { class: "mn-b-small" }, "Final Touches", -1), ae = /* @__PURE__ */ i("h5", { class: "mn-b-thin" }, "Add to public:", -1), oe = {
28
28
  key: 0,
29
- class: "mn-thin"
29
+ class: "mn-b-thin"
30
30
  }, le = {
31
31
  key: 1,
32
- class: "mn-medium br-grey br-2px br-solid pd-small radius-big"
32
+ class: "mn-b-medium br-grey br-2px br-solid pd-small radius-big"
33
33
  }, xe = {
34
34
  __name: "EditEvent",
35
35
  setup(se) {
36
36
  const v = S(), f = j();
37
- let e = u(null), g = u(null);
38
- const b = u([]), n = u(null), r = u(), x = () => ({ top: 0, left: 0 });
37
+ let e = u(null), h = u(null);
38
+ const g = u([]), n = u(null), r = u(), x = () => ({ top: 0, left: 0 });
39
39
  $(async () => {
40
40
  if (v.params.url) {
41
41
  const t = await H({ user: c.user._id, url: v.params.url });
@@ -64,21 +64,21 @@ const L = {
64
64
  postable: c.user._id,
65
65
  limit: 100
66
66
  });
67
- g.value = a.map((t) => ({
67
+ h.value = a.map((t) => ({
68
68
  name: t.profile.name,
69
69
  _id: t._id,
70
70
  photo: t.profile.photo
71
71
  }));
72
72
  });
73
- const h = u(!1);
73
+ const b = u(!1);
74
74
  function P() {
75
- h.value = !0;
75
+ b.value = !0;
76
76
  }
77
77
  function D() {
78
- h.value = !1;
78
+ b.value = !1;
79
79
  }
80
80
  function E() {
81
- b.value.length > 0 && b.value.map((a) => a.text), e.value.status = "draft", e.value.date = {
81
+ g.value.length > 0 && g.value.map((a) => a.text), e.value.status = "draft", e.value.date = {
82
82
  start: r.value[0],
83
83
  end: r.value[1]
84
84
  }, v.params.url ? y(e.value).then((a) => {
@@ -121,7 +121,7 @@ const L = {
121
121
  photo: l(e).cover,
122
122
  "onUpdate:photo": t[0] || (t[0] = (o) => l(e).cover = o),
123
123
  uploadPath: "users/" + c.user._id + "/events",
124
- class: "h-4r w-4r aspect-1x1 o-hidden mn-thin radius-extra"
124
+ class: "h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"
125
125
  }, null, 8, ["photo", "uploadPath"]),
126
126
  W
127
127
  ]),
@@ -129,14 +129,14 @@ const L = {
129
129
  field: l(e).name,
130
130
  "onUpdate:field": t[1] || (t[1] = (o) => l(e).name = o),
131
131
  placeholder: "Event name",
132
- class: "mn-thin w-100 bg-grey pd-medium radius-small"
132
+ class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
133
133
  }, null, 8, ["field"]),
134
134
  s(w, {
135
135
  field: l(e).description,
136
136
  "onUpdate:field": t[2] || (t[2] = (o) => l(e).description = o),
137
137
  type: "textfield",
138
138
  placeholder: "Enter short description",
139
- class: "mn-semi w-100 bg-grey pd-medium radius-small"
139
+ class: "mn-b-semi w-100 bg-grey pd-medium radius-small"
140
140
  }, null, 8, ["field"]),
141
141
  X,
142
142
  s(l(N), {
@@ -144,7 +144,7 @@ const L = {
144
144
  "onUpdate:modelValue": t[3] || (t[3] = (o) => r.value = o),
145
145
  "alt-position": x,
146
146
  range: "",
147
- class: "mn-semi"
147
+ class: "mn-b-semi"
148
148
  }, null, 8, ["modelValue"]),
149
149
  Y,
150
150
  l(e) ? (d(), m("section", Z, [
@@ -173,7 +173,7 @@ const L = {
173
173
  s(O, {
174
174
  title: "Добавить участника",
175
175
  onClosePopup: D,
176
- isPopupOpen: h.value,
176
+ isPopupOpen: b.value,
177
177
  class: "w-m-33r t-left pd-big bg-white radius-big"
178
178
  }, {
179
179
  default: _(() => [
@@ -186,13 +186,13 @@ const L = {
186
186
  s(F, {
187
187
  modelValue: n.value,
188
188
  "onUpdate:modelValue": t[9] || (t[9] = (o) => n.value = o),
189
- options: l(g),
189
+ options: l(h),
190
190
  multiple: !1,
191
191
  taggable: !1,
192
192
  placeholder: "Type to search or add tag",
193
193
  label: "name",
194
194
  "track-by": "_id",
195
- class: "mn-medium bg-grey radius-medium pd-small"
195
+ class: "mn-b-medium bg-grey radius-medium pd-small"
196
196
  }, null, 8, ["modelValue", "options"]),
197
197
  n.value ? (d(), m("h5", oe, "Options:")) : p("", !0),
198
198
  n.value ? (d(), m("div", le, [
@@ -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 m=require("../../../../components/EmptyState/EmptyState.vue.cjs"),p=require("../blocks/CardEvent.vue.cjs"),v=require("../../../icons/skeletons/SkeletonEvent.vue.cjs"),g=require("../elements/ButtonJoin.vue.cjs"),k=require("../../../community/components/sections/Comments.vue.cjs"),f=require("../../../constructor/components/elements/Image.vue.cjs"),y=require("../../store/events.cjs"),_=require("../../store/tickets.cjs"),o=require("../../../auth/store/auth.cjs"),B=require("vue-router"),h={class:"pd-thin"},C={__name:"Event",setup(T){const l=B.useRoute(),c=({ticket:n,hasTicket:u,targetId:r})=>{_.mutations.handleTicketUpdate(t.value,n,u,r)},i={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:f.default};function d(n){return n.type==="Textarea"?{innerHTML:n.content,class:"p-medium"}:n.type==="H2"?{innerHTML:n.content,class:"h3"}:n.type==="Caption"?{innerHTML:n.content}:n.type==="ImageUpload"?{src:n.content}:{}}const t=e.ref(null),a=e.ref(!0);return e.onMounted(async()=>{a.value=!0;const n=await y.read({user:o.state.user._id,url:l.params.url});t.value=n[0],a.value=!1}),(n,u)=>(e.openBlock(),e.createElementBlock("section",h,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,r=>e.createVNode(v.default,{key:r})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!a.value&&!t.value?(e.openBlock(),e.createBlock(m.default,{key:0,title:"No Event Found",description:"Currently, there are no events 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(()=>[!a.value&&t.value?(e.openBlock(),e.createBlock(p.default,{key:0,onClick:u[0]||(u[0]=r=>n.$router.push({name:"Event",params:{url:t.value.url}})),event:t.value,owner:t.value.owner,user:o.state.user._id,type:"normal",class:"mn-medium bg-grey radius-big"},{default:e.withCtx(()=>[o.state.user._id?(e.openBlock(),e.createBlock(g.default,{key:0,type:"event",hasTicket:t.value.hasTicket,targetId:t.value._id,userId:o.state.user._id,class:"mn-small w-100 pd-medium mn-auto",onUpdateTicket:c},null,8,["hasTicket","targetId","userId"])):e.createCommentVNode("",!0),e.createElementVNode("section",null,[t.value&&t.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.value.content,(r,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i[r.type]),e.mergeProps({key:s,index:s,component:r,prop:r,class:r.class,content:"content"},d(r),{class:"mn-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["event","owner","user"])):e.createCommentVNode("",!0),!a.value&&t.value?(e.openBlock(),e.createBlock(k.default,{key:1,type:"event",target:t.value._id,owner:o.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const m=require("../../../../components/EmptyState/EmptyState.vue.cjs"),p=require("../blocks/CardEvent.vue.cjs"),v=require("../../../icons/skeletons/SkeletonEvent.vue.cjs"),g=require("../elements/ButtonJoin.vue.cjs"),k=require("../../../community/components/sections/Comments.vue.cjs"),f=require("../../../constructor/components/elements/Image.vue.cjs"),y=require("../../store/events.cjs"),_=require("../../store/tickets.cjs"),o=require("../../../auth/store/auth.cjs"),B=require("vue-router"),h={class:"pd-thin"},C={__name:"Event",setup(T){const l=B.useRoute(),c=({ticket:n,hasTicket:u,targetId:r})=>{_.mutations.handleTicketUpdate(t.value,n,u,r)},i={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:f.default};function d(n){return n.type==="Textarea"?{innerHTML:n.content,class:"p-medium"}:n.type==="H2"?{innerHTML:n.content,class:"h3"}:n.type==="Caption"?{innerHTML:n.content}:n.type==="ImageUpload"?{src:n.content}:{}}const t=e.ref(null),a=e.ref(!0);return e.onMounted(async()=>{a.value=!0;const n=await y.read({user:o.state.user._id,url:l.params.url});t.value=n[0],a.value=!1}),(n,u)=>(e.openBlock(),e.createElementBlock("section",h,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,r=>e.createVNode(v.default,{key:r})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!a.value&&!t.value?(e.openBlock(),e.createBlock(m.default,{key:0,title:"No Event Found",description:"Currently, there are no events 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(()=>[!a.value&&t.value?(e.openBlock(),e.createBlock(p.default,{key:0,onClick:u[0]||(u[0]=r=>n.$router.push({name:"Event",params:{url:t.value.url}})),event:t.value,owner:t.value.owner,user:o.state.user._id,type:"normal",class:"mn-b-medium bg-grey radius-big"},{default:e.withCtx(()=>[o.state.user._id?(e.openBlock(),e.createBlock(g.default,{key:0,type:"event",hasTicket:t.value.hasTicket,targetId:t.value._id,userId:o.state.user._id,class:"mn-b-small w-100 pd-medium mn-auto",onUpdateTicket:c},null,8,["hasTicket","targetId","userId"])):e.createCommentVNode("",!0),e.createElementVNode("section",null,[t.value&&t.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.value.content,(r,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i[r.type]),e.mergeProps({key:s,index:s,component:r,prop:r,class:r.class,content:"content"},d(r),{class:"mn-b-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["event","owner","user"])):e.createCommentVNode("",!0),!a.value&&t.value?(e.openBlock(),e.createBlock(k.default,{key:1,type:"event",target:t.value._id,owner:o.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=C;
@@ -10,7 +10,7 @@ import { read as U } from "../../store/events.js";
10
10
  import { mutations as N } from "../../store/tickets.js";
11
11
  import { state as s } from "../../../auth/store/auth.js";
12
12
  import { useRoute as P } from "vue-router";
13
- const V = { class: "pd-thin" }, W = {
13
+ const V = { class: "pd-thin" }, Q = {
14
14
  __name: "Event",
15
15
  setup(F) {
16
16
  const g = P(), y = ({ ticket: t, hasTicket: i, targetId: n }) => {
@@ -47,7 +47,7 @@ const V = { class: "pd-thin" }, W = {
47
47
  key: 0,
48
48
  title: "No Event Found",
49
49
  description: "Currently, there are no events available. Please check back later.",
50
- class: "pd-medium mn-thin bg-grey radius-big"
50
+ class: "pd-medium mn-b-thin bg-grey radius-big"
51
51
  })) : o("", !0)
52
52
  ]),
53
53
  _: 1
@@ -65,7 +65,7 @@ const V = { class: "pd-thin" }, W = {
65
65
  owner: e.value.owner,
66
66
  user: s.user._id,
67
67
  type: "normal",
68
- class: "mn-medium bg-grey radius-big"
68
+ class: "mn-b-medium bg-grey radius-big"
69
69
  }, {
70
70
  default: m(() => [
71
71
  s.user._id ? (r(), u(H, {
@@ -74,7 +74,7 @@ const V = { class: "pd-thin" }, W = {
74
74
  hasTicket: e.value.hasTicket,
75
75
  targetId: e.value._id,
76
76
  userId: s.user._id,
77
- class: "mn-small w-100 pd-medium mn-auto",
77
+ class: "mn-b-small w-100 pd-medium mn-auto",
78
78
  onUpdateTicket: y
79
79
  }, null, 8, ["hasTicket", "targetId", "userId"])) : o("", !0),
80
80
  C("section", null, [
@@ -85,7 +85,7 @@ const V = { class: "pd-thin" }, W = {
85
85
  prop: n,
86
86
  class: n.class,
87
87
  content: "content"
88
- }, T(n), { class: "mn-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : o("", !0)
88
+ }, T(n), { class: "mn-b-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : o("", !0)
89
89
  ])
90
90
  ]),
91
91
  _: 1
@@ -103,5 +103,5 @@ const V = { class: "pd-thin" }, W = {
103
103
  }
104
104
  };
105
105
  export {
106
- W as default
106
+ Q as default
107
107
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const t=require("../sections/Feed.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../reports/store/reports.cjs");require("../../../../components/Dropdown/Dropdown.vue.cjs");const i=require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");require("../../../community/store/reactions.cjs");const o=require("../../store/events.cjs");require("../sections/List.vue2.cjs");const s={__name:"Events",setup(c){const r=u.useRoute();return u.useRouter(),(n,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(t.default,{category:e.unref(r).params.category,user:i.state.user._id,period:e.unref(r).query.period,selectedDate:o.state.filter.date},null,8,["category","user","period","selectedDate"])]))}};exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const t=require("../sections/Feed.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Select/Select.vue2.cjs");require("../../../reports/store/reports.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");const i=require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");require("../../../community/store/reactions.cjs");const o=require("../../store/events.cjs");require("../sections/List.vue2.cjs");const s={__name:"Events",setup(c){const r=u.useRoute();return u.useRouter(),(n,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(t.default,{category:e.unref(r).params.category,user:i.state.user._id,period:e.unref(r).query.period,selectedDate:o.state.filter.date},null,8,["category","user","period","selectedDate"])]))}};exports.default=s;
@@ -6,10 +6,10 @@ import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
6
6
  import s from "../sections/Feed.vue.js";
7
7
  import "../../../../components/Loader/Loader.vue.js";
8
8
  import "../../../../components/Popup/Popup.vue2.js";
9
- import "../../../../components/Button/Button.vue.js";
10
- import "../../../../components/Select/Select.vue.js";
9
+ import "../../../../components/Button/Button.vue2.js";
10
+ import "../../../../components/Select/Select.vue2.js";
11
11
  import "../../../reports/store/reports.js";
12
- import "../../../../components/Dropdown/Dropdown.vue.js";
12
+ import "../../../../components/Dropdown/Dropdown.vue2.js";
13
13
  import { state as a } from "../../../auth/store/auth.js";
14
14
  import "../../../organizations/store/memberships.js";
15
15
  import "../../../community/store/reactions.js";