blue-chestnut-solar-expert 0.0.68 → 0.0.70

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 (57) hide show
  1. package/dist/stencil-library/{decoder-DNOvLSaS.js → decoder-CuK4bYyT.js} +3 -3
  2. package/dist/stencil-library/{decoder-DNOvLSaS.js.map → decoder-CuK4bYyT.js.map} +1 -1
  3. package/dist/stencil-library/decoder-DO85tL09.js +39 -0
  4. package/dist/stencil-library/decoder-DO85tL09.js.map +1 -0
  5. package/dist/stencil-library/{deflate-0Vdd6-55.js → deflate-B_19Wwe5.js} +3 -3
  6. package/dist/stencil-library/{deflate-0Vdd6-55.js.map → deflate-B_19Wwe5.js.map} +1 -1
  7. package/dist/stencil-library/deflate-BnZRAamW.js +21 -0
  8. package/dist/stencil-library/deflate-BnZRAamW.js.map +1 -0
  9. package/dist/stencil-library/{jpeg-Dd5nnHR5.js → jpeg-BYwBjmYM.js} +3 -3
  10. package/dist/stencil-library/{jpeg-Dd5nnHR5.js.map → jpeg-BYwBjmYM.js.map} +1 -1
  11. package/dist/stencil-library/jpeg-Carqigwf.js +910 -0
  12. package/dist/stencil-library/jpeg-Carqigwf.js.map +1 -0
  13. package/dist/stencil-library/{lerc-7W4E8EBs.js → lerc-BrKFrpOl.js} +3 -3
  14. package/dist/stencil-library/{lerc-7W4E8EBs.js.map → lerc-BrKFrpOl.js.map} +1 -1
  15. package/dist/stencil-library/lerc-C23gVCZY.js +2469 -0
  16. package/dist/stencil-library/lerc-C23gVCZY.js.map +1 -0
  17. package/dist/stencil-library/loading-widget.entry.js +1 -1
  18. package/dist/stencil-library/{lzw--P4c0ZHH.js → lzw-Cv4Jzqw8.js} +3 -3
  19. package/dist/stencil-library/{lzw--P4c0ZHH.js.map → lzw-Cv4Jzqw8.js.map} +1 -1
  20. package/dist/stencil-library/lzw-CyjveJk_.js +144 -0
  21. package/dist/stencil-library/lzw-CyjveJk_.js.map +1 -0
  22. package/dist/stencil-library/{map-draw-Cx9WZoKH.js → map-draw-I6HehGjN.js} +20 -20
  23. package/dist/stencil-library/map-draw-I6HehGjN.js.map +1 -0
  24. package/dist/stencil-library/map-draw-s4wyOrpW.js +25568 -0
  25. package/dist/stencil-library/{map-draw-Cx9WZoKH.js.map → map-draw-s4wyOrpW.js.map} +1 -1
  26. package/dist/stencil-library/map-draw.entry.js +1 -1
  27. package/dist/stencil-library/map-selector.entry.js +3 -3
  28. package/dist/stencil-library/{packbits-X3R_utTs.js → packbits-DYI_WQMn.js} +3 -3
  29. package/dist/stencil-library/{packbits-X3R_utTs.js.map → packbits-DYI_WQMn.js.map} +1 -1
  30. package/dist/stencil-library/packbits-DZ08I0fK.js +39 -0
  31. package/dist/stencil-library/packbits-DZ08I0fK.js.map +1 -0
  32. package/dist/stencil-library/polygon-buttons.entry.js +1 -1
  33. package/dist/stencil-library/polygon-information.entry.js +2 -2
  34. package/dist/stencil-library/{raw-BxukYehy.js → raw-DmgLt5Xw.js} +3 -3
  35. package/dist/stencil-library/{raw-BxukYehy.js.map → raw-DmgLt5Xw.js.map} +1 -1
  36. package/dist/stencil-library/raw-DxHWSwjD.js +20 -0
  37. package/dist/stencil-library/raw-DxHWSwjD.js.map +1 -0
  38. package/dist/stencil-library/settings-modal.entry.js +8 -8
  39. package/dist/stencil-library/solar-expert.entry.esm.js.map +1 -1
  40. package/dist/stencil-library/solar-expert.entry.js +3 -2
  41. package/dist/stencil-library/solar-expert.entry.js.map +1 -1
  42. package/dist/stencil-library/solar-system-form.entry.esm.js.map +1 -1
  43. package/dist/stencil-library/solar-system-form.entry.js +38 -36
  44. package/dist/stencil-library/solar-system-form.entry.js.map +1 -1
  45. package/dist/stencil-library/stencil-library.esm.js +1 -1
  46. package/dist/stencil-library/tool-box.entry.js +3 -3
  47. package/dist/stencil-library/tutorial-component.entry.js +3 -3
  48. package/dist/stencil-library/{webimage-CBrfoxHM.js → webimage-DjTbF9dC.js} +3 -3
  49. package/dist/stencil-library/{webimage-CBrfoxHM.js.map → webimage-DjTbF9dC.js.map} +1 -1
  50. package/dist/stencil-library/webimage-DpQLhKY4.js +53 -0
  51. package/dist/stencil-library/webimage-DpQLhKY4.js.map +1 -0
  52. package/dist/types/components/map-draw/map-draw.d.ts +1 -0
  53. package/dist/types/components/solar-expert/solar-expert.d.ts +1 -0
  54. package/dist/types/components/solar-system-form/solar-system-form.d.ts +1 -0
  55. package/dist/types/components.d.ts +6 -0
  56. package/dist/types/utils/api.d.ts +1 -0
  57. package/package.json +1 -1
