blue-chestnut-solar-expert 0.0.27 → 0.0.28

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.
Files changed (38) hide show
  1. package/dist/cjs/eraser-icon.house-icon.icon-selector.map-draw.map-selector.move-icon.octagon-minus-icon.polygon-buttons.polygon-information.search-icon.settings-icon.settings-modal.solar-expert.solar-system-form.tool-box.undo-icon.entry.cjs.js.map +1 -1
  2. package/dist/cjs/eraser-icon_16.cjs.entry.js +40 -40
  3. package/dist/cjs/eraser-icon_16.cjs.entry.js.map +1 -1
  4. package/dist/cjs/loading-widget.cjs.entry.js +1 -1
  5. package/dist/cjs/solar-calculator.cjs.entry.js +1 -1
  6. package/dist/collection/components/settings/settings.js +8 -8
  7. package/dist/collection/components/settings/settings.js.map +1 -1
  8. package/dist/collection/components/solar-calculator/solar-calculator.js +1 -1
  9. package/dist/collection/components/solar-expert/solar-expert.js +1 -1
  10. package/dist/collection/components/solar-system-form/solar-system-form.js +31 -31
  11. package/dist/collection/components/widgets/loading-widget.js +1 -1
  12. package/dist/components/loading-widget.js +1 -1
  13. package/dist/components/map-draw.js +1 -1
  14. package/dist/components/{p-BraaSfVN.js → p-C8b9lX1K.js} +33 -33
  15. package/dist/components/{p-BraaSfVN.js.map → p-C8b9lX1K.js.map} +1 -1
  16. package/dist/components/{p-Cfxk__-m.js → p-Cp6mvZCj.js} +4 -4
  17. package/dist/components/{p-Cfxk__-m.js.map → p-Cp6mvZCj.js.map} +1 -1
  18. package/dist/components/{p-aI3c1NCj.js → p-DRZd44KM.js} +10 -10
  19. package/dist/components/p-DRZd44KM.js.map +1 -0
  20. package/dist/components/settings-modal.js +1 -1
  21. package/dist/components/solar-calculator.js +1 -1
  22. package/dist/components/solar-expert.js +4 -4
  23. package/dist/components/solar-system-form.js +1 -1
  24. package/dist/esm/eraser-icon.house-icon.icon-selector.map-draw.map-selector.move-icon.octagon-minus-icon.polygon-buttons.polygon-information.search-icon.settings-icon.settings-modal.solar-expert.solar-system-form.tool-box.undo-icon.entry.js.map +1 -1
  25. package/dist/esm/eraser-icon_16.entry.js +40 -40
  26. package/dist/esm/eraser-icon_16.entry.js.map +1 -1
  27. package/dist/esm/loading-widget.entry.js +1 -1
  28. package/dist/esm/solar-calculator.entry.js +1 -1
  29. package/dist/stencil-library/eraser-icon.house-icon.icon-selector.map-draw.map-selector.move-icon.octagon-minus-icon.polygon-buttons.polygon-information.search-icon.settings-icon.settings-modal.solar-expert.solar-system-form.tool-box.undo-icon.entry.esm.js.map +1 -1
  30. package/dist/stencil-library/{p-e423f7bb.entry.js → p-255fae24.entry.js} +2 -2
  31. package/dist/stencil-library/{p-e423f7bb.entry.js.map → p-255fae24.entry.js.map} +1 -1
  32. package/dist/stencil-library/{p-74e0c2f0.entry.js → p-4020a1f0.entry.js} +2 -2
  33. package/dist/stencil-library/{p-7e0b62d2.entry.js → p-76ce6493.entry.js} +2 -2
  34. package/dist/stencil-library/stencil-library.esm.js +1 -1
  35. package/package.json +1 -1
  36. package/dist/components/p-aI3c1NCj.js.map +0 -1
  37. /package/dist/stencil-library/{p-74e0c2f0.entry.js.map → p-4020a1f0.entry.js.map} +0 -0
  38. /package/dist/stencil-library/{p-7e0b62d2.entry.js.map → p-76ce6493.entry.js.map} +0 -0
@@ -9,7 +9,7 @@ const LoadingWidget = class {
9
9
  index.registerInstance(this, hostRef);
10
10
  }
11
11
  render() {
12
- return (index.h("div", { key: '53e8e35b4de7d6d272ca070f67a5fe266fa787f4', class: "absolute flex items-center justify-center bg-muted bg-opacity-75 z-20 pt-7 rounded-4xl" }, index.h("div", { key: '906b14debcd98b44be5547035b41d94cf8dc052f', class: "animate-spin rounded-full h-16 w-16 border-t-2 border-b-2 border-secondary" })));
12
+ return (index.h("div", { key: 'fd87a9b0905bfc9237be96adee10ac9605531e2a', class: "absolute flex items-center justify-center bg-muted bg-opacity-75 z-20 pt-7 rounded-4xl" }, index.h("div", { key: 'e83ac46dcdb9958a2f9e697cb16f8924684a6c6f', class: "animate-spin rounded-full h-16 w-16 border-t-2 border-b-2 border-secondary" })));
13
13
  }
14
14
  };
15
15
  LoadingWidget.style = outputCss;
@@ -210,7 +210,7 @@ const SolarCalculator = class {
210
210
  });
211
211
  }
212
212
  render() {
213
- return (index.h("div", { key: 'b7e6c360cd1b155c37eb41c91724d2dc61034b15', class: "flex flex-col w-full h-full p-3" }, index.h("div", { key: 'e4db04c2ae45a3371013496ad656ce862f0b1b2a', class: "pb-3" }, index.h("div", { key: '56cc5e5db9c6c1a6edc3b4751e7f5187b6abf571', class: "relative" }, index.h("i", { key: '636aa61ed640439d9263f3a53041dc9a9e34a671', "data-lucide": "search", class: "absolute left-3 top-1/2 transform -translate-y-1/2 text-text-placeholder " }), index.h("input", { key: 'a502ea7fcf871e1e8a3eba531a7a4bd117bb6b03', ref: (el) => this.inputElement = el, type: "text", placeholder: "Search for a location", class: "w-full pl-10 pr-4 py-2 border border-border rounded-4xl focus:outline-none focus:ring-2 focus:ring-info bg-muted" }))), this.buildingInsights && (index.h("div", { key: 'd2b113dc19f6d42df8a2698aa870f6c3b2343168' }, "buildingInsights", index.h("div", { key: '7e3e814e8c001d63ac0c260e9d7aec64f801ca45' }, JSON.stringify(this.buildingInsights))))));
213
+ return (index.h("div", { key: 'b996ba9138084650cf00d7334e79202be6ddb054', class: "flex flex-col w-full h-full p-3" }, index.h("div", { key: 'f4b38a9b018e2f1e049ecbc8f6dfe06e950add77', class: "pb-3" }, index.h("div", { key: 'dccce38ba962b2b217abc23ca05d1563773d629d', class: "relative" }, index.h("i", { key: '0199eb1a3862e8e27defcda2dad9c85e273c7069', "data-lucide": "search", class: "absolute left-3 top-1/2 transform -translate-y-1/2 text-text-placeholder " }), index.h("input", { key: '85530eb8e3a1e6f6939ad678fafd75ae4758a8e7', ref: (el) => this.inputElement = el, type: "text", placeholder: "Search for a location", class: "w-full pl-10 pr-4 py-2 border border-border rounded-4xl focus:outline-none focus:ring-2 focus:ring-info bg-muted" }))), this.buildingInsights && (index.h("div", { key: 'b89f57b541ab152a44af62ebbdb6eb12de7fe5ec' }, "buildingInsights", index.h("div", { key: '2c9507ea6b80def3e41f0d85605c0a01365e2a94' }, JSON.stringify(this.buildingInsights))))));
214
214
  }
215
215
  };
216
216
  SolarCalculator.style = outputCss;
@@ -31,14 +31,14 @@ export class SettingsModal {
31
31
  };
