@ozdao/prometheus-framework 0.1.30 → 0.1.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (202) hide show
  1. package/dist/BackofficeGallery-02c9721b.mjs +304 -0
  2. package/dist/BackofficeGallery-1d117a40.js +1 -0
  3. package/dist/BackofficeReports-cb4b180d.mjs +44 -0
  4. package/dist/BackofficeReports-d021871f.js +1 -0
  5. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-505c3ca5.js +1 -0
  6. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-b1873cb7.mjs +1945 -0
  7. package/dist/Button-2ca405bd.js +1 -0
  8. package/dist/Button-c59d387c.mjs +283 -0
  9. package/dist/Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  10. package/dist/Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  11. package/dist/ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-0ea8fbf8.js +1 -0
  12. package/dist/ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-4ed993c7.mjs +1 -0
  13. package/dist/CardOrganization-18c1e3fa.mjs +297 -0
  14. package/dist/CardOrganization-26714a5e.mjs +297 -0
  15. package/dist/CardOrganization-7d679e75.js +1 -0
  16. package/dist/CardOrganization-88c6d479.js +1 -0
  17. package/dist/Chips-0e5bdd54.js +1 -0
  18. package/dist/Chips-2ada5eda.mjs +200 -0
  19. package/dist/Chips-5e32c8cb.mjs +200 -0
  20. package/dist/Chips-8d0a1d2c.js +1 -0
  21. package/dist/Dashboard-239fb7a6.mjs +52 -0
  22. package/dist/Dashboard-94267906.js +1 -0
  23. package/dist/EULA-8265b0cf.mjs +4218 -0
  24. package/dist/EULA-cbb27503.js +1 -0
  25. package/dist/Feed-275a14d8.mjs +371 -0
  26. package/dist/Feed-505b3fa8.mjs +383 -0
  27. package/dist/Feed-66095e66.js +1 -0
  28. package/dist/Feed-76fc4475.mjs +383 -0
  29. package/dist/Feed-d0da2943.js +1 -0
  30. package/dist/Feed-e55bc6fa.js +1 -0
  31. package/dist/Feed-ee36f80b.js +1 -0
  32. package/dist/Feed-ef6c6ca3.mjs +371 -0
  33. package/dist/IconEdit-1b7b5874.js +1 -0
  34. package/dist/IconEdit-680dc269.mjs +339 -0
  35. package/dist/IconEdit-c98d3d06.mjs +339 -0
  36. package/dist/IconEdit-e4d0cc6e.js +1 -0
  37. package/dist/Image-052a3cc2.mjs +480 -0
  38. package/dist/Image-2d2e606a.js +9 -0
  39. package/dist/Image-95c0fb07.mjs +480 -0
  40. package/dist/Image-c90ee624.js +9 -0
  41. package/dist/MenuItem-0b249b94.mjs +93 -0
  42. package/dist/MenuItem-8b70d2cf.js +1 -0
  43. package/dist/Product-4b58701f.js +7 -0
  44. package/dist/Product-6aa1c9ee.mjs +844 -0
  45. package/dist/Product-6ca8d04d.js +7 -0
  46. package/dist/Product-a6251018.mjs +844 -0
  47. package/dist/ProductEdit-2e309add.js +1 -0
  48. package/dist/ProductEdit-3ff2af92.js +1 -0
  49. package/dist/ProductEdit-6abcc97b.mjs +306 -0
  50. package/dist/ProductEdit-f901314c.mjs +306 -0
  51. package/dist/ProfileBlogposts-57931834.mjs +70 -0
  52. package/dist/ProfileBlogposts-62d5e809.mjs +70 -0
  53. package/dist/ProfileBlogposts-af88ce98.js +1 -0
  54. package/dist/ProfileBlogposts-c31917ec.js +1 -0
  55. package/dist/ProfileEvents-588eadf9.js +1 -0
  56. package/dist/ProfileEvents-89471c05.js +1 -0
  57. package/dist/ProfileEvents-e070d9d4.mjs +62 -0
  58. package/dist/ProfileEvents-ed7f9603.mjs +62 -0
  59. package/dist/ProfileOrganizations-7911deec.mjs +219 -0
  60. package/dist/ProfileOrganizations-ae258581.js +1 -0
  61. package/dist/ProfileOrganizations-bee6a3ae.js +1 -0
  62. package/dist/ProfileOrganizations-db313b5e.mjs +219 -0
  63. package/dist/Publics-24f055eb.js +1 -0
  64. package/dist/Publics-50c0ff6c.js +1 -0
  65. package/dist/Publics-b1cbfd97.mjs +45 -0
  66. package/dist/Publics-f34131bf.mjs +45 -0
  67. package/dist/Select-11ddabf5.mjs +79 -0
  68. package/dist/Select-3ca5ab39.js +1 -0
  69. package/dist/Socials-3fe01af1.mjs +275 -0
  70. package/dist/Socials-9b2d27a6.js +1 -0
  71. package/dist/Socials-b19d0cb1.js +1 -0
  72. package/dist/Socials-becde7dc.mjs +275 -0
  73. package/dist/addMembersQuantity-ea216f92.mjs +85 -0
  74. package/dist/addMembersQuantity-f922d82b.js +84 -0
  75. package/dist/auth-98fe3efb.mjs +612 -0
  76. package/dist/auth-acbe3ae1.js +7 -0
  77. package/dist/auth.client.cjs +7 -8
  78. package/dist/auth.client.js +378 -379
  79. package/dist/auth.validation-495e9d6d.js +1 -0
  80. package/dist/auth.validation-e265b496.mjs +23 -0
  81. package/dist/backoffice.client.cjs +1 -1
  82. package/dist/backoffice.client.js +55 -28
  83. package/dist/click-outside-0b0727d1.js +2 -0
  84. package/dist/click-outside-6101836c.mjs +19 -0
  85. package/dist/community.client.cjs +1 -1
  86. package/dist/community.client.js +121 -121
  87. package/dist/community.server.js +35 -5
  88. package/dist/community.server.mjs +35 -5
  89. package/dist/components/Button/Button.vue.d.ts +3 -0
  90. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  91. package/dist/components/CardHeader/CardHeader.vue.d.ts +3 -0
  92. package/dist/components/Dropdown/Dropdown.vue.d.ts +3 -0
  93. package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
  94. package/dist/components/Field/Field.vue.d.ts +1 -1
  95. package/dist/components/FieldPhone/FieldPhone(script-setup).vue.d.ts +3 -3
  96. package/dist/components/Popup/Popup.vue.d.ts +2 -1
  97. package/dist/components/Popup/Popup.vue.d.ts.map +1 -1
  98. package/dist/components/Select/Select.vue.d.ts +1 -1
  99. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  100. package/dist/components/Upload/Upload.vue.d.ts +1 -1
  101. package/dist/events.client.cjs +2 -2
  102. package/dist/events.client.js +219 -217
  103. package/dist/events.server.js +1 -0
  104. package/dist/events.server.mjs +1 -0
  105. package/dist/legal.client.cjs +1 -1
  106. package/dist/legal.client.js +2565 -2545
  107. package/dist/main.css +1 -1
  108. package/dist/main.d.ts +1 -1
  109. package/dist/modules/backoffice/components/pages/Dashboard.vue.d.ts +6 -0
  110. package/dist/modules/icons/navigation/IconCross.vue.d.ts +4 -0
  111. package/dist/modules/legal/components/pages/legal/EULA.vue.d.ts +2 -0
  112. package/dist/modules/organizations/components/elements/ButtonFollow.vue.d.ts +1 -1
  113. package/dist/modules/organizations/components/elements/ButtonToggleMembership.vue.d.ts +12 -0
  114. package/dist/modules/organizations/components/sections/DetailsTab.vue.d.ts +2 -58
  115. package/dist/modules/organizations/components/sections/Feed.vue.d.ts +1 -1
  116. package/dist/modules/reports/components/pages/BackofficeReports.vue.d.ts +2 -0
  117. package/dist/modules/reports/components/sections/FormReport.vue.d.ts +75 -0
  118. package/dist/modules/reports/store/reports.d.ts +41 -0
  119. package/dist/organizations-a241b21d.js +1 -0
  120. package/dist/organizations-ea9de495.mjs +122 -0
  121. package/dist/organizations.client-292e8444.js +3 -0
  122. package/dist/organizations.client-6a69b54a.js +3 -0
  123. package/dist/organizations.client-6fc91683.mjs +3072 -0
  124. package/dist/organizations.client-c288ff44.mjs +3072 -0
  125. package/dist/organizations.client.cjs +1 -1
  126. package/dist/organizations.client.js +51 -49
  127. package/dist/organizations.server.js +20 -28
  128. package/dist/organizations.server.mjs +20 -28
  129. package/dist/prometheus-framework.cjs.js +19 -19
  130. package/dist/prometheus-framework.es.js +1635 -1608
  131. package/dist/reports-270f69df.js +1 -0
  132. package/dist/reports-79cd9459.mjs +91 -0
  133. package/dist/reports.client.cjs +1 -0
  134. package/dist/reports.client.js +8 -0
  135. package/dist/reports.server.js +159 -0
  136. package/dist/reports.server.mjs +160 -0
  137. package/dist/states.validation-02ba0aee.js +1 -0
  138. package/dist/states.validation-e5f4fa3a.mjs +13 -0
  139. package/dist/style.css +1 -1
  140. package/dist/users.client.cjs +1 -1
  141. package/dist/users.client.js +286 -242
  142. package/dist/users.server.js +6 -18
  143. package/dist/users.server.mjs +6 -18
  144. package/package.json +9 -1
  145. package/src/components/Button/Button.vue +66 -60
  146. package/src/components/CardHeader/CardHeader.vue +51 -50
  147. package/src/components/Dropdown/Dropdown.vue +28 -12
  148. package/src/components/FieldPhone/click-outside.js +0 -48
  149. package/src/components/Popup/Popup.vue +74 -23
  150. package/src/components/Select/Select.vue +10 -6
  151. package/src/main.ts +1 -1
  152. package/src/modules/auth/components/pages/EnterPassword.vue +6 -0
  153. package/src/modules/auth/store/auth.js +1 -1
  154. package/src/modules/backoffice/components/layouts/Backoffice.vue +3 -3
  155. package/src/modules/backoffice/components/pages/Dashboard.vue +62 -0
  156. package/src/modules/backoffice/router/backoffice.js +26 -0
  157. package/src/modules/community/components/blocks/CardBlogpost.vue +3 -0
  158. package/src/modules/community/components/layouts/Community.vue +4 -4
  159. package/src/modules/community/components/pages/CreateBlogPost.vue +27 -28
  160. package/src/modules/community/components/sections/Comments.vue +4 -2
  161. package/src/modules/community/components/sections/Feed.vue +1 -1
  162. package/src/modules/community/controllers/blog.controller.js +22 -3
  163. package/src/modules/community/controllers/comments.controller.js +23 -5
  164. package/src/modules/events/components/blocks/CardEvent.vue +4 -0
  165. package/src/modules/events/components/pages/EditEvent.vue +27 -28
  166. package/src/modules/events/components/sections/Feed.vue +1 -1
  167. package/src/modules/events/controllers/events.controller.js +3 -0
  168. package/src/modules/gallery/components/sections/BackofficeGallery.vue +7 -23
  169. package/src/modules/icons/navigation/IconCross.vue +22 -0
  170. package/src/modules/legal/components/pages/Legal.vue +3 -0
  171. package/src/modules/legal/components/pages/legal/EULA.vue +2148 -0
  172. package/src/modules/legal/router/legal.js +11 -4
  173. package/src/modules/middlewares/client/auth.validation.js +14 -0
  174. package/src/modules/mobile/components/Menu/Menu.vue +1 -1
  175. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  176. package/src/modules/organizations/components/elements/ButtonFollow.vue +9 -7
  177. package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +101 -0
  178. package/src/modules/organizations/components/pages/Organization.vue +1 -34
  179. package/src/modules/organizations/components/sections/DetailsTab.vue +86 -8
  180. package/src/modules/organizations/controllers/memberships.controller.js +10 -7
  181. package/src/modules/organizations/controllers/organizations.controller.js +9 -20
  182. package/src/modules/organizations/controllers/utils/addMembersQuantity.js +21 -0
  183. package/src/modules/organizations/controllers/utils/addUserStatusFields.js +65 -0
  184. package/src/modules/organizations/controllers/utils/excludeBlockedMembers.js +18 -0
  185. package/src/modules/organizations/models/membership.model.js +5 -5
  186. package/src/modules/organizations/store/memberships.js +6 -6
  187. package/src/modules/organizations/store/organizations.js +0 -1
  188. package/src/modules/products/products.server.js +5 -0
  189. package/src/modules/reports/components/pages/BackofficeReports.vue +67 -0
  190. package/src/modules/reports/components/sections/FormReport.vue +116 -0
  191. package/src/modules/reports/controllers/reports.controller.js +67 -0
  192. package/src/modules/reports/models/report.model.js +58 -0
  193. package/src/modules/reports/reports.client.js +17 -0
  194. package/src/modules/reports/reports.server.js +13 -0
  195. package/src/modules/reports/routes/reports.routes.js +43 -0
  196. package/src/modules/reports/store/reports.js +118 -0
  197. package/src/modules/users/components/pages/Profile.vue +57 -10
  198. package/src/modules/users/controllers/users.controller.js +6 -19
  199. package/src/styles/base/all.scss +2 -0
  200. package/src/styles/layout.scss +39 -63
  201. package/src/styles/theme.scss +0 -1
  202. package/src/styles/components/popup.scss +0 -55
