{"version":3,"file":"ProcessSteps.D2qnzXqQ.mjs","names":["useRef","useState","useEffect","_jsx","_jsxs","__esmMin","init_npm_react_18_3_1","_e","de","p","c","init_jsx_runtime","ce","addPropertyControls","init_framer_ChujFWHC","useIsStaticRenderer","ControlType","useInView","motion","useReducedMotion","init_framer_motion_1EwlFBEG","ProcessSteps","props","steps","layout","numberFont","titleFont","bodyFont","numberColor","titleColor","bodyColor","rule","ruleActive","gap","padding","ruleWidth","animate","stagger","style","ref","isStatic","reduced","inView","play","entered","setEntered","isRow","s","i","init_ProcessSteps"],"sources":["https:/framerusercontent.com/modules/YjgibdNYn1Tti939F53X/U62nVIUJgBGY2ZKBXyj4/ProcessSteps.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useInView,useReducedMotion}from\"framer-motion\";import{useEffect,useRef,useState}from\"react\";/**\n * Process Steps\n *\n * The numbered rail of steps for a process section. Each step is a column under\n * a top rule that draws itself left-to-right as the row enters, so the sequence\n * reads in order rather than arriving all at once.\n *\n * Content, type, colour, rhythm and motion are all property controls — nothing\n * about the brand is baked into the file.\n *\n * @framerIntrinsicWidth 1100\n * @framerIntrinsicHeight 220\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function ProcessSteps(props){const{steps=[],layout=\"row\",numberFont,titleFont,bodyFont,numberColor=\"rgba(255, 255, 255, 0.42)\",titleColor=\"rgb(240, 240, 240)\",bodyColor=\"rgba(255, 255, 255, 0.55)\",rule=\"rgba(28, 27, 27, 0.75)\",ruleActive=\"rgb(248, 236, 29)\",gap=24,padding=24,ruleWidth=1,animate=true,stagger=.14,style}=props;const ref=useRef(null);const isStatic=useIsStaticRenderer();const reduced=useReducedMotion();const inView=useInView(ref,{once:true,amount:.3});// A still frame shows every rule already drawn, so the canvas never looks broken.\nconst play=animate&&!isStatic&&!reduced;const[entered,setEntered]=useState(!play);useEffect(()=>{if(!play){setEntered(true);return;}if(inView)setEntered(true);},[play,inView]);const isRow=layout===\"row\";return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{...style,position:\"relative\",width:\"100%\",display:\"flex\",flexDirection:isRow?\"row\":\"column\",alignItems:\"stretch\",gap},children:steps.map((s,i)=>/*#__PURE__*/_jsxs(\"div\",{style:{flex:isRow?\"1 1 0\":\"0 0 auto\",minWidth:0,position:\"relative\",paddingTop:padding,paddingRight:padding,paddingBottom:padding,// the number sits flush to the rule's start\n    paddingLeft:0,display:\"flex\",flexDirection:\"column\",gap:16},children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",left:0,right:0,top:0,height:ruleWidth,background:rule,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(motion.span,{style:{display:\"block\",width:\"100%\",height:\"100%\",background:ruleActive,transformOrigin:\"left center\"},initial:false,animate:{scaleX:entered?1:0},transition:{duration:play?.8:0,delay:play?i*stagger:0,ease:[.22,1,.36,1]}})}),/*#__PURE__*/_jsxs(motion.div,{initial:false,animate:{opacity:entered?1:0,y:entered?0:12},transition:{duration:play?.7:0,delay:play?i*stagger+.1:0,ease:[.22,1,.36,1]},style:{display:\"flex\",flexDirection:\"column\",gap:16},children:[/*#__PURE__*/_jsx(\"span\",{style:{...numberFont,color:numberColor},children:s.number}),/*#__PURE__*/_jsx(\"span\",{style:{...titleFont,color:titleColor},children:s.title}),/*#__PURE__*/_jsx(\"span\",{style:{...bodyFont,color:bodyColor},children:s.body})]})]},i))});}addPropertyControls(ProcessSteps,{steps:{type:ControlType.Array,title:\"Steps\",control:{type:ControlType.Object,controls:{number:{type:ControlType.String,title:\"Number\",defaultValue:\"01\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Step title\"},body:{type:ControlType.String,title:\"Body\",defaultValue:\"What happens in this step.\",displayTextArea:true}}},defaultValue:[{number:\"01\",title:\"Find the opportunity\",body:\"We review your tools and choose the workflow that will save your team the most time.\"},{number:\"02\",title:\"Build and test\",body:\"We connect your systems and test the automation with real examples from your team.\"},{number:\"03\",title:\"Launch and improve\",body:\"We launch, hand over clear documentation, and refine the workflow based on results.\"}],maxCount:6},layout:{type:ControlType.Enum,title:\"Layout\",defaultValue:\"row\",options:[\"row\",\"stack\"],optionTitles:[\"Row\",\"Stack\"],displaySegmentedControl:true},numberFont:{type:ControlType.Font,title:\"Number\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"13px\",variant:\"Medium\",letterSpacing:\"0.08em\",lineHeight:\"1em\"}},titleFont:{type:ControlType.Font,title:\"Title\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"20px\",variant:\"Medium\",letterSpacing:\"-0.02em\",lineHeight:\"1.25em\"}},bodyFont:{type:ControlType.Font,title:\"Body\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.5em\"}},numberColor:{type:ControlType.Color,title:\"Number Color\",defaultValue:\"rgba(255, 255, 255, 0.42)\"},titleColor:{type:ControlType.Color,title:\"Title Color\",defaultValue:\"rgb(240, 240, 240)\"},bodyColor:{type:ControlType.Color,title:\"Body Color\",defaultValue:\"rgba(255, 255, 255, 0.55)\"},rule:{type:ControlType.Color,title:\"Rule\",defaultValue:\"rgba(28, 27, 27, 0.75)\"},ruleActive:{type:ControlType.Color,title:\"Rule Accent\",defaultValue:\"rgb(248, 236, 29)\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:24,min:0,max:96,step:2,unit:\"px\"},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:24,min:0,max:80,step:2,unit:\"px\"},ruleWidth:{type:ControlType.Number,title:\"Rule Weight\",defaultValue:1,min:0,max:6,step:.5,unit:\"px\"},animate:{type:ControlType.Boolean,title:\"Animate\",defaultValue:true},stagger:{type:ControlType.Number,title:\"Stagger\",defaultValue:.14,min:0,max:.8,step:.02,unit:\"s\",hidden:props=>!props.animate}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProcessSteps\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"1100\",\"framerIntrinsicHeight\":\"220\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProcessSteps.map"],"mappings":"A,sQAeG,SAAwBqB,EAAaC,EAAM,CAAC,GAAK,CAACC,QAAM,CAAC,EAAEC,SAAO,MAAMC,aAAWC,YAAUC,WAASC,cAAY,4BAA4BC,aAAW,qBAAqBC,YAAU,4BAA4BC,OAAK,yBAAyBC,aAAW,oBAAoBC,MAAI,GAAGC,UAAQ,GAAGC,YAAU,EAAEC,UAAQ,GAAKC,UAAQ,IAAIC,SAAOhB,EAAYiB,EAAIvC,EAAO,IAAI,EAAQwC,EAASzB,EAAoB,EAAQ0B,EAAQtB,EAAiB,EAAQuB,EAAOzB,EAAUsB,EAAI,CAAC,KAAK,GAAK,OAAO,EAAE,CAAC,EAC/dI,EAAKP,GAAS,CAACI,GAAU,CAACC,EAAa,CAACG,EAAQC,GAAY5C,EAAS,CAAC0C,CAAI,EAAEzC,MAAc,CAAKyC,EAAkCD,GAAOG,EAAW,EAAI,EAAlDA,EAAW,EAAI,CAAqC,EAAE,CAACF,EAAKD,CAAM,CAAC,EAAE,IAAMI,EAAMtB,IAAS,MAAM,MAAoBrB,gBAAK,MAAM,CAAKoC,MAAI,MAAM,CAAC,GAAGD,EAAM,SAAS,WAAW,MAAM,OAAO,QAAQ,OAAO,cAAcQ,EAAM,MAAM,SAAS,WAAW,UAAUb,KAAG,EAAE,SAASV,EAAM,KAAKwB,EAAEC,IAAiB5C,gBAAM,MAAM,CAAC,MAAM,CAAC,KAAK0C,EAAM,QAAQ,WAAW,SAAS,EAAE,SAAS,WAAW,WAA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