{"version":3,"file":"CTABand.Day0POnf.mjs","names":["React.useRef","React.useState","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","le","_e","p","c","init_jsx_runtime","de","init_framer_DcxuU94H","RenderTarget","ControlType","addPropertyControls","canonicalPath","path","cut","base","tail","RENAMED_PATHS","CTABand","props","isCanvas","ref","shown","setShown","hover","setHover","DESKTOP_MQ","io","entries","style","accent","accent2","HEAD_FONT","heading","body","BODY_FONT","resolveLink","ctaLink","ctaLabel","secondaryLabel","secondaryLink","LINK_FALLBACKS","init_CTABand","link","label"],"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\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"1200\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CTABand.map"],"mappings":"A,qNAK8F,SAASgB,EAAc,EAAK,CAAC,GAAG,CAACC,EAAK,OAAOA,EAAK,IAAMC,EAAID,EAAK,OAAO,MAAM,EAAQE,EAAKD,IAAM,GAAGD,EAAKA,EAAK,MAAM,EAAEC,CAAG,EAAQE,EAAKF,IAAM,GAAG,GAAGD,EAAK,MAAMC,CAAG,EAAE,OAAOG,EAAcF,IAAOA,GAAMC,CAAK,CAQpS,SAAwBE,EAAQ,EAAM,CAAC,GAAK,CAAC,UAAQ,OAAK,WAAS,UAAQ,iBAAe,gBAAc,SAAO,UAAQ,SAAOC,EAAYC,EAASX,EAAa,QAAQ,IAAIA,EAAa,OAAaY,EAAIzB,EAAa,IAAI,EAAO,CAAC0B,EAAMC,GAAU1B,EAAe,EAAI,EAAO,CAAC2B,EAAMC,GAAU5B,EAAe,EAAK,EAAud,OAArdK,MAA0B,CAA0K,GAAtKkB,GAAiBnB,IAAS,QAAsB,CAACA,EAAO,WAAWyB,CAAU,CAAC,CAAC,SAAkBzB,EAAO,WAAW,kCAAkC,CAAC,CAAC,SAAkB,EAAE,yBAAyBA,GAAQ,OAAOsB,EAAS,EAAK,EAAE,IAAMI,EAAG,IAAI,qBAAqB,GAAS,CAAIC,EAAQ,KAAK,GAAG,EAAE,c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