32
32
  render() {
33
33
  const t = getLanguageStrings(state.settings.language);
34
- return (h("div", { key: '69815a7efeb8f52a5d3422b06dc212a50b9f405b', class: "fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50" }, h("div", { key: 'ed368ae8d0d6d2946c5a4ecc559f018521e1bce8', class: "bg-primary rounded-4xl p-6 w-full max-w-md" }, h("div", { key: 'f51088beb4d8445503fa08c3dd2a2b8c886f79ce', class: "flex justify-between items-center mb-6" }, h("h2", { key: 'a9bcb7b893961bbf2032c1b8a110624ec3a95e65', class: "text-xl font-semibold" }, "Settings"), h("button", { key: '47d4dc1cc0789485da95218becfc921ae5db177c', class: "p-2 hover:bg-hover rounded-full transition-colors", onClick: this.handleClose }, h("svg", { key: '42923fdd6d5c96ceee98bdddca2e7e6bda42dcfa', xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("line", { key: '751c5243b5b785a21131b02a3142c6d46e0cffeb', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: 'e26bd2a1b20aa718ced6183130e962c9dbd159b9', x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { key: '560be61d72a1a98eea4d2788d49eee7a3107470d', class: "space-y-4" }, h("div", { key: '2e6422d175602e7a53eb3d629c37c47980c08da1' }, h("h3", { key: '0d043e5ddbfb9de4a8c198d748bd5ae39fd3b4b4', class: "text-sm font-medium text-text-muted mb-1" }, "Debug Information"), h("p", { key: '547de97a72e386222c53a5d890ad0df8fdb4d01e', class: "text-sm text-text-muted mb-1" }, "state: ", JSON.stringify(state, null, 2))), h("div", { key: 'ef75d4b5a52412cf3490488c6136e2e6e565139c' }, h("label", { key: '07b471590c8a3e5e9650139ef0a0dd7fde2e7dbc', class: "block text-sm font-medium text-text-muted mb-1" }, t.settings.language), h("select", { key: 'fa4402fa2619d420196a141bf73639b174da9d15', class: "w-full bg-muted rounded-4xl p-2", onInput: (e) => this.handleInputChange("language", e.target
35
- .value) }, h("option", { key: '602d2bdcfb44578db38430faef981b228b43c2f0', value: "en", selected: this.tempSettings.language ===
36
- "en" }, "English"), h("option", { key: '091eaf99b5fd7210af3b2acad5707c33b4a197ce', value: "es", selected: this.tempSettings.language ===
37
- "es" }, "Espa\u00F1ol"), h("option", { key: '1b9a34ea61afda6b020defb0dfb6f4cb43a20d0d', value: "de", selected: this.tempSettings.language ===
38
- "de" }, "Deutsch"))), h("div", { key: 'ab28aa21b7e895a3cfb4c8fa180996a26a94e93a' }, h("label", { key: '1f51a61d67360211c6698c9a23128f7ca643f1cd', class: "block text-sm font-medium text-text-muted mb-1" }, t.settings.rowSpacing), h("input", { key: 'e0f529022a81952601e66acb5084285b5fae69fb', type: "number", class: "w-full bg-muted rounded-4xl p-2", value: this.tempSettings.rowSpacing, onInput: (e) => this.handleInputChange("rowSpacing", parseFloat(e.target
39
- .value)) })), h("div", { key: '1c3f2de5b42a589f18a7872a399e0811a78eba62' }, h("label", { key: '2f7f314c1810ece168d2e6aa08e7969c34bf3ca2', class: "block text-sm font-medium text-text-muted mb-1" }, t.settings.columnSpacing), h("input", { key: 'f10daa9396938f2964da36b2f7401605b60e8aa4', type: "number", class: "w-full bg-muted rounded-4xl p-2", value: this.tempSettings.columnSpacing, onInput: (e) => this.handleInputChange("columnSpacing", parseFloat(e.target
40
- .value)) })), h("div", { key: '859da9b989acfc209c82cca20eb9e3e5b1f0ec4b' }, h("label", { key: '538172b3bc9e87f32f0537896bade833877001cf', class: "block text-sm font-medium text-text-muted mb-1" }, t.settings.borderInset), h("input", { key: '88704965fcdd31638e32eaff2ac7127b62cf2412', type: "number", class: "w-full bg-muted rounded-4xl p-2", value: this.tempSettings.borderInset, onInput: (e) => this.handleInputChange("borderInset", parseFloat(e.target
41
- .value)) }))), h("div", { key: '2f9d2010c149deb338bd4fca212b12bca2d4a980', class: "flex justify-end gap-4 mt-6" }, h("button", { key: 'f0202cd088004bb88c8d52aafd2c3ce747d67bf0', class: "px-4 py-2 bg-surface rounded-4xl hover:bg-surface-hover transition-colors", onClick: this.handleClose }, "Cancel"), h("button", { key: '90b164b09bc096d4ae735449f8c4576008679985', class: "px-4 py-2 bg-secondary text-muted rounded-4xl hover:bg-text-secondary transition-colors", onClick: this.handleSave }, "Save Changes")))));
34
+ return (h("div", { key: '69815a7efeb8f52a5d3422b06dc212a50b9f405b', class: "fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50" }, h("div", { key: 'ed368ae8d0d6d2946c5a4ecc559f018521e1bce8', class: "bg-primary rounded-4xl p-6 w-full max-w-md" }, h("div", { key: 'f51088beb4d8445503fa08c3dd2a2b8c886f79ce', class: "flex justify-between items-center mb-6" }, h("h2", { key: 'a9bcb7b893961bbf2032c1b8a110624ec3a95e65', class: "text-xl font-semibold" }, "Settings"), h("button", { key: '47d4dc1cc0789485da95218becfc921ae5db177c', class: "p-2 hover:bg-hover rounded-full transition-colors", onClick: this.handleClose }, h("svg", { key: '42923fdd6d5c96ceee98bdddca2e7e6bda42dcfa', xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("line", { key: '751c5243b5b785a21131b02a3142c6d46e0cffeb', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: 'e26bd2a1b20aa718ced6183130e962c9dbd159b9', x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { key: '560be61d72a1a98eea4d2788d49eee7a3107470d', class: "space-y-4" }, h("div", { key: '2e6422d175602e7a53eb3d629c37c47980c08da1' }, h("h3", { key: '0d043e5ddbfb9de4a8c198d748bd5ae39fd3b4b4', class: "text-sm font-medium text-text-muted mb-1" }, "Debug Information"), h("p", { key: '547de97a72e386222c53a5d890ad0df8fdb4d01e', class: "text-sm text-text-muted mb-1" }, "state: ", JSON.stringify(state, null, 2)), h("p", { key: 'f0b99a34387a052b37263f23dc9508f633b8ba25', class: "text-sm text-text-muted mb-1" }, navigator.userAgent)), h("div", { key: 'eed47be8b7b9fecb9f55bc97990463203dc5f34e' }, h("label", { key: 'd3f9f5b9d18a5ae92cff81d8c00c0d361620cfc1', class: "block text-sm font-medium text-text-muted mb-1" }, t.settings.language), h("select", { key: '4d91a944e57b092e9e5ed291bfc92eb73e84ff8d', class: "w-full bg-muted rounded-4xl p-2", onInput: (e) => this.handleInputChange("language", e.target
35
+ .value) }, h("option", { key: 'f065a01801c5ffce8607c242072fd36c2037dbaf', value: "en", selected: this.tempSettings.language ===
36
+ "en" }, "English"), h("option", { key: '0aa180899e17666af6c0dd272f930ea96b89ad13', value: "es", selected: this.tempSettings.language ===
37
+ "es" }, "Espa\u00F1ol"), h("option", { key: 'b0fbeed0f78f1244094ce50c5db8448e799f1c64', value: "de", selected: this.tempSettings.language ===
38
+ "de" }, "Deutsch"))), h("div", { key: 'b814d3cf2ceebf2ecfb270db2c8dd0215142c798' }, h("label", { key: '40de044f05c466ae7f95da8227c66dfb8f301ab1', class: "block text-sm font-medium text-text-muted mb-1" }, t.settings.rowSpacing), h("input", { key: '6e7885911d3304962171a9a4f2de945e7b62dceb', type: "number", class: "w-full bg-muted rounded-4xl p-2", value: this.tempSettings.rowSpacing, onInput: (e) => this.handleInputChange("rowSpacing", parseFloat(e.target
39
+ .value)) })), h("div", { key: '6f0cd38ae69cc5dc48422a8e41ce0fcbbee75629' }, h("label", { key: 'bdc86c8dd09b718666b8f3a9b60ac7c08f4474f3', class: "block text-sm font-medium text-text-muted mb-1" }, t.settings.columnSpacing), h("input", { key: '9d28aec6d130584e70670d487e0b01af89f69e76', type: "number", class: "w-full bg-muted rounded-4xl p-2", value: this.tempSettings.columnSpacing, onInput: (e) => this.handleInputChange("columnSpacing", parseFloat(e.target
40
+ .value)) })), h("div", { key: '582595eaed721488e3b0973cd72317440f75cc25' }, h("label", { key: '4ecbab16972274f55b885706becd3af406118f97', class: "block text-sm font-medium text-text-muted mb-1" }, t.settings.borderInset), h("input", { key: '085c9a1bda471e5058fb99c81ca317716d9f300d', type: "number", class: "w-full bg-muted rounded-4xl p-2", value: this.tempSettings.borderInset, onInput: (e) => this.handleInputChange("borderInset", parseFloat(e.target
41
+ .value)) }))), h("div", { key: 'd698b5e642cff47c3aa35589ec434d8b6d5b3792', class: "flex justify-end gap-4 mt-6" }, h("button", { key: '449262ec470a7f29513e6eb4a9bead1a2bf014e2', class: "px-4 py-2 bg-surface rounded-4xl hover:bg-surface-hover transition-colors", onClick: this.handleClose }, "Cancel"), h("button", { key: '723dc0f16e17be3db127b37ec5a43380be491aed', class: "px-4 py-2 bg-secondary text-muted rounded-4xl hover:bg-text-secondary transition-colors", onClick: this.handleSave }, "Save Changes")))));
42
42
  }
43
43
  static get is() { return "settings-modal"; }
44
44
  static get originalStyleUrls() {
@@ -1 +1 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/components/settings/settings.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAY,KAAK,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAQ9D,MAAM,OAAO,aAAa;IAEtB,QAAQ,CAAW;IAGX,YAAY,CAAW;IAG/B,KAAK,CAAqB;IAG1B,IAAI,CAAyB;IAE7B,iBAAiB;QACb,IAAI,CAAC,YAAY,GAAG,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;IAC7C,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AiB,CAClB,YAAY,EACZ,UAAU,CACL,CAAC,CAAC,MAA2B;iCACzB,KAAK,CACb,CACJ,GACP,CACA;oBAEN;wBACI,8DAAO,KAAK,EAAC,gDAAgD,IACxD,CAAC,CAAC,QAAQ,CAAC,aAAa,CACrB;wBACR,8DACI,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,iCAAiC,EACvC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,aAAa,EACtC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CACX,IAAI,CAAC,iBAAiB,CAClB,eAAe,EACf,UAAU,CACL,CAAC,CAAC,MAA2B;iCACzB,KAAK,CACb,CACJ,GACP,CACA;oBAEN;wBACI,8DAAO,KAAK,EAAC,gDAAgD,IACxD,CAAC,CAAC,QAAQ,CAAC,WAAW,CACnB;wBACR,8DACI,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,iCAAiC,EACvC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,WAAW,EACpC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CACX,IAAI,CAAC,iBAAiB,CAClB,aAAa,EACb,UAAU,CACL,CAAC,CAAC,MAA2B;iCACzB,KAAK,CACb,CACJ,GACP,CACA,CACJ;gBAEN,4DAAK,KAAK,EAAC,6BAA6B;oBACpC,+DACI,KAAK,EAAC,2EAA2E,EACjF,OAAO,EAAE,IAAI,CAAC,WAAW,aAGpB;oBACT,+DACI,KAAK,EAAC,yFAAyF,EAC/F,OAAO,EAAE,IAAI,CAAC,UAAU,mBAGnB,CACP,CACJ,CACJ,CACT,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Event, EventEmitter, h, Prop, State } from \"@stencil/core\";\r\nimport { Settings, state } from \"../../store\";\r\nimport { getLanguageStrings } from \"../../utils/lang/general\";\r\nimport { Language } from \"../../types/lang\";\r\n\r\n@Component({\r\n tag: \"settings-modal\",\r\n styleUrl: \"../../output.css\",\r\n shadow: false,\r\n})\r\nexport class SettingsModal {\r\n @Prop()\r\n settings: Settings;\r\n\r\n @State()\r\n private tempSettings: Settings;\r\n\r\n @Event()\r\n close: EventEmitter<void>;\r\n\r\n @Event()\r\n save: EventEmitter<Settings>;\r\n\r\n componentWillLoad() {\r\n this.tempSettings = { ...this.settings };\r\n }\r\n\r\n private handleClose = () => {\r\n if (\r\n JSON.stringify(this.tempSettings) !== JSON.stringify(this.settings)\r\n ) {\r\n if (\r\n confirm(\r\n \"Are you sure you want to close without saving your changes?\",\r\n )\r\n ) {\r\n this.close.emit();\r\n }\r\n } else {\r\n this.close.emit();\r\n }\r\n };\r\n\r\n private handleSave = () => {\r\n this.save.emit(this.tempSettings);\r\n this.close.emit();\r\n };\r\n\r\n private handleInputChange = (\r\n key: keyof Settings,\r\n value: number | Language,\r\n ) => {\r\n this.tempSettings = {\r\n ...this.tempSettings,\r\n [key]: value,\r\n };\r\n };\r\n\r\n render() {\r\n const t = getLanguageStrings(state.settings.language);\r\n return (\r\n <div class=\"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50\">\r\n <div class=\"bg-primary rounded-4xl p-6 w-full max-w-md\">\r\n <div class=\"flex justify-between items-center mb-6\">\r\n <h2 class=\"text-xl font-semibold\">Settings</h2>\r\n <button\r\n class=\"p-2 hover:bg-hover rounded-full transition-colors\"\r\n onClick={this.handleClose}\r\n >\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"24\"\r\n height=\"24\"\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n >\r\n <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\" />\r\n <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\" />\r\n </svg>\r\n </button>\r\n </div>\r\n\r\n <div class=\"space-y-4\">\r\n <div>\r\n <h3 class=\"text-sm font-medium text-text-muted mb-1\">\r\n Debug Information\r\n </h3>\r\n <p class=\"text-sm text-text-muted mb-1\">\r\n state: {JSON.stringify(state, null, 2)}\r\n </p>\r\n </div>\r\n <div>\r\n <label class=\"block text-sm font-medium text-text-muted mb-1\">\r\n {t.settings.language}\r\n </label>\r\n <select\r\n class=\"w-full bg-muted rounded-4xl p-2\"\r\n onInput={(e) =>\r\n this.handleInputChange(\r\n \"language\",\r\n (e.target as HTMLSelectElement)\r\n .value as Language,\r\n )}\r\n >\r\n <option\r\n value=\"en\"\r\n selected={this.tempSettings.language ===\r\n \"en\"}\r\n >\r\n English\r\n </option>\r\n <option\r\n value=\"es\"\r\n selected={this.tempSettings.language ===\r\n \"es\"}\r\n >\r\n Español\r\n </option>\r\n <option\r\n value=\"de\"\r\n selected={this.tempSettings.language ===\r\n \"de\"}\r\n >\r\n Deutsch\r\n </option>\r\n </select>\r\n </div>\r\n\r\n <div>\r\n <label class=\"block text-sm font-medium text-text-muted mb-1\">\r\n {t.settings.rowSpacing}\r\n </label>\r\n <input\r\n type=\"number\"\r\n class=\"w-full bg-muted rounded-4xl p-2\"\r\n value={this.tempSettings.rowSpacing}\r\n onInput={(e) =>\r\n this.handleInputChange(\r\n \"rowSpacing\",\r\n parseFloat(\r\n (e.target as HTMLInputElement)\r\n .value,\r\n ),\r\n )}\r\n />\r\n </div>\r\n\r\n <div>\r\n <label class=\"block text-sm font-medium text-text-muted mb-1\">\r\n {t.settings.columnSpacing}\r\n </label>\r\n <input\r\n type=\"number\"\r\n class=\"w-full bg-muted rounded-4xl p-2\"\r\n value={this.tempSettings.columnSpacing}\r\n onInput={(e) =>\r\n this.handleInputChange(\r\n \"columnSpacing\",\r\n parseFloat(\r\n (e.target as HTMLInputElement)\r\n .value,\r\n ),\r\n )}\r\n />\r\n </div>\r\n\r\n <div>\r\n <label class=\"block text-sm font-medium text-text-muted mb-1\">\r\n {t.settings.borderInset}\r\n </label>\r\n <input\r\n type=\"number\"\r\n class=\"w-full bg-muted rounded-4xl p-2\"\r\n value={this.tempSettings.borderInset}\r\n onInput={(e) =>\r\n this.handleInputChange(\r\n \"borderInset\",\r\n parseFloat(\r\n (e.target as HTMLInputElement)\r\n .value,\r\n ),\r\n )}\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"flex justify-end gap-4 mt-6\">\r\n <button\r\n class=\"px-4 py-2 bg-surface rounded-4xl hover:bg-surface-hover transition-colors\"\r\n onClick={this.handleClose}\r\n >\r\n Cancel\r\n </button>\r\n <button\r\n class=\"px-4 py-2 bg-secondary text-muted rounded-4xl hover:bg-text-secondary transition-colors\"\r\n onClick={this.handleSave}\r\n >\r\n Save Changes\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/components/settings/settings.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAY,KAAK,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAQ9D,MAAM,OAAO,aAAa;IAEtB,QAAQ,CAAW;IAGX,YAAY,CAAW;IAG/B,KAAK,CAAqB;IAG1B,IAAI,CAAyB;IAE7B,iBAAiB;QACb,IAAI,CAAC,YAAY,GAAG,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;IAC7C,CAAC;IAEO,WAAW,GAAG,GAAG,EAAE;QACvB,IACI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EACrE,CAAC;YACC,IACI,OAAO,CACH,6DAA6D,CAChE,EACH,CAAC;gBACC,IAAI,CAAC,KAAK,CAAC,IA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,8DACI,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,iCAAiC,EACvC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,aAAa,EACtC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CACX,IAAI,CAAC,iBAAiB,CAClB,eAAe,EACf,UAAU,CACL,CAAC,CAAC,MAA2B;iCACzB,KAAK,CACb,CACJ,GACP,CACA;oBAEN;wBACI,8DAAO,KAAK,EAAC,gDAAgD,IACxD,CAAC,CAAC,QAAQ,CAAC,WAAW,CACnB;wBACR,8DACI,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,iCAAiC,EACvC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,WAAW,EACpC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CACX,IAAI,CAAC,iBAAiB,CAClB,aAAa,EACb,UAAU,CACL,CAAC,CAAC,MAA2B;iCACzB,KAAK,CACb,CACJ,GACP,CACA,CACJ;gBAEN,4DAAK,KAAK,EAAC,6BAA6B;oBACpC,+DACI,KAAK,EAAC,2EAA2E,EACjF,OAAO,EAAE,IAAI,CAAC,WAAW,aAGpB;oBACT,+DACI,KAAK,EAAC,yFAAyF,EAC/F,OAAO,EAAE,IAAI,CAAC,UAAU,mBAGnB,CACP,CACJ,CACJ,CACT,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Event, EventEmitter, h, Prop, State } from \"@stencil/core\";\r\nimport { Settings, state } from \"../../store\";\r\nimport { getLanguageStrings } from \"../../utils/lang/general\";\r\nimport { Language } from \"../../types/lang\";\r\n\r\n@Component({\r\n tag: \"settings-modal\",\r\n styleUrl: \"../../output.css\",\r\n shadow: false,\r\n})\r\nexport class SettingsModal {\r\n @Prop()\r\n settings: Settings;\r\n\r\n @State()\r\n private tempSettings: Settings;\r\n\r\n @Event()\r\n close: EventEmitter<void>;\r\n\r\n @Event()\r\n save: EventEmitter<Settings>;\r\n\r\n componentWillLoad() {\r\n this.tempSettings = { ...this.settings };\r\n }\r\n\r\n private handleClose = () => {\r\n if (\r\n JSON.stringify(this.tempSettings) !== JSON.stringify(this.settings)\r\n ) {\r\n if (\r\n confirm(\r\n \"Are you sure you want to close without saving your changes?\",\r\n )\r\n ) {\r\n this.close.emit();\r\n }\r\n } else {\r\n this.close.emit();\r\n }\r\n };\r\n\r\n private handleSave = () => {\r\n this.save.emit(this.tempSettings);\r\n this.close.emit();\r\n };\r\n\r\n private handleInputChange = (\r\n key: keyof Settings,\r\n value: number | Language,\r\n ) => {\r\n this.tempSettings = {\r\n ...this.tempSettings,\r\n [key]: value,\r\n };\r\n };\r\n\r\n render() {\r\n const t = getLanguageStrings(state.settings.language);\r\n return (\r\n <div class=\"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50\">\r\n <div class=\"bg-primary rounded-4xl p-6 w-full max-w-md\">\r\n <div class=\"flex justify-between items-center mb-6\">\r\n <h2 class=\"text-xl font-semibold\">Settings</h2>\r\n <button\r\n class=\"p-2 hover:bg-hover rounded-full transition-colors\"\r\n onClick={this.handleClose}\r\n >\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"24\"\r\n height=\"24\"\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n >\r\n <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\" />\r\n <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\" />\r\n </svg>\r\n </button>\r\n </div>\r\n\r\n <div class=\"space-y-4\">\r\n <div>\r\n <h3 class=\"text-sm font-medium text-text-muted mb-1\">\r\n Debug Information\r\n </h3>\r\n <p class=\"text-sm text-text-muted mb-1\">\r\n state: {JSON.stringify(state, null, 2)}\r\n </p>\r\n <p class=\"text-sm text-text-muted mb-1\">\r\n {navigator.userAgent}\r\n </p>\r\n </div>\r\n <div>\r\n <label class=\"block text-sm font-medium text-text-muted mb-1\">\r\n {t.settings.language}\r\n </label>\r\n <select\r\n class=\"w-full bg-muted rounded-4xl p-2\"\r\n onInput={(e) =>\r\n this.handleInputChange(\r\n \"language\",\r\n (e.target as HTMLSelectElement)\r\n .value as Language,\r\n )}\r\n >\r\n <option\r\n value=\"en\"\r\n selected={this.tempSettings.language ===\r\n \"en\"}\r\n >\r\n English\r\n </option>\r\n <option\r\n value=\"es\"\r\n selected={this.tempSettings.language ===\r\n \"es\"}\r\n >\r\n Español\r\n </option>\r\n <option\r\n value=\"de\"\r\n selected={this.tempSettings.language ===\r\n \"de\"}\r\n >\r\n Deutsch\r\n </option>\r\n </select>\r\n </div>\r\n\r\n <div>\r\n <label class=\"block text-sm font-medium text-text-muted mb-1\">\r\n {t.settings.rowSpacing}\r\n </label>\r\n <input\r\n type=\"number\"\r\n class=\"w-full bg-muted rounded-4xl p-2\"\r\n value={this.tempSettings.rowSpacing}\r\n onInput={(e) =>\r\n this.handleInputChange(\r\n \"rowSpacing\",\r\n parseFloat(\r\n (e.target as HTMLInputElement)\r\n .value,\r\n ),\r\n )}\r\n />\r\n </div>\r\n\r\n <div>\r\n <label class=\"block text-sm font-medium text-text-muted mb-1\">\r\n {t.settings.columnSpacing}\r\n </label>\r\n <input\r\n type=\"number\"\r\n class=\"w-full bg-muted rounded-4xl p-2\"\r\n value={this.tempSettings.columnSpacing}\r\n onInput={(e) =>\r\n this.handleInputChange(\r\n \"columnSpacing\",\r\n parseFloat(\r\n (e.target as HTMLInputElement)\r\n .value,\r\n ),\r\n )}\r\n />\r\n </div>\r\n\r\n <div>\r\n <label class=\"block text-sm font-medium text-text-muted mb-1\">\r\n {t.settings.borderInset}\r\n </label>\r\n <input\r\n type=\"number\"\r\n class=\"w-full bg-muted rounded-4xl p-2\"\r\n value={this.tempSettings.borderInset}\r\n onInput={(e) =>\r\n this.handleInputChange(\r\n \"borderInset\",\r\n parseFloat(\r\n (e.target as HTMLInputElement)\r\n .value,\r\n ),\r\n )}\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"flex justify-end gap-4 mt-6\">\r\n <button\r\n class=\"px-4 py-2 bg-surface rounded-4xl hover:bg-surface-hover transition-colors\"\r\n onClick={this.handleClose}\r\n >\r\n Cancel\r\n </button>\r\n <button\r\n class=\"px-4 py-2 bg-secondary text-muted rounded-4xl hover:bg-text-secondary transition-colors\"\r\n onClick={this.handleSave}\r\n >\r\n Save Changes\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
@@ -54,7 +54,7 @@ export class SolarCalculator {
54
54
  });
55
55
  }
56
56
  render() {
57
- return (h("div", { key: 'b7e6c360cd1b155c37eb41c91724d2dc61034b15', class: "flex flex-col w-full h-full p-3" }, h("div", { key: 'e4db04c2ae45a3371013496ad656ce862f0b1b2a', class: "pb-3" }, h("div", { key: '56cc5e5db9c6c1a6edc3b4751e7f5187b6abf571', class: "relative" }, h("i", { key: '636aa61ed640439d9263f3a53041dc9a9e34a671', "data-lucide": "search", class: "absolute left-3 top-1/2 transform -translate-y-1/2 text-text-placeholder " }), h("input", { key: 'a502ea7fcf871e1e8a3eba531a7a4bd117bb6b03', ref: (el) => this.inputElement = el, type: "text", placeholder: "Search for a location", class: "w-full pl-10 pr-4 py-2 border border-border rounded-4xl focus:outline-none focus:ring-2 focus:ring-info bg-muted" }))), this.buildingInsights && (h("div", { key: 'd2b113dc19f6d42df8a2698aa870f6c3b2343168' }, "buildingInsights", h("div", { key: '7e3e814e8c001d63ac0c260e9d7aec64f801ca45' }, JSON.stringify(this.buildingInsights))))));
57
+ return (h("div", { key: 'b996ba9138084650cf00d7334e79202be6ddb054', class: "flex flex-col w-full h-full p-3" }, h("div", { key: 'f4b38a9b018e2f1e049ecbc8f6dfe06e950add77', class: "pb-3" }, h("div", { key: 'dccce38ba962b2b217abc23ca05d1563773d629d', class: "relative" }, h("i", { key: '0199eb1a3862e8e27defcda2dad9c85e273c7069', "data-lucide": "search", class: "absolute left-3 top-1/2 transform -translate-y-1/2 text-text-placeholder " }), h("input", { key: '85530eb8e3a1e6f6939ad678fafd75ae4758a8e7', ref: (el) => this.inputElement = el, type: "text", placeholder: "Search for a location", class: "w-full pl-10 pr-4 py-2 border border-border rounded-4xl focus:outline-none focus:ring-2 focus:ring-info bg-muted" }))), this.buildingInsights && (h("div", { key: 'b89f57b541ab152a44af62ebbdb6eb12de7fe5ec' }, "buildingInsights", h("div", { key: '2c9507ea6b80def3e41f0d85605c0a01365e2a94' }, JSON.stringify(this.buildingInsights))))));
58
58
  }
59
59
  static get is() { return "solar-calculator"; }
60
60
  static get originalStyleUrls() {
@@ -118,7 +118,7 @@ export class SolarExpert {
118
118
  }
119
119
  render() {
120
120
  const t = getLanguageStrings(this.language);
121
- return (h("div", { key: 'd231a61b226c9f69c9feefc756449dd894778d78', class: "flex flex-col w-full h-full p-3 m-auto", id: "solar-calculator" }, this.showMapSelector
121
+ return (h("div", { key: 'd0ba28e061b5c4416ee787adc6218a00f0cf283b', class: "flex flex-col w-full h-full p-3 m-auto", id: "solar-calculator" }, this.showMapSelector
122
122
  ? (h("map-selector", { "api-key": this.apiKey, language: this.language }))
123
123
  : (h(h.Fragment, null, h("div", { class: "pb-3 flex flex-row gap-4 items-stretch w-full bg-primary" }, h("div", { class: "relative flex-3" }, h("div", { class: "absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground" }, h("search-icon", null)), h("input", { ref: (el) => this.inputElement = el, type: "text", placeholder: t.solarExpert
124
124
  .searchPlaceholder, class: "w-full pl-10 pr-4 py-2 border border-border rounded-4xl focus:ring-secondary bg-muted text-muted-foreground h-full" })), h("button", { onClick: () => this.handleChooseOnMap(), class: "flex-1 pl-4 pr-4 py-2 border border-border bg-muted rounded-4xl focus:ring-secondary hover:bg-secondary hover:text-muted" }, t.mapSelector.chooseOnMap)), h("map-draw", { apiKey: this.apiKey })))));
@@ -137,13 +137,13 @@ export class SolarSystemForm {
137
137
  }
138
138
  render() {
139
139
  const t = getLanguageStrings(state.settings.language);
140
- return (h("div", { key: 'c266b37975e7bf255dbc88401985fb323de3e5af', class: "flex flex-col justify-center items-center w-full h-full pt-4" // style={{
140
+ return (h("div", { key: '58296df9ae0c416d8a38c2a9e763fbdec361e7b2', class: "flex flex-col justify-center items-center w-full h-full pt-4" // style={{
141
141
  ,
142
142
  // display: (Object.keys(this.systemConfigs).length === 0)
143
143
  // ? "none"
144
144
  // : "flex",
145
145
  // }}
146
- id: "solar-system-form" }, h("h1", { key: 'eb64a6e9ccd98324dbba37fb30995f40166aa44a', class: "text-2xl font-bold text-secondary mb-4 w-full" }, t.solarSystemForm.title), h("div", { key: '4c956a91adc59f28507d872af5c75e8a7ee342ea', class: "w-full bg-primary rounded-4xl p-6 space-y-6" }, h("div", { key: '6a7dfac9eb9de4d36056cf69828437e872c5ae06', class: "space-y-4" }, h("h2", { key: 'ae94acd1ff6f75b4be71a466d6daac185151fdd5', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.systemInformation), h("div", { key: '63282daecf08a8f6f048f51c0e89df011f93b705', class: "grid grid-rows-3 gap-0" }, h("div", { key: '00bd6d2e2324d7f465f2092d2544728903c96309', class: "grid grid-cols-2 gap-4" }, h("label", { key: '2973927880c85ccebba34a69491431bf55affb4b', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.numberOfPanels), h("label", { key: 'e3d1d5033b7b94e8a0aaaf240a84d6de638b066f', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.panelPeakPower)), h("div", { key: 'ed0360bc6c983a7218fdd24d8ed5bd1d05fc3f08', class: "grid grid-cols-2 gap-4" }, !this.isIOS()
146
+ id: "solar-system-form" }, h("h1", { key: '8bc991059b82822639864d0ff59abf228959b09a', class: "text-2xl font-bold text-secondary mb-4 w-full" }, t.solarSystemForm.title), h("div", { key: '7e3e5e154680a75ef7982cc959c59c94ef557cc3', class: "w-full bg-primary rounded-4xl p-6 space-y-6" }, h("div", { key: 'f9edb930082dfdc024f1156e60bfb833578d6428', class: "space-y-4" }, h("h2", { key: 'c6ac55b26ed020900ea4b9a06884917ff1ebc1dd', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.systemInformation), h("div", { key: '39a191bbfb457a51bec489d182ab4ad1252d8c29', class: "grid grid-rows-3 gap-0" }, h("div", { key: 'f9ad33becaeeca2662e419254f9f195d427111f9', class: "grid grid-cols-2 gap-4" }, h("label", { key: '4d266c1e198f53e93ee6891832e4d56508abe57c', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.numberOfPanels), h("label", { key: '8c7d173b40b06129c991f9ca2acae7989a0714d6', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.panelPeakPower)), h("div", { key: '8fda12c5d7eec29418ad796112dc64f50e73eead', class: "grid grid-cols-2 gap-4" }, !this.isIOS()
147
147
  ? (h("input", { type: "number", class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground", value: this.numberOfPanels, readOnly: true }))
148
148
  : (h("input", { type: "number", min: "1", max: this.maxPanels, class: "flex-1 px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground", value: this.numberOfPanels, onInput: (e) => {
149
149
  const value = parseInt(e.target
@@ -154,36 +154,36 @@ export class SolarSystemForm {
154
154
  this.numberOfPanels = value;
155
155
  this.recalculate();
156
156
  }
157
- } })), h("input", { key: 'e4b83e44a89fd022dc85ae28a43de632d485fd86', type: "number", class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground", value: this.panelPeakPower, readonly: true })), h("div", { key: '17a5059aa55948d8e3b8fa6e88894b9defdb19aa', class: "grid grid-cols-2 gap-4" }, h("div", { key: '8b8489e71990fb17b1b30c77cb191108f8ad4a91', class: "w-full pt-2" }, !this.isIOS() &&
158
- (h("input", { key: '2311eeae2c0a226f884ddd015c6e6e31b9be8ec0', 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) => {
157
+ } })), h("input", { key: '4e138a8675c4bb81c09a6d711481e98e1f2977fd', type: "number", class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground", value: this.panelPeakPower, readonly: true })), h("div", { key: 'bd4f2a05cc7e6dedf2036fecdc37e809ade67fd1', class: "grid grid-cols-2 gap-4" }, h("div", { key: 'c3285bcc8c967e7e57e15b4c938c797dc33d1687', class: "w-full pt-2" }, !this.isIOS() &&
158
+ (h("input", { key: '8612184d1fc6df69c2f4ec95581278162367a36b', type: "range", min: "1", max: this.maxPanels, step: "1", class: "input-slider w-full custom-range appearance-none rounded-full bg-transparent [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-black/25 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:h-[10px] [&::-webkit-slider-thumb]:w-[10px] [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-muted", value: this.numberOfPanels, onInput: (e) => {
159
159
  this.numberOfPanels =
160
160
  parseInt(e.target
161
161
  .value);
162
162
  this.recalculate();
163
- } }))))), h("div", { key: '5a6dc4dd908db73bebbeeabd8e0f08e2327072fa', class: "bg-muted rounded-4xl p-4" }, h("div", { key: 'b6e0408604bb166b67af91cb469c20f5a06713ee', class: "flex items-center justify-between" }, h("span", { key: '731f9a26c9b0de6265e046769fe4a2fa219cd925', class: "text-text-muted" }, t.solarSystemForm.totalSystemPeakPower), h("span", { key: '12791928a92ae0b8b41703aa5cd1d24f4d256373', class: "text-xl font-bold text-secondary" }, (DEFAULT_SOLAR_PANEL_TYPE.kWattPeak *
164
- this.numberOfPanels).toFixed(1), " kW")))), h("div", { key: '3b5e85b8eda1732b645523e018c025cac38e1019', class: "space-y-4" }, h("h2", { key: '021d9756e32e625680cb6c521c274e6d577d12ed', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.householdConsumptionTitle), h("div", { key: 'e898da7ec25cc7b31b1fa24afe82ff3297f20fc2', class: "grid grid-rows-2 gap-0" }, h("div", { key: '4e6630e7eb0947e406ef31f9242d4ca5a82d1631', class: "grid grid-cols-2 gap-4" }, h("label", { key: 'ed7edfe56c37a789aba9679be5331855cb1b04f3', class: "block text-sm font-medium text-text-muted" }, t.solarSystemForm.annualConsumption), h("label", { key: '499701b6c105716091dd63b044c31797980d3b3b', class: "block text-sm font-medium text-text-muted" }, t.solarSystemForm.consumptionProfileTitle)), h("div", { key: 'ccde867b428477e6e9845456a95ade8f39918074', class: "grid grid-cols-2 gap-4" }, h("input", { key: 'c1af1361ac0325e969b401ebbd8812e58ca4ba6c', type: "number", class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground", value: this.householdConsumption, onInput: (e) => {
163
+ } }))))), h("div", { key: 'ce90bb3d25bf9ed171155f98d386abc1bdffcac8', class: "bg-muted rounded-4xl p-4" }, h("div", { key: 'feea6fc5bb47c6d6569953a51cf61efe777603fe', class: "flex items-center justify-between" }, h("span", { key: '8e64cd4cd6fe2b0d682e02d3f0505e3b3d5a7654', class: "text-text-muted" }, t.solarSystemForm.totalSystemPeakPower), h("span", { key: '72f0265b00ddfe306cfe35ff974ef725d564d9ad', class: "text-xl font-bold text-secondary" }, (DEFAULT_SOLAR_PANEL_TYPE.kWattPeak *
164
+ this.numberOfPanels).toFixed(1), " kW")))), h("div", { key: 'cfa2ca911004fd28740af77a8d426fd11a33844f', class: "space-y-4" }, h("h2", { key: '3dd69d68a48943c83a4bf3983e53eebd04598d97', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.householdConsumptionTitle), h("div", { key: '4ba69b22c9e466cc4491bdbea538143261f8da4b', class: "grid grid-rows-2 gap-0" }, h("div", { key: '5021208200c6e7d17d8febfe3ff9732474b63f33', class: "grid grid-cols-2 gap-4" }, h("label", { key: '98b59fc7b56b57d01caa3dd39aceaf7b79404fc1', class: "block text-sm font-medium text-text-muted" }, t.solarSystemForm.annualConsumption), h("label", { key: 'a43f6353931e6432fc6175843d6cafe2345c2ada', class: "block text-sm font-medium text-text-muted" }, t.solarSystemForm.consumptionProfileTitle)), h("div", { key: '2b00b4f45bdc5b3a7a02e6aedc92350e113c4133', class: "grid grid-cols-2 gap-4" }, h("input", { key: '636be800fc83bb0855f144408e931496ea1553db', type: "number", class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground", value: this.householdConsumption, onInput: (e) => {
165
165
  this.householdConsumption = parseInt(e.target
166
166
  .value);
167
167
  this.recalculate();
168
- } }), h("select", { key: '372215364ba07e0e6df4018cffcdb790eca4ceb4', class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground", onChange: (e) => {
168
+ } }), h("select", { key: '5d32047cbf3e368ad98aa97eea3199989c714a0a', class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground", onChange: (e) => {
169
169
  this.consumptionProfile =
170
170
  e.target
171
171
  .value;
172
172
  this.recalculate();
173
- } }, h("option", { key: '4cc1eecbdf84d54d44768d3a82518cfd74765797', value: "mostly_at_home", selected: this.consumptionProfile ===
173
+ } }, h("option", { key: 'e760307e3a0db5ccc41e275aa51c7c4dca4d11ee', value: "mostly_at_home", selected: this.consumptionProfile ===
174
174
  "mostly_at_home" }, t.solarSystemForm.consumptionProfiles
175
- .mostlyAtHome), h("option", { key: '656f1a6e13fd3eedcf85aeca81c21638422e6d7a', value: "mostly_away", selected: this.consumptionProfile ===
175
+ .mostlyAtHome), h("option", { key: '5eb339cb0c926d55cd37b75580f861b06245e56e', value: "mostly_away", selected: this.consumptionProfile ===
176
176
  "mostly_away" }, t.solarSystemForm.consumptionProfiles
177
- .mostlyAway))))), h("div", { key: 'c9e2c127c0feef2da67a3ddfc23a5ccdcd9bacd3', class: "space-y-4" }, h("h2", { key: '541ae5616e61cc295be764a9e9be6e7967b8f7b3', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.additionalComponents.title), h("div", { key: 'f876d755481dc2a79f9d66aafc635e155c9994c4', class: "flex flex-col gap-4" }, h("div", { key: '4cde8645d3a9a7de29d2d48b09f48cb5c6d54544', class: "flex flex-col bg-muted rounded-4xl p-4 gap-4" }, h("div", { key: '13fe6b1709259cf5398b3e164ec5f17bb305df85', class: "flex items-center justify-between" }, h("div", { key: '3fc52ece3121a78371716deebdb42de5a96d3d7c', class: "flex items-center gap-2" }, h("input", { key: 'be951a3f01e56a3a792385182e2781cb9b2c5c20', type: "checkbox", id: "heatPump", class: "w-4 h-4 accent-tertiary border-gray-300 rounded-full focus:ring-tertiary focus:ring-offset-0 focus:ring-2", checked: this.heatPump > 0, onChange: (e) => {
177
+ .mostlyAway))))), h("div", { key: '4ee0eed5ae63f5f670a08d0706ac5cbc203b7b43', class: "space-y-4" }, h("h2", { key: '5f2fdb67ea997c3b13822767679841d5bb52a27c', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.additionalComponents.title), h("div", { key: '2aeb94a24b1097e34a412860dd7a34fa66e58cac', class: "flex flex-col gap-4" }, h("div", { key: '843ef8f7a7b881436a28e20a7565c2f1d20035d5', class: "flex flex-col bg-muted rounded-4xl p-4 gap-4" }, h("div", { key: 'bba188e686ffc07f9c2300ef5481a7c4c38f8d01', class: "flex items-center justify-between" }, h("div", { key: '5a60e94a9e73c067fa0730ba04cb9dc78d4c699e', class: "flex items-center gap-2" }, h("input", { key: '022904f62f9bec7b1b0ff7b7cda70da387afc7f0', type: "checkbox", id: "heatPump", class: "w-4 h-4 accent-tertiary border-gray-300 rounded-full focus:ring-tertiary focus:ring-offset-0 focus:ring-2", checked: this.heatPump > 0, onChange: (e) => {
178
178
  this.heatPump =
179
179
  e.target
180
180
  .checked
181
181
  ? 100
182
182
  : 0;
183
183
  this.recalculate();
184
- } }), h("label", { key: 'dcb090e3b79249c53ea1e5eef916319f34d142d9', htmlFor: "heatPump", class: "text-text-muted" }, t.solarSystemForm
184
+ } }), h("label", { key: '180f948ac4e201ab73d55cbcb31b4102fbb12085', htmlFor: "heatPump", class: "text-text-muted" }, t.solarSystemForm
185
185
  .additionalComponents
186
- .heatPump)), (this.heatPump > 0 && !this.isIOS()) && (h("span", { key: '545a89ac915ab23b99ef36e3b052809a821b942c', class: "text-text-muted" }, this.heatPump, " m\u00B2"))), this.heatPump > 0 && (h("div", { key: '8f072444efd39baf177bf2d4c92d1212c7f8ed07', class: "flex flex-col gap-2" }, this.isIOS()
186
+ .heatPump)), (this.heatPump > 0 && !this.isIOS()) && (h("span", { key: '84f39c22d2bd91da501971c0a44e92a85fd111a5', class: "text-text-muted" }, this.heatPump, " m\u00B2"))), this.heatPump > 0 && (h("div", { key: '7d72b86d4a0404c284581713bfe4bc21b43c2e6d', class: "flex flex-col gap-2" }, this.isIOS()
187
187
  ? (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 border border-gray-300 focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", value: this.heatPump, onInput: (e) => {
188
188
  const value = parseInt(e.target
189
189
  .value);
@@ -199,37 +199,37 @@ export class SolarSystemForm {
199
199
  parseInt(e.target
200
200
  .value);
201
201
  this.recalculate();
202
- } }))))), h("div", { key: '4cf36bd4a5cc18ccdcd6a42d4f2eed96960f59bd', class: "flex flex-col bg-muted rounded-4xl p-4 gap-4" }, h("div", { key: '2c035e723f9e704348d6630ec7deb055c26b16b7', class: "flex items-center justify-between" }, h("div", { key: '43fbb50a3231f1db687d646f1c10b9f20dfce1b5', class: "flex items-center gap-2" }, h("input", { key: 'c8879905d13d21abd9a72ce52f5cee85bbf8ad32', type: "checkbox", id: "electricCar", class: "w-4 h-4 accent-tertiary border-gray-300 rounded focus:ring-tertiary focus:ring-offset-0 focus:ring-2", checked: this.electricCar, onChange: (e) => {
202
+ } }))))), h("div", { key: 'c9e2d581cea0a188c7e83c0e0b0dba5bf7bae9ca', class: "flex flex-col bg-muted rounded-4xl p-4 gap-4" }, h("div", { key: 'a58a0d3114ff20a137bf217e054394bc427250a7', class: "flex items-center justify-between" }, h("div", { key: '2022bc49ef1e53f7191558e93b64088ba34580a7', class: "flex items-center gap-2" }, h("input", { key: '5736e93590501ea2e0fbe72fa9ef85b8d662b941', type: "checkbox", id: "electricCar", class: "w-4 h-4 accent-tertiary border-gray-300 rounded focus:ring-tertiary focus:ring-offset-0 focus:ring-2", checked: this.electricCar, onChange: (e) => {
203
203
  this.electricCar =
204
204
  e.target
205
205
  .checked;
206
206
  this.recalculate();
207
- } }), h("label", { key: '103a6971dbf81390d7f4ce6a139add57213cbaf3', htmlFor: "electricCar", class: "text-text-muted" }, t.solarSystemForm
207
+ } }), h("label", { key: '26ec06696859d804833acf722fa9b8b521854bf2', htmlFor: "electricCar", class: "text-text-muted" }, t.solarSystemForm
208
208
  .additionalComponents
209
- .electricCar))), this.electricCar && (h("div", { key: 'c6d68b9846f938a75dafd1c6f2c778cfb552b6a4', class: "flex flex-col gap-2" }, h("div", { key: '200e40b6ab96359ce21a4bca2dc249e07cb46c6c', class: "grid grid-cols-2 gap-4" }, h("label", { key: 'fcee6acdf4ee6b30fe5e80283b24376ffbf21c70', class: "text-sm text-text-muted" }, t.solarSystemForm
209
+ .electricCar))), this.electricCar && (h("div", { key: '9c22e6bef2d797ddd317d67508a2fc80bb4b4607', class: "flex flex-col gap-2" }, h("div", { key: 'aff0e5b462bb1bd6fd2d6fa7bec9f23a9f721c4c', class: "grid grid-cols-2 gap-4" }, h("label", { key: '5d2f8303e316aa4d07b83775b14048a1b5fa1d77', class: "text-sm text-text-muted" }, t.solarSystemForm
210
210
  .additionalComponents
211
- .chargingTime), h("label", { key: 'a9560d93c66951f17831b73fadcfe8e18e8d6570', class: "text-sm text-text-muted" }, t.solarSystemForm
211
+ .chargingTime), h("label", { key: '479c64be185c33752bd3943cee7c320db1365b00', class: "text-sm text-text-muted" }, t.solarSystemForm
212
212
  .additionalComponents
213
- .kilometersPerYear)), h("div", { key: '7ac5bd24cae9ad0d969c89c7a3437b5d54469660', class: "grid grid-cols-2 gap-4" }, h("select", { key: '78db408ebe0da37860c61d7762490557d5238a8f', class: "w-full px-4 py-2 rounded-4xl border border-gray-300 focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", onChange: (e) => {
213
+ .kilometersPerYear)), h("div", { key: 'b33eb67682580f4fe226a4e24977849b1c498c0d', class: "grid grid-cols-2 gap-4" }, h("select", { key: 'fd0679d0557120e9e60409261c0449d17a62b9b8', class: "w-full px-4 py-2 rounded-4xl border border-gray-300 focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", onChange: (e) => {
214
214
  this.electricCarChargingTime =
215
215
  e.target
216
216
  .value;
217
217
  this.recalculate();
218
- } }, h("option", { key: 'e8787e9303dc915108e531c446840d53143752fa', value: "day", selected: this
218
+ } }, h("option", { key: '533ba2939c88b597a8de6a33e99d423be567c63e', value: "day", selected: this
219
219
  .electricCarChargingTime ===
220
220
  "day" }, t.solarSystemForm
221
221
  .additionalComponents
222
- .chargingTimeDay), h("option", { key: 'a22bd36788ff24e84d2f829dff4d46f8923508a1', value: "night", selected: this
222
+ .chargingTimeDay), h("option", { key: '5f38ec5c8e84e7e958b898d53ef8a4cd52fb2001', value: "night", selected: this
223
223
  .electricCarChargingTime ===
224
224
  "night" }, t.solarSystemForm
225
225
  .additionalComponents
226
- .chargingTimeNight)), h("input", { key: 'f921baaeb0c0ac93ef1823ae4bf9be8a26e7f7bd', type: "number", min: "1000", max: "50000", step: "1000", class: "w-full px-4 py-2 rounded-4xl border border-gray-300 focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", value: this.kmDrivenPerYear, onInput: (e) => {
226
+ .chargingTimeNight)), h("input", { key: '17b2d88d26582f7ca895ebdf06ab75e6aef02bdf', type: "number", min: "1000", max: "50000", step: "1000", class: "w-full px-4 py-2 rounded-4xl border border-gray-300 focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", value: this.kmDrivenPerYear, onInput: (e) => {
227
227
  this.kmDrivenPerYear =
228
228
  parseInt(e.target
229
229
  .value);
230
230
  this.recalculate();
231
- } }))))), h("div", { key: 'f314fa96da875bb965555980a6a549e10d0febcf', class: "flex flex-col bg-muted rounded-4xl p-4 gap-4" }, h("div", { key: '014d1db4054d04f69ca2d7f082bdc666a609c35a', class: "flex items-center justify-between" }, h("label", { key: '607cb6469d3b1402f203edae2dfa6c82f72b7a94', class: "text-text-muted" }, t.solarSystemForm.additionalComponents
232
- .battery), !this.isIOS() && (h("span", { key: '9855cafb4477837bd9f323f7a6677dd84df3a6b5', class: "text-text-muted" }, this.battery, " kWh"))), h("div", { key: '94b211394b1c5cc9fd7ffffef19c693b9025aedc', class: "flex flex-col gap-2" }, this.isIOS()
231
+ } }))))), h("div", { key: 'f7868775a41753bc7672bbf760edf048d69a94b2', class: "flex flex-col bg-muted rounded-4xl p-4 gap-4" }, h("div", { key: 'f502d069b83046b8a29f91e29422077ff1028d90', class: "flex items-center justify-between" }, h("label", { key: 'c33786837258f5ba82a5d2045a794918bf17bdaa', class: "text-text-muted" }, t.solarSystemForm.additionalComponents
232
+ .battery), !this.isIOS() && (h("span", { key: 'd4e61a25305a0d29840f1f7cf8d4322fa697e3d8', class: "text-text-muted" }, this.battery, " kWh"))), h("div", { key: '8e58465995117be4cbe22b3f376ebcb296e1ed6d', class: "flex flex-col gap-2" }, this.isIOS()
233
233
  ? (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 border border-gray-300 focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", value: this.battery, onInput: (e) => {
234
234
  const value = parseInt(e.target
235
235
  .value);
@@ -244,37 +244,37 @@ export class SolarSystemForm {
244
244
  this.battery = parseInt(e.target
245
245
  .value);
246
246
  this.recalculate();
247
- } })))))), h("div", { key: 'c7d07eccb54933ace27c9e41cf8ddd58930a4465', class: "space-y-4" }, h("h2", { key: 'c94dc4fdfa85bfb1f31cb7e171a411662953a115', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.electricityCostsTitle), h("div", { key: 'd4ee193e9e5f6edf717ba7be01d537713b5c73db', class: "grid grid-rows-2 gap-0" }, h("div", { key: '9796df3a0343be18edef1051bca476cb5e33b453', class: "grid grid-cols-3 gap-4" }, h("label", { key: '590e83e2cf26790e7953bf1032ed2b465d062d3e', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.electricityPrice), h("label", { key: '95f9083a601664270b7db8304c63ea4aec04befa', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.compensationRate), h("label", { key: '8c877b503497664824396f5b42002d6948c9147d', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.annualPriceIncrease)), h("div", { key: '3e6de787e050b3163dd5a389888d7c7670ee73d5', class: "grid grid-cols-3 gap-4 text-primary-foreground" }, h("input", { key: '25eaae2931376e0462a8460838c7f2d542ef5bd2', type: "number", step: "0.01", class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", value: this.electricityPrice.toFixed(2), onInput: (e) => {
247
+ } })))))), h("div", { key: '83484f0973593211ce5c375bbaaa49ae60c857d3', class: "space-y-4" }, h("h2", { key: '66902f9f1c70370ea57f11c24de5f700353b2801', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.electricityCostsTitle), h("div", { key: '5e416328700a2989eeb59886aa2b15447d9c7108', class: "grid grid-rows-2 gap-0" }, h("div", { key: '1b5de740a2e7f6dc9027a42e2469faf85f860b12', class: "grid grid-cols-3 gap-4" }, h("label", { key: 'd847462337675b52a0b87bbf57eb57771ecb8be9', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.electricityPrice), h("label", { key: 'cda092b8b30813cf150ac6f773abdea1ff0bcb88', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.compensationRate), h("label", { key: '6c3152e73c9af337073bfa92fb2b0bfc15354a2b', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.annualPriceIncrease)), h("div", { key: '2d5cc9c5e35dd608e887210f726e7cf2dccab3a3', class: "grid grid-cols-3 gap-4 text-primary-foreground" }, h("input", { key: '22c17145439337d3f487e7cd3b376e47d67876da', type: "number", step: "0.01", class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", value: this.electricityPrice.toFixed(2), onInput: (e) => {
248
248
  this.electricityPrice = parseFloat(e.target
249
249
  .value);
250
250
  this.recalculate();
251
- } }), h("input", { key: 'f985aa31a3706d80c3e14d0c39b32e42beb5c9f0', type: "number", step: "0.01", class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", value: this.compensationRate.toFixed(2), onInput: (e) => {
251
+ } }), h("input", { key: 'fce6a662a97519aac9dc90d436ffc1b8d6e9bf87', type: "number", step: "0.01", class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", value: this.compensationRate.toFixed(2), onInput: (e) => {
252
252
  this.compensationRate = parseFloat(e.target
253
253
  .value);
254
254
  this.recalculate();
255
- } }), h("input", { key: '5157173670cff3cd0a686451fee634c77fb078c3', type: "number", step: "0.1", class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", value: this.annualPriceIncrease.toFixed(1), onInput: (e) => {
255
+ } }), h("input", { key: '09da58f733254ee9a71f8dd9c3a644c84e663f16', type: "number", step: "0.1", class: "w-full px-4 py-2 rounded-4xl border border-border focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted", value: this.annualPriceIncrease.toFixed(1), onInput: (e) => {
256
256
  this.annualPriceIncrease = parseFloat(e.target
257
257
  .value);
258
258
  this.recalculate();
259
- } })))), h("div", { key: '740017ec001efdfadeb7794dd98073eca06bec3b', class: "space-y-4 p-4 border border-border rounded-4xl" }, h("h2", { key: '02d4d012a72a66c3dd8c5d6a7ee37d8a66056b99', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.resultsTitle), h("div", { key: 'bd988fcbc121f7e1a1f0a463cbef4e73b5f75c2f', class: "bg-muted rounded-4xl p-4" }, h("div", { key: 'f841cffe6501a94344336b93cd7186d4008f5e89', class: "flex items-center justify-between" }, h("span", { key: 'c09946aa81953c0ac70eca1bf030738fd611bfd3', class: "text-text-muted" }, t.solarSystemForm.autonomy), h("span", { key: 'cc262b2389708bfcbc7eacaa070207f5c522b37a', class: "text-xl font-bold text-secondary" }, this.autonomy > 100
259
+ } })))), h("div", { key: '715ea73993ad45be600d968e188456151e5ec715', class: "space-y-4 p-4 border border-border rounded-4xl" }, h("h2", { key: 'ed64121ef230a3fd3a7b4229fcae1bc42f02050e', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.resultsTitle), h("div", { key: '591a2c238062aacef74422ce6ed71d56d543f65f', class: "bg-muted rounded-4xl p-4" }, h("div", { key: '939fb610c4da321a5e7b29791cd82d38c85b8128', class: "flex items-center justify-between" }, h("span", { key: '8a83686f8a4ca80b201f0aa364a370ee554d1dfe', class: "text-text-muted" }, t.solarSystemForm.autonomy), h("span", { key: 'd9ae02c499498be74e4933ce13950d10c00761fb', class: "text-xl font-bold text-secondary" }, this.autonomy > 100
260
260
  ? "100"
261
- : this.autonomy.toFixed(1), "%")), h("div", { key: '718395d0247ff533071db12c0dc261635376b8d0', class: "flex items-center justify-between mt-4" }, h("div", { key: '253836f022a4c414374c5b2b4e895d837a7f0a6b', class: "flex items-center gap-2" }, h("span", { key: '141499e8232fd43eaffbd6a78ae78498fc976843', class: "text-text-muted" }, t.solarSystemForm.costSavings), h("div", { key: '260f33e5713a9757bd64802180c45df42a76bde8', class: "relative group" }, h("svg", { key: '7db31a136fbfb27b717ac8ef4ff92dacd7909fb9', xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 text-gray-400 cursor-help", viewBox: "0 0 20 20", fill: "currentColor" }, h("path", { key: '05ccaebf30b38726dba62441612733b20ec85017', "fill-rule": "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z", "clip-rule": "evenodd" })), h("div", { key: 'd035d58ef981d0afe4f92289ec08df99e5b07857', class: "absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 w-64 p-2 bg-gray-800 text-muted text-sm rounded-lg opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none" }, t.solarSystemForm
262
- .savingsDisclaimer))), h("span", { key: 'da7271d121f86c06802e3c0aa6753e3e106a0f9f', class: "text-xl font-bold text-success" }, this.costSavings.toFixed(2), "\u20AC/", t
263
- .solarSystemForm.year)), h("div", { key: '7fd8001082ff5dad0138bc0e46f2c8ab5fc1a0ab', class: "flex items-center justify-between mt-4" }, h("div", { key: '51220d6235353c5c05d9cbd7294131169ce7ef37', class: "flex items-center gap-2" }, h("span", { key: 'b3c5734b677f225bf480e6c972aaf604bf25219d', class: "text-text-muted" }, "Einspeiseverg\u00FCtung 25 Jahre")), h("span", { key: '5a0f048eee0a05c815defd9f8c32079420402888', class: "text-xl font-bold text-success" }, this.compensation25Years.toFixed(2), "\u20AC")), h("div", { key: 'c404e485ec2caeccfa8534df34f502c53a3af13f', class: "flex items-center justify-between mt-4" }, h("div", { key: '207734d415a4e7cf7fa625a367af5de3afa9c274', class: "flex items-center gap-2" }, h("span", { key: '36ef827265e123a067b01314d7f2baff4c61a9ca', class: "text-text-muted" }, "Geldwerter Vorteil 25 Jahre")), h("span", { key: 'a597e862fc9b7369ac32df3e4d60302d0bce002e', class: "text-xl font-bold text-success" }, this.savedCosts25Years.toFixed(2), "\u20AC")))), h("div", { key: 'b1bee3a34cd1c3400cc847f9205dcd1319d1f11c', class: "space-y-4 pt-4" }, h("h2", { key: 'c21cc337a7c1ae79eee4b9741f935a256de38282', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.requestOffer), h("div", { key: '409727185c4cf9fd8e2750eca6a7102aa05800e6', class: "grid gap-4" }, h("div", { key: 'dd7fbc2db7923d9463213c5dff246d7915a402c8', class: "grid grid-cols-2 gap-4" }, h("label", { key: '8fc947bac4b28d3f9e6e13354dc9913009e0cbe2', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.name), h("label", { key: '2dabab65ad0b613ec6a7d386ce5cdac2ae046be3', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.email)), h("div", { key: '36951f97477f0b144c24b990771d36e5cb09d8d2', class: "grid grid-cols-2 gap-4" }, h("div", { key: '72315b1180ab4cb666a9b4de8f65cce5509eff97' }, h("input", { key: '8119083991200cfb8c153c68a11875304505f2c4', type: "text", class: `w-full px-4 py-2 rounded-4xl border ${this.nameError
261
+ : this.autonomy.toFixed(1), "%")), h("div", { key: 'a63a0e23ec7d546a93eb85c584c2bfd24e7f2c8b', class: "flex items-center justify-between mt-4" }, h("div", { key: '0e131cf26fb1fe7d410081ae991391a01750c738', class: "flex items-center gap-2" }, h("span", { key: '72720181f07b78e5d24090a1955ba954012e2052', class: "text-text-muted" }, t.solarSystemForm.costSavings), h("div", { key: '6f215fbf81f99a096ea3020c685e5276bd318d8f', class: "relative group" }, h("svg", { key: '634aae8d52af3e33aa78a9ad14bf722181886222', xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 text-gray-400 cursor-help", viewBox: "0 0 20 20", fill: "currentColor" }, h("path", { key: '38a0e26fe5cb62790787593fe1134065e0aeb8db', "fill-rule": "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z", "clip-rule": "evenodd" })), h("div", { key: '94b31ce93d0d4d9acc8454cc036d9b70e633464b', class: "absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 w-64 p-2 bg-gray-800 text-muted text-sm rounded-lg opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none" }, t.solarSystemForm
262
+ .savingsDisclaimer))), h("span", { key: 'e79c03fe2a57cd7a7156f7b23c5abe207c306119', class: "text-xl font-bold text-success" }, this.costSavings.toFixed(2), "\u20AC/", t
263
+ .solarSystemForm.year)), h("div", { key: '50eadaa3f467a9cc47a26cf24a935918c7c84908', class: "flex items-center justify-between mt-4" }, h("div", { key: '3fcebc56fdf326b3fa369c9afc1e99a321540ac3', class: "flex items-center gap-2" }, h("span", { key: '7f8fc8398382e9dc45dcb2527964fa37596d5777', class: "text-text-muted" }, "Einspeiseverg\u00FCtung 25 Jahre")), h("span", { key: '0e57b2a127349ad32972e11709892a08de2351cd', class: "text-xl font-bold text-success" }, this.compensation25Years.toFixed(2), "\u20AC")), h("div", { key: '911f2a229dc0902bfa3cccbbb0685408b996ab20', class: "flex items-center justify-between mt-4" }, h("div", { key: 'bfc5510ad45d5ef808d98a7793dbb7285d72eb60', class: "flex items-center gap-2" }, h("span", { key: 'e4ca3bc26eda6936bcc05729d616f800958eba18', class: "text-text-muted" }, "Geldwerter Vorteil 25 Jahre")), h("span", { key: '39d5809f08de430897aec70bdd467534bc690cb9', class: "text-xl font-bold text-success" }, this.savedCosts25Years.toFixed(2), "\u20AC")))), h("div", { key: 'e2a083422053e96f3a41c4e2b215a230b284d602', class: "space-y-4 pt-4" }, h("h2", { key: 'd90a6e040b51641f851c14163bcfe2709bcb39f1', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.requestOffer), h("div", { key: 'b3c55c9f9cb6b9f94cb10af87e6933bb16a918d1', class: "grid gap-4" }, h("div", { key: 'cb2948f9d6dc7af12428db67a1db480eb6a185e4', class: "grid grid-cols-2 gap-4" }, h("label", { key: 'f8dfd890c5d43704d876e3712827ec6994169a27', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.name), h("label", { key: '18f83d7ba7b9b71ce862f8d62b1ae6601fd3461c', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.email)), h("div", { key: 'ea253e4d63e118a6aee715b343f58a7599e4b2d3', class: "grid grid-cols-2 gap-4" }, h("div", { key: '7fb48769fd6cfcf1dbedafed95f105446f2b4021' }, h("input", { key: 'c9b3885f869946969bef835fded562f71a91416a', type: "text", class: `w-full px-4 py-2 rounded-4xl border ${this.nameError
264
264
  ? "border-error"
265
265
  : "border-border"} focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground`, value: this.name, onInput: (e) => {
266
266
  this.name =
267
267
  e.target
268
268
  .value;
269
269
  this.validateForm();
270
- }, placeholder: "Your name" }), this.nameError && (h("p", { key: 'd25e121b0197f4734ad98b3f264806638716660d', class: "text-error text-sm mt-1" }, this.nameError))), h("div", { key: 'f592e406c92e64a4c1c47ecae1143a28c05bc0af' }, h("input", { key: '0a6b6c922b3f1816b1bdb82f2ef7f23d04bbf906', type: "email", class: `w-full px-4 py-2 rounded-4xl border ${this.emailError
270
+ }, placeholder: "Your name" }), this.nameError && (h("p", { key: '2c9ed2313e00001787287d5c9d403e5ff18e1186', class: "text-error text-sm mt-1" }, this.nameError))), h("div", { key: '5f5244dda5a2591a9bf1b88cb06b3ee58b270500' }, h("input", { key: '634e6ec4af085d92be18b9b187605b8a66e7d4e8', type: "email", class: `w-full px-4 py-2 rounded-4xl border ${this.emailError
271
271
  ? "border-error"
272
272
  : "border-border"} focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground`, value: this.email, onInput: (e) => {
273
273
  this.email =
274
274
  e.target
275
275
  .value;
276
276
  this.validateForm();
277
- }, placeholder: "your.email@example.com" }), this.emailError && (h("p", { key: '9f7464e3d4c5d8cf095683cf0f6f2b2e98197244', class: "text-error text-sm mt-1" }, this.emailError))))), h("div", { key: '59f781969d56679e5fa94af6384aa2238514148d', class: "flex justify-center" }, h("button", { key: 'bc5fdcb4dff4b3e1ce79928735716e2b1c2a394d', onClick: () => this.handleRequestOffer(), disabled: !this.name.trim() ||
277
+ }, placeholder: "your.email@example.com" }), this.emailError && (h("p", { key: 'dabb317d13e748f489d6ef1542b44798b85c29f7', class: "text-error text-sm mt-1" }, this.emailError))))), h("div", { key: 'ad6b0be2c9a8a91246ecaecdb9100ae7cff7f0c5', class: "flex justify-center" }, h("button", { key: '04172ddff28b03a2ffa0f669d8f0ae14139a4cd2', onClick: () => this.handleRequestOffer(), disabled: !this.name.trim() ||
278
278
  !this.email.trim() || !!this.nameError ||
279
279
  !!this.emailError, class: "px-4 py-2 bg-secondary rounded-4xl hover:bg-tertiary transition-colors duration-200 text-muted" }, t.solarSystemForm.requestOfferButton))))));
280
280
  }
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
2
  export class LoadingWidget {
3
3
  render() {
4
- return (h("div", { key: '53e8e35b4de7d6d272ca070f67a5fe266fa787f4', class: "absolute flex items-center justify-center bg-muted bg-opacity-75 z-20 pt-7 rounded-4xl" }, h("div", { key: '906b14debcd98b44be5547035b41d94cf8dc052f', class: "animate-spin rounded-full h-16 w-16 border-t-2 border-b-2 border-secondary" })));
4
+ return (h("div", { key: 'fd87a9b0905bfc9237be96adee10ac9605531e2a', class: "absolute flex items-center justify-center bg-muted bg-opacity-75 z-20 pt-7 rounded-4xl" }, h("div", { key: 'e83ac46dcdb9958a2f9e697cb16f8924684a6c6f', class: "animate-spin rounded-full h-16 w-16 border-t-2 border-b-2 border-secondary" })));
5
5
  }
6
6
  static get is() { return "loading-widget"; }
7
7
  static get originalStyleUrls() {
@@ -8,7 +8,7 @@ const LoadingWidget$1 = /*@__PURE__*/ proxyCustomElement(class LoadingWidget ext
8
8
  this.__registerHost();
9
9
  }
10
10
  render() {
11
- return (h("div", { key: '53e8e35b4de7d6d272ca070f67a5fe266fa787f4', class: "absolute flex items-center justify-center bg-muted bg-opacity-75 z-20 pt-7 rounded-4xl" }, h("div", { key: '906b14debcd98b44be5547035b41d94cf8dc052f', class: "animate-spin rounded-full h-16 w-16 border-t-2 border-b-2 border-secondary" })));
11
+ return (h("div", { key: 'fd87a9b0905bfc9237be96adee10ac9605531e2a', class: "absolute flex items-center justify-center bg-muted bg-opacity-75 z-20 pt-7 rounded-4xl" }, h("div", { key: 'e83ac46dcdb9958a2f9e697cb16f8924684a6c6f', class: "animate-spin rounded-full h-16 w-16 border-t-2 border-b-2 border-secondary" })));
12
12
  }
13
13
  static get style() { return outputCss; }
14
14
  }, [0, "loading-widget"]);
@@ -1,4 +1,4 @@
1
- import { M as MapDraw$1, d as defineCustomElement$1 } from './p-Cfxk__-m.js';
1
+ import { M as MapDraw$1, d as defineCustomElement$1 } from './p-Cp6mvZCj.js';
2
2
 
3
3
  const MapDraw = MapDraw$1;
4
4
  const defineCustomElement = defineCustomElement$1;