@ozdao/prometheus-framework 0.0.86 → 0.0.88

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-15e71ec4.js +1 -0
  2. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs +1944 -0
  3. package/dist/CardOrganization-ee5c34ab.js +1 -0
  4. package/dist/CardOrganization-f70bd169.mjs +202 -0
  5. package/dist/Comments-63f154a6.js +9 -0
  6. package/dist/Comments-c5afa4d6.mjs +459 -0
  7. package/dist/Feed-51e4e232.js +1 -0
  8. package/dist/Feed-8fd41524.js +1 -0
  9. package/dist/Feed-dc8b66bf.mjs +367 -0
  10. package/dist/Feed-ecf37814.mjs +367 -0
  11. package/dist/IconEdit-736c89be.js +1 -0
  12. package/dist/IconEdit-e9fd4c6c.mjs +21 -0
  13. package/dist/Image-6c7584f5.mjs +477 -0
  14. package/dist/Image-9a870c88.js +9 -0
  15. package/dist/Popup-105ef2c3.js +1 -0
  16. package/dist/Popup-82fb2c8a.mjs +76 -0
  17. package/dist/Product-1724d88d.mjs +837 -0
  18. package/dist/Product-2f3d592f.mjs +837 -0
  19. package/dist/Product-2fbf9d99.js +7 -0
  20. package/dist/Product-a94d8b65.js +7 -0
  21. package/dist/ProductEdit-20709821.mjs +349 -0
  22. package/dist/ProductEdit-57484f1e.mjs +349 -0
  23. package/dist/ProductEdit-a81d13b9.js +1 -0
  24. package/dist/ProductEdit-ef301baa.js +1 -0
  25. package/dist/ProfileBlogposts-eca9916c.js +1 -0
  26. package/dist/ProfileBlogposts-fb014bc6.mjs +63 -0
  27. package/dist/ProfileComments-58094a50.mjs +43 -0
  28. package/dist/ProfileComments-b919f021.js +1 -0
  29. package/dist/ProfileEvents-05485e20.js +1 -0
  30. package/dist/ProfileEvents-1cfe6858.mjs +55 -0
  31. package/dist/ProfileEvents-5d206e3d.mjs +55 -0
  32. package/dist/ProfileEvents-d8e16509.js +1 -0
  33. package/dist/ProfileLikes-2f3a4488.js +1 -0
  34. package/dist/ProfileLikes-b5ac7f48.mjs +43 -0
  35. package/dist/ProfileOrganizations-0b76e38f.js +1 -0
  36. package/dist/ProfileOrganizations-32ab1e30.mjs +211 -0
  37. package/dist/Publics-3f277c17.js +1 -0
  38. package/dist/Publics-9ebffff1.mjs +122 -0
  39. package/dist/Tab-58cd105f.mjs +46 -0
  40. package/dist/Tab-6f0a4909.js +1 -0
  41. package/dist/UploadImage-441e8526.js +1 -0
  42. package/dist/UploadImage-ff8f9a0c.mjs +83 -0
  43. package/dist/auth.client.cjs +2 -2
  44. package/dist/auth.client.js +60 -40
  45. package/dist/community.client.cjs +1 -9
  46. package/dist/community.client.js +361 -750
  47. package/dist/community.server.js +16 -4
  48. package/dist/community.server.mjs +16 -4
  49. package/dist/events.client.cjs +1 -1
  50. package/dist/events.client.js +442 -321
  51. package/dist/events.server.js +96 -2
  52. package/dist/events.server.mjs +96 -2
  53. package/dist/inputs.validation-24ae76b9.js +1 -0
  54. package/dist/modules/constructor/components/elements/Bullets.vue.d.ts +15 -0
  55. package/dist/modules/constructor/components/elements/Caption.vue.d.ts +15 -0
  56. package/dist/modules/constructor/components/elements/H2.vue.d.ts +16 -0
  57. package/dist/modules/constructor/components/elements/Image.vue.d.ts +8 -0
  58. package/dist/modules/constructor/components/elements/ImageUpload.vue.d.ts +9 -0
  59. package/dist/modules/constructor/components/elements/Textarea.vue.d.ts +12 -0
  60. package/dist/modules/constructor/components/sections/Constructor.vue.d.ts +7 -0
  61. package/dist/modules/events/components/sections/Feed.vue.d.ts +1 -0
  62. package/dist/organizations-1b4c84ee.mjs +121 -0
  63. package/dist/organizations-af43bda4.js +1 -0
  64. package/dist/organizations.client-253c8068.mjs +3179 -0
  65. package/dist/organizations.client-686845be.mjs +3179 -0
  66. package/dist/organizations.client-99bfc474.js +3 -0
  67. package/dist/organizations.client-c60d7659.js +3 -0
  68. package/dist/organizations.client.cjs +1 -3
  69. package/dist/organizations.client.js +49 -3025
  70. package/dist/style.css +1 -1
  71. package/dist/users.client.cjs +1 -1
  72. package/dist/users.client.js +10 -10
  73. package/package.json +1 -1
  74. package/src/modules/auth/router/auth.js +28 -7
  75. package/src/modules/community/community.client.js +1 -12
  76. package/src/modules/community/components/pages/BlogPost.vue +1 -1
  77. package/src/modules/community/components/pages/CreateBlogPost.vue +8 -151
  78. package/src/modules/community/middlewares/server/verifyBlogpost.js +24 -11
  79. package/src/modules/{community → constructor}/components/elements/Textarea.vue +3 -11
  80. package/src/modules/constructor/components/sections/Constructor.vue +167 -0
  81. package/src/modules/events/components/blocks/CardEvent.vue +15 -7
  82. package/src/modules/events/components/pages/EditEvent.vue +233 -133
  83. package/src/modules/events/components/pages/Event.vue +43 -4
  84. package/src/modules/events/components/sections/Feed.vue +7 -1
  85. package/src/modules/events/controllers/events.controller.js +9 -0
  86. package/src/modules/events/controllers/tickets.controller.js +2 -1
  87. package/src/modules/events/middlewares/server/index.js +10 -0
  88. package/src/modules/events/middlewares/server/verifyEvent.js +60 -0
  89. package/src/modules/events/models/event.model.js +10 -0
  90. package/src/modules/events/routes/events.routes.js +14 -1
  91. package/src/modules/events/store/events.js +15 -19
  92. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -3
  93. package/src/modules/organizations/components/sections/Publics.vue +2 -3
  94. package/src/modules/organizations/organizations.client.js +0 -2
  95. package/src/modules/users/components/pages/ProfileEvents.vue +3 -3
  96. package/src/modules/organizations/components/blocks/CardOrganizationSocial.vue +0 -46
  97. /package/src/modules/{community → constructor}/components/elements/Bullets.vue +0 -0
  98. /package/src/modules/{community → constructor}/components/elements/Caption.vue +0 -0
  99. /package/src/modules/{community → constructor}/components/elements/H2.vue +0 -0
  100. /package/src/modules/{community → constructor}/components/elements/Image.vue +0 -0
  101. /package/src/modules/{community → constructor}/components/elements/ImageUpload.vue +0 -0
@@ -1,69 +1,70 @@
1
- import { resolveComponent as ve, openBlock as u, createElementBlock as m, createElementVNode as r, createVNode as x, normalizeClass as D, unref as _, createCommentVNode as y, withCtx as T, Transition as X, createBlock as U, resolveDynamicComponent as Y, ref as g, onUpdated as R, nextTick as M, onMounted as S, watch as E, withDirectives as q, vModelText as J, createTextVNode as F, toDisplayString as H, withModifiers as re, computed as te, watchEffect as ie, Fragment as V, renderList as O, createStaticVNode as _e, TransitionGroup as ne, mergeProps as be, isRef as ce, withAsyncContext as ye, pushScopeId as xe, popScopeId as we } from "vue";
2
- import { useRoute as K, useRouter as Z } from "vue-router";
3
- import { S as ke, C as $e } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-628f013e.mjs";
4
- import { s as N, r as ee, c as Be, u as le, a as oe, b as Ce, d as ue, _ as Pe } from "./Feed-a31c43c2.mjs";
5
- import { e as Dn, f as zn, g as Hn } from "./Feed-a31c43c2.mjs";
6
- import { s as P, a as Te, b as Ie, _ as pe, F as Se } from "./auth-35ef1791.mjs";
7
- import { _ as Fe } from "./Popup-0c791801.mjs";
8
- import { _ as Ue, S as Me, a as De } from "./Publics-b0fad2b0.mjs";
9
- import { V as ze } from "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
10
- import { a as He } from "./CardOrganization-91e79698.mjs";
11
- import { _ as je } from "./EmptyState-34d85f10.mjs";
12
- import { _ as Ae } from "./Comments-c092550f.mjs";
13
- import { useI18n as Ne } from "vue-i18n";
1
+ import { resolveComponent as Y, openBlock as i, createElementBlock as p, createElementVNode as o, createVNode as h, normalizeClass as B, unref as c, createCommentVNode as v, withCtx as k, Transition as G, createBlock as I, resolveDynamicComponent as Q, ref as g, onMounted as F, computed as V, createTextVNode as T, createStaticVNode as Z, TransitionGroup as H, Fragment as D, renderList as U, mergeProps as ee, watch as te, toDisplayString as N, watchEffect as se, isRef as W, withAsyncContext as ae, pushScopeId as oe, popScopeId as ne } from "vue";
2
+ import { useRoute as z, useRouter as A } from "vue-router";
3
+ import { S as le, _ as re } from "./Publics-9ebffff1.mjs";
4
+ import { s as M, r as L, c as ie, u as q, a as R, b as ue, d as K, _ as ce } from "./Feed-a31c43c2.mjs";
5
+ import { e as es, f as ts, g as ss } from "./Feed-a31c43c2.mjs";
6
+ import { s as w, b as pe, _ as X, F as de } from "./auth-35ef1791.mjs";
7
+ import { c as me, _ as ge, a as _e, b as he } from "./Image-6c7584f5.mjs";
8
+ import { _ as fe } from "./Popup-82fb2c8a.mjs";
9
+ import { _ as ve, S as be, C as ye } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs";
10
+ import { a as we } from "./organizations-1b4c84ee.mjs";
11
+ import { _ as xe } from "./EmptyState-34d85f10.mjs";
12
+ import { useI18n as $e } from "vue-i18n";
14
13
  import "./globals-96ba60e4.mjs";
