@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.
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-15e71ec4.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs +1944 -0
- package/dist/CardOrganization-ee5c34ab.js +1 -0
- package/dist/CardOrganization-f70bd169.mjs +202 -0
- package/dist/Comments-63f154a6.js +9 -0
- package/dist/Comments-c5afa4d6.mjs +459 -0
- package/dist/Feed-51e4e232.js +1 -0
- package/dist/Feed-8fd41524.js +1 -0
- package/dist/Feed-dc8b66bf.mjs +367 -0
- package/dist/Feed-ecf37814.mjs +367 -0
- package/dist/IconEdit-736c89be.js +1 -0
- package/dist/IconEdit-e9fd4c6c.mjs +21 -0
- package/dist/Image-6c7584f5.mjs +477 -0
- package/dist/Image-9a870c88.js +9 -0
- package/dist/Popup-105ef2c3.js +1 -0
- package/dist/Popup-82fb2c8a.mjs +76 -0
- package/dist/Product-1724d88d.mjs +837 -0
- package/dist/Product-2f3d592f.mjs +837 -0
- package/dist/Product-2fbf9d99.js +7 -0
- package/dist/Product-a94d8b65.js +7 -0
- package/dist/ProductEdit-20709821.mjs +349 -0
- package/dist/ProductEdit-57484f1e.mjs +349 -0
- package/dist/ProductEdit-a81d13b9.js +1 -0
- package/dist/ProductEdit-ef301baa.js +1 -0
- package/dist/ProfileBlogposts-eca9916c.js +1 -0
- package/dist/ProfileBlogposts-fb014bc6.mjs +63 -0
- package/dist/ProfileComments-58094a50.mjs +43 -0
- package/dist/ProfileComments-b919f021.js +1 -0
- package/dist/ProfileEvents-05485e20.js +1 -0
- package/dist/ProfileEvents-1cfe6858.mjs +55 -0
- package/dist/ProfileEvents-5d206e3d.mjs +55 -0
- package/dist/ProfileEvents-d8e16509.js +1 -0
- package/dist/ProfileLikes-2f3a4488.js +1 -0
- package/dist/ProfileLikes-b5ac7f48.mjs +43 -0
- package/dist/ProfileOrganizations-0b76e38f.js +1 -0
- package/dist/ProfileOrganizations-32ab1e30.mjs +211 -0
- package/dist/Publics-3f277c17.js +1 -0
- package/dist/Publics-9ebffff1.mjs +122 -0
- package/dist/Tab-58cd105f.mjs +46 -0
- package/dist/Tab-6f0a4909.js +1 -0
- package/dist/UploadImage-441e8526.js +1 -0
- package/dist/UploadImage-ff8f9a0c.mjs +83 -0
- package/dist/auth.client.cjs +2 -2
- package/dist/auth.client.js +60 -40
- package/dist/community.client.cjs +1 -9
- package/dist/community.client.js +361 -750
- package/dist/community.server.js +16 -4
- package/dist/community.server.mjs +16 -4
- package/dist/events.client.cjs +1 -1
- package/dist/events.client.js +442 -321
- package/dist/events.server.js +96 -2
- package/dist/events.server.mjs +96 -2
- package/dist/inputs.validation-24ae76b9.js +1 -0
- package/dist/modules/constructor/components/elements/Bullets.vue.d.ts +15 -0
- package/dist/modules/constructor/components/elements/Caption.vue.d.ts +15 -0
- package/dist/modules/constructor/components/elements/H2.vue.d.ts +16 -0
- package/dist/modules/constructor/components/elements/Image.vue.d.ts +8 -0
- package/dist/modules/constructor/components/elements/ImageUpload.vue.d.ts +9 -0
- package/dist/modules/constructor/components/elements/Textarea.vue.d.ts +12 -0
- package/dist/modules/constructor/components/sections/Constructor.vue.d.ts +7 -0
- package/dist/modules/events/components/sections/Feed.vue.d.ts +1 -0
- package/dist/organizations-1b4c84ee.mjs +121 -0
- package/dist/organizations-af43bda4.js +1 -0
- package/dist/organizations.client-253c8068.mjs +3179 -0
- package/dist/organizations.client-686845be.mjs +3179 -0
- package/dist/organizations.client-99bfc474.js +3 -0
- package/dist/organizations.client-c60d7659.js +3 -0
- package/dist/organizations.client.cjs +1 -3
- package/dist/organizations.client.js +49 -3025
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +10 -10
- package/package.json +1 -1
- package/src/modules/auth/router/auth.js +28 -7
- package/src/modules/community/community.client.js +1 -12
- package/src/modules/community/components/pages/BlogPost.vue +1 -1
- package/src/modules/community/components/pages/CreateBlogPost.vue +8 -151
- package/src/modules/community/middlewares/server/verifyBlogpost.js +24 -11
- package/src/modules/{community → constructor}/components/elements/Textarea.vue +3 -11
- package/src/modules/constructor/components/sections/Constructor.vue +167 -0
- package/src/modules/events/components/blocks/CardEvent.vue +15 -7
- package/src/modules/events/components/pages/EditEvent.vue +233 -133
- package/src/modules/events/components/pages/Event.vue +43 -4
- package/src/modules/events/components/sections/Feed.vue +7 -1
- package/src/modules/events/controllers/events.controller.js +9 -0
- package/src/modules/events/controllers/tickets.controller.js +2 -1
- package/src/modules/events/middlewares/server/index.js +10 -0
- package/src/modules/events/middlewares/server/verifyEvent.js +60 -0
- package/src/modules/events/models/event.model.js +10 -0
- package/src/modules/events/routes/events.routes.js +14 -1
- package/src/modules/events/store/events.js +15 -19
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -3
- package/src/modules/organizations/components/sections/Publics.vue +2 -3
- package/src/modules/organizations/organizations.client.js +0 -2
- package/src/modules/users/components/pages/ProfileEvents.vue +3 -3
- package/src/modules/organizations/components/blocks/CardOrganizationSocial.vue +0 -46
- /package/src/modules/{community → constructor}/components/elements/Bullets.vue +0 -0
- /package/src/modules/{community → constructor}/components/elements/Caption.vue +0 -0
- /package/src/modules/{community → constructor}/components/elements/H2.vue +0 -0
- /package/src/modules/{community → constructor}/components/elements/Image.vue +0 -0
- /package/src/modules/{community → constructor}/components/elements/ImageUpload.vue +0 -0
package/dist/events.client.js
CHANGED
@@ -1,32 +1,31 @@
|
|
1
|
-
import { r as
|
2
|
-
import { e as
|
3
|
-
import { openBlock as
|
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,
|
6
|
-
import { useRoute as
|
7
|
-
import { C as
|
8
|
-
import {
|
9
|
-
import "./
|
10
|
-
import "
|
11
|
-
import {
|
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
|
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
|
17
|
+
const ge = {}, ve = {
|
19
18
|
width: "100%",
|
20
19
|
height: "50",
|
21
20
|
xmlns: "http://www.w3.org/2000/svg"
|
22
|
-
}, _e = /* @__PURE__ */
|
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
|
26
|
-
return
|
24
|
+
function ye(p, t) {
|
25
|
+
return d(), _("svg", ve, he);
|
27
26
|
}
|
28
|
-
const
|
29
|
-
const
|
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(
|
58
|
-
const
|
59
|
-
return
|
60
|
-
const
|
61
|
-
skip:
|
62
|
-
limit:
|
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:
|
65
|
-
user:
|
66
|
-
owner:
|
67
|
-
organization:
|
68
|
-
period:
|
69
|
-
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 =
|
72
|
-
}), (
|
73
|
-
|
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:
|
79
|
-
|
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
|
-
|
84
|
-
default:
|
85
|
-
!
|
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
|
-
|
93
|
+
v(U, {
|
95
94
|
tag: "ul",
|
96
95
|
name: "fade",
|
97
96
|
class: "container"
|
98
97
|
}, {
|
99
|
-
default:
|
100
|
-
!
|
101
|
-
onClick: (
|
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:
|
103
|
+
owner: p.user,
|
105
104
|
type: "short",
|
106
|
-
class:
|
107
|
-
"br-b br-solid br-black-transp-10":
|
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
|
-
},
|
114
|
+
}, ke = ["onClick"], xe = { class: "t-transp" }, $e = {
|
116
115
|
__name: "DatePicker",
|
117
116
|
props: ["date", "locale"],
|
118
|
-
setup(
|
119
|
-
const r =
|
120
|
-
let
|
117
|
+
setup(p, { emit: t }) {
|
118
|
+
const r = p, e = w(null);
|
119
|
+
let l;
|
121
120
|
if (r.date) {
|
122
|
-
const
|
123
|
-
|
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
|
-
|
126
|
-
|
127
|
-
const
|
128
|
-
|
129
|
-
if (
|
130
|
-
const
|
131
|
-
|
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
|
135
|
-
|
136
|
-
const
|
137
|
-
|
133
|
+
function n(u) {
|
134
|
+
i.value = u;
|
135
|
+
const E = c(u);
|
136
|
+
t("update:date", E);
|
138
137
|
}
|
139
|
-
function c(
|
140
|
-
return `${
|
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
|
143
|
-
return
|
141
|
+
function g(u) {
|
142
|
+
return u.toLocaleDateString(r.locale ? r.locale : "en", { weekday: "narrow" }).toUpperCase();
|
144
143
|
}
|
145
|
-
function
|
146
|
-
const
|
147
|
-
for (let
|
148
|
-
const
|
149
|
-
|
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 (
|
154
|
-
|
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:
|
156
|
+
ref: e,
|
158
157
|
style: { "scroll-snap-type": "x mandatory" }
|
159
158
|
}, [
|
160
|
-
(
|
161
|
-
key:
|
162
|
-
onClick: (
|
163
|
-
class:
|
164
|
-
selected:
|
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
|
-
|
168
|
-
|
169
|
-
class:
|
170
|
-
"bg-main":
|
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
|
-
},
|
173
|
-
], 10,
|
171
|
+
}, L(s.getDate()), 3)
|
172
|
+
], 10, ke))), 128))
|
174
173
|
], 512)
|
175
174
|
]));
|
176
175
|
}
|
177
|
-
},
|
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(
|
180
|
-
const
|
181
|
-
function
|
182
|
-
return `${
|
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 (
|
185
|
-
const
|
186
|
-
tags:
|
187
|
-
date:
|
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
|
-
|
188
|
+
D.filter = n;
|
190
189
|
} else {
|
191
|
-
const
|
192
|
-
date:
|
190
|
+
const a = {
|
191
|
+
date: l
|
193
192
|
};
|
194
|
-
|
193
|
+
D.filter = a;
|
195
194
|
}
|
196
|
-
return W(() =>
|
197
|
-
const c = { ...
|
198
|
-
Object.keys(
|
199
|
-
c[
|
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
|
202
|
-
Object.entries(
|
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,
|
205
|
-
}, { deep: !0 }), (
|
206
|
-
const c =
|
207
|
-
return
|
208
|
-
|
209
|
-
date:
|
210
|
-
"onUpdate:date":
|
211
|
-
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
|
-
|
215
|
-
|
216
|
-
|
217
|
-
default:
|
218
|
-
|
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:
|
223
|
-
(
|
221
|
+
default: x(() => [
|
222
|
+
(d(), $(Y(g), {
|
224
223
|
ref: "page",
|
225
|
-
key:
|
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-
|
244
|
-
},
|
250
|
+
class: "mn-medium br-grey br-2px br-solid pd-small radius-big"
|
251
|
+
}, Ve = {
|
245
252
|
__name: "EditEvent",
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
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
|
257
|
-
|
289
|
+
function g() {
|
290
|
+
n.value = !1;
|
258
291
|
}
|
259
|
-
function
|
260
|
-
|
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
|
263
|
-
|
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
|
266
|
-
a.
|
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,
|
269
|
-
|
270
|
-
|
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
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
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:
|
281
|
-
|
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
|
-
|
326
|
-
|
327
|
-
|
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
|
-
},
|
439
|
+
}, H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
337
440
|
__proto__: null,
|
338
|
-
default:
|
339
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
441
|
+
default: Ve
|
442
|
+
}, Symbol.toStringTag, { value: "Module" })), O = se.create({
|
340
443
|
baseURL: process.env.API_URL,
|
341
444
|
withCredentials: !0
|
342
|
-
}),
|
445
|
+
}), S = re({
|
343
446
|
tickets: [],
|
344
447
|
error: null
|
345
448
|
}), R = {
|
346
|
-
async read({ user:
|
449
|
+
async read({ user: p, type: t, target: r, role: e }) {
|
347
450
|
try {
|
348
|
-
const
|
349
|
-
return
|
350
|
-
} catch (
|
351
|
-
return I(
|
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(
|
457
|
+
async create(p) {
|
355
458
|
try {
|
356
|
-
const
|
357
|
-
return
|
358
|
-
} catch (
|
359
|
-
return I(
|
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(
|
465
|
+
async update(p) {
|
363
466
|
try {
|
364
|
-
const
|
365
|
-
return
|
366
|
-
} catch (
|
367
|
-
return I(
|
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(
|
473
|
+
async delete(p) {
|
371
474
|
try {
|
372
|
-
const
|
373
|
-
return
|
374
|
-
} catch (
|
375
|
-
return I(
|
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
|
-
},
|
379
|
-
handleTicketUpdate(
|
380
|
-
let
|
381
|
-
if (Array.isArray(
|
382
|
-
if (
|
383
|
-
|
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
|
386
|
-
|
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(
|
493
|
+
W(S, (p) => {
|
391
494
|
});
|
392
|
-
const
|
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(
|
415
|
-
const r =
|
416
|
-
r.hasTicket ? await
|
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
|
521
|
+
async function l(a) {
|
419
522
|
try {
|
420
|
-
const
|
523
|
+
const n = {
|
421
524
|
// Renamed membershipData to ticketData
|
422
525
|
type: r.type,
|
423
|
-
target:
|
526
|
+
target: a,
|
424
527
|
user: r.userId
|
425
|
-
}, c = await R.create(
|
426
|
-
|
427
|
-
} catch (
|
428
|
-
throw console.log(
|
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
|
432
|
-
const
|
534
|
+
async function i(a) {
|
535
|
+
const n = {
|
433
536
|
// Renamed membershipData to ticketData
|
434
537
|
type: r.type,
|
435
|
-
target:
|
538
|
+
target: a,
|
436
539
|
user: r.userId
|
437
540
|
};
|
438
541
|
try {
|
439
|
-
const c = await R.delete(
|
440
|
-
|
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 (
|
446
|
-
submit:
|
548
|
+
return (a, n) => (d(), $(K, {
|
549
|
+
submit: e,
|
447
550
|
class: "bg-main button-small button"
|
448
551
|
}, {
|
449
|
-
default:
|
450
|
-
|
552
|
+
default: x(() => [
|
553
|
+
B(L(p.hasTicket ? "Leave" : "Join"), 1)
|
451
554
|
]),
|
452
555
|
_: 1
|
453
556
|
}));
|
454
557
|
}
|
455
|
-
}, Re = /* @__PURE__ */ Q(
|
558
|
+
}, Re = /* @__PURE__ */ Q(He, [["__scopeId", "data-v-d5c351bb"]]), Je = { class: "pd-thin" }, We = {
|
456
559
|
__name: "Event",
|
457
|
-
setup(
|
458
|
-
const
|
459
|
-
|
460
|
-
},
|
461
|
-
|
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
|
464
|
-
|
465
|
-
}), (
|
466
|
-
|
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:
|
472
|
-
a.value ? (
|
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
|
-
|
477
|
-
default:
|
478
|
-
!a.value && !
|
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
|
-
|
600
|
+
v(U, {
|
488
601
|
tag: "ul",
|
489
602
|
name: "fade",
|
490
603
|
class: "container"
|
491
604
|
}, {
|
492
|
-
default:
|
493
|
-
!a.value &&
|
605
|
+
default: x(() => [
|
606
|
+
!a.value && i.value ? (d(), $(J, {
|
494
607
|
key: 0,
|
495
|
-
onClick:
|
496
|
-
event:
|
497
|
-
owner:
|
498
|
-
user:
|
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:
|
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:
|
505
|
-
|
615
|
+
default: x(() => [
|
616
|
+
k.user._id ? (d(), $(Re, {
|
506
617
|
key: 0,
|
507
618
|
type: "event",
|
508
|
-
hasTicket:
|
509
|
-
targetId:
|
510
|
-
userId:
|
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"
|
517
|
-
!a.value &&
|
637
|
+
}, 8, ["event", "owner", "user"])) : b("", !0),
|
638
|
+
!a.value && i.value ? (d(), $(ce, {
|
518
639
|
key: 1,
|
519
640
|
type: "event",
|
520
|
-
target:
|
521
|
-
owner:
|
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
|
-
},
|
649
|
+
}, Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
529
650
|
__proto__: null,
|
530
|
-
default:
|
531
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
651
|
+
default: We
|
652
|
+
}, Symbol.toStringTag, { value: "Module" })), Ge = {
|
532
653
|
__name: "Events",
|
533
|
-
setup(
|
534
|
-
const
|
535
|
-
return
|
536
|
-
|
537
|
-
category:
|
538
|
-
user:
|
539
|
-
period:
|
540
|
-
selectedDate:
|
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
|
-
},
|
665
|
+
}, Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
545
666
|
__proto__: null,
|
546
|
-
default:
|
547
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
667
|
+
default: Ge
|
668
|
+
}, Symbol.toStringTag, { value: "Module" })), mt = [
|
548
669
|
{
|
549
670
|
path: "events",
|
550
|
-
component:
|
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(() =>
|
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(() =>
|
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(() =>
|
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(() =>
|
711
|
+
component: () => Promise.resolve().then(() => H)
|
591
712
|
}
|
592
713
|
];
|
593
714
|
export {
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
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
|
};
|