@ozdao/prometheus-framework 0.0.85 → 0.0.87

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) 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-628f013e.mjs +138 -0
  3. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs +1944 -0
  4. package/dist/ButtonFollow-728aab73.mjs +130 -0
  5. package/dist/CardHeader-ce5a1a75.mjs +96 -0
  6. package/dist/CardOrganization-58b54995.js +1 -0
  7. package/dist/CardOrganization-91e79698.mjs +320 -0
  8. package/dist/CardOrganization-ee5c34ab.js +1 -0
  9. package/dist/CardOrganization-f70bd169.mjs +202 -0
  10. package/dist/Comments-63f154a6.js +9 -0
  11. package/dist/Comments-c092550f.mjs +76 -0
  12. package/dist/Comments-c5afa4d6.mjs +459 -0
  13. package/dist/EditProductImages-61ff4321.mjs +236 -0
  14. package/dist/Feed-8fd41524.js +1 -0
  15. package/dist/Feed-926cf4f3.mjs +355 -0
  16. package/dist/Feed-a31c43c2.mjs +423 -0
  17. package/dist/Feed-ecf37814.mjs +367 -0
  18. package/dist/IconEdit-736c89be.js +1 -0
  19. package/dist/IconEdit-e9fd4c6c.mjs +21 -0
  20. package/dist/PlaceholderUserpic-995da0fc.mjs +28 -0
  21. package/dist/Popup-0c791801.mjs +76 -0
  22. package/dist/Popup-105ef2c3.js +1 -0
  23. package/dist/Popup-82fb2c8a.mjs +76 -0
  24. package/dist/Product-2f3d592f.mjs +837 -0
  25. package/dist/Product-2fbf9d99.js +7 -0
  26. package/dist/Product-6c37ef35.js +7 -0
  27. package/dist/Product-7087b358.mjs +837 -0
  28. package/dist/ProductEdit-20709821.mjs +349 -0
  29. package/dist/ProductEdit-a81d13b9.js +1 -0
  30. package/dist/ProductEdit-c5067942.mjs +113 -0
  31. package/dist/ProfileBlogposts-79d5c858.mjs +63 -0
  32. package/dist/ProfileBlogposts-eca9916c.js +1 -0
  33. package/dist/ProfileBlogposts-fb014bc6.mjs +63 -0
  34. package/dist/ProfileComments-48f3d4bc.mjs +43 -0
  35. package/dist/ProfileComments-58094a50.mjs +43 -0
  36. package/dist/ProfileComments-b919f021.js +1 -0
  37. package/dist/ProfileEvents-05485e20.js +1 -0
  38. package/dist/ProfileEvents-20695376.mjs +55 -0
  39. package/dist/ProfileEvents-5d206e3d.mjs +55 -0
  40. package/dist/ProfileLikes-2f3a4488.js +1 -0
  41. package/dist/ProfileLikes-503712ec.mjs +43 -0
  42. package/dist/ProfileLikes-b5ac7f48.mjs +43 -0
  43. package/dist/ProfileOrganizations-0b76e38f.js +1 -0
  44. package/dist/ProfileOrganizations-32ab1e30.mjs +211 -0
  45. package/dist/ProfileOrganizations-3f305f4e.mjs +210 -0
  46. package/dist/ProfileOrganizations-50fce34e.js +1 -0
  47. package/dist/Publics-3f277c17.js +1 -0
  48. package/dist/Publics-49dbeafc.js +1 -0
  49. package/dist/Publics-9ebffff1.mjs +122 -0
  50. package/dist/Publics-b0fad2b0.mjs +1926 -0
  51. package/dist/Tab-58cd105f.mjs +46 -0
  52. package/dist/Tab-6f0a4909.js +1 -0
  53. package/dist/UploadImage-441e8526.js +1 -0
  54. package/dist/UploadImage-d1dbc280.mjs +99 -0
  55. package/dist/UploadImage-ff8f9a0c.mjs +83 -0
  56. package/dist/auth-35ef1791.mjs +1502 -0
  57. package/dist/auth.client.cjs +2 -2
  58. package/dist/auth.client.js +61 -41
  59. package/dist/auth.validation-29113f37.mjs +20 -0
  60. package/dist/categories-d669f3af.mjs +225 -0
  61. package/dist/community.client.cjs +1 -9
  62. package/dist/community.client.js +369 -741
  63. package/dist/community.server.js +16 -4
  64. package/dist/community.server.mjs +16 -4
  65. package/dist/events.client.cjs +1 -1
  66. package/dist/events.client.js +433 -331
  67. package/dist/events.server.js +19 -2
  68. package/dist/events.server.mjs +19 -2
  69. package/dist/inputs.validation-24ae76b9.js +1 -0
  70. package/dist/modules/constructor/components/elements/Bullets.vue.d.ts +15 -0
  71. package/dist/modules/constructor/components/elements/Caption.vue.d.ts +15 -0
  72. package/dist/modules/constructor/components/elements/H2.vue.d.ts +16 -0
  73. package/dist/modules/constructor/components/elements/Image.vue.d.ts +8 -0
  74. package/dist/modules/constructor/components/elements/ImageUpload.vue.d.ts +9 -0
  75. package/dist/modules/constructor/components/elements/Textarea.vue.d.ts +12 -0
  76. package/dist/modules/constructor/components/sections/Constructor.vue.d.ts +7 -0
  77. package/dist/modules/events/components/sections/Feed.vue.d.ts +1 -0
  78. package/dist/modules/icons/entities/IconCommunity.vue.d.ts +2 -0
  79. package/dist/organizations-1b4c84ee.mjs +121 -0
  80. package/dist/organizations-af43bda4.js +1 -0
  81. package/dist/organizations.client-253c8068.mjs +3179 -0
  82. package/dist/organizations.client-c60d7659.js +3 -0
  83. package/dist/organizations.client.cjs +1 -3
  84. package/dist/organizations.client.js +50 -3026
  85. package/dist/organizations.server.js +1 -1
  86. package/dist/organizations.server.mjs +1 -1
  87. package/dist/style.css +1 -1
  88. package/dist/users.client.cjs +1 -1
  89. package/dist/users.client.js +245 -208
  90. package/package.json +1 -1
  91. package/src/modules/auth/router/auth.js +28 -7
  92. package/src/modules/community/community.client.js +1 -12
  93. package/src/modules/community/components/pages/BlogPost.vue +1 -1
  94. package/src/modules/community/components/pages/CreateBlogPost.vue +8 -151
  95. package/src/modules/community/middlewares/server/verifyBlogpost.js +24 -11
  96. package/src/modules/{community → constructor}/components/elements/Textarea.vue +3 -11
  97. package/src/modules/constructor/components/sections/Constructor.vue +167 -0
  98. package/src/modules/events/components/blocks/CardEvent.vue +14 -6
  99. package/src/modules/events/components/pages/EditEvent.vue +228 -133
  100. package/src/modules/events/components/sections/Feed.vue +7 -1
  101. package/src/modules/events/controllers/events.controller.js +9 -0
  102. package/src/modules/events/controllers/tickets.controller.js +2 -1
  103. package/src/modules/events/models/event.model.js +10 -0
  104. package/src/modules/events/store/events.js +15 -19
  105. package/src/modules/icons/entities/IconCommunity.vue +8 -0
  106. package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -5
  107. package/src/modules/organizations/components/sections/Publics.vue +3 -3
  108. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  109. package/src/modules/organizations/organizations.client.js +0 -2
  110. package/src/modules/users/components/pages/Profile.vue +15 -4
  111. package/src/modules/users/components/pages/ProfileEvents.vue +3 -3
  112. package/src/modules/organizations/components/blocks/CardOrganizationSocial.vue +0 -46
  113. /package/src/modules/{community → constructor}/components/elements/Bullets.vue +0 -0
  114. /package/src/modules/{community → constructor}/components/elements/Caption.vue +0 -0
  115. /package/src/modules/{community → constructor}/components/elements/H2.vue +0 -0
  116. /package/src/modules/{community → constructor}/components/elements/Image.vue +0 -0
  117. /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-a477dfc6.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-ca8e0e22.mjs";
