PageSourceSearch

https://farcaster.xyz/assets/ImageLightboxModal-DA8GdrFc.js

js farcaster.xyz collected 2026-09-24 08:33:27 UTC 1,445 bytes, 1 lines download raw bytes

1import{R as l,j as t}from"./vendor-wagmi-CRHMQcRy.js";import{V as x,W as m,X as g,Y as p,Z as b,_ as j}from"./index-CjDX1y09.js";const y=l.memo(({title:n,imageUrls:s,initialIndex:f,onClose:u})=>{const[e,i]=l.useState(f),h=l.useMemo(()=>s[e],[s,e]),{addKeyPressListener:c}=x(),a=l.useCallback(()=>{e!==0&&i(e>0?(e-1)%s.length:s.length-1)},[s.length,e]),r=l.useCallback(()=>{e!==s.length-1&&i((e+1)%s.length)},[s.length,e]);return l.useEffect(()=>{const o=c(d=>{d.code==="ArrowLeft"?a():d.code==="ArrowRight"&&r()});return()=>{o()}},[c,a,r]),t.jsx(m,{children:t.jsx(g,{onClose:u,children:t.jsxs("div",{className:"relative flex size-full flex-row items-center justify-center p-4 py-6",children:[e!==0&&t.jsx("div",{className:"absolute left-0 ml-6 flex cursor-pointer justify-center rounded-full p-0.5 bg-overlay-heavy",onClick:o=>{o.stopPropagation(),a()},children:t.jsx(p,{size:32,className:"font-semibold text-white"})}),t.jsx("div",{className:"flex max-h-full w-full flex-col items-center justify-center",children:t.jsx(b,{src:h,title:n,alt:n,className:"max-h-[75%] overflow-hidden rounded-lg",onClick:o=>{o.stopPropagation()},loading:"eager"})}),e!==s.length-1&&t.jsx("div",{className:"absolute right-0 mr-6 flex cursor-pointer justify-center rounded-full p-0.5 bg-overlay-heavy",onClick:o=>{o.stopPropagation(),r()},children:t.jsx(j,{size:32,className:"font-semibold text-white"})})]})})})});y.displayName="ImageLightboxModal";export{y as I};

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.