blue-chestnut-solar-expert 0.0.22 → 0.0.24

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 (177) 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 +235 -112
  3. package/dist/cjs/eraser-icon_16.cjs.entry.js.map +1 -1
  4. package/dist/cjs/{index-elxiOP_I.js → index-C3Kp1xqq.js} +5 -28
  5. package/dist/cjs/index-C3Kp1xqq.js.map +1 -0
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/loading-widget.cjs.entry.js +3 -3
  8. package/dist/cjs/loading-widget.cjs.entry.js.map +1 -1
  9. package/dist/cjs/loading-widget.entry.cjs.js.map +1 -1
  10. package/dist/cjs/solar-calculator.cjs.entry.js +3 -3
  11. package/dist/cjs/solar-calculator.cjs.entry.js.map +1 -1
  12. package/dist/cjs/solar-calculator.entry.cjs.js.map +1 -1
  13. package/dist/cjs/stencil-library.cjs.js +2 -2
  14. package/dist/collection/components/map-draw/map-draw.js +8 -10
  15. package/dist/collection/components/map-draw/map-draw.js.map +1 -1
  16. package/dist/collection/components/map-draw/map-selector.js +1 -4
  17. package/dist/collection/components/map-draw/map-selector.js.map +1 -1
  18. package/dist/collection/components/map-draw/polygon-buttons.js +4 -4
  19. package/dist/collection/components/map-draw/polygon-buttons.js.map +1 -1
  20. package/dist/collection/components/map-draw/polygon-information.js +9 -10
  21. package/dist/collection/components/map-draw/polygon-information.js.map +1 -1
  22. package/dist/collection/components/map-draw/tool-box.js +5 -13
  23. package/dist/collection/components/map-draw/tool-box.js.map +1 -1
  24. package/dist/collection/components/settings/settings.js +8 -8
  25. package/dist/collection/components/settings/settings.js.map +1 -1
  26. package/dist/collection/components/solar-calculator/solar-calculator.js +1 -1
  27. package/dist/collection/components/solar-calculator/solar-calculator.js.map +1 -1
  28. package/dist/collection/components/solar-expert/solar-expert.js +84 -5
  29. package/dist/collection/components/solar-expert/solar-expert.js.map +1 -1
  30. package/dist/collection/components/solar-system-form/solar-system-form.js +43 -43
  31. package/dist/collection/components/solar-system-form/solar-system-form.js.map +1 -1
  32. package/dist/collection/components/widgets/loading-widget.js +1 -1
  33. package/dist/collection/components/widgets/loading-widget.js.map +1 -1
  34. package/dist/collection/config.js.map +1 -1
  35. package/dist/collection/output.css +110 -87
  36. package/dist/collection/utils/theme.js +89 -0
  37. package/dist/collection/utils/theme.js.map +1 -0
  38. package/dist/components/eraser-icon.js +1 -1
  39. package/dist/components/house-icon.js +1 -1
  40. package/dist/components/icon-selector.js +1 -1
  41. package/dist/components/index.js +4 -22
  42. package/dist/components/index.js.map +1 -1
  43. package/dist/components/loading-widget.js +2 -2
  44. package/dist/components/loading-widget.js.map +1 -1
  45. package/dist/components/map-draw.js +1 -1
  46. package/dist/components/map-selector.js +1 -1
  47. package/dist/components/move-icon.js +1 -1
  48. package/dist/components/octagon-minus-icon.js +1 -1
  49. package/dist/components/p-B59N-NRF.js +46 -0
  50. package/dist/components/p-B59N-NRF.js.map +1 -0
  51. package/dist/components/p-B9Z3uCsI.js +156 -0
  52. package/dist/components/p-B9Z3uCsI.js.map +1 -0
  53. package/dist/components/p-BErX7-yM.js +38 -0
  54. package/dist/components/p-BErX7-yM.js.map +1 -0
  55. package/dist/components/p-B_1gV3Qz.js +171 -0
  56. package/dist/components/p-B_1gV3Qz.js.map +1 -0
  57. package/dist/components/p-C07IG8Cw.js +38 -0
  58. package/dist/components/p-C07IG8Cw.js.map +1 -0
  59. package/dist/components/p-CRAV1GgV.js +38 -0
  60. package/dist/components/p-CRAV1GgV.js.map +1 -0
  61. package/dist/components/p-CcnjDP5h.js +38 -0
  62. package/dist/components/p-CcnjDP5h.js.map +1 -0
  63. package/dist/components/p-CfPlvF4Z.js +38 -0
  64. package/dist/components/p-CfPlvF4Z.js.map +1 -0
  65. package/dist/components/p-CgW5mzbD.js +103 -0
  66. package/dist/components/p-CgW5mzbD.js.map +1 -0
  67. package/dist/components/p-CucBs_yI.js +555 -0
  68. package/dist/components/p-CucBs_yI.js.map +1 -0
  69. package/dist/components/{p-CaedRXrz.js → p-Cum4j9Q1.js} +24 -26
  70. package/dist/components/p-Cum4j9Q1.js.map +1 -0
  71. package/dist/components/p-DtGH0yPG.js +38 -0
  72. package/dist/components/p-DtGH0yPG.js.map +1 -0
  73. package/dist/components/p-m5YlFZMR.js +148 -0
  74. package/dist/components/p-m5YlFZMR.js.map +1 -0
  75. package/dist/components/p-rhCvDg4h.js +38 -0
  76. package/dist/components/p-rhCvDg4h.js.map +1 -0
  77. package/dist/components/p-tY_1hcaO.js +74 -0
  78. package/dist/components/p-tY_1hcaO.js.map +1 -0
  79. package/dist/components/polygon-buttons.js +1 -1
  80. package/dist/components/polygon-information.js +1 -1
  81. package/dist/components/search-icon.js +1 -1
  82. package/dist/components/settings-icon.js +1 -1
  83. package/dist/components/settings-modal.js +1 -1
  84. package/dist/components/solar-calculator.js +2 -2
  85. package/dist/components/solar-calculator.js.map +1 -1
  86. package/dist/components/solar-expert.js +159 -21
  87. package/dist/components/solar-expert.js.map +1 -1
  88. package/dist/components/solar-system-form.js +1 -1
  89. package/dist/components/tool-box.js +1 -1
  90. package/dist/components/undo-icon.js +1 -1
  91. 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
  92. package/dist/esm/eraser-icon_16.entry.js +235 -112
  93. package/dist/esm/eraser-icon_16.entry.js.map +1 -1
  94. package/dist/esm/{index-yVbXII2Q.js → index-DNOniOEj.js} +5 -28
  95. package/dist/esm/index-DNOniOEj.js.map +1 -0
  96. package/dist/esm/loader.js +3 -3
  97. package/dist/esm/loading-widget.entry.js +3 -3
  98. package/dist/esm/loading-widget.entry.js.map +1 -1
  99. package/dist/esm/solar-calculator.entry.js +3 -3
  100. package/dist/esm/solar-calculator.entry.js.map +1 -1
  101. package/dist/esm/stencil-library.js +3 -3
  102. 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
  103. package/dist/stencil-library/index.esm.js.map +1 -1
  104. package/dist/stencil-library/loading-widget.entry.esm.js.map +1 -1
  105. package/dist/stencil-library/p-100ab140.entry.js +2 -0
  106. package/dist/stencil-library/p-100ab140.entry.js.map +1 -0
  107. package/dist/stencil-library/p-91bf731c.entry.js +32 -0
  108. package/dist/stencil-library/{p-1acfe8c0.entry.js.map → p-91bf731c.entry.js.map} +1 -1
  109. package/dist/stencil-library/p-DNOniOEj.js +3 -0
  110. package/dist/stencil-library/{index-DZjEuBrX.js.map → p-DNOniOEj.js.map} +1 -1
  111. package/dist/stencil-library/p-f85ca33a.entry.js +2 -0
  112. package/dist/stencil-library/p-f85ca33a.entry.js.map +1 -0
  113. package/dist/stencil-library/solar-calculator.entry.esm.js.map +1 -1
  114. package/dist/stencil-library/stencil-library.esm.js +1 -1
  115. package/dist/stencil-library/stencil-library.esm.js.map +1 -1
  116. package/dist/types/components/solar-expert/solar-expert.d.ts +4 -0
  117. package/dist/types/components.d.ts +4 -2
  118. package/dist/types/config.d.ts +26 -0
  119. package/dist/types/utils/theme.d.ts +9 -0
  120. package/package.json +1 -1
  121. package/dist/cjs/index-elxiOP_I.js.map +0 -1
  122. package/dist/components/p-BDBrVfn4.js +0 -38
  123. package/dist/components/p-BDBrVfn4.js.map +0 -1
  124. package/dist/components/p-BDrs1Te9.js +0 -38
  125. package/dist/components/p-BDrs1Te9.js.map +0 -1
  126. package/dist/components/p-BbXgEBG5.js +0 -38
  127. package/dist/components/p-BbXgEBG5.js.map +0 -1
  128. package/dist/components/p-BrVkygdn.js +0 -38
  129. package/dist/components/p-BrVkygdn.js.map +0 -1
  130. package/dist/components/p-CTYaeZhp.js +0 -555
  131. package/dist/components/p-CTYaeZhp.js.map +0 -1
  132. package/dist/components/p-CabEU06O.js +0 -103
  133. package/dist/components/p-CabEU06O.js.map +0 -1
  134. package/dist/components/p-CaedRXrz.js.map +0 -1
  135. package/dist/components/p-CumvV0_M.js +0 -38
  136. package/dist/components/p-CumvV0_M.js.map +0 -1
  137. package/dist/components/p-CvYS8YPD.js +0 -74
  138. package/dist/components/p-CvYS8YPD.js.map +0 -1
  139. package/dist/components/p-DI6_jwLe.js +0 -38
  140. package/dist/components/p-DI6_jwLe.js.map +0 -1
  141. package/dist/components/p-DYiK8eDp.js +0 -38
  142. package/dist/components/p-DYiK8eDp.js.map +0 -1
  143. package/dist/components/p-DufgH4Gd.js +0 -46
  144. package/dist/components/p-DufgH4Gd.js.map +0 -1
  145. package/dist/components/p-G74Ln5vx.js +0 -149
  146. package/dist/components/p-G74Ln5vx.js.map +0 -1
  147. package/dist/components/p-bu76_2XI.js +0 -164
  148. package/dist/components/p-bu76_2XI.js.map +0 -1
  149. package/dist/components/p-oY2qkchz.js +0 -174
  150. package/dist/components/p-oY2qkchz.js.map +0 -1
  151. package/dist/esm/index-yVbXII2Q.js.map +0 -1
  152. package/dist/stencil-library/api-E7GpMOpJ.js.map +0 -1
  153. package/dist/stencil-library/app-globals-DQuL1Twl.js.map +0 -1
  154. package/dist/stencil-library/config-BV_PiZGS.js.map +0 -1
  155. package/dist/stencil-library/decoder-DSavpK4g.js.map +0 -1
  156. package/dist/stencil-library/deflate-BNIZ2wXt.js.map +0 -1
  157. package/dist/stencil-library/index-DimvNaNS.js.map +0 -1
  158. package/dist/stencil-library/jpeg-B79KZkPY.js.map +0 -1
  159. package/dist/stencil-library/lerc-B-ZLzzvM.js.map +0 -1
  160. package/dist/stencil-library/lzw-1xg7uPVo.js.map +0 -1
  161. package/dist/stencil-library/p-1acfe8c0.entry.js +0 -32
  162. package/dist/stencil-library/p-62debd50.entry.js +0 -2
  163. package/dist/stencil-library/p-62debd50.entry.js.map +0 -1
  164. package/dist/stencil-library/p-c4c3bbee.entry.js +0 -2
  165. package/dist/stencil-library/p-c4c3bbee.entry.js.map +0 -1
  166. package/dist/stencil-library/p-yVbXII2Q.js +0 -3
  167. package/dist/stencil-library/p-yVbXII2Q.js.map +0 -1
  168. package/dist/stencil-library/packbits-0MTMkUGE.js.map +0 -1
  169. package/dist/stencil-library/pako.esm-BdkEMvj8.js.map +0 -1
  170. package/dist/stencil-library/raw-W8mxtLfl.js.map +0 -1
  171. package/dist/stencil-library/solar-expert.entry.esm.js.map +0 -1
  172. package/dist/stencil-library/solar-expert.entry.js +0 -92
  173. package/dist/stencil-library/solar-expert.entry.js.map +0 -1
  174. package/dist/stencil-library/store-DUpvKmRV.js.map +0 -1
  175. package/dist/stencil-library/tools-DU7Muwzb.js.map +0 -1
  176. package/dist/stencil-library/utils-CTW6J-87.js.map +0 -1
  177. package/dist/stencil-library/webimage-CLeW6JHT.js.map +0 -1
