fix(types): type warm dialog payload without new any (#614)

Issue: #614
User-Visible: no
This commit is contained in:
Claude
2026-09-23 15:46:55 +03:00
parent 1a6b12af86
commit bc6b243f56
44 changed files with 346 additions and 346 deletions
+144 -144
View File
@@ -1,312 +1,312 @@
{
"schema": 1,
"fingerprint": "ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f",
"fingerprint": "09eee3d41357369f29bbd17ea4021a57f935e964efbde97ecd2883e2bf1259dc",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-BLjfDMVp.js",
"houseplan-assets/houseplan-card-xjcAWvNG.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 291041,
"initialViewGzipBytes": 291016,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-BLjfDMVp.js",
"houseplan-assets/houseplan-card-xjcAWvNG.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 292563,
"initialPanelGzipBytes": 292538,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2329,
"initialPanelOnlyGzipBytes": 2325,
"lazyFiles": [
"houseplan-assets/backdrop-pick-CEFFBWtH.js",
"houseplan-assets/de-BY3Q2H6Q.js",
"houseplan-assets/editor-CLEMaXMP.js",
"houseplan-assets/form-kit.styles-D0x_MDAu.js",
"houseplan-assets/fr-DfZ8EoEQ.js",
"houseplan-assets/furniture-plan-art.generated-Dh-AZCLQ.js",
"houseplan-assets/houseplan-editor-runtime-CkKrqXj7.js",
"houseplan-assets/houseplan-onboarding-runtime--kqFpsax.js",
"houseplan-assets/hp-zigbee-topology-overlay-Ciq3uAlC.js",
"houseplan-assets/iso-scene-render-BId9b3m-.js",
"houseplan-assets/live-interaction-runtime-fkDW2_fZ.js",
"houseplan-assets/pdf-export-Cqk4ZmER.js",
"houseplan-assets/summary-panel-runtime-loaded-6n_p_IDv.js",
"houseplan-assets/zigbee-topology-aVRjewRB.js",
"houseplan-assets/zigbee-topology-runtime-CDGFNs8t.js"
"houseplan-assets/backdrop-pick-D07oL2TK.js",
"houseplan-assets/de-DIHFMCum.js",
"houseplan-assets/editor-D_SADk2o.js",
"houseplan-assets/form-kit.styles-PP1WZrH6.js",
"houseplan-assets/fr-yH4vZgS2.js",
"houseplan-assets/furniture-plan-art.generated-BGrB3xRQ.js",
"houseplan-assets/houseplan-editor-runtime-DAwnMG24.js",
"houseplan-assets/houseplan-onboarding-runtime-CHC6Vvzf.js",
"houseplan-assets/hp-zigbee-topology-overlay-BH6tmu0T.js",
"houseplan-assets/iso-scene-render-OZjtHLky.js",
"houseplan-assets/live-interaction-runtime-DwJmZsFG.js",
"houseplan-assets/pdf-export-C1cFfKFZ.js",
"houseplan-assets/summary-panel-runtime-loaded-Cpaii3Qi.js",
"houseplan-assets/zigbee-topology-Dd0N8cUl.js",
"houseplan-assets/zigbee-topology-runtime-C1mf34Fb.js"
],
"lazyGzipBytes": 460908,
"lazyGzipBytes": 460844,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-CEFFBWtH.js",
"houseplan-assets/editor-CLEMaXMP.js",
"houseplan-assets/form-kit.styles-D0x_MDAu.js",
"houseplan-assets/furniture-plan-art.generated-Dh-AZCLQ.js",
"houseplan-assets/houseplan-editor-runtime-CkKrqXj7.js",
"houseplan-assets/zigbee-topology-aVRjewRB.js"
"houseplan-assets/backdrop-pick-D07oL2TK.js",
"houseplan-assets/editor-D_SADk2o.js",
"houseplan-assets/form-kit.styles-PP1WZrH6.js",
"houseplan-assets/furniture-plan-art.generated-BGrB3xRQ.js",
"houseplan-assets/houseplan-editor-runtime-DAwnMG24.js",
"houseplan-assets/zigbee-topology-Dd0N8cUl.js"
],
"lazyEditorGzipBytes": 244356,
"lazyEditorGzipBytes": 244340,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-CEFFBWtH.js",
"houseplan-assets/form-kit.styles-D0x_MDAu.js",
"houseplan-assets/houseplan-onboarding-runtime--kqFpsax.js"
"houseplan-assets/backdrop-pick-D07oL2TK.js",
"houseplan-assets/form-kit.styles-PP1WZrH6.js",
"houseplan-assets/houseplan-onboarding-runtime-CHC6Vvzf.js"
],
"lazyOnboardingGzipBytes": 34535,
"lazyOnboardingGzipBytes": 34527,
"lazyLocaleFiles": [
"houseplan-assets/de-BY3Q2H6Q.js",
"houseplan-assets/fr-DfZ8EoEQ.js"
"houseplan-assets/de-DIHFMCum.js",
"houseplan-assets/fr-yH4vZgS2.js"
],
"lazyLocaleGzipBytes": 55269,
"lazyLocaleGzipBytes": 55254,
"lazyIsometricFiles": [
"houseplan-assets/iso-scene-render-BId9b3m-.js"
"houseplan-assets/iso-scene-render-OZjtHLky.js"
],
"lazyIsometricGzipBytes": 17647,
"lazyIsometricGzipBytes": 17641,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-Dh-AZCLQ.js"
"houseplan-assets/furniture-plan-art.generated-BGrB3xRQ.js"
],
"lazyFurnitureArtGzipBytes": 16934,
"lazyFurnitureArtGzipBytes": 16939,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-Dh-AZCLQ.js",
"houseplan-assets/pdf-export-Cqk4ZmER.js"
"houseplan-assets/furniture-plan-art.generated-BGrB3xRQ.js",
"houseplan-assets/pdf-export-C1cFfKFZ.js"
],
"lazyPdfGzipBytes": 126822,
"lazyPdfGzipBytes": 126825,
"files": [
{
"path": "houseplan-assets/backdrop-pick-CEFFBWtH.js",
"sha256": "f69f4e0792f0a4264b4c4396bae662f1b8069c701df6308e897cb909df62eaf1",
"path": "houseplan-assets/backdrop-pick-D07oL2TK.js",
"sha256": "056cce95c92b26c22ed53dca93da4533787c2f4a8eaf37b2014341400f3bbb7c",
"rawBytes": 76524,
"gzipBytes": 24576,
"gzipBytes": 24574,
"isEntry": false,
"imports": [
"houseplan-assets/form-kit.styles-D0x_MDAu.js",
"houseplan-assets/houseplan-card-BLjfDMVp.js"
"houseplan-assets/form-kit.styles-PP1WZrH6.js",
"houseplan-assets/houseplan-card-xjcAWvNG.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-BY3Q2H6Q.js",
"sha256": "f2fa522fcebdea8947173711c3ec2121391c85d56bc74c48e4e16a406515ec55",
"path": "houseplan-assets/de-DIHFMCum.js",
"sha256": "5a063eeae766d2ae948a466a0b9710e8d8a118775248bcc0089c5b3da1a6a802",
"rawBytes": 92247,
"gzipBytes": 27872,
"gzipBytes": 27863,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-CLEMaXMP.js",
"sha256": "8cce7620e65ddd7bd929585b8c2531f286064ccc3d9960858055da7a431e2b21",
"path": "houseplan-assets/editor-D_SADk2o.js",
"sha256": "0b970a60b3e100de5c3200e91ecbf6c2cb6d0abbe1f46d27927a59865d9390dd",
"rawBytes": 3833,
"gzipBytes": 1587,
"gzipBytes": 1582,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BLjfDMVp.js"
"houseplan-assets/houseplan-card-xjcAWvNG.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/form-kit.styles-D0x_MDAu.js",
"sha256": "1a176be165e2d1648fd196af2b50b3105cbdcd64d283e17c1f6e16411559f07f",
"path": "houseplan-assets/form-kit.styles-PP1WZrH6.js",
"sha256": "a468cdbc6c561d761f9b3f9a519ff16e3884907765d01f3381a37e285d9104e6",
"rawBytes": 25600,
"gzipBytes": 5058,
"gzipBytes": 5056,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-DfZ8EoEQ.js",
"sha256": "bb450ab7cea4d67bf171b529f3dfbadbb6aeda4558c8fb3559327c3a6cd9951f",
"path": "houseplan-assets/fr-yH4vZgS2.js",
"sha256": "7a2bc31f73e9bb22183c929291776e70c17708d8b83fdaaca0e34189da93c279",
"rawBytes": 94579,
"gzipBytes": 27397,
"gzipBytes": 27391,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-Dh-AZCLQ.js",
"sha256": "605855cb91e170968d462b7540d8231c018af682d01c34b496fa3f0af9870b8f",
"path": "houseplan-assets/furniture-plan-art.generated-BGrB3xRQ.js",
"sha256": "6cbb444427df2064078f6c5e02e58170c8bbb6896ee1e2d7c9b8eda3166332c2",
"rawBytes": 52035,
"gzipBytes": 16934,
"gzipBytes": 16939,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-BLjfDMVp.js",
"sha256": "7e8788933f6a0a296fecace06c3e85d28e411a9b8d2d69ceab3b2fe5bb997d82",
"path": "houseplan-assets/houseplan-card-xjcAWvNG.js",
"sha256": "b38d6788a460cf8da6b2593171d6fa496f4a7a16e8357a647f205e01a3efc5bb",
"rawBytes": 1031784,
"gzipBytes": 290234,
"gzipBytes": 290213,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-BY3Q2H6Q.js",
"houseplan-assets/editor-CLEMaXMP.js",
"houseplan-assets/fr-DfZ8EoEQ.js",
"houseplan-assets/furniture-plan-art.generated-Dh-AZCLQ.js",
"houseplan-assets/houseplan-editor-runtime-CkKrqXj7.js",
"houseplan-assets/houseplan-onboarding-runtime--kqFpsax.js",
"houseplan-assets/hp-zigbee-topology-overlay-Ciq3uAlC.js",
"houseplan-assets/iso-scene-render-BId9b3m-.js",
"houseplan-assets/live-interaction-runtime-fkDW2_fZ.js",
"houseplan-assets/pdf-export-Cqk4ZmER.js",
"houseplan-assets/summary-panel-runtime-loaded-6n_p_IDv.js"
"houseplan-assets/de-DIHFMCum.js",
"houseplan-assets/editor-D_SADk2o.js",
"houseplan-assets/fr-yH4vZgS2.js",
"houseplan-assets/furniture-plan-art.generated-BGrB3xRQ.js",
"houseplan-assets/houseplan-editor-runtime-DAwnMG24.js",
"houseplan-assets/houseplan-onboarding-runtime-CHC6Vvzf.js",
"houseplan-assets/hp-zigbee-topology-overlay-BH6tmu0T.js",
"houseplan-assets/iso-scene-render-OZjtHLky.js",
"houseplan-assets/live-interaction-runtime-DwJmZsFG.js",
"houseplan-assets/pdf-export-C1cFfKFZ.js",
"houseplan-assets/summary-panel-runtime-loaded-Cpaii3Qi.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-CkKrqXj7.js",
"sha256": "fdaec929d1366fc99486f5a7270e2b61b99b19bc7648690b187c29a66dd5ff5e",
"path": "houseplan-assets/houseplan-editor-runtime-DAwnMG24.js",
"sha256": "d834f293a5842c866b6fb035ccb12ca288e4d4cb6b57fe15bd81aec3d8d12121",
"rawBytes": 679038,
"gzipBytes": 188767,
"gzipBytes": 188761,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-CEFFBWtH.js",
"houseplan-assets/form-kit.styles-D0x_MDAu.js",
"houseplan-assets/furniture-plan-art.generated-Dh-AZCLQ.js",
"houseplan-assets/houseplan-card-BLjfDMVp.js",
"houseplan-assets/zigbee-topology-aVRjewRB.js"
"houseplan-assets/backdrop-pick-D07oL2TK.js",
"houseplan-assets/form-kit.styles-PP1WZrH6.js",
"houseplan-assets/furniture-plan-art.generated-BGrB3xRQ.js",
"houseplan-assets/houseplan-card-xjcAWvNG.js",
"houseplan-assets/zigbee-topology-Dd0N8cUl.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-CDGFNs8t.js"
"houseplan-assets/zigbee-topology-runtime-C1mf34Fb.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime--kqFpsax.js",
"sha256": "5c5bede141022a23b3db2501ee157ec07f23ec5da76f3f314b52a449fc11b627",
"path": "houseplan-assets/houseplan-onboarding-runtime-CHC6Vvzf.js",
"sha256": "80057a6e1f7e5d13347ca32ba7384faef8da2ce9b588c15514bc4271ff0b71b7",
"rawBytes": 15986,
"gzipBytes": 4901,
"gzipBytes": 4897,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-CEFFBWtH.js",
"houseplan-assets/form-kit.styles-D0x_MDAu.js",
"houseplan-assets/houseplan-card-BLjfDMVp.js"
"houseplan-assets/backdrop-pick-D07oL2TK.js",
"houseplan-assets/form-kit.styles-PP1WZrH6.js",
"houseplan-assets/houseplan-card-xjcAWvNG.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-Ciq3uAlC.js",
"sha256": "bbeadfa98dac5e870b184af677193c21208e42258e30657aa58183c3d4dc7ca1",
"path": "houseplan-assets/hp-zigbee-topology-overlay-BH6tmu0T.js",
"sha256": "c40de071d8c84a6cd9dfe70e2352f34446272cf9fed4e608b72ccfda44176ecc",
"rawBytes": 10759,
"gzipBytes": 3689,
"gzipBytes": 3685,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BLjfDMVp.js",
"houseplan-assets/zigbee-topology-aVRjewRB.js",
"houseplan-assets/zigbee-topology-runtime-CDGFNs8t.js"
"houseplan-assets/houseplan-card-xjcAWvNG.js",
"houseplan-assets/zigbee-topology-Dd0N8cUl.js",
"houseplan-assets/zigbee-topology-runtime-C1mf34Fb.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-BId9b3m-.js",
"sha256": "31a1ee1357450833f04cd1e20ec53f41c1bbee2309390a3bcbfab01d3aacdffb",
"path": "houseplan-assets/iso-scene-render-OZjtHLky.js",
"sha256": "fa6c4060c5cdeb30f6256d32eb4bf5eabd37f1bf92f033e01c82555954794846",
"rawBytes": 51983,
"gzipBytes": 17647,
"gzipBytes": 17641,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BLjfDMVp.js"
"houseplan-assets/houseplan-card-xjcAWvNG.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-fkDW2_fZ.js",
"sha256": "2f8f2def28c01c68f1e420cf3181c540a90825e951868e2196c1bb3aa326f823",
"path": "houseplan-assets/live-interaction-runtime-DwJmZsFG.js",
"sha256": "5f3cd30e3c7aab4a8e56426ebb2d40f62fef32be4694547f905c5edaca2d9644",
"rawBytes": 8216,
"gzipBytes": 3213,
"gzipBytes": 3206,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BLjfDMVp.js"
"houseplan-assets/houseplan-card-xjcAWvNG.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-Cqk4ZmER.js",
"sha256": "10902be37dbc455f003ca26162a4f49b7e55667b328a16bbb6a8a01a7422d6c5",
"path": "houseplan-assets/pdf-export-C1cFfKFZ.js",
"sha256": "b929528bbd3820becb826a223883d0548cf13f50c5dbbdcb23eda058deddf86e",
"rawBytes": 236264,
"gzipBytes": 109888,
"gzipBytes": 109886,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-Dh-AZCLQ.js",
"houseplan-assets/houseplan-card-BLjfDMVp.js"
"houseplan-assets/furniture-plan-art.generated-BGrB3xRQ.js",
"houseplan-assets/houseplan-card-xjcAWvNG.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-NDmEPDhZ.js",
"sha256": "b53e6e62d1b994b94d7259c3276dec57dfda226bbaed48e54207e5ef4496cfd2",
"path": "houseplan-assets/summary-panel-editor-BqLEzpeW.js",
"sha256": "bbf6e2c80ffdbf73c6531d97e6d6b0f146d2a1086a4c987f4ac8bbc4a10eba8e",
"rawBytes": 14862,
"gzipBytes": 3428,
"gzipBytes": 3424,
"isEntry": false,
"imports": [
"houseplan-assets/form-kit.styles-D0x_MDAu.js",
"houseplan-assets/houseplan-card-BLjfDMVp.js",
"houseplan-assets/summary-panel-runtime-loaded-6n_p_IDv.js"
"houseplan-assets/form-kit.styles-PP1WZrH6.js",
"houseplan-assets/houseplan-card-xjcAWvNG.js",
"houseplan-assets/summary-panel-runtime-loaded-Cpaii3Qi.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-BOfy_fo6.js",
"sha256": "4414cb4fa0b1a1586864705cf6320f9cb6406da202e3dd35c1f169ac9c58d09f",
"path": "houseplan-assets/summary-panel-metrics-DzrPgRvW.js",
"sha256": "bcdbb80006c7fbee36886bb422abeb12711cbb08769e6715dbf1e7a285e42e52",
"rawBytes": 2611,
"gzipBytes": 1310,
"gzipBytes": 1306,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BLjfDMVp.js"
"houseplan-assets/houseplan-card-xjcAWvNG.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-6n_p_IDv.js",
"sha256": "9e343f4e991527d9c3e9782947eb67e41a2e01a1f789a770aaa078d311214ce3",
"path": "houseplan-assets/summary-panel-runtime-loaded-Cpaii3Qi.js",
"sha256": "101c278bdec428430f546d2b808d56fdca473d76634208b6181fc1ddede2676a",
"rawBytes": 72733,
"gzipBytes": 20178,
"gzipBytes": 20174,
"isEntry": false,
"imports": [
"houseplan-assets/form-kit.styles-D0x_MDAu.js",
"houseplan-assets/houseplan-card-BLjfDMVp.js"
"houseplan-assets/form-kit.styles-PP1WZrH6.js",
"houseplan-assets/houseplan-card-xjcAWvNG.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-NDmEPDhZ.js",
"houseplan-assets/summary-panel-metrics-BOfy_fo6.js"
"houseplan-assets/summary-panel-editor-BqLEzpeW.js",
"houseplan-assets/summary-panel-metrics-DzrPgRvW.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-aVRjewRB.js",
"sha256": "dfbed31392aa92c1471b243d98b86de5033315a78acf9d3ffd643fc2ffc3b174",
"path": "houseplan-assets/zigbee-topology-Dd0N8cUl.js",
"sha256": "bfac5fac0a13406f3b37ba675a614cc01d9bf74ef4d2045ffd65f730dd865848",
"rawBytes": 18962,
"gzipBytes": 7434,
"gzipBytes": 7428,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BLjfDMVp.js"
"houseplan-assets/houseplan-card-xjcAWvNG.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-CDGFNs8t.js",
"sha256": "186c9747b08af525a3a3ab477056cb20edc676e897ac56971ebcbaf7e34afe85",
"path": "houseplan-assets/zigbee-topology-runtime-C1mf34Fb.js",
"sha256": "7f184b3ae9c88eeb525876a607136207b2d92cbca7c5967a0020c3f37ccae922",
"rawBytes": 3942,
"gzipBytes": 1767,
"gzipBytes": 1761,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BLjfDMVp.js",
"houseplan-assets/zigbee-topology-aVRjewRB.js"
"houseplan-assets/houseplan-card-xjcAWvNG.js",
"houseplan-assets/zigbee-topology-Dd0N8cUl.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "f900ad33b36c25273ccf06e4311e9202f4b0985ecae24c6dc3258c85bbadb14e",
"sha256": "6ff1a7a8e0062f1bd57ac1fb918c4d9e441f050c16b909a395358763550989bb",
"rawBytes": 1205,
"gzipBytes": 807,
"gzipBytes": 803,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-BLjfDMVp.js"
"houseplan-assets/houseplan-card-xjcAWvNG.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "08df56566e33fc29a86183b968652418dfa9bb42bf440611b8b9e47c5fb4fca9",
"sha256": "2b13d7470257be5bce006e686e43f67fa9f1aeda675a5ff285c36da80eaa6011",
"rawBytes": 6165,
"gzipBytes": 2329,
"gzipBytes": 2325,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-BLjfDMVp.js"
"houseplan-assets/houseplan-card-xjcAWvNG.js"
],
"dynamicImports": []
}
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f";import{A as e,c as a,s as t,l as i,d as n,ap as s,h as r,j as o,g as l,dH as c,dI as p,dJ as d,cL as h,dK as u,cK as m,dL as g,cQ as _,cP as b,dM as f,bs as v,br as w,bt as y,av as k,aC as $,aD as x,dN as S}from"./houseplan-card-BLjfDMVp.js";import{c as C,f as M,C as L}from"./form-kit.styles-D0x_MDAu.js";const z=C+M(L,{withSwitch:!1}),P=new WeakSet;let D=null;function T(e){const a=e.renderRoot;if(!a||P.has(a))return;const t=a.ownerDocument??globalThis.document,i=t?.defaultView?.CSSStyleSheet;if(i&&"adoptedStyleSheets"in a)return D||(D=new i,D.replaceSync(z)),a.adoptedStyleSheets=[...a.adoptedStyleSheets,D],void P.add(a);if(a.querySelector("style[data-hp-form-kit]"))return void P.add(a);const n=t.createElement("style");n.dataset.hpFormKit="true",n.textContent=z,a.appendChild(n),P.add(a)}function H({title:t,help:i,body:n,id:s}){return a`<section class="hpf-card" data-card=${s??e}>
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="09eee3d41357369f29bbd17ea4021a57f935e964efbde97ecd2883e2bf1259dc";import{A as e,c as a,s as t,l as i,d as n,ap as s,h as r,j as o,g as l,dH as c,dI as p,dJ as d,cL as h,dK as u,cK as m,dL as g,cQ as _,cP as b,dM as f,bs as v,br as w,bt as y,av as k,aC as $,aD as x,dN as S}from"./houseplan-card-xjcAWvNG.js";import{c as C,f as M,C as L}from"./form-kit.styles-PP1WZrH6.js";const z=C+M(L,{withSwitch:!1}),P=new WeakSet;let D=null;function T(e){const a=e.renderRoot;if(!a||P.has(a))return;const t=a.ownerDocument??globalThis.document,i=t?.defaultView?.CSSStyleSheet;if(i&&"adoptedStyleSheets"in a)return D||(D=new i,D.replaceSync(z)),a.adoptedStyleSheets=[...a.adoptedStyleSheets,D],void P.add(a);if(a.querySelector("style[data-hp-form-kit]"))return void P.add(a);const n=t.createElement("style");n.dataset.hpFormKit="true",n.textContent=z,a.appendChild(n),P.add(a)}function H({title:t,help:i,body:n,id:s}){return a`<section class="hpf-card" data-card=${s??e}>
${t?a`<div class="hpf-head"><h3>${t}</h3>${i??e}</div>`:e}
<div class="hpf-body">${n}</div>
</section>`}function E({title:t,help:i}){return a`<div class="hpf-sub"><h4>${t}</h4>${i??e}</div>`}function F({label:t,htmlFor:i,help:n,control:s,hint:r,error:o}){return a`<div class="hpf-field">
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f";import{aD as e,l as o,aG as t,ee as s,A as a,ef as i,eg as l,eh as n,E as r,c}from"./houseplan-card-BLjfDMVp.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="09eee3d41357369f29bbd17ea4021a57f935e964efbde97ecd2883e2bf1259dc";import{aD as e,l as o,aG as t,ee as s,A as a,ef as i,eg as l,eh as n,E as r,c}from"./houseplan-card-xjcAWvNG.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
.hass=${this.hass}
.data=${this._formData}
.schema=${e}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f";import{l as t,bv as s,A as e,aG as o,c as i,m as a,cJ as l,cK as h,cL as n,bs as r,cM as c,cR as p,cN as d,cO as _,cP as u,cQ as g,cS as m,cT as b}from"./houseplan-card-BLjfDMVp.js";import{z as f,y as v,A as y,B as D,C as w,D as S,E as $,G as C,n as k}from"./backdrop-pick-CEFFBWtH.js";import"./form-kit.styles-D0x_MDAu.js";const M="ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f";class I{constructor(t){this.host=t,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(a){const l=`${a}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,a)&&s(h,l)?i`<hp-help data-help-key=${a}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="09eee3d41357369f29bbd17ea4021a57f935e964efbde97ecd2883e2bf1259dc";import{l as t,bv as s,A as e,aG as o,c as i,m as a,cJ as l,cK as h,cL as n,bs as r,cM as c,cR as p,cN as d,cO as _,cP as u,cQ as g,cS as m,cT as b}from"./houseplan-card-xjcAWvNG.js";import{z as f,y as v,A as y,B as D,C as w,D as S,E as $,G as C,n as k}from"./backdrop-pick-D07oL2TK.js";import"./form-kit.styles-PP1WZrH6.js";const M="09eee3d41357369f29bbd17ea4021a57f935e964efbde97ecd2883e2bf1259dc";class I{constructor(t){this.host=t,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(a){const l=`${a}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,a)&&s(h,l)?i`<hp-help data-help-key=${a}
.text=${o(h,a)} .ariaLabel=${o(h,l)}></hp-help>`:e}_openSpaceDialog(t,s){if(!this.host._serverStorage||!this.host._serverCfg)return void this.host._showToast(this.host._t("toast.integration_missing"));if("edit"===t){const e=this.host._serverCfg.spaces.find(t=>t.id===s);if(!e)return;const o=a(e),i=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?l(e.settings.custom_fill):null,p="none"===o.fill?{...i||h,a:0}:i;return void(this.host._spaceDialog={mode:t,spaceId:s,title:e.title,planUrl:e.plan_url||null,planFile:null,source:e.plan_url?"file":"draw",showBorders:o.showBorders,showNames:o.showNames,zeroWallStyle:c(e),displayTouched:!0,hideDecor:o.hideDecor,hideOpenings:o.hideOpenings,roomColor:o.color,roomOpacity:o.opacity,fillMode:"none"===o.fill?"custom":o.fill,customFill:p,glowEnabled:o.glow,bgColor:o.bgColor,bgMode:"static"===e.settings?.bg_mode||"daynight"===e.settings?.bg_mode?e.settings.bg_mode:null,northDeg:r({},e.settings),northDegInput:null===r({},e.settings)?"":String(r({},e.settings)),sunRays:"boolean"==typeof e.settings?.sun_rays?e.settings.sun_rays:null,tempMin:o.tempMin,tempMax:o.tempMax,tempMinInput:String(o.tempMin),tempMaxInput:String(o.tempMax),showLqi:o.showLqi??this.host._config?.show_signal??!0,cardFontScale:o.cardFontScale,labelTemp:o.labelTemp,labelHum:o.labelHum,labelLqi:o.labelLqi,labelLight:o.labelLight,cellCm:Number(e.cell_cm)>0?Number(e.cell_cm):5,cellCmInput:n(Number(e.cell_cm)>0?Number(e.cell_cm):5,this.host._imperial),cellCmTouched:!1,busy:!1})}const e=p(this.host._imperial);this.host._spaceDialog={mode:t,title:"",planUrl:null,planFile:null,...m(),hideDecor:!1,hideOpenings:!1,zeroWallStyle:"dashed",roomColor:g,roomOpacity:u,fillMode:"custom",customFill:{...h,a:0},glowEnabled:!0,bgColor:null,bgMode:"daynight",northDeg:null,northDegInput:"",sunRays:null,tempMin:_,tempMax:d,tempMinInput:String(_),tempMaxInput:String(d),showLqi:this.host._config?.show_signal??!0,cardFontScale:1,labelTemp:!1,labelHum:!1,labelLqi:!1,labelLight:!1,cellCm:e,cellCmInput:n(e,this.host._imperial),cellCmTouched:!1,busy:!1},f(this.host,this.host._spaceDialog)}async _pickPlanFile(t){const s=t.target,e=s.files?.[0];if(!e||!this.host._spaceDialog)return;s.value="";const o=await v(e);if("reject"===o.kind)return void this.host._showToast(this.host._t("toast.plan_formats"));if("guard"===o.kind)return void(this.host._backdropGuard=o.state);const i=await y(e,o.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:i})}_renderBackdropGuard(){return D(this.host,t=>{this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:t})},()=>{this.host._backdropGuard=null},this.host.hass)??e}_useServerPlan(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,planUrl:t,planFile:null,pickSaved:!1,savedAspect:void 0},this.host._aspectJob=this._readPlanAspect(t))}async _readPlanAspect(t){for(let s=0;s<40;s++){const s=this.host._display(t);if(s){const e=await new Promise(t=>{const e=new Image;e.onload=()=>t(e.naturalWidth&&e.naturalHeight?e.naturalWidth/e.naturalHeight:0),e.onerror=()=>t(0),e.src=s}),o=this.host._spaceDialog;return o&&o.planUrl===t&&Number.isFinite(e)&&e>0?(this.host._spaceDialog={...o,savedAspect:e},e):0}if(await new Promise(t=>setTimeout(t,150)),this.host._spaceDialog?.planUrl!==t)return 0}return 0}async _deleteServerPlan(t){const s=this.host._spaceDialog,e=s?.saved?.find(s=>s.name===t);if(!s||!e||e.used_by.length||e.url===s.planUrl)return;const o=await this.host._confirmDanger({key:"delete-plan",kind:"destructive",title:this.host._t("confirm.delete_plan_title"),message:this.host._t("confirm.delete_plan_body"),objectName:t,confirmLabel:this.host._t("btn.delete"),cancelLabel:this.host._t("btn.cancel")}),i=this.host._spaceDialog,a=i?.saved?.find(s=>s.name===t);if(o&&i&&a&&a.url===e.url&&a.modified===e.modified&&!a.used_by.length&&a.url!==i.planUrl)try{await this.host.hass.callWS({type:"houseplan/plans/delete",name:t});const s=this.host._spaceDialog;s?.saved&&(this.host._spaceDialog={...s,saved:s.saved.filter(s=>s.name!==t)})}catch(t){this.host._showToast(this.host._t("toast.plan_delete_failed",{err:this.host._errText(t)}))}}_renderServerPlans(t){if(t.savedBusy)return i`<div class="savedplans muted">${this.host._t("space.loading")}</div>`;const s=t.saved||[];if(!s.length)return i`<div class="savedplans muted">${this.host._t("space.no_saved")}</div>`;return i`<div class="savedplans">
${s.map(s=>{return i`
<div class="savedplan ${s.url===t.planUrl?"cur":""}">
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f";import{c as a,A as e}from"./houseplan-card-BLjfDMVp.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-6n_p_IDv.js";import"./form-kit.styles-D0x_MDAu.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="09eee3d41357369f29bbd17ea4021a57f935e964efbde97ecd2883e2bf1259dc";import{c as a,A as e}from"./houseplan-card-xjcAWvNG.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-Cpaii3Qi.js";import"./form-kit.styles-PP1WZrH6.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
<span class="summary-switch-caption"><strong>${b("summary.show_local")}</strong>
<small id="summary-local-show-hint">${b("summary.show_local_hint")}</small></span>
<input id="summary-local-show" data-summary-local-show type="checkbox"
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f";import{ek as e,N as t,a$ as n,L as i,ae as o,ac as r,bT as s,bS as a,a_ as l,aZ as c,b0 as u,el as d,em as f,bV as m,en as g}from"./houseplan-card-BLjfDMVp.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,l="entity"===r?e.registry.entities?.[s]:null,c="device"===r?s:l?.device_id,u="device"===r?a?.area_id:l?.area_id||c&&e.registry.devices?.[c]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;c&&e.registry.devices?.[c]&&e.spaceIds.has(f)&&(!n.devices.has(c)||"entity"===r&&n.liveEntities.has(s))&&t.add(c)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=l(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:c(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*b(l,c,u=_){try{let d=0;for(const f of c){const c=l.spaces.find(e=>String(e?.id)===f.id);if(!c)continue;const m=e(c,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const l=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(l,m.physicalBodies)),yield}const _=m.cellCm/o;d+=a(v)*_*_/1e4}return d}catch{return null}}function h(e,t,n=_){const i=b(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function p(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=d(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{b as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,p as summarySystemValue,h as totalCleanFloorAreaM2};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="09eee3d41357369f29bbd17ea4021a57f935e964efbde97ecd2883e2bf1259dc";import{ek as e,N as t,a$ as n,L as i,ae as o,ac as r,bT as s,bS as a,a_ as l,aZ as c,b0 as d,el as u,em as f,bV as m,en as g}from"./houseplan-card-xjcAWvNG.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=d(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,l="entity"===r?e.registry.entities?.[s]:null,c="device"===r?s:l?.device_id,d="device"===r?a?.area_id:l?.area_id||c&&e.registry.devices?.[c]?.area_id,u="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||d||"",f=u&&e.areaToSpace[u]||i.space||e.firstSpaceId;c&&e.registry.devices?.[c]&&e.spaceIds.has(f)&&(!n.devices.has(c)||"entity"===r&&n.liveEntities.has(s))&&t.add(c)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=l(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:c(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*h(l,c,d=_){try{let u=0;for(const f of c){const c=l.spaces.find(e=>String(e?.id)===f.id);if(!c)continue;const m=e(c,f),g=d(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const l=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(l,m.physicalBodies)),yield}const _=m.cellCm/o;u+=a(v)*_*_/1e4}return u}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function b(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=u(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,p as totalCleanFloorAreaM2};
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f";import{n as t,b as n}from"./zigbee-topology-aVRjewRB.js";import{aM as e}from"./houseplan-card-BLjfDMVp.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function p(t){if(!0!==t?.user?.is_admin)throw a("permission")}function f(n){const e=i(n);return e?c(e,"zha",async()=>{if(p(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function m(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function g(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(p(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,f=null,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,g=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const p=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&f?.(n):c&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await m(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await m(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{f as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="09eee3d41357369f29bbd17ea4021a57f935e964efbde97ecd2883e2bf1259dc";import{n as t,b as n}from"./zigbee-topology-Dd0N8cUl.js";import{aM as e}from"./houseplan-card-xjcAWvNG.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function m(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function g(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const f=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&p?.(n):c&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await m(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
+1 -1
View File
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ee4bb90c614d8795523c81996894e4cd97b0b0f9688056806b1360894423e89f";try{await import("./houseplan-assets/houseplan-card-BLjfDMVp.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="09eee3d41357369f29bbd17ea4021a57f935e964efbde97ecd2883e2bf1259dc";try{await import("./houseplan-assets/houseplan-card-xjcAWvNG.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
+1 -1
View File
File diff suppressed because one or more lines are too long