blue-chestnut-solar-expert 0.0.68 → 0.0.69
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/app-globals-I24yU8do.js +10 -0
- package/dist/cjs/app-globals-I24yU8do.js.map +1 -0
- package/dist/cjs/basedecoder-CQuzfSgz.js +116 -0
- package/dist/cjs/basedecoder-CQuzfSgz.js.map +1 -0
- package/dist/cjs/deflate-AzGzQSW2.js +17 -0
- package/dist/cjs/deflate-AzGzQSW2.js.map +1 -0
- package/dist/cjs/eraser-icon_19.cjs.entry.js +31 -0
- package/dist/cjs/eraser-icon_19.cjs.entry.js.map +1 -0
- package/dist/cjs/index-HgRXF6kp.js +1470 -0
- package/dist/cjs/index-HgRXF6kp.js.map +1 -0
- package/dist/cjs/index.cjs.js +7 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/jpeg-Bx3bTm32.js +904 -0
- package/dist/cjs/jpeg-Bx3bTm32.js.map +1 -0
- package/dist/cjs/lerc-Bdx5y-yw.js +4427 -0
- package/dist/cjs/lerc-Bdx5y-yw.js.map +1 -0
- package/dist/cjs/loader.cjs.js +18 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/loading-widget.cjs.entry.js +22 -0
- package/dist/{stencil-library/polygon-information.entry.esm.js.map → cjs/loading-widget.cjs.entry.js.map} +1 -1
- package/dist/cjs/loading-widget.entry.cjs.js.map +1 -0
- package/dist/cjs/lzw-BmFug486.js +140 -0
- package/dist/cjs/lzw-BmFug486.js.map +1 -0
- package/dist/cjs/packbits-CYx9fB0v.js +35 -0
- package/dist/cjs/packbits-CYx9fB0v.js.map +1 -0
- package/dist/cjs/pako.esm-0mKI6Jik.js +3243 -0
- package/dist/cjs/pako.esm-0mKI6Jik.js.map +1 -0
- package/dist/cjs/raw-DC82yoyr.js +16 -0
- package/dist/cjs/raw-DC82yoyr.js.map +1 -0
- package/dist/cjs/stencil-library.cjs.js +30 -0
- package/dist/cjs/stencil-library.cjs.js.map +1 -0
- package/dist/cjs/webimage-Dc0t2xAB.js +49 -0
- package/dist/cjs/webimage-Dc0t2xAB.js.map +1 -0
- package/dist/collection/collection-manifest.json +31 -0
- package/dist/collection/components/icons/eraser.js +64 -0
- package/dist/collection/components/icons/eraser.js.map +1 -0
- package/dist/collection/components/icons/house.js +64 -0
- package/dist/collection/components/icons/house.js.map +1 -0
- package/dist/collection/components/icons/icon.js +108 -0
- package/dist/collection/components/icons/icon.js.map +1 -0
- package/dist/collection/components/icons/marker.js +64 -0
- package/dist/collection/components/icons/marker.js.map +1 -0
- package/dist/collection/components/icons/move.js +64 -0
- package/dist/collection/components/icons/move.js.map +1 -0
- package/dist/collection/components/icons/octagonMinus.js +64 -0
- package/dist/collection/components/icons/octagonMinus.js.map +1 -0
- package/dist/collection/components/icons/search.js +64 -0
- package/dist/collection/components/icons/search.js.map +1 -0
- package/dist/collection/components/icons/settings.js +64 -0
- package/dist/collection/components/icons/settings.js.map +1 -0
- package/dist/collection/components/icons/undo.js +64 -0
- package/dist/collection/components/icons/undo.js.map +1 -0
- package/dist/collection/components/map-draw/map-draw.js +824 -0
- package/dist/collection/components/map-draw/map-draw.js.map +1 -0
- package/dist/collection/components/map-draw/map-selector.js +246 -0
- package/dist/collection/components/map-draw/map-selector.js.map +1 -0
- package/dist/collection/components/map-draw/polygon-buttons.js +86 -0
- package/dist/collection/components/map-draw/polygon-buttons.js.map +1 -0
- package/dist/collection/components/map-draw/polygon-information.js +211 -0
- package/dist/collection/components/map-draw/polygon-information.js.map +1 -0
- package/dist/collection/components/map-draw/tool-box.js +108 -0
- package/dist/collection/components/map-draw/tool-box.js.map +1 -0
- package/dist/collection/components/map-draw/tutorial-component.js +219 -0
- package/dist/collection/components/map-draw/tutorial-component.js.map +1 -0
- package/dist/collection/components/settings/settings.js +127 -0
- package/dist/collection/components/settings/settings.js.map +1 -0
- package/dist/collection/components/solar-expert/solar-expert.js +241 -0
- package/dist/collection/components/solar-expert/solar-expert.js.map +1 -0
- package/dist/collection/components/solar-system-form/solar-system-form.js +617 -0
- package/dist/collection/components/solar-system-form/solar-system-form.js.map +1 -0
- package/dist/collection/components/widgets/loading-widget.js +18 -0
- package/dist/collection/components/widgets/loading-widget.js.map +1 -0
- package/dist/collection/components/widgets/toast-notification.js +133 -0
- package/dist/collection/components/widgets/toast-notification.js.map +1 -0
- package/dist/{stencil-library/config-CWfV1nKn.js → collection/config.js} +4 -10
- package/dist/collection/config.js.map +1 -0
- package/dist/collection/constants.js +90 -0
- package/dist/collection/constants.js.map +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/output.css +1126 -0
- package/dist/collection/store.js +43 -0
- package/dist/collection/store.js.map +1 -0
- package/dist/collection/types/lang.js +2 -0
- package/dist/collection/types/lang.js.map +1 -0
- package/dist/collection/types/shapes.js +2 -0
- package/dist/collection/types/shapes.js.map +1 -0
- package/dist/collection/utils/api.js +94 -0
- package/dist/collection/utils/api.js.map +1 -0
- package/dist/collection/utils/images.js +2 -0
- package/dist/collection/utils/images.js.map +1 -0
- package/dist/collection/utils/lang/english.js +164 -0
- package/dist/collection/utils/lang/english.js.map +1 -0
- package/dist/collection/utils/lang/general.js +30 -0
- package/dist/collection/utils/lang/general.js.map +1 -0
- package/dist/collection/utils/lang/german.js +164 -0
- package/dist/collection/utils/lang/german.js.map +1 -0
- package/dist/collection/utils/lang/spanish.js +164 -0
- package/dist/collection/utils/lang/spanish.js.map +1 -0
- package/dist/{stencil-library/tools-BNYKV5H5.js → collection/utils/render/tools.js} +8 -14
- package/dist/collection/utils/render/tools.js.map +1 -0
- package/dist/collection/utils/solar.js +135 -0
- package/dist/collection/utils/solar.js.map +1 -0
- package/dist/collection/utils/theme.js +97 -0
- package/dist/collection/utils/theme.js.map +1 -0
- package/dist/{stencil-library/utils-BCUZxI9u.js → collection/utils/utils.js} +3 -9
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/eraser-icon.js +11 -0
- package/dist/components/eraser-icon.js.map +1 -0
- package/dist/components/house-icon.js +11 -0
- package/dist/components/house-icon.js.map +1 -0
- package/dist/components/icon-selector.js +11 -0
- package/dist/components/icon-selector.js.map +1 -0
- package/dist/components/index.js +1269 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/loading-widget.js +38 -0
- package/dist/{stencil-library/marker-icon.entry.esm.js.map → components/loading-widget.js.map} +1 -1
- package/dist/components/map-draw.js +11 -0
- package/dist/components/map-draw.js.map +1 -0
- package/dist/components/map-selector.js +11 -0
- package/dist/components/map-selector.js.map +1 -0
- package/dist/components/marker-icon.js +11 -0
- package/dist/components/marker-icon.js.map +1 -0
- package/dist/components/move-icon.js +11 -0
- package/dist/components/move-icon.js.map +1 -0
- package/dist/components/octagon-minus-icon.js +11 -0
- package/dist/components/octagon-minus-icon.js.map +1 -0
- package/dist/{stencil-library/polygon-buttons.entry.js → components/p-26DHwbCE.js} +29 -10
- package/dist/{stencil-library/solar-expert.entry.js.map → components/p-26DHwbCE.js.map} +1 -1
- package/dist/components/p-B54Ul0nf.js +15 -0
- package/dist/components/p-B54Ul0nf.js.map +1 -0
- package/dist/components/p-B5WTRCh8.js +3241 -0
- package/dist/components/p-B5WTRCh8.js.map +1 -0
- package/dist/{stencil-library/jpeg-Dd5nnHR5.js → components/p-BGoSj_DR.js} +3 -11
- package/dist/components/p-BGoSj_DR.js.map +1 -0
- package/dist/{stencil-library/octagon-minus-icon.entry.js → components/p-BJLO76Yi.js} +27 -9
- package/dist/components/p-BJLO76Yi.js.map +1 -0
- package/dist/components/p-BOe-Z8rz.js +16323 -0
- package/dist/components/p-BOe-Z8rz.js.map +1 -0
- package/dist/{stencil-library/map-selector.entry.js → components/p-Bduzzygj.js} +453 -12
- package/dist/components/p-Bduzzygj.js.map +1 -0
- package/dist/{stencil-library/packbits-X3R_utTs.js → components/p-ByX6QP-E.js} +3 -9
- package/dist/components/p-ByX6QP-E.js.map +1 -0
- package/dist/{stencil-library/solar-system-form.entry.js → components/p-C3ZXE525.js} +382 -80
- package/dist/components/p-C3ZXE525.js.map +1 -0
- package/dist/{stencil-library/icon-selector.entry.js → components/p-C5QieOat.js} +76 -9
- package/dist/components/p-C5QieOat.js.map +1 -0
- package/dist/{stencil-library/eraser-icon.entry.js → components/p-CL74Q4VR.js} +27 -9
- package/dist/components/p-CL74Q4VR.js.map +1 -0
- package/dist/{stencil-library/webimage-CBrfoxHM.js → components/p-Cgchl6bA.js} +3 -9
- package/dist/components/p-Cgchl6bA.js.map +1 -0
- package/dist/{stencil-library/tool-box.entry.js → components/p-Cx7fffWb.js} +135 -11
- package/dist/components/p-Cx7fffWb.js.map +1 -0
- package/dist/{stencil-library/tutorial-component.entry.js → components/p-D2AHNjbG.js} +35 -10
- package/dist/{stencil-library/toast-notification.entry.esm.js.map → components/p-D2AHNjbG.js.map} +1 -1
- package/dist/{stencil-library/house-icon.entry.js → components/p-D8w3bTPO.js} +27 -9
- package/dist/components/p-D8w3bTPO.js.map +1 -0
- package/dist/{stencil-library/search-icon.entry.js → components/p-DBwr8xSB.js} +27 -9
- package/dist/components/p-DBwr8xSB.js.map +1 -0
- package/dist/{stencil-library/lerc-7W4E8EBs.js → components/p-DLWzgdrw.js} +1981 -27
- package/dist/components/p-DLWzgdrw.js.map +1 -0
- package/dist/{stencil-library/settings-icon.entry.js → components/p-DTXeHbuh.js} +27 -9
- package/dist/{stencil-library/octagon-minus-icon.entry.esm.js.map → components/p-DTXeHbuh.js.map} +1 -1
- package/dist/{stencil-library/settings-modal.entry.js → components/p-Ddk3b30j.js} +30 -12
- package/dist/{stencil-library/polygon-buttons.entry.esm.js.map → components/p-Ddk3b30j.js.map} +1 -1
- package/dist/{stencil-library/store-CcqrFuBK.js → components/p-DfzSejIb.js} +3 -3
- package/dist/components/p-DfzSejIb.js.map +1 -0
- package/dist/{stencil-library/move-icon.entry.js → components/p-FdEV2qPo.js} +27 -9
- package/dist/components/p-FdEV2qPo.js.map +1 -0
- package/dist/{stencil-library/polygon-information.entry.js → components/p-OxUYjaAL.js} +68 -11
- package/dist/components/p-OxUYjaAL.js.map +1 -0
- package/dist/{stencil-library/toast-notification.entry.js → components/p-P28NBglk.js} +30 -9
- package/dist/{stencil-library/loading-widget.entry.js.map → components/p-P28NBglk.js.map} +1 -1
- package/dist/{stencil-library/marker-icon.entry.js → components/p-Umz6nJIv.js} +27 -9
- package/dist/components/p-Umz6nJIv.js.map +1 -0
- package/dist/components/p-WmcSqXD8.js +14 -0
- package/dist/components/p-WmcSqXD8.js.map +1 -0
- package/dist/components/p-j-vOrhhh.js +114 -0
- package/dist/components/p-j-vOrhhh.js.map +1 -0
- package/dist/{stencil-library/lzw--P4c0ZHH.js → components/p-q8auDIJ2.js} +4 -10
- package/dist/components/p-q8auDIJ2.js.map +1 -0
- package/dist/{stencil-library/undo-icon.entry.js → components/p-waOPoUcA.js} +27 -9
- package/dist/components/p-waOPoUcA.js.map +1 -0
- package/dist/components/polygon-buttons.js +11 -0
- package/dist/components/polygon-buttons.js.map +1 -0
- package/dist/components/polygon-information.js +11 -0
- package/dist/components/polygon-information.js.map +1 -0
- package/dist/components/search-icon.js +11 -0
- package/dist/components/search-icon.js.map +1 -0
- package/dist/components/settings-icon.js +11 -0
- package/dist/components/settings-icon.js.map +1 -0
- package/dist/components/settings-modal.js +11 -0
- package/dist/components/settings-modal.js.map +1 -0
- package/dist/{stencil-library/solar-expert.entry.js → components/solar-expert.js} +149 -13
- package/dist/components/solar-expert.js.map +1 -0
- package/dist/components/solar-system-form.js +11 -0
- package/dist/components/solar-system-form.js.map +1 -0
- package/dist/components/toast-notification.js +11 -0
- package/dist/components/toast-notification.js.map +1 -0
- package/dist/components/tool-box.js +11 -0
- package/dist/components/tool-box.js.map +1 -0
- package/dist/components/tutorial-component.js +11 -0
- package/dist/components/tutorial-component.js.map +1 -0
- package/dist/components/undo-icon.js +11 -0
- package/dist/components/undo-icon.js.map +1 -0
- package/dist/esm/basedecoder-j-vOrhhh.js +114 -0
- package/dist/esm/basedecoder-j-vOrhhh.js.map +1 -0
- package/dist/esm/deflate-DHgPf9CO.js +15 -0
- package/dist/{stencil-library/deflate-0Vdd6-55.js.map → esm/deflate-DHgPf9CO.js.map} +1 -1
- package/dist/esm/eraser-icon_19.entry.js +7 -0
- package/dist/esm/eraser-icon_19.entry.js.map +1 -0
- package/dist/esm/index-C2JRBB5c.js +1458 -0
- package/dist/esm/index-C2JRBB5c.js.map +1 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/jpeg-CJLm1GkA.js +902 -0
- package/dist/esm/jpeg-CJLm1GkA.js.map +1 -0
- package/dist/esm/lerc-DF5Lrv5A.js +4424 -0
- package/dist/esm/lerc-DF5Lrv5A.js.map +1 -0
- package/dist/esm/loader.js +16 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/{stencil-library → esm}/loading-widget.entry.js +2 -2
- package/dist/esm/loading-widget.entry.js.map +1 -0
- package/dist/esm/lzw-DaOzWJUD.js +138 -0
- package/dist/esm/lzw-DaOzWJUD.js.map +1 -0
- package/dist/esm/packbits-CZPyx9kx.js +33 -0
- package/dist/esm/packbits-CZPyx9kx.js.map +1 -0
- package/dist/esm/pako.esm-B5WTRCh8.js +3241 -0
- package/dist/{stencil-library/pako.esm-CPorU236.js.map → esm/pako.esm-B5WTRCh8.js.map} +1 -1
- package/dist/esm/raw-pqeeWc2_.js +14 -0
- package/dist/esm/raw-pqeeWc2_.js.map +1 -0
- package/dist/esm/stencil-library.js +26 -0
- package/dist/esm/stencil-library.js.map +1 -0
- package/dist/esm/webimage-BiHardhv.js +47 -0
- package/dist/{stencil-library/webimage-CBrfoxHM.js.map → esm/webimage-BiHardhv.js.map} +1 -1
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil-library/index.esm.js +1 -13
- package/dist/stencil-library/index.esm.js.map +1 -1
- package/dist/stencil-library/{search-icon.entry.js.map → p-9b4e52c3.entry.js} +2 -1
- package/dist/stencil-library/p-9b4e52c3.entry.js.map +1 -0
- package/dist/stencil-library/p-B54Ul0nf.js +2 -0
- package/dist/stencil-library/p-B54Ul0nf.js.map +1 -0
- package/dist/stencil-library/p-B5WTRCh8.js +2 -0
- package/dist/stencil-library/p-B5WTRCh8.js.map +1 -0
- package/dist/stencil-library/p-BGoSj_DR.js +2 -0
- package/dist/stencil-library/p-BGoSj_DR.js.map +1 -0
- package/dist/stencil-library/p-ByX6QP-E.js +2 -0
- package/dist/stencil-library/p-ByX6QP-E.js.map +1 -0
- package/dist/stencil-library/p-C2JRBB5c.js +3 -0
- package/dist/stencil-library/p-C2JRBB5c.js.map +1 -0
- package/dist/stencil-library/p-CX8V3eiN.js +2 -0
- package/dist/stencil-library/p-CX8V3eiN.js.map +1 -0
- package/dist/stencil-library/p-Cgchl6bA.js +2 -0
- package/dist/stencil-library/p-Cgchl6bA.js.map +1 -0
- package/dist/stencil-library/p-CymYGBJH.js +2 -0
- package/dist/stencil-library/p-CymYGBJH.js.map +1 -0
- package/dist/stencil-library/p-DHgjDQwz.js +10 -0
- package/dist/stencil-library/p-DHgjDQwz.js.map +1 -0
- package/dist/stencil-library/p-WmcSqXD8.js +2 -0
- package/dist/stencil-library/p-WmcSqXD8.js.map +1 -0
- package/dist/stencil-library/p-ba64c5e4.entry.js +2 -0
- package/dist/stencil-library/p-ba64c5e4.entry.js.map +1 -0
- package/dist/stencil-library/p-j-vOrhhh.js +2 -0
- package/dist/stencil-library/p-j-vOrhhh.js.map +1 -0
- package/dist/stencil-library/p-q8auDIJ2.js +2 -0
- package/dist/stencil-library/p-q8auDIJ2.js.map +1 -0
- package/dist/stencil-library/stencil-library.esm.js +1 -52
- package/dist/stencil-library/stencil-library.esm.js.map +1 -1
- package/dist/types/components/solar-system-form/solar-system-form.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/utils/api.d.ts +1 -0
- package/package.json +1 -1
- package/dist/stencil-library/config-CWfV1nKn.js.map +0 -1
- package/dist/stencil-library/constants-hboFofU4.js +0 -1522
- package/dist/stencil-library/constants-hboFofU4.js.map +0 -1
- package/dist/stencil-library/decoder-DNOvLSaS.js +0 -39
- package/dist/stencil-library/decoder-DNOvLSaS.js.map +0 -1
- package/dist/stencil-library/deflate-0Vdd6-55.js +0 -21
- package/dist/stencil-library/eraser-icon.entry.esm.js.map +0 -1
- package/dist/stencil-library/eraser-icon.entry.js.map +0 -1
- package/dist/stencil-library/house-icon.entry.esm.js.map +0 -1
- package/dist/stencil-library/house-icon.entry.js.map +0 -1
- package/dist/stencil-library/icon-selector.entry.esm.js.map +0 -1
- package/dist/stencil-library/icon-selector.entry.js.map +0 -1
- package/dist/stencil-library/index-CChkgM3J.js +0 -414
- package/dist/stencil-library/index-CChkgM3J.js.map +0 -1
- package/dist/stencil-library/index-ICfDNUMe.js +0 -4172
- package/dist/stencil-library/index-ICfDNUMe.js.map +0 -1
- package/dist/stencil-library/jpeg-Dd5nnHR5.js.map +0 -1
- package/dist/stencil-library/lerc-7W4E8EBs.js.map +0 -1
- package/dist/stencil-library/lzw--P4c0ZHH.js.map +0 -1
- package/dist/stencil-library/map-draw-Cx9WZoKH.js +0 -25567
- package/dist/stencil-library/map-draw-Cx9WZoKH.js.map +0 -1
- package/dist/stencil-library/map-draw.entry.esm.js.map +0 -1
- package/dist/stencil-library/map-draw.entry.js +0 -12
- package/dist/stencil-library/map-draw.entry.js.map +0 -1
- package/dist/stencil-library/map-selector.entry.esm.js.map +0 -1
- package/dist/stencil-library/map-selector.entry.js.map +0 -1
- package/dist/stencil-library/marker-icon.entry.js.map +0 -1
- package/dist/stencil-library/move-icon.entry.esm.js.map +0 -1
- package/dist/stencil-library/move-icon.entry.js.map +0 -1
- package/dist/stencil-library/octagon-minus-icon.entry.js.map +0 -1
- package/dist/stencil-library/packbits-X3R_utTs.js.map +0 -1
- package/dist/stencil-library/pako.esm-CPorU236.js +0 -6881
- package/dist/stencil-library/polygon-buttons.entry.js.map +0 -1
- package/dist/stencil-library/polygon-information.entry.js.map +0 -1
- package/dist/stencil-library/raw-BxukYehy.js +0 -20
- package/dist/stencil-library/raw-BxukYehy.js.map +0 -1
- package/dist/stencil-library/search-icon.entry.esm.js.map +0 -1
- package/dist/stencil-library/settings-icon.entry.esm.js.map +0 -1
- package/dist/stencil-library/settings-icon.entry.js.map +0 -1
- package/dist/stencil-library/settings-modal.entry.esm.js.map +0 -1
- package/dist/stencil-library/settings-modal.entry.js.map +0 -1
- package/dist/stencil-library/solar-expert.entry.esm.js.map +0 -1
- package/dist/stencil-library/solar-system-form.entry.esm.js.map +0 -1
- package/dist/stencil-library/solar-system-form.entry.js.map +0 -1
- package/dist/stencil-library/store-CcqrFuBK.js.map +0 -1
- package/dist/stencil-library/toast-notification.entry.js.map +0 -1
- package/dist/stencil-library/tool-box.entry.esm.js.map +0 -1
- package/dist/stencil-library/tool-box.entry.js.map +0 -1
- package/dist/stencil-library/tools-BNYKV5H5.js.map +0 -1
- package/dist/stencil-library/tutorial-component.entry.esm.js.map +0 -1
- package/dist/stencil-library/tutorial-component.entry.js.map +0 -1
- package/dist/stencil-library/undo-icon.entry.esm.js.map +0 -1
- package/dist/stencil-library/undo-icon.entry.js.map +0 -1
- package/dist/stencil-library/utils-BCUZxI9u.js.map +0 -1
- /package/dist/{stencil-library → esm}/app-globals-CX8V3eiN.js +0 -0
- /package/dist/{stencil-library → esm}/app-globals-CX8V3eiN.js.map +0 -0
|
@@ -0,0 +1,617 @@
|
|
|
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
|
+
pixelInMeters;
|
|
14
|
+
householdConsumption = 4500;
|
|
15
|
+
consumptionProfile = "mostly_at_home";
|
|
16
|
+
electricityPrice = 0.3;
|
|
17
|
+
compensationRate = 0.07;
|
|
18
|
+
annualPriceIncrease = 2;
|
|
19
|
+
autonomy = 0;
|
|
20
|
+
costSavings = 0;
|
|
21
|
+
numberOfPanels = 5;
|
|
22
|
+
panelPeakPower = 0.4; // kW per panel
|
|
23
|
+
name = "";
|
|
24
|
+
email = "";
|
|
25
|
+
phone = "";
|
|
26
|
+
nameError = "";
|
|
27
|
+
emailError = "";
|
|
28
|
+
phoneError = "";
|
|
29
|
+
electricCar = false;
|
|
30
|
+
electricCarChargingTime = "day";
|
|
31
|
+
heatPump = 0;
|
|
32
|
+
battery = 0;
|
|
33
|
+
batteryEnabled = false;
|
|
34
|
+
compensation20Years = 0;
|
|
35
|
+
savedCosts20Years = 0;
|
|
36
|
+
maxPanels = 5;
|
|
37
|
+
kmDrivenPerYear = 10000;
|
|
38
|
+
totalEnergyConsumption = 4500;
|
|
39
|
+
totalEnergyProduction = 0;
|
|
40
|
+
isSubmitting = false;
|
|
41
|
+
submitMessage = "";
|
|
42
|
+
submitSuccess = false;
|
|
43
|
+
updateSystemConfigs() {
|
|
44
|
+
if (Object.keys(this.systemConfigs).length === 0) {
|
|
45
|
+
this.numberOfPanels = 0;
|
|
46
|
+
this.maxPanels = 0;
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
this.numberOfPanels = Object.keys(this.systemConfigs).reduce((acc, curr) => acc + this.systemConfigs[curr].numberOfPanels, 0);
|
|
50
|
+
this.maxPanels = Object.keys(this.systemConfigs).reduce((acc, curr) => acc + this.systemConfigs[curr].numberOfPanels, 0);
|
|
51
|
+
this.panelPeakPower = Object.entries(this.systemConfigs)[0][1][0]
|
|
52
|
+
?.panel.kWattPeak ?? 0.44;
|
|
53
|
+
this.recalculate();
|
|
54
|
+
}
|
|
55
|
+
formatEuropeanNumber(num, decimals = 2) {
|
|
56
|
+
const fixed = num.toFixed(decimals);
|
|
57
|
+
const [integerPart, decimalPart] = fixed.split(".");
|
|
58
|
+
// Add dots as thousands separators
|
|
59
|
+
const formattedInteger = integerPart.replace(/\B(?=(\d{3})+(?!\d))/g, ".");
|
|
60
|
+
// Join with comma as decimal separator
|
|
61
|
+
return decimalPart
|
|
62
|
+
? `${formattedInteger},${decimalPart}`
|
|
63
|
+
: formattedInteger;
|
|
64
|
+
}
|
|
65
|
+
recalculate() {
|
|
66
|
+
const currentSystemConfigs = {};
|
|
67
|
+
let totalNumberOfPanels = 0;
|
|
68
|
+
for (const [key, value] of Object.entries(this.systemConfigs)) {
|
|
69
|
+
if (totalNumberOfPanels >= this.numberOfPanels) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
if (value.numberOfPanels + totalNumberOfPanels > this.numberOfPanels) {
|
|
73
|
+
currentSystemConfigs[key] = {
|
|
74
|
+
...value,
|
|
75
|
+
numberOfPanels: this.numberOfPanels - totalNumberOfPanels,
|
|
76
|
+
};
|
|
77
|
+
totalNumberOfPanels = this.numberOfPanels;
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
currentSystemConfigs[key] = value;
|
|
81
|
+
totalNumberOfPanels += value.numberOfPanels;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
const simulationConfig = {
|
|
85
|
+
general: {
|
|
86
|
+
simulationYears: 20,
|
|
87
|
+
},
|
|
88
|
+
householdConsumption: {
|
|
89
|
+
consumptionProfile: this.consumptionProfile,
|
|
90
|
+
winterConsumptionFactor: 1.4,
|
|
91
|
+
summerConsumptionFactor: 0.6,
|
|
92
|
+
averageConsumption: this.householdConsumption / 365,
|
|
93
|
+
},
|
|
94
|
+
electricityPrice: {
|
|
95
|
+
purchase: this.electricityPrice,
|
|
96
|
+
sell: this.compensationRate,
|
|
97
|
+
increase: this.annualPriceIncrease / 100,
|
|
98
|
+
},
|
|
99
|
+
solarSystems: currentSystemConfigs,
|
|
100
|
+
batteryKWh: this.battery,
|
|
101
|
+
solarRadiation: {
|
|
102
|
+
winterFactor: 0.2,
|
|
103
|
+
summerFactor: 0.6,
|
|
104
|
+
},
|
|
105
|
+
heatPump: {
|
|
106
|
+
m2: this.heatPump,
|
|
107
|
+
consumptionPerM2: HEAT_PUMP_CONSUMPTION / 365,
|
|
108
|
+
},
|
|
109
|
+
electricCar: this.electricCar
|
|
110
|
+
? {
|
|
111
|
+
averageKilometersPerDay: this.kmDrivenPerYear / 365,
|
|
112
|
+
consumptionkWhPer100km: 20,
|
|
113
|
+
batteryKWh: 80,
|
|
114
|
+
chargingHours: this.electricCarChargingTime === "day"
|
|
115
|
+
? generateElectricCarChargingHours(6, 18)
|
|
116
|
+
: generateElectricCarChargingHours(18, 6),
|
|
117
|
+
}
|
|
118
|
+
: undefined,
|
|
119
|
+
};
|
|
120
|
+
const result = simulate(simulationConfig);
|
|
121
|
+
this.compensation20Years = result.compensationPerDay * 365 * 20;
|
|
122
|
+
this.savedCosts20Years = result.byYearSavedCosts.reduce((acc, curr) => acc + curr, 0) + this.compensation20Years;
|
|
123
|
+
this.costSavings = result.byYearSavedCosts[0];
|
|
124
|
+
this.autonomy = result.autonomy * 100;
|
|
125
|
+
this.totalEnergyConsumption = result.totalEnergyConsumptionDay * 365;
|
|
126
|
+
// Calculate total energy production based on compensation and rate
|
|
127
|
+
this.totalEnergyProduction = result.totalEnergyProduction * 365;
|
|
128
|
+
}
|
|
129
|
+
componentWillLoad() {
|
|
130
|
+
this.updateSystemConfigs();
|
|
131
|
+
}
|
|
132
|
+
validateForm() {
|
|
133
|
+
let isValid = true;
|
|
134
|
+
const t = getLanguageStrings(state.settings.language);
|
|
135
|
+
// Validate name
|
|
136
|
+
if (!this.name.trim()) {
|
|
137
|
+
this.nameError = t.solarSystemForm.nameError;
|
|
138
|
+
isValid = false;
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
this.nameError = "";
|
|
142
|
+
}
|
|
143
|
+
// Validate email
|
|
144
|
+
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
145
|
+
if (!this.email.trim()) {
|
|
146
|
+
this.emailError = t.solarSystemForm.emailError;
|
|
147
|
+
isValid = false;
|
|
148
|
+
}
|
|
149
|
+
else if (!emailRegex.test(this.email)) {
|
|
150
|
+
this.emailError = t.solarSystemForm.validEmailError;
|
|
151
|
+
isValid = false;
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
this.emailError = "";
|
|
155
|
+
}
|
|
156
|
+
// Validate phone (optional)
|
|
157
|
+
const phoneRegex = /^[\+]?[1-9][\d]{0,15}$/;
|
|
158
|
+
if (this.phone.trim() &&
|
|
159
|
+
!phoneRegex.test(this.phone.replace(/[\s\-\(\)]/g, ""))) {
|
|
160
|
+
this.phoneError = t.solarSystemForm.phoneError;
|
|
161
|
+
isValid = false;
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
this.phoneError = "";
|
|
165
|
+
}
|
|
166
|
+
return isValid;
|
|
167
|
+
}
|
|
168
|
+
async handleRequestOffer() {
|
|
169
|
+
if (!this.validateForm()) {
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
this.isSubmitting = true;
|
|
173
|
+
this.submitMessage = "";
|
|
174
|
+
this.submitSuccess = false;
|
|
175
|
+
const t = getLanguageStrings(state.settings.language);
|
|
176
|
+
try {
|
|
177
|
+
const leadData = {
|
|
178
|
+
location: {
|
|
179
|
+
name: state.location,
|
|
180
|
+
latitude: state.latitude,
|
|
181
|
+
longitude: state.longitude,
|
|
182
|
+
},
|
|
183
|
+
systemConfig: {
|
|
184
|
+
maxNumberOfPanels: this.maxPanels,
|
|
185
|
+
panelPeakPower: this.panelPeakPower,
|
|
186
|
+
polygons: this.polygons,
|
|
187
|
+
solarSystems: this.systemConfigs,
|
|
188
|
+
electricityPrice: this.electricityPrice,
|
|
189
|
+
compensationRate: this.compensationRate,
|
|
190
|
+
annualPriceIncrease: this.annualPriceIncrease,
|
|
191
|
+
},
|
|
192
|
+
client: {
|
|
193
|
+
name: this.name,
|
|
194
|
+
email: this.email,
|
|
195
|
+
phone: this.phone,
|
|
196
|
+
consumption: this.householdConsumption,
|
|
197
|
+
consumptionProfile: this.consumptionProfile,
|
|
198
|
+
hasBattery: this.batteryEnabled,
|
|
199
|
+
battery: this.battery,
|
|
200
|
+
hasHeatPump: this.heatPump > 0,
|
|
201
|
+
heatPumpM2: this.heatPump,
|
|
202
|
+
hasElectricCar: this.electricCar,
|
|
203
|
+
electricCarChargingTime: this.electricCarChargingTime,
|
|
204
|
+
electricCarKmPerYear: this.kmDrivenPerYear,
|
|
205
|
+
},
|
|
206
|
+
images: {
|
|
207
|
+
roof: this.roofCanvas.toDataURL(),
|
|
208
|
+
polygon: this.polygonCanvas.toDataURL(),
|
|
209
|
+
pixelInMeters: this.pixelInMeters,
|
|
210
|
+
},
|
|
211
|
+
results: {
|
|
212
|
+
autonomy: this.autonomy,
|
|
213
|
+
costSavings: this.costSavings,
|
|
214
|
+
compensation20Years: this.compensation20Years,
|
|
215
|
+
savedCosts20Years: this.savedCosts20Years,
|
|
216
|
+
totalEnergyConsumption: this.totalEnergyConsumption,
|
|
217
|
+
},
|
|
218
|
+
};
|
|
219
|
+
console.log("leadData", leadData);
|
|
220
|
+
const result = await sendLeadToNexvoro(leadData);
|
|
221
|
+
this.submitSuccess = result.success;
|
|
222
|
+
if (result.success) {
|
|
223
|
+
console.log("Lead successfully sent to Nexvoro", result);
|
|
224
|
+
this.submitMessage = t.solarSystemForm.leadSubmitted;
|
|
225
|
+
// Optionally reset form or show success message
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
console.error("Failed to send lead to Nexvoro:", result.message);
|
|
229
|
+
this.submitMessage = t.solarSystemForm.leadError;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
catch (error) {
|
|
233
|
+
console.error("Error in handleRequestOffer:", error);
|
|
234
|
+
this.submitSuccess = false;
|
|
235
|
+
this.submitMessage = error instanceof Error
|
|
236
|
+
? error.message
|
|
237
|
+
: "An unexpected error occurred";
|
|
238
|
+
}
|
|
239
|
+
finally {
|
|
240
|
+
this.isSubmitting = false;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
isIOS() {
|
|
244
|
+
return state.isIOS;
|
|
245
|
+
}
|
|
246
|
+
render() {
|
|
247
|
+
const t = getLanguageStrings(state.settings.language);
|
|
248
|
+
// Reusable style objects
|
|
249
|
+
const borderStyle = { border: "1px solid var(--color-border)" };
|
|
250
|
+
const errorBorderStyle = { border: "1px solid var(--color-error)" };
|
|
251
|
+
return (h("div", { key: '42867ab1fc1201f981ee3c96a138ff5d999740fc', class: "flex flex-col justify-center items-center w-full h-full pt-4" // style={{
|
|
252
|
+
,
|
|
253
|
+
// display: (Object.keys(this.systemConfigs).length === 0)
|
|
254
|
+
// ? "none"
|
|
255
|
+
// : "flex",
|
|
256
|
+
// }}
|
|
257
|
+
id: "solar-system-form" }, h("h1", { key: 'ee1db435412a97d54333c36fc0c1a6fab5fe597f', class: "text-2xl font-bold text-secondary mb-4 w-full" }, t.solarSystemForm.title), h("div", { key: '27dcc67909fcbafd2093792e2ee822d233a23421', class: "w-full bg-primary rounded-4xl space-y-6" }, h("div", { key: '93ae54e79a272a01acdcfe21f1e0983811669ca6', class: "space-y-4 p-4 rounded-4xl", style: borderStyle }, h("h2", { key: '2998dbde483a512c28d6b02ace04944eda49ff7c', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.systemInformation), h("div", { key: 'a169b4bdfd3c0b6c175971cfa119c48bdde6ff9d', class: "flex flex-col sm:flex-row gap-4" }, h("div", { key: '72a5c0c40117ddee1d14808898703869e34afb23', class: "flex-1 bg-muted rounded-4xl p-4 space-y-3" }, h("div", { key: '286c9346d417f9325aeb4653a428fc527317f1f2', class: "flex items-center justify-between" }, h("label", { key: 'cd78273dbacea60dfa7d3cd52fd61709c728c179', class: "text-sm font-medium text-text-muted" }, t.solarSystemForm.numberOfPanels), !this.isIOS()
|
|
258
|
+
? (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 }))
|
|
259
|
+
: (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) => {
|
|
260
|
+
const value = parseInt(e.target
|
|
261
|
+
.value);
|
|
262
|
+
if (value >= 1 &&
|
|
263
|
+
value <=
|
|
264
|
+
this.maxPanels) {
|
|
265
|
+
this.numberOfPanels =
|
|
266
|
+
value;
|
|
267
|
+
this.recalculate();
|
|
268
|
+
}
|
|
269
|
+
} }))), !this.isIOS() && (h("input", { key: 'db21c520b3151ab4f766bd99092a36707fad3922', 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) => {
|
|
270
|
+
this.numberOfPanels = parseInt(e.target
|
|
271
|
+
.value);
|
|
272
|
+
if (isNaN(this.numberOfPanels)) {
|
|
273
|
+
this.numberOfPanels = 0;
|
|
274
|
+
}
|
|
275
|
+
this.recalculate();
|
|
276
|
+
} }))), h("div", { key: 'fed7b9efc92d01c73a34da7dfa3663d801f40ebb', class: "flex-1 bg-muted rounded-4xl p-4" }, h("div", { key: '97cf3fef6db644774469fbca6b7681c5865b54d2', class: "flex items-center justify-between" }, h("label", { key: '7471aeacdeddfe2951b474bb0006bc018b52528c', class: "text-sm font-medium text-text-muted" }, t.solarSystemForm.panelPeakPower), h("span", { key: 'cad4639ae980b4228723c78f0b0bbbc27d9322c0', class: "text-text-muted" }, this.panelPeakPower.toFixed(2), " kW")), h("div", { key: 'b344c0c87bbd7e016681034434a36982759f4107', class: "flex items-center justify-between mt-4" }, h("span", { key: '8619d3662fb929a2b9f185f556ded70de0210f70', class: "text-sm font-medium text-text-muted" }, t.solarSystemForm.totalSystemPeakPower), h("span", { key: '2ad8de7cb701e9410425bb762d03e03a5e9b3181', class: "font-bold text-text-muted" }, (DEFAULT_SOLAR_PANEL_TYPE.kWattPeak *
|
|
277
|
+
this.numberOfPanels).toFixed(1), " kWp"))))), h("div", { key: '2cacc97462ac629a060baad3975179da6ad94e53', class: "space-y-4 p-4 rounded-4xl", style: borderStyle }, h("h2", { key: 'c10ec73052c222c5b3d75f2b28ae98189cf51380', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.householdConsumptionTitle), h("div", { key: '0279cc5c0f7cf3dcfd5c59075f4136edfde0b557', class: "grid grid-rows-2 gap-0" }, h("div", { key: '9e4b72083f26c1c540f757f74297f2bf1fe0c93c', class: "grid grid-cols-2 gap-4" }, h("label", { key: '7a5e9bf3b54bbc8328755837542a3766315247ef', class: "block text-sm font-medium text-text-muted" }, t.solarSystemForm.annualConsumption), h("label", { key: '5e75002062d1e932d451f8350078afe3b34c3126', class: "block text-sm font-medium text-text-muted" }, t.solarSystemForm.consumptionProfileTitle)), h("div", { key: '28ead4dbbe0258b6134a5c0c948ae993865c7da9', class: "grid grid-cols-2 gap-4" }, h("input", { key: '3b4cebdf7e4d38b3503d49f2c3cb2291ad17c6d0', 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) => {
|
|
278
|
+
this.householdConsumption = parseInt(e.target
|
|
279
|
+
.value);
|
|
280
|
+
this.recalculate();
|
|
281
|
+
} }), h("select", { key: '76994946ffe5e5d53037a58ed13fe103d8af3e64', 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) => {
|
|
282
|
+
this.consumptionProfile =
|
|
283
|
+
e.target
|
|
284
|
+
.value;
|
|
285
|
+
this.recalculate();
|
|
286
|
+
} }, h("option", { key: 'c7d2c8ec8d92f9339e33d5532504e92e1868bd0b', value: "mostly_at_home", selected: this.consumptionProfile ===
|
|
287
|
+
"mostly_at_home" }, t.solarSystemForm.consumptionProfiles
|
|
288
|
+
.mostlyAtHome), h("option", { key: '668d7edd27b5c923c944ab442b960ae94c12af00', value: "mostly_away", selected: this.consumptionProfile ===
|
|
289
|
+
"mostly_away" }, t.solarSystemForm.consumptionProfiles
|
|
290
|
+
.mostlyAway))))), h("div", { key: 'e2e2e002761485d99790c4727bd46ed1ed190123', class: "space-y-4 p-4 rounded-4xl", style: borderStyle }, h("h2", { key: '46f8a7b7fc363d6eca28fbe5701d04c7d95e54e5', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.additionalComponents.title), h("div", { key: '08eaa438ae318304b5f2c3de023823b21f19eb75', class: "flex flex-col gap-4" }, h("div", { key: '4d56b31df0ca2935710fcd8d1733ba5f5ef07d92', class: "flex flex-col bg-muted rounded-4xl p-4 gap-4" }, h("div", { key: '0f399db912c4851d1d22d430c479f35a684e8405', class: "flex items-center justify-between" }, h("div", { key: 'af002c41ce930b0c1cb7bd9f9e58890064fc3fe8', class: "flex items-center gap-2" }, h("input", { key: '781624b2b616de5b5d9ade954911950c77224d55', 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) => {
|
|
291
|
+
this.heatPump =
|
|
292
|
+
e.target
|
|
293
|
+
.checked
|
|
294
|
+
? 100
|
|
295
|
+
: 0;
|
|
296
|
+
this.recalculate();
|
|
297
|
+
} }), h("label", { key: '94e129a09f3af63d049c3b58bb6d3bb1b788739c', htmlFor: "heatPump", class: "text-text-muted" }, t.solarSystemForm
|
|
298
|
+
.additionalComponents
|
|
299
|
+
.heatPump)), (this.heatPump > 0 && !this.isIOS()) && (h("span", { key: '9a9c4208690edaa0809435a9bfb219d65ac825a1', class: "text-text-muted" }, this.heatPump, " m\u00B2"))), this.heatPump > 0 && (h("div", { key: 'b71000e853b6f5317f5b5190fdfe57582217dbbe', class: "flex flex-col gap-2" }, this.isIOS()
|
|
300
|
+
? (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) => {
|
|
301
|
+
let value = parseInt(e.target
|
|
302
|
+
.value);
|
|
303
|
+
if (isNaN(value)) {
|
|
304
|
+
value = 0;
|
|
305
|
+
}
|
|
306
|
+
if (value >= 0 &&
|
|
307
|
+
value <= 300) {
|
|
308
|
+
this.heatPump =
|
|
309
|
+
value;
|
|
310
|
+
this.recalculate();
|
|
311
|
+
}
|
|
312
|
+
} }), h("span", { class: "text-sm text-text-muted" }, "m\u00B2")))
|
|
313
|
+
: (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) => {
|
|
314
|
+
this.heatPump =
|
|
315
|
+
parseInt(e.target
|
|
316
|
+
.value);
|
|
317
|
+
this.recalculate();
|
|
318
|
+
} }))))), h("div", { key: 'a3ffb277ff4f4c5539c8484c1e2b9e9c5dbff64f', class: "flex flex-col bg-muted rounded-4xl p-4 gap-4" }, h("div", { key: '520a1c1f3aff8482bab8206e72fd0f8480192e31', class: "flex items-center justify-between" }, h("div", { key: 'c5dee085ffcc1b93acacf451ce7044c1dbbbd5ae', class: "flex items-center gap-2" }, h("input", { key: '835135fc8cd50873fdc2611526735b2a8b8d238c', 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) => {
|
|
319
|
+
this.electricCar =
|
|
320
|
+
e.target
|
|
321
|
+
.checked;
|
|
322
|
+
this.recalculate();
|
|
323
|
+
} }), h("label", { key: 'f401eb62de0b05c0e65c89294d65e78925f19749', htmlFor: "electricCar", class: "text-text-muted" }, t.solarSystemForm
|
|
324
|
+
.additionalComponents
|
|
325
|
+
.electricCar))), this.electricCar && (h("div", { key: 'a53474411832751c7a30aeb5ea02db0f9f512963', class: "flex flex-col gap-2" }, h("div", { key: '19f2e4448eaaa94fba0b6d922ecb18ff28d052bc', class: "grid grid-cols-2 gap-4" }, h("label", { key: 'bd92f4dd142ef6a732c85d9b71bc9eb3c6b60fa6', class: "text-sm text-text-muted" }, t.solarSystemForm
|
|
326
|
+
.additionalComponents
|
|
327
|
+
.chargingTime), h("label", { key: 'bb0552899cf2642b866213d91d5d90d2d8a1424e', class: "text-sm text-text-muted" }, t.solarSystemForm
|
|
328
|
+
.additionalComponents
|
|
329
|
+
.kilometersPerYear)), h("div", { key: '35ef876cab7b2d4fe0fea2eb2b821b5c59cdbd34', class: "grid grid-cols-2 gap-4" }, h("select", { key: '9b6961f77e163568d4c09b207cec5958c2a5302b', class: "w-full px-4 py-2 rounded-4xl focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", onChange: (e) => {
|
|
330
|
+
this.electricCarChargingTime =
|
|
331
|
+
e.target
|
|
332
|
+
.value;
|
|
333
|
+
this.recalculate();
|
|
334
|
+
}, style: borderStyle }, h("option", { key: '5e67bdee8a891ace0299fbc3f2faaa82ceab9963', value: "day", selected: this
|
|
335
|
+
.electricCarChargingTime ===
|
|
336
|
+
"day" }, t.solarSystemForm
|
|
337
|
+
.additionalComponents
|
|
338
|
+
.chargingTimeDay), h("option", { key: '00649f89de616ada4292ff71eb15524a5b946059', value: "night", selected: this
|
|
339
|
+
.electricCarChargingTime ===
|
|
340
|
+
"night" }, t.solarSystemForm
|
|
341
|
+
.additionalComponents
|
|
342
|
+
.chargingTimeNight)), h("input", { key: '3234b8ac6c559b57b8d24bacb1794fd2860aab24', 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) => {
|
|
343
|
+
this.kmDrivenPerYear =
|
|
344
|
+
parseInt(e.target
|
|
345
|
+
.value);
|
|
346
|
+
if (isNaN(this.kmDrivenPerYear)) {
|
|
347
|
+
this.kmDrivenPerYear =
|
|
348
|
+
0;
|
|
349
|
+
}
|
|
350
|
+
this.recalculate();
|
|
351
|
+
}, style: borderStyle }))))), h("div", { key: '8d5eec07f8446d8984d3f6b767b404e5840dc67f', class: "flex flex-col bg-muted rounded-4xl p-4 gap-4" }, h("div", { key: '2321a2419b1f6ab4ab591ac09a44bc9168b591c2', class: "flex items-center justify-between" }, h("div", { key: '33cbfd3dbfac3a3077e73ad3d5a61bd845cfe1c8', class: "flex items-center gap-2" }, h("input", { key: 'd3d6b513e7eb73cc96f4ed1b5b70f4d46eebb8b1', 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) => {
|
|
352
|
+
this.batteryEnabled =
|
|
353
|
+
e.target
|
|
354
|
+
.checked;
|
|
355
|
+
this.battery =
|
|
356
|
+
this.batteryEnabled
|
|
357
|
+
? 5
|
|
358
|
+
: 0;
|
|
359
|
+
this.recalculate();
|
|
360
|
+
} }), h("label", { key: 'd73591c77f3b04c2b78c33a6d71808cdddd782e7', htmlFor: "battery", class: "text-text-muted" }, t.solarSystemForm
|
|
361
|
+
.additionalComponents
|
|
362
|
+
.battery)), (this.batteryEnabled && !this.isIOS()) && (h("span", { key: 'dffc91a5159c4e2b8889175751c432e318f47dae', class: "text-text-muted" }, this.battery, " kWh"))), this.batteryEnabled && (h("div", { key: 'ead4529d83f84e9f8e762e7ccc6203c886fea2cf', class: "flex flex-col gap-2" }, this.isIOS()
|
|
363
|
+
? (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) => {
|
|
364
|
+
let value = parseInt(e.target
|
|
365
|
+
.value);
|
|
366
|
+
if (isNaN(value)) {
|
|
367
|
+
value = 0;
|
|
368
|
+
}
|
|
369
|
+
if (value >= 0 &&
|
|
370
|
+
value <= 20) {
|
|
371
|
+
this.battery =
|
|
372
|
+
value;
|
|
373
|
+
}
|
|
374
|
+
else {
|
|
375
|
+
this.battery =
|
|
376
|
+
20;
|
|
377
|
+
}
|
|
378
|
+
this.recalculate();
|
|
379
|
+
}, style: borderStyle }), h("span", { class: "text-sm text-text-muted" }, "kWh")))
|
|
380
|
+
: (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) => {
|
|
381
|
+
const value = parseInt(e.target
|
|
382
|
+
.value);
|
|
383
|
+
this.battery = value;
|
|
384
|
+
this.batteryEnabled =
|
|
385
|
+
value > 0;
|
|
386
|
+
this.recalculate();
|
|
387
|
+
} }))))))), h("div", { key: 'cc21f52e0e1ea5d1f731951325053a4615641288', class: "space-y-4 p-4 rounded-4xl", style: borderStyle }, h("h2", { key: '413db6f645abd608dc74c0fe9dd2b8538e439ff3', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.electricityCostsTitle), h("div", { key: '36a7f1d8ca5b115cf86c136ab8b2834c621cbff4', style: {
|
|
388
|
+
display: "grid",
|
|
389
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(100px, 1fr))",
|
|
390
|
+
gap: "1rem",
|
|
391
|
+
} }, h("div", { key: '393a18f5a6d81a557d85a77ec83a764ee22043cb' }, h("label", { key: '23c407eba1f39251193d83320f79feb88a709ce9', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.electricityPrice), h("input", { key: '6e9a5ed3a36231ffccc9dcaa00ac6919668078c7', 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) => {
|
|
392
|
+
this.electricityPrice = parseFloat(e.target
|
|
393
|
+
.value);
|
|
394
|
+
this.recalculate();
|
|
395
|
+
} })), h("div", { key: '3942694c95b0b451bca63341cdfb92b5f5829593' }, h("label", { key: 'bdb87c826d37b147c031a2ca53411a7432c845fd', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.compensationRate), h("input", { key: 'b91214ef6aebe7c342ec4bb604f6e3a37b189488', 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) => {
|
|
396
|
+
this.compensationRate = parseFloat(e.target
|
|
397
|
+
.value);
|
|
398
|
+
this.recalculate();
|
|
399
|
+
} })), h("div", { key: '56684c4d9d65272834bd4cebe8c4c167bb16a958' }, h("label", { key: 'af7337ddaa1529dbc6b07704a2c313a591b6e3bd', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.annualPriceIncrease), h("input", { key: '90bef6067bf8fae6b598a551ab2ddbb4f0725b29', 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) => {
|
|
400
|
+
this.annualPriceIncrease = parseFloat(e.target
|
|
401
|
+
.value);
|
|
402
|
+
this.recalculate();
|
|
403
|
+
} })))), h("div", { key: '266bd42a4b60349bbb098f8a56a1af6444b85fad', class: "space-y-4 p-4 rounded-4xl", style: borderStyle }, h("h2", { key: 'c24a5e56041eeaf26a5648af092a942ccd41e739', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.resultsTitle), h("div", { key: '3fd59700c6cdb99662f8a7232141d1f7efb2109f', class: "bg-muted rounded-4xl p-4" }, h("div", { key: '25708d8c8cdd04b21e66ac05776cef76ce53725a', class: "flex flex-col sm:flex-row sm:items-center justify-between" }, h("span", { key: '0b45f781be44dd70a66d68446319f17800357984', class: "text-text-muted" }, t.solarSystemForm.autonomy), h("span", { key: 'a56d5b093834c6a42f74619ab569a983057e91a0', class: "text-xl font-bold text-secondary mt-1 sm:mt-0" }, this.autonomy > 100
|
|
404
|
+
? "100"
|
|
405
|
+
: this.formatEuropeanNumber(this.autonomy, 1), "%")), h("div", { key: 'feea3eca497e8f14eb619c4f2ece03c39394ca74', class: "flex flex-col sm:flex-row sm:items-center justify-between mt-4" }, h("span", { key: '3b5ae4b3be1368da0a8c6eb0c9e1c07c6ef6e2d7', class: "text-text-muted" }, t.solarSystemForm.totalEnergyConsumption), h("span", { key: '04d21a3ce938bd47aee28598467984d467c19fba', class: "text-xl font-bold text-secondary mt-1 sm:mt-0" }, this.formatEuropeanNumber(this.totalEnergyConsumption, 0), " kWh/", t.solarSystemForm.year)), h("div", { key: '6812053410e4372e791cf1fc7f74b411549fc8d9', class: "flex flex-col sm:flex-row sm:items-center justify-between mt-4" }, h("span", { key: '2451f60fe0ec7edb6312bc7b8a50b63c4e4af182', class: "text-text-muted" }, t.solarSystemForm.totalEnergyProduction), h("span", { key: '8695bcaee81b83829460639976872d141734bf16', class: "text-xl font-bold text-secondary mt-1 sm:mt-0" }, this.formatEuropeanNumber(this.totalEnergyProduction, 0), " kWh/", t.solarSystemForm.year)), h("div", { key: 'c7bc91f11c89d492cdd4545a96af349e2a643fc9', class: "flex flex-col sm:flex-row sm:items-center justify-between mt-4" }, h("div", { key: 'b28127d6c7cb295a61cd5a5e0a21dbba9acbbdba', class: "flex items-center gap-2" }, h("span", { key: 'f0a7b0e4359155d99e0859da98eb9cbedcd53a00', class: "text-text-muted" }, t.solarSystemForm.costSavings)), h("span", { key: 'ec566bd9d9fb4f2757c8467525bef7a4e584642a', class: "text-xl font-bold text-success mt-1 sm:mt-0" }, this.formatEuropeanNumber(this.costSavings), " \u20AC/", t
|
|
406
|
+
.solarSystemForm.year)), h("div", { key: 'f68554341ba8b734ea64507f705a0d1318317598', class: "flex flex-col sm:flex-row sm:items-center justify-between mt-4" }, h("div", { key: '95ea75c1ada49b28ccbba230fb696660e5892538', class: "flex items-center gap-2" }, h("span", { key: '169dd5d92dad7d8fb54a24eee3f736b30f635600', class: "text-text-muted" }, t.solarSystemForm.compensation20Years)), h("span", { key: 'c1445a608709f8202bf9e9cdc06cce961e1b949f', class: "text-xl font-bold text-success mt-1 sm:mt-0" }, this.formatEuropeanNumber(this.compensation20Years), " \u20AC")), h("div", { key: '9a45d97faab0feefdbbef029c664579347f48aaf', class: "flex flex-col sm:flex-row sm:items-center justify-between mt-4" }, h("div", { key: 'dce377238f8650fb00f90eb31e533e2282e8c02b', class: "flex items-center gap-2" }, h("span", { key: 'd0c04b9c4aca6c4605f04f68eb86d21f994ea7a9', class: "text-text-muted" }, t.solarSystemForm
|
|
407
|
+
.monetaryBenefit20Years)), h("span", { key: 'f56d1995af5bda25c068ee58c36edf4cd6a61d9f', class: "text-xl font-bold text-success mt-1 sm:mt-0" }, this.formatEuropeanNumber(this.savedCosts20Years), " \u20AC")))), h("div", { key: '6b8acc3f0c13fa2b70854214d5882f8024dbcc8c', class: "space-y-4 p-4 rounded-4xl", style: borderStyle }, h("h2", { key: '216a6809e770f9e67d9731e104ed50ec68a3d187', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.requestOffer), h("div", { key: '7ed284d01cc4f3375e20f8b85d2c0d1af287227e', style: {
|
|
408
|
+
display: "grid",
|
|
409
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(1 00px, 1fr))",
|
|
410
|
+
gap: "1rem",
|
|
411
|
+
} }, h("div", { key: 'e0f7dc87d379fdccbe3c28fbae46b3104235b68d' }, h("label", { key: '6f3b10b41a081224855dd6aa68df0ede72e0a6c7', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.name), h("input", { key: '1e8f43f9818f896e53fa0fcb859b7865e64a2a64', 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
|
|
412
|
+
? errorBorderStyle
|
|
413
|
+
: borderStyle, value: this.name, onInput: (e) => {
|
|
414
|
+
this.name =
|
|
415
|
+
e.target
|
|
416
|
+
.value;
|
|
417
|
+
this.validateForm();
|
|
418
|
+
}, placeholder: "Your name" }), this.nameError && (h("p", { key: '2057d743304e3e4fbb1367971ac7ff5a008b8ae7', class: "text-error text-sm mt-1" }, this.nameError))), h("div", { key: '4884e8d194a8be9c17ca8f38fc4349e5e79396bb' }, h("label", { key: '329f5d0502c8e685a4abc2f49e153f6c3e69f13f', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.email), h("input", { key: '847cff5833cc8d1872fc8a620344085a74d885ca', 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
|
|
419
|
+
? errorBorderStyle
|
|
420
|
+
: borderStyle, value: this.email, onInput: (e) => {
|
|
421
|
+
this.email =
|
|
422
|
+
e.target
|
|
423
|
+
.value;
|
|
424
|
+
this.validateForm();
|
|
425
|
+
}, placeholder: "your.email@example.com" }), this.emailError && (h("p", { key: '956e51452f32f6c92d70de7ca28beab4922850f9', class: "text-error text-sm mt-1" }, this.emailError))), h("div", { key: '48e2718dd33ab7efa45e0992c8f281083e77b2de' }, h("label", { key: '545eca60f2f30861cbb49f12391098fcd437d51b', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.phone), h("input", { key: '9baca33fb75c16ca3500b8980c6b55ffe35bedfc', 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
|
|
426
|
+
? errorBorderStyle
|
|
427
|
+
: borderStyle, value: this.phone, onInput: (e) => {
|
|
428
|
+
this.phone =
|
|
429
|
+
e.target
|
|
430
|
+
.value;
|
|
431
|
+
this.validateForm();
|
|
432
|
+
}, placeholder: "+34 123 456 789" }), this.phoneError && (h("p", { key: '23c1d5ee25d9b01295627db3feea507e2e0804a4', class: "text-error text-sm mt-1" }, this.phoneError)))), h("div", { key: '155f8a5dcecdb0c330b6ce3f3455f39c1d7689b5', class: "flex flex-col items-center gap-4" }, h("button", { key: 'fabacedfac41216d9b48beed1fce03ccd39dd5cd', onClick: () => this.handleRequestOffer(), disabled: !this.name.trim() ||
|
|
433
|
+
!this.email.trim() || !!this.nameError ||
|
|
434
|
+
!!this.emailError || !!this.phoneError ||
|
|
435
|
+
this.isSubmitting, class: `px-6 py-3 rounded-4xl transition-colors duration-200 flex items-center gap-2 ${this.isSubmitting
|
|
436
|
+
? "bg-muted text-text-muted cursor-not-allowed"
|
|
437
|
+
: "bg-secondary hover:bg-tertiary"}`, style: {
|
|
438
|
+
color: this.isSubmitting
|
|
439
|
+
? "var(--color-text-muted)"
|
|
440
|
+
: "#ffffff",
|
|
441
|
+
} }, this.isSubmitting && (h("div", { key: '51b7a0add44644aa898060aeba67ef74cdb32d5d', class: "w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin" })), this.isSubmitting
|
|
442
|
+
? t.solarSystemForm.sending
|
|
443
|
+
: t.solarSystemForm.requestOfferButton), this.submitMessage && (h("div", { key: 'cb54060dff88997e93fc105ebb876c8e518de545', class: `text-sm px-4 py-2 rounded-4xl ${this.submitSuccess
|
|
444
|
+
? "bg-success/10 text-success border border-success/20"
|
|
445
|
+
: "bg-error/10 text-error border border-error/20"}` }, this.submitMessage)))))));
|
|
446
|
+
}
|
|
447
|
+
static get is() { return "solar-system-form"; }
|
|
448
|
+
static get originalStyleUrls() {
|
|
449
|
+
return {
|
|
450
|
+
"$": ["../../output.css"]
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
static get styleUrls() {
|
|
454
|
+
return {
|
|
455
|
+
"$": ["../../output.css"]
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
static get properties() {
|
|
459
|
+
return {
|
|
460
|
+
"systemConfigs": {
|
|
461
|
+
"type": "unknown",
|
|
462
|
+
"attribute": "system-configs",
|
|
463
|
+
"mutable": false,
|
|
464
|
+
"complexType": {
|
|
465
|
+
"original": "{ [id: string]: SolarSystem }",
|
|
466
|
+
"resolved": "{ [id: string]: SolarSystem; }",
|
|
467
|
+
"references": {
|
|
468
|
+
"SolarSystem": {
|
|
469
|
+
"location": "import",
|
|
470
|
+
"path": "harmonia-sim",
|
|
471
|
+
"id": "../../../harmonia/packages/harmonia-sim/dist/index.d.ts::SolarSystem"
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
"required": false,
|
|
476
|
+
"optional": false,
|
|
477
|
+
"docs": {
|
|
478
|
+
"tags": [],
|
|
479
|
+
"text": ""
|
|
480
|
+
},
|
|
481
|
+
"getter": false,
|
|
482
|
+
"setter": false,
|
|
483
|
+
"defaultValue": "{}"
|
|
484
|
+
},
|
|
485
|
+
"polygons": {
|
|
486
|
+
"type": "unknown",
|
|
487
|
+
"attribute": "polygons",
|
|
488
|
+
"mutable": false,
|
|
489
|
+
"complexType": {
|
|
490
|
+
"original": "Polygon[]",
|
|
491
|
+
"resolved": "Polygon[]",
|
|
492
|
+
"references": {
|
|
493
|
+
"Polygon": {
|
|
494
|
+
"location": "import",
|
|
495
|
+
"path": "harmonia-types",
|
|
496
|
+
"id": "../../../harmonia/packages/harmonia-types/dist/index.d.ts::Polygon"
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
"required": false,
|
|
501
|
+
"optional": false,
|
|
502
|
+
"docs": {
|
|
503
|
+
"tags": [],
|
|
504
|
+
"text": ""
|
|
505
|
+
},
|
|
506
|
+
"getter": false,
|
|
507
|
+
"setter": false,
|
|
508
|
+
"defaultValue": "[]"
|
|
509
|
+
},
|
|
510
|
+
"roofCanvas": {
|
|
511
|
+
"type": "unknown",
|
|
512
|
+
"attribute": "roof-canvas",
|
|
513
|
+
"mutable": false,
|
|
514
|
+
"complexType": {
|
|
515
|
+
"original": "HTMLCanvasElement",
|
|
516
|
+
"resolved": "HTMLCanvasElement",
|
|
517
|
+
"references": {
|
|
518
|
+
"HTMLCanvasElement": {
|
|
519
|
+
"location": "global",
|
|
520
|
+
"id": "global::HTMLCanvasElement"
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
"required": false,
|
|
525
|
+
"optional": false,
|
|
526
|
+
"docs": {
|
|
527
|
+
"tags": [],
|
|
528
|
+
"text": ""
|
|
529
|
+
},
|
|
530
|
+
"getter": false,
|
|
531
|
+
"setter": false
|
|
532
|
+
},
|
|
533
|
+
"polygonCanvas": {
|
|
534
|
+
"type": "unknown",
|
|
535
|
+
"attribute": "polygon-canvas",
|
|
536
|
+
"mutable": false,
|
|
537
|
+
"complexType": {
|
|
538
|
+
"original": "HTMLCanvasElement",
|
|
539
|
+
"resolved": "HTMLCanvasElement",
|
|
540
|
+
"references": {
|
|
541
|
+
"HTMLCanvasElement": {
|
|
542
|
+
"location": "global",
|
|
543
|
+
"id": "global::HTMLCanvasElement"
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
"required": false,
|
|
548
|
+
"optional": false,
|
|
549
|
+
"docs": {
|
|
550
|
+
"tags": [],
|
|
551
|
+
"text": ""
|
|
552
|
+
},
|
|
553
|
+
"getter": false,
|
|
554
|
+
"setter": false
|
|
555
|
+
},
|
|
556
|
+
"pixelInMeters": {
|
|
557
|
+
"type": "number",
|
|
558
|
+
"attribute": "pixel-in-meters",
|
|
559
|
+
"mutable": false,
|
|
560
|
+
"complexType": {
|
|
561
|
+
"original": "number",
|
|
562
|
+
"resolved": "number",
|
|
563
|
+
"references": {}
|
|
564
|
+
},
|
|
565
|
+
"required": false,
|
|
566
|
+
"optional": false,
|
|
567
|
+
"docs": {
|
|
568
|
+
"tags": [],
|
|
569
|
+
"text": ""
|
|
570
|
+
},
|
|
571
|
+
"getter": false,
|
|
572
|
+
"setter": false,
|
|
573
|
+
"reflect": false
|
|
574
|
+
}
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
static get states() {
|
|
578
|
+
return {
|
|
579
|
+
"householdConsumption": {},
|
|
580
|
+
"consumptionProfile": {},
|
|
581
|
+
"electricityPrice": {},
|
|
582
|
+
"compensationRate": {},
|
|
583
|
+
"annualPriceIncrease": {},
|
|
584
|
+
"autonomy": {},
|
|
585
|
+
"costSavings": {},
|
|
586
|
+
"numberOfPanels": {},
|
|
587
|
+
"panelPeakPower": {},
|
|
588
|
+
"name": {},
|
|
589
|
+
"email": {},
|
|
590
|
+
"phone": {},
|
|
591
|
+
"nameError": {},
|
|
592
|
+
"emailError": {},
|
|
593
|
+
"phoneError": {},
|
|
594
|
+
"electricCar": {},
|
|
595
|
+
"electricCarChargingTime": {},
|
|
596
|
+
"heatPump": {},
|
|
597
|
+
"battery": {},
|
|
598
|
+
"batteryEnabled": {},
|
|
599
|
+
"compensation20Years": {},
|
|
600
|
+
"savedCosts20Years": {},
|
|
601
|
+
"maxPanels": {},
|
|
602
|
+
"kmDrivenPerYear": {},
|
|
603
|
+
"totalEnergyConsumption": {},
|
|
604
|
+
"totalEnergyProduction": {},
|
|
605
|
+
"isSubmitting": {},
|
|
606
|
+
"submitMessage": {},
|
|
607
|
+
"submitSuccess": {}
|
|
608
|
+
};
|
|
609
|
+
}
|
|
610
|
+
static get watchers() {
|
|
611
|
+
return [{
|
|
612
|
+
"propName": "systemConfigs",
|
|
613
|
+
"methodName": "updateSystemConfigs"
|
|
614
|
+
}];
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
//# sourceMappingURL=solar-system-form.js.map
|