@ozdao/prometheus-framework 0.2.52 → 0.2.54

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. package/dist/main-0a2437f4.js +91 -0
  2. package/dist/main-180a9315.js +91 -0
  3. package/dist/main-3b7bd446.mjs +13631 -0
  4. package/dist/main-4fnApBsF.js +91 -0
  5. package/dist/main-Im8ovDCi.mjs +13609 -0
  6. package/dist/main-MjvO1l5U.js +91 -0
  7. package/dist/main-cdd0be68.mjs +13628 -0
  8. package/dist/main-kjbLXQEa.mjs +13606 -0
  9. package/dist/main.css +1 -1
  10. package/dist/organizations.server.js +17 -3
  11. package/dist/organizations.server.mjs +17 -3
  12. package/dist/products.server.js +62 -50
  13. package/dist/products.server.mjs +62 -50
  14. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -223
  16. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +223 -2
  18. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +20 -20
  20. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
  22. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +81 -2
  24. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  26. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
  28. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -70
  30. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
  32. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  33. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -95
  34. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +2 -44
  36. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  37. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +44 -2
  38. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  40. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  42. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
  44. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
  46. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  48. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
  50. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
  52. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +57 -77
  54. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +1 -1
  56. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  58. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +4 -4
  60. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  62. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  63. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +65 -2
  64. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  65. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -65
  66. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  68. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  70. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  72. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +100 -96
  74. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
  76. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +59 -52
  78. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js +1 -1
  80. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  82. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +3 -3
  84. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  86. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  88. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +8 -13
  90. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
  92. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
  94. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
  96. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +54 -78
  98. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  100. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
  102. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/orders/store/orders.js +42 -32
  104. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
  106. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  108. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +5 -5
  110. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  112. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  114. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +5 -5
  116. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  118. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  120. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  122. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +5 -5
  124. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +5 -3
  126. package/dist/prometheus-framework/src/modules/organizations/router/organizations.router.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/organizations/router/organizations.router.js +20 -5
  128. package/dist/prometheus-framework/src/modules/organizations/router/products.router.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/router/products.router.js +22 -0
  130. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.cjs +1 -0
  131. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.js +45 -0
  132. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue2.cjs +1 -0
  133. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue2.js +4 -0
  134. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
  136. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  138. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  140. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  142. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -0
  143. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +79 -0
  144. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -0
  145. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +193 -0
  146. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue2.cjs +1 -0
  147. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue2.js +4 -0
  148. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  150. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +68 -58
  154. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
  156. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  160. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +21 -18
  162. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  164. package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/products/products.client.js +2 -2
  166. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/products/store/categories.js +39 -27
  168. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  170. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +63 -77
  172. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  174. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  176. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  178. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +3 -3
  180. package/dist/prometheus-framework.cjs.js +1 -1
  181. package/dist/prometheus-framework.es.js +1 -1
  182. package/dist/style.css +1 -1
  183. package/dist/web-0066fd51.mjs +55 -0
  184. package/dist/web-6b9fa713.js +1 -0
  185. package/dist/web-8b404cc2.js +1 -0
  186. package/dist/web-e9b09dc6.mjs +55 -0
  187. package/dist/web-i-suCpLM.mjs +55 -0
  188. package/dist/web-ngl7bNhF.js +1 -0
  189. package/dist/web-t91TrxXa.mjs +55 -0
  190. package/dist/web-vB7UhMOt.js +1 -0
  191. package/package.json +1 -1
  192. package/src/components/Button/Button.vue +1 -3
  193. package/src/components/EditImages/EditImages.vue +1 -1
  194. package/src/components/Field/Field.vue +8 -1
  195. package/src/components/LocationSelection/LocationSelection.vue +2 -2
  196. package/src/modules/backoffice/components/pages/Dashboard.vue +4 -25
  197. package/src/modules/backoffice/router/admin.js +0 -14
  198. package/src/modules/backoffice/router/backoffice.js +1 -1
  199. package/src/modules/events/components/pages/EditEvent.vue +10 -6
  200. package/src/modules/events/components/sections/HeroEvent.vue +12 -2
  201. package/src/modules/events/components/sections/SectionPreviousEvents.vue +1 -1
  202. package/src/modules/landing/components/sections/MobileApp.vue +2 -6
  203. package/src/modules/marketplace/components/sections/Filters.vue +7 -1
  204. package/src/modules/orders/components/blocks/StatusHistory.vue +91 -31
  205. package/src/modules/orders/components/pages/EditOrder.vue +4 -21
  206. package/src/modules/orders/components/pages/FormOrder.vue +53 -15
  207. package/src/modules/orders/components/pages/Order.vue +2 -2
  208. package/src/modules/orders/components/sections/FormClientDetails.vue +63 -0
  209. package/src/modules/orders/components/sections/FormDelivery.vue +72 -0
  210. package/src/modules/orders/components/sections/FormPayment.vue +27 -0
  211. package/src/modules/orders/controllers/orders.controller.js +63 -49
  212. package/src/modules/orders/models/order.model.js +9 -13
  213. package/src/modules/orders/routes/orders.routes.js +6 -20
  214. package/src/modules/orders/store/orders.js +24 -12
  215. package/src/modules/organizations/controllers/organizations.controller.js +28 -9
  216. package/src/modules/organizations/router/organizations.js +4 -1
  217. package/src/modules/organizations/router/organizations.router.js +18 -2
  218. package/src/modules/organizations/router/products.router.js +24 -4
  219. package/src/modules/products/components/blocks/CardCategory.vue +53 -0
  220. package/src/modules/products/components/pages/Categories.vue +90 -0
  221. package/src/modules/products/components/pages/CategoryEdit.vue +214 -0
  222. package/src/modules/products/components/pages/ProductEdit.vue +9 -1
  223. package/src/modules/products/components/sections/FilterProducts.vue +4 -1
  224. package/src/modules/products/controllers/categories.controller.js +30 -13
  225. package/src/modules/products/controllers/products.controller.js +3 -2
  226. package/src/modules/products/models/category.model.js +42 -32
  227. package/src/modules/products/products.client.js +4 -2
  228. package/src/modules/products/store/categories.js +17 -3
  229. package/src/modules/users/components/pages/Profile.vue +2 -2
  230. package/src/modules/backoffice/components/admin/Categories.vue +0 -53
  231. package/src/modules/backoffice/components/admin/CategoryEdit.vue +0 -98
  232. package/src/modules/orders/components/sections/FormOrderDetails.vue +0 -220
  233. package/src/modules/products/components/blocks/CategoryCard.vue +0 -42
  234. package/src/modules/products/router/products.router.js +0 -48
  235. /package/src/modules/{products → organizations}/components/pages/OrganizationCreate.vue +0 -0
  236. /package/src/modules/{products → organizations}/components/pages/OrganizationDetails.vue +0 -0
  237. /package/src/modules/{products → organizations}/components/pages/OrganizationDocuments.vue +0 -0
  238. /package/src/modules/{products → organizations}/components/pages/OrganizationPeople.vue +0 -0
