import{_,S as w,E as r,s as a}from"./app.js";import{P as s}from"./PostShortcut.js";import{L as h}from"./LoadMoreButton.js";import"./swiper.js";const y={name:"SoylentPostThumbs",props:["element"],components:{SoylentLink:w,ElementHeader:r,LoadMoreButton:h,PostShortcut:s},computed:{adsClass:function(){return this.element.data.ads===1?"-with-ad":""},columnsClass:function(){return"-col-"+this.element.data.columns},elementHeader:function(){return a.getByName("elementHeader",r)},postShortcut:function(){return a.getByName("postShortcut",s)},layoutClass:function(){return this.element.data.layout==="list"?"-layout-list":""},moreUrl(){return this.element.data.more_url!==""?this.element.data.more_url:null},showMoreBtn(){return this.element.data.hide_show_more_btn!==1}}},m=window.Vue.resolveDynamicComponent,n=window.Vue.openBlock,o=window.Vue.createBlock,u=window.Vue.createCommentVNode,C=window.Vue.renderList,V=window.Vue.Fragment,c=window.Vue.createElementBlock,d=window.Vue.normalizeClass,f=window.Vue.createElementVNode,B=window.Vue.resolveComponent;function p(k,v,t,L,S,e){const i=B("LoadMoreButton");return n(),c("div",{class:d(["element",t.element.type,t.element.subtype])},[t.element.data.headline?(n(),o(m(e.elementHeader),{key:0,headline:t.element.data.headline},null,8,["headline"])):u("",!0),f("div",{class:d(["post-shortcuts",[e.columnsClass,e.layoutClass,e.adsClass]])},[(n(!0),c(V,null,C(t.element.data.items,l=>(n(),o(m(e.postShortcut),{post:l,key:l.post_id},null,8,["post"]))),128))],2),e.moreUrl&&e.showMoreBtn?(n(),o(i,{key:1,url:t.element.data.more_url},null,8,["url"])):u("",!0)],2)}const b=_(y,[["render",p]]);export{b as default};