blue-chestnut-solar-expert 0.0.65 → 0.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/eraser-icon_19.cjs.entry.js +1 -1
- package/dist/cjs/{lerc-CweSdQV9.js → lerc-v64rYVDy.js} +3 -3
- package/dist/cjs/{lerc-CweSdQV9.js.map → lerc-v64rYVDy.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/stencil-library.cjs.js +1 -1
- package/dist/collection/components/solar-system-form/solar-system-form.js +72 -48
- package/dist/collection/components/solar-system-form/solar-system-form.js.map +1 -1
- package/dist/collection/utils/lang/german.js +6 -6
- package/dist/collection/utils/lang/german.js.map +1 -1
- package/dist/components/map-draw.js +1 -1
- package/dist/components/map-selector.js +1 -1
- package/dist/components/{p-CN8xBdHM.js → p-B4X-RCW0.js} +3 -3
- package/dist/components/{p-CN8xBdHM.js.map → p-B4X-RCW0.js.map} +1 -1
- package/dist/components/{p-DDmNiupX.js → p-BFJHTJPM.js} +4 -4
- package/dist/components/{p-DDmNiupX.js.map → p-BFJHTJPM.js.map} +1 -1
- package/dist/components/{p-DRV0Pmhs.js → p-BcVa4_YP.js} +3 -3
- package/dist/components/{p-DRV0Pmhs.js.map → p-BcVa4_YP.js.map} +1 -1
- package/dist/components/{p-CE2V-avM.js → p-Bopprtc7.js} +3 -3
- package/dist/components/{p-CE2V-avM.js.map → p-Bopprtc7.js.map} +1 -1
- package/dist/components/{p-QhOsRYRe.js → p-DWirjxpO.js} +3 -3
- package/dist/components/{p-QhOsRYRe.js.map → p-DWirjxpO.js.map} +1 -1
- package/dist/components/{p-Cl7aThVr.js → p-DlNHVTGB.js} +10 -10
- package/dist/components/{p-Cl7aThVr.js.map → p-DlNHVTGB.js.map} +1 -1
- package/dist/components/{p-Ooow0N-g.js → p-Dzl6kfPI.js} +3 -3
- package/dist/components/{p-Ooow0N-g.js.map → p-Dzl6kfPI.js.map} +1 -1
- package/dist/components/{p-CCG3fXg3.js → p-PkMjF2if.js} +75 -51
- package/dist/components/p-PkMjF2if.js.map +1 -0
- package/dist/components/{p-B_6Ue-UQ.js → p-eDwaXClX.js} +8 -8
- package/dist/components/p-eDwaXClX.js.map +1 -0
- package/dist/components/{p-BXoz2zXG.js → p-i1uLweD0.js} +3 -3
- package/dist/components/{p-BXoz2zXG.js.map → p-i1uLweD0.js.map} +1 -1
- package/dist/components/polygon-buttons.js +1 -1
- package/dist/components/polygon-information.js +1 -1
- package/dist/components/settings-modal.js +1 -1
- package/dist/components/solar-expert.js +9 -9
- package/dist/components/solar-system-form.js +1 -1
- package/dist/components/tool-box.js +1 -1
- package/dist/components/tutorial-component.js +1 -1
- package/dist/esm/eraser-icon_19.entry.js +1 -1
- package/dist/esm/{lerc-D7wRie33.js → lerc-CAiDQjTu.js} +3 -3
- package/dist/esm/{lerc-D7wRie33.js.map → lerc-CAiDQjTu.js.map} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/stencil-library.js +1 -1
- package/dist/stencil-library/{p-D3ZsxpeN.js → p-BBtmpSUK.js} +2 -2
- package/dist/stencil-library/{p-D3ZsxpeN.js.map → p-BBtmpSUK.js.map} +1 -1
- package/dist/stencil-library/{p-CcRwkRDp.js → p-cAuhy_jT.js} +4 -4
- package/dist/stencil-library/{p-CcRwkRDp.js.map → p-cAuhy_jT.js.map} +1 -1
- package/dist/stencil-library/{p-05a58ef0.entry.js → p-e7b94dbb.entry.js} +2 -2
- package/dist/stencil-library/stencil-library.esm.js +1 -1
- package/dist/types/components/solar-system-form/solar-system-form.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/p-B_6Ue-UQ.js.map +0 -1
- package/dist/components/p-CCG3fXg3.js.map +0 -1
- /package/dist/stencil-library/{p-05a58ef0.entry.js.map → p-e7b94dbb.entry.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
if (typeof global === "undefined") { var global = globalThis || window || self; }
|
|
3
3
|
import { p as proxyCustomElement, H, h } from './index.js';
|
|
4
|
-
import { g as getLanguageStrings, s as state } from './p-
|
|
4
|
+
import { g as getLanguageStrings, s as state } from './p-eDwaXClX.js';
|
|
5
5
|
|
|
6
6
|
var dist$1 = {};
|
|
7
7
|
|
|
@@ -1510,6 +1510,7 @@ const SolarSystemForm = /*@__PURE__*/ proxyCustomElement(class SolarSystemForm e
|
|
|
1510
1510
|
electricCarChargingTime = "day";
|
|
1511
1511
|
heatPump = 0;
|
|
1512
1512
|
battery = 0;
|
|
1513
|
+
batteryEnabled = false;
|
|
1513
1514
|
compensation20Years = 0;
|
|
1514
1515
|
savedCosts20Years = 0;
|
|
1515
1516
|
maxPanels = 5;
|
|
@@ -1674,7 +1675,7 @@ const SolarSystemForm = /*@__PURE__*/ proxyCustomElement(class SolarSystemForm e
|
|
|
1674
1675
|
phone: this.phone,
|
|
1675
1676
|
consumption: this.householdConsumption,
|
|
1676
1677
|
consumptionProfile: this.consumptionProfile,
|
|
1677
|
-
hasBattery: this.
|
|
1678
|
+
hasBattery: this.batteryEnabled,
|
|
1678
1679
|
battery: this.battery,
|
|
1679
1680
|
hasHeatPump: this.heatPump > 0,
|
|
1680
1681
|
heatPumpM2: this.heatPump,
|
|
@@ -1726,13 +1727,13 @@ const SolarSystemForm = /*@__PURE__*/ proxyCustomElement(class SolarSystemForm e
|
|
|
1726
1727
|
// Reusable style objects
|
|
1727
1728
|
const borderStyle = { border: "1px solid var(--color-border)" };
|
|
1728
1729
|
const errorBorderStyle = { border: "1px solid var(--color-error)" };
|
|
1729
|
-
return (h("div", { key: '
|
|
1730
|
+
return (h("div", { key: 'bb41415c5998e8c1d3e98df49bb13f601410c09d', class: "flex flex-col justify-center items-center w-full h-full pt-4" // style={{
|
|
1730
1731
|
,
|
|
1731
1732
|
// display: (Object.keys(this.systemConfigs).length === 0)
|
|
1732
1733
|
// ? "none"
|
|
1733
1734
|
// : "flex",
|
|
1734
1735
|
// }}
|
|
1735
|
-
id: "solar-system-form" }, h("h1", { key: '
|
|
1736
|
+
id: "solar-system-form" }, h("h1", { key: '136c0a340cdc4ef1e7de9cc7e8e899017ff111c8', class: "text-2xl font-bold text-secondary mb-4 w-full" }, t.solarSystemForm.title), h("div", { key: '1b7a0195f63cbe3765777573c34c9fbe2b47646a', class: "w-full bg-primary rounded-4xl space-y-6" }, h("div", { key: 'f5b8490c2ba77b7afbf8310c83723c44d5ad66b9', class: "space-y-4 p-4 rounded-4xl", style: borderStyle }, h("h2", { key: 'aa7de0e6fae0b9b8d3193e2d32fe1e63a23d9f64', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.systemInformation), h("div", { key: '4c745cbf10a6251bdfc0bc926e073073b0ba6408', class: "flex flex-col sm:flex-row gap-4" }, h("div", { key: '292edb872ca1ef3dd82f015ca9d479af89c87ea7', class: "flex-1 bg-muted rounded-4xl p-4 space-y-3" }, h("div", { key: '89a23d55107849485c28023ab6ac344b209ad34d', class: "flex items-center justify-between" }, h("label", { key: 'ee5bd53c202f897a8c212b362265b76044bd5e44', class: "text-sm font-medium text-text-muted" }, t.solarSystemForm.numberOfPanels), !this.isIOS()
|
|
1736
1737
|
? (h("input", { type: "number", class: "w-20 px-3 py-1 rounded-full bg-muted text-muted-foreground text-right", value: this.numberOfPanels, readOnly: true }))
|
|
1737
1738
|
: (h("input", { type: "number", min: "1", max: this.maxPanels, class: "w-20 px-3 py-1 rounded-full focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground text-center", style: borderStyle, value: this.numberOfPanels, onInput: (e) => {
|
|
1738
1739
|
const value = parseInt(e.target
|
|
@@ -1744,38 +1745,44 @@ const SolarSystemForm = /*@__PURE__*/ proxyCustomElement(class SolarSystemForm e
|
|
|
1744
1745
|
value;
|
|
1745
1746
|
this.recalculate();
|
|
1746
1747
|
}
|
|
1747
|
-
} }))), !this.isIOS() && (h("input", { key: '
|
|
1748
|
+
} }))), !this.isIOS() && (h("input", { key: '3505aba4610e120ff535a4357e32bfe44092fd28', type: "range", min: "1", max: this.maxPanels, step: "1", class: "input-slider w-full custom-range appearance-none rounded-full bg-transparent [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-black/25 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:h-[10px] [&::-webkit-slider-thumb]:w-[10px] [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-muted", value: this.numberOfPanels, onInput: (e) => {
|
|
1748
1749
|
this.numberOfPanels = parseInt(e.target
|
|
1749
1750
|
.value);
|
|
1751
|
+
if (isNaN(this.numberOfPanels)) {
|
|
1752
|
+
this.numberOfPanels = 0;
|
|
1753
|
+
}
|
|
1750
1754
|
this.recalculate();
|
|
1751
|
-
} }))), h("div", { key: '
|
|
1752
|
-
this.numberOfPanels).toFixed(1), " kWp"))))), h("div", { key: '
|
|
1755
|
+
} }))), h("div", { key: '58abbe1ad7b258880138e3d398dabcb2d1efca5b', class: "flex-1 bg-muted rounded-4xl p-4" }, h("div", { key: 'be74d4f0a1e34a55fdc6eafa4dc08e69570e9b04', class: "flex items-center justify-between" }, h("label", { key: '1f8a47d5052731a7da89852099fef84a8946f596', class: "text-sm font-medium text-text-muted" }, t.solarSystemForm.panelPeakPower), h("span", { key: 'a3f101b680f251c3e4372bce14b833b9dfa415d3', class: "text-text-muted" }, this.panelPeakPower.toFixed(2), " kW")), h("div", { key: '2ed107c8a0cb43e08b2cbb205f7db8e9de271b22', class: "flex items-center justify-between mt-4" }, h("span", { key: '670c41ca8173f58b1dcbe31699c922ceb9672105', class: "text-sm font-medium text-text-muted" }, t.solarSystemForm.totalSystemPeakPower), h("span", { key: 'e41306aec2f7351e5f01c1f221ef23bbe684a366', class: "font-bold text-text-muted" }, (DEFAULT_SOLAR_PANEL_TYPE.kWattPeak *
|
|
1756
|
+
this.numberOfPanels).toFixed(1), " kWp"))))), h("div", { key: '38ce148b3679e357768a03d92e2aff79d5192f76', class: "space-y-4 p-4 rounded-4xl", style: borderStyle }, h("h2", { key: 'bf8031199ddd6ccd90301c29f4bd8e223b14d787', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.householdConsumptionTitle), h("div", { key: 'e06f62af8305aa26be7ea662da32135276218484', class: "grid grid-rows-2 gap-0" }, h("div", { key: 'a04a7c38ab456419674e9e2818bd7519fe795a17', class: "grid grid-cols-2 gap-4" }, h("label", { key: '6d0a74756d1d5a164dbe5783cf3df044bd4d2ced', class: "block text-sm font-medium text-text-muted" }, t.solarSystemForm.annualConsumption), h("label", { key: '49187db1a88afde0b1bebd8fc9f2e88524a4c59d', class: "block text-sm font-medium text-text-muted" }, t.solarSystemForm.consumptionProfileTitle)), h("div", { key: '25690a6ca0000b1eabb589c77109d1087ed1ad76', class: "grid grid-cols-2 gap-4" }, h("input", { key: '506dd439307bacc0d7274a6b2ec0a79f363a9d11', type: "number", step: "100", min: "0", class: "w-full px-4 py-2 rounded-4xl focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground", style: borderStyle, value: this.householdConsumption, onInput: (e) => {
|
|
1753
1757
|
this.householdConsumption = parseInt(e.target
|
|
1754
1758
|
.value);
|
|
1755
1759
|
this.recalculate();
|
|
1756
|
-
} }), h("select", { key: '
|
|
1760
|
+
} }), h("select", { key: '025fdf9c050c1e00aedd293cfa15da8a411e70af', class: "w-full px-4 py-2 rounded-4xl focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground", style: borderStyle, onChange: (e) => {
|
|
1757
1761
|
this.consumptionProfile =
|
|
1758
1762
|
e.target
|
|
1759
1763
|
.value;
|
|
1760
1764
|
this.recalculate();
|
|
1761
|
-
} }, h("option", { key: '
|
|
1765
|
+
} }, h("option", { key: '26c2fdbcb3646323157dfa6f9f66d6b8ca924c72', value: "mostly_at_home", selected: this.consumptionProfile ===
|
|
1762
1766
|
"mostly_at_home" }, t.solarSystemForm.consumptionProfiles
|
|
1763
|
-
.mostlyAtHome), h("option", { key: '
|
|
1767
|
+
.mostlyAtHome), h("option", { key: 'f3b9527d607657efc4ff75d93576fd765aa97975', value: "mostly_away", selected: this.consumptionProfile ===
|
|
1764
1768
|
"mostly_away" }, t.solarSystemForm.consumptionProfiles
|
|
1765
|
-
.mostlyAway))))), h("div", { key: '
|
|
1769
|
+
.mostlyAway))))), h("div", { key: '5618500ae3aca7633180a6b3607f1c6462c49815', class: "space-y-4 p-4 rounded-4xl", style: borderStyle }, h("h2", { key: 'fe74e96b7fdcb2e6776a7eccf248d29b0cdd0206', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.additionalComponents.title), h("div", { key: 'a26c1c3461d3021b823f07a05a20ac74108d4ee7', class: "flex flex-col gap-4" }, h("div", { key: 'ef4c60ac505187ca35d213e0f80a6959f1edabd1', class: "flex flex-col bg-muted rounded-4xl p-4 gap-4" }, h("div", { key: '08e0b956be5958985d8bb247ea94ff0510657d89', class: "flex items-center justify-between" }, h("div", { key: 'ef1917d84a95ace85e140e801736c4dc5c16e378', class: "flex items-center gap-2" }, h("input", { key: '3b19229e72c742accfa553e6b385ab5ad148e6a9', type: "checkbox", id: "heatPump", class: "w-4 h-4 accent-tertiary border-border rounded-full focus:ring-tertiary focus:ring-offset-0 focus:ring-2", checked: this.heatPump > 0, onChange: (e) => {
|
|
1766
1770
|
this.heatPump =
|
|
1767
1771
|
e.target
|
|
1768
1772
|
.checked
|
|
1769
1773
|
? 100
|
|
1770
1774
|
: 0;
|
|
1771
1775
|
this.recalculate();
|
|
1772
|
-
} }), h("label", { key: '
|
|
1776
|
+
} }), h("label", { key: 'f73944ac3cd52ab5ac7358d8dfd520720ad43c1b', htmlFor: "heatPump", class: "text-text-muted" }, t.solarSystemForm
|
|
1773
1777
|
.additionalComponents
|
|
1774
|
-
.heatPump)), (this.heatPump > 0 && !this.isIOS()) && (h("span", { key: '
|
|
1778
|
+
.heatPump)), (this.heatPump > 0 && !this.isIOS()) && (h("span", { key: '4a2090de47870f9a59b498425b6bbd2bdd177aba', class: "text-text-muted" }, this.heatPump, " m\u00B2"))), this.heatPump > 0 && (h("div", { key: '9a2f2cc91a1efafb06de01ecb78949656cdfcccf', class: "flex flex-col gap-2" }, this.isIOS()
|
|
1775
1779
|
? (h("div", { class: "flex items-center gap-2" }, h("input", { type: "number", min: "10", max: "300", step: "10", class: "flex-1 px-4 py-2 rounded-4xl focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", style: borderStyle, value: this.heatPump, onInput: (e) => {
|
|
1776
|
-
|
|
1780
|
+
let value = parseInt(e.target
|
|
1777
1781
|
.value);
|
|
1778
|
-
if (value
|
|
1782
|
+
if (isNaN(value)) {
|
|
1783
|
+
value = 0;
|
|
1784
|
+
}
|
|
1785
|
+
if (value >= 0 &&
|
|
1779
1786
|
value <= 300) {
|
|
1780
1787
|
this.heatPump =
|
|
1781
1788
|
value;
|
|
@@ -1787,105 +1794,121 @@ const SolarSystemForm = /*@__PURE__*/ proxyCustomElement(class SolarSystemForm e
|
|
|
1787
1794
|
parseInt(e.target
|
|
1788
1795
|
.value);
|
|
1789
1796
|
this.recalculate();
|
|
1790
|
-
} }))))), h("div", { key: '
|
|
1797
|
+
} }))))), h("div", { key: '0a7e51f6f8596bed2af8850169ca32c488f43559', class: "flex flex-col bg-muted rounded-4xl p-4 gap-4" }, h("div", { key: 'e768501bf22d0d93d4c5ce0d4c142ef7d6096151', class: "flex items-center justify-between" }, h("div", { key: 'e1c54539633730995db596e77be2fd4bba609a81', class: "flex items-center gap-2" }, h("input", { key: 'bface3b5aad019fdcb92ba3229fe7187ec8babb1', type: "checkbox", id: "electricCar", class: "w-4 h-4 accent-tertiary border-border rounded focus:ring-tertiary focus:ring-offset-0 focus:ring-2", checked: this.electricCar, onChange: (e) => {
|
|
1791
1798
|
this.electricCar =
|
|
1792
1799
|
e.target
|
|
1793
1800
|
.checked;
|
|
1794
1801
|
this.recalculate();
|
|
1795
|
-
} }), h("label", { key: '
|
|
1802
|
+
} }), h("label", { key: 'a148ffb1488169ef9e383c5483145f3163c38172', htmlFor: "electricCar", class: "text-text-muted" }, t.solarSystemForm
|
|
1796
1803
|
.additionalComponents
|
|
1797
|
-
.electricCar))), this.electricCar && (h("div", { key: '
|
|
1804
|
+
.electricCar))), this.electricCar && (h("div", { key: '0d6db7e0d23eed4c85aa21f8661038c100049fb7', class: "flex flex-col gap-2" }, h("div", { key: 'c9be028278aa8a582b3d563c98ecabf5a137669b', class: "grid grid-cols-2 gap-4" }, h("label", { key: 'a1d2a3070dd0506be70623ca9b8c524a35132956', class: "text-sm text-text-muted" }, t.solarSystemForm
|
|
1798
1805
|
.additionalComponents
|
|
1799
|
-
.chargingTime), h("label", { key: '
|
|
1806
|
+
.chargingTime), h("label", { key: '7bedc4d1e43fb5e10f04a4ae2b91abf10c56da2c', class: "text-sm text-text-muted" }, t.solarSystemForm
|
|
1800
1807
|
.additionalComponents
|
|
1801
|
-
.kilometersPerYear)), h("div", { key: '
|
|
1808
|
+
.kilometersPerYear)), h("div", { key: 'c0f3501cecec8280e323f2403de52e3248b6ce7a', class: "grid grid-cols-2 gap-4" }, h("select", { key: 'e2947d4b13363e341955c429fa37fe2ad5966280', class: "w-full px-4 py-2 rounded-4xl focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", onChange: (e) => {
|
|
1802
1809
|
this.electricCarChargingTime =
|
|
1803
1810
|
e.target
|
|
1804
1811
|
.value;
|
|
1805
1812
|
this.recalculate();
|
|
1806
|
-
}, style: borderStyle }, h("option", { key: '
|
|
1813
|
+
}, style: borderStyle }, h("option", { key: '544ae8957ab71cdfd3ad438031d5b3235a321f56', value: "day", selected: this
|
|
1807
1814
|
.electricCarChargingTime ===
|
|
1808
1815
|
"day" }, t.solarSystemForm
|
|
1809
1816
|
.additionalComponents
|
|
1810
|
-
.chargingTimeDay), h("option", { key: '
|
|
1817
|
+
.chargingTimeDay), h("option", { key: '04d71d6537186ecda58784b3f70e357a3c36f85f', value: "night", selected: this
|
|
1811
1818
|
.electricCarChargingTime ===
|
|
1812
1819
|
"night" }, t.solarSystemForm
|
|
1813
1820
|
.additionalComponents
|
|
1814
|
-
.chargingTimeNight)), h("input", { key: '
|
|
1821
|
+
.chargingTimeNight)), h("input", { key: '951f65399cc04d815a585d32206b235710eaefe3', type: "number", min: "1000", max: "100000", step: "1000", class: "w-full px-4 py-2 rounded-4xl focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", value: this.kmDrivenPerYear, onInput: (e) => {
|
|
1815
1822
|
this.kmDrivenPerYear =
|
|
1816
1823
|
parseInt(e.target
|
|
1817
1824
|
.value);
|
|
1825
|
+
if (isNaN(this.kmDrivenPerYear)) {
|
|
1826
|
+
this.kmDrivenPerYear =
|
|
1827
|
+
0;
|
|
1828
|
+
}
|
|
1818
1829
|
this.recalculate();
|
|
1819
|
-
}, style: borderStyle }))))), h("div", { key: '
|
|
1820
|
-
this.
|
|
1830
|
+
}, style: borderStyle }))))), h("div", { key: 'b0b64b1afec1a7b05af83d910369141713792a9f', class: "flex flex-col bg-muted rounded-4xl p-4 gap-4" }, h("div", { key: '16d9ff1d1ed9f11b8cb3f0bf707ae911bd4d3052', class: "flex items-center justify-between" }, h("div", { key: '5ea7224b166ac5d09a0c6954a6583c6ee10bcbf8', class: "flex items-center gap-2" }, h("input", { key: '6bfe5da599c642efe88fdb981983857a812df417', type: "checkbox", id: "battery", class: "w-4 h-4 accent-tertiary border-border rounded-full focus:ring-tertiary focus:ring-offset-0 focus:ring-2", checked: this.batteryEnabled, onChange: (e) => {
|
|
1831
|
+
this.batteryEnabled =
|
|
1821
1832
|
e.target
|
|
1822
|
-
.checked
|
|
1833
|
+
.checked;
|
|
1834
|
+
this.battery =
|
|
1835
|
+
this.batteryEnabled
|
|
1823
1836
|
? 5
|
|
1824
1837
|
: 0;
|
|
1825
1838
|
this.recalculate();
|
|
1826
|
-
} }), h("label", { key: '
|
|
1839
|
+
} }), h("label", { key: 'e40e64ca8bd60afddef286b7e4aa5cf369217eb2', htmlFor: "battery", class: "text-text-muted" }, t.solarSystemForm
|
|
1827
1840
|
.additionalComponents
|
|
1828
|
-
.battery)), (this.
|
|
1829
|
-
? (h("div", { class: "flex items-center gap-2" }, h("input", { type: "number", min: "
|
|
1830
|
-
|
|
1841
|
+
.battery)), (this.batteryEnabled && !this.isIOS()) && (h("span", { key: 'b2fc3a8d3e565b6f0de27b8e0cdd9a125787dc97', class: "text-text-muted" }, this.battery, " kWh"))), this.batteryEnabled && (h("div", { key: 'e2148708d2c07f4bb07dfb8c68ea37005f86d4ac', class: "flex flex-col gap-2" }, this.isIOS()
|
|
1842
|
+
? (h("div", { class: "flex items-center gap-2" }, h("input", { type: "number", min: "0", max: "20", step: "1", class: "flex-1 px-4 py-2 rounded-4xl focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", value: this.battery, onInput: (e) => {
|
|
1843
|
+
let value = parseInt(e.target
|
|
1831
1844
|
.value);
|
|
1832
|
-
if (value
|
|
1845
|
+
if (isNaN(value)) {
|
|
1846
|
+
value = 0;
|
|
1847
|
+
}
|
|
1848
|
+
if (value >= 0 &&
|
|
1833
1849
|
value <= 20) {
|
|
1834
1850
|
this.battery =
|
|
1835
1851
|
value;
|
|
1836
|
-
this.recalculate();
|
|
1837
1852
|
}
|
|
1853
|
+
else {
|
|
1854
|
+
this.battery =
|
|
1855
|
+
20;
|
|
1856
|
+
}
|
|
1857
|
+
this.recalculate();
|
|
1838
1858
|
}, style: borderStyle }), h("span", { class: "text-sm text-text-muted" }, "kWh")))
|
|
1839
1859
|
: (h("input", { type: "range", min: "1", max: "20", step: "1", class: "input-slider w-full custom-range appearance-none rounded-full bg-transparent [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-black/25 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:h-[10px] [&::-webkit-slider-thumb]:w-[10px] [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-muted", value: this.battery, onInput: (e) => {
|
|
1840
|
-
|
|
1860
|
+
const value = parseInt(e.target
|
|
1841
1861
|
.value);
|
|
1862
|
+
this.battery = value;
|
|
1863
|
+
this.batteryEnabled =
|
|
1864
|
+
value > 0;
|
|
1842
1865
|
this.recalculate();
|
|
1843
|
-
} }))))))), h("div", { key: '
|
|
1866
|
+
} }))))))), h("div", { key: '2403db26cd231ee1e14ee9e54904a6d47a442cde', class: "space-y-4 p-4 rounded-4xl", style: borderStyle }, h("h2", { key: 'd7792f3cd2f10acbc708f347eb9d875774b4d7cd', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.electricityCostsTitle), h("div", { key: 'a2ace9b4c49c0e778a112ee957a372f32a499117', style: {
|
|
1844
1867
|
display: "grid",
|
|
1845
|
-
gridTemplateColumns: "repeat(auto-fit, minmax(
|
|
1868
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(100px, 1fr))",
|
|
1846
1869
|
gap: "1rem",
|
|
1847
|
-
} }, h("div", { key: '
|
|
1870
|
+
} }, h("div", { key: '1d5fbae3664adf9c19550b482a0ded3a7a7442c0' }, h("label", { key: 'd16ad99fa9c8f87151a5a6a7d7bcde674c4a8e81', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.electricityPrice), h("input", { key: 'f36ae62025eee8bbdb65c9c82d4b605667894d8d', type: "number", step: "0.01", class: "w-full px-4 py-2 rounded-4xl focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", style: borderStyle, value: this.electricityPrice.toFixed(2), onInput: (e) => {
|
|
1848
1871
|
this.electricityPrice = parseFloat(e.target
|
|
1849
1872
|
.value);
|
|
1850
1873
|
this.recalculate();
|
|
1851
|
-
} })), h("div", { key: '
|
|
1874
|
+
} })), h("div", { key: 'bfd9e6153ab03d5ace55ad15de335df6566b5417' }, h("label", { key: 'ee2536275e4fd5649721d4d3940291430075db67', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.compensationRate), h("input", { key: '8dd2be4609fcb850794fa070df50cfa751a87fa1', type: "number", step: "0.01", class: "w-full px-4 py-2 rounded-4xl focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", style: borderStyle, value: this.compensationRate.toFixed(2), onInput: (e) => {
|
|
1852
1875
|
this.compensationRate = parseFloat(e.target
|
|
1853
1876
|
.value);
|
|
1854
1877
|
this.recalculate();
|
|
1855
|
-
} })), h("div", { key: '
|
|
1878
|
+
} })), h("div", { key: '8f29216586bc3f5c92be3aee08f3d92c67dbf061' }, h("label", { key: 'af3fac52689fe289a72003f3acc78d9ea4bc232d', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.annualPriceIncrease), h("input", { key: '7e9587a58424149e25b6cd35b3b0f8e67bad0a10', type: "number", step: "0.1", class: "w-full px-4 py-2 rounded-4xl focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", style: borderStyle, value: this.annualPriceIncrease.toFixed(1), onInput: (e) => {
|
|
1856
1879
|
this.annualPriceIncrease = parseFloat(e.target
|
|
1857
1880
|
.value);
|
|
1858
1881
|
this.recalculate();
|
|
1859
|
-
} })))), h("div", { key: '
|
|
1882
|
+
} })))), h("div", { key: 'edee17bd72e40f9a00345fce0c7b0728474ecd5c', class: "space-y-4 p-4 rounded-4xl", style: borderStyle }, h("h2", { key: '8833b742a6df1556486ff3719b8b833adb858163', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.resultsTitle), h("div", { key: '6cb17515165775c5b59c0e2ab9f9602125aac953', class: "bg-muted rounded-4xl p-4" }, h("div", { key: '43ba0b310caa0d3e19d4d991b19f54500609e155', class: "flex flex-col sm:flex-row sm:items-center justify-between" }, h("span", { key: 'fe78bf736efedb7e3ce331d594ebec5ac4260ea3', class: "text-text-muted" }, t.solarSystemForm.autonomy), h("span", { key: '57e3d258a15dcc6ff502b5ac2c5612a3ae7a9332', class: "text-xl font-bold text-secondary mt-1 sm:mt-0" }, this.autonomy > 100
|
|
1860
1883
|
? "100"
|
|
1861
|
-
: this.formatEuropeanNumber(this.autonomy, 1), "%")), h("div", { key: '
|
|
1862
|
-
.solarSystemForm.year)), h("div", { key: '
|
|
1863
|
-
.monetaryBenefit20Years)), h("span", { key: '
|
|
1884
|
+
: this.formatEuropeanNumber(this.autonomy, 1), "%")), h("div", { key: '84c71945018078f4d1f22d94de5710b57a097b10', class: "flex flex-col sm:flex-row sm:items-center justify-between mt-4" }, h("span", { key: '1ba73ff5a96617626b3a219bb4a3894cc6a82e2a', class: "text-text-muted" }, t.solarSystemForm.totalEnergyConsumption), h("span", { key: '3d328063a9999304de1a2cdc3010787dd08ebdac', class: "text-xl font-bold text-secondary mt-1 sm:mt-0" }, this.formatEuropeanNumber(this.totalEnergyConsumption, 0), " kWh/", t.solarSystemForm.year)), h("div", { key: 'a6e0a99b0532b1c8409e5f8ebfb04d5c0b7fc1d5', class: "flex flex-col sm:flex-row sm:items-center justify-between mt-4" }, h("span", { key: '4e3de7a62055aed15d8214080da79d7c67a3504f', class: "text-text-muted" }, t.solarSystemForm.totalEnergyProduction), h("span", { key: '50919661b3fa82dc99d93aef0bf4e46b85e683e6', class: "text-xl font-bold text-secondary mt-1 sm:mt-0" }, this.formatEuropeanNumber(this.totalEnergyProduction, 0), " kWh/", t.solarSystemForm.year)), h("div", { key: '669ecb3bff03f954c459c5864ebc790f7802d2c3', class: "flex flex-col sm:flex-row sm:items-center justify-between mt-4" }, h("div", { key: '50064fa431dae13dfafd7a827b4265eb5ce66025', class: "flex items-center gap-2" }, h("span", { key: 'add8a4952f5f2992657a8723210697a2889e08ca', class: "text-text-muted" }, t.solarSystemForm.costSavings)), h("span", { key: '1a4cf403f0cdc01e8aa195826165f66e74c2f460', class: "text-xl font-bold text-success mt-1 sm:mt-0" }, this.formatEuropeanNumber(this.costSavings), " \u20AC/", t
|
|
1885
|
+
.solarSystemForm.year)), h("div", { key: 'fadf1e4394b0734ae14d4568db8f47b286b00eed', class: "flex flex-col sm:flex-row sm:items-center justify-between mt-4" }, h("div", { key: '69c5b3bfa131e35b1760b854e0adcddc4cd7513e', class: "flex items-center gap-2" }, h("span", { key: '826a2b7a6c1959626ca195b66893e7725582d666', class: "text-text-muted" }, t.solarSystemForm.compensation20Years)), h("span", { key: 'cfbc1063b55c815f6ae89a48c6b8239ecfbcbb5d', class: "text-xl font-bold text-success mt-1 sm:mt-0" }, this.formatEuropeanNumber(this.compensation20Years), " \u20AC")), h("div", { key: 'fa740700dbc3a640c5adce3d28413b839000b840', class: "flex flex-col sm:flex-row sm:items-center justify-between mt-4" }, h("div", { key: '095d543adc7d81fec92ebfcf35efd4122b1b6ef9', class: "flex items-center gap-2" }, h("span", { key: 'eac35fd6b6bb3778afadec2bfa93b7549a7db08a', class: "text-text-muted" }, t.solarSystemForm
|
|
1886
|
+
.monetaryBenefit20Years)), h("span", { key: '82d2fdee254b0ff2bb6534dced8a43087f7f4269', class: "text-xl font-bold text-success mt-1 sm:mt-0" }, this.formatEuropeanNumber(this.savedCosts20Years), " \u20AC")))), h("div", { key: '96cc3aa5ed8fa4870a5fe54e1345b1abc6b69862', class: "space-y-4 p-4 rounded-4xl", style: borderStyle }, h("h2", { key: '08f6274c8a655995b0a2061696bbeca324c81924', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.requestOffer), h("div", { key: 'ed644026714f6962469ba290c8931e12d6b3afff', style: {
|
|
1864
1887
|
display: "grid",
|
|
1865
|
-
gridTemplateColumns: "repeat(auto-fit, minmax(
|
|
1888
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(1 00px, 1fr))",
|
|
1866
1889
|
gap: "1rem",
|
|
1867
|
-
} }, h("div", { key: '
|
|
1890
|
+
} }, h("div", { key: '8d22c69472e58ad2fb2dbca427e5dd1bc2f207a8' }, h("label", { key: '3d975692c644c8e26ec1c0a03e12312adf6b0ede', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.name), h("input", { key: 'addb2114b79ddb98d2215b68214116ed2d64ad66', type: "text", class: `w-full px-4 py-2 rounded-4xl focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground`, style: this.nameError
|
|
1868
1891
|
? errorBorderStyle
|
|
1869
1892
|
: borderStyle, value: this.name, onInput: (e) => {
|
|
1870
1893
|
this.name =
|
|
1871
1894
|
e.target
|
|
1872
1895
|
.value;
|
|
1873
1896
|
this.validateForm();
|
|
1874
|
-
}, placeholder: "Your name" }), this.nameError && (h("p", { key: '
|
|
1897
|
+
}, placeholder: "Your name" }), this.nameError && (h("p", { key: '32dd68fc53f8694371c56a229fd075839d3e00d8', class: "text-error text-sm mt-1" }, this.nameError))), h("div", { key: 'f58d1775fb32e5b0704cb635bdc563c4a2b2a9f1' }, h("label", { key: '87b853fd645e5dd16bcabfb9836a044441a56198', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.email), h("input", { key: '115b7a027cc5a77a7a70a1a8c8f4cb3c64c09d50', type: "email", class: `w-full px-4 py-2 rounded-4xl focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground`, style: this.emailError
|
|
1875
1898
|
? errorBorderStyle
|
|
1876
1899
|
: borderStyle, value: this.email, onInput: (e) => {
|
|
1877
1900
|
this.email =
|
|
1878
1901
|
e.target
|
|
1879
1902
|
.value;
|
|
1880
1903
|
this.validateForm();
|
|
1881
|
-
}, placeholder: "your.email@example.com" }), this.emailError && (h("p", { key: '
|
|
1904
|
+
}, placeholder: "your.email@example.com" }), this.emailError && (h("p", { key: '055f714dfa5ccf74d461c048cf14bcc4a4f1d2a0', class: "text-error text-sm mt-1" }, this.emailError))), h("div", { key: '9516dab3e8d312aafbded94676d377c950b5e34d' }, h("label", { key: 'd13fced3339f847cf792738c1469b45d0090c3e5', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.phone), h("input", { key: 'ab7df19168e831442fdb4368bc817f0985d8750a', type: "tel", class: `w-full px-4 py-2 rounded-4xl focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground`, style: this.phoneError
|
|
1882
1905
|
? errorBorderStyle
|
|
1883
1906
|
: borderStyle, value: this.phone, onInput: (e) => {
|
|
1884
1907
|
this.phone =
|
|
1885
1908
|
e.target
|
|
1886
1909
|
.value;
|
|
1887
1910
|
this.validateForm();
|
|
1888
|
-
}, placeholder: "+34 123 456 789" }), this.phoneError && (h("p", { key: '
|
|
1911
|
+
}, placeholder: "+34 123 456 789" }), this.phoneError && (h("p", { key: '9eff09242097e92c1d9eec03df499a73b169664c', class: "text-error text-sm mt-1" }, this.phoneError)))), h("div", { key: '55990f0a38c24bd9a0d91df2760f81909a79696c', class: "flex flex-col items-center gap-4" }, h("button", { key: '09dfe384f03928294282cf973d3ccd9baf6d0a56', onClick: () => this.handleRequestOffer(), disabled: !this.name.trim() ||
|
|
1889
1912
|
!this.email.trim() || !!this.nameError ||
|
|
1890
1913
|
!!this.emailError || !!this.phoneError ||
|
|
1891
1914
|
this.isSubmitting, class: `px-6 py-3 rounded-4xl transition-colors duration-200 flex items-center gap-2 ${this.isSubmitting
|
|
@@ -1894,9 +1917,9 @@ const SolarSystemForm = /*@__PURE__*/ proxyCustomElement(class SolarSystemForm e
|
|
|
1894
1917
|
color: this.isSubmitting
|
|
1895
1918
|
? "var(--color-text-muted)"
|
|
1896
1919
|
: "#ffffff",
|
|
1897
|
-
} }, this.isSubmitting && (h("div", { key: '
|
|
1920
|
+
} }, this.isSubmitting && (h("div", { key: 'e5aad83a4c2f4838e303f9447b26db9a3094aa14', class: "w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin" })), this.isSubmitting
|
|
1898
1921
|
? t.solarSystemForm.sending
|
|
1899
|
-
: t.solarSystemForm.requestOfferButton), this.submitMessage && (h("div", { key: '
|
|
1922
|
+
: t.solarSystemForm.requestOfferButton), this.submitMessage && (h("div", { key: '72a6cfc9becc8f24a4aa2072c8706a5bcec0319e', class: `text-sm px-4 py-2 rounded-4xl ${this.submitSuccess
|
|
1900
1923
|
? "bg-success/10 text-success border border-success/20"
|
|
1901
1924
|
: "bg-error/10 text-error border border-error/20"}` }, this.submitMessage)))))));
|
|
1902
1925
|
}
|
|
@@ -1928,6 +1951,7 @@ const SolarSystemForm = /*@__PURE__*/ proxyCustomElement(class SolarSystemForm e
|
|
|
1928
1951
|
"electricCarChargingTime": [32],
|
|
1929
1952
|
"heatPump": [32],
|
|
1930
1953
|
"battery": [32],
|
|
1954
|
+
"batteryEnabled": [32],
|
|
1931
1955
|
"compensation20Years": [32],
|
|
1932
1956
|
"savedCosts20Years": [32],
|
|
1933
1957
|
"maxPanels": [32],
|
|
@@ -1956,6 +1980,6 @@ function defineCustomElement() {
|
|
|
1956
1980
|
defineCustomElement();
|
|
1957
1981
|
|
|
1958
1982
|
export { BORDER_INSET as B, DEFAULT_COLOR_SCHEME as D, SolarSystemForm as S, DEFAULT_SOLAR_EXPERT_CONFIG as a, DEFAULT_SOLAR_PANEL_TYPE as b, distExports as c, defineCustomElement as d, requireDist$1 as r };
|
|
1959
|
-
//# sourceMappingURL=p-
|
|
1983
|
+
//# sourceMappingURL=p-PkMjF2if.js.map
|
|
1960
1984
|
|
|
1961
|
-
//# sourceMappingURL=p-
|
|
1985
|
+
//# sourceMappingURL=p-PkMjF2if.js.map
|