@@ -1,51 +1,51 @@
1
- import { ref as b, onMounted as $, unref as t, openBlock as d, createElementBlock as r, createElementVNode as i, createVNode as s, createCommentVNode as f, createBlock as B, withCtx as D, Fragment as T, renderList as _, createTextVNode as R } from "vue";
2
- import "../../../constructor/components/elements/Textarea.vue.js";
3
- import A from "../../../constructor/components/sections/Constructor.vue.js";
4
- import I from "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
1
+ import { ref as b, onMounted as $, unref as t, openBlock as d, createElementBlock as r, createElementVNode as s, createVNode as i, createCommentVNode as f, createBlock as B, withCtx as D, Fragment as T, renderList as _, createTextVNode as R } from "vue";
2
+ import "../../../constructor/components/elements/Textarea.vue2.js";
3
+ import I from "../../../constructor/components/sections/Constructor.vue.js";
4
+ import A from "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
5
5
  import "../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.js";
6
6
  import P from "../../../../components/Block/Block.vue.js";
7
- import z from "../../../../components/Popup/Popup.vue2.js";
8
- import n from "../../../../components/Field/Field.vue.js";
7
+ import z from "../../../../components/Popup/Popup.vue.js";
8
+ import n from "../../../../components/Field/Field.vue2.js";
9
9
  import H from "../../../../components/FieldTags/BlockTags.vue.js";
10
10
  import E from "../../../../components/Checkbox/Checkbox.vue.js";
11
11
  import Y from "../../../../components/SelectMulti/SelectMulti.vue.js";
12
12
  import k from "../../../../components/Upload/Upload.vue.js";
13
13
  import y from "../../../../components/UploadImage/UploadImage.vue.js";
14
14
  import J from "../../../../components/EditImages/EditImages.vue.js";
15
- import K from "../../../../components/Button/Button.vue.js";
15
+ import K from "../../../../components/Button/Button.vue2.js";
16
16
  import L from "../../../icons/navigation/IconDelete.vue.js";
17
17
  import { useRoute as j, useRouter as q } from "vue-router";
18
- import { read as Q, clean as W, state as X, update as V, create as S, remove as Z } from "../../store/events.js";
18
+ import { read as Q, clean as W, state as X, update as C, create as V, remove as Z } from "../../store/events.js";
19
19
  import { state as u } from "../../../auth/store/auth.js";
20
20
  import { actions as ee } from "../../../organizations/store/organizations.js";
21
21
  import "./EditEvent.vue2.js";
