@ozdao/prometheus-framework 0.1.15 → 0.1.17

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-579e2c7a.mjs +1945 -0
  2. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-cab2bcd2.js +1 -0
  3. package/dist/ButtonFollow-23c4d9fc.mjs +132 -0
  4. package/dist/ButtonFollow-bf5e6d42.js +1 -0
  5. package/dist/CardOrganization-63dcc83b.js +1 -0
  6. package/dist/CardOrganization-e530c9d5.mjs +230 -0
  7. package/dist/Chips-3dac276c.js +1 -0
  8. package/dist/Feed-4d9001aa.mjs +368 -0
  9. package/dist/Feed-51eef23f.js +1 -0
  10. package/dist/Feed-d78d4b91.mjs +439 -0
  11. package/dist/Feed-f4e9769e.js +1 -0
  12. package/dist/Gallery-1f82841a.mjs +357 -0
  13. package/dist/Gallery-dd29c7f6.js +1 -0
  14. package/dist/Image-a2c2ab9c.js +9 -0
  15. package/dist/Image-ad6d4f0f.mjs +477 -0
  16. package/dist/Popup-383abb2e.js +1 -0
  17. package/dist/Popup-f7a5e86b.mjs +76 -0
  18. package/dist/Product-b32fb0e1.js +7 -0
  19. package/dist/Product-d01e3a0d.mjs +839 -0
  20. package/dist/ProductEdit-2b4d1d88.js +1 -0
  21. package/dist/ProductEdit-5e479343.mjs +300 -0
  22. package/dist/ProfileBlogposts-070cb7e9.mjs +65 -0
  23. package/dist/ProfileBlogposts-b6bf0c42.js +1 -0
  24. package/dist/ProfileComments-8a0c489c.mjs +44 -0
  25. package/dist/ProfileComments-f0000ea6.js +1 -0
  26. package/dist/ProfileEvents-8b88287a.js +1 -0
  27. package/dist/ProfileEvents-d978617d.mjs +57 -0
  28. package/dist/ProfileLikes-d5f9f058.js +1 -0
  29. package/dist/ProfileLikes-f5ad4497.mjs +44 -0
  30. package/dist/ProfileOrganizations-422d1fa5.js +1 -0
  31. package/dist/ProfileOrganizations-6b1bc5b2.mjs +213 -0
  32. package/dist/Publics-640d32fc.mjs +123 -0
  33. package/dist/Publics-8595ab7e.js +1 -0
  34. package/dist/Socials-43293869.js +1 -0
  35. package/dist/Tab-dcd62005.js +1 -0
  36. package/dist/UploadImage-dfb36cdb.js +1 -0
  37. package/dist/UploadImage-e4418b43.mjs +83 -0
  38. package/dist/UploadImageMultiple-c9a7b54f.js +1 -0
  39. package/dist/UploadImageMultiple-d2d48f39.mjs +58 -0
  40. package/dist/auth-45a454f2.js +7 -0
  41. package/dist/auth-5cd34aae.mjs +905 -0
  42. package/dist/auth.client.cjs +8 -8
  43. package/dist/auth.client.js +42 -42
  44. package/dist/auth.validation-4b016fa5.js +1 -0
  45. package/dist/auth.validation-a52304cf.mjs +20 -0
  46. package/dist/backoffice.client.cjs +1 -0
  47. package/dist/backoffice.client.js +69 -0
  48. package/dist/carousel.es-cdfb392c.js +5 -0
  49. package/dist/community.client.cjs +1 -1
  50. package/dist/community.client.js +23 -22
  51. package/dist/components/EditImages/EditImages.vue.d.ts +7 -0
  52. package/dist/components/FieldPhone/FieldPhone(script-setup).vue.d.ts +3 -3
  53. package/dist/components/FieldPhone/FieldPhone.vue.d.ts +1 -1
  54. package/dist/events.client.cjs +2 -2
  55. package/dist/events.client.js +17 -16
  56. package/dist/files.server.js +149 -112
  57. package/dist/files.server.mjs +149 -112
  58. package/dist/gallery.server.js +127 -0
  59. package/dist/gallery.server.mjs +128 -0
  60. package/dist/index-2059e444.js +2 -0
  61. package/dist/index-4e469a71.mjs +941 -0
  62. package/dist/landing.client.cjs +1 -1
  63. package/dist/modules/gallery/components/sections/Gallery.vue.d.ts +2 -0
  64. package/dist/modules/icons/navigation/IconChevronRight.vue.d.ts +13 -1
  65. package/dist/modules/mobile/components/Menu/MenuItem.vue.d.ts +14 -2
  66. package/dist/organizations-81e762e7.mjs +122 -0
  67. package/dist/organizations-cf1ab766.js +1 -0
  68. package/dist/organizations.client-b692a78a.mjs +3018 -0
  69. package/dist/organizations.client-bdc9b044.js +3 -0
  70. package/dist/organizations.client.cjs +1 -1
  71. package/dist/organizations.client.js +44 -43
  72. package/dist/style.css +1 -1
  73. package/dist/users.client.cjs +1 -1
  74. package/dist/users.client.js +224 -184
  75. package/dist/vue-draggable-next.esm-bundler-21a209c6.js +10 -0
  76. package/dist/vuex.esm-bundler-685cf29f.js +5 -0
  77. package/package.json +10 -1
  78. package/src/components/EditImages/EditImages.vue +55 -0
  79. package/src/configurator/components/layouts/layoutConfigurator.vue +0 -40
  80. package/src/modules/auth/components/pages/EnterCode.vue +0 -1
  81. package/src/modules/backoffice/backoffice.client.js +15 -0
  82. package/src/modules/backoffice/components/layouts/Account.vue +48 -58
  83. package/src/modules/backoffice/router/backoffice.js +20 -0
  84. package/src/modules/files/controllers/files.controller.js +27 -131
  85. package/src/modules/files/middlewares/server/index.js +10 -0
  86. package/src/modules/files/middlewares/server/md.js +151 -0
  87. package/src/modules/files/middlewares/server/middlewareMulter.js +121 -0
  88. package/src/modules/files/routes/files.routes.js +20 -6
  89. package/src/modules/gallery/components/sections/Gallery.vue +414 -0
  90. package/src/modules/gallery/controllers/gallery.controller.js +87 -73
  91. package/src/modules/gallery/gallery.client.js +17 -0
  92. package/src/modules/gallery/gallery.server.js +13 -0
  93. package/src/modules/gallery/models/photo.model.js +20 -14
  94. package/src/modules/gallery/routes/gallery.routes.js +18 -9
  95. package/src/modules/gallery/store/gallery.js +25 -19
  96. package/src/modules/icons/navigation/IconChevronRight.vue +14 -2
  97. package/src/modules/mobile/components/Menu/Menu.vue +1 -1
  98. package/src/modules/mobile/components/Menu/MenuItem.vue +8 -2
  99. package/src/modules/users/components/pages/Profile.vue +22 -1
  100. package/src/modules/backoffice/components/pages/Profile.vue +0 -109
  101. package/src/modules/backoffice/components/pages/profile/ProfileEdit.vue +0 -132
@@ -1,15 +1,16 @@
1
- import { ref as C, onMounted as ut, openBlock as g, createBlock as ce, unref as f, withCtx as w, createElementBlock as b, Fragment as fe, renderList as ct, createElementVNode as p, normalizeStyle as q, toDisplayString as h, resolveComponent as be, createVNode as y, Transition as R, resolveDynamicComponent as Ft, reactive as ft, watch as pt, createTextVNode as A, withDirectives as I, vModelText as J, withAsyncContext as Dt, defineComponent as Rt, resolveDirective as Mt, normalizeClass as K, withKeys as ie, createCommentVNode as L, vShow as X, vModelDynamic as zt, renderSlot as Lt, inject as Te } from "vue";
1
+ import { ref as C, onMounted as ut, openBlock as g, createBlock as ce, unref as f, withCtx as w, createElementBlock as b, Fragment as fe, renderList as ct, createElementVNode as p, normalizeStyle as q, toDisplayString as h, resolveComponent as be, createVNode as y, Transition as R, resolveDynamicComponent as Ft, reactive as ft, watch as pt, withDirectives as I, vModelText as J, withAsyncContext as Dt, defineComponent as Rt, resolveDirective as Mt, normalizeClass as K, withKeys as ie, createCommentVNode as L, vShow as X, vModelDynamic as zt, renderSlot as Lt, createTextVNode as D, inject as Te } from "vue";
2
2
  import { v as M, b as mt, c as _e, d as Ce } from "./inputs.validation-14e8e01f.mjs";
3
- import { c as oe, d as ht, s as m, a as xt, F as z, _ as G, b as V } from "./auth-962e3b73.mjs";
4
- import { e as Fi, t as Di } from "./auth-962e3b73.mjs";
5
- import { C as kt, S as jt } from "./carousel.es-44c501bc.mjs";
3
+ import { b as oe, c as ht, s as m, F as z, _ as G, a as V } from "./auth-5cd34aae.mjs";
4
+ import { d as Di, t as Ri } from "./auth-5cd34aae.mjs";
5
+ import { C as xt, S as kt } from "./carousel.es-44c501bc.mjs";
6
6
  import { useI18n as H } from "vue-i18n";
7
7
  import { useRoute as k, useRouter as j } from "vue-router";
8
8
  import { s as x } from "./globals-96ba60e4.mjs";
9
+ import { a as jt } from "./index-4e469a71.mjs";
9
10
  import { _ as we } from "./Tab-a243605d.mjs";
10
11
  import { _ as Bt } from "./_plugin-vue_export-helper-dad06003.mjs";
