1import{K as C,P as u,c as t,d as _,f as b,lt as i,st as B,u as d,wt as h}from"./C89sYm7w.js";import{n as N}from"./B7ZUQniG.js";import j from"./Bh3txQ7g2.js";var I={key:1},T=Object.assign({name:"ImageReview",inheritAttrs:!1},{__name:"ImageReview",props:{nid:{type:[Number,String],default:0},contentType:{type:String,required:!0},alt:{type:String,default:""},downloadNick:{type:String,default:""},software:{type:String,default:""},to:{type:String,default:""},href:{type:String,default:""},imgClass:{type:String,default:""}},setup(a){const s=a,{contentType:g,nid:m}=B(s),v=[{match:"Slots",dir:"slots-review",url:"reels-246x185",ext:"jpg",width:246,height:185},{match:"Brand",dir:"brand-review",url:"logo-157x75",ext:"png",width:157,height:75},{match:"Software",dir:"software-review",url:"logo-157x75",ext:"png",width:157,height:75}],e=t(()=>{const r=v.find(o=>g.value.includes(o.match));if(!r)return null;const{match:n,...l}=r;return l.ext==="png"?{...l,default:`/files_default/${l.dir}/${l.url}.png`}:l}),w=t(()=>!!e.value),p=t(()=>!!s.nid&&!!e.value),x=t(()=>e.value?`/files_default/${e.value.dir}/${String(m.value).split("").join("/")}/${e.value.url}.${e.value.ext}`:""),c=t(()=>x.value),y=t(()=>e.value?`/files_default/${e.value.dir}/${e.value.url}.${e.value.ext}`:""),f=(r,n)=>t(()=>e.value?{url:c.value.replace(e.value.ext,r),type:n,width:e.value.width,height:e.value.height}:null),S=f("avif","image/avif"),k=f("webp","image/webp"),$=t(()=>[S.value,k.value].filter(Boolean));return(r,n)=>{const l=j,o=N;return i(w)?(u(),d(o,{key:0,nick:a.downloadNick,soft:a.software,to:a.to,href:a.href,class:h(a.imgClass)},{default:C(()=>[i(p)?(u(),d(l,{key:0,alt:s.alt,"file-name":i(c),sources:i($),width:i(e)?.width,height:i(e)?.height,"src-err":i(y),class:h([a.imgClass].filter(Boolean).join(" "))},null,8,["alt","file-name","sources","width","height","src-err","class"])):_("",!0)]),_:1},8,["nick","soft","to","href","class"])):(u(),b("span",I))}}});export{T 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.