@ozdao/prometheus-framework 0.2.33 → 0.2.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (296) hide show
  1. package/dist/events.server.js +32 -0
  2. package/dist/events.server.mjs +32 -0
  3. package/dist/files.server.js +99 -78
  4. package/dist/files.server.mjs +99 -78
  5. package/dist/globals.server.js +0 -1
  6. package/dist/globals.server.mjs +0 -1
  7. package/dist/main.css +1 -1
  8. package/dist/node_modules/@ozdao/prometheus-framework/dist/_virtual/_commonjsHelpers.cjs +1 -0
  9. package/dist/node_modules/@ozdao/prometheus-framework/dist/_virtual/_commonjsHelpers.js +6 -0
  10. package/dist/node_modules/@ozdao/prometheus-framework/dist/_virtual/_plugin-vue_export-helper.cjs +1 -0
  11. package/dist/node_modules/@ozdao/prometheus-framework/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  12. package/dist/node_modules/@ozdao/prometheus-framework/dist/_virtual/js.cookie.cjs +1 -0
  13. package/dist/node_modules/@ozdao/prometheus-framework/dist/_virtual/js.cookie.js +4 -0
  14. package/dist/node_modules/@ozdao/prometheus-framework/dist/node_modules/js-cookie/src/js.cookie.cjs +7 -0
  15. package/dist/node_modules/@ozdao/prometheus-framework/dist/node_modules/js-cookie/src/js.cookie.js +97 -0
  16. package/dist/node_modules/@ozdao/prometheus-framework/dist/node_modules/vue-select/dist/vue-select.es.cjs +1 -0
  17. package/dist/node_modules/@ozdao/prometheus-framework/dist/node_modules/vue-select/dist/vue-select.es.js +173 -0
  18. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -0
  19. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +337 -0
  20. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/@capacitor/preferences/dist/esm/index.cjs +1 -0
  21. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/@capacitor/preferences/dist/esm/index.js +7 -0
  22. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/@capacitor/preferences/dist/esm/web.cjs +1 -0
  23. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/@capacitor/preferences/dist/esm/web.js +54 -0
  24. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/adapters/adapters.cjs +3 -0
  25. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/adapters/adapters.js +51 -0
  26. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/adapters/xhr.cjs +1 -0
  27. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/adapters/xhr.js +109 -0
  28. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/axios.cjs +1 -0
  29. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/axios.js +47 -0
  30. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.cjs +1 -0
  31. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.js +73 -0
  32. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/cancel/CanceledError.cjs +1 -0
  33. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/cancel/CanceledError.js +11 -0
  34. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/cancel/isCancel.cjs +1 -0
  35. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/cancel/isCancel.js +6 -0
  36. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +1 -0
  37. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +117 -0
  38. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/AxiosError.cjs +1 -0
  39. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/AxiosError.js +54 -0
  40. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.cjs +2 -0
  41. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.js +165 -0
  42. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.cjs +1 -0
  43. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.js +59 -0
  44. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/buildFullPath.cjs +1 -0
  45. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/buildFullPath.js +8 -0
  46. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/dispatchRequest.cjs +1 -0
  47. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/dispatchRequest.js +31 -0
  48. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.cjs +1 -0
  49. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.js +72 -0
  50. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/settle.cjs +1 -0
  51. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/settle.js +14 -0
  52. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/transformData.cjs +1 -0
  53. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/transformData.js +13 -0
  54. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -0
  55. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +88 -0
  56. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/defaults/transitional.cjs +1 -0
  57. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/defaults/transitional.js +8 -0
  58. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/env/data.cjs +1 -0
  59. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/env/data.js +4 -0
  60. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/AxiosURLSearchParams.cjs +1 -0
  61. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
  62. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.cjs +1 -0
  63. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.js +72 -0
  64. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/bind.cjs +1 -0
  65. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/bind.js +8 -0
  66. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/buildURL.cjs +1 -0
  67. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/buildURL.js +19 -0
  68. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.cjs +1 -0
  69. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.js +6 -0
  70. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/cookies.cjs +1 -0
  71. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/cookies.js +32 -0
  72. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.cjs +1 -0
  73. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.js +30 -0
  74. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isAbsoluteURL.cjs +1 -0
  75. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
  76. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isAxiosError.cjs +1 -0
  77. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
  78. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.cjs +1 -0
  79. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +37 -0
  80. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/null.cjs +1 -0
  81. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/null.js +4 -0
  82. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/parseHeaders.cjs +2 -0
  83. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/parseHeaders.js +30 -0
  84. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/parseProtocol.cjs +1 -0
  85. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
  86. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/speedometer.cjs +1 -0
  87. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/speedometer.js +19 -0
  88. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/spread.cjs +1 -0
  89. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/spread.js +8 -0
  90. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.cjs +1 -0
  91. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.js +84 -0
  92. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/toURLEncodedForm.cjs +1 -0
  93. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
  94. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/validator.cjs +1 -0
  95. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/validator.js +51 -0
  96. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/Blob.cjs +1 -0
  97. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
  98. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/FormData.cjs +1 -0
  99. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
  100. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/URLSearchParams.cjs +1 -0
  101. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
  102. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/browser/index.cjs +1 -0
  103. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/browser/index.js +15 -0
  104. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -0
  105. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +7 -0
  106. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/index.cjs +1 -0
  107. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/index.js +9 -0
  108. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -0
  109. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.js +224 -0
  110. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -0
  111. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/auth/store/auth.js +44 -0
  112. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -0
  113. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/auth/store/twofa.js +19 -0
  114. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -0
  115. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/community/store/blogposts.js +38 -0
  116. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -0
  117. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/community/store/reactions.js +16 -0
  118. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -0
  119. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/events/store/events.js +42 -0
  120. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -0
  121. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +22 -0
  122. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -0
  123. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/globals/store/globals.js +59 -0
  124. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -0
  125. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.js +28 -0
  126. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/dribbble.vue.cjs +1 -0
  127. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/dribbble.vue.js +21 -0
  128. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/facebook.vue.cjs +1 -0
  129. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/facebook.vue.js +21 -0
  130. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.cjs +1 -0
  131. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.js +21 -0
  132. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/line.vue.cjs +1 -0
  133. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/line.vue.js +23 -0
  134. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.cjs +1 -0
  135. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.js +21 -0
  136. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.cjs +1 -0
  137. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.js +29 -0
  138. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.cjs +1 -0
  139. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.js +21 -0
  140. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs +1 -0
  141. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.js +3 -0
  142. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/middlewares/client/inputs.validation.cjs +1 -0
  143. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/middlewares/client/inputs.validation.js +35 -0
  144. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +1 -0
  145. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.js +60 -0
  146. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -0
  147. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +80 -0
  148. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -0
  149. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/departments.js +34 -0
  150. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -0
  151. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/invites.js +17 -0
  152. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -0
  153. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/memberships.js +16 -0
  154. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -0
  155. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/organizations.js +42 -0
  156. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -0
  157. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/products/store/categories.js +20 -0
  158. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -0
  159. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/products/store/products.js +28 -0
  160. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -0
  161. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/reports/store/reports.js +28 -0
  162. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -0
  163. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/spots/store/spots.js +34 -0
  164. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +2 -61
  166. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
  167. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +61 -2
  168. package/dist/prometheus-framework/src/components/Countdown/Countdown.vue.cjs +1 -0
  169. package/dist/prometheus-framework/src/components/Countdown/Countdown.vue.js +62 -0
  170. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +49 -2
  172. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  173. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +2 -49
  174. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +42 -34
  176. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -70
  178. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  179. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +70 -2
  180. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -93
  182. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  183. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +93 -2
  184. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +99 -2
  186. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
  187. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +2 -73
  188. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +30 -28
  190. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +25 -24
  192. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  194. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  195. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  196. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  197. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  198. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  199. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +1 -1
  200. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  201. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -65
  202. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  203. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +65 -2
  204. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
  205. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +1 -1
  206. package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.cjs +1 -1
  207. package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.js +1 -1
  208. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  209. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  210. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  211. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  212. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  213. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +381 -140
  214. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +4 -1
  215. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +122 -48
  216. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  217. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
  218. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +1 -0
  219. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +116 -0
  220. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +1 -0
  221. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +4 -0
  222. package/dist/prometheus-framework/src/modules/events/components/sections/SectionLineup.vue.cjs +1 -0
  223. package/dist/prometheus-framework/src/modules/events/components/sections/SectionLineup.vue.js +29 -0
  224. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue.cjs +3 -0
  225. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue.js +117 -0
  226. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +1 -0
  227. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +4 -0
  228. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs +1 -0
  229. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js +108 -0
  230. package/dist/prometheus-framework/src/modules/events/components/sections/SectionSpecialGuests.vue.cjs +1 -0
  231. package/dist/prometheus-framework/src/modules/events/components/sections/SectionSpecialGuests.vue.js +70 -0
  232. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  233. package/dist/prometheus-framework/src/modules/events/store/events.js +20 -16
  234. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  235. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  236. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  237. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
  238. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  239. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  240. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  241. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  242. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  243. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
  244. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  245. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -2
  246. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  247. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
  248. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  249. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +14 -14
  250. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  251. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  252. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  253. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  254. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  255. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  256. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  257. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  258. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  259. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  260. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  261. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
  262. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  263. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  264. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  265. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  266. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  267. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  268. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  269. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  270. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  271. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  272. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  273. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  274. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  275. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  276. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  277. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  278. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  279. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  280. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  281. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  282. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  283. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +58 -55
  284. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  285. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +3 -3
  286. package/dist/prometheus-framework.cjs.js +19 -19
  287. package/dist/prometheus-framework.es.js +390 -376
  288. package/dist/style.css +1 -1
  289. package/package.json +1 -1
  290. package/src/modules/events/components/pages/EditEvent.vue +20 -5
  291. package/src/modules/events/components/pages/Event.vue +5 -2
  292. package/src/modules/events/components/sections/SectionPreviousEvents.vue +1 -1
  293. package/src/modules/events/models/event.model.js +2 -1
  294. package/src/modules/marketplace/components/pages/Catalog.vue +1 -0
  295. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  296. package/src/modules/users/components/pages/Profile.vue +1 -1
