{"version":3,"file":"PixelImage.C7-e0pwJ.mjs","names":["useRef","useState","useMemo","__esmMin","init_ssg_sandbox_shims","window","_e","pe","p","ce","init_npm_react_18_3_1","de","init_framer_DxfB3JJo","RenderTarget","ControlType","addPropertyControls","rampAt","x","l","RAMP","i","f","a","b","pixelLevels","out","coarse","sizedSrc","url","want","cssWidth","step","s","cdnSrcSet","base","w","smoothLevels","r","drawBlend","n","levels","c","im","frame","key","k","fr","cache","drawPixels","opts","levelTint","ctx","runBlend","dur","ms","raf","t0","tick","now","t","easeOut","onDone","h","scale","cw","ch","sr","dr","sw","sh","sx","posX","sy","posY","block","bp","tw","th","src","srcX","srcY","srcW","srcH","nw","nh","half","hctx","off","octx","tint","d","g","grid","y","PixelImg","isCanvas","reduced","still","fit","box","canvas","img","phase","setPhase","ready","setReady","seen","setSeen","el","io","set","srcSet","measured","setMeasured","sizes","last","ro","entries","imgSizes","showImg","onImg","take","bmp","timer","cancel","duration","done","shown","radius","style","EASE","PixelImage","props","image","init_PixelImage","init_jsx_runtime"],"sources":["https:/framerusercontent.com/modules/XjH0USsM2bBMHc5nHesy/pT5YTVfNRpZw5aMeemOg/PixelImage.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect,useMemo,useRef,useState}from\"react\";/**\n * PixelImage — the ResolutionReveal motif without the scroll: when the image\n * comes into view it starts as a coarse raster in the brand ramp and resolves\n * step by step (block size halving) into the sharp photo in its own colours,\n * then hands over to a plain <img>. Used for News cards (through BrandImage's\n * \"Pixel reveal\") and the Milestones photos (ScrollRail), after Justin's and\n * Amos's feedback of 22.10.2026: the blue grade read as generic.\n *\n * `drawPixels` is shared with ResolutionReveal. It keeps every block a whole\n * number of device pixels (the site zoom and the device pixel ratio included)\n * and shrinks the source in halving steps, so fine repeating detail (aircraft\n * rows, roads, fields) does not alias into moiré on the coarse steps.\n *\n * One canvas per image, redrawn only when the step changes (6 frames in about\n * a second). Static (sharp) in the editor and under reduced motion.\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 424\n * @framerIntrinsicHeight 240\n */const EASE=\"cubic-bezier(0.16, 1, 0.3, 1)\";const RAMP=[[25,30,41],[75,103,130],[165,192,203],[237,237,237],[234,155,90],[209,71,43]];export function rampAt(l){const x=Math.min(.9999,Math.max(0,l))*(RAMP.length-1);const i=Math.floor(x);const f=x-i;const a=RAMP[i];const b=RAMP[i+1];return[a[0]+(b[0]-a[0])*f,a[1]+(b[1]-a[1])*f,a[2]+(b[2]-a[2])*f];}// block sizes from coarse down to 1, halving\nexport function pixelLevels(coarse){const out=[];for(let b=Math.max(2,coarse||32);b>=1;b=Math.floor(b/2)){out.push(b);if(b===1)break;}return out;}// Framer image CDN: ask for a size that fits the box instead of the original\nexport function sizedSrc(url,cssWidth){if(!url||!/framerusercontent\\.com\\/images\\//.test(url)||/scale-down-to=/.test(url)||/\\.svg(\\?|$)/i.test(url))return url;const want=cssWidth*Math.min(2,typeof window!==\"undefined\"&&window.devicePixelRatio||1);const step=[512,1024,2048,4096].find(s=>s>=want)||4096;return`${url}${url.includes(\"?\")?\"&\":\"?\"}scale-down-to=${step}`;}// srcSet over Framer's resize steps, for callers that pass a bare (or pre-sized) URL\nfunction cdnSrcSet(url){if(!url||!/framerusercontent\\.com\\/images\\//.test(url)||/\\.svg(\\?|$)/i.test(url))return undefined;const base=url.split(\"?\")[0];return[512,1024,2048].map(w=>`${base}?scale-down-to=${w} ${w}w`).join(\", \");}// block sizes for PixelImg, from coarse down to 1 in steps of √2 (32 23 16 11 8 6 4 3 2 1): half the change\n// per step of pixelLevels, which the reveal blends between\nexport function smoothLevels(coarse){const out=[];for(let b=Math.max(2,coarse||32);b>=1.9;b/=Math.SQRT2){const r=Math.round(b);if(out[out.length-1]!==r)out.push(r);}out.push(1);return out;}// close to the site's ease-out curve (0.16, 1, 0.3, 1)\nexport const easeOut=t=>1-Math.pow(1-t,4);// ---- the smooth reveal, shared by every pixel reveal on the site (Justin 27.10.2026: no hard steps) ----\n// `levels`: block sizes from coarse to 1 · `x`: a fractional position in them (0 = coarsest, length - 1 = sharp)\n/** Brand tint for level `i` of `n`: full ramp on the coarsest levels, gone three levels before sharp. */export const levelTint=(i,n)=>Math.max(0,1-i/Math.max(1,n-3));/**\n * Draws position `x` on `c`: the level below at full strength, the next one faded in by the fraction.\n * Each level is rendered once per canvas size into `cache` (one Map per reveal); only a few are kept.\n */export function drawBlend(c,im,levels,x,cache,opts={}){const n=levels.length;if(!n||!c.clientWidth||!c.clientHeight||!im.naturalWidth)return;const i=Math.max(0,Math.min(n-1,Math.floor(x)));const f=Math.max(0,Math.min(1,x-i));const frame=k=>{const key=`${k}|${c.clientWidth}x${c.clientHeight}`;let fr=cache.get(key);if(!fr){drawPixels(c,im,levels[k],opts.tint===false?0:levelTint(k,n),!!opts.grid,opts.posX??.5,opts.posY??.5);fr=document.createElement(\"canvas\");fr.width=c.width;fr.height=c.height;fr.getContext(\"2d\").drawImage(c,0,0);cache.set(key,fr);while(cache.size>4)cache.delete(cache.keys().next().value);}return fr;};const a=frame(i);const b=f>.002&&i+1<n?frame(i+1):null;const ctx=c.getContext(\"2d\");if(!ctx)return;ctx.globalAlpha=1;ctx.clearRect(0,0,c.width,c.height);ctx.drawImage(a,0,0);if(b){ctx.globalAlpha=f;ctx.drawImage(b,0,0);ctx.globalAlpha=1;}}/** Plays a whole reveal over `ms` on the ease-out curve; `onDone` at the sharp end. Returns a cancel function. */export function runBlend(c,im,levels,ms,opts={},onDone){const cache=new Map;const dur=Math.max(200,ms);let raf=0;let t0=0;const tick=now=>{if(!t0)t0=now;const t=Math.min(1,(now-t0)/dur);drawBlend(c,im,levels,easeOut(t)*(levels.length-1),cache,opts);if(t<1)raf=requestAnimationFrame(tick);else onDone?.();};// the coarsest level goes up at once, so nothing underneath shows before it\ndrawBlend(c,im,levels,0,cache,opts);raf=requestAnimationFrame(tick);return()=>cancelAnimationFrame(raf);}/**\n * Draws `im` cover-fitted into canvas `c` at block size `block` (CSS px),\n * tinted towards the brand ramp by `tint` (0–1), with a hairline grid on the\n * coarsest steps when `grid` is set. Sizes the canvas to its box itself.\n */export function drawPixels(c,im,block,tint,grid=false,posX=.5,posY=.5){const w=c.clientWidth;const h=c.clientHeight;if(!w||!h||!im.naturalWidth)return;// device pixels per CSS pixel, including the site zoom (getBoundingClientRect is zoomed, clientWidth is not)\nconst rect=c.getBoundingClientRect();const scale=(rect.width/w||1)*Math.min(2,window.devicePixelRatio||1);const cw=Math.max(1,Math.round(w*scale));const ch=Math.max(1,Math.round(h*scale));if(c.width!==cw)c.width=cw;if(c.height!==ch)c.height=ch;const ctx=c.getContext(\"2d\");if(!ctx)return;// cover-fit source rect\nconst sr=im.naturalWidth/im.naturalHeight;const dr=w/h;let sw=im.naturalWidth;let sh=im.naturalHeight;if(sr>dr)sw=sh*dr;else sh=sw/dr;const sx=(im.naturalWidth-sw)*posX;const sy=(im.naturalHeight-sh)*posY;if(block<=1){ctx.imageSmoothingEnabled=true;ctx.imageSmoothingQuality=\"high\";ctx.drawImage(im,sx,sy,sw,sh,0,0,cw,ch);return;}// whole device pixels per block, so every block is the same size\nconst bp=Math.max(1,Math.round(block*scale));const tw=Math.max(1,Math.ceil(cw/bp));const th=Math.max(1,Math.ceil(ch/bp));// shrink in halving steps (an area average, roughly) instead of one big jump\nlet src=im;let srcX=sx,srcY=sy,srcW=sw,srcH=sh;while(srcW/2>tw*2&&srcH/2>th*2){const nw=Math.max(1,Math.round(srcW/2));const nh=Math.max(1,Math.round(srcH/2));const half=document.createElement(\"canvas\");half.width=nw;half.height=nh;const hctx=half.getContext(\"2d\");hctx.imageSmoothingEnabled=true;hctx.imageSmoothingQuality=\"high\";hctx.drawImage(src,srcX,srcY,srcW,srcH,0,0,nw,nh);src=half;srcX=0;srcY=0;srcW=nw;srcH=nh;}const off=document.createElement(\"canvas\");off.width=tw;off.height=th;const octx=off.getContext(\"2d\");octx.imageSmoothingEnabled=true;octx.imageSmoothingQuality=\"high\";octx.drawImage(src,srcX,srcY,srcW,srcH,0,0,tw,th);if(tint>0){try{const d=octx.getImageData(0,0,tw,th);const p=d.data;for(let i=0;i<p.length;i+=4){const l=(.2126*p[i]+.7152*p[i+1]+.0722*p[i+2])/255;const[r,g,b]=rampAt(l);p[i]=p[i]+(r-p[i])*tint;p[i+1]=p[i+1]+(g-p[i+1])*tint;p[i+2]=p[i+2]+(b-p[i+2])*tint;}octx.putImageData(d,0,0);}catch(e){// cross-origin image without CORS: skip the tint\n}}ctx.imageSmoothingEnabled=false;ctx.clearRect(0,0,cw,ch);ctx.drawImage(off,0,0,tw,th,0,0,tw*bp,th*bp);if(grid&&block>=16){ctx.strokeStyle=`rgba(25,30,41,${.18*Math.min(1,block/64)})`;ctx.lineWidth=1;ctx.beginPath();for(let x=bp;x<cw;x+=bp){ctx.moveTo(x+.5,0);ctx.lineTo(x+.5,ch);}for(let y=bp;y<ch;y+=bp){ctx.moveTo(0,y+.5);ctx.lineTo(cw,y+.5);}ctx.stroke();}}/** The reveal itself, for use inside other components. Fills its parent box. */export function PixelImg({src,alt=\"\",coarse=32,duration=1.1,tint=true,radius=0,fit=\"cover\",background=\"#191E29\",srcSet,sizes,style}){const isCanvas=RenderTarget.current()===RenderTarget.canvas;const reduced=typeof window!==\"undefined\"&&!!window.matchMedia?.(\"(prefers-reduced-motion: reduce)\").matches;const still=isCanvas||reduced||fit===\"contain\";const box=useRef(null);const canvas=useRef(null);const img=useRef(null);const levels=smoothLevels(coarse);// idle: only the ground shows · run: the canvas blends through the levels · settle: the <img> fades in over\n// the sharp last level · done: the canvas is gone\nconst[phase,setPhase]=useState(still?\"done\":\"idle\");const[ready,setReady]=useState(false);const[seen,setSeen]=useState(still);// start loading a little before it scrolls in\nuseEffect(()=>{if(still)return;const el=box.current;if(!el)return;const io=new IntersectionObserver(([e])=>{if(e.isIntersecting){setSeen(true);io.disconnect();}},{rootMargin:\"0px 0px -12% 0px\",threshold:.2});io.observe(el);return()=>io.disconnect();},[still]);// The visible <img> is the only download: the canvas draws from it once it\n// loads (CORS, so the tint can read pixels). A second `new Image()` with\n// its own URL and CORS mode never shared the cache and doubled every image.\nconst set=useMemo(()=>srcSet||cdnSrcSet(src),[src,srcSet]);const[measured,setMeasured]=useState(undefined);useEffect(()=>{const el=box.current;if(sizes||!set||!el)return;// measure now; the observer only reports on the next rendered frame\nlet last=Math.round(el.clientWidth);if(last>0)setMeasured(`${last}px`);if(typeof ResizeObserver===\"undefined\"){if(last<=0)setMeasured(\"100vw\");return;}const ro=new ResizeObserver(entries=>{const w=Math.round(entries[0]?.contentRect.width||0);if(w>0&&Math.abs(w-last)>40){last=w;setMeasured(`${w}px`);}});ro.observe(el);return()=>ro.disconnect();},[sizes,set]);const imgSizes=sizes||measured;// without `sizes` the browser assumes 100vw and fetches the largest file\nconst showImg=Boolean(src)&&(!set||imgSizes!==undefined);const onImg=el=>{if(!el||still)return;// draw from a plain Image of the file the <img> picked: with a srcset, the <img>'s naturalWidth is its\n// density-corrected size (415 for a 1024 file in a 415 px box), so drawPixels cropped a corner and the\n// reveal showed it zoomed (Justin 27.10.2026). Same URL and CORS mode, so it comes from the memory cache.\nconst take=()=>{const bmp=new Image;bmp.crossOrigin=\"anonymous\";bmp.decoding=\"async\";bmp.onload=()=>{img.current=bmp;setReady(true);};bmp.src=el.currentSrc||el.src;};if(el.complete&&el.naturalWidth)take();else el.onload=take;};// in view and loaded: blend through the levels over `duration` on the ease-out curve, each level fading\n// into the next instead of cutting (Justin 27.10.2026: the hard steps read as brutal). Only the two levels\n// on screen are kept rendered, each drawn once at the canvas size.\nuseEffect(()=>{const c=canvas.current;const im=img.current;if(still||!seen||!ready||!c||!im)return;let timer=0;setPhase(\"run\");const cancel=runBlend(c,im,levels,(duration||1.1)*1e3,{tint},()=>{setPhase(\"settle\");timer=window.setTimeout(()=>setPhase(\"done\"),260);});return()=>{cancel();window.clearTimeout(timer);};},[seen,ready,still]);const done=phase===\"done\";const shown=phase===\"settle\"||phase===\"done\";return /*#__PURE__*/_jsxs(\"div\",{ref:box,style:{position:\"absolute\",inset:0,overflow:\"hidden\",borderRadius:radius,background,...style},children:[!still&&!done&&/*#__PURE__*/_jsx(\"canvas\",{ref:canvas,\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",display:\"block\"}}),showImg&&/*#__PURE__*/_jsx(\"img\",{ref:onImg,src:src,srcSet:set,sizes:imgSizes,crossOrigin:\"anonymous\",alt:alt,loading:\"lazy\",decoding:\"async\",style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:fit,display:\"block\",opacity:shown?1:0,transition:still?\"none\":`opacity 240ms ${EASE}`}})]});}export default function PixelImage(props){const{image,alt,coarse,duration,tint,radius,style}=props;const src=typeof image===\"string\"?image:image?.src;return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",overflow:\"hidden\",borderRadius:radius},children:/*#__PURE__*/_jsx(PixelImg,{src:src,alt:alt,coarse:coarse,duration:duration,tint:tint,radius:radius})});}addPropertyControls(PixelImage,{image:{type:ControlType.Image,title:\"Image\"},alt:{type:ControlType.String,title:\"Alt\",defaultValue:\"\"},coarse:{type:ControlType.Number,title:\"Coarsest\",defaultValue:32,min:4,max:64,step:4,unit:\"px\"},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:1.1,min:.4,max:3,step:.1,unit:\"s\"},tint:{type:ControlType.Boolean,title:\"Brand tint\",defaultValue:true,description:\"Coarse steps lean towards the brand ramp, then let go.\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:2,min:0,max:24,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"runBlend\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"drawBlend\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"pixelLevels\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"drawPixels\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"rampAt\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"PixelImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"easeOut\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"levelTint\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"PixelImg\":{\"type\":\"reactComponent\",\"name\":\"PixelImg\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"smoothLevels\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"sizedSrc\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PixelImage.map"],"mappings":"A,kNAmBwI,SAAgBgB,EAAO,EAAE,CAAC,IAAMC,EAAE,KAAK,IAAI,MAAM,KAAK,IAAI,EAAEC,CAAC,CAAC,GAAGC,EAAK,OAAO,GAASC,EAAE,KAAK,MAAMH,CAAC,EAAQI,EAAEJ,EAAEG,EAAQE,EAAEH,EAAKC,GAASG,EAAEJ,EAAKC,EAAE,GAAG,MAAM,CAACE,EAAE,IAAIC,EAAE,GAAGD,EAAE,IAAID,EAAEC,EAAE,IAAIC,EAAE,GAAGD,EAAE,IAAID,EAAEC,EAAE,IAAIC,EAAE,GAAGD,EAAE,IAAID,CAAC,CAAE,CAC7V,SAAgBG,EAAY,EAAO,CAAC,IAAMC,EAAI,CAAC,EAAE,IAAI,IAAIF,EAAE,KAAK,IAAI,EAAEG,GAAQ,EAAE,EAAEH,GAAG,IAAqBE,EAAI,KAAKF,CAAC,EAAKA,IAAI,GAAtC,EAAE,KAAK,MAAMA,EAAE,CAAC,GAA+B,OAAOE,CAAI,CACjJ,SAAgBE,EAAS,EAAI,EAAS,CAAC,GAAG,CAACC,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