@ozdao/prometheus-framework 0.0.87 → 0.0.89

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