@@ -1,192 +1,433 @@
1
- import { ref as u, onMounted as $, unref as l, openBlock as d, createElementBlock as m, createElementVNode as i, createVNode as s, createCommentVNode as p, withCtx as _, createTextVNode as T } from "vue";
2
- import "../../../constructor/components/elements/Textarea.vue2.js";
3
- import z from "../../../constructor/components/sections/Constructor.vue.js";
4
- import N from "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
1
+ import { ref as b, onMounted as N, unref as t, openBlock as d, createElementBlock as r, createElementVNode as i, createVNode as s, createCommentVNode as f, createBlock as R, withCtx as D, Fragment as x, renderList as P, createTextVNode as A } from "vue";
2
+ import "../../../constructor/components/elements/Textarea.vue.js";
3
+ import B from "../../../constructor/components/sections/Constructor.vue.js";
4
+ import I from "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
5
5
  import "../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.js";
6
- import O from "../../../../components/Popup/Popup.vue.js";
7
- import w from "../../../../components/Field/Field.vue2.js";
8
- import A from "../../../../components/FieldTags/BlockTags.vue.js";
9
- import B from "../../../../components/Checkbox/Checkbox.vue.js";
10
- import F from "../../../../components/SelectMulti/SelectMulti.vue.js";
11
- import M from "../../../../components/UploadImage/UploadImage.vue.js";
12
- import R from "../../../../components/Button/Button.vue2.js";
13
- import { useRoute as S, useRouter as H } from "vue-router";
14
- import { read as K, clean as j, state as q, update as y, create as k, remove as G } from "../../store/events.js";
15
- import { state as c } from "../../../auth/store/auth.js";
16
- import { actions as J } from "../../../organizations/store/organizations.js";
6
+ import T from "../../../../components/Block/Block.vue.js";
7
+ import z from "../../../../components/Popup/Popup.vue2.js";
8
+ import n from "../../../../components/Field/Field.vue2.js";
9
+ import H from "../../../../components/FieldTags/BlockTags.vue.js";
10
+ import E from "../../../../components/Checkbox/Checkbox.vue2.js";
11
+ import J from "../../../../components/SelectMulti/SelectMulti.vue.js";
12
+ import w from "../../../../components/Upload/Upload.vue.js";
13
+ import y from "../../../../components/UploadImage/UploadImage.vue.js";
14
+ import K from "../../../../components/EditImages/EditImages.vue.js";
15
+ import Y from "../../../../components/Button/Button.vue2.js";
16
+ import V from "../../../icons/navigation/IconDelete.vue.js";
17
+ import { useRoute as j, useRouter as q } from "vue-router";
18
+ import { read as Q, clean as W, state as X, update as C, create as S, remove as Z } from "../../store/events.js";
19
+ import { state as u } from "../../../auth/store/auth.js";
20
+ import { actions as ee } from "../../../organizations/store/organizations.js";
17
21
  import "./EditEvent.vue2.js";
