@ozdao/prometheus-framework 0.0.87 → 0.0.89
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-300fcb55.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-afba007a.mjs +1944 -0
- package/dist/ButtonFollow-001c4a65.mjs +130 -0
- package/dist/ButtonFollow-48043cc7.js +1 -0
- package/dist/CardHeader-0677d446.js +1 -0
- package/dist/CardHeader-e361dada.mjs +96 -0
- package/dist/CardOrganization-51309400.js +1 -0
- package/dist/CardOrganization-bacc2ef6.mjs +202 -0
- package/dist/Feed-4b28adc5.mjs +423 -0
- package/dist/Feed-51e4e232.js +1 -0
- package/dist/Feed-5d8d5c21.js +1 -0
- package/dist/Feed-76b2997e.mjs +367 -0
- package/dist/Feed-dc8b66bf.mjs +367 -0
- package/dist/Feed-eeb63363.js +1 -0
- package/dist/IconEdit-3028a3b7.js +1 -0
- package/dist/IconEdit-8df23653.mjs +205 -0
- package/dist/Image-30f04604.js +9 -0
- package/dist/Image-6c7584f5.mjs +477 -0
- package/dist/Image-6ec294f3.mjs +477 -0
- package/dist/Image-9a870c88.js +9 -0
- package/dist/PlaceholderUserpic-10fd9026.js +1 -0
- package/dist/PlaceholderUserpic-eb9820ce.mjs +28 -0
- package/dist/Popup-7c331e1c.js +1 -0
- package/dist/Popup-bdf043ba.mjs +76 -0
- package/dist/Product-1724d88d.mjs +837 -0
- package/dist/Product-a94d8b65.js +7 -0
- package/dist/Product-b233e2a3.js +7 -0
- package/dist/Product-eb00f35e.mjs +837 -0
- package/dist/ProductEdit-57484f1e.mjs +349 -0
- package/dist/ProductEdit-61413d02.mjs +349 -0
- package/dist/ProductEdit-ef301baa.js +1 -0
- package/dist/ProductEdit-fca68ff9.js +1 -0
- package/dist/ProfileBlogposts-6704a38c.js +1 -0
- package/dist/ProfileBlogposts-775b1cfa.mjs +63 -0
- package/dist/ProfileComments-175e42da.js +1 -0
- package/dist/ProfileComments-fd7d66bf.mjs +43 -0
- package/dist/ProfileEvents-1cfe6858.mjs +55 -0
- package/dist/ProfileEvents-4f2a5f00.js +1 -0
- package/dist/ProfileEvents-7a51a9e6.mjs +55 -0
- package/dist/ProfileEvents-d8e16509.js +1 -0
- package/dist/ProfileLikes-20a8a3c9.mjs +43 -0
- package/dist/ProfileLikes-b3b1350a.js +1 -0
- package/dist/ProfileOrganizations-4b866823.mjs +211 -0
- package/dist/ProfileOrganizations-6d3a43e4.js +1 -0
- package/dist/Publics-0e44c61e.mjs +122 -0
- package/dist/Publics-4e1c14fc.js +1 -0
- package/dist/Tab-a243605d.mjs +46 -0
- package/dist/UploadImage-6e312c46.mjs +83 -0
- package/dist/UploadImage-9e7e7468.js +1 -0
- package/dist/auth-2bc18d1e.js +8 -0
- package/dist/auth-fefd15a3.mjs +1503 -0
- package/dist/auth.client.cjs +1 -1
- package/dist/auth.client.js +5 -5
- package/dist/auth.validation-4a617c0b.mjs +20 -0
- package/dist/auth.validation-78a90fed.js +1 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +206 -222
- package/dist/components/Field/Field.vue.d.ts.map +1 -1
- package/dist/components/FieldPhone/FieldPhone(script-setup).vue.d.ts +3 -3
- package/dist/components/FieldPhone/FieldPhone.vue.d.ts +1 -1
- package/dist/events.client.cjs +1 -1
- package/dist/events.client.js +332 -312
- package/dist/events.server.js +77 -0
- package/dist/events.server.mjs +77 -0
- package/dist/inputs.validation-14e8e01f.mjs +93 -0
- package/dist/main.css +1 -1
- package/dist/organizations-1581c013.mjs +121 -0
- package/dist/organizations-c455dad7.js +1 -0
- package/dist/organizations.client-040ec107.js +3 -0
- package/dist/organizations.client-686845be.mjs +3179 -0
- package/dist/organizations.client-7937e180.mjs +3037 -0
- package/dist/organizations.client-99bfc474.js +3 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +39 -39
- package/dist/organizations.server.js +7 -3
- package/dist/organizations.server.mjs +7 -3
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +3 -2
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +265 -256
- package/dist/users.server.js +2 -2
- package/dist/users.server.mjs +2 -2
- package/package.json +1 -1
- package/src/components/Field/Field.vue +2 -1
- package/src/modules/community/components/pages/CreateBlogPost.vue +2 -1
- package/src/modules/events/components/blocks/CardEvent.vue +1 -1
- package/src/modules/events/components/pages/EditEvent.vue +9 -3
- package/src/modules/events/components/pages/Event.vue +43 -4
- package/src/modules/events/middlewares/server/index.js +10 -0
- package/src/modules/events/middlewares/server/verifyEvent.js +60 -0
- package/src/modules/events/routes/events.routes.js +14 -1
- package/src/modules/organizations/components/blocks/Socials.vue +16 -3
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +39 -15
- package/src/modules/organizations/components/sections/DetailsTab.vue +13 -9
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/models/organization.model.js +6 -2
- package/src/modules/organizations/store/organizations.js +2 -2
- package/src/modules/users/components/pages/Profile.vue +26 -11
- package/src/modules/users/components/pages/ProfileEdit.vue +28 -10
- package/src/modules/users/models/user.model.js +2 -2
- package/src/modules/users/store/users.js +1 -2
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),b=require("vue-router"),n=require("./organizations.client-99bfc474.js");require("./inputs.validation-24ae76b9.js");const p=require("./auth-5aa8e90c.js"),k=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-15e71ec4.js");require("vue-i18n");const y=require("./Publics-3f277c17.js"),x=require("./vuex.esm-bundler-e8cf3cd2.js"),E=require("./vue-draggable-next.esm-bundler-80731ae0.js");require("./globals-928eb13c.js");require("./Tab-6f0a4909.js");require("./ButtonFollow-2ce169ca.js");require("./Feed-51e4e232.js");require("./EmptyState-7658d7d6.js");require("./CardHeader-925a972b.js");require("./PlaceholderUserpic-d64d6dd5.js");require("./Feed-55c5907a.js");require("./IconEdit-736c89be.js");require("./organizations-af43bda4.js");require("./UploadImage-441e8526.js");require("./CardOrganization-ee5c34ab.js");const V={class:"mn-big flex-column flex"},w={__name:"EditProductInfo",props:{product:Object},setup(c){const s=c,o=x.useStore();return e.toRefs(s),(t,l)=>(e.openBlock(),e.createElementBlock("div",V,[e.createTextVNode(e.toDisplayString(e.unref(o).products.current)+" ",1),e.createVNode(y.Select,{options:["unpublished","published","archivied"],select:e.unref(o).products.state.current.status,"onUpdate:select":l[0]||(l[0]=r=>e.unref(o).products.state.current.status=r),placeholder:"Display product",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["select"]),e.createVNode(p.Field,{field:e.unref(o).products.state.current.name,"onUpdate:field":l[1]||(l[1]=r=>e.unref(o).products.state.current.name=r),placeholder:"Введите название",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["field"]),e.createVNode(p.Field,{field:e.unref(o).products.state.current.price,"onUpdate:field":l[2]||(l[2]=r=>e.unref(o).products.state.current.price=r),placeholder:"Введите цену",class:"w-100 mn-small bg-white radius-small pd-medium",type:"number"},null,8,["field"]),e.createVNode(p.Field,{field:e.unref(o).products.state.current.description,"onUpdate:field":l[3]||(l[3]=r=>e.unref(o).products.state.current.description=r),placeholder:"Введите описание",class:"w-100 mn-small bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])]))}},B={class:"mn-big"},C={class:"mn-small flex-nowrap flex"},$={class:"mn-r-thin"},q={class:"flex-column flex"},P={key:0,class:"w-100 mn-small"},z=["onClick"],D=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),I=[D],N={__name:"EditParameters",props:{items:{type:Array,default:()=>[]},title:String,addButtonLabel:String,emptyMessage:String,keyName:String,valueName:String},emits:["add-info","delete-info"],setup(c,{emit:s}){const o=c;function t(){s("add-info",{})}function l(a){s("delete-info",a)}const{items:r,title:m,emptyMessage:_,addButtonLabel:d,keyName:i,valueName:f}=e.toRefs(o);return(a,v)=>(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("div",C,[e.createElementVNode("h5",$,e.toDisplayString(e.unref(m)),1),e.createElementVNode("button",{onClick:t,class:"i-small pd-thin button-delete button"},"+")]),e.createElementVNode("div",q,[e.unref(r).length==0?(e.openBlock(),e.createElementBlock("p",P,e.toDisplayString(e.unref(_)),1)):e.createCommentVNode("",!0),e.unref(r).length==0?(e.openBlock(),e.createBlock(p._sfc_main,{key:1,onClick:t,class:"button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)),1)]),_:1})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(u,g)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-medium w-100 flex-nowrap flex",key:g},[e.createVNode(p.Field,{field:u[e.unref(i)],"onUpdate:field":h=>u[e.unref(i)]=h,placeholder:"Название параметра",class:"w-100 mn-r-small bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(p.Field,{field:u[e.unref(f)],"onUpdate:field":h=>u[e.unref(f)]=h,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("button",{onClick:h=>l(g),class:"mn-l-small button"},I,8,z)]))),128))])]))}},S=e.createElementVNode("div",{class:"flex-v-center flex-h-center flex w-100 h-100"}," upload ",-1),U={__name:"UploadImageMultiple",props:["uploadPath"],emits:["update:images"],setup(c,{emit:s}){const o=c,t=e.ref([]),l=e.ref(null);function r(){l.value.click()}async function m(d){let i=d.target.files,f=new FormData;for(let a=0;a<i.length;a++)f.append("file",i[a]);try{(await p.axios.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/multiple?folderName=${encodeURIComponent(o.uploadPath)}`,f,{headers:{"Content-Type":"multipart/form-data"}})).data.forEach(u=>{t.value.push(u.filepath)}),s("update:images",t.value)}catch(a){console.error(a)}}function _(d){d.preventDefault(),m({target:{files:d.dataTransfer.files}})}return(d,i)=>(e.openBlock(),e.createElementBlock("div",{onClick:r,onDrop:_,onDragover:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"])),class:"flex-v-center flex-h-center flex"},[S,e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:l,onChange:m,multiple:"",style:{display:"none"}},null,544)],32))}},L={key:0,class:"mn-big"},A={class:"flex-column block"},F=["src"],R=["onClick"],T={__name:"EditProductImages",props:{product:Object},setup(c){function s(t){console.log(t),console.log(n.state.current.images),n.state.current.images.push(...t)}function o(t){n.state.current.images.splice(t,1)}return(t,l)=>(e.openBlock(),e.createElementBlock("div",null,[c.product.images.length<1?(e.openBlock(),e.createElementBlock("p",L," The product doesn't have any images yet. ")):e.createCommentVNode("",!0),e.createVNode(e.unref(E.VueDraggableNext),{class:"cols-4 dragArea list-group w-full",list:c.product.images,sort:!0,onChange:t.log},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.product.images,(r,m)=>(e.openBlock(),e.createElementBlock("div",A,[e.createElementVNode("img",{class:"w-100 mn-small",src:r},null,8,F),e.createElementVNode("a",{onClick:_=>o(m),class:"w-100 br-grey br-solid br-1px button"},"Удалить",8,R)]))),256))]),_:1},8,["list","onChange"]),e.createVNode(U,{"onUpdate:images":s,uploadPath:"organizations/"+t.$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"},j={class:"pd-b-zero pd-t-zero pd-thin"},O={class:"pd-thin"},G={class:"flex-nowrap flex bg-grey pd-medium radius-big"},H={key:0,class:"mn-r-auto"},J={key:1,class:"mn-r-auto"},K={class:"flex-nowrap flex pd-thin"},Q={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},W={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},X=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),Y={class:"mn-semi"},Z=e.createElementVNode("h5",null,"Categories",-1),ee={class:""},te={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},ne=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),oe={__name:"ProductEdit",async setup(c){let s,o;const t=b.useRoute(),l=b.useRouter();[s,o]=e.withAsyncContext(()=>n.actions.fetchCategories()),await s,o(),t.params.product&&([s,o]=e.withAsyncContext(()=>n.actions$1.read({_id:t.params.product})),await s,o());function r(){n.state.current.information.push({name:"",value:""})}function m(a){n.state.current.information.splice(a,1)}function _(){n.state.current.localization.push({locale:"",text:""})}function d(a){n.state.current.localization.splice(a,1)}function i(){t.params.product?n.actions$1.update(t.params.product,n.state.current):n.actions$1.create(t.params._id,n.state.current)}function f(){l.push({name:"ProductEdit",params:{_id:t.params._id,product:n.state.current._id}})}return(a,v)=>(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("div",j,[e.createVNode(n._sfc_main,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",O,[e.createElementVNode("header",G,[e.unref(t).params.product?(e.openBlock(),e.createElementBlock("h1",H,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",J,"Create Product")),e.createElementVNode("section",K,[e.createVNode(p._sfc_main,{submit:i,callback:f},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",Q,[e.createElementVNode("div",W,[X,e.createVNode(w,{product:n.state.current},null,8,["product"]),e.createElementVNode("div",Y,[Z,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.state$1.all,(u,g)=>(e.openBlock(),e.createBlock(k.Checkbox,{label:u.name,name:"categories",value:u.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:n.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(N,{items:n.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:r,onDeleteInfo:m},null,8,["items"]),e.createVNode(N,{items:n.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:_,onDeleteInfo:d},null,8,["items"])]),e.createElementVNode("div",ee,[e.createElementVNode("div",te,[ne,e.createVNode(T,{product:n.state.current},null,8,["product"])])])])]))}};exports.default=oe;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),b=require("vue-router"),n=require("./organizations.client-040ec107.js");require("./inputs.validation-24ae76b9.js");const p=require("./auth-2bc18d1e.js"),k=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-300fcb55.js");require("vue-i18n");const y=require("./Publics-4e1c14fc.js"),x=require("./vuex.esm-bundler-e8cf3cd2.js"),E=require("./vue-draggable-next.esm-bundler-80731ae0.js");require("./globals-928eb13c.js");require("./Tab-6f0a4909.js");require("./ButtonFollow-48043cc7.js");require("./Feed-eeb63363.js");require("./EmptyState-7658d7d6.js");require("./CardHeader-0677d446.js");require("./PlaceholderUserpic-10fd9026.js");require("./Feed-5d8d5c21.js");require("./IconEdit-3028a3b7.js");require("./organizations-c455dad7.js");require("./UploadImage-9e7e7468.js");require("./CardOrganization-51309400.js");const V={class:"mn-big flex-column flex"},w={__name:"EditProductInfo",props:{product:Object},setup(c){const s=c,o=x.useStore();return e.toRefs(s),(t,l)=>(e.openBlock(),e.createElementBlock("div",V,[e.createTextVNode(e.toDisplayString(e.unref(o).products.current)+" ",1),e.createVNode(y.Select,{options:["unpublished","published","archivied"],select:e.unref(o).products.state.current.status,"onUpdate:select":l[0]||(l[0]=r=>e.unref(o).products.state.current.status=r),placeholder:"Display product",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["select"]),e.createVNode(p.Field,{field:e.unref(o).products.state.current.name,"onUpdate:field":l[1]||(l[1]=r=>e.unref(o).products.state.current.name=r),placeholder:"Введите название",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["field"]),e.createVNode(p.Field,{field:e.unref(o).products.state.current.price,"onUpdate:field":l[2]||(l[2]=r=>e.unref(o).products.state.current.price=r),placeholder:"Введите цену",class:"w-100 mn-small bg-white radius-small pd-medium",type:"number"},null,8,["field"]),e.createVNode(p.Field,{field:e.unref(o).products.state.current.description,"onUpdate:field":l[3]||(l[3]=r=>e.unref(o).products.state.current.description=r),placeholder:"Введите описание",class:"w-100 mn-small bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])]))}},B={class:"mn-big"},C={class:"mn-small flex-nowrap flex"},$={class:"mn-r-thin"},q={class:"flex-column flex"},P={key:0,class:"w-100 mn-small"},z=["onClick"],D=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),I=[D],N={__name:"EditParameters",props:{items:{type:Array,default:()=>[]},title:String,addButtonLabel:String,emptyMessage:String,keyName:String,valueName:String},emits:["add-info","delete-info"],setup(c,{emit:s}){const o=c;function t(){s("add-info",{})}function l(a){s("delete-info",a)}const{items:r,title:m,emptyMessage:_,addButtonLabel:d,keyName:i,valueName:f}=e.toRefs(o);return(a,v)=>(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("div",C,[e.createElementVNode("h5",$,e.toDisplayString(e.unref(m)),1),e.createElementVNode("button",{onClick:t,class:"i-small pd-thin button-delete button"},"+")]),e.createElementVNode("div",q,[e.unref(r).length==0?(e.openBlock(),e.createElementBlock("p",P,e.toDisplayString(e.unref(_)),1)):e.createCommentVNode("",!0),e.unref(r).length==0?(e.openBlock(),e.createBlock(p._sfc_main,{key:1,onClick:t,class:"button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)),1)]),_:1})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(u,g)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-medium w-100 flex-nowrap flex",key:g},[e.createVNode(p.Field,{field:u[e.unref(i)],"onUpdate:field":h=>u[e.unref(i)]=h,placeholder:"Название параметра",class:"w-100 mn-r-small bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(p.Field,{field:u[e.unref(f)],"onUpdate:field":h=>u[e.unref(f)]=h,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("button",{onClick:h=>l(g),class:"mn-l-small button"},I,8,z)]))),128))])]))}},S=e.createElementVNode("div",{class:"flex-v-center flex-h-center flex w-100 h-100"}," upload ",-1),U={__name:"UploadImageMultiple",props:["uploadPath"],emits:["update:images"],setup(c,{emit:s}){const o=c,t=e.ref([]),l=e.ref(null);function r(){l.value.click()}async function m(d){let i=d.target.files,f=new FormData;for(let a=0;a<i.length;a++)f.append("file",i[a]);try{(await p.axios.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/multiple?folderName=${encodeURIComponent(o.uploadPath)}`,f,{headers:{"Content-Type":"multipart/form-data"}})).data.forEach(u=>{t.value.push(u.filepath)}),s("update:images",t.value)}catch(a){console.error(a)}}function _(d){d.preventDefault(),m({target:{files:d.dataTransfer.files}})}return(d,i)=>(e.openBlock(),e.createElementBlock("div",{onClick:r,onDrop:_,onDragover:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"])),class:"flex-v-center flex-h-center flex"},[S,e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:l,onChange:m,multiple:"",style:{display:"none"}},null,544)],32))}},L={key:0,class:"mn-big"},A={class:"flex-column block"},F=["src"],R=["onClick"],T={__name:"EditProductImages",props:{product:Object},setup(c){function s(t){console.log(t),console.log(n.state.current.images),n.state.current.images.push(...t)}function o(t){n.state.current.images.splice(t,1)}return(t,l)=>(e.openBlock(),e.createElementBlock("div",null,[c.product.images.length<1?(e.openBlock(),e.createElementBlock("p",L," The product doesn't have any images yet. ")):e.createCommentVNode("",!0),e.createVNode(e.unref(E.VueDraggableNext),{class:"cols-4 dragArea list-group w-full",list:c.product.images,sort:!0,onChange:t.log},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.product.images,(r,m)=>(e.openBlock(),e.createElementBlock("div",A,[e.createElementVNode("img",{class:"w-100 mn-small",src:r},null,8,F),e.createElementVNode("a",{onClick:_=>o(m),class:"w-100 br-grey br-solid br-1px button"},"Удалить",8,R)]))),256))]),_:1},8,["list","onChange"]),e.createVNode(U,{"onUpdate:images":s,uploadPath:"organizations/"+t.$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"},j={class:"pd-b-zero pd-t-zero pd-thin"},O={class:"pd-thin"},G={class:"flex-nowrap flex bg-grey pd-medium radius-big"},H={key:0,class:"mn-r-auto"},J={key:1,class:"mn-r-auto"},K={class:"flex-nowrap flex pd-thin"},Q={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},W={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},X=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),Y={class:"mn-semi"},Z=e.createElementVNode("h5",null,"Categories",-1),ee={class:""},te={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},ne=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),oe={__name:"ProductEdit",async setup(c){let s,o;const t=b.useRoute(),l=b.useRouter();[s,o]=e.withAsyncContext(()=>n.actions.fetchCategories()),await s,o(),t.params.product&&([s,o]=e.withAsyncContext(()=>n.actions$1.read({_id:t.params.product})),await s,o());function r(){n.state.current.information.push({name:"",value:""})}function m(a){n.state.current.information.splice(a,1)}function _(){n.state.current.localization.push({locale:"",text:""})}function d(a){n.state.current.localization.splice(a,1)}function i(){t.params.product?n.actions$1.update(t.params.product,n.state.current):n.actions$1.create(t.params._id,n.state.current)}function f(){l.push({name:"ProductEdit",params:{_id:t.params._id,product:n.state.current._id}})}return(a,v)=>(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("div",j,[e.createVNode(n._sfc_main,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",O,[e.createElementVNode("header",G,[e.unref(t).params.product?(e.openBlock(),e.createElementBlock("h1",H,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",J,"Create Product")),e.createElementVNode("section",K,[e.createVNode(p._sfc_main,{submit:i,callback:f},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",Q,[e.createElementVNode("div",W,[X,e.createVNode(w,{product:n.state.current},null,8,["product"]),e.createElementVNode("div",Y,[Z,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.state$1.all,(u,g)=>(e.openBlock(),e.createBlock(k.Checkbox,{label:u.name,name:"categories",value:u.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:n.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(N,{items:n.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:r,onDeleteInfo:m},null,8,["items"]),e.createVNode(N,{items:n.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:_,onDeleteInfo:d},null,8,["items"])]),e.createElementVNode("div",ee,[e.createElementVNode("div",te,[ne,e.createVNode(T,{product:n.state.current},null,8,["product"])])])])]))}};exports.default=oe;
|
@@ -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"),u=require("./Feed-5d8d5c21.js"),o=require("./auth-2bc18d1e.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./CardHeader-0677d446.js");require("./PlaceholderUserpic-10fd9026.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(k){const t=l.useRoute(),c=l.useRouter();let i=t.query.tab?t.query.tab:"posts";const r=e.ref(i);return t.query.tab=r.value,e.watch(r,a=>{c.push({query:{...t.query,tab:a}})}),(a,s)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[_,o.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s[0]||(s[0]=n=>a.$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(t).params._id?(e.openBlock(),e.createBlock(d._sfc_main,{key:0,selected:r.value,"onUpdate:selected":s[1]||(s[1]=n=>r.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),r.value==="posts"?(e.openBlock(),e.createBlock(u._sfc_main,{key:1,user:o.state.user._id,creator:e.unref(t).params._id},null,8,["user","creator"])):e.createCommentVNode("",!0),r.value==="drafts"?(e.openBlock(),e.createBlock(u._sfc_main,{key:2,user:o.state.user._id,creator:e.unref(t).params._id,status:"draft"},null,8,["user","creator"])):e.createCommentVNode("",!0),r.value==="following"?(e.openBlock(),e.createBlock(u._sfc_main,{key:3,user:o.state.user._id,category:"following"},null,8,["user"])):e.createCommentVNode("",!0)]))}};exports.default=f;
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import { ref as f, watch as g, openBlock as t, createElementBlock as d, createElementVNode as p, unref as u, createCommentVNode as s, createBlock as l } from "vue";
|
2
|
+
import { useRoute as v, useRouter as y } from "vue-router";
|
3
|
+
import { _ as b } from "./Tab-a243605d.mjs";
|
4
|
+
import { _ as n } from "./Feed-4b28adc5.mjs";
|
5
|
+
import { s as o } from "./auth-fefd15a3.mjs";
|
6
|
+
import "./inputs.validation-14e8e01f.mjs";
|
7
|
+
import "./globals-96ba60e4.mjs";
|
8
|
+
import "vue-i18n";
|
9
|
+
import "./EmptyState-34d85f10.mjs";
|
10
|
+
import "./CardHeader-e361dada.mjs";
|
11
|
+
import "./PlaceholderUserpic-eb9820ce.mjs";
|
12
|
+
const h = { class: "pd-thin" }, k = { class: "mn-medium flex-v-center flex-nowrap flex" }, w = /* @__PURE__ */ p("h2", { class: "mn-r-medium" }, "Posts", -1), F = {
|
13
|
+
__name: "ProfileBlogposts",
|
14
|
+
setup(q) {
|
15
|
+
const e = v(), c = y();
|
16
|
+
let _ = e.query.tab ? e.query.tab : "posts";
|
17
|
+
const r = f(_);
|
18
|
+
return e.query.tab = r.value, g(r, (i) => {
|
19
|
+
c.push({ query: { ...e.query, tab: i } });
|
20
|
+
}), (i, a) => (t(), d("div", h, [
|
21
|
+
p("header", k, [
|
22
|
+
w,
|
23
|
+
o.user._id === u(e).params._id ? (t(), d("button", {
|
24
|
+
key: 0,
|
25
|
+
onClick: a[0] || (a[0] = (m) => i.$router.push({
|
26
|
+
name: "Create BlogPost"
|
27
|
+
})),
|
28
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
29
|
+
}, " + ")) : s("", !0)
|
30
|
+
]),
|
31
|
+
o.user._id === u(e).params._id ? (t(), l(b, {
|
32
|
+
key: 0,
|
33
|
+
selected: r.value,
|
34
|
+
"onUpdate:selected": a[1] || (a[1] = (m) => r.value = m),
|
35
|
+
tabs: [
|
36
|
+
{ name: "My posts", value: "posts" },
|
37
|
+
{ name: "Drafts", value: "drafts" },
|
38
|
+
{ name: "Following", value: "following" }
|
39
|
+
],
|
40
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
41
|
+
}, null, 8, ["selected"])) : s("", !0),
|
42
|
+
r.value === "posts" ? (t(), l(n, {
|
43
|
+
key: 1,
|
44
|
+
user: o.user._id,
|
45
|
+
creator: u(e).params._id
|
46
|
+
}, null, 8, ["user", "creator"])) : s("", !0),
|
47
|
+
r.value === "drafts" ? (t(), l(n, {
|
48
|
+
key: 2,
|
49
|
+
user: o.user._id,
|
50
|
+
creator: u(e).params._id,
|
51
|
+
status: "draft"
|
52
|
+
}, null, 8, ["user", "creator"])) : s("", !0),
|
53
|
+
r.value === "following" ? (t(), l(n, {
|
54
|
+
key: 3,
|
55
|
+
user: o.user._id,
|
56
|
+
category: "following"
|
57
|
+
}, null, 8, ["user"])) : s("", !0)
|
58
|
+
]));
|
59
|
+
}
|
60
|
+
};
|
61
|
+
export {
|
62
|
+
F as default
|
63
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("vue-router"),c=require("./Tab-6f0a4909.js"),i=require("./Feed-5d8d5c21.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./auth-2bc18d1e.js");require("./CardHeader-0677d446.js");require("./PlaceholderUserpic-10fd9026.js");const m={class:"pd-thin"},d=e.createElementVNode("header",{class:"mn-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Comments")],-1),p={__name:"ProfileComments",setup(q){const r=o.useRoute(),n=o.useRouter();let a=r.query.tab?r.query.tab:"posts";const t=e.ref(a);return r.query.tab=t.value,e.watch(t,u=>{n.push({query:{...r.query,tab:u}})}),(u,s)=>(e.openBlock(),e.createElementBlock("div",m,[d,e.createVNode(c._sfc_main,{selected:t.value,"onUpdate:selected":s[0]||(s[0]=l=>t.value=l),tabs:[{name:"My posts",value:"posts"},{name:"Following",value:"hubs"}],class:"mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),t.value==="posts"?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,user:e.unref(r).params._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]))}};exports.default=p;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { ref as l, watch as p, openBlock as s, createElementBlock as c, createVNode as d, createBlock as _, unref as a, createCommentVNode as f, createElementVNode as m } from "vue";
|
2
|
+
import { useRoute as b, useRouter as h } from "vue-router";
|
3
|
+
import { _ as v } from "./Tab-a243605d.mjs";
|
4
|
+
import { _ as y } from "./Feed-4b28adc5.mjs";
|
5
|
+
import "./inputs.validation-14e8e01f.mjs";
|
6
|
+
import "./globals-96ba60e4.mjs";
|
7
|
+
import "vue-i18n";
|
8
|
+
import "./EmptyState-34d85f10.mjs";
|
9
|
+
import "./auth-fefd15a3.mjs";
|
10
|
+
import "./CardHeader-e361dada.mjs";
|
11
|
+
import "./PlaceholderUserpic-eb9820ce.mjs";
|
12
|
+
const g = { class: "pd-thin" }, q = /* @__PURE__ */ m("header", { class: "mn-medium flex-v-center flex-nowrap flex" }, [
|
13
|
+
/* @__PURE__ */ m("h2", { class: "mn-r-medium" }, "Comments")
|
14
|
+
], -1), M = {
|
15
|
+
__name: "ProfileComments",
|
16
|
+
setup(w) {
|
17
|
+
const e = b(), n = h();
|
18
|
+
let u = e.query.tab ? e.query.tab : "posts";
|
19
|
+
const t = l(u);
|
20
|
+
return e.query.tab = t.value, p(t, (r) => {
|
21
|
+
n.push({ query: { ...e.query, tab: r } });
|
22
|
+
}), (r, o) => (s(), c("div", g, [
|
23
|
+
q,
|
24
|
+
d(v, {
|
25
|
+
selected: t.value,
|
26
|
+
"onUpdate:selected": o[0] || (o[0] = (i) => t.value = i),
|
27
|
+
tabs: [
|
28
|
+
{ name: "My posts", value: "posts" },
|
29
|
+
{ name: "Following", value: "hubs" }
|
30
|
+
],
|
31
|
+
class: "mn-r-medium o-hidden h5 radius-big bg-grey"
|
32
|
+
}, null, 8, ["selected"]),
|
33
|
+
t.value === "posts" ? (s(), _(y, {
|
34
|
+
key: 0,
|
35
|
+
user: a(e).params._id,
|
36
|
+
owner: a(e).params._id
|
37
|
+
}, null, 8, ["user", "owner"])) : f("", !0)
|
38
|
+
]));
|
39
|
+
}
|
40
|
+
};
|
41
|
+
export {
|
42
|
+
M as default
|
43
|
+
};
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import { ref as f, watch as v, openBlock as a, createElementBlock as c, createElementVNode as d, unref as s, createCommentVNode as o, createVNode as b, createBlock as l } from "vue";
|
2
|
+
import { useRoute as h, useRouter as y } from "vue-router";
|
3
|
+
import { _ as k } from "./Tab-58cd105f.mjs";
|
4
|
+
import { _ as p } from "./Feed-dc8b66bf.mjs";
|
5
|
+
import { s as n } from "./auth-35ef1791.mjs";
|
6
|
+
import "./inputs.validation-6960f71b.mjs";
|
7
|
+
import "./globals-96ba60e4.mjs";
|
8
|
+
import "vue-i18n";
|
9
|
+
import "./EmptyState-34d85f10.mjs";
|
10
|
+
import "./CardHeader-ce5a1a75.mjs";
|
11
|
+
import "./PlaceholderUserpic-995da0fc.mjs";
|
12
|
+
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), U = {
|
13
|
+
__name: "ProfileEvents",
|
14
|
+
setup(x) {
|
15
|
+
const e = h(), i = y();
|
16
|
+
let _ = e.query.tab ? e.query.tab : "owner";
|
17
|
+
const t = f(_);
|
18
|
+
return e.query.tab = t.value, v(t, (u) => {
|
19
|
+
i.push({ query: { ...e.query, tab: u } });
|
20
|
+
}), (u, r) => (a(), c("div", g, [
|
21
|
+
d("header", w, [
|
22
|
+
q,
|
23
|
+
n.user._id === s(e).params._id ? (a(), c("button", {
|
24
|
+
key: 0,
|
25
|
+
onClick: r[0] || (r[0] = (m) => s(i).push({ name: "Create Event" })),
|
26
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
27
|
+
}, " + ")) : o("", !0)
|
28
|
+
]),
|
29
|
+
b(k, {
|
30
|
+
selected: t.value,
|
31
|
+
"onUpdate:selected": r[1] || (r[1] = (m) => t.value = m),
|
32
|
+
tabs: [
|
33
|
+
{ name: "My", value: "owner" },
|
34
|
+
{ name: "Participant", value: "participant" }
|
35
|
+
],
|
36
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
37
|
+
}, null, 8, ["selected"]),
|
38
|
+
t.value === "owner" ? (a(), l(p, {
|
39
|
+
key: 0,
|
40
|
+
user: n.user._id,
|
41
|
+
creator: s(e).params._id,
|
42
|
+
sortOrder: "asc"
|
43
|
+
}, null, 8, ["user", "creator"])) : o("", !0),
|
44
|
+
t.value === "participant" ? (a(), l(p, {
|
45
|
+
key: 1,
|
46
|
+
user: n.user._id,
|
47
|
+
participant: s(e).params._id,
|
48
|
+
sortOrder: "desc"
|
49
|
+
}, null, 8, ["user", "participant"])) : o("", !0)
|
50
|
+
]));
|
51
|
+
}
|
52
|
+
};
|
53
|
+
export {
|
54
|
+
U as default
|
55
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("vue-router"),d=require("./Tab-6f0a4909.js"),i=require("./Feed-eeb63363.js"),n=require("./auth-2bc18d1e.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./CardHeader-0677d446.js");require("./PlaceholderUserpic-10fd9026.js");const m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},_=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),v={__name:"ProfileEvents",setup(q){const r=c.useRoute(),s=c.useRouter();let l=r.query.tab?r.query.tab:"owner";const t=e.ref(l);return r.query.tab=t.value,e.watch(t,u=>{s.push({query:{...r.query,tab:u}})}),(u,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[_,n.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=o=>e.unref(s).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(i._sfc_main,{key:0,user:n.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(i._sfc_main,{key:1,user:n.state.user._id,participant:e.unref(r).params._id,sortOrder:"desc"},null,8,["user","participant"])):e.createCommentVNode("",!0)]))}};exports.default=v;
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import { ref as f, watch as v, openBlock as a, createElementBlock as c, createElementVNode as d, unref as s, createCommentVNode as o, createVNode as b, createBlock as l } from "vue";
|
2
|
+
import { useRoute as h, useRouter as y } from "vue-router";
|
3
|
+
import { _ as k } from "./Tab-a243605d.mjs";
|
4
|
+
import { _ as p } from "./Feed-76b2997e.mjs";
|
5
|
+
import { s as n } from "./auth-fefd15a3.mjs";
|
6
|
+
import "./inputs.validation-14e8e01f.mjs";
|
7
|
+
import "./globals-96ba60e4.mjs";
|
8
|
+
import "vue-i18n";
|
9
|
+
import "./EmptyState-34d85f10.mjs";
|
10
|
+
import "./CardHeader-e361dada.mjs";
|
11
|
+
import "./PlaceholderUserpic-eb9820ce.mjs";
|
12
|
+
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), U = {
|
13
|
+
__name: "ProfileEvents",
|
14
|
+
setup(x) {
|
15
|
+
const e = h(), i = y();
|
16
|
+
let _ = e.query.tab ? e.query.tab : "owner";
|
17
|
+
const t = f(_);
|
18
|
+
return e.query.tab = t.value, v(t, (u) => {
|
19
|
+
i.push({ query: { ...e.query, tab: u } });
|
20
|
+
}), (u, r) => (a(), c("div", g, [
|
21
|
+
d("header", w, [
|
22
|
+
q,
|
23
|
+
n.user._id === s(e).params._id ? (a(), c("button", {
|
24
|
+
key: 0,
|
25
|
+
onClick: r[0] || (r[0] = (m) => s(i).push({ name: "Create Event" })),
|
26
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
27
|
+
}, " + ")) : o("", !0)
|
28
|
+
]),
|
29
|
+
b(k, {
|
30
|
+
selected: t.value,
|
31
|
+
"onUpdate:selected": r[1] || (r[1] = (m) => t.value = m),
|
32
|
+
tabs: [
|
33
|
+
{ name: "My", value: "owner" },
|
34
|
+
{ name: "Participant", value: "participant" }
|
35
|
+
],
|
36
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
37
|
+
}, null, 8, ["selected"]),
|
38
|
+
t.value === "owner" ? (a(), l(p, {
|
39
|
+
key: 0,
|
40
|
+
user: n.user._id,
|
41
|
+
creator: s(e).params._id,
|
42
|
+
sortOrder: "asc"
|
43
|
+
}, null, 8, ["user", "creator"])) : o("", !0),
|
44
|
+
t.value === "participant" ? (a(), l(p, {
|
45
|
+
key: 1,
|
46
|
+
user: n.user._id,
|
47
|
+
participant: s(e).params._id,
|
48
|
+
sortOrder: "desc"
|
49
|
+
}, null, 8, ["user", "participant"])) : o("", !0)
|
50
|
+
]));
|
51
|
+
}
|
52
|
+
};
|
53
|
+
export {
|
54
|
+
U as default
|
55
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("vue-router"),d=require("./Tab-6f0a4909.js"),i=require("./Feed-51e4e232.js"),n=require("./auth-5aa8e90c.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./CardHeader-925a972b.js");require("./PlaceholderUserpic-d64d6dd5.js");const m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},_=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),v={__name:"ProfileEvents",setup(q){const r=c.useRoute(),s=c.useRouter();let l=r.query.tab?r.query.tab:"owner";const t=e.ref(l);return r.query.tab=t.value,e.watch(t,u=>{s.push({query:{...r.query,tab:u}})}),(u,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[_,n.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=o=>e.unref(s).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(i._sfc_main,{key:0,user:n.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(i._sfc_main,{key:1,user:n.state.user._id,participant:e.unref(r).params._id,sortOrder:"desc"},null,8,["user","participant"])):e.createCommentVNode("",!0)]))}};exports.default=v;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { ref as l, watch as p, openBlock as s, createElementBlock as c, createVNode as d, createBlock as _, unref as a, createCommentVNode as f, createElementVNode as m } from "vue";
|
2
|
+
import { useRoute as b, useRouter as h } from "vue-router";
|
3
|
+
import { _ as v } from "./Tab-a243605d.mjs";
|
4
|
+
import { _ as y } from "./Feed-4b28adc5.mjs";
|
5
|
+
import "./inputs.validation-14e8e01f.mjs";
|
6
|
+
import "./globals-96ba60e4.mjs";
|
7
|
+
import "vue-i18n";
|
8
|
+
import "./EmptyState-34d85f10.mjs";
|
9
|
+
import "./auth-fefd15a3.mjs";
|
10
|
+
import "./CardHeader-e361dada.mjs";
|
11
|
+
import "./PlaceholderUserpic-eb9820ce.mjs";
|
12
|
+
const k = { class: "pd-thin" }, g = /* @__PURE__ */ m("header", { class: "mn-medium flex-v-center flex-nowrap flex" }, [
|
13
|
+
/* @__PURE__ */ m("h2", { class: "mn-r-medium" }, "Likes")
|
14
|
+
], -1), F = {
|
15
|
+
__name: "ProfileLikes",
|
16
|
+
setup(q) {
|
17
|
+
const e = b(), n = h();
|
18
|
+
let u = e.query.tab ? e.query.tab : "posts";
|
19
|
+
const t = l(u);
|
20
|
+
return e.query.tab = t.value, p(t, (r) => {
|
21
|
+
n.push({ query: { ...e.query, tab: r } });
|
22
|
+
}), (r, o) => (s(), c("div", k, [
|
23
|
+
g,
|
24
|
+
d(v, {
|
25
|
+
selected: t.value,
|
26
|
+
"onUpdate:selected": o[0] || (o[0] = (i) => t.value = i),
|
27
|
+
tabs: [
|
28
|
+
{ name: "My posts", value: "posts" },
|
29
|
+
{ name: "Following", value: "hubs" }
|
30
|
+
],
|
31
|
+
class: "mn-r-medium o-hidden h5 radius-big bg-grey"
|
32
|
+
}, null, 8, ["selected"]),
|
33
|
+
t.value === "posts" ? (s(), _(y, {
|
34
|
+
key: 0,
|
35
|
+
user: a(e).params._id,
|
36
|
+
owner: a(e).params._id
|
37
|
+
}, null, 8, ["user", "owner"])) : f("", !0)
|
38
|
+
]));
|
39
|
+
}
|
40
|
+
};
|
41
|
+
export {
|
42
|
+
F as default
|
43
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("vue-router"),l=require("./Tab-6f0a4909.js"),c=require("./Feed-5d8d5c21.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./auth-2bc18d1e.js");require("./CardHeader-0677d446.js");require("./PlaceholderUserpic-10fd9026.js");const d={class:"pd-thin"},m=e.createElementVNode("header",{class:"mn-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Likes")],-1),p={__name:"ProfileLikes",setup(q){const r=o.useRoute(),a=o.useRouter();let n=r.query.tab?r.query.tab:"posts";const t=e.ref(n);return r.query.tab=t.value,e.watch(t,u=>{a.push({query:{...r.query,tab:u}})}),(u,s)=>(e.openBlock(),e.createElementBlock("div",d,[m,e.createVNode(l._sfc_main,{selected:t.value,"onUpdate:selected":s[0]||(s[0]=i=>t.value=i),tabs:[{name:"My posts",value:"posts"},{name:"Following",value:"hubs"}],class:"mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),t.value==="posts"?(e.openBlock(),e.createBlock(c._sfc_main,{key:0,user:e.unref(r).params._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]))}};exports.default=p;
|
@@ -0,0 +1,211 @@
|
|
1
|
+
import { openBlock as r, createElementBlock as o, createStaticVNode as $, ref as c, onMounted as C, createVNode as d, TransitionGroup as v, withCtx as g, Fragment as k, renderList as w, createBlock as f, createCommentVNode as u, Transition as h, normalizeClass as N, watch as q, createElementVNode as O, unref as y } from "vue";
|
2
|
+
import { useRoute as M, useRouter as D } from "vue-router";
|
3
|
+
import { _ as F } from "./Tab-a243605d.mjs";
|
4
|
+
import { _ as L } from "./EmptyState-34d85f10.mjs";
|
5
|
+
import { _ as V } from "./CardOrganization-bacc2ef6.mjs";
|
6
|
+
import { _ as B, s as _ } from "./auth-fefd15a3.mjs";
|
7
|
+
import { a as x } from "./organizations-1581c013.mjs";
|
8
|
+
import "./inputs.validation-14e8e01f.mjs";
|
9
|
+
import "./globals-96ba60e4.mjs";
|
10
|
+
import "vue-i18n";
|
11
|
+
import "./ButtonFollow-001c4a65.mjs";
|
12
|
+
const E = {}, G = {
|
13
|
+
width: "100%",
|
14
|
+
height: "20rem",
|
15
|
+
xmlns: "http://www.w3.org/2000/svg"
|
16
|
+
}, P = /* @__PURE__ */ $('<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), R = [
|
17
|
+
P
|
18
|
+
];
|
19
|
+
function T(b, e) {
|
20
|
+
return r(), o("svg", G, R);
|
21
|
+
}
|
22
|
+
const U = /* @__PURE__ */ B(E, [["render", T]]), j = { class: "feed" }, z = {
|
23
|
+
__name: "Feed",
|
24
|
+
props: {
|
25
|
+
category: {
|
26
|
+
type: String,
|
27
|
+
default: null
|
28
|
+
},
|
29
|
+
selectedDate: {
|
30
|
+
type: String,
|
31
|
+
default: null
|
32
|
+
},
|
33
|
+
organization: {
|
34
|
+
type: String,
|
35
|
+
default: null
|
36
|
+
},
|
37
|
+
owner: {
|
38
|
+
type: String,
|
39
|
+
default: null
|
40
|
+
},
|
41
|
+
user: {
|
42
|
+
type: [String, Number],
|
43
|
+
default: null
|
44
|
+
},
|
45
|
+
member: {
|
46
|
+
type: [String, Number],
|
47
|
+
default: null
|
48
|
+
},
|
49
|
+
subscriber: {
|
50
|
+
type: [String, Number],
|
51
|
+
default: null
|
52
|
+
},
|
53
|
+
sortOrder: {
|
54
|
+
type: String,
|
55
|
+
default: "desc"
|
56
|
+
},
|
57
|
+
participant: {
|
58
|
+
type: String,
|
59
|
+
default: null
|
60
|
+
},
|
61
|
+
period: {
|
62
|
+
type: String,
|
63
|
+
default: null
|
64
|
+
},
|
65
|
+
status: {
|
66
|
+
type: String,
|
67
|
+
default: null
|
68
|
+
}
|
69
|
+
},
|
70
|
+
setup(b) {
|
71
|
+
const e = b, a = c([]), n = c(!1), t = c(!0), i = c(0), s = c(20), p = async () => {
|
72
|
+
if (n.value) {
|
73
|
+
i.value += s.value;
|
74
|
+
const l = await x.read({
|
75
|
+
skip: i.value,
|
76
|
+
limit: s.value,
|
77
|
+
category: e.category,
|
78
|
+
sortOrder: e.sortOrder,
|
79
|
+
member: e.member,
|
80
|
+
subscriber: e.subscriber,
|
81
|
+
onlyuser: e.onlyuser,
|
82
|
+
user: e.user,
|
83
|
+
date: e.selectedDate,
|
84
|
+
owner: e.owner,
|
85
|
+
organization: e.organization,
|
86
|
+
period: e.period,
|
87
|
+
status: e.status
|
88
|
+
});
|
89
|
+
l.length === 0 ? n.value = !1 : n.value = !0, a.value = [...a.value, ...l];
|
90
|
+
}
|
91
|
+
};
|
92
|
+
return C(async () => {
|
93
|
+
t.value = !0, console.log(e.selectedDate);
|
94
|
+
const l = await x.read({
|
95
|
+
skip: i.value,
|
96
|
+
limit: s.value,
|
97
|
+
category: e.category,
|
98
|
+
member: e.member,
|
99
|
+
subscriber: e.subscriber,
|
100
|
+
onlyuser: e.onlyuser,
|
101
|
+
sortOrder: e.sortOrder,
|
102
|
+
user: e.user,
|
103
|
+
owner: e.owner,
|
104
|
+
date: e.selectedDate,
|
105
|
+
organization: e.organization,
|
106
|
+
period: e.period,
|
107
|
+
status: e.status
|
108
|
+
});
|
109
|
+
l.length === 0 ? n.value = !1 : n.value = !0, a.value = l, t.value = !1;
|
110
|
+
}), (l, J) => (r(), o("section", j, [
|
111
|
+
d(v, {
|
112
|
+
tag: "ul",
|
113
|
+
name: "fade",
|
114
|
+
class: "o-hidden bg-grey radius-big"
|
115
|
+
}, {
|
116
|
+
default: g(() => [
|
117
|
+
t.value ? (r(!0), o(k, { key: 0 }, w(s.value, (m) => (r(), f(U, { key: m }))), 128)) : u("", !0)
|
118
|
+
]),
|
119
|
+
_: 1
|
120
|
+
}),
|
121
|
+
d(h, { name: "fade" }, {
|
122
|
+
default: g(() => [
|
123
|
+
!t.value && a.value.length < 1 ? (r(), f(L, {
|
124
|
+
key: 0,
|
125
|
+
title: "No Organizations Found",
|
126
|
+
description: "Currently, there are no organizations available. Please check back later.",
|
127
|
+
class: "pd-medium mn-thin bg-grey radius-big"
|
128
|
+
})) : u("", !0)
|
129
|
+
]),
|
130
|
+
_: 1
|
131
|
+
}),
|
132
|
+
d(v, {
|
133
|
+
tag: "ul",
|
134
|
+
name: "fade",
|
135
|
+
class: "container"
|
136
|
+
}, {
|
137
|
+
default: g(() => [
|
138
|
+
!t.value && a.value.length > 0 ? (r(!0), o(k, { key: 0 }, w(a.value, (m, S) => (r(), f(V, {
|
139
|
+
onClick: (K) => l.$router.push({ name: "Organization", params: { _id: m._id } }),
|
140
|
+
key: m._id,
|
141
|
+
organization: m,
|
142
|
+
user: b.user,
|
143
|
+
type: "normal",
|
144
|
+
class: N(["w-100 radius-big mn-medium", {
|
145
|
+
"br-b br-solid br-black-transp-10": S !== a.value.length - 1
|
146
|
+
}])
|
147
|
+
}, null, 8, ["onClick", "organization", "user", "class"]))), 128)) : u("", !0),
|
148
|
+
n.value && a.value.length > 0 ? (r(), o("button", {
|
149
|
+
key: 1,
|
150
|
+
onClick: p,
|
151
|
+
class: "w-100 bg-main button"
|
152
|
+
}, "Load more")) : u("", !0)
|
153
|
+
]),
|
154
|
+
_: 1
|
155
|
+
})
|
156
|
+
]));
|
157
|
+
}
|
158
|
+
}, A = { class: "pd-thin" }, H = { class: "mn-medium flex-v-center flex-nowrap flex" }, I = /* @__PURE__ */ O("h2", { class: "mn-r-medium" }, "Groups", -1), ie = {
|
159
|
+
__name: "ProfileOrganizations",
|
160
|
+
setup(b) {
|
161
|
+
const e = M(), a = D();
|
162
|
+
let n = e.query.tab ? e.query.tab : "member";
|
163
|
+
const t = c(n);
|
164
|
+
return e.query.tab = t.value, q(t, (i) => {
|
165
|
+
a.push({ query: { ...e.query, tab: i } });
|
166
|
+
}), (i, s) => (r(), o("div", A, [
|
167
|
+
O("header", H, [
|
168
|
+
I,
|
169
|
+
_.user._id === y(e).params._id ? (r(), o("button", {
|
170
|
+
key: 0,
|
171
|
+
onClick: s[0] || (s[0] = (p) => i.$router.push({
|
172
|
+
name: "Create Organization"
|
173
|
+
})),
|
174
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
175
|
+
}, " + ")) : u("", !0)
|
176
|
+
]),
|
177
|
+
d(F, {
|
178
|
+
selected: t.value,
|
179
|
+
"onUpdate:selected": s[1] || (s[1] = (p) => t.value = p),
|
180
|
+
tabs: [
|
181
|
+
{ name: "Member", value: "member" },
|
182
|
+
{ name: "Follower", value: "follower" }
|
183
|
+
],
|
184
|
+
class: "mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"
|
185
|
+
}, null, 8, ["selected"]),
|
186
|
+
d(h, { name: "slide-fade" }, {
|
187
|
+
default: g(() => [
|
188
|
+
t.value === "member" ? (r(), f(z, {
|
189
|
+
key: 0,
|
190
|
+
user: _.user._id,
|
191
|
+
owner: y(e).params._id
|
192
|
+
}, null, 8, ["user", "owner"])) : u("", !0)
|
193
|
+
]),
|
194
|
+
_: 1
|
195
|
+
}),
|
196
|
+
d(h, { name: "slide-fade" }, {
|
197
|
+
default: g(() => [
|
198
|
+
t.value === "follower" ? (r(), f(z, {
|
199
|
+
key: 0,
|
200
|
+
user: _.user._id,
|
201
|
+
subscriber: y(e).params._id
|
202
|
+
}, null, 8, ["user", "subscriber"])) : u("", !0)
|
203
|
+
]),
|
204
|
+
_: 1
|
205
|
+
})
|
206
|
+
]));
|
207
|
+
}
|
208
|
+
};
|
209
|
+
export {
|
210
|
+
ie as default
|
211
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("vue-router"),p=require("./Tab-6f0a4909.js"),y=require("./EmptyState-7658d7d6.js"),h=require("./CardOrganization-51309400.js"),d=require("./auth-2bc18d1e.js"),g=require("./organizations-c455dad7.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./ButtonFollow-48043cc7.js");const k={},v={width:"100%",height:"20rem",xmlns:"http://www.w3.org/2000/svg"},_=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),w=[_];function B(u,t){return e.openBlock(),e.createElementBlock("svg",v,w)}const x=d._export_sfc(k,[["render",B]]),C={class:"feed"},b={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},member:{type:[String,Number],default:null},subscriber:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},participant:{type:String,default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(u){const t=u,a=e.ref([]),o=e.ref(!1),r=e.ref(!0),l=e.ref(0),n=e.ref(20),c=async()=>{if(o.value){l.value+=n.value;const i=await g.actions.read({skip:l.value,limit:n.value,category:t.category,sortOrder:t.sortOrder,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,status:t.status});i.length===0?o.value=!1:o.value=!0,a.value=[...a.value,...i]}};return e.onMounted(async()=>{r.value=!0,console.log(t.selectedDate);const i=await g.actions.read({skip:l.value,limit:n.value,category:t.category,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,sortOrder:t.sortOrder,user:t.user,owner:t.owner,date:t.selectedDate,organization:t.organization,period:t.period,status:t.status});i.length===0?o.value=!1:o.value=!0,a.value=i,r.value=!1}),(i,V)=>(e.openBlock(),e.createElementBlock("section",C,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[r.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value,s=>(e.openBlock(),e.createBlock(x,{key:s}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!r.value&&a.value.length<1?(e.openBlock(),e.createBlock(y._sfc_main,{key:0,title:"No Organizations Found",description:"Currently, there are no organizations 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(()=>[!r.value&&a.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.value,(s,f)=>(e.openBlock(),e.createBlock(h._sfc_main,{onClick:O=>i.$router.push({name:"Organization",params:{_id:s._id}}),key:s._id,organization:s,user:u.user,type:"normal",class:e.normalizeClass(["w-100 radius-big mn-medium",{"br-b br-solid br-black-transp-10":f!==a.value.length-1}])},null,8,["onClick","organization","user","class"]))),128)):e.createCommentVNode("",!0),o.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:c,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}},N={class:"pd-thin"},z={class:"mn-medium flex-v-center flex-nowrap flex"},q=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),S={__name:"ProfileOrganizations",setup(u){const t=m.useRoute(),a=m.useRouter();let o=t.query.tab?t.query.tab:"member";const r=e.ref(o);return t.query.tab=r.value,e.watch(r,l=>{a.push({query:{...t.query,tab:l}})}),(l,n)=>(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("header",z,[q,d.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[0]||(n[0]=c=>l.$router.push({name:"Create Organization"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(p._sfc_main,{selected:r.value,"onUpdate:selected":n[1]||(n[1]=c=>r.value=c),tabs:[{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="member"?(e.openBlock(),e.createBlock(b,{key:0,user:d.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="follower"?(e.openBlock(),e.createBlock(b,{key:0,user:d.state.user._id,subscriber:e.unref(t).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=S;
|