fix(2.5D): make floor shadow twins geometry-only

Render only the core and value-badge geometry needed by the common floor-shadow layer. Avoid mounting hidden icons, activity indicators and satellites for every 2.5D marker.

Issue: #649
User-Visible: no
This commit is contained in:
Sergey Matyunin
2026-09-25 23:05:56 +03:00
parent cc04d341d4
commit 8703727951
70 changed files with 772 additions and 684 deletions
@@ -1,129 +1,129 @@
{
"schema": 1,
"fingerprint": "b7ab2d4a54f63999819303ec484590bcc38e4b87b062d326fc90cf500badb44a",
"fingerprint": "f7157696873d78ffd49935bafb3b63714602550a2abe2ee00a0778cb17e0c260",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-C7RUhMgy.js",
"houseplan-assets/houseplan-card-Bg60kMOY.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 294047,
"initialViewGzipBytes": 294341,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-C7RUhMgy.js",
"houseplan-assets/houseplan-card-Bg60kMOY.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 295570,
"initialPanelGzipBytes": 295864,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2327,
"initialPanelOnlyGzipBytes": 2328,
"lazyFiles": [
"houseplan-assets/backdrop-pick-iy5Lz45w.js",
"houseplan-assets/de-Dkk0Q6GZ.js",
"houseplan-assets/editor-IkIr3S-7.js",
"houseplan-assets/form-kit.styles-DfQeh5cR.js",
"houseplan-assets/fr-DHnEMeek.js",
"houseplan-assets/furniture-plan-art.generated-De8VwELc.js",
"houseplan-assets/houseplan-editor-runtime-D1gBQKQh.js",
"houseplan-assets/houseplan-onboarding-runtime-BIhn89yY.js",
"houseplan-assets/hp-zigbee-topology-overlay-B40ukiAN.js",
"houseplan-assets/iso-scene-render-H5i7y2-q.js",
"houseplan-assets/live-interaction-runtime-gfxiSqsa.js",
"houseplan-assets/namespace-language-U_jlj9nD.js",
"houseplan-assets/pdf-export-DraEBal_.js",
"houseplan-assets/summary-panel-runtime-loaded-DGJKjD35.js",
"houseplan-assets/zigbee-topology-CtKjJEae.js",
"houseplan-assets/zigbee-topology-runtime-DHUEjzxs.js"
"houseplan-assets/backdrop-pick-BrHmkBKG.js",
"houseplan-assets/de-V5cC3Ttx.js",
"houseplan-assets/editor-liOE3B_G.js",
"houseplan-assets/form-kit.styles-BgPQk8cY.js",
"houseplan-assets/fr-1B8rWKlk.js",
"houseplan-assets/furniture-plan-art.generated-TlsAq89U.js",
"houseplan-assets/houseplan-editor-runtime-BdZH8eJV.js",
"houseplan-assets/houseplan-onboarding-runtime-BvtG2OkS.js",
"houseplan-assets/hp-zigbee-topology-overlay-uftP7bY8.js",
"houseplan-assets/iso-scene-render-D89RXWBh.js",
"houseplan-assets/live-interaction-runtime-GxNGZK19.js",
"houseplan-assets/namespace-language-zq-hVFq8.js",
"houseplan-assets/pdf-export-fThz_nIS.js",
"houseplan-assets/summary-panel-runtime-loaded-D0fIG-Q3.js",
"houseplan-assets/zigbee-topology-TeOwXMvQ.js",
"houseplan-assets/zigbee-topology-runtime-BWxSwRhe.js"
],
"lazyGzipBytes": 450758,
"lazyGzipBytes": 450776,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-iy5Lz45w.js",
"houseplan-assets/editor-IkIr3S-7.js",
"houseplan-assets/form-kit.styles-DfQeh5cR.js",
"houseplan-assets/furniture-plan-art.generated-De8VwELc.js",
"houseplan-assets/houseplan-editor-runtime-D1gBQKQh.js",
"houseplan-assets/namespace-language-U_jlj9nD.js",
"houseplan-assets/zigbee-topology-CtKjJEae.js"
"houseplan-assets/backdrop-pick-BrHmkBKG.js",
"houseplan-assets/editor-liOE3B_G.js",
"houseplan-assets/form-kit.styles-BgPQk8cY.js",
"houseplan-assets/furniture-plan-art.generated-TlsAq89U.js",
"houseplan-assets/houseplan-editor-runtime-BdZH8eJV.js",
"houseplan-assets/namespace-language-zq-hVFq8.js",
"houseplan-assets/zigbee-topology-TeOwXMvQ.js"
],
"lazyEditorGzipBytes": 232070,
"lazyEditorGzipBytes": 232079,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-iy5Lz45w.js",
"houseplan-assets/form-kit.styles-DfQeh5cR.js",
"houseplan-assets/houseplan-onboarding-runtime-BIhn89yY.js",
"houseplan-assets/namespace-language-U_jlj9nD.js"
"houseplan-assets/backdrop-pick-BrHmkBKG.js",
"houseplan-assets/form-kit.styles-BgPQk8cY.js",
"houseplan-assets/houseplan-onboarding-runtime-BvtG2OkS.js",
"houseplan-assets/namespace-language-zq-hVFq8.js"
],
"lazyOnboardingGzipBytes": 27949,
"lazyOnboardingGzipBytes": 27955,
"lazyLocaleFiles": [
"houseplan-assets/de-Dkk0Q6GZ.js",
"houseplan-assets/fr-DHnEMeek.js"
"houseplan-assets/de-V5cC3Ttx.js",
"houseplan-assets/fr-1B8rWKlk.js"
],
"lazyLocaleGzipBytes": 55691,
"lazyLocaleGzipBytes": 55695,
"lazyIsometricFiles": [
"houseplan-assets/iso-scene-render-H5i7y2-q.js"
"houseplan-assets/iso-scene-render-D89RXWBh.js"
],
"lazyIsometricGzipBytes": 19199,
"lazyIsometricGzipBytes": 19196,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-De8VwELc.js"
"houseplan-assets/furniture-plan-art.generated-TlsAq89U.js"
],
"lazyFurnitureArtGzipBytes": 16937,
"lazyFurnitureArtGzipBytes": 16939,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-De8VwELc.js",
"houseplan-assets/pdf-export-DraEBal_.js"
"houseplan-assets/furniture-plan-art.generated-TlsAq89U.js",
"houseplan-assets/pdf-export-fThz_nIS.js"
],
"lazyPdfGzipBytes": 126823,
"lazyPdfGzipBytes": 126825,
"lazyNamespaceLocaleFiles": [
"houseplan-assets/settings-de-X3xZabfy.js",
"houseplan-assets/settings-fr-CCrO2P5u.js",
"houseplan-assets/settings-ru-reuUvT2r.js",
"houseplan-assets/support-de-Bww9mQs-.js",
"houseplan-assets/support-fr-CQYCN9gf.js",
"houseplan-assets/support-ru-CUemgWuv.js",
"houseplan-assets/topology-de-CILYHQMD.js",
"houseplan-assets/topology-fr-kiCVSFYK.js",
"houseplan-assets/topology-ru-xIBBarah.js"
"houseplan-assets/settings-de-BMHTQ472.js",
"houseplan-assets/settings-fr-D8SL6nFA.js",
"houseplan-assets/settings-ru-BumtHm9r.js",
"houseplan-assets/support-de-CktcHcBj.js",
"houseplan-assets/support-fr-DVTMYo_D.js",
"houseplan-assets/support-ru-CzccOaBw.js",
"houseplan-assets/topology-de-D6B49_YR.js",
"houseplan-assets/topology-fr-BFckU28X.js",
"houseplan-assets/topology-ru-DChJy_0v.js"
],
"lazyNamespaceLocaleGzipBytes": 21065,
"lazyNamespaceLocaleGzipBytes": 21069,
"files": [
{
"path": "houseplan-assets/backdrop-pick-iy5Lz45w.js",
"sha256": "46d2520e8fc357a8d491ce3ed15513752f0402131318ffa0deb335ae36b736f8",
"path": "houseplan-assets/backdrop-pick-BrHmkBKG.js",
"sha256": "74a43a21d9a75b867451b67bd2b24473c078fbe1b46ad986c17afaf911444c81",
"rawBytes": 54017,
"gzipBytes": 17575,
"gzipBytes": 17577,
"isEntry": false,
"imports": [
"houseplan-assets/form-kit.styles-DfQeh5cR.js",
"houseplan-assets/houseplan-card-C7RUhMgy.js",
"houseplan-assets/namespace-language-U_jlj9nD.js"
"houseplan-assets/form-kit.styles-BgPQk8cY.js",
"houseplan-assets/houseplan-card-Bg60kMOY.js",
"houseplan-assets/namespace-language-zq-hVFq8.js"
],
"dynamicImports": [
"houseplan-assets/settings-de-X3xZabfy.js",
"houseplan-assets/settings-fr-CCrO2P5u.js",
"houseplan-assets/settings-ru-reuUvT2r.js"
"houseplan-assets/settings-de-BMHTQ472.js",
"houseplan-assets/settings-fr-D8SL6nFA.js",
"houseplan-assets/settings-ru-BumtHm9r.js"
]
},
{
"path": "houseplan-assets/de-Dkk0Q6GZ.js",
"sha256": "9179183ba9c9fa2701356c3fd653601e79951253041a8f15d5b61781f48e9ffb",
"path": "houseplan-assets/de-V5cC3Ttx.js",
"sha256": "a54d34755d17b0dcf8c67f06c5a44270aa92e432604212c8cae5cd09b81a5a0f",
"rawBytes": 93055,
"gzipBytes": 28070,
"gzipBytes": 28072,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-IkIr3S-7.js",
"sha256": "45d052e80651d099bf2d51ed4e6391530aa81c33ce72e5f69e4757de31b7c73e",
"path": "houseplan-assets/editor-liOE3B_G.js",
"sha256": "ad91e43587567e1aad1cc8f183a9b98ba470562464c5801f1e7995b7174a9c89",
"rawBytes": 3833,
"gzipBytes": 1583,
"gzipBytes": 1585,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-C7RUhMgy.js"
"houseplan-assets/houseplan-card-Bg60kMOY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/form-kit.styles-DfQeh5cR.js",
"sha256": "29fb8896f961f0a2eb18c170452dc66636bb2174f4ffddb147f448dc4c962164",
"path": "houseplan-assets/form-kit.styles-BgPQk8cY.js",
"sha256": "5c8d359ddba20c58a58d9d86453048b20d272645e43db50e938884c65f9f6316",
"rawBytes": 25600,
"gzipBytes": 5056,
"isEntry": false,
@@ -131,141 +131,141 @@
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-DHnEMeek.js",
"sha256": "85cd91be4bfc9004e3d7f33efd2b2d66a66d18a5a822739746a042b6c4fe1112",
"path": "houseplan-assets/fr-1B8rWKlk.js",
"sha256": "3d4866972e9bbd0dc74db2e66c71f8cbd4057b645a6045d5a1bcba8f7581b972",
"rawBytes": 95410,
"gzipBytes": 27621,
"gzipBytes": 27623,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-De8VwELc.js",
"sha256": "0bb06cb0e88cc4a84c1e0d2fc871346137e4ea204b6aefa7843cac779c1a02ba",
"path": "houseplan-assets/furniture-plan-art.generated-TlsAq89U.js",
"sha256": "be2661e9238752f64efcebe95e25a8785bca4b62fb386eb42f0f2a0a84f2670d",
"rawBytes": 52035,
"gzipBytes": 16937,
"gzipBytes": 16939,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-C7RUhMgy.js",
"sha256": "5e8d00b23505e9fc4ae84ae9492aef7277dc9d0f550a2105520f67c74a6bce6d",
"rawBytes": 1037812,
"gzipBytes": 293243,
"path": "houseplan-assets/houseplan-card-Bg60kMOY.js",
"sha256": "438b20a04573d2c00e56f9c60f3e220fff6fa943642e248290439dfd79b28d6e",
"rawBytes": 1038728,
"gzipBytes": 293536,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-Dkk0Q6GZ.js",
"houseplan-assets/editor-IkIr3S-7.js",
"houseplan-assets/fr-DHnEMeek.js",
"houseplan-assets/furniture-plan-art.generated-De8VwELc.js",
"houseplan-assets/houseplan-editor-runtime-D1gBQKQh.js",
"houseplan-assets/houseplan-onboarding-runtime-BIhn89yY.js",
"houseplan-assets/hp-zigbee-topology-overlay-B40ukiAN.js",
"houseplan-assets/iso-scene-render-H5i7y2-q.js",
"houseplan-assets/live-interaction-runtime-gfxiSqsa.js",
"houseplan-assets/pdf-export-DraEBal_.js",
"houseplan-assets/summary-panel-runtime-loaded-DGJKjD35.js"
"houseplan-assets/de-V5cC3Ttx.js",
"houseplan-assets/editor-liOE3B_G.js",
"houseplan-assets/fr-1B8rWKlk.js",
"houseplan-assets/furniture-plan-art.generated-TlsAq89U.js",
"houseplan-assets/houseplan-editor-runtime-BdZH8eJV.js",
"houseplan-assets/houseplan-onboarding-runtime-BvtG2OkS.js",
"houseplan-assets/hp-zigbee-topology-overlay-uftP7bY8.js",
"houseplan-assets/iso-scene-render-D89RXWBh.js",
"houseplan-assets/live-interaction-runtime-GxNGZK19.js",
"houseplan-assets/pdf-export-fThz_nIS.js",
"houseplan-assets/summary-panel-runtime-loaded-D0fIG-Q3.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-D1gBQKQh.js",
"sha256": "bcc20ed31852ef48369384dcb8a405e8569b0fecc7de5cd6860606ecd754a44f",
"path": "houseplan-assets/houseplan-editor-runtime-BdZH8eJV.js",
"sha256": "fdbc8fd4391072be91a2be1f2c00899ca05bbe46e654dd20ade4dd613958f5c0",
"rawBytes": 667537,
"gzipBytes": 186206,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-iy5Lz45w.js",
"houseplan-assets/form-kit.styles-DfQeh5cR.js",
"houseplan-assets/furniture-plan-art.generated-De8VwELc.js",
"houseplan-assets/houseplan-card-C7RUhMgy.js",
"houseplan-assets/namespace-language-U_jlj9nD.js",
"houseplan-assets/zigbee-topology-CtKjJEae.js"
"houseplan-assets/backdrop-pick-BrHmkBKG.js",
"houseplan-assets/form-kit.styles-BgPQk8cY.js",
"houseplan-assets/furniture-plan-art.generated-TlsAq89U.js",
"houseplan-assets/houseplan-card-Bg60kMOY.js",
"houseplan-assets/namespace-language-zq-hVFq8.js",
"houseplan-assets/zigbee-topology-TeOwXMvQ.js"
],
"dynamicImports": [
"houseplan-assets/support-de-Bww9mQs-.js",
"houseplan-assets/support-fr-CQYCN9gf.js",
"houseplan-assets/support-ru-CUemgWuv.js",
"houseplan-assets/zigbee-topology-runtime-DHUEjzxs.js"
"houseplan-assets/support-de-CktcHcBj.js",
"houseplan-assets/support-fr-DVTMYo_D.js",
"houseplan-assets/support-ru-CzccOaBw.js",
"houseplan-assets/zigbee-topology-runtime-BWxSwRhe.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-BIhn89yY.js",
"sha256": "3cc873cee66a6fbcbf5d80d4b739b4a6a18ddcd9fcc400d1cf5ea14405a2586d",
"path": "houseplan-assets/houseplan-onboarding-runtime-BvtG2OkS.js",
"sha256": "275d9cd6abb3a68b5037f62253de1b6de72a8537c791391e46b1cc84ec641aa7",
"rawBytes": 15886,
"gzipBytes": 4907,
"gzipBytes": 4910,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-iy5Lz45w.js",
"houseplan-assets/form-kit.styles-DfQeh5cR.js",
"houseplan-assets/houseplan-card-C7RUhMgy.js",
"houseplan-assets/namespace-language-U_jlj9nD.js"
"houseplan-assets/backdrop-pick-BrHmkBKG.js",
"houseplan-assets/form-kit.styles-BgPQk8cY.js",
"houseplan-assets/houseplan-card-Bg60kMOY.js",
"houseplan-assets/namespace-language-zq-hVFq8.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-B40ukiAN.js",
"sha256": "3198ead9dd08350e9fda2e97d42f83ca60527a1a8d8a8240726ec197871d169b",
"path": "houseplan-assets/hp-zigbee-topology-overlay-uftP7bY8.js",
"sha256": "2d38d83e841ef117d5274b8ef39ff8a44f43d4e3be81439f36a5fa0b1d111928",
"rawBytes": 10958,
"gzipBytes": 3766,
"gzipBytes": 3767,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-C7RUhMgy.js",
"houseplan-assets/namespace-language-U_jlj9nD.js",
"houseplan-assets/zigbee-topology-CtKjJEae.js",
"houseplan-assets/zigbee-topology-runtime-DHUEjzxs.js"
"houseplan-assets/houseplan-card-Bg60kMOY.js",
"houseplan-assets/namespace-language-zq-hVFq8.js",
"houseplan-assets/zigbee-topology-TeOwXMvQ.js",
"houseplan-assets/zigbee-topology-runtime-BWxSwRhe.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-H5i7y2-q.js",
"sha256": "372e4b5d67b5f5839b2cdae7ce16b4250b1f430d747d9d5fe6a643ee039283db",
"path": "houseplan-assets/iso-scene-render-D89RXWBh.js",
"sha256": "bf457a5d9e19305506fc4ff4d1a5766065dadd8271fc6c8cc09f358b09575ed7",
"rawBytes": 56457,
"gzipBytes": 19199,
"gzipBytes": 19196,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-C7RUhMgy.js"
"houseplan-assets/houseplan-card-Bg60kMOY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-gfxiSqsa.js",
"sha256": "48a2f30b841d5b8426863cf7d0ddf4787489753a8926e4c13b3350366ec71db8",
"path": "houseplan-assets/live-interaction-runtime-GxNGZK19.js",
"sha256": "34e7fd38751a83786ddfef5867d28d82bf44b4f9831b20c4dee64938a33fa759",
"rawBytes": 8216,
"gzipBytes": 3208,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-C7RUhMgy.js"
"houseplan-assets/houseplan-card-Bg60kMOY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/namespace-language-U_jlj9nD.js",
"sha256": "f7159337171f339fc68fc91b297d88429e868691f219e5ba1d1e208ede84c79c",
"path": "houseplan-assets/namespace-language-zq-hVFq8.js",
"sha256": "95a270960cadae44805559de7367a4143435f3fc67d18282689bb20c6e69e014",
"rawBytes": 675,
"gzipBytes": 411,
"gzipBytes": 412,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-C7RUhMgy.js"
"houseplan-assets/houseplan-card-Bg60kMOY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-DraEBal_.js",
"sha256": "4f4b4e1c41fabe3802e989d58943aa831a7529ba161fc906fe331ba2f35e528e",
"path": "houseplan-assets/pdf-export-fThz_nIS.js",
"sha256": "f12f8a157465ef89b115eac254e39f4bfb9d6a428c6444dd5d38d243145c8380",
"rawBytes": 236264,
"gzipBytes": 109886,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-De8VwELc.js",
"houseplan-assets/houseplan-card-C7RUhMgy.js"
"houseplan-assets/furniture-plan-art.generated-TlsAq89U.js",
"houseplan-assets/houseplan-card-Bg60kMOY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/settings-de-X3xZabfy.js",
"sha256": "6d2ee3d4cc083a59b2a7724066b54d7167d0c751cbe15272fed5636578f03588",
"path": "houseplan-assets/settings-de-BMHTQ472.js",
"sha256": "b16c103ebed5c1e56bcfa42b97dc2d5fee85358d891447e114e941bffce1bd56",
"rawBytes": 7378,
"gzipBytes": 2880,
"isEntry": false,
@@ -273,17 +273,17 @@
"dynamicImports": []
},
{
"path": "houseplan-assets/settings-fr-CCrO2P5u.js",
"sha256": "ec1125fe35260e67c2929dde9fcb9f8c18365fa7aa82aa3d10541f81cab20854",
"path": "houseplan-assets/settings-fr-D8SL6nFA.js",
"sha256": "80b5a2ae94a6ee28edecfa719ab0dfaa140b78f5ff746555bc82153bbe5fdd81",
"rawBytes": 7620,
"gzipBytes": 2842,
"gzipBytes": 2843,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/settings-ru-reuUvT2r.js",
"sha256": "e0909d9cf4548f50e659c731c67fdccc7463a1bfc946199dd2106f96690b912f",
"path": "houseplan-assets/settings-ru-BumtHm9r.js",
"sha256": "12bb199843170225f3530fc0e36a54d239da03a7f34ecc304f7c8fbfa0b5d1ae",
"rawBytes": 10304,
"gzipBytes": 3326,
"isEntry": false,
@@ -291,47 +291,47 @@
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-BrFsV4Fy.js",
"sha256": "65b82f426d818c85f82bee32e398ada7ae0475fd4a8dc807ec251d7fd68ebbbc",
"rawBytes": 14867,
"gzipBytes": 3429,
"path": "houseplan-assets/summary-panel-editor-BkZaI2dp.js",
"sha256": "f9162891a45296b376dbc55edde9385542461fc1d29d95921a33ea0e96b86d6c",
"rawBytes": 14862,
"gzipBytes": 3427,
"isEntry": false,
"imports": [
"houseplan-assets/form-kit.styles-DfQeh5cR.js",
"houseplan-assets/houseplan-card-C7RUhMgy.js",
"houseplan-assets/summary-panel-runtime-loaded-DGJKjD35.js"
"houseplan-assets/form-kit.styles-BgPQk8cY.js",
"houseplan-assets/houseplan-card-Bg60kMOY.js",
"houseplan-assets/summary-panel-runtime-loaded-D0fIG-Q3.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-BluptzNV.js",
"sha256": "4e0a24ab22cd384abccdc35ca5a8830320d663428003018d033af22debf39f3f",
"path": "houseplan-assets/summary-panel-metrics-DzfhHOP_.js",
"sha256": "558994e1af0d59e45390f77c1829340bedbecc844716707c8d4c4b08e3d51245",
"rawBytes": 2611,
"gzipBytes": 1308,
"gzipBytes": 1309,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-C7RUhMgy.js"
"houseplan-assets/houseplan-card-Bg60kMOY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-DGJKjD35.js",
"sha256": "44d76e13d1a9d4986ccaec294de61f762ba901725141811cf0cc9f4b29c01f57",
"path": "houseplan-assets/summary-panel-runtime-loaded-D0fIG-Q3.js",
"sha256": "a830e752eeaafe128add5d7eef3e4e580e5d6da8d08a2612f2bacd200d7938a9",
"rawBytes": 72956,
"gzipBytes": 20241,
"gzipBytes": 20242,
"isEntry": false,
"imports": [
"houseplan-assets/form-kit.styles-DfQeh5cR.js",
"houseplan-assets/houseplan-card-C7RUhMgy.js"
"houseplan-assets/form-kit.styles-BgPQk8cY.js",
"houseplan-assets/houseplan-card-Bg60kMOY.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-BrFsV4Fy.js",
"houseplan-assets/summary-panel-metrics-BluptzNV.js"
"houseplan-assets/summary-panel-editor-BkZaI2dp.js",
"houseplan-assets/summary-panel-metrics-DzfhHOP_.js"
]
},
{
"path": "houseplan-assets/support-de-Bww9mQs-.js",
"sha256": "432bb51cab719276d8617af24732dbc7bd2fb29f62c0d09f5e0fd45c24c082ee",
"path": "houseplan-assets/support-de-CktcHcBj.js",
"sha256": "11123e521d135ebea86ed1ec7339dc90d974e7bb825f6be48adc92e282304b5e",
"rawBytes": 6167,
"gzipBytes": 2398,
"isEntry": false,
@@ -339,98 +339,98 @@
"dynamicImports": []
},
{
"path": "houseplan-assets/support-fr-CQYCN9gf.js",
"sha256": "5fd57807a1f427a498f1b9f80274ae009c7f91bcb74d7ebe64e06ad5ad8d2932",
"path": "houseplan-assets/support-fr-DVTMYo_D.js",
"sha256": "65ecb04f3752aeb754eaac3d4b3160df74874b4b4f9eb8c18c7133de36026c4b",
"rawBytes": 6333,
"gzipBytes": 2432,
"gzipBytes": 2433,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/support-ru-CUemgWuv.js",
"sha256": "1e1564725a3ae0152af79ab9e0fa0808d2e52a1406f797dd0b1a7d14496e2ec6",
"path": "houseplan-assets/support-ru-CzccOaBw.js",
"sha256": "89badfdf3f8173fadf058269fd877fecf991c0473a6a93f1cd2c779ef46502a8",
"rawBytes": 8376,
"gzipBytes": 2877,
"gzipBytes": 2876,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/topology-de-CILYHQMD.js",
"sha256": "93bbc65956192707e09b478f5a3e42aecfecb2847c146b044bdcbb029a9fbe30",
"path": "houseplan-assets/topology-de-D6B49_YR.js",
"sha256": "21c338625cbb25232b3d9586d2f27666c3262de4770a7ce3b2c09ee13692bd16",
"rawBytes": 2698,
"gzipBytes": 1338,
"gzipBytes": 1339,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/topology-fr-kiCVSFYK.js",
"sha256": "6c06e8f3f2bbf956baf7407d85b55ff310402a27879614a5632267ac616402a6",
"path": "houseplan-assets/topology-fr-BFckU28X.js",
"sha256": "d2e8f64e3bf668e545ca365d5c6ae3ec5d1dbe16649ae315b6cafb5eaef0f567",
"rawBytes": 2718,
"gzipBytes": 1356,
"gzipBytes": 1357,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/topology-ru-xIBBarah.js",
"sha256": "853743ee9719f60ea7a999faa919fb9ba89c489066f890c1038f6b9b10f94428",
"path": "houseplan-assets/topology-ru-DChJy_0v.js",
"sha256": "83e7c562c23041767fe89d97ad4fa6f7fa9c01aee935babf6c5811ab59d45c35",
"rawBytes": 3669,
"gzipBytes": 1616,
"gzipBytes": 1617,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-CtKjJEae.js",
"sha256": "521585e2afc2f7ac85c7241e60574c4f7a035b8350de73c64bd6e3b05ed369f4",
"rawBytes": 10958,
"gzipBytes": 4302,
"path": "houseplan-assets/zigbee-topology-runtime-BWxSwRhe.js",
"sha256": "f4654a348362647ae149785f68e8f9ea196b7ddab3a7d53812ae6d039b3a1a13",
"rawBytes": 3983,
"gzipBytes": 1793,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-C7RUhMgy.js",
"houseplan-assets/namespace-language-U_jlj9nD.js"
"houseplan-assets/houseplan-card-Bg60kMOY.js",
"houseplan-assets/namespace-language-zq-hVFq8.js",
"houseplan-assets/zigbee-topology-TeOwXMvQ.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-TeOwXMvQ.js",
"sha256": "84c0c429c8663ab3ad8673f816ab38e29a87cc9663903e037ccb930b01f3a263",
"rawBytes": 10958,
"gzipBytes": 4304,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Bg60kMOY.js",
"houseplan-assets/namespace-language-zq-hVFq8.js"
],
"dynamicImports": [
"houseplan-assets/topology-de-CILYHQMD.js",
"houseplan-assets/topology-fr-kiCVSFYK.js",
"houseplan-assets/topology-ru-xIBBarah.js"
"houseplan-assets/topology-de-D6B49_YR.js",
"houseplan-assets/topology-fr-BFckU28X.js",
"houseplan-assets/topology-ru-DChJy_0v.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-runtime-DHUEjzxs.js",
"sha256": "a31cc8e0c4d241151bc832a81fd52b4067d520b206ecc3ce4db464d48300a335",
"rawBytes": 3983,
"gzipBytes": 1790,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-C7RUhMgy.js",
"houseplan-assets/namespace-language-U_jlj9nD.js",
"houseplan-assets/zigbee-topology-CtKjJEae.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "dc325c0b1ca74a82450aa6bd88e785168df48c25ac3df1ad8b2bbe8ee3759433",
"sha256": "7fdb4c193f8b038df40717557b5dc2eba6550080e916734b64b5cce815a3059b",
"rawBytes": 1205,
"gzipBytes": 804,
"gzipBytes": 805,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-C7RUhMgy.js"
"houseplan-assets/houseplan-card-Bg60kMOY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "98e2596e65c5dd55728ede8360ecff31f730eb139d57860a3cf824a0b9c10fd0",
"sha256": "69a82abf193431e19830f896f9481e32e3669f8b1bd1b6808c259994ccdfeb3f",
"rawBytes": 6165,
"gzipBytes": 2327,
"gzipBytes": 2328,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-C7RUhMgy.js"
"houseplan-assets/houseplan-card-Bg60kMOY.js"
],
"dynamicImports": []
}
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b7ab2d4a54f63999819303ec484590bcc38e4b87b062d326fc90cf500badb44a";import{aD as e,l as o,aG as t,ek as s,A as a,el as i,em as l,en as n,E as r,c}from"./houseplan-card-C7RUhMgy.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__="f7157696873d78ffd49935bafb3b63714602550a2abe2ee00a0778cb17e0c260";import{aD as e,l as o,aG as t,ek as s,A as a,el as i,em as l,en as n,E as r,c}from"./houseplan-card-Bg60kMOY.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}
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b7ab2d4a54f63999819303ec484590bcc38e4b87b062d326fc90cf500badb44a";import{l as t,bC as s,A as e,aG as o,c as i,m as a,cM as l,cN as h,cO as n,by as r,cP as c,cU as p,cQ as d,cR as _,cS as u,cT as g,cV as m,cW as b}from"./houseplan-card-C7RUhMgy.js";import{z as f,A as v,C as y,D,E as w,G as S,H as $,I as C,n as M,S as k}from"./backdrop-pick-iy5Lz45w.js";import{s as I}from"./namespace-language-U_jlj9nD.js";import"./form-kit.styles-DfQeh5cR.js";const T="b7ab2d4a54f63999819303ec484590bcc38e4b87b062d326fc90cf500badb44a",x=I([k]);class F{constructor(t){this.host=t,this.languageRuntime=x,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__="f7157696873d78ffd49935bafb3b63714602550a2abe2ee00a0778cb17e0c260";import{l as t,bC as s,A as e,aG as o,c as i,m as a,cM as l,cN as h,cO as n,by as r,cP as c,cU as p,cQ as d,cR as _,cS as u,cT as g,cV as m,cW as b}from"./houseplan-card-Bg60kMOY.js";import{z as f,A as v,C as y,D,E as w,G as S,H as $,I as C,n as M,S as k}from"./backdrop-pick-BrHmkBKG.js";import{s as I}from"./namespace-language-zq-hVFq8.js";import"./form-kit.styles-BgPQk8cY.js";const T="f7157696873d78ffd49935bafb3b63714602550a2abe2ee00a0778cb17e0c260",x=I([k]);class F{constructor(t){this.host=t,this.languageRuntime=x,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(this.host,e);o&&this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:o})}_renderBackdropGuard(){return y(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":""}">
@@ -1 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b7ab2d4a54f63999819303ec484590bcc38e4b87b062d326fc90cf500badb44a";import{ep as e,eq as n,em as a}from"./houseplan-card-C7RUhMgy.js";function c(a,c){return new e([{code:"en",dictionary:a},{code:"ru",loadDictionary:c.ru},{code:"de",loadDictionary:c.de},{code:"fr",loadDictionary:c.fr}],"b7ab2d4a54f63999819303ec484590bcc38e4b87b062d326fc90cf500badb44a",console.warn,n)}function o(e){return function(e,n){return{state:a=>{const c=e.state(a);return"pending"!==c&&n.some(e=>"pending"===e.state(a))?"pending":c},dictionary:n=>e.dictionary(n),ensure:a=>Promise.all([e,...n].map(e=>e.ensure(a))).then(()=>{})}}(a,e)}export{c as n,o as s};
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f7157696873d78ffd49935bafb3b63714602550a2abe2ee00a0778cb17e0c260";import{ep as e,eq as n,em as a}from"./houseplan-card-Bg60kMOY.js";function o(a,o){return new e([{code:"en",dictionary:a},{code:"ru",loadDictionary:o.ru},{code:"de",loadDictionary:o.de},{code:"fr",loadDictionary:o.fr}],"f7157696873d78ffd49935bafb3b63714602550a2abe2ee00a0778cb17e0c260",console.warn,n)}function r(e){return function(e,n){return{state:a=>{const o=e.state(a);return"pending"!==o&&n.some(e=>"pending"===e.state(a))?"pending":o},dictionary:n=>e.dictionary(n),ensure:a=>Promise.all([e,...n].map(e=>e.ensure(a))).then(()=>{})}}(a,e)}export{o as n,r as s};
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b7ab2d4a54f63999819303ec484590bcc38e4b87b062d326fc90cf500badb44a";import{c as a,A as s}from"./houseplan-card-C7RUhMgy.js";import{s as e,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-DGJKjD35.js";import"./form-kit.styles-DfQeh5cR.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&&!e(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(s=>s.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__="f7157696873d78ffd49935bafb3b63714602550a2abe2ee00a0778cb17e0c260";import{c as a,A as e}from"./houseplan-card-Bg60kMOY.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-D0fIG-Q3.js";import"./form-kit.styles-BgPQk8cY.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"
@@ -10,31 +10,31 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b7ab2d4a54f63999819303ec484590bcc38e
dismiss-on-scrim aria-busy=${String(d.busy)}
@hp-close=${k}>
<div class="body summary-editor" @click=${()=>m.closeSource()}>
${d.localOnly?a`<p class="summary-local-hint">${b(d.localOnlyHint)}</p>`:s}
${d.localOnly?a`<p class="summary-local-hint">${b(d.localOnlyHint)}</p>`:e}
<section class="summary-general" aria-labelledby="summary-general-title">
<h3 id="summary-general-title">${b("summary.general_settings")}</h3>
<div class="summary-general-grid">
${d.localOnly?s:a`<div class="summary-field">
${d.localOnly?e:a`<div class="summary-field">
<label for="summary-panel-title">${b("summary.panel_title")}</label>
<input id="summary-panel-title" type="text" .value=${d.draft.title}
?disabled=${d.busy}
data-summary-error=${String(d.attempted&&"title"===y?.path)}
aria-invalid=${"error"===v("title")?.kind?"true":"false"}
@input=${a=>m.mutate(s=>{s.title=a.target.value})} />
${v("title")?a`<div class="summary-problem error">${h(v("title"))}</div>`:s}
@input=${a=>m.mutate(e=>{e.title=a.target.value})} />
${v("title")?a`<div class="summary-problem error">${h(v("title"))}</div>`:e}
</div>`}
${g}
${d.localOnly?s:a`<label class="summary-switch" for="summary-mobile-show">
${d.localOnly?e:a`<label class="summary-switch" for="summary-mobile-show">
<span class="summary-switch-caption"><strong>${b("summary.show_mobile")}</strong>
<small id="summary-mobile-show-hint">${b("summary.show_mobile_hint")}</small></span>
<input id="summary-mobile-show" data-summary-mobile-show type="checkbox"
.checked=${d.draft.show_on_mobile} ?disabled=${!d.localShow||d.busy}
aria-label=${b("summary.show_mobile")} aria-describedby="summary-mobile-show-hint"
@change=${a=>m.mutate(s=>{s.show_on_mobile=a.target.checked})} /></label>`}
@change=${a=>m.mutate(e=>{e.show_on_mobile=a.target.checked})} /></label>`}
</div>
${m.storageUnavailable?a`<div class="summary-problem warning">${b("summary.storage_unavailable")}</div>`:s}
${m.storageUnavailable?a`<div class="summary-problem warning">${b("summary.storage_unavailable")}</div>`:e}
</section>
${d.localOnly?s:a`
${d.localOnly?e:a`
<section class="summary-blocks-card" aria-labelledby="summary-blocks-title">
<header class="summary-blocks-heading">
<div><h3 id="summary-blocks-title">${b("summary.blocks")}</h3>
@@ -42,7 +42,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b7ab2d4a54f63999819303ec484590bcc38e
<span class="summary-block-count">${b("summary.block_count").replace("{count}",String(d.draft.blocks.length)).replace("{limit}","10")}</span>
</header>
<div class="summary-editor-blocks">
${d.draft.blocks.map((e,t)=>{const u=`blocks.${t}`,n=v(`${u}.scope`);return a`<article class="summary-editor-block"
${d.draft.blocks.map((s,t)=>{const u=`blocks.${t}`,n=v(`${u}.scope`);return a`<article class="summary-editor-block"
@dragover=${a=>a.preventDefault()}
@drop=${a=>m.drop(a,`block:${t}`)}>
<div class="summary-block-head">
@@ -57,40 +57,40 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b7ab2d4a54f63999819303ec484590bcc38e
?disabled=${t===d.draft.blocks.length-1||d.busy}
@click=${()=>m.mutate(a=>{a.blocks=r(a.blocks,t,t+1)})}>${l("down")}</button>
</div>
<input class="summary-block-title" type="text" .value=${e.title}
<input class="summary-block-title" type="text" .value=${s.title}
placeholder=${b("summary.block_title")} aria-label=${b("summary.block_title")}
?disabled=${d.busy}
data-summary-error=${String(d.attempted&&y?.path===`${u}.title`)}
aria-invalid=${"error"===v(`${u}.title`)?.kind?"true":"false"}
@input=${a=>m.mutate(s=>{s.blocks[t].title=a.target.value})} />
@input=${a=>m.mutate(e=>{e.blocks[t].title=a.target.value})} />
<button class="summary-icon-button summary-visibility" type="button"
?disabled=${d.busy} aria-pressed=${String(e.visible)}
title=${b(e.visible?"summary.hide_block":"summary.show_block")}
aria-label=${b(e.visible?"summary.hide_block":"summary.show_block")}
@click=${()=>m.mutate(a=>{a.blocks[t].visible=!a.blocks[t].visible})}>${l(e.visible?"eye":"eyeOff")}</button>
${v(`${u}.title`)?a`<div class="summary-problem error summary-block-title-error">${h(v(`${u}.title`))}</div>`:s}
?disabled=${d.busy} aria-pressed=${String(s.visible)}
title=${b(s.visible?"summary.hide_block":"summary.show_block")}
aria-label=${b(s.visible?"summary.hide_block":"summary.show_block")}
@click=${()=>m.mutate(a=>{a.blocks[t].visible=!a.blocks[t].visible})}>${l(s.visible?"eye":"eyeOff")}</button>
${v(`${u}.title`)?a`<div class="summary-problem error summary-block-title-error">${h(v(`${u}.title`))}</div>`:e}
<div class="summary-scope">
<select .value=${e.scope.type} ?disabled=${d.busy}
<select .value=${s.scope.type} ?disabled=${d.busy}
aria-label=${b("summary.scope")}
@change=${a=>m.mutate(s=>{s.blocks[t].scope="space"===a.target.value?{type:"space",space_id:c._space}:{type:"all"}})}>
<option value="all" ?selected=${"all"===e.scope.type}>${b("summary.scope_all")}</option>
<option value="space" ?selected=${"space"===e.scope.type}>${b("summary.scope_space")}</option>
@change=${a=>m.mutate(e=>{e.blocks[t].scope="space"===a.target.value?{type:"space",space_id:c._space}:{type:"all"}})}>
<option value="all" ?selected=${"all"===s.scope.type}>${b("summary.scope_all")}</option>
<option value="space" ?selected=${"space"===s.scope.type}>${b("summary.scope_space")}</option>
</select>
${"space"===e.scope.type?a`<select .value=${e.scope.space_id}
${"space"===s.scope.type?a`<select .value=${s.scope.space_id}
?disabled=${d.busy} aria-label=${b("summary.scope_space")}
data-summary-error=${String(d.attempted&&y?.path===`${u}.scope`)}
aria-invalid=${"error"===n?.kind?"true":"false"}
@change=${a=>m.mutate(s=>{const e=s.blocks[t].scope;"space"===e.type&&(e.space_id=a.target.value)})}>
${c._model.some(a=>a.id===e.scope.space_id)?s:a`<option value=${e.scope.space_id} selected>${e.scope.space_id}</option>`}
${c._model.map(s=>a`<option value=${s.id}
?selected=${s.id===e.scope.space_id}>${s.title}</option>`)}
</select>`:s}
@change=${a=>m.mutate(e=>{const s=e.blocks[t].scope;"space"===s.type&&(s.space_id=a.target.value)})}>
${c._model.some(a=>a.id===s.scope.space_id)?e:a`<option value=${s.scope.space_id} selected>${s.scope.space_id}</option>`}
${c._model.map(e=>a`<option value=${e.id}
?selected=${e.id===s.scope.space_id}>${e.title}</option>`)}
</select>`:e}
</div>
${n?a`<div class="summary-problem summary-scope-problem ${n.kind}">${h(n)}</div>`:s}
${n?a`<div class="summary-problem summary-scope-problem ${n.kind}">${h(n)}</div>`:e}
</div>
<div class="summary-block-body">
<div class="summary-editor-values">
${e.values.map((i,c)=>{const n=`${u}.values.${c}`,$=v(`${n}.source`),p=m.sourceToken(i.source),k=d.activeSource?.blockId===e.id&&d.activeSource.valueId===i.id,g="system"===i.source.type?b(`summary.system.${i.source.key}`):i.source.entity_id?m.entityIndex.labels.get(i.source.entity_id)||i.source.entity_id:b("summary.select_source"),_="system"===i.source.type?b("summary.system_source"):i.source.entity_id,f=k?o(m.entityIndex,d.entityFilter):null,w="entity"===i.source.type&&!!i.source.entity_id&&!m.entityIndex.labels.has(i.source.entity_id),S=`${e.id}\n${i.id}`;return a`<div class="summary-editor-value"
${s.values.map((i,c)=>{const n=`${u}.values.${c}`,$=v(`${n}.source`),p=m.sourceToken(i.source),k=d.activeSource?.blockId===s.id&&d.activeSource.valueId===i.id,g="system"===i.source.type?b(`summary.system.${i.source.key}`):i.source.entity_id?m.entityIndex.labels.get(i.source.entity_id)||i.source.entity_id:b("summary.select_source"),_="system"===i.source.type?b("summary.system_source"):i.source.entity_id,f=k?o(m.entityIndex,d.entityFilter):null,w="entity"===i.source.type&&!!i.source.entity_id&&!m.entityIndex.labels.has(i.source.entity_id),S=`${s.id}\n${i.id}`;return a`<div class="summary-editor-value"
@dragover=${a=>{a.preventDefault(),a.stopPropagation()}}
@drop=${a=>m.drop(a,`value:${t}:${c}`)}>
<span class="summary-drag" draggable=${String(!d.busy)} title=${b("summary.drag")}
@@ -101,7 +101,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b7ab2d4a54f63999819303ec484590bcc38e
@click=${()=>m.mutate(a=>{a.blocks[t].values=r(a.blocks[t].values,c,c-1)})}>${l("up")}</button>
<button class="summary-icon-button" type="button" title=${b("summary.down")}
aria-label=${b("summary.down")}
?disabled=${c===e.values.length-1||d.busy}
?disabled=${c===s.values.length-1||d.busy}
@click=${()=>m.mutate(a=>{a.blocks[t].values=r(a.blocks[t].values,c,c+1)})}>${l("down")}</button>
</div>
<div class="summary-value-label">
@@ -109,8 +109,8 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b7ab2d4a54f63999819303ec484590bcc38e
placeholder=${b("summary.value_name")} aria-label=${b("summary.value_name")}
data-summary-error=${String(d.attempted&&y?.path===`${n}.label`)}
aria-invalid=${"error"===v(`${n}.label`)?.kind?"true":"false"}
@input=${a=>m.mutate(s=>{s.blocks[t].values[c].label=a.target.value})} />
${v(`${n}.label`)?a`<div class="summary-problem error">${h(v(`${n}.label`))}</div>`:s}
@input=${a=>m.mutate(e=>{e.blocks[t].values[c].label=a.target.value})} />
${v(`${n}.label`)?a`<div class="summary-problem error">${h(v(`${n}.label`))}</div>`:e}
</div>
<div class="summary-source-field">
<button class="summary-source" type="button"
@@ -119,9 +119,9 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b7ab2d4a54f63999819303ec484590bcc38e
data-summary-error=${String(d.attempted&&y?.path===`${n}.source`)}
aria-invalid=${"error"===$?.kind?"true":"false"}
aria-haspopup="listbox" aria-expanded=${k?"true":"false"}
@click=${a=>{a.stopPropagation(),k?m.closeSource():m.openSource(e.id,i.id)}}>
@click=${a=>{a.stopPropagation(),k?m.closeSource():m.openSource(s.id,i.id)}}>
<span class="summary-source-caption"><strong>${g}</strong>
${_?a`<small>${_}</small>`:s}</span>
${_?a`<small>${_}</small>`:e}</span>
${l("chevron")}
</button>
${k&&f?a`<div class="summary-source-picker"
@@ -135,39 +135,39 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b7ab2d4a54f63999819303ec484590bcc38e
<div class="summary-source-results" role="listbox"
aria-label=${b("summary.select_source")}>
<div class="summary-source-group">${b("summary.system_group")}</div>
${["device_count","total_area","datetime"].map(s=>a`
${["device_count","total_area","datetime"].map(e=>a`
<button type="button" role="option"
?disabled=${d.busy}
aria-selected=${p===`system:${s}`?"true":"false"}
@click=${()=>m.setSource(e.id,i.id,`system:${s}`)}>
${b(`summary.system.${s}`)}
aria-selected=${p===`system:${e}`?"true":"false"}
@click=${()=>m.setSource(s.id,i.id,`system:${e}`)}>
${b(`summary.system.${e}`)}
</button>`)}
${w?a`<div class="summary-source-group">${b("summary.current_source")}</div>
<button type="button" role="option" class="broken" aria-selected="true"
?disabled=${d.busy}
@click=${()=>m.setSource(e.id,i.id,p)}>
@click=${()=>m.setSource(s.id,i.id,p)}>
${g}
</button>`:s}
</button>`:e}
<div class="summary-source-group">${b("summary.entities_group")}</div>
${f.entries.map(s=>a`<button type="button" role="option"
${f.entries.map(e=>a`<button type="button" role="option"
?disabled=${d.busy}
aria-selected=${p===`entity:${s.id}`?"true":"false"}
@click=${()=>m.setSource(e.id,i.id,`entity:${s.id}`)}>
<span>${s.label}</span><small>${s.id}</small>
aria-selected=${p===`entity:${e.id}`?"true":"false"}
@click=${()=>m.setSource(s.id,i.id,`entity:${e.id}`)}>
<span>${e.label}</span><small>${e.id}</small>
</button>`)}
${f.total?s:a`<div class="summary-empty">${b("summary.no_search_results")}</div>`}
${f.truncated?a`<div class="summary-refine">${b("summary.refine_search")}</div>`:s}
${f.total?e:a`<div class="summary-empty">${b("summary.no_search_results")}</div>`}
${f.truncated?a`<div class="summary-refine">${b("summary.refine_search")}</div>`:e}
</div>
</div>`:s}
${$?a`<div class="summary-problem ${$.kind}">${h($)}</div>`:s}
</div>`:e}
${$?a`<div class="summary-problem ${$.kind}">${h($)}</div>`:e}
</div>
<button class="summary-icon-button summary-value-remove" type="button"
title=${b("btn.delete")} aria-label=${b("btn.delete")} ?disabled=${d.busy}
@click=${()=>m.mutate(a=>{a.blocks[t].values.splice(c,1)})}>${l("close")}</button>
</div>`})}
<button class="summary-add summary-add-value" type="button"
?disabled=${e.values.length>=20||d.busy}
title=${e.values.length>=20?b("summary.limit_values"):""}
?disabled=${s.values.length>=20||d.busy}
title=${s.values.length>=20?b("summary.limit_values"):""}
@click=${()=>m.mutate(a=>{a.blocks[t].values.push(i())})}>
${l("plus")}${b("summary.add_value")}
</button>
@@ -186,11 +186,11 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b7ab2d4a54f63999819303ec484590bcc38e
${l("plus")}${b("summary.add_block")}
</button>
</section>
${d.error?a`<div class="summary-problem error" role="alert">${d.error}</div>`:s}
${d.error?a`<div class="summary-problem error" role="alert">${d.error}</div>`:e}
${d.conflict?a`<button class="btn ghost summary-reload" type="button"
?disabled=${d.busy} @click=${()=>m.reload()}>
<ha-icon icon="mdi:reload"></ha-icon>${b("summary.reload_current")}
</button>`:s}
</button>`:e}
`}
</div>
<div class="row summary-editor-footer" slot="footer">
@@ -1 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b7ab2d4a54f63999819303ec484590bcc38e4b87b062d326fc90cf500badb44a";import{es as e,N as t,b2 as n,L as i,ae as o,ac as r,bZ as s,bY as a,b1 as c,b0 as l,b3 as u,et as d,eu as f,b$ as m,ev as g}from"./houseplan-card-C7RUhMgy.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,c="entity"===r?e.registry.entities?.[s]:null,l="device"===r?s:c?.device_id,u="device"===r?a?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.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;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===r&&n.liveEntities.has(s))&&t.add(l)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function b(e,t){const n=c(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:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*_(c,l,u=b){try{let d=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,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 c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(c,m.physicalBodies)),yield}const b=m.cellCm/o;d+=a(v)*b*b/1e4}return d}catch{return null}}function h(e,t,n=b){const i=_(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{_ as cleanFloorAreaSteps,v as representedHaDeviceIds,b as spaceWallGeometry,S as summaryEntityValue,p as summarySystemValue,h as totalCleanFloorAreaM2};
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f7157696873d78ffd49935bafb3b63714602550a2abe2ee00a0778cb17e0c260";import{es as e,N as t,b2 as n,L as i,ae as o,ac as r,bZ as s,bY as a,b1 as l,b0 as c,b3 as u,et as d,eu as f,b$ as m,ev as g}from"./houseplan-card-Bg60kMOY.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};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b7ab2d4a54f63999819303ec484590bcc38e4b87b062d326fc90cf500badb44a";var e={title:"Zigbee-Verbindungen",toggle:"Zigbee-Verbindungen beim Darüberfahren über ein Gerät anzeigen",hint:"Es werden nur beobachtete direkte Nachbarn angezeigt. Beim Darüberfahren werden keine Daten abgerufen.",help:"Zeigt, mit welchen Zigbee-Geräten jedes Gerät direkt verbunden ist. Die Linienfarbe ist die Verbindungsqualität (LQI) auf derselben Skala wie der LQI-Wert des Geräts: rot bei 40 und darunter, grün bei 180 und darüber. Eine gestrichelte Linie bedeutet, dass die Qualität nicht gemeldet wurde. Ein Pfeil zeigt auf das nächste Gerät auf dem Weg zum Koordinator: ein Pfeil führt hinaus, eingehende Pfeile sind die Geräte, die über dieses Gerät routen. Eine Linie ohne Pfeil ist ein Ersatznachbar. Das ist der Routenbaum, den House Plan bildet, nicht der Weg eines Pakets in diesem Moment: eine Beschriftung am Pfeilende bedeutet, dass das Ziel nicht auf diesem Plan liegt, und ein fehlender Pfeil, dass die Route unbekannt ist. Die Daten stammen aus dem letzten Laden und veralten; Verbindungen sind nur mit der Maus sichtbar.",help_aria:"Hilfe: Zigbee-Verbindungen",admin_only:"Topologiedaten sind nur für Home-Assistant-Administratoren verfügbar.",save_first:"Speichere diese Einstellung, bevor Topologiedaten geladen werden.",zha:"ZHA",zha_read:"ZHA-Daten lesen",zha_hint:"Liest den ZHA-Topologiecache; es wird kein Funkscan gestartet.",z2m:"Zigbee2MQTT",z2m_topics:"Basistopics (eines pro Zeile)",z2m_update:"Karte aktualisieren",z2m_warning:"Ein Netzwerkscan kann 10 Sekunden bis 2 Minuten dauern und Zigbee vorübergehend verlangsamen.",status_idle:"Daten nicht geladen",status_loading:"Wird geladen…",status_ready:"Empfangen: {time}",status_stale:"Empfangen: {time} · veraltet",status_partial:"Empfangen: {time} · einige Knoten fehlen",status_no_links:"Empfangen: {time} · keine beobachteten Verbindungen gefunden",error_permission:"Administratorrechte sind erforderlich.",error_unsupported:"Dieser Anbieter oder die Home-Assistant-API ist nicht verfügbar.",error_timeout:"Der Anbieter hat nicht rechtzeitig geantwortet.",error_invalid_topic:"Prüfe das Zigbee2MQTT-Basistopic.",error_invalid_payload:"Der Anbieter hat nicht unterstützte Topologiedaten geliefert.",error_provider:"Topologiedaten konnten nicht geladen werden.",remote_count:"+{n} in anderen Bereichen",route_device_not_on_plan:"Gerät ist nicht im Plan",route_coordinator_not_on_plan:"Koordinator ist nicht im Plan",route_other_space:"anderer Bereich"};const n="b7ab2d4a54f63999819303ec484590bcc38e4b87b062d326fc90cf500badb44a";export{e as dictionary,n as fingerprint};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f7157696873d78ffd49935bafb3b63714602550a2abe2ee00a0778cb17e0c260";var e={title:"Zigbee-Verbindungen",toggle:"Zigbee-Verbindungen beim Darüberfahren über ein Gerät anzeigen",hint:"Es werden nur beobachtete direkte Nachbarn angezeigt. Beim Darüberfahren werden keine Daten abgerufen.",help:"Zeigt, mit welchen Zigbee-Geräten jedes Gerät direkt verbunden ist. Die Linienfarbe ist die Verbindungsqualität (LQI) auf derselben Skala wie der LQI-Wert des Geräts: rot bei 40 und darunter, grün bei 180 und darüber. Eine gestrichelte Linie bedeutet, dass die Qualität nicht gemeldet wurde. Ein Pfeil zeigt auf das nächste Gerät auf dem Weg zum Koordinator: ein Pfeil führt hinaus, eingehende Pfeile sind die Geräte, die über dieses Gerät routen. Eine Linie ohne Pfeil ist ein Ersatznachbar. Das ist der Routenbaum, den House Plan bildet, nicht der Weg eines Pakets in diesem Moment: eine Beschriftung am Pfeilende bedeutet, dass das Ziel nicht auf diesem Plan liegt, und ein fehlender Pfeil, dass die Route unbekannt ist. Die Daten stammen aus dem letzten Laden und veralten; Verbindungen sind nur mit der Maus sichtbar.",help_aria:"Hilfe: Zigbee-Verbindungen",admin_only:"Topologiedaten sind nur für Home-Assistant-Administratoren verfügbar.",save_first:"Speichere diese Einstellung, bevor Topologiedaten geladen werden.",zha:"ZHA",zha_read:"ZHA-Daten lesen",zha_hint:"Liest den ZHA-Topologiecache; es wird kein Funkscan gestartet.",z2m:"Zigbee2MQTT",z2m_topics:"Basistopics (eines pro Zeile)",z2m_update:"Karte aktualisieren",z2m_warning:"Ein Netzwerkscan kann 10 Sekunden bis 2 Minuten dauern und Zigbee vorübergehend verlangsamen.",status_idle:"Daten nicht geladen",status_loading:"Wird geladen…",status_ready:"Empfangen: {time}",status_stale:"Empfangen: {time} · veraltet",status_partial:"Empfangen: {time} · einige Knoten fehlen",status_no_links:"Empfangen: {time} · keine beobachteten Verbindungen gefunden",error_permission:"Administratorrechte sind erforderlich.",error_unsupported:"Dieser Anbieter oder die Home-Assistant-API ist nicht verfügbar.",error_timeout:"Der Anbieter hat nicht rechtzeitig geantwortet.",error_invalid_topic:"Prüfe das Zigbee2MQTT-Basistopic.",error_invalid_payload:"Der Anbieter hat nicht unterstützte Topologiedaten geliefert.",error_provider:"Topologiedaten konnten nicht geladen werden.",remote_count:"+{n} in anderen Bereichen",route_device_not_on_plan:"Gerät ist nicht im Plan",route_coordinator_not_on_plan:"Koordinator ist nicht im Plan",route_other_space:"anderer Bereich"};const n="f7157696873d78ffd49935bafb3b63714602550a2abe2ee00a0778cb17e0c260";export{e as dictionary,n as fingerprint};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b7ab2d4a54f63999819303ec484590bcc38e4b87b062d326fc90cf500badb44a";var e={title:"Liens Zigbee",toggle:"Afficher les liens Zigbee au survol d’un appareil",hint:"Seuls les voisins directs observés sont affichés. Le survol ne lance aucune requête.",help:"Montre avec quels appareils Zigbee chaque appareil communique directement. La couleur de la ligne est la qualité du lien (LQI) sur la même échelle que l'indicateur LQI de l'appareil : rouge à 40 et en dessous, vert à 180 et au-dessus. Une ligne pointillée signifie que la qualité n'a pas été communiquée. Une flèche pointe vers l'appareil suivant sur le chemin du coordinateur : une flèche part, les flèches entrantes sont les appareils qui passent par celui-ci. Une ligne sans flèche est un voisin de secours. C'est l'arbre de routes que construit House Plan, pas le trajet d'un paquet à cet instant : une étiquette au bout d'une flèche signifie que sa cible n'est pas sur ce plan, et l'absence de flèche que la route est inconnue. Les données proviennent du dernier chargement et vieillissent ; les liens ne sont visibles qu'à la souris.",help_aria:"Aide : liens Zigbee",admin_only:"Les données de topologie sont réservées aux administrateurs Home Assistant.",save_first:"Enregistrez ce réglage avant de charger les données de topologie.",zha:"ZHA",zha_read:"Lire les données ZHA",zha_hint:"Lit la topologie en cache de ZHA sans lancer d’analyse radio.",z2m:"Zigbee2MQTT",z2m_topics:"Topics de base (un par ligne)",z2m_update:"Actualiser la carte",z2m_warning:"L’analyse de la carte réseau peut durer de 10 secondes à 2 minutes et réduire temporairement la réactivité de Zigbee.",status_idle:"Données non chargées",status_loading:"Chargement…",status_ready:"Reçu : {time}",status_stale:"Reçu : {time} · obsolète",status_partial:"Reçu : {time} · certains nœuds sont omis",status_no_links:"Reçu : {time} · aucun lien observé trouvé",error_permission:"Les droits administrateur sont requis.",error_unsupported:"Ce fournisseur ou l’API Home Assistant n’est pas disponible.",error_timeout:"Le fournisseur n’a pas répondu à temps.",error_invalid_topic:"Vérifiez le topic de base Zigbee2MQTT.",error_invalid_payload:"Le fournisseur a renvoyé des données de topologie non prises en charge.",error_provider:"Impossible de charger les données de topologie.",remote_count:"+{n} dans d’autres espaces",route_device_not_on_plan:"appareil absent du plan",route_coordinator_not_on_plan:"coordinateur absent du plan",route_other_space:"autre espace"};const s="b7ab2d4a54f63999819303ec484590bcc38e4b87b062d326fc90cf500badb44a";export{e as dictionary,s as fingerprint};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f7157696873d78ffd49935bafb3b63714602550a2abe2ee00a0778cb17e0c260";var e={title:"Liens Zigbee",toggle:"Afficher les liens Zigbee au survol d’un appareil",hint:"Seuls les voisins directs observés sont affichés. Le survol ne lance aucune requête.",help:"Montre avec quels appareils Zigbee chaque appareil communique directement. La couleur de la ligne est la qualité du lien (LQI) sur la même échelle que l'indicateur LQI de l'appareil : rouge à 40 et en dessous, vert à 180 et au-dessus. Une ligne pointillée signifie que la qualité n'a pas été communiquée. Une flèche pointe vers l'appareil suivant sur le chemin du coordinateur : une flèche part, les flèches entrantes sont les appareils qui passent par celui-ci. Une ligne sans flèche est un voisin de secours. C'est l'arbre de routes que construit House Plan, pas le trajet d'un paquet à cet instant : une étiquette au bout d'une flèche signifie que sa cible n'est pas sur ce plan, et l'absence de flèche que la route est inconnue. Les données proviennent du dernier chargement et vieillissent ; les liens ne sont visibles qu'à la souris.",help_aria:"Aide : liens Zigbee",admin_only:"Les données de topologie sont réservées aux administrateurs Home Assistant.",save_first:"Enregistrez ce réglage avant de charger les données de topologie.",zha:"ZHA",zha_read:"Lire les données ZHA",zha_hint:"Lit la topologie en cache de ZHA sans lancer d’analyse radio.",z2m:"Zigbee2MQTT",z2m_topics:"Topics de base (un par ligne)",z2m_update:"Actualiser la carte",z2m_warning:"L’analyse de la carte réseau peut durer de 10 secondes à 2 minutes et réduire temporairement la réactivité de Zigbee.",status_idle:"Données non chargées",status_loading:"Chargement…",status_ready:"Reçu : {time}",status_stale:"Reçu : {time} · obsolète",status_partial:"Reçu : {time} · certains nœuds sont omis",status_no_links:"Reçu : {time} · aucun lien observé trouvé",error_permission:"Les droits administrateur sont requis.",error_unsupported:"Ce fournisseur ou l’API Home Assistant n’est pas disponible.",error_timeout:"Le fournisseur n’a pas répondu à temps.",error_invalid_topic:"Vérifiez le topic de base Zigbee2MQTT.",error_invalid_payload:"Le fournisseur a renvoyé des données de topologie non prises en charge.",error_provider:"Impossible de charger les données de topologie.",remote_count:"+{n} dans d’autres espaces",route_device_not_on_plan:"appareil absent du plan",route_coordinator_not_on_plan:"coordinateur absent du plan",route_other_space:"autre espace"};const s="f7157696873d78ffd49935bafb3b63714602550a2abe2ee00a0778cb17e0c260";export{e as dictionary,s as fingerprint};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b7ab2d4a54f63999819303ec484590bcc38e4b87b062d326fc90cf500badb44a";var e={title:"Связи Zigbee",toggle:"Показывать связи Zigbee при наведении на устройство",hint:"Показываются только наблюдаемые прямые соседи. Наведение ничего не запрашивает.",help:"Показывает, с какими устройствами Zigbee каждое связано напрямую. Цвет линии — качество связи (LQI) по той же шкале, что у показателя LQI устройства: красный при 40 и ниже, зелёный при 180 и выше. Пунктир — качество не сообщено. Стрелка ведёт к следующему устройству по пути к координатору: исходящая одна, входящие — те, кто ходит через это устройство. Линия без стрелки — запасной сосед. Это дерево маршрутов, которое строит House Plan, а не путь пакета в эту секунду: подпись на конце стрелки значит, что цель не на этом плане, а отсутствие стрелки — что путь неизвестен. Данные из последней загрузки и устаревают, связи видны только при работе мышью.",help_aria:"Справка: связи Zigbee",admin_only:"Данные топологии доступны только администраторам Home Assistant.",save_first:"Сохраните настройку перед загрузкой данных топологии.",zha:"ZHA",zha_read:"Прочитать данные ZHA",zha_hint:"Читает сохранённую топологию ZHA и не запускает радио-сканирование.",z2m:"Zigbee2MQTT",z2m_topics:"Базовые топики (по одному в строке)",z2m_update:"Обновить карту",z2m_warning:"Сканирование карты сети занимает от 10 секунд до 2 минут и временно может снизить отзывчивость Zigbee.",status_idle:"Данные не загружены",status_loading:"Загрузка…",status_ready:"Получено: {time}",status_stale:"Получено: {time} · данные устарели",status_partial:"Получено: {time} · часть узлов не показана",status_no_links:"Получено: {time} · наблюдаемые связи не найдены",error_permission:"Нужны права администратора.",error_unsupported:"Провайдер или API Home Assistant недоступен.",error_timeout:"Провайдер не ответил вовремя.",error_invalid_topic:"Проверьте базовый топик Zigbee2MQTT.",error_invalid_payload:"Провайдер вернул неподдерживаемые данные топологии.",error_provider:"Не удалось загрузить данные топологии.",remote_count:"+{n} в других пространствах",route_device_not_on_plan:"устройства нет на плане",route_coordinator_not_on_plan:"координатора нет на плане",route_other_space:"другое пространство"};const t="b7ab2d4a54f63999819303ec484590bcc38e4b87b062d326fc90cf500badb44a";export{e as dictionary,t as fingerprint};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f7157696873d78ffd49935bafb3b63714602550a2abe2ee00a0778cb17e0c260";var e={title:"Связи Zigbee",toggle:"Показывать связи Zigbee при наведении на устройство",hint:"Показываются только наблюдаемые прямые соседи. Наведение ничего не запрашивает.",help:"Показывает, с какими устройствами Zigbee каждое связано напрямую. Цвет линии — качество связи (LQI) по той же шкале, что у показателя LQI устройства: красный при 40 и ниже, зелёный при 180 и выше. Пунктир — качество не сообщено. Стрелка ведёт к следующему устройству по пути к координатору: исходящая одна, входящие — те, кто ходит через это устройство. Линия без стрелки — запасной сосед. Это дерево маршрутов, которое строит House Plan, а не путь пакета в эту секунду: подпись на конце стрелки значит, что цель не на этом плане, а отсутствие стрелки — что путь неизвестен. Данные из последней загрузки и устаревают, связи видны только при работе мышью.",help_aria:"Справка: связи Zigbee",admin_only:"Данные топологии доступны только администраторам Home Assistant.",save_first:"Сохраните настройку перед загрузкой данных топологии.",zha:"ZHA",zha_read:"Прочитать данные ZHA",zha_hint:"Читает сохранённую топологию ZHA и не запускает радио-сканирование.",z2m:"Zigbee2MQTT",z2m_topics:"Базовые топики (по одному в строке)",z2m_update:"Обновить карту",z2m_warning:"Сканирование карты сети занимает от 10 секунд до 2 минут и временно может снизить отзывчивость Zigbee.",status_idle:"Данные не загружены",status_loading:"Загрузка…",status_ready:"Получено: {time}",status_stale:"Получено: {time} · данные устарели",status_partial:"Получено: {time} · часть узлов не показана",status_no_links:"Получено: {time} · наблюдаемые связи не найдены",error_permission:"Нужны права администратора.",error_unsupported:"Провайдер или API Home Assistant недоступен.",error_timeout:"Провайдер не ответил вовремя.",error_invalid_topic:"Проверьте базовый топик Zigbee2MQTT.",error_invalid_payload:"Провайдер вернул неподдерживаемые данные топологии.",error_provider:"Не удалось загрузить данные топологии.",remote_count:"+{n} в других пространствах",route_device_not_on_plan:"устройства нет на плане",route_coordinator_not_on_plan:"координатора нет на плане",route_other_space:"другое пространство"};const t="f7157696873d78ffd49935bafb3b63714602550a2abe2ee00a0778cb17e0c260";export{e as dictionary,t as fingerprint};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b7ab2d4a54f63999819303ec484590bcc38e4b87b062d326fc90cf500badb44a";import{n as t,c as n}from"./zigbee-topology-CtKjJEae.js";import{aM as e}from"./houseplan-card-C7RUhMgy.js";import"./namespace-language-U_jlj9nD.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__="f7157696873d78ffd49935bafb3b63714602550a2abe2ee00a0778cb17e0c260";import{n as t,c as n}from"./zigbee-topology-TeOwXMvQ.js";import{aM as e}from"./houseplan-card-Bg60kMOY.js";import"./namespace-language-zq-hVFq8.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};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b7ab2d4a54f63999819303ec484590bcc38e4b87b062d326fc90cf500badb44a";try{await import("./houseplan-assets/houseplan-card-C7RUhMgy.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__="f7157696873d78ffd49935bafb3b63714602550a2abe2ee00a0778cb17e0c260";try{await import("./houseplan-assets/houseplan-card-Bg60kMOY.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)}
File diff suppressed because one or more lines are too long