blue-chestnut-solar-expert 0.0.52 → 0.0.54

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 (223) hide show
  1. package/dist/stencil-library/api-90JQS7b6.js +104 -0
  2. package/dist/stencil-library/api-90JQS7b6.js.map +1 -0
  3. package/dist/stencil-library/api-B5514wut.js +102 -0
  4. package/dist/stencil-library/api-B5514wut.js.map +1 -0
  5. package/dist/stencil-library/api-CLbMaqt3.js +103 -0
  6. package/dist/stencil-library/api-CLbMaqt3.js.map +1 -0
  7. package/dist/stencil-library/api-Cfi-C6kT.js +104 -0
  8. package/dist/stencil-library/api-Cfi-C6kT.js.map +1 -0
  9. package/dist/stencil-library/api-CiNFC5mG.js +104 -0
  10. package/dist/stencil-library/api-CiNFC5mG.js.map +1 -0
  11. package/dist/stencil-library/api-D_61gY2X.js +102 -0
  12. package/dist/stencil-library/api-D_61gY2X.js.map +1 -0
  13. package/dist/{components/p-CU_Hozfq.js → stencil-library/api-Did5lAE0.js} +4 -7
  14. package/dist/stencil-library/api-Did5lAE0.js.map +1 -0
  15. package/dist/stencil-library/api-S3oJcLL5.js +103 -0
  16. package/dist/stencil-library/api-S3oJcLL5.js.map +1 -0
  17. package/dist/stencil-library/api-iAs1ZQr1.js +104 -0
  18. package/dist/stencil-library/api-iAs1ZQr1.js.map +1 -0
  19. package/dist/stencil-library/{api-CU_Hozfq.js → api-vropRvpT.js} +5 -4
  20. package/dist/stencil-library/api-vropRvpT.js.map +1 -0
  21. package/dist/stencil-library/{decoder-BdybtJ-v.js → decoder-BDfrXE7e.js} +3 -3
  22. package/dist/stencil-library/{decoder-BdybtJ-v.js.map → decoder-BDfrXE7e.js.map} +1 -1
  23. package/dist/stencil-library/{deflate-BSCfm6tE.js → deflate-BrCNE9ec.js} +3 -3
  24. package/dist/stencil-library/{deflate-BSCfm6tE.js.map → deflate-BrCNE9ec.js.map} +1 -1
  25. package/dist/stencil-library/eraser-icon.entry.esm.js.map +1 -1
  26. package/dist/stencil-library/eraser-icon.entry.js +1 -1
  27. package/dist/stencil-library/eraser-icon.entry.js.map +1 -1
  28. package/dist/stencil-library/house-icon.entry.esm.js.map +1 -1
  29. package/dist/stencil-library/house-icon.entry.js +1 -1
  30. package/dist/stencil-library/house-icon.entry.js.map +1 -1
  31. package/dist/stencil-library/icon-selector.entry.esm.js.map +1 -1
  32. package/dist/stencil-library/icon-selector.entry.js +1 -1
  33. package/dist/stencil-library/icon-selector.entry.js.map +1 -1
  34. package/dist/stencil-library/index.esm.js +13 -1
  35. package/dist/stencil-library/index.esm.js.map +1 -1
  36. package/dist/stencil-library/{jpeg-B7s0bMQh.js → jpeg-CjOJHUd1.js} +3 -3
  37. package/dist/stencil-library/{jpeg-B7s0bMQh.js.map → jpeg-CjOJHUd1.js.map} +1 -1
  38. package/dist/stencil-library/{lerc-BRJzMsmm.js → lerc-BQF80JgE.js} +3 -3
  39. package/dist/stencil-library/{lerc-BRJzMsmm.js.map → lerc-BQF80JgE.js.map} +1 -1
  40. package/dist/stencil-library/loading-widget.entry.esm.js.map +1 -1
  41. package/dist/stencil-library/loading-widget.entry.js +2 -2
  42. package/dist/stencil-library/loading-widget.entry.js.map +1 -1
  43. package/dist/stencil-library/{lzw-B1L94-gJ.js → lzw-PA2aOuVK.js} +3 -3
  44. package/dist/stencil-library/{lzw-B1L94-gJ.js.map → lzw-PA2aOuVK.js.map} +1 -1
  45. package/dist/stencil-library/{map-draw-Dbj9dYlX.js → map-draw-CaQc1QTP.js} +11 -11
  46. package/dist/stencil-library/{map-draw-Dbj9dYlX.js.map → map-draw-CaQc1QTP.js.map} +1 -1
  47. package/dist/stencil-library/map-draw.entry.js +1 -1
  48. package/dist/stencil-library/map-selector.entry.esm.js.map +1 -1
  49. package/dist/stencil-library/map-selector.entry.js +19 -3
  50. package/dist/stencil-library/map-selector.entry.js.map +1 -1
  51. package/dist/stencil-library/move-icon.entry.esm.js.map +1 -1
  52. package/dist/stencil-library/move-icon.entry.js +1 -1
  53. package/dist/stencil-library/move-icon.entry.js.map +1 -1
  54. package/dist/stencil-library/octagon-minus-icon.entry.esm.js.map +1 -1
  55. package/dist/stencil-library/octagon-minus-icon.entry.js +1 -1
  56. package/dist/stencil-library/octagon-minus-icon.entry.js.map +1 -1
  57. package/dist/stencil-library/{packbits-Roq2Ecwq.js → packbits-BMYGgS0z.js} +3 -3
  58. package/dist/stencil-library/{packbits-Roq2Ecwq.js.map → packbits-BMYGgS0z.js.map} +1 -1
  59. package/dist/stencil-library/polygon-buttons.entry.esm.js.map +1 -1
  60. package/dist/stencil-library/polygon-buttons.entry.js +3 -3
  61. package/dist/stencil-library/polygon-buttons.entry.js.map +1 -1
  62. package/dist/stencil-library/polygon-information.entry.esm.js.map +1 -1
  63. package/dist/stencil-library/polygon-information.entry.js +2 -2
  64. package/dist/stencil-library/polygon-information.entry.js.map +1 -1
  65. package/dist/stencil-library/{raw-BSypeTBq.js → raw-D-Vfg78n.js} +3 -3
  66. package/dist/stencil-library/{raw-BSypeTBq.js.map → raw-D-Vfg78n.js.map} +1 -1
  67. package/dist/stencil-library/search-icon.entry.esm.js.map +1 -1
  68. package/dist/stencil-library/search-icon.entry.js +1 -1
  69. package/dist/stencil-library/search-icon.entry.js.map +1 -1
  70. package/dist/stencil-library/settings-icon.entry.esm.js.map +1 -1
  71. package/dist/stencil-library/settings-icon.entry.js +1 -1
  72. package/dist/stencil-library/settings-icon.entry.js.map +1 -1
  73. package/dist/stencil-library/settings-modal.entry.esm.js.map +1 -1
  74. package/dist/stencil-library/settings-modal.entry.js +9 -9
  75. package/dist/stencil-library/settings-modal.entry.js.map +1 -1
  76. package/dist/stencil-library/solar-calculator.entry.esm.js.map +1 -1
  77. package/dist/stencil-library/solar-calculator.entry.js +3 -3
  78. package/dist/stencil-library/solar-calculator.entry.js.map +1 -1
  79. package/dist/stencil-library/solar-expert.entry.esm.js.map +1 -1
  80. package/dist/stencil-library/solar-expert.entry.js +3 -3
  81. package/dist/stencil-library/solar-expert.entry.js.map +1 -1
  82. package/dist/stencil-library/solar-system-form.entry.esm.js.map +1 -1
  83. package/dist/stencil-library/solar-system-form.entry.js +39 -39
  84. package/dist/stencil-library/solar-system-form.entry.js.map +1 -1
  85. package/dist/stencil-library/stencil-library.esm.js +52 -1
  86. package/dist/stencil-library/stencil-library.esm.js.map +1 -1
  87. package/dist/stencil-library/tool-box.entry.esm.js.map +1 -1
  88. package/dist/stencil-library/tool-box.entry.js +3 -3
  89. package/dist/stencil-library/tool-box.entry.js.map +1 -1
  90. package/dist/stencil-library/undo-icon.entry.esm.js.map +1 -1
  91. package/dist/stencil-library/undo-icon.entry.js +1 -1
  92. package/dist/stencil-library/undo-icon.entry.js.map +1 -1
  93. package/dist/stencil-library/{webimage-BZX1CuW8.js → webimage-V5ihYILu.js} +3 -3
  94. package/dist/stencil-library/{webimage-BZX1CuW8.js.map → webimage-V5ihYILu.js.map} +1 -1
  95. package/dist/types/components/map-draw/map-selector.d.ts +1 -0
  96. package/package.json +1 -1
  97. package/dist/components/eraser-icon.js +0 -11
  98. package/dist/components/eraser-icon.js.map +0 -1
  99. package/dist/components/house-icon.js +0 -11
  100. package/dist/components/house-icon.js.map +0 -1
  101. package/dist/components/icon-selector.js +0 -11
  102. package/dist/components/icon-selector.js.map +0 -1
  103. package/dist/components/index.js +0 -1269
  104. package/dist/components/index.js.map +0 -1
  105. package/dist/components/loading-widget.js +0 -38
  106. package/dist/components/loading-widget.js.map +0 -1
  107. package/dist/components/map-draw.js +0 -11
  108. package/dist/components/map-draw.js.map +0 -1
  109. package/dist/components/map-selector.js +0 -11
  110. package/dist/components/map-selector.js.map +0 -1
  111. package/dist/components/move-icon.js +0 -11
  112. package/dist/components/move-icon.js.map +0 -1
  113. package/dist/components/octagon-minus-icon.js +0 -11
  114. package/dist/components/octagon-minus-icon.js.map +0 -1
  115. package/dist/components/p-0Ymx0I1T.js +0 -76
  116. package/dist/components/p-0Ymx0I1T.js.map +0 -1
  117. package/dist/components/p-B-Rps0Lf.js +0 -40
  118. package/dist/components/p-B-Rps0Lf.js.map +0 -1
  119. package/dist/components/p-B54Ul0nf.js +0 -15
  120. package/dist/components/p-B54Ul0nf.js.map +0 -1
  121. package/dist/components/p-B5WTRCh8.js +0 -3241
  122. package/dist/components/p-B5WTRCh8.js.map +0 -1
  123. package/dist/components/p-BGoSj_DR.js +0 -902
  124. package/dist/components/p-BGoSj_DR.js.map +0 -1
  125. package/dist/components/p-BYoCVGKQ.js +0 -105
  126. package/dist/components/p-BYoCVGKQ.js.map +0 -1
  127. package/dist/components/p-BhS0AFyx.js +0 -161
  128. package/dist/components/p-BhS0AFyx.js.map +0 -1
  129. package/dist/components/p-BxeHuNQ0.js +0 -653
  130. package/dist/components/p-BxeHuNQ0.js.map +0 -1
  131. package/dist/components/p-ByX6QP-E.js +0 -33
  132. package/dist/components/p-ByX6QP-E.js.map +0 -1
  133. package/dist/components/p-C61RS5xJ.js +0 -40
  134. package/dist/components/p-C61RS5xJ.js.map +0 -1
  135. package/dist/components/p-CLe0s2gK.js +0 -40
  136. package/dist/components/p-CLe0s2gK.js.map +0 -1
  137. package/dist/components/p-CQxP2hZl.js +0 -414
  138. package/dist/components/p-CQxP2hZl.js.map +0 -1
  139. package/dist/components/p-CU_Hozfq.js.map +0 -1
  140. package/dist/components/p-Cfy4oCWb.js +0 -1909
  141. package/dist/components/p-Cfy4oCWb.js.map +0 -1
  142. package/dist/components/p-Cgchl6bA.js +0 -47
  143. package/dist/components/p-Cgchl6bA.js.map +0 -1
  144. package/dist/components/p-Cqkh0K8d.js +0 -50
  145. package/dist/components/p-Cqkh0K8d.js.map +0 -1
  146. package/dist/components/p-D0KrIPIK.js +0 -40
  147. package/dist/components/p-D0KrIPIK.js.map +0 -1
  148. package/dist/components/p-DSHWNE3m.js +0 -102
  149. package/dist/components/p-DSHWNE3m.js.map +0 -1
  150. package/dist/components/p-DZAFvfH1.js +0 -40
  151. package/dist/components/p-DZAFvfH1.js.map +0 -1
  152. package/dist/components/p-DiLO6lb_.js +0 -15822
  153. package/dist/components/p-DiLO6lb_.js.map +0 -1
  154. package/dist/components/p-DwozqyC_.js +0 -40
  155. package/dist/components/p-DwozqyC_.js.map +0 -1
  156. package/dist/components/p-Mv9J4znK.js +0 -40
  157. package/dist/components/p-Mv9J4znK.js.map +0 -1
  158. package/dist/components/p-Sf357vTW.js +0 -188
  159. package/dist/components/p-Sf357vTW.js.map +0 -1
  160. package/dist/components/p-WmcSqXD8.js +0 -14
  161. package/dist/components/p-WmcSqXD8.js.map +0 -1
  162. package/dist/components/p-XKzdTp2a.js +0 -4423
  163. package/dist/components/p-XKzdTp2a.js.map +0 -1
  164. package/dist/components/p-j-vOrhhh.js +0 -114
  165. package/dist/components/p-j-vOrhhh.js.map +0 -1
  166. package/dist/components/p-q8auDIJ2.js +0 -138
  167. package/dist/components/p-q8auDIJ2.js.map +0 -1
  168. package/dist/components/polygon-buttons.js +0 -11
  169. package/dist/components/polygon-buttons.js.map +0 -1
  170. package/dist/components/polygon-information.js +0 -11
  171. package/dist/components/polygon-information.js.map +0 -1
  172. package/dist/components/search-icon.js +0 -11
  173. package/dist/components/search-icon.js.map +0 -1
  174. package/dist/components/settings-icon.js +0 -11
  175. package/dist/components/settings-icon.js.map +0 -1
  176. package/dist/components/settings-modal.js +0 -11
  177. package/dist/components/settings-modal.js.map +0 -1
  178. package/dist/components/solar-calculator.js +0 -246
  179. package/dist/components/solar-calculator.js.map +0 -1
  180. package/dist/components/solar-expert.js +0 -360
  181. package/dist/components/solar-expert.js.map +0 -1
  182. package/dist/components/solar-system-form.js +0 -11
  183. package/dist/components/solar-system-form.js.map +0 -1
  184. package/dist/components/tool-box.js +0 -11
  185. package/dist/components/tool-box.js.map +0 -1
  186. package/dist/components/undo-icon.js +0 -11
  187. package/dist/components/undo-icon.js.map +0 -1
  188. package/dist/index.cjs.js +0 -1
  189. package/dist/index.js +0 -1
  190. package/dist/stencil-library/api-CU_Hozfq.js.map +0 -1
  191. 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 +0 -1
  192. package/dist/stencil-library/p-6f2848a5.entry.js +0 -2
  193. package/dist/stencil-library/p-6f2848a5.entry.js.map +0 -1
  194. package/dist/stencil-library/p-B54Ul0nf.js +0 -2
  195. package/dist/stencil-library/p-B54Ul0nf.js.map +0 -1
  196. package/dist/stencil-library/p-B5WTRCh8.js +0 -2
  197. package/dist/stencil-library/p-B5WTRCh8.js.map +0 -1
  198. package/dist/stencil-library/p-BGoSj_DR.js +0 -2
  199. package/dist/stencil-library/p-BGoSj_DR.js.map +0 -1
  200. package/dist/stencil-library/p-Brw-XSJB.js +0 -2
  201. package/dist/stencil-library/p-Brw-XSJB.js.map +0 -1
  202. package/dist/stencil-library/p-ByX6QP-E.js +0 -2
  203. package/dist/stencil-library/p-ByX6QP-E.js.map +0 -1
  204. package/dist/stencil-library/p-CX8V3eiN.js +0 -2
  205. package/dist/stencil-library/p-CX8V3eiN.js.map +0 -1
  206. package/dist/stencil-library/p-Cgchl6bA.js +0 -2
  207. package/dist/stencil-library/p-Cgchl6bA.js.map +0 -1
  208. package/dist/stencil-library/p-DXlWibwG.js +0 -10
  209. package/dist/stencil-library/p-DXlWibwG.js.map +0 -1
  210. package/dist/stencil-library/p-LebgAmeq.js +0 -2
  211. package/dist/stencil-library/p-LebgAmeq.js.map +0 -1
  212. package/dist/stencil-library/p-WmcSqXD8.js +0 -2
  213. package/dist/stencil-library/p-WmcSqXD8.js.map +0 -1
  214. package/dist/stencil-library/p-X54eOLJv.js +0 -3
  215. package/dist/stencil-library/p-X54eOLJv.js.map +0 -1
  216. package/dist/stencil-library/p-af021538.entry.js +0 -2
  217. package/dist/stencil-library/p-af021538.entry.js.map +0 -1
  218. package/dist/stencil-library/p-bde0ce8e.entry.js +0 -32
  219. package/dist/stencil-library/p-bde0ce8e.entry.js.map +0 -1
  220. package/dist/stencil-library/p-j-vOrhhh.js +0 -2
  221. package/dist/stencil-library/p-j-vOrhhh.js.map +0 -1
  222. package/dist/stencil-library/p-q8auDIJ2.js +0 -2
  223. package/dist/stencil-library/p-q8auDIJ2.js.map +0 -1
