@ozdao/prometheus-framework 0.0.86 → 0.0.88

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-15e71ec4.js +1 -0
  2. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs +1944 -0
  3. package/dist/CardOrganization-ee5c34ab.js +1 -0
  4. package/dist/CardOrganization-f70bd169.mjs +202 -0
  5. package/dist/Comments-63f154a6.js +9 -0
  6. package/dist/Comments-c5afa4d6.mjs +459 -0
  7. package/dist/Feed-51e4e232.js +1 -0
  8. package/dist/Feed-8fd41524.js +1 -0
  9. package/dist/Feed-dc8b66bf.mjs +367 -0
  10. package/dist/Feed-ecf37814.mjs +367 -0
  11. package/dist/IconEdit-736c89be.js +1 -0
  12. package/dist/IconEdit-e9fd4c6c.mjs +21 -0
  13. package/dist/Image-6c7584f5.mjs +477 -0
  14. package/dist/Image-9a870c88.js +9 -0
  15. package/dist/Popup-105ef2c3.js +1 -0
  16. package/dist/Popup-82fb2c8a.mjs +76 -0
  17. package/dist/Product-1724d88d.mjs +837 -0
  18. package/dist/Product-2f3d592f.mjs +837 -0
  19. package/dist/Product-2fbf9d99.js +7 -0
  20. package/dist/Product-a94d8b65.js +7 -0
  21. package/dist/ProductEdit-20709821.mjs +349 -0
  22. package/dist/ProductEdit-57484f1e.mjs +349 -0
  23. package/dist/ProductEdit-a81d13b9.js +1 -0
  24. package/dist/ProductEdit-ef301baa.js +1 -0
  25. package/dist/ProfileBlogposts-eca9916c.js +1 -0
  26. package/dist/ProfileBlogposts-fb014bc6.mjs +63 -0
  27. package/dist/ProfileComments-58094a50.mjs +43 -0
  28. package/dist/ProfileComments-b919f021.js +1 -0
  29. package/dist/ProfileEvents-05485e20.js +1 -0
  30. package/dist/ProfileEvents-1cfe6858.mjs +55 -0
  31. package/dist/ProfileEvents-5d206e3d.mjs +55 -0
  32. package/dist/ProfileEvents-d8e16509.js +1 -0
  33. package/dist/ProfileLikes-2f3a4488.js +1 -0
  34. package/dist/ProfileLikes-b5ac7f48.mjs +43 -0
  35. package/dist/ProfileOrganizations-0b76e38f.js +1 -0
  36. package/dist/ProfileOrganizations-32ab1e30.mjs +211 -0
  37. package/dist/Publics-3f277c17.js +1 -0
  38. package/dist/Publics-9ebffff1.mjs +122 -0
  39. package/dist/Tab-58cd105f.mjs +46 -0
  40. package/dist/Tab-6f0a4909.js +1 -0
  41. package/dist/UploadImage-441e8526.js +1 -0
  42. package/dist/UploadImage-ff8f9a0c.mjs +83 -0
  43. package/dist/auth.client.cjs +2 -2
  44. package/dist/auth.client.js +60 -40
  45. package/dist/community.client.cjs +1 -9
  46. package/dist/community.client.js +361 -750
  47. package/dist/community.server.js +16 -4
  48. package/dist/community.server.mjs +16 -4
  49. package/dist/events.client.cjs +1 -1
  50. package/dist/events.client.js +442 -321
  51. package/dist/events.server.js +96 -2
  52. package/dist/events.server.mjs +96 -2
  53. package/dist/inputs.validation-24ae76b9.js +1 -0
  54. package/dist/modules/constructor/components/elements/Bullets.vue.d.ts +15 -0
  55. package/dist/modules/constructor/components/elements/Caption.vue.d.ts +15 -0
  56. package/dist/modules/constructor/components/elements/H2.vue.d.ts +16 -0
  57. package/dist/modules/constructor/components/elements/Image.vue.d.ts +8 -0
  58. package/dist/modules/constructor/components/elements/ImageUpload.vue.d.ts +9 -0
  59. package/dist/modules/constructor/components/elements/Textarea.vue.d.ts +12 -0
  60. package/dist/modules/constructor/components/sections/Constructor.vue.d.ts +7 -0
  61. package/dist/modules/events/components/sections/Feed.vue.d.ts +1 -0
  62. package/dist/organizations-1b4c84ee.mjs +121 -0
  63. package/dist/organizations-af43bda4.js +1 -0
  64. package/dist/organizations.client-253c8068.mjs +3179 -0
  65. package/dist/organizations.client-686845be.mjs +3179 -0
  66. package/dist/organizations.client-99bfc474.js +3 -0
  67. package/dist/organizations.client-c60d7659.js +3 -0
  68. package/dist/organizations.client.cjs +1 -3
  69. package/dist/organizations.client.js +49 -3025
  70. package/dist/style.css +1 -1
  71. package/dist/users.client.cjs +1 -1
  72. package/dist/users.client.js +10 -10
  73. package/package.json +1 -1
  74. package/src/modules/auth/router/auth.js +28 -7
  75. package/src/modules/community/community.client.js +1 -12
  76. package/src/modules/community/components/pages/BlogPost.vue +1 -1
  77. package/src/modules/community/components/pages/CreateBlogPost.vue +8 -151
  78. package/src/modules/community/middlewares/server/verifyBlogpost.js +24 -11
  79. package/src/modules/{community → constructor}/components/elements/Textarea.vue +3 -11
  80. package/src/modules/constructor/components/sections/Constructor.vue +167 -0
  81. package/src/modules/events/components/blocks/CardEvent.vue +15 -7
  82. package/src/modules/events/components/pages/EditEvent.vue +233 -133
  83. package/src/modules/events/components/pages/Event.vue +43 -4
  84. package/src/modules/events/components/sections/Feed.vue +7 -1
  85. package/src/modules/events/controllers/events.controller.js +9 -0
  86. package/src/modules/events/controllers/tickets.controller.js +2 -1
  87. package/src/modules/events/middlewares/server/index.js +10 -0
  88. package/src/modules/events/middlewares/server/verifyEvent.js +60 -0
  89. package/src/modules/events/models/event.model.js +10 -0
  90. package/src/modules/events/routes/events.routes.js +14 -1
  91. package/src/modules/events/store/events.js +15 -19
  92. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -3
  93. package/src/modules/organizations/components/sections/Publics.vue +2 -3
  94. package/src/modules/organizations/organizations.client.js +0 -2
  95. package/src/modules/users/components/pages/ProfileEvents.vue +3 -3
  96. package/src/modules/organizations/components/blocks/CardOrganizationSocial.vue +0 -46
  97. /package/src/modules/{community → constructor}/components/elements/Bullets.vue +0 -0
  98. /package/src/modules/{community → constructor}/components/elements/Caption.vue +0 -0
  99. /package/src/modules/{community → constructor}/components/elements/H2.vue +0 -0
  100. /package/src/modules/{community → constructor}/components/elements/Image.vue +0 -0
  101. /package/src/modules/{community → constructor}/components/elements/ImageUpload.vue +0 -0
