@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,355 +0,0 @@
1
- import { openBlock as r, createElementBlock as s, Fragment as P, renderList as M, normalizeClass as y, toDisplayString as f, ref as v, computed as g, createVNode as C, unref as x, createElementVNode as h, createCommentVNode as c, renderSlot as O, createBlock as T, createStaticVNode as F, reactive as I, watch as j, onMounted as L, TransitionGroup as N, withCtx as D, Transition as R } from "vue";
2
- import { _ as V } from "./EmptyState-34d85f10.mjs";
3
- import { _ as B } from "./CardHeader-ce5a1a75.mjs";
4
- import { _ as H, a as A } from "./auth-35ef1791.mjs";
5
- import { useRouter as Y } from "vue-router";
6
- import { s as S } from "./globals-96ba60e4.mjs";
7
- const q = { class: "flex-v-center flex-nowrap flex" }, G = {
8
- key: 1,
9
- class: "pd-thin radius-small t-semi bg-white"
10
- }, J = {
11
- __name: "Chips",
12
- props: ["chips"],
13
- setup(e) {
14
- return (t, i) => (r(), s("div", q, [
15
- e.chips.length ? (r(!0), s(P, { key: 0 }, M(e.chips, (l, u) => (r(), s("div", {
16
- class: y(["pd-thin radius-small t-semi bg-main", { "mn-r-thin": u !== e.chips.length - 1 }])
17
- }, f(l.text ? l.text : l), 3))), 256)) : (r(), s("div", G, f(e.chips), 1))
18
- ]));
19
- }
20
- }, K = {
21
- key: 0,
22
- class: "o-hidden bg-grey mn-small w-100"
23
- }, Q = ["src"], W = ["src"], X = { class: "w-max mn-r-thin pd-thin radius-small t-semi bg-main" }, Z = {
24
- key: 0,
25
- class: "t-semi"
26
- }, ee = { class: "t-semi" }, te = {
27
- key: 0,
28
- class: "t-semi uppercase"
29
- }, ae = {
30
- key: 0,
31
- class: "cursor-pointer mn-thin"
32
- }, re = {
33
- key: 1,
34
- class: "mn-small p-big"
35
- }, ne = {
36
- __name: "CardEvent",
37
- props: ["event", "user", "short", "type"],
38
- setup(e) {
39
- const t = e;
40
- v(/* @__PURE__ */ new Date()), Y(), g(() => t.event.content.find((a) => a.type.name === "ImageUpload")), g(() => t.event.content.find((a) => a.type.name === "Textarea"));
41
- const i = g(() => {
42
- const a = /* @__PURE__ */ new Date(), d = Date.UTC(a.getUTCFullYear(), a.getUTCMonth(), a.getUTCDate(), a.getUTCHours(), a.getUTCMinutes(), a.getUTCSeconds()), n = new Date(t.event.date.start), o = Date.UTC(n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate(), n.getUTCHours(), n.getUTCMinutes(), n.getUTCSeconds()) - d;
43
- if (o < 0)
44
- return "Finished";
45
- if (o === 0)
46
- return "Starting Now";
47
- {
48
- const b = Math.floor(o / 1e3), k = Math.floor(b / 60), _ = Math.floor(k / 60), E = Math.floor(_ / 24);
49
- return E > 0 ? `${E} days until event` : _ > 0 ? `${_} hours until event` : k > 0 ? `${k} minutes until event` : `${b} seconds until event`;
50
- }
51
- }), l = g(() => {
52
- const a = new Date(t.event.date.start), d = { day: "2-digit", month: "2-digit" };
53
- return a.toLocaleDateString(void 0, d);
54
- }), u = g(() => {
55
- const a = new Date(t.event.date.start), d = new Date(t.event.date.end), n = new Intl.DateTimeFormat(void 0, { hour: "2-digit", minute: "2-digit", hourCycle: "h23" }).format(a), U = new Intl.DateTimeFormat(void 0, { hour: "2-digit", minute: "2-digit", hourCycle: "h23" }).format(d);
56
- return `${n}-${U}`;
57
- }), p = g(() => {
58
- const a = t.event.name;
59
- return a.length > 26 ? `${a.substring(0, 22)}…` : a;
60
- });
61
- return (a, d) => (r(), s("article", {
62
- class: y({
63
- "flex-nowrap flex-v-center flex": e.type === "short"
64
- })
65
- }, [
66
- C(B, {
67
- class: y({
68
- "mn-small pd-medium": e.type !== "short",
69
- "flex-child-order-last flex-child mn-l-small": e.type === "short"
70
- }),
71
- owner: e.event.owner,
72
- creator: e.event.creator,
73
- members: e.event.numberOfTickets,
74
- membersPhotos: e.event.participantsPhotos,
75
- type: e.type,
76
- dateFormatted: x(i)
77
- }, null, 8, ["class", "owner", "creator", "members", "membersPhotos", "type", "dateFormatted"]),
78
- e.event.cover && e.type !== "short" ? (r(), s("div", K, [
79
- h("img", {
80
- src: e.event.cover,
81
- alt: "Event image",
82
- class: "z-index-1 d-block mn-auto h-20r"
83
- }, null, 8, Q),
84
- h("img", {
85
- src: e.event.cover,
86
- alt: "Event image",
87
- class: "z-index-0 pos-absolute w-100 h-100 pos-t-0 pos-r-0",
88
- style: { transform: "scale(1.5)", filter: "blur(2rem)", "-webkit-filter": "blur(2rem)" }
89
- }, null, 8, W)
90
- ])) : c("", !0),
91
- h("section", {
92
- class: y(["w-100", { "pd-t-zero pd-medium": e.type !== "short" }])
93
- }, [
94
- h("div", {
95
- class: y([{ "mn-small": e.type !== "short" }, "flex-v-center flex-nowrap flex"])
96
- }, [
97
- h("div", X, [
98
- e.type !== "short" ? (r(), s("span", Z, f(x(l)) + " | ", 1)) : c("", !0),
99
- h("span", ee, f(x(u)), 1)
100
- ]),
101
- e.type === "short" ? (r(), s("span", te, f(x(p)), 1)) : c("", !0)
102
- ], 2),
103
- e.type !== "short" ? (r(), s("h3", ae, f(e.event.name), 1)) : c("", !0),
104
- e.type !== "short" ? (r(), s("p", re, f(e.event.description), 1)) : c("", !0),
105
- O(a.$slots, "default"),
106
- e.type !== "short" ? (r(), T(J, {
107
- key: 2,
108
- chips: e.event.tags
109
- }, null, 8, ["chips"])) : c("", !0)
110
- ], 2)
111
- ], 2));
112
- }
113
- }, se = {}, ie = {
114
- width: "100%",
115
- height: "20rem",
116
- xmlns: "http://www.w3.org/2000/svg"
117
- }, le = /* @__PURE__ */ F('<rect x="0" y="0" rx="5" ry="5" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="4" ry="4" width="40%" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="45" rx="5" ry="5" width="70%" height="50" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="110" rx="3" ry="3" width="90%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="130" rx="3" ry="3" width="70%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" mask="url(#myMask)" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>', 6), ce = [
118
- le
119
- ];
120
- function ue(e, t) {
121
- return r(), s("svg", ie, ce);
122
- }
123
- const oe = /* @__PURE__ */ H(se, [["render", ue]]), $ = A.create({ baseURL: process.env.API_URL, withCredentials: !0 }), m = I({
124
- all: [],
125
- filter: {
126
- // query
127
- tags: [],
128
- period: "",
129
- date: null
130
- // pagination
131
- },
132
- pagination: {
133
- page: 1,
134
- perPage: 18
135
- },
136
- // Sort
137
- sort: {
138
- current: "popularity",
139
- ascending: !1
140
- },
141
- current: {
142
- _id: "",
143
- url: "",
144
- status: "",
145
- name: "",
146
- tags: [],
147
- owner: {},
148
- date: "",
149
- views: 0,
150
- content: []
151
- }
152
- });
153
- async function z(e = {}) {
154
- e.params = e.params || {}, e.params.skip = e.skip || 0, e.params.limit = e.limit || 9, e.params.tags = e.tags || [], e.status && (e.params = { status: e.status }), e.url && (e.params = { url: e.url }), e.period && (e.params.period = e.period), e.category && (e.params.category = e.category), e.organization && (e.params.organization = e.organization), e.date && (e.params.date = e.date), e.participant && (e.params.participant = e.participant), e.owner && (e.params.owner = e.owner), e.user && (e.params.user = e.user), e.sortOrder && (e.params.sortOrder = e.sortOrder), e.sortParam && (e.params.sortParam = e.sortParam), e.params.skip = e.skip || 0, e.params.limit = e.limit || 10;
155
- try {
156
- console.log("Request params:" + e.params);
157
- const t = await $.get("/api/events/read", { params: e.params });
158
- return console.log(e.params), e.url ? w(t.data, "current") : w(t.data, "all"), Promise.resolve(t.data);
159
- } catch (t) {
160
- return S(t), Promise.reject(t);
161
- }
162
- }
163
- async function de(e) {
164
- return $.post("/api/events/create", e).then(
165
- (t) => (w(t.data, "current"), Promise.resolve(t.data)),
166
- (t) => (S(t), Promise.reject(t))
167
- );
168
- }
169
- async function me(e) {
170
- return $.post("/api/events/update", e).then(
171
- (t) => (w(t.data, "current"), Promise.resolve(t.data)),
172
- (t) => (S(t), Promise.reject(t))
173
- );
174
- }
175
- async function fe(e) {
176
- return await $.delete(`/api/events/delete/${e}`).then(
177
- (t) => {
178
- const i = m.all.findIndex((l) => l._id === e);
179
- return i !== -1 && m.all.splice(i, 1), Promise.resolve(t.data);
180
- },
181
- (t) => (S(t), Promise.reject(t))
182
- );
183
- }
184
- function w(e, t) {
185
- m[t] = e;
186
- }
187
- function ge() {
188
- m.current = {
189
- _id: "",
190
- url: "",
191
- status: "",
192
- name: "",
193
- tags: [],
194
- author: "",
195
- owner: "",
196
- date: "",
197
- views: 0,
198
- content: []
199
- };
200
- }
201
- function he(e) {
202
- const t = {
203
- order: m.project.content.length + 1,
204
- type: e.type,
205
- data: e.data,
206
- class: e.class,
207
- content: e.content
208
- };
209
- m.project.content.push(t);
210
- }
211
- j(m, (e, t) => {
212
- });
213
- const Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
214
- __proto__: null,
215
- blockAdd: he,
216
- clean: ge,
217
- create: de,
218
- read: z,
219
- remove: fe,
220
- set: w,
221
- state: m,
222
- update: me
223
- }, Symbol.toStringTag, { value: "Module" })), ve = { class: "feed" }, Te = {
224
- __name: "Feed",
225
- props: {
226
- category: {
227
- type: String,
228
- default: null
229
- },
230
- selectedDate: {
231
- type: String,
232
- default: null
233
- },
234
- organization: {
235
- type: String,
236
- default: null
237
- },
238
- owner: {
239
- type: String,
240
- default: null
241
- },
242
- user: {
243
- type: [String, Number],
244
- default: null
245
- },
246
- sortOrder: {
247
- type: String,
248
- default: "desc"
249
- },
250
- participant: {
251
- type: String,
252
- default: null
253
- },
254
- period: {
255
- type: String,
256
- default: null
257
- },
258
- status: {
259
- type: String,
260
- default: null
261
- }
262
- },
263
- setup(e) {
264
- const t = e, i = v([]), l = v(!1), u = v(!0), p = v(0), a = v(20), d = async () => {
265
- if (l.value) {
266
- p.value += a.value;
267
- const n = await z({
268
- skip: p.value,
269
- limit: a.value,
270
- category: t.category,
271
- sortOrder: t.sortOrder,
272
- participant: t.participant,
273
- user: t.user,
274
- date: t.selectedDate,
275
- owner: t.owner,
276
- organization: t.organization,
277
- period: t.period,
278
- status: t.status
279
- });
280
- n.length === 0 ? l.value = !1 : l.value = !0, i.value = [...i.value, ...n];
281
- }
282
- };
283
- return L(async () => {
284
- u.value = !0, console.log(t.selectedDate);
285
- const n = await z({
286
- skip: p.value,
287
- limit: a.value,
288
- category: t.category,
289
- participant: t.participant,
290
- sortOrder: t.sortOrder,
291
- user: t.user,
292
- owner: t.owner,
293
- date: t.selectedDate,
294
- organization: t.organization,
295
- period: t.period,
296
- status: t.status
297
- });
298
- n.length === 0 ? l.value = !1 : l.value = !0, i.value = n, u.value = !1;
299
- }), (n, U) => (r(), s("section", ve, [
300
- C(N, {
301
- tag: "ul",
302
- name: "fade",
303
- class: "o-hidden bg-grey radius-big"
304
- }, {
305
- default: D(() => [
306
- u.value ? (r(!0), s(P, { key: 0 }, M(a.value, (o) => (r(), T(oe, { key: o }))), 128)) : c("", !0)
307
- ]),
308
- _: 1
309
- }),
310
- C(R, { name: "fade" }, {
311
- default: D(() => [
312
- !u.value && i.value.length < 1 ? (r(), T(V, {
313
- key: 0,
314
- title: "No Events Found",
315
- description: "Currently, there are no events available. Please check back later.",
316
- class: "pd-medium mn-thin bg-grey radius-big"
317
- })) : c("", !0)
318
- ]),
319
- _: 1
320
- }),
321
- C(N, {
322
- tag: "ul",
323
- name: "fade",
324
- class: "container"
325
- }, {
326
- default: D(() => [
327
- !u.value && i.value.length > 0 ? (r(!0), s(P, { key: 0 }, M(i.value, (o, b) => (r(), T(ne, {
328
- onClick: (k) => n.$router.push({ name: "Event", params: { url: o.url } }),
329
- key: o._id,
330
- event: o,
331
- owner: e.user,
332
- type: "normal",
333
- class: y(["bg-grey radius-big mn-medium", {
334
- "br-b br-solid br-black-transp-10": b !== i.value.length - 1
335
- }])
336
- }, null, 8, ["onClick", "event", "owner", "class"]))), 128)) : c("", !0),
337
- l.value && i.value.length > 0 ? (r(), s("button", {
338
- key: 1,
339
- onClick: d,
340
- class: "w-100 bg-main button"
341
- }, "Load more")) : c("", !0)
342
- ]),
343
- _: 1
344
- })
345
- ]));
346
- }
347
- };
348
- export {
349
- oe as S,
350
- Te as _,
351
- ne as a,
352
- Ce as e,
353
- z as r,
354
- m as s
355
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),N=require("./EmptyState-7658d7d6.js"),b=require("./auth-78fd9408.js"),C=require("./CardHeader-dff9c71a.js"),$=require("vue-router"),u=require("./globals-d7a54bb4.js"),f=b.axios.create({baseURL:process.env.API_URL,withCredentials:!0});f.defaults.withCredentials=!0;const c=e.reactive({all:[],filter:{tags:[],period:""},pagination:{page:1,perPage:18},sort:{current:"popularity",ascending:!1},current:{_id:"",url:"",status:"",name:"",tags:[],owner:{},date:"",views:0,content:[]}});async function v(t={}){t.params=t.params||{},t.params.skip=t.skip||0,t.params.limit=t.limit||9,t.params.tags=t.tags||[],t.period&&(t.params.period=t.period),t.url&&(t.params={url:t.url}),t.category&&(t.params.category=t.category),t.organization&&(t.params.organization=t.organization),t.owner&&(t.params.owner=t.owner),t.user&&(t.params.user=t.user),t.params.skip=t.skip||0,t.params.limit=t.limit||10;try{console.log("Request params:"+t.params);const r=await f.get("/api/blog/read",{params:t.params});return t.url?g(r.data,"current"):g(r.data,"all"),Promise.resolve(r.data)}catch(r){return u.setError(r),Promise.reject(r)}}async function _(t){return f.post("/api/blog/create",t).then(r=>(g(r.data,"current"),Promise.resolve(r.data)),r=>(u.setError(r),Promise.reject(r)))}async function w(t){return f.post("/api/blog/update",t).then(r=>(g(r.data,"current"),Promise.resolve(r.data)),r=>(u.setError(r),Promise.reject(r)))}async function S(t){return await f.delete(`/api/blog/delete/${t}`).then(r=>{const o=c.all.findIndex(a=>a._id===t);return o!==-1&&c.all.splice(o,1),Promise.resolve(r.data)},r=>(u.setError(r),Promise.reject(r)))}function g(t,r){c[r]=t}function B(){c.current={_id:"",url:"",status:"",name:"",tags:[],author:"",owner:"",date:"",views:0,content:[]}}function V(t){const r={order:c.project.content.length+1,type:t.type,data:t.data,class:t.class,content:t.content};c.project.content.push(r)}e.watch(c,(t,r)=>{});const j=Object.freeze(Object.defineProperty({__proto__:null,blockAdd:V,clean:B,create:_,read:v,remove:S,set:g,state:c,update:w},Symbol.toStringTag,{value:"Module"})),R={props:{progress:{type:Number,default:null},status:{type:String,default:null}}},z={class:"circular-loader"},L=e.createElementVNode("svg",{viewBox:"25 25 50 50"},[e.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})],-1),T={key:0,class:"progress-text"},D={key:1,class:"uppercase t-semi w-m-10r status-text"};function I(t,r,o,a,s,l){return e.openBlock(),e.createElementBlock("div",z,[L,o.progress?(e.openBlock(),e.createElementBlock("div",T,e.toDisplayString(o.progress),1)):e.createCommentVNode("",!0),o.status?(e.openBlock(),e.createElementBlock("div",D,e.toDisplayString(o.status),1)):e.createCommentVNode("",!0)])}const P=b._export_sfc(R,[["render",I]]),y=b.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),d=e.reactive({reactions:[],error:null}),k={async read({user:t,type:r,target:o,role:a}){try{const s=await y.get("/api/reactions",{params:{user:t,type:r,target:o,role:a}});return d.error=null,d.reactions=s.data,Promise.resolve(s.data)}catch(s){return u.setError(s),Promise.reject(s)}},async create(t){try{const r=await y.post("/api/reactions/create",t);return d.error=null,Promise.resolve(r.data)}catch(r){return console.log(r),u.setError(r),Promise.reject(r)}},async update(t){try{const r=await y.post("/api/reactions/update",t);return d.error=null,Promise.resolve(r.data)}catch(r){return u.setError(r),Promise.reject(r)}},async delete(t){try{const r=await y.post("/api/reactions/delete",t);return d.error=null,Promise.resolve(r.data)}catch(r){return u.setError(r),Promise.reject(r)}}},O={handleReactionUpdate(t,r,o){let a;if(Array.isArray(t)?a=t.find(s=>s._id===r.target):typeof t=="object"&&t._id===r.target&&(a=t),a)if(a.hasReaction=o,o)a.reactions.push(r),a.numberOfReactions+=1;else{const s=a.reactions.findIndex(l=>l._id===r._id);s!==-1&&(a.reactions.splice(s,1),a.numberOfReactions-=1)}}};e.watch(d,t=>{});const q=Object.freeze(Object.defineProperty({__proto__:null,actions:k,mutations:O,state:d},Symbol.toStringTag,{value:"Module"})),A={class:"t-semi br-top-dark flex-nowrap flex-nojustify flex"},U=e.createElementVNode("span",{class:"mn-r-small mn-l-small d-block"},"·",-1),M={class:"cursor-pointer"},F=e.createElementVNode("span",{class:"mn-r-small mn-l-small d-block"},"·",-1),E={__name:"FooterBlogpost",props:["blogpost","owner","user"],setup(t){const r=t,o=e.ref(r.blogpost.numberOfReactions),a=e.ref(r.blogpost.isReacted),s=e.ref(r.blogpost.reactionId);async function l(m){if(!r.user){alert("Please login to add a reaction");return}try{const n={target:r.blogpost._id,type:"blogpost",user:r.user,class:"like"},p=await k.create(n);p.reaction.class==="like"&&(o.value+=1,a.value=!0,s.value=p.reaction._id)}catch(n){console.error(n),alert("Error adding reaction. Please try again later.")}}async function i(m){if(!r.user){alert("Please login to add a reaction");return}try{const n={_id:s.value};await k.delete(n),o.value-=1,a.value=!1,s.value=null}catch{alert("Error adding reaction. Please try again later.")}}return(m,n)=>(e.openBlock(),e.createElementBlock("footer",A,[e.createTextVNode(" 👁️ "+e.toDisplayString(t.blogpost.views)+" ",1),U,e.createElementVNode("div",M,[a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"cursor-pointer",onClick:n[0]||(n[0]=p=>l())}," 👍 "+e.toDisplayString(o.value),1)),a.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cursor-pointer",onClick:n[1]||(n[1]=p=>i())}," 👍 "+e.toDisplayString(o.value),1)):e.createCommentVNode("",!0)]),F,e.createTextVNode(" 💬 "+e.toDisplayString(t.blogpost.numberOfComments),1)]))}},H={class:"bg-grey radius-big"},G=["src"],J={class:"pd-t-zero pd-medium"},K={key:0,class:"mn-small t-transp p-big"},x={__name:"CardBlogpost",props:["blogpost","user","type"],setup(t){const r=t,o=$.useRouter(),a=e.computed(()=>r.blogpost.content.find(l=>l.type.name==="ImageUpload")),s=e.computed(()=>r.blogpost.content.find(l=>l.type.name==="Textarea"));return(l,i)=>(e.openBlock(),e.createElementBlock("article",H,[e.createVNode(C._sfc_main,{class:e.normalizeClass({"mn-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),owner:t.blogpost.owner,creator:t.blogpost.creator,date:t.blogpost.createdAt},null,8,["class","owner","creator","date"]),e.unref(a)&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:0,src:e.unref(a).content,alt:"Blog post image",class:"mn-medium object-fit-cover w-100 h-20r"},null,8,G)):e.createCommentVNode("",!0),e.createElementVNode("section",J,[e.createElementVNode("h3",{onClick:i[0]||(i[0]=m=>e.unref(o).push({name:"BlogPost",params:{url:t.blogpost.url}})),class:"cursor-pointer mn-thin"},e.toDisplayString(t.blogpost.name),1),e.unref(s)&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("p",K,e.toDisplayString(e.unref(s).content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default")]),e.createVNode(E,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])]))}},Q={class:"feed"},W={key:1},X={__name:"Feed",props:{category:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},period:{type:String,default:null}},setup(t){const r=t,o=e.ref([]),a=e.ref(!0);let s=e.ref(!0),l=e.ref(0),i=e.ref(2);const m=async()=>{if(a.value){l.value+=i.value;const n=await v({skip:l.value,limit:i.value,category:r.category,user:r.user,owner:r.owner,period:r.period});n.length===0&&(a.value=!1),o.value=[...o.value,...n]}};return e.onMounted(async()=>{const n=await v({skip:l.value,limit:i.value,category:r.category,user:r.user,owner:r.owner,period:r.period});n.length===0?a.value=!1:a.value=!0,o.value=n,s.value=!1}),(n,p)=>(e.openBlock(),e.createElementBlock("section",Q,[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.unref(s)?(e.openBlock(),e.createBlock(P,{key:0,class:"z-index-5 pos-t-50 left-t-50 pos-absolute"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!e.unref(s)&&o.value.length<1?(e.openBlock(),e.createBlock(N._sfc_main,{key:0,title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):(e.openBlock(),e.createElementBlock("div",W,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,h=>(e.openBlock(),e.createBlock(x,{key:h._id,blogpost:h,user:t.user,class:"mn-medium"},null,8,["blogpost","user"]))),128)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[a.value&&o.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:m,class:"w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:1})]))]),_:1})]))}};exports.Loader=P;exports._sfc_main=X;exports._sfc_main$1=x;exports._sfc_main$2=E;exports.blogposts=j;exports.clean=B;exports.create=_;exports.reactions=q;exports.read=v;exports.state=c;exports.update=w;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),E=require("./EmptyState-7658d7d6.js"),B=require("./CardHeader-dff9c71a.js"),b=require("./auth-78fd9408.js"),S=require("vue-router"),y=require("./globals-d7a54bb4.js"),T={key:0,class:"o-hidden bg-grey mn-small w-100"},N=["src"],D=["src"],U={class:"w-max mn-r-thin pd-thin radius-small t-semi bg-main"},V={key:0,class:"t-semi"},$={class:"t-semi"},z={key:0,class:"t-semi uppercase"},P={key:0,class:"cursor-pointer mn-thin"},_={key:1,class:"mn-small p-big"},M={key:2,class:"flex-v-center flex-nowrap flex"},C={__name:"CardEvent",props:["event","user","short","type"],setup(t){const r=t;e.ref(new Date),S.useRouter(),e.computed(()=>r.event.content.find(a=>a.type.name==="ImageUpload")),e.computed(()=>r.event.content.find(a=>a.type.name==="Textarea"));const s=e.computed(()=>{const a=new Date,i=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds()),n=new Date(r.event.date.start),c=Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds())-i;if(c<0)return"Finished";if(c===0)return"Starting Now";{const g=Math.floor(c/1e3),h=Math.floor(g/60),k=Math.floor(h/60),w=Math.floor(k/24);return w>0?`${w} days until event`:k>0?`${k} hours until event`:h>0?`${h} minutes until event`:`${g} seconds until event`}}),l=e.computed(()=>{const a=new Date(r.event.date.start),i={day:"2-digit",month:"2-digit"};return a.toLocaleDateString(void 0,i)}),u=e.computed(()=>{const a=new Date(r.event.date.start),i=new Date(r.event.date.end),n=new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(a),m=new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(i);return`${n}-${m}`}),d=e.computed(()=>{const a=r.event.name;return a.length>26?`${a.substring(0,22)}…`:a});return(a,i)=>(e.openBlock(),e.createElementBlock("article",{class:e.normalizeClass({"flex-nowrap flex-v-center flex":t.type==="short"})},[e.createVNode(B._sfc_main,{class:e.normalizeClass({"mn-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),owner:t.event.owner,creator:t.event.creator,members:t.event.numberOfTickets,membersPhotos:t.event.participantsPhotos,type:t.type,dateFormatted:e.unref(s)},null,8,["class","owner","creator","members","membersPhotos","type","dateFormatted"]),t.event.cover&&t.type!=="short"?(e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("img",{src:t.event.cover,alt:"Event image",class:"z-index-1 d-block mn-auto h-20r"},null,8,N),e.createElementVNode("img",{src:t.event.cover,alt:"Event image",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,D)])):e.createCommentVNode("",!0),e.createElementVNode("section",{class:e.normalizeClass(["w-100",{"pd-t-zero pd-medium":t.type!=="short"}])},[e.createElementVNode("div",{class:e.normalizeClass([{"mn-small":t.type!=="short"},"flex-v-center flex-nowrap flex"])},[e.createElementVNode("div",U,[t.type!=="short"?(e.openBlock(),e.createElementBlock("span",V,e.toDisplayString(e.unref(l))+" | ",1)):e.createCommentVNode("",!0),e.createElementVNode("span",$,e.toDisplayString(e.unref(u)),1)]),t.type==="short"?(e.openBlock(),e.createElementBlock("span",z,e.toDisplayString(e.unref(d)),1)):e.createCommentVNode("",!0)],2),t.type!=="short"?(e.openBlock(),e.createElementBlock("h3",P,e.toDisplayString(t.event.name),1)):e.createCommentVNode("",!0),t.type!=="short"?(e.openBlock(),e.createElementBlock("p",_,e.toDisplayString(t.event.description),1)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default"),t.type!=="short"?(e.openBlock(),e.createElementBlock("div",M,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.event.tags,(n,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-white",{"mn-r-thin":m!==t.event.tags.length-1}])},e.toDisplayString(n),3))),256))])):e.createCommentVNode("",!0)],2)],2))}},F={},O={width:"100%",height:"20rem",xmlns:"http://www.w3.org/2000/svg"},I=e.createStaticVNode('<rect x="0" y="0" rx="5" ry="5" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="4" ry="4" width="40%" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="45" rx="5" ry="5" width="70%" height="50" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="110" rx="3" ry="3" width="90%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="130" rx="3" ry="3" width="70%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" mask="url(#myMask)" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>',6),L=[I];function j(t,r){return e.openBlock(),e.createElementBlock("svg",O,L)}const x=b._export_sfc(F,[["render",j]]),p=b.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),o=e.reactive({all:[],filter:{tags:[],period:"",date:null},pagination:{page:1,perPage:18},sort:{current:"popularity",ascending:!1},current:{_id:"",url:"",status:"",name:"",tags:[],owner:{},date:"",views:0,content:[]}});async function v(t={}){t.params=t.params||{},t.params.skip=t.skip||0,t.params.limit=t.limit||9,t.params.tags=t.tags||[],t.status&&(t.params={status:t.status}),t.url&&(t.params={url:t.url}),t.period&&(t.params.period=t.period),t.category&&(t.params.category=t.category),t.organization&&(t.params.organization=t.organization),t.date&&(t.params.date=t.date),t.participant&&(t.params.participant=t.participant),t.owner&&(t.params.owner=t.owner),t.user&&(t.params.user=t.user),t.sortOrder&&(t.params.sortOrder=t.sortOrder),t.sortParam&&(t.params.sortParam=t.sortParam),t.params.skip=t.skip||0,t.params.limit=t.limit||10;try{console.log("Request params:"+t.params);const r=await p.get("/api/events/read",{params:t.params});return console.log(t.params),t.url?f(r.data,"current"):f(r.data,"all"),Promise.resolve(r.data)}catch(r){return y.setError(r),Promise.reject(r)}}async function q(t){return p.post("/api/events/create",t).then(r=>(f(r.data,"current"),Promise.resolve(r.data)),r=>(y.setError(r),Promise.reject(r)))}async function R(t){return p.post("/api/events/update",t).then(r=>(f(r.data,"current"),Promise.resolve(r.data)),r=>(y.setError(r),Promise.reject(r)))}async function H(t){return await p.delete(`/api/events/delete/${t}`).then(r=>{const s=o.all.findIndex(l=>l._id===t);return s!==-1&&o.all.splice(s,1),Promise.resolve(r.data)},r=>(y.setError(r),Promise.reject(r)))}function f(t,r){o[r]=t}function A(){o.current={_id:"",url:"",status:"",name:"",tags:[],author:"",owner:"",date:"",views:0,content:[]}}function G(t){const r={order:o.project.content.length+1,type:t.type,data:t.data,class:t.class,content:t.content};o.project.content.push(r)}e.watch(o,(t,r)=>{});const Y=Object.freeze(Object.defineProperty({__proto__:null,blockAdd:G,clean:A,create:q,read:v,remove:H,set:f,state:o,update:R},Symbol.toStringTag,{value:"Module"})),J={class:"feed"},K={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},participant:{type:String,default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(t){const r=t,s=e.ref([]),l=e.ref(!1),u=e.ref(!0),d=e.ref(0),a=e.ref(20),i=async()=>{if(l.value){d.value+=a.value;const n=await v({skip:d.value,limit:a.value,category:r.category,sortOrder:r.sortOrder,participant:r.participant,user:r.user,date:r.selectedDate,owner:r.owner,organization:r.organization,period:r.period,status:r.status});n.length===0?l.value=!1:l.value=!0,s.value=[...s.value,...n]}};return e.onMounted(async()=>{u.value=!0,console.log(r.selectedDate);const n=await v({skip:d.value,limit:a.value,category:r.category,participant:r.participant,sortOrder:r.sortOrder,user:r.user,owner:r.owner,date:r.selectedDate,organization:r.organization,period:r.period,status:r.status});n.length===0?l.value=!1:l.value=!0,s.value=n,u.value=!1}),(n,m)=>(e.openBlock(),e.createElementBlock("section",J,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[u.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.value,c=>(e.openBlock(),e.createBlock(x,{key:c}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!u.value&&s.value.length<1?(e.openBlock(),e.createBlock(E._sfc_main,{key:0,title:"No Events 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(()=>[!u.value&&s.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.value,(c,g)=>(e.openBlock(),e.createBlock(C,{onClick:h=>n.$router.push({name:"Event",params:{url:c.url}}),key:c._id,event:c,owner:t.user,type:"normal",class:e.normalizeClass(["bg-grey radius-big mn-medium",{"br-b br-solid br-black-transp-10":g!==s.value.length-1}])},null,8,["onClick","event","owner","class"]))),128)):e.createCommentVNode("",!0),l.value&&s.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:i,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}};exports.SkeletonEvent=x;exports._sfc_main=K;exports._sfc_main$1=C;exports.events=Y;exports.read=v;exports.state=o;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),B=require("./EmptyState-23c13029.js"),E=require("./CardHeader-ddf82318.js"),C=require("./auth-7dff19e4.js"),S=require("vue-router"),y=require("./globals-d7a54bb4.js"),T={key:0,class:"bg-grey mn-small w-100"},N=["src"],D={class:"w-max mn-r-thin pd-thin radius-small t-semi bg-main"},U={key:0,class:"t-semi"},V={class:"t-semi"},$={key:0,class:"t-semi uppercase"},P={key:0,class:"cursor-pointer mn-thin"},_={key:1,class:"mn-small p-big"},z={key:2,class:"flex-v-center flex-nowrap flex"},b={__name:"CardEvent",props:["event","user","short","type"],setup(t){const r=t;e.ref(new Date),S.useRouter(),e.computed(()=>r.event.content.find(a=>a.type.name==="ImageUpload")),e.computed(()=>r.event.content.find(a=>a.type.name==="Textarea"));const s=e.computed(()=>{const a=new Date,i=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds()),n=new Date(r.event.date.start),c=Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds())-i;if(c<0)return"Finished";if(c===0)return"Starting Now";{const g=Math.floor(c/1e3),h=Math.floor(g/60),k=Math.floor(h/60),w=Math.floor(k/24);return w>0?`${w} days until event`:k>0?`${k} hours until event`:h>0?`${h} minutes until event`:`${g} seconds until event`}}),l=e.computed(()=>{const a=new Date(r.event.date.start),i={day:"2-digit",month:"2-digit"};return a.toLocaleDateString(void 0,i)}),u=e.computed(()=>{const a=new Date(r.event.date.start),i=new Date(r.event.date.end),n=new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(a),m=new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(i);return`${n}-${m}`}),d=e.computed(()=>{const a=r.event.name;return a.length>26?`${a.substring(0,22)}…`:a});return(a,i)=>(e.openBlock(),e.createElementBlock("article",{class:e.normalizeClass({"flex-nowrap flex-v-center flex":t.type==="short"})},[e.createVNode(E._sfc_main,{class:e.normalizeClass({"mn-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),owner:t.event.owner,creator:t.event.creator,members:t.event.numberOfTickets,membersPhotos:t.event.participantsPhotos,type:t.type,dateFormatted:e.unref(s)},null,8,["class","owner","creator","members","membersPhotos","type","dateFormatted"]),t.event.cover&&t.type!=="short"?(e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("img",{src:t.event.cover,alt:"Event image",class:"d-block mn-auto h-20r"},null,8,N)])):e.createCommentVNode("",!0),e.createElementVNode("section",{class:e.normalizeClass(["w-100",{"pd-t-zero pd-medium":t.type!=="short"}])},[e.createElementVNode("div",{class:e.normalizeClass([{"mn-small":t.type!=="short"},"flex-v-center flex-nowrap flex"])},[e.createElementVNode("div",D,[t.type!=="short"?(e.openBlock(),e.createElementBlock("span",U,e.toDisplayString(e.unref(l))+" | ",1)):e.createCommentVNode("",!0),e.createElementVNode("span",V,e.toDisplayString(e.unref(u)),1)]),t.type==="short"?(e.openBlock(),e.createElementBlock("span",$,e.toDisplayString(e.unref(d)),1)):e.createCommentVNode("",!0)],2),t.type!=="short"?(e.openBlock(),e.createElementBlock("h3",P,e.toDisplayString(t.event.name),1)):e.createCommentVNode("",!0),t.type!=="short"?(e.openBlock(),e.createElementBlock("p",_,e.toDisplayString(t.event.description),1)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default"),t.type!=="short"?(e.openBlock(),e.createElementBlock("div",z,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.event.tags,(n,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-grey",{"mn-r-thin":m!==t.event.tags.length-1}])},e.toDisplayString(n),3))),256))])):e.createCommentVNode("",!0)],2)],2))}},M={},F={width:"100%",height:"20rem",xmlns:"http://www.w3.org/2000/svg"},O=e.createStaticVNode('<rect x="0" y="0" rx="5" ry="5" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="4" ry="4" width="40%" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="45" rx="5" ry="5" width="70%" height="50" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="110" rx="3" ry="3" width="90%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="130" rx="3" ry="3" width="70%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" mask="url(#myMask)" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>',6),I=[O];function L(t,r){return e.openBlock(),e.createElementBlock("svg",F,I)}const x=C._export_sfc(M,[["render",L]]),p=C.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),o=e.reactive({all:[],filter:{tags:[],period:"",date:null},pagination:{page:1,perPage:18},sort:{current:"popularity",ascending:!1},current:{_id:"",url:"",status:"",name:"",tags:[],owner:{},date:"",views:0,content:[]}});async function v(t={}){t.params=t.params||{},t.params.skip=t.skip||0,t.params.limit=t.limit||9,t.params.tags=t.tags||[],t.status&&(t.params={status:t.status}),t.url&&(t.params={url:t.url}),t.period&&(t.params.period=t.period),t.category&&(t.params.category=t.category),t.organization&&(t.params.organization=t.organization),t.date&&(t.params.date=t.date),t.participant&&(t.params.participant=t.participant),t.owner&&(t.params.owner=t.owner),t.user&&(t.params.user=t.user),t.sortOrder&&(t.params.sortOrder=t.sortOrder),t.sortParam&&(t.params.sortParam=t.sortParam),t.params.skip=t.skip||0,t.params.limit=t.limit||10;try{console.log("Request params:"+t.params);const r=await p.get("/api/events/read",{params:t.params});return console.log(t.params),t.url?f(r.data,"current"):f(r.data,"all"),Promise.resolve(r.data)}catch(r){return y.setError(r),Promise.reject(r)}}async function j(t){return p.post("/api/events/create",t).then(r=>(f(r.data,"current"),Promise.resolve(r.data)),r=>(y.setError(r),Promise.reject(r)))}async function q(t){return p.post("/api/events/update",t).then(r=>(f(r.data,"current"),Promise.resolve(r.data)),r=>(y.setError(r),Promise.reject(r)))}async function R(t){return await p.delete(`/api/events/delete/${t}`).then(r=>{const s=o.all.findIndex(l=>l._id===t);return s!==-1&&o.all.splice(s,1),Promise.resolve(r.data)},r=>(y.setError(r),Promise.reject(r)))}function f(t,r){o[r]=t}function H(){o.current={_id:"",url:"",status:"",name:"",tags:[],author:"",owner:"",date:"",views:0,content:[]}}function A(t){const r={order:o.project.content.length+1,type:t.type,data:t.data,class:t.class,content:t.content};o.project.content.push(r)}e.watch(o,(t,r)=>{});const G=Object.freeze(Object.defineProperty({__proto__:null,blockAdd:A,clean:H,create:j,read:v,remove:R,set:f,state:o,update:q},Symbol.toStringTag,{value:"Module"})),Y={class:"feed"},J={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},participant:{type:String,default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(t){const r=t,s=e.ref([]),l=e.ref(!1),u=e.ref(!0),d=e.ref(0),a=e.ref(20),i=async()=>{if(l.value){d.value+=a.value;const n=await v({skip:d.value,limit:a.value,category:r.category,sortOrder:r.sortOrder,participant:r.participant,user:r.user,date:r.selectedDate,owner:r.owner,organization:r.organization,period:r.period,status:r.status});n.length===0?l.value=!1:l.value=!0,s.value=[...s.value,...n]}};return e.onMounted(async()=>{u.value=!0,console.log(r.selectedDate);const n=await v({skip:d.value,limit:a.value,category:r.category,participant:r.participant,sortOrder:r.sortOrder,user:r.user,owner:r.owner,date:r.selectedDate,organization:r.organization,period:r.period,status:r.status});n.length===0?l.value=!1:l.value=!0,s.value=n,u.value=!1}),(n,m)=>(e.openBlock(),e.createElementBlock("section",Y,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[u.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.value,c=>(e.openBlock(),e.createBlock(x,{key:c}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!u.value&&s.value.length<1?(e.openBlock(),e.createBlock(B._sfc_main,{key:0,title:"No Events 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(()=>[!u.value&&s.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.value,(c,g)=>(e.openBlock(),e.createBlock(b,{onClick:h=>n.$router.push({name:"Event",params:{url:c.url}}),key:c._id,event:c,owner:t.user,type:"normal",class:e.normalizeClass(["br-solid br-1px br-grey radius-big mn-medium",{"br-b br-solid br-black-transp-10":g!==s.value.length-1}])},null,8,["onClick","event","owner","class"]))),128)):e.createCommentVNode("",!0),l.value&&s.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:i,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}};exports.SkeletonEvent=x;exports._sfc_main=J;exports._sfc_main$1=b;exports.events=G;exports.read=v;exports.state=o;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),N=require("./EmptyState-23c13029.js"),b=require("./auth-07c01b19.js"),C=require("./CardHeader-377cfc4b.js"),$=require("vue-router"),u=require("./globals-d7a54bb4.js"),f=b.axios.create({baseURL:process.env.API_URL,withCredentials:!0});f.defaults.withCredentials=!0;const c=e.reactive({all:[],filter:{tags:[],period:""},pagination:{page:1,perPage:18},sort:{current:"popularity",ascending:!1},current:{_id:"",url:"",status:"",name:"",tags:[],owner:{},date:"",views:0,content:[]}});async function v(t={}){t.params=t.params||{},t.params.skip=t.skip||0,t.params.limit=t.limit||9,t.params.tags=t.tags||[],t.period&&(t.params.period=t.period),t.url&&(t.params={url:t.url}),t.category&&(t.params.category=t.category),t.organization&&(t.params.organization=t.organization),t.owner&&(t.params.owner=t.owner),t.user&&(t.params.user=t.user),t.params.skip=t.skip||0,t.params.limit=t.limit||10;try{console.log("Request params:"+t.params);const r=await f.get("/api/blog/read",{params:t.params});return t.url?g(r.data,"current"):g(r.data,"all"),Promise.resolve(r.data)}catch(r){return u.setError(r),Promise.reject(r)}}async function _(t){return f.post("/api/blog/create",t).then(r=>(g(r.data,"current"),Promise.resolve(r.data)),r=>(u.setError(r),Promise.reject(r)))}async function w(t){return f.post("/api/blog/update",t).then(r=>(g(r.data,"current"),Promise.resolve(r.data)),r=>(u.setError(r),Promise.reject(r)))}async function S(t){return await f.delete(`/api/blog/delete/${t}`).then(r=>{const o=c.all.findIndex(a=>a._id===t);return o!==-1&&c.all.splice(o,1),Promise.resolve(r.data)},r=>(u.setError(r),Promise.reject(r)))}function g(t,r){c[r]=t}function B(){c.current={_id:"",url:"",status:"",name:"",tags:[],author:"",owner:"",date:"",views:0,content:[]}}function V(t){const r={order:c.project.content.length+1,type:t.type,data:t.data,class:t.class,content:t.content};c.project.content.push(r)}e.watch(c,(t,r)=>{});const j=Object.freeze(Object.defineProperty({__proto__:null,blockAdd:V,clean:B,create:_,read:v,remove:S,set:g,state:c,update:w},Symbol.toStringTag,{value:"Module"})),R={props:{progress:{type:Number,default:null},status:{type:String,default:null}}},z={class:"circular-loader"},L=e.createElementVNode("svg",{viewBox:"25 25 50 50"},[e.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})],-1),T={key:0,class:"progress-text"},D={key:1,class:"uppercase t-semi w-m-10r status-text"};function I(t,r,o,a,s,l){return e.openBlock(),e.createElementBlock("div",z,[L,o.progress?(e.openBlock(),e.createElementBlock("div",T,e.toDisplayString(o.progress),1)):e.createCommentVNode("",!0),o.status?(e.openBlock(),e.createElementBlock("div",D,e.toDisplayString(o.status),1)):e.createCommentVNode("",!0)])}const P=b._export_sfc(R,[["render",I]]),y=b.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),d=e.reactive({reactions:[],error:null}),k={async read({user:t,type:r,target:o,role:a}){try{const s=await y.get("/api/reactions",{params:{user:t,type:r,target:o,role:a}});return d.error=null,d.reactions=s.data,Promise.resolve(s.data)}catch(s){return u.setError(s),Promise.reject(s)}},async create(t){try{const r=await y.post("/api/reactions/create",t);return d.error=null,Promise.resolve(r.data)}catch(r){return console.log(r),u.setError(r),Promise.reject(r)}},async update(t){try{const r=await y.post("/api/reactions/update",t);return d.error=null,Promise.resolve(r.data)}catch(r){return u.setError(r),Promise.reject(r)}},async delete(t){try{const r=await y.post("/api/reactions/delete",t);return d.error=null,Promise.resolve(r.data)}catch(r){return u.setError(r),Promise.reject(r)}}},O={handleReactionUpdate(t,r,o){let a;if(Array.isArray(t)?a=t.find(s=>s._id===r.target):typeof t=="object"&&t._id===r.target&&(a=t),a)if(a.hasReaction=o,o)a.reactions.push(r),a.numberOfReactions+=1;else{const s=a.reactions.findIndex(l=>l._id===r._id);s!==-1&&(a.reactions.splice(s,1),a.numberOfReactions-=1)}}};e.watch(d,t=>{});const q=Object.freeze(Object.defineProperty({__proto__:null,actions:k,mutations:O,state:d},Symbol.toStringTag,{value:"Module"})),A={class:"t-semi br-top-dark flex-nowrap flex-nojustify flex"},U=e.createElementVNode("span",{class:"mn-r-small mn-l-small d-block"},"·",-1),M={class:"cursor-pointer"},F=e.createElementVNode("span",{class:"mn-r-small mn-l-small d-block"},"·",-1),E={__name:"FooterBlogpost",props:["blogpost","owner","user"],setup(t){const r=t,o=e.ref(r.blogpost.numberOfReactions),a=e.ref(r.blogpost.isReacted),s=e.ref(r.blogpost.reactionId);async function l(m){if(!r.user){alert("Please login to add a reaction");return}try{const n={target:r.blogpost._id,type:"blogpost",user:r.user,class:"like"},p=await k.create(n);p.reaction.class==="like"&&(o.value+=1,a.value=!0,s.value=p.reaction._id)}catch(n){console.error(n),alert("Error adding reaction. Please try again later.")}}async function i(m){if(!r.user){alert("Please login to add a reaction");return}try{const n={_id:s.value};await k.delete(n),o.value-=1,a.value=!1,s.value=null}catch{alert("Error adding reaction. Please try again later.")}}return(m,n)=>(e.openBlock(),e.createElementBlock("footer",A,[e.createTextVNode(" 👁️ "+e.toDisplayString(t.blogpost.views)+" ",1),U,e.createElementVNode("div",M,[a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"cursor-pointer",onClick:n[0]||(n[0]=p=>l())}," 👍 "+e.toDisplayString(o.value),1)),a.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cursor-pointer",onClick:n[1]||(n[1]=p=>i())}," 👍 "+e.toDisplayString(o.value),1)):e.createCommentVNode("",!0)]),F,e.createTextVNode(" 💬 "+e.toDisplayString(t.blogpost.numberOfComments),1)]))}},H={class:"bg-grey radius-big"},G=["src"],J={class:"pd-t-zero pd-medium"},K={key:0,class:"mn-small t-transp p-big"},x={__name:"CardBlogpost",props:["blogpost","user","type"],setup(t){const r=t,o=$.useRouter(),a=e.computed(()=>r.blogpost.content.find(l=>l.type.name==="ImageUpload")),s=e.computed(()=>r.blogpost.content.find(l=>l.type.name==="Textarea"));return(l,i)=>(e.openBlock(),e.createElementBlock("article",H,[e.createVNode(C._sfc_main,{class:e.normalizeClass({"mn-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),owner:t.blogpost.owner,creator:t.blogpost.creator,date:t.blogpost.createdAt},null,8,["class","owner","creator","date"]),e.unref(a)&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:0,src:e.unref(a).content,alt:"Blog post image",class:"mn-medium object-fit-cover w-100 h-20r"},null,8,G)):e.createCommentVNode("",!0),e.createElementVNode("section",J,[e.createElementVNode("h3",{onClick:i[0]||(i[0]=m=>e.unref(o).push({name:"BlogPost",params:{url:t.blogpost.url}})),class:"cursor-pointer mn-thin"},e.toDisplayString(t.blogpost.name),1),e.unref(s)&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("p",K,e.toDisplayString(e.unref(s).content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default")]),e.createVNode(E,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])]))}},Q={class:"feed"},W={key:1},X={__name:"Feed",props:{category:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},period:{type:String,default:null}},setup(t){const r=t,o=e.ref([]),a=e.ref(!0);let s=e.ref(!0),l=e.ref(0),i=e.ref(2);const m=async()=>{if(a.value){l.value+=i.value;const n=await v({skip:l.value,limit:i.value,category:r.category,user:r.user,owner:r.owner,period:r.period});n.length===0&&(a.value=!1),o.value=[...o.value,...n]}};return e.onMounted(async()=>{const n=await v({skip:l.value,limit:i.value,category:r.category,user:r.user,owner:r.owner,period:r.period});n.length===0?a.value=!1:a.value=!0,o.value=n,s.value=!1}),(n,p)=>(e.openBlock(),e.createElementBlock("section",Q,[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.unref(s)?(e.openBlock(),e.createBlock(P,{key:0,class:"z-index-5 pos-t-50 left-t-50 pos-absolute"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!e.unref(s)&&o.value.length<1?(e.openBlock(),e.createBlock(N._sfc_main,{key:0,title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):(e.openBlock(),e.createElementBlock("div",W,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,h=>(e.openBlock(),e.createBlock(x,{key:h._id,blogpost:h,user:t.user,class:"mn-medium"},null,8,["blogpost","user"]))),128)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[a.value&&o.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:m,class:"w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:1})]))]),_:1})]))}};exports.Loader=P;exports._sfc_main=X;exports._sfc_main$1=x;exports._sfc_main$2=E;exports.blogposts=j;exports.clean=B;exports.create=_;exports.reactions=q;exports.read=v;exports.state=c;exports.update=w;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),B=require("./EmptyState-23c13029.js"),E=require("./CardHeader-e15eb618.js"),C=require("./auth-ab40831d.js"),S=require("vue-router"),y=require("./globals-d7a54bb4.js"),T={key:0,class:"bg-grey mn-small w-100"},N=["src"],D={class:"w-max mn-r-thin pd-thin radius-small t-semi bg-main"},U={key:0,class:"t-semi"},V={class:"t-semi"},$={key:0,class:"t-semi uppercase"},P={key:0,class:"cursor-pointer mn-thin"},_={key:1,class:"mn-small p-big"},z={key:2,class:"flex-v-center flex-nowrap flex"},b={__name:"CardEvent",props:["event","user","short","type"],setup(t){const r=t;e.ref(new Date),S.useRouter(),e.computed(()=>r.event.content.find(a=>a.type.name==="ImageUpload")),e.computed(()=>r.event.content.find(a=>a.type.name==="Textarea"));const s=e.computed(()=>{const a=new Date,i=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds()),n=new Date(r.event.date.start),c=Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds())-i;if(c<0)return"Finished";if(c===0)return"Starting Now";{const g=Math.floor(c/1e3),h=Math.floor(g/60),k=Math.floor(h/60),w=Math.floor(k/24);return w>0?`${w} days until event`:k>0?`${k} hours until event`:h>0?`${h} minutes until event`:`${g} seconds until event`}}),l=e.computed(()=>{const a=new Date(r.event.date.start),i={day:"2-digit",month:"2-digit"};return a.toLocaleDateString(void 0,i)}),u=e.computed(()=>{const a=new Date(r.event.date.start),i=new Date(r.event.date.end),n=new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(a),m=new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(i);return`${n}-${m}`}),d=e.computed(()=>{const a=r.event.name;return a.length>26?`${a.substring(0,22)}…`:a});return(a,i)=>(e.openBlock(),e.createElementBlock("article",{class:e.normalizeClass({"flex-nowrap flex-v-center flex":t.type==="short"})},[e.createVNode(E._sfc_main,{class:e.normalizeClass({"mn-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),owner:t.event.owner,creator:t.event.creator,members:t.event.numberOfTickets,membersPhotos:t.event.participantsPhotos,type:t.type,dateFormatted:e.unref(s)},null,8,["class","owner","creator","members","membersPhotos","type","dateFormatted"]),t.event.cover&&t.type!=="short"?(e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("img",{src:t.event.cover,alt:"Event image",class:"d-block mn-auto h-20r"},null,8,N)])):e.createCommentVNode("",!0),e.createElementVNode("section",{class:e.normalizeClass(["w-100",{"pd-t-zero pd-medium":t.type!=="short"}])},[e.createElementVNode("div",{class:e.normalizeClass([{"mn-small":t.type!=="short"},"flex-v-center flex-nowrap flex"])},[e.createElementVNode("div",D,[t.type!=="short"?(e.openBlock(),e.createElementBlock("span",U,e.toDisplayString(e.unref(l))+" | ",1)):e.createCommentVNode("",!0),e.createElementVNode("span",V,e.toDisplayString(e.unref(u)),1)]),t.type==="short"?(e.openBlock(),e.createElementBlock("span",$,e.toDisplayString(e.unref(d)),1)):e.createCommentVNode("",!0)],2),t.type!=="short"?(e.openBlock(),e.createElementBlock("h3",P,e.toDisplayString(t.event.name),1)):e.createCommentVNode("",!0),t.type!=="short"?(e.openBlock(),e.createElementBlock("p",_,e.toDisplayString(t.event.description),1)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default"),t.type!=="short"?(e.openBlock(),e.createElementBlock("div",z,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.event.tags,(n,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-grey",{"mn-r-thin":m!==t.event.tags.length-1}])},e.toDisplayString(n),3))),256))])):e.createCommentVNode("",!0)],2)],2))}},M={},F={width:"100%",height:"20rem",xmlns:"http://www.w3.org/2000/svg"},O=e.createStaticVNode('<rect x="0" y="0" rx="5" ry="5" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="4" ry="4" width="40%" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="45" rx="5" ry="5" width="70%" height="50" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="110" rx="3" ry="3" width="90%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="130" rx="3" ry="3" width="70%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" mask="url(#myMask)" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>',6),I=[O];function L(t,r){return e.openBlock(),e.createElementBlock("svg",F,I)}const x=C._export_sfc(M,[["render",L]]),p=C.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),o=e.reactive({all:[],filter:{tags:[],period:"",date:null},pagination:{page:1,perPage:18},sort:{current:"popularity",ascending:!1},current:{_id:"",url:"",status:"",name:"",tags:[],owner:{},date:"",views:0,content:[]}});async function v(t={}){t.params=t.params||{},t.params.skip=t.skip||0,t.params.limit=t.limit||9,t.params.tags=t.tags||[],t.status&&(t.params={status:t.status}),t.url&&(t.params={url:t.url}),t.period&&(t.params.period=t.period),t.category&&(t.params.category=t.category),t.organization&&(t.params.organization=t.organization),t.date&&(t.params.date=t.date),t.participant&&(t.params.participant=t.participant),t.owner&&(t.params.owner=t.owner),t.user&&(t.params.user=t.user),t.sortOrder&&(t.params.sortOrder=t.sortOrder),t.sortParam&&(t.params.sortParam=t.sortParam),t.params.skip=t.skip||0,t.params.limit=t.limit||10;try{console.log("Request params:"+t.params);const r=await p.get("/api/events/read",{params:t.params});return console.log(t.params),t.url?f(r.data,"current"):f(r.data,"all"),Promise.resolve(r.data)}catch(r){return y.setError(r),Promise.reject(r)}}async function j(t){return p.post("/api/events/create",t).then(r=>(f(r.data,"current"),Promise.resolve(r.data)),r=>(y.setError(r),Promise.reject(r)))}async function q(t){return p.post("/api/events/update",t).then(r=>(f(r.data,"current"),Promise.resolve(r.data)),r=>(y.setError(r),Promise.reject(r)))}async function R(t){return await p.delete(`/api/events/delete/${t}`).then(r=>{const s=o.all.findIndex(l=>l._id===t);return s!==-1&&o.all.splice(s,1),Promise.resolve(r.data)},r=>(y.setError(r),Promise.reject(r)))}function f(t,r){o[r]=t}function H(){o.current={_id:"",url:"",status:"",name:"",tags:[],author:"",owner:"",date:"",views:0,content:[]}}function A(t){const r={order:o.project.content.length+1,type:t.type,data:t.data,class:t.class,content:t.content};o.project.content.push(r)}e.watch(o,(t,r)=>{});const G=Object.freeze(Object.defineProperty({__proto__:null,blockAdd:A,clean:H,create:j,read:v,remove:R,set:f,state:o,update:q},Symbol.toStringTag,{value:"Module"})),Y={class:"feed"},J={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},participant:{type:String,default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(t){const r=t,s=e.ref([]),l=e.ref(!1),u=e.ref(!0),d=e.ref(0),a=e.ref(20),i=async()=>{if(l.value){d.value+=a.value;const n=await v({skip:d.value,limit:a.value,category:r.category,sortOrder:r.sortOrder,participant:r.participant,user:r.user,date:r.selectedDate,owner:r.owner,organization:r.organization,period:r.period,status:r.status});n.length===0?l.value=!1:l.value=!0,s.value=[...s.value,...n]}};return e.onMounted(async()=>{u.value=!0,console.log(r.selectedDate);const n=await v({skip:d.value,limit:a.value,category:r.category,participant:r.participant,sortOrder:r.sortOrder,user:r.user,owner:r.owner,date:r.selectedDate,organization:r.organization,period:r.period,status:r.status});n.length===0?l.value=!1:l.value=!0,s.value=n,u.value=!1}),(n,m)=>(e.openBlock(),e.createElementBlock("section",Y,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[u.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.value,c=>(e.openBlock(),e.createBlock(x,{key:c}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!u.value&&s.value.length<1?(e.openBlock(),e.createBlock(B._sfc_main,{key:0,title:"No Events 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(()=>[!u.value&&s.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.value,(c,g)=>(e.openBlock(),e.createBlock(b,{onClick:h=>n.$router.push({name:"Event",params:{url:c.url}}),key:c._id,event:c,owner:t.user,type:"normal",class:e.normalizeClass(["br-solid br-1px br-grey radius-big mn-medium",{"br-b br-solid br-black-transp-10":g!==s.value.length-1}])},null,8,["onClick","event","owner","class"]))),128)):e.createCommentVNode("",!0),l.value&&s.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:i,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}};exports.SkeletonEvent=x;exports._sfc_main=J;exports._sfc_main$1=b;exports.events=G;exports.read=v;exports.state=o;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),P=require("./EmptyState-23c13029.js"),k=require("./auth-7dff19e4.js"),V=require("./CardHeader-ddf82318.js"),h=require("vue-router"),y=require("./globals-d7a54bb4.js"),p=k.axios.create({baseURL:process.env.API_URL,withCredentials:!0});p.defaults.withCredentials=!0;const u=e.reactive({all:[],filter:{tags:[],period:""},pagination:{page:1,perPage:18},sort:{current:"popularity",ascending:!1},current:{_id:"",url:"",status:"",name:"",tags:[],owner:{},date:"",views:0,content:[]}});async function f(t={}){t.params=t.params||{},t.params.skip=t.skip||0,t.params.limit=t.limit||9,t.params.tags=t.tags||[],t.period&&(t.params.period=t.period),t.url&&(t.params={url:t.url}),t.category&&(t.params.category=t.category),t.organization&&(t.params.organization=t.organization),t.owner&&(t.params.owner=t.owner),t.user&&(t.params.user=t.user),t.params.skip=t.skip||0,t.params.limit=t.limit||10;try{console.log("Request params:"+t.params);const r=await p.get("/api/blog/read",{params:t.params});return t.url?m(r.data,"current"):m(r.data,"all"),Promise.resolve(r.data)}catch(r){return y.setError(r),Promise.reject(r)}}async function _(t){return p.post("/api/blog/create",t).then(r=>(m(r.data,"current"),Promise.resolve(r.data)),r=>(y.setError(r),Promise.reject(r)))}async function B(t){return p.post("/api/blog/update",t).then(r=>(m(r.data,"current"),Promise.resolve(r.data)),r=>(y.setError(r),Promise.reject(r)))}async function $(t){return await p.delete(`/api/blog/delete/${t}`).then(r=>{const a=u.all.findIndex(o=>o._id===t);return a!==-1&&u.all.splice(a,1),Promise.resolve(r.data)},r=>(y.setError(r),Promise.reject(r)))}function m(t,r){u[r]=t}function w(){u.current={_id:"",url:"",status:"",name:"",tags:[],author:"",owner:"",date:"",views:0,content:[]}}function S(t){const r={order:u.project.content.length+1,type:t.type,data:t.data,class:t.class,content:t.content};u.project.content.push(r)}e.watch(u,(t,r)=>{});const R=Object.freeze(Object.defineProperty({__proto__:null,blockAdd:S,clean:w,create:_,read:f,remove:$,set:m,state:u,update:B},Symbol.toStringTag,{value:"Module"})),j={props:{progress:{type:Number,default:null},status:{type:String,default:null}}},z={class:"circular-loader"},D=e.createElementVNode("svg",{viewBox:"25 25 50 50"},[e.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})],-1),L={key:0,class:"progress-text"},T={key:1,class:"uppercase t-semi w-m-10r status-text"};function q(t,r,a,o,i,s){return e.openBlock(),e.createElementBlock("div",z,[D,a.progress?(e.openBlock(),e.createElementBlock("div",L,e.toDisplayString(a.progress),1)):e.createCommentVNode("",!0),a.status?(e.openBlock(),e.createElementBlock("div",T,e.toDisplayString(a.status),1)):e.createCommentVNode("",!0)])}const E=k._export_sfc(j,[["render",q]]),I={class:"t-semi br-top-dark flex-nowrap flex-nojustify flex"},U=e.createElementVNode("span",{class:"mn-r-small mn-l-small d-block"},"·",-1),O={class:"cursor-pointer"},F=e.createElementVNode("span",{class:"mn-r-small mn-l-small d-block"},"·",-1),x={__name:"FooterBlogpost",props:["blogpost","owner","user"],setup(t){const r=t;h.useRouter();const a=process.env.NODE_ENV==="production";var o="https://api.ozdao.dev",i="http://localhost:8081";const s=k.axios.create({baseURL:a?o:i}),l=e.ref(r.blogpost.numberOfReactions),d=e.ref(r.blogpost.isReacted),c=e.ref(r.blogpost.reactionId);async function v(b){if(!r.user){alert("Please login to add a reaction");return}try{const n=await s.post("/api/reactions/create",{target:r.blogpost._id,type:"blogpost",user:r.user,class:"like"});n.data.reaction.class==="like"&&(l.value+=1,d.value=!0,c.value=n.data.reaction._id)}catch(n){console.error(n),alert("Error adding reaction. Please try again later.")}}async function g(b){if(!r.user){alert("Please login to add a reaction");return}try{const n=await s.delete("/api/reactions/delete/"+c.value);l.value-=1,d.value=!1,c.value=null}catch{alert("Error adding reaction. Please try again later.")}}return(b,n)=>(e.openBlock(),e.createElementBlock("footer",I,[e.createTextVNode(" 👁️ "+e.toDisplayString(t.blogpost.views)+" ",1),U,e.createElementVNode("div",O,[d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"cursor-pointer",onClick:n[0]||(n[0]=C=>v())}," 👍 "+e.toDisplayString(l.value),1)),d.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cursor-pointer",onClick:n[1]||(n[1]=C=>g())}," 👍 "+e.toDisplayString(l.value),1)):e.createCommentVNode("",!0)]),F,e.createTextVNode(" 💬 "+e.toDisplayString(t.blogpost.numberOfComments),1)]))}},M={class:"br-solid br-1px br-grey radius-big"},A=["src"],H={class:"pd-t-zero pd-medium"},G={key:0,class:"mn-small t-transp p-big"},N={__name:"CardBlogpost",props:["blogpost","user","type"],setup(t){const r=t,a=h.useRouter(),o=e.computed(()=>r.blogpost.content.find(s=>s.type.name==="ImageUpload")),i=e.computed(()=>r.blogpost.content.find(s=>s.type.name==="Textarea"));return(s,l)=>(e.openBlock(),e.createElementBlock("article",M,[e.createVNode(V._sfc_main,{class:e.normalizeClass({"mn-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),owner:t.blogpost.owner,creator:t.blogpost.creator,date:t.blogpost.createdAt},null,8,["class","owner","creator","date"]),e.unref(o)&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:0,src:e.unref(o).content,alt:"Blog post image",class:"mn-medium object-fit-cover w-100 h-20r"},null,8,A)):e.createCommentVNode("",!0),e.createElementVNode("section",H,[e.createElementVNode("h3",{onClick:l[0]||(l[0]=d=>e.unref(a).push({name:"BlogPost",params:{url:t.blogpost.url}})),class:"cursor-pointer mn-thin"},e.toDisplayString(t.blogpost.name),1),e.unref(i)&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("p",G,e.toDisplayString(e.unref(i).content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default")]),e.createVNode(x,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])]))}},J={class:"feed"},K={key:1},Q={__name:"Feed",props:{category:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},period:{type:String,default:null}},setup(t){const r=t,a=e.ref([]),o=e.ref(!0);let i=e.ref(!0),s=e.ref(0),l=e.ref(2);const d=async()=>{if(o.value){s.value+=l.value;const c=await f({skip:s.value,limit:l.value,category:r.category,user:r.user,owner:r.owner,period:r.period});c.length===0&&(o.value=!1),a.value=[...a.value,...c]}};return e.onMounted(async()=>{const c=await f({skip:s.value,limit:l.value,category:r.category,user:r.user,owner:r.owner,period:r.period});c.length===0?o.value=!1:o.value=!0,a.value=c,i.value=!1}),(c,v)=>(e.openBlock(),e.createElementBlock("section",J,[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.unref(i)?(e.openBlock(),e.createBlock(E,{key:0,class:"z-index-5 pos-t-50 left-t-50 pos-absolute"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!e.unref(i)&&a.value.length<1?(e.openBlock(),e.createBlock(P._sfc_main,{key:0,title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):(e.openBlock(),e.createElementBlock("div",K,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,g=>(e.openBlock(),e.createBlock(N,{key:g._id,blogpost:g,user:t.user,class:"mn-medium"},null,8,["blogpost","user"]))),128)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[o.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d,class:"w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:1})]))]),_:1})]))}};exports.Loader=E;exports._sfc_main=Q;exports._sfc_main$1=N;exports._sfc_main$2=x;exports.blogposts=R;exports.clean=w;exports.create=_;exports.read=f;exports.state=u;exports.update=B;