@@ -0,0 +1,555 @@
1
+ import { p as proxyCustomElement, H, h } from './index.js';
2
+ import { g as getLanguageStrings, s as state } from './p-DlAht76f.js';
3
+
4
+ const DOTTED_LINE_COLOR = "rgba(0, 0, 0, 0.5)";
5
+ const ROW_SPACING = 1;
6
+ const COLUMN_SPACING = 1;
7
+ const BORDER_INSET = 0;
8
+ const DEFAULT_SUNNINESS = 600;
9
+ const HEAT_PUMP_CONSUMPTION = 0.05; // kWh per m² per day
10
+ const CONSUMPTION_PROFILES = {
11
+ mostly_at_home: [
12
+ 0.1,
13
+ 0.1,
14
+ 0.1,
15
+ 0.1,
16
+ 0.1,
17
+ 0.15, // 00:00 - 05:00 - 6
18
+ 0.23,
19
+ 0.26,
20
+ 0.16,
21
+ 0.16,
22
+ 0.15,
23
+ 0.19, // 06:00 - 11:00 - 12
24
+ 0.23,
25
+ 0.24,
26
+ 0.35,
27
+ 0.28,
28
+ 0.275,
29
+ 0.8, // 12:00 - 17:00 - 18
30
+ 0.78,
31
+ 0.74,
32
+ 0.75,
33
+ 0.73,
34
+ 0.26,
35
+ 0.1, // 18:00 - 23:00 - 24
36
+ ],
37
+ mostly_away: [
38
+ 0.1,
39
+ 0.1,
40
+ 0.1,
41
+ 0.1,
42
+ 0.1,
43
+ 0.15, // 00:00 - 05:00 - 6
44
+ 0.29,
45
+ 0.32,
46
+ 0.25,
47
+ 0.15,
48
+ 0.12,
49
+ 0.14, // 06:00 - 11:00 - 12
50
+ 0.15,
51
+ 0.12,
52
+ 0.16,
53
+ 0.21,
54
+ 0.285,
55
+ 1, // 12:00 - 17:00 - 18
56
+ 0.81,
57
+ 0.77,
58
+ 0.79,
59
+ 0.73,
60
+ 0.26,
61
+ 0.1, // 18:00 - 23:00 - 24
62
+ ],
63
+ };
64
+
65
+ const DEFAULT_SOLAR_EXPERT_CONFIG = {
66
+ openRoofColor: "#d6eeff",
67
+ closedRoofColor: "#ffffff",
68
+ openObstructionColor: "#f57242",
69
+ closedObstructionColor: "rgba(255, 132, 107, 0.8)",
70
+ roofPolygonFillColor: "rgba(92, 187, 255, 0.5)",
71
+ obstructionPolygonFillColor: "rgba(255, 132, 107, 0.5)",
72
+ roofPolygonHoverFillColor: "rgba(92, 187, 255, 0.8)",
73
+ obstructionPolygonHoverFillColor: "rgba(255, 132, 107, 0.8)",
74
+ roofPolygonSelectedFillColor: "rgba(92, 187, 255, 0.7)",
75
+ obstructionPolygonSelectedFillColor: "rgba(255, 132, 107, 0.7)",
76
+ highlightColor: "rgba(0, 89, 255, 1)",
77
+ };
78
+ const DEFAULT_SOLAR_PANEL_TYPE = {
79
+ widthMeters: 1.134,
80
+ heightMeters: 1.762,
81
+ kWattPeak: 0.455,
82
+ efficiency: 0.224,
83
+ price: 77.68,
84
+ };
85
+
86
+ const SOLAR_RADIATION = [
87
+ 0,
88
+ 0,
89
+ 0,
90
+ 0,
91
+ 0,
92
+ 0, // 00:00 - 05:00 - 6
93
+ 0,
94
+ 0.1,
95
+ 0.2, // 8
96
+ 0.4,
97
+ 0.8,
98
+ 0.9, // 06:00 - 11:00 - 12
99
+ 1,
100
+ 0.95,
101
+ 0.9,
102
+ 0.7,
103
+ 0.5,
104
+ 0.3, // 12:00 - 17:00 - 18
105
+ 0.16,
106
+ 0.02,
107
+ 0,
108
+ 0,
109
+ 0,
110
+ 0, // 18:00 - 23:00 - 24
111
+ ];
112
+ function getSolarRadiation(discountFactor) {
113
+ return SOLAR_RADIATION.map(value => value * discountFactor);
114
+ }
115
+
116
+ const DEFAULT_GENERAL_SIMULATION_CONFIG = {
117
+ simulationYears: 25,
118
+ };
119
+
120
+ function generateElectricCarChargingHours(start, end) {
121
+ let hours = new Array(24).fill(false);
122
+ if (start < end) {
123
+ for (let i = start; i <= end; i++) {
124
+ hours[i] = true;
125
+ }
126
+ }
127
+ else {
128
+ for (let i = start; i <= 24; i++) {
129
+ hours[i] = true;
130
+ }
131
+ for (let i = 0; i <= end; i++) {
132
+ hours[i] = true;
133
+ }
134
+ }
135
+ return hours;
136
+ }
137
+ function simulateDay(production, consumption, dailyConsumption, battery) {
138
+ let batteryCharge = 0;
139
+ let soldEnergy = 0;
140
+ let energyUsageOfProduction = 0;
141
+ for (let hour = 0; hour < production.length; hour++) {
142
+ const energyDifference = production[hour] - consumption[hour];
143
+ if (energyDifference > 0) {
144
+ energyUsageOfProduction += consumption[hour];
145
+ if (batteryCharge < battery) {
146
+ batteryCharge = Math.min(batteryCharge + energyDifference, battery);
147
+ }
148
+ else {
149
+ soldEnergy += energyDifference;
150
+ }
151
+ }
152
+ else {
153
+ if (batteryCharge > 0) {
154
+ if (batteryCharge >= -energyDifference) {
155
+ batteryCharge += energyDifference;
156
+ energyUsageOfProduction += consumption[hour];
157
+ }
158
+ else {
159
+ energyUsageOfProduction += production[hour] + batteryCharge;
160
+ soldEnergy -= energyDifference + batteryCharge;
161
+ batteryCharge = 0;
162
+ }
163
+ }
164
+ else {
165
+ energyUsageOfProduction += production[hour];
166
+ }
167
+ }
168
+ }
169
+ if (batteryCharge > 0) {
170
+ soldEnergy += batteryCharge;
171
+ }
172
+ const autonomy = energyUsageOfProduction / dailyConsumption;
173
+ return {
174
+ autonomy: autonomy > 1 ? 1 : autonomy,
175
+ soldEnergy,
176
+ energyUsageOfProduction,
177
+ };
178
+ }
179
+ function simulate(config) {
180
+ const generalConfig = {
181
+ ...DEFAULT_GENERAL_SIMULATION_CONFIG,
182
+ ...config.general
183
+ };
184
+ const consumption = CONSUMPTION_PROFILES[config.householdConsumption.consumptionProfile];
185
+ const norm = consumption.reduce((acc, curr) => acc + curr, 0);
186
+ const additionalConsumption = config.heatPump?.m2 * HEAT_PUMP_CONSUMPTION || 0;
187
+ let electricCarConsumption = 0;
188
+ let electricCarNorm = 1;
189
+ let electricCarChargingHours = consumption.map(_ => false);
190
+ if (config.electricCar) {
191
+ electricCarChargingHours = config.electricCar.chargingHours;
192
+ const dailyCarUsage = config.electricCar.averageKilometersPerDay / 100 * config.electricCar.consumptionkWhPer100km;
193
+ electricCarConsumption = Math.min(dailyCarUsage, config.electricCar.batteryKWh);
194
+ electricCarNorm = config.electricCar.chargingHours.reduce((acc, curr) => acc + (curr ? 1 : 0), 0);
195
+ if (electricCarNorm === 0) {
196
+ electricCarNorm = 1;
197
+ }
198
+ }
199
+ const systemSize = config.solarSystem.numberOfPanels * config.solarSystem.panelType.kWattPeak;
200
+ const summerProduction = getSolarRadiation(config.solarRadiation.summerFactor * systemSize);
201
+ const winterProduction = getSolarRadiation(config.solarRadiation.winterFactor * systemSize);
202
+ const summerConsumptionWholeDay = config.householdConsumption.averageConsumption * config.householdConsumption.summerConsumptionFactor + additionalConsumption * config.householdConsumption.summerConsumptionFactor;
203
+ const summerConsumptionDaily = consumption.map((c, i) => c / norm * summerConsumptionWholeDay + electricCarConsumption / electricCarNorm * (electricCarChargingHours[i] ? 1 : 0));
204
+ const winterConsumptionWholeDay = config.householdConsumption.averageConsumption * config.householdConsumption.winterConsumptionFactor + additionalConsumption * config.householdConsumption.winterConsumptionFactor;
205
+ const winterConsumptionDaily = consumption.map((c, i) => c / norm * winterConsumptionWholeDay + electricCarConsumption / electricCarNorm * (electricCarChargingHours[i] ? 1 : 0));
206
+ const summerDay = simulateDay(summerProduction, summerConsumptionDaily, summerConsumptionWholeDay + electricCarConsumption, config.batteryKWh);
207
+ const winterDay = simulateDay(winterProduction, winterConsumptionDaily, winterConsumptionWholeDay + electricCarConsumption, config.batteryKWh);
208
+ let savedCostsByYear = [];
209
+ const soldEnergy = (summerDay.soldEnergy + winterDay.soldEnergy) / 2;
210
+ const ownConsumption = (summerDay.energyUsageOfProduction + winterDay.energyUsageOfProduction) / 2;
211
+ let energyPrice = config.electricityPrice.purchase;
212
+ for (let i = 0; i < generalConfig.simulationYears; i++) {
213
+ const savedCostsThisYear = ownConsumption * energyPrice * 365;
214
+ savedCostsByYear.push(savedCostsThisYear);
215
+ energyPrice = (1 + config.electricityPrice.increase) * energyPrice;
216
+ }
217
+ return {
218
+ autonomy: (summerDay.autonomy + winterDay.autonomy) / 2,
219
+ compensationPerDay: soldEnergy * config.electricityPrice.sell,
220
+ byYearSavedCosts: savedCostsByYear,
221
+ };
222
+ }
223
+
224
+ const outputCss = "/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */\n@layer properties;\n@layer theme, base, components, utilities;\n@layer theme {\n :root, :host {\n --font-sans: ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\",\n \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\",\n \"Courier New\", monospace;\n --color-gray-300: oklch(87.2% 0.01 258.338);\n --color-gray-400: oklch(70.7% 0.022 261.325);\n --color-gray-800: oklch(27.8% 0.033 256.848);\n --color-black: #000;\n --spacing: 0.25rem;\n --container-md: 28rem;\n --text-xs: 0.75rem;\n --text-xs--line-height: calc(1 / 0.75);\n --text-sm: 0.875rem;\n --text-sm--line-height: calc(1.25 / 0.875);\n --text-lg: 1.125rem;\n --text-lg--line-height: calc(1.75 / 1.125);\n --text-xl: 1.25rem;\n --text-xl--line-height: calc(1.75 / 1.25);\n --text-2xl: 1.5rem;\n --text-2xl--line-height: calc(2 / 1.5);\n --font-weight-medium: 500;\n --font-weight-semibold: 600;\n --font-weight-bold: 700;\n --radius-lg: 0.5rem;\n --radius-4xl: 2rem;\n --animate-spin: spin 1s linear infinite;\n --default-transition-duration: 150ms;\n --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n --default-font-family: var(--font-sans);\n --default-mono-font-family: var(--font-mono);\n --color-primary: hsl(41 51% 90%);\n --color-primary-foreground: hsl(0 0% 0%);\n --color-secondary: hsl(28 100% 8%);\n --color-secondary-foreground: hsl(0 0% 100%);\n --color-tertiary: hsl(28 100% 29%);\n --color-tertiary-foreground: hsl(0 0% 100%);\n --color-muted: hsl(0 0% 100%);\n --color-muted-foreground: hsl(0 0% 0%);\n --color-error: hsl(0 100% 50%);\n --color-error-foreground: hsl(0 0% 100%);\n --color-surface: hsl(0 0% 88%);\n --color-surface-hover: hsl(0 0% 82%);\n --color-surface-active: hsl(0 0% 64%);\n --color-text-muted: hsl(0 0% 45%);\n --color-text-secondary: hsl(0 0% 55%);\n --color-text-placeholder: hsl(0 0% 73%);\n --color-border: hsl(0 0% 82%);\n --color-border-light: hsl(0 0% 93%);\n --color-success: hsl(142 76% 36%);\n --color-info: hsl(221 83% 53%);\n --color-hover: hsl(0 0% 88%);\n --color-hover-dark: hsl(28 100% 8%);\n --color-overlay: rgba(0, 0, 0, 0.24);\n --color-tooltip: hsl(0 0% 13%);\n }\n}\n@layer base {\n *, ::after, ::before, ::backdrop, ::file-selector-button {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n border: 0 solid;\n }\n html, :host {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");\n font-feature-settings: var(--default-font-feature-settings, normal);\n font-variation-settings: var(--default-font-variation-settings, normal);\n -webkit-tap-highlight-color: transparent;\n }\n hr {\n height: 0;\n color: inherit;\n border-top-width: 1px;\n }\n abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n h1, h2, h3, h4, h5, h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n a {\n color: inherit;\n -webkit-text-decoration: inherit;\n text-decoration: inherit;\n }\n b, strong {\n font-weight: bolder;\n }\n code, kbd, samp, pre {\n font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);\n font-feature-settings: var(--default-mono-font-feature-settings, normal);\n font-variation-settings: var(--default-mono-font-variation-settings, normal);\n font-size: 1em;\n }\n small {\n font-size: 80%;\n }\n sub, sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n sub {\n bottom: -0.25em;\n }\n sup {\n top: -0.5em;\n }\n table {\n text-indent: 0;\n border-color: inherit;\n border-collapse: collapse;\n }\n :-moz-focusring {\n outline: auto;\n }\n progress {\n vertical-align: baseline;\n }\n summary {\n display: list-item;\n }\n ol, ul, menu {\n list-style: none;\n }\n img, svg, video, canvas, audio, iframe, embed, object {\n display: block;\n vertical-align: middle;\n }\n img, video {\n max-width: 100%;\n height: auto;\n }\n button, input, select, optgroup, textarea, ::file-selector-button {\n font: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n letter-spacing: inherit;\n color: inherit;\n border-radius: 0;\n background-color: transparent;\n opacity: 1;\n }\n :where(select:is([multiple], [size])) optgroup {\n font-weight: bolder;\n }\n :where(select:is([multiple], [size])) optgroup option {\n padding-inline-start: 20px;\n }\n ::file-selector-button {\n margin-inline-end: 4px;\n }\n ::placeholder {\n opacity: 1;\n }\n @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {\n ::placeholder {\n color: currentcolor;\n @supports (color: color-mix(in lab, red, red)) {\n color: color-mix(in oklab, currentcolor 50%, transparent);\n }\n }\n }\n textarea {\n resize: vertical;\n }\n ::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n ::-webkit-date-and-time-value {\n min-height: 1lh;\n text-align: inherit;\n }\n ::-webkit-datetime-edit {\n display: inline-flex;\n }\n ::-webkit-datetime-edit-fields-wrapper {\n padding: 0;\n }\n ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {\n padding-block: 0;\n }\n :-moz-ui-invalid {\n box-shadow: none;\n }\n button, input:where([type=\"button\"], [type=\"reset\"], [type=\"submit\"]), ::file-selector-button {\n appearance: button;\n }\n ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {\n height: auto;\n }\n [hidden]:where(:not([hidden=\"until-found\"])) {\n display: none !important;\n }\n}\n@layer utilities {\n .pointer-events-none {\n pointer-events: none;\n }\n .absolute {\n position: absolute;\n }\n .fixed {\n position: fixed;\n }\n .relative {\n position: relative;\n }\n .inset-0 {\n inset: calc(var(--spacing) * 0);\n }\n .top-0 {\n top: calc(var(--spacing) * 0);\n }\n .top-1\\/2 {\n top: calc(1/2 * 100%);\n }\n .bottom-full {\n bottom: 100%;\n }\n .left-0 {\n left: calc(var(--spacing) * 0);\n }\n .left-1\\/2 {\n left: calc(1/2 * 100%);\n }\n .left-3 {\n left: calc(var(--spacing) * 3);\n }\n .z-20 {\n z-index: 20;\n }\n .z-50 {\n z-index: 50;\n }\n .m-auto {\n margin: auto;\n }\n .mt-1 {\n margin-top: calc(var(--spacing) * 1);\n }\n .mt-4 {\n margin-top: calc(var(--spacing) * 4);\n }\n .mt-6 {\n margin-top: calc(var(--spacing) * 6);\n }\n .mb-1 {\n margin-bottom: calc(var(--spacing) * 1);\n }\n .mb-2 {\n margin-bottom: calc(var(--spacing) * 2);\n }\n .mb-4 {\n margin-bottom: calc(var(--spacing) * 4);\n }\n .mb-6 {\n margin-bottom: calc(var(--spacing) * 6);\n }\n .block {\n display: block;\n }\n .flex {\n display: flex;\n }\n .grid {\n display: grid;\n }\n .inline {\n display: inline;\n }\n .inline-block {\n display: inline-block;\n }\n .inline-flex {\n display: inline-flex;\n }\n .h-4 {\n height: calc(var(--spacing) * 4);\n }\n .h-5 {\n height: calc(var(--spacing) * 5);\n }\n .h-16 {\n height: calc(var(--spacing) * 16);\n }\n .h-48 {\n height: calc(var(--spacing) * 48);\n }\n .h-\\[400px\\] {\n height: 400px;\n }\n .h-full {\n height: 100%;\n }\n .w-4 {\n width: calc(var(--spacing) * 4);\n }\n .w-5 {\n width: calc(var(--spacing) * 5);\n }\n .w-16 {\n width: calc(var(--spacing) * 16);\n }\n .w-64 {\n width: calc(var(--spacing) * 64);\n }\n .w-full {\n width: 100%;\n }\n .max-w-md {\n max-width: var(--container-md);\n }\n .flex-1 {\n flex: 1;\n }\n .flex-3 {\n flex: 3;\n }\n .-translate-x-1\\/2 {\n --tw-translate-x: calc(calc(1/2 * 100%) * -1);\n translate: var(--tw-translate-x) var(--tw-translate-y);\n }\n .-translate-y-1\\/2 {\n --tw-translate-y: calc(calc(1/2 * 100%) * -1);\n translate: var(--tw-translate-x) var(--tw-translate-y);\n }\n .transform {\n transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);\n }\n .animate-spin {\n animation: var(--animate-spin);\n }\n .cursor-help {\n cursor: help;\n }\n .appearance-none {\n appearance: none;\n }\n .grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n .grid-cols-3 {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n .grid-rows-2 {\n grid-template-rows: repeat(2, minmax(0, 1fr));\n }\n .grid-rows-3 {\n grid-template-rows: repeat(3, minmax(0, 1fr));\n }\n .flex-col {\n flex-direction: column;\n }\n .flex-row {\n flex-direction: row;\n }\n .flex-wrap {\n flex-wrap: wrap;\n }\n .items-center {\n align-items: center;\n }\n .items-start {\n align-items: flex-start;\n }\n .items-stretch {\n align-items: stretch;\n }\n .justify-between {\n justify-content: space-between;\n }\n .justify-center {\n justify-content: center;\n }\n .justify-end {\n justify-content: flex-end;\n }\n .justify-start {\n justify-content: flex-start;\n }\n .gap-0 {\n gap: calc(var(--spacing) * 0);\n }\n .gap-1 {\n gap: calc(var(--spacing) * 1);\n }\n .gap-2 {\n gap: calc(var(--spacing) * 2);\n }\n .gap-4 {\n gap: calc(var(--spacing) * 4);\n }\n .space-y-4 {\n :where(& > :not(:last-child)) {\n --tw-space-y-reverse: 0;\n margin-block-start: calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));\n margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)));\n }\n }\n .space-y-6 {\n :where(& > :not(:last-child)) {\n --tw-space-y-reverse: 0;\n margin-block-start: calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));\n margin-block-end: calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)));\n }\n }\n .rounded {\n border-radius: 0.25rem;\n }\n .rounded-4xl {\n border-radius: var(--radius-4xl);\n }\n .rounded-full {\n border-radius: calc(infinity * 1px);\n }\n .rounded-lg {\n border-radius: var(--radius-lg);\n }\n .border {\n border-style: var(--tw-border-style);\n border-width: 1px;\n }\n .border-t-2 {\n border-top-style: var(--tw-border-style);\n border-top-width: 2px;\n }\n .border-b-2 {\n border-bottom-style: var(--tw-border-style);\n border-bottom-width: 2px;\n }\n .border-border {\n border-color: var(--color-border);\n }\n .border-error {\n border-color: var(--color-error);\n }\n .border-gray-300 {\n border-color: var(--color-gray-300);\n }\n .border-secondary {\n border-color: var(--color-secondary);\n }\n .bg-black {\n background-color: var(--color-black);\n }\n .bg-gray-800 {\n background-color: var(--color-gray-800);\n }\n .bg-muted {\n background-color: var(--color-muted);\n }\n .bg-overlay {\n background-color: var(--color-overlay);\n }\n .bg-primary {\n background-color: var(--color-primary);\n }\n .bg-secondary {\n background-color: var(--color-secondary);\n }\n .bg-surface {\n background-color: var(--color-surface);\n }\n .bg-surface-active {\n background-color: var(--color-surface-active);\n }\n .bg-text-secondary {\n background-color: var(--color-text-secondary);\n }\n .bg-transparent {\n background-color: transparent;\n }\n .p-1 {\n padding: calc(var(--spacing) * 1);\n }\n .p-2 {\n padding: calc(var(--spacing) * 2);\n }\n .p-3 {\n padding: calc(var(--spacing) * 3);\n }\n .p-4 {\n padding: calc(var(--spacing) * 4);\n }\n .p-6 {\n padding: calc(var(--spacing) * 6);\n }\n .px-4 {\n padding-inline: calc(var(--spacing) * 4);\n }\n .py-2 {\n padding-block: calc(var(--spacing) * 2);\n }\n .pt-2 {\n padding-top: calc(var(--spacing) * 2);\n }\n .pt-4 {\n padding-top: calc(var(--spacing) * 4);\n }\n .pt-7 {\n padding-top: calc(var(--spacing) * 7);\n }\n .pr-4 {\n padding-right: calc(var(--spacing) * 4);\n }\n .pb-3 {\n padding-bottom: calc(var(--spacing) * 3);\n }\n .pb-4 {\n padding-bottom: calc(var(--spacing) * 4);\n }\n .pl-2 {\n padding-left: calc(var(--spacing) * 2);\n }\n .pl-4 {\n padding-left: calc(var(--spacing) * 4);\n }\n .pl-10 {\n padding-left: calc(var(--spacing) * 10);\n }\n .text-center {\n text-align: center;\n }\n .text-2xl {\n font-size: var(--text-2xl);\n line-height: var(--tw-leading, var(--text-2xl--line-height));\n }\n .text-lg {\n font-size: var(--text-lg);\n line-height: var(--tw-leading, var(--text-lg--line-height));\n }\n .text-sm {\n font-size: var(--text-sm);\n line-height: var(--tw-leading, var(--text-sm--line-height));\n }\n .text-xl {\n font-size: var(--text-xl);\n line-height: var(--tw-leading, var(--text-xl--line-height));\n }\n .text-xs {\n font-size: var(--text-xs);\n line-height: var(--tw-leading, var(--text-xs--line-height));\n }\n .font-bold {\n --tw-font-weight: var(--font-weight-bold);\n font-weight: var(--font-weight-bold);\n }\n .font-medium {\n --tw-font-weight: var(--font-weight-medium);\n font-weight: var(--font-weight-medium);\n }\n .font-semibold {\n --tw-font-weight: var(--font-weight-semibold);\n font-weight: var(--font-weight-semibold);\n }\n .text-error {\n color: var(--color-error);\n }\n .text-gray-400 {\n color: var(--color-gray-400);\n }\n .text-muted {\n color: var(--color-muted);\n }\n .text-muted-foreground {\n color: var(--color-muted-foreground);\n }\n .text-primary-foreground {\n color: var(--color-primary-foreground);\n }\n .text-secondary {\n color: var(--color-secondary);\n }\n .text-secondary-foreground {\n color: var(--color-secondary-foreground);\n }\n .text-success {\n color: var(--color-success);\n }\n .text-text-muted {\n color: var(--color-text-muted);\n }\n .text-text-placeholder {\n color: var(--color-text-placeholder);\n }\n .text-text-secondary {\n color: var(--color-text-secondary);\n }\n .accent-tertiary {\n accent-color: var(--color-tertiary);\n }\n .opacity-0 {\n opacity: 0%;\n }\n .shadow {\n --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n .transition-colors {\n transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;\n transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));\n transition-duration: var(--tw-duration, var(--default-transition-duration));\n }\n .transition-opacity {\n transition-property: opacity;\n transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));\n transition-duration: var(--tw-duration, var(--default-transition-duration));\n }\n .duration-200 {\n --tw-duration: 200ms;\n transition-duration: 200ms;\n }\n .group-hover\\:opacity-100 {\n &:is(:where(.group):hover *) {\n @media (hover: hover) {\n opacity: 100%;\n }\n }\n }\n .hover\\:bg-hover {\n &:hover {\n @media (hover: hover) {\n background-color: var(--color-hover);\n }\n }\n }\n .hover\\:bg-hover-dark {\n &:hover {\n @media (hover: hover) {\n background-color: var(--color-hover-dark);\n }\n }\n }\n .hover\\:bg-muted {\n &:hover {\n @media (hover: hover) {\n background-color: var(--color-muted);\n }\n }\n }\n .hover\\:bg-overlay {\n &:hover {\n @media (hover: hover) {\n background-color: var(--color-overlay);\n }\n }\n }\n .hover\\:bg-secondary {\n &:hover {\n @media (hover: hover) {\n background-color: var(--color-secondary);\n }\n }\n }\n .hover\\:bg-secondary\\/80 {\n &:hover {\n @media (hover: hover) {\n background-color: color-mix(in srgb, hsl(28 100% 8%) 80%, transparent);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--color-secondary) 80%, transparent);\n }\n }\n }\n }\n .hover\\:bg-surface-hover {\n &:hover {\n @media (hover: hover) {\n background-color: var(--color-surface-hover);\n }\n }\n }\n .hover\\:bg-tertiary {\n &:hover {\n @media (hover: hover) {\n background-color: var(--color-tertiary);\n }\n }\n }\n .hover\\:bg-text-secondary {\n &:hover {\n @media (hover: hover) {\n background-color: var(--color-text-secondary);\n }\n }\n }\n .hover\\:text-muted {\n &:hover {\n @media (hover: hover) {\n color: var(--color-muted);\n }\n }\n }\n .focus\\:border-transparent {\n &:focus {\n border-color: transparent;\n }\n }\n .focus\\:ring-2 {\n &:focus {\n --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n }\n .focus\\:ring-info {\n &:focus {\n --tw-ring-color: var(--color-info);\n }\n }\n .focus\\:ring-secondary {\n &:focus {\n --tw-ring-color: var(--color-secondary);\n }\n }\n .focus\\:ring-tertiary {\n &:focus {\n --tw-ring-color: var(--color-tertiary);\n }\n }\n .focus\\:ring-offset-0 {\n &:focus {\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n }\n }\n .focus\\:outline-none {\n &:focus {\n --tw-outline-style: none;\n outline-style: none;\n }\n }\n .lg\\:gap-4 {\n @media (width >= 64rem) {\n gap: calc(var(--spacing) * 4);\n }\n }\n .\\[\\&\\:\\:-webkit-slider-runnable-track\\]\\:rounded-full {\n &::-webkit-slider-runnable-track {\n border-radius: calc(infinity * 1px);\n }\n }\n .\\[\\&\\:\\:-webkit-slider-runnable-track\\]\\:bg-black\\/25 {\n &::-webkit-slider-runnable-track {\n background-color: color-mix(in srgb, #000 25%, transparent);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--color-black) 25%, transparent);\n }\n }\n }\n .\\[\\&\\:\\:-webkit-slider-thumb\\]\\:h-\\[10px\\] {\n &::-webkit-slider-thumb {\n height: 10px;\n }\n }\n .\\[\\&\\:\\:-webkit-slider-thumb\\]\\:w-\\[10px\\] {\n &::-webkit-slider-thumb {\n width: 10px;\n }\n }\n .\\[\\&\\:\\:-webkit-slider-thumb\\]\\:appearance-none {\n &::-webkit-slider-thumb {\n appearance: none;\n }\n }\n .\\[\\&\\:\\:-webkit-slider-thumb\\]\\:rounded-full {\n &::-webkit-slider-thumb {\n border-radius: calc(infinity * 1px);\n }\n }\n .\\[\\&\\:\\:-webkit-slider-thumb\\]\\:bg-muted {\n &::-webkit-slider-thumb {\n background-color: var(--color-muted);\n }\n }\n}\n@property --tw-translate-x {\n syntax: \"*\";\n inherits: false;\n initial-value: 0;\n}\n@property --tw-translate-y {\n syntax: \"*\";\n inherits: false;\n initial-value: 0;\n}\n@property --tw-translate-z {\n syntax: \"*\";\n inherits: false;\n initial-value: 0;\n}\n@property --tw-rotate-x {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-rotate-y {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-rotate-z {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-skew-x {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-skew-y {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-space-y-reverse {\n syntax: \"*\";\n inherits: false;\n initial-value: 0;\n}\n@property --tw-border-style {\n syntax: \"*\";\n inherits: false;\n initial-value: solid;\n}\n@property --tw-font-weight {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-shadow-color {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-shadow-alpha {\n syntax: \"<percentage>\";\n inherits: false;\n initial-value: 100%;\n}\n@property --tw-inset-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-inset-shadow-color {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-inset-shadow-alpha {\n syntax: \"<percentage>\";\n inherits: false;\n initial-value: 100%;\n}\n@property --tw-ring-color {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-ring-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-inset-ring-color {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-inset-ring-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-ring-inset {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-ring-offset-width {\n syntax: \"<length>\";\n inherits: false;\n initial-value: 0px;\n}\n@property --tw-ring-offset-color {\n syntax: \"*\";\n inherits: false;\n initial-value: #fff;\n}\n@property --tw-ring-offset-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-duration {\n syntax: \"*\";\n inherits: false;\n}\n@keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n@layer properties {\n @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {\n *, ::before, ::after, ::backdrop {\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-translate-z: 0;\n --tw-rotate-x: initial;\n --tw-rotate-y: initial;\n --tw-rotate-z: initial;\n --tw-skew-x: initial;\n --tw-skew-y: initial;\n --tw-space-y-reverse: 0;\n --tw-border-style: solid;\n --tw-font-weight: initial;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-color: initial;\n --tw-shadow-alpha: 100%;\n --tw-inset-shadow: 0 0 #0000;\n --tw-inset-shadow-color: initial;\n --tw-inset-shadow-alpha: 100%;\n --tw-ring-color: initial;\n --tw-ring-shadow: 0 0 #0000;\n --tw-inset-ring-color: initial;\n --tw-inset-ring-shadow: 0 0 #0000;\n --tw-ring-inset: initial;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-duration: initial;\n }\n }\n}\n";
225
+
226
+ const SolarSystemForm = /*@__PURE__*/ proxyCustomElement(class SolarSystemForm extends H {
227
+ constructor() {
228
+ super();
229
+ this.__registerHost();
230
+ }
231
+ systemConfigs = {};
232
+ roofPolygons = {};
233
+ obstructionPolygons = {};
234
+ householdConsumption = 4500;
235
+ consumptionProfile = "mostly_at_home";
236
+ electricityPrice = 0.3;
237
+ compensationRate = 0.07;
238
+ annualPriceIncrease = 2;
239
+ autonomy = 0;
240
+ costSavings = 0;
241
+ numberOfPanels = 5;
242
+ panelPeakPower = 0.4; // kW per panel
243
+ name = "";
244
+ email = "";
245
+ nameError = "";
246
+ emailError = "";
247
+ electricCar = false;
248
+ electricCarChargingTime = "day";
249
+ heatPump = 0;
250
+ battery = 0;
251
+ compensation25Years = 0;
252
+ savedCosts25Years = 0;
253
+ maxPanels = 5;
254
+ kmDrivenPerYear = 10000;
255
+ updateSystemConfigs() {
256
+ if (Object.keys(this.systemConfigs).length === 0) {
257
+ this.numberOfPanels = 0;
258
+ this.maxPanels = 0;
259
+ return;
260
+ }
261
+ this.numberOfPanels = Object.keys(this.systemConfigs).reduce((acc, curr) => acc + this.systemConfigs[curr].positionedPanels.length, 0);
262
+ this.maxPanels = Object.keys(this.systemConfigs).reduce((acc, curr) => acc + this.systemConfigs[curr].positionedPanels.length, 0);
263
+ this.panelPeakPower =
264
+ Object.entries(this.systemConfigs)[0][1].positionedPanels[0].panel
265
+ .kWattPeak;
266
+ this.recalculate();
267
+ }
268
+ recalculate() {
269
+ const simulationConfig = {
270
+ general: {
271
+ simulationYears: 25,
272
+ },
273
+ householdConsumption: {
274
+ consumptionProfile: this.consumptionProfile,
275
+ winterConsumptionFactor: 1.2,
276
+ summerConsumptionFactor: 0.8,
277
+ averageConsumption: this.householdConsumption / 365,
278
+ },
279
+ electricityPrice: {
280
+ purchase: this.electricityPrice,
281
+ sell: this.compensationRate,
282
+ increase: this.annualPriceIncrease / 100,
283
+ },
284
+ solarSystem: {
285
+ numberOfPanels: this.numberOfPanels,
286
+ panelType: DEFAULT_SOLAR_PANEL_TYPE,
287
+ pitch: 30,
288
+ },
289
+ batteryKWh: this.battery,
290
+ solarRadiation: {
291
+ winterFactor: 0.2,
292
+ summerFactor: 0.6,
293
+ },
294
+ heatPump: {
295
+ m2: this.heatPump,
296
+ },
297
+ electricCar: this.electricCar
298
+ ? {
299
+ averageKilometersPerDay: this.kmDrivenPerYear / 365,
300
+ consumptionkWhPer100km: 17,
301
+ batteryKWh: 20,
302
+ chargingHours: this.electricCarChargingTime === "day"
303
+ ? generateElectricCarChargingHours(6, 18)
304
+ : generateElectricCarChargingHours(18, 6),
305
+ }
306
+ : undefined,
307
+ };
308
+ const result = simulate(simulationConfig);
309
+ this.compensation25Years = result.compensationPerDay * 365 * 25;
310
+ this.savedCosts25Years = result.byYearSavedCosts.reduce((acc, curr) => acc + curr, 0);
311
+ this.costSavings = result.compensationPerDay * 365;
312
+ this.autonomy = result.autonomy * 100;
313
+ }
314
+ componentWillLoad() {
315
+ this.updateSystemConfigs();
316
+ }
317
+ validateForm() {
318
+ let isValid = true;
319
+ const t = getLanguageStrings(state.settings.language);
320
+ // Validate name
321
+ if (!this.name.trim()) {
322
+ this.nameError = t.solarSystemForm.nameError;
323
+ isValid = false;
324
+ }
325
+ else {
326
+ this.nameError = "";
327
+ }
328
+ // Validate email
329
+ const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
330
+ if (!this.email.trim()) {
331
+ this.emailError = t.solarSystemForm.emailError;
332
+ isValid = false;
333
+ }
334
+ else if (!emailRegex.test(this.email)) {
335
+ this.emailError = t.solarSystemForm.validEmailError;
336
+ isValid = false;
337
+ }
338
+ else {
339
+ this.emailError = "";
340
+ }
341
+ return isValid;
342
+ }
343
+ handleRequestOffer() {
344
+ if (!this.validateForm()) {
345
+ return;
346
+ }
347
+ // Here you can implement the logic to handle the offer request
348
+ console.log("Requesting offer for: ", {
349
+ name: this.name,
350
+ email: this.email,
351
+ systemConfig: this.systemConfigs,
352
+ consumption: this.householdConsumption,
353
+ autonomy: this.autonomy,
354
+ costSavings: this.costSavings,
355
+ roofPolygons: this.roofPolygons,
356
+ obstructionPolygons: this.obstructionPolygons,
357
+ });
358
+ }
359
+ isIOS() {
360
+ return state.isIOS;
361
+ }
362
+ render() {
363
+ const t = getLanguageStrings(state.settings.language);
364
+ return (h("div", { key: '2dba1a7d4b79678b3361a902cde4f01b1a60723c', class: "flex flex-col justify-center items-center w-full h-full pt-4" // style={{
365
+ ,
366
+ // display: (Object.keys(this.systemConfigs).length === 0)
367
+ // ? "none"
368
+ // : "flex",
369
+ // }}
370
+ id: "solar-system-form" }, h("h1", { key: '0972b02752b45df6c041612092d464e92452b98a', class: "text-2xl font-bold text-secondary mb-4 w-full" }, t.solarSystemForm.title), h("div", { key: '4c52dbb02fe992448c42eb02a329e0e5564b803c', class: "w-full bg-primary rounded-4xl p-6 space-y-6" }, h("div", { key: '3c2cf88508492490f37c653b20998304bfba2c18', class: "space-y-4" }, h("h2", { key: 'cfe3f341590f6108ba46037c0b73b44f126efd0f', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.systemInformation), h("div", { key: 'f0cd684017a6e3d3131abb9fbc4ab4e753476cb2', class: "grid grid-rows-3 gap-0" }, h("div", { key: '82cf51fc61de99e18da78ba008dabdcec3628d58', class: "grid grid-cols-2 gap-4" }, h("label", { key: '366967b6e765e98b49586a65c16837ee8f64be6f', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.numberOfPanels), h("label", { key: '106b856ad95f97707d98ae17b3ddf82fcc6a7b77', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.panelPeakPower)), h("div", { key: '0f161572faca40018ec9de3428ae3e2a624698ae', class: "grid grid-cols-2 gap-4" }, !this.isIOS()
371
+ ? (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 }))
372
+ : (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) => {
373
+ const value = parseInt(e.target
374
+ .value);
375
+ if (value >= 1 &&
376
+ value <=
377
+ this.maxPanels) {
378
+ this.numberOfPanels = value;
379
+ this.recalculate();
380
+ }
381
+ } })), h("input", { key: 'aeab24e38c31cfb42cf8645ac5dd6137cbb6b99b', 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: 'c45659a53aa8e14f6f20131d07c2c41015b5a4aa', class: "grid grid-cols-2 gap-4" }, h("div", { key: '1f467466b742dc17e3760e5aeba0e78379a5b6a8', class: "w-full pt-2" }, !this.isIOS() &&
382
+ (h("input", { key: '96cc91acf57870cea535401d67a5edc5a4fecaa2', 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) => {
383
+ this.numberOfPanels =
384
+ parseInt(e.target
385
+ .value);
386
+ this.recalculate();
387
+ } }))))), h("div", { key: '7ee4bc1470263ba2ec64ed23092437c884fcd5b6', class: "bg-muted rounded-4xl p-4" }, h("div", { key: 'dbb7c15685d1d6eddaf900b3a34a69e5077b1267', class: "flex items-center justify-between" }, h("span", { key: '1190f2e3983e16e8c33691f204d4c0cc15388edd', class: "text-text-muted" }, t.solarSystemForm.totalSystemPeakPower), h("span", { key: '90aa7637936ed45bbc01af5e6340a4012404f4be', class: "text-xl font-bold text-secondary" }, (DEFAULT_SOLAR_PANEL_TYPE.kWattPeak *
388
+ this.numberOfPanels).toFixed(1), " kW")))), h("div", { key: 'f6f005f65aa8e53f15ed413ef7f719cab94180d3', class: "space-y-4" }, h("h2", { key: 'ea06f893c464f9bf54125b2c2445d53603c632cd', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.householdConsumptionTitle), h("div", { key: '86baad6398558c50c5dcbdf1802508a7b48d3154', class: "grid grid-rows-2 gap-0" }, h("div", { key: 'b607928a1c76599410315522c6acf128d7a23a70', class: "grid grid-cols-2 gap-4" }, h("label", { key: '24795f49bbbf5855e7bea51f5c5f12dadab605e5', class: "block text-sm font-medium text-text-muted" }, t.solarSystemForm.annualConsumption), h("label", { key: '52dc1ecbb762807fbc11b6ede8606ab4860fdb2c', class: "block text-sm font-medium text-text-muted" }, t.solarSystemForm.consumptionProfileTitle)), h("div", { key: '1c9a6130eb01f0991416914846d0475a5d6274a7', class: "grid grid-cols-2 gap-4" }, h("input", { key: 'fc3736864d9ed2ea15027ffd540cc5e45f28ddf3', 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) => {
389
+ this.householdConsumption = parseInt(e.target
390
+ .value);
391
+ this.recalculate();
392
+ } }), h("select", { key: 'c9ba1dcfeface496cf422d246f8a535caf90b21c', 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) => {
393
+ this.consumptionProfile =
394
+ e.target
395
+ .value;
396
+ this.recalculate();
397
+ } }, h("option", { key: '7353fd6fa5b88fee3a827d219e620419b33a3e1a', value: "mostly_at_home", selected: this.consumptionProfile ===
398
+ "mostly_at_home" }, t.solarSystemForm.consumptionProfiles
399
+ .mostlyAtHome), h("option", { key: 'bb63091b3b3c850ebbca8ba82a98df9e45e38708', value: "mostly_away", selected: this.consumptionProfile ===
400
+ "mostly_away" }, t.solarSystemForm.consumptionProfiles
401
+ .mostlyAway))))), h("div", { key: '93814a3774330bcf24ab0ce59d16fa31ff3e3b8d', class: "space-y-4" }, h("h2", { key: '6c2abe70c9d8830f731738a5715d144549b4a442', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.additionalComponents.title), h("div", { key: 'f9bbbad29cdb2519bac72812513cd0c075104ba3', class: "flex flex-col gap-4" }, h("div", { key: '89bd4e2e08dc598399a125f11ae36b7ac03a2117', class: "flex flex-col bg-muted rounded-4xl p-4 gap-4" }, h("div", { key: '80a82081a5d5c98d2e7490a23846d7f9a6c8346a', class: "flex items-center justify-between" }, h("div", { key: '6d24c0392d7a6e45ccc3f2ebcdf3d0d12fdcd6ad', class: "flex items-center gap-2" }, h("input", { key: 'd4244b66de0f756d768f54686e54415c062741aa', 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) => {
402
+ this.heatPump =
403
+ e.target
404
+ .checked
405
+ ? 100
406
+ : 0;
407
+ this.recalculate();
408
+ } }), h("label", { key: '9c10d7836a1d03c3e42833677bb6b16c57444214', htmlFor: "heatPump", class: "text-text-muted" }, t.solarSystemForm
409
+ .additionalComponents
410
+ .heatPump)), (this.heatPump > 0 && !this.isIOS()) && (h("span", { key: '05aa1682bb44f48e64663a58812fb9e105631e7a', class: "text-text-muted" }, this.heatPump, " m\u00B2"))), this.heatPump > 0 && (h("div", { key: '7fe520973be0c96d8578d354100b2e874a528798', class: "flex flex-col gap-2" }, this.isIOS()
411
+ ? (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) => {
412
+ const value = parseInt(e.target
413
+ .value);
414
+ if (value >= 10 &&
415
+ value <= 300) {
416
+ this.heatPump =
417
+ value;
418
+ this.recalculate();
419
+ }
420
+ } }), h("span", { class: "text-sm text-text-muted" }, "m\u00B2")))
421
+ : (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) => {
422
+ this.heatPump =
423
+ parseInt(e.target
424
+ .value);
425
+ this.recalculate();
426
+ } }))))), h("div", { key: '30caf2346f7d045d228381e3366d4fecd76916c8', class: "flex flex-col bg-muted rounded-4xl p-4 gap-4" }, h("div", { key: 'a94575e1be9ecb737ba6cb5d3b5f5f537c7e979e', class: "flex items-center justify-between" }, h("div", { key: 'd86c31b017e5bf19fd9971b92f231a760dcc131a', class: "flex items-center gap-2" }, h("input", { key: '0719ff09f5a6b5a34b6cf6b54644b54a5a6a8285', 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) => {
427
+ this.electricCar =
428
+ e.target
429
+ .checked;
430
+ this.recalculate();
431
+ } }), h("label", { key: '9c4a68991e0eae216f08301d9d7f05154ce3dd81', htmlFor: "electricCar", class: "text-text-muted" }, t.solarSystemForm
432
+ .additionalComponents
433
+ .electricCar))), this.electricCar && (h("div", { key: '9cd654a0808a9056182db1bc3dcc0bfe58e87aaa', class: "flex flex-col gap-2" }, h("div", { key: '8159b0a6838e542241fc19aef049c81972aab2d3', class: "grid grid-cols-2 gap-4" }, h("label", { key: '2e05407d9722ea505a807c12281e33d7a149c238', class: "text-sm text-text-muted" }, t.solarSystemForm
434
+ .additionalComponents
435
+ .chargingTime), h("label", { key: '6e0c47dbff742bab9c31f70f21ff40bb48be94ef', class: "text-sm text-text-muted" }, t.solarSystemForm
436
+ .additionalComponents
437
+ .kilometersPerYear)), h("div", { key: '73625a4670dcfbad67ea71c49944f42763736a02', class: "grid grid-cols-2 gap-4" }, h("select", { key: '2c0e439fb5d5c56c9be38c674f72f24a818790e6', 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) => {
438
+ this.electricCarChargingTime =
439
+ e.target
440
+ .value;
441
+ this.recalculate();
442
+ } }, h("option", { key: 'db4dd978babb12922ccd16109fe5979340b4cb8e', value: "day", selected: this
443
+ .electricCarChargingTime ===
444
+ "day" }, t.solarSystemForm
445
+ .additionalComponents
446
+ .chargingTimeDay), h("option", { key: '2038a7167c446e9545d244c7d40058a6a26cddfe', value: "night", selected: this
447
+ .electricCarChargingTime ===
448
+ "night" }, t.solarSystemForm
449
+ .additionalComponents
450
+ .chargingTimeNight)), h("input", { key: '172c85052702f27664e01ed2042352cdcea5496e', 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) => {
451
+ this.kmDrivenPerYear =
452
+ parseInt(e.target
453
+ .value);
454
+ this.recalculate();
455
+ } }))))), h("div", { key: 'a912cb5ce0ec49ad81686ca9e7c26eaa656882fb', class: "flex flex-col bg-muted rounded-4xl p-4 gap-4" }, h("div", { key: '7bbf721df9baf5474a29c833da7b43ed4f7b8526', class: "flex items-center justify-between" }, h("label", { key: '6659def780382febfba0461081b0ca8ed23b9a8b', class: "text-text-muted" }, t.solarSystemForm.additionalComponents
456
+ .battery), !this.isIOS() && (h("span", { key: '6efef8005f93faa641c497d1fed1095c1a02cb80', class: "text-text-muted" }, this.battery, " kWh"))), h("div", { key: '40340af8d1390650800400c04b92ba76f26add9a', class: "flex flex-col gap-2" }, this.isIOS()
457
+ ? (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) => {
458
+ const value = parseInt(e.target
459
+ .value);
460
+ if (value >= 0 &&
461
+ value <= 20) {
462
+ this.battery =
463
+ value;
464
+ this.recalculate();
465
+ }
466
+ }, placeholder: "Battery capacity" }), h("span", { class: "text-sm text-text-muted" }, "kWh")))
467
+ : (h("input", { type: "range", min: "0", 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) => {
468
+ this.battery = parseInt(e.target
469
+ .value);
470
+ this.recalculate();
471
+ } })))))), h("div", { key: '4d7fd613fd9cc27efc32889c9c9dbc88c388b20b', class: "space-y-4" }, h("h2", { key: 'f360fc63a6bc5605238f5afefc83f84fa75b5bc9', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.electricityCostsTitle), h("div", { key: '9965bdc43481024699bb3e67f126db9d00de1668', class: "grid grid-rows-2 gap-0" }, h("div", { key: 'f843661f1bbf4d95fe614f459c9944f8157ce41a', class: "grid grid-cols-3 gap-4" }, h("label", { key: 'f3ea889c003dba20cd4ccea47a9d3ba7e3139564', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.electricityPrice), h("label", { key: '7890b7ea02880952304d5aa89e6905d2694acb28', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.compensationRate), h("label", { key: 'b8e3e15772991e62933e4400458dc897b1d2cb0b', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.annualPriceIncrease)), h("div", { key: '31ba1ca8c3472f418c1ee0b5bb133c8c25d879c7', class: "grid grid-cols-3 gap-4 text-primary-foreground" }, h("input", { key: 'ebd0e2cf4ca9fe50673becc1cce15f5392fc1f6d', 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) => {
472
+ this.electricityPrice = parseFloat(e.target
473
+ .value);
474
+ this.recalculate();
475
+ } }), h("input", { key: '680e9ab82f3709f64ef7f3112a669c8c036ff13c', 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) => {
476
+ this.compensationRate = parseFloat(e.target
477
+ .value);
478
+ this.recalculate();
479
+ } }), h("input", { key: '979a7bf13797b5d6d4c13d7817daf675867a90a5', 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) => {
480
+ this.annualPriceIncrease = parseFloat(e.target
481
+ .value);
482
+ this.recalculate();
483
+ } })))), h("div", { key: '59b9c6e652fac3ae8e96e6faa8451dabaab5cbd9', class: "space-y-4 p-4 border border-border rounded-4xl" }, h("h2", { key: 'af81e0e13d3d737b8af89ea87f07fcaf71719da1', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.resultsTitle), h("div", { key: '4da583e8c46227758095da8a9c18ba5f121050f5', class: "bg-muted rounded-4xl p-4" }, h("div", { key: 'bf86500fb9c17a82329af4c94a5cb8221edfd529', class: "flex items-center justify-between" }, h("span", { key: '250ca2b7aae7e8175b4afda3f44538962d69d692', class: "text-text-muted" }, t.solarSystemForm.autonomy), h("span", { key: 'b17cda09be90d80c98cfcb9196be2690b7685eab', class: "text-xl font-bold text-secondary" }, this.autonomy > 100
484
+ ? "100"
485
+ : this.autonomy.toFixed(1), "%")), h("div", { key: '022068909442f3cc2b5bfad6d561fb071d762da8', class: "flex items-center justify-between mt-4" }, h("div", { key: 'e04f7302e120c169044d8325c12fa00e0ce6933d', class: "flex items-center gap-2" }, h("span", { key: 'b0557613945fcb8f854fdfe3430c2cf26b209e60', class: "text-text-muted" }, t.solarSystemForm.costSavings), h("div", { key: 'ab36a9240bc63d7d580ff7e271a7de348bccb9c9', class: "relative group" }, h("svg", { key: '6e1e253b7e340830a1807e62f06d5efe032de492', 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: 'ccd8466999aeb513036299d097a8bd6e1b0aefa0', "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: '7dcb1812df34b4e43aaa4843b1bae04a586177a1', 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
486
+ .savingsDisclaimer))), h("span", { key: '95841ca5c79babb422718b7c7c7ae0f4be375b53', class: "text-xl font-bold text-success" }, this.costSavings.toFixed(2), "\u20AC/", t
487
+ .solarSystemForm.year)), h("div", { key: 'fb3b8dbf60b97177f883ac275f11905ff71204f7', class: "flex items-center justify-between mt-4" }, h("div", { key: 'f323402e398c6ad004e68b955850622bfd8c49a1', class: "flex items-center gap-2" }, h("span", { key: '954ab0f97db2c5410e11007254061014976138b9', class: "text-text-muted" }, "Einspeiseverg\u00FCtung 25 Jahre")), h("span", { key: '0817a48f08dc1616319ec9edddf92a143918cb4e', class: "text-xl font-bold text-success" }, this.compensation25Years.toFixed(2), "\u20AC")), h("div", { key: '97264396b8cb215dfcc101bf335f5fe5334e8818', class: "flex items-center justify-between mt-4" }, h("div", { key: 'b3376b516b92d9e807e7e4835ed850a43933b0cb', class: "flex items-center gap-2" }, h("span", { key: '85d7d56f5d6d4d199fcc60a183c8508a666980d0', class: "text-text-muted" }, "Geldwerter Vorteil 25 Jahre")), h("span", { key: '6d46adaf38514de9d02a500ea0d3f2f03969b074', class: "text-xl font-bold text-success" }, this.savedCosts25Years.toFixed(2), "\u20AC")))), h("div", { key: 'e1ddccc465c4ed07cd0727c75b0424d5562b59ca', class: "space-y-4 pt-4" }, h("h2", { key: '23001983f1f344bb8b02389b7e723d509a620db3', class: "text-lg font-semibold text-secondary" }, t.solarSystemForm.requestOffer), h("div", { key: '5febf4765ac55b6af530d50b870e10c6b62a66ee', class: "grid gap-4" }, h("div", { key: '1472213feee170225ebf41725458be7577175171', class: "grid grid-cols-2 gap-4" }, h("label", { key: 'e16155f8ba9ad10c97b45022a02a0776ab2e6c1f', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.name), h("label", { key: 'c7296bf578d483780e49a0ed88b65101716d5e29', class: "block text-sm font-medium text-text-muted mb-1" }, t.solarSystemForm.email)), h("div", { key: '248016e2a7cdad117992bb8e83788cfa88b52020', class: "grid grid-cols-2 gap-4" }, h("div", { key: '588fe4128ce6fd67dcc85c59dda8a20686339664' }, h("input", { key: '04b6ae8f842c236ee3c91772a4754c29ec23f012', type: "text", class: `w-full px-4 py-2 rounded-4xl border ${this.nameError
488
+ ? "border-error"
489
+ : "border-border"} focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground`, value: this.name, onInput: (e) => {
490
+ this.name =
491
+ e.target
492
+ .value;
493
+ this.validateForm();
494
+ }, placeholder: "Your name" }), this.nameError && (h("p", { key: '193f2182e3594aef71e6ff380a3049cd4477d7d4', class: "text-error text-sm mt-1" }, this.nameError))), h("div", { key: 'c9b7da8261b6a706db216987e0f43cbb8a0d2d50' }, h("input", { key: 'dc2ebde099a99f1fe095ba6d2a73b3556b042d45', type: "email", class: `w-full px-4 py-2 rounded-4xl border ${this.emailError
495
+ ? "border-error"
496
+ : "border-border"} focus:ring-2 focus:ring-tertiary focus:border-transparent bg-muted text-muted-foreground`, value: this.email, onInput: (e) => {
497
+ this.email =
498
+ e.target
499
+ .value;
500
+ this.validateForm();
501
+ }, placeholder: "your.email@example.com" }), this.emailError && (h("p", { key: 'ab8081c675dca8cdd86d166f59f1d0ce8bb0b062', class: "text-error text-sm mt-1" }, this.emailError))))), h("div", { key: '36502be234be2434c054e7b40b207ab10292bcb8', class: "flex justify-center" }, h("button", { key: '991bcaeba4f6f957974d7ac77dd8a10e5813df5c', onClick: () => this.handleRequestOffer(), disabled: !this.name.trim() ||
502
+ !this.email.trim() || !!this.nameError ||
503
+ !!this.emailError, class: "px-4 py-2 bg-secondary rounded-4xl hover:bg-tertiary transition-colors duration-200 text-muted" }, t.solarSystemForm.requestOfferButton))))));
504
+ }
505
+ static get watchers() { return {
506
+ "systemConfigs": ["updateSystemConfigs"]
507
+ }; }
508
+ static get style() { return outputCss; }
509
+ }, [0, "solar-system-form", {
510
+ "systemConfigs": [16, "system-configs"],
511
+ "roofPolygons": [16, "roof-polygons"],
512
+ "obstructionPolygons": [16, "obstruction-polygons"],
513
+ "householdConsumption": [32],
514
+ "consumptionProfile": [32],
515
+ "electricityPrice": [32],
516
+ "compensationRate": [32],
517
+ "annualPriceIncrease": [32],
518
+ "autonomy": [32],
519
+ "costSavings": [32],
520
+ "numberOfPanels": [32],
521
+ "panelPeakPower": [32],
522
+ "name": [32],
523
+ "email": [32],
524
+ "nameError": [32],
525
+ "emailError": [32],
526
+ "electricCar": [32],
527
+ "electricCarChargingTime": [32],
528
+ "heatPump": [32],
529
+ "battery": [32],
530
+ "compensation25Years": [32],
531
+ "savedCosts25Years": [32],
532
+ "maxPanels": [32],
533
+ "kmDrivenPerYear": [32]
534
+ }, undefined, {
535
+ "systemConfigs": ["updateSystemConfigs"]
536
+ }]);
537
+ function defineCustomElement() {
538
+ if (typeof customElements === "undefined") {
539
+ return;
540
+ }
541
+ const components = ["solar-system-form"];
542
+ components.forEach(tagName => { switch (tagName) {
543
+ case "solar-system-form":
544
+ if (!customElements.get(tagName)) {
545
+ customElements.define(tagName, SolarSystemForm);
546
+ }
547
+ break;
548
+ } });
549
+ }
550
+ defineCustomElement();
551
+
552
+ export { BORDER_INSET as B, COLUMN_SPACING as C, DOTTED_LINE_COLOR as D, ROW_SPACING as R, SolarSystemForm as S, DEFAULT_SOLAR_EXPERT_CONFIG as a, DEFAULT_SOLAR_PANEL_TYPE as b, DEFAULT_SUNNINESS as c, defineCustomElement as d };
553
+ //# sourceMappingURL=p-CucBs_yI.js.map
554
+
555
+ //# sourceMappingURL=p-CucBs_yI.js.map