import{P as c}from"./PostShortcut.js";import{E as s}from"./EventShortcut.js";import{_ as i,s as m}from"./app.js";import"./swiper.js";window.Vue.defineAsyncComponent;const u={name:"SoylentRelatedContents",components:{PostShortcut:c,EventShortcut:s},props:["element"],computed:{componentShortcutName(){const e=(this.element.data.shortcut_component||"").trim();return e.length?e:"postShortcut"},shortcutComponent(){return this.componentShortcutName==="eventShortcut"?m.getByName(this.componentShortcutName,s):m.getByName(this.componentShortcutName,c)},modelKey(){const e=(this.element.data.shortcut_model_key||"").trim();return e.length?e:this.componentShortcutName==="eventShortcut"?"event":"post"}}},d=window.Vue.toDisplayString,a=window.Vue.createElementVNode,h=window.Vue.renderList,p=window.Vue.Fragment,n=window.Vue.openBlock,l=window.Vue.createElementBlock,_=window.Vue.resolveDynamicComponent,w=window.Vue.normalizeProps,y=window.Vue.createBlock,S=window.Vue.normalizeClass,V={class:"element-header"},f={class:"post-shortcuts -col-4"};function C(e,v,t,N,g,r){return n(),l("div",{class:S(["element",t.element.type,t.element.subtype])},[a("h3",V,d(t.element.data.title),1),a("div",f,[(n(!0),l(p,null,h(t.element.data.related,o=>(n(),y(_(r.shortcutComponent),w({model:o,[r.modelKey||""]:o,key:o.post_id}),null,16,["model"]))),128))])],2)}const z=i(u,[["render",C]]);export{z as default};