@@ -0,0 +1 @@
1
+ "use strict";const u=require("vue-router"),t=require("./auth-acbe3ae1.js");u.useRouter();function o(e,i,s){if(t.state.access.status!==!0)return s("/auth/signin");s()}function n(e,i,s){if(t.state.access.roles.includes("ROLE_ADMIN")!==!0)return s("/404");s()}function c(e,i,s){if(t.state.access.status)return s("/profile/"+t.state.user._id);s()}exports.requiresAdmin=n;exports.requiresAuth=o;exports.requiresNoAuth=c;
@@ -0,0 +1,23 @@
1
+ import { useRouter as u } from "vue-router";
2
+ import { s as i } from "./auth-98fe3efb.mjs";
3
+ u();
4
+ function c(r, o, s) {
5
+ if (i.access.status !== !0)
6
+ return s("/auth/signin");
7
+ s();
8
+ }
9
+ function a(r, o, s) {
10
+ if (i.access.roles.includes("ROLE_ADMIN") !== !0)
11
+ return s("/404");
12
+ s();
13
+ }
14
+ function f(r, o, s) {
15
+ if (i.access.status)
16
+ return s("/profile/" + i.user._id);
17
+ s();
18
+ }
19
+ export {
20
+ c as a,
21
+ f as b,
22
+ a as r
23
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./_plugin-vue_export-helper-f246444f.js");const i={},l={id:"account",class:"cols-2-1_3 gap-medium pd-medium"},s={class:"pd-medium menu-tabs"},u={class:"w-100"};function m(t,o){const c=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("section",l,[e.createElementVNode("div",s,[e.createElementVNode("button",{onClick:o[0]||(o[0]=n=>t.$router.push("/account/community")),class:e.normalizeClass([{"product-tab-active":t.$route.path==="/account/community"},"mn-small product-tab"])}," Blog ",2),e.createElementVNode("button",{onClick:o[1]||(o[1]=n=>t.$router.push("/account/gallery")),class:e.normalizeClass([{"product-tab-active":t.$route.path==="/account/gallery"},"product-tab"])}," Gallery ",2)]),e.createElementVNode("div",u,[e.createVNode(c,null,{default:e.withCtx(({Component:n,route:a})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n),{ref:"page",key:a.path}))]),_:2},1024)]),_:1})])])}const d=r._export_sfc(i,[["render",m]]),p=[{path:"backoffice",component:d,children:[{path:":_id",name:"Backoffice",meta:{title:{en:"Backoffice",ru:"Управление"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./BackofficeGallery-a52a27b6.js"))}]}];exports.backofficeRoutes=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./_plugin-vue_export-helper-f246444f.js"),i=require("./auth.validation-495e9d6d.js");require("vue-router");require("./auth-acbe3ae1.js");require("./index-b41aac19.js");require("./globals-928eb13c.js");require("vue-i18n");const n={},a={id:"account",class:"cols-1 gap-medium pd-medium"},u={class:"w-100"};function s(_,m){const o=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("section",a,[e.createElementVNode("div",u,[e.createVNode(o,null,{default:e.withCtx(({Component:t,route:r})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t),{ref:"page",key:r.path}))]),_:2},1024)]),_:1})])])}const l=c._export_sfc(n,[["render",s]]),f=[{path:"backoffice",component:l,beforeEnter:[i.requiresAdmin],children:[{path:":_id",name:"Backoffice",meta:{title:{en:"Backoffice",ru:"Управление"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./Dashboard-94267906.js"))},{path:":_id/gallery",name:"Backoffice Gallery",meta:{title:{en:"Backoffice Gallery",ru:"Управление Галерей"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./BackofficeGallery-1d117a40.js"))},{path:":_id/reports",name:"Backoffice Reports",meta:{title:{en:"Backoffice Reports",ru:"Управление Жалобами"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./BackofficeReports-d021871f.js"))}]}];exports.backofficeRoutes=f;
@@ -1,33 +1,29 @@
1
- import { resolveComponent as l, openBlock as c, createElementBlock as m, createElementVNode as o, normalizeClass as a, createVNode as r, withCtx as i, Transition as p, createBlock as d, resolveDynamicComponent as f } from "vue";
2
- import { _ } from "./_plugin-vue_export-helper-dad06003.mjs";
3
- const k = {}, v = {
1
+ import { resolveComponent as n, openBlock as e, createElementBlock as a, createElementVNode as m, createVNode as o, withCtx as t, Transition as p, createBlock as f, resolveDynamicComponent as s } from "vue";
2
+ import { _ as l } from "./_plugin-vue_export-helper-dad06003.mjs";
3
+ import { r as _ } from "./auth.validation-e265b496.mjs";
4
+ import "vue-router";
5
+ import "./auth-98fe3efb.mjs";
6
+ import "./index-a661083c.mjs";
7
+ import "./globals-96ba60e4.mjs";
8
+ import "vue-i18n";
9
+ const u = {}, d = {
4
10
  id: "account",
5
- class: "cols-2-1_3 gap-medium pd-medium"
6
- }, h = { class: "pd-medium menu-tabs" }, y = { class: "w-100" };
7
- function b(e, t) {
8
- const s = l("router-view");
9
- return c(), m("section", v, [
10
- o("div", h, [
11
- o("button", {
12
- onClick: t[0] || (t[0] = (n) => e.$router.push("/account/community")),
13
- class: a([{ "product-tab-active": e.$route.path === "/account/community" }, "mn-small product-tab"])
14
- }, " Blog ", 2),
15
- o("button", {
16
- onClick: t[1] || (t[1] = (n) => e.$router.push("/account/gallery")),
17
- class: a([{ "product-tab-active": e.$route.path === "/account/gallery" }, "product-tab"])
18
- }, " Gallery ", 2)
19
- ]),
20
- o("div", y, [
21
- r(s, null, {
22
- default: i(({ Component: n, route: u }) => [
23
- r(p, {
11
+ class: "cols-1 gap-medium pd-medium"
12
+ }, k = { class: "w-100" };
13
+ function h(y, v) {
14
+ const c = n("router-view");
15
+ return e(), a("section", d, [
16
+ m("div", k, [
17
+ o(c, null, {
18
+ default: t(({ Component: r, route: i }) => [
19
+ o(p, {
24
20
  name: "scaleIn",
25
21
  mode: "out-in"
26
22
  }, {
27
- default: i(() => [
28
- (c(), d(f(n), {
23
+ default: t(() => [
24
+ (e(), f(s(r), {
29
25
  ref: "page",
30
- key: u.path
26
+ key: i.path
31
27
  }))
32
28
  ]),
33
29
  _: 2
@@ -38,9 +34,12 @@ function b(e, t) {
38
34
  ])
39
35
  ]);
40
36
  }
41
- const B = /* @__PURE__ */ _(k, [["render", b]]), $ = [{
37
+ const B = /* @__PURE__ */ l(u, [["render", h]]), G = [{
42
38
  path: "backoffice",
43
39
  component: B,
40
+ beforeEnter: [
41
+ _
42
+ ],
44
43
  children: [{
45
44
  path: ":_id",
46
45
  name: "Backoffice",
@@ -53,10 +52,38 @@ const B = /* @__PURE__ */ _(k, [["render", b]]), $ = [{
53
52
  },
54
53
  component: () => import(
55
54
  /* webpackChunkName: 'BackofficeGallery' */
56
- "./BackofficeGallery-0e0132f5.mjs"
55
+ "./Dashboard-239fb7a6.mjs"
56
+ )
57
+ }, {
58
+ path: ":_id/gallery",
59
+ name: "Backoffice Gallery",
60
+ meta: {
61
+ title: {
62
+ en: "Backoffice Gallery",
63
+ ru: "Управление Галерей"
64
+ },
65
+ authorize: []
66
+ },
67
+ component: () => import(
68
+ /* webpackChunkName: 'BackofficeGallery' */
69
+ "./BackofficeGallery-02c9721b.mjs"
70
+ )
71
+ }, {
72
+ path: ":_id/reports",
73
+ name: "Backoffice Reports",
74
+ meta: {
75
+ title: {
76
+ en: "Backoffice Reports",
77
+ ru: "Управление Жалобами"
78
+ },
79
+ authorize: []
80
+ },
81
+ component: () => import(
82
+ /* webpackChunkName: 'BackofficeGallery' */
83
+ "./BackofficeReports-cb4b180d.mjs"
57
84
  )
58
85
  }]
59
86
  }];
60
87
  export {
61
- $ as backofficeRoutes
88
+ G as backofficeRoutes
62
89
  };
@@ -0,0 +1,2 @@
1
+ "use strict";const i={beforeMount(t,c,o){if(typeof c.value!="function"){const e=o.context.name;let n=`[Vue-click-outside:] provided expression ${c.expression}
2
+ is not a function, but has to be`;e&&(n+=`Found in component ${e}`),console.warn(n)}t.clickOutsideEvent=function(e){t===e.target||t.contains(e.target)||c.value(e,t)},document.body.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.body.removeEventListener("click",t.clickOutsideEvent)}};exports.clickOutside=i;
@@ -0,0 +1,19 @@
1
+ const i = {
2
+ beforeMount(t, o, c) {
3
+ if (typeof o.value != "function") {
4
+ const e = c.context.name;
5
+ let n = `[Vue-click-outside:] provided expression ${o.expression}
6
+ is not a function, but has to be`;
7
+ e && (n += `Found in component ${e}`), console.warn(n);
8
+ }
9
+ t.clickOutsideEvent = function(e) {
10
+ t === e.target || t.contains(e.target) || o.value(e, t);
11
+ }, document.body.addEventListener("click", t.clickOutsideEvent);
12
+ },
13
+ unmounted(t) {
14
+ document.body.removeEventListener("click", t.clickOutsideEvent);
15
+ }
16
+ };
17
+ export {
18
+ i as c
19
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("vue-router"),z=require("./Select-b9299fb6.js"),d=require("./Feed-aee74095.js"),f=require("./auth-2f9b2dfc.js"),x=require("./Image-448f9228.js"),$=require("./Chips-493042f7.js"),V=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-f3d37f29.js"),P=require("./Button-ee08e6bf.js"),D=require("./organizations-bb8f676d.js"),F=require("./EmptyState-7658d7d6.js"),T=require("./_plugin-vue_export-helper-f246444f.js"),O=require("./Publics-4438ca51.js"),L=require("vue-i18n");require("./globals-928eb13c.js");require("./Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-0ea8fbf8.js");require("./IconEdit-4cfe2115.js");require("./index-7ecbf72a.js");require("./vue-draggable-next.esm-bundler-80731ae0.js");require("./CardOrganization-bf366e4e.js");require("./ButtonFollow-7c0180b3.js");const j={class:"min-h-100vh pd-thin"},U={class:"mn-thin flex-v-center t-left flex-nowrap flex"},A={class:"flex-v-center flex-nowrap flex t-left"},H=e.createElementVNode("span",{class:""},"Topics for ",-1),R={class:"w-100 bg-grey pd-small radius-big mn-semi flex-nowrap flex"},J={class:""},S={__name:"Community",setup(c){const r=w.useRoute(),n=w.useRouter();return(t,a)=>{const u=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("header",U,[e.createElementVNode("h2",A,[H,e.createVNode(z.Select,{options:["today","week","month","year"],select:d.state.filter.period,"onUpdate:select":a[0]||(a[0]=o=>d.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",R,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="featured"},"mn-r-small t-medium pd-thin 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-thin 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-thin radius-small"]),onClick:a[3]||(a[3]=o=>e.unref(n).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),f.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-thin 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",J,[e.createVNode(u,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})])])}}},G={class:"pd-thin"},Q={key:0,class:"h-100 w-100 bg-grey pd-big radius-big"},W={class:"w-full h-full"},K={key:1,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},X={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},Y={class:"w-m-66r t-left pd-big bg-white radius-big"},Z=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),ee=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),te={key:0,class:"mn-thin"},oe={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},q={__name:"CreateBlogPost",setup(c){const r=w.useRoute(),n=w.useRouter();let t=e.ref(null),a=e.ref(null);const u=e.ref([]),o=e.ref(null);e.onMounted(async()=>{if(r.params.url){const i=await d.read({user:f.state.user._id,url:r.params.url});t.value=i.pop()}else d.clean(),t.value=d.state.current;t.value.owner||(t.value.owner={target:f.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:f.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 D.actions.read({user:f.state.user._id,postable:f.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=>!u.value.some(i=>i.text===l.text)));const p=e.ref(!1);function b(){p.value=!0}function v(){p.value=!1}function k(){u.value.length>0&&u.value.map(l=>l.text),t.value.status="draft",r.params.url?d.update(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)}):d.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?d.update(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)}):d.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?")&&d.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",G,[e.unref(t)?(e.openBlock(),e.createElementBlock("section",Q,[e.createElementVNode("div",W,[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]=g=>e.unref(t).content=g)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",K,[e.createElementVNode("div",X,[e.unref(r).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:i[1]||(i[1]=g=>N()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:i[2]||(i[2]=g=>k()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:i[3]||(i[3]=g=>b()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode($._sfc_main$2,{title:"Добавить участника",onClosePopup:v,isPopupOpen:p.value},{default:e.withCtx(()=>[e.createElementVNode("div",Y,[Z,e.createVNode(V._sfc_main,{onTagsChanged:i[4]||(i[4]=g=>e.unref(t).tags=g),tags:e.unref(t).tags},null,8,["tags"]),ee,e.createVNode(V.SelectMulti,{modelValue:o.value,"onUpdate:modelValue":i[5]||(i[5]=g=>o.value=g),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",te,"Options:")):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("div",oe,[e.createVNode(V.Checkbox,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":i[6]||(i[6]=g=>e.unref(t).creator.hidden=g),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(P._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:q},Symbol.toStringTag,{value:"Module"})),ne={},ae={width:"100%",height:"20rem",xmlns:"http://www.w3.org/2000/svg"},re=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),se=[re];function le(c,r){return e.openBlock(),e.createElementBlock("svg",ae,se)}const ie=T._export_sfc(ne,[["render",le]]),ce={class:"pd-thin"},M={__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 d.read({user:f.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 u(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",ce,[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(ie,{key:s})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!t.value&&!n.value?(e.openBlock(),e.createBlock(F._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(d._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:f.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"},u(s),{class:"mn-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["blogpost","user","class"])):e.createCommentVNode("",!0),e.createVNode(O._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:f.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}},ue=Object.freeze(Object.defineProperty({__proto__:null,default:M},Symbol.toStringTag,{value:"Module"})),I={__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"};d.state.filter=a}}),e.watch(()=>d.state.filter,(t,a)=>{const u={...r.query};Object.keys(a).forEach(m=>{u[m]&&delete u[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(u,o),n.replace({query:u})},{deep:!0}),(t,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(d._sfc_main,{category:e.unref(r).params.category,user:f.state.user._id,period:e.unref(r).query.period},null,8,["category","user","period"])]))}},de=Object.freeze(Object.defineProperty({__proto__:null,default:I},Symbol.toStringTag,{value:"Module"})),me={class:"w-100 cols-4 t-left flex-nowrap flex"},pe={key:0,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},ge=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"👍",-1),_e={class:"t-semi uppercase"},fe=e.createElementVNode("br",null,null,-1),he={key:1,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},ve=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"💬",-1),be={class:"t-semi uppercase"},ye=e.createElementVNode("br",null,null,-1),we={key:2,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},ke=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"👍",-1),xe={class:"t-semi uppercase"},Be=e.createElementVNode("br",null,null,-1),Ne={__name:"Activity",props:{likes:Number,comments:Number,subscriptions:Number},setup(c){return(r,n)=>(e.openBlock(),e.createElementBlock("section",me,[c.likes?(e.openBlock(),e.createElementBlock("div",pe,[ge,e.createElementVNode("span",_e,[e.createTextVNode(e.toDisplayString(c.likes),1),fe,e.createTextVNode("likes")])])):e.createCommentVNode("",!0),c.comments?(e.openBlock(),e.createElementBlock("div",he,[ve,e.createElementVNode("span",be,[e.createTextVNode(e.toDisplayString(c.comments),1),ye,e.createTextVNode("comments")])])):e.createCommentVNode("",!0),c.subscriptions?(e.openBlock(),e.createElementBlock("div",we,[ke,e.createElementVNode("span",xe,[e.createTextVNode(e.toDisplayString(c.subscriptions),1),Be,e.createTextVNode("subscriptions")])])):e.createCommentVNode("",!0)]))}},Ve={class:"pd-thin radius-extra flex-nowrap flex"},Ee=["innerHTML"],Ce={__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}=L.useI18n();let u=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(){u.value=(u.value+1)%n.placeholderTexts[a.value].length}function i(){s.value=!1,clearInterval(p.value),m.value=n.placeholder,b.value||(o.value="")}function g(){!b.value&&n.enableTyping&&(s.value=!0,m.value="",E())}function E(){let h=n.placeholderTexts[a.value][u.value],_=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,_)+(v.value&&_%2?"|":""),_--):(o.value=h.substring(0,_)+(v.value&&_%2?"|":""),_++),_>h.length&&n.loopTyping&&setTimeout(()=>{y=!0,o.value=h.substring(0,_)},333),_===0&&y&&(y=!1,l(),h=n.placeholderTexts[a.value][u.value]))},n.typingSpeed)}return e.onMounted(()=>{n.enableTyping&&E()}),e.watchEffect(()=>{s.value||(clearInterval(p.value),clearInterval(k))}),(h,_)=>(e.openBlock(),e.createElementBlock("div",Ve,[e.createVNode(P.Field,{field:e.unref(o),"onUpdate:field":[_[0]||(_[0]=y=>e.isRef(o)?o.value=y:o=y),N],placeholder:e.unref(m),onInput:l,onFocus:i,onBlur:g,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,Ee)):e.createCommentVNode("",!0)]))}};const $e={class:"pd-thin"},Pe={class:"o-hidden t-black bg-main pd-big radius-big"},Te=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),Se={class:"z-index-1 mn-big w-100 flex-nowrap flex"},qe=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),Me={__name:"SubscribeNewsletter",setup(c){let r=e.ref("");return(n,t)=>(e.openBlock(),e.createElementBlock("section",$e,[e.createElementVNode("div",Pe,[Te,e.createElementVNode("div",Se,[e.createVNode(Ce,{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"])]),qe])]))}};const Ie={class:"container container-joinus"},ze={class:"content"},De={class:"h0 mn-big"},Fe=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),Oe=e.createElementVNode("button",{class:"bg-black t-white button"},"Join Now",-1),Le={__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(()=>{u(),t()});const u=()=>{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",Ie,[e.createElementVNode("div",ze,[e.createElementVNode("span",De,e.toDisplayString(r.value.toLocaleString()),1),Fe,Oe])]))}};const je=c=>(e.pushScopeId("data-v-18db0d1b"),c=c(),e.popScopeId(),c),Ue={class:"community-feed"},Ae=je(()=>e.createElementVNode("h2",{class:"w-m-75r mn-auto pd-t-big pd-b-big t-center"},"Discover the Vibrant Community",-1)),He={class:"grid-container"},Re={__name:"HotPosts",async setup(c){let r,n;const t=e.ref([]),a=async()=>{const o=await d.read({skip:0,limit:7,period:"year"});console.log(o),t.value=o};[r,n]=e.withAsyncContext(()=>a()),await r,n();const u=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",Ue,[Ae,e.createElementVNode("div",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(s,p)=>(e.openBlock(),e.createBlock(d._sfc_main$1,{blogpost:s,owner:f.state.user._id,key:p,class:e.normalizeClass(u(p))},null,8,["blogpost","owner","class"]))),128))])]))}},Je=T._export_sfc(Re,[["__scopeId","data-v-18db0d1b"]]),Ge=[{path:"community",component:S,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(()=>de)}]},{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(()=>ue)},{path:"community/posts/:url/edit",name:"Edit BlogPost",meta:{title:{en:"Edit Post",ru:"Редактировать пост"},authorize:[]},component:()=>Promise.resolve().then(()=>C)}];exports.CardBlogpost=d._sfc_main$1;exports.Feed=d._sfc_main;exports.FooterBlogpost=d._sfc_main$2;exports.blogpostsStore=d.blogposts;exports.Comments=x._sfc_main$2;exports.reactionsStore=$.reactions;exports.Activity=Ne;exports.Blog=I;exports.BlogPost=M;exports.Community=S;exports.CreateBlogPost=q;exports.HotPosts=Je;exports.JoinUs=Le;exports.SubscribeNewsletter=Me;exports.blogpostsRoutes=Ge;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("vue-router"),I=require("./Select-3ca5ab39.js"),d=require("./Feed-d0da2943.js"),_=require("./auth-acbe3ae1.js"),x=require("./Image-2d2e606a.js"),z=require("./IconEdit-1b7b5874.js"),V=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-505c3ca5.js"),$=require("./Button-2ca405bd.js"),D=require("./organizations-a241b21d.js"),F=require("./EmptyState-7658d7d6.js"),P=require("./_plugin-vue_export-helper-f246444f.js"),O=require("./Publics-24f055eb.js"),L=require("vue-i18n");require("./globals-928eb13c.js");const j=require("./Chips-0e5bdd54.js");require("./index-b41aac19.js");require("./vue-draggable-next.esm-bundler-80731ae0.js");require("./reports-270f69df.js");require("./click-outside-0b0727d1.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./CardOrganization-88c6d479.js");require("./ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-0ea8fbf8.js");const U={class:"min-h-100vh pd-thin"},A={class:"mn-thin flex-v-center t-left flex-nowrap flex"},H={class:"flex-v-center flex-nowrap flex t-left"},R=e.createElementVNode("span",{class:""},"Topics for ",-1),J={class:"w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex"},G={class:""},T={__name:"Community",setup(c){const r=w.useRoute(),n=w.useRouter();return(t,a)=>{const u=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("header",A,[e.createElementVNode("h2",H,[R,e.createVNode(I.Select,{options:["today","week","month","year"],select:d.state.filter.period,"onUpdate:select":a[0]||(a[0]=o=>d.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",J,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="featured"},"t-medium pd-thin 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"},"t-medium pd-thin 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"},"t-medium pd-thin radius-small"]),onClick:a[3]||(a[3]=o=>e.unref(n).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),_.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-thin 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",G,[e.createVNode(u,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})])])}}},Q={class:"pd-thin"},W={key:0,class:"h-100 w-100 bg-grey pd-big radius-big"},K={class:"w-full h-full"},X={key:1,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},Y={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},Z=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),ee=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),te={key:0,class:"mn-thin"},oe={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 u=e.ref([]),o=e.ref(null);e.onMounted(async()=>{if(r.params.url){const i=await d.read({user:_.state.user._id,url:r.params.url});t.value=i.pop()}else d.clean(),t.value=d.state.current;t.value.owner||(t.value.owner={target:_.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:_.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 D.actions.read({user:_.state.user._id,postable:_.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=>!u.value.some(i=>i.text===l.text)));const p=e.ref(!1);function b(){p.value=!0}function v(){p.value=!1}function k(){u.value.length>0&&u.value.map(l=>l.text),t.value.status="draft",r.params.url?d.update(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)}):d.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?d.update(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)}):d.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?")&&d.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",Q,[e.unref(t)?(e.openBlock(),e.createElementBlock("section",W,[e.createElementVNode("div",K,[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]=g=>e.unref(t).content=g)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",X,[e.createElementVNode("div",Y,[e.unref(r).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:i[1]||(i[1]=g=>N()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:i[2]||(i[2]=g=>k()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:i[3]||(i[3]=g=>b()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(z._sfc_main$1,{title:"Добавить участника",onClosePopup:v,isPopupOpen:p.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[Z,e.createVNode(V._sfc_main,{onTagsChanged:i[4]||(i[4]=g=>e.unref(t).tags=g),tags:e.unref(t).tags},null,8,["tags"]),ee,e.createVNode(V.SelectMulti,{modelValue:o.value,"onUpdate:modelValue":i[5]||(i[5]=g=>o.value=g),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",te,"Options:")):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("div",oe,[e.createVNode(V.Checkbox,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":i[6]||(i[6]=g=>e.unref(t).creator.hidden=g),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode($._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"})),ne={},ae={width:"100%",height:"20rem",xmlns:"http://www.w3.org/2000/svg"},re=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),se=[re];function le(c,r){return e.openBlock(),e.createElementBlock("svg",ae,se)}const ie=P._export_sfc(ne,[["render",le]]),ce={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 d.read({user:_.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 u(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",ce,[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(ie,{key:s})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!t.value&&!n.value?(e.openBlock(),e.createBlock(F._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(d._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:_.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"},u(s),{class:"mn-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["blogpost","user","class"])):e.createCommentVNode("",!0),e.createVNode(O._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:_.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}},ue=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"};d.state.filter=a}}),e.watch(()=>d.state.filter,(t,a)=>{const u={...r.query};Object.keys(a).forEach(m=>{u[m]&&delete u[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(u,o),n.replace({query:u})},{deep:!0}),(t,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(d._sfc_main,{category:e.unref(r).params.category,user:_.state.user._id,period:e.unref(r).query.period},null,8,["category","user","period"])]))}},de=Object.freeze(Object.defineProperty({__proto__:null,default:M},Symbol.toStringTag,{value:"Module"})),me={class:"w-100 cols-4 t-left flex-nowrap flex"},pe={key:0,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},ge=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"👍",-1),fe={class:"t-semi uppercase"},_e=e.createElementVNode("br",null,null,-1),he={key:1,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},ve=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"💬",-1),be={class:"t-semi uppercase"},ye=e.createElementVNode("br",null,null,-1),we={key:2,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},ke=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"👍",-1),xe={class:"t-semi uppercase"},Be=e.createElementVNode("br",null,null,-1),Ne={__name:"Activity",props:{likes:Number,comments:Number,subscriptions:Number},setup(c){return(r,n)=>(e.openBlock(),e.createElementBlock("section",me,[c.likes?(e.openBlock(),e.createElementBlock("div",pe,[ge,e.createElementVNode("span",fe,[e.createTextVNode(e.toDisplayString(c.likes),1),_e,e.createTextVNode("likes")])])):e.createCommentVNode("",!0),c.comments?(e.openBlock(),e.createElementBlock("div",he,[ve,e.createElementVNode("span",be,[e.createTextVNode(e.toDisplayString(c.comments),1),ye,e.createTextVNode("comments")])])):e.createCommentVNode("",!0),c.subscriptions?(e.openBlock(),e.createElementBlock("div",we,[ke,e.createElementVNode("span",xe,[e.createTextVNode(e.toDisplayString(c.subscriptions),1),Be,e.createTextVNode("subscriptions")])])):e.createCommentVNode("",!0)]))}},Ve={class:"pd-thin radius-extra flex-nowrap flex"},Ee=["innerHTML"],Ce={__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}=L.useI18n();let u=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(){u.value=(u.value+1)%n.placeholderTexts[a.value].length}function i(){s.value=!1,clearInterval(p.value),m.value=n.placeholder,b.value||(o.value="")}function g(){!b.value&&n.enableTyping&&(s.value=!0,m.value="",E())}function E(){let h=n.placeholderTexts[a.value][u.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][u.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",Ve,[e.createVNode($.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:g,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,Ee)):e.createCommentVNode("",!0)]))}};const $e={class:"pd-thin"},Pe={class:"o-hidden t-black bg-main pd-big radius-big"},Te=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),Se={class:"z-index-1 mn-big w-100 flex-nowrap flex"},qe=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),Me={__name:"SubscribeNewsletter",setup(c){let r=e.ref("");return(n,t)=>(e.openBlock(),e.createElementBlock("section",$e,[e.createElementVNode("div",Pe,[Te,e.createElementVNode("div",Se,[e.createVNode(Ce,{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"])]),qe])]))}};const Ie={class:"container container-joinus"},ze={class:"content"},De={class:"h0 mn-big"},Fe=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),Oe=e.createElementVNode("button",{class:"bg-black t-white button"},"Join Now",-1),Le={__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(()=>{u(),t()});const u=()=>{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",Ie,[e.createElementVNode("div",ze,[e.createElementVNode("span",De,e.toDisplayString(r.value.toLocaleString()),1),Fe,Oe])]))}};const je=c=>(e.pushScopeId("data-v-18db0d1b"),c=c(),e.popScopeId(),c),Ue={class:"community-feed"},Ae=je(()=>e.createElementVNode("h2",{class:"w-m-75r mn-auto pd-t-big pd-b-big t-center"},"Discover the Vibrant Community",-1)),He={class:"grid-container"},Re={__name:"HotPosts",async setup(c){let r,n;const t=e.ref([]),a=async()=>{const o=await d.read({skip:0,limit:7,period:"year"});console.log(o),t.value=o};[r,n]=e.withAsyncContext(()=>a()),await r,n();const u=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",Ue,[Ae,e.createElementVNode("div",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(s,p)=>(e.openBlock(),e.createBlock(d._sfc_main$1,{blogpost:s,owner:_.state.user._id,key:p,class:e.normalizeClass(u(p))},null,8,["blogpost","owner","class"]))),128))])]))}},Je=P._export_sfc(Re,[["__scopeId","data-v-18db0d1b"]]),Ge=[{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(()=>de)}]},{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(()=>ue)},{path:"community/posts/:url/edit",name:"Edit BlogPost",meta:{title:{en:"Edit Post",ru:"Редактировать пост"},authorize:[]},component:()=>Promise.resolve().then(()=>C)}];exports.CardBlogpost=d._sfc_main$1;exports.Feed=d._sfc_main;exports.FooterBlogpost=d._sfc_main$2;exports.blogpostsStore=d.blogposts;exports.Comments=x._sfc_main$2;exports.reactionsStore=j.reactions;exports.Activity=Ne;exports.Blog=M;exports.BlogPost=q;exports.Community=T;exports.CreateBlogPost=S;exports.HotPosts=Je;exports.JoinUs=Le;exports.SubscribeNewsletter=Me;exports.blogpostsRoutes=Ge;