@ozdao/prometheus-framework 0.1.32 → 0.1.34
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Chips-41cd6570.mjs +203 -0
- package/dist/Chips-c3d7341e.js +1 -0
- package/dist/EULA-e05236af.mjs +4210 -0
- package/dist/EULA-f5fba925.js +1 -0
- package/dist/Feed-046852fc.js +1 -0
- package/dist/Feed-4efa2a93.mjs +394 -0
- package/dist/Feed-acfbb839.mjs +371 -0
- package/dist/Feed-e6e84388.js +1 -0
- package/dist/Image-93c3a270.mjs +480 -0
- package/dist/Image-de94b883.js +9 -0
- package/dist/Product-1892b14a.js +7 -0
- package/dist/Product-d3f1d10a.mjs +844 -0
- package/dist/ProductEdit-8e779ed8.js +1 -0
- package/dist/ProductEdit-ebcc3f98.mjs +306 -0
- package/dist/ProfileBlogposts-8c10a505.js +1 -0
- package/dist/ProfileBlogposts-a2f7cd4c.mjs +70 -0
- package/dist/ProfileEvents-47409c9e.mjs +62 -0
- package/dist/ProfileEvents-db12cf78.js +1 -0
- package/dist/auth.server.js +4 -4
- package/dist/auth.server.mjs +4 -4
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +217 -241
- package/dist/community.server.js +2 -2
- package/dist/community.server.mjs +2 -2
- package/dist/events.client.cjs +1 -1
- package/dist/events.client.js +4 -4
- package/dist/events.server.js +361 -224
- package/dist/events.server.mjs +361 -224
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/legal.client.cjs +1 -1
- package/dist/legal.client.js +1 -1
- package/dist/modules/community/components/sections/Feed.vue.d.ts +2 -0
- package/dist/organizations.client-76c3660a.mjs +3072 -0
- package/dist/organizations.client-ddbf8809.js +3 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +4 -4
- package/dist/organizations.server.js +4 -4
- package/dist/organizations.server.mjs +4 -4
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +2 -2
- package/dist/users.server.js +2 -2
- package/dist/users.server.mjs +2 -2
- package/package.json +1 -1
- package/src/components/CardHeader/CardHeader.vue +3 -3
- package/src/modules/community/components/blocks/CardBlogpost.vue +2 -4
- package/src/modules/community/components/sections/Feed.vue +44 -39
- package/src/modules/community/components/sections/HotPosts.vue +9 -56
- package/src/modules/events/components/blocks/CardEvent.vue +0 -2
- package/src/modules/events/controllers/events.controller.js +55 -265
- package/src/modules/events/controllers/utils/queryProcessor.js +118 -0
- package/src/modules/events/models/event.new.model.js +76 -0
- package/src/modules/files/middlewares/server/middlewareMulter.js +1 -0
- package/src/modules/globals/controllers/utils/queryProcessor.js +228 -0
- package/src/modules/globals/models/common.schema.js +14 -0
- package/src/modules/globals/models/engagement.schema.js +10 -0
- package/src/modules/globals/models/metadata.schema.js +15 -0
- package/src/modules/globals/models/ownership.schema.js +34 -0
- package/src/modules/globals/utils/seo-friendly-url.js +28 -0
- package/src/modules/legal/components/pages/legal/EULA.vue +0 -3
- package/src/modules/products/controllers/categories.controller.js +3 -0
- package/src/modules/products/models/category.model.js +63 -13
- package/src/modules/products/models/leftover.model.js +38 -17
- package/src/modules/products/models/modification.model.js +31 -14
- package/src/modules/products/models/product.model.js +37 -38
- package/src/modules/products/products.server.js +11 -1
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),b=require("vue-router"),t=require("./organizations.client-ddbf8809.js");require("./inputs.validation-24ae76b9.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const k=require("./Select-3ca5ab39.js"),E=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-505c3ca5.js"),d=require("./Button-2ca405bd.js");require("vue-i18n");require("./IconEdit-1b7b5874.js");const V=require("./vuex.esm-bundler-e8cf3cd2.js"),y=require("./vue-draggable-next.esm-bundler-80731ae0.js"),B=require("./UploadImageMultiple-eddaac87.js");require("./globals-928eb13c.js");require("./Tab-6f0a4909.js");require("./auth-acbe3ae1.js");require("./index-b41aac19.js");require("./ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-0ea8fbf8.js");require("./Feed-e6e84388.js");require("./EmptyState-7658d7d6.js");require("./Chips-c3d7341e.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Feed-046852fc.js");require("./CardOrganization-88c6d479.js");require("./Socials-9b2d27a6.js");require("./organizations-a241b21d.js");require("./reports-270f69df.js");require("./UploadImage-0f488170.js");require("./Publics-24f055eb.js");require("./auth.validation-495e9d6d.js");require("./click-outside-0b0727d1.js");const w={class:"mn-big flex-column flex"},x={__name:"EditProductInfo",props:{product:Object},setup(s){const a=s,n=V.useStore();return e.toRefs(a),(r,l)=>(e.openBlock(),e.createElementBlock("div",w,[e.createTextVNode(e.toDisplayString(e.unref(n).products.current)+" ",1),e.createVNode(k.Select,{options:["unpublished","published","archivied"],select:e.unref(n).products.state.current.status,"onUpdate:select":l[0]||(l[0]=o=>e.unref(n).products.state.current.status=o),placeholder:"Display product",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["select"]),e.createVNode(d.Field,{field:e.unref(n).products.state.current.name,"onUpdate:field":l[1]||(l[1]=o=>e.unref(n).products.state.current.name=o),placeholder:"Введите название",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["field"]),e.createVNode(d.Field,{field:e.unref(n).products.state.current.price,"onUpdate:field":l[2]||(l[2]=o=>e.unref(n).products.state.current.price=o),placeholder:"Введите цену",class:"w-100 mn-small bg-white radius-small pd-medium",type:"number"},null,8,["field"]),e.createVNode(d.Field,{field:e.unref(n).products.state.current.description,"onUpdate:field":l[3]||(l[3]=o=>e.unref(n).products.state.current.description=o),placeholder:"Введите описание",class:"w-100 mn-small bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])]))}},q={class:"mn-big"},$={class:"mn-small flex-nowrap flex"},C={class:"mn-r-thin"},S={class:"flex-column flex"},z={key:0,class:"w-100 mn-small"},P=["onClick"],I=e.createElementVNode("svg",{class:"i-small",fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"clip-rule":"evenodd",d:"m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",fill:"#8a8a8a","fill-rule":"evenodd"})],-1),L=[I],N={__name:"EditParameters",props:{items:{type:Array,default:()=>[]},title:String,addButtonLabel:String,emptyMessage:String,keyName:String,valueName:String},emits:["add-info","delete-info"],setup(s,{emit:a}){const n=s;function r(){a("add-info",{})}function l(c){a("delete-info",c)}const{items:o,title:u,emptyMessage:m,addButtonLabel:h,keyName:p,valueName:_}=e.toRefs(n);return(c,v)=>(e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("div",$,[e.createElementVNode("h5",C,e.toDisplayString(e.unref(u)),1),e.createElementVNode("button",{onClick:r,class:"i-small pd-thin button-delete button"},"+")]),e.createElementVNode("div",S,[e.unref(o).length==0?(e.openBlock(),e.createElementBlock("p",z,e.toDisplayString(e.unref(m)),1)):e.createCommentVNode("",!0),e.unref(o).length==0?(e.openBlock(),e.createBlock(d._sfc_main,{key:1,onClick:r,class:"button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h)),1)]),_:1})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),(i,g)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-medium w-100 flex-nowrap flex",key:g},[e.createVNode(d.Field,{field:i[e.unref(p)],"onUpdate:field":f=>i[e.unref(p)]=f,placeholder:"Название параметра",class:"w-100 mn-r-small bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.Field,{field:i[e.unref(_)],"onUpdate:field":f=>i[e.unref(_)]=f,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("button",{onClick:f=>l(g),class:"mn-l-small button"},L,8,P)]))),128))])]))}},U={key:0,class:"mn-big"},A={class:"flex-column block"},D=["src"],F=["onClick"],R={__name:"EditProductImages",props:{product:Object},setup(s){function a(r){console.log(r),console.log(t.state.current.images),t.state.current.images.push(...r)}function n(r){t.state.current.images.splice(r,1)}return(r,l)=>(e.openBlock(),e.createElementBlock("div",null,[s.product.images.length<1?(e.openBlock(),e.createElementBlock("p",U," The product doesn't have any images yet. ")):e.createCommentVNode("",!0),e.createVNode(e.unref(y.VueDraggableNext),{class:"cols-4 dragArea list-group w-full",list:s.product.images,sort:!0,onChange:r.log},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.product.images,(o,u)=>(e.openBlock(),e.createElementBlock("div",A,[e.createElementVNode("img",{class:"w-100 mn-small",src:(r.FILE_SERVER_URL||"")+o},null,8,D),e.createElementVNode("a",{onClick:m=>n(u),class:"w-100 br-grey br-solid br-1px button"},"Удалить",8,F)]))),256))]),_:1},8,["list","onChange"]),e.createVNode(B._sfc_main,{"onUpdate:images":a,uploadPath:"organizations/"+r.$route.params._id+"/products",class:"mn-t-semi pd-small w-100 button bg-main"},null,8,["uploadPath"])]))}};const M={class:"for-transition w-100"},T={class:"pd-b-zero pd-t-zero pd-thin"},j={class:"pd-thin"},O={class:"flex-nowrap flex bg-grey pd-medium radius-big"},G={key:0,class:"mn-r-auto"},H={key:1,class:"mn-r-auto"},J={class:"flex-nowrap flex pd-thin"},K={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},Q={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},W=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),X={class:"mn-semi"},Y=e.createElementVNode("h5",null,"Categories",-1),Z={class:""},ee={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},te=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),re={__name:"ProductEdit",async setup(s){let a,n;const r=b.useRoute(),l=b.useRouter();[a,n]=e.withAsyncContext(()=>t.actions.fetchCategories()),await a,n(),r.params.product&&([a,n]=e.withAsyncContext(()=>t.actions$1.read({_id:r.params.product})),await a,n());function o(){t.state.current.information.push({name:"",value:""})}function u(c){t.state.current.information.splice(c,1)}function m(){t.state.current.localization.push({locale:"",text:""})}function h(c){t.state.current.localization.splice(c,1)}function p(){r.params.product?t.actions$1.update(r.params.product,t.state.current):t.actions$1.create(r.params._id,t.state.current)}function _(){l.push({name:"ProductEdit",params:{_id:r.params._id,product:t.state.current._id}})}return(c,v)=>(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("div",T,[e.createVNode(t._sfc_main,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",j,[e.createElementVNode("header",O,[e.unref(r).params.product?(e.openBlock(),e.createElementBlock("h1",G,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",H,"Create Product")),e.createElementVNode("section",J,[e.createVNode(d._sfc_main,{submit:p,callback:_},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",K,[e.createElementVNode("div",Q,[W,e.createVNode(x,{product:t.state.current},null,8,["product"]),e.createElementVNode("div",X,[Y,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state$1.all,(i,g)=>(e.openBlock(),e.createBlock(E.Checkbox,{label:i.name,name:"categories",value:i.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(N,{items:t.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:o,onDeleteInfo:u},null,8,["items"]),e.createVNode(N,{items:t.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:m,onDeleteInfo:h},null,8,["items"])]),e.createElementVNode("div",Z,[e.createElementVNode("div",ee,[te,e.createVNode(R,{product:t.state.current},null,8,["product"])])])])]))}};exports.default=re;
|
@@ -0,0 +1,306 @@
|
|
1
|
+
import { toRefs as I, openBlock as r, createElementBlock as d, createTextVNode as C, toDisplayString as w, unref as t, createVNode as i, createElementVNode as e, createCommentVNode as k, createBlock as U, withCtx as z, Fragment as N, renderList as P, withAsyncContext as E } from "vue";
|
2
|
+
import { useRoute as B, useRouter as V } from "vue-router";
|
3
|
+
import { s as l, a as R, b as $, _ as D, c as j } from "./organizations.client-76c3660a.mjs";
|
4
|
+
import "./inputs.validation-14e8e01f.mjs";
|
5
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
6
|
+
import { S as F } from "./Select-11ddabf5.mjs";
|
7
|
+
import { C as M } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-b1873cb7.mjs";
|
8
|
+
import { F as h, _ as L } from "./Button-c59d387c.mjs";
|
9
|
+
import "vue-i18n";
|
10
|
+
import "./IconEdit-680dc269.mjs";
|
11
|
+
import { u as O } from "./vuex.esm-bundler-57d8b6ba.mjs";
|
12
|
+
import { V as T } from "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
|
13
|
+
import { _ as q } from "./UploadImageMultiple-cb6c7188.mjs";
|
14
|
+
import "./globals-96ba60e4.mjs";
|
15
|
+
import "./Tab-a243605d.mjs";
|
16
|
+
import "./auth-98fe3efb.mjs";
|
17
|
+
import "./index-a661083c.mjs";
|
18
|
+
import "./ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-4ed993c7.mjs";
|
19
|
+
import "./Feed-acfbb839.mjs";
|
20
|
+
import "./EmptyState-34d85f10.mjs";
|
21
|
+
import "./Chips-41cd6570.mjs";
|
22
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
23
|
+
import "./Feed-4efa2a93.mjs";
|
24
|
+
import "./CardOrganization-26714a5e.mjs";
|
25
|
+
import "./Socials-becde7dc.mjs";
|
26
|
+
import "./organizations-ea9de495.mjs";
|
27
|
+
import "./reports-79cd9459.mjs";
|
28
|
+
import "./UploadImage-3c627d89.mjs";
|
29
|
+
import "./Publics-b1cbfd97.mjs";
|
30
|
+
import "./auth.validation-e265b496.mjs";
|
31
|
+
import "./click-outside-6101836c.mjs";
|
32
|
+
const G = { class: "mn-big flex-column flex" }, H = {
|
33
|
+
__name: "EditProductInfo",
|
34
|
+
props: {
|
35
|
+
product: Object
|
36
|
+
},
|
37
|
+
setup(u) {
|
38
|
+
const c = u, o = O();
|
39
|
+
return I(c), (s, n) => (r(), d("div", G, [
|
40
|
+
C(w(t(o).products.current) + " ", 1),
|
41
|
+
i(F, {
|
42
|
+
options: [
|
43
|
+
"unpublished",
|
44
|
+
"published",
|
45
|
+
"archivied"
|
46
|
+
],
|
47
|
+
select: t(o).products.state.current.status,
|
48
|
+
"onUpdate:select": n[0] || (n[0] = (a) => t(o).products.state.current.status = a),
|
49
|
+
placeholder: "Display product",
|
50
|
+
class: "w-100 mn-small bg-white radius-small pd-medium"
|
51
|
+
}, null, 8, ["select"]),
|
52
|
+
i(h, {
|
53
|
+
field: t(o).products.state.current.name,
|
54
|
+
"onUpdate:field": n[1] || (n[1] = (a) => t(o).products.state.current.name = a),
|
55
|
+
placeholder: "Введите название",
|
56
|
+
class: "w-100 mn-small bg-white radius-small pd-medium"
|
57
|
+
}, null, 8, ["field"]),
|
58
|
+
i(h, {
|
59
|
+
field: t(o).products.state.current.price,
|
60
|
+
"onUpdate:field": n[2] || (n[2] = (a) => t(o).products.state.current.price = a),
|
61
|
+
placeholder: "Введите цену",
|
62
|
+
class: "w-100 mn-small bg-white radius-small pd-medium",
|
63
|
+
type: "number"
|
64
|
+
}, null, 8, ["field"]),
|
65
|
+
i(h, {
|
66
|
+
field: t(o).products.state.current.description,
|
67
|
+
"onUpdate:field": n[3] || (n[3] = (a) => t(o).products.state.current.description = a),
|
68
|
+
placeholder: "Введите описание",
|
69
|
+
class: "w-100 mn-small bg-white radius-small pd-medium",
|
70
|
+
type: "textarea"
|
71
|
+
}, null, 8, ["field"])
|
72
|
+
]));
|
73
|
+
}
|
74
|
+
}, J = { class: "mn-big" }, K = { class: "mn-small flex-nowrap flex" }, Q = { class: "mn-r-thin" }, W = { class: "flex-column flex" }, X = {
|
75
|
+
key: 0,
|
76
|
+
class: "w-100 mn-small"
|
77
|
+
}, Y = ["onClick"], Z = /* @__PURE__ */ e("svg", {
|
78
|
+
class: "i-small",
|
79
|
+
fill: "none",
|
80
|
+
height: "20",
|
81
|
+
viewBox: "0 0 20 20",
|
82
|
+
width: "20",
|
83
|
+
xmlns: "http://www.w3.org/2000/svg"
|
84
|
+
}, [
|
85
|
+
/* @__PURE__ */ e("path", {
|
86
|
+
"clip-rule": "evenodd",
|
87
|
+
d: "m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",
|
88
|
+
fill: "#8a8a8a",
|
89
|
+
"fill-rule": "evenodd"
|
90
|
+
})
|
91
|
+
], -1), tt = [
|
92
|
+
Z
|
93
|
+
], S = {
|
94
|
+
__name: "EditParameters",
|
95
|
+
props: {
|
96
|
+
items: {
|
97
|
+
type: Array,
|
98
|
+
default: () => []
|
99
|
+
},
|
100
|
+
title: String,
|
101
|
+
addButtonLabel: String,
|
102
|
+
emptyMessage: String,
|
103
|
+
keyName: String,
|
104
|
+
valueName: String
|
105
|
+
},
|
106
|
+
emits: ["add-info", "delete-info"],
|
107
|
+
setup(u, { emit: c }) {
|
108
|
+
const o = u;
|
109
|
+
function s() {
|
110
|
+
c("add-info", {});
|
111
|
+
}
|
112
|
+
function n(m) {
|
113
|
+
c("delete-info", m);
|
114
|
+
}
|
115
|
+
const { items: a, title: _, emptyMessage: f, addButtonLabel: y, keyName: g, valueName: b } = I(o);
|
116
|
+
return (m, A) => (r(), d("div", J, [
|
117
|
+
e("div", K, [
|
118
|
+
e("h5", Q, w(t(_)), 1),
|
119
|
+
e("button", {
|
120
|
+
onClick: s,
|
121
|
+
class: "i-small pd-thin button-delete button"
|
122
|
+
}, "+")
|
123
|
+
]),
|
124
|
+
e("div", W, [
|
125
|
+
t(a).length == 0 ? (r(), d("p", X, w(t(f)), 1)) : k("", !0),
|
126
|
+
t(a).length == 0 ? (r(), U(L, {
|
127
|
+
key: 1,
|
128
|
+
onClick: s,
|
129
|
+
class: "button"
|
130
|
+
}, {
|
131
|
+
default: z(() => [
|
132
|
+
C(w(t(y)), 1)
|
133
|
+
]),
|
134
|
+
_: 1
|
135
|
+
})) : k("", !0),
|
136
|
+
(r(!0), d(N, null, P(t(a), (p, x) => (r(), d("div", {
|
137
|
+
class: "mn-medium w-100 flex-nowrap flex",
|
138
|
+
key: x
|
139
|
+
}, [
|
140
|
+
i(h, {
|
141
|
+
field: p[t(g)],
|
142
|
+
"onUpdate:field": (v) => p[t(g)] = v,
|
143
|
+
placeholder: "Название параметра",
|
144
|
+
class: "w-100 mn-r-small bg-white radius-small pd-medium"
|
145
|
+
}, null, 8, ["field", "onUpdate:field"]),
|
146
|
+
i(h, {
|
147
|
+
field: p[t(b)],
|
148
|
+
"onUpdate:field": (v) => p[t(b)] = v,
|
149
|
+
placeholder: "Значение параметра",
|
150
|
+
class: "w-100 bg-white radius-small pd-medium"
|
151
|
+
}, null, 8, ["field", "onUpdate:field"]),
|
152
|
+
e("button", {
|
153
|
+
onClick: (v) => n(x),
|
154
|
+
class: "mn-l-small button"
|
155
|
+
}, tt, 8, Y)
|
156
|
+
]))), 128))
|
157
|
+
])
|
158
|
+
]));
|
159
|
+
}
|
160
|
+
}, et = {
|
161
|
+
key: 0,
|
162
|
+
class: "mn-big"
|
163
|
+
}, st = { class: "flex-column block" }, ot = ["src"], at = ["onClick"], lt = {
|
164
|
+
__name: "EditProductImages",
|
165
|
+
props: {
|
166
|
+
product: Object
|
167
|
+
},
|
168
|
+
setup(u) {
|
169
|
+
function c(s) {
|
170
|
+
console.log(s), console.log(l.current.images), l.current.images.push(...s);
|
171
|
+
}
|
172
|
+
function o(s) {
|
173
|
+
l.current.images.splice(s, 1);
|
174
|
+
}
|
175
|
+
return (s, n) => (r(), d("div", null, [
|
176
|
+
u.product.images.length < 1 ? (r(), d("p", et, " The product doesn't have any images yet. ")) : k("", !0),
|
177
|
+
i(t(T), {
|
178
|
+
class: "cols-4 dragArea list-group w-full",
|
179
|
+
list: u.product.images,
|
180
|
+
sort: !0,
|
181
|
+
onChange: s.log
|
182
|
+
}, {
|
183
|
+
default: z(() => [
|
184
|
+
(r(!0), d(N, null, P(u.product.images, (a, _) => (r(), d("div", st, [
|
185
|
+
e("img", {
|
186
|
+
class: "w-100 mn-small",
|
187
|
+
src: (s.FILE_SERVER_URL || "") + a
|
188
|
+
}, null, 8, ot),
|
189
|
+
e("a", {
|
190
|
+
onClick: (f) => o(_),
|
191
|
+
class: "w-100 br-grey br-solid br-1px button"
|
192
|
+
}, "Удалить", 8, at)
|
193
|
+
]))), 256))
|
194
|
+
]),
|
195
|
+
_: 1
|
196
|
+
}, 8, ["list", "onChange"]),
|
197
|
+
i(q, {
|
198
|
+
"onUpdate:images": c,
|
199
|
+
uploadPath: "organizations/" + s.$route.params._id + "/products",
|
200
|
+
class: "mn-t-semi pd-small w-100 button bg-main"
|
201
|
+
}, null, 8, ["uploadPath"])
|
202
|
+
]));
|
203
|
+
}
|
204
|
+
};
|
205
|
+
const rt = { class: "for-transition w-100" }, it = { class: "pd-b-zero pd-t-zero pd-thin" }, nt = { class: "pd-thin" }, dt = { class: "flex-nowrap flex bg-grey pd-medium radius-big" }, ct = {
|
206
|
+
key: 0,
|
207
|
+
class: "mn-r-auto"
|
208
|
+
}, ut = {
|
209
|
+
key: 1,
|
210
|
+
class: "mn-r-auto"
|
211
|
+
}, mt = { class: "flex-nowrap flex pd-thin" }, pt = { class: "pd-b-zero pd-t-zero pd-thin cols-2 gap-thin" }, _t = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, ht = /* @__PURE__ */ e("h3", { class: "mn-semi" }, "Profile", -1), ft = { class: "mn-semi" }, gt = /* @__PURE__ */ e("h5", null, "Categories", -1), bt = { class: "" }, vt = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, wt = /* @__PURE__ */ e("h3", { class: "mn-semi" }, "Images", -1), Yt = {
|
212
|
+
__name: "ProductEdit",
|
213
|
+
async setup(u) {
|
214
|
+
let c, o;
|
215
|
+
const s = B(), n = V();
|
216
|
+
[c, o] = E(() => R.fetchCategories()), await c, o(), s.params.product && ([c, o] = E(() => $.read({ _id: s.params.product })), await c, o());
|
217
|
+
function a() {
|
218
|
+
l.current.information.push({ name: "", value: "" });
|
219
|
+
}
|
220
|
+
function _(m) {
|
221
|
+
l.current.information.splice(m, 1);
|
222
|
+
}
|
223
|
+
function f() {
|
224
|
+
l.current.localization.push({ locale: "", text: "" });
|
225
|
+
}
|
226
|
+
function y(m) {
|
227
|
+
l.current.localization.splice(m, 1);
|
228
|
+
}
|
229
|
+
function g() {
|
230
|
+
s.params.product ? $.update(s.params.product, l.current) : $.create(s.params._id, l.current);
|
231
|
+
}
|
232
|
+
function b() {
|
233
|
+
n.push({ name: "ProductEdit", params: { _id: s.params._id, product: l.current._id } });
|
234
|
+
}
|
235
|
+
return (m, A) => (r(), d("div", rt, [
|
236
|
+
e("div", it, [
|
237
|
+
i(D, { class: "pd-medium bg-grey radius-big" })
|
238
|
+
]),
|
239
|
+
e("div", nt, [
|
240
|
+
e("header", dt, [
|
241
|
+
t(s).params.product ? (r(), d("h1", ct, "Edit Product")) : (r(), d("h1", ut, "Create Product")),
|
242
|
+
e("section", mt, [
|
243
|
+
i(L, {
|
244
|
+
submit: g,
|
245
|
+
callback: b
|
246
|
+
}, {
|
247
|
+
default: z(() => [
|
248
|
+
C("Save Product")
|
249
|
+
]),
|
250
|
+
_: 1
|
251
|
+
})
|
252
|
+
])
|
253
|
+
])
|
254
|
+
]),
|
255
|
+
e("div", pt, [
|
256
|
+
e("div", _t, [
|
257
|
+
ht,
|
258
|
+
i(H, {
|
259
|
+
product: l.current
|
260
|
+
}, null, 8, ["product"]),
|
261
|
+
e("div", ft, [
|
262
|
+
gt,
|
263
|
+
(r(!0), d(N, null, P(j.all, (p, x) => (r(), U(M, {
|
264
|
+
label: p.name,
|
265
|
+
name: "categories",
|
266
|
+
value: p.url,
|
267
|
+
class: "w-100 mn-t-small bg-white radius-small pd-small",
|
268
|
+
radio: l.current.category
|
269
|
+
}, null, 8, ["label", "value", "radio"]))), 256))
|
270
|
+
]),
|
271
|
+
i(S, {
|
272
|
+
items: l.current.information,
|
273
|
+
title: "Parameters",
|
274
|
+
emptyMessage: "No parameters",
|
275
|
+
addButtonLabel: "Add parameter",
|
276
|
+
keyName: "name",
|
277
|
+
valueName: "value",
|
278
|
+
onAddInfo: a,
|
279
|
+
onDeleteInfo: _
|
280
|
+
}, null, 8, ["items"]),
|
281
|
+
i(S, {
|
282
|
+
items: l.current.localization,
|
283
|
+
title: "Localization",
|
284
|
+
emptyMessage: "No localizations",
|
285
|
+
addButtonLabel: "Add localization",
|
286
|
+
keyName: "locale",
|
287
|
+
valueName: "text",
|
288
|
+
onAddInfo: f,
|
289
|
+
onDeleteInfo: y
|
290
|
+
}, null, 8, ["items"])
|
291
|
+
]),
|
292
|
+
e("div", bt, [
|
293
|
+
e("div", vt, [
|
294
|
+
wt,
|
295
|
+
i(lt, {
|
296
|
+
product: l.current
|
297
|
+
}, null, 8, ["product"])
|
298
|
+
])
|
299
|
+
])
|
300
|
+
])
|
301
|
+
]));
|
302
|
+
}
|
303
|
+
};
|
304
|
+
export {
|
305
|
+
Yt as default
|
306
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("vue-router"),d=require("./Tab-6f0a4909.js"),a=require("./Feed-046852fc.js"),o=require("./auth-acbe3ae1.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Chips-c3d7341e.js");require("./IconEdit-1b7b5874.js");require("./Button-2ca405bd.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Select-3ca5ab39.js");require("./reports-270f69df.js");require("./index-b41aac19.js");require("./click-outside-0b0727d1.js");const m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},_=e.createElementVNode("h2",{class:"mn-r-medium"},"Posts",-1),f={__name:"ProfileBlogposts",setup(q){const r=l.useRoute(),c=l.useRouter();let i=r.query.tab?r.query.tab:"posts";const t=e.ref(i);return r.query.tab=t.value,e.watch(t,u=>{c.replace({query:{...r.query,tab:u}})}),(u,s)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[_,o.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s[0]||(s[0]=n=>u.$router.push({name:"Create BlogPost"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),o.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createBlock(d._sfc_main,{key:0,selected:t.value,"onUpdate:selected":s[1]||(s[1]=n=>t.value=n),tabs:[{name:"My posts",value:"posts"},{name:"Drafts",value:"drafts"},{name:"Following",value:"following"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"])):e.createCommentVNode("",!0),t.value==="posts"?(e.openBlock(),e.createBlock(a._sfc_main,{key:1,user:o.state.user._id,creator:e.unref(r).params._id},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="drafts"?(e.openBlock(),e.createBlock(a._sfc_main,{key:2,user:o.state.user._id,creator:e.unref(r).params._id,status:"draft"},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="following"?(e.openBlock(),e.createBlock(a._sfc_main,{key:3,user:o.state.user._id,category:"following"},null,8,["user"])):e.createCommentVNode("",!0)]))}};exports.default=f;
|
@@ -0,0 +1,70 @@
|
|
1
|
+
import { ref as f, watch as g, openBlock as t, createElementBlock as p, createElementVNode as d, unref as u, createCommentVNode as o, createBlock as i } from "vue";
|
2
|
+
import { useRoute as v, useRouter as y } from "vue-router";
|
3
|
+
import { _ as b } from "./Tab-a243605d.mjs";
|
4
|
+
import { _ as m } from "./Feed-4efa2a93.mjs";
|
5
|
+
import { s } from "./auth-98fe3efb.mjs";
|
6
|
+
import "./inputs.validation-14e8e01f.mjs";
|
7
|
+
import "./globals-96ba60e4.mjs";
|
8
|
+
import "vue-i18n";
|
9
|
+
import "./EmptyState-34d85f10.mjs";
|
10
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
11
|
+
import "./Chips-41cd6570.mjs";
|
12
|
+
import "./IconEdit-680dc269.mjs";
|
13
|
+
import "./Button-c59d387c.mjs";
|
14
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
15
|
+
import "./Select-11ddabf5.mjs";
|
16
|
+
import "./reports-79cd9459.mjs";
|
17
|
+
import "./index-a661083c.mjs";
|
18
|
+
import "./click-outside-6101836c.mjs";
|
19
|
+
const h = { class: "pd-thin" }, k = { class: "mn-medium flex-v-center flex-nowrap flex" }, w = /* @__PURE__ */ d("h2", { class: "mn-r-medium" }, "Posts", -1), H = {
|
20
|
+
__name: "ProfileBlogposts",
|
21
|
+
setup(q) {
|
22
|
+
const e = v(), c = y();
|
23
|
+
let _ = e.query.tab ? e.query.tab : "posts";
|
24
|
+
const r = f(_);
|
25
|
+
return e.query.tab = r.value, g(r, (l) => {
|
26
|
+
c.replace({ query: { ...e.query, tab: l } });
|
27
|
+
}), (l, a) => (t(), p("div", h, [
|
28
|
+
d("header", k, [
|
29
|
+
w,
|
30
|
+
s.user._id === u(e).params._id ? (t(), p("button", {
|
31
|
+
key: 0,
|
32
|
+
onClick: a[0] || (a[0] = (n) => l.$router.push({
|
33
|
+
name: "Create BlogPost"
|
34
|
+
})),
|
35
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
36
|
+
}, " + ")) : o("", !0)
|
37
|
+
]),
|
38
|
+
s.user._id === u(e).params._id ? (t(), i(b, {
|
39
|
+
key: 0,
|
40
|
+
selected: r.value,
|
41
|
+
"onUpdate:selected": a[1] || (a[1] = (n) => r.value = n),
|
42
|
+
tabs: [
|
43
|
+
{ name: "My posts", value: "posts" },
|
44
|
+
{ name: "Drafts", value: "drafts" },
|
45
|
+
{ name: "Following", value: "following" }
|
46
|
+
],
|
47
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
48
|
+
}, null, 8, ["selected"])) : o("", !0),
|
49
|
+
r.value === "posts" ? (t(), i(m, {
|
50
|
+
key: 1,
|
51
|
+
user: s.user._id,
|
52
|
+
creator: u(e).params._id
|
53
|
+
}, null, 8, ["user", "creator"])) : o("", !0),
|
54
|
+
r.value === "drafts" ? (t(), i(m, {
|
55
|
+
key: 2,
|
56
|
+
user: s.user._id,
|
57
|
+
creator: u(e).params._id,
|
58
|
+
status: "draft"
|
59
|
+
}, null, 8, ["user", "creator"])) : o("", !0),
|
60
|
+
r.value === "following" ? (t(), i(m, {
|
61
|
+
key: 3,
|
62
|
+
user: s.user._id,
|
63
|
+
category: "following"
|
64
|
+
}, null, 8, ["user"])) : o("", !0)
|
65
|
+
]));
|
66
|
+
}
|
67
|
+
};
|
68
|
+
export {
|
69
|
+
H as default
|
70
|
+
};
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { ref as f, watch as v, openBlock as a, createElementBlock as p, createElementVNode as d, unref as o, createCommentVNode as s, createVNode as b, createBlock as c } from "vue";
|
2
|
+
import { useRoute as y, useRouter as h } from "vue-router";
|
3
|
+
import { _ as k } from "./Tab-a243605d.mjs";
|
4
|
+
import { _ as l } from "./Feed-acfbb839.mjs";
|
5
|
+
import { s as i } from "./auth-98fe3efb.mjs";
|
6
|
+
import "./inputs.validation-14e8e01f.mjs";
|
7
|
+
import "./globals-96ba60e4.mjs";
|
8
|
+
import "vue-i18n";
|
9
|
+
import "./EmptyState-34d85f10.mjs";
|
10
|
+
import "./Chips-41cd6570.mjs";
|
11
|
+
import "./IconEdit-680dc269.mjs";
|
12
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
13
|
+
import "./Button-c59d387c.mjs";
|
14
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
15
|
+
import "./Select-11ddabf5.mjs";
|
16
|
+
import "./reports-79cd9459.mjs";
|
17
|
+
import "./index-a661083c.mjs";
|
18
|
+
import "./click-outside-6101836c.mjs";
|
19
|
+
const g = { class: "pd-thin" }, w = { class: "mn-medium flex-v-center flex-nowrap flex" }, q = /* @__PURE__ */ d("h2", { class: "mn-r-medium" }, " Events ", -1), I = {
|
20
|
+
__name: "ProfileEvents",
|
21
|
+
setup(x) {
|
22
|
+
const e = y(), n = h();
|
23
|
+
let _ = e.query.tab ? e.query.tab : "owner";
|
24
|
+
const r = f(_);
|
25
|
+
return e.query.tab = r.value, v(r, (m) => {
|
26
|
+
n.replace({ query: { ...e.query, tab: m } });
|
27
|
+
}), (m, t) => (a(), p("div", g, [
|
28
|
+
d("header", w, [
|
29
|
+
q,
|
30
|
+
i.user._id === o(e).params._id ? (a(), p("button", {
|
31
|
+
key: 0,
|
32
|
+
onClick: t[0] || (t[0] = (u) => o(n).push({ name: "Create Event" })),
|
33
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
34
|
+
}, " + ")) : s("", !0)
|
35
|
+
]),
|
36
|
+
b(k, {
|
37
|
+
selected: r.value,
|
38
|
+
"onUpdate:selected": t[1] || (t[1] = (u) => r.value = u),
|
39
|
+
tabs: [
|
40
|
+
{ name: "My", value: "owner" },
|
41
|
+
{ name: "Participant", value: "participant" }
|
42
|
+
],
|
43
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
44
|
+
}, null, 8, ["selected"]),
|
45
|
+
r.value === "owner" ? (a(), c(l, {
|
46
|
+
key: 0,
|
47
|
+
user: i.user._id,
|
48
|
+
creator: o(e).params._id,
|
49
|
+
sortOrder: "asc"
|
50
|
+
}, null, 8, ["user", "creator"])) : s("", !0),
|
51
|
+
r.value === "participant" ? (a(), c(l, {
|
52
|
+
key: 1,
|
53
|
+
user: i.user._id,
|
54
|
+
participant: o(e).params._id,
|
55
|
+
sortOrder: "desc"
|
56
|
+
}, null, 8, ["user", "participant"])) : s("", !0)
|
57
|
+
]));
|
58
|
+
}
|
59
|
+
};
|
60
|
+
export {
|
61
|
+
I as default
|
62
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("vue-router"),d=require("./Tab-6f0a4909.js"),c=require("./Feed-e6e84388.js"),u=require("./auth-acbe3ae1.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./Chips-c3d7341e.js");require("./IconEdit-1b7b5874.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Button-2ca405bd.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Select-3ca5ab39.js");require("./reports-270f69df.js");require("./index-b41aac19.js");require("./click-outside-0b0727d1.js");const m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},q=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),_={__name:"ProfileEvents",setup(v){const r=i.useRoute(),n=i.useRouter();let l=r.query.tab?r.query.tab:"owner";const t=e.ref(l);return r.query.tab=t.value,e.watch(t,s=>{n.replace({query:{...r.query,tab:s}})}),(s,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[q,u.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=o=>e.unref(n).push({name:"Create Event"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(d._sfc_main,{selected:t.value,"onUpdate:selected":a[1]||(a[1]=o=>t.value=o),tabs:[{name:"My",value:"owner"},{name:"Participant",value:"participant"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),t.value==="owner"?(e.openBlock(),e.createBlock(c._sfc_main,{key:0,user:u.state.user._id,creator:e.unref(r).params._id,sortOrder:"asc"},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="participant"?(e.openBlock(),e.createBlock(c._sfc_main,{key:1,user:u.state.user._id,participant:e.unref(r).params._id,sortOrder:"desc"},null,8,["user","participant"])):e.createCommentVNode("",!0)]))}};exports.default=_;
|
package/dist/auth.server.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
const _commonjsHelpers = require("./_commonjsHelpers-3b53548e.js");
|
3
3
|
const require$$0 = require("jsonwebtoken");
|
4
|
-
const require$$1$
|
5
|
-
const require$$
|
4
|
+
const require$$1$1 = require("bcryptjs");
|
5
|
+
const require$$0$1 = require("mongoose");
|
6
6
|
const require$$3 = require("uuidv4");
|
7
7
|
const require$$1 = require("node-fetch");
|
8
8
|
const require$$2 = require("jwk-to-pem");
|
@@ -51,8 +51,8 @@ async function verifyAppleIdToken$1(id_token) {
|
|
51
51
|
}
|
52
52
|
var verifyAppleIdToken_1 = { verifyAppleIdToken: verifyAppleIdToken$1 };
|
53
53
|
const jwt = require$$0;
|
54
|
-
const bcrypt = require$$1$
|
55
|
-
const ObjectId = require$$
|
54
|
+
const bcrypt = require$$1$1;
|
55
|
+
const ObjectId = require$$0$1.Types.ObjectId;
|
56
56
|
const { verifyAppleIdToken } = verifyAppleIdToken_1;
|
57
57
|
const controllerFactory$4 = (db) => {
|
58
58
|
const User = db.user;
|
package/dist/auth.server.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-83b1d755.mjs";
|
2
2
|
import require$$0 from "jsonwebtoken";
|
3
|
-
import require$$1$
|
4
|
-
import require$$
|
3
|
+
import require$$1$1 from "bcryptjs";
|
4
|
+
import require$$0$1 from "mongoose";
|
5
5
|
import require$$3 from "uuidv4";
|
6
6
|
import require$$1 from "node-fetch";
|
7
7
|
import require$$2 from "jwk-to-pem";
|
@@ -50,8 +50,8 @@ async function verifyAppleIdToken$1(id_token) {
|
|
50
50
|
}
|
51
51
|
var verifyAppleIdToken_1 = { verifyAppleIdToken: verifyAppleIdToken$1 };
|
52
52
|
const jwt = require$$0;
|
53
|
-
const bcrypt = require$$1$
|
54
|
-
const ObjectId = require$$
|
53
|
+
const bcrypt = require$$1$1;
|
54
|
+
const ObjectId = require$$0$1.Types.ObjectId;
|
55
55
|
const { verifyAppleIdToken } = verifyAppleIdToken_1;
|
56
56
|
const controllerFactory$4 = (db) => {
|
57
57
|
const User = db.user;
|
@@ -1 +1 @@
|
|
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;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("vue-router"),I=require("./Select-3ca5ab39.js"),u=require("./Feed-046852fc.js"),_=require("./auth-acbe3ae1.js"),x=require("./Image-de94b883.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"),j=require("vue-i18n");require("./globals-928eb13c.js");const L=require("./Chips-c3d7341e.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"},H={class:"mn-thin flex-v-center t-left flex-nowrap flex"},A={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 d=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("header",H,[e.createElementVNode("h2",A,[R,e.createVNode(I.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",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(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})])])}}},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 d=e.ref([]),o=e.ref(null);e.onMounted(async()=>{if(r.params.url){const i=await u.read({user:_.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:_.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=>!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",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 u.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 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",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(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:_.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(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"};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:_.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}=j.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 g(){!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",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),je={__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",Ie,[e.createElementVNode("div",ze,[e.createElementVNode("span",De,e.toDisplayString(r.value.toLocaleString()),1),Fe,Oe])]))}};const Le=c=>(e.pushScopeId("data-v-2591cab6"),c=c(),e.popScopeId(),c),Ue={class:"community-feed"},He=Le(()=>e.createElementVNode("h2",{class:"w-m-75r mn-auto pd-t-big pd-b-big t-center"},"Discover the Vibrant Community",-1)),Ae={__name:"HotPosts",setup(c){return(r,n)=>(e.openBlock(),e.createElementBlock("section",Ue,[He,e.createVNode(u._sfc_main,{skip:0,limit:3,user:_.state.user._id,period:"year",class:"cols-2 gap-thin"},null,8,["user"])]))}},Re=P._export_sfc(Ae,[["__scopeId","data-v-2591cab6"]]),Je=[{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=u._sfc_main$1;exports.Feed=u._sfc_main;exports.FooterBlogpost=u._sfc_main$2;exports.blogpostsStore=u.blogposts;exports.Comments=x._sfc_main$2;exports.reactionsStore=L.reactions;exports.Activity=Ne;exports.Blog=M;exports.BlogPost=q;exports.Community=T;exports.CreateBlogPost=S;exports.HotPosts=Re;exports.JoinUs=je;exports.SubscribeNewsletter=Me;exports.blogpostsRoutes=Je;
|