{"version":3,"file":"ProcessTimeline.oDNc5dJR.mjs","names":["useRef","useState","__esmMin","init_npm_react_18_3_1","_e","de","init_jsx_runtime","c","p","ce","useScroll","motion","useReducedMotion","useSpring","init_framer_motion_DhsWWWsN","useTransform","useIsStaticRenderer","RenderTarget","init_framer_BWFVvmND","addPropertyControls","ControlType","StepItem","props","at","count","index","start","on","progress","textOpacity","textY","ringScale","glow","next","seg","showSeg","vertical","SIZE","accent","step","ProcessTimeline","ref","width","setWidth","isStatic","reduce","isCanvas","frozen","el","ro","w","entries","prev","stackBelow","smooth","scrollYProgress","full","steps","inset","i","init_ProcessTimeline"],"sources":["https:/framerusercontent.com/modules/T06SZURUXpeFz3NTU9Yq/nn8y0Pil9Om9JMx9W5Cf/ProcessTimeline.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType,RenderTarget,useIsStaticRenderer}from\"framer\";import{motion,useScroll,useSpring,useTransform,useReducedMotion}from\"framer-motion\";const SIZE=48;function StepItem(props){const{index,count,step,progress,vertical,accent}=props;const at=count>1?index/(count-1):0;const start=Math.max(0,at-.12);const on=useTransform(progress,[start,at],[0,1],{clamp:true});const textOpacity=useTransform(on,[0,1],[.32,1]);const textY=useTransform(on,[0,1],[14,0]);const ringScale=useTransform(on,[0,.6,1],[1,1.14,1]);const glow=useTransform(on,[0,1],[0,1]);const next=count>1?(index+1)/(count-1):1;const seg=useTransform(progress,[at,next],[0,1],{clamp:true});const showSeg=vertical&&index<count-1;return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",flexDirection:vertical?\"row\":\"column\",alignItems:vertical?\"flex-start\":\"center\",gap:vertical?22:26,textAlign:vertical?\"left\":\"center\",padding:vertical?index<count-1?\"0 0 40px 0\":\"0\":\"0 18px\",minWidth:0},children:[showSeg&&/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",left:SIZE/2-.5,top:SIZE/2,bottom:-SIZE/2,width:1,background:`${accent}26`},children:/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",inset:\"0 -0.5px\",background:`linear-gradient(180deg, #F7E6BC, ${accent} 50%, #A87A2E)`,boxShadow:`0 0 14px ${accent}99`,transformOrigin:\"50% 0%\",scaleY:seg}})}),/*#__PURE__*/_jsxs(motion.div,{style:{position:\"relative\",flex:\"0 0 auto\",width:SIZE,height:SIZE,borderRadius:\"50%\",scale:ringScale,zIndex:2},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,borderRadius:\"50%\",border:`1px solid ${accent}55`,background:\"#0b0907\"}}),/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",inset:0,borderRadius:\"50%\",opacity:glow,background:\"linear-gradient(145deg, #F7E6BC 0%, #D4A85A 45%, #A87A2E 100%)\",boxShadow:`0 0 0 6px ${accent}14, 0 0 34px 2px ${accent}66`}}),/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",inset:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontFamily:'\"Manrope\", \"Manrope Placeholder\", sans-serif',fontWeight:600,fontSize:17,color:\"#E5BE7A\"},children:index+1}),/*#__PURE__*/_jsx(motion.span,{\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontFamily:'\"Manrope\", \"Manrope Placeholder\", sans-serif',fontWeight:700,fontSize:17,color:\"#1a1208\",opacity:glow},children:index+1})]}),/*#__PURE__*/_jsxs(motion.div,{style:{opacity:textOpacity,y:textY,minWidth:0,paddingTop:vertical?8:0},children:[/*#__PURE__*/_jsx(\"h3\",{style:{margin:0,fontFamily:'\"Manrope\", \"Manrope Placeholder\", sans-serif',fontWeight:600,fontSize:vertical?22:24,letterSpacing:\"-0.02em\",lineHeight:1.2,color:\"#fff\"},children:step.title}),/*#__PURE__*/_jsx(\"p\",{style:{margin:\"12px 0 0\",fontFamily:'\"Manrope\", \"Manrope Placeholder\", sans-serif',fontSize:15,lineHeight:1.6,color:\"rgba(255,255,255,0.66)\",maxWidth:280,marginLeft:vertical?0:\"auto\",marginRight:vertical?0:\"auto\"},children:step.body})]})]});}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1160\n */export default function ProcessTimeline(props){const{steps=[],accent=\"#D4A85A\",stackBelow=700}=props;const ref=useRef(null);const[width,setWidth]=useState(1160);const isStatic=useIsStaticRenderer();const reduce=useReducedMotion();const isCanvas=RenderTarget.current()===RenderTarget.canvas;const frozen=isStatic||isCanvas||!!reduce;useEffect(()=>{const el=ref.current;if(!el||typeof ResizeObserver===\"undefined\")return;const ro=new ResizeObserver(entries=>{const w=Math.round(entries[0].contentRect.width);setWidth(prev=>prev===w?prev:w);});ro.observe(el);return()=>ro.disconnect();},[]);const vertical=width<stackBelow;const{scrollYProgress}=useScroll({target:ref,offset:vertical?[\"start 80%\",\"end 70%\"]:[\"start 85%\",\"start 30%\"]});const smooth=useSpring(scrollYProgress,{stiffness:120,damping:28,mass:.4});const full=useTransform(scrollYProgress,()=>1);const progress=frozen?full:smooth;const count=steps.length;const inset=`calc(100% / ${Math.max(count,1)*2})`;return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{...props.style,position:\"relative\",width:\"100%\",display:\"grid\",gridTemplateColumns:vertical?\"1fr\":`repeat(${count}, minmax(0, 1fr))`},children:[!vertical&&/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",top:SIZE/2-.5,left:inset,right:inset,height:1,background:`${accent}26`},children:/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",inset:\"-0.5px 0\",background:`linear-gradient(90deg, #F7E6BC, ${accent} 50%, #A87A2E)`,boxShadow:`0 0 14px ${accent}99`,transformOrigin:\"0% 50%\",scaleX:progress}})}),steps.map((step,i)=>/*#__PURE__*/_jsx(StepItem,{index:i,count:count,step:step,progress:progress,vertical:vertical,accent:accent},i))]});}addPropertyControls(ProcessTimeline,{steps:{type:ControlType.Array,title:\"Steps\",control:{type:ControlType.Object,controls:{title:{type:ControlType.String,defaultValue:\"Step\"},body:{type:ControlType.String,displayTextArea:true,defaultValue:\"Description\"}}},defaultValue:[{title:\"Consultation\",body:\"We learn your vision, your collection and your space. Your initial concept arrives within 5 days.\"},{title:\"Design\",body:\"CAD drawings and photorealistic renderings show the finished cellar before construction begins.\"},{title:\"Build\",body:\"Sealed, spray-foam insulated and fitted with precision cooling, then fabricated and installed by our team.\"},{title:\"Care\",body:\"We commission the cooling system at handoff, and Prestige Care keeps it running year after year.\"}]},accent:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#D4A85A\"},stackBelow:{type:ControlType.Number,title:\"Stack Below\",defaultValue:700,min:300,max:1200,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProcessTimeline\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"1160\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProcessTimeline.map"],"mappings":"A,8RAA6R,SAASqB,EAAS,EAAM,CAAC,GAAK,CAAC,QAAM,QAAM,OAAK,WAAS,WAAS,UAAQC,EAAYC,EAAGC,EAAM,EAAEC,GAAOD,EAAM,GAAG,EAAQE,EAAM,KAAK,IAAI,EAAEH,EAAG,GAAG,EAAQI,EAAGZ,EAAaa,EAAS,CAACF,EAAMH,CAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,MAAM,EAAI,CAAC,EAAQM,EAAYd,EAAaY,EAAG,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,EAAQG,EAAMf,EAAaY,EAAG,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,EAAQI,EAAU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