PageSourceSearch

https://lifehacker.ru/_nuxt/v7.12-CkCB3Tmn.js

js lifehacker.ru collected 2026-09-24 08:26:43 UTC 2,067 bytes, 2 lines download raw bytes

1import{ew as v,aM as w,bn as n,ex as y,ep as S,bm as T,aU as _,aV as z,aP as x,aX as m,aS as g,b0 as P}from"./v7.12-_pfsIBSO.js";const k=768,A=1024,E=1280,u={TABLET:k,BIG_TABLET:A,DESKTOP:E};function $(s){const o={mobile:`(max-width: ${u.TABLET-1}px)`,tablet:`(min-width: ${u.TABLET}px)`,bigTablet:`(min-width: ${u.BIG_TABLET}px)`,desktop:`(min-width: ${u.DESKTOP}px)`},e={mobile:4,tablet:3,bigTablet:2,desktop:1};if(!s)return"100vw";const i=Object.keys(s).sort((a,c)=>e[a]-e[c]).map(a=>{const c=s[a];return`${o[a]} ${c}`});return i.push("100vw"),i.join(", ")}function j(s,o,e=2){const i=v(s,o,e),a=Object.keys(i).reduce((c,l)=>(c.push(i[l].map(r=>`${r.url} ${r.width?`${r.width}w`:""}`).join(", ")),c),[]);return[...new Set(a.join(", ").split(", "))].join(", ")}const I=["srcset","sizes"],L=["src","alt","width","height","loading","fetchpriority"],O=w({__name:"BasePicture",props:{origin:{type:String,default:""},sizes:{type:Array,required:!0},alt:{type:String,default:""},loading:{default:"lazy",type:String},usedSized:{default:()=>[360,480,720,868],type:Array},sizesByDevice:{type:Object,default(){return{mobile:"calc(100vw - 16px * 2)",tablet:"calc(100vw - 24px * 2 * 2)",desktop:"900px"}}}},emits:["load","click"],setup(s,{emit:o}){const e=s,i=o,a=n(()=>e.origin),c=n(()=>e.alt),l=e.loading,r=n(()=>{var t;return(t=e.sizes.at(-1))==null?void 0:t.width}),h=n(()=>{var t;return(t=e.sizes.at(-1))==null?void 0:t.height}),f=n(()=>$(e.sizesByDevice)),B=n(()=>j(e.usedSized,y(e.sizes))),d=S("BasePictureRef");T(()=>{var t;(t=d.value)!=null&&t.complete&&d.value.naturalWidth!==0&&p()});function p(){i("load")}function b(){i("click")}return(t,D)=>s.origin?(x(),_("picture",{key:0,class:"picture",onClick:b},[m("source",{srcset:B.value,sizes:f.value},null,8,I),m("img",{ref:"BasePictureRef",class:"picture__img",src:a.value,alt:c.value,width:r.value,height:h.value,loading:g(l),fetchpriority:g(l)==="eager"?"high":void 0,onLoad:p},null,40,L)])):z("",!0)}}),C=P(O,[["__scopeId","data-v-f4866b5b"]]);export{C as B,j as a,$ as g};
2//# sourceMappingURL=v7.12-CkCB3Tmn.js.map

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.