22
22
  const le = {
23
23
  key: 0,
24
24
  class: "h-100 pd-thin"
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 = {
25
+ }, ae = { class: "mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, te = /* @__PURE__ */ s("h4", null, "Upload Event Cover", -1), ie = {
26
26
  key: 0,
27
27
  class: "mn-b-small"
28
- }, ie = {
28
+ }, se = {
29
29
  key: 2,
30
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("p", null, "Need to upload in webm format because of needs of optimization", -1), re = /* @__PURE__ */ i("h5", { class: "mn-b-thin" }, " Ticket ", -1), ue = { class: "mn-b-small gap-small cols-2-fit-content" }, pe = { class: "gap-thin flex-nowrap flex w-100" }, me = /* @__PURE__ */ i("hr", { class: "bg-black-transp-10 mn-b-semi mn-t-semi d-block" }, null, -1), ce = /* @__PURE__ */ i("h4", { class: "mn-b-thin" }, " Guest Section ", -1), fe = { class: "gap-thin cols-3" }, ge = /* @__PURE__ */ i("h5", { class: "mn-b-thin" }, " Video in Guests Section ", -1), be = { class: "gap-thin flex-nowrap flex w-100" }, he = { class: "w-100" }, ve = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, De = /* @__PURE__ */ i("hr", { class: "bg-black-transp-10 mn-b-semi mn-t-semi d-block" }, null, -1), ke = /* @__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" }, ye = /* @__PURE__ */ i("h5", { class: "mn-b-thin" }, " Background in Lineup Section ", -1), Ue = /* @__PURE__ */ i("hr", { class: "bg-black-transp-10 mn-b-semi mn-t-semi d-block" }, null, -1), xe = /* @__PURE__ */ i("h4", { class: "mn-b-thin" }, " Previous Party Section ", -1), Te = /* @__PURE__ */ i("h5", { class: "mn-b-thin" }, " Video in Previous Partys Section ", -1), _e = /* @__PURE__ */ i("h3", { class: "mn-b-small" }, "Date", -1), Pe = /* @__PURE__ */ i("h3", { class: "mn-b-small" }, "Description", -1), Ee = {
31
+ }, oe = /* @__PURE__ */ s("h4", { class: "mn-b-thin" }, " Hero Section ", -1), ne = /* @__PURE__ */ s("h5", { class: "mn-b-thin" }, " Video in Hero Section ", -1), de = /* @__PURE__ */ s("p", null, "Need to upload in webm format because of needs of optimization", -1), re = /* @__PURE__ */ s("h5", { class: "mn-b-thin" }, " Ticket ", -1), ue = { class: "mn-b-small gap-small cols-2-fit-content" }, pe = { class: "gap-thin flex-nowrap flex w-100" }, me = /* @__PURE__ */ s("hr", { class: "bg-black-transp-10 mn-b-semi mn-t-semi d-block" }, null, -1), ce = /* @__PURE__ */ s("h4", { class: "mn-b-thin" }, " Guest Section ", -1), fe = { class: "gap-thin cols-3" }, ge = /* @__PURE__ */ s("h5", { class: "mn-b-thin" }, " Video in Guests Section ", -1), be = { class: "gap-thin flex-nowrap flex w-100" }, he = { class: "w-100" }, ve = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, De = /* @__PURE__ */ s("hr", { class: "bg-black-transp-10 mn-b-semi mn-t-semi d-block" }, null, -1), ke = /* @__PURE__ */ s("h4", { class: "mn-b-thin" }, " Lineup Section ", -1), we = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, ye = /* @__PURE__ */ s("h5", { class: "mn-b-thin" }, " Background in Lineup Section ", -1), Ue = /* @__PURE__ */ s("hr", { class: "bg-black-transp-10 mn-b-semi mn-t-semi d-block" }, null, -1), xe = /* @__PURE__ */ s("h4", { class: "mn-b-thin" }, " Previous Party Section ", -1), Te = /* @__PURE__ */ s("h5", { class: "mn-b-thin" }, " Video in Previous Partys Section ", -1), _e = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "Date", -1), Pe = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "Description", -1), Ee = {
32
32
  key: 3,
33
33
  class: "pd-b-extra w-100 bg-grey pd-big radius-big"
34
34
  }, Le = {
35
35
  key: 4,
36
36
  class: "pd-thin pos-sticky pos-l-0 pos-b-0 w-100"
37
- }, Ve = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, Se = /* @__PURE__ */ i("h3", { class: "mn-b-small" }, "Final Touches", -1), Ce = /* @__PURE__ */ i("h5", { class: "mn-b-thin" }, "Add to public:", -1), Ne = {
37
+ }, Ce = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, Ve = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "Final Touches", -1), Se = /* @__PURE__ */ s("h5", { class: "mn-b-thin" }, "Add to public:", -1), Me = {
38
38
  key: 0,
39
39
  class: "mn-b-thin"
40
- }, Me = {
40
+ }, Ge = {
41
41
  key: 1,
42
42
  class: "mn-b-medium br-grey br-2px br-solid pd-small radius-big"
43
43
  }, tl = {
44
44
  __name: "EditEvent",
45
- setup(Ge) {
45
+ setup(Fe) {
46
46
  const h = j(), v = q();
47
47
  let e = b(null), U = b(null);
48
- const x = b([]), p = b(null), m = b(), C = () => ({ top: 0, left: 0 });
48
+ const x = b([]), p = b(null), m = b(), S = () => ({ top: 0, left: 0 });
49
49
  $(async () => {
50
50
  if (h.params.url) {
51
51
  const a = await Q({ user: u.user._id, url: h.params.url });
@@ -81,38 +81,38 @@ const le = {
81
81
  }));
82
82
  });
83
83
  const w = b(!1);
84
- function N() {
84
+ function M() {
85
85
  w.value = !0;
86
86
  }
87
- function M() {
87
+ function G() {
88
88
  w.value = !1;
89
89
  }
90
- function G() {
90
+ function F() {
91
91
  x.value.length > 0 && x.value.map((o) => o.text), e.value.status = "draft", e.value.date = {
92
92
  start: m.value[0],
93
93
  end: m.value[1]
94
- }, h.params.url ? V(e.value).then((o) => {
94
+ }, h.params.url ? C(e.value).then((o) => {
95
95
  v.push({ name: "Event", params: { url: o.url } });
96
96
  }).catch((o) => {
97
97
  console.error(o);
98
- }) : S(e.value).then((o) => {
98
+ }) : V(e.value).then((o) => {
99
99
  v.push({ name: "Event", params: { url: o.url } });
100
100
  }).catch((o) => {
101
101
  console.error(o);
102
102
  });
103
103
  }
104
- function F() {
104
+ function N() {
105
105
  p.value && (e.value.owner = {
106
106
  target: p.value._id,
107
107
  type: "organization"
108
108
  }), p.value || (e.value.creator.hidden = !1), p.value || (e.value.organization = e.value.creator), e.value.status = "published", e.value.date = {
109
109
  start: m.value[0],
110
110
  end: m.value[1]
111
- }, console.log(m.value), h.params.url ? (console.log(e.value), V(e.value).then((o) => {
111
+ }, console.log(m.value), h.params.url ? (console.log(e.value), C(e.value).then((o) => {
112
112
  v.push({ name: "Event", params: { url: o.url } });
113
113
  }).catch((o) => {
114
114
  console.log(o);
115
- })) : S(e.value).then((o) => {
115
+ })) : V(e.value).then((o) => {
116
116
  v.push({ name: "Event", params: { url: o.url } });
117
117
  }).catch((o) => {
118
118
  console.log(o);
@@ -126,8 +126,8 @@ const le = {
126
126
  });
127
127
  }
128
128
  return (o, a) => t(e) ? (d(), r("article", le, [
129
- i("div", ae, [
130
- s(y, {
129
+ s("div", ae, [
130
+ i(y, {
131
131
  photo: t(e).cover,
132
132
  "onUpdate:photo": a[0] || (a[0] = (l) => t(e).cover = l),
133
133
  uploadPath: "specials",
@@ -135,20 +135,20 @@ const le = {
135
135
  }, null, 8, ["photo"]),
136
136
  te
137
137
  ]),
138
- s(n, {
138
+ i(n, {
139
139
  field: t(e).name,
140
140
  "onUpdate:field": a[1] || (a[1] = (l) => t(e).name = l),
141
141
  placeholder: "Event name",
142
142
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
143
143
  }, null, 8, ["field"]),
144
- s(n, {
144
+ i(n, {
145
145
  field: t(e).description,
146
146
  "onUpdate:field": a[2] || (a[2] = (l) => t(e).description = l),
147
147
  type: "textfield",
148
148
  placeholder: "Enter short description",
149
149
  class: "mn-b-semi w-100 bg-grey pd-medium radius-small"
150
150
  }, null, 8, ["field"]),
151
- u.access.roles && (u.access.roles.includes("ROLE_MODERATOR") || u.access.roles.includes("ROLE_ADMIN")) ? (d(), r("h3", se, " Special Details ")) : f("", !0),
151
+ u.access.roles && (u.access.roles.includes("ROLE_MODERATOR") || u.access.roles.includes("ROLE_ADMIN")) ? (d(), r("h3", ie, " Special Details ")) : f("", !0),
152
152
  u.access.roles && (u.access.roles.includes("ROLE_MODERATOR") || u.access.roles.includes("ROLE_ADMIN")) ? (d(), B(E, {
153
153
  key: 1,
154
154
  label: "Special",
@@ -156,15 +156,15 @@ const le = {
156
156
  "onUpdate:radio": a[3] || (a[3] = (l) => t(e).special = !t(e).special),
157
157
  class: "mn-b-semi w-100 bg-black t-white pd-medium radius-small"
158
158
  }, null, 8, ["radio"])) : f("", !0),
159
- t(e).special ? (d(), r("div", ie, [
159
+ t(e).special ? (d(), r("div", se, [
160
160
  oe,
161
- s(n, {
161
+ i(n, {
162
162
  field: t(e).specialData.subtitle,
163
163
  "onUpdate:field": a[4] || (a[4] = (l) => t(e).specialData.subtitle = l),
164
164
  placeholder: "Event subtitle",
165
165
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
166
166
  }, null, 8, ["field"]),
167
- s(J, {
167
+ i(J, {
168
168
  images: t(e).specialData.logos,
169
169
  uploadPath: "/specials",
170
170
  text: {
@@ -180,7 +180,7 @@ const le = {
180
180
  }, null, 8, ["images"]),
181
181
  ne,
182
182
  de,
183
- s(k, {
183
+ i(k, {
184
184
  field: t(e).specialData.video,
185
185
  "onUpdate:field": a[6] || (a[6] = (l) => t(e).specialData.video = l),
186
186
  placeholder: "Upload video",
@@ -190,34 +190,34 @@ const le = {
190
190
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small t-black"
191
191
  }, null, 8, ["field"]),
192
192
  re,
193
- i("div", ue, [
194
- s(y, {
193
+ s("div", ue, [
194
+ i(y, {
195
195
  photo: t(e).specialData.ticketImage,
196
196
  "onUpdate:photo": a[8] || (a[8] = (l) => t(e).specialData.ticketImage = l),
197
197
  uploadPath: "/specials",
198
198
  class: "aspect-1x1 w-4r o-hidden radius-extra"
199
199
  }, null, 8, ["photo"]),
200
- i("div", pe, [
201
- s(n, {
200
+ s("div", pe, [
201
+ i(n, {
202
202
  field: t(e).specialData.ticketLinkStripe,
203
203
  "onUpdate:field": a[9] || (a[9] = (l) => t(e).specialData.ticketLinkStripe = l),
204
204
  placeholder: "Link to ticket stripe payment page",
205
205
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
206
206
  }, null, 8, ["field"]),
207
- s(n, {
207
+ i(n, {
208
208
  field: t(e).specialData.ticketPrice,
209
209
  "onUpdate:field": a[10] || (a[10] = (l) => t(e).specialData.ticketPrice = l),
210
210
  type: "number",
211
211
  placeholder: "Ticket price in baht",
212
212
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
213
213
  }, null, 8, ["field"]),
214
- s(n, {
214
+ i(n, {
215
215
  field: t(e).specialData.ticketText,
216
216
  "onUpdate:field": a[11] || (a[11] = (l) => t(e).specialData.ticketText = l),
217
217
  placeholder: "Promotion text for ticket in hero ",
218
218
  class: "w-100 bg-grey radius-small pd-medium"
219
219
  }, null, 8, ["field"]),
220
- s(n, {
220
+ i(n, {
221
221
  field: t(e).specialData.ticketTextButton,
222
222
  "onUpdate:field": a[12] || (a[12] = (l) => t(e).specialData.ticketTextButton = l),
223
223
  placeholder: "Text on 'Buy Ticket' button ",
@@ -227,56 +227,56 @@ const le = {
227
227
  ]),
228
228
  me,
229
229
  ce,
230
- s(n, {
230
+ i(n, {
231
231
  field: t(e).specialData.guestTitle,
232
232
  "onUpdate:field": a[13] || (a[13] = (l) => t(e).specialData.guestTitle = l),
233
233
  placeholder: "Title for Main Guest section",
234
234
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
235
235
  }, null, 8, ["field"]),
236
- s(n, {
236
+ i(n, {
237
237
  field: t(e).specialData.guestDescription,
238
238
  "onUpdate:field": a[14] || (a[14] = (l) => t(e).specialData.guestDescription = l),
239
239
  placeholder: "Description for Main Guest section",
240
240
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
241
241
  }, null, 8, ["field"]),
242
- i("div", fe, [
243
- s(n, {
242
+ s("div", fe, [
243
+ i(n, {
244
244
  field: t(e).specialData.guestFacebook,
245
245
  "onUpdate:field": a[15] || (a[15] = (l) => t(e).specialData.guestFacebook = l),
246
246
  placeholder: "Facebook of Main Guest",
247
247
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
248
248
  }, null, 8, ["field"]),
249
- s(n, {
249
+ i(n, {
250
250
  field: t(e).specialData.guestInstagram,
251
251
  "onUpdate:field": a[16] || (a[16] = (l) => t(e).specialData.guestInstagram = l),
252
252
  placeholder: "Instagram of Main Guest",
253
253
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
254
254
  }, null, 8, ["field"]),
255
- s(n, {
255
+ i(n, {
256
256
  field: t(e).specialData.guestTwitter,
257
257
  "onUpdate:field": a[17] || (a[17] = (l) => t(e).specialData.guestTwitter = l),
258
258
  placeholder: "Twitter of Main Guest",
259
259
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
260
260
  }, null, 8, ["field"]),
261
- s(n, {
261
+ i(n, {
262
262
  field: t(e).specialData.guestTelegram,
263
263
  "onUpdate:field": a[18] || (a[18] = (l) => t(e).specialData.guestTelegram = l),
264
264
  placeholder: "Telegram of Main Guest",
265
265
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
266
266
  }, null, 8, ["field"]),
267
- s(n, {
267
+ i(n, {
268
268
  field: t(e).specialData.guestSoundcloud,
269
269
  "onUpdate:field": a[19] || (a[19] = (l) => t(e).specialData.guestSoundcloud = l),
270
270
  placeholder: "Link to Main Guest soundcloud track",
271
271
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
272
272
  }, null, 8, ["field"]),
273
- s(n, {
273
+ i(n, {
274
274
  field: t(e).specialData.guestSpotify,
275
275
  "onUpdate:field": a[20] || (a[20] = (l) => t(e).specialData.guestSpotify = l),
276
276
  placeholder: "Link to Main guest spotify track",
277
277
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
278
278
  }, null, 8, ["field"]),
279
- s(n, {
279
+ i(n, {
280
280
  field: t(e).specialData.guestYoutube,
281
281
  "onUpdate:field": a[21] || (a[21] = (l) => t(e).specialData.guestYoutube = l),
282
282
  placeholder: "Link to Main guest youtube video",
@@ -284,7 +284,7 @@ const le = {
284
284
  }, null, 8, ["field"])
285
285
  ]),
286
286
  ge,
287
- s(k, {
287
+ i(k, {
288
288
  field: t(e).specialData.guestVideo,
289
289
  "onUpdate:field": a[22] || (a[22] = (l) => t(e).specialData.guestVideo = l),
290
290
  placeholder: "Upload video",
@@ -293,7 +293,7 @@ const le = {
293
293
  type: "file",
294
294
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small t-black"
295
295
  }, null, 8, ["field"]),
296
- s(P, {
296
+ i(P, {
297
297
  title: "Guests",
298
298
  placeholder: "No guests added yet",
299
299
  actions: [{
@@ -307,29 +307,29 @@ const le = {
307
307
  class: "mn-b-small gap-small cols-2-fit-content",
308
308
  key: g
309
309
  }, [
310
- s(y, {
310
+ i(y, {
311
311
  photo: l.photo,
312
312
  "onUpdate:photo": (c) => l.photo = c,
313
313
  uploadPath: "/specials",
314
314
  class: "aspect-1x1 w-8r o-hidden radius-extra"
315
315
  }, null, 8, ["photo", "onUpdate:photo"]),
316
- i("div", be, [
317
- i("div", he, [
318
- s(n, {
316
+ s("div", be, [
317
+ s("div", he, [
318
+ i(n, {
319
319
  field: l.name,
320
320
  "onUpdate:field": (c) => l.name = c,
321
321
  placeholder: "Name",
322
322
  class: "w-100 mn-b-thin bg-white radius-small pd-medium"
323
323
  }, null, 8, ["field", "onUpdate:field"]),
324
- s(n, {
324
+ i(n, {
325
325
  field: l.description,
326
326
  "onUpdate:field": (c) => l.description = c,
327
327
  placeholder: "Description",
328
328
  class: "w-100 mn-b-thin bg-white radius-small pd-medium"
329
329
  }, null, 8, ["field", "onUpdate:field"])
330
330
  ]),
331
- i("div", ve, [
332
- s(L, {
331
+ s("div", ve, [
332
+ i(L, {
333
333
  onClick: () => t(e).specialData.guests.splice(g, 1),
334
334
  class: "i-medium"
335
335
  }, null, 8, ["onClick"])
@@ -341,7 +341,7 @@ const le = {
341
341
  }, 8, ["actions"]),
342
342
  De,
343
343
  ke,
344
- s(P, {
344
+ i(P, {
345
345
  title: "Line Up",
346
346
  placeholder: "No line ups added yet",
347
347
  actions: [{
@@ -355,20 +355,20 @@ const le = {
355
355
  class: "mn-b-thin gap-small flex-nowrap flex",
356
356
  key: g
357
357
  }, [
358
- s(n, {
358
+ i(n, {
359
359
  field: l.name,
360
360
  "onUpdate:field": (c) => l.name = c,
361
361
  placeholder: "Name",
362
362
  class: "w-100 bg-grey radius-small pd-medium"
363
363
  }, null, 8, ["field", "onUpdate:field"]),
364
- s(n, {
364
+ i(n, {
365
365
  field: l.time,
366
366
  "onUpdate:field": (c) => l.time = c,
367
367
  placeholder: "Time",
368
368
  class: "w-100 bg-grey radius-small pd-medium"
369
369
  }, null, 8, ["field", "onUpdate:field"]),
370
- i("div", we, [
371
- s(L, {
370
+ s("div", we, [
371
+ i(L, {
372
372
  onClick: () => t(e).specialData.lineup.splice(g, 1),
373
373
  class: "i-medium"
374
374
  }, null, 8, ["onClick"])
@@ -378,7 +378,7 @@ const le = {
378
378
  _: 1
379
379
  }, 8, ["actions"]),
380
380
  ye,
381
- s(k, {
381
+ i(k, {
382
382
  field: t(e).specialData.lineupBackground,
383
383
  "onUpdate:field": a[24] || (a[24] = (l) => t(e).specialData.lineupBackground = l),
384
384
  placeholder: "Upload image",
@@ -390,31 +390,35 @@ const le = {
390
390
  Ue,
391
391
  xe,
392
392
  Te,
393
- s(n, {
393
+ i(n, {
394
394
  field: t(e).specialData.previousTitle,
395
395
  "onUpdate:field": a[26] || (a[26] = (l) => t(e).specialData.previousTitle = l),
396
- placeholder: "Name",
396
+ placeholder: "Title",
397
+ value: "Explore our exclusive party archive",
397
398
  class: "w-100 bg-grey radius-small pd-medium"
398
399
  }, null, 8, ["field"]),
399
- s(n, {
400
+ i(n, {
400
401
  field: t(e).specialData.previousDescription,
401
402
  "onUpdate:field": a[27] || (a[27] = (l) => t(e).specialData.previousDescription = l),
402
- placeholder: "Name",
403
+ label: "Description",
404
+ value: "Experience the ultimate party vibe at The Commune! Elevate your evening with distinctive and exhilarating activities, ensuring an unforgettable time. Dive into the excitement and make every moment special.",
403
405
  class: "w-100 bg-grey radius-small pd-medium"
404
406
  }, null, 8, ["field"]),
405
- s(n, {
406
- field: t(e).specialData.previousLink,
407
- "onUpdate:field": a[28] || (a[28] = (l) => t(e).specialData.previousLink = l),
408
- placeholder: "Name",
407
+ i(n, {
408
+ field: t(e).specialData.previousLinkText,
409
+ "onUpdate:field": a[28] || (a[28] = (l) => t(e).specialData.previousLinkText = l),
410
+ label: "Button",
411
+ value: "Check In Instagram",
409
412
  class: "w-100 bg-grey radius-small pd-medium"
410
413
  }, null, 8, ["field"]),
411
- s(n, {
412
- field: t(e).specialData.previousLinkText,
413
- "onUpdate:field": a[29] || (a[29] = (l) => t(e).specialData.previousLinkText = l),
414
- placeholder: "Name",
414
+ i(n, {
415
+ field: t(e).specialData.previousLink,
416
+ "onUpdate:field": a[29] || (a[29] = (l) => t(e).specialData.previousLink = l),
417
+ label: "Link",
418
+ value: "https://www.instagram.com/thecommune.phuket/",
415
419
  class: "w-100 bg-grey radius-small pd-medium"
416
420
  }, null, 8, ["field"]),
417
- s(k, {
421
+ i(k, {
418
422
  field: t(e).specialData.previousVideo,
419
423
  "onUpdate:field": a[30] || (a[30] = (l) => t(e).specialData.previousVideo = l),
420
424
  placeholder: "Upload image",
@@ -425,51 +429,51 @@ const le = {
425
429
  }, null, 8, ["field"])
426
430
  ])) : f("", !0),
427
431
  _e,
428
- s(t(I), {
432
+ i(t(A), {
429
433
  modelValue: m.value,
430
434
  "onUpdate:modelValue": a[32] || (a[32] = (l) => m.value = l),
431
- "alt-position": C,
435
+ "alt-position": S,
432
436
  range: "",
433
437
  class: "mn-b-semi"
434
438
  }, null, 8, ["modelValue"]),
435
439
  Pe,
436
440
  t(e) ? (d(), r("section", Ee, [
437
- s(A, {
441
+ i(I, {
438
442
  content: t(e).content,
439
443
  onUpdate: a[33] || (a[33] = (l) => t(e).content = l)
440
444
  }, null, 8, ["content"])
441
445
  ])) : f("", !0),
442
446
  t(e) ? (d(), r("section", Le, [
443
- i("div", Ve, [
447
+ s("div", Ce, [
444
448
  t(h).params.url ? (d(), r("a", {
445
449
  key: 0,
446
450
  onClick: a[34] || (a[34] = (l) => O()),
447
451
  class: "mn-r-auto bg-red t-white t-black button"
448
452
  }, "Delete")) : f("", !0),
449
- i("a", {
450
- onClick: a[35] || (a[35] = (l) => G()),
453
+ s("a", {
454
+ onClick: a[35] || (a[35] = (l) => F()),
451
455
  class: "mn-l-auto bg-white t-black button"
452
456
  }, "To Drafts"),
453
- i("a", {
454
- onClick: a[36] || (a[36] = (l) => N()),
457
+ s("a", {
458
+ onClick: a[36] || (a[36] = (l) => M()),
455
459
  class: "mn-l-thin bg-black t-white button"
456
460
  }, "Publish")
457
461
  ])
458
462
  ])) : f("", !0),
459
- s(z, {
463
+ i(z, {
460
464
  title: "Добавить участника",
461
- onClosePopup: M,
465
+ onClosePopup: G,
462
466
  isPopupOpen: w.value,
463
467
  class: "w-m-33r t-left pd-big bg-white radius-big"
464
468
  }, {
465
469
  default: D(() => [
466
- Se,
467
- s(H, {
470
+ Ve,
471
+ i(H, {
468
472
  onTagsChanged: a[37] || (a[37] = (l) => t(e).tags = l),
469
473
  tags: t(e).tags
470
474
  }, null, 8, ["tags"]),
471
- Ce,
472
- s(Y, {
475
+ Se,
476
+ i(Y, {
473
477
  modelValue: p.value,
474
478
  "onUpdate:modelValue": a[38] || (a[38] = (l) => p.value = l),
475
479
  options: t(U),
@@ -480,9 +484,9 @@ const le = {
480
484
  "track-by": "_id",
481
485
  class: "mn-b-medium bg-grey radius-medium pd-small"
482
486
  }, null, 8, ["modelValue", "options"]),
483
- p.value ? (d(), r("h5", Ne, "Options:")) : f("", !0),
484
- p.value ? (d(), r("div", Me, [
485
- s(E, {
487
+ p.value ? (d(), r("h5", Me, "Options:")) : f("", !0),
488
+ p.value ? (d(), r("div", Ge, [
489
+ i(E, {
486
490
  label: "Hide Author",
487
491
  radio: t(e).creator.hidden,
488
492
  "onUpdate:radio": a[39] || (a[39] = (l) => t(e).creator.hidden = l),
@@ -490,8 +494,8 @@ const le = {
490
494
  class: "w-100"
491
495
  }, null, 8, ["radio"])
492
496
  ])) : f("", !0),
493
- s(K, {
494
- submit: F,
497
+ i(K, {
498
+ submit: N,
495
499
  callback: o.redirectTo,
496
500
  class: "w-100 bg-black t-white"
497
501
  }, {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const t=require("../sections/Feed.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Chips/Chips.vue2.cjs");require("../../../../components/Popup/Popup.vue.cjs");require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../reports/store/reports.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");const i=require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");require("../../../community/store/reactions.cjs");const o=require("../../store/events.cjs");require("../sections/List.vue2.cjs");const s={__name:"Events",setup(c){const r=u.useRoute();return u.useRouter(),(n,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(t.default,{category:e.unref(r).params.category,user:i.state.user._id,period:e.unref(r).query.period,selectedDate:o.state.filter.date},null,8,["category","user","period","selectedDate"])]))}};exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const t=require("../sections/Feed.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Chips/Chips.vue2.cjs");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");require("../../../reports/store/reports.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");const i=require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");require("../../../community/store/reactions.cjs");const o=require("../../store/events.cjs");require("../sections/List.vue2.cjs");const s={__name:"Events",setup(c){const r=u.useRoute();return u.useRouter(),(n,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(t.default,{category:e.unref(r).params.category,user:i.state.user._id,period:e.unref(r).query.period,selectedDate:o.state.filter.date},null,8,["category","user","period","selectedDate"])]))}};exports.default=s;
@@ -6,9 +6,9 @@ import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
6
6
  import s from "../sections/Feed.vue.js";
7
7
  import "../../../../components/Loader/Loader.vue.js";
8
8
  import "../../../../components/Chips/Chips.vue2.js";
9
- import "../../../../components/Popup/Popup.vue.js";
10
- import "../../../../components/Button/Button.vue2.js";
11
- import "../../../../components/Select/Select.vue.js";
9
+ import "../../../../components/Popup/Popup.vue2.js";
10
+ import "../../../../components/Button/Button.vue.js";
11
+ import "../../../../components/Select/Select.vue2.js";
12
12
  import "../../../reports/store/reports.js";
13
13
  import "../../../../components/Dropdown/Dropdown.vue2.js";
14
14
  import { state as a } from "../../../auth/store/auth.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("vue-i18n");const f=require("../../../../components/Countdown/Countdown.vue.cjs");require("./HeroEvent.vue2.cjs");const g=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),x={class:"t-white t-center w-100 pos-relative gap-thin cols-2 pos-relative"},B={style:{"min-height":"20rem"},class:"desktop-only radius-big o-hidden bg-black pos-relative"},E=["src"],w=["src"],V={class:"content-hero-refactor radius-big o-hidden bg-black pd-big mn-r-auto mn-l-auto t-white flex-h-center flex-column o-hidden flex-v-start t-left flex w-100 h-100 gap-zero"},N={class:"mn-b-big z-index-1 flex-nowrap flex gap-small"},z=["src"],S={class:"pd-thin z-index-1 w-max br-solid br-2px br-white radius-extra mn-b-thin"},C={class:"z-index-1 t-main mn-b-semi"},j={class:"z-index-1 p-big mn-b-semi"},D={class:"z-index-1 t-transp p-small mn-b-thin"},T={key:0,class:"bg-white t-black pd-t-nano pd-b-nano pd-r-micro pd-l-micro radius-extra"},q={key:1,class:"z-index-1 mn-t-medium mn-b-small flex-nowrap flex gap-thin"},H=["src"],L=["src"],M={__name:"HeroEvent",props:{content:{type:Object},options:{type:Object}},setup(t){const k=t,n=e.ref(null);var l=!1;function v(){n.value.onplaying=function(){l=!0},n.value.onpause=function(){l=!1}}async function b(){if(n.value.paused&&!l)return n.value.play()}e.onMounted(()=>{v(),b()});function h(){var o;gtag("event","buy_ticket",{event_category:"conversion",event_label:"Buy Ticket"}),window.open((o=k.content)==null?void 0:o.ticketLinkStripe)}return(o,c)=>{var i,s,a,r,d,m,u,p;return e.openBlock(),e.createElementBlock("section",x,[e.createElementVNode("div",B,[t.content.cover&&!t.content.video?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.content.cover,class:"desktop-only object-fit-cover pos-absolute z-index-0 pos-t-0 pos-l-0 w-100 h-100"},null,8,E)):e.createCommentVNode("",!0),t.content.video?(e.openBlock(),e.createElementBlock("video",{key:1,style:{"object-fit":"cover"},ref_key:"videoElement",ref:n,class:"pos-absolute pos-t-0 pos-l-0 w-100 h-100",preload:"",autoplay:"",muted:"",loop:"",playsinlineclass:"",playsinline:"",src:t.content.video,itemprop:"video",type:"video/webm"},null,8,w)):e.createCommentVNode("",!0)]),e.createElementVNode("div",V,[e.createElementVNode("div",N,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.content.logos,y=>(e.openBlock(),e.createElementBlock("img",{class:"radius-thin i-big",src:y},null,8,z))),256))]),e.createElementVNode("h3",S,e.toDisplayString((i=t.content)==null?void 0:i.subtitle),1),e.createElementVNode("h1",C,e.toDisplayString((s=t.content)==null?void 0:s.title),1),e.createElementVNode("p",j,e.toDisplayString((a=t.content)==null?void 0:a.description),1),e.createElementVNode("p",D,[e.createElementVNode("span",null,e.toDisplayString((r=t.content)==null?void 0:r.ticketText),1),(d=t.options)!=null&&d.price?(e.openBlock(),e.createElementBlock("span",T,e.toDisplayString((m=t.options)==null?void 0:m.price)+" "+e.toDisplayString(o.returnCurrency()),1)):e.createCommentVNode("",!0)]),t.options.date?(e.openBlock(),e.createBlock(f.default,{key:0,class:"z-index-1 mn-t-medium w-100 w-max-30r",date:t.options.date},null,8,["date"])):e.createCommentVNode("",!0),(u=t.content)!=null&&u.ticketLinkStripe?(e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("a",{href:"#",onClick:c[0]||(c[0]=y=>h()),class:"pd-l-medium pd-r-medium pd-t-small pd-b-small radius-extra uppercase t-medium t-black bg-white"},e.toDisplayString(((p=t.content)==null?void 0:p.ticketTextButton)||"Buy Ticket"),1)])):e.createCommentVNode("",!0),t.content.cover&&!t.content.video?(e.openBlock(),e.createElementBlock("img",{key:2,style:{"object-fit":"cover",opacity:"0.2"},src:t.content.cover,class:"mobile-only pos-absolute z-index-0 pos-t-0 pos-l-0 w-100 h-100"},null,8,H)):e.createCommentVNode("",!0),t.content.video?(e.openBlock(),e.createElementBlock("video",{key:3,style:{"object-fit":"cover",opacity:"0.2"},ref_key:"videoElement",ref:n,class:"mobile-only pos-absolute z-index-0 pos-t-0 pos-l-0 w-100 h-100",preload:"",autoplay:"",muted:"",loop:"",playsinlineclass:"",playsinline:"",src:t.content.video,itemprop:"video",type:"video/webm"},null,8,L)):e.createCommentVNode("",!0)])])}}},O=g.default(M,[["__scopeId","data-v-6df795ff"]]);exports.default=O;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("vue-i18n");const g=require("../../../../components/Countdown/Countdown.vue.cjs");require("./HeroEvent.vue2.cjs");const x=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),B={class:"t-white t-center w-100 pos-relative gap-thin cols-2 pos-relative"},E={style:{"min-height":"20rem"},class:"desktop-only radius-big o-hidden bg-black pos-relative"},w=["src"],V=["src","type"],N={class:"content-hero-refactor radius-big o-hidden bg-black pd-big mn-r-auto mn-l-auto t-white flex-h-center flex-column o-hidden flex-v-start t-left flex w-100 h-100 gap-zero"},z={class:"mn-b-big z-index-1 flex-nowrap flex gap-small"},S=["src"],C={class:"pd-thin z-index-1 w-max br-solid br-2px br-white radius-extra mn-b-thin"},j={class:"z-index-1 t-main mn-b-semi"},D={class:"z-index-1 p-big mn-b-semi"},T={class:"z-index-1 t-transp p-small mn-b-thin"},q={key:0,class:"bg-white t-black pd-t-nano pd-b-nano pd-r-micro pd-l-micro radius-extra"},H={key:1,class:"z-index-1 mn-t-medium mn-b-small flex-nowrap flex gap-thin"},L=["src"],M=["src"],O={__name:"HeroEvent",props:{content:{type:Object},options:{type:Object}},setup(t){const v=t,o=e.ref(null);var i=!1;function b(){o.value.onplaying=function(){i=!0},o.value.onpause=function(){i=!1}}function k(n){return n.endsWith(".mp4")?"video/mp4":n.endsWith(".webm")?"video/webm":""}async function h(){if(o.value.paused&&!i)return o.value.play()}e.onMounted(()=>{b(),h()});function f(){var n;gtag("event","buy_ticket",{event_category:"conversion",event_label:"Buy Ticket"}),window.open((n=v.content)==null?void 0:n.ticketLinkStripe)}return(n,c)=>{var l,s,a,r,d,m,u,p;return e.openBlock(),e.createElementBlock("section",B,[e.createElementVNode("div",E,[t.content.cover&&!t.content.video?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.content.cover,class:"desktop-only object-fit-cover pos-absolute z-index-0 pos-t-0 pos-l-0 w-100 h-100"},null,8,w)):e.createCommentVNode("",!0),t.content.video?(e.openBlock(),e.createElementBlock("video",{key:1,style:{"object-fit":"cover"},ref_key:"videoElement",ref:o,class:"pos-absolute pos-t-0 pos-l-0 w-100 h-100",preload:"",autoplay:"",muted:"",loop:"",playsinlineclass:"",playsinline:"",itemprop:"video",type:"video/webm"},[e.createElementVNode("source",{src:t.content.video,type:k(t.content.video)},null,8,V)],512)):e.createCommentVNode("",!0)]),e.createElementVNode("div",N,[e.createElementVNode("div",z,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.content.logos,y=>(e.openBlock(),e.createElementBlock("img",{class:"radius-thin object-fit-contain i-big",src:y},null,8,S))),256))]),e.createElementVNode("h3",C,e.toDisplayString((l=t.content)==null?void 0:l.subtitle),1),e.createElementVNode("h1",j,e.toDisplayString((s=t.content)==null?void 0:s.title),1),e.createElementVNode("p",D,e.toDisplayString((a=t.content)==null?void 0:a.description),1),e.createElementVNode("p",T,[e.createElementVNode("span",null,e.toDisplayString((r=t.content)==null?void 0:r.ticketText),1),(d=t.options)!=null&&d.price?(e.openBlock(),e.createElementBlock("span",q,e.toDisplayString((m=t.options)==null?void 0:m.price)+" "+e.toDisplayString(n.returnCurrency()),1)):e.createCommentVNode("",!0)]),t.options.date?(e.openBlock(),e.createBlock(g.default,{key:0,class:"z-index-1 mn-t-medium w-100 w-max-30r",date:t.options.date},null,8,["date"])):e.createCommentVNode("",!0),(u=t.content)!=null&&u.ticketLinkStripe?(e.openBlock(),e.createElementBlock("div",H,[e.createElementVNode("a",{href:"#",onClick:c[0]||(c[0]=y=>f()),class:"pd-l-medium pd-r-medium pd-t-small pd-b-small radius-extra uppercase t-medium t-black bg-white"},e.toDisplayString(((p=t.content)==null?void 0:p.ticketTextButton)||"Buy Ticket"),1)])):e.createCommentVNode("",!0),t.content.cover&&!t.content.video?(e.openBlock(),e.createElementBlock("img",{key:2,style:{"object-fit":"cover",opacity:"0.2"},src:t.content.cover,class:"mobile-only pos-absolute z-index-0 pos-t-0 pos-l-0 w-100 h-100"},null,8,L)):e.createCommentVNode("",!0),t.content.video?(e.openBlock(),e.createElementBlock("video",{key:3,style:{"object-fit":"cover",opacity:"0.2"},ref_key:"videoElement",ref:o,class:"mobile-only pos-absolute z-index-0 pos-t-0 pos-l-0 w-100 h-100",preload:"",autoplay:"",muted:"",loop:"",playsinlineclass:"",playsinline:"",src:t.content.video,itemprop:"video",type:"video/webm"},null,8,M)):e.createCommentVNode("",!0)])])}}},P=x.default(O,[["__scopeId","data-v-e01b64fa"]]);exports.default=P;