@@ -1,32 +1,31 @@
1
- import { r as J, a as H, s as x, S as X, _ as Z } from "./Feed-926cf4f3.mjs";
2
- import { e as gt } from "./Feed-926cf4f3.mjs";
3
- import { openBlock as i, createElementBlock as p, createStaticVNode as ee, ref as k, onMounted as q, createVNode as m, TransitionGroup as T, withCtx as y, Fragment as D, renderList as P, createBlock as h, createCommentVNode as b, Transition as B, normalizeClass as z, createElementVNode as d, unref as L, toDisplayString as A, watch as W, resolveComponent as te, resolveDynamicComponent as re, withAsyncContext as M, createTextVNode as Y, reactive as ae } from "vue";
1
+ import { r as F, a as J, s as D, c as X, u as V, b as A, S as Z, _ as ee } from "./Feed-dc8b66bf.mjs";
2
+ import { e as vt } from "./Feed-dc8b66bf.mjs";
3
+ import { openBlock as d, createElementBlock as _, createStaticVNode as te, ref as w, onMounted as j, createVNode as v, TransitionGroup as U, withCtx as x, Fragment as P, renderList as T, createBlock as $, createCommentVNode as b, Transition as q, normalizeClass as N, createElementVNode as h, unref as m, toDisplayString as L, watch as W, resolveComponent as ae, resolveDynamicComponent as Y, createTextVNode as B, reactive as re, mergeProps as ne } from "vue";
4
4
  import { _ as G } from "./EmptyState-34d85f10.mjs";
5
- import { _ as Q, b as K, a as ne, s as $ } from "./auth-35ef1791.mjs";
6
- import { useRoute as N, useRouter as F } from "vue-router";
7
- import { C as se } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-628f013e.mjs";
8
- import { a as oe, b as O, _ as ie, s as g, c as le } from "./categories-d669f3af.mjs";
9
- import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
10
- import "vue-i18n";
11
- import { _ as ce, a as U, b as ue } from "./EditProductImages-61ff4321.mjs";
5
+ import { _ as Q, s as k, F as C, b as K, a as se } from "./auth-35ef1791.mjs";
6
+ import { useRoute as z, useRouter as M } from "vue-router";
7
+ import { _ as oe, S as le, C as ie } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs";
8
+ import { _ as ue, a as ce, b as de } from "./Image-6c7584f5.mjs";
9
+ import { _ as pe } from "./Popup-82fb2c8a.mjs";
10
+ import { _ as me } from "./UploadImage-ff8f9a0c.mjs";
11
+ import { a as fe } from "./organizations-1b4c84ee.mjs";
12
12
  import { s as I } from "./globals-96ba60e4.mjs";
13
- import { _ as de } from "./Comments-c092550f.mjs";
13
+ import "vue-i18n";
14
14
  import "./CardHeader-ce5a1a75.mjs";
15
15
  import "./PlaceholderUserpic-995da0fc.mjs";
16
- import "./vuex.esm-bundler-57d8b6ba.mjs";
17
16
  import "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
