PageSourceSearch

https://www.quinck.io/assets/PhotoGallery-CzF-cnHw.js

js quinck.io collected 2026-10-04 21:05:29 UTC 1,836 bytes, 1 lines download raw bytes

1import{o as e,t}from"./jsx-runtime-DVpe7PXp.js";import{o as n}from"./useSelector-1m-rGj6P.js";import{n as r}from"./ManifestoSection-DxEs9Wdk.js";var i=e(n(),1);function a(e,t,n){(0,i.useInsertionEffect)(()=>e.on(t,n),[e,t,n])}var o=t();function s({items:e,scrollFactor:t=1}){let n=(0,i.useRef)(null),s=(0,i.useRef)(null),[c,l]=(0,i.useState)(0),u=(0,i.useCallback)(()=>{let e=s.current;e&&l(Math.max(0,e.scrollWidth-e.clientWidth))},[]);(0,i.useLayoutEffect)(()=>{u();let e=s.current,t=new ResizeObserver(u);return e&&(t.observe(e),Array.from(e.children).forEach(e=>t.observe(e))),window.addEventListener(`resize`,u),window.addEventListener(`orientationchange`,u),()=>{t.disconnect(),window.removeEventListener(`resize`,u),window.removeEventListener(`orientationchange`,u)}},[u,e.length]);let{scrollYProgress:d}=r({target:n,offset:[`start start`,`end end`]}),f=(0,i.useCallback)(e=>{let t=s.current;if(!t)return;let n=t.scrollWidth-t.clientWidth;t.scrollLeft=Math.min(Math.max(e,0),1)*n},[]);return a(d,`change`,f),(0,i.useEffect)(()=>{f(d.get())},[f,d,c]),(0,o.jsx)(`section`,{ref:n,className:`full-width relative bg-white-100`,style:{height:`calc(100vh + ${c*t}px)`},"aria-label":`Galleria fotografica Quinck`,children:(0,o.jsx)(`div`,{className:`sticky top-0 flex h-screen items-center overflow-hidden`,children:(0,o.jsxs)(`div`,{ref:s,style:{scrollBehavior:`auto`},className:`flex w-full items-center gap-6 overflow-hidden pl-6 md:pl-16 lg:gap-8 lg:pl-24`,children:[e.map((e,t)=>(0,o.jsx)(`figure`,{className:`h-[70vh] w-[80vw] shrink-0 md:w-[60vw] lg:w-[45vw]`,children:(0,o.jsx)(`img`,{src:e.src,alt:e.alt,loading:t<2?`eager`:`lazy`,decoding:`async`,onLoad:u,className:`h-full w-full rounded-3xl object-cover`})},`${e.src}-${t}`)),(0,o.jsx)(`div`,{"aria-hidden":!0,className:`w-6 shrink-0 md:w-16 lg:w-24`})]})})})}export{s as t};

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.