@ozdao/prometheus-framework 0.0.88 → 0.0.90

Sign up to get free protection for your applications and to get access to all the features.
Files changed (520) hide show
  1. package/dist/{Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs → Breadcrumbs.vue_vue_type_style_index_0_lang-d9c6e4d1.mjs} +8 -7
  2. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-e32a3041.js +1 -0
  3. package/dist/{ButtonFollow-728aab73.mjs → ButtonFollow-5e19fc49.mjs} +7 -6
  4. package/dist/ButtonFollow-959861db.js +1 -0
  5. package/dist/CardOrganization-01c2e248.mjs +210 -0
  6. package/dist/CardOrganization-1be3651b.js +1 -0
  7. package/dist/{CardHeader-925a972b.js → Chips-2a0d9bfe.js} +1 -1
  8. package/dist/Chips-f0b7ce36.mjs +110 -0
  9. package/dist/{Feed-a31c43c2.mjs → Feed-8bbb7077.mjs} +100 -95
  10. package/dist/{Feed-dc8b66bf.mjs → Feed-986ddd21.mjs} +114 -126
  11. package/dist/Feed-a2870bbf.js +1 -0
  12. package/dist/Feed-f987d8bb.js +1 -0
  13. package/dist/IconEdit-823ddda9.js +1 -0
  14. package/dist/IconEdit-f0ad8b9a.mjs +205 -0
  15. package/dist/{Image-9a870c88.js → Image-0f2814f0.js} +2 -2
  16. package/dist/{Image-6c7584f5.mjs → Image-9e90a5f6.mjs} +2 -2
  17. package/dist/{PlaceholderUserpic-2221dbf2.mjs → PlaceholderUserpic-14c6ea7e.mjs} +1 -1
  18. package/dist/PlaceholderUserpic-20d58460.js +1 -0
  19. package/dist/{Popup-105ef2c3.js → Popup-0106ee0c.js} +1 -1
  20. package/dist/{Popup-0c791801.mjs → Popup-31c7ffc6.mjs} +1 -1
  21. package/dist/{Product-2fbf9d99.js → Product-54854cd1.js} +2 -2
  22. package/dist/{Product-1724d88d.mjs → Product-58a83c67.mjs} +19 -18
  23. package/dist/ProductEdit-36e5cfdd.js +1 -0
  24. package/dist/{ProductEdit-20709821.mjs → ProductEdit-56752bbe.mjs} +32 -31
  25. package/dist/{ProfileBlogposts-fb014bc6.mjs → ProfileBlogposts-67e1bd8f.mjs} +13 -12
  26. package/dist/ProfileBlogposts-a798df3d.js +1 -0
  27. package/dist/{ProfileComments-58094a50.mjs → ProfileComments-17352b6a.mjs} +9 -8
  28. package/dist/ProfileComments-473c3413.js +1 -0
  29. package/dist/{ProfileEvents-5d206e3d.mjs → ProfileEvents-76166bc5.mjs} +15 -14
  30. package/dist/ProfileEvents-cdebd612.js +1 -0
  31. package/dist/ProfileLikes-da6303a4.js +1 -0
  32. package/dist/{ProfileLikes-503712ec.mjs → ProfileLikes-f838ff5e.mjs} +13 -12
  33. package/dist/ProfileOrganizations-5348e892.js +1 -0
  34. package/dist/{ProfileOrganizations-32ab1e30.mjs → ProfileOrganizations-58ebfe44.mjs} +9 -8
  35. package/dist/Publics-e14d36ed.js +1 -0
  36. package/dist/{Publics-9ebffff1.mjs → Publics-fcb1f708.mjs} +17 -16
  37. package/dist/{Tab-fcb73759.mjs → Tab-a243605d.mjs} +1 -1
  38. package/dist/{UploadImage-441e8526.js → UploadImage-73d66f27.js} +1 -1
  39. package/dist/{UploadImage-d33b293e.mjs → UploadImage-a3ef4012.mjs} +1 -1
  40. package/dist/_plugin-vue_export-helper-dad06003.mjs +9 -0
  41. package/dist/_plugin-vue_export-helper-f246444f.js +1 -0
  42. package/dist/{auth-8b5aac7a.mjs → auth-5217f6a5.mjs} +13 -17
  43. package/dist/auth-5a58f8cb.js +8 -0
  44. package/dist/auth.client.cjs +8 -8
  45. package/dist/auth.client.js +18 -17
  46. package/dist/{auth.validation-093babe9.mjs → auth.validation-9f87ea95.mjs} +1 -1
  47. package/dist/{auth.validation-a18510e8.js → auth.validation-be05e981.js} +1 -1
  48. package/dist/community.client.cjs +1 -1
  49. package/dist/community.client.js +28 -26
  50. package/dist/community.server.js +7 -167
  51. package/dist/community.server.mjs +7 -167
  52. package/dist/components/Address/Address.vue.d.ts.map +1 -1
  53. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  54. package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
  55. package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
  56. package/dist/components/Field/Field.vue.d.ts.map +1 -1
  57. package/dist/components/FieldPhone/FieldPhone(script-setup).vue.d.ts +3 -3
  58. package/dist/components/FieldPhone/FieldPhone.vue.d.ts +1 -1
  59. package/dist/components/FieldPhone/FieldPhone.vue.d.ts.map +1 -1
  60. package/dist/components/LocationMarker/LocationMarker.vue.d.ts.map +1 -1
  61. package/dist/components/Map/Map.vue.d.ts.map +1 -1
  62. package/dist/components/Popup/Popup.vue.d.ts.map +1 -1
  63. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  64. package/dist/components/SelectMulti/SelectMulti.vue.d.ts.map +1 -1
  65. package/dist/components/Spoiler/Spoiler.vue.d.ts.map +1 -1
  66. package/dist/components/Tab/Tab.vue.d.ts.map +1 -1
  67. package/dist/components/Text/Text.vue.d.ts.map +1 -1
  68. package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
  69. package/dist/components/Upload/Upload.vue.d.ts.map +1 -1
  70. package/dist/events.client.cjs +1 -1
  71. package/dist/events.client.js +26 -24
  72. package/dist/{inputs.validation-6960f71b.mjs → inputs.validation-14e8e01f.mjs} +4 -4
  73. package/dist/landing.client.cjs +1 -0
  74. package/dist/landing.client.js +132 -0
  75. package/dist/main.css +1 -1
  76. package/dist/modules/icons/labels/LabelAppStore.vue.d.ts +2 -0
  77. package/dist/modules/icons/labels/LabelGooglePlay.vue.d.ts +2 -0
  78. package/dist/modules/{community/components/blocks/HeaderBlogpost.vue.d.ts → landing/components/sections/MobileApp.vue.d.ts} +3 -3
  79. package/dist/{organizations-1b4c84ee.mjs → organizations-2adff182.mjs} +3 -3
  80. package/dist/organizations-e97a0f85.js +1 -0
  81. package/dist/{organizations.client-253c8068.mjs → organizations.client-88d41199.mjs} +998 -1139
  82. package/dist/organizations.client-d21a22ec.js +3 -0
  83. package/dist/organizations.client.cjs +1 -1
  84. package/dist/organizations.client.js +36 -35
  85. package/dist/organizations.server.js +7 -3
  86. package/dist/organizations.server.mjs +7 -3
  87. package/dist/prometheus-framework.cjs.js +19 -19
  88. package/dist/prometheus-framework.es.js +2173 -2165
  89. package/dist/style.css +1 -1
  90. package/dist/users.client.cjs +1 -1
  91. package/dist/users.client.js +266 -256
  92. package/dist/users.server.js +2 -2
  93. package/dist/users.server.mjs +2 -2
  94. package/package.json +6 -2
  95. package/src/components/Field/Field.vue +2 -1
  96. package/src/components/Text/Text.vue +3 -1
  97. package/src/modules/community/community.server.js +0 -2
  98. package/src/modules/community/components/blocks/CardBlogpost.vue +8 -0
  99. package/src/modules/community/components/pages/Blog.vue +1 -1
  100. package/src/modules/community/components/pages/CreateBlogPost.vue +2 -1
  101. package/src/modules/community/controllers/blog.controller.js +5 -1
  102. package/src/modules/events/components/pages/EditEvent.vue +2 -1
  103. package/src/modules/icons/labels/LabelAppStore.vue +32 -0
  104. package/src/modules/icons/labels/LabelGooglePlay.vue +48 -0
  105. package/src/modules/landing/components/sections/MobileApp.vue +125 -0
  106. package/src/modules/landing/landing.client.js +7 -0
  107. package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -1
  108. package/src/modules/organizations/components/blocks/Socials.vue +16 -3
  109. package/src/modules/organizations/components/pages/OrganizationEdit.vue +39 -15
  110. package/src/modules/organizations/components/sections/DetailsTab.vue +13 -9
  111. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  112. package/src/modules/organizations/models/organization.model.js +6 -2
  113. package/src/modules/organizations/store/organizations.js +2 -2
  114. package/src/modules/users/components/pages/Profile.vue +26 -11
  115. package/src/modules/users/components/pages/ProfileEdit.vue +28 -10
  116. package/src/modules/users/models/user.model.js +2 -2
  117. package/src/modules/users/store/users.js +1 -2
  118. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0216f2b0.js +0 -7
  119. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0cb41a82.js +0 -1
  120. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-15e71ec4.js +0 -1
  121. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-2809e848.mjs +0 -219
  122. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-2af7f63b.mjs +0 -80
  123. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-451d2614.mjs +0 -80
  124. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-474eb4c2.js +0 -1
  125. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-5ea8b4fa.js +0 -1
  126. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-628f013e.mjs +0 -138
  127. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-85119a4e.js +0 -1
  128. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-8cb3c120.mjs +0 -185
  129. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-a477dfc6.mjs +0 -138
  130. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-c6f3a0f0.js +0 -1
  131. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-d777ad17.mjs +0 -80
  132. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-dd037bbf.js +0 -1
  133. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-e133a3c6.mjs +0 -80
  134. package/dist/ButtonFollow-0d83a04a.mjs +0 -130
  135. package/dist/ButtonFollow-1aca37e0.mjs +0 -130
  136. package/dist/ButtonFollow-1b655344.js +0 -1
  137. package/dist/ButtonFollow-2ce169ca.js +0 -1
  138. package/dist/ButtonFollow-6bbf3e24.mjs +0 -130
  139. package/dist/ButtonFollow-6cd2efa2.mjs +0 -130
  140. package/dist/ButtonFollow-b29bd420.mjs +0 -130
  141. package/dist/ButtonFollow-c4680999.js +0 -1
  142. package/dist/ButtonFollow-c9484003.mjs +0 -130
  143. package/dist/ButtonFollow-d983e174.js +0 -1
  144. package/dist/ButtonFollow-f630623a.js +0 -1
  145. package/dist/ButtonFollow-f9c5dc7a.js +0 -1
  146. package/dist/CardHeader-2d7e5d49.mjs +0 -76
  147. package/dist/CardHeader-2ef6618e.mjs +0 -96
  148. package/dist/CardHeader-377cfc4b.js +0 -1
  149. package/dist/CardHeader-39f75e85.mjs +0 -76
  150. package/dist/CardHeader-88de7b20.mjs +0 -76
  151. package/dist/CardHeader-ce5a1a75.mjs +0 -96
  152. package/dist/CardHeader-ddf82318.js +0 -1
  153. package/dist/CardHeader-dff9c71a.js +0 -1
  154. package/dist/CardHeader-e15eb618.js +0 -1
  155. package/dist/CardHeader-e517c801.mjs +0 -76
  156. package/dist/CardOrganization-0291683b.js +0 -1
  157. package/dist/CardOrganization-1384ff9a.mjs +0 -320
  158. package/dist/CardOrganization-21de52b3.js +0 -1
  159. package/dist/CardOrganization-3c42e14f.mjs +0 -320
  160. package/dist/CardOrganization-4859370e.mjs +0 -320
  161. package/dist/CardOrganization-58b54995.js +0 -1
  162. package/dist/CardOrganization-91e79698.mjs +0 -320
  163. package/dist/CardOrganization-9841dbe0.js +0 -1
  164. package/dist/CardOrganization-a05f3a19.js +0 -1
  165. package/dist/CardOrganization-a75b523d.mjs +0 -63
  166. package/dist/CardOrganization-d462e158.mjs +0 -320
  167. package/dist/CardOrganization-ee5c34ab.js +0 -1
  168. package/dist/CardOrganization-f70bd169.mjs +0 -202
  169. package/dist/CardOrganization-ffa585a7.js +0 -1
  170. package/dist/Comments-1aec0e5e.js +0 -1
  171. package/dist/Comments-5ed669ea.mjs +0 -74
  172. package/dist/Comments-63f154a6.js +0 -9
  173. package/dist/Comments-641516f8.mjs +0 -76
  174. package/dist/Comments-646c73ee.js +0 -1
  175. package/dist/Comments-6ff58c26.js +0 -1
  176. package/dist/Comments-7c4f2715.js +0 -1
  177. package/dist/Comments-81feeb4a.mjs +0 -76
  178. package/dist/Comments-9427a0eb.mjs +0 -76
  179. package/dist/Comments-b5821190.mjs +0 -76
  180. package/dist/Comments-b620bae6.js +0 -1
  181. package/dist/Comments-b6e32958.js +0 -1
  182. package/dist/Comments-c092550f.mjs +0 -76
  183. package/dist/Comments-c5afa4d6.mjs +0 -459
  184. package/dist/Comments-d2a8fd0f.mjs +0 -76
  185. package/dist/DepartmentEdit-305a0f5d.mjs +0 -374
  186. package/dist/DepartmentEdit-6abd59e1.js +0 -1
  187. package/dist/DepartmentEdit-9e6fe007.mjs +0 -374
  188. package/dist/DepartmentEdit-d98c2239.js +0 -1
  189. package/dist/EditProductImages-04ec4326.js +0 -1
  190. package/dist/EditProductImages-11510b66.js +0 -1
  191. package/dist/EditProductImages-1d4b44a9.mjs +0 -236
  192. package/dist/EditProductImages-4246db75.mjs +0 -236
  193. package/dist/EditProductImages-42f9f665.mjs +0 -236
  194. package/dist/EditProductImages-61ff4321.mjs +0 -236
  195. package/dist/EditProductImages-98d13eb0.js +0 -1
  196. package/dist/EditProductImages-9f25f39f.mjs +0 -236
  197. package/dist/EditProductImages-b1b05c03.js +0 -1
  198. package/dist/EditProductImages-c7daafb2.mjs +0 -236
  199. package/dist/EditProductImages-cf67d31b.js +0 -1
  200. package/dist/EditProductImages-cfb1856e.mjs +0 -237
  201. package/dist/EditProductImages-d9228ad0.js +0 -1
  202. package/dist/EditProductImages-ec630dbf.js +0 -1
  203. package/dist/EditProductImages-f983f473.mjs +0 -236
  204. package/dist/EmptyState-1214f70b.mjs +0 -36
  205. package/dist/EmptyState-23c13029.js +0 -1
  206. package/dist/Feed-0b549674.js +0 -1
  207. package/dist/Feed-193dd1df.mjs +0 -342
  208. package/dist/Feed-26bf6bef.js +0 -1
  209. package/dist/Feed-2f9a1922.mjs +0 -334
  210. package/dist/Feed-31523f38.js +0 -1
  211. package/dist/Feed-51e4e232.js +0 -1
  212. package/dist/Feed-531de2d5.js +0 -1
  213. package/dist/Feed-55c5907a.js +0 -1
  214. package/dist/Feed-5c9e4e74.mjs +0 -340
  215. package/dist/Feed-706cd7c0.mjs +0 -383
  216. package/dist/Feed-8009e4f8.js +0 -1
  217. package/dist/Feed-81d5802e.mjs +0 -355
  218. package/dist/Feed-83ef5666.js +0 -1
  219. package/dist/Feed-8fd41524.js +0 -1
  220. package/dist/Feed-91eff3af.mjs +0 -393
  221. package/dist/Feed-926cf4f3.mjs +0 -355
  222. package/dist/Feed-932d976d.js +0 -1
  223. package/dist/Feed-962e009b.js +0 -1
  224. package/dist/Feed-a82ae26b.js +0 -1
  225. package/dist/Feed-aa3bd30a.js +0 -1
  226. package/dist/Feed-b8eeb4e7.js +0 -1
  227. package/dist/Feed-bd7b1a45.js +0 -1
  228. package/dist/Feed-c0007a83.mjs +0 -383
  229. package/dist/Feed-c93012c7.mjs +0 -346
  230. package/dist/Feed-ca8e0e22.mjs +0 -423
  231. package/dist/Feed-d2e5978c.mjs +0 -342
  232. package/dist/Feed-d4220f74.mjs +0 -340
  233. package/dist/Feed-d8e33aed.mjs +0 -397
  234. package/dist/Feed-df5bbb3c.mjs +0 -346
  235. package/dist/Feed-e5fb4972.mjs +0 -397
  236. package/dist/Feed-e8fb21ed.js +0 -1
  237. package/dist/Feed-e91b36ea.mjs +0 -390
  238. package/dist/Feed-ecf37814.mjs +0 -367
  239. package/dist/Feed-f4cad6c3.js +0 -1
  240. package/dist/Field-740d5a17.mjs +0 -60
  241. package/dist/Field-a1770ccf.js +0 -1
  242. package/dist/Field-ada86df2.js +0 -1
  243. package/dist/Field-e839d9ca.mjs +0 -60
  244. package/dist/Footer.vue_vue_type_style_index_0_lang-0ea8fbf8.js +0 -1
  245. package/dist/Footer.vue_vue_type_style_index_0_lang-2f7f46f1.js +0 -7
  246. package/dist/Footer.vue_vue_type_style_index_0_lang-39d2aa14.mjs +0 -37
  247. package/dist/Footer.vue_vue_type_style_index_0_lang-4ed993c7.mjs +0 -1
  248. package/dist/HeaderBlogpost-59dd9a6b.mjs +0 -93
  249. package/dist/HeaderBlogpost-8ec43cd0.js +0 -1
  250. package/dist/IconEdit-736c89be.js +0 -1
  251. package/dist/IconEdit-e9fd4c6c.mjs +0 -21
  252. package/dist/PlaceholderUserpic-1a6cf257.mjs +0 -28
  253. package/dist/PlaceholderUserpic-3bf126ee.js +0 -1
  254. package/dist/PlaceholderUserpic-3c1b9f7b.mjs +0 -28
  255. package/dist/PlaceholderUserpic-43e5ab23.js +0 -1
  256. package/dist/PlaceholderUserpic-4fe04ec9.mjs +0 -28
  257. package/dist/PlaceholderUserpic-52966e09.js +0 -1
  258. package/dist/PlaceholderUserpic-9085715c.mjs +0 -28
  259. package/dist/PlaceholderUserpic-995da0fc.mjs +0 -28
  260. package/dist/PlaceholderUserpic-b27c51f7.js +0 -1
  261. package/dist/PlaceholderUserpic-d64d6dd5.js +0 -1
  262. package/dist/PlaceholderUserpic-e44ccca8.mjs +0 -28
  263. package/dist/PlaceholderUserpic-fe8bd48d.js +0 -1
  264. package/dist/Popup-70f6a8c0.mjs +0 -76
  265. package/dist/Popup-82fb2c8a.mjs +0 -76
  266. package/dist/Popup-9479e39a.js +0 -1
  267. package/dist/Popup.vue_vue_type_style_index_0_lang-0cbf3253.js +0 -1
  268. package/dist/Popup.vue_vue_type_style_index_0_lang-22048704.mjs +0 -280
  269. package/dist/Popup.vue_vue_type_style_index_0_lang-28b9af00.mjs +0 -280
  270. package/dist/Popup.vue_vue_type_style_index_0_lang-4f16907f.mjs +0 -924
  271. package/dist/Popup.vue_vue_type_style_index_0_lang-5b5f9cd7.js +0 -5
  272. package/dist/Popup.vue_vue_type_style_index_0_lang-769e7cf5.js +0 -5
  273. package/dist/Popup.vue_vue_type_style_index_0_lang-8981c189.mjs +0 -280
  274. package/dist/Popup.vue_vue_type_style_index_0_lang-931f265a.js +0 -1
  275. package/dist/Popup.vue_vue_type_style_index_0_lang-a191c190.js +0 -1
  276. package/dist/Popup.vue_vue_type_style_index_0_lang-a9351a87.js +0 -1
  277. package/dist/Popup.vue_vue_type_style_index_0_lang-d05075a7.mjs +0 -280
  278. package/dist/Popup.vue_vue_type_style_index_0_lang-f2c0cfb5.mjs +0 -924
  279. package/dist/Product-0195429b.js +0 -1
  280. package/dist/Product-035252c0.js +0 -1
  281. package/dist/Product-05cc1386.mjs +0 -687
  282. package/dist/Product-151f4473.mjs +0 -904
  283. package/dist/Product-19cc3654.js +0 -7
  284. package/dist/Product-2f3d592f.mjs +0 -837
  285. package/dist/Product-334f8bf4.mjs +0 -904
  286. package/dist/Product-35904a9b.js +0 -7
  287. package/dist/Product-3c64a352.mjs +0 -904
  288. package/dist/Product-45a6e7bd.mjs +0 -687
  289. package/dist/Product-4a5f985d.mjs +0 -837
  290. package/dist/Product-60e14832.mjs +0 -904
  291. package/dist/Product-67efba5c.js +0 -7
  292. package/dist/Product-6c37ef35.js +0 -7
  293. package/dist/Product-7087b358.mjs +0 -837
  294. package/dist/Product-96195a8e.js +0 -7
  295. package/dist/Product-a94d8b65.js +0 -7
  296. package/dist/Product-b440df7f.js +0 -7
  297. package/dist/Product-c3a77d07.mjs +0 -837
  298. package/dist/Product-c8441f02.js +0 -7
  299. package/dist/Product-cf9cfe65.mjs +0 -904
  300. package/dist/Product-df622dc0.mjs +0 -837
  301. package/dist/Product-eb2b6725.js +0 -7
  302. package/dist/Product-f4dbd969.mjs +0 -837
  303. package/dist/Product-f819b17e.js +0 -7
  304. package/dist/Product-fb63c7cd.js +0 -7
  305. package/dist/ProductEdit-04760699.js +0 -1
  306. package/dist/ProductEdit-177c1f16.mjs +0 -113
  307. package/dist/ProductEdit-1e990a92.js +0 -1
  308. package/dist/ProductEdit-20bda9f1.mjs +0 -113
  309. package/dist/ProductEdit-39adf62f.mjs +0 -113
  310. package/dist/ProductEdit-4d6f3720.js +0 -1
  311. package/dist/ProductEdit-57484f1e.mjs +0 -349
  312. package/dist/ProductEdit-5e419719.mjs +0 -113
  313. package/dist/ProductEdit-5f9a55b6.mjs +0 -113
  314. package/dist/ProductEdit-765f4780.js +0 -1
  315. package/dist/ProductEdit-9e579dd7.mjs +0 -113
  316. package/dist/ProductEdit-a81d13b9.js +0 -1
  317. package/dist/ProductEdit-b98883d8.js +0 -1
  318. package/dist/ProductEdit-c3c6341d.js +0 -1
  319. package/dist/ProductEdit-c5067942.mjs +0 -113
  320. package/dist/ProductEdit-ca271287.js +0 -1
  321. package/dist/ProductEdit-e2d47403.mjs +0 -113
  322. package/dist/ProductEdit-ef301baa.js +0 -1
  323. package/dist/ProfileBlogposts-00424109.js +0 -1
  324. package/dist/ProfileBlogposts-03658199.js +0 -1
  325. package/dist/ProfileBlogposts-11bfd9dc.js +0 -1
  326. package/dist/ProfileBlogposts-317742ee.mjs +0 -56
  327. package/dist/ProfileBlogposts-4341ca89.mjs +0 -46
  328. package/dist/ProfileBlogposts-55037a06.mjs +0 -56
  329. package/dist/ProfileBlogposts-65a7a5e0.mjs +0 -56
  330. package/dist/ProfileBlogposts-79d5c858.mjs +0 -63
  331. package/dist/ProfileBlogposts-892fdcf8.mjs +0 -56
  332. package/dist/ProfileBlogposts-dc11090e.js +0 -1
  333. package/dist/ProfileBlogposts-e55e30ae.js +0 -1
  334. package/dist/ProfileBlogposts-e9a7381e.js +0 -1
  335. package/dist/ProfileBlogposts-eca9916c.js +0 -1
  336. package/dist/ProfileBlogposts-ffa10f34.mjs +0 -63
  337. package/dist/ProfileComments-0396b55c.js +0 -1
  338. package/dist/ProfileComments-08d1670d.mjs +0 -43
  339. package/dist/ProfileComments-2e2a3a7a.mjs +0 -42
  340. package/dist/ProfileComments-34eb560b.mjs +0 -43
  341. package/dist/ProfileComments-48f3d4bc.mjs +0 -43
  342. package/dist/ProfileComments-5884d09f.mjs +0 -43
  343. package/dist/ProfileComments-66651060.mjs +0 -43
  344. package/dist/ProfileComments-677731b3.js +0 -1
  345. package/dist/ProfileComments-730c2f73.js +0 -1
  346. package/dist/ProfileComments-82791682.js +0 -1
  347. package/dist/ProfileComments-b6a688cd.js +0 -1
  348. package/dist/ProfileComments-b919f021.js +0 -1
  349. package/dist/ProfileComments-d3966a83.mjs +0 -43
  350. package/dist/ProfileComments-f5f260ec.js +0 -1
  351. package/dist/ProfileEvents-05485e20.js +0 -1
  352. package/dist/ProfileEvents-138ae25e.mjs +0 -55
  353. package/dist/ProfileEvents-1cfe6858.mjs +0 -55
  354. package/dist/ProfileEvents-20695376.mjs +0 -55
  355. package/dist/ProfileEvents-20e9da99.mjs +0 -46
  356. package/dist/ProfileEvents-45c4b137.mjs +0 -55
  357. package/dist/ProfileEvents-676239cc.js +0 -1
  358. package/dist/ProfileEvents-6e6c253b.mjs +0 -46
  359. package/dist/ProfileEvents-858e9471.mjs +0 -55
  360. package/dist/ProfileEvents-85a88674.mjs +0 -55
  361. package/dist/ProfileEvents-89def76b.js +0 -1
  362. package/dist/ProfileEvents-94d7b407.js +0 -1
  363. package/dist/ProfileEvents-b057d374.js +0 -1
  364. package/dist/ProfileEvents-b5431cd6.js +0 -1
  365. package/dist/ProfileEvents-b8a76b6e.js +0 -1
  366. package/dist/ProfileEvents-c1e04ac1.mjs +0 -46
  367. package/dist/ProfileEvents-cd75d80b.js +0 -1
  368. package/dist/ProfileEvents-cebebb17.js +0 -1
  369. package/dist/ProfileEvents-d53e7729.mjs +0 -46
  370. package/dist/ProfileEvents-d8e16509.js +0 -1
  371. package/dist/ProfileEvents-ddaf8fba.mjs +0 -55
  372. package/dist/ProfileEvents-ffe0e6f3.js +0 -1
  373. package/dist/ProfileLikes-0668b718.js +0 -1
  374. package/dist/ProfileLikes-2f3a4488.js +0 -1
  375. package/dist/ProfileLikes-405c2636.js +0 -1
  376. package/dist/ProfileLikes-4242bca5.mjs +0 -43
  377. package/dist/ProfileLikes-4a57f637.mjs +0 -43
  378. package/dist/ProfileLikes-7f965631.mjs +0 -43
  379. package/dist/ProfileLikes-854276f0.js +0 -1
  380. package/dist/ProfileLikes-8ccf6815.js +0 -1
  381. package/dist/ProfileLikes-a78900c0.js +0 -1
  382. package/dist/ProfileLikes-b5ac7f48.mjs +0 -43
  383. package/dist/ProfileLikes-c32c420b.mjs +0 -43
  384. package/dist/ProfileLikes-c4c87300.mjs +0 -42
  385. package/dist/ProfileLikes-c899e3df.js +0 -1
  386. package/dist/ProfileLikes-d978b084.mjs +0 -43
  387. package/dist/ProfileOrganizations-04cc9d6d.mjs +0 -198
  388. package/dist/ProfileOrganizations-0b76e38f.js +0 -1
  389. package/dist/ProfileOrganizations-0e202612.js +0 -1
  390. package/dist/ProfileOrganizations-13748b09.js +0 -1
  391. package/dist/ProfileOrganizations-1990d0cc.js +0 -1
  392. package/dist/ProfileOrganizations-2633e9e4.mjs +0 -198
  393. package/dist/ProfileOrganizations-3f305f4e.mjs +0 -210
  394. package/dist/ProfileOrganizations-46b6e015.mjs +0 -202
  395. package/dist/ProfileOrganizations-4ffaf01c.js +0 -1
  396. package/dist/ProfileOrganizations-50fce34e.js +0 -1
  397. package/dist/ProfileOrganizations-567e87e1.mjs +0 -210
  398. package/dist/ProfileOrganizations-5abfcc59.js +0 -1
  399. package/dist/ProfileOrganizations-5d681498.mjs +0 -202
  400. package/dist/ProfileOrganizations-704f628b.js +0 -1
  401. package/dist/ProfileOrganizations-b83f6720.js +0 -1
  402. package/dist/ProfileOrganizations-c58a4fb9.js +0 -1
  403. package/dist/ProfileOrganizations-c7688210.js +0 -1
  404. package/dist/ProfileOrganizations-ca9a95a1.js +0 -1
  405. package/dist/ProfileOrganizations-dbc8a6cd.mjs +0 -214
  406. package/dist/ProfileOrganizations-dc7210f1.mjs +0 -214
  407. package/dist/ProfileOrganizations-e4fd2b05.mjs +0 -202
  408. package/dist/ProfileOrganizations-f6e00809.mjs +0 -214
  409. package/dist/ProfileOrganizations-feef34df.mjs +0 -112
  410. package/dist/Publics-07d5bbc4.js +0 -1
  411. package/dist/Publics-122d9fc7.mjs +0 -1078
  412. package/dist/Publics-13c48a23.mjs +0 -47
  413. package/dist/Publics-17009745.mjs +0 -1926
  414. package/dist/Publics-213e0e9e.mjs +0 -44
  415. package/dist/Publics-21f24533.mjs +0 -44
  416. package/dist/Publics-3f277c17.js +0 -1
  417. package/dist/Publics-450a6715.mjs +0 -1926
  418. package/dist/Publics-49dbeafc.js +0 -1
  419. package/dist/Publics-501c9f27.js +0 -1
  420. package/dist/Publics-54134615.mjs +0 -47
  421. package/dist/Publics-889c25fc.js +0 -1
  422. package/dist/Publics-8bea4201.mjs +0 -44
  423. package/dist/Publics-8d94ee66.js +0 -1
  424. package/dist/Publics-a030da8f.js +0 -1
  425. package/dist/Publics-aca585c3.js +0 -1
  426. package/dist/Publics-b0fad2b0.mjs +0 -1926
  427. package/dist/Publics-becb1486.js +0 -1
  428. package/dist/Publics-c6f6b824.js +0 -1
  429. package/dist/Publics-c9d5aa74.js +0 -1
  430. package/dist/Publics-fbc8d2db.mjs +0 -1926
  431. package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-0ea8fbf8.js +0 -1
  432. package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-4ed993c7.mjs +0 -1
  433. package/dist/Tab-054b61f7.mjs +0 -46
  434. package/dist/Tab-1ca0fe66.js +0 -1
  435. package/dist/Tab-58cd105f.mjs +0 -46
  436. package/dist/Tab-b0a7ac11.js +0 -1
  437. package/dist/Tab-c67fbf51.mjs +0 -46
  438. package/dist/Tab-f04c185d.js +0 -1
  439. package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +0 -1
  440. package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +0 -1
  441. package/dist/Unit.vue_vue_type_style_index_0_scoped_d69a370a_lang-0b4edb09.js +0 -1
  442. package/dist/Unit.vue_vue_type_style_index_0_scoped_d69a370a_lang-5531689e.mjs +0 -123
  443. package/dist/UploadImage-1b8c18c4.mjs +0 -99
  444. package/dist/UploadImage-34bc4a3f.mjs +0 -99
  445. package/dist/UploadImage-4e91bd99.js +0 -1
  446. package/dist/UploadImage-74280ea3.mjs +0 -99
  447. package/dist/UploadImage-75b1a18a.js +0 -1
  448. package/dist/UploadImage-7c502f96.js +0 -1
  449. package/dist/UploadImage-96408782.mjs +0 -99
  450. package/dist/UploadImage-9abb7116.js +0 -1
  451. package/dist/UploadImage-b1acc48f.mjs +0 -99
  452. package/dist/UploadImage-c81c3b76.js +0 -1
  453. package/dist/UploadImage-cd6de241.js +0 -1
  454. package/dist/UploadImage-d1dbc280.mjs +0 -99
  455. package/dist/UploadImage-ff8f9a0c.mjs +0 -83
  456. package/dist/auth-07c01b19.js +0 -8
  457. package/dist/auth-18f80fef.mjs +0 -1501
  458. package/dist/auth-35ef1791.mjs +0 -1502
  459. package/dist/auth-50bd4ebb.js +0 -8
  460. package/dist/auth-5aa8e90c.js +0 -8
  461. package/dist/auth-708eebcb.mjs +0 -1446
  462. package/dist/auth-78fd9408.js +0 -8
  463. package/dist/auth-7dff19e4.js +0 -8
  464. package/dist/auth-84680727.mjs +0 -1501
  465. package/dist/auth-ab40831d.js +0 -8
  466. package/dist/auth-d102dac0.mjs +0 -1501
  467. package/dist/auth-f81f3598.mjs +0 -1439
  468. package/dist/auth.validation-1fb0cb4f.js +0 -1
  469. package/dist/auth.validation-29113f37.mjs +0 -20
  470. package/dist/auth.validation-2d33e8c7.mjs +0 -20
  471. package/dist/auth.validation-2e8ee994.js +0 -1
  472. package/dist/auth.validation-6923140f.js +0 -1
  473. package/dist/auth.validation-69488f55.mjs +0 -20
  474. package/dist/auth.validation-6bccabd6.mjs +0 -20
  475. package/dist/auth.validation-9cfd985b.mjs +0 -20
  476. package/dist/auth.validation-9f7c7948.js +0 -1
  477. package/dist/auth.validation-b644ee65.js +0 -1
  478. package/dist/auth.validation-f23a7238.mjs +0 -21
  479. package/dist/categories-75b7d14b.js +0 -1
  480. package/dist/categories-86b2d45b.mjs +0 -225
  481. package/dist/categories-d669f3af.mjs +0 -225
  482. package/dist/components/FieldPhone/<script>.vue.d.ts +0 -547
  483. package/dist/globals-d7a54bb4.js +0 -1
  484. package/dist/globals-f538c0ef.mjs +0 -87
  485. package/dist/inputs.validation-498d8ec9.js +0 -1
  486. package/dist/inputs.validation-5732152a.mjs +0 -93
  487. package/dist/inputs.validation-c473ebe7.mjs +0 -93
  488. package/dist/inputs.validation-c53e01a2.js +0 -1
  489. package/dist/modules/community/components/blocks/CardOrganization.vue.d.ts +0 -8
  490. package/dist/modules/community/components/elements/Bullets.vue.d.ts +0 -15
  491. package/dist/modules/community/components/elements/Caption.vue.d.ts +0 -15
  492. package/dist/modules/community/components/elements/H2.vue.d.ts +0 -16
  493. package/dist/modules/community/components/elements/Image.vue.d.ts +0 -8
  494. package/dist/modules/community/components/elements/ImageUpload.vue.d.ts +0 -9
  495. package/dist/modules/community/components/elements/Textarea.vue.d.ts +0 -16
  496. package/dist/modules/community/components/pages/BlogPost.old.vue.d.ts +0 -2
  497. package/dist/modules/community/components/sections/Publics.vue.d.ts +0 -2
  498. package/dist/modules/events/components/layouts/Events.vue.d.ts +0 -2
  499. package/dist/modules/organizations/components/blocks/CardOrganizationSocial.vue.d.ts +0 -8
  500. package/dist/organizations-0e9ff7ca.mjs +0 -319
  501. package/dist/organizations-35fe2db4.js +0 -1
  502. package/dist/organizations-4d74e13b.js +0 -1
  503. package/dist/organizations-5f9c7fbd.js +0 -1
  504. package/dist/organizations-6c1450fa.mjs +0 -153
  505. package/dist/organizations-773c328c.mjs +0 -319
  506. package/dist/organizations-a9b86de7.mjs +0 -319
  507. package/dist/organizations-af43bda4.js +0 -1
  508. package/dist/organizations-b3df0859.js +0 -1
  509. package/dist/organizations-c77ea9d0.js +0 -1
  510. package/dist/organizations-d4307861.mjs +0 -319
  511. package/dist/organizations-dd07ba2c.js +0 -1
  512. package/dist/organizations-fb1a2214.mjs +0 -319
  513. package/dist/organizations.client-3b4eb66e.mjs +0 -2898
  514. package/dist/organizations.client-4e29c957.js +0 -3
  515. package/dist/organizations.client-686845be.mjs +0 -3179
  516. package/dist/organizations.client-71c9abde.mjs +0 -2898
  517. package/dist/organizations.client-99bfc474.js +0 -3
  518. package/dist/organizations.client-ba59ed4e.js +0 -3
  519. package/dist/organizations.client-c60d7659.js +0 -3
  520. package/src/modules/community/controllers/blog.old.controller.js +0 -207