@@ -46,7 +46,7 @@ var patchCloneNodeFix = (HTMLElementPrototype) => {
46
46
 
47
47
  patchBrowser().then(async (options) => {
48
48
  await globalScripts();
49
- return bootstrapLazy([["map-selector",[[0,"map-selector",{"apiKey":[1,"api-key"],"language":[1],"isLoaded":[32],"autocomplete":[32],"map":[32],"marker":[32],"circle":[32],"radius":[32],"latitude":[32],"longitude":[32],"isSatelliteMode":[32],"showAddressError":[32]}]]],["tool-box",[[0,"tool-box",{"currentTool":[16,"current-tool"],"undoCallback":[16,"undo-callback"],"onToolSelect":[16,"on-tool-select"]}]]],["polygon-buttons",[[0,"polygon-buttons",{"calculateSolarPanels":[16,"calculate-solar-panels"],"markAsFlatRoof":[16,"mark-as-flat-roof"],"currentTool":[1,"current-tool"]}]]],["polygon-information",[[0,"polygon-information",{"currentPolygon":[16,"current-polygon"],"numberOfPanels":[2,"number-of-panels"],"handleAzimuthChange":[16,"handle-azimuth-change"],"handlePitchChange":[16,"handle-pitch-change"],"calculateSolarPanels":[16,"calculate-solar-panels"],"markAsFlatRoof":[16,"mark-as-flat-roof"],"currentTool":[1,"current-tool"]}]]],["settings-modal",[[0,"settings-modal",{"settings":[16],"tempSettings":[32]}]]],["toast-notification",[[0,"toast-notification",{"message":[1],"type":[1],"duration":[2],"isVisible":[32],"isExiting":[32]}]]],["house-icon",[[0,"house-icon",{"inline":[4],"size":[2]}]]],["move-icon",[[0,"move-icon",{"inline":[4],"size":[2]}]]],["settings-icon",[[0,"settings-icon",{"inline":[4],"size":[2]}]]],["search-icon",[[0,"search-icon",{"inline":[4],"size":[2]}]]],["solar-expert",[[0,"solar-expert",{"apiKey":[1,"api-key"],"language":[1],"colorScheme":[16,"color-scheme"],"latitude":[32],"longitude":[32],"isLoaded":[32],"autocomplete":[32],"place":[32],"showMapSelector":[32]},null,{"colorScheme":["colorSchemeChanged"]}]]],["loading-widget",[[0,"loading-widget"]]],["solar-system-form",[[0,"solar-system-form",{"systemConfigs":[16,"system-configs"],"polygons":[16],"roofCanvas":[16,"roof-canvas"],"polygonCanvas":[16,"polygon-canvas"],"householdConsumption":[32],"consumptionProfile":[32],"electricityPrice":[32],"compensationRate":[32],"annualPriceIncrease":[32],"autonomy":[32],"costSavings":[32],"numberOfPanels":[32],"panelPeakPower":[32],"name":[32],"email":[32],"phone":[32],"nameError":[32],"emailError":[32],"phoneError":[32],"electricCar":[32],"electricCarChargingTime":[32],"heatPump":[32],"battery":[32],"batteryEnabled":[32],"compensation20Years":[32],"savedCosts20Years":[32],"maxPanels":[32],"kmDrivenPerYear":[32],"totalEnergyConsumption":[32],"totalEnergyProduction":[32],"isSubmitting":[32],"submitMessage":[32],"submitSuccess":[32]},null,{"systemConfigs":["updateSystemConfigs"]}]]],["tutorial-component",[[0,"tutorial-component",{"onClose":[16,"on-close"],"onSkip":[16,"on-skip"],"showSkipButton":[4,"show-skip-button"],"title":[1],"description":[1],"videoSource":[1,"video-source"],"isLoading":[32],"dotCount":[32],"isVideoPlaying":[32]}]]],["eraser-icon",[[0,"eraser-icon",{"inline":[4],"size":[2]}]]],["marker-icon",[[0,"marker-icon",{"inline":[4],"size":[2]}]]],["octagon-minus-icon",[[0,"octagon-minus-icon",{"inline":[4],"size":[2]}]]],["undo-icon",[[0,"undo-icon",{"inline":[4],"size":[2]}]]],["icon-selector",[[0,"icon-selector",{"name":[1],"inline":[4],"size":[2]}]]],["map-draw",[[0,"map-draw",{"apiKey":[1,"api-key"],"config":[16],"solarPanel":[16,"solar-panel"],"enableSettings":[4,"enable-settings"],"showInstructions":[32],"showSettings":[32],"showTutorial":[32],"showMarkEdgeTutorial":[32],"showAdditionalToolsTutorial":[32],"additionalToolsTutorialShown":[32],"showObstacleTutorial":[32],"obstacleTutorialShown":[32],"firstPolygonClosed":[32],"zoom":[32],"loadingState":[32],"rgbTiff":[32],"currentTool":[32],"buildingInsights":[32],"pixelInMeters":[32],"interaction":[32],"currentPolygon":[32],"solarSystem":[32],"showToast":[32],"toastMessage":[32],"toastType":[32]},null,{"rgbTiff":["setupCanvasManager","drawMap"],"canvasElement":["drawMap"]}]]]], options);
49
+ return bootstrapLazy([["map-selector",[[0,"map-selector",{"apiKey":[1,"api-key"],"language":[1],"isLoaded":[32],"autocomplete":[32],"map":[32],"marker":[32],"circle":[32],"radius":[32],"latitude":[32],"longitude":[32],"isSatelliteMode":[32],"showAddressError":[32]}]]],["tool-box",[[0,"tool-box",{"currentTool":[16,"current-tool"],"undoCallback":[16,"undo-callback"],"onToolSelect":[16,"on-tool-select"]}]]],["polygon-buttons",[[0,"polygon-buttons",{"calculateSolarPanels":[16,"calculate-solar-panels"],"markAsFlatRoof":[16,"mark-as-flat-roof"],"currentTool":[1,"current-tool"]}]]],["polygon-information",[[0,"polygon-information",{"currentPolygon":[16,"current-polygon"],"numberOfPanels":[2,"number-of-panels"],"handleAzimuthChange":[16,"handle-azimuth-change"],"handlePitchChange":[16,"handle-pitch-change"],"calculateSolarPanels":[16,"calculate-solar-panels"],"markAsFlatRoof":[16,"mark-as-flat-roof"],"currentTool":[1,"current-tool"]}]]],["settings-modal",[[0,"settings-modal",{"settings":[16],"tempSettings":[32]}]]],["toast-notification",[[0,"toast-notification",{"message":[1],"type":[1],"duration":[2],"isVisible":[32],"isExiting":[32]}]]],["house-icon",[[0,"house-icon",{"inline":[4],"size":[2]}]]],["move-icon",[[0,"move-icon",{"inline":[4],"size":[2]}]]],["settings-icon",[[0,"settings-icon",{"inline":[4],"size":[2]}]]],["search-icon",[[0,"search-icon",{"inline":[4],"size":[2]}]]],["solar-expert",[[0,"solar-expert",{"apiKey":[1,"api-key"],"language":[1],"unfold":[4],"colorScheme":[16,"color-scheme"],"latitude":[32],"longitude":[32],"isLoaded":[32],"autocomplete":[32],"place":[32],"showMapSelector":[32]},null,{"colorScheme":["colorSchemeChanged"]}]]],["loading-widget",[[0,"loading-widget"]]],["solar-system-form",[[0,"solar-system-form",{"systemConfigs":[16,"system-configs"],"polygons":[16],"roofCanvas":[16,"roof-canvas"],"polygonCanvas":[16,"polygon-canvas"],"pixelInMeters":[2,"pixel-in-meters"],"householdConsumption":[32],"consumptionProfile":[32],"electricityPrice":[32],"compensationRate":[32],"annualPriceIncrease":[32],"autonomy":[32],"costSavings":[32],"numberOfPanels":[32],"panelPeakPower":[32],"name":[32],"email":[32],"phone":[32],"nameError":[32],"emailError":[32],"phoneError":[32],"electricCar":[32],"electricCarChargingTime":[32],"heatPump":[32],"battery":[32],"batteryEnabled":[32],"compensation20Years":[32],"savedCosts20Years":[32],"maxPanels":[32],"kmDrivenPerYear":[32],"totalEnergyConsumption":[32],"totalEnergyProduction":[32],"isSubmitting":[32],"submitMessage":[32],"submitSuccess":[32]},null,{"systemConfigs":["updateSystemConfigs"]}]]],["tutorial-component",[[0,"tutorial-component",{"onClose":[16,"on-close"],"onSkip":[16,"on-skip"],"showSkipButton":[4,"show-skip-button"],"title":[1],"description":[1],"videoSource":[1,"video-source"],"isLoading":[32],"dotCount":[32],"isVideoPlaying":[32]}]]],["eraser-icon",[[0,"eraser-icon",{"inline":[4],"size":[2]}]]],["marker-icon",[[0,"marker-icon",{"inline":[4],"size":[2]}]]],["octagon-minus-icon",[[0,"octagon-minus-icon",{"inline":[4],"size":[2]}]]],["undo-icon",[[0,"undo-icon",{"inline":[4],"size":[2]}]]],["icon-selector",[[0,"icon-selector",{"name":[1],"inline":[4],"size":[2]}]]],["map-draw",[[0,"map-draw",{"apiKey":[1,"api-key"],"config":[16],"solarPanel":[16,"solar-panel"],"enableSettings":[4,"enable-settings"],"unfold":[4],"showInstructions":[32],"showSettings":[32],"showTutorial":[32],"showMarkEdgeTutorial":[32],"showAdditionalToolsTutorial":[32],"additionalToolsTutorialShown":[32],"showObstacleTutorial":[32],"obstacleTutorialShown":[32],"firstPolygonClosed":[32],"zoom":[32],"loadingState":[32],"rgbTiff":[32],"currentTool":[32],"buildingInsights":[32],"pixelInMeters":[32],"interaction":[32],"currentPolygon":[32],"solarSystem":[32],"showToast":[32],"toastMessage":[32],"toastType":[32]},null,{"rgbTiff":["setupCanvasManager","drawMap"],"canvasElement":["drawMap"]}]]]], options);
50
50
  });
51
51
  //# sourceMappingURL=stencil-library.esm.js.map
52
52
 
@@ -16,7 +16,7 @@ const ToolBox = class {
16
16
  render() {
17
17
  const t = getLanguageStrings(state.settings.language);
18
18
  const undoToolStrings = t.mapDraw.tools[undoTool.name];
19
- return (h("div", { key: '2d370aab5a5abc591a825e8731427987bc025104', class: "flex gap-1 sm:gap-4 rounded-4xl bg-primary pt-3 pl-3 pr-3 flex-wrap justify-center w-full text-xs" }, tools.map((tool) => {
19
+ return (h("div", { key: '23bc4e98d3b1d483f7a6ed0d0559d6c2ec99ec66', class: "flex gap-1 sm:gap-4 rounded-4xl bg-primary pt-3 pl-3 pr-3 flex-wrap justify-center w-full text-xs" }, tools.map((tool) => {
20
20
  const toolStrings = t.mapDraw.tools[tool.name];
21
21
  return (h("button", { class: `px-3 py-2 rounded-4xl transition-colors duration-200 ${this.currentTool.name === tool.name
22
22
  ? "bg-secondary hover:bg-secondary/80"
@@ -26,9 +26,9 @@ const ToolBox = class {
26
26
  : "var(--color-primary-foreground)",
27
27
  border: "1px solid var(--color-border)",
28
28
  }, "aria-label": toolStrings.ariaLabel, title: toolStrings.explanation, onClick: () => this.onToolSelect(tool) }, h("div", { class: "flex items-center gap-1 flex-col" }, h("icon-selector", { name: tool.icon }), h("span", null, toolStrings.name))));
29
- }), h("button", { key: '528e903d4e16afd09c583c1ac5e4472862e4a83d', class: `px-3 py-2 rounded-4xl transition-colors duration-200 bg-primary hover:bg-muted text-primary-foreground focus:border-2 focus:border-secondary`, style: {
29
+ }), h("button", { key: 'c3e1699b748f0386ca54b0dded15f5869e772e7b', class: `px-3 py-2 rounded-4xl transition-colors duration-200 bg-primary hover:bg-muted text-primary-foreground focus:border-2 focus:border-secondary`, style: {
30
30
  border: "1px solid var(--color-border)",
31
- }, "aria-label": undoToolStrings.ariaLabel, title: undoToolStrings.explanation, onClick: () => this.undoCallback() }, h("div", { key: '2e04251067a1c45dda457ed0803b1949b0425898', class: "flex items-center gap-1 flex-col" }, h("undo-icon", { key: '4aa276bbf830aab8849641af22a0bfb3da01191b' }), h("span", { key: '1378fa20a41e5e510c96346f085502ed2aaaea95' }, undoToolStrings.name)))));
31
+ }, "aria-label": undoToolStrings.ariaLabel, title: undoToolStrings.explanation, onClick: () => this.undoCallback() }, h("div", { key: '0901109e4ecf931c1dd163a6171a8c73ba2b09ae', class: "flex items-center gap-1 flex-col" }, h("undo-icon", { key: '77510f8aa6ee706cd9a56357ffcf2b3fd7db1d56' }), h("span", { key: '715c6a6628336085b78a7b57afc1738d70252e30' }, undoToolStrings.name)))));
32
32
  }
33
33
  };
34
34
  ToolBox.style = outputCss;
@@ -79,13 +79,13 @@ const TutorialComponent = class {
79
79
  const tutorialDescription = this.description ||
80
80
  t.mapDraw.tutorial.description;
81
81
  const videoSrc = this.videoSource || "/assets/videos/tutorial1.mp4";
82
- return (h("div", { key: '2f9134a303787f3f1bef384971812aebb664ef44', class: "fixed inset-0 z-50 flex items-center justify-center p-4" }, h("div", { key: '98d065ba7e264dfe3317defec98dda11dac51315', class: "absolute inset-0", style: {
82
+ return (h("div", { key: 'eb43ed46141bcbb53e93d85053484e495ecbd235', class: "fixed inset-0 z-50 flex items-center justify-center p-4" }, h("div", { key: '2e866875aebd5bc4b3877ff81c708d5fe4573a32', class: "absolute inset-0", style: {
83
83
  backgroundColor: "rgba(0, 0, 0, 0.5)",
84
- } }), h("div", { key: 'cf65eb0cf7a7663fa9e199089e115117dbcf3ee7', class: "relative z-10 w-full max-w-2xl max-h-full overflow-y-auto" }, h("div", { key: 'df0111b1ab74a04b5141eed9f44c2a7a25c2d363', class: "flex flex-col gap-4 bg-primary rounded-4xl p-6" }, h("div", { key: 'ce343c8ce4216038e523a86ea64233177d4da27d', class: "w-full text-center space-y-4" }, h("h2", { key: 'fbedfae3afbd578e20a2b42bcafbed33636d4206', class: "text-2xl font-bold text-secondary" }, tutorialTitle), h("p", { key: 'd13ab83f9278cd645a0bb03010d7c703b930ad23', class: "text-text-secondary" }, tutorialDescription)), h("div", { key: '46a5cd8d8dc850b4eeda9eaa6066d1de1bae98d2', class: "flex items-start justify-center bg-primary rounded-4xl" }, h("div", { key: 'd2ece90512af28d8fa078be7a0a9e354ce3c4cf0', class: "relative flex items-center justify-center rounded-4xl bg-secondary overflow-hidden w-64 h-64" }, this.isLoading && (h("div", { key: 'd9d72623a1947f094fa60fd2fdfeaa95297b7849', class: "absolute inset-0 flex items-center justify-center z-10" }, h("span", { key: '4b18decb7ac66203d7a227d48c70ff91c9ec6824', class: "text-text-secondary" }, t.mapDraw.loading, ".".repeat(this.dotCount)))), h("video", { key: '19ceccc0a48869f3fc1c5b0de0a8bbf6786e5d0e', class: `w-full h-full object-contain rounded-4xl ${state.isMobile
84
+ } }), h("div", { key: 'a71da1790215aeaf9bae354aff013df1acdef270', class: "relative z-10 w-full max-w-2xl max-h-full overflow-y-auto" }, h("div", { key: '34d1eb5f16349ac2317955bbec8d19841f254cf9', class: "flex flex-col gap-4 bg-primary rounded-4xl p-6" }, h("div", { key: '91398f3cfcfa9a09ede4ffe753a056a769d7d91e', class: "w-full text-center space-y-4" }, h("h2", { key: '7a3d287b381a5da90edc89e46640a2faff13e8c2', class: "text-2xl font-bold text-secondary" }, tutorialTitle), h("p", { key: '03a87a83fa56efa57114c710785458caec482430', class: "text-text-secondary" }, tutorialDescription)), h("div", { key: '73c9fe83c2145618436255c43ff9388e3777b73a', class: "flex items-start justify-center bg-primary rounded-4xl" }, h("div", { key: '47ebc2490a81eb3b74ea243dd68061a5d3061067', class: "relative flex items-center justify-center rounded-4xl bg-secondary overflow-hidden w-64 h-64" }, this.isLoading && (h("div", { key: '73f75ebadd87867094e8466411b2bb369695cb34', class: "absolute inset-0 flex items-center justify-center z-10" }, h("span", { key: '3adfbd7f8ab3bdeaef94aa71afb400b02d530e75', class: "text-text-secondary" }, t.mapDraw.loading, ".".repeat(this.dotCount)))), h("video", { key: 'f9d0c53d0c5b132aa8bdf0911598ed0395f89110', class: `w-full h-full object-contain rounded-4xl ${state.isMobile
85
85
  ? "cursor-pointer"
86
86
  : "pointer-events-none"}`, autoplay: true, muted: true, loop: true, playsinline: true, onLoadStart: this.handleVideoLoadStart, onCanPlay: this.handleVideoCanPlay, onPlay: this.handleVideoPlay, onPause: this.handleVideoPause, onClick: this.handleVideoClick, style: {
87
87
  aspectRatio: "1/1",
88
- } }, h("source", { key: '3652b2397c4397578049cec441a50f0dcb02ad7d', src: videoSrc, type: "video/mp4" }), "Your browser does not support the video tag."))), state.isMobile && !this.isVideoPlaying && (h("div", { key: '41e7cebeb19caa36e6e89df1dc042314b069892e', class: "text-center" }, h("p", { key: '970fbbe47bec2c4beecd966179d3d8693326aa8d', class: "text-sm text-text-secondary" }, t.mapDraw.tutorial.mobileInstruction))), h("div", { key: '206ec33205f1353533edcb5598b523892ed9c80d', class: "w-full flex justify-center gap-4" }, this.showSkipButton && (h("button", { key: 'd849283abdb80d41f39d5a0b0ec5f116d9e498a5', onClick: this.handleSkipTutorial, class: "px-6 py-3 bg-gray-500 text-white rounded-lg font-medium hover:bg-gray-600 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-0" }, t.mapDraw.tutorial.obstacle.skip)), h("button", { key: 'e4fcd08b350da47dc2849eec3ff72b682d89fb83', onClick: this.handleCloseTutorial, class: "px-6 py-3 bg-tertiary text-white rounded-lg font-medium hover:bg-tertiary/80 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-tertiary focus:ring-offset-0" }, t.mapDraw.tutorial.understood))))));
88
+ } }, h("source", { key: 'bd4dba242a0c7c7111a266b2132f77a16c83f174', src: videoSrc, type: "video/mp4" }), "Your browser does not support the video tag."))), state.isMobile && !this.isVideoPlaying && (h("div", { key: '64385cf12838061c1297ff1afd31e3878ca05a47', class: "text-center" }, h("p", { key: '59887a1d58ae0cf453b32231267347c907652415', class: "text-sm text-text-secondary" }, t.mapDraw.tutorial.mobileInstruction))), h("div", { key: '8b884c51e901b000114b9002516e63116be3dff9', class: "w-full flex justify-center gap-4" }, this.showSkipButton && (h("button", { key: '8c949e2a2b87d9b49c2d930388c9ef8b926b8154', onClick: this.handleSkipTutorial, class: "px-6 py-3 bg-gray-500 text-white rounded-lg font-medium hover:bg-gray-600 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-0" }, t.mapDraw.tutorial.obstacle.skip)), h("button", { key: 'dbc5fab2446903f8f5e6b641ec2774fd6ccbcb22', onClick: this.handleCloseTutorial, class: "px-6 py-3 bg-tertiary text-white rounded-lg font-medium hover:bg-tertiary/80 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-tertiary focus:ring-offset-0" }, t.mapDraw.tutorial.understood))))));
89
89
  }
