@ozdao/prometheus-framework 0.2.35 → 0.2.37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. package/dist/main.css +1 -1
  2. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  3. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +42 -52
  4. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  5. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
  6. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
  7. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +2 -61
  8. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  9. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +2 -49
  10. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  11. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +49 -2
  12. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  13. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  14. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +39 -242
  16. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -0
  17. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +373 -0
  18. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -0
  19. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +4 -0
  20. package/dist/prometheus-framework/src/components/FieldPhone/click-outside.cjs +1 -2
  21. package/dist/prometheus-framework/src/components/FieldPhone/click-outside.js +13 -13
  22. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +111 -2
  24. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
  26. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -70
  28. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +49 -47
  30. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  32. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +45 -44
  34. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
  35. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +61 -56
  36. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  38. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue.js +1 -1
  40. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/events/store/events.js +59 -39
  42. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  44. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +31 -31
  46. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +85 -55
  48. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/orders/store/orders.js +30 -38
  50. package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +31 -21
  52. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  54. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  56. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +96 -93
  58. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  60. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  62. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  64. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  66. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +54 -74
  68. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +58 -48
  70. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/products/store/products.js +26 -26
  72. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  74. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  76. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +2 -2
  78. package/dist/prometheus-framework.cjs.js +13 -14
  79. package/dist/prometheus-framework.es.js +346 -557
  80. package/dist/style.css +1 -1
  81. package/package.json +1 -1
  82. package/src/components/Button/Button.vue +26 -19
  83. package/src/components/FieldBig/FieldBig.vue +1 -1
  84. package/src/components/FieldPhone/FieldPhone.vue +55 -304
  85. package/src/components/FieldPhone/FieldPhone2.vue +671 -0
  86. package/src/components/FieldPhone/click-outside.js +16 -11
  87. package/src/components/Footer/Footer.vue +4 -4
  88. package/src/components/Header/Header.vue +2 -1
  89. package/src/components/Select/Select.vue +2 -1
  90. package/src/modules/chats/components/sections/ChatWindow.vue +3 -1
  91. package/src/modules/chats/store/chat.store.js +1 -3
  92. package/src/modules/events/components/pages/EditEvent.vue +2 -1
  93. package/src/modules/events/components/pages/Event.vue +8 -2
  94. package/src/modules/events/components/sections/SectionMainGuest.vue +1 -1
  95. package/src/modules/events/components/sections/SectionSpecialGuests.vue +0 -1
  96. package/src/modules/events/store/events.js +23 -3
  97. package/src/modules/globals/mixins/mixins.js +33 -2
  98. package/src/modules/landing/components/sections/HeroGovernance.vue +156 -0
  99. package/src/modules/marketplace/components/sections/Filters.vue +3 -0
  100. package/src/modules/marketplace/router/marketplace.js +1 -0
  101. package/src/modules/orders/components/blocks/StatusHistory.vue +8 -3
  102. package/src/modules/orders/components/pages/EditOrder.vue +9 -11
  103. package/src/modules/orders/components/pages/FormOrder.vue +58 -46
  104. package/src/modules/orders/components/pages/Order.vue +63 -42
  105. package/src/modules/orders/components/sections/FormOrderDetails.vue +50 -18
  106. package/src/modules/orders/controllers/orders.controller.js +10 -1
  107. package/src/modules/orders/models/order.model.js +1 -0
  108. package/src/modules/orders/store/orders.js +21 -27
  109. package/src/modules/orders/store/shopcart.js +14 -2
  110. package/src/modules/organizations/components/sections/DetailsTab.vue +2 -2
  111. package/src/modules/products/components/sections/FilterProducts.vue +3 -4
  112. package/src/modules/products/components/sections/HeroRecommendation.vue +29 -2
  113. package/src/modules/products/components/sections/SectionProduct.vue +14 -9
  114. package/src/modules/products/controllers/products.controller.js +26 -17
  115. package/src/modules/products/routes/products.routes.js +6 -6
  116. package/src/modules/products/store/products.js +10 -10
  117. package/src/styles/config.scss +10 -3
@@ -1,13 +1,13 @@
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";
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 R, withCtx as D, Fragment as x, renderList as P, createTextVNode as A } from "vue";
2
2
  import "../../../constructor/components/elements/Textarea.vue.js";
3
3
  import B from "../../../constructor/components/sections/Constructor.vue.js";
4
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
6
  import T from "../../../../components/Block/Block.vue.js";
7
- import z from "../../../../components/Popup/Popup.vue2.js";
7
+ import z from "../../../../components/Popup/Popup.vue.js";
8
8
  import n from "../../../../components/Field/Field.vue2.js";
9
9
  import H from "../../../../components/FieldTags/BlockTags.vue.js";
10
- import E from "../../../../components/Checkbox/Checkbox.vue2.js";
10
+ import E from "../../../../components/Checkbox/Checkbox.vue.js";
11
11
  import J from "../../../../components/SelectMulti/SelectMulti.vue.js";
12
12
  import w from "../../../../components/Upload/Upload.vue.js";
13
13
  import y from "../../../../components/UploadImage/UploadImage.vue.js";