@@ -1,10 +1,10 @@
1
1
  import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-83b1d755.mjs";
2
- import require$$0 from "uuid";
2
+ import "uuid";
3
3
  import require$$1 from "mongoose";
4
4
  import { s as server$1 } from "./index-fa8d5df4.mjs";
5
5
  import "jsonwebtoken";
6
6
  import "mongodb";
7
- const controllerFactory$4 = (db) => {
7
+ const controllerFactory$3 = (db) => {
8
8
  const Blogpost = db.blogpost;
9
9
  db.organization;
10
10
  const Membership = db.membership;
@@ -34,6 +34,9 @@ const controllerFactory$4 = (db) => {
34
34
  if (req.query.period) {
35
35
  const date = /* @__PURE__ */ new Date();
36
36
  switch (req.query.period) {
37
+ case "today":
38
+ date.setDate(date.getDate() - 1);
39
+ break;
37
40
  case "week":
38
41
  date.setDate(date.getDate() - 7);
39
42
  break;
@@ -49,7 +52,7 @@ const controllerFactory$4 = (db) => {
49
52
  if (req.query.category) {
50
53
  switch (req.query.category) {
51
54
  case "featured":
52
- matchStage["tags"] = { $in: ["featured"] };
55
+ matchStage["tags"] = { $in: ["Featured"] };
53
56
  break;
54
57
  case "popular":
55
58
  query.push({ $sort: { views: -1, likes: -1 } });
@@ -237,168 +240,7 @@ const controllerFactory$4 = (db) => {
237
240
  delete: del
238
241
  };
239
242
  };
240
- var blog_controller = controllerFactory$4;
241
- const { v1: uuidv1, v4: uuidv4 } = require$$0;
242
- const controllerFactory$3 = (db) => {
243
- const Blogpost = db.blogpost;
244
- db.organization;
245
- const Membership = db.membership;
246
- const read = async (req, res) => {
247
- let query = {};
248
- let options = {};
249
- if (req.query.url) {
250
- query.url = req.query.url;
251
- options.populate = [
252
- { path: "comments" },
253
- { path: "reactions" },
254
- { path: "owner" },
255
- { path: "organization" }
256
- ];
257
- await Blogpost.findOneAndUpdate({ url: req.query.url }, { $inc: { views: 1 } }, { new: true });
258
- }
259
- if (req.query.owner) {
260
- query.owner = req.query.owner;
261
- }
262
- if (req.query.organization) {
263
- query.organization = req.query.organization;
264
- }
265
- if (req.query.category) {
266
- const category = req.query.category;
267
- if (category === "popular") {
268
- options.sort = { views: -1, likes: -1 };
269
- } else if (category === "new") {
270
- options.sort = { createdAt: -1 };
271
- } else if (category === "following") {
272
- if (req.query.user) {
273
- try {
274
- const memberships = await Membership.find({ user: req.query.user });
275
- const followedOrganizations = memberships.filter((membership) => membership.type === "organization").map((membership) => membership.target);
276
- const followedAuthors = memberships.filter((membership) => membership.type === "user").map((membership) => membership.target);
277
- query.$or = [
278
- { organization: { $in: followedOrganizations } },
279
- { owner: { $in: followedAuthors } }
280
- ];
281
- } catch (err) {
282
- console.log(err);
283
- return res.status(500).send({ err });
284
- }
285
- }
286
- }
287
- }
288
- if (req.query.tags) {
289
- query.tags = { $in: req.query.tags.split(",") };
290
- }
291
- if (req.query.period) {
292
- const period = req.query.period;
293
- let date = /* @__PURE__ */ new Date();
294
- if (period === "week") {
295
- date.setDate(date.getDate() - 7);
296
- } else if (period === "month") {
297
- date.setMonth(date.getMonth() - 1);
298
- } else if (period === "year") {
299
- date.setFullYear(date.getFullYear() - 1);
300
- }
301
- query.createdAt = { $gte: date };
302
- }
303
- options.skip = parseInt(req.query.skip) || 0;
304
- options.limit = parseInt(req.query.limit) || 10;
305
- Blogpost.find(query, null, options).select("-comments -reactions").populate({
306
- path: "comments",
307
- select: "_id",
308
- match: {},
309
- options: { limit: 5 }
310
- }).populate({
311
- path: "reactions",
312
- match: {},
313
- options: { limit: 5 }
314
- }).populate({
315
- path: "owner"
316
- }).populate({
317
- path: "organization"
318
- }).exec().then((posts) => {
319
- if (!posts) {
320
- return res.status(404).send({ message: "Posts not found." });
321
- }
322
- const countedPosts = posts.map((post) => {
323
- let isReacted = false;
324
- let reactionId = null;
325
- if (req.query.user) {
326
- isReacted = post.reactions.some((reaction) => {
327
- console.log(req.query.user);
328
- console.log(reaction.owner);
329
- return reaction.owner.toString() === req.query.user;
330
- });
331
- post.reactions.some((reaction) => {
332
- if (reaction.owner.toString() === req.query.user) {
333
- reactionId = reaction._id;
334
- }
335
- });
336
- }
337
- console.log(isReacted);
338
- return {
339
- ...post._doc,
340
- owner: post.owner,
341
- organization: post.organization,
342
- commentsCount: post.comments.length,
343
- reactionsCount: post.reactions.length,
344
- isReacted,
345
- reactionId
346
- };
347
- });
348
- console.log(countedPosts);
349
- res.status(200).send(countedPosts);
350
- }).catch((err) => {
351
- console.log(err);
352
- if (err) {
353
- return res.status(500).send({ err });
354
- }
355
- });
356
- };
357
- const create = (req, res) => {
358
- let user = JSON.parse(req.cookies.user);
359
- const newBlogpost = {
360
- _id: uuidv4(),
361
- url: req.body.name.toLowerCase().replace(/ /g, "-").replace(/[^\w-]+/g, ""),
362
- name: req.body.name,
363
- tags: req.body.tags ? req.body.tags : ["All"],
364
- owner: user._id,
365
- content: req.body.content,
366
- views: 1
367
- };
368
- Blogpost.create(newBlogpost).then((post) => {
369
- res.status(200).send(post);
370
- }).catch((err) => {
371
- res.status(500).send({ message: err.message || "Some error occurred while creating the blogpost." });
372
- });
373
- };
374
- const update = (req, res) => {
375
- Blogpost.findOneAndUpdate({ url: req.body.url }, { $set: req.body }, { new: true }).exec().then((post) => {
376
- if (!post) {
377
- return res.status(404).send({ message: "Something wrong when updating the blogpost." });
378
- }
379
- res.status(200).send(post);
380
- }).catch((err) => {
381
- res.status(500).send({ message: err.message || "Some error occurred while updating the blogpost." });
382
- });
383
- };
384
- const del = (req, res) => {
385
- Blogpost.findOneAndDelete({ _id: req.params._id }).exec().then((post) => {
386
- if (!post) {
387
- return res.status(404).send({ message: "The blogpost is not deleted." });
388
- }
389
- res.status(200).send(post);
390
- }).catch((err) => {
391
- res.status(500).send({ message: err.message || "Some error occurred while deleting the blogpost." });
392
- });
393
- };
394
- return {
395
- read,
396
- create,
397
- update,
398
- delete: del
399
- };
400
- };
401
- var blog_old_controller = controllerFactory$3;
243
+ var blog_controller = controllerFactory$3;
402
244
  const commentControllerFactory = (db) => {
403
245
  const Comment = db.comment;
404
246
  const read = async (req, res) => {
@@ -855,7 +697,6 @@ var reaction_model = (mongoose) => {
855
697
  return Reaction;
856
698
  };
857
699
  const BlogController = blog_controller;
858
- const BlogOldController = blog_old_controller;
859
700
  const CommentsController = comments_controller;
860
701
  const ReactionsController = reactions_controller;
861
702
  const blogRoutes = blog_routes;
@@ -866,7 +707,6 @@ const CommentModel = comment_model;
866
707
  const ReactionModel = reaction_model;
867
708
  var community_server = {
868
709
  BlogController,
869
- BlogOldController,
870
710
  CommentsController,
871
711
  ReactionsController,
872
712
  blogRoutes,
@@ -1 +1 @@
1
- {"version":3,"file":"Address.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Address/Address.vue"],"names":[],"mappings":"AA6IA,OAAO,2KAA2K,CAAA;;AAGlL,wBAAqF"}
1
+ {"version":3,"file":"Address.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Address/Address.vue"],"names":[],"mappings":"AA6IA,OAAO,oJAAoJ,CAAA;;AAG3J,wBAAqF"}
@@ -1 +1 @@
1
- {"version":3,"file":"Button.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.vue"],"names":[],"mappings":"AAiKA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;CAmId,CAAA;AAGD,OAAO,0JAA0J,CAAA;AAEjK,eAAe,SAAS,CAAA"}
1
+ {"version":3,"file":"Button.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.vue"],"names":[],"mappings":"AAiKA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;CAmId,CAAA;AAGD,OAAO,mIAAmI,CAAA;AAE1I,eAAe,SAAS,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.vue"],"names":[],"mappings":"AAsFA,OAAO,8KAA8K,CAAA;;AAGrL,wBAAqF"}
1
+ {"version":3,"file":"Checkbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.vue"],"names":[],"mappings":"AAsFA,OAAO,uJAAuJ,CAAA;;AAG9J,wBAAqF"}
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.vue"],"names":[],"mappings":"AA0CA,OAAO,6KAA6K,CAAA;;AAGpL,wBAAqF"}
1
+ {"version":3,"file":"Dropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.vue"],"names":[],"mappings":"AA0CA,OAAO,sJAAsJ,CAAA;;AAG7J,wBAAqF"}
@@ -1 +1 @@
1
- {"version":3,"file":"Field.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Field/Field.vue"],"names":[],"mappings":"AAuFA,OAAO,wKAAwK,CAAA;;AAG/K,wBAAqF"}
1
+ {"version":3,"file":"Field.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Field/Field.vue"],"names":[],"mappings":"AAwFA,OAAO,iJAAiJ,CAAA;;AAGxJ,wBAAqF"}
@@ -19,11 +19,11 @@ declare const _default: {
19
19
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
20
20
  $props: {
21
21
  readonly mode?: string | undefined;
22
+ readonly disabled?: boolean | undefined;
22
23
  readonly allCountries?: unknown[] | undefined;
23
24
  readonly autoFormat?: boolean | undefined;
24
25
  readonly customValidate?: boolean | RegExp | undefined;
25
26
  readonly defaultCountry?: string | undefined;
26
- readonly disabled?: boolean | undefined;
27
27
  readonly autoDefaultCountry?: boolean | undefined;
28
28
  readonly dropdownOptions?: Record<string, any> | undefined;
29
29
  readonly ignoredCountries?: unknown[] | undefined;
@@ -75,11 +75,11 @@ declare const _default: {
75
75
  } & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
76
76
  $props: {
77
77
  readonly mode?: string | undefined;
78
+ readonly disabled?: boolean | undefined;
78
79
  readonly allCountries?: unknown[] | undefined;
79
80
  readonly autoFormat?: boolean | undefined;
80
81
  readonly customValidate?: boolean | RegExp | undefined;
81
82
  readonly defaultCountry?: string | undefined;
82
- readonly disabled?: boolean | undefined;
83
83
  readonly autoDefaultCountry?: boolean | undefined;
84
84
  readonly dropdownOptions?: Record<string, any> | undefined;
85
85
  readonly ignoredCountries?: unknown[] | undefined;
@@ -115,11 +115,11 @@ declare const _default: {
115
115
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
116
116
  $props: {
117
117
  readonly mode?: string | undefined;
118
+ readonly disabled?: boolean | undefined;
118
119
  readonly allCountries?: unknown[] | undefined;
119
120
  readonly autoFormat?: boolean | undefined;
120
121
  readonly customValidate?: boolean | RegExp | undefined;
121
122
  readonly defaultCountry?: string | undefined;
122
- readonly disabled?: boolean | undefined;
123
123
  readonly autoDefaultCountry?: boolean | undefined;
124
124
  readonly dropdownOptions?: Record<string, any> | undefined;
125
125
  readonly ignoredCountries?: unknown[] | undefined;
@@ -522,11 +522,11 @@ declare const _default: import("vue").DefineComponent<{
522
522
  }>>, {
523
523
  validation: boolean | Record<string, any>;
524
524
  mode: string;
525
+ disabled: boolean;
525
526
  allCountries: unknown[];
526
527
  autoFormat: boolean;
527
528
  customValidate: boolean | RegExp;
528
529
  defaultCountry: string;
529
- disabled: boolean;
530
530
  autoDefaultCountry: boolean;
531
531
  dropdownOptions: Record<string, any>;
532
532
  ignoredCountries: unknown[];
@@ -1 +1 @@
1
- {"version":3,"file":"FieldPhone.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FieldPhone/FieldPhone.vue"],"names":[],"mappings":"AA21BA,OAAO,iLAAiL,CAAA;;AAGxL,wBAA4G"}
1
+ {"version":3,"file":"FieldPhone.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FieldPhone/FieldPhone.vue"],"names":[],"mappings":"AA21BA,OAAO,0JAA0J,CAAA;;AAGjK,wBAA4G"}
@@ -1 +1 @@
1
- {"version":3,"file":"LocationMarker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/LocationMarker/LocationMarker.vue"],"names":[],"mappings":"AA6JA,OAAO,yLAAyL,CAAA;;AAGhM,wBAAqF"}
1
+ {"version":3,"file":"LocationMarker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/LocationMarker/LocationMarker.vue"],"names":[],"mappings":"AA6JA,OAAO,kKAAkK,CAAA;;AAGzK,wBAAqF"}
@@ -1 +1 @@
1
- {"version":3,"file":"Map.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Map/Map.vue"],"names":[],"mappings":"AA+DA,OAAO,mKAAmK,CAAA;;AAG1K,wBAAqF"}
1
+ {"version":3,"file":"Map.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Map/Map.vue"],"names":[],"mappings":"AA+DA,OAAO,4IAA4I,CAAA;;AAGnJ,wBAAqF"}
@@ -1 +1 @@
1
- {"version":3,"file":"Popup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.vue"],"names":[],"mappings":"AAiCA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;CAyEd,CAAA;AAGD,OAAO,wJAAwJ,CAAA;AAE/J,eAAe,SAAS,CAAA"}
1
+ {"version":3,"file":"Popup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.vue"],"names":[],"mappings":"AAiCA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;CAyEd,CAAA;AAGD,OAAO,iIAAiI,CAAA;AAExI,eAAe,SAAS,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Select.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.vue"],"names":[],"mappings":"AAsHA,OAAO,0KAA0K,CAAA;;AAGjL,wBAAqF"}
1
+ {"version":3,"file":"Select.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.vue"],"names":[],"mappings":"AAsHA,OAAO,mJAAmJ,CAAA;;AAG1J,wBAAqF"}
@@ -1 +1 @@
1
- {"version":3,"file":"SelectMulti.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SelectMulti/SelectMulti.vue"],"names":[],"mappings":"AAqeA,OAAO,mKAAmK,CAAA;;AAG1K,wBAA4E"}
1
+ {"version":3,"file":"SelectMulti.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SelectMulti/SelectMulti.vue"],"names":[],"mappings":"AAqeA,OAAO,4IAA4I,CAAA;;AAGnJ,wBAA4E"}
@@ -1 +1 @@
1
- {"version":3,"file":"Spoiler.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Spoiler/Spoiler.vue"],"names":[],"mappings":"AAUA,QAAA,MAAM,SAAS;;;;;;;;;;;CAwCd,CAAA;AAGD,OAAO,4JAA4J,CAAA;AAEnK,eAAe,SAAS,CAAA"}
1
+ {"version":3,"file":"Spoiler.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Spoiler/Spoiler.vue"],"names":[],"mappings":"AAUA,QAAA,MAAM,SAAS;;;;;;;;;;;CAwCd,CAAA;AAGD,OAAO,qIAAqI,CAAA;AAE5I,eAAe,SAAS,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Tab.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tab/Tab.vue"],"names":[],"mappings":"AASA,QAAA,MAAM,SAAS;;;;;;;;;;;;;CAkEd,CAAA;AAGD,OAAO,oJAAoJ,CAAA;AAE3J,eAAe,SAAS,CAAA"}
1
+ {"version":3,"file":"Tab.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tab/Tab.vue"],"names":[],"mappings":"AASA,QAAA,MAAM,SAAS;;;;;;;;;;;;;CAkEd,CAAA;AAGD,OAAO,6HAA6H,CAAA;AAEpI,eAAe,SAAS,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Text.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.vue"],"names":[],"mappings":"AAWA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;CA+Cd,CAAA;AAID,eAAe,SAAS,CAAA"}
1
+ {"version":3,"file":"Text.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.vue"],"names":[],"mappings":"AAWA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;CAiDd,CAAA;AAID,eAAe,SAAS,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.vue"],"names":[],"mappings":"AA+DA,OAAO,2KAA2K,CAAA;;AAGlL,wBAAqF"}
1
+ {"version":3,"file":"Tooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.vue"],"names":[],"mappings":"AA+DA,OAAO,oJAAoJ,CAAA;;AAG3J,wBAAqF"}
@@ -1 +1 @@
1
- {"version":3,"file":"Upload.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Upload/Upload.vue"],"names":[],"mappings":"AAyFA,OAAO,0KAA0K,CAAA;;AAGjL,wBAAqF"}
1
+ {"version":3,"file":"Upload.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Upload/Upload.vue"],"names":[],"mappings":"AAyFA,OAAO,mJAAmJ,CAAA;;AAG1J,wBAAqF"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./Feed-51e4e232.js"),e=require("vue"),V=require("./EmptyState-7658d7d6.js"),v=require("./auth-5aa8e90c.js"),y=require("vue-router"),E=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-15e71ec4.js"),B=require("./Image-9a870c88.js"),P=require("./Popup-105ef2c3.js"),$=require("./UploadImage-441e8526.js"),q=require("./organizations-af43bda4.js"),b=require("./globals-928eb13c.js");require("vue-i18n");require("./CardHeader-925a972b.js");require("./PlaceholderUserpic-d64d6dd5.js");require("./vue-draggable-next.esm-bundler-80731ae0.js");const I={},L={width:"100%",height:"50",xmlns:"http://www.w3.org/2000/svg"},O=e.createStaticVNode('<rect x="0" y="0" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="3" ry="3" width="40" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="65" y="15" rx="3" ry="3" width="150" height="20" fill="rgba(var(--black),0.05)"></rect><circle cx="250" cy="25" r="10" fill="rgba(var(--black),0.1)"></circle><circle cx="265" cy="25" r="10" fill="rgba(var(--black),0.05)"></circle><circle cx="280" cy="25" r="10" fill="rgba(var(--black),0.025)"></circle><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>',7),U=[O];function F(p,r){return e.openBlock(),e.createElementBlock("svg",L,U)}const j=v._export_sfc(I,[["render",F]]);const z={class:"today-events"},M={__name:"List",props:{category:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(p){const r=p,n=e.ref([]),t=e.ref(!0),i=e.ref(0),c=e.ref(5);return e.onMounted(async()=>{const a=await g.read({skip:i.value,limit:c.value,sortOrder:"desc",category:r.category,user:r.user,owner:r.owner,organization:r.organization,period:r.period,status:r.status});n.value=a,t.value=!1}),(a,o)=>(e.openBlock(),e.createElementBlock("section",z,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[t.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.value,d=>(e.openBlock(),e.createBlock(j,{key:d}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!t.value&&n.value.length<1?(e.openBlock(),e.createBlock(V._sfc_main,{key:0,title:"No Events Today",description:"Today, 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(()=>[!t.value&&n.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value,(d,f)=>(e.openBlock(),e.createBlock(g._sfc_main$1,{onClick:_=>a.$router.push({name:"Event",params:{url:d.url}}),key:d._id,event:d,owner:p.user,type:"short",class:e.normalizeClass(["pd-medium",{"br-b br-solid br-black-transp-10":f!==n.value.length-1}])},null,8,["onClick","event","owner","class"]))),128)):e.createCommentVNode("",!0)]),_:1})]))}},R=["onClick"],A={class:"t-transp"},H={__name:"DatePicker",props:["date","locale"],setup(p,{emit:r}){const n=p,t=e.ref(null);let i;if(n.date){const u=parseInt(n.date.substring(0,2)),h=parseInt(n.date.substring(2,4))-1,s=parseInt(n.date.substring(4));i=new Date(s,h,u),console.log("Data"+i)}else i=new Date,console.log("No data"+i);i.setHours(0,0,0,0);const c=e.ref(new Date(i)),a=_(i,30);e.onMounted(()=>{if(t.value){const u=t.value.getElementsByClassName("selected")[0]||t.value.getElementsByClassName("bg-main")[0];u&&(t.value.scrollLeft=u.offsetLeft-t.value.offsetWidth/2+u.offsetWidth/2)}});function o(u){c.value=u;const h=d(u);r("update:date",h)}function d(u){return`${u.getDate().toString().padStart(2,"0")}${(u.getMonth()+1).toString().padStart(2,"0")}${u.getFullYear()}`}function f(u){return u.toLocaleDateString(n.locale?n.locale:"en",{weekday:"narrow"}).toUpperCase()}function _(u,h){const s=[];for(let l=-15;l<h-15;l++){const m=new Date(u);m.setDate(u.getDate()+l),m.setHours(0,0,0,0),s.push(m)}return s}return(u,h)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:"w-100 o-scroll flex-nowrap flex",ref_key:"scrollContainer",ref:t,style:{"scroll-snap-type":"x mandatory"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),s=>(e.openBlock(),e.createElementBlock("div",{key:s.toString(),onClick:l=>o(s),class:e.normalizeClass([{selected:c.value.toDateString()===s.toDateString()},"cursor-pointer mn-r-small mn-l-small flex-column flex-center flex"])},[e.createElementVNode("span",A,e.toDisplayString(f(s)),1),e.createElementVNode("span",{class:e.normalizeClass([{"bg-main":c.value.toDateString()===s.toDateString()},"transition-ease-in-out t-semi flex-center flex radius-big i-semi day-number"])},e.toDisplayString(s.getDate()),3)],10,R))),128))],512)]))}},J={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),W={class:""},C={__name:"layoutEvents",setup(p){const r=y.useRoute(),n=y.useRouter(),i=c(new Date);function c(a){return`${a.getDate().toString().padStart(2,"0")}${(a.getMonth()+1).toString().padStart(2,"0")}${a.getFullYear()}`}if(r.query){const a=r.query,o={tags:a.tags?a.tags.split(","):null,date:a.date?a.date:i};g.state.filter=o}else{const a={date:i};g.state.filter=a}return e.watch(()=>g.state.filter,(a,o)=>{const d={...r.query};Object.keys(o).forEach(_=>{d[_]&&delete d[_]});const f=Object.fromEntries(Object.entries(a).filter(([_,u])=>Array.isArray(u)&&u.length>0||typeof u=="string"&&u).map(([_,u])=>[_,Array.isArray(u)?u.join(","):u]));Object.assign(d,f),n.push({query:d})},{deep:!0}),(a,o)=>{const d=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",J,[e.createVNode(H,{date:g.state.filter.date,"onUpdate:date":o[0]||(o[0]=f=>g.state.filter.date=f),locale:a.$i18n.locale,class:"radius-small bg-grey pd-l-zero pd-r-zero pd-medium"},null,8,["date","locale"]),G,e.createElementVNode("section",W,[e.createVNode(d,null,{default:e.withCtx(({Component:f,route:_})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f),{ref:"page",key:_.query}))]),_:2},1024)]),_:1})])])}}},Y={key:0,class:"pd-thin"},Q={class:"mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},K=e.createElementVNode("h4",null,"Upload Event Cover",-1),X=e.createElementVNode("h3",{class:"mn-small"},"Date",-1),Z=e.createElementVNode("h3",{class:"mn-small"},"Description",-1),ee={key:0,class:"pd-b-extra w-100 bg-grey pd-big radius-big"},te={key:1,class:"pd-thin pos-fixed pos-l-0 pos-b-0 w-100"},re={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},ae={class:"w-m-66r t-left pd-big bg-white radius-big"},ne=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),oe=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),se={key:0,class:"mn-thin"},le={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},D={__name:"EditEvent",setup(p){const r=y.useRoute(),n=y.useRouter();let t=e.ref(null),i=e.ref(null);const c=e.ref([]),a=e.ref(null);e.onMounted(async()=>{if(r.params.url){const l=await g.read({user:v.state.user._id,url:r.params.url});t.value=l.pop(),t.value.date.start=t.value.date.start.slice(0,16),t.value.date.end=t.value.date.end.slice(0,16)}else g.clean(),t.value=g.state.current;t.value.owner||(t.value.owner={target:v.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:v.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(a.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const s=await q.actions.read({user:v.state.user._id,postable:v.state.user._id});i.value=s.map(l=>({name:l.profile.name,_id:l._id,photo:l.profile.photo}))});const o=e.ref(!1);function d(){o.value=!0}function f(){o.value=!1}function _(){c.value.length>0&&c.value.map(s=>s.text),t.value.status="draft",r.params.url?g.update(t.value).then(s=>{n.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)}):g.create(t.value).then(s=>{n.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)})}function u(){confirm("Are you sure you want to delete this event?")&&(void 0)(t.value._id).then(s=>{n.push({name:"Drafts"})}).catch(s=>{console.error(s)})}function h(){a.value&&(t.value.owner={target:a.value._id,type:"organization"}),a.value||(t.value.creator.hidden=!1),a.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),r.params.url?g.update(t.value).then(s=>{n.push({name:"Blogevent",params:{url:s.url}})}).catch(s=>{console.log(s)}):g.create(t.value).then(s=>{n.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.log(s)})}return(s,l)=>e.unref(t)?(e.openBlock(),e.createElementBlock("article",Y,[e.createElementVNode("div",Q,[e.createVNode($._sfc_main,{photo:e.unref(t).cover,"onUpdate:photo":l[0]||(l[0]=m=>e.unref(t).cover=m),uploadPath:"users/"+v.state.user._id+"/events",class:"h-4r w-4r aspect-1x1 o-hidden mn-thin radius-extra"},null,8,["photo","uploadPath"]),K]),e.createVNode(v.Field,{field:e.unref(t).name,"onUpdate:field":l[1]||(l[1]=m=>e.unref(t).name=m),placeholder:"Event name",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(v.Field,{field:e.unref(t).description,"onUpdate:field":l[2]||(l[2]=m=>e.unref(t).description=m),type:"textfield",placeholder:"Enter short description",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),X,e.createTextVNode(" "+e.toDisplayString(e.unref(t).date.start)+" ",1),e.createVNode(v.Field,{field:e.unref(t).date.start,"onUpdate:field":l[3]||(l[3]=m=>e.unref(t).date.start=m),label:"Start",type:"datetime-local",placeholder:"Not specified",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(v.Field,{field:e.unref(t).date.end,"onUpdate:field":l[4]||(l[4]=m=>e.unref(t).date.end=m),label:"End",type:"datetime-local",placeholder:"Not specified",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),Z,e.unref(t)?(e.openBlock(),e.createElementBlock("section",ee,[e.createVNode(B._sfc_main,{content:e.unref(t).content,onUpdate:l[5]||(l[5]=m=>e.unref(t).content=m)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",te,[e.createElementVNode("div",re,[e.unref(r).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:l[6]||(l[6]=m=>u()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:l[7]||(l[7]=m=>_()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:l[8]||(l[8]=m=>d()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(P._sfc_main,{title:"Добавить участника",onClosePopup:f,isPopupOpen:o.value},{default:e.withCtx(()=>[e.createElementVNode("div",ae,[ne,e.createVNode(E._sfc_main,{onTagsChanged:l[9]||(l[9]=m=>e.unref(t).tags=m),tags:e.unref(t).tags},null,8,["tags"]),oe,e.createVNode(E.SelectMulti,{modelValue:a.value,"onUpdate:modelValue":l[10]||(l[10]=m=>a.value=m),options:e.unref(i),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"]),a.value?(e.openBlock(),e.createElementBlock("h5",se,"Options:")):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("div",le,[e.createVNode(E.Checkbox,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":l[11]||(l[11]=m=>e.unref(t).creator.hidden=m),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(v._sfc_main,{submit:h,callback:s.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])])]),_:1},8,["isPopupOpen"])])):e.createCommentVNode("",!0)}},N=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"})),w=v.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),k=e.reactive({tickets:[],error:null}),x={async read({user:p,type:r,target:n,role:t}){try{const i=await w.get("/api/tickets",{params:{user:p,type:r,target:n,role:t}});return k.error=null,k.tickets=i.data,Promise.resolve(i.data)}catch(i){return b.setError(i),Promise.reject(i)}},async create(p){try{const r=await w.post("/api/tickets/create",p);return k.error=null,Promise.resolve(r.data)}catch(r){return b.setError(r),Promise.reject(r)}},async update(p){try{const r=await w.post("/api/tickets/update",p);return k.error=null,Promise.resolve(r.data)}catch(r){return b.setError(r),Promise.reject(r)}},async delete(p){try{const r=await w.post("/api/tickets/delete",p);return k.error=null,Promise.resolve(r.data)}catch(r){return b.setError(r),Promise.reject(r)}}},ie={handleTicketUpdate(p,r,n){let t;if(Array.isArray(p)?t=p.find(i=>i._id===r.target):typeof p=="object"&&p._id===r.target&&(t=p),t)if(t.hasTicket=n,n)t.tickets.push(r),t.numberOfTickets+=1;else{const i=t.tickets.findIndex(c=>c._id===r._id);i!==-1&&(t.tickets.splice(i,1),t.numberOfTickets-=1)}}};e.watch(k,p=>{});const ce={__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(p,{emit:r}){const n=p,t=async()=>{n.hasTicket?await c(n.targetId):await i(n.targetId)};async function i(a){try{const o={type:n.type,target:a,user:n.userId},d=await x.create(o);r("updateTicket",{ticket:d,hasTicket:!0,targetId:n.targetId})}catch(o){throw console.log(o),o}}async function c(a){const o={type:n.type,target:a,user:n.userId};try{const d=await x.delete(o);r("updateTicket",{ticket:d,hasTicket:!1,targetId:n.targetId})}catch(d){throw console.log(d),d}}return(a,o)=>(e.openBlock(),e.createBlock(v._sfc_main,{submit:t,class:"bg-main button-small button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.hasTicket?"Leave":"Join"),1)]),_:1}))}},ue=v._export_sfc(ce,[["__scopeId","data-v-d5c351bb"]]),de={class:"pd-thin"},S={__name:"Event",setup(p){const r=y.useRoute(),n=({ticket:o,hasTicket:d,targetId:f})=>{ie.handleTicketUpdate(c.value,o,d,f)},t={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:B._sfc_main$2};function i(o){return o.type==="Textarea"?{innerHTML:o.content,class:"p-medium"}:o.type==="H2"?{innerHTML:o.content,class:"h3"}:o.type==="Caption"?{innerHTML:o.content}:o.type==="ImageUpload"?{src:o.content}:{}}const c=e.ref(null),a=e.ref(!0);return e.onMounted(async()=>{a.value=!0;const o=await g.read({user:v.state.user._id,url:r.params.url});c.value=o[0],a.value=!1}),(o,d)=>(e.openBlock(),e.createElementBlock("section",de,[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,f=>e.createVNode(g.SkeletonEvent,{key:f})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!a.value&&!c.value?(e.openBlock(),e.createBlock(V._sfc_main,{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&&c.value?(e.openBlock(),e.createBlock(g._sfc_main$1,{key:0,onClick:d[0]||(d[0]=f=>o.$router.push({name:"Event",params:{url:c.value.url}})),event:c.value,owner:c.value.owner,user:v.state.user._id,type:"normal",class:"mn-medium bg-grey radius-big"},{default:e.withCtx(()=>[v.state.user._id?(e.openBlock(),e.createBlock(ue,{key:0,type:"event",hasTicket:c.value.hasTicket,targetId:c.value._id,userId:v.state.user._id,class:"mn-small w-100 pd-medium mn-auto",onUpdateTicket:n},null,8,["hasTicket","targetId","userId"])):e.createCommentVNode("",!0),e.createElementVNode("section",null,[c.value&&c.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.value.content,(f,_)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t[f.type]),e.mergeProps({key:_,index:_,component:f,prop:f,class:f.class,content:"content"},i(f),{class:"mn-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["event","owner","user"])):e.createCommentVNode("",!0),!a.value&&c.value?(e.openBlock(),e.createBlock(B._sfc_main$1,{key:1,type:"event",target:c.value._id,owner:v.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}},pe=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),T={__name:"Events",setup(p){const r=y.useRoute();return y.useRouter(),(n,t)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(g._sfc_main,{category:e.unref(r).params.category,user:v.state.user._id,period:e.unref(r).query.period,selectedDate:g.state.filter.date},null,8,["category","user","period","selectedDate"])]))}},me=Object.freeze(Object.defineProperty({__proto__:null,default:T},Symbol.toStringTag,{value:"Module"})),fe=[{path:"events",component:C,meta:{title:{en:"Events",ru:"События"}},children:[{path:":category?",name:"Events",component:()=>Promise.resolve().then(()=>me)}]},{path:"events/create",name:"Create Event",meta:{title:{en:"Create Event",ru:"Создать Событие"},authorize:[]},component:()=>Promise.resolve().then(()=>N)},{path:"events/:url",name:"Event",meta:{title:{en:"Event",ru:"Событие"}},component:()=>Promise.resolve().then(()=>pe)},{path:"events/:url/edit",name:"Edit Event",meta:{authorize:[]},component:()=>Promise.resolve().then(()=>N)}];exports.CardEvent=g._sfc_main$1;exports.Feed=g._sfc_main;exports.eventsStore=g.events;exports.EditEvent=D;exports.EventPage=S;exports.EventsLayout=C;exports.EventsPage=T;exports.List=M;exports.eventsRoutes=fe;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./Feed-a2870bbf.js"),e=require("vue"),V=require("./EmptyState-7658d7d6.js"),C=require("./_plugin-vue_export-helper-f246444f.js"),y=require("vue-router"),E=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-e32a3041.js"),B=require("./Image-0f2814f0.js"),$=require("./Popup-0106ee0c.js"),v=require("./auth-5a58f8cb.js"),q=require("./UploadImage-73d66f27.js"),I=require("./organizations-e97a0f85.js"),b=require("./globals-928eb13c.js");require("vue-i18n");require("./Chips-2a0d9bfe.js");require("./PlaceholderUserpic-20d58460.js");require("./vue-draggable-next.esm-bundler-80731ae0.js");const L={},O={width:"100%",height:"50",xmlns:"http://www.w3.org/2000/svg"},U=e.createStaticVNode('<rect x="0" y="0" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="3" ry="3" width="40" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="65" y="15" rx="3" ry="3" width="150" height="20" fill="rgba(var(--black),0.05)"></rect><circle cx="250" cy="25" r="10" fill="rgba(var(--black),0.1)"></circle><circle cx="265" cy="25" r="10" fill="rgba(var(--black),0.05)"></circle><circle cx="280" cy="25" r="10" fill="rgba(var(--black),0.025)"></circle><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>',7),F=[U];function j(p,r){return e.openBlock(),e.createElementBlock("svg",O,F)}const z=C._export_sfc(L,[["render",j]]);const M={class:"today-events"},R={__name:"List",props:{category:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(p){const r=p,n=e.ref([]),t=e.ref(!0),i=e.ref(0),c=e.ref(5);return e.onMounted(async()=>{const a=await g.read({skip:i.value,limit:c.value,sortOrder:"desc",category:r.category,user:r.user,owner:r.owner,organization:r.organization,period:r.period,status:r.status});n.value=a,t.value=!1}),(a,o)=>(e.openBlock(),e.createElementBlock("section",M,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[t.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.value,d=>(e.openBlock(),e.createBlock(z,{key:d}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!t.value&&n.value.length<1?(e.openBlock(),e.createBlock(V._sfc_main,{key:0,title:"No Events Today",description:"Today, 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(()=>[!t.value&&n.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value,(d,f)=>(e.openBlock(),e.createBlock(g._sfc_main$1,{onClick:_=>a.$router.push({name:"Event",params:{url:d.url}}),key:d._id,event:d,owner:p.user,type:"short",class:e.normalizeClass(["pd-medium",{"br-b br-solid br-black-transp-10":f!==n.value.length-1}])},null,8,["onClick","event","owner","class"]))),128)):e.createCommentVNode("",!0)]),_:1})]))}},A=["onClick"],H={class:"t-transp"},J={__name:"DatePicker",props:["date","locale"],setup(p,{emit:r}){const n=p,t=e.ref(null);let i;if(n.date){const u=parseInt(n.date.substring(0,2)),h=parseInt(n.date.substring(2,4))-1,s=parseInt(n.date.substring(4));i=new Date(s,h,u),console.log("Data"+i)}else i=new Date,console.log("No data"+i);i.setHours(0,0,0,0);const c=e.ref(new Date(i)),a=_(i,30);e.onMounted(()=>{if(t.value){const u=t.value.getElementsByClassName("selected")[0]||t.value.getElementsByClassName("bg-main")[0];u&&(t.value.scrollLeft=u.offsetLeft-t.value.offsetWidth/2+u.offsetWidth/2)}});function o(u){c.value=u;const h=d(u);r("update:date",h)}function d(u){return`${u.getDate().toString().padStart(2,"0")}${(u.getMonth()+1).toString().padStart(2,"0")}${u.getFullYear()}`}function f(u){return u.toLocaleDateString(n.locale?n.locale:"en",{weekday:"narrow"}).toUpperCase()}function _(u,h){const s=[];for(let l=-15;l<h-15;l++){const m=new Date(u);m.setDate(u.getDate()+l),m.setHours(0,0,0,0),s.push(m)}return s}return(u,h)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:"w-100 o-scroll flex-nowrap flex",ref_key:"scrollContainer",ref:t,style:{"scroll-snap-type":"x mandatory"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),s=>(e.openBlock(),e.createElementBlock("div",{key:s.toString(),onClick:l=>o(s),class:e.normalizeClass([{selected:c.value.toDateString()===s.toDateString()},"cursor-pointer mn-r-small mn-l-small flex-column flex-center flex"])},[e.createElementVNode("span",H,e.toDisplayString(f(s)),1),e.createElementVNode("span",{class:e.normalizeClass([{"bg-main":c.value.toDateString()===s.toDateString()},"transition-ease-in-out t-semi flex-center flex radius-big i-semi day-number"])},e.toDisplayString(s.getDate()),3)],10,A))),128))],512)]))}},G={class:"pd-thin min-h-100vh"},W=e.createElementVNode("div",{class:"mn-thin br-solid br-1px br-grey bg-grey radius-big"},null,-1),Y={class:""},D={__name:"layoutEvents",setup(p){const r=y.useRoute(),n=y.useRouter(),i=c(new Date);function c(a){return`${a.getDate().toString().padStart(2,"0")}${(a.getMonth()+1).toString().padStart(2,"0")}${a.getFullYear()}`}if(r.query){const a=r.query,o={tags:a.tags?a.tags.split(","):null,date:a.date?a.date:i};g.state.filter=o}else{const a={date:i};g.state.filter=a}return e.watch(()=>g.state.filter,(a,o)=>{const d={...r.query};Object.keys(o).forEach(_=>{d[_]&&delete d[_]});const f=Object.fromEntries(Object.entries(a).filter(([_,u])=>Array.isArray(u)&&u.length>0||typeof u=="string"&&u).map(([_,u])=>[_,Array.isArray(u)?u.join(","):u]));Object.assign(d,f),n.push({query:d})},{deep:!0}),(a,o)=>{const d=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",G,[e.createVNode(J,{date:g.state.filter.date,"onUpdate:date":o[0]||(o[0]=f=>g.state.filter.date=f),locale:a.$i18n.locale,class:"radius-small bg-grey pd-l-zero pd-r-zero pd-medium"},null,8,["date","locale"]),W,e.createElementVNode("section",Y,[e.createVNode(d,null,{default:e.withCtx(({Component:f,route:_})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f),{ref:"page",key:_.query}))]),_:2},1024)]),_:1})])])}}},Q={key:0,class:"pd-thin"},K={class:"mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},X=e.createElementVNode("h4",null,"Upload Event Cover",-1),Z=e.createElementVNode("h3",{class:"mn-small"},"Date",-1),ee=e.createElementVNode("h3",{class:"mn-small"},"Description",-1),te={key:0,class:"pd-b-extra w-100 bg-grey pd-big radius-big"},re={key:1,class:"pd-thin pos-fixed pos-l-0 pos-b-0 w-100"},ae={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},ne={class:"w-m-66r t-left pd-big bg-white radius-big"},oe=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),se=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),le={key:0,class:"mn-thin"},ie={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},S={__name:"EditEvent",setup(p){const r=y.useRoute(),n=y.useRouter();let t=e.ref(null),i=e.ref(null);const c=e.ref([]),a=e.ref(null);e.onMounted(async()=>{if(r.params.url){const l=await g.read({user:v.state.user._id,url:r.params.url});t.value=l.pop(),t.value.date.start=t.value.date.start.slice(0,16),t.value.date.end=t.value.date.end.slice(0,16)}else g.clean(),t.value=g.state.current;t.value.owner||(t.value.owner={target:v.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:v.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(a.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const s=await I.actions.read({user:v.state.user._id,postable:v.state.user._id,limit:100});i.value=s.map(l=>({name:l.profile.name,_id:l._id,photo:l.profile.photo}))});const o=e.ref(!1);function d(){o.value=!0}function f(){o.value=!1}function _(){c.value.length>0&&c.value.map(s=>s.text),t.value.status="draft",r.params.url?g.update(t.value).then(s=>{n.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)}):g.create(t.value).then(s=>{n.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)})}function u(){confirm("Are you sure you want to delete this event?")&&(void 0)(t.value._id).then(s=>{n.push({name:"Drafts"})}).catch(s=>{console.error(s)})}function h(){a.value&&(t.value.owner={target:a.value._id,type:"organization"}),a.value||(t.value.creator.hidden=!1),a.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),r.params.url?g.update(t.value).then(s=>{n.push({name:"Blogevent",params:{url:s.url}})}).catch(s=>{console.log(s)}):g.create(t.value).then(s=>{n.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.log(s)})}return(s,l)=>e.unref(t)?(e.openBlock(),e.createElementBlock("article",Q,[e.createElementVNode("div",K,[e.createVNode(q._sfc_main,{photo:e.unref(t).cover,"onUpdate:photo":l[0]||(l[0]=m=>e.unref(t).cover=m),uploadPath:"users/"+v.state.user._id+"/events",class:"h-4r w-4r aspect-1x1 o-hidden mn-thin radius-extra"},null,8,["photo","uploadPath"]),X]),e.createVNode(v.Field,{field:e.unref(t).name,"onUpdate:field":l[1]||(l[1]=m=>e.unref(t).name=m),placeholder:"Event name",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(v.Field,{field:e.unref(t).description,"onUpdate:field":l[2]||(l[2]=m=>e.unref(t).description=m),type:"textfield",placeholder:"Enter short description",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),Z,e.createTextVNode(" "+e.toDisplayString(e.unref(t).date.start)+" ",1),e.createVNode(v.Field,{field:e.unref(t).date.start,"onUpdate:field":l[3]||(l[3]=m=>e.unref(t).date.start=m),label:"Start",type:"datetime-local",placeholder:"Not specified",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(v.Field,{field:e.unref(t).date.end,"onUpdate:field":l[4]||(l[4]=m=>e.unref(t).date.end=m),label:"End",type:"datetime-local",placeholder:"Not specified",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),ee,e.unref(t)?(e.openBlock(),e.createElementBlock("section",te,[e.createVNode(B._sfc_main,{content:e.unref(t).content,onUpdate:l[5]||(l[5]=m=>e.unref(t).content=m)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",re,[e.createElementVNode("div",ae,[e.unref(r).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:l[6]||(l[6]=m=>u()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:l[7]||(l[7]=m=>_()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:l[8]||(l[8]=m=>d()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode($._sfc_main,{title:"Добавить участника",onClosePopup:f,isPopupOpen:o.value},{default:e.withCtx(()=>[e.createElementVNode("div",ne,[oe,e.createVNode(E._sfc_main,{onTagsChanged:l[9]||(l[9]=m=>e.unref(t).tags=m),tags:e.unref(t).tags},null,8,["tags"]),se,e.createVNode(E.SelectMulti,{modelValue:a.value,"onUpdate:modelValue":l[10]||(l[10]=m=>a.value=m),options:e.unref(i),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"]),a.value?(e.openBlock(),e.createElementBlock("h5",le,"Options:")):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("div",ie,[e.createVNode(E.Checkbox,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":l[11]||(l[11]=m=>e.unref(t).creator.hidden=m),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(v._sfc_main,{submit:h,callback:s.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])])]),_:1},8,["isPopupOpen"])])):e.createCommentVNode("",!0)}},N=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),w=v.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),k=e.reactive({tickets:[],error:null}),x={async read({user:p,type:r,target:n,role:t}){try{const i=await w.get("/api/tickets",{params:{user:p,type:r,target:n,role:t}});return k.error=null,k.tickets=i.data,Promise.resolve(i.data)}catch(i){return b.setError(i),Promise.reject(i)}},async create(p){try{const r=await w.post("/api/tickets/create",p);return k.error=null,Promise.resolve(r.data)}catch(r){return b.setError(r),Promise.reject(r)}},async update(p){try{const r=await w.post("/api/tickets/update",p);return k.error=null,Promise.resolve(r.data)}catch(r){return b.setError(r),Promise.reject(r)}},async delete(p){try{const r=await w.post("/api/tickets/delete",p);return k.error=null,Promise.resolve(r.data)}catch(r){return b.setError(r),Promise.reject(r)}}},ce={handleTicketUpdate(p,r,n){let t;if(Array.isArray(p)?t=p.find(i=>i._id===r.target):typeof p=="object"&&p._id===r.target&&(t=p),t)if(t.hasTicket=n,n)t.tickets.push(r),t.numberOfTickets+=1;else{const i=t.tickets.findIndex(c=>c._id===r._id);i!==-1&&(t.tickets.splice(i,1),t.numberOfTickets-=1)}}};e.watch(k,p=>{});const ue={__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(p,{emit:r}){const n=p,t=async()=>{n.hasTicket?await c(n.targetId):await i(n.targetId)};async function i(a){try{const o={type:n.type,target:a,user:n.userId},d=await x.create(o);r("updateTicket",{ticket:d,hasTicket:!0,targetId:n.targetId})}catch(o){throw console.log(o),o}}async function c(a){const o={type:n.type,target:a,user:n.userId};try{const d=await x.delete(o);r("updateTicket",{ticket:d,hasTicket:!1,targetId:n.targetId})}catch(d){throw console.log(d),d}}return(a,o)=>(e.openBlock(),e.createBlock(v._sfc_main,{submit:t,class:"bg-main button-small button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.hasTicket?"Leave":"Join"),1)]),_:1}))}},de=C._export_sfc(ue,[["__scopeId","data-v-d5c351bb"]]),pe={class:"pd-thin"},T={__name:"Event",setup(p){const r=y.useRoute(),n=({ticket:o,hasTicket:d,targetId:f})=>{ce.handleTicketUpdate(c.value,o,d,f)},t={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:B._sfc_main$2};function i(o){return o.type==="Textarea"?{innerHTML:o.content,class:"p-medium"}:o.type==="H2"?{innerHTML:o.content,class:"h3"}:o.type==="Caption"?{innerHTML:o.content}:o.type==="ImageUpload"?{src:o.content}:{}}const c=e.ref(null),a=e.ref(!0);return e.onMounted(async()=>{a.value=!0;const o=await g.read({user:v.state.user._id,url:r.params.url});c.value=o[0],a.value=!1}),(o,d)=>(e.openBlock(),e.createElementBlock("section",pe,[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,f=>e.createVNode(g.SkeletonEvent,{key:f})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!a.value&&!c.value?(e.openBlock(),e.createBlock(V._sfc_main,{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&&c.value?(e.openBlock(),e.createBlock(g._sfc_main$1,{key:0,onClick:d[0]||(d[0]=f=>o.$router.push({name:"Event",params:{url:c.value.url}})),event:c.value,owner:c.value.owner,user:v.state.user._id,type:"normal",class:"mn-medium bg-grey radius-big"},{default:e.withCtx(()=>[v.state.user._id?(e.openBlock(),e.createBlock(de,{key:0,type:"event",hasTicket:c.value.hasTicket,targetId:c.value._id,userId:v.state.user._id,class:"mn-small w-100 pd-medium mn-auto",onUpdateTicket:n},null,8,["hasTicket","targetId","userId"])):e.createCommentVNode("",!0),e.createElementVNode("section",null,[c.value&&c.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.value.content,(f,_)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t[f.type]),e.mergeProps({key:_,index:_,component:f,prop:f,class:f.class,content:"content"},i(f),{class:"mn-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["event","owner","user"])):e.createCommentVNode("",!0),!a.value&&c.value?(e.openBlock(),e.createBlock(B._sfc_main$1,{key:1,type:"event",target:c.value._id,owner:v.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}},me=Object.freeze(Object.defineProperty({__proto__:null,default:T},Symbol.toStringTag,{value:"Module"})),P={__name:"Events",setup(p){const r=y.useRoute();return y.useRouter(),(n,t)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(g._sfc_main,{category:e.unref(r).params.category,user:v.state.user._id,period:e.unref(r).query.period,selectedDate:g.state.filter.date},null,8,["category","user","period","selectedDate"])]))}},fe=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),ge=[{path:"events",component:D,meta:{title:{en:"Events",ru:"События"}},children:[{path:":category?",name:"Events",component:()=>Promise.resolve().then(()=>fe)}]},{path:"events/create",name:"Create Event",meta:{title:{en:"Create Event",ru:"Создать Событие"},authorize:[]},component:()=>Promise.resolve().then(()=>N)},{path:"events/:url",name:"Event",meta:{title:{en:"Event",ru:"Событие"}},component:()=>Promise.resolve().then(()=>me)},{path:"events/:url/edit",name:"Edit Event",meta:{authorize:[]},component:()=>Promise.resolve().then(()=>N)}];exports.CardEvent=g._sfc_main$1;exports.Feed=g._sfc_main;exports.eventsStore=g.events;exports.EditEvent=S;exports.EventPage=T;exports.EventsLayout=D;exports.EventsPage=P;exports.List=R;exports.eventsRoutes=ge;
@@ -1,18 +1,19 @@
1
- import { r as F, a as J, s as D, c as X, u as V, b as A, S as Z, _ as ee } from "./Feed-dc8b66bf.mjs";
2
- import { e as vt } from "./Feed-dc8b66bf.mjs";
1
+ import { r as F, a as J, s as D, c as X, u as V, b as A, S as Z, _ as ee } from "./Feed-986ddd21.mjs";
2
+ import { e as _t } from "./Feed-986ddd21.mjs";
3
3
  import { openBlock as d, createElementBlock as _, createStaticVNode as te, ref as w, onMounted as j, createVNode as v, TransitionGroup as U, withCtx as x, Fragment as P, renderList as T, createBlock as $, createCommentVNode as b, Transition as q, normalizeClass as N, createElementVNode as h, unref as m, toDisplayString as L, watch as W, resolveComponent as ae, resolveDynamicComponent as Y, createTextVNode as B, reactive as re, mergeProps as ne } from "vue";
4
4
  import { _ as G } from "./EmptyState-34d85f10.mjs";
5
- import { _ as Q, s as k, F as C, b as K, a as se } from "./auth-35ef1791.mjs";
5
+ import { _ as Q } from "./_plugin-vue_export-helper-dad06003.mjs";
6
6
  import { useRoute as z, useRouter as M } from "vue-router";
7
- import { _ as oe, S as le, C as ie } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs";
8
- import { _ as ue, a as ce, b as de } from "./Image-6c7584f5.mjs";
9
- import { _ as pe } from "./Popup-82fb2c8a.mjs";
10
- import { _ as me } from "./UploadImage-ff8f9a0c.mjs";
11
- import { a as fe } from "./organizations-1b4c84ee.mjs";
7
+ import { _ as se, S as oe, C as le } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-d9c6e4d1.mjs";
8
+ import { _ as ie, a as ue, b as ce } from "./Image-9e90a5f6.mjs";
9
+ import { _ as de } from "./Popup-31c7ffc6.mjs";
10
+ import { s as k, F as C, _ as K, a as pe } from "./auth-5217f6a5.mjs";
11
+ import { _ as me } from "./UploadImage-a3ef4012.mjs";
12
+ import { a as fe } from "./organizations-2adff182.mjs";
12
13
  import { s as I } from "./globals-96ba60e4.mjs";
13
14
  import "vue-i18n";
14
- import "./CardHeader-ce5a1a75.mjs";
15
- import "./PlaceholderUserpic-995da0fc.mjs";
15
+ import "./Chips-f0b7ce36.mjs";
16
+ import "./PlaceholderUserpic-14c6ea7e.mjs";
16
17
  import "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
17
18
  const ge = {}, ve = {
18
19
  width: "100%",
@@ -25,7 +26,7 @@ function ye(p, t) {
25
26
  return d(), _("svg", ve, he);
26
27
  }
27
28
  const be = /* @__PURE__ */ Q(ge, [["render", ye]]);
28
- const we = { class: "today-events" }, pt = {
29
+ const we = { class: "today-events" }, mt = {
29
30
  __name: "List",
30
31
  props: {
31
32
  category: {
@@ -274,7 +275,8 @@ const we = { class: "today-events" }, pt = {
274
275
  });
275
276
  const s = await fe.read({
276
277
  user: k.user._id,
277
- postable: k.user._id
278
+ postable: k.user._id,
279
+ limit: 100
278
280
  });
279
281
  l.value = s.map((o) => ({
280
282
  name: o.profile.name,
@@ -364,7 +366,7 @@ const we = { class: "today-events" }, pt = {
364
366
  }, null, 8, ["field"]),
365
367
  Ue,
366
368
  m(e) ? (d(), _("section", Le, [
367
- v(ue, {
369
+ v(ie, {
368
370
  content: m(e).content,
369
371
  onUpdate: o[5] || (o[5] = (f) => m(e).content = f)
370
372
  }, null, 8, ["content"])
@@ -386,7 +388,7 @@ const we = { class: "today-events" }, pt = {
386
388
  }, "Publish")
387
389
  ])
388
390
  ])) : b("", !0),
389
- v(pe, {
391
+ v(de, {
390
392
  title: "Добавить участника",
391
393
  onClosePopup: g,
392
394
  isPopupOpen: n.value
@@ -394,12 +396,12 @@ const we = { class: "today-events" }, pt = {
394
396
  default: x(() => [
395
397
  h("div", Ne, [
396
398
  Be,
397
- v(oe, {
399
+ v(se, {
398
400
  onTagsChanged: o[9] || (o[9] = (f) => m(e).tags = f),
399
401
  tags: m(e).tags
400
402
  }, null, 8, ["tags"]),
401
403
  Fe,
402
- v(le, {
404
+ v(oe, {
403
405
  modelValue: a.value,
404
406
  "onUpdate:modelValue": o[10] || (o[10] = (f) => a.value = f),
405
407
  options: m(l),
@@ -412,7 +414,7 @@ const we = { class: "today-events" }, pt = {
412
414
  }, null, 8, ["modelValue", "options"]),
413
415
  a.value ? (d(), _("h5", qe, "Options:")) : b("", !0),
414
416
  a.value ? (d(), _("div", Me, [
415
- v(ie, {
417
+ v(le, {
416
418
  label: "Hide Author",
417
419
  radio: m(e).creator.hidden,
418
420
  "onUpdate:radio": o[11] || (o[11] = (f) => m(e).creator.hidden = f),
@@ -439,7 +441,7 @@ const we = { class: "today-events" }, pt = {
439
441
  }, H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
440
442
  __proto__: null,
441
443
  default: Ve
442
- }, Symbol.toStringTag, { value: "Module" })), O = se.create({
444
+ }, Symbol.toStringTag, { value: "Module" })), O = pe.create({
443
445
  baseURL: process.env.API_URL,
444
446
  withCredentials: !0
445
447
  }), S = re({
@@ -565,7 +567,7 @@ const He = {
565
567
  H2: "h2",
566
568
  Bullets: "p",
567
569
  Caption: "p",
568
- ImageUpload: de
570
+ ImageUpload: ce
569
571
  };
570
572
  function l(n) {
571
573
  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 } : {};
@@ -635,7 +637,7 @@ const He = {
635
637
  ]),
636
638
  _: 1
637
639
  }, 8, ["event", "owner", "user"])) : b("", !0),
638
- !a.value && i.value ? (d(), $(ce, {
640
+ !a.value && i.value ? (d(), $(ue, {
639
641
  key: 1,
640
642
  type: "event",
641
643
  target: i.value._id,
@@ -665,7 +667,7 @@ const He = {
665
667
  }, Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
666
668
  __proto__: null,
667
669
  default: Ge
668
- }, Symbol.toStringTag, { value: "Module" })), mt = [
670
+ }, Symbol.toStringTag, { value: "Module" })), ft = [
669
671
  {
670
672
  path: "events",
671
673
  component: Pe,
@@ -718,7 +720,7 @@ export {
718
720
  Pe as EventsLayout,
719
721
  Ge as EventsPage,
720
722
  ee as Feed,
721
- pt as List,
722
- mt as eventsRoutes,
723
- vt as eventsStore
723
+ mt as List,
724
+ ft as eventsRoutes,
725
+ _t as eventsStore
724
726
  };
@@ -85,9 +85,9 @@ async function m(e, t, s, o) {
85
85
  }, 3e3), new Error(a.global.t("validation.length"));
86
86
  }
87
87
  export {
88
- c as a,
89
- u as b,
90
- g as c,
91
- i as d,
88
+ i as a,
89
+ c as b,
90
+ u as c,
91
+ g as d,
92
92
  m as v
93
93
  };