@ozdao/prometheus-framework 0.0.86 → 0.0.87

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) 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-8fd41524.js +1 -0
  8. package/dist/Feed-ecf37814.mjs +367 -0
  9. package/dist/IconEdit-736c89be.js +1 -0
  10. package/dist/IconEdit-e9fd4c6c.mjs +21 -0
  11. package/dist/Popup-105ef2c3.js +1 -0
  12. package/dist/Popup-82fb2c8a.mjs +76 -0
  13. package/dist/Product-2f3d592f.mjs +837 -0
  14. package/dist/Product-2fbf9d99.js +7 -0
  15. package/dist/ProductEdit-20709821.mjs +349 -0
  16. package/dist/ProductEdit-a81d13b9.js +1 -0
  17. package/dist/ProfileBlogposts-eca9916c.js +1 -0
  18. package/dist/ProfileBlogposts-fb014bc6.mjs +63 -0
  19. package/dist/ProfileComments-58094a50.mjs +43 -0
  20. package/dist/ProfileComments-b919f021.js +1 -0
  21. package/dist/ProfileEvents-05485e20.js +1 -0
  22. package/dist/ProfileEvents-5d206e3d.mjs +55 -0
  23. package/dist/ProfileLikes-2f3a4488.js +1 -0
  24. package/dist/ProfileLikes-b5ac7f48.mjs +43 -0
  25. package/dist/ProfileOrganizations-0b76e38f.js +1 -0
  26. package/dist/ProfileOrganizations-32ab1e30.mjs +211 -0
  27. package/dist/Publics-3f277c17.js +1 -0
  28. package/dist/Publics-9ebffff1.mjs +122 -0
  29. package/dist/Tab-58cd105f.mjs +46 -0
  30. package/dist/Tab-6f0a4909.js +1 -0
  31. package/dist/UploadImage-441e8526.js +1 -0
  32. package/dist/UploadImage-ff8f9a0c.mjs +83 -0
  33. package/dist/auth.client.cjs +2 -2
  34. package/dist/auth.client.js +60 -40
  35. package/dist/community.client.cjs +1 -9
  36. package/dist/community.client.js +367 -739
  37. package/dist/community.server.js +16 -4
  38. package/dist/community.server.mjs +16 -4
  39. package/dist/events.client.cjs +1 -1
  40. package/dist/events.client.js +431 -329
  41. package/dist/events.server.js +19 -2
  42. package/dist/events.server.mjs +19 -2
  43. package/dist/inputs.validation-24ae76b9.js +1 -0
  44. package/dist/modules/constructor/components/elements/Bullets.vue.d.ts +15 -0
  45. package/dist/modules/constructor/components/elements/Caption.vue.d.ts +15 -0
  46. package/dist/modules/constructor/components/elements/H2.vue.d.ts +16 -0
  47. package/dist/modules/constructor/components/elements/Image.vue.d.ts +8 -0
  48. package/dist/modules/constructor/components/elements/ImageUpload.vue.d.ts +9 -0
  49. package/dist/modules/constructor/components/elements/Textarea.vue.d.ts +12 -0
  50. package/dist/modules/constructor/components/sections/Constructor.vue.d.ts +7 -0
  51. package/dist/modules/events/components/sections/Feed.vue.d.ts +1 -0
  52. package/dist/organizations-1b4c84ee.mjs +121 -0
  53. package/dist/organizations-af43bda4.js +1 -0
  54. package/dist/organizations.client-253c8068.mjs +3179 -0
  55. package/dist/organizations.client-c60d7659.js +3 -0
  56. package/dist/organizations.client.cjs +1 -3
  57. package/dist/organizations.client.js +49 -3025
  58. package/dist/style.css +1 -1
  59. package/dist/users.client.cjs +1 -1
  60. package/dist/users.client.js +10 -10
  61. package/package.json +1 -1
  62. package/src/modules/auth/router/auth.js +28 -7
  63. package/src/modules/community/community.client.js +1 -12
  64. package/src/modules/community/components/pages/BlogPost.vue +1 -1
  65. package/src/modules/community/components/pages/CreateBlogPost.vue +8 -151
  66. package/src/modules/community/middlewares/server/verifyBlogpost.js +24 -11
  67. package/src/modules/{community → constructor}/components/elements/Textarea.vue +3 -11
  68. package/src/modules/constructor/components/sections/Constructor.vue +167 -0
  69. package/src/modules/events/components/blocks/CardEvent.vue +14 -6
  70. package/src/modules/events/components/pages/EditEvent.vue +228 -133
  71. package/src/modules/events/components/sections/Feed.vue +7 -1
  72. package/src/modules/events/controllers/events.controller.js +9 -0
  73. package/src/modules/events/controllers/tickets.controller.js +2 -1
  74. package/src/modules/events/models/event.model.js +10 -0
  75. package/src/modules/events/store/events.js +15 -19
  76. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -3
  77. package/src/modules/organizations/components/sections/Publics.vue +2 -3
  78. package/src/modules/organizations/organizations.client.js +0 -2
  79. package/src/modules/users/components/pages/ProfileEvents.vue +3 -3
  80. package/src/modules/organizations/components/blocks/CardOrganizationSocial.vue +0 -46
  81. /package/src/modules/{community → constructor}/components/elements/Bullets.vue +0 -0
  82. /package/src/modules/{community → constructor}/components/elements/Caption.vue +0 -0
  83. /package/src/modules/{community → constructor}/components/elements/H2.vue +0 -0
  84. /package/src/modules/{community → constructor}/components/elements/Image.vue +0 -0
  85. /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";
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";
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";
10
13
  import "vue-i18n";