90
90
  };
91
91
  TutorialComponent.style = outputCss;
@@ -1,6 +1,6 @@
1
1
 
2
2
  if (typeof global === "undefined") { var global = globalThis || window || self; }
3
- import { a as BaseDecoder } from './map-draw-Cx9WZoKH.js';
3
+ import { a as BaseDecoder } from './map-draw-s4wyOrpW.js';
4
4
  import './index-ICfDNUMe.js';
5
5
  import './constants-hboFofU4.js';
6
6
  import './tools-BNYKV5H5.js';
@@ -48,6 +48,6 @@ class WebImageDecoder extends BaseDecoder {
48
48
  }
49
49
 
50
50
  export { WebImageDecoder as default };
51
- //# sourceMappingURL=webimage-CBrfoxHM.js.map
51
+ //# sourceMappingURL=webimage-DjTbF9dC.js.map
52
52
 
53
- //# sourceMappingURL=webimage-CBrfoxHM.js.map
53
+ //# sourceMappingURL=webimage-DjTbF9dC.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"webimage-CBrfoxHM.js","sources":["../../node_modules/geotiff/dist-module/compression/webimage.js"],"sourcesContent":["import BaseDecoder from './basedecoder.js';\n\n/**\n * class WebImageDecoder\n *\n * This decoder uses the browsers image decoding facilities to read image\n * formats like WebP when supported.\n */\nexport default class WebImageDecoder extends BaseDecoder {\n constructor() {\n super();\n if (typeof createImageBitmap === 'undefined') {\n throw new Error('Cannot decode WebImage as `createImageBitmap` is not available');\n } else if (typeof document === 'undefined' && typeof OffscreenCanvas === 'undefined') {\n throw new Error('Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available');\n }\n }\n\n async decode(fileDirectory, buffer) {\n const blob = new Blob([buffer]);\n const imageBitmap = await createImageBitmap(blob);\n\n let canvas;\n if (typeof document !== 'undefined') {\n canvas = document.createElement('canvas');\n canvas.width = imageBitmap.width;\n canvas.height = imageBitmap.height;\n } else {\n canvas = new OffscreenCanvas(imageBitmap.width, imageBitmap.height);\n }\n\n const ctx = canvas.getContext('2d');\n ctx.drawImage(imageBitmap, 0, 0);\n\n // TODO: check how many samples per pixel we have, and return RGB/RGBA accordingly\n // it seems like GDAL always encodes via RGBA which does not require a translation\n\n return ctx.getImageData(0, 0, imageBitmap.width, imageBitmap.height).data.buffer;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACe,MAAM,eAAe,SAAS,WAAW,CAAC;AACzD,EAAE,WAAW,GAAG;AAChB,IAAI,KAAK,EAAE;AACX,IAAI,IAAI,OAAO,iBAAiB,KAAK,WAAW,EAAE;AAClD,MAAM,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC;AACvF,KAAK,MAAM,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,eAAe,KAAK,WAAW,EAAE;AAC1F,MAAM,MAAM,IAAI,KAAK,CAAC,qFAAqF,CAAC;AAC5G;AACA;;AAEA,EAAE,MAAM,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE;AACtC,IAAI,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;AACnC,IAAI,MAAM,WAAW,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC;;AAErD,IAAI,IAAI,MAAM;AACd,IAAI,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;AACzC,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC;AAC/C,MAAM,MAAM,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK;AACtC,MAAM,MAAM,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM;AACxC,KAAK,MAAM;AACX,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC;AACzE;;AAEA,IAAI,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC;AACvC,IAAI,GAAG,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC;;AAEpC;AACA;;AAEA,IAAI,OAAO,GAAG,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM;AACpF;AACA;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"webimage-DjTbF9dC.js","sources":["../../node_modules/geotiff/dist-module/compression/webimage.js"],"sourcesContent":["import BaseDecoder from './basedecoder.js';\n\n/**\n * class WebImageDecoder\n *\n * This decoder uses the browsers image decoding facilities to read image\n * formats like WebP when supported.\n */\nexport default class WebImageDecoder extends BaseDecoder {\n constructor() {\n super();\n if (typeof createImageBitmap === 'undefined') {\n throw new Error('Cannot decode WebImage as `createImageBitmap` is not available');\n } else if (typeof document === 'undefined' && typeof OffscreenCanvas === 'undefined') {\n throw new Error('Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available');\n }\n }\n\n async decode(fileDirectory, buffer) {\n const blob = new Blob([buffer]);\n const imageBitmap = await createImageBitmap(blob);\n\n let canvas;\n if (typeof document !== 'undefined') {\n canvas = document.createElement('canvas');\n canvas.width = imageBitmap.width;\n canvas.height = imageBitmap.height;\n } else {\n canvas = new OffscreenCanvas(imageBitmap.width, imageBitmap.height);\n }\n\n const ctx = canvas.getContext('2d');\n ctx.drawImage(imageBitmap, 0, 0);\n\n // TODO: check how many samples per pixel we have, and return RGB/RGBA accordingly\n // it seems like GDAL always encodes via RGBA which does not require a translation\n\n return ctx.getImageData(0, 0, imageBitmap.width, imageBitmap.height).data.buffer;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACe,MAAM,eAAe,SAAS,WAAW,CAAC;AACzD,EAAE,WAAW,GAAG;AAChB,IAAI,KAAK,EAAE;AACX,IAAI,IAAI,OAAO,iBAAiB,KAAK,WAAW,EAAE;AAClD,MAAM,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC;AACvF,KAAK,MAAM,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,eAAe,KAAK,WAAW,EAAE;AAC1F,MAAM,MAAM,IAAI,KAAK,CAAC,qFAAqF,CAAC;AAC5G;AACA;;AAEA,EAAE,MAAM,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE;AACtC,IAAI,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;AACnC,IAAI,MAAM,WAAW,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC;;AAErD,IAAI,IAAI,MAAM;AACd,IAAI,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;AACzC,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC;AAC/C,MAAM,MAAM,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK;AACtC,MAAM,MAAM,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM;AACxC,KAAK,MAAM;AACX,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC;AACzE;;AAEA,IAAI,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC;AACvC,IAAI,GAAG,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC;;AAEpC;AACA;;AAEA,IAAI,OAAO,GAAG,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM;AACpF;AACA;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,53 @@
1
+
2
+ if (typeof global === "undefined") { var global = globalThis || window || self; }
3
+ import { a as BaseDecoder } from './map-draw-I6HehGjN.js';
4
+ import './index-ICfDNUMe.js';
5
+ import './constants-hboFofU4.js';
6
+ import './tools-BNYKV5H5.js';
7
+ import './config-CWfV1nKn.js';
8
+ import './utils-BCUZxI9u.js';
9
+ import './store-CcqrFuBK.js';
10
+
11
+ /**
12
+ * class WebImageDecoder
13
+ *
14
+ * This decoder uses the browsers image decoding facilities to read image
15
+ * formats like WebP when supported.
16
+ */
17
+ class WebImageDecoder extends BaseDecoder {
18
+ constructor() {
19
+ super();
20
+ if (typeof createImageBitmap === 'undefined') {
21
+ throw new Error('Cannot decode WebImage as `createImageBitmap` is not available');
22
+ } else if (typeof document === 'undefined' && typeof OffscreenCanvas === 'undefined') {
23
+ throw new Error('Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available');
24
+ }
25
+ }
26
+
27
+ async decode(fileDirectory, buffer) {
28
+ const blob = new Blob([buffer]);
29
+ const imageBitmap = await createImageBitmap(blob);
30
+
31
+ let canvas;
32
+ if (typeof document !== 'undefined') {
33
+ canvas = document.createElement('canvas');
34
+ canvas.width = imageBitmap.width;
35
+ canvas.height = imageBitmap.height;
36
+ } else {
37
+ canvas = new OffscreenCanvas(imageBitmap.width, imageBitmap.height);
38
+ }
39
+
40
+ const ctx = canvas.getContext('2d');
41
+ ctx.drawImage(imageBitmap, 0, 0);
42
+
43
+ // TODO: check how many samples per pixel we have, and return RGB/RGBA accordingly
44
+ // it seems like GDAL always encodes via RGBA which does not require a translation
45
+
46
+ return ctx.getImageData(0, 0, imageBitmap.width, imageBitmap.height).data.buffer;
47
+ }
48
+ }
49
+
50
+ export { WebImageDecoder as default };
51
+ //# sourceMappingURL=webimage-DpQLhKY4.js.map
52
+
53
+ //# sourceMappingURL=webimage-DpQLhKY4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webimage-DpQLhKY4.js","sources":["../../node_modules/geotiff/dist-module/compression/webimage.js"],"sourcesContent":["import BaseDecoder from './basedecoder.js';\n\n/**\n * class WebImageDecoder\n *\n * This decoder uses the browsers image decoding facilities to read image\n * formats like WebP when supported.\n */\nexport default class WebImageDecoder extends BaseDecoder {\n constructor() {\n super();\n if (typeof createImageBitmap === 'undefined') {\n throw new Error('Cannot decode WebImage as `createImageBitmap` is not available');\n } else if (typeof document === 'undefined' && typeof OffscreenCanvas === 'undefined') {\n throw new Error('Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available');\n }\n }\n\n async decode(fileDirectory, buffer) {\n const blob = new Blob([buffer]);\n const imageBitmap = await createImageBitmap(blob);\n\n let canvas;\n if (typeof document !== 'undefined') {\n canvas = document.createElement('canvas');\n canvas.width = imageBitmap.width;\n canvas.height = imageBitmap.height;\n } else {\n canvas = new OffscreenCanvas(imageBitmap.width, imageBitmap.height);\n }\n\n const ctx = canvas.getContext('2d');\n ctx.drawImage(imageBitmap, 0, 0);\n\n // TODO: check how many samples per pixel we have, and return RGB/RGBA accordingly\n // it seems like GDAL always encodes via RGBA which does not require a translation\n\n return ctx.getImageData(0, 0, imageBitmap.width, imageBitmap.height).data.buffer;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACe,MAAM,eAAe,SAAS,WAAW,CAAC;AACzD,EAAE,WAAW,GAAG;AAChB,IAAI,KAAK,EAAE;AACX,IAAI,IAAI,OAAO,iBAAiB,KAAK,WAAW,EAAE;AAClD,MAAM,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC;AACvF,KAAK,MAAM,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,eAAe,KAAK,WAAW,EAAE;AAC1F,MAAM,MAAM,IAAI,KAAK,CAAC,qFAAqF,CAAC;AAC5G;AACA;;AAEA,EAAE,MAAM,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE;AACtC,IAAI,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;AACnC,IAAI,MAAM,WAAW,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC;;AAErD,IAAI,IAAI,MAAM;AACd,IAAI,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;AACzC,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC;AAC/C,MAAM,MAAM,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK;AACtC,MAAM,MAAM,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM;AACxC,KAAK,MAAM;AACX,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC;AACzE;;AAEA,IAAI,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC;AACvC,IAAI,GAAG,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC;;AAEpC;AACA;;AAEA,IAAI,OAAO,GAAG,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM;AACpF;AACA;;;;","x_google_ignoreList":[0]}
@@ -8,6 +8,7 @@ export declare class MapDraw {
8
8
  config: SolarExpertConfig;
9
9
  solarPanel: SolarPanelType;
10
10
  enableSettings: boolean;
11
+ unfold: boolean;
11
12
  showInstructions: boolean;
12
13
  showSettings: boolean;
13
14
  showTutorial: boolean;
@@ -4,6 +4,7 @@ export declare class SolarExpert {
4
4
  el: HTMLElement;
5
5
  apiKey: string;
6
6
  language: Language;
7
+ unfold: boolean;
7
8
  colorScheme: Partial<ColorScheme> | null;
8
9
  latitude: number | null;
9
10
  longitude: number | null;
@@ -7,6 +7,7 @@ export declare class SolarSystemForm {
7
7
  polygons: Polygon[];
8
8
  roofCanvas: HTMLCanvasElement;
9
9
  polygonCanvas: HTMLCanvasElement;
10
+ pixelInMeters: number;
10
11
  householdConsumption: number;
11
12
  consumptionProfile: "mostly_at_home" | "mostly_away";
12
13
  electricityPrice: number;
@@ -38,6 +38,7 @@ export namespace Components {
38
38
  "config": SolarExpertConfig;
39
39
  "enableSettings": boolean;
40
40
  "solarPanel": SolarPanelType;
41
+ "unfold": boolean;
41
42
  }
42
43
  interface MapSelector {
43
44
  "apiKey": string;
@@ -84,8 +85,10 @@ export namespace Components {
84
85
  "apiKey": string;
85
86
  "colorScheme": Partial<ColorScheme> | null;
86
87
  "language": Language;
88
+ "unfold": boolean;
87
89
  }
88
90
  interface SolarSystemForm {
91
+ "pixelInMeters": number;
89
92
  "polygonCanvas": HTMLCanvasElement;
90
93
  "polygons": Polygon[];
91
94
  "roofCanvas": HTMLCanvasElement;
@@ -295,6 +298,7 @@ declare namespace LocalJSX {
295
298
  "config"?: SolarExpertConfig;
296
299
  "enableSettings"?: boolean;
297
300
  "solarPanel"?: SolarPanelType;
301
+ "unfold"?: boolean;
298
302
  }
299
303
  interface MapSelector {
300
304
  "apiKey"?: string;
@@ -343,8 +347,10 @@ declare namespace LocalJSX {
343
347
  "apiKey"?: string;
344
348
  "colorScheme"?: Partial<ColorScheme> | null;
345
349
  "language"?: Language;
350
+ "unfold"?: boolean;
346
351
  }
347
352
  interface SolarSystemForm {
353
+ "pixelInMeters"?: number;
348
354
  "polygonCanvas"?: HTMLCanvasElement;
349
355
  "polygons"?: Polygon[];
350
356
  "roofCanvas"?: HTMLCanvasElement;
@@ -32,6 +32,7 @@ export interface LeadData {
32
32
  images: {
33
33
  roof: string;
34
34
  polygon: string;
35
+ pixelInMeters: number;
35
36
  };
36
37
  results: {
37
38
  autonomy: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blue-chestnut-solar-expert",
3
- "version": "0.0.68",
3
+ "version": "0.0.70",
4
4
  "description": "Blue Chestnut Solar Expert",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",