PageSourceSearch

https://korso.pl/_nuxt/B4g8dFoE.js

js korso.pl collected 2026-09-24 09:58:33 UTC 3,118 bytes, 1 lines download raw bytes

1import{d as t,a as e,h as a}from"./Cm2J8wJT.js";import{ah as s,ak as o,am as n,J as r,L as i,a5 as l,R as c,V as g,T as h,U as m,$ as y,M as d,u as p,Q as u}from"./Cw52Jb_b.js";import"./oPzPbeIq.js";import"./Dv5-W7ly.js";const _=t({name:"HeroImageOverlay",setup:()=>({store:e()}),props:{alternate:{type:String,default:()=>{}},content:{type:Object,default:()=>({title:"",badge:"",image:""})},skipLazy:{default:!1}},data:()=>({addStyles:{}}),computed:{charLimit(){return this.store&&this.store.settings&&this.store.settings.disable_title_length?1200:60},categories(){return this.store.categories},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?"...":""}`:""}},created(){this.skipLazy&&(this.addStyles.backgroundImage=`url(${this.getImageUrl(this.content,!0,"750x750px")})`)}},"$MvJeyKh0m2"),b=["href","target"],v=["lazy-background"],f={key:0,class:"hero-image-overlay__promotion"},k={key:1,class:"hero-image-overlay-stats position-absolute fw-bold"},L={key:2,class:"hero-image-overlay__img-icon d-flex"},I=["lazy-background"],T={key:3,class:"hero-image-overlay__img-icon__play d-flex"},x={class:"hero-image-overlay__wrapper"},z={class:"hero-image-overlay__title"},$={class:"hero-image-overlay__subtitle"},j={class:"hero-image-overlay__badge default-badge"},w={key:0,class:"hero-image-overlay__badge-sponsored default-badge"};const A=s(_,[["render",function(t,e,s,_,A,F){const M=o("font-awesome-icon"),S=n("lazybg");return r(),i("a",{href:t.getArticleLink(t.content),target:t.getTargetForArticle(t.content),class:u([{listingTile:"ImageListingItem"===t.alternate,internTile:"ImageListingIntern"===t.alternate,fullTile:"ImageListingFull"===t.alternate},"hero-image-container"])},[l((r(),i("div",{class:"hero-image-overlay","lazy-background":t.getImageUrl(t.content,!0,"750x750px"),style:c({background:"center center/cover no-repeat",...t.addStyles})},[1==t.content.is_advertisement?(r(),i("span",f,"Materiał promocyjny")):g("",!0),t.content.stats&&t.content.stats.comments?(r(),i("div",k,[h(m(t.content.stats.comments),1),y(M,{icon:["fas","comment-dots"],class:"ms-1"})])):g("",!0),"gallery"===t.content.type||"galleries"===t.content.type||t.content.is_photostory?(r(),i("div",L,[y(M,{icon:["fas","camera"]}),d("div",{class:"hero-image-overlay__img",lazybg:"","lazy-background":t.getImageUrl(t.content,!0)},null,8,I)])):"video"===t.content.type?(r(),i("div",T,[y(M,{icon:["fas","play-circle"]})])):g("",!0)],12,v)),[[S]]),d("div",x,[d("h3",z,m(t.shortTitle),1),d("h5",$,[d("span",j,m(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?(r(),i("span",w,"sponsorowany")):g("",!0),h(" "+m(t.subTitle),1)])])],10,b)}]]);export{A 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.