/* eslint-disable */ // Conversion-optimization components: StickyCTA, AudienceSwitcher, TrustedBy, SavingsCalculator const { useState: useStateC, useEffect: useEffectC, useRef: useRefC } = React; // ============ Sticky CTA bar (bottom-right floating) ============ function StickyCTA() { const [visible, setVisible] = useStateC(false); const [dismissed, setDismissed] = useStateC(false); useEffectC(() => { const onScroll = () => setVisible(window.scrollY > 600); window.addEventListener('scroll', onScroll, {passive:true}); onScroll(); return () => window.removeEventListener('scroll', onScroll); }, []); const scrollToForm = () => { const el = document.getElementById('contact-form'); if (el) window.scrollTo({top: el.getBoundingClientRect().top + window.scrollY - 100, behavior:'smooth'}); }; if (!visible || dismissed) return null; return (
See what you could save
No upfront cost. Funded by guaranteed energy savings.
); } // ============ Audience Switcher ============ function AudienceSwitcher({ d, onPick, picked }) { return (

{d.h}

{d.options.map(o => { const isActive = picked === o.id; return ( ); })}
{picked && (
Showing {picked === 'k12' ? 'K-12' : 'Higher Education'} content.
)}
); } // ============ Trusted By logo strip ============ function TrustedBy({ d }) { return (
{d.eyebrow}
{d.logos.map((l,i)=>(
{l}
))}
); } // ============ Savings Estimator ============ // Methodology (transparent, defensible): // Annual kWh = sqft × EUI (18 kWh/sq ft/yr — typical US K-12/HE avg) // Annual $ = Annual kWh × $0.13/kWh (EIA U.S. commercial avg) // Savings % = 20% (1990s+) | 28% (1980s) | 35% (pre-1980) — ACEEE/SE ESPC range // CO2 avoided = saved kWh × 0.000371 t-CO2/kWh (EPA eGRID 2022 U.S. avg) function SavingsCalculator({ d }) { const [sqft, setSqft] = useStateC(750000); // total campus sq ft const [age, setAge] = useStateC('1980s'); // building vintage band const [animated, setAnimated] = useStateC({savings:0, co2:0, ten:0}); const sectionRef = useRefC(null); const EUI = 18; // kWh / sq ft / yr const RATE = 0.13; // $ / kWh (EIA U.S. commercial avg) const CO2_FACTOR = 0.000371; // t-CO2 / kWh (EPA eGRID 2022 U.S. avg) const SAVINGS_PCT = { '1990s+': 0.20, '1980s': 0.28, 'pre-1980': 0.35 }; const pct = SAVINGS_PCT[age]; const annualKWh = sqft * EUI; const baselineCost = annualKWh * RATE; const annualSavings = Math.round(baselineCost * pct); const annualKWhSaved = annualKWh * pct; const co2Avoided = Math.round(annualKWhSaved * CO2_FACTOR); // metric tons / yr const tenYear = annualSavings * 10; // Animate number changes (smooth ease-out) useEffectC(() => { const start = {...animated}; const end = {savings: annualSavings, co2: co2Avoided, ten: tenYear}; const dur = 600; const t0 = performance.now(); let raf; const step = (t) => { const p = Math.min(1, (t - t0) / dur); const e = 1 - Math.pow(1 - p, 3); // easeOutCubic setAnimated({ savings: Math.round(start.savings + (end.savings - start.savings) * e), co2: Math.round(start.co2 + (end.co2 - start.co2) * e), ten: Math.round(start.ten + (end.ten - start.ten) * e), }); if (p < 1) raf = requestAnimationFrame(step); }; raf = requestAnimationFrame(step); return () => cancelAnimationFrame(raf); // eslint-disable-next-line }, [annualSavings, co2Avoided, tenYear]); const scrollToForm = () => { const el = document.getElementById('contact-form'); if (el) window.scrollTo({top: el.getBoundingClientRect().top + window.scrollY - 100, behavior:'smooth'}); }; const fmt$ = (n) => '$' + n.toLocaleString('en-US'); const fmtN = (n) => n.toLocaleString('en-US'); const inputBase = {width:'100%',padding:'12px 14px',border:'1px solid #D4D4D4',borderRadius:8,fontSize:15,fontFamily:'inherit',background:'#fff',outline:'none',fontWeight:600,color:'#0F0F0F'}; const ageOptions = [ {id:'1990s+', label:'1990s or newer', sub:'~20% potential'}, {id:'1980s', label:'1980s era', sub:'~28% potential'}, {id:'pre-1980',label:'Pre-1980', sub:'~35% potential'}, ]; return (
Savings Estimator

{d.h}

{d.body}