11
- import { r as W, a as ae, c as Ae } from "./auth.validation-1b60cef5.mjs";
12
- const Ut = { class: "parent-div" }, Gt = { class: "mn-small" }, Vt = { class: "mn-big mn-r-small mn-l-small" }, Ii = {
12
+ import { r as W, a as ae, c as Ae } from "./auth.validation-a52304cf.mjs";
13
+ const Ut = { class: "parent-div" }, Gt = { class: "mn-small" }, Vt = { class: "mn-big mn-r-small mn-l-small" }, Ni = {
13
14
  __name: "SliderFeatures",
14
15
  setup(e) {
15
16
  const n = C(null), t = {
@@ -60,7 +61,7 @@ const Ut = { class: "parent-div" }, Gt = { class: "mn-small" }, Vt = { class: "m
60
61
  setTimeout(() => {
61
62
  n.value.restartCarousel(), i.value = !0;
62
63
  }, "500");
63
- }), (o, a) => (g(), ce(f(kt), {
64
+ }), (o, a) => (g(), ce(f(xt), {
64
65
  ref_key: "ImagesSlider",
65
66
  ref: n,
66
67
  "items-to-show": 1,
@@ -71,7 +72,7 @@ const Ut = { class: "parent-div" }, Gt = { class: "mn-small" }, Vt = { class: "m
71
72
  class: "bg-grey w-100"
72
73
  }, {
73
74
  default: w(() => [
74
- (g(!0), b(fe, null, ct(f(d)("features"), (l, s) => (g(), ce(f(jt), {
75
+ (g(!0), b(fe, null, ct(f(d)("features"), (l, s) => (g(), ce(f(kt), {
75
76
  key: s,
76
77
  class: "w-100 flex-v-center flex"
77
78
  }, {
@@ -679,8 +680,8 @@ var yn = ";ext=", B = function(n) {
679
680
  return "([".concat(N, "]{1,").concat(n, "})");
680
681
  };
681
682
  function bt(e) {
682
- var n = "20", t = "15", d = "9", r = "6", i = "[  \\t,]*", o = "[:\\..]?[  \\t,-]*", a = "#?", l = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", s = "(?:[xx##~~]|int|int)", u = "[- ]+", $ = "[  \\t]*", c = "(?:,{2}|;)", v = yn + B(n), _ = i + l + o + B(n) + a, D = i + s + o + B(d) + a, P = u + B(r) + "#", Tt = $ + c + o + B(t) + a, At = $ + "(?:,)+" + o + B(d) + a;
683
- return v + "|" + _ + "|" + D + "|" + P + "|" + Tt + "|" + At;
683
+ var n = "20", t = "15", d = "9", r = "6", i = "[  \\t,]*", o = "[:\\..]?[  \\t,-]*", a = "#?", l = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", s = "(?:[xx##~~]|int|int)", u = "[- ]+", $ = "[  \\t]*", c = "(?:,{2}|;)", v = yn + B(n), _ = i + l + o + B(n) + a, F = i + s + o + B(d) + a, P = u + B(r) + "#", Tt = $ + c + o + B(t) + a, At = $ + "(?:,)+" + o + B(d) + a;
684
+ return v + "|" + _ + "|" + F + "|" + P + "|" + Tt + "|" + At;
684
685
  }
685
686
  var gn = "[" + N + "]{" + Pe + "}", vn = "[" + Oe + "]{0,1}(?:[" + ee + "]*[" + N + "]){3,}[" + ee + N + "]*", bn = new RegExp("^[" + Oe + "]{0,1}(?:[" + ee + "]*[" + N + "]){1,2}$", "i"), _n = vn + // Phone number extensions
686
687
  "(?:" + bt() + ")?", Cn = new RegExp(
@@ -913,7 +914,7 @@ function Ct(e, n) {
913
914
  return !1;
914
915
  }
915
916
  }
916
- function F(e, n) {
917
+ function A(e, n) {
917
918
  return e = e || "", new RegExp("^(?:" + n + ")$").test(e);
918
919
  }
919
920
  function Mn(e, n) {
@@ -952,7 +953,7 @@ function Ne(e, n, t) {
952
953
  if (n = n || {}, !!e.country) {
953
954
  t = new S(t), t.selectNumberingPlan(e.country, e.countryCallingCode);
954
955
  var d = n.v2 ? e.nationalNumber : e.phone;
955
- if (F(d, t.nationalNumberPattern())) {
956
+ if (A(d, t.nationalNumberPattern())) {
956
957
  if (le(d, "FIXED_LINE", t))
957
958
  return t.type("MOBILE") && t.type("MOBILE").pattern() === "" || !t.type("MOBILE") || le(d, "MOBILE", t) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
958
959
  for (var r = Mn(Ln), i; !(i = r()).done; ) {
@@ -964,13 +965,13 @@ function Ne(e, n, t) {
964
965
  }
965
966
  }
966
967
  function le(e, n, t) {
967
- return n = t.type(n), !n || !n.pattern() || n.possibleLengths() && n.possibleLengths().indexOf(e.length) < 0 ? !1 : F(e, n.pattern());
968
+ return n = t.type(n), !n || !n.pattern() || n.possibleLengths() && n.possibleLengths().indexOf(e.length) < 0 ? !1 : A(e, n.pattern());
968
969
  }
969
970
  function xn(e, n, t) {
970
971
  if (n = n || {}, t = new S(t), t.selectNumberingPlan(e.country, e.countryCallingCode), t.hasTypes())
971
972
  return Ne(e, n, t.metadata) !== void 0;
972
973
  var d = n.v2 ? e.nationalNumber : e.phone;
973
- return F(d, t.nationalNumberPattern());
974
+ return A(d, t.nationalNumberPattern());
974
975
  }
975
976
  function kn(e, n, t) {
976
977
  var d = new S(t), r = d.getCountryCodesForCallingCode(e);
@@ -1131,7 +1132,7 @@ function Zn(e, n) {
1131
1132
  if (n.search(i) !== 0)
1132
1133
  continue;
1133
1134
  }
1134
- if (F(n, r.pattern()))
1135
+ if (A(n, r.pattern()))
1135
1136
  return r;
1136
1137
  }
1137
1138
  }
@@ -1349,7 +1350,7 @@ function he(e, n) {
1349
1350
  };
1350
1351
  }
1351
1352
  function sd(e, n, t) {
1352
- return !(F(e, t.nationalNumberPattern()) && !F(n, t.nationalNumberPattern()));
1353
+ return !(A(e, t.nationalNumberPattern()) && !A(n, t.nationalNumberPattern()));
1353
1354
  }
1354
1355
  function ld(e, n) {
1355
1356
  switch (Ie(e, n)) {
@@ -1365,7 +1366,7 @@ function $d(e, n, t, d) {
1365
1366
  if (e.indexOf(r) === 0) {
1366
1367
  d = new S(d), d.selectNumberingPlan(n, t);
1367
1368
  var i = e.slice(r.length), o = he(i, d), a = o.nationalNumber, l = he(e, d), s = l.nationalNumber;
1368
- if (!F(s, d.nationalNumberPattern()) && F(a, d.nationalNumberPattern()) || Ie(s, d) === "TOO_LONG")
1369
+ if (!A(s, d.nationalNumberPattern()) && A(a, d.nationalNumberPattern()) || Ie(s, d) === "TOO_LONG")
1369
1370
  return {
1370
1371
  countryCallingCode: r,
1371
1372
  number: i
@@ -1543,7 +1544,7 @@ function Fd(e, n, t) {
1543
1544
  var v = new nd(u, s, t.metadata);
1544
1545
  return l && (v.country = l), c && (v.carrierCode = c), i && (v.ext = i), v.__countryCallingCodeSource = $, v;
1545
1546
  }
1546
- var _ = (n.extended ? t.hasSelectedNumberingPlan() : l) ? F(s, t.nationalNumberPattern()) : !1;
1547
+ var _ = (n.extended ? t.hasSelectedNumberingPlan() : l) ? A(s, t.nationalNumberPattern()) : !1;
1547
1548
  return n.extended ? {
1548
1549
  country: l,
1549
1550
  countryCallingCode: u,
@@ -1908,8 +1909,8 @@ const er = { class: "t-center pd-medium" }, tr = { class: "mn-medium" }, nr = {
1908
1909
  }, s = (u) => {
1909
1910
  const $ = document.querySelectorAll("input"), c = $[u + 1], v = u > 0 ? $[u - 1] : null;
1910
1911
  if (r.digits[u] !== "" && r.digits[u] !== null && r.digits[u] !== void 0 && u < 4 && (u < 3 ? c.focus() : i.value.focus()), (r.digits[u] === null || r.digits[u] === void 0 || r.digits[u] === "") && u > 0 && v.focus(), r.digits.every((_) => _ !== "")) {
1911
- const _ = r.digits.join(""), D = oe.code.code.toString();
1912
- _ === D ? (oe.code.isValid = !0, t.push({
1912
+ const _ = r.digits.join(""), F = oe.code.code.toString();
1913
+ _ === F ? (oe.code.isValid = !0, t.push({
1913
1914
  path: "/auth/enter-password",
1914
1915
  query: { type: oe.code.type, method: n.query.method }
1915
1916
  })) : (x({ response: { data: { errorCode: "WRONG_CODE" } } }), i.value.focus(), r.digits = ["", "", "", ""]);
@@ -1917,7 +1918,6 @@ const er = { class: "t-center pd-medium" }, tr = { class: "mn-medium" }, nr = {
1917
1918
  };
1918
1919
  return (u, $) => (g(), b("section", er, [
1919
1920
  p("h3", tr, h(f(d)("verifyNumberTitle")), 1),
1920
- A(" " + h(r.digits) + " ", 1),
1921
1921
  p("p", nr, h(f(d)("instructions")), 1),
1922
1922
  p("div", dr, [
1923
1923
  I(p("input", {
@@ -1979,7 +1979,7 @@ typeof it == "function" && it(Pt);
1979
1979
  const ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1980
1980
  __proto__: null,
1981
1981
  default: Pt
1982
- }, Symbol.toStringTag, { value: "Module" })), U = xt.create({ baseURL: process.env.API_URL, withCredentials: !0 });
1982
+ }, Symbol.toStringTag, { value: "Module" })), U = jt.create({ baseURL: process.env.API_URL, withCredentials: !0 });
1983
1983
  U.defaults.withCredentials = !0;
1984
1984
  const T = ft({
1985
1985
  invites: [],
@@ -2024,7 +2024,7 @@ const T = ft({
2024
2024
  };
2025
2025
  pt(T, (e, n) => {
2026
2026
  });
2027
- const Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2027
+ const Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2028
2028
  __proto__: null,
2029
2029
  actions: Ot,
2030
2030
  state: T
@@ -3263,7 +3263,7 @@ const jr = { class: "t-left pd-medium" }, Br = { class: "mn-small" }, Ur = { cla
3263
3263
  class: "mn-big"
3264
3264
  }, {
3265
3265
  default: w(() => [
3266
- A(h(f(n)("sendCode")), 1)
3266
+ D(h(f(n)("sendCode")), 1)
3267
3267
  ]),
3268
3268
  _: 1
3269
3269
  })
@@ -3464,7 +3464,7 @@ const Xr = { class: "t-left pd-medium" }, Yr = { class: "mn-small" }, Zr = { cla
3464
3464
  class: "mn-big"
3465
3465
  }, {
3466
3466
  default: w(() => [
3467
- A(h(f(n)("sendCode")), 1)
3467
+ D(h(f(n)("sendCode")), 1)
3468
3468
  ]),
3469
3469
  _: 1
3470
3470
  }),
@@ -3474,7 +3474,7 @@ const Xr = { class: "t-left pd-medium" }, Yr = { class: "mn-small" }, Zr = { cla
3474
3474
  class: "underline mn-medium d-block t-blue"
3475
3475
  }, {
3476
3476
  default: w(() => [
3477
- A(h(f(n)("haveAccount")), 1)
3477
+ D(h(f(n)("haveAccount")), 1)
3478
3478
  ]),
3479
3479
  _: 1
3480
3480
  })
@@ -3612,9 +3612,9 @@ const oi = { class: "" }, ai = { class: "mn-medium" }, si = /* @__PURE__ */ p("b
3612
3612
  useScope: "local"
3613
3613
  }), t = C(null), d = C(null), r = C(null);
3614
3614
  k();
3615
- const i = j(), o = C("phone"), a = Te("APPLE_CLIENTID"), l = Te("APPLE_REDIRECT_URL"), s = (v) => new Promise((_, D) => {
3615
+ const i = j(), o = C("phone"), a = Te("APPLE_CLIENTID"), l = Te("APPLE_REDIRECT_URL"), s = (v) => new Promise((_, F) => {
3616
3616
  const P = document.createElement("script");
3617
- P.type = "text/javascript", P.src = v, P.onload = _, P.onerror = D, document.head.appendChild(P);
3617
+ P.type = "text/javascript", P.src = v, P.onload = _, P.onerror = F, document.head.appendChild(P);
3618
3618
  });
3619
3619
  ut(async () => {
3620
3620
  await s("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js");
@@ -3655,20 +3655,20 @@ const oi = { class: "" }, ai = { class: "mn-medium" }, si = /* @__PURE__ */ p("b
3655
3655
  i.push({ name: "User Profile", params: { _id: m.user._id } });
3656
3656
  }
3657
3657
  return (v, _) => {
3658
- const D = be("router-link");
3658
+ const F = be("router-link");
3659
3659
  return g(), b("section", oi, [
3660
3660
  p("h3", ai, [
3661
- A(h(f(n)("title")) + " ", 1),
3661
+ D(h(f(n)("title")) + " ", 1),
3662
3662
  si,
3663
3663
  p("span", li, h(f(n)("subtitle")), 1)
3664
3664
  ]),
3665
3665
  p("p", $i, [
3666
- y(D, {
3666
+ y(F, {
3667
3667
  to: { name: "Sign Up" },
3668
3668
  class: "underline t-second"
3669
3669
  }, {
3670
3670
  default: w(() => [
3671
- A(h(f(n)("signup")), 1)
3671
+ D(h(f(n)("signup")), 1)
3672
3672
  ]),
3673
3673
  _: 1
3674
3674
  })
@@ -3732,12 +3732,12 @@ const oi = { class: "" }, ai = { class: "mn-medium" }, si = /* @__PURE__ */ p("b
3732
3732
  class: "bg-grey pd-medium radius-small mn-semi"
3733
3733
  }, null, 8, ["field", "validation", "placeholder"]),
3734
3734
  p("div", mi, [
3735
- y(D, {
3735
+ y(F, {
3736
3736
  to: "/auth/reset-password",
3737
3737
  class: "underline d-block t-blue"
3738
3738
  }, {
3739
3739
  default: w(() => [
3740
- A(h(f(n)("forgotPassword")), 1)
3740
+ D(h(f(n)("forgotPassword")), 1)
3741
3741
  ]),
3742
3742
  _: 1
3743
3743
  })
@@ -3748,7 +3748,7 @@ const oi = { class: "" }, ai = { class: "mn-medium" }, si = /* @__PURE__ */ p("b
3748
3748
  class: "mn-thin"
3749
3749
  }, {
3750
3750
  default: w(() => [
3751
- A(h(f(n)("signin")), 1)
3751
+ D(h(f(n)("signin")), 1)
3752
3752
  ]),
3753
3753
  _: 1
3754
3754
  }),
@@ -3758,7 +3758,7 @@ const oi = { class: "" }, ai = { class: "mn-medium" }, si = /* @__PURE__ */ p("b
3758
3758
  class: "mn-thin bg-black t-white"
3759
3759
  }, {
3760
3760
  default: w(() => [
3761
- A(h(f(n)("signin_apple")), 1)
3761
+ D(h(f(n)("signin_apple")), 1)
3762
3762
  ]),
3763
3763
  _: 1
3764
3764
  })
@@ -3770,7 +3770,7 @@ typeof $t == "function" && $t(Et);
3770
3770
  const hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3771
3771
  __proto__: null,
3772
3772
  default: Et
3773
- }, Symbol.toStringTag, { value: "Module" })), Ei = [
3773
+ }, Symbol.toStringTag, { value: "Module" })), Ti = [
3774
3774
  {
3775
3775
  path: "auth",
3776
3776
  name: "Authentication",
@@ -3872,9 +3872,9 @@ export {
3872
3872
  It as ResetPassword,
3873
3873
  Et as SignIn,
3874
3874
  Nt as SignUp,
3875
- Ii as SliderFeatures,
3876
- Ei as authRoutes,
3877
- Fi as authStore,
3878
- Ni as invitesStore,
3879
- Di as twofaStore
3875
+ Ni as SliderFeatures,
3876
+ Ti as authRoutes,
3877
+ Di as authStore,
3878
+ Ei as invitesStore,
3879
+ Ri as twofaStore
3880
3880
  };
@@ -0,0 +1 @@
1
+ "use strict";const u=require("vue-router"),e=require("./auth-45a454f2.js");u.useRouter();function o(t,r,s){s(),e.state.user.phone="",e.state.user.email="",e.state.user.password="",e.state.user.passwordRepeat=""}function i(t,r,s){console.log(e.state.user),e.state.user.phone===""&&e.state.user.email===""?s("/auth/signin"):s()}u.useRouter();function a(t,r,s){if(e.state.access.status)return s("/profile/"+e.state.user._id);s()}exports.checkUser=i;exports.requiresNoAuth=a;exports.resetUser=o;
@@ -0,0 +1,20 @@
1
+ import { useRouter as i } from "vue-router";
2
+ import { s } from "./auth-5cd34aae.mjs";
3
+ i();
4
+ function n(r, o, e) {
5
+ e(), s.user.phone = "", s.user.email = "", s.user.password = "", s.user.passwordRepeat = "";
6
+ }
7
+ function f(r, o, e) {
8
+ console.log(s.user), s.user.phone === "" && s.user.email === "" ? e("/auth/signin") : e();
9
+ }
10
+ i();
11
+ function c(r, o, e) {
12
+ if (s.access.status)
13
+ return e("/profile/" + s.user._id);
14
+ e();
15
+ }
16
+ export {
17
+ n as a,
18
+ f as c,
19
+ c as r
20
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("vue-router");const u={id:"account",class:"cols-2-1_3 gap-medium pd-medium"},l={class:"pd-medium menu-tabs"},i={class:"w-100"},m={__name:"Account",setup(p){n.useRoute(),n.useRouter();let a=e.reactive({currentTab:"user"});return e.toRefs(a),(t,o)=>{const r=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("section",u,[e.createElementVNode("div",l,[t.store.auth.state.access.roles.includes("ROLE_ADMIN")?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:o[0]||(o[0]=c=>t.$router.push("/account/community")),class:e.normalizeClass([{"product-tab-active":t.$route.path==="/account/community"},"mn-small product-tab"])}," Blog ",2)):e.createCommentVNode("",!0),t.store.auth.state.access.roles.includes("ROLE_ADMIN")?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:o[1]||(o[1]=c=>t.$router.push("/account/gallery")),class:e.normalizeClass([{"product-tab-active":t.$route.path==="/account/gallery"},"product-tab"])}," Gallery ",2)):e.createCommentVNode("",!0)]),e.createElementVNode("div",i,[e.createVNode(r,null,{default:e.withCtx(({Component:c,route:s})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c),{ref:"page",key:s.path}))]),_:2},1024)]),_:1})])])}}},d=[{path:"backoffice",component:m,children:[{path:":_id",name:"Backoffice",meta:{title:{en:"Backoffice",ru:"Управление"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./Gallery-dd29c7f6.js"))}]}];exports.backofficeRoutes=d;
@@ -0,0 +1,69 @@
1
+ import { reactive as d, toRefs as _, resolveComponent as f, openBlock as o, createElementBlock as c, createElementVNode as n, normalizeClass as s, createCommentVNode as r, createVNode as u, withCtx as i, Transition as v, createBlock as h, resolveDynamicComponent as k } from "vue";
2
+ import { useRoute as y, useRouter as b } from "vue-router";
3
+ const C = {
4
+ id: "account",
5
+ class: "cols-2-1_3 gap-medium pd-medium"
6
+ }, g = { class: "pd-medium menu-tabs" }, B = { class: "w-100" }, R = {
7
+ __name: "Account",
8
+ setup($) {
9
+ y(), b();
10
+ let l = d({ currentTab: "user" });
11
+ return _(l), (e, t) => {
12
+ const m = f("router-view");
13
+ return o(), c("section", C, [
14
+ n("div", g, [
15
+ e.store.auth.state.access.roles.includes("ROLE_ADMIN") ? (o(), c("button", {
16
+ key: 0,
17
+ onClick: t[0] || (t[0] = (a) => e.$router.push("/account/community")),
18
+ class: s([{ "product-tab-active": e.$route.path === "/account/community" }, "mn-small product-tab"])
19
+ }, " Blog ", 2)) : r("", !0),
20
+ e.store.auth.state.access.roles.includes("ROLE_ADMIN") ? (o(), c("button", {
21
+ key: 1,
22
+ onClick: t[1] || (t[1] = (a) => e.$router.push("/account/gallery")),
23
+ class: s([{ "product-tab-active": e.$route.path === "/account/gallery" }, "product-tab"])
24
+ }, " Gallery ", 2)) : r("", !0)
25
+ ]),
26
+ n("div", B, [
27
+ u(m, null, {
28
+ default: i(({ Component: a, route: p }) => [
29
+ u(v, {
30
+ name: "scaleIn",
31
+ mode: "out-in"
32
+ }, {
33
+ default: i(() => [
34
+ (o(), h(k(a), {
35
+ ref: "page",
36
+ key: p.path
37
+ }))
38
+ ]),
39
+ _: 2
40
+ }, 1024)
41
+ ]),
42
+ _: 1
43
+ })
44
+ ])
45
+ ]);
46
+ };
47
+ }
48
+ }, A = [{
49
+ path: "backoffice",
50
+ component: R,
51
+ children: [{
52
+ path: ":_id",
53
+ name: "Backoffice",
54
+ meta: {
55
+ title: {
56
+ en: "Backoffice",
57
+ ru: "Управление"
58
+ },
59
+ authorize: []
60
+ },
61
+ component: () => import(
62
+ /* webpackChunkName: 'Account' */
63
+ "./Gallery-1f82841a.mjs"
64
+ )
65
+ }]
66
+ }];
67
+ export {
68
+ A as backofficeRoutes
69
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";const t=require("vue");/**
2
+ * Vue 3 Carousel 0.1.48
3
+ * (c) 2022
4
+ * @license MIT
5
+ */const f={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0},ne={itemsToShow:{default:f.itemsToShow,type:Number},itemsToScroll:{default:f.itemsToScroll,type:Number},wrapAround:{default:f.wrapAround,type:Boolean},snapAlign:{default:f.snapAlign,validator(n){return["start","end","center","center-even","center-odd"].includes(n)}},transition:{default:f.transition,type:Number},breakpoints:{default:f.breakpoints,type:Object},autoplay:{default:f.autoplay,type:Number},pauseAutoplayOnHover:{default:f.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:f.mouseDrag,type:Boolean},touchDrag:{default:f.touchDrag,type:Boolean},dir:{default:f.dir,validator(n){return["rtl","ltr"].includes(n)}},settings:{default(){return{}},type:Object}};function se(n,o){let i;return function(...l){i&&clearTimeout(i),i=setTimeout(()=>{n(...l),i=null},o)}}function ce(n,o){let i;return function(...l){const g=this;i||(n.apply(g,l),i=!0,setTimeout(()=>i=!1,o))}}function de(n){var o,i,l;return n?((i=(o=n[0])===null||o===void 0?void 0:o.type)===null||i===void 0?void 0:i.name)==="CarouselSlide"?n:((l=n[0])===null||l===void 0?void 0:l.children)||[]:[]}function fe(n,o){if(n.wrapAround)return o-1;switch(n.snapAlign){case"start":return o-n.itemsToShow;case"end":return o-1;case"center":case"center-odd":return o-Math.ceil(n.itemsToShow/2);case"center-even":return o-Math.ceil(n.itemsToShow/2);default:return 0}}function ve(n){if(n.wrapAround)return 0;switch(n.snapAlign){case"start":return 0;case"end":return n.itemsToShow-1;case"center":case"center-odd":return Math.floor((n.itemsToShow-1)/2);case"center-even":return Math.floor((n.itemsToShow-2)/2);default:return 0}}function re(n,o,i,l){return n.wrapAround?o:Math.min(Math.max(o,l),i)}function me({slidesBuffer:n,currentSlide:o,snapAlign:i,itemsToShow:l,wrapAround:g,slidesCount:p}){let c=n.indexOf(o);if(c===-1&&(c=n.indexOf(Math.ceil(o))),i==="center"||i==="center-odd"?c-=(l-1)/2:i==="center-even"?c-=(l-2)/2:i==="end"&&(c-=l-1),!g){const w=p-l,y=0;c=Math.max(Math.min(c,w),y)}return c}var he=t.defineComponent({name:"Carousel",props:ne,setup(n,{slots:o,emit:i,expose:l}){var g;const p=t.ref(null),c=t.ref([]),w=t.ref([]),y=t.ref(0),u=t.ref(1);let x,_,T=t.ref({}),h=Object.assign({},f);const r=t.reactive(Object.assign({},h)),d=t.ref((g=r.modelValue)!==null&&g!==void 0?g:0),oe=t.ref(0),$=t.ref(0),A=t.ref(0),O=t.ref(0);t.provide("config",r),t.provide("slidesBuffer",w),t.provide("slidesCount",u),t.provide("currentSlide",d),t.provide("maxSlide",A),t.provide("minSlide",O);function H(){const e=Object.assign(Object.assign({},n),n.settings);T=t.ref(Object.assign({},e.breakpoints)),h=Object.assign(Object.assign({},e),{settings:void 0,breakpoints:void 0}),Y(h)}function C(){const e=Object.keys(T.value).map(s=>Number(s)).sort((s,m)=>+m-+s);let a=Object.assign({},h);e.some(s=>window.matchMedia(`(min-width: ${s}px)`).matches?(a=Object.assign(Object.assign({},a),T.value[s]),!0):!1),Y(a)}function Y(e){for(let a in e)r[a]=e[a]}const ie=se(()=>{T.value&&(C(),j()),E()},16);function E(){if(!p.value)return;const e=p.value.getBoundingClientRect();y.value=e.width/r.itemsToShow}function j(){u.value=Math.max(c.value.length,1),!(u.value<=0)&&($.value=Math.ceil((u.value-1)/2),A.value=fe(r,u.value),O.value=ve(r),d.value=re(r,d.value,A.value,O.value))}function D(){const e=[...Array(u.value).keys()];if(r.wrapAround&&r.itemsToShow+1<=u.value){let m=(r.itemsToShow!==1?Math.round((u.value-r.itemsToShow)/2):0)-d.value;if(r.snapAlign==="end"?m+=Math.floor(r.itemsToShow-1):(r.snapAlign==="center"||r.snapAlign==="center-odd")&&m++,m<0)for(let S=m;S<0;S++)e.push(Number(e.shift()));else for(let S=0;S<m;S++)e.unshift(Number(e.pop()))}w.value=e}t.onMounted(()=>{T.value&&(C(),j()),t.nextTick(()=>setTimeout(E,16)),z(),window.addEventListener("resize",ie,{passive:!0})}),t.onUnmounted(()=>{_&&clearTimeout(_),x&&clearInterval(x)});let v=!1;const B={x:0,y:0},V={x:0,y:0},M=t.reactive({x:0,y:0}),N=t.ref(!1),le=()=>{N.value=!0},ae=()=>{N.value=!1};function U(e){v=e.type==="touchstart",!(!v&&e.button!==0||k.value)&&(v||e.preventDefault(),B.x=v?e.touches[0].clientX:e.clientX,B.y=v?e.touches[0].clientY:e.clientY,document.addEventListener(v?"touchmove":"mousemove",W,!0),document.addEventListener(v?"touchend":"mouseup",q,!0))}const W=ce(e=>{V.x=v?e.touches[0].clientX:e.clientX,V.y=v?e.touches[0].clientY:e.clientY;const a=V.x-B.x,s=V.y-B.y;M.y=s,M.x=a},16);function q(){const e=r.dir==="rtl"?-1:1,a=Math.sign(M.x)*.4,s=Math.round(M.x/y.value+a)*e;let m=re(r,d.value-s,A.value,O.value);if(s&&!v){const S=X=>{X.stopPropagation(),window.removeEventListener("click",S,!0)};window.addEventListener("click",S,!0)}b(m),M.x=0,M.y=0,document.removeEventListener(v?"touchmove":"mousemove",W,!0),document.removeEventListener(v?"touchend":"mouseup",q,!0)}function z(){!r.autoplay||r.autoplay<=0||(x=setInterval(()=>{r.pauseAutoplayOnHover&&N.value||I()},r.autoplay))}function R(){x&&(clearInterval(x),x=null),z()}const k=t.ref(!1);function b(e,a=!1){if(d.value===e||k.value)return;R();const s=u.value-1;if(e>s)return b(e-u.value);if(e<0)return b(e+u.value);k.value=!0,oe.value=d.value,d.value=e,a||i("update:modelValue",d.value),_=setTimeout(()=>{r.wrapAround&&D(),k.value=!1},r.transition)}function I(){let e=d.value+r.itemsToScroll;r.wrapAround||(e=Math.min(e,A.value)),b(e)}function G(){let e=d.value-r.itemsToScroll;r.wrapAround||(e=Math.max(e,O.value)),b(e)}const F={slideTo:b,next:I,prev:G};t.provide("nav",F);const J=t.computed(()=>me({slidesBuffer:w.value,itemsToShow:r.itemsToShow,snapAlign:r.snapAlign,wrapAround:!!r.wrapAround,currentSlide:d.value,slidesCount:u.value}));t.provide("slidesToScroll",J);const ue=t.computed(()=>{const e=r.dir==="rtl"?-1:1,a=J.value*y.value*e;return{transform:`translateX(${M.x-a}px)`,transition:`${k.value?r.transition:0}ms`}});function K(){H()}function Q(){H(),C(),j(),D(),E(),R()}function Z(){j(),D()}Object.keys(ne).forEach(e=>{["modelValue"].includes(e)||t.watch(()=>n[e],Q)}),K(),t.watchEffect(()=>{const e=u.value!==c.value.length;n.modelValue!==void 0&&d.value!==n.modelValue&&b(Number(n.modelValue),!0),e&&Z()});const ee={config:r,slidesBuffer:w,slidesCount:u,slideWidth:y,currentSlide:d,maxSlide:A,minSlide:O,middleSlide:$};l({updateBreakpointsConfigs:C,updateSlidesData:j,updateSlideWidth:E,updateSlidesBuffer:D,initCarousel:K,restartCarousel:Q,updateCarousel:Z,slideTo:b,next:I,prev:G,nav:F,data:ee});const L=o.default||o.slides,P=o.addons,te=t.reactive(ee);return()=>{const e=de(L==null?void 0:L(te)),a=(P==null?void 0:P(te))||[];c.value=e,e.forEach((S,X)=>S.props.index=X);const s=t.h("ol",{class:"carousel__track",style:ue.value,onMousedown:r.mouseDrag?t.withModifiers(U,["capture"]):null,onTouchstart:r.touchDrag?t.withModifiers(U,["capture"]):null},e),m=t.h("div",{class:"carousel__viewport"},s);return t.h("section",{ref:p,class:{carousel:!0,"carousel--rtl":r.dir==="rtl"},dir:r.dir,"aria-label":"Gallery",onMouseenter:le,onMouseleave:ae},[m,a])}}}),pe=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1}},setup(n,{slots:o}){const i=t.inject("config",t.reactive(Object.assign({},f))),l=t.inject("slidesBuffer",t.ref([])),g=t.inject("currentSlide",t.ref(0)),p=t.inject("slidesToScroll",t.ref(0)),c=t.ref(n.index);i.wrapAround&&(w(),t.watch(l,w));function w(){c.value=l.value.indexOf(n.index)}const y=t.computed(()=>({width:`${1/i.itemsToShow*100}%`,order:c.value.toString()})),u=()=>n.index===g.value,x=()=>{const h=Math.ceil(p.value),r=Math.floor(p.value+i.itemsToShow);return l.value.slice(h,r).includes(n.index)},_=()=>n.index===l.value[Math.ceil(p.value)-1],T=()=>n.index===l.value[Math.floor(p.value+i.itemsToShow)];return()=>{var h;return t.h("li",{style:y.value,class:{carousel__slide:!0,"carousel__slide--active":u(),"carousel__slide--visible":x(),"carousel__slide--prev":_(),"carousel__slide--next":T()}},(h=o.default)===null||h===void 0?void 0:h.call(o))}}});exports.Carousel=he;exports.Slide=pe;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("vue-router"),$=require("./Publics-8bc74cc3.js"),u=require("./Feed-a5229528.js"),g=require("./auth-3dedf391.js"),x=require("./Image-89b2a540.js"),I=require("./Popup-f5cdd3c1.js"),V=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-cf9f6aed.js"),z=require("./organizations-e74f4f84.js"),D=require("./EmptyState-7658d7d6.js"),P=require("./_plugin-vue_export-helper-f246444f.js"),F=require("vue-i18n");require("./globals-928eb13c.js");require("./CardOrganization-79eb2b6f.js");require("./ButtonFollow-daa0e9e4.js");require("./Chips-4d8ac62e.js");require("./IconEdit-4cfe2115.js");require("./vue-draggable-next.esm-bundler-80731ae0.js");const O={class:"min-h-100vh pd-thin"},L={class:"mn-thin flex-v-center t-left flex-nowrap flex"},j={class:"flex-v-center flex-nowrap flex t-left"},U=e.createElementVNode("span",{class:""},"Topics for ",-1),A={class:"w-max bg-grey pd-medium radius-big mn-semi flex-nowrap flex"},H={class:""},T={__name:"Community",setup(c){const r=w.useRoute(),n=w.useRouter();return(t,a)=>{const d=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",O,[e.createElementVNode("header",L,[e.createElementVNode("h2",j,[U,e.createVNode($.Select,{options:["today","week","month","year"],select:u.state.filter.period,"onUpdate:select":a[0]||(a[0]=o=>u.state.filter.period=o),placeholder:"Select type",class:"w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createElementVNode("ul",A,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="featured"},"mn-r-small t-medium pd-small radius-small"]),onClick:a[1]||(a[1]=o=>e.unref(n).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="popular"},"mn-r-small t-medium pd-small radius-small"]),onClick:a[2]||(a[2]=o=>e.unref(n).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="new"},"mn-r-small t-medium pd-small radius-small"]),onClick:a[3]||(a[3]=o=>e.unref(n).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),g.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="following"},"t-medium pd-small radius-small"]),onClick:a[4]||(a[4]=o=>e.unref(n).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",H,[e.createVNode(d,null,{default:e.withCtx(({Component:o,route:m})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:m.query}))]),_:2},1024)]),_:1})])])}}},R={class:"pd-thin"},J={key:0,class:"h-100 w-100 bg-grey pd-big radius-big"},G={class:"w-full h-full"},Q={key:1,class:"pd-thin pos-fixed pos-l-0 pos-b-0 w-100"},W={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},K={class:"w-m-66r t-left pd-big bg-white radius-big"},X=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),Y=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),Z={key:0,class:"mn-thin"},ee={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},S={__name:"CreateBlogPost",setup(c){const r=w.useRoute(),n=w.useRouter();let t=e.ref(null),a=e.ref(null);const d=e.ref([]),o=e.ref(null);e.onMounted(async()=>{if(r.params.url){const i=await u.read({user:g.state.user._id,url:r.params.url});t.value=i.pop()}else u.clean(),t.value=u.state.current;t.value.owner||(t.value.owner={target:g.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:g.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(o.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const l=await z.actions.read({user:g.state.user._id,postable:g.state.user._id,limit:100});console.log(l),a.value=l.map(i=>({name:i.profile.name,_id:i._id,photo:i.profile.photo}))});const m=e.ref(""),s=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);e.computed(()=>s.value.filter(l=>l.text.toLowerCase().includes(m.value.toLowerCase()))),e.computed(()=>s.value.filter(l=>!d.value.some(i=>i.text===l.text)));const p=e.ref(!1);function b(){p.value=!0}function v(){p.value=!1}function k(){d.value.length>0&&d.value.map(l=>l.text),t.value.status="draft",r.params.url?u.update(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)}):u.create(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)})}function B(){o.value&&(t.value.owner={target:o.value._id,type:"organization"}),o.value||(t.value.creator.hidden=!1),o.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),r.params.url?u.update(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)}):u.create(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)})}function N(){confirm("Are you sure you want to delete this post?")&&u.remove(t.value._id).then(l=>{n.push({name:"User Blogposts",params:{_id:t.value.creator.target._id}})}).catch(l=>{console.log(l)})}return(l,i)=>(e.openBlock(),e.createElementBlock("article",R,[e.unref(t)?(e.openBlock(),e.createElementBlock("section",J,[e.createElementVNode("div",G,[e.createVNode(x._sfc_main,{prop:e.unref(t),content:"name",placeholder:"Enter post title",class:"h2"},null,8,["prop"])]),e.createVNode(x._sfc_main$1,{content:e.unref(t).content,onUpdate:i[0]||(i[0]=_=>e.unref(t).content=_)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",Q,[e.createElementVNode("div",W,[e.unref(r).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:i[1]||(i[1]=_=>N()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:i[2]||(i[2]=_=>k()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:i[3]||(i[3]=_=>b()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(I._sfc_main,{title:"Добавить участника",onClosePopup:v,isPopupOpen:p.value},{default:e.withCtx(()=>[e.createElementVNode("div",K,[X,e.createVNode(V._sfc_main,{onTagsChanged:i[4]||(i[4]=_=>e.unref(t).tags=_),tags:e.unref(t).tags},null,8,["tags"]),Y,e.createVNode(V.SelectMulti,{modelValue:o.value,"onUpdate:modelValue":i[5]||(i[5]=_=>o.value=_),options:e.unref(a),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),o.value?(e.openBlock(),e.createElementBlock("h5",Z,"Options:")):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("div",ee,[e.createVNode(V.Checkbox,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":i[6]||(i[6]=_=>e.unref(t).creator.hidden=_),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(g._sfc_main,{submit:B,callback:l.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])])]),_:1},8,["isPopupOpen"])]))}},C=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),te={},oe={width:"100%",height:"20rem",xmlns:"http://www.w3.org/2000/svg"},ne=e.createStaticVNode('<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),ae=[ne];function re(c,r){return e.openBlock(),e.createElementBlock("svg",oe,ae)}const se=P._export_sfc(te,[["render",re]]),le={class:"pd-thin"},q={__name:"BlogPost",setup(c){const r=w.useRoute(),n=e.ref(null),t=e.ref(!0);e.onMounted(async()=>{t.value=!0;const o=await u.read({user:g.state.user._id,url:r.params.url});n.value=o[0],t.value=!1});const a={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:x._sfc_main$3};function d(o){return o.type==="Textarea"?{innerHTML:o.content,class:"p-medium"}:o.type==="H2"?{innerHTML:o.content,class:"h3"}:o.type==="Caption"?{innerHTML:o.content}:o.type==="ImageUpload"?{src:o.content}:{}}return(o,m)=>(e.openBlock(),e.createElementBlock("section",le,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[t.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,s=>e.createVNode(se,{key:s})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!t.value&&!n.value?(e.openBlock(),e.createBlock(D._sfc_main,{key:0,title:"No Blogpost Found",description:"Currently, there are no blogposts available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!t.value&&n.value?(e.openBlock(),e.createBlock(u._sfc_main$1,{key:0,onClick:m[0]||(m[0]=s=>o.$router.push({name:"Blogpost",params:{url:n.value.url}})),blogpost:n.value,user:g.state.user._id,type:"blogpostPage",class:e.normalizeClass(["mn-medium",{"br-b br-solid br-black-transp-10":o.index!==n.value.length-1}])},{default:e.withCtx(()=>[e.createElementVNode("section",null,[n.value&&n.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value.content,(s,p)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a[s.type]),e.mergeProps({key:p,index:p,component:s,prop:s,class:s.class,content:"content"},d(s),{class:"mn-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["blogpost","user","class"])):e.createCommentVNode("",!0),e.createVNode($._sfc_main,{class:"mn-small"}),!t.value&&n.value?(e.openBlock(),e.createBlock(x._sfc_main$2,{key:1,type:"blogpost",target:n.value._id,owner:g.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}},ie=Object.freeze(Object.defineProperty({__proto__:null,default:q},Symbol.toStringTag,{value:"Module"})),M={__name:"Blog",setup(c){const r=w.useRoute(),n=w.useRouter();return r.params.category||(r.params.category="featured"),e.onMounted(()=>{if(r.query){const t=r.query,a={tags:t.tags?t.tags.split(","):[],period:t.period?t.period:"week"};u.state.filter=a}}),e.watch(()=>u.state.filter,(t,a)=>{const d={...r.query};Object.keys(a).forEach(m=>{d[m]&&delete d[m]});const o=Object.fromEntries(Object.entries(t).filter(([m,s])=>Array.isArray(s)&&s.length>0||typeof s=="string"&&s).map(([m,s])=>[m,Array.isArray(s)?s.join(","):s]));Object.assign(d,o),n.replace({query:d})},{deep:!0}),(t,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(u._sfc_main,{category:e.unref(r).params.category,user:g.state.user._id,period:e.unref(r).query.period},null,8,["category","user","period"])]))}},ce=Object.freeze(Object.defineProperty({__proto__:null,default:M},Symbol.toStringTag,{value:"Module"})),ue={class:"w-100 cols-4 t-left flex-nowrap flex"},de={key:0,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},me=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"👍",-1),pe={class:"t-semi uppercase"},ge=e.createElementVNode("br",null,null,-1),_e={key:1,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},fe=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"💬",-1),he={class:"t-semi uppercase"},ve=e.createElementVNode("br",null,null,-1),be={key:2,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},ye=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"👍",-1),we={class:"t-semi uppercase"},ke=e.createElementVNode("br",null,null,-1),xe={__name:"Activity",props:{likes:Number,comments:Number,subscriptions:Number},setup(c){return(r,n)=>(e.openBlock(),e.createElementBlock("section",ue,[c.likes?(e.openBlock(),e.createElementBlock("div",de,[me,e.createElementVNode("span",pe,[e.createTextVNode(e.toDisplayString(c.likes),1),ge,e.createTextVNode("likes")])])):e.createCommentVNode("",!0),c.comments?(e.openBlock(),e.createElementBlock("div",_e,[fe,e.createElementVNode("span",he,[e.createTextVNode(e.toDisplayString(c.comments),1),ve,e.createTextVNode("comments")])])):e.createCommentVNode("",!0),c.subscriptions?(e.openBlock(),e.createElementBlock("div",be,[ye,e.createElementVNode("span",we,[e.createTextVNode(e.toDisplayString(c.subscriptions),1),ke,e.createTextVNode("subscriptions")])])):e.createCommentVNode("",!0)]))}},Be={class:"pd-thin radius-extra flex-nowrap flex"},Ne=["innerHTML"],Ve={__name:"FieldBig",props:{input:String,placeholder:{type:String},action:{type:String,default:"Action"},placeholderTexts:{type:Object,default:()=>({en:["First placeholder","Second placeholder","Third placeholder"],ru:["Первый плейсхолдер","Второй плейсхолдер","Третий плейсхолдер"]})},typingSpeed:{type:Number,default:200},loopTyping:{type:Boolean,default:!1},enableTyping:{type:Boolean,default:!1}},emits:["update:input","action"],setup(c,{emit:r}){const n=c,{t,locale:a}=F.useI18n();let d=e.ref(0),o=e.ref(n.input),m=e.ref(n.placeholder),s=e.ref(n.enableTyping),p=e.ref(null),b=e.ref(""),v=e.ref(!0),k=null;function B(){r("action")}function N(h){r("update:input",h),b.value=h}function l(){d.value=(d.value+1)%n.placeholderTexts[a.value].length}function i(){s.value=!1,clearInterval(p.value),m.value=n.placeholder,b.value||(o.value="")}function _(){!b.value&&n.enableTyping&&(s.value=!0,m.value="",E())}function E(){let h=n.placeholderTexts[a.value][d.value],f=0,y=!1;k=setInterval(()=>{v.value=!v.value},200),p.value=setInterval(()=>{s.value&&(y?(o.value=o.value.slice(0,-1),o.value=h.substring(0,f)+(v.value&&f%2?"|":""),f--):(o.value=h.substring(0,f)+(v.value&&f%2?"|":""),f++),f>h.length&&n.loopTyping&&setTimeout(()=>{y=!0,o.value=h.substring(0,f)},333),f===0&&y&&(y=!1,l(),h=n.placeholderTexts[a.value][d.value]))},n.typingSpeed)}return e.onMounted(()=>{n.enableTyping&&E()}),e.watchEffect(()=>{s.value||(clearInterval(p.value),clearInterval(k))}),(h,f)=>(e.openBlock(),e.createElementBlock("div",Be,[e.createVNode(g.Field,{field:e.unref(o),"onUpdate:field":[f[0]||(f[0]=y=>e.isRef(o)?o.value=y:o=y),N],placeholder:e.unref(m),onInput:l,onFocus:i,onBlur:_,class:"w-100 pd-small p-big"},null,8,["field","placeholder"]),c.action?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:B,class:"w-min hover_bg-white hover-t-black t-black bg-main button",innerHTML:c.action},null,8,Ne)):e.createCommentVNode("",!0)]))}};const Ee={class:"pd-thin"},Ce={class:"o-hidden t-black bg-main pd-big radius-big"},$e=e.createElementVNode("header",{class:"t-center z-index-1 mn-big"},[e.createElementVNode("h2",{class:"mn-l-auto mn-r-auto w-m-40r mn-medium"},"Stay Updated with The Latest in Cannabis."),e.createElementVNode("p",{class:"t-transp p-big"},"Subscribe to our newsletter for news, insights, and more from the Weeder universe.")],-1),Pe={class:"z-index-1 mn-big w-100 flex-nowrap flex"},Te=e.createElementVNode("div",{class:"w-100 h-100 pos-absolute pos-t-50-negative pos-r-0 z-index-0 grid"},[e.createElementVNode("div",{class:"spiral"})],-1),Se={__name:"SubscribeNewsletter",setup(c){let r=e.ref("");return(n,t)=>(e.openBlock(),e.createElementBlock("section",Ee,[e.createElementVNode("div",Ce,[$e,e.createElementVNode("div",Pe,[e.createVNode(Ve,{input:e.unref(r),typingSpeed:75,loopTyping:!1,enableTyping:!1,placeholder:"Please enter your email",action:"Subscribe","onUpdate:input":t[0]||(t[0]=a=>e.isRef(r)?r.value=a:r=a),onAction:t[1]||(t[1]=a=>n.router.push({name:"Product Recommmendation",query:{mood:n.mood}})),class:"mn-l-auto mn-r-auto bg-white t-black w-50"},null,8,["input"])]),Te])]))}};const qe={class:"container container-joinus"},Me={class:"content"},Ie={class:"h0 mn-big"},ze=e.createElementVNode("p",{class:"w-m-33r t-center mn-small p-big"},"Together, we're shaping the future of the globals cannabis community.",-1),De=e.createElementVNode("button",{class:"bg-black t-white button"},"Join Now",-1),Fe={__name:"JoinUs",setup(c){const r=e.ref(120950),n=e.ref(["/assets/images/reviews/01.png","/assets/images/reviews/02.png","/assets/images/reviews/03.png","/assets/images/reviews/04.png","/assets/images/reviews/05.png","/assets/images/reviews/06.png"]),t=()=>{setInterval(()=>{r.value+=Math.floor(Math.random()*5)+1},330)},a={minSize:"6rem",maxSize:"10rem",minDuration:5,maxDuration:15,spawnPoints:[10,90]};e.onMounted(()=>{d(),t()});const d=()=>{n.value.forEach((o,m)=>{let s=document.createElement("img");s.src=o,s.classList.add("floating-image");let p=a.spawnPoints[Math.floor(Math.random()*a.spawnPoints.length)],b=(Math.random()-.5)*2*10;s.style.left=`${p+b}%`,s.style.animationDuration=`${Math.random()*(a.maxDuration-a.minDuration)+a.minDuration}s`,document.querySelector(".container").appendChild(s),s.addEventListener("animationiteration",()=>{const v=a.spawnPoints[Math.floor(Math.random()*a.spawnPoints.length)],k=(Math.random()-.5)*2*10;s.style.left=`${v+k}%`})})};return(o,m)=>(e.openBlock(),e.createElementBlock("div",qe,[e.createElementVNode("div",Me,[e.createElementVNode("span",Ie,e.toDisplayString(r.value.toLocaleString()),1),ze,De])]))}};const Oe=c=>(e.pushScopeId("data-v-18db0d1b"),c=c(),e.popScopeId(),c),Le={class:"community-feed"},je=Oe(()=>e.createElementVNode("h2",{class:"w-m-75r mn-auto pd-t-big pd-b-big t-center"},"Discover the Vibrant Community",-1)),Ue={class:"grid-container"},Ae={__name:"HotPosts",async setup(c){let r,n;const t=e.ref([]),a=async()=>{const o=await u.read({skip:0,limit:7,period:"year"});console.log(o),t.value=o};[r,n]=e.withAsyncContext(()=>a()),await r,n();const d=o=>{switch(o){case 0:return"grid-item-2x2";case 1:return"grid-item-2x1";case 2:return"grid-item-1x1";case 3:case 4:return"grid-item-1x1";case 6:return"grid-item-2x1";default:return""}};return(o,m)=>(e.openBlock(),e.createElementBlock("section",Le,[je,e.createElementVNode("div",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(s,p)=>(e.openBlock(),e.createBlock(u._sfc_main$1,{blogpost:s,owner:g.state.user._id,key:p,class:e.normalizeClass(d(p))},null,8,["blogpost","owner","class"]))),128))])]))}},He=P._export_sfc(Ae,[["__scopeId","data-v-18db0d1b"]]),Re=[{path:"community",component:T,meta:{title:{en:"Community",ru:"Коммьюнити"},title_hide:!0},children:[{path:":category?",name:"Blog",meta:{title:{en:"Community",ru:"Коммьюнити"},title_hide:!0},component:()=>Promise.resolve().then(()=>ce)}]},{path:"community/posts/create",name:"Create BlogPost",meta:{title:{en:"Create Post",ru:"Создать Пост"},authorize:[]},component:()=>Promise.resolve().then(()=>C)},{path:"community/posts/:url",name:"BlogPost",meta:{title:{en:"Post",ru:"Пост"}},component:()=>Promise.resolve().then(()=>ie)},{path:"community/posts/:url/edit",name:"Edit BlogPost",meta:{title:{en:"Edit Post",ru:"Редактировать пост"},authorize:[]},component:()=>Promise.resolve().then(()=>C)}];exports.CardBlogpost=u._sfc_main$1;exports.Feed=u._sfc_main;exports.FooterBlogpost=u._sfc_main$2;exports.blogpostsStore=u.blogposts;exports.reactionsStore=u.reactions;exports.Comments=x._sfc_main$2;exports.Activity=xe;exports.Blog=M;exports.BlogPost=q;exports.Community=T;exports.CreateBlogPost=S;exports.HotPosts=He;exports.JoinUs=Fe;exports.SubscribeNewsletter=Se;exports.blogpostsRoutes=Re;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("vue-router"),$=require("./Publics-8595ab7e.js"),u=require("./Feed-51eef23f.js"),g=require("./auth-45a454f2.js"),x=require("./Image-a2c2ab9c.js"),I=require("./Popup-383abb2e.js"),V=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-cab2bcd2.js"),z=require("./organizations-cf1ab766.js"),D=require("./EmptyState-7658d7d6.js"),P=require("./_plugin-vue_export-helper-f246444f.js"),F=require("vue-i18n");require("./globals-928eb13c.js");require("./CardOrganization-63dcc83b.js");require("./ButtonFollow-bf5e6d42.js");require("./index-2059e444.js");require("./Chips-3dac276c.js");require("./IconEdit-4cfe2115.js");require("./vue-draggable-next.esm-bundler-21a209c6.js");const O={class:"min-h-100vh pd-thin"},L={class:"mn-thin flex-v-center t-left flex-nowrap flex"},j={class:"flex-v-center flex-nowrap flex t-left"},U=e.createElementVNode("span",{class:""},"Topics for ",-1),A={class:"w-max bg-grey pd-medium radius-big mn-semi flex-nowrap flex"},H={class:""},T={__name:"Community",setup(c){const r=w.useRoute(),n=w.useRouter();return(t,a)=>{const d=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",O,[e.createElementVNode("header",L,[e.createElementVNode("h2",j,[U,e.createVNode($.Select,{options:["today","week","month","year"],select:u.state.filter.period,"onUpdate:select":a[0]||(a[0]=o=>u.state.filter.period=o),placeholder:"Select type",class:"w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createElementVNode("ul",A,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="featured"},"mn-r-small t-medium pd-small radius-small"]),onClick:a[1]||(a[1]=o=>e.unref(n).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="popular"},"mn-r-small t-medium pd-small radius-small"]),onClick:a[2]||(a[2]=o=>e.unref(n).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="new"},"mn-r-small t-medium pd-small radius-small"]),onClick:a[3]||(a[3]=o=>e.unref(n).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),g.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="following"},"t-medium pd-small radius-small"]),onClick:a[4]||(a[4]=o=>e.unref(n).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",H,[e.createVNode(d,null,{default:e.withCtx(({Component:o,route:m})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:m.query}))]),_:2},1024)]),_:1})])])}}},R={class:"pd-thin"},J={key:0,class:"h-100 w-100 bg-grey pd-big radius-big"},G={class:"w-full h-full"},Q={key:1,class:"pd-thin pos-fixed pos-l-0 pos-b-0 w-100"},W={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},K={class:"w-m-66r t-left pd-big bg-white radius-big"},X=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),Y=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),Z={key:0,class:"mn-thin"},ee={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},S={__name:"CreateBlogPost",setup(c){const r=w.useRoute(),n=w.useRouter();let t=e.ref(null),a=e.ref(null);const d=e.ref([]),o=e.ref(null);e.onMounted(async()=>{if(r.params.url){const i=await u.read({user:g.state.user._id,url:r.params.url});t.value=i.pop()}else u.clean(),t.value=u.state.current;t.value.owner||(t.value.owner={target:g.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:g.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(o.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const l=await z.actions.read({user:g.state.user._id,postable:g.state.user._id,limit:100});console.log(l),a.value=l.map(i=>({name:i.profile.name,_id:i._id,photo:i.profile.photo}))});const m=e.ref(""),s=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);e.computed(()=>s.value.filter(l=>l.text.toLowerCase().includes(m.value.toLowerCase()))),e.computed(()=>s.value.filter(l=>!d.value.some(i=>i.text===l.text)));const p=e.ref(!1);function b(){p.value=!0}function v(){p.value=!1}function k(){d.value.length>0&&d.value.map(l=>l.text),t.value.status="draft",r.params.url?u.update(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)}):u.create(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)})}function B(){o.value&&(t.value.owner={target:o.value._id,type:"organization"}),o.value||(t.value.creator.hidden=!1),o.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),r.params.url?u.update(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)}):u.create(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)})}function N(){confirm("Are you sure you want to delete this post?")&&u.remove(t.value._id).then(l=>{n.push({name:"User Blogposts",params:{_id:t.value.creator.target._id}})}).catch(l=>{console.log(l)})}return(l,i)=>(e.openBlock(),e.createElementBlock("article",R,[e.unref(t)?(e.openBlock(),e.createElementBlock("section",J,[e.createElementVNode("div",G,[e.createVNode(x._sfc_main,{prop:e.unref(t),content:"name",placeholder:"Enter post title",class:"h2"},null,8,["prop"])]),e.createVNode(x._sfc_main$1,{content:e.unref(t).content,onUpdate:i[0]||(i[0]=_=>e.unref(t).content=_)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",Q,[e.createElementVNode("div",W,[e.unref(r).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:i[1]||(i[1]=_=>N()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:i[2]||(i[2]=_=>k()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:i[3]||(i[3]=_=>b()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(I._sfc_main,{title:"Добавить участника",onClosePopup:v,isPopupOpen:p.value},{default:e.withCtx(()=>[e.createElementVNode("div",K,[X,e.createVNode(V._sfc_main,{onTagsChanged:i[4]||(i[4]=_=>e.unref(t).tags=_),tags:e.unref(t).tags},null,8,["tags"]),Y,e.createVNode(V.SelectMulti,{modelValue:o.value,"onUpdate:modelValue":i[5]||(i[5]=_=>o.value=_),options:e.unref(a),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),o.value?(e.openBlock(),e.createElementBlock("h5",Z,"Options:")):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("div",ee,[e.createVNode(V.Checkbox,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":i[6]||(i[6]=_=>e.unref(t).creator.hidden=_),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(g._sfc_main,{submit:B,callback:l.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])])]),_:1},8,["isPopupOpen"])]))}},C=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),te={},oe={width:"100%",height:"20rem",xmlns:"http://www.w3.org/2000/svg"},ne=e.createStaticVNode('<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),ae=[ne];function re(c,r){return e.openBlock(),e.createElementBlock("svg",oe,ae)}const se=P._export_sfc(te,[["render",re]]),le={class:"pd-thin"},q={__name:"BlogPost",setup(c){const r=w.useRoute(),n=e.ref(null),t=e.ref(!0);e.onMounted(async()=>{t.value=!0;const o=await u.read({user:g.state.user._id,url:r.params.url});n.value=o[0],t.value=!1});const a={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:x._sfc_main$3};function d(o){return o.type==="Textarea"?{innerHTML:o.content,class:"p-medium"}:o.type==="H2"?{innerHTML:o.content,class:"h3"}:o.type==="Caption"?{innerHTML:o.content}:o.type==="ImageUpload"?{src:o.content}:{}}return(o,m)=>(e.openBlock(),e.createElementBlock("section",le,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[t.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,s=>e.createVNode(se,{key:s})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!t.value&&!n.value?(e.openBlock(),e.createBlock(D._sfc_main,{key:0,title:"No Blogpost Found",description:"Currently, there are no blogposts available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!t.value&&n.value?(e.openBlock(),e.createBlock(u._sfc_main$1,{key:0,onClick:m[0]||(m[0]=s=>o.$router.push({name:"Blogpost",params:{url:n.value.url}})),blogpost:n.value,user:g.state.user._id,type:"blogpostPage",class:e.normalizeClass(["mn-medium",{"br-b br-solid br-black-transp-10":o.index!==n.value.length-1}])},{default:e.withCtx(()=>[e.createElementVNode("section",null,[n.value&&n.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value.content,(s,p)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a[s.type]),e.mergeProps({key:p,index:p,component:s,prop:s,class:s.class,content:"content"},d(s),{class:"mn-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["blogpost","user","class"])):e.createCommentVNode("",!0),e.createVNode($._sfc_main,{class:"mn-small"}),!t.value&&n.value?(e.openBlock(),e.createBlock(x._sfc_main$2,{key:1,type:"blogpost",target:n.value._id,owner:g.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}},ie=Object.freeze(Object.defineProperty({__proto__:null,default:q},Symbol.toStringTag,{value:"Module"})),M={__name:"Blog",setup(c){const r=w.useRoute(),n=w.useRouter();return r.params.category||(r.params.category="featured"),e.onMounted(()=>{if(r.query){const t=r.query,a={tags:t.tags?t.tags.split(","):[],period:t.period?t.period:"week"};u.state.filter=a}}),e.watch(()=>u.state.filter,(t,a)=>{const d={...r.query};Object.keys(a).forEach(m=>{d[m]&&delete d[m]});const o=Object.fromEntries(Object.entries(t).filter(([m,s])=>Array.isArray(s)&&s.length>0||typeof s=="string"&&s).map(([m,s])=>[m,Array.isArray(s)?s.join(","):s]));Object.assign(d,o),n.replace({query:d})},{deep:!0}),(t,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(u._sfc_main,{category:e.unref(r).params.category,user:g.state.user._id,period:e.unref(r).query.period},null,8,["category","user","period"])]))}},ce=Object.freeze(Object.defineProperty({__proto__:null,default:M},Symbol.toStringTag,{value:"Module"})),ue={class:"w-100 cols-4 t-left flex-nowrap flex"},de={key:0,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},me=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"👍",-1),pe={class:"t-semi uppercase"},ge=e.createElementVNode("br",null,null,-1),_e={key:1,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},fe=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"💬",-1),he={class:"t-semi uppercase"},ve=e.createElementVNode("br",null,null,-1),be={key:2,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},ye=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"👍",-1),we={class:"t-semi uppercase"},ke=e.createElementVNode("br",null,null,-1),xe={__name:"Activity",props:{likes:Number,comments:Number,subscriptions:Number},setup(c){return(r,n)=>(e.openBlock(),e.createElementBlock("section",ue,[c.likes?(e.openBlock(),e.createElementBlock("div",de,[me,e.createElementVNode("span",pe,[e.createTextVNode(e.toDisplayString(c.likes),1),ge,e.createTextVNode("likes")])])):e.createCommentVNode("",!0),c.comments?(e.openBlock(),e.createElementBlock("div",_e,[fe,e.createElementVNode("span",he,[e.createTextVNode(e.toDisplayString(c.comments),1),ve,e.createTextVNode("comments")])])):e.createCommentVNode("",!0),c.subscriptions?(e.openBlock(),e.createElementBlock("div",be,[ye,e.createElementVNode("span",we,[e.createTextVNode(e.toDisplayString(c.subscriptions),1),ke,e.createTextVNode("subscriptions")])])):e.createCommentVNode("",!0)]))}},Be={class:"pd-thin radius-extra flex-nowrap flex"},Ne=["innerHTML"],Ve={__name:"FieldBig",props:{input:String,placeholder:{type:String},action:{type:String,default:"Action"},placeholderTexts:{type:Object,default:()=>({en:["First placeholder","Second placeholder","Third placeholder"],ru:["Первый плейсхолдер","Второй плейсхолдер","Третий плейсхолдер"]})},typingSpeed:{type:Number,default:200},loopTyping:{type:Boolean,default:!1},enableTyping:{type:Boolean,default:!1}},emits:["update:input","action"],setup(c,{emit:r}){const n=c,{t,locale:a}=F.useI18n();let d=e.ref(0),o=e.ref(n.input),m=e.ref(n.placeholder),s=e.ref(n.enableTyping),p=e.ref(null),b=e.ref(""),v=e.ref(!0),k=null;function B(){r("action")}function N(h){r("update:input",h),b.value=h}function l(){d.value=(d.value+1)%n.placeholderTexts[a.value].length}function i(){s.value=!1,clearInterval(p.value),m.value=n.placeholder,b.value||(o.value="")}function _(){!b.value&&n.enableTyping&&(s.value=!0,m.value="",E())}function E(){let h=n.placeholderTexts[a.value][d.value],f=0,y=!1;k=setInterval(()=>{v.value=!v.value},200),p.value=setInterval(()=>{s.value&&(y?(o.value=o.value.slice(0,-1),o.value=h.substring(0,f)+(v.value&&f%2?"|":""),f--):(o.value=h.substring(0,f)+(v.value&&f%2?"|":""),f++),f>h.length&&n.loopTyping&&setTimeout(()=>{y=!0,o.value=h.substring(0,f)},333),f===0&&y&&(y=!1,l(),h=n.placeholderTexts[a.value][d.value]))},n.typingSpeed)}return e.onMounted(()=>{n.enableTyping&&E()}),e.watchEffect(()=>{s.value||(clearInterval(p.value),clearInterval(k))}),(h,f)=>(e.openBlock(),e.createElementBlock("div",Be,[e.createVNode(g.Field,{field:e.unref(o),"onUpdate:field":[f[0]||(f[0]=y=>e.isRef(o)?o.value=y:o=y),N],placeholder:e.unref(m),onInput:l,onFocus:i,onBlur:_,class:"w-100 pd-small p-big"},null,8,["field","placeholder"]),c.action?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:B,class:"w-min hover_bg-white hover-t-black t-black bg-main button",innerHTML:c.action},null,8,Ne)):e.createCommentVNode("",!0)]))}};const Ee={class:"pd-thin"},Ce={class:"o-hidden t-black bg-main pd-big radius-big"},$e=e.createElementVNode("header",{class:"t-center z-index-1 mn-big"},[e.createElementVNode("h2",{class:"mn-l-auto mn-r-auto w-m-40r mn-medium"},"Stay Updated with The Latest in Cannabis."),e.createElementVNode("p",{class:"t-transp p-big"},"Subscribe to our newsletter for news, insights, and more from the Weeder universe.")],-1),Pe={class:"z-index-1 mn-big w-100 flex-nowrap flex"},Te=e.createElementVNode("div",{class:"w-100 h-100 pos-absolute pos-t-50-negative pos-r-0 z-index-0 grid"},[e.createElementVNode("div",{class:"spiral"})],-1),Se={__name:"SubscribeNewsletter",setup(c){let r=e.ref("");return(n,t)=>(e.openBlock(),e.createElementBlock("section",Ee,[e.createElementVNode("div",Ce,[$e,e.createElementVNode("div",Pe,[e.createVNode(Ve,{input:e.unref(r),typingSpeed:75,loopTyping:!1,enableTyping:!1,placeholder:"Please enter your email",action:"Subscribe","onUpdate:input":t[0]||(t[0]=a=>e.isRef(r)?r.value=a:r=a),onAction:t[1]||(t[1]=a=>n.router.push({name:"Product Recommmendation",query:{mood:n.mood}})),class:"mn-l-auto mn-r-auto bg-white t-black w-50"},null,8,["input"])]),Te])]))}};const qe={class:"container container-joinus"},Me={class:"content"},Ie={class:"h0 mn-big"},ze=e.createElementVNode("p",{class:"w-m-33r t-center mn-small p-big"},"Together, we're shaping the future of the globals cannabis community.",-1),De=e.createElementVNode("button",{class:"bg-black t-white button"},"Join Now",-1),Fe={__name:"JoinUs",setup(c){const r=e.ref(120950),n=e.ref(["/assets/images/reviews/01.png","/assets/images/reviews/02.png","/assets/images/reviews/03.png","/assets/images/reviews/04.png","/assets/images/reviews/05.png","/assets/images/reviews/06.png"]),t=()=>{setInterval(()=>{r.value+=Math.floor(Math.random()*5)+1},330)},a={minSize:"6rem",maxSize:"10rem",minDuration:5,maxDuration:15,spawnPoints:[10,90]};e.onMounted(()=>{d(),t()});const d=()=>{n.value.forEach((o,m)=>{let s=document.createElement("img");s.src=o,s.classList.add("floating-image");let p=a.spawnPoints[Math.floor(Math.random()*a.spawnPoints.length)],b=(Math.random()-.5)*2*10;s.style.left=`${p+b}%`,s.style.animationDuration=`${Math.random()*(a.maxDuration-a.minDuration)+a.minDuration}s`,document.querySelector(".container").appendChild(s),s.addEventListener("animationiteration",()=>{const v=a.spawnPoints[Math.floor(Math.random()*a.spawnPoints.length)],k=(Math.random()-.5)*2*10;s.style.left=`${v+k}%`})})};return(o,m)=>(e.openBlock(),e.createElementBlock("div",qe,[e.createElementVNode("div",Me,[e.createElementVNode("span",Ie,e.toDisplayString(r.value.toLocaleString()),1),ze,De])]))}};const Oe=c=>(e.pushScopeId("data-v-18db0d1b"),c=c(),e.popScopeId(),c),Le={class:"community-feed"},je=Oe(()=>e.createElementVNode("h2",{class:"w-m-75r mn-auto pd-t-big pd-b-big t-center"},"Discover the Vibrant Community",-1)),Ue={class:"grid-container"},Ae={__name:"HotPosts",async setup(c){let r,n;const t=e.ref([]),a=async()=>{const o=await u.read({skip:0,limit:7,period:"year"});console.log(o),t.value=o};[r,n]=e.withAsyncContext(()=>a()),await r,n();const d=o=>{switch(o){case 0:return"grid-item-2x2";case 1:return"grid-item-2x1";case 2:return"grid-item-1x1";case 3:case 4:return"grid-item-1x1";case 6:return"grid-item-2x1";default:return""}};return(o,m)=>(e.openBlock(),e.createElementBlock("section",Le,[je,e.createElementVNode("div",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(s,p)=>(e.openBlock(),e.createBlock(u._sfc_main$1,{blogpost:s,owner:g.state.user._id,key:p,class:e.normalizeClass(d(p))},null,8,["blogpost","owner","class"]))),128))])]))}},He=P._export_sfc(Ae,[["__scopeId","data-v-18db0d1b"]]),Re=[{path:"community",component:T,meta:{title:{en:"Community",ru:"Коммьюнити"},title_hide:!0},children:[{path:":category?",name:"Blog",meta:{title:{en:"Community",ru:"Коммьюнити"},title_hide:!0},component:()=>Promise.resolve().then(()=>ce)}]},{path:"community/posts/create",name:"Create BlogPost",meta:{title:{en:"Create Post",ru:"Создать Пост"},authorize:[]},component:()=>Promise.resolve().then(()=>C)},{path:"community/posts/:url",name:"BlogPost",meta:{title:{en:"Post",ru:"Пост"}},component:()=>Promise.resolve().then(()=>ie)},{path:"community/posts/:url/edit",name:"Edit BlogPost",meta:{title:{en:"Edit Post",ru:"Редактировать пост"},authorize:[]},component:()=>Promise.resolve().then(()=>C)}];exports.CardBlogpost=u._sfc_main$1;exports.Feed=u._sfc_main;exports.FooterBlogpost=u._sfc_main$2;exports.blogpostsStore=u.blogposts;exports.reactionsStore=u.reactions;exports.Comments=x._sfc_main$2;exports.Activity=xe;exports.Blog=M;exports.BlogPost=q;exports.Community=T;exports.CreateBlogPost=S;exports.HotPosts=He;exports.JoinUs=Fe;exports.SubscribeNewsletter=Se;exports.blogpostsRoutes=Re;
@@ -1,19 +1,20 @@
1
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
2
  import { useRoute as z, useRouter as A } from "vue-router";
3
- import { S as le, _ as re } from "./Publics-bed70f0c.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-f3b2bd74.mjs";
5
- import { e as ts, f as ss, g as as } from "./Feed-f3b2bd74.mjs";
6
- import { s as w, _ as pe, F as de } from "./auth-962e3b73.mjs";
7
- import { _ as me, a as ge, b as _e, c as he } from "./Image-58efaf35.mjs";
8
- import { _ as fe } from "./Popup-709634dc.mjs";
9
- import { _ as ve, S as be, C as ye } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-e60b6b7d.mjs";
10
- import { a as we } from "./organizations-8408770b.mjs";
3
+ import { S as le, _ as re } from "./Publics-640d32fc.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-d78d4b91.mjs";
5
+ import { e as ss, f as as, g as os } from "./Feed-d78d4b91.mjs";
6
+ import { s as w, _ as pe, F as de } from "./auth-5cd34aae.mjs";
7
+ import { _ as me, a as ge, b as _e, c as he } from "./Image-ad6d4f0f.mjs";
8
+ import { _ as fe } from "./Popup-f7a5e86b.mjs";
9
+ import { _ as ve, S as be, C as ye } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-579e2c7a.mjs";
10
+ import { a as we } from "./organizations-81e762e7.mjs";
11
11
  import { _ as xe } from "./EmptyState-34d85f10.mjs";
12
12
  import { _ as X } from "./_plugin-vue_export-helper-dad06003.mjs";
13
13
  import { useI18n as $e } from "vue-i18n";
14
14
  import "./globals-96ba60e4.mjs";
15
- import "./CardOrganization-522845c7.mjs";
16
- import "./ButtonFollow-f0cefb85.mjs";
15
+ import "./CardOrganization-e530c9d5.mjs";
16
+ import "./ButtonFollow-23c4d9fc.mjs";
17
+ import "./index-4e469a71.mjs";
17
18
  import "./Chips-03ff0c34.mjs";
18
19
  import "./IconEdit-eacf3856.mjs";
19
20
  import "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
@@ -393,7 +394,7 @@ const Ge = /* @__PURE__ */ X(Ve, [["render", Je]]), Qe = { class: "pd-thin" }, W
393
394
  }, 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 = {
394
395
  key: 2,
395
396
  class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
396
- }, ut = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "👍", -1), ct = { class: "t-semi uppercase" }, pt = /* @__PURE__ */ o("br", null, null, -1), Qt = {
397
+ }, ut = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "👍", -1), ct = { class: "t-semi uppercase" }, pt = /* @__PURE__ */ o("br", null, null, -1), Wt = {
397
398
  __name: "Activity",
398
399
  props: {
399
400
  likes: Number,
@@ -519,7 +520,7 @@ const _t = { class: "pd-thin" }, ht = { class: "o-hidden t-black bg-main pd-big
519
520
  /* @__PURE__ */ o("p", { class: "t-transp p-big" }, "Subscribe to our newsletter for news, insights, and more from the Weeder universe.")
520
521
  ], -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" }, [
521
522
  /* @__PURE__ */ o("div", { class: "spiral" })
522
- ], -1), Wt = {
523
+ ], -1), Kt = {
523
524
  __name: "SubscribeNewsletter",
524
525
  setup(d) {
525
526
  let n = g("");
@@ -544,7 +545,7 @@ const _t = { class: "pd-thin" }, ht = { class: "o-hidden t-black bg-main pd-big
544
545
  ]));
545
546
  }
546
547
  };
547
- 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), Kt = {
548
+ 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), Xt = {
548
549
  __name: "JoinUs",
549
550
  setup(d) {
550
551
  const n = g(120950), s = g([
@@ -626,7 +627,7 @@ const Pt = (d) => (oe("data-v-18db0d1b"), d = d(), ne(), d), Ct = { class: "comm
626
627
  ])
627
628
  ]));
628
629
  }
629
- }, Xt = /* @__PURE__ */ X(Bt, [["__scopeId", "data-v-18db0d1b"]]), Yt = [
630
+ }, Yt = /* @__PURE__ */ X(Bt, [["__scopeId", "data-v-18db0d1b"]]), Zt = [
630
631
  {
631
632
  path: "community",
632
633
  component: Ie,
@@ -687,7 +688,7 @@ const Pt = (d) => (oe("data-v-18db0d1b"), d = d(), ne(), d), Ct = { class: "comm
687
688
  }
688
689
  ];
689
690
  export {
690
- Qt as Activity,
691
+ Wt as Activity,
691
692
  Xe as Blog,
692
693
  We as BlogPost,
693
694
  K as CardBlogpost,
@@ -695,11 +696,11 @@ export {
695
696
  Ie as Community,
696
697
  Ee as CreateBlogPost,
697
698
  ce as Feed,
698
- ts as FooterBlogpost,
699
- Xt as HotPosts,
700
- Kt as JoinUs,
701
- Wt as SubscribeNewsletter,
702
- Yt as blogpostsRoutes,
703
- ss as blogpostsStore,
704
- as as reactionsStore
699
+ ss as FooterBlogpost,
700
+ Yt as HotPosts,
701
+ Xt as JoinUs,
702
+ Kt as SubscribeNewsletter,
703
+ Zt as blogpostsRoutes,
704
+ as as blogpostsStore,
705
+ os as reactionsStore
705
706
  };
@@ -0,0 +1,7 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ $props: {
3
+ readonly images?: unknown[] | undefined;
4
+ };
5
+ $emit: (event: "update", ...args: any[]) => void;
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
7
+ export default _default;