{"version":3,"file":"ProcessStrip.BBkZfaHc.mjs","names":[],"sources":["https:/framerusercontent.com/modules/EVbiJKdwyMbHePAf6Fx9/R8THbUh8USMeLAmFVR6U/ProcessStrip.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const DEFAULT_STEPS=[{title:\"Audit in MarketForce\",detail:\"Callers answer questions set inside a third-party app.\",pain:\"Head office can't change a question\"},{title:\"Results stay in the vendor system\",detail:\"Reporting is limited to what MarketForce offers.\",pain:\"No filtering by failure\"},{title:\"Finance pulls scores with SQL\",detail:\"Score, visit and bonus reports are built by hand.\",pain:\"Manual every month\"},{title:\"Quotas tracked in a spreadsheet\",detail:\"Reporting checks guest calls one by one.\",pain:\"The real record lives in a file\"},{title:\"Pub manager prints the report\",detail:\"Results are kept in paper folders for the next visit.\",pain:\"Nothing joined up\"}];const CSS=`\n.ps-wrap{container-type:inline-size;width:100%}\n.ps-root{--ff:\"Inter\",-apple-system,\"Helvetica Neue\",Arial,sans-serif;\n  --ink:#0b0d12;--muted:#5a6271;--line:#d0d8e4;--panel:#eef0f6;--card:#fff;--warn:#c2410c;--warnbg:#fff4ed;\n  font-family:var(--ff);color:var(--ink);width:100%;box-sizing:border-box;\n  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:10px;\n  background:var(--panel);border-radius:16px;padding:16px}\n.ps-root *{box-sizing:border-box}\n.ps-step{background:var(--card);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:8px;position:relative;min-width:0}\n.ps-n{font:600 11px/1 var(--ff);color:var(--muted);letter-spacing:.06em}\n.ps-title{font:600 15px/1.3 var(--ff);margin:0}\n.ps-detail{font:400 13.5px/1.45 var(--ff);color:var(--muted);margin:0}\n.ps-pain{margin-top:auto;font:500 12px/1.35 var(--ff);color:var(--warn);background:var(--warnbg);\n  border-radius:8px;padding:7px 9px;align-self:flex-start}\n@container (max-width:900px){\n  .ps-root{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;\n    width:auto;margin:0 -20px;padding:12px 20px;border-radius:0;scroll-padding:0 20px;gap:8px}\n  .ps-root::-webkit-scrollbar{display:none}\n  .ps-step{flex:0 0 min(72%,280px);scroll-snap-align:start}\n}\n`;function parse(data){const raw=(data||\"\").trim().replace(/^json:/i,\"\");if(!raw)return null;try{const v=JSON.parse(raw);return Array.isArray(v)&&v.length?v:null;}catch{return null;}}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function ProcessStrip(props){const steps=parse(props.data)||(props.steps&&props.steps.length?props.steps:DEFAULT_STEPS);const label=(props.label||\"STEP\").toUpperCase();return /*#__PURE__*/_jsxs(\"div\",{className:\"ps-wrap\",style:props.style,children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsx(\"div\",{className:\"ps-root\",tabIndex:0,\"aria-label\":\"Steps, scroll sideways for more\",children:steps.map((s,i)=>/*#__PURE__*/_jsxs(\"div\",{className:\"ps-step\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"ps-n\",children:[label,\" \",String(i+1).padStart(2,\"0\")]}),/*#__PURE__*/_jsx(\"p\",{className:\"ps-title\",children:s.title}),s.detail?/*#__PURE__*/_jsx(\"p\",{className:\"ps-detail\",children:s.detail}):null,props.showPain!==false&&s.pain?/*#__PURE__*/_jsx(\"div\",{className:\"ps-pain\",children:s.pain}):null]},i))})]});}ProcessStrip.defaultProps={steps:DEFAULT_STEPS,showPain:true,label:\"STEP\",data:\"\"};addPropertyControls(ProcessStrip,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"STEP\"},showPain:{type:ControlType.Boolean,title:\"Pain points\",defaultValue:true},data:{type:ControlType.String,title:\"Data\",displayTextArea:true,description:\"Optional JSON array of {title, detail, pain}, may start with json:. Overrides the list below.\"},steps:{type:ControlType.Array,title:\"Steps\",control:{type:ControlType.Object,controls:{title:{type:ControlType.String,title:\"Title\"},detail:{type:ControlType.String,title:\"Detail\",displayTextArea:true},pain:{type:ControlType.String,title:\"Pain point\"}}},defaultValue:DEFAULT_STEPS}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProcessStrip\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProcessStrip.map"],"mappings":"mKAoBE,SAAS,EAAM,EAAK,CAAC,IAAM,GAAK,GAAM,GAAA,CAAI,KAAK,CAAC,CAAC,QAAQ,UAAU,EAAE,EAAE,GAAG,CAAC,EAAI,OAAO,KAAK,GAAG,CAAC,IAAM,EAAE,KAAK,MAAM,CAAG,EAAE,OAAO,MAAM,QAAQ,CAAC,GAAG,EAAE,OAAO,EAAE,IAAK,MAAM,CAAC,OAAO,IAAK,CAAC,CAGnL,SAAwB,EAAa,EAAM,CAAC,IAAM,EAAM,EAAM,EAAM,IAAI,IAAI,EAAM,OAAO,EAAM,MAAM,OAAO,EAAM,MAAM,GAAqB,GAAO,EAAM,OAAO,OAAA,CAAQ,YAAY,EAAE,OAAoB,EAAM,MAAM,CAAC,UAAU,UAAU,MAAM,EAAM,MAAM,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS,CAAG,CAAC,EAAe,EAAK,MAAM,CAAC,UAAU,UAAU,SAAS,EAAE,aAAa,kCAAkC,SAAS,EAAM,KAAK,EAAE,IAAiB,EAAM,MAAM,CAAC,UAAU,UAAU,SAAS,CAAc,EAAM,MAAM,CAAC,UAAU,OAAO,SAAS,CAAC,EAAM,IAAI,OAAO,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,EAAe,EAAK,IAAI,CAAC,UAAU,WAAW,SAAS,EAAE,KAAK,CAAC,EAAE,EAAE,OAAoB,EAAK,IAAI,CAAC,UAAU,YAAY,SAAS,EAA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