5
- import { e as Dn, f as zn, g as Hn } from "./Feed-ca8e0e22.mjs";
6
- import { s as P, a as Te, b as Ie, _ as pe, F as Se } from "./auth-8b5aac7a.mjs";
7
- import { _ as Fe } from "./Popup-70f6a8c0.mjs";
8
- import { _ as Ue, S as Me, a as De } from "./Publics-fbc8d2db.mjs";
9
- import { V as ze } from "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
10
- import { a as He } from "./CardOrganization-1384ff9a.mjs";
11
- import { _ as je } from "./EmptyState-34d85f10.mjs";
12
- import { _ as Ae } from "./Comments-641516f8.mjs";
13
- import { useI18n as Ne } from "vue-i18n";
1
+ import { resolveComponent as Y, openBlock as i, createElementBlock as c, createElementVNode as o, createVNode as h, normalizeClass as B, unref as d, createCommentVNode as f, 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 U, renderList as D, 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 j, 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 ss, f as as, g as os } from "./Feed-a31c43c2.mjs";
6
+ import { s as w, b as pe, _ as X, F as de } from "./auth-35ef1791.mjs";
7
+ import { b as me, _ as ge, a as _e } from "./Comments-c5afa4d6.mjs";
8
+ import { _ as he } from "./Popup-82fb2c8a.mjs";
9
+ import { _ as fe, S as ve, C as be } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs";
10
+ import { a as ye } from "./organizations-1b4c84ee.mjs";
11
+ import { _ as we } from "./EmptyState-34d85f10.mjs";
12
+ import { useI18n as xe } from "vue-i18n";
14
13
  import "./globals-96ba60e4.mjs";
