1import{d as t,a as e,h as a}from"./Cm2J8wJT.js";import{ah as s,ak as i,am as r,J as n,L as o,a5 as l,R as c,V as g,T as m,U as d,$ as h,M as y,u as p,Q as _}from"./Cw52Jb_b.js";import"./oPzPbeIq.js";import"./Dv5-W7ly.js";const u=t({name:"ImageTileOverlay",props:{content:{type:Object,default:()=>({title:"",badge:"",image:"",sponsored:""})},alternate:{type:String,default:()=>{}},skipLazy:{default:!1}},setup:()=>({store:e()}),data:()=>({addStyles:{}}),computed:{charLimit(){return this.store&&this.store.settings&&this.store.settings.disable_title_length?1200:60},categories(){return this.store.categories},articleUrl(){return this.getArticleLink(this.content)},articleTarget(){return this.getTargetForArticle(this.content)},imageUrl(){return this.getImageUrl(this.content,!0,"365x225px")},shortTitle(){return this.content&&this.content.short_title?`${this.content.short_title.slice(0,this.charLimit)}${this.content.short_title.length>this.charLimit?"...":""}`:""}},created(){this.skipLazy&&(this.addStyles.backgroundImage=`url(${this.imageUrl})`)}},"$27w8C0a3Eq"),v=["href","target"],b=["lazy-background"],f={key:0,class:"image-tile-overlay__promotion"},k={key:1,class:"image-tile-overlay-stats fw-bold ms-1"},T={key:2,class:"image-tile-overlay__icon"},L={class:"image-tile-overlay__wrapper"},I={class:"image-tile-overlay__badges-wrapper"},U={class:"image-tile-overlay__badge default-badge"},j={key:0,class:"image-tile-overlay__badge-sponsored default-badge"},w={key:1,class:"image-tile-overlay__badge-ai default-badge"},z={class:"image-tile-overlay__title"},A={class:"image-tile-overlay-mobile"},$={class:"image-tile-overlay-mobile__title"};const F=s(u,[["render",function(t,e,s,u,F,S){const x=i("font-awesome-icon"),C=r("lazybg");return t.content&&t.content.short_title&&""!==t.content.short_title?(n(),o("a",{key:0,href:t.articleUrl,target:t.articleTarget,class:_({listingTile:"ImageListingItem"===t.alternate,internTile:"ImageListingIntern"===t.alternate,fullTile:"ImageListingFull"===t.alternate})},[l((n(),o("div",{class:"image-tile-overlay","lazy-background":t.imageUrl,style:c({background:"center center/cover no-repeat",...t.addStyles})},[1==t.content.is_advertisement?(n(),o("span",f,"MateriaÅ promocyjny")):g("",!0),t.content.stats&&t.content.stats.comments?(n(),o("div",k,[m(d(t.content.stats.comments)+" ",1),h(x,{icon:["fas","comment-dots"],class:"ms-1"})])):g("",!0),t.content.attachments&&t.content.attachments.length&&t.content.attachments.length>1||"galleries"===t.content.type||t.content.is_photostory?(n(),o("div",T,[h(x,{icon:["fas","camera"]})])):g("",!0),y("div",L,[y("div",I,[y("span",U,d(t.categories?("getCategoryNameFromArr"in t?t.getCategoryNameFromArr:p(a))(t.content.category,t.categories,t.content.category_id||!1):""),1),t.content&&t.content.sponsored?(n(),o("span",j,"sponsorowany")):g("",!0),t.content&&t.content.is_ai_generated?(n(),o("span",w,"AI")):g("",!0)]),y("h3",z,d(t.shortTitle),1)])],12,b)),[[C]]),y("div",A,[y("p",$,d(t.shortTitle),1)])],10,v)):g("",!0)}]]);export{F as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.