PageSourceSearch

https://www.alb.net.pk/_webx/9CDOetLG.js

js alb.net.pk collected 2026-10-04 01:41:46 UTC 3,230 bytes, 1 lines download raw bytes

1import{o as F,V as N,K as T}from"./BdEtjDPP.js";import{l as Y,m as a,H as l,u as t,U as n,P as D,X as S,V as w,R as f}from"./BIaCPJ4S.js";const I=["srcset","sizes"],x=["srcset","sizes"],K=["src","alt","width","height","loading","fetchpriority"],M=["src","alt","loading","fetchpriority"],R=["src"],U=["src"],X=["alt","fetchpriority"],u="https://static.webx.pk/dev/system-media/placeholder-image-720x900.webp",J=Y({__name:"Media",props:{src:{},alt:{},class:{},style:{},lazy:{type:Boolean,default:!0},fetchPriority:{default:"auto"},sizes:{},width:{},height:{}},emits:["error"],setup(i,{emit:$}){const L=$,h=F(),r=a(()=>Array.isArray(i.src)&&i.src.length>0),o=a(()=>typeof i.src=="string"?i.src:""),d=a(()=>r.value?i.src.map(e=>({...e,width:Number(e.width)||void 0,height:Number(e.height)||void 0})).sort((e,s)=>(e.width||0)-(s.width||0)):[]),m=a(()=>d.value.find(e=>e.default)??d.value[d.value.length-1]),c=a(()=>{var e;return r.value?((e=m.value)==null?void 0:e.filePath)||u:o.value||u}),b=a(()=>r.value?!0:["avif","jpg","jpeg","png","gif","webp","bmp","svg","ico"].some(s=>o.value.toLowerCase().includes(s))),V=a(()=>r.value?!1:["mp4","webm","ogg","mkv","avi"].some(s=>o.value.toLowerCase().includes(s))),A=a(()=>r.value?!1:["youtube.com","youtu.be"].some(s=>o.value.toLowerCase().includes(s))),B=a(()=>c.value.toLowerCase().split("?")[0].endsWith(".avif")),p=N("hero-img-claimed",()=>!1),g=!b.value||p.value?!1:(p.value=!0,!0),y=a(()=>g?!1:i.lazy),z=a(()=>g?"high":i.fetchPriority);function k(e,s){return e.replace(/\.(avif|webp)$/i,`.${s}`)}function C(e){return r.value?d.value.filter(s=>s.width).map(s=>`${k(s.filePath,e)} ${s.width}w`).join(", "):k(c.value,e)}const E=a(()=>C("avif")),H=a(()=>C("webp"));function P(e){const s=e.target;s.src!==u&&(s.src=u),L("error",e)}const v=a(()=>i.sizes?i.sizes:y.value?"auto":"100vw"),W=a(()=>{var e;return i.width||((e=m.value)==null?void 0:e.width)}),j=a(()=>{var e;return i.height||((e=m.value)==null?void 0:e.height)});return g&&T({link:[{rel:"preload",as:"image",href:c.value,imagesrcset:E.value,imagesizes:v.value,fetchpriority:"high"}]}),(e,s)=>t(b)?(n(),l(D,{key:0},[t(B)?(n(),l("picture",{key:0,class:S(i.class)},[w("source",{type:"image/avif",srcset:t(E),sizes:t(v)},null,8,I),w("source",{type:"image/webp",srcset:t(H),sizes:t(v)},null,8,x),w("img",f(e.$attrs,{src:t(c),alt:e.alt||t(h).data.webTitle,class:[i.class,"wx-anim-zoom"],width:t(W),height:t(j),style:e.style,loading:t(y)?"lazy":"eager",fetchpriority:t(z),decoding:"async",onError:P}),null,16,K)],2)):(n(),l("img",f({key:1},e.$attrs,{src:t(c),alt:e.alt||t(h).data.webTitle,class:[i.class,"wx-anim-zoom"],style:e.style,loading:t(y)?"lazy":"eager",fetchpriority:t(z),decoding:"async",onError:P}),null,16,M))],64)):t(V)?(n(),l("video",f({key:1},e.$attrs,{src:t(o),autoplay:"",loop:"",muted:"",class:i.class,preload:"none"}),null,16,R)):t(A)?(n(),l("iframe",f({key:2},e.$attrs,{src:t(o)||"https://www.youtube.com/embed/v75kf-L3pYs?controls=0&autoplay=1&mute=1&playsinline=1&loop=1&playlist=v75kf-L3pYs&modestbranding=0",class:i.class,width:"100%",frameborder:"0",allowfullscreen:""}),null,16,U)):(n(),l("img",{key:3,src:u,alt:t(h).data.webTitle,class:S(i.class),fetchpriority:e.fetchPriority},null,10,X))}});export{J as _};

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.