{"version":3,"file":"FeaturedQuote.CSdV6m_t.mjs","names":["useRef","useState","F.useIsStaticRenderer","F.useRouter"],"sources":["https:/framerusercontent.com/modules/lavfHElEIHaZjRNAWlLu/2QLduspRb6QHF44IWiYF/FeaturedQuote.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useLayoutEffect,useRef,useState}from\"react\";import*as F from\"framer\";import{addPropertyControls,ControlType}from\"framer\";/* FeaturedQuote — one large testimonial above the testimonial carousel. */const SANS='\"Inter\", \"Inter Placeholder\", system-ui, sans-serif';const MONO='\"Geist Mono\", \"Geist Mono Placeholder\", ui-monospace, Menlo, monospace';const INK=\"#141414\";const MUTED=\"#6F6C69\";const ORG=\"#ED4F00\";function useWidth(){const ref=useRef(null);const[w,setW]=useState(1200);useLayoutEffect(()=>{const el=ref.current;if(!el)return;const ro=new ResizeObserver(()=>setW(el.getBoundingClientRect().width));ro.observe(el);setW(el.getBoundingClientRect().width);return()=>ro.disconnect();},[]);return[ref,w];}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function FeaturedQuote(props){const[ref,w]=useWidth();// Quote text with *orange* highlights, typed out once when it scrolls into view\nconst segs=(props.quote||\"\").split(\"*\").map((t,i)=>({t,hi:i%2===1}));const total=segs.reduce((n,x)=>n+x.t.length,0);const isStatic=typeof F.useIsStaticRenderer===\"function\"?F.useIsStaticRenderer():false;const[count,setCount]=useState(props.typeOn===false?Infinity:0);const qRef=useRef(null);useEffect(()=>{if(props.typeOn===false||isStatic){setCount(Infinity);return;}const reduced=window.matchMedia&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;if(reduced||!qRef.current){setCount(Infinity);return;}let timer;let i=0;const step=()=>{i=Math.min(total,i+2);setCount(i);if(i<total)timer=setTimeout(step,16);};const io=new IntersectionObserver(([e])=>{if(e.isIntersecting){io.disconnect();timer=setTimeout(step,200);}},{threshold:.4});io.observe(qRef.current);return()=>{io.disconnect();if(timer)clearTimeout(timer);};},[props.quote,props.typeOn,isStatic,total]);// Optional: only show on the CMS pages whose slug is listed (comma-separated)\nconst useR=F.useRouter;const router=typeof useR===\"function\"?useR():null;const vars=router&&(router.currentPathVariables||router.pathVariables)||{};const slug=Object.values(vars).find(v=>typeof v===\"string\")||\"\";const allowed=(props.onlyOn||\"\").split(\",\").map(x=>x.trim()).filter(Boolean);const isCanvas=typeof window!==\"undefined\"&&/framercanvas|framer\\.com\\/projects/.test(window.location.href);if(allowed.length&&!allowed.includes(slug)&&!isCanvas)return null;const phone=w<760;const wide=w>=1100;const mono=(fs,color=INK)=>({fontFamily:MONO,fontSize:fs,letterSpacing:fs*.07,textTransform:\"uppercase\",color});return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{...props.style,width:\"100%\",fontFamily:SANS,color:INK,boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`.fq-link{transition:color .2s}.fq-link:hover{color:${INK}!important}`}),/*#__PURE__*/_jsxs(\"figure\",{style:{margin:0,maxWidth:1376,marginLeft:\"auto\",marginRight:\"auto\",padding:`${phone?36:56}px ${phone?16:32}px ${phone?40:60}px`,display:\"grid\",gridTemplateColumns:wide?\"1fr 2fr\":\"1fr\",columnGap:0,rowGap:phone?20:24,boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:14,paddingRight:wide?32:0},children:[/*#__PURE__*/_jsxs(\"span\",{style:{display:\"inline-flex\",alignSelf:\"flex-start\",...mono(12,\"#fff\"),background:INK},children:[/*#__PURE__*/_jsx(\"b\",{style:{background:ORG,color:INK,fontWeight:400,padding:\"6px 7px\"},children:\"★\"}),/*#__PURE__*/_jsx(\"span\",{style:{padding:\"6px 10px\"},children:props.label})]}),props.logo&&wide?/*#__PURE__*/_jsx(\"img\",{src:props.logo,alt:\"\",style:{width:120,height:\"auto\",display:\"block\",marginTop:10,opacity:.9}}):null]}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\"},children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,style:{position:\"absolute\",left:phone?0:-2,top:phone?-10:-14,fontFamily:SANS,fontSize:phone?56:80,lineHeight:1,color:ORG,fontWeight:500},children:\"“\"}),/*#__PURE__*/_jsx(\"blockquote\",{ref:qRef,\"aria-label\":segs.map(x=>x.t).join(\"\"),style:{margin:0,paddingTop:phone?34:50,fontSize:phone?21:wide?30:26,fontWeight:500,letterSpacing:phone?-.4:-.8,lineHeight:phone?1.38:1.32,maxWidth:920},children:(()=>{let left=count;let cursorPlaced=count>=total;const out=[];segs.forEach((x,i)=>{const shown=Math.max(0,Math.min(x.t.length,left));left-=x.t.length;out.push(/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,style:{color:x.hi?ORG:INK},children:x.t.slice(0,shown)},i+\"v\"));if(shown<x.t.length){if(!cursorPlaced){cursorPlaced=true;out.push(/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,style:{display:\"inline-block\",width:3,height:\"0.95em\",background:ORG,verticalAlign:\"-0.12em\",marginLeft:1}},i+\"c\"));}out.push(/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,style:{color:\"transparent\"},children:x.t.slice(shown)},i+\"h\"));}});return out;})()}),/*#__PURE__*/_jsxs(\"figcaption\",{style:{display:\"flex\",flexWrap:\"wrap\",alignItems:\"center\",justifyContent:\"space-between\",gap:16,marginTop:phone?24:32,paddingTop:18,borderTop:\"1px dashed #B9B6B0\",maxWidth:920},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:14},children:[props.logo&&!wide?/*#__PURE__*/_jsx(\"img\",{src:props.logo,alt:\"\",style:{width:44,height:44,objectFit:\"contain\",display:\"block\"}}):null,/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"div\",{style:mono(14),children:props.name}),/*#__PURE__*/_jsx(\"div\",{style:{...mono(12,MUTED),marginTop:4},children:props.role})]})]}),props.link&&!allowed.length?/*#__PURE__*/_jsx(\"a\",{className:\"fq-link\",href:props.link,style:{...mono(12.5,ORG),textDecoration:\"none\"},children:props.linkText}):null]})]})]})]});}addPropertyControls(FeaturedQuote,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Featured\"},quote:{type:ControlType.String,title:\"Quote\",displayTextArea:true,defaultValue:\"Working with Angelica Sirotin has fundamentally changed the trajectory of Space Rising. She is an exceptionally brilliant strategic communications leader and AI expert who is redefining what a modern communications agency can be. From editorial strategy and storytelling to partnership development, she brings a rare ability to connect vision with execution. Angelica isn’t just evolving communications for today—she’s shaping how the industry evolves to build shared understanding. It’s inspiring to work alongside her.\"},name:{type:ControlType.String,title:\"Name\",defaultValue:\"Taryn Struck\"},role:{type:ControlType.String,title:\"Role\",defaultValue:\"CEO, Space Rising\"},logo:{type:ControlType.String,title:\"Logo URL\",defaultValue:\"https://framerusercontent.com/images/HyLZ8bOdwitBbKJsiCZCjovEMwI.png\"},linkText:{type:ControlType.String,title:\"Link text\",defaultValue:\"Read the case study →\"},link:{type:ControlType.String,title:\"Link URL\",defaultValue:\"/projects/space-rising\"},onlyOn:{type:ControlType.String,title:\"Only on slugs\",defaultValue:\"\"},typeOn:{type:ControlType.Boolean,title:\"Type out\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FeaturedQuote\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FeaturedQuote.map"],"mappings":"oOAAie,SAAS,GAAU,CAAC,IAAM,EAAIA,EAAO,IAAI,EAAO,CAAC,EAAE,GAAMC,EAAS,IAAI,EAAwN,OAAtN,MAAoB,CAAC,IAAM,EAAG,EAAI,QAAQ,GAAG,CAAC,EAAG,OAAO,IAAM,EAAG,IAAI,mBAAmB,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