18
- const me = {}, pe = {
17
+ const ge = {}, ve = {
19
18
  width: "100%",
20
19
  height: "50",
21
20
  xmlns: "http://www.w3.org/2000/svg"
22
- }, _e = /* @__PURE__ */ ee('<rect x="0" y="0" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="3" ry="3" width="40" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="65" y="15" rx="3" ry="3" width="150" height="20" fill="rgba(var(--black),0.05)"></rect><circle cx="250" cy="25" r="10" fill="rgba(var(--black),0.1)"></circle><circle cx="265" cy="25" r="10" fill="rgba(var(--black),0.05)"></circle><circle cx="280" cy="25" r="10" fill="rgba(var(--black),0.025)"></circle><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>', 7), fe = [
21
+ }, _e = /* @__PURE__ */ te('<rect x="0" y="0" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="3" ry="3" width="40" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="65" y="15" rx="3" ry="3" width="150" height="20" fill="rgba(var(--black),0.05)"></rect><circle cx="250" cy="25" r="10" fill="rgba(var(--black),0.1)"></circle><circle cx="265" cy="25" r="10" fill="rgba(var(--black),0.05)"></circle><circle cx="280" cy="25" r="10" fill="rgba(var(--black),0.025)"></circle><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>', 7), he = [
23
22
  _e
24
23
  ];
25
- function ge(o, e) {
26
- return i(), p("svg", pe, fe);
24
+ function ye(p, t) {
25
+ return d(), _("svg", ve, he);
27
26
  }
28
- const ve = /* @__PURE__ */ Q(me, [["render", ge]]);
29
- const ye = { class: "today-events" }, mt = {
27
+ const be = /* @__PURE__ */ Q(ge, [["render", ye]]);
28
+ const we = { class: "today-events" }, pt = {
30
29
  __name: "List",
31
30
  props: {
32
31
  category: {
@@ -54,35 +53,35 @@ const ye = { class: "today-events" }, mt = {
54
53
  default: null
55
54
  }
56
55
  },
57
- setup(o) {
58
- const e = o, r = k([]), t = k(!0), a = k(0), u = k(5);
59
- return q(async () => {
60
- const n = await J({
61
- skip: a.value,
62
- limit: u.value,
56
+ setup(p) {
57
+ const t = p, r = w([]), e = w(!0), l = w(0), i = w(5);
58
+ return j(async () => {
59
+ const a = await F({
60
+ skip: l.value,
61
+ limit: i.value,
63
62
  sortOrder: "desc",
64
- category: e.category,
65
- user: e.user,
66
- owner: e.owner,
67
- organization: e.organization,
68
- period: e.period,
69
- status: e.status
63
+ category: t.category,
64
+ user: t.user,
65
+ owner: t.owner,
66
+ organization: t.organization,
67
+ period: t.period,
68
+ status: t.status
70
69
  });
71
- r.value = n, t.value = !1;
72
- }), (n, l) => (i(), p("section", ye, [
73
- m(T, {
70
+ r.value = a, e.value = !1;
71
+ }), (a, n) => (d(), _("section", we, [
72
+ v(U, {
74
73
  tag: "ul",
75
74
  name: "fade",
76
75
  class: "o-hidden bg-grey radius-big"
77
76
  }, {
78
- default: y(() => [
79
- t.value ? (i(!0), p(D, { key: 0 }, P(u.value, (c) => (i(), h(ve, { key: c }))), 128)) : b("", !0)
77
+ default: x(() => [
78
+ e.value ? (d(!0), _(P, { key: 0 }, T(i.value, (c) => (d(), $(be, { key: c }))), 128)) : b("", !0)
80
79
  ]),
81
80
  _: 1
82
81
  }),
83
- m(B, { name: "fade" }, {
84
- default: y(() => [
85
- !t.value && r.value.length < 1 ? (i(), h(G, {
82
+ v(q, { name: "fade" }, {
83
+ default: x(() => [
84
+ !e.value && r.value.length < 1 ? (d(), $(G, {
86
85
  key: 0,
87
86
  title: "No Events Today",
88
87
  description: "Today, are no events available. Please check back later.",
@@ -91,20 +90,20 @@ const ye = { class: "today-events" }, mt = {
91
90
  ]),
92
91
  _: 1
93
92
  }),
94
- m(T, {
93
+ v(U, {
95
94
  tag: "ul",
96
95
  name: "fade",
97
96
  class: "container"
98
97
  }, {
99
- default: y(() => [
100
- !t.value && r.value.length > 0 ? (i(!0), p(D, { key: 0 }, P(r.value, (c, v) => (i(), h(H, {
101
- onClick: (f) => n.$router.push({ name: "Event", params: { url: c.url } }),
98
+ default: x(() => [
99
+ !e.value && r.value.length > 0 ? (d(!0), _(P, { key: 0 }, T(r.value, (c, g) => (d(), $(J, {
100
+ onClick: (y) => a.$router.push({ name: "Event", params: { url: c.url } }),
102
101
  key: c._id,
103
102
  event: c,
104
- owner: o.user,
103
+ owner: p.user,
105
104
  type: "short",
106
- class: z(["pd-medium", {
107
- "br-b br-solid br-black-transp-10": v !== r.value.length - 1
105
+ class: N(["pd-medium", {
106
+ "br-b br-solid br-black-transp-10": g !== r.value.length - 1
108
107
  }])
109
108
  }, null, 8, ["onClick", "event", "owner", "class"]))), 128)) : b("", !0)
110
109
  ]),
@@ -112,117 +111,117 @@ const ye = { class: "today-events" }, mt = {
112
111
  })
113
112
  ]));
114
113
  }
115
- }, he = ["onClick"], be = { class: "t-transp" }, ke = {
114
+ }, ke = ["onClick"], xe = { class: "t-transp" }, $e = {
116
115
  __name: "DatePicker",
117
116
  props: ["date", "locale"],
118
- setup(o, { emit: e }) {
119
- const r = o, t = k(null);
120
- let a;
117
+ setup(p, { emit: t }) {
118
+ const r = p, e = w(null);
119
+ let l;
121
120
  if (r.date) {
122
- const s = parseInt(r.date.substring(0, 2)), w = parseInt(r.date.substring(2, 4)) - 1, _ = parseInt(r.date.substring(4));
123
- a = new Date(_, w, s), console.log("Data" + a);
121
+ const u = parseInt(r.date.substring(0, 2)), E = parseInt(r.date.substring(2, 4)) - 1, s = parseInt(r.date.substring(4));
122
+ l = new Date(s, E, u), console.log("Data" + l);
124
123
  } else
125
- a = /* @__PURE__ */ new Date(), console.log("No data" + a);
126
- a.setHours(0, 0, 0, 0);
127
- const u = k(new Date(a)), n = f(a, 30);
128
- q(() => {
129
- if (t.value) {
130
- const s = t.value.getElementsByClassName("selected")[0] || t.value.getElementsByClassName("bg-main")[0];
131
- s && (t.value.scrollLeft = s.offsetLeft - t.value.offsetWidth / 2 + s.offsetWidth / 2);
124
+ l = /* @__PURE__ */ new Date(), console.log("No data" + l);
125
+ l.setHours(0, 0, 0, 0);
126
+ const i = w(new Date(l)), a = y(l, 30);
127
+ j(() => {
128
+ if (e.value) {
129
+ const u = e.value.getElementsByClassName("selected")[0] || e.value.getElementsByClassName("bg-main")[0];
130
+ u && (e.value.scrollLeft = u.offsetLeft - e.value.offsetWidth / 2 + u.offsetWidth / 2);
132
131
  }
133
132
  });
134
- function l(s) {
135
- u.value = s;
136
- const w = c(s);
137
- e("update:date", w);
133
+ function n(u) {
134
+ i.value = u;
135
+ const E = c(u);
136
+ t("update:date", E);
138
137
  }
139
- function c(s) {
140
- return `${s.getDate().toString().padStart(2, "0")}${(s.getMonth() + 1).toString().padStart(2, "0")}${s.getFullYear()}`;
138
+ function c(u) {
139
+ return `${u.getDate().toString().padStart(2, "0")}${(u.getMonth() + 1).toString().padStart(2, "0")}${u.getFullYear()}`;
141
140
  }
142
- function v(s) {
143
- return s.toLocaleDateString(r.locale ? r.locale : "en", { weekday: "narrow" }).toUpperCase();
141
+ function g(u) {
142
+ return u.toLocaleDateString(r.locale ? r.locale : "en", { weekday: "narrow" }).toUpperCase();
144
143
  }
145
- function f(s, w) {
146
- const _ = [];
147
- for (let S = -15; S < w - 15; S++) {
148
- const j = new Date(s);
149
- j.setDate(s.getDate() + S), j.setHours(0, 0, 0, 0), _.push(j);
144
+ function y(u, E) {
145
+ const s = [];
146
+ for (let o = -15; o < E - 15; o++) {
147
+ const f = new Date(u);
148
+ f.setDate(u.getDate() + o), f.setHours(0, 0, 0, 0), s.push(f);
150
149
  }
151
- return _;
150
+ return s;
152
151
  }
153
- return (s, w) => (i(), p("div", null, [
154
- d("div", {
152
+ return (u, E) => (d(), _("div", null, [
153
+ h("div", {
155
154
  class: "w-100 o-scroll flex-nowrap flex",
156
155
  ref_key: "scrollContainer",
157
- ref: t,
156
+ ref: e,
158
157
  style: { "scroll-snap-type": "x mandatory" }
159
158
  }, [
160
- (i(!0), p(D, null, P(L(n), (_) => (i(), p("div", {
161
- key: _.toString(),
162
- onClick: (S) => l(_),
163
- class: z([{
164
- selected: u.value.toDateString() === _.toDateString()
159
+ (d(!0), _(P, null, T(m(a), (s) => (d(), _("div", {
160
+ key: s.toString(),
161
+ onClick: (o) => n(s),
162
+ class: N([{
163
+ selected: i.value.toDateString() === s.toDateString()
165
164
  }, "cursor-pointer mn-r-small mn-l-small flex-column flex-center flex"])
166
165
  }, [
167
- d("span", be, A(v(_)), 1),
168
- d("span", {
169
- class: z([{
170
- "bg-main": u.value.toDateString() === _.toDateString()
166
+ h("span", xe, L(g(s)), 1),
167
+ h("span", {
168
+ class: N([{
169
+ "bg-main": i.value.toDateString() === s.toDateString()
171
170
  }, "transition-ease-in-out t-semi flex-center flex radius-big i-semi day-number"])
172
- }, A(_.getDate()), 3)
173
- ], 10, he))), 128))
171
+ }, L(s.getDate()), 3)
172
+ ], 10, ke))), 128))
174
173
  ], 512)
175
174
  ]));
176
175
  }
177
- }, we = { class: "pd-thin min-h-100vh" }, xe = /* @__PURE__ */ d("div", { class: "mn-thin br-solid br-1px br-grey bg-grey radius-big" }, null, -1), $e = { class: "" }, Ee = {
176
+ }, Ee = { class: "pd-thin min-h-100vh" }, De = /* @__PURE__ */ h("div", { class: "mn-thin br-solid br-1px br-grey bg-grey radius-big" }, null, -1), Se = { class: "" }, Pe = {
178
177
  __name: "layoutEvents",
179
- setup(o) {
180
- const e = N(), r = F(), a = u(/* @__PURE__ */ new Date());
181
- function u(n) {
182
- return `${n.getDate().toString().padStart(2, "0")}${(n.getMonth() + 1).toString().padStart(2, "0")}${n.getFullYear()}`;
178
+ setup(p) {
179
+ const t = z(), r = M(), l = i(/* @__PURE__ */ new Date());
180
+ function i(a) {
181
+ return `${a.getDate().toString().padStart(2, "0")}${(a.getMonth() + 1).toString().padStart(2, "0")}${a.getFullYear()}`;
183
182
  }
184
- if (e.query) {
185
- const n = e.query, l = {
186
- tags: n.tags ? n.tags.split(",") : null,
187
- date: n.date ? n.date : a
183
+ if (t.query) {
184
+ const a = t.query, n = {
185
+ tags: a.tags ? a.tags.split(",") : null,
186
+ date: a.date ? a.date : l
188
187
  };
189
- x.filter = l;
188
+ D.filter = n;
190
189
  } else {
191
- const n = {
192
- date: a
190
+ const a = {
191
+ date: l
193
192
  };
194
- x.filter = n;
193
+ D.filter = a;
195
194
  }
196
- return W(() => x.filter, (n, l) => {
197
- const c = { ...e.query };
198
- Object.keys(l).forEach((f) => {
199
- c[f] && delete c[f];
195
+ return W(() => D.filter, (a, n) => {
196
+ const c = { ...t.query };
197
+ Object.keys(n).forEach((y) => {
198
+ c[y] && delete c[y];
200
199
  });
201
- const v = Object.fromEntries(
202
- Object.entries(n).filter(([f, s]) => Array.isArray(s) && s.length > 0 || typeof s == "string" && s).map(([f, s]) => [f, Array.isArray(s) ? s.join(",") : s])
200
+ const g = Object.fromEntries(
201
+ Object.entries(a).filter(([y, u]) => Array.isArray(u) && u.length > 0 || typeof u == "string" && u).map(([y, u]) => [y, Array.isArray(u) ? u.join(",") : u])
203
202
  );
204
- Object.assign(c, v), r.push({ query: c });
205
- }, { deep: !0 }), (n, l) => {
206
- const c = te("router-view");
207
- return i(), p("div", we, [
208
- m(ke, {
209
- date: x.filter.date,
210
- "onUpdate:date": l[0] || (l[0] = (v) => x.filter.date = v),
211
- locale: n.$i18n.locale,
203
+ Object.assign(c, g), r.push({ query: c });
204
+ }, { deep: !0 }), (a, n) => {
205
+ const c = ae("router-view");
206
+ return d(), _("div", Ee, [
207
+ v($e, {
208
+ date: D.filter.date,
209
+ "onUpdate:date": n[0] || (n[0] = (g) => D.filter.date = g),
210
+ locale: a.$i18n.locale,
212
211
  class: "radius-small bg-grey pd-l-zero pd-r-zero pd-medium"
213
212
  }, null, 8, ["date", "locale"]),
214
- xe,
215
- d("section", $e, [
216
- m(c, null, {
217
- default: y(({ Component: v, route: f }) => [
218
- m(B, {
213
+ De,
214
+ h("section", Se, [
215
+ v(c, null, {
216
+ default: x(({ Component: g, route: y }) => [
217
+ v(q, {
219
218
  name: "scaleIn",
220
219
  mode: "out-in"
221
220
  }, {
222
- default: y(() => [
223
- (i(), h(re(v), {
221
+ default: x(() => [
222
+ (d(), $(Y(g), {
224
223
  ref: "page",
225
- key: f.query
224
+ key: y.query
226
225
  }))
227
226
  ]),
228
227
  _: 2
@@ -234,162 +233,266 @@ const ye = { class: "today-events" }, mt = {
234
233
  ]);
235
234
  };
236
235
  }
237
- };
238
- const Se = { class: "for-transition w-100" }, De = { class: "pd-b-zero pd-t-zero pd-thin" }, Pe = { class: "pd-thin" }, Ie = { class: "flex-nowrap flex bg-grey pd-medium radius-big" }, Ce = {
239
- key: 0,
240
- class: "mn-r-auto"
241
236
  }, Te = {
237
+ key: 0,
238
+ class: "pd-thin"
239
+ }, Ce = { class: "mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, Ie = /* @__PURE__ */ h("h4", null, "Upload Event Cover", -1), Oe = /* @__PURE__ */ h("h3", { class: "mn-small" }, "Date", -1), Ue = /* @__PURE__ */ h("h3", { class: "mn-small" }, "Description", -1), Le = {
240
+ key: 0,
241
+ class: "pd-b-extra w-100 bg-grey pd-big radius-big"
242
+ }, je = {
243
+ key: 1,
244
+ class: "pd-thin pos-fixed pos-l-0 pos-b-0 w-100"
245
+ }, ze = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, Ne = { class: "w-m-66r t-left pd-big bg-white radius-big" }, Be = /* @__PURE__ */ h("h3", { class: "mn-small" }, "Final Touches", -1), Fe = /* @__PURE__ */ h("h5", { class: "mn-thin" }, "Add to public:", -1), qe = {
246
+ key: 0,
247
+ class: "mn-thin"
248
+ }, Me = {
242
249
  key: 1,
243
- class: "mn-r-auto"
244
- }, ze = { class: "flex-nowrap flex pd-thin" }, Le = { class: "pd-b-zero pd-t-zero pd-thin cols-2 gap-thin" }, Ne = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, je = /* @__PURE__ */ d("h3", { class: "mn-semi" }, "Profile", -1), Oe = { class: "mn-semi" }, Ae = /* @__PURE__ */ d("h5", null, "Categories", -1), qe = { class: "" }, Be = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, Fe = /* @__PURE__ */ d("h3", { class: "mn-semi" }, "Images", -1), Me = {
250
+ class: "mn-medium br-grey br-2px br-solid pd-small radius-big"
251
+ }, Ve = {
245
252
  __name: "EditEvent",
246
- async setup(o) {
247
- let e, r;
248
- const t = N(), a = F();
249
- [e, r] = M(() => oe.fetchCategories()), await e, r(), t.params.product && ([e, r] = M(() => O.read({ _id: t.params.product })), await e, r());
250
- function u() {
251
- g.current.information.push({ name: "", value: "" });
252
- }
253
- function n(s) {
254
- g.current.information.splice(s, 1);
253
+ setup(p) {
254
+ const t = z(), r = M();
255
+ let e = w(null), l = w(null);
256
+ const i = w([]), a = w(null);
257
+ j(async () => {
258
+ if (t.params.url) {
259
+ const o = await F({ user: k.user._id, url: t.params.url });
260
+ e.value = o.pop(), e.value.date.start = e.value.date.start.slice(0, 16), e.value.date.end = e.value.date.end.slice(0, 16);
261
+ } else
262
+ X(), e.value = D.current;
263
+ e.value.owner || (e.value.owner = {
264
+ target: k.user._id,
265
+ type: "user"
266
+ }), e.value.creator || (e.value.creator = {
267
+ target: k.user._id,
268
+ type: "user",
269
+ hidden: !1
270
+ }), e.value.owner.type === "organization" && (a.value = {
271
+ _id: e.value.owner.target._id,
272
+ name: e.value.owner.target.profile.name,
273
+ photo: e.value.owner.target.profile.photo
274
+ });
275
+ const s = await fe.read({
276
+ user: k.user._id,
277
+ postable: k.user._id
278
+ });
279
+ l.value = s.map((o) => ({
280
+ name: o.profile.name,
281
+ _id: o._id,
282
+ photo: o.profile.photo
283
+ }));
284
+ });
285
+ const n = w(!1);
286
+ function c() {
287
+ n.value = !0;
255
288
  }
256
- function l() {
257
- g.current.localization.push({ locale: "", text: "" });
289
+ function g() {
290
+ n.value = !1;
258
291
  }
259
- function c(s) {
260
- g.current.localization.splice(s, 1);
292
+ function y() {
293
+ i.value.length > 0 && i.value.map((s) => s.text), e.value.status = "draft", t.params.url ? V(e.value).then((s) => {
294
+ r.push({ name: "Event", params: { url: s.url } });
295
+ }).catch((s) => {
296
+ console.error(s);
297
+ }) : A(e.value).then((s) => {
298
+ r.push({ name: "Event", params: { url: s.url } });
299
+ }).catch((s) => {
300
+ console.error(s);
301
+ });
261
302
  }
262
- function v() {
263
- t.params.product ? O.update(t.params.product, g.current) : O.create(t.params._id, g.current);
303
+ function u() {
304
+ confirm("Are you sure you want to delete this event?") && (void 0)(e.value._id).then((s) => {
305
+ r.push({ name: "Drafts" });
306
+ }).catch((s) => {
307
+ console.error(s);
308
+ });
264
309
  }
265
- function f() {
266
- a.push({ name: "ProductEdit", params: { _id: t.params._id, product: g.current._id } });
310
+ function E() {
311
+ a.value && (e.value.owner = {
312
+ target: a.value._id,
313
+ type: "organization"
314
+ }), a.value || (e.value.creator.hidden = !1), a.value || (e.value.organization = e.value.creator), e.value.status = "published", console.log(e.value), t.params.url ? V(e.value).then((s) => {
315
+ r.push({ name: "Blogevent", params: { url: s.url } });
316
+ }).catch((s) => {
317
+ console.log(s);
318
+ }) : A(e.value).then((s) => {
319
+ r.push({ name: "Event", params: { url: s.url } });
320
+ }).catch((s) => {
321
+ console.log(s);
322
+ });
267
323
  }
268
- return (s, w) => (i(), p("div", Se, [
269
- d("div", De, [
270
- m(ie, { class: "pd-medium bg-grey radius-big" })
324
+ return (s, o) => m(e) ? (d(), _("article", Te, [
325
+ h("div", Ce, [
326
+ v(me, {
327
+ photo: m(e).cover,
328
+ "onUpdate:photo": o[0] || (o[0] = (f) => m(e).cover = f),
329
+ uploadPath: "users/" + k.user._id + "/events",
330
+ class: "h-4r w-4r aspect-1x1 o-hidden mn-thin radius-extra"
331
+ }, null, 8, ["photo", "uploadPath"]),
332
+ Ie
271
333
  ]),
272
- d("div", Pe, [
273
- d("header", Ie, [
274
- L(t).params.product ? (i(), p("h1", Ce, "Edit Product")) : (i(), p("h1", Te, "Create Product")),
275
- d("section", ze, [
276
- m(K, {
277
- submit: v,
278
- callback: f
334
+ v(C, {
335
+ field: m(e).name,
336
+ "onUpdate:field": o[1] || (o[1] = (f) => m(e).name = f),
337
+ placeholder: "Event name",
338
+ class: "mn-thin w-100 bg-grey pd-medium radius-small"
339
+ }, null, 8, ["field"]),
340
+ v(C, {
341
+ field: m(e).description,
342
+ "onUpdate:field": o[2] || (o[2] = (f) => m(e).description = f),
343
+ type: "textfield",
344
+ placeholder: "Enter short description",
345
+ class: "mn-thin w-100 bg-grey pd-medium radius-small"
346
+ }, null, 8, ["field"]),
347
+ Oe,
348
+ B(" " + L(m(e).date.start) + " ", 1),
349
+ v(C, {
350
+ field: m(e).date.start,
351
+ "onUpdate:field": o[3] || (o[3] = (f) => m(e).date.start = f),
352
+ label: "Start",
353
+ type: "datetime-local",
354
+ placeholder: "Not specified",
355
+ class: "mn-thin w-100 bg-grey pd-medium radius-small"
356
+ }, null, 8, ["field"]),
357
+ v(C, {
358
+ field: m(e).date.end,
359
+ "onUpdate:field": o[4] || (o[4] = (f) => m(e).date.end = f),
360
+ label: "End",
361
+ type: "datetime-local",
362
+ placeholder: "Not specified",
363
+ class: "mn-thin w-100 bg-grey pd-medium radius-small"
364
+ }, null, 8, ["field"]),
365
+ Ue,
366
+ m(e) ? (d(), _("section", Le, [
367
+ v(ue, {
368
+ content: m(e).content,
369
+ onUpdate: o[5] || (o[5] = (f) => m(e).content = f)
370
+ }, null, 8, ["content"])
371
+ ])) : b("", !0),
372
+ m(e) ? (d(), _("section", je, [
373
+ h("div", ze, [
374
+ m(t).params.url ? (d(), _("a", {
375
+ key: 0,
376
+ onClick: o[6] || (o[6] = (f) => u()),
377
+ class: "mn-r-auto bg-red t-white t-black button"
378
+ }, "Delete")) : b("", !0),
379
+ h("a", {
380
+ onClick: o[7] || (o[7] = (f) => y()),
381
+ class: "mn-l-auto bg-white t-black button"
382
+ }, "To Drafts"),
383
+ h("a", {
384
+ onClick: o[8] || (o[8] = (f) => c()),
385
+ class: "mn-l-thin bg-black t-white button"
386
+ }, "Publish")
387
+ ])
388
+ ])) : b("", !0),
389
+ v(pe, {
390
+ title: "Добавить участника",
391
+ onClosePopup: g,
392
+ isPopupOpen: n.value
393
+ }, {
394
+ default: x(() => [
395
+ h("div", Ne, [
396
+ Be,
397
+ v(oe, {
398
+ onTagsChanged: o[9] || (o[9] = (f) => m(e).tags = f),
399
+ tags: m(e).tags
400
+ }, null, 8, ["tags"]),
401
+ Fe,
402
+ v(le, {
403
+ modelValue: a.value,
404
+ "onUpdate:modelValue": o[10] || (o[10] = (f) => a.value = f),
405
+ options: m(l),
406
+ multiple: !1,
407
+ taggable: !1,
408
+ placeholder: "Type to search or add tag",
409
+ label: "name",
410
+ "track-by": "_id",
411
+ class: "mn-medium bg-grey radius-medium pd-small"
412
+ }, null, 8, ["modelValue", "options"]),
413
+ a.value ? (d(), _("h5", qe, "Options:")) : b("", !0),
414
+ a.value ? (d(), _("div", Me, [
415
+ v(ie, {
416
+ label: "Hide Author",
417
+ radio: m(e).creator.hidden,
418
+ "onUpdate:radio": o[11] || (o[11] = (f) => m(e).creator.hidden = f),
419
+ name: "prices",
420
+ class: "w-100"
421
+ }, null, 8, ["radio"])
422
+ ])) : b("", !0),
423
+ v(K, {
424
+ submit: E,
425
+ callback: s.redirectTo,
426
+ class: "w-100 bg-black t-white"
279
427
  }, {
280
- default: y(() => [
281
- Y("Save Product")
428
+ default: x(() => [
429
+ B("Publish")
282
430
  ]),
283
431
  _: 1
284
- })
432
+ }, 8, ["callback"])
285
433
  ])
286
- ])
287
- ]),
288
- d("div", Le, [
289
- d("div", Ne, [
290
- je,
291
- m(ce, {
292
- product: g.current
293
- }, null, 8, ["product"]),
294
- d("div", Oe, [
295
- Ae,
296
- (i(!0), p(D, null, P(le.all, (_, S) => (i(), h(se, {
297
- label: _.name,
298
- name: "categories",
299
- value: _.url,
300
- class: "w-100 mn-t-small bg-white radius-small pd-small",
301
- radio: g.current.category
302
- }, null, 8, ["label", "value", "radio"]))), 256))
303
- ]),
304
- m(U, {
305
- items: g.current.information,
306
- title: "Parameters",
307
- emptyMessage: "No parameters",
308
- addButtonLabel: "Add parameter",
309
- keyName: "name",
310
- valueName: "value",
311
- onAddInfo: u,
312
- onDeleteInfo: n
313
- }, null, 8, ["items"]),
314
- m(U, {
315
- items: g.current.localization,
316
- title: "Localization",
317
- emptyMessage: "No localizations",
318
- addButtonLabel: "Add localization",
319
- keyName: "locale",
320
- valueName: "text",
321
- onAddInfo: l,
322
- onDeleteInfo: c
323
- }, null, 8, ["items"])
324
434
  ]),
325
- d("div", qe, [
326
- d("div", Be, [
327
- Fe,
328
- m(ue, {
329
- product: g.current
330
- }, null, 8, ["product"])
331
- ])
332
- ])
333
- ])
334
- ]));
435
+ _: 1
436
+ }, 8, ["isPopupOpen"])
437
+ ])) : b("", !0);
335
438
  }
336
- }, V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
439
+ }, H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
337
440
  __proto__: null,
338
- default: Me
339
- }, Symbol.toStringTag, { value: "Module" })), C = ne.create({
441
+ default: Ve
442
+ }, Symbol.toStringTag, { value: "Module" })), O = se.create({
340
443
  baseURL: process.env.API_URL,
341
444
  withCredentials: !0
342
- }), E = ae({
445
+ }), S = re({
343
446
  tickets: [],
344
447
  error: null
345
448
  }), R = {
346
- async read({ user: o, type: e, target: r, role: t }) {
449
+ async read({ user: p, type: t, target: r, role: e }) {
347
450
  try {
348
- const a = await C.get("/api/tickets", { params: { user: o, type: e, target: r, role: t } });
349
- return E.error = null, E.tickets = a.data, Promise.resolve(a.data);
350
- } catch (a) {
351
- return I(a), Promise.reject(a);
451
+ const l = await O.get("/api/tickets", { params: { user: p, type: t, target: r, role: e } });
452
+ return S.error = null, S.tickets = l.data, Promise.resolve(l.data);
453
+ } catch (l) {
454
+ return I(l), Promise.reject(l);
352
455
  }
353
456
  },
354
- async create(o) {
457
+ async create(p) {
355
458
  try {
356
- const e = await C.post("/api/tickets/create", o);
357
- return E.error = null, Promise.resolve(e.data);
358
- } catch (e) {
359
- return I(e), Promise.reject(e);
459
+ const t = await O.post("/api/tickets/create", p);
460
+ return S.error = null, Promise.resolve(t.data);
461
+ } catch (t) {
462
+ return I(t), Promise.reject(t);
360
463
  }
361
464
  },
362
- async update(o) {
465
+ async update(p) {
363
466
  try {
364
- const e = await C.post("/api/tickets/update", o);
365
- return E.error = null, Promise.resolve(e.data);
366
- } catch (e) {
367
- return I(e), Promise.reject(e);
467
+ const t = await O.post("/api/tickets/update", p);
468
+ return S.error = null, Promise.resolve(t.data);
469
+ } catch (t) {
470
+ return I(t), Promise.reject(t);
368
471
  }
369
472
  },
370
- async delete(o) {
473
+ async delete(p) {
371
474
  try {
372
- const e = await C.post("/api/tickets/delete", o);
373
- return E.error = null, Promise.resolve(e.data);
374
- } catch (e) {
375
- return I(e), Promise.reject(e);
475
+ const t = await O.post("/api/tickets/delete", p);
476
+ return S.error = null, Promise.resolve(t.data);
477
+ } catch (t) {
478
+ return I(t), Promise.reject(t);
376
479
  }
377
480
  }
378
- }, Ue = {
379
- handleTicketUpdate(o, e, r) {
380
- let t;
381
- if (Array.isArray(o) ? t = o.find((a) => a._id === e.target) : typeof o == "object" && o._id === e.target && (t = o), t)
382
- if (t.hasTicket = r, r)
383
- t.tickets.push(e), t.numberOfTickets += 1;
481
+ }, Ae = {
482
+ handleTicketUpdate(p, t, r) {
483
+ let e;
484
+ if (Array.isArray(p) ? e = p.find((l) => l._id === t.target) : typeof p == "object" && p._id === t.target && (e = p), e)
485
+ if (e.hasTicket = r, r)
486
+ e.tickets.push(t), e.numberOfTickets += 1;
384
487
  else {
385
- const a = t.tickets.findIndex((u) => u._id === e._id);
386
- a !== -1 && (t.tickets.splice(a, 1), t.numberOfTickets -= 1);
488
+ const l = e.tickets.findIndex((i) => i._id === t._id);
489
+ l !== -1 && (e.tickets.splice(l, 1), e.numberOfTickets -= 1);
387
490
  }
388
491
  }
389
492
  };
390
- W(E, (o) => {
493
+ W(S, (p) => {
391
494
  });
392
- const Ve = {
495
+ const He = {
393
496
  __name: "ButtonJoin",
394
497
  props: {
395
498
  type: {
@@ -411,71 +514,81 @@ const Ve = {
411
514
  }
412
515
  },
413
516
  emits: ["updateTicket"],
414
- setup(o, { emit: e }) {
415
- const r = o, t = async () => {
416
- r.hasTicket ? await u(r.targetId) : await a(r.targetId);
517
+ setup(p, { emit: t }) {
518
+ const r = p, e = async () => {
519
+ r.hasTicket ? await i(r.targetId) : await l(r.targetId);
417
520
  };
418
- async function a(n) {
521
+ async function l(a) {
419
522
  try {
420
- const l = {
523
+ const n = {
421
524
  // Renamed membershipData to ticketData
422
525
  type: r.type,
423
- target: n,
526
+ target: a,
424
527
  user: r.userId
425
- }, c = await R.create(l);
426
- e("updateTicket", { ticket: c, hasTicket: !0, targetId: r.targetId });
427
- } catch (l) {
428
- throw console.log(l), l;
528
+ }, c = await R.create(n);
529
+ t("updateTicket", { ticket: c, hasTicket: !0, targetId: r.targetId });
530
+ } catch (n) {
531
+ throw console.log(n), n;
429
532
  }
430
533
  }
431
- async function u(n) {
432
- const l = {
534
+ async function i(a) {
535
+ const n = {
433
536
  // Renamed membershipData to ticketData
434
537
  type: r.type,
435
- target: n,
538
+ target: a,
436
539
  user: r.userId
437
540
  };
438
541
  try {
439
- const c = await R.delete(l);
440
- e("updateTicket", { ticket: c, hasTicket: !1, targetId: r.targetId });
542
+ const c = await R.delete(n);
543
+ t("updateTicket", { ticket: c, hasTicket: !1, targetId: r.targetId });
441
544
  } catch (c) {
442
545
  throw console.log(c), c;
443
546
  }
444
547
  }
445
- return (n, l) => (i(), h(K, {
446
- submit: t,
548
+ return (a, n) => (d(), $(K, {
549
+ submit: e,
447
550
  class: "bg-main button-small button"
448
551
  }, {
449
- default: y(() => [
450
- Y(A(o.hasTicket ? "Leave" : "Join"), 1)
552
+ default: x(() => [
553
+ B(L(p.hasTicket ? "Leave" : "Join"), 1)
451
554
  ]),
452
555
  _: 1
453
556
  }));
454
557
  }
455
- }, Re = /* @__PURE__ */ Q(Ve, [["__scopeId", "data-v-d5c351bb"]]), Je = { class: "pd-thin" }, He = {
558
+ }, Re = /* @__PURE__ */ Q(He, [["__scopeId", "data-v-d5c351bb"]]), Je = { class: "pd-thin" }, We = {
456
559
  __name: "Event",
457
- setup(o) {
458
- const e = N(), r = ({ ticket: u, hasTicket: n, targetId: l }) => {
459
- Ue.handleTicketUpdate(t.value, u, n, l);
460
- }, t = k(null), a = k(!0);
461
- return q(async () => {
560
+ setup(p) {
561
+ const t = z(), r = ({ ticket: n, hasTicket: c, targetId: g }) => {
562
+ Ae.handleTicketUpdate(i.value, n, c, g);
563
+ }, e = {
564
+ Textarea: "p",
565
+ H2: "h2",
566
+ Bullets: "p",
567
+ Caption: "p",
568
+ ImageUpload: de
569
+ };
570
+ function l(n) {
571
+ return n.type === "Textarea" ? { innerHTML: n.content, class: "p-medium" } : n.type === "H2" ? { innerHTML: n.content, class: "h3" } : n.type === "Caption" ? { innerHTML: n.content } : n.type === "ImageUpload" ? { src: n.content } : {};
572
+ }
573
+ const i = w(null), a = w(!0);
574
+ return j(async () => {
462
575
  a.value = !0;
463
- const u = await J({ user: $.user._id, url: e.params.url });
464
- t.value = u[0], a.value = !1;
465
- }), (u, n) => (i(), p("section", Je, [
466
- m(T, {
576
+ const n = await F({ user: k.user._id, url: t.params.url });
577
+ i.value = n[0], a.value = !1;
578
+ }), (n, c) => (d(), _("section", Je, [
579
+ v(U, {
467
580
  tag: "ul",
468
581
  name: "fade",
469
582
  class: "o-hidden bg-grey radius-big"
470
583
  }, {
471
- default: y(() => [
472
- a.value ? (i(), p(D, { key: 0 }, P(3, (l) => m(X, { key: l })), 64)) : b("", !0)
584
+ default: x(() => [
585
+ a.value ? (d(), _(P, { key: 0 }, T(3, (g) => v(Z, { key: g })), 64)) : b("", !0)
473
586
  ]),
474
587
  _: 1
475
588
  }),
476
- m(B, { name: "fade" }, {
477
- default: y(() => [
478
- !a.value && !t.value ? (i(), h(G, {
589
+ v(q, { name: "fade" }, {
590
+ default: x(() => [
591
+ !a.value && !i.value ? (d(), $(G, {
479
592
  key: 0,
480
593
  title: "No Event Found",
481
594
  description: "Currently, there are no events available. Please check back later.",
@@ -484,70 +597,78 @@ const Ve = {
484
597
  ]),
485
598
  _: 1
486
599
  }),
487
- m(T, {
600
+ v(U, {
488
601
  tag: "ul",
489
602
  name: "fade",
490
603
  class: "container"
491
604
  }, {
492
- default: y(() => [
493
- !a.value && t.value ? (i(), h(H, {
605
+ default: x(() => [
606
+ !a.value && i.value ? (d(), $(J, {
494
607
  key: 0,
495
- onClick: n[0] || (n[0] = (l) => u.$router.push({ name: "Event", params: { url: t.value.url } })),
496
- event: t.value,
497
- owner: t.value.owner,
498
- user: $.user._id,
608
+ onClick: c[0] || (c[0] = (g) => n.$router.push({ name: "Event", params: { url: i.value.url } })),
609
+ event: i.value,
610
+ owner: i.value.owner,
611
+ user: k.user._id,
499
612
  type: "normal",
500
- class: z(["mn-medium", {
501
- "br-b br-solid br-black-transp-10": u.index !== t.value.length - 1
502
- }])
613
+ class: "mn-medium bg-grey radius-big"
503
614
  }, {
504
- default: y(() => [
505
- $.user._id ? (i(), h(Re, {
615
+ default: x(() => [
616
+ k.user._id ? (d(), $(Re, {
506
617
  key: 0,
507
618
  type: "event",
508
- hasTicket: t.value.hasTicket,
509
- targetId: t.value._id,
510
- userId: $.user._id,
619
+ hasTicket: i.value.hasTicket,
620
+ targetId: i.value._id,
621
+ userId: k.user._id,
511
622
  class: "mn-small w-100 pd-medium mn-auto",
512
623
  onUpdateTicket: r
513
- }, null, 8, ["hasTicket", "targetId", "userId"])) : b("", !0)
624
+ }, null, 8, ["hasTicket", "targetId", "userId"])) : b("", !0),
625
+ h("section", null, [
626
+ i.value && i.value.content ? (d(!0), _(P, { key: 0 }, T(i.value.content, (g, y) => (d(), $(Y(e[g.type]), ne({
627
+ key: y,
628
+ index: y,
629
+ component: g,
630
+ prop: g,
631
+ class: g.class,
632
+ content: "content"
633
+ }, l(g), { class: "mn-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : b("", !0)
634
+ ])
514
635
  ]),
515
636
  _: 1
516
- }, 8, ["event", "owner", "user", "class"])) : b("", !0),
517
- !a.value && t.value ? (i(), h(de, {
637
+ }, 8, ["event", "owner", "user"])) : b("", !0),
638
+ !a.value && i.value ? (d(), $(ce, {
518
639
  key: 1,
519
640
  type: "event",
520
- target: t.value._id,
521
- owner: $.user._id
641
+ target: i.value._id,
642
+ owner: k.user._id
522
643
  }, null, 8, ["target", "owner"])) : b("", !0)
523
644
  ]),
524
645
  _: 1
525
646
  })
526
647
  ]));
527
648
  }
528
- }, We = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
649
+ }, Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
529
650
  __proto__: null,
530
- default: He
531
- }, Symbol.toStringTag, { value: "Module" })), Ye = {
651
+ default: We
652
+ }, Symbol.toStringTag, { value: "Module" })), Ge = {
532
653
  __name: "Events",
533
- setup(o) {
534
- const e = N();
535
- return F(), (r, t) => (i(), p("section", null, [
536
- m(Z, {
537
- category: L(e).params.category,
538
- user: $.user._id,
539
- period: L(e).query.period,
540
- selectedDate: x.filter.date
654
+ setup(p) {
655
+ const t = z();
656
+ return M(), (r, e) => (d(), _("section", null, [
657
+ v(ee, {
658
+ category: m(t).params.category,
659
+ user: k.user._id,
660
+ period: m(t).query.period,
661
+ selectedDate: D.filter.date
541
662
  }, null, 8, ["category", "user", "period", "selectedDate"])
542
663
  ]));
543
664
  }
544
- }, Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
665
+ }, Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
545
666
  __proto__: null,
546
- default: Ye
547
- }, Symbol.toStringTag, { value: "Module" })), pt = [
667
+ default: Ge
668
+ }, Symbol.toStringTag, { value: "Module" })), mt = [
548
669
  {
549
670
  path: "events",
550
- component: Ee,
671
+ component: Pe,
551
672
  meta: {
552
673
  title: {
553
674
  en: "Events",
@@ -557,7 +678,7 @@ const Ve = {
557
678
  children: [{
558
679
  path: ":category?",
559
680
  name: "Events",
560
- component: () => Promise.resolve().then(() => Ge)
681
+ component: () => Promise.resolve().then(() => Qe)
561
682
  }]
562
683
  },
563
684
  {
@@ -570,7 +691,7 @@ const Ve = {
570
691
  },
571
692
  authorize: []
572
693
  },
573
- component: () => Promise.resolve().then(() => V)
694
+ component: () => Promise.resolve().then(() => H)
574
695
  },
575
696
  {
576
697
  path: "events/:url",
@@ -581,23 +702,23 @@ const Ve = {
581
702
  ru: "Событие"
582
703
  }
583
704
  },
584
- component: () => Promise.resolve().then(() => We)
705
+ component: () => Promise.resolve().then(() => Ye)
585
706
  },
586
707
  {
587
708
  path: "events/:url/edit",
588
709
  name: "Edit Event",
589
710
  meta: { authorize: [] },
590
- component: () => Promise.resolve().then(() => V)
711
+ component: () => Promise.resolve().then(() => H)
591
712
  }
592
713
  ];
593
714
  export {
594
- H as CardEvent,
595
- Me as EditEvent,
596
- He as EventPage,
597
- Ee as EventsLayout,
598
- Ye as EventsPage,
599
- Z as Feed,
600
- mt as List,
601
- pt as eventsRoutes,
602
- gt as eventsStore
715
+ J as CardEvent,
716
+ Ve as EditEvent,
717
+ We as EventPage,
718
+ Pe as EventsLayout,
719
+ Ge as EventsPage,
720
+ ee as Feed,
721
+ pt as List,
722
+ mt as eventsRoutes,
723
+ vt as eventsStore
603
724
  };