@@ -1,114 +0,0 @@
1
-
2
- if (typeof global === "undefined") { var global = globalThis || window || self; }
3
- function decodeRowAcc(row, stride) {
4
- let length = row.length - stride;
5
- let offset = 0;
6
- do {
7
- for (let i = stride; i > 0; i--) {
8
- row[offset + stride] += row[offset];
9
- offset++;
10
- }
11
-
12
- length -= stride;
13
- } while (length > 0);
14
- }
15
-
16
- function decodeRowFloatingPoint(row, stride, bytesPerSample) {
17
- let index = 0;
18
- let count = row.length;
19
- const wc = count / bytesPerSample;
20
-
21
- while (count > stride) {
22
- for (let i = stride; i > 0; --i) {
23
- row[index + stride] += row[index];
24
- ++index;
25
- }
26
- count -= stride;
27
- }
28
-
29
- const copy = row.slice();
30
- for (let i = 0; i < wc; ++i) {
31
- for (let b = 0; b < bytesPerSample; ++b) {
32
- row[(bytesPerSample * i) + b] = copy[((bytesPerSample - b - 1) * wc) + i];
33
- }
34
- }
35
- }
36
-
37
- function applyPredictor(block, predictor, width, height, bitsPerSample,
38
- planarConfiguration) {
39
- if (predictor === 1) {
40
- return block;
41
- }
42
-
43
- for (let i = 0; i < bitsPerSample.length; ++i) {
44
- if (bitsPerSample[i] % 8 !== 0) {
45
- throw new Error('When decoding with predictor, only multiple of 8 bits are supported.');
46
- }
47
- if (bitsPerSample[i] !== bitsPerSample[0]) {
48
- throw new Error('When decoding with predictor, all samples must have the same size.');
49
- }
50
- }
51
-
52
- const bytesPerSample = bitsPerSample[0] / 8;
53
- const stride = planarConfiguration === 2 ? 1 : bitsPerSample.length;
54
-
55
- for (let i = 0; i < height; ++i) {
56
- // Last strip will be truncated if height % stripHeight != 0
57
- if (i * stride * width * bytesPerSample >= block.byteLength) {
58
- break;
59
- }
60
- let row;
61
- if (predictor === 2) { // horizontal prediction
62
- switch (bitsPerSample[0]) {
63
- case 8:
64
- row = new Uint8Array(
65
- block, i * stride * width * bytesPerSample, stride * width * bytesPerSample,
66
- );
67
- break;
68
- case 16:
69
- row = new Uint16Array(
70
- block, i * stride * width * bytesPerSample, stride * width * bytesPerSample / 2,
71
- );
72
- break;
73
- case 32:
74
- row = new Uint32Array(
75
- block, i * stride * width * bytesPerSample, stride * width * bytesPerSample / 4,
76
- );
77
- break;
78
- default:
79
- throw new Error(`Predictor 2 not allowed with ${bitsPerSample[0]} bits per sample.`);
80
- }
81
- decodeRowAcc(row, stride);
82
- } else if (predictor === 3) { // horizontal floating point
83
- row = new Uint8Array(
84
- block, i * stride * width * bytesPerSample, stride * width * bytesPerSample,
85
- );
86
- decodeRowFloatingPoint(row, stride, bytesPerSample);
87
- }
88
- }
89
- return block;
90
- }
91
-
92
- class BaseDecoder {
93
- async decode(fileDirectory, buffer) {
94
- const decoded = await this.decodeBlock(buffer);
95
- const predictor = fileDirectory.Predictor || 1;
96
- if (predictor !== 1) {
97
- const isTiled = !fileDirectory.StripOffsets;
98
- const tileWidth = isTiled ? fileDirectory.TileWidth : fileDirectory.ImageWidth;
99
- const tileHeight = isTiled ? fileDirectory.TileLength : (
100
- fileDirectory.RowsPerStrip || fileDirectory.ImageLength
101
- );
102
- return applyPredictor(
103
- decoded, predictor, tileWidth, tileHeight, fileDirectory.BitsPerSample,
104
- fileDirectory.PlanarConfiguration,
105
- );
106
- }
107
- return decoded;
108
- }
109
- }
110
-
111
- export { BaseDecoder as B };
112
- //# sourceMappingURL=p-j-vOrhhh.js.map
113
-
114
- //# sourceMappingURL=p-j-vOrhhh.js.map
@@ -1 +0,0 @@
1
- {"file":"p-j-vOrhhh.js","mappings":";;AAAA,SAAS,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE;AACnC,EAAE,IAAI,MAAM,GAAG,GAAG,CAAC,MAAM,GAAG,MAAM;AAClC,EAAE,IAAI,MAAM,GAAG,CAAC;AAChB,EAAE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;AAC3D,QAAQ,aAAa,CAAC,YAAY,IAAI,aAAa,CAAC;AACpD,OAAO;AACP,MAAM,OAAO,cAAc;AAC3B,QAAQ,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,CAAC,aAAa;AAC9E,QAAQ,aAAa,CAAC,mBAAmB;AACzC,OAAO;AACP;AACA,IAAI,OAAO,OAAO;AAClB;AACA;;;;","names":[],"sources":["../../node_modules/geotiff/dist-module/predictor.js","../../node_modules/geotiff/dist-module/compression/basedecoder.js"],"sourcesContent":["function decodeRowAcc(row, stride) {\n let length = row.length - stride;\n let offset = 0;\n do {\n for (let i = stride; i > 0; i--) {\n row[offset + stride] += row[offset];\n offset++;\n }\n\n length -= stride;\n } while (length > 0);\n}\n\nfunction decodeRowFloatingPoint(row, stride, bytesPerSample) {\n let index = 0;\n let count = row.length;\n const wc = count / bytesPerSample;\n\n while (count > stride) {\n for (let i = stride; i > 0; --i) {\n row[index + stride] += row[index];\n ++index;\n }\n count -= stride;\n }\n\n const copy = row.slice();\n for (let i = 0; i < wc; ++i) {\n for (let b = 0; b < bytesPerSample; ++b) {\n row[(bytesPerSample * i) + b] = copy[((bytesPerSample - b - 1) * wc) + i];\n }\n }\n}\n\nexport function applyPredictor(block, predictor, width, height, bitsPerSample,\n planarConfiguration) {\n if (!predictor || predictor === 1) {\n return block;\n }\n\n for (let i = 0; i < bitsPerSample.length; ++i) {\n if (bitsPerSample[i] % 8 !== 0) {\n throw new Error('When decoding with predictor, only multiple of 8 bits are supported.');\n }\n if (bitsPerSample[i] !== bitsPerSample[0]) {\n throw new Error('When decoding with predictor, all samples must have the same size.');\n }\n }\n\n const bytesPerSample = bitsPerSample[0] / 8;\n const stride = planarConfiguration === 2 ? 1 : bitsPerSample.length;\n\n for (let i = 0; i < height; ++i) {\n // Last strip will be truncated if height % stripHeight != 0\n if (i * stride * width * bytesPerSample >= block.byteLength) {\n break;\n }\n let row;\n if (predictor === 2) { // horizontal prediction\n switch (bitsPerSample[0]) {\n case 8:\n row = new Uint8Array(\n block, i * stride * width * bytesPerSample, stride * width * bytesPerSample,\n );\n break;\n case 16:\n row = new Uint16Array(\n block, i * stride * width * bytesPerSample, stride * width * bytesPerSample / 2,\n );\n break;\n case 32:\n row = new Uint32Array(\n block, i * stride * width * bytesPerSample, stride * width * bytesPerSample / 4,\n );\n break;\n default:\n throw new Error(`Predictor 2 not allowed with ${bitsPerSample[0]} bits per sample.`);\n }\n decodeRowAcc(row, stride, bytesPerSample);\n } else if (predictor === 3) { // horizontal floating point\n row = new Uint8Array(\n block, i * stride * width * bytesPerSample, stride * width * bytesPerSample,\n );\n decodeRowFloatingPoint(row, stride, bytesPerSample);\n }\n }\n return block;\n}\n","import { applyPredictor } from '../predictor.js';\n\nexport default class BaseDecoder {\n async decode(fileDirectory, buffer) {\n const decoded = await this.decodeBlock(buffer);\n const predictor = fileDirectory.Predictor || 1;\n if (predictor !== 1) {\n const isTiled = !fileDirectory.StripOffsets;\n const tileWidth = isTiled ? fileDirectory.TileWidth : fileDirectory.ImageWidth;\n const tileHeight = isTiled ? fileDirectory.TileLength : (\n fileDirectory.RowsPerStrip || fileDirectory.ImageLength\n );\n return applyPredictor(\n decoded, predictor, tileWidth, tileHeight, fileDirectory.BitsPerSample,\n fileDirectory.PlanarConfiguration,\n );\n }\n return decoded;\n }\n}\n"],"version":3}
@@ -1,138 +0,0 @@
1
-
2
- if (typeof global === "undefined") { var global = globalThis || window || self; }
3
- import { B as BaseDecoder } from './p-j-vOrhhh.js';
4
-
5
- const MIN_BITS = 9;
6
- const CLEAR_CODE = 256; // clear code
7
- const EOI_CODE = 257; // end of information
8
- const MAX_BYTELENGTH = 12;
9
-
10
- function getByte(array, position, length) {
11
- const d = position % 8;
12
- const a = Math.floor(position / 8);
13
- const de = 8 - d;
14
- const ef = (position + length) - ((a + 1) * 8);
15
- let fg = (8 * (a + 2)) - (position + length);
16
- const dg = ((a + 2) * 8) - position;
17
- fg = Math.max(0, fg);
18
- if (a >= array.length) {
19
- console.warn('ran off the end of the buffer before finding EOI_CODE (end on input code)');
20
- return EOI_CODE;
21
- }
22
- let chunk1 = array[a] & ((2 ** (8 - d)) - 1);
23
- chunk1 <<= (length - de);
24
- let chunks = chunk1;
25
- if (a + 1 < array.length) {
26
- let chunk2 = array[a + 1] >>> fg;
27
- chunk2 <<= Math.max(0, (length - dg));
28
- chunks += chunk2;
29
- }
30
- if (ef > 8 && a + 2 < array.length) {
31
- const hi = ((a + 3) * 8) - (position + length);
32
- const chunk3 = array[a + 2] >>> hi;
33
- chunks += chunk3;
34
- }
35
- return chunks;
36
- }
37
-
38
- function appendReversed(dest, source) {
39
- for (let i = source.length - 1; i >= 0; i--) {
40
- dest.push(source[i]);
41
- }
42
- return dest;
43
- }
44
-
45
- function decompress(input) {
46
- const dictionaryIndex = new Uint16Array(4093);
47
- const dictionaryChar = new Uint8Array(4093);
48
- for (let i = 0; i <= 257; i++) {
49
- dictionaryIndex[i] = 4096;
50
- dictionaryChar[i] = i;
51
- }
52
- let dictionaryLength = 258;
53
- let byteLength = MIN_BITS;
54
- let position = 0;
55
-
56
- function initDictionary() {
57
- dictionaryLength = 258;
58
- byteLength = MIN_BITS;
59
- }
60
- function getNext(array) {
61
- const byte = getByte(array, position, byteLength);
62
- position += byteLength;
63
- return byte;
64
- }
65
- function addToDictionary(i, c) {
66
- dictionaryChar[dictionaryLength] = c;
67
- dictionaryIndex[dictionaryLength] = i;
68
- dictionaryLength++;
69
- return dictionaryLength - 1;
70
- }
71
- function getDictionaryReversed(n) {
72
- const rev = [];
73
- for (let i = n; i !== 4096; i = dictionaryIndex[i]) {
74
- rev.push(dictionaryChar[i]);
75
- }
76
- return rev;
77
- }
78
-
79
- const result = [];
80
- initDictionary();
81
- const array = new Uint8Array(input);
82
- let code = getNext(array);
83
- let oldCode;
84
- while (code !== EOI_CODE) {
85
- if (code === CLEAR_CODE) {
86
- initDictionary();
87
- code = getNext(array);
88
- while (code === CLEAR_CODE) {
89
- code = getNext(array);
90
- }
91
-
92
- if (code === EOI_CODE) {
93
- break;
94
- } else if (code > CLEAR_CODE) {
95
- throw new Error(`corrupted code at scanline ${code}`);
96
- } else {
97
- const val = getDictionaryReversed(code);
98
- appendReversed(result, val);
99
- oldCode = code;
100
- }
101
- } else if (code < dictionaryLength) {
102
- const val = getDictionaryReversed(code);
103
- appendReversed(result, val);
104
- addToDictionary(oldCode, val[val.length - 1]);
105
- oldCode = code;
106
- } else {
107
- const oldVal = getDictionaryReversed(oldCode);
108
- if (!oldVal) {
109
- throw new Error(`Bogus entry. Not in dictionary, ${oldCode} / ${dictionaryLength}, position: ${position}`);
110
- }
111
- appendReversed(result, oldVal);
112
- result.push(oldVal[oldVal.length - 1]);
113
- addToDictionary(oldCode, oldVal[oldVal.length - 1]);
114
- oldCode = code;
115
- }
116
-
117
- if (dictionaryLength + 1 >= (2 ** byteLength)) {
118
- if (byteLength === MAX_BYTELENGTH) {
119
- oldCode = undefined;
120
- } else {
121
- byteLength++;
122
- }
123
- }
124
- code = getNext(array);
125
- }
126
- return new Uint8Array(result);
127
- }
128
-
129
- class LZWDecoder extends BaseDecoder {
130
- decodeBlock(buffer) {
131
- return decompress(buffer).buffer;
132
- }
133
- }
134
-
135
- export { LZWDecoder as default };
136
- //# sourceMappingURL=p-q8auDIJ2.js.map
137
-
138
- //# sourceMappingURL=p-q8auDIJ2.js.map
@@ -1 +0,0 @@
1
- {"file":"p-q8auDIJ2.js","mappings":";;;;AAEA,MAAM,QAAQ,GAAG,CAAC;AAClB,MAAM,UAAU,GAAG,GAAG,CAAC;AACvB,MAAM,QAAQ,GAAG,GAAG,CAAC;AACrB,MAAM,cAAc,GAAG,EAAE;;AAEzB,SAAS,OAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE;AAC1C,EAAE,MAAM,CAAC,GAAG,QAAQ,GAAG,CAAC;AACxB,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC;AAC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AAM;AAC3C;AACA;;;;","names":[],"sources":["../../node_modules/geotiff/dist-module/compression/lzw.js"],"sourcesContent":["import BaseDecoder from './basedecoder.js';\n\nconst MIN_BITS = 9;\nconst CLEAR_CODE = 256; // clear code\nconst EOI_CODE = 257; // end of information\nconst MAX_BYTELENGTH = 12;\n\nfunction getByte(array, position, length) {\n const d = position % 8;\n const a = Math.floor(position / 8);\n const de = 8 - d;\n const ef = (position + length) - ((a + 1) * 8);\n let fg = (8 * (a + 2)) - (position + length);\n const dg = ((a + 2) * 8) - position;\n fg = Math.max(0, fg);\n if (a >= array.length) {\n console.warn('ran off the end of the buffer before finding EOI_CODE (end on input code)');\n return EOI_CODE;\n }\n let chunk1 = array[a] & ((2 ** (8 - d)) - 1);\n chunk1 <<= (length - de);\n let chunks = chunk1;\n if (a + 1 < array.length) {\n let chunk2 = array[a + 1] >>> fg;\n chunk2 <<= Math.max(0, (length - dg));\n chunks += chunk2;\n }\n if (ef > 8 && a + 2 < array.length) {\n const hi = ((a + 3) * 8) - (position + length);\n const chunk3 = array[a + 2] >>> hi;\n chunks += chunk3;\n }\n return chunks;\n}\n\nfunction appendReversed(dest, source) {\n for (let i = source.length - 1; i >= 0; i--) {\n dest.push(source[i]);\n }\n return dest;\n}\n\nfunction decompress(input) {\n const dictionaryIndex = new Uint16Array(4093);\n const dictionaryChar = new Uint8Array(4093);\n for (let i = 0; i <= 257; i++) {\n dictionaryIndex[i] = 4096;\n dictionaryChar[i] = i;\n }\n let dictionaryLength = 258;\n let byteLength = MIN_BITS;\n let position = 0;\n\n function initDictionary() {\n dictionaryLength = 258;\n byteLength = MIN_BITS;\n }\n function getNext(array) {\n const byte = getByte(array, position, byteLength);\n position += byteLength;\n return byte;\n }\n function addToDictionary(i, c) {\n dictionaryChar[dictionaryLength] = c;\n dictionaryIndex[dictionaryLength] = i;\n dictionaryLength++;\n return dictionaryLength - 1;\n }\n function getDictionaryReversed(n) {\n const rev = [];\n for (let i = n; i !== 4096; i = dictionaryIndex[i]) {\n rev.push(dictionaryChar[i]);\n }\n return rev;\n }\n\n const result = [];\n initDictionary();\n const array = new Uint8Array(input);\n let code = getNext(array);\n let oldCode;\n while (code !== EOI_CODE) {\n if (code === CLEAR_CODE) {\n initDictionary();\n code = getNext(array);\n while (code === CLEAR_CODE) {\n code = getNext(array);\n }\n\n if (code === EOI_CODE) {\n break;\n } else if (code > CLEAR_CODE) {\n throw new Error(`corrupted code at scanline ${code}`);\n } else {\n const val = getDictionaryReversed(code);\n appendReversed(result, val);\n oldCode = code;\n }\n } else if (code < dictionaryLength) {\n const val = getDictionaryReversed(code);\n appendReversed(result, val);\n addToDictionary(oldCode, val[val.length - 1]);\n oldCode = code;\n } else {\n const oldVal = getDictionaryReversed(oldCode);\n if (!oldVal) {\n throw new Error(`Bogus entry. Not in dictionary, ${oldCode} / ${dictionaryLength}, position: ${position}`);\n }\n appendReversed(result, oldVal);\n result.push(oldVal[oldVal.length - 1]);\n addToDictionary(oldCode, oldVal[oldVal.length - 1]);\n oldCode = code;\n }\n\n if (dictionaryLength + 1 >= (2 ** byteLength)) {\n if (byteLength === MAX_BYTELENGTH) {\n oldCode = undefined;\n } else {\n byteLength++;\n }\n }\n code = getNext(array);\n }\n return new Uint8Array(result);\n}\n\nexport default class LZWDecoder extends BaseDecoder {\n decodeBlock(buffer) {\n return decompress(buffer, false).buffer;\n }\n}\n"],"version":3}
@@ -1,11 +0,0 @@
1
-
2
- if (typeof global === "undefined") { var global = globalThis || window || self; }
3
- import { P as PolygonButtons$1, d as defineCustomElement$1 } from './p-Cqkh0K8d.js';
4
-
5
- const PolygonButtons = PolygonButtons$1;
6
- const defineCustomElement = defineCustomElement$1;
7
-
8
- export { PolygonButtons, defineCustomElement };
9
- //# sourceMappingURL=polygon-buttons.js.map
10
-
11
- //# sourceMappingURL=polygon-buttons.js.map
@@ -1 +0,0 @@
1
- {"file":"polygon-buttons.js","mappings":";;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -1,11 +0,0 @@
1
-
2
- if (typeof global === "undefined") { var global = globalThis || window || self; }
3
- import { P as PolygonInformation$1, d as defineCustomElement$1 } from './p-DSHWNE3m.js';
4
-
5
- const PolygonInformation = PolygonInformation$1;
6
- const defineCustomElement = defineCustomElement$1;
7
-
8
- export { PolygonInformation, defineCustomElement };
9
- //# sourceMappingURL=polygon-information.js.map
10
-
11
- //# sourceMappingURL=polygon-information.js.map
@@ -1 +0,0 @@
1
- {"file":"polygon-information.js","mappings":";;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -1,11 +0,0 @@
1
-
2
- if (typeof global === "undefined") { var global = globalThis || window || self; }
3
- import { S as SearchIcon$1, d as defineCustomElement$1 } from './p-B-Rps0Lf.js';
4
-
5
- const SearchIcon = SearchIcon$1;
6
- const defineCustomElement = defineCustomElement$1;
7
-
8
- export { SearchIcon, defineCustomElement };
9
- //# sourceMappingURL=search-icon.js.map
10
-
11
- //# sourceMappingURL=search-icon.js.map
@@ -1 +0,0 @@
1
- {"file":"search-icon.js","mappings":";;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -1,11 +0,0 @@
1
-
2
- if (typeof global === "undefined") { var global = globalThis || window || self; }
3
- import { S as SettingsIcon$1, d as defineCustomElement$1 } from './p-CLe0s2gK.js';
4
-
5
- const SettingsIcon = SettingsIcon$1;
6
- const defineCustomElement = defineCustomElement$1;
7
-
8
- export { SettingsIcon, defineCustomElement };
9
- //# sourceMappingURL=settings-icon.js.map
10
-
11
- //# sourceMappingURL=settings-icon.js.map
@@ -1 +0,0 @@
1
- {"file":"settings-icon.js","mappings":";;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -1,11 +0,0 @@
1
-
2
- if (typeof global === "undefined") { var global = globalThis || window || self; }
3
- import { S as SettingsModal$1, d as defineCustomElement$1 } from './p-0Ymx0I1T.js';
4
-
5
- const SettingsModal = SettingsModal$1;
6
- const defineCustomElement = defineCustomElement$1;
7
-
8
- export { SettingsModal, defineCustomElement };
9
- //# sourceMappingURL=settings-modal.js.map
10
-
11
- //# sourceMappingURL=settings-modal.js.map
@@ -1 +0,0 @@
1
- {"file":"settings-modal.js","mappings":";;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -1,246 +0,0 @@
1
-
2
- if (typeof global === "undefined") { var global = globalThis || window || self; }
3
- import { p as proxyCustomElement, H, E as Env, h } from './index.js';
4
- import { L as Loader } from './p-CQxP2hZl.js';
5
- import { f as fetchSolarData } from './p-CU_Hozfq.js';
6
-
7
- /**
8
- * @license lucide v0.509.0 - ISC
9
- *
10
- * This source code is licensed under the ISC license.
11
- * See the LICENSE file in the root directory of this source tree.
12
- */
13
-
14
- const defaultAttributes = {
15
- xmlns: "http://www.w3.org/2000/svg",
16
- width: 24,
17
- height: 24,
18
- viewBox: "0 0 24 24",
19
- fill: "none",
20
- stroke: "currentColor",
21
- "stroke-width": 2,
22
- "stroke-linecap": "round",
23
- "stroke-linejoin": "round"
24
- };
25
-
26
- /**
27
- * @license lucide v0.509.0 - ISC
28
- *
29
- * This source code is licensed under the ISC license.
30
- * See the LICENSE file in the root directory of this source tree.
31
- */
32
-
33
-
34
- const createSVGElement = ([tag, attrs, children]) => {
35
- const element = document.createElementNS("http://www.w3.org/2000/svg", tag);
36
- Object.keys(attrs).forEach((name) => {
37
- element.setAttribute(name, String(attrs[name]));
38
- });
39
- if (children?.length) {
40
- children.forEach((child) => {
41
- const childElement = createSVGElement(child);
42
- element.appendChild(childElement);
43
- });
44
- }
45
- return element;
46
- };
47
- const createElement = (iconNode, customAttrs = {}) => {
48
- const tag = "svg";
49
- const attrs = {
50
- ...defaultAttributes,
51
- ...customAttrs
52
- };
53
- return createSVGElement([tag, attrs, iconNode]);
54
- };
55
-
56
- /**
57
- * @license lucide v0.509.0 - ISC
58
- *
59
- * This source code is licensed under the ISC license.
60
- * See the LICENSE file in the root directory of this source tree.
61
- */
62
-
63
-
64
- const getAttrs = (element) => Array.from(element.attributes).reduce((attrs, attr) => {
65
- attrs[attr.name] = attr.value;
66
- return attrs;
67
- }, {});
68
- const getClassNames = (attrs) => {
69
- if (typeof attrs === "string") return attrs;
70
- if (!attrs || !attrs.class) return "";
71
- if (attrs.class && typeof attrs.class === "string") {
72
- return attrs.class.split(" ");
73
- }
74
- if (attrs.class && Array.isArray(attrs.class)) {
75
- return attrs.class;
76
- }
77
- return "";
78
- };
79
- const combineClassNames = (arrayOfClassnames) => {
80
- const classNameArray = arrayOfClassnames.flatMap(getClassNames);
81
- return classNameArray.map((classItem) => classItem.trim()).filter(Boolean).filter((value, index, self) => self.indexOf(value) === index).join(" ");
82
- };
83
- const toPascalCase = (string) => string.replace(/(\w)(\w*)(_|-|\s*)/g, (g0, g1, g2) => g1.toUpperCase() + g2.toLowerCase());
84
- const replaceElement = (element, { nameAttr, icons, attrs }) => {
85
- const iconName = element.getAttribute(nameAttr);
86
- if (iconName == null) return;
87
- const ComponentName = toPascalCase(iconName);
88
- const iconNode = icons[ComponentName];
89
- if (!iconNode) {
90
- return console.warn(
91
- `${element.outerHTML} icon name was not found in the provided icons object.`
92
- );
93
- }
94
- const elementAttrs = getAttrs(element);
95
- const iconAttrs = {
96
- ...defaultAttributes,
97
- "data-lucide": iconName,
98
- ...attrs,
99
- ...elementAttrs
100
- };
101
- const classNames = combineClassNames(["lucide", `lucide-${iconName}`, elementAttrs, attrs]);
102
- if (classNames) {
103
- Object.assign(iconAttrs, {
104
- class: classNames
105
- });
106
- }
107
- const svgElement = createElement(iconNode, iconAttrs);
108
- return element.parentNode?.replaceChild(svgElement, element);
109
- };
110
-
111
- /**
112
- * @license lucide v0.509.0 - ISC
113
- *
114
- * This source code is licensed under the ISC license.
115
- * See the LICENSE file in the root directory of this source tree.
116
- */
117
-
118
- const Search = [
119
- ["path", { d: "m21 21-4.34-4.34" }],
120
- ["circle", { cx: "11", cy: "11", r: "8" }]
121
- ];
122
-
123
- /**
124
- * @license lucide v0.509.0 - ISC
125
- *
126
- * This source code is licensed under the ISC license.
127
- * See the LICENSE file in the root directory of this source tree.
128
- */
129
-
130
-
131
- const createIcons = ({ icons = {}, nameAttr = "data-lucide", attrs = {} } = {}) => {
132
- if (!Object.values(icons).length) {
133
- throw new Error(
134
- "Please provide an icons object.\nIf you want to use all the icons you can import it like:\n `import { createIcons, icons } from 'lucide';\nlucide.createIcons({icons});`"
135
- );
136
- }
137
- if (typeof document === "undefined") {
138
- throw new Error("`createIcons()` only works in a browser environment.");
139
- }
140
- const elementsToReplace = document.querySelectorAll(`[${nameAttr}]`);
141
- Array.from(elementsToReplace).forEach(
142
- (element) => replaceElement(element, { nameAttr, icons, attrs })
143
- );
144
- if (nameAttr === "data-lucide") {
145
- const deprecatedElements = document.querySelectorAll("[icon-name]");
146
- if (deprecatedElements.length > 0) {
147
- console.warn(
148
- "[Lucide] Some icons were found with the now deprecated icon-name attribute. These will still be replaced for backwards compatibility, but will no longer be supported in v1.0 and you should switch to data-lucide"
149
- );
150
- Array.from(deprecatedElements).forEach(
151
- (element) => replaceElement(element, { nameAttr: "icon-name", icons, attrs })
152
- );
153
- }
154
- }
155
- };
156
-
157
- const outputCss = "/*! tailwindcss v4.1.11 | 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-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-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 {\n top: calc(var(--spacing) * 1);\n }\n .top-1\\/2 {\n top: calc(1/2 * 100%);\n }\n .left-0 {\n left: calc(var(--spacing) * 0);\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-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 .table {\n display: table;\n }\n .h-4 {\n height: calc(var(--spacing) * 4);\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-16 {\n width: calc(var(--spacing) * 16);\n }\n .w-20 {\n width: calc(var(--spacing) * 20);\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 .border-collapse {\n border-collapse: collapse;\n }\n .-translate-y-1 {\n --tw-translate-y: calc(var(--spacing) * -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 .resize {\n resize: both;\n }\n .appearance-none {\n appearance: none;\n }\n .grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n .grid-rows-2 {\n grid-template-rows: repeat(2, 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-3 {\n :where(& > :not(:last-child)) {\n --tw-space-y-reverse: 0;\n margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));\n margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));\n }\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 .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-secondary {\n border-color: var(--color-secondary);\n }\n .bg-black {\n background-color: var(--color-black);\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-3 {\n padding-inline: calc(var(--spacing) * 3);\n }\n .px-4 {\n padding-inline: calc(var(--spacing) * 4);\n }\n .py-1 {\n padding-block: calc(var(--spacing) * 1);\n }\n .py-2 {\n padding-block: 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-left {\n text-align: left;\n }\n .text-right {\n text-align: right;\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-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-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 .underline {\n text-decoration-line: underline;\n }\n .accent-tertiary {\n accent-color: var(--color-tertiary);\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 .outline {\n outline-style: var(--tw-outline-style);\n outline-width: 1px;\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 .duration-200 {\n --tw-duration: 200ms;\n transition-duration: 200ms;\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 .sm\\:flex-row {\n @media (width >= 40rem) {\n flex-direction: row;\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-outline-style {\n syntax: \"*\";\n inherits: false;\n initial-value: solid;\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-outline-style: solid;\n --tw-duration: initial;\n }\n }\n}\n";
158
-
159
- const SolarCalculator$1 = /*@__PURE__*/ proxyCustomElement(class SolarCalculator extends H {
160
- constructor() {
161
- super();
162
- this.__registerHost();
163
- }
164
- apiKey = Env.GOOGLE_MAPS_API_KEY;
165
- buildingInsights;
166
- isLoaded = false;
167
- autocomplete = null;
168
- place = null;
169
- inputElement;
170
- componentWillLoad() {
171
- this.loadGoogleMapsScript();
172
- }
173
- componentDidLoad() {
174
- createIcons({
175
- icons: {
176
- Search,
177
- },
178
- nameAttr: "data-lucide",
179
- });
180
- }
181
- async getBuildingInsights() {
182
- if (!this.place) {
183
- return;
184
- }
185
- this.buildingInsights = await fetchSolarData(this.place.geometry.location.lat(), this.place.geometry.location.lng(), this.apiKey);
186
- if (!this.buildingInsights) {
187
- alert("No building insights found. Please enter them manually.");
188
- }
189
- }
190
- async loadGoogleMapsScript() {
191
- try {
192
- const loader = new Loader({
193
- apiKey: this.apiKey,
194
- libraries: ["places"],
195
- });
196
- const places = await loader.importLibrary("places");
197
- this.isLoaded = true;
198
- this.initializeAutocomplete(places);
199
- }
200
- catch (error) {
201
- console.error("Error loading Google Maps:", error);
202
- }
203
- }
204
- initializeAutocomplete(places) {
205
- if (!this.inputElement || !this.isLoaded)
206
- return;
207
- this.autocomplete = new places.Autocomplete(this.inputElement);
208
- this.autocomplete.addListener("place_changed", () => {
209
- const place = this.autocomplete?.getPlace();
210
- this.place = place;
211
- this.getBuildingInsights();
212
- });
213
- }
214
- render() {
215
- return (h("div", { key: 'ab9d770b7f8c1f71a3e90cdd3e67455a04730382', class: "flex flex-col w-full h-full p-3" }, h("div", { key: '07473bbc507fad1fb2f5aa8a2a37abf6555ca7ea', class: "pb-3" }, h("div", { key: 'c67e14da7d23c43f496b3ee8c3f0a2cde456698b', class: "relative" }, h("i", { key: '9a9d2c88a88e03be69ab00cc3e5a22c61427b6a6', "data-lucide": "search", class: "absolute left-3 top-1/2 transform -translate-y-1/2 text-text-placeholder " }), h("input", { key: '68b4df2cce121de4c684d446f944d40f5382f9cb', 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: '4aa25e04a4b1f0bc773c429bbacfe034cb921b14' }, "buildingInsights", h("div", { key: 'cc5368aa0722f15fe681cd5b73fa6a1d8ff4898a' }, JSON.stringify(this.buildingInsights))))));
216
- }
217
- static get style() { return outputCss; }
218
- }, [0, "solar-calculator", {
219
- "apiKey": [1, "api-key"],
220
- "buildingInsights": [32],
221
- "isLoaded": [32],
222
- "autocomplete": [32],
223
- "place": [32]
224
- }]);
225
- function defineCustomElement$1() {
226
- if (typeof customElements === "undefined") {
227
- return;
228
- }
229
- const components = ["solar-calculator"];
230
- components.forEach(tagName => { switch (tagName) {
231
- case "solar-calculator":
232
- if (!customElements.get(tagName)) {
233
- customElements.define(tagName, SolarCalculator$1);
234
- }
235
- break;
236
- } });
237
- }
238
- defineCustomElement$1();
239
-
240
- const SolarCalculator = SolarCalculator$1;
241
- const defineCustomElement = defineCustomElement$1;
242
-
243
- export { SolarCalculator, defineCustomElement };
244
- //# sourceMappingURL=solar-calculator.js.map
245
-
246
- //# sourceMappingURL=solar-calculator.js.map