{"version":3,"file":"CTABand.BfoYVlFN.mjs","names":["React.useRef","React.useState"],"sources":["https:/framerusercontent.com/modules/u3AYXoVFoaoqbaAHqvGq/e3a3coyDyjtAoLFAcGGX/CTABand.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\";const BODY_FONT=\"'Archivo', 'Helvetica Neue', sans-serif\";const DESKTOP_MQ=\"(min-width: 810px)\";// Self-healing link fallbacks by label (instances snapshot props; see attempts.md)\nconst LINK_FALLBACKS={\"Plan Your Visit\":\"/visitriveroaks\",\"Watch a Sermon\":\"/sermons\",\"Experience Life Change\":\"/students\",\"Find a Group\":\"/groups\",\"Get Involved\":\"/saturate-murfreesboro\",\"Find Support\":\"/saturate-murfreesboro\",Give:\"/give\",\"Pre-Register Your Kids\":\"/kids\"};// Three slugs moved to the old site's addresses so the search equity carries\n// over. ctaLink and secondaryLink are String props, so each placed instance\n// stores its own literal path and beats the defaults above — the retired ones\n// are rewritten here.\nconst RENAMED_PATHS={\"/visit\":\"/visitriveroaks\",\"/staff\":\"/our-staff\",\"/about\":\"/who-we-are\"};function canonicalPath(path){if(!path)return path;const cut=path.search(/[#?]/);const base=cut===-1?path:path.slice(0,cut);const tail=cut===-1?\"\":path.slice(cut);return(RENAMED_PATHS[base]||base)+tail;}const resolveLink=(link,label)=>canonicalPath(link&&link!==\"#\"?link:LINK_FALLBACKS[(label||\"\").trim()]||\"/visitriveroaks\");/**\n * Full-width closing CTA band: bold statement, one clear action.\n * Black with a static (cheap) blue-green radial glow. Repeats the\n * decision point near the end of a page. Desktop-only fade-rise.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1200\n */export default function CTABand(props){const{heading,body,ctaLabel,ctaLink,secondaryLabel,secondaryLink,accent,accent2,style}=props;const isCanvas=RenderTarget.current()===RenderTarget.canvas;const ref=React.useRef(null);const[shown,setShown]=React.useState(true);const[hover,setHover]=React.useState(false);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:.25});if(ref.current)io.observe(ref.current);return()=>io.disconnect();},[isCanvas]);return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{width:\"100%\",position:\"relative\",overflow:\"hidden\",borderRadius:28,background:\"#000000\",padding:\"clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px)\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:18,boxSizing:\"border-box\",...style},children:[/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":true,style:{position:\"absolute\",inset:0,pointerEvents:\"none\",background:`radial-gradient(90% 120% at 15% 0%, ${accent}40 0%, rgba(0,0,0,0) 55%), radial-gradient(80% 110% at 90% 100%, ${accent2}36 0%, rgba(0,0,0,0) 55%)`}}),/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,position:\"relative\",fontFamily:HEAD_FONT,fontWeight:700,fontSize:\"clamp(28px, 4.4vw, 44px)\",lineHeight:1.1,letterSpacing:\"-0.02em\",color:\"#ffffff\",textAlign:\"center\",maxWidth:760,opacity:shown?1:0,transform:shown?\"none\":\"translateY(18px)\",transition:\"opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1)\"},children:heading}),body?/*#__PURE__*/_jsx(\"p\",{style:{margin:0,position:\"relative\",fontFamily:BODY_FONT,fontSize:16.5,lineHeight:1.5,color:\"rgba(255,255,255,0.82)\",textAlign:\"center\",maxWidth:560,opacity:shown?1:0,transition:\"opacity 0.5s ease 0.08s\"},children:body}):null,/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",gap:14,flexWrap:\"wrap\",justifyContent:\"center\",marginTop:10,opacity:shown?1:0,transition:\"opacity 0.5s ease 0.16s\"},children:[/*#__PURE__*/_jsx(\"a\",{href:resolveLink(ctaLink,ctaLabel),onMouseEnter:()=>setHover(true),onMouseLeave:()=>setHover(false),style:{padding:\"17px 34px\",borderRadius:999,backgroundImage:`linear-gradient(100deg, #3e7fbb, ${accent} 45%, ${accent2})`,backgroundSize:\"200% auto\",backgroundPosition:hover?\"100% center\":\"0% center\",color:\"#ffffff\",fontFamily:HEAD_FONT,fontWeight:700,fontSize:16,textDecoration:\"none\",transition:\"background-position 0.45s ease, transform 0.2s ease\",transform:hover?\"translateY(-2px)\":\"none\"},children:ctaLabel}),secondaryLabel?/*#__PURE__*/_jsx(\"a\",{href:resolveLink(secondaryLink,secondaryLabel),style:{padding:\"17px 34px\",borderRadius:999,border:\"2px solid rgba(255,255,255,0.85)\",color:\"#ffffff\",fontFamily:HEAD_FONT,fontWeight:700,fontSize:16,textDecoration:\"none\",boxSizing:\"border-box\"},children:secondaryLabel}):null]})]});}addPropertyControls(CTABand,{heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"This Sunday is a great Sunday to start.\"},body:{type:ControlType.String,title:\"Body\",displayTextArea:true,defaultValue:\"Come as you are. We'll save you a seat.\"},ctaLabel:{type:ControlType.String,title:\"CTA Label\",defaultValue:\"Plan Your Visit\"},ctaLink:{type:ControlType.String,title:\"CTA Link\",defaultValue:\"/visitriveroaks\"},secondaryLabel:{type:ControlType.String,title:\"2nd Label\",defaultValue:\"\"},secondaryLink:{type:ControlType.String,title:\"2nd Link\",defaultValue:\"\"},accent:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#4d9ee9\"},accent2:{type:ControlType.Color,title:\"Accent 2\",defaultValue:\"#3d8c62\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CTABand\",\"slots\":[],\"annotations\":{\"framerSupportedLayo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