{/* Inputs */}
setSqft(Math.max(0, +e.target.value || 0))} style={{...inputBase,paddingRight:64}}/> sq ft
setSqft(+e.target.value)} style={{width:'100%',marginTop:14,accentColor:'#009530'}}/>
50K sq ft5M sq ft
≈ {fmtN(Math.round(annualKWh).toLocaleString ? Math.round(annualKWh) : annualKWh)} kWh/yr baseline · ≈ {fmt$(Math.round(baselineCost))} annual energy cost
{ageOptions.map(o => { const active = age === o.id; return ( ); })}
Older buildings have more retrofit headroom. Savings band reflects ACEEE retrofit ranges and Schneider Electric ESPC project outcomes.
{/* Results */}
Illustrative potential
Annual energy cost savings
{fmt$(animated.savings)}
at {Math.round(pct*100)}% reduction vs. baseline
10-year cumulative {fmt$(animated.ten)}
CO₂ avoided / yr {fmtN(animated.co2)} t
Upfront capital required $0 via ESPC
for a verified savings audit
{/* Methodology / disclaimer */}
Methodology & disclaimer. {d.note} This estimator is for directional planning only and does not constitute a savings guarantee, financial advice, or a Schneider Electric proposal. Actual savings depend on a site-specific Investment Grade Audit and are guaranteed only under a signed Energy Performance Contract.
); } // ============ Hero Calculator (compact, lives inside the hero on the right) ============ function HeroCalculator({ d }) { const [sqft, setSqft] = useStateC(750000); const [age, setAge] = useStateC('1980s'); const [shown, setShown] = useStateC(false); const EUI = 18; const RATE = 0.13; const CO2_FACTOR = 0.000371; const SAVINGS_PCT = { '1990s+': 0.20, '1980s': 0.28, 'pre-1980': 0.35 }; const pct = SAVINGS_PCT[age]; const annualKWh = sqft * EUI; const baselineCost = annualKWh * RATE; const annualSavings = Math.round(baselineCost * pct); const co2Avoided = Math.round(annualKWh * pct * CO2_FACTOR); const tenYear = annualSavings * 10; const fmt$ = (n) => '$' + n.toLocaleString('en-US'); const fmtN = (n) => n.toLocaleString('en-US'); const ageOptions = [ { id: '1990s+', label: '1990s+', sub: '~20%' }, { id: '1980s', label: '1980s', sub: '~28%' }, { id: 'pre-1980', label: 'Pre-1980', sub: '~35%' }, ]; // Recompute trigger when inputs change after a result has been shown useEffectC(() => { if (shown) setShown(true); /* keep shown but values update */ }, [sqft, age]); const inputBase = { width: '100%', padding: '11px 13px', border: '1px solid rgba(255,255,255,.18)', borderRadius: 8, fontSize: 14, fontFamily: 'inherit', background: 'rgba(255,255,255,.06)', color: '#fff', outline: 'none', fontWeight: 600 }; return (
Savings Estimator
{d.h || 'How much could your jurisdiction save?'}
setSqft(Math.max(0, +e.target.value || 0))} style={{ ...inputBase, paddingRight: 56 }} /> sq ft
setSqft(+e.target.value)} style={{ width: '100%', marginTop: 10, accentColor: '#3DCD58' }} />
{ageOptions.map((o) => { const active = age === o.id; return ( ); })}
{shown && (
setShown(false)} style={{ position: 'fixed', inset: 0, background: 'rgba(0,0,0,.62)', backdropFilter: 'blur(6px)', WebkitBackdropFilter: 'blur(6px)', zIndex: 1000, display: 'flex', alignItems: 'center', justifyContent: 'center', padding: 24, animation: 'savingsFadeIn 200ms ease' }}>
e.stopPropagation()} style={{ position: 'relative', width: '100%', maxWidth: 520, background: '#0F0F0F', color: '#fff', borderRadius: 18, border: '1px solid rgba(61,205,88,.4)', boxShadow: '0 30px 80px rgba(0,0,0,.6)', padding: '32px 32px 28px', animation: 'savingsPopIn 260ms cubic-bezier(.2,.9,.3,1.2)' }}>
Illustrative Potential
Your estimated savings
Based on {fmtN(sqft)} sq ft · {age} buildings
Annual energy cost savings
{fmt$(annualSavings)}
at {Math.round(pct * 100)}% reduction vs. baseline
10-yr cumulative
{fmt$(tenYear)}
CO₂ avoided/yr
{fmtN(co2Avoided)} t
Upfront capital
$0
Directional estimate. Actual savings verified via Investment Grade Audit and guaranteed under signed ESPC.
)}
); } Object.assign(window, { StickyCTA, AudienceSwitcher, TrustedBy, SavingsCalculator, HeroCalculator });