{"version":3,"file":"FWProcess.DYXWSvUE.mjs","names":["_Fragment","__esmMin","l","c","init_jsx_runtime","init_framer_CaDWdxiz","addPropertyControls","lnHTML","$","useFW","clamp","init_FWCore","$$","esc","qpill","FWProcess","p","props","steps","nums","html","i","s","el","ol","ctx","a","x","r","pr","init_FWProcess","ControlType"],"sources":["https:/framerusercontent.com/modules/SMHyJV7jjS4ldEWxNt1w/cdw0W5AbjyIxPZxWRjZF/FWProcess.js"],"sourcesContent":["import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useFW,esc,lnHTML,qpill,$,$$,clamp}from\"https://framerusercontent.com/modules/BFVHlMTIQ1fu7HJ0LAai/r538ZcCsUgG0ct7pwJsp/FWCore.js\";/**\n * Process: steps on a line that fills with the accent colour as you scroll (vertical on phone).\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */export default function FWProcess(props){const p=props;const steps=p.steps||[];const nums=p.showNumbers!==false;const html=`<section class=\"section cp${p.surface?\" surface\":\"\"}\" id=\"${esc(p.sectionId)}\" aria-labelledby=\"proc-title\">\n  <div class=\"wrap\">\n    ${qpill(p.qn,p.question)}\n    <div class=\"cs__head\">\n      <h2 class=\"h1\" id=\"proc-title\" data-split>${lnHTML(p.title)}</h2>\n      ${p.intro?`<p class=\"muted\" data-rv>${esc(p.intro)}</p>`:\"\"}\n    </div>\n    <ol class=\"cp__steps\" style=\"grid-template-columns:repeat(${Math.max(1,steps.length)},minmax(0,1fr))\">${steps.map((s,i)=>`<li class=\"cp__s\" data-rv style=\"--d:${i*.08}s\"><span class=\"cp__dot\" aria-hidden=\"true\"></span>\n        <p class=\"label cp__when\">${esc(s.when)}</p><h3 class=\"h3\">${nums?`<span class=\"num\">${String(i+1).padStart(2,\"0\")}</span> `:\"\"}${esc(s.name)}</h3>\n        <p class=\"muted\">${esc(s.text)}</p>${s.out?`<p class=\"cp__out label\"><span class=\"tie tie--fill\"></span>${esc(s.out)}</p>`:\"\"}</li>`).join(\"\")}</ol>\n  </div>\n</section><style>.fw.cw960 .cp__steps{grid-template-columns:1fr!important}@media (max-width:960px){.fw .cp__steps{grid-template-columns:1fr!important}}</style>`;const el=useFW(html,ctx=>{const ol=$(\".cp__steps\",ctx.root);if(ctx.canvas){ol.style.setProperty(\"--p\",\"0.6\");$$(\".cp__s\",ol).forEach((x,i,a)=>i<a.length-1&&x.classList.add(\"is-hit\"));return;}ctx.onScroll(()=>{const r=ol.getBoundingClientRect(),pr=clamp((innerHeight*.75-r.top)/(r.height+innerHeight*.2));ol.style.setProperty(\"--p\",pr.toFixed(3));$$(\".cp__s\",ol).forEach((x,i,a)=>x.classList.toggle(\"is-hit\",pr>=i/a.length+.02));});},[]);return /*#__PURE__*/_jsx(_Fragment,{children:el});}addPropertyControls(FWProcess,{sectionId:{type:ControlType.String,title:\"Section ID\",defaultValue:\"process\"},surface:{type:ControlType.Boolean,title:\"White background\",defaultValue:false},qn:{type:ControlType.String,title:\"Question no.\",defaultValue:\"03\"},question:{type:ControlType.String,title:\"Question\",defaultValue:\"How does it work?\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Four steps.|No surprises.\",description:\"| = new line\"},intro:{type:ControlType.String,title:\"Intro\",displayTextArea:true,description:\"Leave empty to hide.\",defaultValue:\"You always know what happens next, what it costs and who is responsible. Every stage ends with something you can hold.\"},showNumbers:{type:ControlType.Boolean,title:\"Step numbers\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},steps:{type:ControlType.Array,title:\"Steps\",maxCount:6,control:{type:ControlType.Object,controls:{when:{type:ControlType.String,title:\"When\",defaultValue:\"Day 1\"},name:{type:ControlType.String,title:\"Name\",defaultValue:\"Step\"},text:{type:ControlType.String,title:\"Text\",displayTextArea:true,defaultValue:\"\"},out:{type:ControlType.String,title:\"Deliverable\",defaultValue:\"\"}}},defaultValue:[{when:\"Day 1\",name:\"Understand\",text:\"We start on site, not in a slide deck — surveying conditions, constraints and what success means for the people who will use the result.\",out:\"Brief & survey report\"},{when:\"Week 2\",name:\"Plan\",text:\"Scope, programme and budget are fixed in one coordinated plan, with risks priced and owned before work begins.\",out:\"Programme & fixed scope\"},{when:\"Every week\",name:\"Deliver\",text:\"One accountable team runs the work, reports weekly in plain language and closes issues the day they appear.\",out:\"Weekly progress reports\"},{when:\"After handover\",name:\"Improve\",text:\"After handover we stay — reviewing performance, maintaining systems and feeding every lesson into the next project.\",out:\"Aftercare & review\"}]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FWProcess\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,6PAIG,SAAwBe,EAAU,EAAM,CAAC,IAAMC,EAAEC,EAAYC,EAAMF,EAAE,OAAO,CAAC,EAAQG,EAAKH,EAAE,cAAc,GAAYI,EAAK,6BAA6BJ,EAAE,QAAQ,WAAW,GAAG,QAAQH,EAAIG,EAAE,SAAS,EAAE;;MAEtMF,EAAME,EAAE,GAAGA,EAAE,QAAQ,EAAE;;kDAEqBT,EAAOS,EAAE,KAAK,EAAE;QAC1DA,EAAE,MAAM,4BAA4BH,EAAIG,EAAE,KAAK,EAAE,MAAM,GAAG;;gEAEF,KAAK,IAAI,EAAEE,EAAM,MAAM,EAAE,mBAAmBA,EAAM,KAAK,EAAE,IAAI,wCAAwCG,EAAE,IAAI;oCACvIR,EAAIS,EAAE,IAAI,EAAE,qBAAqBH,EAAK,qBAAqB,OAAOE,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,GAAG,EAAE,UAAU,KAAKR,EAAIS,EAAE,IAAI,EAAE;2BAC3HT,EAAIS,EAAE,IAAI,EAAE,MAAMA,EAAE,IAAI,+DAA+DT,EAAIS,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,KAAK,E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