blue-chestnut-solar-expert 0.0.27 → 0.0.29
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.house-icon.icon-selector.map-draw.map-selector.move-icon.octagon-minus-icon.polygon-buttons.polygon-information.search-icon.settings-icon.settings-modal.solar-expert.solar-system-form.tool-box.undo-icon.entry.cjs.js.map +1 -1
- package/dist/cjs/eraser-icon_16.cjs.entry.js +41 -41
- package/dist/cjs/eraser-icon_16.cjs.entry.js.map +1 -1
- package/dist/cjs/loading-widget.cjs.entry.js +1 -1
- package/dist/cjs/solar-calculator.cjs.entry.js +1 -1
- package/dist/collection/components/settings/settings.js +8 -8
- package/dist/collection/components/settings/settings.js.map +1 -1
- package/dist/collection/components/solar-calculator/solar-calculator.js +1 -1
- package/dist/collection/components/solar-expert/solar-expert.js +2 -2
- package/dist/collection/components/solar-expert/solar-expert.js.map +1 -1
- package/dist/collection/components/solar-system-form/solar-system-form.js +31 -31
- package/dist/collection/components/widgets/loading-widget.js +1 -1
- package/dist/components/loading-widget.js +1 -1
- package/dist/components/map-draw.js +1 -1
- package/dist/components/{p-BraaSfVN.js → p-C8b9lX1K.js} +33 -33
- package/dist/components/{p-BraaSfVN.js.map → p-C8b9lX1K.js.map} +1 -1
- package/dist/components/{p-Cfxk__-m.js → p-Cp6mvZCj.js} +4 -4
- package/dist/components/{p-Cfxk__-m.js.map → p-Cp6mvZCj.js.map} +1 -1
- package/dist/components/{p-aI3c1NCj.js → p-DRZd44KM.js} +10 -10
- package/dist/components/p-DRZd44KM.js.map +1 -0
- package/dist/components/settings-modal.js +1 -1
- package/dist/components/solar-calculator.js +1 -1
- package/dist/components/solar-expert.js +5 -5
- package/dist/components/solar-expert.js.map +1 -1
- package/dist/components/solar-system-form.js +1 -1
- package/dist/esm/eraser-icon.house-icon.icon-selector.map-draw.map-selector.move-icon.octagon-minus-icon.polygon-buttons.polygon-information.search-icon.settings-icon.settings-modal.solar-expert.solar-system-form.tool-box.undo-icon.entry.js.map +1 -1
- package/dist/esm/eraser-icon_16.entry.js +41 -41
- package/dist/esm/eraser-icon_16.entry.js.map +1 -1
- package/dist/esm/loading-widget.entry.js +1 -1
- package/dist/esm/solar-calculator.entry.js +1 -1
- package/dist/stencil-library/eraser-icon.house-icon.icon-selector.map-draw.map-selector.move-icon.octagon-minus-icon.polygon-buttons.polygon-information.search-icon.settings-icon.settings-modal.solar-expert.solar-system-form.tool-box.undo-icon.entry.esm.js.map +1 -1
- package/dist/stencil-library/{p-74e0c2f0.entry.js → p-4020a1f0.entry.js} +2 -2
- package/dist/stencil-library/{p-7e0b62d2.entry.js → p-76ce6493.entry.js} +2 -2
- package/dist/stencil-library/{p-e423f7bb.entry.js → p-8b5f9a3a.entry.js} +2 -2
- package/dist/stencil-library/{p-e423f7bb.entry.js.map → p-8b5f9a3a.entry.js.map} +1 -1
- package/dist/stencil-library/stencil-library.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p-aI3c1NCj.js.map +0 -1
- /package/dist/stencil-library/{p-74e0c2f0.entry.js.map → p-4020a1f0.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-7e0b62d2.entry.js.map → p-76ce6493.entry.js.map} +0 -0
|
@@ -2574,14 +2574,14 @@ const SettingsModal = class {
|
|
|
2574
2574
|
};
|
|
2575
2575
|
render() {
|
|
2576
2576
|
const t = getLanguageStrings(state.settings.language);
|
|
2577
|
-
return (index.h("div", { key: '69815a7efeb8f52a5d3422b06dc212a50b9f405b', class: "fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50" }, index.h("div", { key: 'ed368ae8d0d6d2946c5a4ecc559f018521e1bce8', class: "bg-primary rounded-4xl p-6 w-full max-w-md" }, index.h("div", { key: 'f51088beb4d8445503fa08c3dd2a2b8c886f79ce', class: "flex justify-between items-center mb-6" }, index.h("h2", { key: 'a9bcb7b893961bbf2032c1b8a110624ec3a95e65', class: "text-xl font-semibold" }, "Settings"), index.h("button", { key: '47d4dc1cc0789485da95218becfc921ae5db177c', class: "p-2 hover:bg-hover rounded-full transition-colors", onClick: this.handleClose }, index.h("svg", { key: '42923fdd6d5c96ceee98bdddca2e7e6bda42dcfa', xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("line", { key: '751c5243b5b785a21131b02a3142c6d46e0cffeb', x1: "18", y1: "6", x2: "6", y2: "18" }), index.h("line", { key: 'e26bd2a1b20aa718ced6183130e962c9dbd159b9', x1: "6", y1: "6", x2: "18", y2: "18" })))), index.h("div", { key: '560be61d72a1a98eea4d2788d49eee7a3107470d', class: "space-y-4" }, index.h("div", { key: '2e6422d175602e7a53eb3d629c37c47980c08da1' }, index.h("h3", { key: '0d043e5ddbfb9de4a8c198d748bd5ae39fd3b4b4', class: "text-sm font-medium text-text-muted mb-1" }, "Debug Information"), index.h("p", { key: '547de97a72e386222c53a5d890ad0df8fdb4d01e', class: "text-sm text-text-muted mb-1" }, "state: ", JSON.stringify(state, null, 2))), index.h("div", { key: '
|
|
2578
|
-
.value) }, index.h("option", { key: '
|
|
2579
|
-
"en" }, "English"), index.h("option", { key: '
|
|
2580
|
-
"es" }, "Espa\u00F1ol"), index.h("option", { key: '
|
|
2581
|
-
"de" }, "Deutsch"))), index.h("div", { key: '
|
|
2582
|
-
.value)) })), index.h("div", { key: '
|
|
2583
|
-
.value)) })), index.h("div", { key: '
|
|
2584
|
-
.value)) }))), index.h("div", { key: '
|
|
2577
|
+
return (index.h("div", { key: '69815a7efeb8f52a5d3422b06dc212a50b9f405b', class: "fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50" }, index.h("div", { key: 'ed368ae8d0d6d2946c5a4ecc559f018521e1bce8', class: "bg-primary rounded-4xl p-6 w-full max-w-md" }, index.h("div", { key: 'f51088beb4d8445503fa08c3dd2a2b8c886f79ce', class: "flex justify-between items-center mb-6" }, index.h("h2", { key: 'a9bcb7b893961bbf2032c1b8a110624ec3a95e65', class: "text-xl font-semibold" }, "Settings"), index.h("button", { key: '47d4dc1cc0789485da95218becfc921ae5db177c', class: "p-2 hover:bg-hover rounded-full transition-colors", onClick: this.handleClose }, index.h("svg", { key: '42923fdd6d5c96ceee98bdddca2e7e6bda42dcfa', xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("line", { key: '751c5243b5b785a21131b02a3142c6d46e0cffeb', x1: "18", y1: "6", x2: "6", y2: "18" }), index.h("line", { key: 'e26bd2a1b20aa718ced6183130e962c9dbd159b9', x1: "6", y1: "6", x2: "18", y2: "18" })))), index.h("div", { key: '560be61d72a1a98eea4d2788d49eee7a3107470d', class: "space-y-4" }, index.h("div", { key: '2e6422d175602e7a53eb3d629c37c47980c08da1' }, index.h("h3", { key: '0d043e5ddbfb9de4a8c198d748bd5ae39fd3b4b4', class: "text-sm font-medium text-text-muted mb-1" }, "Debug Information"), index.h("p", { key: '547de97a72e386222c53a5d890ad0df8fdb4d01e', class: "text-sm text-text-muted mb-1" }, "state: ", JSON.stringify(state, null, 2)), index.h("p", { key: 'f0b99a34387a052b37263f23dc9508f633b8ba25', class: "text-sm text-text-muted mb-1" }, navigator.userAgent)), index.h("div", { key: 'eed47be8b7b9fecb9f55bc97990463203dc5f34e' }, index.h("label", { key: 'd3f9f5b9d18a5ae92cff81d8c00c0d361620cfc1', class: "block text-sm font-medium text-text-muted mb-1" }, t.settings.language), index.h("select", { key: '4d91a944e57b092e9e5ed291bfc92eb73e84ff8d', class: "w-full bg-muted rounded-4xl p-2", onInput: (e) => this.handleInputChange("language", e.target
|
|
2578
|
+
.value) }, index.h("option", { key: 'f065a01801c5ffce8607c242072fd36c2037dbaf', value: "en", selected: this.tempSettings.language ===
|
|
2579
|
+
"en" }, "English"), index.h("option", { key: '0aa180899e17666af6c0dd272f930ea96b89ad13', value: "es", selected: this.tempSettings.language ===
|
|
2580
|
+
"es" }, "Espa\u00F1ol"), index.h("option", { key: 'b0fbeed0f78f1244094ce50c5db8448e799f1c64', value: "de", selected: this.tempSettings.language ===
|
|
2581
|
+
"de" }, "Deutsch"))), index.h("div", { key: 'b814d3cf2ceebf2ecfb270db2c8dd0215142c798' }, index.h("label", { key: '40de044f05c466ae7f95da8227c66dfb8f301ab1', class: "block text-sm font-medium text-text-muted mb-1" }, t.settings.rowSpacing), index.h("input", { key: '6e7885911d3304962171a9a4f2de945e7b62dceb', type: "number", class: "w-full bg-muted rounded-4xl p-2", value: this.tempSettings.rowSpacing, onInput: (e) => this.handleInputChange("rowSpacing", parseFloat(e.target
|
|
2582
|
+
.value)) })), index.h("div", { key: '6f0cd38ae69cc5dc48422a8e41ce0fcbbee75629' }, index.h("label", { key: 'bdc86c8dd09b718666b8f3a9b60ac7c08f4474f3', class: "block text-sm font-medium text-text-muted mb-1" }, t.settings.columnSpacing), index.h("input", { key: '9d28aec6d130584e70670d487e0b01af89f69e76', type: "number", class: "w-full bg-muted rounded-4xl p-2", value: this.tempSettings.columnSpacing, onInput: (e) => this.handleInputChange("columnSpacing", parseFloat(e.target
|
|
2583
|
+
.value)) })), index.h("div", { key: '582595eaed721488e3b0973cd72317440f75cc25' }, index.h("label", { key: '4ecbab16972274f55b885706becd3af406118f97', class: "block text-sm font-medium text-text-muted mb-1" }, t.settings.borderInset), index.h("input", { key: '085c9a1bda471e5058fb99c81ca317716d9f300d', type: "number", class: "w-full bg-muted rounded-4xl p-2", value: this.tempSettings.borderInset, onInput: (e) => this.handleInputChange("borderInset", parseFloat(e.target
|
|
2584
|
+
.value)) }))), index.h("div", { key: 'd698b5e642cff47c3aa35589ec434d8b6d5b3792', class: "flex justify-end gap-4 mt-6" }, index.h("button", { key: '449262ec470a7f29513e6eb4a9bead1a2bf014e2', class: "px-4 py-2 bg-surface rounded-4xl hover:bg-surface-hover transition-colors", onClick: this.handleClose }, "Cancel"), index.h("button", { key: '723dc0f16e17be3db127b37ec5a43380be491aed', class: "px-4 py-2 bg-secondary text-muted rounded-4xl hover:bg-text-secondary transition-colors", onClick: this.handleSave }, "Save Changes")))));
|
|
2585
2585
|
}
|
|
2586
2586
|
};
|
|
2587
2587
|
SettingsModal.style = outputCss$4;
|
|
@@ -2738,7 +2738,7 @@ const SolarExpert = class {
|
|
|
2738
2738
|
}
|
|
2739
2739
|
});
|
|
2740
2740
|
state.settings.language = this.language;
|
|
2741
|
-
state.isIOS =
|
|
2741
|
+
state.isIOS = navigator.userAgent.indexOf("Safari") != -1;
|
|
2742
2742
|
this.applyTheme();
|
|
2743
2743
|
}
|
|
2744
2744
|
colorSchemeChanged() {
|
|
@@ -2795,7 +2795,7 @@ const SolarExpert = class {
|
|
|
2795
2795
|
}
|
|
2796
2796
|
render() {
|
|
2797
2797
|
const t = getLanguageStrings(this.language);
|
|
2798
|
-
return (index.h("div", { key: '
|
|
2798
|
+
return (index.h("div", { key: '3777fe38fe920db77718468c61d15032e3edd875', class: "flex flex-col w-full h-full p-3 m-auto", id: "solar-calculator" }, this.showMapSelector
|
|
2799
2799
|
? (index.h("map-selector", { "api-key": this.apiKey, language: this.language }))
|
|
2800
2800
|
: (index.h(index.h.Fragment, null, index.h("div", { class: "pb-3 flex flex-row gap-4 items-stretch w-full bg-primary" }, index.h("div", { class: "relative flex-3" }, index.h("div", { class: "absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground" }, index.h("search-icon", null)), index.h("input", { ref: (el) => this.inputElement = el, type: "text", placeholder: t.solarExpert
|
|
2801
2801
|
.searchPlaceholder, class: "w-full pl-10 pr-4 py-2 border border-border rounded-4xl focus:ring-secondary bg-muted text-muted-foreground h-full" })), index.h("button", { onClick: () => this.handleChooseOnMap(), class: "flex-1 pl-4 pr-4 py-2 border border-border bg-muted rounded-4xl focus:ring-secondary hover:bg-secondary hover:text-muted" }, t.mapSelector.chooseOnMap)), index.h("map-draw", { apiKey: this.apiKey })))));
|
|
@@ -3083,13 +3083,13 @@ const SolarSystemForm = class {
|
|
|
3083
3083
|
}
|
|
3084
3084
|
render() {
|
|
3085
3085
|
const t = getLanguageStrings(state.settings.language);
|
|
3086
|
-
return (index.h("div", { key: '
|
|
3086
|
+
return (index.h("div", { key: '58296df9ae0c416d8a38c2a9e763fbdec361e7b2', class: "flex flex-col justify-center items-center w-full h-full pt-4" // style={{
|
|
3087
3087
|
,
|
|
3088
3088
|
// display: (Object.keys(this.systemConfigs).length === 0)
|
|
3089
3089
|
// ? "none"
|
|
3090
3090
|
// : "flex",
|
|
3091
3091
|
// }}
|
|
3092
|
-
id: "solar-system-form" }, index.h("h1", { key: '
|
|
3092
|
+
id: "solar-system-form" }, index.h("h1", { key: '8bc991059b82822639864d0ff59abf228959b09a', class: "text-2xl font-bold text-secondary mb-4 w-full" }, t.solarSystemForm.title), index.h("div", { key: '7e3e5e154680a75ef7982cc959c59c94ef557cc3', class: "w-full bg-primary rounded-4xl p-6 space-y-6" }, index.h("div", { key: 'f9edb930082dfdc024f1156e60bfb833578d6428', class: "space-y-4" }, index.h("h2", { key: 'c6ac55b26ed020900ea4b9a06884917ff1ebc1dd', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.systemInformation), index.h("div", { key: '39a191bbfb457a51bec489d182ab4ad1252d8c29', class: "grid grid-rows-3 gap-0" }, index.h("div", { key: 'f9ad33becaeeca2662e419254f9f195d427111f9', class: "grid grid-cols-2 gap-4" }, index.h("label", { key: '4d266c1e198f53e93ee6891832e4d56508abe57c', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.numberOfPanels), index.h("label", { key: '8c7d173b40b06129c991f9ca2acae7989a0714d6', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.panelPeakPower)), index.h("div", { key: '8fda12c5d7eec29418ad796112dc64f50e73eead', class: "grid grid-cols-2 gap-4" }, !this.isIOS()
|
|
3093
3093
|
? (index.h("input", { type: "number", class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground", value: this.numberOfPanels, readOnly: true }))
|
|
3094
3094
|
: (index.h("input", { type: "number", min: "1", max: this.maxPanels, class: "flex-1 px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground", value: this.numberOfPanels, onInput: (e) => {
|
|
3095
3095
|
const value = parseInt(e.target
|
|
@@ -3100,36 +3100,36 @@ const SolarSystemForm = class {
|
|
|
3100
3100
|
this.numberOfPanels = value;
|
|
3101
3101
|
this.recalculate();
|
|
3102
3102
|
}
|
|
3103
|
-
} })), index.h("input", { key: '
|
|
3104
|
-
(index.h("input", { key: '
|
|
3103
|
+
} })), index.h("input", { key: '4e138a8675c4bb81c09a6d711481e98e1f2977fd', type: "number", class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground", value: this.panelPeakPower, readonly: true })), index.h("div", { key: 'bd4f2a05cc7e6dedf2036fecdc37e809ade67fd1', class: "grid grid-cols-2 gap-4" }, index.h("div", { key: 'c3285bcc8c967e7e57e15b4c938c797dc33d1687', class: "w-full pt-2" }, !this.isIOS() &&
|
|
3104
|
+
(index.h("input", { key: '8612184d1fc6df69c2f4ec95581278162367a36b', 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) => {
|
|
3105
3105
|
this.numberOfPanels =
|
|
3106
3106
|
parseInt(e.target
|
|
3107
3107
|
.value);
|
|
3108
3108
|
this.recalculate();
|
|
3109
|
-
} }))))), index.h("div", { key: '
|
|
3110
|
-
this.numberOfPanels).toFixed(1), " kW")))), index.h("div", { key: '
|
|
3109
|
+
} }))))), index.h("div", { key: 'ce90bb3d25bf9ed171155f98d386abc1bdffcac8', class: "bg-muted rounded-4xl p-4" }, index.h("div", { key: 'feea6fc5bb47c6d6569953a51cf61efe777603fe', class: "flex items-center justify-between" }, index.h("span", { key: '8e64cd4cd6fe2b0d682e02d3f0505e3b3d5a7654', class: "text-text-muted" }, t.solarSystemForm.totalSystemPeakPower), index.h("span", { key: '72f0265b00ddfe306cfe35ff974ef725d564d9ad', class: "text-xl font-bold text-secondary" }, (DEFAULT_SOLAR_PANEL_TYPE.kWattPeak *
|
|
3110
|
+
this.numberOfPanels).toFixed(1), " kW")))), index.h("div", { key: 'cfa2ca911004fd28740af77a8d426fd11a33844f', class: "space-y-4" }, index.h("h2", { key: '3dd69d68a48943c83a4bf3983e53eebd04598d97', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.householdConsumptionTitle), index.h("div", { key: '4ba69b22c9e466cc4491bdbea538143261f8da4b', class: "grid grid-rows-2 gap-0" }, index.h("div", { key: '5021208200c6e7d17d8febfe3ff9732474b63f33', class: "grid grid-cols-2 gap-4" }, index.h("label", { key: '98b59fc7b56b57d01caa3dd39aceaf7b79404fc1', class: "block text-sm font-medium text-text-muted" }, t.solarSystemForm.annualConsumption), index.h("label", { key: 'a43f6353931e6432fc6175843d6cafe2345c2ada', class: "block text-sm font-medium text-text-muted" }, t.solarSystemForm.consumptionProfileTitle)), index.h("div", { key: '2b00b4f45bdc5b3a7a02e6aedc92350e113c4133', class: "grid grid-cols-2 gap-4" }, index.h("input", { key: '636be800fc83bb0855f144408e931496ea1553db', type: "number", class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground", value: this.householdConsumption, onInput: (e) => {
|
|
3111
3111
|
this.householdConsumption = parseInt(e.target
|
|
3112
3112
|
.value);
|
|
3113
3113
|
this.recalculate();
|
|
3114
|
-
} }), index.h("select", { key: '
|
|
3114
|
+
} }), index.h("select", { key: '5d32047cbf3e368ad98aa97eea3199989c714a0a', class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground", onChange: (e) => {
|
|
3115
3115
|
this.consumptionProfile =
|
|
3116
3116
|
e.target
|
|
3117
3117
|
.value;
|
|
3118
3118
|
this.recalculate();
|
|
3119
|
-
} }, index.h("option", { key: '
|
|
3119
|
+
} }, index.h("option", { key: 'e760307e3a0db5ccc41e275aa51c7c4dca4d11ee', value: "mostly_at_home", selected: this.consumptionProfile ===
|
|
3120
3120
|
"mostly_at_home" }, t.solarSystemForm.consumptionProfiles
|
|
3121
|
-
.mostlyAtHome), index.h("option", { key: '
|
|
3121
|
+
.mostlyAtHome), index.h("option", { key: '5eb339cb0c926d55cd37b75580f861b06245e56e', value: "mostly_away", selected: this.consumptionProfile ===
|
|
3122
3122
|
"mostly_away" }, t.solarSystemForm.consumptionProfiles
|
|
3123
|
-
.mostlyAway))))), index.h("div", { key: '
|
|
3123
|
+
.mostlyAway))))), index.h("div", { key: '4ee0eed5ae63f5f670a08d0706ac5cbc203b7b43', class: "space-y-4" }, index.h("h2", { key: '5f2fdb67ea997c3b13822767679841d5bb52a27c', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.additionalComponents.title), index.h("div", { key: '2aeb94a24b1097e34a412860dd7a34fa66e58cac', class: "flex flex-col gap-4" }, index.h("div", { key: '843ef8f7a7b881436a28e20a7565c2f1d20035d5', class: "flex flex-col bg-muted rounded-4xl p-4 gap-4" }, index.h("div", { key: 'bba188e686ffc07f9c2300ef5481a7c4c38f8d01', class: "flex items-center justify-between" }, index.h("div", { key: '5a60e94a9e73c067fa0730ba04cb9dc78d4c699e', class: "flex items-center gap-2" }, index.h("input", { key: '022904f62f9bec7b1b0ff7b7cda70da387afc7f0', type: "checkbox", id: "heatPump", class: "w-4 h-4 accent-tertiary border-gray-300 rounded-full focus:ring-tertiary focus:ring-offset-0 focus:ring-2", checked: this.heatPump > 0, onChange: (e) => {
|
|
3124
3124
|
this.heatPump =
|
|
3125
3125
|
e.target
|
|
3126
3126
|
.checked
|
|
3127
3127
|
? 100
|
|
3128
3128
|
: 0;
|
|
3129
3129
|
this.recalculate();
|
|
3130
|
-
} }), index.h("label", { key: '
|
|
3130
|
+
} }), index.h("label", { key: '180f948ac4e201ab73d55cbcb31b4102fbb12085', htmlFor: "heatPump", class: "text-text-muted" }, t.solarSystemForm
|
|
3131
3131
|
.additionalComponents
|
|
3132
|
-
.heatPump)), (this.heatPump > 0 && !this.isIOS()) && (index.h("span", { key: '
|
|
3132
|
+
.heatPump)), (this.heatPump > 0 && !this.isIOS()) && (index.h("span", { key: '84f39c22d2bd91da501971c0a44e92a85fd111a5', class: "text-text-muted" }, this.heatPump, " m\u00B2"))), this.heatPump > 0 && (index.h("div", { key: '7d72b86d4a0404c284581713bfe4bc21b43c2e6d', class: "flex flex-col gap-2" }, this.isIOS()
|
|
3133
3133
|
? (index.h("div", { class: "flex items-center gap-2" }, index.h("input", { type: "number", min: "10", max: "300", step: "10", class: "flex-1 px-4 py-2 rounded-4xl border border-gray-300 focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", value: this.heatPump, onInput: (e) => {
|
|
3134
3134
|
const value = parseInt(e.target
|
|
3135
3135
|
.value);
|
|
@@ -3145,37 +3145,37 @@ const SolarSystemForm = class {
|
|
|
3145
3145
|
parseInt(e.target
|
|
3146
3146
|
.value);
|
|
3147
3147
|
this.recalculate();
|
|
3148
|
-
} }))))), index.h("div", { key: '
|
|
3148
|
+
} }))))), index.h("div", { key: 'c9e2d581cea0a188c7e83c0e0b0dba5bf7bae9ca', class: "flex flex-col bg-muted rounded-4xl p-4 gap-4" }, index.h("div", { key: 'a58a0d3114ff20a137bf217e054394bc427250a7', class: "flex items-center justify-between" }, index.h("div", { key: '2022bc49ef1e53f7191558e93b64088ba34580a7', class: "flex items-center gap-2" }, index.h("input", { key: '5736e93590501ea2e0fbe72fa9ef85b8d662b941', type: "checkbox", id: "electricCar", class: "w-4 h-4 accent-tertiary border-gray-300 rounded focus:ring-tertiary focus:ring-offset-0 focus:ring-2", checked: this.electricCar, onChange: (e) => {
|
|
3149
3149
|
this.electricCar =
|
|
3150
3150
|
e.target
|
|
3151
3151
|
.checked;
|
|
3152
3152
|
this.recalculate();
|
|
3153
|
-
} }), index.h("label", { key: '
|
|
3153
|
+
} }), index.h("label", { key: '26ec06696859d804833acf722fa9b8b521854bf2', htmlFor: "electricCar", class: "text-text-muted" }, t.solarSystemForm
|
|
3154
3154
|
.additionalComponents
|
|
3155
|
-
.electricCar))), this.electricCar && (index.h("div", { key: '
|
|
3155
|
+
.electricCar))), this.electricCar && (index.h("div", { key: '9c22e6bef2d797ddd317d67508a2fc80bb4b4607', class: "flex flex-col gap-2" }, index.h("div", { key: 'aff0e5b462bb1bd6fd2d6fa7bec9f23a9f721c4c', class: "grid grid-cols-2 gap-4" }, index.h("label", { key: '5d2f8303e316aa4d07b83775b14048a1b5fa1d77', class: "text-sm text-text-muted" }, t.solarSystemForm
|
|
3156
3156
|
.additionalComponents
|
|
3157
|
-
.chargingTime), index.h("label", { key: '
|
|
3157
|
+
.chargingTime), index.h("label", { key: '479c64be185c33752bd3943cee7c320db1365b00', class: "text-sm text-text-muted" }, t.solarSystemForm
|
|
3158
3158
|
.additionalComponents
|
|
3159
|
-
.kilometersPerYear)), index.h("div", { key: '
|
|
3159
|
+
.kilometersPerYear)), index.h("div", { key: 'b33eb67682580f4fe226a4e24977849b1c498c0d', class: "grid grid-cols-2 gap-4" }, index.h("select", { key: 'fd0679d0557120e9e60409261c0449d17a62b9b8', class: "w-full px-4 py-2 rounded-4xl border border-gray-300 focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", onChange: (e) => {
|
|
3160
3160
|
this.electricCarChargingTime =
|
|
3161
3161
|
e.target
|
|
3162
3162
|
.value;
|
|
3163
3163
|
this.recalculate();
|
|
3164
|
-
} }, index.h("option", { key: '
|
|
3164
|
+
} }, index.h("option", { key: '533ba2939c88b597a8de6a33e99d423be567c63e', value: "day", selected: this
|
|
3165
3165
|
.electricCarChargingTime ===
|
|
3166
3166
|
"day" }, t.solarSystemForm
|
|
3167
3167
|
.additionalComponents
|
|
3168
|
-
.chargingTimeDay), index.h("option", { key: '
|
|
3168
|
+
.chargingTimeDay), index.h("option", { key: '5f38ec5c8e84e7e958b898d53ef8a4cd52fb2001', value: "night", selected: this
|
|
3169
3169
|
.electricCarChargingTime ===
|
|
3170
3170
|
"night" }, t.solarSystemForm
|
|
3171
3171
|
.additionalComponents
|
|
3172
|
-
.chargingTimeNight)), index.h("input", { key: '
|
|
3172
|
+
.chargingTimeNight)), index.h("input", { key: '17b2d88d26582f7ca895ebdf06ab75e6aef02bdf', type: "number", min: "1000", max: "50000", step: "1000", class: "w-full px-4 py-2 rounded-4xl border border-gray-300 focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", value: this.kmDrivenPerYear, onInput: (e) => {
|
|
3173
3173
|
this.kmDrivenPerYear =
|
|
3174
3174
|
parseInt(e.target
|
|
3175
3175
|
.value);
|
|
3176
3176
|
this.recalculate();
|
|
3177
|
-
} }))))), index.h("div", { key: '
|
|
3178
|
-
.battery), !this.isIOS() && (index.h("span", { key: '
|
|
3177
|
+
} }))))), index.h("div", { key: 'f7868775a41753bc7672bbf760edf048d69a94b2', class: "flex flex-col bg-muted rounded-4xl p-4 gap-4" }, index.h("div", { key: 'f502d069b83046b8a29f91e29422077ff1028d90', class: "flex items-center justify-between" }, index.h("label", { key: 'c33786837258f5ba82a5d2045a794918bf17bdaa', class: "text-text-muted" }, t.solarSystemForm.additionalComponents
|
|
3178
|
+
.battery), !this.isIOS() && (index.h("span", { key: 'd4e61a25305a0d29840f1f7cf8d4322fa697e3d8', class: "text-text-muted" }, this.battery, " kWh"))), index.h("div", { key: '8e58465995117be4cbe22b3f376ebcb296e1ed6d', class: "flex flex-col gap-2" }, this.isIOS()
|
|
3179
3179
|
? (index.h("div", { class: "flex items-center gap-2" }, index.h("input", { type: "number", min: "0", max: "20", step: "1", class: "flex-1 px-4 py-2 rounded-4xl border border-gray-300 focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", value: this.battery, onInput: (e) => {
|
|
3180
3180
|
const value = parseInt(e.target
|
|
3181
3181
|
.value);
|
|
@@ -3190,37 +3190,37 @@ const SolarSystemForm = class {
|
|
|
3190
3190
|
this.battery = parseInt(e.target
|
|
3191
3191
|
.value);
|
|
3192
3192
|
this.recalculate();
|
|
3193
|
-
} })))))), index.h("div", { key: '
|
|
3193
|
+
} })))))), index.h("div", { key: '83484f0973593211ce5c375bbaaa49ae60c857d3', class: "space-y-4" }, index.h("h2", { key: '66902f9f1c70370ea57f11c24de5f700353b2801', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.electricityCostsTitle), index.h("div", { key: '5e416328700a2989eeb59886aa2b15447d9c7108', class: "grid grid-rows-2 gap-0" }, index.h("div", { key: '1b5de740a2e7f6dc9027a42e2469faf85f860b12', class: "grid grid-cols-3 gap-4" }, index.h("label", { key: 'd847462337675b52a0b87bbf57eb57771ecb8be9', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.electricityPrice), index.h("label", { key: 'cda092b8b30813cf150ac6f773abdea1ff0bcb88', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.compensationRate), index.h("label", { key: '6c3152e73c9af337073bfa92fb2b0bfc15354a2b', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.annualPriceIncrease)), index.h("div", { key: '2d5cc9c5e35dd608e887210f726e7cf2dccab3a3', class: "grid grid-cols-3 gap-4 text-primary-foreground" }, index.h("input", { key: '22c17145439337d3f487e7cd3b376e47d67876da', type: "number", step: "0.01", class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", value: this.electricityPrice.toFixed(2), onInput: (e) => {
|
|
3194
3194
|
this.electricityPrice = parseFloat(e.target
|
|
3195
3195
|
.value);
|
|
3196
3196
|
this.recalculate();
|
|
3197
|
-
} }), index.h("input", { key: '
|
|
3197
|
+
} }), index.h("input", { key: 'fce6a662a97519aac9dc90d436ffc1b8d6e9bf87', type: "number", step: "0.01", class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", value: this.compensationRate.toFixed(2), onInput: (e) => {
|
|
3198
3198
|
this.compensationRate = parseFloat(e.target
|
|
3199
3199
|
.value);
|
|
3200
3200
|
this.recalculate();
|
|
3201
|
-
} }), index.h("input", { key: '
|
|
3201
|
+
} }), index.h("input", { key: '09da58f733254ee9a71f8dd9c3a644c84e663f16', type: "number", step: "0.1", class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", value: this.annualPriceIncrease.toFixed(1), onInput: (e) => {
|
|
3202
3202
|
this.annualPriceIncrease = parseFloat(e.target
|
|
3203
3203
|
.value);
|
|
3204
3204
|
this.recalculate();
|
|
3205
|
-
} })))), index.h("div", { key: '
|
|
3205
|
+
} })))), index.h("div", { key: '715ea73993ad45be600d968e188456151e5ec715', class: "space-y-4 p-4 border border-border rounded-4xl" }, index.h("h2", { key: 'ed64121ef230a3fd3a7b4229fcae1bc42f02050e', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.resultsTitle), index.h("div", { key: '591a2c238062aacef74422ce6ed71d56d543f65f', class: "bg-muted rounded-4xl p-4" }, index.h("div", { key: '939fb610c4da321a5e7b29791cd82d38c85b8128', class: "flex items-center justify-between" }, index.h("span", { key: '8a83686f8a4ca80b201f0aa364a370ee554d1dfe', class: "text-text-muted" }, t.solarSystemForm.autonomy), index.h("span", { key: 'd9ae02c499498be74e4933ce13950d10c00761fb', class: "text-xl font-bold text-secondary" }, this.autonomy > 100
|
|
3206
3206
|
? "100"
|
|
3207
|
-
: this.autonomy.toFixed(1), "%")), index.h("div", { key: '
|
|
3208
|
-
.savingsDisclaimer))), index.h("span", { key: '
|
|
3209
|
-
.solarSystemForm.year)), index.h("div", { key: '
|
|
3207
|
+
: this.autonomy.toFixed(1), "%")), index.h("div", { key: 'a63a0e23ec7d546a93eb85c584c2bfd24e7f2c8b', class: "flex items-center justify-between mt-4" }, index.h("div", { key: '0e131cf26fb1fe7d410081ae991391a01750c738', class: "flex items-center gap-2" }, index.h("span", { key: '72720181f07b78e5d24090a1955ba954012e2052', class: "text-text-muted" }, t.solarSystemForm.costSavings), index.h("div", { key: '6f215fbf81f99a096ea3020c685e5276bd318d8f', class: "relative group" }, index.h("svg", { key: '634aae8d52af3e33aa78a9ad14bf722181886222', xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 text-gray-400 cursor-help", viewBox: "0 0 20 20", fill: "currentColor" }, index.h("path", { key: '38a0e26fe5cb62790787593fe1134065e0aeb8db', "fill-rule": "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z", "clip-rule": "evenodd" })), index.h("div", { key: '94b31ce93d0d4d9acc8454cc036d9b70e633464b', class: "absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 w-64 p-2 bg-gray-800 text-muted text-sm rounded-lg opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none" }, t.solarSystemForm
|
|
3208
|
+
.savingsDisclaimer))), index.h("span", { key: 'e79c03fe2a57cd7a7156f7b23c5abe207c306119', class: "text-xl font-bold text-success" }, this.costSavings.toFixed(2), "\u20AC/", t
|
|
3209
|
+
.solarSystemForm.year)), index.h("div", { key: '50eadaa3f467a9cc47a26cf24a935918c7c84908', class: "flex items-center justify-between mt-4" }, index.h("div", { key: '3fcebc56fdf326b3fa369c9afc1e99a321540ac3', class: "flex items-center gap-2" }, index.h("span", { key: '7f8fc8398382e9dc45dcb2527964fa37596d5777', class: "text-text-muted" }, "Einspeiseverg\u00FCtung 25 Jahre")), index.h("span", { key: '0e57b2a127349ad32972e11709892a08de2351cd', class: "text-xl font-bold text-success" }, this.compensation25Years.toFixed(2), "\u20AC")), index.h("div", { key: '911f2a229dc0902bfa3cccbbb0685408b996ab20', class: "flex items-center justify-between mt-4" }, index.h("div", { key: 'bfc5510ad45d5ef808d98a7793dbb7285d72eb60', class: "flex items-center gap-2" }, index.h("span", { key: 'e4ca3bc26eda6936bcc05729d616f800958eba18', class: "text-text-muted" }, "Geldwerter Vorteil 25 Jahre")), index.h("span", { key: '39d5809f08de430897aec70bdd467534bc690cb9', class: "text-xl font-bold text-success" }, this.savedCosts25Years.toFixed(2), "\u20AC")))), index.h("div", { key: 'e2a083422053e96f3a41c4e2b215a230b284d602', class: "space-y-4 pt-4" }, index.h("h2", { key: 'd90a6e040b51641f851c14163bcfe2709bcb39f1', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.requestOffer), index.h("div", { key: 'b3c55c9f9cb6b9f94cb10af87e6933bb16a918d1', class: "grid gap-4" }, index.h("div", { key: 'cb2948f9d6dc7af12428db67a1db480eb6a185e4', class: "grid grid-cols-2 gap-4" }, index.h("label", { key: 'f8dfd890c5d43704d876e3712827ec6994169a27', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.name), index.h("label", { key: '18f83d7ba7b9b71ce862f8d62b1ae6601fd3461c', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.email)), index.h("div", { key: 'ea253e4d63e118a6aee715b343f58a7599e4b2d3', class: "grid grid-cols-2 gap-4" }, index.h("div", { key: '7fb48769fd6cfcf1dbedafed95f105446f2b4021' }, index.h("input", { key: 'c9b3885f869946969bef835fded562f71a91416a', type: "text", class: `w-full px-4 py-2 rounded-4xl border ${this.nameError
|
|
3210
3210
|
? "border-error"
|
|
3211
3211
|
: "border-border"} focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground`, value: this.name, onInput: (e) => {
|
|
3212
3212
|
this.name =
|
|
3213
3213
|
e.target
|
|
3214
3214
|
.value;
|
|
3215
3215
|
this.validateForm();
|
|
3216
|
-
}, placeholder: "Your name" }), this.nameError && (index.h("p", { key: '
|
|
3216
|
+
}, placeholder: "Your name" }), this.nameError && (index.h("p", { key: '2c9ed2313e00001787287d5c9d403e5ff18e1186', class: "text-error text-sm mt-1" }, this.nameError))), index.h("div", { key: '5f5244dda5a2591a9bf1b88cb06b3ee58b270500' }, index.h("input", { key: '634e6ec4af085d92be18b9b187605b8a66e7d4e8', type: "email", class: `w-full px-4 py-2 rounded-4xl border ${this.emailError
|
|
3217
3217
|
? "border-error"
|
|
3218
3218
|
: "border-border"} focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground`, value: this.email, onInput: (e) => {
|
|
3219
3219
|
this.email =
|
|
3220
3220
|
e.target
|
|
3221
3221
|
.value;
|
|
3222
3222
|
this.validateForm();
|
|
3223
|
-
}, placeholder: "your.email@example.com" }), this.emailError && (index.h("p", { key: '
|
|
3223
|
+
}, placeholder: "your.email@example.com" }), this.emailError && (index.h("p", { key: 'dabb317d13e748f489d6ef1542b44798b85c29f7', class: "text-error text-sm mt-1" }, this.emailError))))), index.h("div", { key: 'ad6b0be2c9a8a91246ecaecdb9100ae7cff7f0c5', class: "flex justify-center" }, index.h("button", { key: '04172ddff28b03a2ffa0f669d8f0ae14139a4cd2', onClick: () => this.handleRequestOffer(), disabled: !this.name.trim() ||
|
|
3224
3224
|
!this.email.trim() || !!this.nameError ||
|
|
3225
3225
|
!!this.emailError, class: "px-4 py-2 bg-secondary rounded-4xl hover:bg-tertiary transition-colors duration-200 text-muted" }, t.solarSystemForm.requestOfferButton))))));
|
|
3226
3226
|
}
|