@ozdao/prometheus-framework 0.2.36 → 0.2.37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) 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 +18 -18
  79. package/dist/prometheus-framework.es.js +507 -493
  80. package/dist/style.css +1 -1
  81. package/package.json +1 -1
  82. package/src/modules/globals/store/globals.js +0 -1
@@ -1,72 +1,4 @@
1
- import { watch as f, openBlock as s, createBlock as v, Teleport as y, createVNode as n, Transition as l, withCtx as i, createElementBlock as a, mergeProps as P, renderSlot as k, createCommentVNode as r, createElementVNode as x, normalizeClass as C } from "vue";
2
- import { useRoute as O, useRouter as T } from "vue-router";
3
- import { useI18n as b } from "vue-i18n";
4
- import g from "../../modules/icons/navigation/IconCross.vue.js";
5
- import "./Popup.vue.js";
6
- const z = {
7
- key: "popup-content",
8
- class: "pd-small popup-wrapper"
9
- }, I = {
10
- __name: "Popup",
11
- props: {
12
- isPopupOpen: {
13
- type: Boolean,
14
- default: !1
15
- },
16
- style: String
17
- },
18
- emits: ["close-popup"],
19
- setup(e, { emit: u }) {
20
- const m = e, c = u;
21
- function p() {
22
- c("close-popup");
23
- }
24
- return f(() => m.isPopupOpen, (o) => {
25
- o ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
26
- }), O(), T(), b({
27
- messages: {
28
- en: {},
29
- ru: {}
30
- }
31
- }), (o, t) => e.isPopupOpen ? (s(), v(y, {
32
- key: 0,
33
- to: "body"
34
- }, [
35
- n(l, {
36
- name: "TransitionTranslateY",
37
- appear: ""
38
- }, {
39
- default: i(() => [
40
- e.isPopupOpen ? (s(), a("div", z, [
41
- n(l, {
42
- name: "TransitionTranslateY",
43
- mode: "out-in"
44
- }, {
45
- default: i(() => [
46
- e.isPopupOpen ? (s(), a("section", P({
47
- key: 0,
48
- class: "pos-relative z-index-4"
49
- }, o.$attrs), [
50
- n(g, {
51
- onClick: t[0] || (t[0] = (d) => p()),
52
- class: "cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"
53
- }),
54
- k(o.$slots, "default")
55
- ], 16)) : r("", !0)
56
- ]),
57
- _: 3
58
- }),
59
- x("div", {
60
- onClick: t[1] || (t[1] = (d) => p()),
61
- class: C([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
62
- }, null, 2)
63
- ])) : r("", !0)
64
- ]),
65
- _: 3
66
- })
67
- ])) : r("", !0);
68
- }
69
- };
1
+ const e = "";
70
2
  export {
71
- I as default
3
+ e as default
72
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),B=require("../FieldPhone/click-outside.cjs");require("./Select.vue.cjs");const h=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),g={key:0,class:"t-transp mn-r-small"},b={class:"w-100"},S=["onClick"],w={key:0,class:"w-100"},C={key:0,class:"mn-t-thin invalid-feedback"},_={__name:"Select",props:{label:String,select:[String,Object],property:String,placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(n,{emit:m}){const i=m;let f=B.default;const t=n,o=e.ref(t.property?u(t.select,t.property,t.options):t.select),s=e.ref(!1);function k(){s.value=!1}function u(l,p,c){for(const a of c)if(a[p]===l||a===l)return a;return null}e.watch(()=>t.select,l=>{o.value=t.property?u(t.select,t.property,t.options):t.select});const v=e.computed(()=>t.select?t.options.filter(l=>l!==t.select):t.options),d=()=>{s.value=!s.value,i(s.value?"focus":"blur")},y=l=>{o.value=l,d(),t.property?i("update:select",o.value[t.property]):i("update:select",o.value)};return(l,p)=>{var c,a;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(d,["stop"]),class:e.normalizeClass([l.$attrs.class,"cursor-pointer flex-v-center flex-nowrap flex pos-relative"])},[n.label?(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("span",null,e.toDisplayString(n.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",b,[e.createElementVNode("span",null,e.toDisplayString((c=o.value)!=null&&c.name?(a=o.value)==null?void 0:a.name:o.value||n.placeholder),1)]),e.createVNode(e.Transition,{mode:"out-in",name:"TransitionTranslateY"},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass([l.$attrs.class,"bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,r=>(e.openBlock(),e.createElementBlock("li",{onClick:e.withModifiers(V=>y(r),["stop"])},[r?(e.openBlock(),e.createElementBlock("span",w,e.toDisplayString(r.name||r),1)):e.createCommentVNode("",!0)],8,S))),256))],2)):e.createCommentVNode("",!0)]),_:1})],2)),[[e.unref(f),k]]),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[n.validation?(e.openBlock(),e.createElementBlock("div",C," * "+e.toDisplayString(n.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},E=h.default(_,[["__scopeId","data-v-f58c80d7"]]);exports.default=E;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../FieldPhone/click-outside.cjs");require("./Select.vue.cjs");const g=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),B={key:0,class:"t-transp mn-r-small"},w={class:"w-100"},b=["onClick"],S={key:0,class:"w-100"},_={key:0,class:"mn-t-thin invalid-feedback"},C={__name:"Select",props:{label:String,select:[String,Object],property:String,placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(o,{emit:m}){const i=m;let f=y.default;const t=o,n=e.ref(t.property?u(t.select,t.property,t.options):t.select),a=e.ref(!1);function v(){a.value=!1}function u(l,p,c){for(const s of c)if(s[p]===l||s===l)return s;return null}e.watch(()=>t.select,l=>{n.value=t.property?u(t.select,t.property,t.options):t.select});const k=e.computed(()=>t.select?t.options.filter(l=>l!==t.select):t.options),d=()=>{a.value=!a.value,i(a.value?"focus":"blur")},h=l=>{n.value=l,d(),t.property?i("update:select",n.value[t.property]):i("update:select",n.value)};return(l,p)=>{var c,s;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(d,["stop"]),class:e.normalizeClass([l.$attrs.class,"cursor-pointer flex-v-center flex-nowrap flex pos-relative"])},[o.label?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("span",null,e.toDisplayString(o.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",w,[e.createElementVNode("span",null,e.toDisplayString((c=n.value)!=null&&c.name?(s=n.value)==null?void 0:s.name:n.value||o.placeholder),1)]),e.createVNode(e.Transition,{mode:"out-in",name:"TransitionTranslateY"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("ul",{class:e.normalizeClass([l.$attrs.class,"bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"]),style:{"min-width":"max-content"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,r=>(e.openBlock(),e.createElementBlock("li",{onClick:e.withModifiers(V=>h(r),["stop"])},[r?(e.openBlock(),e.createElementBlock("span",S,e.toDisplayString(r.name||r),1)):e.createCommentVNode("",!0)],8,b))),256))],2),[[e.vShow,a.value]])]),_:1})],2)),[[e.unref(f),v]]),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[o.validation?(e.openBlock(),e.createElementBlock("div",_," * "+e.toDisplayString(o.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},E=g.default(C,[["__scopeId","data-v-67f55841"]]);exports.default=E;
@@ -1,17 +1,17 @@
1
- import { ref as h, watch as j, computed as M, openBlock as l, createElementBlock as s, Fragment as k, withDirectives as N, withModifiers as b, normalizeClass as w, createElementVNode as m, toDisplayString as u, createCommentVNode as d, createVNode as _, Transition as g, withCtx as S, renderList as T, unref as $ } from "vue";
2
- import z from "../FieldPhone/click-outside.js";
1
+ import { ref as y, watch as M, computed as N, openBlock as s, createElementBlock as n, Fragment as k, withDirectives as b, withModifiers as w, normalizeClass as _, createElementVNode as u, toDisplayString as d, createCommentVNode as m, createVNode as g, Transition as S, withCtx as x, renderList as T, vShow as $, unref as z } from "vue";
2
+ import D from "../FieldPhone/click-outside.js";
3
3
  import "./Select.vue.js";
4
- import D from "../../../../_virtual/_plugin-vue_export-helper.js";
5
- const E = {
4
+ import E from "../../../../_virtual/_plugin-vue_export-helper.js";
5
+ const L = {
6
6
  key: 0,
7
7
  class: "t-transp mn-r-small"
8
- }, L = { class: "w-100" }, A = ["onClick"], F = {
8
+ }, A = { class: "w-100" }, F = ["onClick"], I = {
9
9
  key: 0,
10
10
  class: "w-100"
11
- }, I = {
11
+ }, P = {
12
12
  key: 0,
13
13
  class: "mn-t-thin invalid-feedback"
14
- }, P = {
14
+ }, Y = {
15
15
  __name: "Select",
16
16
  props: {
17
17
  label: String,
@@ -24,72 +24,74 @@ const E = {
24
24
  emits: ["update:select", "focus", "blur"],
25
25
  setup(o, { emit: C }) {
26
26
  const p = C;
27
- let O = z;
28
- const e = o, n = h(e.property ? f(e.select, e.property, e.options) : e.select), c = h(!1);
29
- function x() {
30
- c.value = !1;
27
+ let O = D;
28
+ const e = o, l = y(e.property ? f(e.select, e.property, e.options) : e.select), i = y(!1);
29
+ function B() {
30
+ i.value = !1;
31
31
  }
32
- function f(t, y, r) {
33
- for (const a of r)
34
- if (a[y] === t || a === t)
32
+ function f(t, h, c) {
33
+ for (const a of c)
34
+ if (a[h] === t || a === t)
35
35
  return a;
36
36
  return null;
37
37
  }
38
- j(() => e.select, (t) => {
39
- n.value = e.property ? f(e.select, e.property, e.options) : e.select;
38
+ M(() => e.select, (t) => {
39
+ l.value = e.property ? f(e.select, e.property, e.options) : e.select;
40
40
  });
41
- const B = M(() => e.select ? e.options.filter((t) => t !== e.select) : e.options), v = () => {
42
- c.value = !c.value, p(c.value ? "focus" : "blur");
43
- }, V = (t) => {
44
- n.value = t, v(), e.property ? p("update:select", n.value[e.property]) : p("update:select", n.value);
41
+ const V = N(() => e.select ? e.options.filter((t) => t !== e.select) : e.options), v = () => {
42
+ i.value = !i.value, p(i.value ? "focus" : "blur");
43
+ }, j = (t) => {
44
+ l.value = t, v(), e.property ? p("update:select", l.value[e.property]) : p("update:select", l.value);
45
45
  };
46
- return (t, y) => {
47
- var r, a;
48
- return l(), s(k, null, [
49
- N((l(), s("div", {
50
- onClick: b(v, ["stop"]),
51
- class: w([t.$attrs.class, "cursor-pointer flex-v-center flex-nowrap flex pos-relative"])
46
+ return (t, h) => {
47
+ var c, a;
48
+ return s(), n(k, null, [
49
+ b((s(), n("div", {
50
+ onClick: w(v, ["stop"]),
51
+ class: _([t.$attrs.class, "cursor-pointer flex-v-center flex-nowrap flex pos-relative"])
52
52
  }, [
53
- o.label ? (l(), s("div", E, [
54
- m("span", null, u(o.label), 1)
55
- ])) : d("", !0),
56
- m("li", L, [
57
- m("span", null, u((r = n.value) != null && r.name ? (a = n.value) == null ? void 0 : a.name : n.value || o.placeholder), 1)
53
+ o.label ? (s(), n("div", L, [
54
+ u("span", null, d(o.label), 1)
55
+ ])) : m("", !0),
56
+ u("li", A, [
57
+ u("span", null, d((c = l.value) != null && c.name ? (a = l.value) == null ? void 0 : a.name : l.value || o.placeholder), 1)
58
58
  ]),
59
- _(g, {
59
+ g(S, {
60
60
  mode: "out-in",
61
61
  name: "TransitionTranslateY"
62
62
  }, {
63
- default: S(() => [
64
- c.value ? (l(), s("ul", {
65
- key: 0,
66
- class: w([t.$attrs.class, "bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])
63
+ default: x(() => [
64
+ b(u("ul", {
65
+ class: _([t.$attrs.class, "bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"]),
66
+ style: { "min-width": "max-content" }
67
67
  }, [
68
- (l(!0), s(k, null, T(B.value, (i) => (l(), s("li", {
69
- onClick: b((Y) => V(i), ["stop"])
68
+ (s(!0), n(k, null, T(V.value, (r) => (s(), n("li", {
69
+ onClick: w((q) => j(r), ["stop"])
70
70
  }, [
71
- i ? (l(), s("span", F, u(i.name || i), 1)) : d("", !0)
72
- ], 8, A))), 256))
73
- ], 2)) : d("", !0)
71
+ r ? (s(), n("span", I, d(r.name || r), 1)) : m("", !0)
72
+ ], 8, F))), 256))
73
+ ], 2), [
74
+ [$, i.value]
75
+ ])
74
76
  ]),
75
77
  _: 1
76
78
  })
77
79
  ], 2)), [
78
- [$(O), x]
80
+ [z(O), B]
79
81
  ]),
80
- _(g, {
82
+ g(S, {
81
83
  mode: "out-in",
82
84
  name: "fade"
83
85
  }, {
84
- default: S(() => [
85
- o.validation ? (l(), s("div", I, " * " + u(o.validation.message), 1)) : d("", !0)
86
+ default: x(() => [
87
+ o.validation ? (s(), n("div", P, " * " + d(o.validation.message), 1)) : m("", !0)
86
88
  ]),
87
89
  _: 1
88
90
  })
89
91
  ], 64);
90
92
  };
91
93
  }
92
- }, K = /* @__PURE__ */ D(P, [["__scopeId", "data-v-f58c80d7"]]);
94
+ }, Q = /* @__PURE__ */ E(Y, [["__scopeId", "data-v-67f55841"]]);
93
95
  export {
94
- K as default
96
+ Q as default
95
97
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../../constructor/components/elements/Textarea.vue2.cjs"),V=require("../../../constructor/components/sections/Constructor.vue.cjs"),y=require("../../../../components/Popup/Popup.vue2.cjs");require("../../../../components/FieldTags/tag-input.vue.cjs");require("../../../../components/FieldTags/vue-tags-input.scss.cjs");const B=require("../../../../components/FieldTags/BlockTags.vue.cjs"),N=require("../../../../components/Checkbox/Checkbox.vue2.cjs"),C=require("../../../../components/Field/Field.vue2.cjs"),P=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),x=require("../../../../components/Button/Button.vue2.cjs"),f=require("vue-router"),n=require("../../store/blogposts.cjs"),i=require("../../../auth/store/auth.cjs"),q=require("../../../organizations/store/organizations.cjs"),E={class:"pd-thin"},T={style:{"min-height":"100%"},class:"w-100 bg-grey pd-big radius-big"},z={class:"w-full h-full"},A={key:0,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},O={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},U=e.createElementVNode("h3",{class:"mn-b-small"},"Final Touches",-1),D=e.createElementVNode("h5",{class:"mn-b-thin"},"Add source:",-1),M=e.createElementVNode("h5",{class:"mn-b-thin"},"Add to public:",-1),S={key:0,class:"mn-b-thin"},R={key:1,class:"mn-b-medium br-grey br-2px br-solid pd-small radius-big"},$={__name:"CreateBlogPost",setup(F){const s=f.useRoute(),u=f.useRouter();let t=e.ref(null),p=e.ref(null);const c=e.ref([]),r=e.ref(null);e.onMounted(async()=>{const o=await q.actions.read({user:i.state.user._id,postable:i.state.user._id,limit:100});if(p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo})),s.params.url){const a=await n.read({user:i.state.user._id,url:s.params.url});t.value=a.pop()}else n.clean(),t.value=n.state.current;t.value.owner||(t.value.owner={target:i.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:i.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(r.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo}),console.log(o)});const g=e.ref(""),m=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);e.computed(()=>m.value.filter(o=>o.text.toLowerCase().includes(g.value.toLowerCase()))),e.computed(()=>m.value.filter(o=>!c.value.some(a=>a.text===o.text)));const d=e.ref(!1);function h(){d.value=!0}function v(){d.value=!1}function b(){c.value.length>0&&c.value.map(o=>o.text),t.value.status="draft",s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)})}function k(){r.value&&(t.value.owner={target:r.value._id,type:"organization"}),r.value||(t.value.creator.hidden=!1),r.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),s.params.url?n.update(t.value).then(o=>{console.log(t.value),u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)})}function _(){confirm("Are you sure you want to delete this post?")&&n.remove(t.value._id).then(o=>{u.push({name:"User Blogposts",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.log(o)})}return(o,a)=>(e.openBlock(),e.createElementBlock("article",E,[e.createElementVNode("section",T,[e.createElementVNode("div",z,[e.unref(t)?(e.openBlock(),e.createBlock(w.default,{key:0,prop:e.unref(t),content:"name",placeholder:"Enter post title",class:"h2"},null,8,["prop"])):e.createCommentVNode("",!0)]),e.unref(t)?(e.openBlock(),e.createBlock(V.default,{key:0,content:e.unref(t).content,onUpdate:a[0]||(a[0]=l=>e.unref(t).content=l)},null,8,["content"])):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"scaleIn"},{default:e.withCtx(()=>[e.unref(t)?(e.openBlock(),e.createElementBlock("section",A,[e.createElementVNode("div",O,[e.unref(s).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[1]||(a[1]=l=>_()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[2]||(a[2]=l=>b()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[3]||(a[3]=l=>h()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(y.default,{title:"Добавить участника",onClosePopup:v,isPopupOpen:d.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[U,e.createVNode(B.default,{onTagsChanged:a[4]||(a[4]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),D,e.createVNode(C.default,{field:e.unref(t).source,"onUpdate:field":a[5]||(a[5]=l=>e.unref(t).source=l),placeholder:"Add full link to the source",class:"mn-b-medium bg-grey radius-medium pd-small"},null,8,["field"]),M,e.createVNode(P.default,{modelValue:r.value,"onUpdate:modelValue":a[6]||(a[6]=l=>r.value=l),options:e.unref(p),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-b-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),r.value?(e.openBlock(),e.createElementBlock("h5",S,"Options:")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",R,[e.createVNode(N.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[7]||(a[7]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(x.default,{submit:k,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])]))}};exports.default=$;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../../constructor/components/elements/Textarea.vue2.cjs"),V=require("../../../constructor/components/sections/Constructor.vue.cjs"),y=require("../../../../components/Popup/Popup.vue.cjs");require("../../../../components/FieldTags/tag-input.vue.cjs");require("../../../../components/FieldTags/vue-tags-input.scss.cjs");const B=require("../../../../components/FieldTags/BlockTags.vue.cjs"),N=require("../../../../components/Checkbox/Checkbox.vue.cjs"),C=require("../../../../components/Field/Field.vue2.cjs"),P=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),x=require("../../../../components/Button/Button.vue2.cjs"),f=require("vue-router"),n=require("../../store/blogposts.cjs"),i=require("../../../auth/store/auth.cjs"),q=require("../../../organizations/store/organizations.cjs"),E={class:"pd-thin"},T={style:{"min-height":"100%"},class:"w-100 bg-grey pd-big radius-big"},z={class:"w-full h-full"},A={key:0,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},O={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},U=e.createElementVNode("h3",{class:"mn-b-small"},"Final Touches",-1),D=e.createElementVNode("h5",{class:"mn-b-thin"},"Add source:",-1),M=e.createElementVNode("h5",{class:"mn-b-thin"},"Add to public:",-1),S={key:0,class:"mn-b-thin"},R={key:1,class:"mn-b-medium br-grey br-2px br-solid pd-small radius-big"},$={__name:"CreateBlogPost",setup(F){const s=f.useRoute(),u=f.useRouter();let t=e.ref(null),p=e.ref(null);const c=e.ref([]),r=e.ref(null);e.onMounted(async()=>{const o=await q.actions.read({user:i.state.user._id,postable:i.state.user._id,limit:100});if(p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo})),s.params.url){const a=await n.read({user:i.state.user._id,url:s.params.url});t.value=a.pop()}else n.clean(),t.value=n.state.current;t.value.owner||(t.value.owner={target:i.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:i.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(r.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo}),console.log(o)});const g=e.ref(""),m=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);e.computed(()=>m.value.filter(o=>o.text.toLowerCase().includes(g.value.toLowerCase()))),e.computed(()=>m.value.filter(o=>!c.value.some(a=>a.text===o.text)));const d=e.ref(!1);function h(){d.value=!0}function v(){d.value=!1}function b(){c.value.length>0&&c.value.map(o=>o.text),t.value.status="draft",s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)})}function k(){r.value&&(t.value.owner={target:r.value._id,type:"organization"}),r.value||(t.value.creator.hidden=!1),r.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),s.params.url?n.update(t.value).then(o=>{console.log(t.value),u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)})}function _(){confirm("Are you sure you want to delete this post?")&&n.remove(t.value._id).then(o=>{u.push({name:"User Blogposts",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.log(o)})}return(o,a)=>(e.openBlock(),e.createElementBlock("article",E,[e.createElementVNode("section",T,[e.createElementVNode("div",z,[e.unref(t)?(e.openBlock(),e.createBlock(w.default,{key:0,prop:e.unref(t),content:"name",placeholder:"Enter post title",class:"h2"},null,8,["prop"])):e.createCommentVNode("",!0)]),e.unref(t)?(e.openBlock(),e.createBlock(V.default,{key:0,content:e.unref(t).content,onUpdate:a[0]||(a[0]=l=>e.unref(t).content=l)},null,8,["content"])):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"scaleIn"},{default:e.withCtx(()=>[e.unref(t)?(e.openBlock(),e.createElementBlock("section",A,[e.createElementVNode("div",O,[e.unref(s).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[1]||(a[1]=l=>_()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[2]||(a[2]=l=>b()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[3]||(a[3]=l=>h()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(y.default,{title:"Добавить участника",onClosePopup:v,isPopupOpen:d.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[U,e.createVNode(B.default,{onTagsChanged:a[4]||(a[4]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),D,e.createVNode(C.default,{field:e.unref(t).source,"onUpdate:field":a[5]||(a[5]=l=>e.unref(t).source=l),placeholder:"Add full link to the source",class:"mn-b-medium bg-grey radius-medium pd-small"},null,8,["field"]),M,e.createVNode(P.default,{modelValue:r.value,"onUpdate:modelValue":a[6]||(a[6]=l=>r.value=l),options:e.unref(p),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-b-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),r.value?(e.openBlock(),e.createElementBlock("h5",S,"Options:")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",R,[e.createVNode(N.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[7]||(a[7]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(x.default,{submit:k,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])]))}};exports.default=$;
@@ -1,11 +1,11 @@
1
1
  import { ref as n, onMounted as A, computed as w, openBlock as i, createElementBlock as m, createElementVNode as r, unref as a, createBlock as k, createCommentVNode as d, createVNode as u, Transition as U, withCtx as v, createTextVNode as z } from "vue";
2
2
  import D from "../../../constructor/components/elements/Textarea.vue2.js";
3
3
  import N from "../../../constructor/components/sections/Constructor.vue.js";
4
- import O from "../../../../components/Popup/Popup.vue2.js";
4
+ import O from "../../../../components/Popup/Popup.vue.js";
5
5
  import "../../../../components/FieldTags/tag-input.vue.js";
6
6
  import "../../../../components/FieldTags/vue-tags-input.scss.js";
7
7
  import E from "../../../../components/FieldTags/BlockTags.vue.js";
8
- import F from "../../../../components/Checkbox/Checkbox.vue2.js";
8
+ import F from "../../../../components/Checkbox/Checkbox.vue.js";
9
9
  import L from "../../../../components/Field/Field.vue2.js";
10
10
  import M from "../../../../components/SelectMulti/SelectMulti.vue.js";
11
11
  import R from "../../../../components/Button/Button.vue2.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../constructor/components/elements/Textarea.vue.cjs");const C=require("../../../constructor/components/sections/Constructor.vue.cjs"),P=require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.cjs");const k=require("../../../../components/Block/Block.vue.cjs"),_=require("../../../../components/Popup/Popup.vue2.cjs"),n=require("../../../../components/Field/Field.vue2.cjs"),T=require("../../../../components/FieldTags/BlockTags.vue.cjs"),V=require("../../../../components/Checkbox/Checkbox.vue2.cjs"),q=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),f=require("../../../../components/Upload/Upload.vue.cjs"),b=require("../../../../components/UploadImage/UploadImage.vue.cjs"),S=require("../../../../components/EditImages/EditImages.vue.cjs"),M=require("../../../../components/Button/Button.vue2.cjs"),N=require("../../../icons/navigation/IconDelete.vue.cjs"),D=require("vue-router"),u=require("../../store/events.cjs"),o=require("../../../auth/store/auth.cjs"),G=require("../../../organizations/store/organizations.cjs");require("./EditEvent.vue2.cjs");const L={key:0,class:"h-100 pd-thin"},F={class:"mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},O=e.createElementVNode("h4",null,"Upload Event Cover",-1),R={key:0,class:"mn-b-small"},I={key:2,class:"mn-b-semi"},A=e.createElementVNode("h4",{class:"mn-b-thin"}," Hero Section ",-1),z=e.createElementVNode("h5",{class:"mn-b-thin"}," Video in Hero Section ",-1),H=e.createElementVNode("h5",{class:"mn-b-thin"}," Ticket ",-1),$={class:"mn-b-small gap-small cols-2-fit-content"},j={class:"gap-thin flex-nowrap flex w-100"},J=e.createElementVNode("hr",{class:"bg-black-transp-10 mn-b-semi mn-t-semi d-block"},null,-1),Y=e.createElementVNode("h4",{class:"mn-b-thin"}," Guest Section ",-1),K={class:"gap-thin cols-3"},Q=e.createElementVNode("h5",{class:"mn-b-thin"}," Video in Guests Section ",-1),W={class:"gap-thin flex-nowrap flex w-100"},X={class:"w-100"},Z={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},ee=e.createElementVNode("hr",{class:"bg-black-transp-10 mn-b-semi mn-t-semi d-block"},null,-1),te=e.createElementVNode("h4",{class:"mn-b-thin"}," Lineup Section ",-1),le={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},ae=e.createElementVNode("h5",{class:"mn-b-thin"}," Background in Lineup Section ",-1),se=e.createElementVNode("h5",{class:"mn-b-thin"}," Video in Previous Partys Section ",-1),ne=e.createElementVNode("h3",{class:"mn-b-small"},"Date",-1),oe=e.createElementVNode("h3",{class:"mn-b-small"},"Description",-1),ie={key:3,class:"pd-b-extra w-100 bg-grey pd-big radius-big"},re={key:4,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},de={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},ue=e.createElementVNode("h3",{class:"mn-b-small"},"Final Touches",-1),ce=e.createElementVNode("h5",{class:"mn-b-thin"},"Add to public:",-1),pe={key:0,class:"mn-b-thin"},me={key:1,class:"mn-b-medium br-grey br-2px br-solid pd-small radius-big"},fe={__name:"EditEvent",setup(ge){const p=D.useRoute(),m=D.useRouter();let t=e.ref(null),h=e.ref(null);const v=e.ref([]),i=e.ref(null),r=e.ref(),w=()=>({top:0,left:0});e.onMounted(async()=>{if(p.params.url){const a=await u.read({user:o.state.user._id,url:p.params.url});t.value=a.pop(),console.log(t.value);const l=t.value.date.start,c=t.value.date.end;r.value=[l,c]}else{u.clean(),t.value=u.state.current;const a=new Date,l=new Date;r.value=[a,l]}t.value.owner||(t.value.owner={target:o.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:o.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(i.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const s=await G.actions.read({user:o.state.user._id,postable:o.state.user._id,limit:100});h.value=s.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const g=e.ref(!1);function y(){g.value=!0}function E(){g.value=!1}function U(){v.value.length>0&&v.value.map(s=>s.text),t.value.status="draft",t.value.date={start:r.value[0],end:r.value[1]},p.params.url?u.update(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)}):u.create(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)})}function x(){i.value&&(t.value.owner={target:i.value._id,type:"organization"}),i.value||(t.value.creator.hidden=!1),i.value||(t.value.organization=t.value.creator),t.value.status="published",t.value.date={start:r.value[0],end:r.value[1]},console.log(r.value),p.params.url?(console.log(t.value),u.update(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.log(s)})):u.create(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.log(s)})}function B(){confirm("Are you sure you want to delete this event?")&&u.remove(t.value._id).then(s=>{m.push({name:"User Events",params:{_id:t.value.creator.target._id}})}).catch(s=>{console.error(s)})}return(s,a)=>e.unref(t)?(e.openBlock(),e.createElementBlock("article",L,[e.createElementVNode("div",F,[e.createVNode(b.default,{photo:e.unref(t).cover,"onUpdate:photo":a[0]||(a[0]=l=>e.unref(t).cover=l),uploadPath:"specials",class:"h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"},null,8,["photo"]),O]),e.createVNode(n.default,{field:e.unref(t).name,"onUpdate:field":a[1]||(a[1]=l=>e.unref(t).name=l),placeholder:"Event name",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).description,"onUpdate:field":a[2]||(a[2]=l=>e.unref(t).description=l),type:"textfield",placeholder:"Enter short description",class:"mn-b-semi w-100 bg-grey pd-medium radius-small"},null,8,["field"]),o.state.access.roles&&(o.state.access.roles.includes("ROLE_MODERATOR")||o.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createElementBlock("h3",R," Special Details ")):e.createCommentVNode("",!0),o.state.access.roles&&(o.state.access.roles.includes("ROLE_MODERATOR")||o.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createBlock(V.default,{key:1,label:"Special",radio:e.unref(t).special,"onUpdate:radio":a[3]||(a[3]=l=>e.unref(t).special=!e.unref(t).special),class:"mn-b-semi w-100 bg-black t-white pd-medium radius-small"},null,8,["radio"])):e.createCommentVNode("",!0),e.unref(t).special?(e.openBlock(),e.createElementBlock("div",I,[A,e.createVNode(n.default,{field:e.unref(t).specialData.subtitle,"onUpdate:field":a[4]||(a[4]=l=>e.unref(t).specialData.subtitle=l),placeholder:"Event subtitle",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(S.default,{images:e.unref(t).specialData.logos,uploadPath:"/specials",text:{title:"Drag & Drop Your Logos Here",subtitle:"Files supported: JPG, PNG, GIF"},options:{showTitle:!0,showText:!1},"onUpdate:images":a[5]||(a[5]=l=>e.unref(t).specialData.logos=l),class:"mn-b-thin bg-grey radius-small"},null,8,["images"]),z,e.createVNode(f.default,{field:e.unref(t).specialData.video,"onUpdate:field":a[6]||(a[6]=l=>e.unref(t).specialData.video=l),placeholder:"Upload video",onFileChange:a[7]||(a[7]=l=>e.unref(t).specialData.video=l),uploadPath:"specials",type:"file",class:"mn-b-thin w-100 bg-grey pd-medium radius-small t-black"},null,8,["field"]),H,e.createElementVNode("div",$,[e.createVNode(b.default,{photo:e.unref(t).specialData.ticketImage,"onUpdate:photo":a[8]||(a[8]=l=>e.unref(t).specialData.ticketImage=l),uploadPath:"/specials",class:"aspect-1x1 w-4r o-hidden radius-extra"},null,8,["photo"]),e.createElementVNode("div",j,[e.createVNode(n.default,{field:e.unref(t).specialData.ticketLinkStripe,"onUpdate:field":a[9]||(a[9]=l=>e.unref(t).specialData.ticketLinkStripe=l),placeholder:"Link to ticket stripe payment page",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.ticketPrice,"onUpdate:field":a[10]||(a[10]=l=>e.unref(t).specialData.ticketPrice=l),type:"number",placeholder:"Ticket price in baht",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"])])]),J,Y,e.createVNode(n.default,{field:e.unref(t).specialData.titleMainGuest,"onUpdate:field":a[11]||(a[11]=l=>e.unref(t).specialData.titleMainGuest=l),placeholder:"Title for Main Guest section",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestDescription,"onUpdate:field":a[12]||(a[12]=l=>e.unref(t).specialData.guestDescription=l),placeholder:"Description for Main Guest section",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createElementVNode("div",K,[e.createVNode(n.default,{field:e.unref(t).specialData.guestFacebook,"onUpdate:field":a[13]||(a[13]=l=>e.unref(t).specialData.guestFacebook=l),placeholder:"Facebook of Main Guest",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestInstagram,"onUpdate:field":a[14]||(a[14]=l=>e.unref(t).specialData.guestInstagram=l),placeholder:"Instagram of Main Guest",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestTwitter,"onUpdate:field":a[15]||(a[15]=l=>e.unref(t).specialData.guestTwitter=l),placeholder:"Twitter of Main Guest",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestTelegram,"onUpdate:field":a[16]||(a[16]=l=>e.unref(t).specialData.guestTelegram=l),placeholder:"Telegram of Main Guest",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestSoundcloud,"onUpdate:field":a[17]||(a[17]=l=>e.unref(t).specialData.guestSoundcloud=l),placeholder:"Link to Main Guest soundcloud track",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestSpotify,"onUpdate:field":a[18]||(a[18]=l=>e.unref(t).specialData.guestSpotify=l),placeholder:"Link to Main guest spotify track",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"])]),Q,e.createVNode(f.default,{field:e.unref(t).specialData.guestVideo,"onUpdate:field":a[19]||(a[19]=l=>e.unref(t).specialData.guestVideo=l),placeholder:"Upload video",onFileChange:a[20]||(a[20]=l=>e.unref(t).specialData.guestVideo=l),uploadPath:"/specials",type:"file",class:"mn-b-thin w-100 bg-grey pd-medium radius-small t-black"},null,8,["field"]),e.createVNode(k.default,{title:"Guests",placeholder:"No guests added yet",actions:[{label:"+",function:()=>e.unref(t).specialData.guests.push({name:null,description:null,photo:null,main:!1})}],class:"cols-1 mn-b-thin t-black gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).specialData.guests,(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-b-small gap-small cols-2-fit-content",key:c},[e.createVNode(b.default,{photo:l.photo,"onUpdate:photo":d=>l.photo=d,uploadPath:"/specials",class:"aspect-1x1 w-8r o-hidden radius-extra"},null,8,["photo","onUpdate:photo"]),e.createElementVNode("div",W,[e.createElementVNode("div",X,[e.createVNode(n.default,{field:l.name,"onUpdate:field":d=>l.name=d,placeholder:"Name",class:"w-100 mn-b-thin bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(n.default,{field:l.description,"onUpdate:field":d=>l.description=d,placeholder:"Description",class:"w-100 mn-b-thin bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"])]),e.createElementVNode("div",Z,[e.createVNode(N.default,{onClick:()=>e.unref(t).specialData.guests.splice(c,1),class:"i-medium"},null,8,["onClick"])])])]))),128))]),_:1},8,["actions"]),ee,te,e.createVNode(k.default,{title:"Line Up",placeholder:"No line ups added yet",actions:[{label:"+",function:()=>e.unref(t).specialData.lineup.push({name:null,description:null,photo:null,main:!1})}],class:"cols-1 t-black gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).specialData.lineup,(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-b-thin gap-small flex-nowrap flex",key:c},[e.createVNode(n.default,{field:l.name,"onUpdate:field":d=>l.name=d,placeholder:"Name",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(n.default,{field:l.time,"onUpdate:field":d=>l.time=d,placeholder:"Time",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",le,[e.createVNode(N.default,{onClick:()=>e.unref(t).specialData.lineup.splice(c,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),ae,e.createVNode(f.default,{field:e.unref(t).specialData.lineupBackground,"onUpdate:field":a[21]||(a[21]=l=>e.unref(t).specialData.lineupBackground=l),placeholder:"Upload image",onFileChange:a[22]||(a[22]=l=>e.unref(t).specialData.lineupBackground=l),uploadPath:"/specials",type:"file",class:"mn-b-thin w-100 bg-grey pd-medium radius-small t-black"},null,8,["field"]),se,e.createVNode(f.default,{field:e.unref(t).specialData.previousVideo,"onUpdate:field":a[23]||(a[23]=l=>e.unref(t).specialData.previousVideo=l),placeholder:"Upload image",onFileChange:a[24]||(a[24]=l=>e.unref(t).specialData.previousVideo=l),uploadPath:"/specials",type:"file",class:"mn-b-thin w-100 bg-grey pd-medium radius-small t-black"},null,8,["field"])])):e.createCommentVNode("",!0),ne,e.createVNode(e.unref(P.default),{modelValue:r.value,"onUpdate:modelValue":a[25]||(a[25]=l=>r.value=l),"alt-position":w,range:"",class:"mn-b-semi"},null,8,["modelValue"]),oe,e.unref(t)?(e.openBlock(),e.createElementBlock("section",ie,[e.createVNode(C.default,{content:e.unref(t).content,onUpdate:a[26]||(a[26]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",re,[e.createElementVNode("div",de,[e.unref(p).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[27]||(a[27]=l=>B()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[28]||(a[28]=l=>U()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[29]||(a[29]=l=>y()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(_.default,{title:"Добавить участника",onClosePopup:E,isPopupOpen:g.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[ue,e.createVNode(T.default,{onTagsChanged:a[30]||(a[30]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),ce,e.createVNode(q.default,{modelValue:i.value,"onUpdate:modelValue":a[31]||(a[31]=l=>i.value=l),options:e.unref(h),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-b-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),i.value?(e.openBlock(),e.createElementBlock("h5",pe,"Options:")):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("div",me,[e.createVNode(V.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[32]||(a[32]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(M.default,{submit:x,callback:s.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])])):e.createCommentVNode("",!0)}};exports.default=fe;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../constructor/components/elements/Textarea.vue.cjs");const C=require("../../../constructor/components/sections/Constructor.vue.cjs"),P=require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.cjs");const k=require("../../../../components/Block/Block.vue.cjs"),_=require("../../../../components/Popup/Popup.vue.cjs"),n=require("../../../../components/Field/Field.vue2.cjs"),T=require("../../../../components/FieldTags/BlockTags.vue.cjs"),V=require("../../../../components/Checkbox/Checkbox.vue.cjs"),q=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),f=require("../../../../components/Upload/Upload.vue.cjs"),b=require("../../../../components/UploadImage/UploadImage.vue.cjs"),S=require("../../../../components/EditImages/EditImages.vue.cjs"),M=require("../../../../components/Button/Button.vue2.cjs"),N=require("../../../icons/navigation/IconDelete.vue.cjs"),w=require("vue-router"),u=require("../../store/events.cjs"),o=require("../../../auth/store/auth.cjs"),L=require("../../../organizations/store/organizations.cjs");require("./EditEvent.vue2.cjs");const F={key:0,class:"h-100 pd-thin"},G={class:"mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},O=e.createElementVNode("h4",null,"Upload Event Cover",-1),R={key:0,class:"mn-b-small"},I={key:2,class:"mn-b-semi"},A=e.createElementVNode("h4",{class:"mn-b-thin"}," Hero Section ",-1),z=e.createElementVNode("h5",{class:"mn-b-thin"}," Video in Hero Section ",-1),H=e.createElementVNode("p",null,"Need to upload in webm format because of needs of optimization",-1),$=e.createElementVNode("h5",{class:"mn-b-thin"}," Ticket ",-1),j={class:"mn-b-small gap-small cols-2-fit-content"},J={class:"gap-thin flex-nowrap flex w-100"},Y=e.createElementVNode("hr",{class:"bg-black-transp-10 mn-b-semi mn-t-semi d-block"},null,-1),K=e.createElementVNode("h4",{class:"mn-b-thin"}," Guest Section ",-1),Q={class:"gap-thin cols-3"},W=e.createElementVNode("h5",{class:"mn-b-thin"}," Video in Guests Section ",-1),X={class:"gap-thin flex-nowrap flex w-100"},Z={class:"w-100"},ee={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},te=e.createElementVNode("hr",{class:"bg-black-transp-10 mn-b-semi mn-t-semi d-block"},null,-1),le=e.createElementVNode("h4",{class:"mn-b-thin"}," Lineup Section ",-1),ae={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},se=e.createElementVNode("h5",{class:"mn-b-thin"}," Background in Lineup Section ",-1),ne=e.createElementVNode("h5",{class:"mn-b-thin"}," Video in Previous Partys Section ",-1),oe=e.createElementVNode("h3",{class:"mn-b-small"},"Date",-1),ie=e.createElementVNode("h3",{class:"mn-b-small"},"Description",-1),re={key:3,class:"pd-b-extra w-100 bg-grey pd-big radius-big"},de={key:4,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},ue={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},ce=e.createElementVNode("h3",{class:"mn-b-small"},"Final Touches",-1),pe=e.createElementVNode("h5",{class:"mn-b-thin"},"Add to public:",-1),me={key:0,class:"mn-b-thin"},fe={key:1,class:"mn-b-medium br-grey br-2px br-solid pd-small radius-big"},ge={__name:"EditEvent",setup(be){const p=w.useRoute(),m=w.useRouter();let t=e.ref(null),h=e.ref(null);const v=e.ref([]),i=e.ref(null),r=e.ref(),D=()=>({top:0,left:0});e.onMounted(async()=>{if(p.params.url){const a=await u.read({user:o.state.user._id,url:p.params.url});t.value=a.pop(),console.log(t.value);const l=t.value.date.start,c=t.value.date.end;r.value=[l,c]}else{u.clean(),t.value=u.state.current;const a=new Date,l=new Date;r.value=[a,l]}t.value.owner||(t.value.owner={target:o.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:o.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(i.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const s=await L.actions.read({user:o.state.user._id,postable:o.state.user._id,limit:100});h.value=s.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const g=e.ref(!1);function y(){g.value=!0}function E(){g.value=!1}function U(){v.value.length>0&&v.value.map(s=>s.text),t.value.status="draft",t.value.date={start:r.value[0],end:r.value[1]},p.params.url?u.update(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)}):u.create(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.error(s)})}function x(){i.value&&(t.value.owner={target:i.value._id,type:"organization"}),i.value||(t.value.creator.hidden=!1),i.value||(t.value.organization=t.value.creator),t.value.status="published",t.value.date={start:r.value[0],end:r.value[1]},console.log(r.value),p.params.url?(console.log(t.value),u.update(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.log(s)})):u.create(t.value).then(s=>{m.push({name:"Event",params:{url:s.url}})}).catch(s=>{console.log(s)})}function B(){confirm("Are you sure you want to delete this event?")&&u.remove(t.value._id).then(s=>{m.push({name:"User Events",params:{_id:t.value.creator.target._id}})}).catch(s=>{console.error(s)})}return(s,a)=>e.unref(t)?(e.openBlock(),e.createElementBlock("article",F,[e.createElementVNode("div",G,[e.createVNode(b.default,{photo:e.unref(t).cover,"onUpdate:photo":a[0]||(a[0]=l=>e.unref(t).cover=l),uploadPath:"specials",class:"h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"},null,8,["photo"]),O]),e.createVNode(n.default,{field:e.unref(t).name,"onUpdate:field":a[1]||(a[1]=l=>e.unref(t).name=l),placeholder:"Event name",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).description,"onUpdate:field":a[2]||(a[2]=l=>e.unref(t).description=l),type:"textfield",placeholder:"Enter short description",class:"mn-b-semi w-100 bg-grey pd-medium radius-small"},null,8,["field"]),o.state.access.roles&&(o.state.access.roles.includes("ROLE_MODERATOR")||o.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createElementBlock("h3",R," Special Details ")):e.createCommentVNode("",!0),o.state.access.roles&&(o.state.access.roles.includes("ROLE_MODERATOR")||o.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createBlock(V.default,{key:1,label:"Special",radio:e.unref(t).special,"onUpdate:radio":a[3]||(a[3]=l=>e.unref(t).special=!e.unref(t).special),class:"mn-b-semi w-100 bg-black t-white pd-medium radius-small"},null,8,["radio"])):e.createCommentVNode("",!0),e.unref(t).special?(e.openBlock(),e.createElementBlock("div",I,[A,e.createVNode(n.default,{field:e.unref(t).specialData.subtitle,"onUpdate:field":a[4]||(a[4]=l=>e.unref(t).specialData.subtitle=l),placeholder:"Event subtitle",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(S.default,{images:e.unref(t).specialData.logos,uploadPath:"/specials",text:{title:"Drag & Drop Your Logos Here",subtitle:"Files supported: JPG, PNG, GIF"},options:{showTitle:!0,showText:!1},"onUpdate:images":a[5]||(a[5]=l=>e.unref(t).specialData.logos=l),class:"mn-b-thin bg-grey radius-small"},null,8,["images"]),z,H,e.createVNode(f.default,{field:e.unref(t).specialData.video,"onUpdate:field":a[6]||(a[6]=l=>e.unref(t).specialData.video=l),placeholder:"Upload video",onFileChange:a[7]||(a[7]=l=>e.unref(t).specialData.video=l),uploadPath:"specials",type:"file",class:"mn-b-thin w-100 bg-grey pd-medium radius-small t-black"},null,8,["field"]),$,e.createElementVNode("div",j,[e.createVNode(b.default,{photo:e.unref(t).specialData.ticketImage,"onUpdate:photo":a[8]||(a[8]=l=>e.unref(t).specialData.ticketImage=l),uploadPath:"/specials",class:"aspect-1x1 w-4r o-hidden radius-extra"},null,8,["photo"]),e.createElementVNode("div",J,[e.createVNode(n.default,{field:e.unref(t).specialData.ticketLinkStripe,"onUpdate:field":a[9]||(a[9]=l=>e.unref(t).specialData.ticketLinkStripe=l),placeholder:"Link to ticket stripe payment page",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.ticketPrice,"onUpdate:field":a[10]||(a[10]=l=>e.unref(t).specialData.ticketPrice=l),type:"number",placeholder:"Ticket price in baht",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"])])]),Y,K,e.createVNode(n.default,{field:e.unref(t).specialData.guestTitle,"onUpdate:field":a[11]||(a[11]=l=>e.unref(t).specialData.guestTitle=l),placeholder:"Title for Main Guest section",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestDescription,"onUpdate:field":a[12]||(a[12]=l=>e.unref(t).specialData.guestDescription=l),placeholder:"Description for Main Guest section",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createElementVNode("div",Q,[e.createVNode(n.default,{field:e.unref(t).specialData.guestFacebook,"onUpdate:field":a[13]||(a[13]=l=>e.unref(t).specialData.guestFacebook=l),placeholder:"Facebook of Main Guest",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestInstagram,"onUpdate:field":a[14]||(a[14]=l=>e.unref(t).specialData.guestInstagram=l),placeholder:"Instagram of Main Guest",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestTwitter,"onUpdate:field":a[15]||(a[15]=l=>e.unref(t).specialData.guestTwitter=l),placeholder:"Twitter of Main Guest",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestTelegram,"onUpdate:field":a[16]||(a[16]=l=>e.unref(t).specialData.guestTelegram=l),placeholder:"Telegram of Main Guest",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestSoundcloud,"onUpdate:field":a[17]||(a[17]=l=>e.unref(t).specialData.guestSoundcloud=l),placeholder:"Link to Main Guest soundcloud track",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(n.default,{field:e.unref(t).specialData.guestSpotify,"onUpdate:field":a[18]||(a[18]=l=>e.unref(t).specialData.guestSpotify=l),placeholder:"Link to Main guest spotify track",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"])]),W,e.createVNode(f.default,{field:e.unref(t).specialData.guestVideo,"onUpdate:field":a[19]||(a[19]=l=>e.unref(t).specialData.guestVideo=l),placeholder:"Upload video",onFileChange:a[20]||(a[20]=l=>e.unref(t).specialData.guestVideo=l),uploadPath:"/specials",type:"file",class:"mn-b-thin w-100 bg-grey pd-medium radius-small t-black"},null,8,["field"]),e.createVNode(k.default,{title:"Guests",placeholder:"No guests added yet",actions:[{label:"+",function:()=>e.unref(t).specialData.guests.push({name:null,description:null,photo:null,main:!1})}],class:"cols-1 mn-b-thin t-black gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).specialData.guests,(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-b-small gap-small cols-2-fit-content",key:c},[e.createVNode(b.default,{photo:l.photo,"onUpdate:photo":d=>l.photo=d,uploadPath:"/specials",class:"aspect-1x1 w-8r o-hidden radius-extra"},null,8,["photo","onUpdate:photo"]),e.createElementVNode("div",X,[e.createElementVNode("div",Z,[e.createVNode(n.default,{field:l.name,"onUpdate:field":d=>l.name=d,placeholder:"Name",class:"w-100 mn-b-thin bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(n.default,{field:l.description,"onUpdate:field":d=>l.description=d,placeholder:"Description",class:"w-100 mn-b-thin bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"])]),e.createElementVNode("div",ee,[e.createVNode(N.default,{onClick:()=>e.unref(t).specialData.guests.splice(c,1),class:"i-medium"},null,8,["onClick"])])])]))),128))]),_:1},8,["actions"]),te,le,e.createVNode(k.default,{title:"Line Up",placeholder:"No line ups added yet",actions:[{label:"+",function:()=>e.unref(t).specialData.lineup.push({name:null,description:null,photo:null,main:!1})}],class:"cols-1 t-black gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).specialData.lineup,(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-b-thin gap-small flex-nowrap flex",key:c},[e.createVNode(n.default,{field:l.name,"onUpdate:field":d=>l.name=d,placeholder:"Name",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(n.default,{field:l.time,"onUpdate:field":d=>l.time=d,placeholder:"Time",class:"w-100 bg-grey radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",ae,[e.createVNode(N.default,{onClick:()=>e.unref(t).specialData.lineup.splice(c,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),se,e.createVNode(f.default,{field:e.unref(t).specialData.lineupBackground,"onUpdate:field":a[21]||(a[21]=l=>e.unref(t).specialData.lineupBackground=l),placeholder:"Upload image",onFileChange:a[22]||(a[22]=l=>e.unref(t).specialData.lineupBackground=l),uploadPath:"/specials",type:"file",class:"mn-b-thin w-100 bg-grey pd-medium radius-small t-black"},null,8,["field"]),ne,e.createVNode(f.default,{field:e.unref(t).specialData.previousVideo,"onUpdate:field":a[23]||(a[23]=l=>e.unref(t).specialData.previousVideo=l),placeholder:"Upload image",onFileChange:a[24]||(a[24]=l=>e.unref(t).specialData.previousVideo=l),uploadPath:"/specials",type:"file",class:"mn-b-thin w-100 bg-grey pd-medium radius-small t-black"},null,8,["field"])])):e.createCommentVNode("",!0),oe,e.createVNode(e.unref(P.default),{modelValue:r.value,"onUpdate:modelValue":a[25]||(a[25]=l=>r.value=l),"alt-position":D,range:"",class:"mn-b-semi"},null,8,["modelValue"]),ie,e.unref(t)?(e.openBlock(),e.createElementBlock("section",re,[e.createVNode(C.default,{content:e.unref(t).content,onUpdate:a[26]||(a[26]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",de,[e.createElementVNode("div",ue,[e.unref(p).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[27]||(a[27]=l=>B()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[28]||(a[28]=l=>U()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[29]||(a[29]=l=>y()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(_.default,{title:"Добавить участника",onClosePopup:E,isPopupOpen:g.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[ce,e.createVNode(T.default,{onTagsChanged:a[30]||(a[30]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),pe,e.createVNode(q.default,{modelValue:i.value,"onUpdate:modelValue":a[31]||(a[31]=l=>i.value=l),options:e.unref(h),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-b-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),i.value?(e.openBlock(),e.createElementBlock("h5",me,"Options:")):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(V.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[32]||(a[32]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(M.default,{submit:x,callback:s.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])])):e.createCommentVNode("",!0)}};exports.default=ge;