fix(settings): polish dialog colours and actions (#605)

Make colour tiles solid, readable and fully clickable; align Data actions and device icon field with the form kit. Cover narrow Windows layouts and both icon-picker branches with a focused browser smoke.

Issue: #605
User-Visible: yes
This commit is contained in:
Claude
2026-09-21 13:13:50 +03:00
parent 82f99e3109
commit 08a56953cc
69 changed files with 904 additions and 688 deletions
@@ -1,127 +1,127 @@
{
"schema": 1,
"fingerprint": "44c8db0207714f5476f58cdacdfaae63754967422e492b7fadf3551ecaee4380",
"fingerprint": "9e2f35decdd62281523438548e9b57beb76e40f66bbdf6feb789878f69f8a9d0",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-BQWwo3i7.js",
"houseplan-assets/houseplan-card-C2i-uVC7.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 290034,
"initialViewGzipBytes": 290035,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-BQWwo3i7.js",
"houseplan-assets/houseplan-card-C2i-uVC7.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 291556,
"initialPanelGzipBytes": 291558,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2325,
"initialPanelOnlyGzipBytes": 2326,
"lazyFiles": [
"houseplan-assets/backdrop-pick-D57BQQbo.js",
"houseplan-assets/de-DroVNRnr.js",
"houseplan-assets/editor-BIdm6L_k.js",
"houseplan-assets/form-kit.styles-BqBbEnaz.js",
"houseplan-assets/fr-DZBnbf3Y.js",
"houseplan-assets/furniture-plan-art.generated-CiyoNIND.js",
"houseplan-assets/houseplan-editor-runtime-BXjfKYAx.js",
"houseplan-assets/houseplan-onboarding-runtime-CNBlGqTW.js",
"houseplan-assets/hp-zigbee-topology-overlay-fe_knnXY.js",
"houseplan-assets/iso-scene-render-sNAJFXBj.js",
"houseplan-assets/live-interaction-runtime-DPmKLJbP.js",
"houseplan-assets/pdf-export-DO9ua2us.js",
"houseplan-assets/summary-panel-runtime-loaded-D3ySFavc.js",
"houseplan-assets/zigbee-topology-DThgDHY1.js",
"houseplan-assets/zigbee-topology-runtime-C1Eof5a4.js"
"houseplan-assets/backdrop-pick-BNweGcEL.js",
"houseplan-assets/de-_erXv25n.js",
"houseplan-assets/editor-DTYPIzo9.js",
"houseplan-assets/form-kit.styles-DZXsxRZj.js",
"houseplan-assets/fr-Lv64OBs4.js",
"houseplan-assets/furniture-plan-art.generated-C3EWMYMJ.js",
"houseplan-assets/houseplan-editor-runtime-B9KcCYc9.js",
"houseplan-assets/houseplan-onboarding-runtime-DfCUzId0.js",
"houseplan-assets/hp-zigbee-topology-overlay-Bo_Oh0xS.js",
"houseplan-assets/iso-scene-render-zJROe8pl.js",
"houseplan-assets/live-interaction-runtime-DTrluYh0.js",
"houseplan-assets/pdf-export-CmBxCJzt.js",
"houseplan-assets/summary-panel-runtime-loaded-CERnuWAI.js",
"houseplan-assets/zigbee-topology-BHQFELON.js",
"houseplan-assets/zigbee-topology-runtime-DIkoJSxP.js"
],
"lazyGzipBytes": 459440,
"lazyGzipBytes": 459916,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-D57BQQbo.js",
"houseplan-assets/editor-BIdm6L_k.js",
"houseplan-assets/form-kit.styles-BqBbEnaz.js",
"houseplan-assets/furniture-plan-art.generated-CiyoNIND.js",
"houseplan-assets/houseplan-editor-runtime-BXjfKYAx.js",
"houseplan-assets/zigbee-topology-DThgDHY1.js"
"houseplan-assets/backdrop-pick-BNweGcEL.js",
"houseplan-assets/editor-DTYPIzo9.js",
"houseplan-assets/form-kit.styles-DZXsxRZj.js",
"houseplan-assets/furniture-plan-art.generated-C3EWMYMJ.js",
"houseplan-assets/houseplan-editor-runtime-B9KcCYc9.js",
"houseplan-assets/zigbee-topology-BHQFELON.js"
],
"lazyEditorGzipBytes": 242926,
"lazyEditorGzipBytes": 243385,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-D57BQQbo.js",
"houseplan-assets/form-kit.styles-BqBbEnaz.js",
"houseplan-assets/houseplan-onboarding-runtime-CNBlGqTW.js"
"houseplan-assets/backdrop-pick-BNweGcEL.js",
"houseplan-assets/form-kit.styles-DZXsxRZj.js",
"houseplan-assets/houseplan-onboarding-runtime-DfCUzId0.js"
],
"lazyOnboardingGzipBytes": 33523,
"lazyOnboardingGzipBytes": 33825,
"lazyLocaleFiles": [
"houseplan-assets/de-DroVNRnr.js",
"houseplan-assets/fr-DZBnbf3Y.js"
"houseplan-assets/de-_erXv25n.js",
"houseplan-assets/fr-Lv64OBs4.js"
],
"lazyLocaleGzipBytes": 55338,
"lazyLocaleGzipBytes": 55347,
"lazyIsometricFiles": [
"houseplan-assets/iso-scene-render-sNAJFXBj.js"
"houseplan-assets/iso-scene-render-zJROe8pl.js"
],
"lazyIsometricGzipBytes": 17643,
"lazyIsometricGzipBytes": 17644,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-CiyoNIND.js"
"houseplan-assets/furniture-plan-art.generated-C3EWMYMJ.js"
],
"lazyFurnitureArtGzipBytes": 16942,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-CiyoNIND.js",
"houseplan-assets/pdf-export-DO9ua2us.js"
"houseplan-assets/furniture-plan-art.generated-C3EWMYMJ.js",
"houseplan-assets/pdf-export-CmBxCJzt.js"
],
"lazyPdfGzipBytes": 126817,
"files": [
{
"path": "houseplan-assets/backdrop-pick-D57BQQbo.js",
"sha256": "5f205acaf3c1d40b1474941ead08b8ee14bed824f25f5280bdb8372a246248fb",
"rawBytes": 74012,
"gzipBytes": 23911,
"path": "houseplan-assets/backdrop-pick-BNweGcEL.js",
"sha256": "45b90091eab1c4c2ed213743c08ba51fb07a796f4b2d0084382b875c52458d96",
"rawBytes": 74076,
"gzipBytes": 23934,
"isEntry": false,
"imports": [
"houseplan-assets/form-kit.styles-BqBbEnaz.js",
"houseplan-assets/houseplan-card-BQWwo3i7.js"
"houseplan-assets/form-kit.styles-DZXsxRZj.js",
"houseplan-assets/houseplan-card-C2i-uVC7.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-DroVNRnr.js",
"sha256": "3b8cc88353c8a979aae9134bb7e3d81dc70f150282f9e0890e5f410fa05d153a",
"rawBytes": 92450,
"gzipBytes": 27914,
"path": "houseplan-assets/de-_erXv25n.js",
"sha256": "ff8df04d511ce7342d33ca8d09998039ea8cba99647c3cc93128553a6526e03c",
"rawBytes": 92451,
"gzipBytes": 27920,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-BIdm6L_k.js",
"sha256": "fba604ea0b9bab6c0086745685458ff4ea68a8ce093e04b9e967209e2d8f4074",
"path": "houseplan-assets/editor-DTYPIzo9.js",
"sha256": "a8438c112598d029a0044c959e7f93015de5de2f086c07d52d5f497177c4c43d",
"rawBytes": 3833,
"gzipBytes": 1584,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BQWwo3i7.js"
"houseplan-assets/houseplan-card-C2i-uVC7.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/form-kit.styles-BqBbEnaz.js",
"sha256": "6924ed0f82612cb4ec823c1b8fe3c536fd84435ab124fc12ca630da92a7c5913",
"rawBytes": 23975,
"gzipBytes": 4782,
"path": "houseplan-assets/form-kit.styles-DZXsxRZj.js",
"sha256": "bc8009e43e4f1c5ced78ad2e4cd5acc0ef6947ea496cf4fa57c295159ddc9ea2",
"rawBytes": 25600,
"gzipBytes": 5057,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-DZBnbf3Y.js",
"sha256": "fdabb08cd1c4418015e9c57cea01efcc8b5e7cc931482780df6652032ddcffd0",
"path": "houseplan-assets/fr-Lv64OBs4.js",
"sha256": "83fd85f2d9cabd629659caef471569ddd00da05e47f1a46cdd7b7d1dbcc75372",
"rawBytes": 94754,
"gzipBytes": 27424,
"gzipBytes": 27427,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-CiyoNIND.js",
"sha256": "f01d0f0fa6b2b483bc5a2f823d66a60bacf934bd4efe833e37cd3eea45658d2b",
"path": "houseplan-assets/furniture-plan-art.generated-C3EWMYMJ.js",
"sha256": "2a6f323fd9b83b68ad2a9198426a594233181ed4d32b9e8d168bebd9e3d9c340",
"rawBytes": 52033,
"gzipBytes": 16942,
"isEntry": false,
@@ -129,184 +129,184 @@
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-BQWwo3i7.js",
"sha256": "85f6b579f5f2a130fd0c4ec3384a20757812b4a260c552497ef00bb73f608273",
"rawBytes": 1028618,
"gzipBytes": 289231,
"path": "houseplan-assets/houseplan-card-C2i-uVC7.js",
"sha256": "3e773ac34aa3ac5dd9bdec60d5bcca9ceea291e5c1cf814d9a92c2a2131b675f",
"rawBytes": 1028620,
"gzipBytes": 289232,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-DroVNRnr.js",
"houseplan-assets/editor-BIdm6L_k.js",
"houseplan-assets/fr-DZBnbf3Y.js",
"houseplan-assets/furniture-plan-art.generated-CiyoNIND.js",
"houseplan-assets/houseplan-editor-runtime-BXjfKYAx.js",
"houseplan-assets/houseplan-onboarding-runtime-CNBlGqTW.js",
"houseplan-assets/hp-zigbee-topology-overlay-fe_knnXY.js",
"houseplan-assets/iso-scene-render-sNAJFXBj.js",
"houseplan-assets/live-interaction-runtime-DPmKLJbP.js",
"houseplan-assets/pdf-export-DO9ua2us.js",
"houseplan-assets/summary-panel-runtime-loaded-D3ySFavc.js"
"houseplan-assets/de-_erXv25n.js",
"houseplan-assets/editor-DTYPIzo9.js",
"houseplan-assets/fr-Lv64OBs4.js",
"houseplan-assets/furniture-plan-art.generated-C3EWMYMJ.js",
"houseplan-assets/houseplan-editor-runtime-B9KcCYc9.js",
"houseplan-assets/houseplan-onboarding-runtime-DfCUzId0.js",
"houseplan-assets/hp-zigbee-topology-overlay-Bo_Oh0xS.js",
"houseplan-assets/iso-scene-render-zJROe8pl.js",
"houseplan-assets/live-interaction-runtime-DTrluYh0.js",
"houseplan-assets/pdf-export-CmBxCJzt.js",
"houseplan-assets/summary-panel-runtime-loaded-CERnuWAI.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-BXjfKYAx.js",
"sha256": "081108b15ff93a4246a1ff40435f4cea649080f7d94be5be9d3dc47913895e7d",
"rawBytes": 676935,
"gzipBytes": 188281,
"path": "houseplan-assets/houseplan-editor-runtime-B9KcCYc9.js",
"sha256": "c7ce2f8337c00e0731fc02c53e8970f3737f03942da38c6dec9afe37b6008dd1",
"rawBytes": 677695,
"gzipBytes": 188438,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-D57BQQbo.js",
"houseplan-assets/form-kit.styles-BqBbEnaz.js",
"houseplan-assets/furniture-plan-art.generated-CiyoNIND.js",
"houseplan-assets/houseplan-card-BQWwo3i7.js",
"houseplan-assets/zigbee-topology-DThgDHY1.js"
"houseplan-assets/backdrop-pick-BNweGcEL.js",
"houseplan-assets/form-kit.styles-DZXsxRZj.js",
"houseplan-assets/furniture-plan-art.generated-C3EWMYMJ.js",
"houseplan-assets/houseplan-card-C2i-uVC7.js",
"houseplan-assets/zigbee-topology-BHQFELON.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-C1Eof5a4.js"
"houseplan-assets/zigbee-topology-runtime-DIkoJSxP.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-CNBlGqTW.js",
"sha256": "89286db27f83989c0fef921ec9fcaf38e86c93c7ff06a086dfbd71816631dfbb",
"path": "houseplan-assets/houseplan-onboarding-runtime-DfCUzId0.js",
"sha256": "b9a0b6794d771fb3376c4b65fdae163adfd9e0ca2559f3b2c68766ea53ad1eeb",
"rawBytes": 15667,
"gzipBytes": 4830,
"gzipBytes": 4834,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-D57BQQbo.js",
"houseplan-assets/form-kit.styles-BqBbEnaz.js",
"houseplan-assets/houseplan-card-BQWwo3i7.js"
"houseplan-assets/backdrop-pick-BNweGcEL.js",
"houseplan-assets/form-kit.styles-DZXsxRZj.js",
"houseplan-assets/houseplan-card-C2i-uVC7.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-fe_knnXY.js",
"sha256": "d36a074da1ea2861ab43f490e440fc42ad8263ff28551df3197340caa6aea516",
"path": "houseplan-assets/hp-zigbee-topology-overlay-Bo_Oh0xS.js",
"sha256": "b71cc12b41a6434658b651723092e3286c5c8b2699301bbdd2a012cf5211c3c5",
"rawBytes": 10759,
"gzipBytes": 3686,
"gzipBytes": 3687,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BQWwo3i7.js",
"houseplan-assets/zigbee-topology-DThgDHY1.js",
"houseplan-assets/zigbee-topology-runtime-C1Eof5a4.js"
"houseplan-assets/houseplan-card-C2i-uVC7.js",
"houseplan-assets/zigbee-topology-BHQFELON.js",
"houseplan-assets/zigbee-topology-runtime-DIkoJSxP.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-sNAJFXBj.js",
"sha256": "73d71aa7f08ace62e62f160628209e028c61a7e9ab258e9ed29bda2eab669356",
"path": "houseplan-assets/iso-scene-render-zJROe8pl.js",
"sha256": "20ac9eb7d29e5dde0ec22a9f8f532d44407d59e22f2dd6f5c81cadcac79e1297",
"rawBytes": 51983,
"gzipBytes": 17643,
"gzipBytes": 17644,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BQWwo3i7.js"
"houseplan-assets/houseplan-card-C2i-uVC7.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-DPmKLJbP.js",
"sha256": "2b6755348ab3fbb65ce18db8e72a2f6cf74260dbc4f4095059bc4d97bf7e0b5b",
"path": "houseplan-assets/live-interaction-runtime-DTrluYh0.js",
"sha256": "a8e695ad70c3829d52addbe262d1dfb7ea8af9889d649219dd91db10dce5bb46",
"rawBytes": 8216,
"gzipBytes": 3206,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BQWwo3i7.js"
"houseplan-assets/houseplan-card-C2i-uVC7.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-DO9ua2us.js",
"sha256": "7db0a04b18179a21b09c0bc3881db3b15362f448e4f03df251f148b67e0d22d3",
"path": "houseplan-assets/pdf-export-CmBxCJzt.js",
"sha256": "858e879c2e446217c4fe9f837ad73c1eea016746465669b3cd57e2b3b3c94e27",
"rawBytes": 236247,
"gzipBytes": 109875,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-CiyoNIND.js",
"houseplan-assets/houseplan-card-BQWwo3i7.js"
"houseplan-assets/furniture-plan-art.generated-C3EWMYMJ.js",
"houseplan-assets/houseplan-card-C2i-uVC7.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-DbbtTVqV.js",
"sha256": "590f8a026830f5aef7046dce335e6eb8292941a0ba843838b698abaec1f69b49",
"path": "houseplan-assets/summary-panel-editor-COqmsV67.js",
"sha256": "163ac8c8832812055392cab3d0e9dd3de4e72567c4e46aaeefb1ef5b6eafa56a",
"rawBytes": 14862,
"gzipBytes": 3424,
"gzipBytes": 3427,
"isEntry": false,
"imports": [
"houseplan-assets/form-kit.styles-BqBbEnaz.js",
"houseplan-assets/houseplan-card-BQWwo3i7.js",
"houseplan-assets/summary-panel-runtime-loaded-D3ySFavc.js"
"houseplan-assets/form-kit.styles-DZXsxRZj.js",
"houseplan-assets/houseplan-card-C2i-uVC7.js",
"houseplan-assets/summary-panel-runtime-loaded-CERnuWAI.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-Df7v39JC.js",
"sha256": "f3eddb46ff293d321ba93ed400c4f0daa00a093444c45a88f557285a9444f719",
"path": "houseplan-assets/summary-panel-metrics-B636g2bS.js",
"sha256": "80eb25b343c5164e723bc6af663fab53c8798ee01246edf1010a7e0bf1c32731",
"rawBytes": 2611,
"gzipBytes": 1308,
"gzipBytes": 1310,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BQWwo3i7.js"
"houseplan-assets/houseplan-card-C2i-uVC7.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-D3ySFavc.js",
"sha256": "8bfa9cfa1a2a094d89fc2c2b9e6aa8897a4e880d6dfe76fde572ea20d3490ae7",
"path": "houseplan-assets/summary-panel-runtime-loaded-CERnuWAI.js",
"sha256": "cc0f9f1580500e9c3fc43ff00be3c970a3af96293cc810134f482021c6f0fe5f",
"rawBytes": 72733,
"gzipBytes": 20172,
"gzipBytes": 20173,
"isEntry": false,
"imports": [
"houseplan-assets/form-kit.styles-BqBbEnaz.js",
"houseplan-assets/houseplan-card-BQWwo3i7.js"
"houseplan-assets/form-kit.styles-DZXsxRZj.js",
"houseplan-assets/houseplan-card-C2i-uVC7.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-DbbtTVqV.js",
"houseplan-assets/summary-panel-metrics-Df7v39JC.js"
"houseplan-assets/summary-panel-editor-COqmsV67.js",
"houseplan-assets/summary-panel-metrics-B636g2bS.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-DThgDHY1.js",
"sha256": "b7eb54fd329bb9ace1aa97a5ac63803d7eb051817fa3650814c131e0c59fd4fb",
"path": "houseplan-assets/zigbee-topology-BHQFELON.js",
"sha256": "10ec22ed045c888c6615081d6512991a1990bae302bb6a62c5e5455f465b2ae2",
"rawBytes": 18962,
"gzipBytes": 7426,
"gzipBytes": 7430,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BQWwo3i7.js"
"houseplan-assets/houseplan-card-C2i-uVC7.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-C1Eof5a4.js",
"sha256": "0e2a8eb84a561f49c78d4159752e6959f2aea37d6e2e8e780094e07b5b621cc1",
"path": "houseplan-assets/zigbee-topology-runtime-DIkoJSxP.js",
"sha256": "611357beaefd110aea6f648994ee6a11b7dd562f4781478793079f293912e9bf",
"rawBytes": 3942,
"gzipBytes": 1764,
"gzipBytes": 1765,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BQWwo3i7.js",
"houseplan-assets/zigbee-topology-DThgDHY1.js"
"houseplan-assets/houseplan-card-C2i-uVC7.js",
"houseplan-assets/zigbee-topology-BHQFELON.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "8dbb5019715b378b1c2d73d977e9f9fcec05179b950775a91825447b7428cb9b",
"sha256": "d2724d379a20f6ffb29e20b80af3a52aae4083d63038a87cc0e10375f4732701",
"rawBytes": 1205,
"gzipBytes": 803,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-BQWwo3i7.js"
"houseplan-assets/houseplan-card-C2i-uVC7.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "de982c576fc0c4c68e637e3e575c669166277fdbc497d137b1045684f3a0fe5e",
"sha256": "7080b0e9f6260e262d1853d980aece0ad33a41c48df177c6080130670ffb6a54",
"rawBytes": 6165,
"gzipBytes": 2325,
"gzipBytes": 2326,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-BQWwo3i7.js"
"houseplan-assets/houseplan-card-C2i-uVC7.js"
],
"dynamicImports": []
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,14 +1,14 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="44c8db0207714f5476f58cdacdfaae63754967422e492b7fadf3551ecaee4380";import{az as e,l as o,aC as t,e7 as s,A as a,e8 as i,e9 as l,ea as n,E as r,c}from"./houseplan-card-BQWwo3i7.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__="9e2f35decdd62281523438548e9b57beb76e40f66bbdf6feb789878f69f8a9d0";import{az as e,l as o,aC as t,e7 as s,A as a,e8 as i,e9 as l,ea as n,E as r,c}from"./houseplan-card-C2i-uVC7.js";class f 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,f={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")},h=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}
.computeLabel=${e=>h[e.name]||e.name}
.computeLabel=${e=>f[e.name]||e.name}
@value-changed=${this._valueChanged}
></ha-form>`;return c`
${d(f.slice(0,3))}
${d(h.slice(0,3))}
${_?c`<div class="default-floor-error" role="alert"
style="color:var(--error-color,#db4437);margin:-4px 0 12px;overflow-wrap:anywhere">
${t(s,"editor.default_floor_missing",{id:_})}
</div>`:a}
${d(f.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}h.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",h);
${d(h.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}f.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",f);
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__="44c8db0207714f5476f58cdacdfaae63754967422e492b7fadf3551ecaee4380";import{c as a,A as e}from"./houseplan-card-BQWwo3i7.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-D3ySFavc.js";import"./form-kit.styles-BqBbEnaz.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__="9e2f35decdd62281523438548e9b57beb76e40f66bbdf6feb789878f69f8a9d0";import{c as a,A as e}from"./houseplan-card-C2i-uVC7.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-CERnuWAI.js";import"./form-kit.styles-DZXsxRZj.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"
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="9e2f35decdd62281523438548e9b57beb76e40f66bbdf6feb789878f69f8a9d0";import{ed as e,J as t,aX as n,H as i,aa as o,a8 as r,bO as s,bN as a,aW as l,aV as c,aY as d,ee as u,ef as f,bQ as m,eg as g}from"./houseplan-card-C2i-uVC7.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*b(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 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=u(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 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="44c8db0207714f5476f58cdacdfaae63754967422e492b7fadf3551ecaee4380";import{ed as e,J as t,aX as n,H as i,aa as o,a8 as r,bO as a,bN as s,aW as c,aV as l,aY as d,ee as u,ef as f,bQ as m,eg as g}from"./houseplan-card-BQWwo3i7.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),a=i.binding.slice(o+1),s="device"===r?e.registry.devices?.[a]:null,c="entity"===r?e.registry.entities?.[a]:null,l="device"===r?a:c?.device_id,d="device"===r?s?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.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;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===r&&n.liveEntities.has(a))&&t.add(l)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(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*h(c,l,d=_){try{let u=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=d(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const s=t(e);if(!s)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||s;v=y(v,a(c,m.physicalBodies)),yield}const _=m.cellCm/o;u+=s(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};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="44c8db0207714f5476f58cdacdfaae63754967422e492b7fadf3551ecaee4380";import{n as t,b as n}from"./zigbee-topology-DThgDHY1.js";import{aI as e}from"./houseplan-card-BQWwo3i7.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};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="9e2f35decdd62281523438548e9b57beb76e40f66bbdf6feb789878f69f8a9d0";import{n as t,b as n}from"./zigbee-topology-BHQFELON.js";import{aI as e}from"./houseplan-card-C2i-uVC7.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 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="44c8db0207714f5476f58cdacdfaae63754967422e492b7fadf3551ecaee4380";try{await import("./houseplan-assets/houseplan-card-BQWwo3i7.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__="9e2f35decdd62281523438548e9b57beb76e40f66bbdf6feb789878f69f8a9d0";try{await import("./houseplan-assets/houseplan-card-C2i-uVC7.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