const { SavingsCalc } = window.CoolZoneSolutionDesignSystem_12e696; // Per-currency reference energy prices (rough household averages, kWh-equivalent). // The component's own disclaimer already frames the result as an estimate. const CURRENCY_BY_LANG = { it: 'EUR', de: 'EUR', 'de-ch': 'CHF', pl: 'PLN' }; const FUEL_PRICES = { CHF: { oil: 0.135, gas: 0.115, electric: 0.29, pellet: 0.095 }, EUR: { oil: 0.12, gas: 0.11, electric: 0.32, pellet: 0.07 }, PLN: { oil: 0.60, gas: 0.40, electric: 0.90, pellet: 0.35 }, }; const ELECTRICITY_PRICE = { CHF: 0.29, EUR: 0.32, PLN: 0.90 }; function SavingsCalcSection({ t, lang }) { const currency = CURRENCY_BY_LANG[lang.toLowerCase()] || 'EUR'; const prices = FUEL_PRICES[currency]; return (
({ ...f, price: prices[f.id] }))} currency={currency} electricityPrice={ELECTRICITY_PRICE[currency]} resultLabel={t.savResultLabel} perYear={t.savPerYear} tenYearLabel={t.savTenYearLabel} disclaimer={t.savDisclaimer} ctaLabel={t.savCta} />
); } Object.assign(window, { SavingsCalcSection });