11
- import { _ as ce, a as U, b as ue } from "./EditProductImages-61ff4321.mjs";
12
- import { s as I } from "./globals-96ba60e4.mjs";
13
- import { _ as de } from "./Comments-c092550f.mjs";
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 me = {}, fe = {
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 = [
23
- _e
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
24
23
  ];
25
- function ge(o, e) {
26
- return i(), p("svg", pe, fe);
24
+ function _e(i, t) {
25
+ return c(), v("svg", fe, ve);
27
26
  }
28
- const ve = /* @__PURE__ */ Q(me, [["render", ge]]);
29
- const ye = { class: "today-events" }, mt = {
27
+ const he = /* @__PURE__ */ G(me, [["render", _e]]);
28
+ const ye = { class: "today-events" }, ct = {
30
29
  __name: "List",
31
30
  props: {
32
31
  category: {
@@ -54,175 +53,175 @@ 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(i) {
57
+ const t = i, r = y([]), e = y(!0), s = y(0), f = y(5);
58
+ return z(async () => {
59
+ const a = await F({
60
+ skip: s.value,
61
+ limit: f.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, u) => (c(), v("section", ye, [
72
+ g(I, {
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: w(() => [
78
+ e.value ? (c(!0), v(O, { key: 0 }, j(f.value, (m) => (c(), $(he, { key: m }))), 128)) : h("", !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
+ g(q, { name: "fade" }, {
83
+ default: w(() => [
84
+ !e.value && r.value.length < 1 ? (c(), $(Y, {
86
85
  key: 0,
87
86
  title: "No Events Today",
88
87
  description: "Today, are no events available. Please check back later.",
89
88
  class: "pd-medium mn-thin bg-grey radius-big"
90
- })) : b("", !0)
89
+ })) : h("", !0)
91
90
  ]),
92
91
  _: 1
93
92
  }),
94
- m(T, {
93
+ g(I, {
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 } }),
102
- key: c._id,
103
- event: c,
104
- owner: o.user,
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,
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: U(["pd-medium", {
106
+ "br-b br-solid br-black-transp-10": x !== r.value.length - 1
108
107
  }])
109
- }, null, 8, ["onClick", "event", "owner", "class"]))), 128)) : b("", !0)
108
+ }, null, 8, ["onClick", "event", "owner", "class"]))), 128)) : h("", !0)
110
109
  ]),
111
110
  _: 1
112
111
  })
113
112
  ]));
114
113
  }
115
- }, he = ["onClick"], be = { class: "t-transp" }, ke = {
114
+ }, be = ["onClick"], ke = { class: "t-transp" }, we = {
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(i, { emit: t }) {
118
+ const r = i, e = y(null);
119
+ let s;
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 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);
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
+ 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(() => {
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);
132
131
  }
133
132
  });
