{"version":3,"file":"FocusText.BVTDL6mm.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/OrbVWKPOtyKXj2CBNuMA/Iyk7jEU5lZ0x0sg5OzMX/FocusText.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useRef,useState}from\"react\";import{useScroll,useMotionValueEvent}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";export default function FocusText({text1,text2,text3,text4,text5,text6,/* Layout */align,maxWidth,padding,gap,/* Visual */minOpacity,/* Indicator */indicatorSize,indicatorColor,indicatorGap}){const ref=useRef(null);const[activeIndex,setActiveIndex]=useState(0);const[hoveredIndex,setHoveredIndex]=useState(null);const items=[text1,text2,text3,text4,text5,text6].filter(Boolean);const{scrollYProgress}=useScroll({target:ref,offset:[\"start center\",\"end center\"]});// One scroll listener → stable\nuseMotionValueEvent(scrollYProgress,\"change\",v=>{const index=Math.round(v*(items.length-1));setActiveIndex(index);});const justifyContent=align===\"center\"?\"center\":align===\"right\"?\"flex-end\":\"flex-start\";return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{width:\"100%\",display:\"flex\",justifyContent},children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",maxWidth,display:\"flex\",flexDirection:\"column\",gap,padding},children:items.map((text,i)=>{const isActive=i===activeIndex;const isHovered=i===hoveredIndex;const isRevealed=isActive||isHovered;return /*#__PURE__*/_jsxs(\"div\",{onMouseEnter:()=>setHoveredIndex(i),onMouseLeave:()=>setHoveredIndex(null),style:{display:\"flex\",alignItems:\"center\",gap:indicatorGap,opacity:isRevealed?1:minOpacity,cursor:\"default\",transition:\"opacity 0.35s ease\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:indicatorSize,height:indicatorSize,backgroundColor:indicatorColor,opacity:isActive?1:0,flexShrink:0,transition:\"opacity 0.35s ease\"}}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontFamily:\"'Acid Grotesk', sans-serif\",fontWeight:400,fontSize:\"24px\",lineHeight:\"1.3\",color:isRevealed?\"#111111\":\"#B5B5B5\",filter:isRevealed?\"blur(0px)\":\"blur(4px)\",transition:\"color 0.35s ease, filter 0.35s ease, opacity 0.35s ease\",maxWidth:\"100%\"},children:text})]},i);})})});}/* ---------- Defaults ---------- */FocusText.defaultProps={text1:\"Operate without a playbook in a category we're still defining\",text2:\"Make product decisions where the constraints are real and visible\",text3:\"Go deep on product choices that shape the entire stack\",text4:\"Solve problems that only appear at scale and in production\",text5:\"Design for feasibility twice: for hx and for customers\",text6:\"\",/* Layout */align:\"left\",maxWidth:900,padding:0,gap:32,/* Visual */minOpacity:.4,/* Indicator */indicatorSize:8,indicatorColor:\"#E36F5C\",indicatorGap:16};/* ---------- Controls ---------- */addPropertyControls(FocusText,{text1:{title:\"Text 1\",type:ControlType.String,displayTextArea:true},text2:{title:\"Text 2\",type:ControlType.String,displayTextArea:true},text3:{title:\"Text 3\",type:ControlType.String,displayTextArea:true},text4:{title:\"Text 4\",type:ControlType.String,displayTextArea:true},text5:{title:\"Text 5\",type:ControlType.String,displayTextArea:true},text6:{title:\"Text 6\",type:ControlType.String,displayTextArea:true},/* Layout */align:{title:\"Align\",type:ControlType.Enum,options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"]},maxWidth:{title:\"Max width\",type:ControlType.Number,min:320,max:1400,step:20},padding:{title:\"Padding\",type:ControlType.Number,min:0,max:200,step:4},gap:{title:\"Line gap\",type:ControlType.Number,min:0,max:120,step:4},/* Visual */minOpacity:{title:\"Inactive opacity\",type:ControlType.Number,min:.1,max:1,step:.05},/* Indicator */indicatorSize:{title:\"Indicator size\",type:ControlType.Number,min:4,max:24},indicatorGap:{title:\"Indicator gap\",type:ControlType.Number,min:8,max:40},indicatorColor:{title:\"Indicator color\",type:ControlType.Color}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FocusText\",\"slots\":[],\"annotations\":{\"framerContractVers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