{"version":3,"file":"PhotoStrip.hTXzziMT.mjs","names":["React.useRef","React.useState","React.useMemo","__esmMin","pe","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","le","_e","p","init_jsx_runtime","de","init_framer_BWFVvmND","RenderTarget","ControlType","addPropertyControls","PhotoStrip","props","isCanvas","ref","shown","setShown","urls","img1","img2","img3","img4","uid","SEQ","DESKTOP_MQ","io","entries","style","mobileColumns","radius","i","u","init_PhotoStrip"],"sources":["https:/framerusercontent.com/modules/Z8ukNJRoV7woV5Urq0kB/UzF8qrbfCxRvzrPEce5a/PhotoStrip.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";const DESKTOP_MQ=\"(min-width: 810px)\";let SEQ=0;/**\n * \"This is River Oaks\" photo strip: up to 4 tiles.\n *\n * Photos now show as shot. The blue-green wash and the grayscale it sat on\n * top of were both removed at the client's request; a grayscale-until-hover\n * treatment also does nothing on touch, where most of this traffic is.\n *\n * On a phone the auto-fit track only ever fitted one column, so four 4:5\n * tiles stacked into roughly 1,600px of scrolling. The 2026-08-18 review\n * asked for these to take up far less of the screen, so the phone layout is\n * a square 2x2 grid — same four photos, about a quarter of the height.\n *\n * Image URLs are plain string props so the MCP can set them. IO-staggered\n * reveal, transform/opacity only, static on mobile.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1100\n */export default function PhotoStrip(props){const{img1,img2,img3,img4,radius,mobileColumns=2,style}=props;const isCanvas=RenderTarget.current()===RenderTarget.canvas;const ref=React.useRef(null);const[shown,setShown]=React.useState(true);const urls=[img1,img2,img3,img4].filter(Boolean);// Scoped so two strips on one page can't fight over the same rules.\nconst uid=React.useMemo(()=>`ro-strip-${++SEQ}`,[]);React.useLayoutEffect(()=>{if(isCanvas||typeof window===\"undefined\")return;if(!window.matchMedia(DESKTOP_MQ).matches)return;if(window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches)return;if(!(\"IntersectionObserver\"in window))return;setShown(false);const io=new IntersectionObserver(entries=>{if(entries.some(e=>e.isIntersecting)){setShown(true);io.disconnect();}},{threshold:.15});if(ref.current)io.observe(ref.current);return()=>io.disconnect();},[isCanvas]);return /*#__PURE__*/_jsxs(\"div\",{ref:ref,className:uid,style:{width:\"100%\",display:\"grid\",gridTemplateColumns:\"repeat(auto-fit, minmax(min(200px, 100%), 1fr))\",gap:16,...style},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                @media (max-width: 809px) {\n                    .${uid} {\n                        grid-template-columns: repeat(${Math.max(1,Number(mobileColumns)||2)}, 1fr) !important;\n                        gap: 10px !important;\n                    }\n                    .${uid} > div { aspect-ratio: 1 / 1 !important; }\n                }\n            `}),urls.map((u,i)=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",aspectRatio:\"4 / 5\",borderRadius:radius,overflow:\"hidden\",background:\"#1f2933\",opacity:shown?1:0,transform:shown?\"none\":\"translateY(24px)\",transition:`opacity 0.5s ease ${i*.09}s, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) ${i*.09}s`},children:/*#__PURE__*/_jsx(\"img\",{src:u,alt:\"\",loading:\"lazy\",style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:\"cover\"}})},i))]});}addPropertyControls(PhotoStrip,{img1:{type:ControlType.String,title:\"Image 1 URL\",defaultValue:\"\"},img2:{type:ControlType.String,title:\"Image 2 URL\",defaultValue:\"\"},img3:{type:ControlType.String,title:\"Image 3 URL\",defaultValue:\"\"},img4:{type:ControlType.String,title:\"Image 4 URL\",defaultValue:\"\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:20,min:0,max:40},mobileColumns:{type:ControlType.Number,title:\"Phone Columns\",defaultValue:2,min:1,max:2,step:1,displayStepper:true,description:\"2 gives a compact square 2x2 grid on phones\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PhotoStrip\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"1100\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PhotoStrip.map"],"mappings":"A,4NAkBG,SAAwBiB,EAAW,EAAM,CAAC,GAAK,CAAC,OAAK,OAAK,OAAK,OAAK,SAAO,gBAAc,EAAE,SAAOC,EAAYC,EAASL,EAAa,QAAQ,IAAIA,EAAa,OAAaM,EAAIpB,EAAa,IAAI,EAAO,CAACqB,EAAMC,GAAUrB,EAAe,EAAI,EAAQsB,EAAK,CAACC,EAAKC,EAAKC,EAAKC,CAAI,CAAC,CAAC,OAAO,OAAO,EACxRC,EAAI1B,MAAkB,YAAY,EAAE2B,IAAM,CAAC,CAAC,EAAud,OAArdrB,MAA0B,CAA0K,GAAtKW,GAAiBZ,IAAS,QAAsB,CAACA,EAAO,WAAWuB,CAAU,CAAC,CAAC,SAAkBvB,EAAO,WAAW,kCAAkC,CAAC,CAAC,SAAkB,EAAE,yBAAyBA,GAAQ,OAAOe,EAAS,EAAK,EAAE,IAAMS,EAAG,IAAI,qBAAqB,GAAS,CAAIC,EAAQ,KAAK,GAAG,EAAE,cAAc,IAAGV,EAAS,EAAI,EAAES,EAAG,WAAW,EAAG,EAAE,CAAC,UAAU,GAAG,CAAC,EAAyC,OAApCX,EAAI,SAAQW,EAAG,QAAQX,EAAI,OAAO,MAAYW,EAAG,WAAW,CAAE,EAAE,CAACZ,CAAQ,CAAC,EAAsB,gBAAM,MAAM,CAAK,MAAI,UAAUS,EAAI,MAAM,CAAC,MAAM,OAAO,QAAQ,OAAO,oBAAoB,kDAAkD,IAAI,GAAG,GAAGK,CAAK,EAAE,SAAS,CAAc,gBAAK,QAAQ,CAAC,SAAS;;uBAEjtBL,EAAI;wDAC6B,KAAK,IAAI,EAAE,OAAOM,CAAa,GAAG,CAAC,E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