{"version":3,"file":"SolarProcessV3.B2viYYAv.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/KvGyvx9Th7Ru2m2j34oy/eXOib8VGAXt2eYb55dBD/SolarProcessV3.js"],"sourcesContent":["// Component: CommercialProcessV2\n// Purpose: Shared commercial \"how it works\" stepper. Steps live in the Steps control\n//          (pre-filled with defaults, so editing/adding never wipes content). The supporting\n//          image cross-fades to the hovered step, and auto-cycles on a timer when idle.\n// Note: root-level file so per-step image defaults can be baked (subfolder code files can't\n//       be written via the agent API). Per-step images are also editable in the Steps control.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion}from\"framer-motion\";import{useState,useEffect}from\"react\";const colors={bg:\"#07101F\",surface:\"#102032\",surface2:\"#0B1626\",accent:\"#2E8BFF\",accentBg:\"rgba(46,139,255,0.14)\",text:\"#EDF2F8\",textMuted:\"rgba(237,242,248,0.66)\",textFaint:\"rgba(237,242,248,0.42)\",line:\"rgba(255,255,255,0.09)\",lineStrong:\"rgba(255,255,255,0.16)\",glass:\"rgba(7,16,31,0.62)\"};const fonts={heading:\"'Sora', system-ui, sans-serif\",body:\"'Work Sans', system-ui, sans-serif\"};const DEFAULT_STEPS=[{title:\"Energy analysis\",body:\"We analyze your usage, break down your three different charges, and start the design process.\",image:\"https://framerusercontent.com/images/iRhCX4PpXjb6WyrVdidLp2TpVk.jpg\",caption:\"We read your bill and usage.\"},{title:\"Design & proposal\",body:\"We design the array for your roof or land and put real numbers and payback in front of you.\",image:\"https://framerusercontent.com/images/3KytzNxLjEo426UGYZ2Atjd6Lc.jpg\",caption:\"We design the array for your site.\"},{title:\"Permitting & build\",body:\"We handle permits, utility paperwork, and the install with our own licensed crews.\",image:\"https://framerusercontent.com/images/tTokthlZzTnSitZewXgLRFwUL8.jpg\",caption:\"Permits and install by our own crews.\"},{title:\"Commission & monitor\",body:\"We set up production monitoring, turn it on, and you start to see the savings on your bills.\",image:\"https://framerusercontent.com/images/UQzEEKvfk8n7kUNVfJU6zhuNSoQ.jpg\",caption:\"We turn it on and keep watch.\"}];// Baked image fallbacks by index — used when a step in the control has no image set\n// (Framer strips raw-URL image defaults when an instance materializes the array).\nconst DEFAULT_IMAGES=DEFAULT_STEPS.map(s=>typeof s.image===\"string\"?s.image:s.image?.src);function imageSrc(image){if(!image)return undefined;if(typeof image===\"string\")return image||undefined;return image.src||undefined;}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function SolarProcessV3(props){const{eyebrow=\"How it works\",heading=\"Four steps from your first bill to power you own.\",steps,imageCaption=\"Designed and installed by our own licensed crews.\",autoCycle=true,cycleSeconds=3.5}=props;const list=steps&&steps.length?steps:DEFAULT_STEPS;const[isMobile,setIsMobile]=useState(false);const isStatic=useIsStaticRenderer();const[active,setActive]=useState(0);const[hovering,setHovering]=useState(false);useEffect(()=>{if(typeof window===\"undefined\")return;const check=()=>setIsMobile(window.innerWidth<=810);check();window.addEventListener(\"resize\",check);return()=>window.removeEventListener(\"resize\",check);},[]);// Keep active index in range if the steps array changes.\nuseEffect(()=>{setActive(a=>a>=list.length?0:a);},[list.length]);// Auto-cycle through steps when idle (not on the static canvas).\nuseEffect(()=>{if(isStatic||!autoCycle||hovering||list.length<=1)return;const ms=Math.max(1.2,cycleSeconds)*1e3;const id=window.setInterval(()=>{setActive(a=>(a+1)%list.length);},ms);return()=>window.clearInterval(id);},[isStatic,autoCycle,hovering,cycleSeconds,list.length]);const rise=delay=>({initial:isStatic?false:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:true,amount:.2},transition:{duration:.5,ease:\"easeOut\",delay}});const stepRow=(s,i,last)=>{const isActive=i===active;return /*#__PURE__*/_jsxs(motion.div,{...rise(.1+i*.1),onMouseEnter:()=>{if(!isStatic){setHovering(true);setActive(i);}},style:{display:\"flex\",gap:18,paddingBottom:last?0:30,cursor:\"default\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",flexShrink:0,width:44,display:\"flex\",justifyContent:\"center\"},children:[!last&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:44,bottom:-2,width:2,background:\"linear-gradient(180deg, rgba(46,139,255,0.5), rgba(46,139,255,0.12))\"}}),/*#__PURE__*/_jsx(\"div\",{style:{width:44,height:44,borderRadius:100,background:isActive?colors.accent:colors.accentBg,border:`1px solid ${isActive?colors.accent:\"rgba(46,139,255,0.45)\"}`,color:isActive?\"#04101F\":colors.accent,fontFamily:fonts.heading,fontSize:17,fontWeight:700,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",zIndex:1,transition:\"background 0.3s ease, color 0.3s ease, border-color 0.3s ease\",boxShadow:isActive?\"0 0 0 5px rgba(46,139,255,0.14)\":\"none\"},children:i+1})]}),/*#__PURE__*/_jsxs(\"div\",{style:{paddingTop:6},children:[/*#__PURE__*/_jsx(\"h3\",{style:{fontFamily:fonts.heading,fontSize:isMobile?19:21,fontWeight:600,lineHeight:1.25,letterSpacing:-.3,color:colors.text,margin:\"0 0 8px 0\"},children:s.title}),/*#__PURE__*/_jsx(\"p\",{style:{fontFamily:fonts.body,fontSize:15.5,lineHeight:1.2,color:isActive?colors.textMuted:colors.textFaint,margin:0,maxWidth:420,transition:\"color 0.3s ease\"},children:s.body})]})]},i);};const activeCaption=list[active]?.caption||imageCaption;const imageBlock=/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:isMobile?260:\"100%\",minHeight:isMobile?260:460,borderRadius:18,overflow:\"hidden\",background:colors.surface,border:`1px solid ${colors.line}`},children:[list.map((s,i)=>{const src=imageSrc(s.image)||DEFAULT_IMAGES[i];if(!src)return null;return /*#__PURE__*/_jsx(\"img\",{src:src,alt:s.title||\"\",style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\",opacity:i===active?1:0,transform:i===active?\"scale(1)\":\"scale(1.04)\",transition:\"opacity 0.6s ease, transform 0.9s ease\"}},i);}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,background:\"linear-gradient(180deg, rgba(7,16,31,0.05) 40%, rgba(7,16,31,0.8) 100%)\",pointerEvents:\"none\"}}),list.length>1&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:16,right:16,display:\"flex\",gap:6},children:list.map((_,i)=>/*#__PURE__*/_jsx(\"div\",{style:{width:i===active?20:6,height:6,borderRadius:100,background:i===active?colors.accent:\"rgba(255,255,255,0.35)\",transition:\"width 0.3s ease, background 0.3s ease\"}},i))}),activeCaption&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:18,right:18,bottom:18,padding:\"12px 14px\",borderRadius:12,background:colors.glass,backdropFilter:\"blur(16px)\",WebkitBackdropFilter:\"blur(16px)\",border:`1px solid ${colors.lineStrong}`,fontFamily:fonts.body,fontSize:13.5,color:colors.text},children:activeCaption})]});return /*#__PURE__*/_jsx(\"section\",{style:{width:\"100%\",background:colors.bg,padding:isMobile?\"72px 20px\":\"100px 24px\",...props.style},children:/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",maxWidth:1100,margin:\"0 auto\"},children:[/*#__PURE__*/_jsx(motion.span,{...rise(0),style:{display:\"inline-block\",padding:\"4px 12px\",background:colors.accentBg,color:colors.accent,fontFamily:fonts.body,fontSize:11,fontWeight:700,borderRadius:100,textTransform:\"uppercase\",letterSpacing:.5,marginBottom:18},children:eyebrow}),/*#__PURE__*/_jsx(motion.h2,{...rise(.08),style:{fontFamily:fonts.heading,fontSize:isMobile?28:38,fontWeight:700,lineHeight:1.2,letterSpacing:-.5,color:colors.text,margin:\"0 0 48px 0\",maxWidth:720},children:heading}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"grid\",gridTemplateColumns:isMobile?\"1fr\":\"1fr 0.92fr\",gap:isMobile?32:64,alignItems:\"stretch\"},children:[/*#__PURE__*/_jsx(\"div\",{onMouseLeave:()=>setHovering(false),children:list.map((s,i)=>stepRow(s,i,i===list.length-1))}),/*#__PURE__*/_jsx(motion.div,{...rise(.2),style:{order:isMobile?-1:0},children:imageBlock})]})]})});}addPropertyControls(SolarProcessV3,{eyebrow:{type:ControlType.String,title:\"Eyebrow\",defaultValue:\"How it works\"},heading:{type:ControlType.String,title:\"Heading\",displayTextArea:true,defaultValue:\"Four steps from your first bill to power you own.\"},steps:{type:ControlType.Array,title:\"Steps\",defaultValue:DEFAULT_STEPS,control:{type:ControlType.Object,controls:{title:{type:ControlType.String,title:\"Title\"},body:{type:ControlType.String,title:\"Body\",displayTextArea:true},image:{type:ControlType.ResponsiveImage,title:\"Image\"},caption:{type:ControlType.String,title:\"Caption\"}}}},imageCaption:{type:ControlType.String,title:\"Fallback Caption\",defaultValue:\"Designed and installed by our own licensed crews.\"},autoCycle:{type:ControlType.Boolean,title:\"Auto-cycle\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},cycleSeconds:{type:ControlType.Number,title:\"Cycle Secs\",defaultValue:3.5,min:1.5,max:10,step:.5,displayStepper:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SolarProcessV3\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SolarProcessV3.map"],"mappings":"+PAQ0F,SAAS,EAAS,EAAM,CAAK,KAA0E,OAAhD,OAAO,GAAQ,SAAgB,GAAO,IAAA,GAAiB,EAAM,KAAK,IAAA,EAAU,CAG1N,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,UAAQ,eAAe,UAAQ,oDAAoD,QAAM,eAAa,oDAAoD,YAAU,GAAK,eAAa,KAAK,EAAY,EAAK,GAAO,EAAM,OAAO,EAAM,EAAmB,CAAC,EAAS,GAAaA,EAAS,EAAK,E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