{"version":3,"file":"ProcessTimeline.DX_0dHhL.mjs","names":["React.useRef","React.useId","React.useState","__esmMin","ie","init_ssg_sandbox_shims","window","_e","de","init_jsx_runtime","p","init_npm_react_18_3_1","ce","useSpring","motion","useScroll","init_framer_motion_DhsWWWsN","RenderTarget","addPropertyControls","init_framer_DxfB3JJo","ControlType","ProcessTimeline","props","isCanvas","containerRef","isMobile","useIsMobile","mobileBreakpoint","scaleY","scrollYProgress","shadows","root","css","gap","list","steps","font","trackColor","showProgress","progressColor","accent","i","colorA","colorB","side","hidden","dotRingColor","cardBackground","cardRadius","cardShadow","step","imageAspect","badgeTextColor","stepPrefix","titleColor","textColor","mobile","setMobile","mq","breakpoint","update","init_ProcessTimeline"],"sources":["https:/framerusercontent.com/modules/d0GYtefbsecubi9Wo92p/rstxezVMZchSc21UspFD/ProcessTimeline.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{motion,useScroll,useSpring}from\"framer-motion\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * Process Timeline — scroll-animated steps with a sleek progress line.\n *\n * Desktop: center line, cards alternate left/right, drift in with a slight tilt.\n * Mobile: line on the left, cards stacked on the right.\n * Step badges alternate between two colors (blue / red).\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 960\n */export default function ProcessTimeline(props){const{steps,stepPrefix,colorA,colorB,progressColor,trackColor,cardBackground,titleColor,textColor,badgeTextColor,dotRingColor,cardRadius,cardShadow,imageAspect,gap,mobileBreakpoint,showProgress,font}=props;const isCanvas=RenderTarget.current()===RenderTarget.canvas;const containerRef=React.useRef(null);const isMobile=useIsMobile(mobileBreakpoint);// Scroll progress for the line fill\nconst{scrollYProgress}=useScroll({target:containerRef,offset:[\"start 0.8\",\"end 0.45\"]});const scaleY=useSpring(scrollYProgress,{stiffness:55,damping:18,restDelta:.001});const shadows={none:\"none\",soft:\"0 2px 14px rgba(0,0,0,0.05)\",medium:\"0 6px 24px rgba(0,0,0,0.08)\"};const uid=React.useId().replace(/[^a-zA-Z0-9]/g,\"\");const root=`actl-${uid}`;const css=`\n        .${root} { position: relative; width: 100%; }\n        .${root} .actl-rows { position: relative; display: flex; flex-direction: column; gap: ${gap}px; z-index: 1; }\n        .${root} .actl-line { position: absolute; top: 10px; bottom: 10px; width: 2px; border-radius: 99px; left: 50%; transform: translateX(-50%); z-index: 0; }\n        .${root} .actl-row { position: relative; display: grid; grid-template-columns: 1fr 72px 1fr; align-items: start; }\n        .${root} .actl-dotwrap { grid-column: 2; grid-row: 1; display: flex; justify-content: center; padding-top: 4px; }\n        .${root} .actl-card-left { grid-column: 1; grid-row: 1; }\n        .${root} .actl-card-right { grid-column: 3; grid-row: 1; }\n        @media (max-width: ${mobileBreakpoint}px) {\n            .${root} .actl-row { grid-template-columns: 48px 1fr; }\n            .${root} .actl-dotwrap { grid-column: 1; }\n            .${root} .actl-card-left, .${root} .actl-card-right { grid-column: 2; }\n            .${root} .actl-line { left: 24px; }\n        }\n    `;const list=steps&&steps.length?steps:[];return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,className:root,style:{...font},children:[/*#__PURE__*/_jsx(\"style\",{children:css}),/*#__PURE__*/_jsx(\"div\",{className:\"actl-line\",style:{background:trackColor},children:showProgress&&/*#__PURE__*/_jsx(motion.div,{style:{position:\"relative\",width:\"100%\",height:\"100%\",borderRadius:99,background:progressColor,transformOrigin:\"top\",scaleY:isCanvas?.5:scaleY}})}),/*#__PURE__*/_jsx(\"div\",{className:\"actl-rows\",children:list.map((step,i)=>{const accent=i%2===0?colorA:colorB;const side=i%2===0?\"left\":\"right\";// Drift-in: card slides from its side, slightly tilted so the\n// top edge leads, then settles level with a soft spring.\nconst hidden=isCanvas?false:{opacity:0,x:isMobile?0:side===\"left\"?-90:90,y:isMobile?44:16,rotate:isMobile?0:side===\"left\"?5:-5};return /*#__PURE__*/_jsxs(\"div\",{className:\"actl-row\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"actl-dotwrap\",children:/*#__PURE__*/_jsx(motion.div,{initial:isCanvas?false:{scale:0,opacity:0},whileInView:{scale:1,opacity:1},viewport:{once:true,margin:\"-10% 0px\"},transition:{type:\"spring\",stiffness:260,damping:18,delay:.15},style:{width:12,height:12,borderRadius:\"50%\",background:dotRingColor,border:`2.5px solid ${progressColor}`,boxShadow:`0 0 0 4px ${dotRingColor}`}})}),/*#__PURE__*/_jsxs(motion.div,{className:side===\"left\"?\"actl-card-left\":\"actl-card-right\",initial:isCanvas?false:hidden,whileInView:{opacity:1,x:0,y:0,rotate:0},viewport:{once:true,margin:\"-12% 0px\"},transition:{type:\"spring\",stiffness:65,damping:15,mass:.9},style:{background:cardBackground,borderRadius:cardRadius,padding:24,boxShadow:shadows[cardShadow]??shadows.soft,display:\"flex\",flexDirection:\"column\",gap:14,transformOrigin:\"50% 100%\"},children:[step.image?.src&&/*#__PURE__*/_jsx(\"img\",{src:step.image.src,srcSet:step.image.srcSet,alt:step.image.alt||step.title,style:{width:\"100%\",aspectRatio:String(imageAspect),objectFit:\"cover\",borderRadius:Math.max(cardRadius-8,4)}}),/*#__PURE__*/_jsxs(\"div\",{style:{alignSelf:\"flex-start\",background:accent,color:badgeTextColor,fontSize:13,fontWeight:600,lineHeight:1,padding:\"7px 12px\",borderRadius:0,letterSpacing:.3},children:[stepPrefix,\" \",String(i+1).padStart(2,\"0\")]}),/*#__PURE__*/_jsx(\"div\",{style:{color:titleColor,fontSize:26,fontWeight:700,lineHeight:1.2,margin:0},children:step.title}),/*#__PURE__*/_jsx(\"div\",{style:{color:textColor,fontSize:16,lineHeight:1.55,margin:0},children:step.description})]})]},i);})})]});}function useIsMobile(breakpoint){const[mobile,setMobile]=React.useState(false);React.useEffect(()=>{if(typeof window===\"undefined\")return;const mq=window.matchMedia(`(max-width: ${breakpoint}px)`);const update=()=>setMobile(mq.matches);update();mq.addEventListener(\"change\",update);return()=>mq.removeEventListener(\"change\",update);},[breakpoint]);return mobile;}ProcessTimeline.defaultProps={stepPrefix:\"Step\",colorA:\"#2CA6FF\",colorB:\"#E53935\",progressColor:\"#111111\",trackColor:\"#E8E8E8\",cardBackground:\"#FFFFFF\",titleColor:\"#111827\",textColor:\"#6B7280\",badgeTextColor:\"#FFFFFF\",dotRingColor:\"#F5F5F5\",cardRadius:16,cardShadow:\"soft\",imageAspect:1.6,gap:56,mobileBreakpoint:809,showProgress:true,steps:[{title:\"Inspect & Diagnose\",description:\"We evaluate your AC system, test key components, and identify the root cause of the cooling problem.\"},{title:\"Upfront Quote\",description:\"You get a clear, flat-rate quote before any work begins — no hidden fees, no surprises.\"},{title:\"Expert Repair\",description:\"Our certified technicians repair or replace faulty parts using quality, manufacturer-approved components.\"},{title:\"Test & Verify\",description:\"We run a full system test to confirm airflow, temperature, and performance are back to normal.\"},{title:\"Final Walkthrough\",description:\"We walk you through the completed work and share tips to keep your AC running at peak efficiency.\"}]};addPropertyControls(ProcessTimeline,{steps:{type:ControlType.Array,title:\"Steps\",control:{type:ControlType.Object,controls:{image:{type:ControlType.ResponsiveImage,title:\"Image\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"New Step\"},description:{type:ControlType.String,title:\"Description\",displayTextArea:true,defaultValue:\"Describe this step of your process.\"}}}},stepPrefix:{type:ControlType.String,title:\"Badge Text\"},colorA:{type:ControlType.Color,title:\"Badge Color 1\"},colorB:{type:ControlType.Color,title:\"Badge Color 2\"},progressColor:{type:ControlType.Color,title:\"Progress\"},trackColor:{type:ControlType.Color,title:\"Track\"},cardBackground:{type:ControlType.Color,title:\"Card BG\"},titleColor:{type:ControlType.Color,title:\"Title\"},textColor:{type:ControlType.Color,title:\"Text\"},badgeTextColor:{type:ControlType.Color,title:\"Badge Text Color\"},dotRingColor:{type:ControlType.Color,title:\"Dot Ring\",description:\"Match this to your page background\"},cardRadius:{type:ControlType.Number,title:\"Card Radius\",min:0,max:40},cardShadow:{type:ControlType.Enum,title:\"Shadow\",options:[\"none\",\"soft\",\"medium\"],optionTitles:[\"None\",\"Soft\",\"Medium\"]},imageAspect:{type:ControlType.Number,title:\"Image Ratio\",description:\"Width \\xf7 height. Lower = taller photo (1 = square, 1.6 = wide)\",min:.6,max:2.5,step:.05,displayStepper:true},gap:{type:ControlType.Number,title:\"Step Gap\",min:16,max:160},mobileBreakpoint:{type:ControlType.Number,title:\"Mobile Below\",min:320,max:1200},showProgress:{type:ControlType.Boolean,title:\"Progress Fill\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProcessTimeline\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"960\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProcessTimeline.map"],"mappings":"A,sRAUG,SAAwBqB,EAAgB,EAAM,CAAC,GAAK,CAAC,QAAM,aAAW,SAAO,SAAO,gBAAc,aAAW,iBAAe,aAAW,YAAU,iBAAe,eAAa,aAAW,aAAW,cAAY,MAAI,mBAAiB,eAAa,QAAMC,EAAYC,EAASN,EAAa,QAAQ,IAAIA,EAAa,OAAaO,EAAaxB,EAAa,IAAI,EAAQyB,EAASC,EAAYC,CAAgB,EACxY,CAAC,mBAAiBZ,EAAU,CAAC,OAAOS,EAAa,OAAO,CAAC,YAAY,UAAU,CAAC,CAAC,EAAQI,EAAOf,EAAUgB,EAAgB,CAAC,UAAU,GAAG,QAAQ,GAAG,UAAU,IAAI,CAAC,EAAQC,EAAQ,CAAC,KAAK,OAAO,KAAK,8BAA8B,OAAO,6BAA6B,EAA4DC,EAAK,QAArD9B,EAAY,CAAC,CAAC,QAAQ,gBAAgB,EAAyB,IAAU+B,EAAI;WACzVD,EAAK;WACLA,EAAK,gFAAgFE,EAAI;WACzFF,EAAK;WACLA,EAAK;WACLA,EAAK;WACL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