14
+ import "./CardOrganization-f70bd169.mjs";
15
+ import "./ButtonFollow-728aab73.mjs";
15
16
  import "./CardHeader-ce5a1a75.mjs";
16
17
  import "./PlaceholderUserpic-995da0fc.mjs";
17
- import "./ButtonFollow-728aab73.mjs";
18
- const Ee = { class: "min-h-100vh pd-thin" }, Le = { class: "mn-thin flex-v-center t-left flex-nowrap flex" }, Ve = { class: "flex-v-center flex-nowrap flex t-left" }, Oe = /* @__PURE__ */ r("span", { class: "" }, "Topics for ", -1), Re = { class: "bg-grey pd-medium radius-big mn-semi flex-nowrap flex" }, qe = { class: "" }, Je = {
18
+ import "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
19
+ const ke = { class: "min-h-100vh pd-thin" }, Pe = { class: "mn-thin flex-v-center t-left flex-nowrap flex" }, Ce = { class: "flex-v-center flex-nowrap flex t-left" }, Te = /* @__PURE__ */ o("span", { class: "" }, "Topics for ", -1), Se = { class: "bg-grey pd-medium radius-big mn-semi flex-nowrap flex" }, Be = { class: "" }, Ie = {
19
20
  __name: "Community",
20
- setup(o) {
21
- const a = K(), t = Z();
22
- return (e, s) => {
23
- const p = ve("router-view");
24
- return u(), m("div", Ee, [
25
- r("header", Le, [
26
- r("h2", Ve, [
27
- Oe,
28
- x(ke, {
21
+ setup(d) {
22
+ const n = z(), s = A();
23
+ return (e, a) => {
24
+ const m = Y("router-view");
25
+ return i(), p("div", ke, [
26
+ o("header", Pe, [
27
+ o("h2", Ce, [
28
+ Te,
29
+ h(le, {
29
30
  options: ["today", "week", "month", "year"],
30
- select: N.filter.period,
31
- "onUpdate:select": s[0] || (s[0] = (n) => N.filter.period = n),
31
+ select: M.filter.period,
32
+ "onUpdate:select": a[0] || (a[0] = (t) => M.filter.period = t),
32
33
  placeholder: "Select type",
33
34
  class: "w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"
34
35
  }, null, 8, ["select"])
35
36
  ])
36
37
  ]),
37
- r("ul", Re, [
38
- r("li", {
39
- class: D([{ "t-white bg-black": _(a).params.category === "featured" }, "mn-r-small t-medium pd-small radius-small"]),
40
- onClick: s[1] || (s[1] = (n) => _(t).push({ name: "Blog" }))
38
+ o("ul", Se, [
39
+ o("li", {
40
+ class: B([{ "t-white bg-black": c(n).params.category === "featured" }, "mn-r-small t-medium pd-small radius-small"]),
41
+ onClick: a[1] || (a[1] = (t) => c(s).push({ name: "Blog" }))
41
42
  }, "👑 Featured", 2),
42
- r("li", {
43
- class: D([{ "t-white bg-black": _(a).params.category === "popular" }, "mn-r-small t-medium pd-small radius-small"]),
44
- onClick: s[2] || (s[2] = (n) => _(t).push({ name: "Blog", params: { category: "popular" } }))
43
+ o("li", {
44
+ class: B([{ "t-white bg-black": c(n).params.category === "popular" }, "mn-r-small t-medium pd-small radius-small"]),
45
+ onClick: a[2] || (a[2] = (t) => c(s).push({ name: "Blog", params: { category: "popular" } }))
45
46
  }, "🔥 Popular", 2),
46
- r("li", {
47
- class: D([{ "t-white bg-black": _(a).params.category === "new" }, "mn-r-small t-medium pd-small radius-small"]),
48
- onClick: s[3] || (s[3] = (n) => _(t).push({ name: "Blog", params: { category: "new" } }))
47
+ o("li", {
48
+ class: B([{ "t-white bg-black": c(n).params.category === "new" }, "mn-r-small t-medium pd-small radius-small"]),
49
+ onClick: a[3] || (a[3] = (t) => c(s).push({ name: "Blog", params: { category: "new" } }))
49
50
  }, "🆕 New", 2),
50
- P.user._id ? (u(), m("li", {
51
+ w.user._id ? (i(), p("li", {
51
52
  key: 0,
52
- class: D([{ "t-white bg-black": _(a).params.category === "following" }, "t-medium pd-small radius-small"]),
53
- onClick: s[4] || (s[4] = (n) => _(t).push({ name: "Blog", params: { category: "following" } }))
54
- }, "👥 Following", 2)) : y("", !0)
53
+ class: B([{ "t-white bg-black": c(n).params.category === "following" }, "t-medium pd-small radius-small"]),
54
+ onClick: a[4] || (a[4] = (t) => c(s).push({ name: "Blog", params: { category: "following" } }))
55
+ }, "👥 Following", 2)) : v("", !0)
55
56
  ]),
56
- r("section", qe, [
57
- x(p, null, {
58
- default: T(({ Component: n, route: i }) => [
59
- x(X, {
57
+ o("section", Be, [
58
+ h(m, null, {
59
+ default: k(({ Component: t, route: _ }) => [
60
+ h(G, {
60
61
  name: "scaleIn",
61
62
  mode: "out-in"
62
63
  }, {
63
- default: T(() => [
64
- (u(), U(Y(n), {
64
+ default: k(() => [
65
+ (i(), I(Q(t), {
65
66
  ref: "page",
66
- key: i.query
67
+ key: _.query
67
68
  }))
68
69
  ]),
69
70
  _: 2
@@ -75,515 +76,148 @@ const Ee = { class: "min-h-100vh pd-thin" }, Le = { class: "mn-thin flex-v-cente
75
76
  ]);
76
77
  };
77
78
  }
78
- };
79
- const Ke = ["placeholder"], ae = {
80
- __name: "Textarea",
81
- props: ["obj", "label", "prop", "value", "content", "textarea", "placeholder", "index", "ref", "setFocus"],
82
- emits: ["deleteBlock", "updateBlock", "addBlock", "focus"],
83
- setup(o, { emit: a }) {
84
- const t = o;
85
- g(t);
86
- const e = g(null);
87
- g(0);
88
- function s(l) {
89
- let c = l.target.value.split(/\n+/);
90
- if (c.length > 1) {
91
- t.prop[t.content] = c[0], M(() => {
92
- i();
93
- });
94
- let h = c.slice(1).map((b) => ({ __name: "Textarea", content: b }));
95
- a("addBlock", "Textarea", "", t.index, { blocks: h, ref: e });
96
- } else
97
- l.target.value.trim() === "" && l.target.value.includes(`
98
-
99
- `) && (console.log("We are adding new block:" + t.index + newBlocks + e), a("addBlock", "Textarea", "", t.index, { blocks: newBlocks, ref: e })), i();
100
- }
101
- function p(l) {
102
- (l.keyCode === 8 || l.keyCode === 46) && t.prop[t.content].trim() === "" && a("deleteBlock", t.prop);
103
- }
104
- function n() {
105
- M(() => {
106
- e.value.focus(), a("updateBlock", t.prop, { setFocus: !1 });
107
- });
108
- }
109
- function i() {
110
- e.value.style.height = "1rem", e.value.style.height = e.value.scrollHeight + "px";
111
- }
112
- return R(() => {
113
- t.setFocus && M(() => {
114
- n();
115
- }), i();
116
- }), S(() => {
117
- t.setFocus && M(() => {
118
- n();
119
- }), i();
120
- }), E(() => t.prop[t.content], (l) => {
121
- }), (l, c) => (u(), m("div", null, [
122
- q(r("textarea", {
123
- "onUpdate:modelValue": c[0] || (c[0] = (h) => o.prop[o.content] = h),
124
- placeholder: o.placeholder ? o.placeholder : "Enter text",
125
- onInput: s,
126
- onFocus: c[1] || (c[1] = (h) => a("focus", e.value)),
127
- onKeyup: p,
128
- ref_key: "textarea",
129
- ref: e,
130
- class: "text-area mn-thin"
131
- }, `
132
- `, 40, Ke), [
133
- [J, o.prop[o.content]]
134
- ])
135
- ]));
136
- }
137
- };
138
- const We = ["placeholder"], Ge = {
139
- __name: "H2",
140
- props: ["obj", "label", "prop", "value", "content", "textarea", "placeholder", "index", "ref", "setFocus"],
141
- emits: ["deleteBlock", "updateBlock", "addBlock", "focus"],
142
- setup(o, { emit: a }) {
143
- const t = o;
144
- g(t);
145
- const e = g(null);
146
- g(0);
147
- function s(l) {
148
- let c = l.target.value.split(/\n+/);
149
- if (c.length > 1) {
150
- t.prop[t.content] = c[0], M(() => {
151
- i();
152
- });
153
- let h = c.slice(1).map((b) => ({ type: "Textarea", content: b }));
154
- a("addBlock", "Textarea", "", t.index, { blocks: h, ref: e });
155
- } else
156
- l.target.value.trim() === "" && l.target.value.includes(`
157
-
158
- `) && (console.log("We are adding new block:" + t.index + newBlocks + e), a("addBlock", "Textarea", "", t.index, { blocks: newBlocks, ref: e })), i();
159
- }
160
- function p(l) {
161
- (l.keyCode === 8 || l.keyCode === 46) && t.prop[t.content].trim() === "" && a("deleteBlock", t.prop);
162
- }
163
- function n() {
164
- M(() => {
165
- e.value.focus(), a("updateBlock", t.prop, { setFocus: !1 });
166
- });
167
- }
168
- function i() {
169
- e.value.style.height = "1rem", e.value.style.height = e.value.scrollHeight + "px";
170
- }
171
- return R(() => {
172
- t.setFocus && M(() => {
173
- n();
174
- }), i();
175
- }), S(() => {
176
- t.setFocus && M(() => {
177
- n();
178
- }), i();
179
- }), E(() => t.prop[t.content], (l) => {
180
- }), (l, c) => (u(), m("div", null, [
181
- q(r("textarea", {
182
- "onUpdate:modelValue": c[0] || (c[0] = (h) => o.prop[o.content] = h),
183
- placeholder: o.placeholder ? o.placeholder : "Enter text",
184
- onInput: s,
185
- onFocus: c[1] || (c[1] = (h) => a("focus", e.value)),
186
- onKeyup: p,
187
- ref_key: "textarea",
188
- ref: e,
189
- class: "h3 text-area mn-thin"
190
- }, `
191
- `, 40, We), [
192
- [J, o.prop[o.content]]
193
- ])
194
- ]));
195
- }
196
- }, Qe = ["placeholder"], Xe = {
197
- __name: "Caption",
198
- props: ["obj", "label", "prop", "value", "content", "textarea", "placeholder", "index", "ref"],
199
- emits: ["deleteBlock", "addBlock", "focus"],
200
- setup(o, { emit: a }) {
201
- const t = o;
202
- g(t);
203
- const e = g(null);
204
- function s(n) {
205
- const i = /^\s*[-*]\s+(.*)/;
206
- let c = n.target.value.split(/\n+/).map((h) => {
207
- const b = i.exec(h);
208
- return b ? b[1] : null;
209
- }).filter((h) => h !== null);
210
- c.length > 0 ? (t.prop[t.content] = c, p()) : n.target.value.trim() === "" && (t.prop[t.content] = [], p());
211
- }
212
- function p() {
213
- e.value.style.height = "1rem", e.value.style.height = e.value.scrollHeight + "px";
214
- }
215
- return R(() => {
216
- p();
217
- }), S(() => {
218
- p();
219
- }), E(() => t.prop[t.content], (n) => {
220
- (!n || n.length === 0) && a("deleteBlock", t.prop);
221
- }), (n, i) => (u(), m("div", null, [
222
- q(r("textarea", {
223
- "onUpdate:modelValue": i[0] || (i[0] = (l) => o.prop[o.content] = l),
224
- placeholder: o.placeholder ? o.placeholder : "Enter text",
225
- onInput: s,
226
- onFocus: i[1] || (i[1] = (l) => a("focus", e.value)),
227
- ref_key: "textarea",
228
- ref: e,
229
- class: "br-l br-solid br-main pd-l-small text-area mn-small"
230
- }, `
231
- `, 40, Qe), [
232
- [J, o.prop[o.content]]
233
- ])
234
- ]));
235
- }
236
- }, Ye = ["placeholder"], Ze = {
237
- __name: "Bullets",
238
- props: ["obj", "label", "prop", "value", "content", "textarea", "placeholder", "index", "ref"],
239
- emits: ["deleteBlock", "addBlock", "focus"],
240
- setup(o, { emit: a }) {
241
- const t = o;
242
- g(t);
243
- const e = g(null);
244
- function s(n) {
245
- const i = /^\s*[-*]\s+(.*)/;
246
- let c = n.target.value.split(/\n+/).map((h) => {
247
- const b = i.exec(h);
248
- return b ? b[1] : null;
249
- }).filter((h) => h !== null);
250
- c.length > 0 ? (t.prop[t.content] = c, p()) : n.target.value.trim() === "" && (t.prop[t.content] = [], p());
251
- }
252
- function p() {
253
- e.value.style.height = "1rem", e.value.style.height = e.value.scrollHeight + "px";
254
- }
255
- return R(() => {
256
- p();
257
- }), S(() => {
258
- p();
259
- }), E(() => t.prop[t.content], (n) => {
260
- (!n || n.length === 0) && a("deleteBlock", t.prop);
261
- }), (n, i) => (u(), m("div", null, [
262
- F(H(o.prop[o.content]) + " ", 1),
263
- q(r("textarea", {
264
- "onUpdate:modelValue": i[0] || (i[0] = (l) => o.prop[o.content] = l),
265
- placeholder: o.placeholder ? o.placeholder : "Enter text",
266
- onInput: s,
267
- onFocus: i[1] || (i[1] = (l) => a("focus", e.value)),
268
- ref_key: "textarea",
269
- ref: e,
270
- class: "text-area mn-small"
271
- }, `
272
- `, 40, Ye), [
273
- [J, o.prop[o.content]]
274
- ])
275
- ]));
276
- }
277
- }, et = ["src"], tt = {
278
- key: 1,
279
- class: "t-transp pd-extra"
280
- }, nt = {
281
- __name: "ImageUpload",
282
- props: [
283
- "label",
284
- "value",
285
- "prop"
286
- ],
287
- emits: ["input", "updateBlock"],
288
- setup(o, { emit: a }) {
289
- const t = o, e = g(null), s = g(null);
290
- function p() {
291
- s.value.click();
292
- }
293
- async function n(l) {
294
- let c = l.target.files[0];
295
- console.log(c);
296
- let h = new FormData(), b = "unsorted";
297
- h.append("file", c), console.log(h.has("file"));
298
- try {
299
- let j = await Te.create({ baseURL: process.env.API_URL, withCredentials: !0 }).post(`/api/upload/file?folderName=${encodeURIComponent(b)}`, h, {
300
- headers: {
301
- "Content-Type": "multipart/form-data"
302
- }
303
- });
304
- e.value = j.data.filepath, console.log(e.value), a("input", e.value), a("updateBlock", t.prop, { content: e.value });
305
- } catch (I) {
306
- console.error(I);
307
- }
308
- }
309
- function i(l) {
310
- l.preventDefault(), n({
311
- target: {
312
- files: l.dataTransfer.files
313
- }
314
- });
315
- }
316
- return (l, c) => (u(), m("div", {
317
- onClick: p,
318
- onDrop: i,
319
- onDragover: c[0] || (c[0] = re(() => {
320
- }, ["prevent"])),
321
- class: "w-100 radius-big bg-white image-upload-area flex-v-center flex-h-center flex t-black mn-small"
322
- }, [
323
- o.prop.content ? (u(), m("img", {
324
- key: 0,
325
- src: o.prop.content,
326
- alt: "Uploaded image",
327
- class: "w-100 h-30r object-fit-contain"
328
- }, null, 8, et)) : (u(), m("span", tt, "Click or drag-and-drop your image")),
329
- r("input", {
330
- type: "file",
331
- ref_key: "fileInput",
332
- ref: s,
333
- onChange: n,
334
- style: { display: "none" }
335
- }, null, 544)
336
- ], 32));
337
- }
338
- }, lt = { class: "pd-thin" }, ot = {
79
+ }, Me = { class: "pd-thin" }, Fe = {
339
80
  key: 0,
340
81
  class: "h-100 w-100 bg-grey pd-big radius-big"
341
- }, at = { class: "w-full h-full" }, st = ["onMouseover"], rt = {
342
- key: 0,
343
- class: "z-index-5 radius-thin mn-small relative left-0 mt-2 w-max bg-white shadow-lg rounded"
344
- }, it = ["onClick"], ct = ["onClick"], ut = ["onClick"], pt = {
82
+ }, Ne = { class: "w-full h-full" }, ze = {
345
83
  key: 1,
346
84
  class: "pd-thin pos-fixed pos-l-0 pos-b-0 w-100"
347
- }, dt = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, mt = { class: "w-m-66r t-left pd-big bg-white radius-big" }, gt = /* @__PURE__ */ r("h3", { class: "mn-small" }, "Final Touches", -1), ft = /* @__PURE__ */ r("h5", { class: "mn-thin" }, "Add to public:", -1), ht = {
85
+ }, Oe = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, je = { class: "w-m-66r t-left pd-big bg-white radius-big" }, De = /* @__PURE__ */ o("h3", { class: "mn-small" }, "Final Touches", -1), Ue = /* @__PURE__ */ o("h5", { class: "mn-thin" }, "Add to public:", -1), Ae = {
348
86
  key: 0,
349
87
  class: "mn-thin"
350
- }, vt = {
88
+ }, Le = {
351
89
  key: 1,
352
90
  class: "mn-medium br-grey br-2px br-solid pd-small radius-big"
353
- }, _t = {
91
+ }, Ee = {
354
92
  __name: "CreateBlogPost",
355
- setup(o) {
356
- const a = K(), t = Z();
357
- let e = g(null), s = g(null);
358
- const p = g([]), n = g(null);
359
- S(async () => {
360
- if (a.params.url) {
361
- const f = await ee({ user: P.user._id, url: a.params.url });
362
- e.value = f.pop();
93
+ setup(d) {
94
+ const n = z(), s = A();
95
+ let e = g(null), a = g(null);
96
+ const m = g([]), t = g(null);
97
+ F(async () => {
98
+ if (n.params.url) {
99
+ const u = await L({ user: w.user._id, url: n.params.url });
100
+ e.value = u.pop();
363
101
  } else
364
- Be(), e.value = N.current;
102
+ ie(), e.value = M.current;
365
103
  e.value.owner || (e.value.owner = {
366
- target: P.user._id,
104
+ target: w.user._id,
367
105
  type: "user"
368
106
  }), e.value.creator || (e.value.creator = {
369
- target: P.user._id,
107
+ target: w.user._id,
370
108
  type: "user",
371
109
  hidden: !1
372
- }), e.value.owner.type === "organization" && (n.value = {
110
+ }), e.value.owner.type === "organization" && (t.value = {
373
111
  _id: e.value.owner.target._id,
374
112
  name: e.value.owner.target.profile.name,
375
113
  photo: e.value.owner.target.profile.photo
376
114
  });
377
- const d = await He.read({
378
- user: P.user._id,
379
- postable: P.user._id
115
+ const r = await we.read({
116
+ user: w.user._id,
117
+ postable: w.user._id
380
118
  });
381
- console.log(d), s.value = d.map((f) => ({
382
- name: f.profile.name,
383
- _id: f._id,
384
- photo: f.profile.photo
119
+ console.log(r), a.value = r.map((u) => ({
120
+ name: u.profile.name,
121
+ _id: u._id,
122
+ photo: u.profile.photo
385
123
  }));
386
124
  });
387
- const i = g(""), l = g([
125
+ const _ = g(""), l = g([
388
126
  { text: "story" },
389
127
  { text: "news" },
390
128
  { text: "guide" },
391
129
  { text: "discussion" },
392
130
  { text: "photos" }
393
131
  ]);
394
- te(() => l.value.filter((d) => d.text.toLowerCase().includes(i.value.toLowerCase()))), te(() => l.value.filter((d) => !p.value.some((f) => f.text === d.text)));
395
- const c = g(!1);
396
- function h() {
397
- c.value = !0;
398
- }
399
- function b() {
400
- c.value = !1;
401
- }
402
- function I() {
403
- p.value.length > 0 && p.value.map((d) => d.text), e.value.status = "draft", a.params.url ? le(e.value).then((d) => {
404
- t.push({ name: "BlogPost", params: { url: d.url } });
405
- }).catch((d) => {
406
- console.log(d);
407
- }) : oe(e.value).then((d) => {
408
- t.push({ name: "BlogPost", params: { url: d.url } });
409
- }).catch((d) => {
410
- console.log(d);
132
+ V(() => l.value.filter((r) => r.text.toLowerCase().includes(_.value.toLowerCase()))), V(() => l.value.filter((r) => !m.value.some((u) => u.text === r.text)));
133
+ const f = g(!1);
134
+ function P() {
135
+ f.value = !0;
136
+ }
137
+ function $() {
138
+ f.value = !1;
139
+ }
140
+ function S() {
141
+ m.value.length > 0 && m.value.map((r) => r.text), e.value.status = "draft", n.params.url ? q(e.value).then((r) => {
142
+ s.push({ name: "BlogPost", params: { url: r.url } });
143
+ }).catch((r) => {
144
+ console.log(r);
145
+ }) : R(e.value).then((r) => {
146
+ s.push({ name: "BlogPost", params: { url: r.url } });
147
+ }).catch((r) => {
148
+ console.log(r);
411
149
  });
412
150
  }
413
- function j() {
414
- n.value && (e.value.owner = {
415
- target: n.value._id,
151
+ function O() {
152
+ t.value && (e.value.owner = {
153
+ target: t.value._id,
416
154
  type: "organization"
417
- }), n.value || (e.value.creator.hidden = !1), n.value || (e.value.organization = e.value.creator), e.value.status = "published", console.log(e.value), a.params.url ? le(e.value).then((d) => {
418
- t.push({ name: "BlogPost", params: { url: d.url } });
419
- }).catch((d) => {
420
- console.log(d);
421
- }) : oe(e.value).then((d) => {
422
- t.push({ name: "BlogPost", params: { url: d.url } });
423
- }).catch((d) => {
424
- console.log(d);
155
+ }), t.value || (e.value.creator.hidden = !1), t.value || (e.value.organization = e.value.creator), e.value.status = "published", console.log(e.value), n.params.url ? q(e.value).then((r) => {
156
+ s.push({ name: "BlogPost", params: { url: r.url } });
157
+ }).catch((r) => {
158
+ console.log(r);
159
+ }) : R(e.value).then((r) => {
160
+ s.push({ name: "BlogPost", params: { url: r.url } });
161
+ }).catch((r) => {
162
+ console.log(r);
425
163
  });
426
164
  }
427
- function W() {
428
- confirm("Are you sure you want to delete this post?") && Ce(e.value._id).then((d) => {
429
- t.push({ name: "User Blogposts", params: { _id: e.value.creator.target._id } });
430
- }).catch((d) => {
431
- console.log(d);
165
+ function j() {
166
+ confirm("Are you sure you want to delete this post?") && ue(e.value._id).then((r) => {
167
+ s.push({ name: "User Blogposts", params: { _id: e.value.creator.target._id } });
168
+ }).catch((r) => {
169
+ console.log(r);
432
170
  });
433
171
  }
434
- const L = {
435
- Textarea: ae,
436
- H2: Ge,
437
- Bullets: Ze,
438
- Caption: Xe,
439
- ImageUpload: nt
440
- };
441
- function z(d = "Textarea", f = "", v, k) {
442
- console.log("We are adding new block (functuin HandleAddBlock):" + d + f + v + k);
443
- let C = {
444
- order: e.value.content.length + 1,
445
- type: d,
446
- style: "",
447
- class: "",
448
- content: f,
449
- blocks: [],
450
- setFocus: !0
451
- };
452
- if (k && k.blocks && Array.isArray(k.blocks)) {
453
- let Q = k.blocks.map((he) => ({
454
- ...C,
455
- content: he.content
456
- })), ge = [(k.index || v) + 1, 0].concat(Q);
457
- e.value.content.splice.apply(e.value.content, ge);
458
- const fe = Q[Q.length - 1];
459
- console.log("New block is" + fe);
460
- } else
461
- v !== void 0 ? (e.value.content.splice(v + 1, 0, C), console.log("Latest block is" + C)) : (console.log("Another block is" + C), e.value.content.push(C));
462
- $.value = null;
463
- }
464
- function G(d, f) {
465
- const v = e.value.content.findIndex((k) => k === d);
466
- v !== -1 && (e.value.content[v] = { ...e.value.content[v], ...f });
467
- }
468
- function A(d) {
469
- let f = e.value.content.findIndex((v) => v === d);
470
- f !== -1 && e.value.content.splice(f, 1), e.value.content[f - 1].setFocus = !0;
471
- }
472
- const $ = g(null), w = g(!1), B = g(!1);
473
- function de() {
474
- w.value = !0;
475
- }
476
- function me() {
477
- w.value = !1;
478
- }
479
- return ie(() => {
480
- e.value && e.value.content.length === 0 && z("Textarea", "");
481
- }), (d, f) => (u(), m("article", lt, [
482
- _(e) ? (u(), m("section", ot, [
483
- r("div", at, [
484
- x(ae, {
485
- prop: _(e),
172
+ return (r, u) => (i(), p("article", Me, [
173
+ c(e) ? (i(), p("section", Fe, [
174
+ o("div", Ne, [
175
+ h(me, {
176
+ prop: c(e),
486
177
  content: "name",
487
178
  placeholder: "Enter post title",
488
179
  class: "h2"
489
180
  }, null, 8, ["prop"])
490
181
  ]),
491
- _(e).content ? (u(), U(_(ze), {
492
- key: 0,
493
- class: "w-full",
494
- list: _(e).content,
495
- onStart: de,
496
- onEnd: me
497
- }, {
498
- default: T(() => [
499
- (u(!0), m(V, null, O(_(e).content, (v, k) => (u(), m("div", {
500
- key: k,
501
- class: "relative"
502
- }, [
503
- r("div", {
504
- onMouseover: (C) => ($.value = k, B.value = !1),
505
- class: "w-full h-full"
506
- }, [
507
- (u(), U(Y(L[v.type]), {
508
- index: k,
509
- component: v,
510
- prop: v,
511
- class: D(v.class),
512
- setFocus: v.setFocus,
513
- content: "content",
514
- onDeleteBlock: A,
515
- onAddBlock: z,
516
- onUpdateBlock: G
517
- }, null, 40, ["index", "component", "prop", "class", "setFocus"]))
518
- ], 40, st),
519
- x(X, { name: "fade" }, {
520
- default: T(() => [
521
- $.value === k ? (u(), m("div", {
522
- key: 0,
523
- class: "pos-absolute pos-r-100 pos-t-0 z-index-4 i-semi",
524
- onMousedown: f[1] || (f[1] = re((C) => w.value = !0, ["prevent"]))
525
- }, [
526
- r("button", {
527
- onClick: f[0] || (f[0] = (C) => B.value = !B.value),
528
- class: "mn-small w-100 i-semi bg-white radius-thin"
529
- }, H(v.content ? "..." : "+"), 1),
530
- B.value ? (u(), m("div", rt, [
531
- r("button", {
532
- onClick: (C) => A(v),
533
- class: "block w-max text-left px-4 py-2 hover:bg-gray-200"
534
- }, "Удалить", 8, it),
535
- r("button", {
536
- onClick: (C) => z("ImageUpload", "", k),
537
- class: "block w-max text-left px-4 py-2 hover:bg-gray-200"
538
- }, "Добавить изображение", 8, ct),
539
- r("button", {
540
- onClick: (C) => z("H2", "", k),
541
- class: "block w-max text-left px-4 py-2 hover:bg-gray-200"
542
- }, "Добавить заголовок", 8, ut)
543
- ])) : y("", !0)
544
- ], 32)) : y("", !0)
545
- ]),
546
- _: 2
547
- }, 1024)
548
- ]))), 128))
549
- ]),
550
- _: 1
551
- }, 8, ["list"])) : y("", !0)
552
- ])) : y("", !0),
553
- _(e) ? (u(), m("section", pt, [
554
- r("div", dt, [
555
- _(a).params.url ? (u(), m("a", {
182
+ h(ge, {
183
+ content: c(e).content,
184
+ onUpdate: u[0] || (u[0] = (b) => c(e).content = b)
185
+ }, null, 8, ["content"])
186
+ ])) : v("", !0),
187
+ c(e) ? (i(), p("section", ze, [
188
+ o("div", Oe, [
189
+ c(n).params.url ? (i(), p("a", {
556
190
  key: 0,
557
- onClick: f[2] || (f[2] = (v) => W()),
191
+ onClick: u[1] || (u[1] = (b) => j()),
558
192
  class: "mn-r-auto bg-red t-white t-black button"
559
- }, "Delete")) : y("", !0),
560
- r("a", {
561
- onClick: f[3] || (f[3] = (v) => I()),
193
+ }, "Delete")) : v("", !0),
194
+ o("a", {
195
+ onClick: u[2] || (u[2] = (b) => S()),
562
196
  class: "mn-l-auto bg-white t-black button"
563
197
  }, "To Drafts"),
564
- r("a", {
565
- onClick: f[4] || (f[4] = (v) => h()),
198
+ o("a", {
199
+ onClick: u[3] || (u[3] = (b) => P()),
566
200
  class: "mn-l-thin bg-black t-white button"
567
201
  }, "Publish")
568
202
  ])
569
- ])) : y("", !0),
570
- x(Fe, {
203
+ ])) : v("", !0),
204
+ h(fe, {
571
205
  title: "Добавить участника",
572
- onClosePopup: b,
573
- isPopupOpen: c.value
206
+ onClosePopup: $,
207
+ isPopupOpen: f.value
574
208
  }, {
575
- default: T(() => [
576
- r("div", mt, [
577
- gt,
578
- x(Ue, {
579
- onTagsChanged: f[5] || (f[5] = (v) => _(e).tags = v),
580
- tags: _(e).tags
209
+ default: k(() => [
210
+ o("div", je, [
211
+ De,
212
+ h(ve, {
213
+ onTagsChanged: u[4] || (u[4] = (b) => c(e).tags = b),
214
+ tags: c(e).tags
581
215
  }, null, 8, ["tags"]),
582
- ft,
583
- x(Me, {
584
- modelValue: n.value,
585
- "onUpdate:modelValue": f[6] || (f[6] = (v) => n.value = v),
586
- options: _(s),
216
+ Ue,
217
+ h(be, {
218
+ modelValue: t.value,
219
+ "onUpdate:modelValue": u[5] || (u[5] = (b) => t.value = b),
220
+ options: c(a),
587
221
  multiple: !1,
588
222
  taggable: !1,
589
223
  placeholder: "Type to search or add tag",
@@ -591,23 +225,23 @@ const We = ["placeholder"], Ge = {
591
225
  "track-by": "_id",
592
226
  class: "mn-medium bg-grey radius-medium pd-small"
593
227
  }, null, 8, ["modelValue", "options"]),
594
- n.value ? (u(), m("h5", ht, "Options:")) : y("", !0),
595
- n.value ? (u(), m("div", vt, [
596
- x($e, {
228
+ t.value ? (i(), p("h5", Ae, "Options:")) : v("", !0),
229
+ t.value ? (i(), p("div", Le, [
230
+ h(ye, {
597
231
  label: "Hide Author",
598
- radio: _(e).creator.hidden,
599
- "onUpdate:radio": f[7] || (f[7] = (v) => _(e).creator.hidden = v),
232
+ radio: c(e).creator.hidden,
233
+ "onUpdate:radio": u[6] || (u[6] = (b) => c(e).creator.hidden = b),
600
234
  name: "prices",
601
235
  class: "w-100"
602
236
  }, null, 8, ["radio"])
603
- ])) : y("", !0),
604
- x(Ie, {
605
- submit: j,
606
- callback: d.redirectTo,
237
+ ])) : v("", !0),
238
+ h(pe, {
239
+ submit: O,
240
+ callback: r.redirectTo,
607
241
  class: "w-100 bg-black t-white"
608
242
  }, {
609
- default: T(() => [
610
- F("Publish")
243
+ default: k(() => [
244
+ T("Publish")
611
245
  ]),
612
246
  _: 1
613
247
  }, 8, ["callback"])
@@ -617,199 +251,182 @@ const We = ["placeholder"], Ge = {
617
251
  }, 8, ["isPopupOpen"])
618
252
  ]));
619
253
  }
620
- }, se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
254
+ }, J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
621
255
  __proto__: null,
622
- default: _t
623
- }, Symbol.toStringTag, { value: "Module" })), bt = {}, yt = {
256
+ default: Ee
257
+ }, Symbol.toStringTag, { value: "Module" })), Ve = {}, He = {
624
258
  width: "100%",
625
259
  height: "20rem",
626
260
  xmlns: "http://www.w3.org/2000/svg"
627
- }, xt = /* @__PURE__ */ _e('<rect x="0" y="0" rx="5" ry="5" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="4" ry="4" width="40%" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="45" rx="5" ry="5" width="70%" height="50" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="110" rx="3" ry="3" width="90%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="130" rx="3" ry="3" width="70%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" mask="url(#myMask)" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>', 6), wt = [
628
- xt
261
+ }, qe = /* @__PURE__ */ Z('<rect x="0" y="0" rx="5" ry="5" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="4" ry="4" width="40%" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="45" rx="5" ry="5" width="70%" height="50" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="110" rx="3" ry="3" width="90%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="130" rx="3" ry="3" width="70%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" mask="url(#myMask)" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>', 6), Re = [
262
+ qe
629
263
  ];
630
- function kt(o, a) {
631
- return u(), m("svg", yt, wt);
264
+ function Je(d, n) {
265
+ return i(), p("svg", He, Re);
632
266
  }
633
- const $t = /* @__PURE__ */ pe(bt, [["render", kt]]), Bt = { class: "w-100 bg-white radius-big image-upload-area flex-v-center flex-h-center flex t-black mn-small" }, Ct = ["src"], Pt = {
634
- __name: "Image",
635
- props: [
636
- "label",
637
- "value",
638
- "prop"
639
- ],
640
- setup(o) {
641
- return g(null), (a, t) => (u(), m("div", Bt, [
642
- o.prop.content ? (u(), m("img", {
643
- key: 0,
644
- src: o.prop.content,
645
- alt: "Uploaded image",
646
- class: "w-100 h-30r object-fit-contain"
647
- }, null, 8, Ct)) : y("", !0)
648
- ]));
649
- }
650
- }, Tt = { class: "pd-thin" }, It = {
267
+ const Ge = /* @__PURE__ */ X(Ve, [["render", Je]]), Qe = { class: "pd-thin" }, We = {
651
268
  __name: "BlogPost",
652
- setup(o) {
653
- const a = K(), t = g(null), e = g(!0);
654
- S(async () => {
269
+ setup(d) {
270
+ const n = z(), s = g(null), e = g(!0);
271
+ F(async () => {
655
272
  e.value = !0;
656
- const n = await ee({ user: P.user._id, url: a.params.url });
657
- t.value = n[0], e.value = !1;
273
+ const t = await L({ user: w.user._id, url: n.params.url });
274
+ s.value = t[0], e.value = !1;
658
275
  });
659
- const s = {
276
+ const a = {
660
277
  Textarea: "p",
661
278
  H2: "h2",
662
279
  Bullets: "p",
663
280
  Caption: "p",
664
- ImageUpload: Pt
281
+ ImageUpload: he
665
282
  };
666
- function p(n) {
667
- 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 } : {};
283
+ function m(t) {
284
+ return t.type === "Textarea" ? { innerHTML: t.content, class: "p-medium" } : t.type === "H2" ? { innerHTML: t.content, class: "h3" } : t.type === "Caption" ? { innerHTML: t.content } : t.type === "ImageUpload" ? { src: t.content } : {};
668
285
  }
669
- return (n, i) => (u(), m("section", Tt, [
670
- x(ne, {
286
+ return (t, _) => (i(), p("section", Qe, [
287
+ h(H, {
671
288
  tag: "ul",
672
289
  name: "fade",
673
290
  class: "o-hidden bg-grey radius-big"
674
291
  }, {
675
- default: T(() => [
676
- e.value ? (u(), m(V, { key: 0 }, O(3, (l) => x($t, { key: l })), 64)) : y("", !0)
292
+ default: k(() => [
293
+ e.value ? (i(), p(D, { key: 0 }, U(3, (l) => h(Ge, { key: l })), 64)) : v("", !0)
677
294
  ]),
678
295
  _: 1
679
296
  }),
680
- x(X, { name: "fade" }, {
681
- default: T(() => [
682
- !e.value && !t.value ? (u(), U(je, {
297
+ h(G, { name: "fade" }, {
298
+ default: k(() => [
299
+ !e.value && !s.value ? (i(), I(xe, {
683
300
  key: 0,
684
301
  title: "No Blogpost Found",
685
302
  description: "Currently, there are no blogposts available. Please check back later.",
686
303
  class: "pd-medium mn-thin bg-grey radius-big"
687
- })) : y("", !0)
304
+ })) : v("", !0)
688
305
  ]),
689
306
  _: 1
690
307
  }),
691
- x(ne, {
308
+ h(H, {
692
309
  tag: "ul",
693
310
  name: "fade",
694
311
  class: "container"
695
312
  }, {
696
- default: T(() => [
697
- !e.value && t.value ? (u(), U(ue, {
313
+ default: k(() => [
314
+ !e.value && s.value ? (i(), I(K, {
698
315
  key: 0,
699
- onClick: i[0] || (i[0] = (l) => n.$router.push({ name: "Blogpost", params: { url: t.value.url } })),
700
- blogpost: t.value,
701
- user: P.user._id,
316
+ onClick: _[0] || (_[0] = (l) => t.$router.push({ name: "Blogpost", params: { url: s.value.url } })),
317
+ blogpost: s.value,
318
+ user: w.user._id,
702
319
  type: "blogpostPage",
703
- class: D(["mn-medium", {
704
- "br-b br-solid br-black-transp-10": n.index !== t.value.length - 1
320
+ class: B(["mn-medium", {
321
+ "br-b br-solid br-black-transp-10": t.index !== s.value.length - 1
705
322
  }])
706
323
  }, {
707
- default: T(() => [
708
- r("section", null, [
709
- t.value && t.value.content ? (u(!0), m(V, { key: 0 }, O(t.value.content, (l, c) => (u(), U(Y(s[l.type]), be({
710
- key: c,
711
- index: c,
324
+ default: k(() => [
325
+ o("section", null, [
326
+ s.value && s.value.content ? (i(!0), p(D, { key: 0 }, U(s.value.content, (l, f) => (i(), I(Q(a[l.type]), ee({
327
+ key: f,
328
+ index: f,
712
329
  component: l,
713
330
  prop: l,
714
331
  class: l.class,
715
332
  content: "content"
716
- }, p(l), { class: "mn-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : y("", !0)
333
+ }, m(l), { class: "mn-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : v("", !0)
717
334
  ])
718
335
  ]),
719
336
  _: 1
720
- }, 8, ["blogpost", "user", "class"])) : y("", !0),
721
- x(De, { class: "mn-small" }),
722
- !e.value && t.value ? (u(), U(Ae, {
337
+ }, 8, ["blogpost", "user", "class"])) : v("", !0),
338
+ h(re, { class: "mn-small" }),
339
+ !e.value && s.value ? (i(), I(_e, {
723
340
  key: 1,
724
341
  type: "blogpost",
725
- target: t.value._id,
726
- owner: P.user._id
727
- }, null, 8, ["target", "owner"])) : y("", !0)
342
+ target: s.value._id,
343
+ owner: w.user._id
344
+ }, null, 8, ["target", "owner"])) : v("", !0)
728
345
  ]),
729
346
  _: 1
730
347
  })
731
348
  ]));
732
349
  }
733
- }, St = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
350
+ }, Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
734
351
  __proto__: null,
735
- default: It
736
- }, Symbol.toStringTag, { value: "Module" })), Ft = {
352
+ default: We
353
+ }, Symbol.toStringTag, { value: "Module" })), Xe = {
737
354
  __name: "Blog",
738
- setup(o) {
739
- const a = K(), t = Z();
740
- return a.params.category || (a.params.category = "featured"), S(() => {
741
- if (a.query) {
742
- const e = a.query, s = {
355
+ setup(d) {
356
+ const n = z(), s = A();
357
+ return n.params.category || (n.params.category = "featured"), F(() => {
358
+ if (n.query) {
359
+ const e = n.query, a = {
743
360
  tags: e.tags ? e.tags.split(",") : [],
744
361
  period: e.period ? e.period : "year"
745
362
  };
746
- N.filter = s;
363
+ M.filter = a;
747
364
  }
748
- }), E(() => N.filter, (e, s) => {
749
- const p = { ...a.query };
750
- Object.keys(s).forEach((i) => {
751
- p[i] && delete p[i];
365
+ }), te(() => M.filter, (e, a) => {
366
+ const m = { ...n.query };
367
+ Object.keys(a).forEach((_) => {
368
+ m[_] && delete m[_];
752
369
  });
753
- const n = Object.fromEntries(
754
- Object.entries(e).filter(([i, l]) => Array.isArray(l) && l.length > 0 || typeof l == "string" && l).map(([i, l]) => [i, Array.isArray(l) ? l.join(",") : l])
370
+ const t = Object.fromEntries(
371
+ Object.entries(e).filter(([_, l]) => Array.isArray(l) && l.length > 0 || typeof l == "string" && l).map(([_, l]) => [_, Array.isArray(l) ? l.join(",") : l])
755
372
  );
756
- Object.assign(p, n), t.push({ query: p });
757
- }, { deep: !0 }), (e, s) => (u(), m("section", null, [
758
- x(Pe, {
759
- category: _(a).params.category,
760
- user: P.user._id,
761
- period: _(a).query.period
373
+ Object.assign(m, t), s.push({ query: m });
374
+ }, { deep: !0 }), (e, a) => (i(), p("section", null, [
375
+ h(ce, {
376
+ category: c(n).params.category,
377
+ user: w.user._id,
378
+ period: c(n).query.period
762
379
  }, null, 8, ["category", "user", "period"])
763
380
  ]));
764
381
  }
765
- }, Ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
382
+ }, Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
766
383
  __proto__: null,
767
- default: Ft
768
- }, Symbol.toStringTag, { value: "Module" })), Mt = { class: "w-100 cols-4 t-left flex-nowrap flex" }, Dt = {
384
+ default: Xe
385
+ }, Symbol.toStringTag, { value: "Module" })), Ze = { class: "w-100 cols-4 t-left flex-nowrap flex" }, et = {
769
386
  key: 0,
770
387
  class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
771
- }, zt = /* @__PURE__ */ r("p", { class: "h4 i-medium mn-r-small" }, "👍", -1), Ht = { class: "t-semi uppercase" }, jt = /* @__PURE__ */ r("br", null, null, -1), At = {
388
+ }, tt = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "👍", -1), st = { class: "t-semi uppercase" }, at = /* @__PURE__ */ o("br", null, null, -1), ot = {
772
389
  key: 1,
773
390
  class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
774
- }, Nt = /* @__PURE__ */ r("p", { class: "h4 i-medium mn-r-small" }, "💬", -1), Et = { class: "t-semi uppercase" }, Lt = /* @__PURE__ */ r("br", null, null, -1), Vt = {
391
+ }, nt = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "💬", -1), lt = { class: "t-semi uppercase" }, rt = /* @__PURE__ */ o("br", null, null, -1), it = {
775
392
  key: 2,
776
393
  class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
777
- }, Ot = /* @__PURE__ */ r("p", { class: "h4 i-medium mn-r-small" }, "👍", -1), Rt = { class: "t-semi uppercase" }, qt = /* @__PURE__ */ r("br", null, null, -1), Pn = {
394
+ }, ut = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "👍", -1), ct = { class: "t-semi uppercase" }, pt = /* @__PURE__ */ o("br", null, null, -1), Gt = {
778
395
  __name: "Activity",
779
396
  props: {
780
397
  likes: Number,
781
398
  comments: Number,
782
399
  subscriptions: Number
783
400
  },
784
- setup(o) {
785
- return (a, t) => (u(), m("section", Mt, [
786
- o.likes ? (u(), m("div", Dt, [
787
- zt,
788
- r("span", Ht, [
789
- F(H(o.likes), 1),
790
- jt,
791
- F("likes")
401
+ setup(d) {
402
+ return (n, s) => (i(), p("section", Ze, [
403
+ d.likes ? (i(), p("div", et, [
404
+ tt,
405
+ o("span", st, [
406
+ T(N(d.likes), 1),
407
+ at,
408
+ T("likes")
792
409
  ])
793
- ])) : y("", !0),
794
- o.comments ? (u(), m("div", At, [
795
- Nt,
796
- r("span", Et, [
797
- F(H(o.comments), 1),
798
- Lt,
799
- F("comments")
410
+ ])) : v("", !0),
411
+ d.comments ? (i(), p("div", ot, [
412
+ nt,
413
+ o("span", lt, [
414
+ T(N(d.comments), 1),
415
+ rt,
416
+ T("comments")
800
417
  ])
801
- ])) : y("", !0),
802
- o.subscriptions ? (u(), m("div", Vt, [
803
- Ot,
804
- r("span", Rt, [
805
- F(H(o.subscriptions), 1),
806
- qt,
807
- F("subscriptions")
418
+ ])) : v("", !0),
419
+ d.subscriptions ? (i(), p("div", it, [
420
+ ut,
421
+ o("span", ct, [
422
+ T(N(d.subscriptions), 1),
423
+ pt,
424
+ T("subscriptions")
808
425
  ])
809
- ])) : y("", !0)
426
+ ])) : v("", !0)
810
427
  ]));
811
428
  }
812
- }, Jt = { class: "pd-thin radius-extra flex-nowrap flex" }, Kt = ["innerHTML"], Wt = {
429
+ }, dt = { class: "pd-thin radius-extra flex-nowrap flex" }, mt = ["innerHTML"], gt = {
813
430
  __name: "FieldBig",
814
431
  props: {
815
432
  input: String,
@@ -841,94 +458,94 @@ const $t = /* @__PURE__ */ pe(bt, [["render", kt]]), Bt = { class: "w-100 bg-whi
841
458
  }
842
459
  },
843
460
  emits: ["update:input", "action"],
844
- setup(o, { emit: a }) {
845
- const t = o, { t: e, locale: s } = Ne();
846
- let p = g(0), n = g(t.input), i = g(t.placeholder), l = g(t.enableTyping), c = g(null), h = g(""), b = g(!0), I = null;
847
- function j() {
848
- a("action");
849
- }
850
- function W($) {
851
- a("update:input", $), h.value = $;
461
+ setup(d, { emit: n }) {
462
+ const s = d, { t: e, locale: a } = $e();
463
+ let m = g(0), t = g(s.input), _ = g(s.placeholder), l = g(s.enableTyping), f = g(null), P = g(""), $ = g(!0), S = null;
464
+ function O() {
465
+ n("action");
852
466
  }
853
- function L() {
854
- p.value = (p.value + 1) % t.placeholderTexts[s.value].length;
467
+ function j(x) {
468
+ n("update:input", x), P.value = x;
855
469
  }
856
- function z() {
857
- l.value = !1, clearInterval(c.value), i.value = t.placeholder, h.value || (n.value = "");
470
+ function r() {
471
+ m.value = (m.value + 1) % s.placeholderTexts[a.value].length;
858
472
  }
859
- function G() {
860
- !h.value && t.enableTyping && (l.value = !0, i.value = "", A());
473
+ function u() {
474
+ l.value = !1, clearInterval(f.value), _.value = s.placeholder, P.value || (t.value = "");
861
475
  }
862
- function A() {
863
- let $ = t.placeholderTexts[s.value][p.value], w = 0, B = !1;
864
- I = setInterval(() => {
865
- b.value = !b.value;
866
- }, 200), c.value = setInterval(() => {
867
- l.value && (B ? (n.value = n.value.slice(0, -1), n.value = $.substring(0, w) + (b.value && w % 2 ? "|" : ""), w--) : (n.value = $.substring(0, w) + (b.value && w % 2 ? "|" : ""), w++), w > $.length && t.loopTyping && setTimeout(() => {
868
- B = !0, n.value = $.substring(0, w);
869
- }, 333), w === 0 && B && (B = !1, L(), $ = t.placeholderTexts[s.value][p.value]));
870
- }, t.typingSpeed);
871
- }
872
- return S(() => {
873
- t.enableTyping && A();
874
- }), ie(() => {
875
- l.value || (clearInterval(c.value), clearInterval(I));
876
- }), ($, w) => (u(), m("div", Jt, [
877
- x(Se, {
878
- field: _(n),
476
+ function b() {
477
+ !P.value && s.enableTyping && (l.value = !0, _.value = "", E());
478
+ }
479
+ function E() {
480
+ let x = s.placeholderTexts[a.value][m.value], y = 0, C = !1;
481
+ S = setInterval(() => {
482
+ $.value = !$.value;
483
+ }, 200), f.value = setInterval(() => {
484
+ l.value && (C ? (t.value = t.value.slice(0, -1), t.value = x.substring(0, y) + ($.value && y % 2 ? "|" : ""), y--) : (t.value = x.substring(0, y) + ($.value && y % 2 ? "|" : ""), y++), y > x.length && s.loopTyping && setTimeout(() => {
485
+ C = !0, t.value = x.substring(0, y);
486
+ }, 333), y === 0 && C && (C = !1, r(), x = s.placeholderTexts[a.value][m.value]));
487
+ }, s.typingSpeed);
488
+ }
489
+ return F(() => {
490
+ s.enableTyping && E();
491
+ }), se(() => {
492
+ l.value || (clearInterval(f.value), clearInterval(S));
493
+ }), (x, y) => (i(), p("div", dt, [
494
+ h(de, {
495
+ field: c(t),
879
496
  "onUpdate:field": [
880
- w[0] || (w[0] = (B) => ce(n) ? n.value = B : n = B),
881
- W
497
+ y[0] || (y[0] = (C) => W(t) ? t.value = C : t = C),
498
+ j
882
499
  ],
883
- placeholder: _(i),
884
- onInput: L,
885
- onFocus: z,
886
- onBlur: G,
500
+ placeholder: c(_),
501
+ onInput: r,
502
+ onFocus: u,
503
+ onBlur: b,
887
504
  class: "w-100 pd-small p-big"
888
505
  }, null, 8, ["field", "placeholder"]),
889
- o.action ? (u(), m("button", {
506
+ d.action ? (i(), p("button", {
890
507
  key: 0,
891
- onClick: j,
508
+ onClick: O,
892
509
  class: "w-min hover_bg-white hover-t-black t-black bg-main button",
893
- innerHTML: o.action
894
- }, null, 8, Kt)) : y("", !0)
510
+ innerHTML: d.action
511
+ }, null, 8, mt)) : v("", !0)
895
512
  ]));
896
513
  }
897
514
  };
898
- const Gt = { class: "pd-thin" }, Qt = { class: "o-hidden t-black bg-main pd-big radius-big" }, Xt = /* @__PURE__ */ r("header", { class: "t-center z-index-1 mn-big" }, [
899
- /* @__PURE__ */ r("h2", { class: "mn-l-auto mn-r-auto w-m-40r mn-medium" }, "Stay Updated with The Latest in Cannabis."),
900
- /* @__PURE__ */ r("p", { class: "t-transp p-big" }, "Subscribe to our newsletter for news, insights, and more from the Weeder universe.")
901
- ], -1), Yt = { class: "z-index-1 mn-big w-100 flex-nowrap flex" }, Zt = /* @__PURE__ */ r("div", { class: "w-100 h-100 pos-absolute pos-t-50-negative pos-r-0 z-index-0 grid" }, [
902
- /* @__PURE__ */ r("div", { class: "spiral" })
903
- ], -1), Tn = {
515
+ const _t = { class: "pd-thin" }, ht = { class: "o-hidden t-black bg-main pd-big radius-big" }, ft = /* @__PURE__ */ o("header", { class: "t-center z-index-1 mn-big" }, [
516
+ /* @__PURE__ */ o("h2", { class: "mn-l-auto mn-r-auto w-m-40r mn-medium" }, "Stay Updated with The Latest in Cannabis."),
517
+ /* @__PURE__ */ o("p", { class: "t-transp p-big" }, "Subscribe to our newsletter for news, insights, and more from the Weeder universe.")
518
+ ], -1), vt = { class: "z-index-1 mn-big w-100 flex-nowrap flex" }, bt = /* @__PURE__ */ o("div", { class: "w-100 h-100 pos-absolute pos-t-50-negative pos-r-0 z-index-0 grid" }, [
519
+ /* @__PURE__ */ o("div", { class: "spiral" })
520
+ ], -1), Qt = {
904
521
  __name: "SubscribeNewsletter",
905
- setup(o) {
906
- let a = g("");
907
- return (t, e) => (u(), m("section", Gt, [
908
- r("div", Qt, [
909
- Xt,
910
- r("div", Yt, [
911
- x(Wt, {
912
- input: _(a),
522
+ setup(d) {
523
+ let n = g("");
524
+ return (s, e) => (i(), p("section", _t, [
525
+ o("div", ht, [
526
+ ft,
527
+ o("div", vt, [
528
+ h(gt, {
529
+ input: c(n),
913
530
  typingSpeed: 75,
914
531
  loopTyping: !1,
915
532
  enableTyping: !1,
916
533
  placeholder: "Please enter your email",
917
534
  action: "Subscribe",
918
- "onUpdate:input": e[0] || (e[0] = (s) => ce(a) ? a.value = s : a = s),
919
- onAction: e[1] || (e[1] = (s) => t.router.push({ name: "Product Recommmendation", query: { mood: t.mood } })),
535
+ "onUpdate:input": e[0] || (e[0] = (a) => W(n) ? n.value = a : n = a),
536
+ onAction: e[1] || (e[1] = (a) => s.router.push({ name: "Product Recommmendation", query: { mood: s.mood } })),
920
537
  class: "mn-l-auto mn-r-auto bg-white t-black w-50"
921
538
  }, null, 8, ["input"])
922
539
  ]),
923
- Zt
540
+ bt
924
541
  ])
925
542
  ]));
926
543
  }
927
544
  };
928
- const en = { class: "container container-joinus" }, tn = { class: "content" }, nn = { class: "h0 mn-big" }, ln = /* @__PURE__ */ r("p", { class: "w-m-33r t-center mn-small p-big" }, "Together, we're shaping the future of the globals cannabis community.", -1), on = /* @__PURE__ */ r("button", { class: "bg-black t-white button" }, "Join Now", -1), In = {
545
+ const yt = { class: "container container-joinus" }, wt = { class: "content" }, xt = { class: "h0 mn-big" }, $t = /* @__PURE__ */ o("p", { class: "w-m-33r t-center mn-small p-big" }, "Together, we're shaping the future of the globals cannabis community.", -1), kt = /* @__PURE__ */ o("button", { class: "bg-black t-white button" }, "Join Now", -1), Wt = {
929
546
  __name: "JoinUs",
930
- setup(o) {
931
- const a = g(120950), t = g([
547
+ setup(d) {
548
+ const n = g(120950), s = g([
932
549
  "/assets/images/reviews/01.png",
933
550
  "/assets/images/reviews/02.png",
934
551
  "/assets/images/reviews/03.png",
@@ -937,49 +554,49 @@ const en = { class: "container container-joinus" }, tn = { class: "content" }, n
937
554
  "/assets/images/reviews/06.png"
938
555
  ]), e = () => {
939
556
  setInterval(() => {
940
- a.value += Math.floor(Math.random() * 5) + 1;
557
+ n.value += Math.floor(Math.random() * 5) + 1;
941
558
  }, 330);
942
- }, s = {
559
+ }, a = {
943
560
  minSize: "6rem",
944
561
  maxSize: "10rem",
945
562
  minDuration: 5,
946
563
  maxDuration: 15,
947
564
  spawnPoints: [10, 90]
948
565
  };
949
- S(() => {
950
- p(), e();
566
+ F(() => {
567
+ m(), e();
951
568
  });
952
- const p = () => {
953
- t.value.forEach((n, i) => {
569
+ const m = () => {
570
+ s.value.forEach((t, _) => {
954
571
  let l = document.createElement("img");
955
- l.src = n, l.classList.add("floating-image");
956
- let c = s.spawnPoints[Math.floor(Math.random() * s.spawnPoints.length)], h = (Math.random() - 0.5) * 2 * 10;
957
- l.style.left = `${c + h}%`, l.style.animationDuration = `${Math.random() * (s.maxDuration - s.minDuration) + s.minDuration}s`, document.querySelector(".container").appendChild(l), l.addEventListener("animationiteration", () => {
958
- const b = s.spawnPoints[Math.floor(Math.random() * s.spawnPoints.length)], I = (Math.random() - 0.5) * 2 * 10;
959
- l.style.left = `${b + I}%`;
572
+ l.src = t, l.classList.add("floating-image");
573
+ let f = a.spawnPoints[Math.floor(Math.random() * a.spawnPoints.length)], P = (Math.random() - 0.5) * 2 * 10;
574
+ l.style.left = `${f + P}%`, l.style.animationDuration = `${Math.random() * (a.maxDuration - a.minDuration) + a.minDuration}s`, document.querySelector(".container").appendChild(l), l.addEventListener("animationiteration", () => {
575
+ const $ = a.spawnPoints[Math.floor(Math.random() * a.spawnPoints.length)], S = (Math.random() - 0.5) * 2 * 10;
576
+ l.style.left = `${$ + S}%`;
960
577
  });
961
578
  });
962
579
  };
963
- return (n, i) => (u(), m("div", en, [
964
- r("div", tn, [
965
- r("span", nn, H(a.value.toLocaleString()), 1),
966
- ln,
967
- on
580
+ return (t, _) => (i(), p("div", yt, [
581
+ o("div", wt, [
582
+ o("span", xt, N(n.value.toLocaleString()), 1),
583
+ $t,
584
+ kt
968
585
  ])
969
586
  ]));
970
587
  }
971
588
  };
972
- const an = (o) => (xe("data-v-18db0d1b"), o = o(), we(), o), sn = { class: "community-feed" }, rn = /* @__PURE__ */ an(() => /* @__PURE__ */ r("h2", { class: "w-m-75r mn-auto pd-t-big pd-b-big t-center" }, "Discover the Vibrant Community", -1)), cn = { class: "grid-container" }, un = {
589
+ const Pt = (d) => (oe("data-v-18db0d1b"), d = d(), ne(), d), Ct = { class: "community-feed" }, Tt = /* @__PURE__ */ Pt(() => /* @__PURE__ */ o("h2", { class: "w-m-75r mn-auto pd-t-big pd-b-big t-center" }, "Discover the Vibrant Community", -1)), St = { class: "grid-container" }, Bt = {
973
590
  __name: "HotPosts",
974
- async setup(o) {
975
- let a, t;
976
- const e = g([]), s = async () => {
977
- const n = await ee({ skip: 0, limit: 7, period: "year" });
978
- console.log(n), e.value = n;
591
+ async setup(d) {
592
+ let n, s;
593
+ const e = g([]), a = async () => {
594
+ const t = await L({ skip: 0, limit: 7, period: "year" });
595
+ console.log(t), e.value = t;
979
596
  };
980
- [a, t] = ye(() => s()), await a, t();
981
- const p = (n) => {
982
- switch (n) {
597
+ [n, s] = ae(() => a()), await n, s();
598
+ const m = (t) => {
599
+ switch (t) {
983
600
  case 0:
984
601
  return "grid-item-2x2";
985
602
  case 1:
@@ -995,22 +612,22 @@ const an = (o) => (xe("data-v-18db0d1b"), o = o(), we(), o), sn = { class: "comm
995
612
  return "";
996
613
  }
997
614
  };
998
- return (n, i) => (u(), m("section", sn, [
999
- rn,
1000
- r("div", cn, [
1001
- (u(!0), m(V, null, O(e.value, (l, c) => (u(), U(ue, {
615
+ return (t, _) => (i(), p("section", Ct, [
616
+ Tt,
617
+ o("div", St, [
618
+ (i(!0), p(D, null, U(e.value, (l, f) => (i(), I(K, {
1002
619
  blogpost: l,
1003
- owner: P.user._id,
1004
- key: c,
1005
- class: D(p(c))
620
+ owner: w.user._id,
621
+ key: f,
622
+ class: B(m(f))
1006
623
  }, null, 8, ["blogpost", "owner", "class"]))), 128))
1007
624
  ])
1008
625
  ]));
1009
626
  }
1010
- }, Sn = /* @__PURE__ */ pe(un, [["__scopeId", "data-v-18db0d1b"]]), Fn = [
627
+ }, Kt = /* @__PURE__ */ X(Bt, [["__scopeId", "data-v-18db0d1b"]]), Xt = [
1011
628
  {
1012
629
  path: "community",
1013
- component: Je,
630
+ component: Ie,
1014
631
  meta: {
1015
632
  title: {
1016
633
  en: "Community",
@@ -1020,7 +637,7 @@ const an = (o) => (xe("data-v-18db0d1b"), o = o(), we(), o), sn = { class: "comm
1020
637
  children: [{
1021
638
  path: ":category?",
1022
639
  name: "Blog",
1023
- component: () => Promise.resolve().then(() => Ut)
640
+ component: () => Promise.resolve().then(() => Ye)
1024
641
  }]
1025
642
  },
1026
643
  {
@@ -1033,7 +650,7 @@ const an = (o) => (xe("data-v-18db0d1b"), o = o(), we(), o), sn = { class: "comm
1033
650
  },
1034
651
  authorize: []
1035
652
  },
1036
- component: () => Promise.resolve().then(() => se)
653
+ component: () => Promise.resolve().then(() => J)
1037
654
  },
1038
655
  {
1039
656
  path: "community/posts/:url",
@@ -1044,7 +661,7 @@ const an = (o) => (xe("data-v-18db0d1b"), o = o(), we(), o), sn = { class: "comm
1044
661
  ru: "Пост"
1045
662
  }
1046
663
  },
1047
- component: () => Promise.resolve().then(() => St)
664
+ component: () => Promise.resolve().then(() => Ke)
1048
665
  },
1049
666
  {
1050
667
  path: "community/posts/:url/edit",
@@ -1056,29 +673,23 @@ const an = (o) => (xe("data-v-18db0d1b"), o = o(), we(), o), sn = { class: "comm
1056
673
  },
1057
674
  authorize: []
1058
675
  },
1059
- component: () => Promise.resolve().then(() => se)
676
+ component: () => Promise.resolve().then(() => J)
1060
677
  }
1061
678
  ];
1062
679
  export {
1063
- Pn as Activity,
1064
- Ft as Blog,
1065
- It as BlogPost,
1066
- Ze as Bullets,
1067
- Xe as Caption,
1068
- ue as CardBlogpost,
1069
- Ae as Comments,
1070
- Je as Community,
1071
- _t as CreateBlogPost,
1072
- Pe as Feed,
1073
- Dn as FooterBlogpost,
1074
- Ge as H2,
1075
- Sn as HotPosts,
1076
- Pt as Image,
1077
- nt as ImageUpload,
1078
- In as JoinUs,
1079
- Tn as SubscribeNewsletter,
1080
- ae as Textarea,
1081
- Fn as blogpostsRoutes,
1082
- zn as blogpostsStore,
1083
- Hn as reactionsStore
680
+ Gt as Activity,
681
+ Xe as Blog,
682
+ We as BlogPost,
683
+ K as CardBlogpost,
684
+ _e as Comments,
685
+ Ie as Community,
686
+ Ee as CreateBlogPost,
687
+ ce as Feed,
688
+ es as FooterBlogpost,
689
+ Kt as HotPosts,
690
+ Wt as JoinUs,
691
+ Qt as SubscribeNewsletter,
692
+ Xt as blogpostsRoutes,
693
+ ts as blogpostsStore,
694
+ ss as reactionsStore
1084
695
  };