PageSourceSearch

https://www.leonwong282.com/_next/static/chunks/5982.fcac2ef590b2214c.js

js leonwong282.com collected 2026-10-04 12:36:44 UTC 2,659 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5581,5982,27962,50343,72724],{5581:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(37876),c=t(22507),a=t(77328),i=t.n(a),l=t(14232);function s(e){let{priority:r,id:t,src:a,alt:s,fallbackSrc:u,placeholderSrc:d,className:h,width:m,height:g,title:p,onLoad:v,onClick:f,style:w,loading:b}=e,_=((e,r)=>{let t=Number(e),n=Number(r);return Number.isFinite(t)&&t>0?Number.isFinite(n)&&n>0?Math.min(t,n):t:r})(m,(0,c.CQ)("IMAGE_COMPRESS_WIDTH")),C=(0,c.CQ)("IMG_LAZY_LOAD_PLACEHOLDER"),O=(0,l.useRef)(null),[E,y]=(0,l.useState)(r&&a?o(a,_):d||C),[I,L]=(0,l.useState)(!!(r&&a)),N=(0,l.useCallback)(()=>{O.current&&(O.current.src!==u&&u?O.current.src=u:O.current.src!==d&&d?O.current.src=d:O.current.src=C,L(!0),O.current.classList.remove("lazy-image-placeholder"))},[C,u,d]);(0,l.useEffect)(()=>{let e=o(a,_)||C,t=O.current,n=()=>{"function"==typeof v&&v(),L(!0),O.current&&O.current.classList.remove("lazy-image-placeholder")};if(r||!window.IntersectionObserver){let r=new Image;r.src=e,r.onload=()=>{y(e),n(e)},r.onerror=N;return}let i=new IntersectionObserver(r=>{r.forEach(r=>{if(r.isIntersecting){let t=new Image;"decoding"in t&&(t.decoding="async"),t.src=e,t.onload=()=>{y(e),n(e)},t.onerror=N,i.unobserve(r.target)}})},{rootMargin:(0,c.CQ)("LAZY_LOAD_THRESHOLD","200px"),threshold:.1});return t&&i.observe(t),()=>{t&&i.unobserve(t)}},[a,_,r,C,u,N,v,d]);let A={ref:O,src:E,"data-src":a,alt:s||"Lazy loaded image",onLoad:()=>{},onError:N,className:"".concat(h||"").concat(I?"":" lazy-image-placeholder"),style:{aspectRatio:m&&g?"".concat(m," / ").concat(g):void 0,containIntrinsicSize:m||g?void 0:"300px 200px",...w},onClick:f,loading:r?"eager":b||"lazy",decoding:"async",...(0,c.CQ)("WEBP_SUPPORT")&&{"data-webp":!0},...(0,c.CQ)("AVIF_SUPPORT")&&{"data-avif":!0}};return(t&&(A.id=t),p&&(A.title=p),m&&(A.width=m),g&&(A.height=g),r&&(A.fetchpriority="high"),a)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("img",{alt:A.alt,...A}),r&&(0,n.jsx)(i(),{children:(0,n.jsx)("link",{rel:"preload",as:"image",href:o(a,_),fetchpriority:"high"})})]}):null}let o=(e,r)=>{var t,n;if(!e)return null;let c=(null==(n=window)||null==(t=n.screen)?void 0:t.width)||r,a=Number(r),i=Number.isFinite(a)&&a>0?Math.min(c,a):c;return i?e.replace(/width=\d+/,"width=".concat(i)).replace(/w=\d+/,"w=".concat(i)):e}},5982:(e,r,t)=>{t.r(r),t.d(r,{HomeBackgroundImage:()=>l});var n=t(37876),c=t(5581),a=t(22507),i=t(95498);let l=e=>{let{siteInfo:r}=(0,i.PC)();return(0,a.CQ)("PHOTO_HOME_BACKGROUND")?(0,n.jsx)(c.A,{className:"-mt-20 w-screen h-screen pointer-events-none select-none object-cover",src:null==r?void 0:r.pageCover}):null}}}]);

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.