import{_ as h,B as k,S as g,e as M,c as S}from"./app.js";const D={name:"PostShortcutBase",props:["model"],computed:{excerpt(){return this.model.teaser&&this.model.teaser.length>0?this.model.teaser:this.model.excerpt},typeClass(){return"type-"+this.model.post_type},thumbnail(){return this.model.image?this.model.image:!1}}},T={name:"PostShortcutToolbar",components:{BookmarkButton:k},props:{metaDate:{type:String,default:null},metaTime:{type:String,default:null},metaDuration:{type:String,default:null},bookmarkObject:{type:Object,required:!0,default:null}},computed:{}},_=window.Vue.toDisplayString,n=window.Vue.openBlock,l=window.Vue.createElementBlock,i=window.Vue.createCommentVNode,p=window.Vue.createElementVNode,j=window.Vue.resolveComponent,P=window.Vue.createBlock,E={class:"post-shortcut__toolbar"},N={class:"post-shortcut__toolbar__meta"},v={class:"date"},z={key:0,class:"date__day"},O={key:1,class:"date__time"},I={key:0,class:"duration"};function L(b,w,e,y,B,t){const d=j("BookmarkButton");return n(),l("span",E,[p("span",N,[p("span",v,[e.metaDate?(n(),l("span",z,_(e.metaDate),1)):i("",!0),e.metaTime?(n(),l("span",O,_(e.metaTime),1)):i("",!0)]),e.metaDuration?(n(),l("span",I,_(e.metaDuration),1)):i("",!0)]),e.bookmarkObject?(n(),P(d,{key:0,"bookmark-object":e.bookmarkObject},null,8,["bookmark-object"])):i("",!0)])}const R=h(T,[["render",L]]),q={name:"PostShortcut",extends:D,props:["post"],components:{SoylentLink:g,BookmarkButton:k,PostShortcutToolbar:R,CroppedText:M,CmmsResponsiveImage:S},computed:{excerpt(){return this.postModel.teaser&&this.postModel.teaser.length>0?this.postModel.teaser:this.postModel.excerpt},postTypeClass(){return"type-"+this.postModel.post_type},postThumbnail(){return this.postModel.image?this.postModel.image:!1},postDate(){return"".concat(this.postModel.date.d,". ").concat(this.postModel.date.m_short_txt," ").concat(this.postModel.date.y," ")},postDuration(){return this.postModel.duration?this.$filters.appendDurationPrefix(this.postModel.duration):null},postModel(){return this.model?this.model:this.post},hasBookmarks(){return"bookmark_object"in this.post}}},r=window.Vue.resolveComponent,s=window.Vue.openBlock,c=window.Vue.createBlock,a=window.Vue.createCommentVNode,o=window.Vue.createElementVNode,u=window.Vue.createElementBlock,m=window.Vue.toDisplayString,A=window.Vue.normalizeClass,F=window.Vue.withCtx,G={class:"media-wrapper"},H={class:"thumbnail"},J=o("span",{class:"media-label"},[o("span",{class:"media-label__label"},[o("span",{class:"media-label__icon iconSet"})])],-1),K={class:"entry-wrapper"},Q={class:"headline-wrapper"},U={key:1,class:"zone-label"},W={class:"meta"},X={class:"date"},Y={class:"date__day"},Z={class:"date__time"},$={key:0,class:"duration"},tt={key:2,class:"title"};function et(b,w,e,y,B,t){const d=r("CmmsResponsiveImage"),f=r("BookmarkButton"),V=r("CroppedText"),x=r("PostShortcutToolbar"),C=r("SoylentLink");return s(),c(C,{url:t.postModel.url,class:A(["post-shortcut",t.postTypeClass])},{default:F(()=>[o("span",G,[o("span",H,[t.postThumbnail?(s(),c(d,{key:0,fill:!0,image:t.postThumbnail},null,8,["image"])):a("",!0)]),J]),o("span",K,[o("span",Q,[t.hasBookmarks?(s(),c(f,{key:0,"bookmark-object":e.post.bookmark_object},null,8,["bookmark-object"])):a("",!0),t.postModel.show_ad_label?(s(),u("span",U,"Anzeige")):a("",!0),o("span",W,[o("span",X,[o("span",Y,m(t.postDate),1),o("span",Z,m(t.postModel.date.time_txt),1)]),t.postModel.duration?(s(),u("span",$,m(t.postDuration),1)):a("",!0)]),t.postModel.title?(s(),u("span",tt,m(t.postModel.title),1)):a("",!0)]),t.excerpt?(s(),c(V,{key:0,class:"excerpt",tag:"span",text:t.excerpt,lines:4},null,8,["text"])):a("",!0)]),t.hasBookmarks?(s(),c(x,{key:0,"bookmark-object":e.post.bookmark_object,"meta-time":t.postModel.date.time_txt,"meta-date":t.postDate,"meta-duration":t.postDuration},null,8,["bookmark-object","meta-time","meta-date","meta-duration"])):a("",!0)]),_:1},8,["url","class"])}const st=h(q,[["render",et]]);export{st as P};