{"version":3,"file":"EditorialMarquee.CteYeqFk.mjs","names":["React.useRef","React.useState"],"sources":["https:/framerusercontent.com/modules/Ziwa0iQuYH6WlHW8JyaQ/mTAlJANUGDP5oGiWSgQ7/EditorialMarquee.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 HEAD_FONT=\"'Montserrat', 'Helvetica Neue', sans-serif\";/**\n * Large editorial marquee with hollow (outlined) text — the River Oaks\n * signature brand moment. Alternates filled and outlined words.\n * fullBleed lets it escape a padded parent section to span the viewport.\n * Perf: the loop is transform-only (composited) and pauses while the\n * strip is off-screen; the sequence renders 2×2 copies (enough for a\n * seamless -50% loop) instead of flooding the DOM.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1200\n */export default function EditorialMarquee(props){const{text,fillColor,outlineColor,fontSize,speed,fullBleed,style}=props;const isCanvas=RenderTarget.current()===RenderTarget.canvas;const rootRef=React.useRef(null);const[reduced,setReduced]=React.useState(false);const[inView,setInView]=React.useState(true);React.useEffect(()=>{if(typeof window===\"undefined\")return;const mq=window.matchMedia(\"(prefers-reduced-motion: reduce)\");const on=()=>setReduced(mq.matches);on();mq.addEventListener(\"change\",on);return()=>mq.removeEventListener(\"change\",on);},[]);// Pause the loop while off-screen — no reason to burn frames.\nReact.useEffect(()=>{if(isCanvas||typeof window===\"undefined\")return;if(!(\"IntersectionObserver\"in window)||!rootRef.current)return;const io=new IntersectionObserver(entries=>setInView(entries.some(e=>e.isIntersecting)),{rootMargin:\"60px\"});io.observe(rootRef.current);return()=>io.disconnect();},[isCanvas]);const words=(text||\"\").split(\"\\xb7\").map(w=>w.trim()).filter(Boolean);const sequence=[];// Build one strip: filled, hollow, filled, hollow… (2 reps; the strip is\n// rendered twice below, so the loop still has plenty of runway).\nfor(let rep=0;rep<2;rep++){words.forEach((w,i)=>{const hollow=(i+rep)%2===1;sequence.push(/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:HEAD_FONT,fontWeight:800,fontSize:`clamp(44px, ${fontSize}vw, 130px)`,lineHeight:1,textTransform:\"uppercase\",letterSpacing:\"-0.01em\",whiteSpace:\"nowrap\",color:hollow?\"transparent\":fillColor,WebkitTextStroke:hollow?`2px ${outlineColor}`:\"0px\",padding:\"0 0.35em\"},children:w},`${rep}-${i}`));sequence.push(/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,style:{fontFamily:HEAD_FONT,fontWeight:800,fontSize:`clamp(24px, ${fontSize*.5}vw, 60px)`,color:fillColor,opacity:.5,alignSelf:\"center\"},children:\"✦\"},`dot-${rep}-${i}`));});}const animate=!isCanvas&&!reduced;const duration=Math.max(10,60-speed);return /*#__PURE__*/_jsxs(\"div\",{ref:rootRef,\"aria-label\":text,role:\"img\",style:{width:fullBleed&&!isCanvas?\"100vw\":\"100%\",marginLeft:fullBleed&&!isCanvas?\"calc(50% - 50vw)\":undefined,overflow:\"hidden\",display:\"flex\",...style},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                @keyframes ro-marquee {\n                    from { transform: translateX(0); }\n                    to { transform: translateX(-50%); }\n                }\n            `}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"baseline\",width:\"max-content\",willChange:animate?\"transform\":undefined,animation:animate?`ro-marquee ${duration}s linear infinite`:\"none\",animationPlayState:animate&&inView?\"running\":\"paused\"},children:[sequence,sequence]})]});}addPropertyControls(EditorialMarquee,{text:{type:ControlType.String,title:\"Words\",defaultValue:\"Love God \\xb7 Love Others \\xb7 You're Invited\",description:\"Separate phrases with \\xb7\"},fillColor:{type:ControlType.Color,title:\"Fill\",defaultValue:\"#000000\"},outlineColor:{type:ControlType.Color,title:\"Outline\",defaultValue:\"#4d9ee9\"},fontSize:{type:ControlType.Number,title:\"Size (vw)\",defaultValue:7,min:3,max:12,step:.5},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:25,min:0,max:50,step:5},fullBleed:{type:ControlType.Boolean,title:\"Full Bleed\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EditorialMarquee\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"1200\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EditorialMarquee.map"],"mappings":"0MAWG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,OAAK,YAAU,eAAa,WAAS,QAAM,YAAU,SAAO,EAAY,EAAS,EAAa,QAAQ,IAAI,EAAa,OAAa,EAAQA,EAAa,IAAI,EAAO,CAAC,EAAQ,GAAYC,EAAe,EAAK,EAAO,CAAC,EAAO,GAAWA,EAAe,EAAI,EAAE,MAAoB,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,EAAG,EAAO,WAAW,kCAAkC,EAAQ,MAAO,EAAW,EAAG,OAAO,EAAwC,OAAtC,EAAG,EAAE,EAAG,iBAAiB,SAAS,CAAE,MAAY,EAAG,oBAAoB,SAAS,CAAE,CAAE,EAAE,CAAC,CAAC,EAC3iB,MAAoB,CAAiD,GAA7C,GAAiB,IAAS,QAAsB,EAAE,yBAAyB,IAAS,CAAC,EAAQ,QAAQ,OAAO,IAAM,EAAG,IAAI,qBAAqB,GAAS,EAAU,EAAQ,KAAK,GAAG,EAAE,cAAc,CAAC,EAAE,CAAC,WAAW,MAAM,CAAC,EAA8B,OAA5B,EAAG,QAAQ,EAAQ,OAAO,MAAY,EAAG,WAAW,CAAE,EAAE,CAAC,CAAQ,CAAC,EAAE,IAAM,GAAO,GAAM,GAAA,CAAI,MAAM,GAAM,CAAC,CAAC,IAAI,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,EAAQ,EAAS,CAAC,EAE3Y,IAAI,IAAI,EAAI,EAAE,EAA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