18
- const L = {
22
+ const le = {
19
23
  key: 0,
20
24
  class: "h-100 pd-thin"
21
- }, Q = { class: "mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, W = /* @__PURE__ */ i("h4", null, "Upload Event Cover", -1), X = /* @__PURE__ */ i("h3", { class: "mn-b-small" }, "Date", -1), Y = /* @__PURE__ */ i("h3", { class: "mn-b-small" }, "Description", -1), Z = {
25
+ }, ae = { class: "mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, te = /* @__PURE__ */ i("h4", null, "Upload Event Cover", -1), se = {
22
26
  key: 0,
27
+ class: "mn-b-small"
28
+ }, ie = {
29
+ key: 2,
30
+ class: "mn-b-semi"
31
+ }, oe = /* @__PURE__ */ i("h4", { class: "mn-b-thin" }, " Hero Section ", -1), ne = /* @__PURE__ */ i("h5", { class: "mn-b-thin" }, " Video in Hero Section ", -1), de = /* @__PURE__ */ i("h5", { class: "mn-b-thin" }, " Ticket ", -1), re = { class: "mn-b-small gap-small cols-2-fit-content" }, ue = { class: "gap-thin flex-nowrap flex w-100" }, pe = /* @__PURE__ */ i("hr", { class: "bg-black-transp-10 mn-b-semi mn-t-semi d-block" }, null, -1), me = /* @__PURE__ */ i("h4", { class: "mn-b-thin" }, " Guest Section ", -1), ce = { class: "gap-thin cols-3" }, fe = /* @__PURE__ */ i("h5", { class: "mn-b-thin" }, " Video in Guests Section ", -1), ge = { class: "gap-thin flex-nowrap flex w-100" }, be = { class: "w-100" }, he = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, ve = /* @__PURE__ */ i("hr", { class: "bg-black-transp-10 mn-b-semi mn-t-semi d-block" }, null, -1), De = /* @__PURE__ */ i("h4", { class: "mn-b-thin" }, " Lineup Section ", -1), we = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, ke = /* @__PURE__ */ i("h5", { class: "mn-b-thin" }, " Background in Lineup Section ", -1), ye = /* @__PURE__ */ i("h5", { class: "mn-b-thin" }, " Video in Previous Partys Section ", -1), Ue = /* @__PURE__ */ i("h3", { class: "mn-b-small" }, "Date", -1), _e = /* @__PURE__ */ i("h3", { class: "mn-b-small" }, "Description", -1), xe = {
32
+ key: 3,
23
33
  class: "pd-b-extra w-100 bg-grey pd-big radius-big"
24
- }, I = {
25
- key: 1,
34
+ }, Pe = {
35
+ key: 4,
26
36
  class: "pd-thin pos-sticky pos-l-0 pos-b-0 w-100"
27
- }, ee = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, te = /* @__PURE__ */ i("h3", { class: "mn-b-small" }, "Final Touches", -1), ae = /* @__PURE__ */ i("h5", { class: "mn-b-thin" }, "Add to public:", -1), oe = {
37
+ }, Te = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, Ee = /* @__PURE__ */ i("h3", { class: "mn-b-small" }, "Final Touches", -1), Ve = /* @__PURE__ */ i("h5", { class: "mn-b-thin" }, "Add to public:", -1), Ce = {
28
38
  key: 0,
29
39
  class: "mn-b-thin"
30
- }, le = {
40
+ }, Se = {
31
41
  key: 1,
32
42
  class: "mn-b-medium br-grey br-2px br-solid pd-small radius-big"
33
- }, xe = {
43
+ }, el = {
34
44
  __name: "EditEvent",
35
- setup(se) {
36
- const v = S(), f = H();
37
- let e = u(null), h = u(null);
38
- const g = u([]), n = u(null), r = u(), x = () => ({ top: 0, left: 0 });
39
- $(async () => {
40
- if (v.params.url) {
41
- const t = await K({ user: c.user._id, url: v.params.url });
42
- e.value = t.pop();
43
- const o = e.value.date.start, U = e.value.date.end;
44
- r.value = [o, U];
45
+ setup(Me) {
46
+ const h = j(), v = q();
47
+ let e = b(null), U = b(null);
48
+ const _ = b([]), p = b(null), m = b(), M = () => ({ top: 0, left: 0 });
49
+ N(async () => {
50
+ if (h.params.url) {
51
+ const a = await Q({ user: u.user._id, url: h.params.url });
52
+ e.value = a.pop(), console.log(e.value);
53
+ const l = e.value.date.start, g = e.value.date.end;
54
+ m.value = [l, g];
45
55
  } else {
46
- j(), e.value = q.current;
47
- const t = /* @__PURE__ */ new Date(), o = /* @__PURE__ */ new Date();
48
- r.value = [t, o];
56
+ W(), e.value = X.current;
57
+ const a = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
58
+ m.value = [a, l];
49
59
  }
50
60
  e.value.owner || (e.value.owner = {
51
- target: c.user._id,
61
+ target: u.user._id,
52
62
  type: "user"
53
63
  }), e.value.creator || (e.value.creator = {
54
- target: c.user._id,
64
+ target: u.user._id,
55
65
  type: "user",
56
66
  hidden: !1
57
- }), e.value.owner.type === "organization" && (n.value = {
67
+ }), e.value.owner.type === "organization" && (p.value = {
58
68
  _id: e.value.owner.target._id,
59
69
  name: e.value.owner.target.profile.name,
60
70
  photo: e.value.owner.target.profile.photo
61
71
  });
62
- const a = await J.read({
63
- user: c.user._id,
64
- postable: c.user._id,
72
+ const o = await ee.read({
73
+ user: u.user._id,
74
+ postable: u.user._id,
65
75
  limit: 100
66
76
  });
67
- h.value = a.map((t) => ({
68
- name: t.profile.name,
69
- _id: t._id,
70
- photo: t.profile.photo
77
+ U.value = o.map((a) => ({
78
+ name: a.profile.name,
79
+ _id: a._id,
80
+ photo: a.profile.photo
71
81
  }));
72
82
  });
73
- const b = u(!1);
74
- function P() {
75
- b.value = !0;
83
+ const k = b(!1);
84
+ function G() {
85
+ k.value = !0;
76
86
  }
77
- function D() {
78
- b.value = !1;
87
+ function L() {
88
+ k.value = !1;
79
89
  }
80
- function E() {
81
- g.value.length > 0 && g.value.map((a) => a.text), e.value.status = "draft", e.value.date = {
82
- start: r.value[0],
83
- end: r.value[1]
84
- }, v.params.url ? y(e.value).then((a) => {
85
- f.push({ name: "Event", params: { url: a.url } });
86
- }).catch((a) => {
87
- console.error(a);
88
- }) : k(e.value).then((a) => {
89
- f.push({ name: "Event", params: { url: a.url } });
90
- }).catch((a) => {
91
- console.error(a);
90
+ function F() {
91
+ _.value.length > 0 && _.value.map((o) => o.text), e.value.status = "draft", e.value.date = {
92
+ start: m.value[0],
93
+ end: m.value[1]
94
+ }, h.params.url ? C(e.value).then((o) => {
95
+ v.push({ name: "Event", params: { url: o.url } });
96
+ }).catch((o) => {
97
+ console.error(o);
98
+ }) : S(e.value).then((o) => {
99
+ v.push({ name: "Event", params: { url: o.url } });
100
+ }).catch((o) => {
101
+ console.error(o);
92
102
  });
93
103
  }
94
- function V() {
95
- n.value && (e.value.owner = {
96
- target: n.value._id,
104
+ function O() {
105
+ p.value && (e.value.owner = {
106
+ target: p.value._id,
97
107
  type: "organization"
98
- }), n.value || (e.value.creator.hidden = !1), n.value || (e.value.organization = e.value.creator), e.value.status = "published", e.value.date = {
99
- start: r.value[0],
100
- end: r.value[1]
101
- }, console.log(r.value), v.params.url ? y(e.value).then((a) => {
102
- f.push({ name: "Event", params: { url: a.url } });
103
- }).catch((a) => {
104
- console.log(a);
105
- }) : k(e.value).then((a) => {
106
- f.push({ name: "Event", params: { url: a.url } });
107
- }).catch((a) => {
108
- console.log(a);
108
+ }), p.value || (e.value.creator.hidden = !1), p.value || (e.value.organization = e.value.creator), e.value.status = "published", e.value.date = {
109
+ start: m.value[0],
110
+ end: m.value[1]
111
+ }, console.log(m.value), h.params.url ? (console.log(e.value), C(e.value).then((o) => {
112
+ v.push({ name: "Event", params: { url: o.url } });
113
+ }).catch((o) => {
114
+ console.log(o);
115
+ })) : S(e.value).then((o) => {
116
+ v.push({ name: "Event", params: { url: o.url } });
117
+ }).catch((o) => {
118
+ console.log(o);
109
119
  });
110
120
  }
111
- function C() {
112
- confirm("Are you sure you want to delete this event?") && G(e.value._id).then((a) => {
113
- f.push({ name: "User Events", params: { _id: e.value.creator.target._id } });
114
- }).catch((a) => {
115
- console.error(a);
121
+ function $() {
122
+ confirm("Are you sure you want to delete this event?") && Z(e.value._id).then((o) => {
123
+ v.push({ name: "User Events", params: { _id: e.value.creator.target._id } });
124
+ }).catch((o) => {
125
+ console.error(o);
116
126
  });
117
127
  }
118
- return (a, t) => l(e) ? (d(), m("article", L, [
119
- i("div", Q, [
120
- s(M, {
121
- photo: l(e).cover,
122
- "onUpdate:photo": t[0] || (t[0] = (o) => l(e).cover = o),
123
- uploadPath: "users/" + c.user._id + "/events",
128
+ return (o, a) => t(e) ? (d(), r("article", le, [
129
+ i("div", ae, [
130
+ s(y, {
131
+ photo: t(e).cover,
132
+ "onUpdate:photo": a[0] || (a[0] = (l) => t(e).cover = l),
133
+ uploadPath: "specials",
124
134
  class: "h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"
125
- }, null, 8, ["photo", "uploadPath"]),
126
- W
135
+ }, null, 8, ["photo"]),
136
+ te
127
137
  ]),
128
- s(w, {
129
- field: l(e).name,
130
- "onUpdate:field": t[1] || (t[1] = (o) => l(e).name = o),
138
+ s(n, {
139
+ field: t(e).name,
140
+ "onUpdate:field": a[1] || (a[1] = (l) => t(e).name = l),
131
141
  placeholder: "Event name",
132
142
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
133
143
  }, null, 8, ["field"]),
134
- s(w, {
135
- field: l(e).description,
136
- "onUpdate:field": t[2] || (t[2] = (o) => l(e).description = o),
144
+ s(n, {
145
+ field: t(e).description,
146
+ "onUpdate:field": a[2] || (a[2] = (l) => t(e).description = l),
137
147
  type: "textfield",
138
148
  placeholder: "Enter short description",
139
149
  class: "mn-b-semi w-100 bg-grey pd-medium radius-small"
140
150
  }, null, 8, ["field"]),
141
- X,
142
- s(l(N), {
143
- modelValue: r.value,
144
- "onUpdate:modelValue": t[3] || (t[3] = (o) => r.value = o),
145
- "alt-position": x,
151
+ u.access.roles && (u.access.roles.includes("ROLE_MODERATOR") || u.access.roles.includes("ROLE_ADMIN")) ? (d(), r("h3", se, " Special Details ")) : f("", !0),
152
+ u.access.roles && (u.access.roles.includes("ROLE_MODERATOR") || u.access.roles.includes("ROLE_ADMIN")) ? (d(), R(E, {
153
+ key: 1,
154
+ label: "Special",
155
+ radio: t(e).special,
156
+ "onUpdate:radio": a[3] || (a[3] = (l) => t(e).special = !t(e).special),
157
+ class: "mn-b-semi w-100 bg-black t-white pd-medium radius-small"
158
+ }, null, 8, ["radio"])) : f("", !0),
159
+ t(e).special ? (d(), r("div", ie, [
160
+ oe,
161
+ s(n, {
162
+ field: t(e).specialData.subtitle,
163
+ "onUpdate:field": a[4] || (a[4] = (l) => t(e).specialData.subtitle = l),
164
+ placeholder: "Event subtitle",
165
+ class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
166
+ }, null, 8, ["field"]),
167
+ s(K, {
168
+ images: t(e).specialData.logos,
169
+ uploadPath: "/specials",
170
+ text: {
171
+ title: "Drag & Drop Your Logos Here",
172
+ subtitle: "Files supported: JPG, PNG, GIF"
173
+ },
174
+ options: {
175
+ showTitle: !0,
176
+ showText: !1
177
+ },
178
+ "onUpdate:images": a[5] || (a[5] = (l) => t(e).specialData.logos = l),
179
+ class: "mn-b-thin bg-grey radius-small"
180
+ }, null, 8, ["images"]),
181
+ ne,
182
+ s(w, {
183
+ field: t(e).specialData.video,
184
+ "onUpdate:field": a[6] || (a[6] = (l) => t(e).specialData.video = l),
185
+ placeholder: "Upload video",
186
+ onFileChange: a[7] || (a[7] = (l) => t(e).specialData.video = l),
187
+ uploadPath: "specials",
188
+ type: "file",
189
+ class: "mn-b-thin w-100 bg-grey pd-medium radius-small t-black"
190
+ }, null, 8, ["field"]),
191
+ de,
192
+ i("div", re, [
193
+ s(y, {
194
+ photo: t(e).specialData.ticketImage,
195
+ "onUpdate:photo": a[8] || (a[8] = (l) => t(e).specialData.ticketImage = l),
196
+ uploadPath: "/specials",
197
+ class: "aspect-1x1 w-4r o-hidden radius-extra"
198
+ }, null, 8, ["photo"]),
199
+ i("div", ue, [
200
+ s(n, {
201
+ field: t(e).specialData.ticketLinkStripe,
202
+ "onUpdate:field": a[9] || (a[9] = (l) => t(e).specialData.ticketLinkStripe = l),
203
+ placeholder: "Link to ticket stripe payment page",
204
+ class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
205
+ }, null, 8, ["field"]),
206
+ s(n, {
207
+ field: t(e).specialData.ticketPrice,
208
+ "onUpdate:field": a[10] || (a[10] = (l) => t(e).specialData.ticketPrice = l),
209
+ type: "number",
210
+ placeholder: "Ticket price in baht",
211
+ class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
212
+ }, null, 8, ["field"])
213
+ ])
214
+ ]),
215
+ pe,
216
+ me,
217
+ s(n, {
218
+ field: t(e).specialData.titleMainGuest,
219
+ "onUpdate:field": a[11] || (a[11] = (l) => t(e).specialData.titleMainGuest = l),
220
+ placeholder: "Title for Main Guest section",
221
+ class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
222
+ }, null, 8, ["field"]),
223
+ s(n, {
224
+ field: t(e).specialData.guestDescription,
225
+ "onUpdate:field": a[12] || (a[12] = (l) => t(e).specialData.guestDescription = l),
226
+ placeholder: "Description for Main Guest section",
227
+ class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
228
+ }, null, 8, ["field"]),
229
+ i("div", ce, [
230
+ s(n, {
231
+ field: t(e).specialData.guestFacebook,
232
+ "onUpdate:field": a[13] || (a[13] = (l) => t(e).specialData.guestFacebook = l),
233
+ placeholder: "Facebook of Main Guest",
234
+ class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
235
+ }, null, 8, ["field"]),
236
+ s(n, {
237
+ field: t(e).specialData.guestInstagram,
238
+ "onUpdate:field": a[14] || (a[14] = (l) => t(e).specialData.guestInstagram = l),
239
+ placeholder: "Instagram of Main Guest",
240
+ class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
241
+ }, null, 8, ["field"]),
242
+ s(n, {
243
+ field: t(e).specialData.guestTwitter,
244
+ "onUpdate:field": a[15] || (a[15] = (l) => t(e).specialData.guestTwitter = l),
245
+ placeholder: "Twitter of Main Guest",
246
+ class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
247
+ }, null, 8, ["field"]),
248
+ s(n, {
249
+ field: t(e).specialData.guestTelegram,
250
+ "onUpdate:field": a[16] || (a[16] = (l) => t(e).specialData.guestTelegram = l),
251
+ placeholder: "Telegram of Main Guest",
252
+ class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
253
+ }, null, 8, ["field"]),
254
+ s(n, {
255
+ field: t(e).specialData.guestSoundcloud,
256
+ "onUpdate:field": a[17] || (a[17] = (l) => t(e).specialData.guestSoundcloud = l),
257
+ placeholder: "Link to Main Guest soundcloud track",
258
+ class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
259
+ }, null, 8, ["field"]),
260
+ s(n, {
261
+ field: t(e).specialData.guestSpotify,
262
+ "onUpdate:field": a[18] || (a[18] = (l) => t(e).specialData.guestSpotify = l),
263
+ placeholder: "Link to Main guest spotify track",
264
+ class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
265
+ }, null, 8, ["field"])
266
+ ]),
267
+ fe,
268
+ s(w, {
269
+ field: t(e).specialData.guestVideo,
270
+ "onUpdate:field": a[19] || (a[19] = (l) => t(e).specialData.guestVideo = l),
271
+ placeholder: "Upload video",
272
+ onFileChange: a[20] || (a[20] = (l) => t(e).specialData.guestVideo = l),
273
+ uploadPath: "/specials",
274
+ type: "file",
275
+ class: "mn-b-thin w-100 bg-grey pd-medium radius-small t-black"
276
+ }, null, 8, ["field"]),
277
+ s(T, {
278
+ title: "Guests",
279
+ placeholder: "No guests added yet",
280
+ actions: [{
281
+ label: "+",
282
+ function: () => t(e).specialData.guests.push({ name: null, description: null, photo: null, main: !1 })
283
+ }],
284
+ class: "cols-1 mn-b-thin t-black gap-thin"
285
+ }, {
286
+ default: D(() => [
287
+ (d(!0), r(x, null, P(t(e).specialData.guests, (l, g) => (d(), r("div", {
288
+ class: "mn-b-small gap-small cols-2-fit-content",
289
+ key: g
290
+ }, [
291
+ s(y, {
292
+ photo: l.photo,
293
+ "onUpdate:photo": (c) => l.photo = c,
294
+ uploadPath: "/specials",
295
+ class: "aspect-1x1 w-8r o-hidden radius-extra"
296
+ }, null, 8, ["photo", "onUpdate:photo"]),
297
+ i("div", ge, [
298
+ i("div", be, [
299
+ s(n, {
300
+ field: l.name,
301
+ "onUpdate:field": (c) => l.name = c,
302
+ placeholder: "Name",
303
+ class: "w-100 mn-b-thin bg-white radius-small pd-medium"
304
+ }, null, 8, ["field", "onUpdate:field"]),
305
+ s(n, {
306
+ field: l.description,
307
+ "onUpdate:field": (c) => l.description = c,
308
+ placeholder: "Description",
309
+ class: "w-100 mn-b-thin bg-white radius-small pd-medium"
310
+ }, null, 8, ["field", "onUpdate:field"])
311
+ ]),
312
+ i("div", he, [
313
+ s(V, {
314
+ onClick: () => t(e).specialData.guests.splice(g, 1),
315
+ class: "i-medium"
316
+ }, null, 8, ["onClick"])
317
+ ])
318
+ ])
319
+ ]))), 128))
320
+ ]),
321
+ _: 1
322
+ }, 8, ["actions"]),
323
+ ve,
324
+ De,
325
+ s(T, {
326
+ title: "Line Up",
327
+ placeholder: "No line ups added yet",
328
+ actions: [{
329
+ label: "+",
330
+ function: () => t(e).specialData.lineup.push({ name: null, description: null, photo: null, main: !1 })
331
+ }],
332
+ class: "cols-1 t-black gap-thin"
333
+ }, {
334
+ default: D(() => [
335
+ (d(!0), r(x, null, P(t(e).specialData.lineup, (l, g) => (d(), r("div", {
336
+ class: "mn-b-thin gap-small flex-nowrap flex",
337
+ key: g
338
+ }, [
339
+ s(n, {
340
+ field: l.name,
341
+ "onUpdate:field": (c) => l.name = c,
342
+ placeholder: "Name",
343
+ class: "w-100 bg-grey radius-small pd-medium"
344
+ }, null, 8, ["field", "onUpdate:field"]),
345
+ s(n, {
346
+ field: l.time,
347
+ "onUpdate:field": (c) => l.time = c,
348
+ placeholder: "Time",
349
+ class: "w-100 bg-grey radius-small pd-medium"
350
+ }, null, 8, ["field", "onUpdate:field"]),
351
+ i("div", we, [
352
+ s(V, {
353
+ onClick: () => t(e).specialData.lineup.splice(g, 1),
354
+ class: "i-medium"
355
+ }, null, 8, ["onClick"])
356
+ ])
357
+ ]))), 128))
358
+ ]),
359
+ _: 1
360
+ }, 8, ["actions"]),
361
+ ke,
362
+ s(w, {
363
+ field: t(e).specialData.lineupBackground,
364
+ "onUpdate:field": a[21] || (a[21] = (l) => t(e).specialData.lineupBackground = l),
365
+ placeholder: "Upload image",
366
+ onFileChange: a[22] || (a[22] = (l) => t(e).specialData.lineupBackground = l),
367
+ uploadPath: "/specials",
368
+ type: "file",
369
+ class: "mn-b-thin w-100 bg-grey pd-medium radius-small t-black"
370
+ }, null, 8, ["field"]),
371
+ ye,
372
+ s(w, {
373
+ field: t(e).specialData.previousVideo,
374
+ "onUpdate:field": a[23] || (a[23] = (l) => t(e).specialData.previousVideo = l),
375
+ placeholder: "Upload image",
376
+ onFileChange: a[24] || (a[24] = (l) => t(e).specialData.previousVideo = l),
377
+ uploadPath: "/specials",
378
+ type: "file",
379
+ class: "mn-b-thin w-100 bg-grey pd-medium radius-small t-black"
380
+ }, null, 8, ["field"])
381
+ ])) : f("", !0),
382
+ Ue,
383
+ s(t(I), {
384
+ modelValue: m.value,
385
+ "onUpdate:modelValue": a[25] || (a[25] = (l) => m.value = l),
386
+ "alt-position": M,
146
387
  range: "",
147
388
  class: "mn-b-semi"
148
389
  }, null, 8, ["modelValue"]),
149
- Y,
150
- l(e) ? (d(), m("section", Z, [
151
- s(z, {
152
- content: l(e).content,
153
- onUpdate: t[4] || (t[4] = (o) => l(e).content = o)
390
+ _e,
391
+ t(e) ? (d(), r("section", xe, [
392
+ s(B, {
393
+ content: t(e).content,
394
+ onUpdate: a[26] || (a[26] = (l) => t(e).content = l)
154
395
  }, null, 8, ["content"])
155
- ])) : p("", !0),
156
- l(e) ? (d(), m("section", I, [
157
- i("div", ee, [
158
- l(v).params.url ? (d(), m("a", {
396
+ ])) : f("", !0),
397
+ t(e) ? (d(), r("section", Pe, [
398
+ i("div", Te, [
399
+ t(h).params.url ? (d(), r("a", {
159
400
  key: 0,
160
- onClick: t[5] || (t[5] = (o) => C()),
401
+ onClick: a[27] || (a[27] = (l) => $()),
161
402
  class: "mn-r-auto bg-red t-white t-black button"
162
- }, "Delete")) : p("", !0),
403
+ }, "Delete")) : f("", !0),
163
404
  i("a", {
164
- onClick: t[6] || (t[6] = (o) => E()),
405
+ onClick: a[28] || (a[28] = (l) => F()),
165
406
  class: "mn-l-auto bg-white t-black button"
166
407
  }, "To Drafts"),
167
408
  i("a", {
168
- onClick: t[7] || (t[7] = (o) => P()),
409
+ onClick: a[29] || (a[29] = (l) => G()),
169
410
  class: "mn-l-thin bg-black t-white button"
170
411
  }, "Publish")
171
412
  ])
172
- ])) : p("", !0),
173
- s(O, {
413
+ ])) : f("", !0),
414
+ s(z, {
174
415
  title: "Добавить участника",
175
- onClosePopup: D,
176
- isPopupOpen: b.value,
416
+ onClosePopup: L,
417
+ isPopupOpen: k.value,
177
418
  class: "w-m-33r t-left pd-big bg-white radius-big"
178
419
  }, {
179
- default: _(() => [
180
- te,
181
- s(A, {
182
- onTagsChanged: t[8] || (t[8] = (o) => l(e).tags = o),
183
- tags: l(e).tags
420
+ default: D(() => [
421
+ Ee,
422
+ s(H, {
423
+ onTagsChanged: a[30] || (a[30] = (l) => t(e).tags = l),
424
+ tags: t(e).tags
184
425
  }, null, 8, ["tags"]),
185
- ae,
186
- s(F, {
187
- modelValue: n.value,
188
- "onUpdate:modelValue": t[9] || (t[9] = (o) => n.value = o),
189
- options: l(h),
426
+ Ve,
427
+ s(J, {
428
+ modelValue: p.value,
429
+ "onUpdate:modelValue": a[31] || (a[31] = (l) => p.value = l),
430
+ options: t(U),
190
431
  multiple: !1,
191
432
  taggable: !1,
192
433
  placeholder: "Type to search or add tag",
@@ -194,32 +435,32 @@ const L = {
194
435
  "track-by": "_id",
195
436
  class: "mn-b-medium bg-grey radius-medium pd-small"
196
437
  }, null, 8, ["modelValue", "options"]),
197
- n.value ? (d(), m("h5", oe, "Options:")) : p("", !0),
198
- n.value ? (d(), m("div", le, [
199
- s(B, {
438
+ p.value ? (d(), r("h5", Ce, "Options:")) : f("", !0),
439
+ p.value ? (d(), r("div", Se, [
440
+ s(E, {
200
441
  label: "Hide Author",
201
- radio: l(e).creator.hidden,
202
- "onUpdate:radio": t[10] || (t[10] = (o) => l(e).creator.hidden = o),
442
+ radio: t(e).creator.hidden,
443
+ "onUpdate:radio": a[32] || (a[32] = (l) => t(e).creator.hidden = l),
203
444
  name: "prices",
204
445
  class: "w-100"
205
446
  }, null, 8, ["radio"])
206
- ])) : p("", !0),
207
- s(R, {
208
- submit: V,
209
- callback: a.redirectTo,
447
+ ])) : f("", !0),
448
+ s(Y, {
449
+ submit: O,
450
+ callback: o.redirectTo,
210
451
  class: "w-100 bg-black t-white"
211
452
  }, {
212
- default: _(() => [
213
- T("Publish")
453
+ default: D(() => [
454
+ A("Publish")
214
455
  ]),
215
456
  _: 1
216
457
  }, 8, ["callback"])
217
458
  ]),
218
459
  _: 1
219
460
  }, 8, ["isPopupOpen"])
220
- ])) : p("", !0);
461
+ ])) : f("", !0);
221
462
  }
222
463
  };
223
464
  export {
224
- xe as default
465
+ el as default
225
466
  };
@@ -1 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const m=require("../../../../components/EmptyState/EmptyState.vue.cjs"),p=require("../blocks/CardEvent.vue.cjs"),v=require("../../../icons/skeletons/SkeletonEvent.vue.cjs"),g=require("../elements/ButtonJoin.vue.cjs"),k=require("../../../community/components/sections/Comments.vue.cjs"),f=require("../../../constructor/components/elements/Image.vue.cjs"),y=require("../../store/events.cjs"),_=require("../../store/tickets.cjs"),o=require("../../../auth/store/auth.cjs"),B=require("vue-router"),h={class:"pd-thin"},C={__name:"Event",setup(T){const l=B.useRoute(),c=({ticket:n,hasTicket:u,targetId:r})=>{_.mutations.handleTicketUpdate(t.value,n,u,r)},i={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:f.default};function d(n){return n.type==="Textarea"?{innerHTML:n.content,class:"p-medium"}:n.type==="H2"?{innerHTML:n.content,class:"h3"}:n.type==="Caption"?{innerHTML:n.content}:n.type==="ImageUpload"?{src:n.content}:{}}const t=e.ref(null),a=e.ref(!0);return e.onMounted(async()=>{a.value=!0;const n=await y.read({user:o.state.user._id,url:l.params.url});t.value=n[0],a.value=!1}),(n,u)=>(e.openBlock(),e.createElementBlock("section",h,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,r=>e.createVNode(v.default,{key:r})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!a.value&&!t.value?(e.openBlock(),e.createBlock(m.default,{key:0,title:"No Event Found",description:"Currently, there are no events available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!a.value&&t.value?(e.openBlock(),e.createBlock(p.default,{key:0,onClick:u[0]||(u[0]=r=>n.$router.push({name:"Event",params:{url:t.value.url}})),event:t.value,owner:t.value.owner,user:o.state.user._id,type:"normal",class:"mn-b-medium bg-grey radius-big"},{default:e.withCtx(()=>[o.state.user._id?(e.openBlock(),e.createBlock(g.default,{key:0,type:"event",hasTicket:t.value.hasTicket,targetId:t.value._id,userId:o.state.user._id,class:"mn-b-small w-100 pd-medium mn-auto",onUpdateTicket:c},null,8,["hasTicket","targetId","userId"])):e.createCommentVNode("",!0),e.createElementVNode("section",null,[t.value&&t.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.value.content,(r,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i[r.type]),e.mergeProps({key:s,index:s,component:r,prop:r,class:r.class,content:"content"},d(r),{class:"mn-b-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["event","owner","user"])):e.createCommentVNode("",!0),!a.value&&t.value?(e.openBlock(),e.createBlock(k.default,{key:1,type:"event",target:t.value._id,owner:o.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const p=require("../../../../components/EmptyState/EmptyState.vue.cjs"),v=require("../sections/HeroEvent.vue.cjs"),m=require("../sections/SectionMainGuest.vue.cjs"),g=require("../sections/SectionSpecialGuests.vue.cjs"),k=require("../sections/SectionLineup.vue.cjs"),f=require("../sections/SectionPreviousEvents.vue.cjs"),y=require("../blocks/CardEvent.vue.cjs"),h=require("../../../icons/skeletons/SkeletonEvent.vue.cjs"),B=require("../elements/ButtonJoin.vue.cjs"),b=require("../../../community/components/sections/Comments.vue.cjs"),_=require("../../../constructor/components/elements/Image.vue.cjs"),D=require("../../store/events.cjs"),C=require("../../store/tickets.cjs"),l=require("../../../auth/store/auth.cjs"),V=require("vue-router"),N={class:"pd-thin"},T=e.createElementVNode("h2",{class:"mn-b-big w-100 t-center"},"Event Details",-1),q={class:"gap-big mn-b-thin cols-2"},E={__name:"Event",setup(w){const i=V.useRoute(),s=({ticket:a,hasTicket:r,targetId:n})=>{C.mutations.handleTicketUpdate(t.value,a,r,n)},c={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:_.default};function d(a){return a.type==="Textarea"?{innerHTML:a.content,class:"p-medium"}:a.type==="H2"?{innerHTML:a.content,class:"h3"}:a.type==="Caption"?{innerHTML:a.content}:a.type==="ImageUpload"?{src:a.content}:{}}const t=e.ref(null),o=e.ref(!0);return e.onMounted(async()=>{o.value=!0;const a=await D.read({user:l.state.user._id,url:i.params.url});t.value=a[0],o.value=!1}),(a,r)=>(e.openBlock(),e.createElementBlock("section",N,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,n=>e.createVNode(h.default,{key:n})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!o.value&&!t.value?(e.openBlock(),e.createBlock(p.default,{key:0,title:"No Event Found",description:"Currently, there are no events available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!o.value&&t.value&&t.value.special?(e.openBlock(),e.createBlock(v.default,{key:0,content:{title:t.value.name,description:t.value.description,ticketLinkStripe:t.value.specialData.ticketLinkStripe,subtitle:t.value.specialData.subtitle,logos:t.value.specialData.logos,video:t.value.specialData.video,buyticket:"Buy ticket",booktable:"Book table"},options:{date:t.value.date.start,price:t.value.specialData.ticketPrice},class:"mn-b-thin"},null,8,["content","options"])):e.createCommentVNode("",!0),!o.value&&t.value&&t.value.special?(e.openBlock(),e.createBlock(m.default,{key:1,content:{title:t.value.specialData.guestTitle,description:t.value.specialData.guestDescription,socials:{twitter:t.value.specialData.guestTwitter,telegram:t.value.specialData.guestTelegram,instagram:t.value.specialData.guestInstagram,facebook:t.value.specialData.guestFacebook},video:t.value.specialData.guestVideo,spotify:t.value.specialData.guestSpotify,soundcloud:t.value.specialData.guestSoundcloud},class:"mn-b-thin"},null,8,["content"])):e.createCommentVNode("",!0),!o.value&&t.value&&t.value.special?(e.openBlock(),e.createElementBlock("section",{key:2,style:e.normalizeStyle(`
2
+ background-image: url(${t.value.specialData.lineupBackground});
3
+ background-size: 100%; background-repeat: no-repeat;
4
+ `),class:"mn-b-thin t-white gap-big w-100 h-max o-hidden radius-big pd-big pos-relative bg-black"},[T,e.createElementVNode("div",q,[e.createVNode(g.default,{content:{title:"Special Guests",description:"Enjoy a festive dining experience at The Commune, featuring a fine selection of dishes and drinks presented on your table throughout the evening.",guests:t.value.specialData.guests}},null,8,["content"]),e.createVNode(k.default,{content:{title:"Lineup",lineup:t.value.specialData.lineup}},null,8,["content"])]),e.createVNode(f.default,{content:{ticket:t.value.specialData.ticketImage},options:{link:t.value.specialData.ticketLinkStripe,video:t.value.specialData.previousVideo}},null,8,["content","options"])],4)):e.createCommentVNode("",!0),!o.value&&t.value&&!t.value.special?(e.openBlock(),e.createBlock(y.default,{key:3,onClick:r[0]||(r[0]=n=>a.$router.push({name:"Event",params:{url:t.value.url}})),event:t.value,owner:t.value.owner,user:l.state.user._id,type:"normal",class:"mn-b-medium bg-grey radius-big"},{default:e.withCtx(()=>[l.state.user._id?(e.openBlock(),e.createBlock(B.default,{key:0,type:"event",hasTicket:t.value.hasTicket,targetId:t.value._id,userId:l.state.user._id,class:"mn-b-small w-100 pd-medium mn-auto",onUpdateTicket:s},null,8,["hasTicket","targetId","userId"])):e.createCommentVNode("",!0),e.createElementVNode("section",null,[t.value&&t.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.value.content,(n,u)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[n.type]),e.mergeProps({key:u,index:u,component:n,prop:n,class:n.class,content:"content"},d(n),{class:"mn-b-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["event","owner","user"])):e.createCommentVNode("",!0),!o.value&&t.value&&!t.value.special?(e.openBlock(),e.createBlock(b.default,{key:4,type:"event",target:t.value._id,owner:l.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=E;