blue-chestnut-solar-expert 0.0.67 → 0.0.68
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/stencil-library/assets/tutorial4.mp4 +0 -0
- package/dist/{collection/config.js → stencil-library/config-CWfV1nKn.js} +10 -4
- package/dist/stencil-library/config-CWfV1nKn.js.map +1 -0
- package/dist/stencil-library/constants-hboFofU4.js +1522 -0
- package/dist/stencil-library/constants-hboFofU4.js.map +1 -0
- package/dist/stencil-library/decoder-DNOvLSaS.js +39 -0
- package/dist/stencil-library/decoder-DNOvLSaS.js.map +1 -0
- package/dist/stencil-library/deflate-0Vdd6-55.js +21 -0
- package/dist/{esm/deflate-DHgPf9CO.js.map → stencil-library/deflate-0Vdd6-55.js.map} +1 -1
- package/dist/stencil-library/eraser-icon.entry.esm.js.map +1 -0
- package/dist/{components/p-CL74Q4VR.js → stencil-library/eraser-icon.entry.js} +9 -27
- package/dist/stencil-library/eraser-icon.entry.js.map +1 -0
- package/dist/stencil-library/house-icon.entry.esm.js.map +1 -0
- package/dist/{components/p-D8w3bTPO.js → stencil-library/house-icon.entry.js} +9 -27
- package/dist/stencil-library/house-icon.entry.js.map +1 -0
- package/dist/{components/loading-widget.js → stencil-library/icon-selector.entry.esm.js.map} +1 -38
- package/dist/stencil-library/icon-selector.entry.js +47 -0
- package/dist/stencil-library/icon-selector.entry.js.map +1 -0
- package/dist/stencil-library/index-CChkgM3J.js +414 -0
- package/dist/stencil-library/index-CChkgM3J.js.map +1 -0
- package/dist/stencil-library/index-ICfDNUMe.js +4172 -0
- package/dist/stencil-library/index-ICfDNUMe.js.map +1 -0
- package/dist/stencil-library/index.esm.js +13 -1
- package/dist/stencil-library/index.esm.js.map +1 -1
- package/dist/{esm/jpeg-CJLm1GkA.js → stencil-library/jpeg-Dd5nnHR5.js} +11 -3
- package/dist/stencil-library/jpeg-Dd5nnHR5.js.map +1 -0
- package/dist/{components/p-BcVa4_YP.js → stencil-library/lerc-7W4E8EBs.js} +27 -1981
- package/dist/stencil-library/lerc-7W4E8EBs.js.map +1 -0
- package/dist/{esm → stencil-library}/loading-widget.entry.js +3 -3
- package/dist/{components/p-P28NBglk.js.map → stencil-library/loading-widget.entry.js.map} +1 -1
- package/dist/{esm/lzw-DaOzWJUD.js → stencil-library/lzw--P4c0ZHH.js} +10 -4
- package/dist/stencil-library/lzw--P4c0ZHH.js.map +1 -0
- package/dist/stencil-library/map-draw-Cx9WZoKH.js +25567 -0
- package/dist/stencil-library/map-draw-Cx9WZoKH.js.map +1 -0
- package/dist/stencil-library/map-draw.entry.esm.js.map +1 -0
- package/dist/stencil-library/map-draw.entry.js +12 -0
- package/dist/stencil-library/map-draw.entry.js.map +1 -0
- package/dist/stencil-library/map-selector.entry.esm.js.map +1 -0
- package/dist/{components/p-C5QieOat.js → stencil-library/map-selector.entry.js} +164 -96
- package/dist/stencil-library/map-selector.entry.js.map +1 -0
- package/dist/{components/loading-widget.js.map → stencil-library/marker-icon.entry.esm.js.map} +1 -1
- package/dist/{components/p-Umz6nJIv.js → stencil-library/marker-icon.entry.js} +9 -27
- package/dist/stencil-library/marker-icon.entry.js.map +1 -0
- package/dist/stencil-library/move-icon.entry.esm.js.map +1 -0
- package/dist/{components/p-FdEV2qPo.js → stencil-library/move-icon.entry.js} +9 -27
- package/dist/stencil-library/move-icon.entry.js.map +1 -0
- package/dist/{components/p-DTXeHbuh.js.map → stencil-library/octagon-minus-icon.entry.esm.js.map} +1 -1
- package/dist/{components/p-BJLO76Yi.js → stencil-library/octagon-minus-icon.entry.js} +9 -27
- package/dist/stencil-library/octagon-minus-icon.entry.js.map +1 -0
- package/dist/{components/p-ByX6QP-E.js → stencil-library/packbits-X3R_utTs.js} +9 -3
- package/dist/stencil-library/packbits-X3R_utTs.js.map +1 -0
- package/dist/stencil-library/pako.esm-CPorU236.js +6881 -0
- package/dist/{esm/pako.esm-B5WTRCh8.js.map → stencil-library/pako.esm-CPorU236.js.map} +1 -1
- package/dist/{components/p-B4X-RCW0.js.map → stencil-library/polygon-buttons.entry.esm.js.map} +1 -1
- package/dist/{cjs/loading-widget.cjs.entry.js → stencil-library/polygon-buttons.entry.js} +16 -10
- package/dist/stencil-library/polygon-buttons.entry.js.map +1 -0
- package/dist/{cjs/loading-widget.cjs.entry.js.map → stencil-library/polygon-information.entry.esm.js.map} +1 -1
- package/dist/{components/p-BFJHTJPM.js → stencil-library/polygon-information.entry.js} +13 -70
- package/dist/stencil-library/polygon-information.entry.js.map +1 -0
- package/dist/stencil-library/raw-BxukYehy.js +20 -0
- package/dist/stencil-library/raw-BxukYehy.js.map +1 -0
- package/dist/stencil-library/search-icon.entry.esm.js.map +1 -0
- package/dist/{components/p-DBwr8xSB.js → stencil-library/search-icon.entry.js} +9 -27
- package/dist/stencil-library/{p-ab0f2031.entry.js → search-icon.entry.js.map} +1 -2
- package/dist/stencil-library/settings-icon.entry.esm.js.map +1 -0
- package/dist/{components/p-DTXeHbuh.js → stencil-library/settings-icon.entry.js} +9 -27
- package/dist/stencil-library/settings-icon.entry.js.map +1 -0
- package/dist/stencil-library/settings-modal.entry.esm.js.map +1 -0
- package/dist/{components/p-B4X-RCW0.js → stencil-library/settings-modal.entry.js} +20 -38
- package/dist/stencil-library/settings-modal.entry.js.map +1 -0
- package/dist/stencil-library/solar-expert.entry.esm.js.map +1 -0
- package/dist/{components/solar-expert.js → stencil-library/solar-expert.entry.js} +14 -150
- package/dist/{components/p-i1uLweD0.js.map → stencil-library/solar-expert.entry.js.map} +1 -1
- package/dist/stencil-library/solar-system-form.entry.esm.js.map +1 -0
- package/dist/stencil-library/solar-system-form.entry.js +553 -0
- package/dist/stencil-library/solar-system-form.entry.js.map +1 -0
- package/dist/stencil-library/stencil-library.esm.js +52 -1
- package/dist/stencil-library/stencil-library.esm.js.map +1 -1
- package/dist/{components/p-eDwaXClX.js → stencil-library/store-CcqrFuBK.js} +24 -3
- package/dist/stencil-library/store-CcqrFuBK.js.map +1 -0
- package/dist/stencil-library/toast-notification.entry.esm.js.map +1 -0
- package/dist/{components/p-P28NBglk.js → stencil-library/toast-notification.entry.js} +9 -30
- package/dist/stencil-library/toast-notification.entry.js.map +1 -0
- package/dist/stencil-library/tool-box.entry.esm.js.map +1 -0
- package/dist/{components/p-i1uLweD0.js → stencil-library/tool-box.entry.js} +27 -35
- package/dist/stencil-library/tool-box.entry.js.map +1 -0
- package/dist/{collection/utils/render/tools.js → stencil-library/tools-BNYKV5H5.js} +14 -8
- package/dist/stencil-library/tools-BNYKV5H5.js.map +1 -0
- package/dist/stencil-library/tutorial-component.entry.esm.js.map +1 -0
- package/dist/{components/p-Dzl6kfPI.js → stencil-library/tutorial-component.entry.js} +42 -35
- package/dist/stencil-library/tutorial-component.entry.js.map +1 -0
- package/dist/stencil-library/undo-icon.entry.esm.js.map +1 -0
- package/dist/{components/p-waOPoUcA.js → stencil-library/undo-icon.entry.js} +9 -27
- package/dist/stencil-library/undo-icon.entry.js.map +1 -0
- package/dist/{collection/utils/utils.js → stencil-library/utils-BCUZxI9u.js} +9 -3
- package/dist/stencil-library/utils-BCUZxI9u.js.map +1 -0
- package/dist/{esm/webimage-BiHardhv.js → stencil-library/webimage-CBrfoxHM.js} +9 -3
- package/dist/{esm/webimage-BiHardhv.js.map → stencil-library/webimage-CBrfoxHM.js.map} +1 -1
- package/dist/types/components/map-draw/map-draw.d.ts +5 -0
- package/dist/types/components/map-draw/tutorial-component.d.ts +7 -0
- package/dist/types/components.d.ts +4 -0
- package/dist/types/types/lang.d.ts +7 -0
- package/package.json +1 -1
- package/dist/cjs/app-globals-I24yU8do.js +0 -10
- package/dist/cjs/app-globals-I24yU8do.js.map +0 -1
- package/dist/cjs/basedecoder-CQuzfSgz.js +0 -116
- package/dist/cjs/basedecoder-CQuzfSgz.js.map +0 -1
- package/dist/cjs/deflate-AzGzQSW2.js +0 -17
- package/dist/cjs/deflate-AzGzQSW2.js.map +0 -1
- package/dist/cjs/eraser-icon_19.cjs.entry.js +0 -31
- package/dist/cjs/eraser-icon_19.cjs.entry.js.map +0 -1
- package/dist/cjs/index-HgRXF6kp.js +0 -1470
- package/dist/cjs/index-HgRXF6kp.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -7
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/jpeg-Bx3bTm32.js +0 -904
- package/dist/cjs/jpeg-Bx3bTm32.js.map +0 -1
- package/dist/cjs/lerc-v64rYVDy.js +0 -4427
- package/dist/cjs/lerc-v64rYVDy.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -18
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/loading-widget.entry.cjs.js.map +0 -1
- package/dist/cjs/lzw-BmFug486.js +0 -140
- package/dist/cjs/lzw-BmFug486.js.map +0 -1
- package/dist/cjs/packbits-CYx9fB0v.js +0 -35
- package/dist/cjs/packbits-CYx9fB0v.js.map +0 -1
- package/dist/cjs/pako.esm-0mKI6Jik.js +0 -3243
- package/dist/cjs/pako.esm-0mKI6Jik.js.map +0 -1
- package/dist/cjs/raw-DC82yoyr.js +0 -16
- package/dist/cjs/raw-DC82yoyr.js.map +0 -1
- package/dist/cjs/stencil-library.cjs.js +0 -30
- package/dist/cjs/stencil-library.cjs.js.map +0 -1
- package/dist/cjs/webimage-Dc0t2xAB.js +0 -49
- package/dist/cjs/webimage-Dc0t2xAB.js.map +0 -1
- package/dist/collection/collection-manifest.json +0 -31
- package/dist/collection/components/icons/eraser.js +0 -64
- package/dist/collection/components/icons/eraser.js.map +0 -1
- package/dist/collection/components/icons/house.js +0 -64
- package/dist/collection/components/icons/house.js.map +0 -1
- package/dist/collection/components/icons/icon.js +0 -108
- package/dist/collection/components/icons/icon.js.map +0 -1
- package/dist/collection/components/icons/marker.js +0 -64
- package/dist/collection/components/icons/marker.js.map +0 -1
- package/dist/collection/components/icons/move.js +0 -64
- package/dist/collection/components/icons/move.js.map +0 -1
- package/dist/collection/components/icons/octagonMinus.js +0 -64
- package/dist/collection/components/icons/octagonMinus.js.map +0 -1
- package/dist/collection/components/icons/search.js +0 -64
- package/dist/collection/components/icons/search.js.map +0 -1
- package/dist/collection/components/icons/settings.js +0 -64
- package/dist/collection/components/icons/settings.js.map +0 -1
- package/dist/collection/components/icons/undo.js +0 -64
- package/dist/collection/components/icons/undo.js.map +0 -1
- package/dist/collection/components/map-draw/map-draw.js +0 -795
- package/dist/collection/components/map-draw/map-draw.js.map +0 -1
- package/dist/collection/components/map-draw/map-selector.js +0 -246
- package/dist/collection/components/map-draw/map-selector.js.map +0 -1
- package/dist/collection/components/map-draw/polygon-buttons.js +0 -86
- package/dist/collection/components/map-draw/polygon-buttons.js.map +0 -1
- package/dist/collection/components/map-draw/polygon-information.js +0 -211
- package/dist/collection/components/map-draw/polygon-information.js.map +0 -1
- package/dist/collection/components/map-draw/tool-box.js +0 -108
- package/dist/collection/components/map-draw/tool-box.js.map +0 -1
- package/dist/collection/components/map-draw/tutorial-component.js +0 -151
- package/dist/collection/components/map-draw/tutorial-component.js.map +0 -1
- package/dist/collection/components/settings/settings.js +0 -127
- package/dist/collection/components/settings/settings.js.map +0 -1
- package/dist/collection/components/solar-expert/solar-expert.js +0 -241
- package/dist/collection/components/solar-expert/solar-expert.js.map +0 -1
- package/dist/collection/components/solar-system-form/solar-system-form.js +0 -596
- package/dist/collection/components/solar-system-form/solar-system-form.js.map +0 -1
- package/dist/collection/components/widgets/loading-widget.js +0 -18
- package/dist/collection/components/widgets/loading-widget.js.map +0 -1
- package/dist/collection/components/widgets/toast-notification.js +0 -133
- package/dist/collection/components/widgets/toast-notification.js.map +0 -1
- package/dist/collection/config.js.map +0 -1
- package/dist/collection/constants.js +0 -90
- package/dist/collection/constants.js.map +0 -1
- package/dist/collection/index.js +0 -2
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/output.css +0 -1126
- package/dist/collection/store.js +0 -43
- package/dist/collection/store.js.map +0 -1
- package/dist/collection/types/lang.js +0 -2
- package/dist/collection/types/lang.js.map +0 -1
- package/dist/collection/types/shapes.js +0 -2
- package/dist/collection/types/shapes.js.map +0 -1
- package/dist/collection/utils/api.js +0 -93
- package/dist/collection/utils/api.js.map +0 -1
- package/dist/collection/utils/images.js +0 -2
- package/dist/collection/utils/images.js.map +0 -1
- package/dist/collection/utils/lang/english.js +0 -157
- package/dist/collection/utils/lang/english.js.map +0 -1
- package/dist/collection/utils/lang/general.js +0 -30
- package/dist/collection/utils/lang/general.js.map +0 -1
- package/dist/collection/utils/lang/german.js +0 -157
- package/dist/collection/utils/lang/german.js.map +0 -1
- package/dist/collection/utils/lang/spanish.js +0 -157
- package/dist/collection/utils/lang/spanish.js.map +0 -1
- package/dist/collection/utils/render/tools.js.map +0 -1
- package/dist/collection/utils/solar.js +0 -136
- package/dist/collection/utils/solar.js.map +0 -1
- package/dist/collection/utils/theme.js +0 -97
- package/dist/collection/utils/theme.js.map +0 -1
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/eraser-icon.js +0 -11
- package/dist/components/eraser-icon.js.map +0 -1
- package/dist/components/house-icon.js +0 -11
- package/dist/components/house-icon.js.map +0 -1
- package/dist/components/icon-selector.js +0 -11
- package/dist/components/icon-selector.js.map +0 -1
- package/dist/components/index.js +0 -1269
- package/dist/components/index.js.map +0 -1
- package/dist/components/map-draw.js +0 -11
- package/dist/components/map-draw.js.map +0 -1
- package/dist/components/map-selector.js +0 -11
- package/dist/components/map-selector.js.map +0 -1
- package/dist/components/marker-icon.js +0 -11
- package/dist/components/marker-icon.js.map +0 -1
- package/dist/components/move-icon.js +0 -11
- package/dist/components/move-icon.js.map +0 -1
- package/dist/components/octagon-minus-icon.js +0 -11
- package/dist/components/octagon-minus-icon.js.map +0 -1
- package/dist/components/p-B54Ul0nf.js +0 -15
- package/dist/components/p-B54Ul0nf.js.map +0 -1
- package/dist/components/p-B5WTRCh8.js +0 -3241
- package/dist/components/p-B5WTRCh8.js.map +0 -1
- package/dist/components/p-BFJHTJPM.js.map +0 -1
- package/dist/components/p-BGoSj_DR.js +0 -902
- package/dist/components/p-BGoSj_DR.js.map +0 -1
- package/dist/components/p-BJLO76Yi.js.map +0 -1
- package/dist/components/p-BcVa4_YP.js.map +0 -1
- package/dist/components/p-Bopprtc7.js +0 -623
- package/dist/components/p-Bopprtc7.js.map +0 -1
- package/dist/components/p-ByX6QP-E.js.map +0 -1
- package/dist/components/p-C5QieOat.js.map +0 -1
- package/dist/components/p-CL74Q4VR.js.map +0 -1
- package/dist/components/p-Cgchl6bA.js +0 -47
- package/dist/components/p-Cgchl6bA.js.map +0 -1
- package/dist/components/p-D8w3bTPO.js.map +0 -1
- package/dist/components/p-DBwr8xSB.js.map +0 -1
- package/dist/components/p-DWirjxpO.js +0 -163
- package/dist/components/p-DWirjxpO.js.map +0 -1
- package/dist/components/p-DlNHVTGB.js +0 -15949
- package/dist/components/p-DlNHVTGB.js.map +0 -1
- package/dist/components/p-Dzl6kfPI.js.map +0 -1
- package/dist/components/p-FdEV2qPo.js.map +0 -1
- package/dist/components/p-PkMjF2if.js +0 -1985
- package/dist/components/p-PkMjF2if.js.map +0 -1
- package/dist/components/p-Umz6nJIv.js.map +0 -1
- package/dist/components/p-WmcSqXD8.js +0 -14
- package/dist/components/p-WmcSqXD8.js.map +0 -1
- package/dist/components/p-eDwaXClX.js.map +0 -1
- package/dist/components/p-j-vOrhhh.js +0 -114
- package/dist/components/p-j-vOrhhh.js.map +0 -1
- package/dist/components/p-q8auDIJ2.js +0 -138
- package/dist/components/p-q8auDIJ2.js.map +0 -1
- package/dist/components/p-waOPoUcA.js.map +0 -1
- package/dist/components/polygon-buttons.js +0 -11
- package/dist/components/polygon-buttons.js.map +0 -1
- package/dist/components/polygon-information.js +0 -11
- package/dist/components/polygon-information.js.map +0 -1
- package/dist/components/search-icon.js +0 -11
- package/dist/components/search-icon.js.map +0 -1
- package/dist/components/settings-icon.js +0 -11
- package/dist/components/settings-icon.js.map +0 -1
- package/dist/components/settings-modal.js +0 -11
- package/dist/components/settings-modal.js.map +0 -1
- package/dist/components/solar-expert.js.map +0 -1
- package/dist/components/solar-system-form.js +0 -11
- package/dist/components/solar-system-form.js.map +0 -1
- package/dist/components/toast-notification.js +0 -11
- package/dist/components/toast-notification.js.map +0 -1
- package/dist/components/tool-box.js +0 -11
- package/dist/components/tool-box.js.map +0 -1
- package/dist/components/tutorial-component.js +0 -11
- package/dist/components/tutorial-component.js.map +0 -1
- package/dist/components/undo-icon.js +0 -11
- package/dist/components/undo-icon.js.map +0 -1
- package/dist/esm/basedecoder-j-vOrhhh.js +0 -114
- package/dist/esm/basedecoder-j-vOrhhh.js.map +0 -1
- package/dist/esm/deflate-DHgPf9CO.js +0 -15
- package/dist/esm/eraser-icon_19.entry.js +0 -7
- package/dist/esm/eraser-icon_19.entry.js.map +0 -1
- package/dist/esm/index-C2JRBB5c.js +0 -1458
- package/dist/esm/index-C2JRBB5c.js.map +0 -1
- package/dist/esm/index.js +0 -5
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/jpeg-CJLm1GkA.js.map +0 -1
- package/dist/esm/lerc-CAiDQjTu.js +0 -4424
- package/dist/esm/lerc-CAiDQjTu.js.map +0 -1
- package/dist/esm/loader.js +0 -16
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/loading-widget.entry.js.map +0 -1
- package/dist/esm/lzw-DaOzWJUD.js.map +0 -1
- package/dist/esm/packbits-CZPyx9kx.js +0 -33
- package/dist/esm/packbits-CZPyx9kx.js.map +0 -1
- package/dist/esm/pako.esm-B5WTRCh8.js +0 -3241
- package/dist/esm/raw-pqeeWc2_.js +0 -14
- package/dist/esm/raw-pqeeWc2_.js.map +0 -1
- package/dist/esm/stencil-library.js +0 -26
- package/dist/esm/stencil-library.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/stencil-library/p-B54Ul0nf.js +0 -2
- package/dist/stencil-library/p-B54Ul0nf.js.map +0 -1
- package/dist/stencil-library/p-B5WTRCh8.js +0 -2
- package/dist/stencil-library/p-B5WTRCh8.js.map +0 -1
- package/dist/stencil-library/p-BBtmpSUK.js +0 -2
- package/dist/stencil-library/p-BBtmpSUK.js.map +0 -1
- package/dist/stencil-library/p-BGoSj_DR.js +0 -2
- package/dist/stencil-library/p-BGoSj_DR.js.map +0 -1
- package/dist/stencil-library/p-ByX6QP-E.js +0 -2
- package/dist/stencil-library/p-ByX6QP-E.js.map +0 -1
- package/dist/stencil-library/p-C2JRBB5c.js +0 -3
- package/dist/stencil-library/p-C2JRBB5c.js.map +0 -1
- package/dist/stencil-library/p-CX8V3eiN.js +0 -2
- package/dist/stencil-library/p-CX8V3eiN.js.map +0 -1
- package/dist/stencil-library/p-Cgchl6bA.js +0 -2
- package/dist/stencil-library/p-Cgchl6bA.js.map +0 -1
- package/dist/stencil-library/p-WmcSqXD8.js +0 -2
- package/dist/stencil-library/p-WmcSqXD8.js.map +0 -1
- package/dist/stencil-library/p-ab0f2031.entry.js.map +0 -1
- package/dist/stencil-library/p-cAuhy_jT.js +0 -10
- package/dist/stencil-library/p-cAuhy_jT.js.map +0 -1
- package/dist/stencil-library/p-e7b94dbb.entry.js +0 -2
- package/dist/stencil-library/p-e7b94dbb.entry.js.map +0 -1
- package/dist/stencil-library/p-j-vOrhhh.js +0 -2
- package/dist/stencil-library/p-j-vOrhhh.js.map +0 -1
- package/dist/stencil-library/p-q8auDIJ2.js +0 -2
- package/dist/stencil-library/p-q8auDIJ2.js.map +0 -1
- /package/dist/{esm → stencil-library}/app-globals-CX8V3eiN.js +0 -0
- /package/dist/{esm → stencil-library}/app-globals-CX8V3eiN.js.map +0 -0
|
@@ -1,596 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { DEFAULT_SOLAR_PANEL_TYPE } from "../../config";
|
|
3
|
-
import { getLanguageStrings } from "../../utils/lang/general";
|
|
4
|
-
import { state } from "../../store";
|
|
5
|
-
import { generateElectricCarChargingHours, simulate } from "harmonia-sim";
|
|
6
|
-
import { HEAT_PUMP_CONSUMPTION } from "../../constants";
|
|
7
|
-
import { sendLeadToNexvoro } from "../../utils/api";
|
|
8
|
-
export class SolarSystemForm {
|
|
9
|
-
systemConfigs = {};
|
|
10
|
-
polygons = [];
|
|
11
|
-
roofCanvas;
|
|
12
|
-
polygonCanvas;
|
|
13
|
-
householdConsumption = 4500;
|
|
14
|
-
consumptionProfile = "mostly_at_home";
|
|
15
|
-
electricityPrice = 0.3;
|
|
16
|
-
compensationRate = 0.07;
|
|
17
|
-
annualPriceIncrease = 2;
|
|
18
|
-
autonomy = 0;
|
|
19
|
-
costSavings = 0;
|
|
20
|
-
numberOfPanels = 5;
|
|
21
|
-
panelPeakPower = 0.4; // kW per panel
|
|
22
|
-
name = "";
|
|
23
|
-
email = "";
|
|
24
|
-
phone = "";
|
|
25
|
-
nameError = "";
|
|
26
|
-
emailError = "";
|
|
27
|
-
phoneError = "";
|
|
28
|
-
electricCar = false;
|
|
29
|
-
electricCarChargingTime = "day";
|
|
30
|
-
heatPump = 0;
|
|
31
|
-
battery = 0;
|
|
32
|
-
batteryEnabled = false;
|
|
33
|
-
compensation20Years = 0;
|
|
34
|
-
savedCosts20Years = 0;
|
|
35
|
-
maxPanels = 5;
|
|
36
|
-
kmDrivenPerYear = 10000;
|
|
37
|
-
totalEnergyConsumption = 4500;
|
|
38
|
-
totalEnergyProduction = 0;
|
|
39
|
-
isSubmitting = false;
|
|
40
|
-
submitMessage = "";
|
|
41
|
-
submitSuccess = false;
|
|
42
|
-
updateSystemConfigs() {
|
|
43
|
-
if (Object.keys(this.systemConfigs).length === 0) {
|
|
44
|
-
this.numberOfPanels = 0;
|
|
45
|
-
this.maxPanels = 0;
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
this.numberOfPanels = Object.keys(this.systemConfigs).reduce((acc, curr) => acc + this.systemConfigs[curr].numberOfPanels, 0);
|
|
49
|
-
this.maxPanels = Object.keys(this.systemConfigs).reduce((acc, curr) => acc + this.systemConfigs[curr].numberOfPanels, 0);
|
|
50
|
-
this.panelPeakPower = Object.entries(this.systemConfigs)[0][1][0]
|
|
51
|
-
?.panel.kWattPeak ?? 0.44;
|
|
52
|
-
this.recalculate();
|
|
53
|
-
}
|
|
54
|
-
formatEuropeanNumber(num, decimals = 2) {
|
|
55
|
-
const fixed = num.toFixed(decimals);
|
|
56
|
-
const [integerPart, decimalPart] = fixed.split(".");
|
|
57
|
-
// Add dots as thousands separators
|
|
58
|
-
const formattedInteger = integerPart.replace(/\B(?=(\d{3})+(?!\d))/g, ".");
|
|
59
|
-
// Join with comma as decimal separator
|
|
60
|
-
return decimalPart
|
|
61
|
-
? `${formattedInteger},${decimalPart}`
|
|
62
|
-
: formattedInteger;
|
|
63
|
-
}
|
|
64
|
-
recalculate() {
|
|
65
|
-
const currentSystemConfigs = {};
|
|
66
|
-
let totalNumberOfPanels = 0;
|
|
67
|
-
for (const [key, value] of Object.entries(this.systemConfigs)) {
|
|
68
|
-
if (totalNumberOfPanels >= this.numberOfPanels) {
|
|
69
|
-
break;
|
|
70
|
-
}
|
|
71
|
-
if (value.numberOfPanels + totalNumberOfPanels > this.numberOfPanels) {
|
|
72
|
-
currentSystemConfigs[key] = {
|
|
73
|
-
...value,
|
|
74
|
-
numberOfPanels: this.numberOfPanels - totalNumberOfPanels,
|
|
75
|
-
};
|
|
76
|
-
totalNumberOfPanels = this.numberOfPanels;
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
currentSystemConfigs[key] = value;
|
|
80
|
-
totalNumberOfPanels += value.numberOfPanels;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
const simulationConfig = {
|
|
84
|
-
general: {
|
|
85
|
-
simulationYears: 20,
|
|
86
|
-
},
|
|
87
|
-
householdConsumption: {
|
|
88
|
-
consumptionProfile: this.consumptionProfile,
|
|
89
|
-
winterConsumptionFactor: 1.4,
|
|
90
|
-
summerConsumptionFactor: 0.6,
|
|
91
|
-
averageConsumption: this.householdConsumption / 365,
|
|
92
|
-
},
|
|
93
|
-
electricityPrice: {
|
|
94
|
-
purchase: this.electricityPrice,
|
|
95
|
-
sell: this.compensationRate,
|
|
96
|
-
increase: this.annualPriceIncrease / 100,
|
|
97
|
-
},
|
|
98
|
-
solarSystems: currentSystemConfigs,
|
|
99
|
-
batteryKWh: this.battery,
|
|
100
|
-
solarRadiation: {
|
|
101
|
-
winterFactor: 0.2,
|
|
102
|
-
summerFactor: 0.6,
|
|
103
|
-
},
|
|
104
|
-
heatPump: {
|
|
105
|
-
m2: this.heatPump,
|
|
106
|
-
consumptionPerM2: HEAT_PUMP_CONSUMPTION / 365,
|
|
107
|
-
},
|
|
108
|
-
electricCar: this.electricCar
|
|
109
|
-
? {
|
|
110
|
-
averageKilometersPerDay: this.kmDrivenPerYear / 365,
|
|
111
|
-
consumptionkWhPer100km: 20,
|
|
112
|
-
batteryKWh: 80,
|
|
113
|
-
chargingHours: this.electricCarChargingTime === "day"
|
|
114
|
-
? generateElectricCarChargingHours(6, 18)
|
|
115
|
-
: generateElectricCarChargingHours(18, 6),
|
|
116
|
-
}
|
|
117
|
-
: undefined,
|
|
118
|
-
};
|
|
119
|
-
const result = simulate(simulationConfig);
|
|
120
|
-
this.compensation20Years = result.compensationPerDay * 365 * 20;
|
|
121
|
-
this.savedCosts20Years = result.byYearSavedCosts.reduce((acc, curr) => acc + curr, 0) + this.compensation20Years;
|
|
122
|
-
this.costSavings = result.byYearSavedCosts[0];
|
|
123
|
-
this.autonomy = result.autonomy * 100;
|
|
124
|
-
this.totalEnergyConsumption = result.totalEnergyConsumptionDay * 365;
|
|
125
|
-
// Calculate total energy production based on compensation and rate
|
|
126
|
-
this.totalEnergyProduction = result.totalEnergyProduction * 365;
|
|
127
|
-
}
|
|
128
|
-
componentWillLoad() {
|
|
129
|
-
this.updateSystemConfigs();
|
|
130
|
-
}
|
|
131
|
-
validateForm() {
|
|
132
|
-
let isValid = true;
|
|
133
|
-
const t = getLanguageStrings(state.settings.language);
|
|
134
|
-
// Validate name
|
|
135
|
-
if (!this.name.trim()) {
|
|
136
|
-
this.nameError = t.solarSystemForm.nameError;
|
|
137
|
-
isValid = false;
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
this.nameError = "";
|
|
141
|
-
}
|
|
142
|
-
// Validate email
|
|
143
|
-
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
144
|
-
if (!this.email.trim()) {
|
|
145
|
-
this.emailError = t.solarSystemForm.emailError;
|
|
146
|
-
isValid = false;
|
|
147
|
-
}
|
|
148
|
-
else if (!emailRegex.test(this.email)) {
|
|
149
|
-
this.emailError = t.solarSystemForm.validEmailError;
|
|
150
|
-
isValid = false;
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
this.emailError = "";
|
|
154
|
-
}
|
|
155
|
-
// Validate phone (optional)
|
|
156
|
-
const phoneRegex = /^[\+]?[1-9][\d]{0,15}$/;
|
|
157
|
-
if (this.phone.trim() &&
|
|
158
|
-
!phoneRegex.test(this.phone.replace(/[\s\-\(\)]/g, ""))) {
|
|
159
|
-
this.phoneError = t.solarSystemForm.phoneError;
|
|
160
|
-
isValid = false;
|
|
161
|
-
}
|
|
162
|
-
else {
|
|
163
|
-
this.phoneError = "";
|
|
164
|
-
}
|
|
165
|
-
return isValid;
|
|
166
|
-
}
|
|
167
|
-
async handleRequestOffer() {
|
|
168
|
-
if (!this.validateForm()) {
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
this.isSubmitting = true;
|
|
172
|
-
this.submitMessage = "";
|
|
173
|
-
this.submitSuccess = false;
|
|
174
|
-
const t = getLanguageStrings(state.settings.language);
|
|
175
|
-
try {
|
|
176
|
-
const leadData = {
|
|
177
|
-
location: {
|
|
178
|
-
name: state.location,
|
|
179
|
-
latitude: state.latitude,
|
|
180
|
-
longitude: state.longitude,
|
|
181
|
-
},
|
|
182
|
-
systemConfig: {
|
|
183
|
-
maxNumberOfPanels: this.maxPanels,
|
|
184
|
-
panelPeakPower: this.panelPeakPower,
|
|
185
|
-
polygons: this.polygons,
|
|
186
|
-
solarSystems: this.systemConfigs,
|
|
187
|
-
electricityPrice: this.electricityPrice,
|
|
188
|
-
compensationRate: this.compensationRate,
|
|
189
|
-
annualPriceIncrease: this.annualPriceIncrease,
|
|
190
|
-
},
|
|
191
|
-
client: {
|
|
192
|
-
name: this.name,
|
|
193
|
-
email: this.email,
|
|
194
|
-
phone: this.phone,
|
|
195
|
-
consumption: this.householdConsumption,
|
|
196
|
-
consumptionProfile: this.consumptionProfile,
|
|
197
|
-
hasBattery: this.batteryEnabled,
|
|
198
|
-
battery: this.battery,
|
|
199
|
-
hasHeatPump: this.heatPump > 0,
|
|
200
|
-
heatPumpM2: this.heatPump,
|
|
201
|
-
hasElectricCar: this.electricCar,
|
|
202
|
-
electricCarChargingTime: this.electricCarChargingTime,
|
|
203
|
-
electricCarKmPerYear: this.kmDrivenPerYear,
|
|
204
|
-
},
|
|
205
|
-
images: {
|
|
206
|
-
roof: this.roofCanvas.toDataURL(),
|
|
207
|
-
polygon: this.polygonCanvas.toDataURL(),
|
|
208
|
-
},
|
|
209
|
-
results: {
|
|
210
|
-
autonomy: this.autonomy,
|
|
211
|
-
costSavings: this.costSavings,
|
|
212
|
-
compensation20Years: this.compensation20Years,
|
|
213
|
-
savedCosts20Years: this.savedCosts20Years,
|
|
214
|
-
totalEnergyConsumption: this.totalEnergyConsumption,
|
|
215
|
-
},
|
|
216
|
-
};
|
|
217
|
-
console.log("leadData", leadData);
|
|
218
|
-
const result = await sendLeadToNexvoro(leadData);
|
|
219
|
-
this.submitSuccess = result.success;
|
|
220
|
-
if (result.success) {
|
|
221
|
-
console.log("Lead successfully sent to Nexvoro", result);
|
|
222
|
-
this.submitMessage = t.solarSystemForm.leadSubmitted;
|
|
223
|
-
// Optionally reset form or show success message
|
|
224
|
-
}
|
|
225
|
-
else {
|
|
226
|
-
console.error("Failed to send lead to Nexvoro:", result.message);
|
|
227
|
-
this.submitMessage = t.solarSystemForm.leadError;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
catch (error) {
|
|
231
|
-
console.error("Error in handleRequestOffer:", error);
|
|
232
|
-
this.submitSuccess = false;
|
|
233
|
-
this.submitMessage = error instanceof Error
|
|
234
|
-
? error.message
|
|
235
|
-
: "An unexpected error occurred";
|
|
236
|
-
}
|
|
237
|
-
finally {
|
|
238
|
-
this.isSubmitting = false;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
isIOS() {
|
|
242
|
-
return state.isIOS;
|
|
243
|
-
}
|
|
244
|
-
render() {
|
|
245
|
-
const t = getLanguageStrings(state.settings.language);
|
|
246
|
-
// Reusable style objects
|
|
247
|
-
const borderStyle = { border: "1px solid var(--color-border)" };
|
|
248
|
-
const errorBorderStyle = { border: "1px solid var(--color-error)" };
|
|
249
|
-
return (h("div", { key: 'bb41415c5998e8c1d3e98df49bb13f601410c09d', class: "flex flex-col justify-center items-center w-full h-full pt-4" // style={{
|
|
250
|
-
,
|
|
251
|
-
// display: (Object.keys(this.systemConfigs).length === 0)
|
|
252
|
-
// ? "none"
|
|
253
|
-
// : "flex",
|
|
254
|
-
// }}
|
|
255
|
-
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()
|
|
256
|
-
? (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 }))
|
|
257
|
-
: (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) => {
|
|
258
|
-
const value = parseInt(e.target
|
|
259
|
-
.value);
|
|
260
|
-
if (value >= 1 &&
|
|
261
|
-
value <=
|
|
262
|
-
this.maxPanels) {
|
|
263
|
-
this.numberOfPanels =
|
|
264
|
-
value;
|
|
265
|
-
this.recalculate();
|
|
266
|
-
}
|
|
267
|
-
} }))), !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) => {
|
|
268
|
-
this.numberOfPanels = parseInt(e.target
|
|
269
|
-
.value);
|
|
270
|
-
if (isNaN(this.numberOfPanels)) {
|
|
271
|
-
this.numberOfPanels = 0;
|
|
272
|
-
}
|
|
273
|
-
this.recalculate();
|
|
274
|
-
} }))), 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 *
|
|
275
|
-
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) => {
|
|
276
|
-
this.householdConsumption = parseInt(e.target
|
|
277
|
-
.value);
|
|
278
|
-
this.recalculate();
|
|
279
|
-
} }), 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) => {
|
|
280
|
-
this.consumptionProfile =
|
|
281
|
-
e.target
|
|
282
|
-
.value;
|
|
283
|
-
this.recalculate();
|
|
284
|
-
} }, h("option", { key: '26c2fdbcb3646323157dfa6f9f66d6b8ca924c72', value: "mostly_at_home", selected: this.consumptionProfile ===
|
|
285
|
-
"mostly_at_home" }, t.solarSystemForm.consumptionProfiles
|
|
286
|
-
.mostlyAtHome), h("option", { key: 'f3b9527d607657efc4ff75d93576fd765aa97975', value: "mostly_away", selected: this.consumptionProfile ===
|
|
287
|
-
"mostly_away" }, t.solarSystemForm.consumptionProfiles
|
|
288
|
-
.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) => {
|
|
289
|
-
this.heatPump =
|
|
290
|
-
e.target
|
|
291
|
-
.checked
|
|
292
|
-
? 100
|
|
293
|
-
: 0;
|
|
294
|
-
this.recalculate();
|
|
295
|
-
} }), h("label", { key: 'f73944ac3cd52ab5ac7358d8dfd520720ad43c1b', htmlFor: "heatPump", class: "text-text-muted" }, t.solarSystemForm
|
|
296
|
-
.additionalComponents
|
|
297
|
-
.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()
|
|
298
|
-
? (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) => {
|
|
299
|
-
let value = parseInt(e.target
|
|
300
|
-
.value);
|
|
301
|
-
if (isNaN(value)) {
|
|
302
|
-
value = 0;
|
|
303
|
-
}
|
|
304
|
-
if (value >= 0 &&
|
|
305
|
-
value <= 300) {
|
|
306
|
-
this.heatPump =
|
|
307
|
-
value;
|
|
308
|
-
this.recalculate();
|
|
309
|
-
}
|
|
310
|
-
} }), h("span", { class: "text-sm text-text-muted" }, "m\u00B2")))
|
|
311
|
-
: (h("input", { type: "range", min: "10", max: "300", step: "10", class: "input-slider 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.heatPump, onInput: (e) => {
|
|
312
|
-
this.heatPump =
|
|
313
|
-
parseInt(e.target
|
|
314
|
-
.value);
|
|
315
|
-
this.recalculate();
|
|
316
|
-
} }))))), 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) => {
|
|
317
|
-
this.electricCar =
|
|
318
|
-
e.target
|
|
319
|
-
.checked;
|
|
320
|
-
this.recalculate();
|
|
321
|
-
} }), h("label", { key: 'a148ffb1488169ef9e383c5483145f3163c38172', htmlFor: "electricCar", class: "text-text-muted" }, t.solarSystemForm
|
|
322
|
-
.additionalComponents
|
|
323
|
-
.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
|
|
324
|
-
.additionalComponents
|
|
325
|
-
.chargingTime), h("label", { key: '7bedc4d1e43fb5e10f04a4ae2b91abf10c56da2c', class: "text-sm text-text-muted" }, t.solarSystemForm
|
|
326
|
-
.additionalComponents
|
|
327
|
-
.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) => {
|
|
328
|
-
this.electricCarChargingTime =
|
|
329
|
-
e.target
|
|
330
|
-
.value;
|
|
331
|
-
this.recalculate();
|
|
332
|
-
}, style: borderStyle }, h("option", { key: '544ae8957ab71cdfd3ad438031d5b3235a321f56', value: "day", selected: this
|
|
333
|
-
.electricCarChargingTime ===
|
|
334
|
-
"day" }, t.solarSystemForm
|
|
335
|
-
.additionalComponents
|
|
336
|
-
.chargingTimeDay), h("option", { key: '04d71d6537186ecda58784b3f70e357a3c36f85f', value: "night", selected: this
|
|
337
|
-
.electricCarChargingTime ===
|
|
338
|
-
"night" }, t.solarSystemForm
|
|
339
|
-
.additionalComponents
|
|
340
|
-
.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) => {
|
|
341
|
-
this.kmDrivenPerYear =
|
|
342
|
-
parseInt(e.target
|
|
343
|
-
.value);
|
|
344
|
-
if (isNaN(this.kmDrivenPerYear)) {
|
|
345
|
-
this.kmDrivenPerYear =
|
|
346
|
-
0;
|
|
347
|
-
}
|
|
348
|
-
this.recalculate();
|
|
349
|
-
}, 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) => {
|
|
350
|
-
this.batteryEnabled =
|
|
351
|
-
e.target
|
|
352
|
-
.checked;
|
|
353
|
-
this.battery =
|
|
354
|
-
this.batteryEnabled
|
|
355
|
-
? 5
|
|
356
|
-
: 0;
|
|
357
|
-
this.recalculate();
|
|
358
|
-
} }), h("label", { key: 'e40e64ca8bd60afddef286b7e4aa5cf369217eb2', htmlFor: "battery", class: "text-text-muted" }, t.solarSystemForm
|
|
359
|
-
.additionalComponents
|
|
360
|
-
.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()
|
|
361
|
-
? (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) => {
|
|
362
|
-
let value = parseInt(e.target
|
|
363
|
-
.value);
|
|
364
|
-
if (isNaN(value)) {
|
|
365
|
-
value = 0;
|
|
366
|
-
}
|
|
367
|
-
if (value >= 0 &&
|
|
368
|
-
value <= 20) {
|
|
369
|
-
this.battery =
|
|
370
|
-
value;
|
|
371
|
-
}
|
|
372
|
-
else {
|
|
373
|
-
this.battery =
|
|
374
|
-
20;
|
|
375
|
-
}
|
|
376
|
-
this.recalculate();
|
|
377
|
-
}, style: borderStyle }), h("span", { class: "text-sm text-text-muted" }, "kWh")))
|
|
378
|
-
: (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) => {
|
|
379
|
-
const value = parseInt(e.target
|
|
380
|
-
.value);
|
|
381
|
-
this.battery = value;
|
|
382
|
-
this.batteryEnabled =
|
|
383
|
-
value > 0;
|
|
384
|
-
this.recalculate();
|
|
385
|
-
} }))))))), 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: {
|
|
386
|
-
display: "grid",
|
|
387
|
-
gridTemplateColumns: "repeat(auto-fit, minmax(100px, 1fr))",
|
|
388
|
-
gap: "1rem",
|
|
389
|
-
} }, 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) => {
|
|
390
|
-
this.electricityPrice = parseFloat(e.target
|
|
391
|
-
.value);
|
|
392
|
-
this.recalculate();
|
|
393
|
-
} })), 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) => {
|
|
394
|
-
this.compensationRate = parseFloat(e.target
|
|
395
|
-
.value);
|
|
396
|
-
this.recalculate();
|
|
397
|
-
} })), 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) => {
|
|
398
|
-
this.annualPriceIncrease = parseFloat(e.target
|
|
399
|
-
.value);
|
|
400
|
-
this.recalculate();
|
|
401
|
-
} })))), 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
|
|
402
|
-
? "100"
|
|
403
|
-
: 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
|
|
404
|
-
.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
|
|
405
|
-
.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: {
|
|
406
|
-
display: "grid",
|
|
407
|
-
gridTemplateColumns: "repeat(auto-fit, minmax(1 00px, 1fr))",
|
|
408
|
-
gap: "1rem",
|
|
409
|
-
} }, 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
|
|
410
|
-
? errorBorderStyle
|
|
411
|
-
: borderStyle, value: this.name, onInput: (e) => {
|
|
412
|
-
this.name =
|
|
413
|
-
e.target
|
|
414
|
-
.value;
|
|
415
|
-
this.validateForm();
|
|
416
|
-
}, 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
|
|
417
|
-
? errorBorderStyle
|
|
418
|
-
: borderStyle, value: this.email, onInput: (e) => {
|
|
419
|
-
this.email =
|
|
420
|
-
e.target
|
|
421
|
-
.value;
|
|
422
|
-
this.validateForm();
|
|
423
|
-
}, 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
|
|
424
|
-
? errorBorderStyle
|
|
425
|
-
: borderStyle, value: this.phone, onInput: (e) => {
|
|
426
|
-
this.phone =
|
|
427
|
-
e.target
|
|
428
|
-
.value;
|
|
429
|
-
this.validateForm();
|
|
430
|
-
}, 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() ||
|
|
431
|
-
!this.email.trim() || !!this.nameError ||
|
|
432
|
-
!!this.emailError || !!this.phoneError ||
|
|
433
|
-
this.isSubmitting, class: `px-6 py-3 rounded-4xl transition-colors duration-200 flex items-center gap-2 ${this.isSubmitting
|
|
434
|
-
? "bg-muted text-text-muted cursor-not-allowed"
|
|
435
|
-
: "bg-secondary hover:bg-tertiary"}`, style: {
|
|
436
|
-
color: this.isSubmitting
|
|
437
|
-
? "var(--color-text-muted)"
|
|
438
|
-
: "#ffffff",
|
|
439
|
-
} }, this.isSubmitting && (h("div", { key: 'e5aad83a4c2f4838e303f9447b26db9a3094aa14', class: "w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin" })), this.isSubmitting
|
|
440
|
-
? t.solarSystemForm.sending
|
|
441
|
-
: t.solarSystemForm.requestOfferButton), this.submitMessage && (h("div", { key: '72a6cfc9becc8f24a4aa2072c8706a5bcec0319e', class: `text-sm px-4 py-2 rounded-4xl ${this.submitSuccess
|
|
442
|
-
? "bg-success/10 text-success border border-success/20"
|
|
443
|
-
: "bg-error/10 text-error border border-error/20"}` }, this.submitMessage)))))));
|
|
444
|
-
}
|
|
445
|
-
static get is() { return "solar-system-form"; }
|
|
446
|
-
static get originalStyleUrls() {
|
|
447
|
-
return {
|
|
448
|
-
"$": ["../../output.css"]
|
|
449
|
-
};
|
|
450
|
-
}
|
|
451
|
-
static get styleUrls() {
|
|
452
|
-
return {
|
|
453
|
-
"$": ["../../output.css"]
|
|
454
|
-
};
|
|
455
|
-
}
|
|
456
|
-
static get properties() {
|
|
457
|
-
return {
|
|
458
|
-
"systemConfigs": {
|
|
459
|
-
"type": "unknown",
|
|
460
|
-
"attribute": "system-configs",
|
|
461
|
-
"mutable": false,
|
|
462
|
-
"complexType": {
|
|
463
|
-
"original": "{ [id: string]: SolarSystem }",
|
|
464
|
-
"resolved": "{ [id: string]: SolarSystem; }",
|
|
465
|
-
"references": {
|
|
466
|
-
"SolarSystem": {
|
|
467
|
-
"location": "import",
|
|
468
|
-
"path": "harmonia-sim",
|
|
469
|
-
"id": "../../../harmonia/packages/harmonia-sim/dist/index.d.ts::SolarSystem"
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
},
|
|
473
|
-
"required": false,
|
|
474
|
-
"optional": false,
|
|
475
|
-
"docs": {
|
|
476
|
-
"tags": [],
|
|
477
|
-
"text": ""
|
|
478
|
-
},
|
|
479
|
-
"getter": false,
|
|
480
|
-
"setter": false,
|
|
481
|
-
"defaultValue": "{}"
|
|
482
|
-
},
|
|
483
|
-
"polygons": {
|
|
484
|
-
"type": "unknown",
|
|
485
|
-
"attribute": "polygons",
|
|
486
|
-
"mutable": false,
|
|
487
|
-
"complexType": {
|
|
488
|
-
"original": "Polygon[]",
|
|
489
|
-
"resolved": "Polygon[]",
|
|
490
|
-
"references": {
|
|
491
|
-
"Polygon": {
|
|
492
|
-
"location": "import",
|
|
493
|
-
"path": "harmonia-types",
|
|
494
|
-
"id": "../../../harmonia/packages/harmonia-types/dist/index.d.ts::Polygon"
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
},
|
|
498
|
-
"required": false,
|
|
499
|
-
"optional": false,
|
|
500
|
-
"docs": {
|
|
501
|
-
"tags": [],
|
|
502
|
-
"text": ""
|
|
503
|
-
},
|
|
504
|
-
"getter": false,
|
|
505
|
-
"setter": false,
|
|
506
|
-
"defaultValue": "[]"
|
|
507
|
-
},
|
|
508
|
-
"roofCanvas": {
|
|
509
|
-
"type": "unknown",
|
|
510
|
-
"attribute": "roof-canvas",
|
|
511
|
-
"mutable": false,
|
|
512
|
-
"complexType": {
|
|
513
|
-
"original": "HTMLCanvasElement",
|
|
514
|
-
"resolved": "HTMLCanvasElement",
|
|
515
|
-
"references": {
|
|
516
|
-
"HTMLCanvasElement": {
|
|
517
|
-
"location": "global",
|
|
518
|
-
"id": "global::HTMLCanvasElement"
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
},
|
|
522
|
-
"required": false,
|
|
523
|
-
"optional": false,
|
|
524
|
-
"docs": {
|
|
525
|
-
"tags": [],
|
|
526
|
-
"text": ""
|
|
527
|
-
},
|
|
528
|
-
"getter": false,
|
|
529
|
-
"setter": false
|
|
530
|
-
},
|
|
531
|
-
"polygonCanvas": {
|
|
532
|
-
"type": "unknown",
|
|
533
|
-
"attribute": "polygon-canvas",
|
|
534
|
-
"mutable": false,
|
|
535
|
-
"complexType": {
|
|
536
|
-
"original": "HTMLCanvasElement",
|
|
537
|
-
"resolved": "HTMLCanvasElement",
|
|
538
|
-
"references": {
|
|
539
|
-
"HTMLCanvasElement": {
|
|
540
|
-
"location": "global",
|
|
541
|
-
"id": "global::HTMLCanvasElement"
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
},
|
|
545
|
-
"required": false,
|
|
546
|
-
"optional": false,
|
|
547
|
-
"docs": {
|
|
548
|
-
"tags": [],
|
|
549
|
-
"text": ""
|
|
550
|
-
},
|
|
551
|
-
"getter": false,
|
|
552
|
-
"setter": false
|
|
553
|
-
}
|
|
554
|
-
};
|
|
555
|
-
}
|
|
556
|
-
static get states() {
|
|
557
|
-
return {
|
|
558
|
-
"householdConsumption": {},
|
|
559
|
-
"consumptionProfile": {},
|
|
560
|
-
"electricityPrice": {},
|
|
561
|
-
"compensationRate": {},
|
|
562
|
-
"annualPriceIncrease": {},
|
|
563
|
-
"autonomy": {},
|
|
564
|
-
"costSavings": {},
|
|
565
|
-
"numberOfPanels": {},
|
|
566
|
-
"panelPeakPower": {},
|
|
567
|
-
"name": {},
|
|
568
|
-
"email": {},
|
|
569
|
-
"phone": {},
|
|
570
|
-
"nameError": {},
|
|
571
|
-
"emailError": {},
|
|
572
|
-
"phoneError": {},
|
|
573
|
-
"electricCar": {},
|
|
574
|
-
"electricCarChargingTime": {},
|
|
575
|
-
"heatPump": {},
|
|
576
|
-
"battery": {},
|
|
577
|
-
"batteryEnabled": {},
|
|
578
|
-
"compensation20Years": {},
|
|
579
|
-
"savedCosts20Years": {},
|
|
580
|
-
"maxPanels": {},
|
|
581
|
-
"kmDrivenPerYear": {},
|
|
582
|
-
"totalEnergyConsumption": {},
|
|
583
|
-
"totalEnergyProduction": {},
|
|
584
|
-
"isSubmitting": {},
|
|
585
|
-
"submitMessage": {},
|
|
586
|
-
"submitSuccess": {}
|
|
587
|
-
};
|
|
588
|
-
}
|
|
589
|
-
static get watchers() {
|
|
590
|
-
return [{
|
|
591
|
-
"propName": "systemConfigs",
|
|
592
|
-
"methodName": "updateSystemConfigs"
|
|
593
|
-
}];
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
//# sourceMappingURL=solar-system-form.js.map
|