1import{d as t,a as e}from"./Cm2J8wJT.js";import{ah as s,J as a,L as r,M as i,V as n,U as o,T as c,R as h}from"./Cw52Jb_b.js";import"./oPzPbeIq.js";import"./Dv5-W7ly.js";const l=t({name:"HeroImageFeatured",setup:()=>({store:e()}),props:{content:{type:Object,default:()=>({title:"",badge:"",image:""})},skipLazy:{default:!1}},data:()=>({addStyles:{}}),created(){this.skipLazy&&(this.addStyles.backgroundImage=`url(${this.getImageUrl(this.content,!1,"750x750px")})`)},computed:{charLimit(){return this.store&&this.store.settings&&this.store.settings.disable_title_length?1200:60},shortTitle(){return this.content&&this.content.short_title?`${this.content.short_title.slice(0,this.charLimit)}${this.content.short_title.length>this.charLimit?"...":""}`:""},subTitle(){if(!this.content||!this.content.short_title)return"";const t=Math.max(this.charLimit-this.content.short_title.length,0);return t>0&&this.content.sub_title?`${this.content.sub_title.slice(0,t)}${this.content.sub_title.length>t?"...":""}`:""}}},"$fJzRc5VPTw"),d=["href","target"],g=["v-lazybg:lazy-background"],u={key:0,class:"hero-image-featured__promotion"},m={class:"hero-image-featured__wrapper"},_={class:"hero-image-featured__title"},p={class:"hero-image-featured__subtitle"},f={class:"hero-image-featured__badge default-badge"},b={key:0,class:"hero-image-featured__badge-sponsored default-badge"};const y=s(l,[["render",function(t,e,s,l,y,k){return a(),r("a",{href:t.getArticleLink(t.content),target:t.getTargetForArticle(t.content)},[i("div",{class:"hero-image-featured","v-lazybg:lazy-background":t.getImageUrl(t.content,!1,"750x750px"),style:h({background:"center center/cover no-repeat",...t.addStyles})},[1==t.content.is_advertisement?(a(),r("span",u,"MateriaÅ promocyjny")):n("",!0),e[0]||(e[0]=i("div",{class:"hero-image-featured__notification"},[i("p",{class:"hero-image-featured__notification-text text-center"},"z ostatniej chwili")],-1)),i("div",m,[i("h3",_,o(t.shortTitle),1),i("h5",p,[i("span",f,o(t.content.category?t.content.category[t.content.category.length-1]:""),1),c(" "+o(t.subTitle)+" ",1),t.content&&t.content.sponsored?(a(),r("span",b,"sponsorowany")):n("",!0)])])],12,g)],8,d)}]]);export{y 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.