@@ -28,25 +28,25 @@ const le = {
28
28
  }, ie = {
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("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 = {
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), we = /* @__PURE__ */ i("h4", { class: "mn-b-thin" }, " Lineup Section ", -1), ke = { 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("h5", { class: "mn-b-thin" }, " Video in Previous Partys Section ", -1), _e = /* @__PURE__ */ i("h3", { class: "mn-b-small" }, "Date", -1), xe = /* @__PURE__ */ i("h3", { class: "mn-b-small" }, "Description", -1), Pe = {
32
32
  key: 3,
33
33
  class: "pd-b-extra w-100 bg-grey pd-big radius-big"
34
- }, Pe = {
34
+ }, Te = {
35
35
  key: 4,
36
36
  class: "pd-thin pos-sticky pos-l-0 pos-b-0 w-100"
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 = {
37
+ }, Ee = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, Ve = /* @__PURE__ */ i("h3", { class: "mn-b-small" }, "Final Touches", -1), Ce = /* @__PURE__ */ i("h5", { class: "mn-b-thin" }, "Add to public:", -1), Se = {
38
38
  key: 0,
39
39
  class: "mn-b-thin"
40
- }, Se = {
40
+ }, Le = {
41
41
  key: 1,
42
42
  class: "mn-b-medium br-grey br-2px br-solid pd-small radius-big"
43
- }, el = {
43
+ }, ll = {
44
44
  __name: "EditEvent",
45
45
  setup(Me) {
46
46
  const h = j(), v = q();
47
47
  let e = b(null), U = b(null);
48
- const _ = b([]), p = b(null), m = b(), M = () => ({ top: 0, left: 0 });
49
- N(async () => {
48
+ const _ = b([]), p = b(null), m = b(), L = () => ({ top: 0, left: 0 });
49
+ $(async () => {
50
50
  if (h.params.url) {
51
51
  const a = await Q({ user: u.user._id, url: h.params.url });
52
52
  e.value = a.pop(), console.log(e.value);
@@ -81,10 +81,10 @@ const le = {
81
81
  }));
82
82
  });
83
83
  const k = b(!1);
84
- function G() {
84
+ function M() {
85
85
  k.value = !0;
86
86
  }
87
- function L() {
87
+ function G() {
88
88
  k.value = !1;
89
89
  }
90
90
  function F() {
@@ -101,7 +101,7 @@ const le = {
101
101
  console.error(o);
102
102
  });
103
103
  }
104
- function O() {
104
+ function N() {
105
105
  p.value && (e.value.owner = {
106
106
  target: p.value._id,
107
107
  type: "organization"
@@ -118,7 +118,7 @@ const le = {
118
118
  console.log(o);
119
119
  });
120
120
  }
121
- function $() {
121
+ function O() {
122
122
  confirm("Are you sure you want to delete this event?") && Z(e.value._id).then((o) => {
123
123
  v.push({ name: "User Events", params: { _id: e.value.creator.target._id } });
124
124
  }).catch((o) => {
@@ -179,6 +179,7 @@ const le = {
179
179
  class: "mn-b-thin bg-grey radius-small"
180
180
  }, null, 8, ["images"]),
181
181
  ne,
182
+ de,
182
183
  s(w, {
183
184
  field: t(e).specialData.video,
184
185
  "onUpdate:field": a[6] || (a[6] = (l) => t(e).specialData.video = l),
@@ -188,15 +189,15 @@ const le = {
188
189
  type: "file",
189
190
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small t-black"
190
191
  }, null, 8, ["field"]),
191
- de,
192
- i("div", re, [
192
+ re,
193
+ i("div", ue, [
193
194
  s(y, {
194
195
  photo: t(e).specialData.ticketImage,
195
196
  "onUpdate:photo": a[8] || (a[8] = (l) => t(e).specialData.ticketImage = l),
196
197
  uploadPath: "/specials",
197
198
  class: "aspect-1x1 w-4r o-hidden radius-extra"
198
199
  }, null, 8, ["photo"]),
199
- i("div", ue, [
200
+ i("div", pe, [
200
201
  s(n, {
201
202
  field: t(e).specialData.ticketLinkStripe,
202
203
  "onUpdate:field": a[9] || (a[9] = (l) => t(e).specialData.ticketLinkStripe = l),
@@ -212,11 +213,11 @@ const le = {
212
213
  }, null, 8, ["field"])
213
214
  ])
214
215
  ]),
215
- pe,
216
216
  me,
217
+ ce,
217
218
  s(n, {
218
- field: t(e).specialData.titleMainGuest,
219
- "onUpdate:field": a[11] || (a[11] = (l) => t(e).specialData.titleMainGuest = l),
219
+ field: t(e).specialData.guestTitle,
220
+ "onUpdate:field": a[11] || (a[11] = (l) => t(e).specialData.guestTitle = l),
220
221
  placeholder: "Title for Main Guest section",
221
222
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
222
223
  }, null, 8, ["field"]),
@@ -226,7 +227,7 @@ const le = {
226
227
  placeholder: "Description for Main Guest section",
227
228
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
228
229
  }, null, 8, ["field"]),
229
- i("div", ce, [
230
+ i("div", fe, [
230
231
  s(n, {
231
232
  field: t(e).specialData.guestFacebook,
232
233
  "onUpdate:field": a[13] || (a[13] = (l) => t(e).specialData.guestFacebook = l),
@@ -264,7 +265,7 @@ const le = {
264
265
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
265
266
  }, null, 8, ["field"])
266
267
  ]),
267
- fe,
268
+ ge,
268
269
  s(w, {
269
270
  field: t(e).specialData.guestVideo,
270
271
  "onUpdate:field": a[19] || (a[19] = (l) => t(e).specialData.guestVideo = l),
@@ -294,8 +295,8 @@ const le = {
294
295
  uploadPath: "/specials",
295
296
  class: "aspect-1x1 w-8r o-hidden radius-extra"
296
297
  }, null, 8, ["photo", "onUpdate:photo"]),
297
- i("div", ge, [
298
- i("div", be, [
298
+ i("div", be, [
299
+ i("div", he, [
299
300
  s(n, {
300
301
  field: l.name,
301
302
  "onUpdate:field": (c) => l.name = c,
@@ -309,7 +310,7 @@ const le = {
309
310
  class: "w-100 mn-b-thin bg-white radius-small pd-medium"
310
311
  }, null, 8, ["field", "onUpdate:field"])
311
312
  ]),
312
- i("div", he, [
313
+ i("div", ve, [
313
314
  s(V, {
314
315
  onClick: () => t(e).specialData.guests.splice(g, 1),
315
316
  class: "i-medium"
@@ -320,8 +321,8 @@ const le = {
320
321
  ]),
321
322
  _: 1
322
323
  }, 8, ["actions"]),
323
- ve,
324
324
  De,
325
+ we,
325
326
  s(T, {
326
327
  title: "Line Up",
327
328
  placeholder: "No line ups added yet",
@@ -348,7 +349,7 @@ const le = {
348
349
  placeholder: "Time",
349
350
  class: "w-100 bg-grey radius-small pd-medium"
350
351
  }, null, 8, ["field", "onUpdate:field"]),
351
- i("div", we, [
352
+ i("div", ke, [
352
353
  s(V, {
353
354
  onClick: () => t(e).specialData.lineup.splice(g, 1),
354
355
  class: "i-medium"
@@ -358,7 +359,7 @@ const le = {
358
359
  ]),
359
360
  _: 1
360
361
  }, 8, ["actions"]),
361
- ke,
362
+ ye,
362
363
  s(w, {
363
364
  field: t(e).specialData.lineupBackground,
364
365
  "onUpdate:field": a[21] || (a[21] = (l) => t(e).specialData.lineupBackground = l),
@@ -368,7 +369,7 @@ const le = {
368
369
  type: "file",
369
370
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small t-black"
370
371
  }, null, 8, ["field"]),
371
- ye,
372
+ Ue,
372
373
  s(w, {
373
374
  field: t(e).specialData.previousVideo,
374
375
  "onUpdate:field": a[23] || (a[23] = (l) => t(e).specialData.previousVideo = l),
@@ -379,26 +380,26 @@ const le = {
379
380
  class: "mn-b-thin w-100 bg-grey pd-medium radius-small t-black"
380
381
  }, null, 8, ["field"])
381
382
  ])) : f("", !0),
382
- Ue,
383
+ _e,
383
384
  s(t(I), {
384
385
  modelValue: m.value,
385
386
  "onUpdate:modelValue": a[25] || (a[25] = (l) => m.value = l),
386
- "alt-position": M,
387
+ "alt-position": L,
387
388
  range: "",
388
389
  class: "mn-b-semi"
389
390
  }, null, 8, ["modelValue"]),
390
- _e,
391
- t(e) ? (d(), r("section", xe, [
391
+ xe,
392
+ t(e) ? (d(), r("section", Pe, [
392
393
  s(B, {
393
394
  content: t(e).content,
394
395
  onUpdate: a[26] || (a[26] = (l) => t(e).content = l)
395
396
  }, null, 8, ["content"])
396
397
  ])) : f("", !0),
397
- t(e) ? (d(), r("section", Pe, [
398
- i("div", Te, [
398
+ t(e) ? (d(), r("section", Te, [
399
+ i("div", Ee, [
399
400
  t(h).params.url ? (d(), r("a", {
400
401
  key: 0,
401
- onClick: a[27] || (a[27] = (l) => $()),
402
+ onClick: a[27] || (a[27] = (l) => O()),
402
403
  class: "mn-r-auto bg-red t-white t-black button"
403
404
  }, "Delete")) : f("", !0),
404
405
  i("a", {
@@ -406,24 +407,24 @@ const le = {
406
407
  class: "mn-l-auto bg-white t-black button"
407
408
  }, "To Drafts"),
408
409
  i("a", {
409
- onClick: a[29] || (a[29] = (l) => G()),
410
+ onClick: a[29] || (a[29] = (l) => M()),
410
411
  class: "mn-l-thin bg-black t-white button"
411
412
  }, "Publish")
412
413
  ])
413
414
  ])) : f("", !0),
414
415
  s(z, {
415
416
  title: "Добавить участника",
416
- onClosePopup: L,
417
+ onClosePopup: G,
417
418
  isPopupOpen: k.value,
418
419
  class: "w-m-33r t-left pd-big bg-white radius-big"
419
420
  }, {
420
421
  default: D(() => [
421
- Ee,
422
+ Ve,
422
423
  s(H, {
423
424
  onTagsChanged: a[30] || (a[30] = (l) => t(e).tags = l),
424
425
  tags: t(e).tags
425
426
  }, null, 8, ["tags"]),
426
- Ve,
427
+ Ce,
427
428
  s(J, {
428
429
  modelValue: p.value,
429
430
  "onUpdate:modelValue": a[31] || (a[31] = (l) => p.value = l),
@@ -435,8 +436,8 @@ const le = {
435
436
  "track-by": "_id",
436
437
  class: "mn-b-medium bg-grey radius-medium pd-small"
437
438
  }, null, 8, ["modelValue", "options"]),
438
- p.value ? (d(), r("h5", Ce, "Options:")) : f("", !0),
439
- p.value ? (d(), r("div", Se, [
439
+ p.value ? (d(), r("h5", Se, "Options:")) : f("", !0),
440
+ p.value ? (d(), r("div", Le, [
440
441
  s(E, {
441
442
  label: "Hide Author",
442
443
  radio: t(e).creator.hidden,
@@ -446,7 +447,7 @@ const le = {
446
447
  }, null, 8, ["radio"])
447
448
  ])) : f("", !0),
448
449
  s(Y, {
449
- submit: O,
450
+ submit: N,
450
451
  callback: o.redirectTo,
451
452
  class: "w-100 bg-black t-white"
452
453
  }, {
@@ -462,5 +463,5 @@ const le = {
462
463
  }
463
464
  };
464
465
  export {
465
- el as default
466
+ ll as default
466
467
  };
@@ -1,4 +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 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(`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const d=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"),y=require("../sections/SectionPreviousEvents.vue.cjs"),f=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"),D=require("../../../constructor/components/elements/Image.vue.cjs"),C=require("../../store/events.cjs"),_=require("../../store/tickets.cjs"),o=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={__name:"Event",setup(w){const s=V.useRoute(),i=({ticket:a,hasTicket:u,targetId:n})=>{_.mutations.handleTicketUpdate(t.value,a,u,n)},c={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:D.default};function p(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),l=e.ref(!0);return e.onMounted(async()=>{l.value=!0;const a=await C.read({user:o.state.user._id,url:s.params.url});t.value=a[0],l.value=!1}),(a,u)=>(e.openBlock(),e.createElementBlock("section",N,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[l.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(()=>[!l.value&&!t.value?(e.openBlock(),e.createBlock(d.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(()=>[!l.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),!l.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),!l.value&&t.value&&t.value.special?(e.openBlock(),e.createElementBlock("section",{key:2,style:e.normalizeStyle(`
2
2
  background-image: url(${t.value.specialData.lineupBackground});
3
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;
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",{class:e.normalizeClass(["gap-big mn-b-thin",{"cols-2":t.value.specialData.guests.lenght>0,"cols-1":t.value.specialData.guests.lenght>1}])},[t.value.specialData.guests.lenght>0?(e.openBlock(),e.createBlock(g.default,{key:0,content:{title:"Special Guests",guests:t.value.specialData.guests}},null,8,["content"])):e.createCommentVNode("",!0),e.createVNode(k.default,{content:{title:"Lineup",lineup:t.value.specialData.lineup}},null,8,["content"])],2),e.createVNode(y.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),!l.value&&t.value&&!t.value.special?(e.openBlock(),e.createBlock(f.default,{key:3,onClick:u[0]||(u[0]=n=>a.$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(B.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:i},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,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[n.type]),e.mergeProps({key:r,index:r,component:n,prop:n,class:n.class,content:"content"},p(n),{class:"mn-b-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["event","owner","user"])):e.createCommentVNode("",!0),!l.value&&t.value&&!t.value.special?(e.openBlock(),e.createBlock(b.default,{key:4,type:"event",target:t.value._id,owner:o.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=q;
@@ -1,69 +1,69 @@
1
- import { ref as v, onMounted as D, openBlock as a, createElementBlock as c, createVNode as s, TransitionGroup as g, withCtx as p, Fragment as f, renderList as _, createCommentVNode as l, Transition as T, createBlock as o, normalizeStyle as w, createElementVNode as m, resolveDynamicComponent as $, mergeProps as B } from "vue";
1
+ import { ref as d, onMounted as b, openBlock as a, createElementBlock as c, createVNode as u, TransitionGroup as g, withCtx as p, Fragment as f, renderList as k, createCommentVNode as i, Transition as T, createBlock as s, normalizeStyle as w, createElementVNode as m, normalizeClass as $, resolveDynamicComponent as B, mergeProps as C } from "vue";
2
2
  import "../../../../components/Loader/Loader.vue.js";
3
- import C from "../../../../components/EmptyState/EmptyState.vue.js";
3
+ import L from "../../../../components/EmptyState/EmptyState.vue.js";
4
4
  import E from "../sections/HeroEvent.vue.js";
5
- import L from "../sections/SectionMainGuest.vue.js";
6
- import I from "../sections/SectionSpecialGuests.vue.js";
7
- import S from "../sections/SectionLineup.vue.js";
8
- import x from "../sections/SectionPreviousEvents.vue.js";
9
- import H from "../blocks/CardEvent.vue.js";
10
- import M from "../../../icons/skeletons/SkeletonEvent.vue.js";
11
- import U from "../elements/ButtonJoin.vue.js";
12
- import V from "../../../community/components/sections/Comments.vue.js";
13
- import N from "../../../constructor/components/elements/Image.vue.js";
14
- import { read as P } from "../../store/events.js";
5
+ import I from "../sections/SectionMainGuest.vue.js";
6
+ import S from "../sections/SectionSpecialGuests.vue.js";
7
+ import x from "../sections/SectionLineup.vue.js";
8
+ import H from "../sections/SectionPreviousEvents.vue.js";
9
+ import M from "../blocks/CardEvent.vue.js";
10
+ import U from "../../../icons/skeletons/SkeletonEvent.vue.js";
11
+ import V from "../elements/ButtonJoin.vue.js";
12
+ import N from "../../../community/components/sections/Comments.vue.js";
13
+ import P from "../../../constructor/components/elements/Image.vue.js";
14
+ import { read as z } from "../../store/events.js";
15
15
  import { mutations as F } from "../../store/tickets.js";
16
16
  import { state as r } from "../../../auth/store/auth.js";
17
- import { useRoute as z } from "vue-router";
18
- const G = { class: "pd-thin" }, j = /* @__PURE__ */ m("h2", { class: "mn-b-big w-100 t-center" }, "Event Details", -1), J = { class: "gap-big mn-b-thin cols-2" }, re = {
17
+ import { useRoute as G } from "vue-router";
18
+ const J = { class: "pd-thin" }, R = /* @__PURE__ */ m("h2", { class: "mn-b-big w-100 t-center" }, "Event Details", -1), re = {
19
19
  __name: "Event",
20
- setup(R) {
21
- const k = z(), y = ({ ticket: t, hasTicket: u, targetId: n }) => {
22
- F.handleTicketUpdate(e.value, t, u, n);
20
+ setup(j) {
21
+ const _ = G(), y = ({ ticket: t, hasTicket: o, targetId: n }) => {
22
+ F.handleTicketUpdate(e.value, t, o, n);
23
23
  }, h = {
24
24
  Textarea: "p",
25
25
  H2: "h2",
26
26
  Bullets: "p",
27
27
  Caption: "p",
28
- ImageUpload: N
28
+ ImageUpload: P
29
29
  };
30
- function b(t) {
30
+ function D(t) {
31
31
  return t.type === "Textarea" ? { innerHTML: t.content, class: "p-medium" } : t.type === "H2" ? { innerHTML: t.content, class: "h3" } : t.type === "Caption" ? { innerHTML: t.content } : t.type === "ImageUpload" ? { src: t.content } : {};
32
32
  }
33
- const e = v(null), i = v(!0);
34
- return D(async () => {
35
- i.value = !0;
36
- const t = await P({ user: r.user._id, url: k.params.url });
37
- e.value = t[0], i.value = !1;
38
- }), (t, u) => (a(), c("section", G, [
39
- s(g, {
33
+ const e = d(null), l = d(!0);
34
+ return b(async () => {
35
+ l.value = !0;
36
+ const t = await z({ user: r.user._id, url: _.params.url });
37
+ e.value = t[0], l.value = !1;
38
+ }), (t, o) => (a(), c("section", J, [
39
+ u(g, {
40
40
  tag: "ul",
41
41
  name: "fade",
42
42
  class: "o-hidden bg-grey radius-big"
43
43
  }, {
44
44
  default: p(() => [
45
- i.value ? (a(), c(f, { key: 0 }, _(3, (n) => s(M, { key: n })), 64)) : l("", !0)
45
+ l.value ? (a(), c(f, { key: 0 }, k(3, (n) => u(U, { key: n })), 64)) : i("", !0)
46
46
  ]),
47
47
  _: 1
48
48
  }),
49
- s(T, { name: "fade" }, {
49
+ u(T, { name: "fade" }, {
50
50
  default: p(() => [
51
- !i.value && !e.value ? (a(), o(C, {
51
+ !l.value && !e.value ? (a(), s(L, {
52
52
  key: 0,
53
53
  title: "No Event Found",
54
54
  description: "Currently, there are no events available. Please check back later.",
55
55
  class: "pd-medium mn-b-thin bg-grey radius-big"
56
- })) : l("", !0)
56
+ })) : i("", !0)
57
57
  ]),
58
58
  _: 1
59
59
  }),
60
- s(g, {
60
+ u(g, {
61
61
  tag: "ul",
62
62
  name: "fade",
63
63
  class: "container"
64
64
  }, {
65
65
  default: p(() => [
66
- !i.value && e.value && e.value.special ? (a(), o(E, {
66
+ !l.value && e.value && e.value.special ? (a(), s(E, {
67
67
  key: 0,
68
68
  content: {
69
69
  title: e.value.name,
@@ -80,8 +80,8 @@ const G = { class: "pd-thin" }, j = /* @__PURE__ */ m("h2", { class: "mn-b-big w
80
80
  price: e.value.specialData.ticketPrice
81
81
  },
82
82
  class: "mn-b-thin"
83
- }, null, 8, ["content", "options"])) : l("", !0),
84
- !i.value && e.value && e.value.special ? (a(), o(L, {
83
+ }, null, 8, ["content", "options"])) : i("", !0),
84
+ !l.value && e.value && e.value.special ? (a(), s(I, {
85
85
  key: 1,
86
86
  content: {
87
87
  title: e.value.specialData.guestTitle,
@@ -97,8 +97,8 @@ const G = { class: "pd-thin" }, j = /* @__PURE__ */ m("h2", { class: "mn-b-big w
97
97
  soundcloud: e.value.specialData.guestSoundcloud
98
98
  },
99
99
  class: "mn-b-thin"
100
- }, null, 8, ["content"])) : l("", !0),
101
- !i.value && e.value && e.value.special ? (a(), c("section", {
100
+ }, null, 8, ["content"])) : i("", !0),
101
+ !l.value && e.value && e.value.special ? (a(), c("section", {
102
102
  key: 2,
103
103
  style: w(`
104
104
  background-image: url(${e.value.specialData.lineupBackground});
@@ -106,23 +106,28 @@ const G = { class: "pd-thin" }, j = /* @__PURE__ */ m("h2", { class: "mn-b-big w
106
106
  `),
107
107
  class: "mn-b-thin t-white gap-big w-100 h-max o-hidden radius-big pd-big pos-relative bg-black"
108
108
  }, [
109
- j,
110
- m("div", J, [
111
- s(I, {
109
+ R,
110
+ m("div", {
111
+ class: $(["gap-big mn-b-thin", {
112
+ "cols-2": e.value.specialData.guests.lenght > 0,
113
+ "cols-1": e.value.specialData.guests.lenght > 1
114
+ }])
115
+ }, [
116
+ e.value.specialData.guests.lenght > 0 ? (a(), s(S, {
117
+ key: 0,
112
118
  content: {
113
119
  title: "Special Guests",
114
- description: "Enjoy a festive dining experience at The Commune, featuring a fine selection of dishes and drinks presented on your table throughout the evening.",
115
120
  guests: e.value.specialData.guests
116
121
  }
117
- }, null, 8, ["content"]),
118
- s(S, {
122
+ }, null, 8, ["content"])) : i("", !0),
123
+ u(x, {
119
124
  content: {
120
125
  title: "Lineup",
121
126
  lineup: e.value.specialData.lineup
122
127
  }
123
128
  }, null, 8, ["content"])
124
- ]),
125
- s(x, {
129
+ ], 2),
130
+ u(H, {
126
131
  content: {
127
132
  ticket: e.value.specialData.ticketImage
128
133
  },
@@ -131,10 +136,10 @@ const G = { class: "pd-thin" }, j = /* @__PURE__ */ m("h2", { class: "mn-b-big w
131
136
  video: e.value.specialData.previousVideo
132
137
  }
133
138
  }, null, 8, ["content", "options"])
134
- ], 4)) : l("", !0),
135
- !i.value && e.value && !e.value.special ? (a(), o(H, {
139
+ ], 4)) : i("", !0),
140
+ !l.value && e.value && !e.value.special ? (a(), s(M, {
136
141
  key: 3,
137
- onClick: u[0] || (u[0] = (n) => t.$router.push({ name: "Event", params: { url: e.value.url } })),
142
+ onClick: o[0] || (o[0] = (n) => t.$router.push({ name: "Event", params: { url: e.value.url } })),
138
143
  event: e.value,
139
144
  owner: e.value.owner,
140
145
  user: r.user._id,
@@ -142,7 +147,7 @@ const G = { class: "pd-thin" }, j = /* @__PURE__ */ m("h2", { class: "mn-b-big w
142
147
  class: "mn-b-medium bg-grey radius-big"
143
148
  }, {
144
149
  default: p(() => [
145
- r.user._id ? (a(), o(U, {
150
+ r.user._id ? (a(), s(V, {
146
151
  key: 0,
147
152
  type: "event",
148
153
  hasTicket: e.value.hasTicket,
@@ -150,26 +155,26 @@ const G = { class: "pd-thin" }, j = /* @__PURE__ */ m("h2", { class: "mn-b-big w
150
155
  userId: r.user._id,
151
156
  class: "mn-b-small w-100 pd-medium mn-auto",
152
157
  onUpdateTicket: y
153
- }, null, 8, ["hasTicket", "targetId", "userId"])) : l("", !0),
158
+ }, null, 8, ["hasTicket", "targetId", "userId"])) : i("", !0),
154
159
  m("section", null, [
155
- e.value && e.value.content ? (a(!0), c(f, { key: 0 }, _(e.value.content, (n, d) => (a(), o($(h[n.type]), B({
156
- key: d,
157
- index: d,
160
+ e.value && e.value.content ? (a(!0), c(f, { key: 0 }, k(e.value.content, (n, v) => (a(), s(B(h[n.type]), C({
161
+ key: v,
162
+ index: v,
158
163
  component: n,
159
164
  prop: n,
160
165
  class: n.class,
161
166
  content: "content"
162
- }, b(n), { class: "mn-b-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : l("", !0)
167
+ }, D(n), { class: "mn-b-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : i("", !0)
163
168
  ])
164
169
  ]),
165
170
  _: 1
166
- }, 8, ["event", "owner", "user"])) : l("", !0),
167
- !i.value && e.value && !e.value.special ? (a(), o(V, {
171
+ }, 8, ["event", "owner", "user"])) : i("", !0),
172
+ !l.value && e.value && !e.value.special ? (a(), s(N, {
168
173
  key: 4,
169
174
  type: "event",
170
175
  target: e.value._id,
171
176
  owner: r.user._id
172
- }, null, 8, ["target", "owner"])) : l("", !0)
177
+ }, null, 8, ["target", "owner"])) : i("", !0)
173
178
  ]),
174
179
  _: 1
175
180
  })
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const t=require("../sections/Feed.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Popup/Popup.vue.cjs");require("../../../../components/Button/Button.vue.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/Popup/Popup.vue2.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../reports/store/reports.cjs");require("../../../../components/Dropdown/Dropdown.vue.cjs");const i=require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");require("../../../community/store/reactions.cjs");const o=require("../../store/events.cjs");require("../sections/List.vue2.cjs");const s={__name:"Events",setup(c){const r=u.useRoute();return u.useRouter(),(n,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(t.default,{category:e.unref(r).params.category,user:i.state.user._id,period:e.unref(r).query.period,selectedDate:o.state.filter.date},null,8,["category","user","period","selectedDate"])]))}};exports.default=s;
@@ -5,11 +5,11 @@ import "../../../globals/localization/vue-i18n.js";
5
5
  import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
6
6
  import s from "../sections/Feed.vue.js";
7
7
  import "../../../../components/Loader/Loader.vue.js";
8
- import "../../../../components/Popup/Popup.vue.js";
8
+ import "../../../../components/Popup/Popup.vue2.js";
9
9
  import "../../../../components/Button/Button.vue.js";
10
10
  import "../../../../components/Select/Select.vue.js";
11
11
  import "../../../reports/store/reports.js";
12
- import "../../../../components/Dropdown/Dropdown.vue2.js";
12
+ import "../../../../components/Dropdown/Dropdown.vue.js";
13
13
  import { state as a } from "../../../auth/store/auth.js";
14
14
  import "../../../organizations/store/memberships.js";
15
15
  import "../../../community/store/reactions.js";
@@ -1,3 +1,3 @@
1
1
  "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("vue-i18n");require("vue-router");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/reports/store/reports.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/auth/store/auth.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/community/store/reactions.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/events/store/events.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/community/store/blogposts.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/spots/store/spots.cjs");const w=require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/products/store/categories.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/products/store/products.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/departments.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/middlewares/client/inputs.validation.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/invites.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/axios.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/node_modules/js-cookie/src/js.cookie.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/node_modules/vue-select/dist/vue-select.es.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs");require("./SectionMainGuest.vue2.cjs");const k={id:"mainguest",class:"o-hidden bg-black t-white pos-relative radius-big gap-zero pos-relative cols-2"},_={class:"pd-big pos-relative flex-column flex w-100 h-100 gap-zero"},E={class:"mn-b-big"},V=["innerHTML"],N=["src"],B=["src"],M={style:{"min-height":"20rem"},class:"o-hidden pos-relative"},S=["src"],j={__name:"SectionMainGuest",props:{content:{type:Object}},setup(t){const o=e.ref(null);let r=!1;function q(){o.value.onplaying=function(){r=!0},o.value.onpause=function(){r=!1}}async function v(){if(o.value.paused&&!r)return o.value.play()}return e.onMounted(()=>{q(),v()}),(b,z)=>{var i,n,l,s,a,c,u,d,m,f,h,p,g,y;return e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("div",_,[e.createVNode(e.unref(w.default),{telegram:(n=(i=t.content)==null?void 0:i.socials)==null?void 0:n.telegram,facebook:(s=(l=t.content)==null?void 0:l.socials)==null?void 0:s.facebook,instagram:(c=(a=t.content)==null?void 0:a.socials)==null?void 0:c.instagram,twitter:(d=(u=t.content)==null?void 0:u.socials)==null?void 0:d.twitter,class:"mn-b-semi"},null,8,["telegram","facebook","instagram","twitter"]),e.createElementVNode("h2",E,e.toDisplayString((m=t.content)==null?void 0:m.title),1),e.createElementVNode("p",{class:"p-medium",innerHTML:(f=t.content)==null?void 0:f.description},null,8,V),e.renderSlot(b.$slots,"default"),(h=t.content)!=null&&h.soundcloud?(e.openBlock(),e.createElementBlock("iframe",{key:0,class:"radius-big o-hidden mn-t-medium",width:"100%",height:"200",scrolling:"no",frameborder:"no",allow:"autoplay",src:`https://w.soundcloud.com/player/?url=https%3A//soundcloud.com/${t.content.soundcloud}
2
2
  &color=%23ff5500&auto_play=false&hide_related=false
3
- &show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true`},null,8,N)):e.createCommentVNode("",!0),(p=t.content)!=null&&p.spotify?(e.openBlock(),e.createElementBlock("iframe",{key:1,src:`https://open.spotify.com/embed/track/${(g=t.content)==null?void 0:g.spotify}?utm_source=generator`,width:"100%",height:"152",frameBorder:"0",allowfullscreen:"",allow:"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture",loading:"lazy",class:"mn-t-big"},null,8,B)):e.createCommentVNode("",!0)]),e.createElementVNode("div",M,[e.createElementVNode("video",{src:(y=t.content)==null?void 0:y.video,itemprop:"video",type:"video/mp4",ref_key:"videoElement",ref:o,class:"pos-absolute pos-t-0 pos-l-0 w-100 h-100 object-fit-cover",preload:"",autoplay:"",muted:"",loop:"",playsinlineclass:"",playsinline:""},null,8,S)])])}}};exports.default=j;
3
+ &show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true`},null,8,N)):e.createCommentVNode("",!0),(p=t.content)!=null&&p.spotify?(e.openBlock(),e.createElementBlock("iframe",{key:1,src:`https://open.spotify.com/embed/track/${(g=t.content)==null?void 0:g.spotify}?utm_source=generator`,width:"100%",height:"152",frameBorder:"0",allowfullscreen:"",allow:"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture",loading:"lazy",class:"mn-t-thin radius-big o-hidden"},null,8,B)):e.createCommentVNode("",!0)]),e.createElementVNode("div",M,[e.createElementVNode("video",{src:(y=t.content)==null?void 0:y.video,itemprop:"video",type:"video/mp4",ref_key:"videoElement",ref:o,class:"pos-absolute pos-t-0 pos-l-0 w-100 h-100 object-fit-cover",preload:"",autoplay:"",muted:"",loop:"",playsinlineclass:"",playsinline:""},null,8,S)])])}}};exports.default=j;
@@ -89,7 +89,7 @@ const $ = {
89
89
  allowfullscreen: "",
90
90
  allow: "autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture",
91
91
  loading: "lazy",
92
- class: "mn-t-big"
92
+ class: "mn-t-thin radius-big o-hidden"
93
93
  }, null, 8, L)) : w("", !0)
94
94
  ]),
95
95
  o("div", P, [
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../node_modules/axios/lib/axios.cjs"),u=require("vue"),l=require("../../globals/store/globals.cjs"),s=d.default.create({baseURL:process.env.API_URL,withCredentials:!0}),r=u.reactive({all:[],filter:{tags:[],period:"",date:null},pagination:{page:1,perPage:18},sort:{current:"popularity",ascending:!1},current:{_id:"",special:!1,specialData:{subtitle:null},cover:"",url:"",status:"",name:"",tags:[],date:{start:null,false:null},views:0,content:[]}});async function i(a={}){a.params=a.params||{},a.params.skip=a.skip||0,a.params.limit=a.limit||9,a.params.tags=a.tags||[],a.phase&&(a.params={phase:a.phase}),a.url&&(a.params={url:a.url}),a.period&&(a.params.period=a.period),a.category&&(a.params.category=a.category),a.organization&&(a.params.organization=a.organization),a.date&&(a.params.date=a.date),a.participant&&(a.params.participant=a.participant),a.owner&&(a.params.owner=a.owner),a.creator&&(a.params.creator=a.creator),a.user&&(a.params.user=a.user),a.sortOrder&&(a.params.sortOrder=a.sortOrder),a.sortParam&&(a.params.sortParam=a.sortParam),a.params.skip=a.skip||0,a.params.limit=a.limit||10;try{console.log("Request params:"+a.params);const e=await s.get("/api/events/read",{params:a.params});return console.log(a.params),a.url?t(e.data,"current"):t(e.data,"all"),Promise.resolve(e.data)}catch(e){return l.setError(e),Promise.reject(e)}}async function n(a){return s.post("/api/events/create",a).then(e=>(t(e.data,"current"),Promise.resolve(e.data)),e=>(l.setError(e),Promise.reject(e)))}async function f(a){return s.post("/api/events/update",a).then(e=>(t(e.data,"current"),Promise.resolve(e.data)),e=>(l.setError(e),Promise.reject(e)))}async function g(a){return await s.post("/api/events/delete",{_id:a}).then(e=>{const c=r.all.findIndex(m=>m._id===a);return c!==-1&&r.all.splice(c,1),Promise.resolve(e.data)},e=>(l.setError(e),Promise.reject(e)))}function t(a,e){r[e]=a}function v(){r.current={_id:"",cover:"",url:"",phase:"",name:"",tags:[],date:{start:null,false:null},views:0,content:[]}}u.watch(r,(a,e)=>{});exports.clean=v;exports.create=n;exports.read=i;exports.remove=g;exports.set=t;exports.state=r;exports.update=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../../../../node_modules/axios/lib/axios.cjs"),l=require("vue"),s=require("../../globals/store/globals.cjs"),c=m.default.create({baseURL:process.env.API_URL,withCredentials:!0}),r=l.reactive({all:[],filter:{tags:[],period:"",date:null},pagination:{page:1,perPage:18},sort:{current:"popularity",ascending:!1},current:{_id:"",special:!1,specialData:{},cover:"",url:"",status:"",name:"",tags:[],date:{start:null,false:null},views:0,content:[]}});async function d(e={}){e.params=e.params||{},e.params.skip=e.skip||0,e.params.limit=e.limit||9,e.params.tags=e.tags||[],e.phase&&(e.params={phase:e.phase}),e.url&&(e.params={url:e.url}),e.period&&(e.params.period=e.period),e.category&&(e.params.category=e.category),e.organization&&(e.params.organization=e.organization),e.date&&(e.params.date=e.date),e.participant&&(e.params.participant=e.participant),e.owner&&(e.params.owner=e.owner),e.creator&&(e.params.creator=e.creator),e.user&&(e.params.user=e.user),e.sortOrder&&(e.params.sortOrder=e.sortOrder),e.sortParam&&(e.params.sortParam=e.sortParam),e.params.skip=e.skip||0,e.params.limit=e.limit||10;try{console.log("Request params:"+e.params);const a=await c.get("/api/events/read",{params:e.params});return console.log(e.params),e.url?t(a.data,"current"):t(a.data,"all"),Promise.resolve(a.data)}catch(a){return s.setError(a),Promise.reject(a)}}async function n(e){return c.post("/api/events/create",e).then(a=>(t(a.data,"current"),Promise.resolve(a.data)),a=>(s.setError(a),Promise.reject(a)))}async function g(e){return c.post("/api/events/update",e).then(a=>(t(a.data,"current"),Promise.resolve(a.data)),a=>(s.setError(a),Promise.reject(a)))}async function f(e){return await c.post("/api/events/delete",{_id:e}).then(a=>{const u=r.all.findIndex(i=>i._id===e);return u!==-1&&r.all.splice(u,1),Promise.resolve(a.data)},a=>(s.setError(a),Promise.reject(a)))}function t(e,a){r[a]=e}function v(){r.current={_id:"",cover:"",url:"",phase:"",name:"",special:!1,specialData:{subtitle:"",logos:[],video:"",ticketImage:"",ticketLinkStripe:"",ticketPrice:"",guestTitle:"",guestDescription:"",guestFacebook:"",guestInstagram:"",guestTwitter:"",guestTelegram:"",guestSoundcloud:"",guestSpotify:"",guestVideo:"",guests:[],lineup:[],lineupBackground:"",previousVideo:""},tags:[],date:{start:null,false:null},views:0,content:[]}}l.watch(r,(e,a)=>{});exports.clean=v;exports.create=n;exports.read=d;exports.remove=f;exports.set=t;exports.state=r;exports.update=g;