134
- function l(s) {
135
- u.value = s;
136
- const w = c(s);
137
- e("update:date", w);
133
+ function u(l) {
134
+ f.value = l;
135
+ const E = m(l);
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 m(l) {
139
+ return `${l.getDate().toString().padStart(2, "0")}${(l.getMonth() + 1).toString().padStart(2, "0")}${l.getFullYear()}`;
141
140
  }
142
- function v(s) {
143
- return s.toLocaleDateString(r.locale ? r.locale : "en", { weekday: "narrow" }).toUpperCase();
141
+ function x(l) {
142
+ return l.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 b(l, E) {
145
+ const n = [];
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);
150
149
  }
151
- return _;
150
+ return n;
152
151
  }
153
- return (s, w) => (i(), p("div", null, [
154
- d("div", {
152
+ return (l, E) => (c(), v("div", null, [
153
+ _("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
+ (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()
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
+ _("span", ke, N(x(n)), 1),
167
+ _("span", {
168
+ class: U([{
169
+ "bg-main": f.value.toDateString() === n.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
+ }, N(n.getDate()), 3)
172
+ ], 10, be))), 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
+ }, 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 = {
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(i) {
179
+ const t = L(), r = B(), s = f(/* @__PURE__ */ new Date());
180
+ function f(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, u = {
185
+ tags: a.tags ? a.tags.split(",") : null,
186
+ date: a.date ? a.date : s
188
187
  };
189
- x.filter = l;
188
+ D.filter = u;
190
189
  } else {
191
- const n = {
192
- date: a
190
+ const a = {
191
+ date: s
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 H(() => D.filter, (a, u) => {
196
+ const m = { ...t.query };
197
+ Object.keys(u).forEach((b) => {
198
+ m[b] && delete m[b];
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 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])
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(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, {
208
+ date: D.filter.date,
209
+ "onUpdate:date": u[0] || (u[0] = (x) => D.filter.date = x),
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
+ $e,
214
+ _("section", Ee, [
215
+ g(m, null, {
216
+ default: w(({ Component: x, route: b }) => [
217
+ g(q, {
219
218
  name: "scaleIn",
220
219
  mode: "out-in"
221
220
  }, {
222
- default: y(() => [
223
- (i(), h(re(v), {
221
+ default: w(() => [
222
+ (c(), $(ae(x), {
224
223
  ref: "page",
225
- key: f.query
224
+ key: b.query
226
225
  }))
227
226
  ]),
228
227
  _: 2
@@ -234,162 +233,265 @@ 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 = {
236
+ }, Se = {
237
+ key: 0,
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 = {
240
+ key: 0,
241
+ class: "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
+ }, 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 = {
239
246
  key: 0,
240
- class: "mn-r-auto"
241
- }, Te = {
247
+ class: "mn-thin"
248
+ }, qe = {
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
+ }, Be = {
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(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 () => {
258
+ if (t.params.url) {
259
+ const o = await F({ user: k.user._id, url: t.params.url });
260
+ e.value = o.pop();
261
+ } else
262
+ K(), 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 n = await pe.read({
276
+ user: k.user._id,
277
+ postable: k.user._id
278
+ });
279
+ s.value = n.map((o) => ({
280
+ name: o.profile.name,
281
+ _id: o._id,
282
+ photo: o.profile.photo
283
+ }));
284
+ });
285
+ const u = y(!1);
286
+ function m() {
287
+ u.value = !0;
255
288
  }
256
- function l() {
257
- g.current.localization.push({ locale: "", text: "" });
289
+ function x() {
290
+ u.value = !1;
258
291
  }
259
- function c(s) {
260
- g.current.localization.splice(s, 1);
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);
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 l() {
304
+ confirm("Are you sure you want to delete this event?") && (void 0)(e.value._id).then((n) => {
305
+ r.push({ name: "Drafts" });
306
+ }).catch((n) => {
307
+ console.error(n);
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((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);
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 (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),
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
+ Te
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
+ g(P, {
335
+ field: p(e).name,
336
+ "onUpdate:field": o[1] || (o[1] = (d) => p(e).name = d),
337
+ placeholder: "Event name",
338
+ class: "mn-thin w-100 bg-grey pd-medium radius-small"
339
+ }, null, 8, ["field"]),
340
+ g(P, {
341
+ field: p(e).description,
342
+ "onUpdate:field": o[2] || (o[2] = (d) => p(e).description = d),
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
+ Ce,
348
+ g(P, {
349
+ field: p(e).date.start,
350
+ "onUpdate:field": o[3] || (o[3] = (d) => p(e).date.start = d),
351
+ label: "Start",
352
+ type: "datetime-local",
353
+ placeholder: "Not specified",
354
+ class: "mn-thin w-100 bg-grey pd-medium radius-small"
355
+ }, 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),
359
+ label: "End",
360
+ type: "datetime-local",
361
+ placeholder: "Not specified",
362
+ class: "mn-thin w-100 bg-grey pd-medium radius-small"
363
+ }, 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)
369
+ }, null, 8, ["content"])
370
+ ])) : h("", !0),
371
+ p(e) ? (c(), v("section", je, [
372
+ _("div", Ue, [
373
+ p(t).params.url ? (c(), v("a", {
374
+ key: 0,
375
+ onClick: o[6] || (o[6] = (d) => l()),
376
+ 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()),
380
+ class: "mn-l-auto bg-white t-black button"
381
+ }, "To Drafts"),
382
+ _("a", {
383
+ onClick: o[8] || (o[8] = (d) => m()),
384
+ class: "mn-l-thin bg-black t-white button"
385
+ }, "Publish")
386
+ ])
387
+ ])) : h("", !0),
388
+ g(ce, {
389
+ title: "Добавить участника",
390
+ onClosePopup: x,
391
+ isPopupOpen: u.value
392
+ }, {
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
399
+ }, null, 8, ["tags"]),
400
+ Ne,
401
+ g(oe, {
402
+ modelValue: a.value,
403
+ "onUpdate:modelValue": o[10] || (o[10] = (d) => a.value = d),
404
+ options: p(s),
405
+ multiple: !1,
406
+ taggable: !1,
407
+ placeholder: "Type to search or add tag",
408
+ label: "name",
409
+ "track-by": "_id",
410
+ class: "mn-medium bg-grey radius-medium pd-small"
411
+ }, null, 8, ["modelValue", "options"]),
412
+ a.value ? (c(), v("h5", Fe, "Options:")) : h("", !0),
413
+ a.value ? (c(), v("div", qe, [
414
+ g(le, {
415
+ label: "Hide Author",
416
+ radio: p(e).creator.hidden,
417
+ "onUpdate:radio": o[11] || (o[11] = (d) => p(e).creator.hidden = d),
418
+ name: "prices",
419
+ class: "w-100"
420
+ }, null, 8, ["radio"])
421
+ ])) : h("", !0),
422
+ g(Q, {
423
+ submit: E,
424
+ callback: n.redirectTo,
425
+ class: "w-100 bg-black t-white"
279
426
  }, {
280
- default: y(() => [
281
- Y("Save Product")
427
+ default: w(() => [
428
+ W("Publish")
282
429
  ]),
283
430
  _: 1
284
- })
431
+ }, 8, ["callback"])
285
432
  ])
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
433
  ]),
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
- ]));
434
+ _: 1
435
+ }, 8, ["isPopupOpen"])
436
+ ])) : h("", !0);
335
437
  }
336
- }, V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
438
+ }, M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
337
439
  __proto__: null,
338
- default: Me
440
+ default: Be
339
441
  }, Symbol.toStringTag, { value: "Module" })), C = ne.create({
340
442
  baseURL: process.env.API_URL,
341
443
  withCredentials: !0
342
- }), E = ae({
444
+ }), S = re({
343
445
  tickets: [],
344
446
  error: null
345
447
  }), R = {
346
- async read({ user: o, type: e, target: r, role: t }) {
448
+ async read({ user: i, type: t, target: r, role: e }) {
347
449
  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);
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);
352
454
  }
353
455
  },
354
- async create(o) {
456
+ async create(i) {
355
457
  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);
458
+ const t = await C.post("/api/tickets/create", i);
459
+ return S.error = null, Promise.resolve(t.data);
460
+ } catch (t) {
461
+ return T(t), Promise.reject(t);
360
462
  }
361
463
  },
362
- async update(o) {
464
+ async update(i) {
363
465
  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);
466
+ const t = await C.post("/api/tickets/update", i);
467
+ return S.error = null, Promise.resolve(t.data);
468
+ } catch (t) {
469
+ return T(t), Promise.reject(t);
368
470
  }
369
471
  },
370
- async delete(o) {
472
+ async delete(i) {
371
473
  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);
474
+ const t = await C.post("/api/tickets/delete", i);
475
+ return S.error = null, Promise.resolve(t.data);
476
+ } catch (t) {
477
+ return T(t), Promise.reject(t);
376
478
  }
377
479
  }
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;
480
+ }, Ve = {
481
+ handleTicketUpdate(i, t, r) {
482
+ 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)
484
+ if (e.hasTicket = r, r)
485
+ e.tickets.push(t), e.numberOfTickets += 1;
384
486
  else {
385
- const a = t.tickets.findIndex((u) => u._id === e._id);
386
- a !== -1 && (t.tickets.splice(a, 1), t.numberOfTickets -= 1);
487
+ const s = e.tickets.findIndex((f) => f._id === t._id);
488
+ s !== -1 && (e.tickets.splice(s, 1), e.numberOfTickets -= 1);
387
489
  }
388
490
  }
389
491
  };
390
- W(E, (o) => {
492
+ H(S, (i) => {
391
493
  });
392
- const Ve = {
494
+ const Ae = {
393
495
  __name: "ButtonJoin",
394
496
  props: {
395
497
  type: {
@@ -411,143 +513,143 @@ const Ve = {
411
513
  }
412
514
  },
413
515
  emits: ["updateTicket"],
414
- setup(o, { emit: e }) {
415
- const r = o, t = async () => {
416
- r.hasTicket ? await u(r.targetId) : await a(r.targetId);
516
+ setup(i, { emit: t }) {
517
+ const r = i, e = async () => {
518
+ r.hasTicket ? await f(r.targetId) : await s(r.targetId);
417
519
  };
418
- async function a(n) {
520
+ async function s(a) {
419
521
  try {
420
- const l = {
522
+ const u = {
421
523
  // Renamed membershipData to ticketData
422
524
  type: r.type,
423
- target: n,
525
+ target: a,
424
526
  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;
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;
429
531
  }
430
532
  }
431
- async function u(n) {
432
- const l = {
533
+ async function f(a) {
534
+ const u = {
433
535
  // Renamed membershipData to ticketData
434
536
  type: r.type,
435
- target: n,
537
+ target: a,
436
538
  user: r.userId
437
539
  };
438
540
  try {
439
- const c = await R.delete(l);
440
- e("updateTicket", { ticket: c, hasTicket: !1, targetId: r.targetId });
441
- } catch (c) {
442
- throw console.log(c), c;
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;
443
545
  }
444
546
  }
445
- return (n, l) => (i(), h(K, {
446
- submit: t,
547
+ return (a, u) => (c(), $(Q, {
548
+ submit: e,
447
549
  class: "bg-main button-small button"
448
550
  }, {
449
- default: y(() => [
450
- Y(A(o.hasTicket ? "Leave" : "Join"), 1)
551
+ default: w(() => [
552
+ W(N(i.hasTicket ? "Leave" : "Join"), 1)
451
553
  ]),
452
554
  _: 1
453
555
  }));
454
556
  }
455
- }, Re = /* @__PURE__ */ Q(Ve, [["__scopeId", "data-v-d5c351bb"]]), Je = { class: "pd-thin" }, He = {
557
+ }, Me = /* @__PURE__ */ G(Ae, [["__scopeId", "data-v-d5c351bb"]]), Re = { class: "pd-thin" }, Je = {
456
558
  __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 () => {
462
- 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, {
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, {
467
569
  tag: "ul",
468
570
  name: "fade",
469
571
  class: "o-hidden bg-grey radius-big"
470
572
  }, {
471
- default: y(() => [
472
- a.value ? (i(), p(D, { key: 0 }, P(3, (l) => m(X, { key: l })), 64)) : b("", !0)
573
+ default: w(() => [
574
+ s.value ? (c(), v(O, { key: 0 }, j(3, (u) => g(X, { key: u })), 64)) : h("", !0)
473
575
  ]),
474
576
  _: 1
475
577
  }),
476
- m(B, { name: "fade" }, {
477
- default: y(() => [
478
- !a.value && !t.value ? (i(), h(G, {
578
+ g(q, { name: "fade" }, {
579
+ default: w(() => [
580
+ !s.value && !e.value ? (c(), $(Y, {
479
581
  key: 0,
480
582
  title: "No Event Found",
481
583
  description: "Currently, there are no events available. Please check back later.",
482
584
  class: "pd-medium mn-thin bg-grey radius-big"
483
- })) : b("", !0)
585
+ })) : h("", !0)
484
586
  ]),
485
587
  _: 1
486
588
  }),
487
- m(T, {
589
+ g(I, {
488
590
  tag: "ul",
489
591
  name: "fade",
490
592
  class: "container"
491
593
  }, {
492
- default: y(() => [
493
- !a.value && t.value ? (i(), h(H, {
594
+ default: w(() => [
595
+ !s.value && e.value ? (c(), $(J, {
494
596
  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,
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,
600
+ user: k.user._id,
499
601
  type: "normal",
500
- class: z(["mn-medium", {
501
- "br-b br-solid br-black-transp-10": u.index !== t.value.length - 1
602
+ class: U(["mn-medium", {
603
+ "br-b br-solid br-black-transp-10": f.index !== e.value.length - 1
502
604
  }])
503
605
  }, {
504
- default: y(() => [
505
- $.user._id ? (i(), h(Re, {
606
+ default: w(() => [
607
+ k.user._id ? (c(), $(Me, {
506
608
  key: 0,
507
609
  type: "event",
508
- hasTicket: t.value.hasTicket,
509
- targetId: t.value._id,
510
- userId: $.user._id,
610
+ hasTicket: e.value.hasTicket,
611
+ targetId: e.value._id,
612
+ userId: k.user._id,
511
613
  class: "mn-small w-100 pd-medium mn-auto",
512
614
  onUpdateTicket: r
513
- }, null, 8, ["hasTicket", "targetId", "userId"])) : b("", !0)
615
+ }, null, 8, ["hasTicket", "targetId", "userId"])) : h("", !0)
514
616
  ]),
515
617
  _: 1
516
- }, 8, ["event", "owner", "user", "class"])) : b("", !0),
517
- !a.value && t.value ? (i(), h(de, {
618
+ }, 8, ["event", "owner", "user", "class"])) : h("", !0),
619
+ !s.value && e.value ? (c(), $(ue, {
518
620
  key: 1,
519
621
  type: "event",
520
- target: t.value._id,
521
- owner: $.user._id
522
- }, null, 8, ["target", "owner"])) : b("", !0)
622
+ target: e.value._id,
623
+ owner: k.user._id
624
+ }, null, 8, ["target", "owner"])) : h("", !0)
523
625
  ]),
524
626
  _: 1
525
627
  })
526
628
  ]));
527
629
  }
528
- }, We = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
630
+ }, He = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
529
631
  __proto__: null,
530
- default: He
531
- }, Symbol.toStringTag, { value: "Module" })), Ye = {
632
+ default: Je
633
+ }, Symbol.toStringTag, { value: "Module" })), We = {
532
634
  __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
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,
640
+ user: k.user._id,
641
+ period: p(t).query.period,
642
+ selectedDate: D.filter.date
541
643
  }, null, 8, ["category", "user", "period", "selectedDate"])
542
644
  ]));
543
645
  }
544
- }, Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
646
+ }, Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
545
647
  __proto__: null,
546
- default: Ye
547
- }, Symbol.toStringTag, { value: "Module" })), pt = [
648
+ default: We
649
+ }, Symbol.toStringTag, { value: "Module" })), dt = [
548
650
  {
549
651
  path: "events",
550
- component: Ee,
652
+ component: De,
551
653
  meta: {
552
654
  title: {
553
655
  en: "Events",
@@ -557,7 +659,7 @@ const Ve = {
557
659
  children: [{
558
660
  path: ":category?",
559
661
  name: "Events",
560
- component: () => Promise.resolve().then(() => Ge)
662
+ component: () => Promise.resolve().then(() => Ye)
561
663
  }]
562
664
  },
563
665
  {
@@ -570,7 +672,7 @@ const Ve = {
570
672
  },
571
673
  authorize: []
572
674
  },
573
- component: () => Promise.resolve().then(() => V)
675
+ component: () => Promise.resolve().then(() => M)
574
676
  },
575
677
  {
576
678
  path: "events/:url",
@@ -581,23 +683,23 @@ const Ve = {
581
683
  ru: "Событие"
582
684
  }
583
685
  },
584
- component: () => Promise.resolve().then(() => We)
686
+ component: () => Promise.resolve().then(() => He)
585
687
  },
586
688
  {
587
689
  path: "events/:url/edit",
588
690
  name: "Edit Event",
589
691
  meta: { authorize: [] },
590
- component: () => Promise.resolve().then(() => V)
692
+ component: () => Promise.resolve().then(() => M)
591
693
  }
592
694
  ];
593
695
  export {
594
- H as CardEvent,
595
- Me as EditEvent,
596
- He as EventPage,
597
- Ee as EventsLayout,
598
- Ye as EventsPage,
696
+ J as CardEvent,
697
+ Be as EditEvent,
698
+ Je as EventPage,
699
+ De as EventsLayout,
700
+ We as EventsPage,
599
701
  Z as Feed,
600
- mt as List,
601
- pt as eventsRoutes,
602
- gt as eventsStore
702
+ ct as List,
703
+ dt as eventsRoutes,
704
+ ft as eventsStore
603
705
  };