15
- import "./CardHeader-2ef6618e.mjs";
16
- import "./PlaceholderUserpic-e44ccca8.mjs";
17
- import "./ButtonFollow-c9484003.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 = {
14
+ import "./CardOrganization-f70bd169.mjs";
15
+ import "./ButtonFollow-728aab73.mjs";
16
+ import "./CardHeader-ce5a1a75.mjs";
17
+ import "./PlaceholderUserpic-995da0fc.mjs";
18
+ import "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
19
+ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-center t-left flex-nowrap flex" }, Pe = { class: "flex-v-center flex-nowrap flex t-left" }, Ce = /* @__PURE__ */ o("span", { class: "" }, "Topics for ", -1), Te = { class: "bg-grey pd-medium radius-big mn-semi flex-nowrap flex" }, Se = { class: "" }, Be = {
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(u) {
22
+ const n = j(), s = A();
23
+ return (e, a) => {
24
+ const m = Y("router-view");
25
+ return i(), c("div", $e, [
26
+ o("header", ke, [
27
+ o("h2", Pe, [
28
+ Ce,
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", Te, [
39
+ o("li", {
40
+ class: B([{ "t-white bg-black": d(n).params.category === "featured" }, "mn-r-small t-medium pd-small radius-small"]),
41
+ onClick: a[1] || (a[1] = (t) => d(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": d(n).params.category === "popular" }, "mn-r-small t-medium pd-small radius-small"]),
45
+ onClick: a[2] || (a[2] = (t) => d(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": d(n).params.category === "new" }, "mn-r-small t-medium pd-small radius-small"]),
49
+ onClick: a[3] || (a[3] = (t) => d(s).push({ name: "Blog", params: { category: "new" } }))
49
50
  }, "🆕 New", 2),
50
- P.user._id ? (u(), m("li", {
51
+ w.user._id ? (i(), c("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": d(n).params.category === "following" }, "t-medium pd-small radius-small"]),
54
+ onClick: a[4] || (a[4] = (t) => d(s).push({ name: "Blog", params: { category: "following" } }))
55
+ }, "👥 Following", 2)) : f("", !0)
55
56
  ]),
56
- r("section", qe, [
57
- x(p, null, {
58
- default: T(({ Component: n, route: i }) => [
59
- x(X, {
57
+ o("section", Se, [
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
+ }, Ie = { class: "pd-thin" }, Me = {
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
+ }, Fe = { class: "w-full h-full" }, Ne = {
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
+ }, je = { 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" }, Oe = /* @__PURE__ */ o("h3", { class: "mn-small" }, "Final Touches", -1), Ue = /* @__PURE__ */ o("h5", { class: "mn-thin" }, "Add to public:", -1), De = {
348
86
  key: 0,
349
87
  class: "mn-thin"
350
- }, vt = {
88
+ }, Ae = {
351
89
  key: 1,
352
90
  class: "mn-medium br-grey br-2px br-solid pd-small radius-big"
353
- }, _t = {
91
+ }, Le = {
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(u) {
94
+ const n = j(), 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 p = await L({ user: w.user._id, url: n.params.url });
100
+ e.value = p.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 ye.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((p) => ({
120
+ name: p.profile.name,
121
+ _id: p._id,
122
+ photo: p.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((p) => p.text === r.text)));
133
+ const v = g(!1);
134
+ function P() {
135
+ v.value = !0;
136
+ }
137
+ function $() {
138
+ v.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 z() {
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 O() {
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, p) => (i(), c("article", Ie, [
173
+ d(e) ? (i(), c("section", Me, [
174
+ o("div", Fe, [
175
+ h(me, {
176
+ prop: d(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: d(e).content,
184
+ onUpdate: p[0] || (p[0] = (b) => d(e).content = b)
185
+ }, null, 8, ["content"])
186
+ ])) : f("", !0),
187
+ d(e) ? (i(), c("section", Ne, [
188
+ o("div", je, [
189
+ d(n).params.url ? (i(), c("a", {
556
190
  key: 0,
557
- onClick: f[2] || (f[2] = (v) => W()),
191
+ onClick: p[1] || (p[1] = (b) => O()),
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")) : f("", !0),
194
+ o("a", {
195
+ onClick: p[2] || (p[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: p[3] || (p[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
+ ])) : f("", !0),
204
+ h(he, {
571
205
  title: "Добавить участника",
572
- onClosePopup: b,
573
- isPopupOpen: c.value
206
+ onClosePopup: $,
207
+ isPopupOpen: v.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", ze, [
211
+ Oe,
212
+ h(fe, {
213
+ onTagsChanged: p[4] || (p[4] = (b) => d(e).tags = b),
214
+ tags: d(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(ve, {
218
+ modelValue: t.value,
219
+ "onUpdate:modelValue": p[5] || (p[5] = (b) => t.value = b),
220
+ options: d(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(), c("h5", De, "Options:")) : f("", !0),
229
+ t.value ? (i(), c("div", Ae, [
230
+ h(be, {
597
231
  label: "Hide Author",
598
- radio: _(e).creator.hidden,
599
- "onUpdate:radio": f[7] || (f[7] = (v) => _(e).creator.hidden = v),
232
+ radio: d(e).creator.hidden,
233
+ "onUpdate:radio": p[6] || (p[6] = (b) => d(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
+ ])) : f("", !0),
238
+ h(pe, {
239
+ submit: z,
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,199 @@ 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: Le
257
+ }, Symbol.toStringTag, { value: "Module" })), Ee = {}, Ve = {
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
+ }, He = /* @__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), qe = [
262
+ He
629
263
  ];
630
- function kt(o, a) {
631
- return u(), m("svg", yt, wt);
264
+ function Re(u, n) {
265
+ return i(), c("svg", Ve, qe);
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 = {
267
+ const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "w-100 bg-white radius-big image-upload-area flex-v-center flex-h-center flex t-black mn-small" }, Qe = ["src"], We = {
634
268
  __name: "Image",
635
269
  props: [
636
270
  "label",
637
271
  "value",
638
272
  "prop"
639
273
  ],
640
- setup(o) {
641
- return g(null), (a, t) => (u(), m("div", Bt, [
642
- o.prop.content ? (u(), m("img", {
274
+ setup(u) {
275
+ return g(null), (n, s) => (i(), c("div", Ge, [
276
+ u.prop.content ? (i(), c("img", {
643
277
  key: 0,
644
- src: o.prop.content,
278
+ src: u.prop.content,
645
279
  alt: "Uploaded image",
646
280
  class: "w-100 h-30r object-fit-contain"
647
- }, null, 8, Ct)) : y("", !0)
281
+ }, null, 8, Qe)) : f("", !0)
648
282
  ]));
649
283
  }
650
- }, Tt = { class: "pd-thin" }, It = {
284
+ }, Ke = { class: "pd-thin" }, Xe = {
651
285
  __name: "BlogPost",
652
- setup(o) {
653
- const a = K(), t = g(null), e = g(!0);
654
- S(async () => {
286
+ setup(u) {
287
+ const n = j(), s = g(null), e = g(!0);
288
+ F(async () => {
655
289
  e.value = !0;
656
- const n = await ee({ user: P.user._id, url: a.params.url });
657
- t.value = n[0], e.value = !1;
290
+ const t = await L({ user: w.user._id, url: n.params.url });
291
+ s.value = t[0], e.value = !1;
658
292
  });
659
- const s = {
293
+ const a = {
660
294
  Textarea: "p",
661
295
  H2: "h2",
662
296
  Bullets: "p",
663
297
  Caption: "p",
664
- ImageUpload: Pt
298
+ ImageUpload: We
665
299
  };
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 } : {};
300
+ function m(t) {
301
+ 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
302
  }
669
- return (n, i) => (u(), m("section", Tt, [
670
- x(ne, {
303
+ return (t, _) => (i(), c("section", Ke, [
304
+ h(H, {
671
305
  tag: "ul",
672
306
  name: "fade",
673
307
  class: "o-hidden bg-grey radius-big"
674
308
  }, {
675
- default: T(() => [
676
- e.value ? (u(), m(V, { key: 0 }, O(3, (l) => x($t, { key: l })), 64)) : y("", !0)
309
+ default: k(() => [
310
+ e.value ? (i(), c(U, { key: 0 }, D(3, (l) => h(Je, { key: l })), 64)) : f("", !0)
677
311
  ]),
678
312
  _: 1
679
313
  }),
680
- x(X, { name: "fade" }, {
681
- default: T(() => [
682
- !e.value && !t.value ? (u(), U(je, {
314
+ h(G, { name: "fade" }, {
315
+ default: k(() => [
316
+ !e.value && !s.value ? (i(), I(we, {
683
317
  key: 0,
684
318
  title: "No Blogpost Found",
685
319
  description: "Currently, there are no blogposts available. Please check back later.",
686
320
  class: "pd-medium mn-thin bg-grey radius-big"
687
- })) : y("", !0)
321
+ })) : f("", !0)
688
322
  ]),
689
323
  _: 1
690
324
  }),
691
- x(ne, {
325
+ h(H, {
692
326
  tag: "ul",
693
327
  name: "fade",
694
328
  class: "container"
695
329
  }, {
696
- default: T(() => [
697
- !e.value && t.value ? (u(), U(ue, {
330
+ default: k(() => [
331
+ !e.value && s.value ? (i(), I(K, {
698
332
  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,
333
+ onClick: _[0] || (_[0] = (l) => t.$router.push({ name: "Blogpost", params: { url: s.value.url } })),
334
+ blogpost: s.value,
335
+ user: w.user._id,
702
336
  type: "blogpostPage",
703
- class: D(["mn-medium", {
704
- "br-b br-solid br-black-transp-10": n.index !== t.value.length - 1
337
+ class: B(["mn-medium", {
338
+ "br-b br-solid br-black-transp-10": t.index !== s.value.length - 1
705
339
  }])
706
340
  }, {
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,
341
+ default: k(() => [
342
+ o("section", null, [
343
+ s.value && s.value.content ? (i(!0), c(U, { key: 0 }, D(s.value.content, (l, v) => (i(), I(Q(a[l.type]), ee({
344
+ key: v,
345
+ index: v,
712
346
  component: l,
713
347
  prop: l,
714
348
  class: l.class,
715
349
  content: "content"
716
- }, p(l), { class: "mn-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : y("", !0)
350
+ }, m(l), { class: "mn-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : f("", !0)
717
351
  ])
718
352
  ]),
719
353
  _: 1
720
- }, 8, ["blogpost", "user", "class"])) : y("", !0),
721
- x(De, { class: "mn-small" }),
722
- !e.value && t.value ? (u(), U(Ae, {
354
+ }, 8, ["blogpost", "user", "class"])) : f("", !0),
355
+ h(re, { class: "mn-small" }),
356
+ !e.value && s.value ? (i(), I(_e, {
723
357
  key: 1,
724
358
  type: "blogpost",
725
- target: t.value._id,
726
- owner: P.user._id
727
- }, null, 8, ["target", "owner"])) : y("", !0)
359
+ target: s.value._id,
360
+ owner: w.user._id
361
+ }, null, 8, ["target", "owner"])) : f("", !0)
728
362
  ]),
729
363
  _: 1
730
364
  })
731
365
  ]));
732
366
  }
733
- }, St = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
367
+ }, Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
734
368
  __proto__: null,
735
- default: It
736
- }, Symbol.toStringTag, { value: "Module" })), Ft = {
369
+ default: Xe
370
+ }, Symbol.toStringTag, { value: "Module" })), Ze = {
737
371
  __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 = {
372
+ setup(u) {
373
+ const n = j(), s = A();
374
+ return n.params.category || (n.params.category = "featured"), F(() => {
375
+ if (n.query) {
376
+ const e = n.query, a = {
743
377
  tags: e.tags ? e.tags.split(",") : [],
744
378
  period: e.period ? e.period : "year"
745
379
  };
746
- N.filter = s;
380
+ M.filter = a;
747
381
  }
748
- }), E(() => N.filter, (e, s) => {
749
- const p = { ...a.query };
750
- Object.keys(s).forEach((i) => {
751
- p[i] && delete p[i];
382
+ }), te(() => M.filter, (e, a) => {
383
+ const m = { ...n.query };
384
+ Object.keys(a).forEach((_) => {
385
+ m[_] && delete m[_];
752
386
  });
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])
387
+ const t = Object.fromEntries(
388
+ Object.entries(e).filter(([_, l]) => Array.isArray(l) && l.length > 0 || typeof l == "string" && l).map(([_, l]) => [_, Array.isArray(l) ? l.join(",") : l])
755
389
  );
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
390
+ Object.assign(m, t), s.push({ query: m });
391
+ }, { deep: !0 }), (e, a) => (i(), c("section", null, [
392
+ h(ce, {
393
+ category: d(n).params.category,
394
+ user: w.user._id,
395
+ period: d(n).query.period
762
396
  }, null, 8, ["category", "user", "period"])
763
397
  ]));
764
398
  }
765
- }, Ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
399
+ }, et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
766
400
  __proto__: null,
767
- default: Ft
768
- }, Symbol.toStringTag, { value: "Module" })), Mt = { class: "w-100 cols-4 t-left flex-nowrap flex" }, Dt = {
401
+ default: Ze
402
+ }, Symbol.toStringTag, { value: "Module" })), tt = { class: "w-100 cols-4 t-left flex-nowrap flex" }, st = {
769
403
  key: 0,
770
404
  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 = {
405
+ }, at = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "👍", -1), ot = { class: "t-semi uppercase" }, nt = /* @__PURE__ */ o("br", null, null, -1), lt = {
772
406
  key: 1,
773
407
  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 = {
408
+ }, rt = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "💬", -1), it = { class: "t-semi uppercase" }, ut = /* @__PURE__ */ o("br", null, null, -1), ct = {
775
409
  key: 2,
776
410
  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 = {
411
+ }, pt = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "👍", -1), dt = { class: "t-semi uppercase" }, mt = /* @__PURE__ */ o("br", null, null, -1), Wt = {
778
412
  __name: "Activity",
779
413
  props: {
780
414
  likes: Number,
781
415
  comments: Number,
782
416
  subscriptions: Number
783
417
  },
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")
418
+ setup(u) {
419
+ return (n, s) => (i(), c("section", tt, [
420
+ u.likes ? (i(), c("div", st, [
421
+ at,
422
+ o("span", ot, [
423
+ T(N(u.likes), 1),
424
+ nt,
425
+ T("likes")
792
426
  ])
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")
427
+ ])) : f("", !0),
428
+ u.comments ? (i(), c("div", lt, [
429
+ rt,
430
+ o("span", it, [
431
+ T(N(u.comments), 1),
432
+ ut,
433
+ T("comments")
800
434
  ])
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")
435
+ ])) : f("", !0),
436
+ u.subscriptions ? (i(), c("div", ct, [
437
+ pt,
438
+ o("span", dt, [
439
+ T(N(u.subscriptions), 1),
440
+ mt,
441
+ T("subscriptions")
808
442
  ])
809
- ])) : y("", !0)
443
+ ])) : f("", !0)
810
444
  ]));
811
445
  }
812
- }, Jt = { class: "pd-thin radius-extra flex-nowrap flex" }, Kt = ["innerHTML"], Wt = {
446
+ }, gt = { class: "pd-thin radius-extra flex-nowrap flex" }, _t = ["innerHTML"], ht = {
813
447
  __name: "FieldBig",
814
448
  props: {
815
449
  input: String,
@@ -841,94 +475,94 @@ const $t = /* @__PURE__ */ pe(bt, [["render", kt]]), Bt = { class: "w-100 bg-whi
841
475
  }
842
476
  },
843
477
  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 = $;
852
- }
853
- function L() {
854
- p.value = (p.value + 1) % t.placeholderTexts[s.value].length;
855
- }
478
+ setup(u, { emit: n }) {
479
+ const s = u, { t: e, locale: a } = xe();
480
+ let m = g(0), t = g(s.input), _ = g(s.placeholder), l = g(s.enableTyping), v = g(null), P = g(""), $ = g(!0), S = null;
856
481
  function z() {
857
- l.value = !1, clearInterval(c.value), i.value = t.placeholder, h.value || (n.value = "");
482
+ n("action");
483
+ }
484
+ function O(x) {
485
+ n("update:input", x), P.value = x;
858
486
  }
859
- function G() {
860
- !h.value && t.enableTyping && (l.value = !0, i.value = "", A());
487
+ function r() {
488
+ m.value = (m.value + 1) % s.placeholderTexts[a.value].length;
861
489
  }
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);
490
+ function p() {
491
+ l.value = !1, clearInterval(v.value), _.value = s.placeholder, P.value || (t.value = "");
871
492
  }
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),
493
+ function b() {
494
+ !P.value && s.enableTyping && (l.value = !0, _.value = "", E());
495
+ }
496
+ function E() {
497
+ let x = s.placeholderTexts[a.value][m.value], y = 0, C = !1;
498
+ S = setInterval(() => {
499
+ $.value = !$.value;
500
+ }, 200), v.value = setInterval(() => {
501
+ 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(() => {
502
+ C = !0, t.value = x.substring(0, y);
503
+ }, 333), y === 0 && C && (C = !1, r(), x = s.placeholderTexts[a.value][m.value]));
504
+ }, s.typingSpeed);
505
+ }
506
+ return F(() => {
507
+ s.enableTyping && E();
508
+ }), se(() => {
509
+ l.value || (clearInterval(v.value), clearInterval(S));
510
+ }), (x, y) => (i(), c("div", gt, [
511
+ h(de, {
512
+ field: d(t),
879
513
  "onUpdate:field": [
880
- w[0] || (w[0] = (B) => ce(n) ? n.value = B : n = B),
881
- W
514
+ y[0] || (y[0] = (C) => W(t) ? t.value = C : t = C),
515
+ O
882
516
  ],
883
- placeholder: _(i),
884
- onInput: L,
885
- onFocus: z,
886
- onBlur: G,
517
+ placeholder: d(_),
518
+ onInput: r,
519
+ onFocus: p,
520
+ onBlur: b,
887
521
  class: "w-100 pd-small p-big"
888
522
  }, null, 8, ["field", "placeholder"]),
889
- o.action ? (u(), m("button", {
523
+ u.action ? (i(), c("button", {
890
524
  key: 0,
891
- onClick: j,
525
+ onClick: z,
892
526
  class: "w-min hover_bg-white hover-t-black t-black bg-main button",
893
- innerHTML: o.action
894
- }, null, 8, Kt)) : y("", !0)
527
+ innerHTML: u.action
528
+ }, null, 8, _t)) : f("", !0)
895
529
  ]));
896
530
  }
897
531
  };
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 = {
532
+ const ft = { class: "pd-thin" }, vt = { class: "o-hidden t-black bg-main pd-big radius-big" }, bt = /* @__PURE__ */ o("header", { class: "t-center z-index-1 mn-big" }, [
533
+ /* @__PURE__ */ o("h2", { class: "mn-l-auto mn-r-auto w-m-40r mn-medium" }, "Stay Updated with The Latest in Cannabis."),
534
+ /* @__PURE__ */ o("p", { class: "t-transp p-big" }, "Subscribe to our newsletter for news, insights, and more from the Weeder universe.")
535
+ ], -1), yt = { class: "z-index-1 mn-big w-100 flex-nowrap flex" }, wt = /* @__PURE__ */ o("div", { class: "w-100 h-100 pos-absolute pos-t-50-negative pos-r-0 z-index-0 grid" }, [
536
+ /* @__PURE__ */ o("div", { class: "spiral" })
537
+ ], -1), Kt = {
904
538
  __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),
539
+ setup(u) {
540
+ let n = g("");
541
+ return (s, e) => (i(), c("section", ft, [
542
+ o("div", vt, [
543
+ bt,
544
+ o("div", yt, [
545
+ h(ht, {
546
+ input: d(n),
913
547
  typingSpeed: 75,
914
548
  loopTyping: !1,
915
549
  enableTyping: !1,
916
550
  placeholder: "Please enter your email",
917
551
  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 } })),
552
+ "onUpdate:input": e[0] || (e[0] = (a) => W(n) ? n.value = a : n = a),
553
+ onAction: e[1] || (e[1] = (a) => s.router.push({ name: "Product Recommmendation", query: { mood: s.mood } })),
920
554
  class: "mn-l-auto mn-r-auto bg-white t-black w-50"
921
555
  }, null, 8, ["input"])
922
556
  ]),
923
- Zt
557
+ wt
924
558
  ])
925
559
  ]));
926
560
  }
927
561
  };
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 = {
562
+ const xt = { class: "container container-joinus" }, $t = { class: "content" }, kt = { class: "h0 mn-big" }, Pt = /* @__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), Ct = /* @__PURE__ */ o("button", { class: "bg-black t-white button" }, "Join Now", -1), Xt = {
929
563
  __name: "JoinUs",
930
- setup(o) {
931
- const a = g(120950), t = g([
564
+ setup(u) {
565
+ const n = g(120950), s = g([
932
566
  "/assets/images/reviews/01.png",
933
567
  "/assets/images/reviews/02.png",
934
568
  "/assets/images/reviews/03.png",
@@ -937,49 +571,49 @@ const en = { class: "container container-joinus" }, tn = { class: "content" }, n
937
571
  "/assets/images/reviews/06.png"
938
572
  ]), e = () => {
939
573
  setInterval(() => {
940
- a.value += Math.floor(Math.random() * 5) + 1;
574
+ n.value += Math.floor(Math.random() * 5) + 1;
941
575
  }, 330);
942
- }, s = {
576
+ }, a = {
943
577
  minSize: "6rem",
944
578
  maxSize: "10rem",
945
579
  minDuration: 5,
946
580
  maxDuration: 15,
947
581
  spawnPoints: [10, 90]
948
582
  };
949
- S(() => {
950
- p(), e();
583
+ F(() => {
584
+ m(), e();
951
585
  });
952
- const p = () => {
953
- t.value.forEach((n, i) => {
586
+ const m = () => {
587
+ s.value.forEach((t, _) => {
954
588
  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}%`;
589
+ l.src = t, l.classList.add("floating-image");
590
+ let v = a.spawnPoints[Math.floor(Math.random() * a.spawnPoints.length)], P = (Math.random() - 0.5) * 2 * 10;
591
+ l.style.left = `${v + P}%`, l.style.animationDuration = `${Math.random() * (a.maxDuration - a.minDuration) + a.minDuration}s`, document.querySelector(".container").appendChild(l), l.addEventListener("animationiteration", () => {
592
+ const $ = a.spawnPoints[Math.floor(Math.random() * a.spawnPoints.length)], S = (Math.random() - 0.5) * 2 * 10;
593
+ l.style.left = `${$ + S}%`;
960
594
  });
961
595
  });
962
596
  };
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
597
+ return (t, _) => (i(), c("div", xt, [
598
+ o("div", $t, [
599
+ o("span", kt, N(n.value.toLocaleString()), 1),
600
+ Pt,
601
+ Ct
968
602
  ])
969
603
  ]));
970
604
  }
971
605
  };
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 = {
606
+ const Tt = (u) => (oe("data-v-18db0d1b"), u = u(), ne(), u), St = { class: "community-feed" }, Bt = /* @__PURE__ */ Tt(() => /* @__PURE__ */ o("h2", { class: "w-m-75r mn-auto pd-t-big pd-b-big t-center" }, "Discover the Vibrant Community", -1)), It = { class: "grid-container" }, Mt = {
973
607
  __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;
608
+ async setup(u) {
609
+ let n, s;
610
+ const e = g([]), a = async () => {
611
+ const t = await L({ skip: 0, limit: 7, period: "year" });
612
+ console.log(t), e.value = t;
979
613
  };
980
- [a, t] = ye(() => s()), await a, t();
981
- const p = (n) => {
982
- switch (n) {
614
+ [n, s] = ae(() => a()), await n, s();
615
+ const m = (t) => {
616
+ switch (t) {
983
617
  case 0:
984
618
  return "grid-item-2x2";
985
619
  case 1:
@@ -995,22 +629,22 @@ const an = (o) => (xe("data-v-18db0d1b"), o = o(), we(), o), sn = { class: "comm
995
629
  return "";
996
630
  }
997
631
  };
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, {
632
+ return (t, _) => (i(), c("section", St, [
633
+ Bt,
634
+ o("div", It, [
635
+ (i(!0), c(U, null, D(e.value, (l, v) => (i(), I(K, {
1002
636
  blogpost: l,
1003
- owner: P.user._id,
1004
- key: c,
1005
- class: D(p(c))
637
+ owner: w.user._id,
638
+ key: v,
639
+ class: B(m(v))
1006
640
  }, null, 8, ["blogpost", "owner", "class"]))), 128))
1007
641
  ])
1008
642
  ]));
1009
643
  }
1010
- }, Sn = /* @__PURE__ */ pe(un, [["__scopeId", "data-v-18db0d1b"]]), Fn = [
644
+ }, Yt = /* @__PURE__ */ X(Mt, [["__scopeId", "data-v-18db0d1b"]]), Zt = [
1011
645
  {
1012
646
  path: "community",
1013
- component: Je,
647
+ component: Be,
1014
648
  meta: {
1015
649
  title: {
1016
650
  en: "Community",
@@ -1020,7 +654,7 @@ const an = (o) => (xe("data-v-18db0d1b"), o = o(), we(), o), sn = { class: "comm
1020
654
  children: [{
1021
655
  path: ":category?",
1022
656
  name: "Blog",
1023
- component: () => Promise.resolve().then(() => Ut)
657
+ component: () => Promise.resolve().then(() => et)
1024
658
  }]
1025
659
  },
1026
660
  {
@@ -1033,7 +667,7 @@ const an = (o) => (xe("data-v-18db0d1b"), o = o(), we(), o), sn = { class: "comm
1033
667
  },
1034
668
  authorize: []
1035
669
  },
1036
- component: () => Promise.resolve().then(() => se)
670
+ component: () => Promise.resolve().then(() => J)
1037
671
  },
1038
672
  {
1039
673
  path: "community/posts/:url",
@@ -1044,7 +678,7 @@ const an = (o) => (xe("data-v-18db0d1b"), o = o(), we(), o), sn = { class: "comm
1044
678
  ru: "Пост"
1045
679
  }
1046
680
  },
1047
- component: () => Promise.resolve().then(() => St)
681
+ component: () => Promise.resolve().then(() => Ye)
1048
682
  },
1049
683
  {
1050
684
  path: "community/posts/:url/edit",
@@ -1056,29 +690,23 @@ const an = (o) => (xe("data-v-18db0d1b"), o = o(), we(), o), sn = { class: "comm
1056
690
  },
1057
691
  authorize: []
1058
692
  },
1059
- component: () => Promise.resolve().then(() => se)
693
+ component: () => Promise.resolve().then(() => J)
1060
694
  }
1061
695
  ];
1062
696
  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
697
+ Wt as Activity,
698
+ Ze as Blog,
699
+ Xe as BlogPost,
700
+ K as CardBlogpost,
701
+ _e as Comments,
702
+ Be as Community,
703
+ Le as CreateBlogPost,
704
+ ce as Feed,
705
+ ss as FooterBlogpost,
706
+ Yt as HotPosts,
707
+ Xt as JoinUs,
708
+ Kt as SubscribeNewsletter,
709
+ Zt as blogpostsRoutes,
710
+ as as blogpostsStore,
711
+ os as reactionsStore
1084
712
  };