test(golden): проверить видимость иконки dishwasher (#640)

Issue: #640
User-Visible: no
This commit is contained in:
Claude
2026-09-23 15:49:45 +00:00
committed by claude[bot]
parent de8482fde0
commit 959dda9e48
45 changed files with 365 additions and 351 deletions
@@ -1,312 +1,312 @@
{
"schema": 1,
"fingerprint": "155bad1a300cad69c2d558ec7ec4615f5ce886fe90fbb922b018667063337748",
"fingerprint": "2b04d2889e0a5948d73c9e38fc89660ac8a2c64b91e0f4914849c235294f7787",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-B2PnrBQR.js",
"houseplan-assets/houseplan-card-BOp8z3uh.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 291029,
"initialViewGzipBytes": 291034,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-B2PnrBQR.js",
"houseplan-assets/houseplan-card-BOp8z3uh.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 292552,
"initialPanelGzipBytes": 292557,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2327,
"initialPanelOnlyGzipBytes": 2328,
"lazyFiles": [
"houseplan-assets/backdrop-pick-DRkr0tk8.js",
"houseplan-assets/de-C8VxYOQK.js",
"houseplan-assets/editor-CYbJiGKS.js",
"houseplan-assets/form-kit.styles-DYUuaY3S.js",
"houseplan-assets/fr-B6phGD49.js",
"houseplan-assets/furniture-plan-art.generated-CYO7K4uD.js",
"houseplan-assets/houseplan-editor-runtime-7Y3WGWWo.js",
"houseplan-assets/houseplan-onboarding-runtime-DSIK-BGM.js",
"houseplan-assets/hp-zigbee-topology-overlay-BduoL8gH.js",
"houseplan-assets/iso-scene-render-D6CIqqIw.js",
"houseplan-assets/live-interaction-runtime-BSvV0uW9.js",
"houseplan-assets/pdf-export-BrZIJTO9.js",
"houseplan-assets/summary-panel-runtime-loaded-Ft-l_EHN.js",
"houseplan-assets/zigbee-topology-Cqy0TLsM.js",
"houseplan-assets/zigbee-topology-runtime-5eeeu7AW.js"
"houseplan-assets/backdrop-pick-CQVZf39i.js",
"houseplan-assets/de-4pbnE-HI.js",
"houseplan-assets/editor-DaiOun4S.js",
"houseplan-assets/form-kit.styles-DKGwlmsM.js",
"houseplan-assets/fr-BCnh89tV.js",
"houseplan-assets/furniture-plan-art.generated-B-MBntZA.js",
"houseplan-assets/houseplan-editor-runtime-CWcRfZR3.js",
"houseplan-assets/houseplan-onboarding-runtime-Caj5uRGL.js",
"houseplan-assets/hp-zigbee-topology-overlay-BH3BvfHq.js",
"houseplan-assets/iso-scene-render-eqCcJQHJ.js",
"houseplan-assets/live-interaction-runtime-DbbTYlYk.js",
"houseplan-assets/pdf-export-DquVPB17.js",
"houseplan-assets/summary-panel-runtime-loaded-CcDGhY-_.js",
"houseplan-assets/zigbee-topology-D5yAwzq5.js",
"houseplan-assets/zigbee-topology-runtime-DbVKhzR5.js"
],
"lazyGzipBytes": 460966,
"lazyGzipBytes": 460985,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-DRkr0tk8.js",
"houseplan-assets/editor-CYbJiGKS.js",
"houseplan-assets/form-kit.styles-DYUuaY3S.js",
"houseplan-assets/furniture-plan-art.generated-CYO7K4uD.js",
"houseplan-assets/houseplan-editor-runtime-7Y3WGWWo.js",
"houseplan-assets/zigbee-topology-Cqy0TLsM.js"
"houseplan-assets/backdrop-pick-CQVZf39i.js",
"houseplan-assets/editor-DaiOun4S.js",
"houseplan-assets/form-kit.styles-DKGwlmsM.js",
"houseplan-assets/furniture-plan-art.generated-B-MBntZA.js",
"houseplan-assets/houseplan-editor-runtime-CWcRfZR3.js",
"houseplan-assets/zigbee-topology-D5yAwzq5.js"
],
"lazyEditorGzipBytes": 244440,
"lazyEditorGzipBytes": 244445,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-DRkr0tk8.js",
"houseplan-assets/form-kit.styles-DYUuaY3S.js",
"houseplan-assets/houseplan-onboarding-runtime-DSIK-BGM.js"
"houseplan-assets/backdrop-pick-CQVZf39i.js",
"houseplan-assets/form-kit.styles-DKGwlmsM.js",
"houseplan-assets/houseplan-onboarding-runtime-Caj5uRGL.js"
],
"lazyOnboardingGzipBytes": 34527,
"lazyOnboardingGzipBytes": 34534,
"lazyLocaleFiles": [
"houseplan-assets/de-C8VxYOQK.js",
"houseplan-assets/fr-B6phGD49.js"
"houseplan-assets/de-4pbnE-HI.js",
"houseplan-assets/fr-BCnh89tV.js"
],
"lazyLocaleGzipBytes": 55264,
"lazyLocaleGzipBytes": 55267,
"lazyIsometricFiles": [
"houseplan-assets/iso-scene-render-D6CIqqIw.js"
"houseplan-assets/iso-scene-render-eqCcJQHJ.js"
],
"lazyIsometricGzipBytes": 17641,
"lazyIsometricGzipBytes": 17644,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-CYO7K4uD.js"
"houseplan-assets/furniture-plan-art.generated-B-MBntZA.js"
],
"lazyFurnitureArtGzipBytes": 16939,
"lazyFurnitureArtGzipBytes": 16935,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-CYO7K4uD.js",
"houseplan-assets/pdf-export-BrZIJTO9.js"
"houseplan-assets/furniture-plan-art.generated-B-MBntZA.js",
"houseplan-assets/pdf-export-DquVPB17.js"
],
"lazyPdfGzipBytes": 126826,
"lazyPdfGzipBytes": 126823,
"files": [
{
"path": "houseplan-assets/backdrop-pick-DRkr0tk8.js",
"sha256": "1d0855e08eff61db8cbd8c238d17b92a5ecf02fd26e4f2fd78bc320927271cf4",
"path": "houseplan-assets/backdrop-pick-CQVZf39i.js",
"sha256": "b534b81e9a13ae11b6aad7408f3fc0a88b43fb41d3791bc818d12935f5819ab0",
"rawBytes": 76524,
"gzipBytes": 24574,
"gzipBytes": 24575,
"isEntry": false,
"imports": [
"houseplan-assets/form-kit.styles-DYUuaY3S.js",
"houseplan-assets/houseplan-card-B2PnrBQR.js"
"houseplan-assets/form-kit.styles-DKGwlmsM.js",
"houseplan-assets/houseplan-card-BOp8z3uh.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-C8VxYOQK.js",
"sha256": "2eadb01b5ae524fc699aa129ff5fe40715a697201ebbdab78953640c26a6bb5a",
"path": "houseplan-assets/de-4pbnE-HI.js",
"sha256": "6ea571ed21ac7cfa8f7fdf443a3af226985d0302138ca31165c2c867f566796c",
"rawBytes": 92247,
"gzipBytes": 27869,
"gzipBytes": 27870,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-CYbJiGKS.js",
"sha256": "ab28858d5a0166a9181c1d718c890191fcb9275c5c66b6948d49d560b13814a4",
"path": "houseplan-assets/editor-DaiOun4S.js",
"sha256": "c76692e32b359035917be3728c9f50081768f5bfe39494c298d3eb8d4ea1ad96",
"rawBytes": 3833,
"gzipBytes": 1583,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B2PnrBQR.js"
"houseplan-assets/houseplan-card-BOp8z3uh.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/form-kit.styles-DYUuaY3S.js",
"sha256": "150f32722e79f960a40072e5136c4bf8fee14c53b1b7beac3221b2338092abfa",
"path": "houseplan-assets/form-kit.styles-DKGwlmsM.js",
"sha256": "bacc682c5936a59cb0c0b4bceeb39bb553c9c17b48c5d4bf361b7c171e1daa92",
"rawBytes": 25600,
"gzipBytes": 5056,
"gzipBytes": 5058,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-B6phGD49.js",
"sha256": "3b188813eff92abb980e88a6b543a2987e361415d015f6b8709393ec42fc923f",
"path": "houseplan-assets/fr-BCnh89tV.js",
"sha256": "475c2332a84125d2775b2b691519d34a8a0f4ad450a95a2c440e382abd83e811",
"rawBytes": 94579,
"gzipBytes": 27395,
"gzipBytes": 27397,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-CYO7K4uD.js",
"sha256": "0c9be4cfe45f0b90e3ddc1b265ad12446025b578243cf8b68a6ef32ba498b999",
"path": "houseplan-assets/furniture-plan-art.generated-B-MBntZA.js",
"sha256": "27e647b947a64ac4b00332d0abdd45e616b61ff19c8a0e2b747fe186b4950453",
"rawBytes": 52035,
"gzipBytes": 16939,
"gzipBytes": 16935,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-B2PnrBQR.js",
"sha256": "4ebbcc026c354f03d7e5cdd98d5a79eddfc3edce5b75e372ab7e73ef637fb543",
"path": "houseplan-assets/houseplan-card-BOp8z3uh.js",
"sha256": "836d4a9cca6bb6328b7f3c7d84f686a03e626cf8fe61dbc93087a5e17dcba7e5",
"rawBytes": 1031784,
"gzipBytes": 290225,
"gzipBytes": 290229,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-C8VxYOQK.js",
"houseplan-assets/editor-CYbJiGKS.js",
"houseplan-assets/fr-B6phGD49.js",
"houseplan-assets/furniture-plan-art.generated-CYO7K4uD.js",
"houseplan-assets/houseplan-editor-runtime-7Y3WGWWo.js",
"houseplan-assets/houseplan-onboarding-runtime-DSIK-BGM.js",
"houseplan-assets/hp-zigbee-topology-overlay-BduoL8gH.js",
"houseplan-assets/iso-scene-render-D6CIqqIw.js",
"houseplan-assets/live-interaction-runtime-BSvV0uW9.js",
"houseplan-assets/pdf-export-BrZIJTO9.js",
"houseplan-assets/summary-panel-runtime-loaded-Ft-l_EHN.js"
"houseplan-assets/de-4pbnE-HI.js",
"houseplan-assets/editor-DaiOun4S.js",
"houseplan-assets/fr-BCnh89tV.js",
"houseplan-assets/furniture-plan-art.generated-B-MBntZA.js",
"houseplan-assets/houseplan-editor-runtime-CWcRfZR3.js",
"houseplan-assets/houseplan-onboarding-runtime-Caj5uRGL.js",
"houseplan-assets/hp-zigbee-topology-overlay-BH3BvfHq.js",
"houseplan-assets/iso-scene-render-eqCcJQHJ.js",
"houseplan-assets/live-interaction-runtime-DbbTYlYk.js",
"houseplan-assets/pdf-export-DquVPB17.js",
"houseplan-assets/summary-panel-runtime-loaded-CcDGhY-_.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-7Y3WGWWo.js",
"sha256": "a0ec2bd01091a152d5231404e52f998f93e742325f9f1dd6b358cf8122379aac",
"path": "houseplan-assets/houseplan-editor-runtime-CWcRfZR3.js",
"sha256": "c0f28e5fffbc9be21ad544c8083a40d5fa595c9435786e7bcb689a5eb140ab5c",
"rawBytes": 678284,
"gzipBytes": 188858,
"gzipBytes": 188862,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-DRkr0tk8.js",
"houseplan-assets/form-kit.styles-DYUuaY3S.js",
"houseplan-assets/furniture-plan-art.generated-CYO7K4uD.js",
"houseplan-assets/houseplan-card-B2PnrBQR.js",
"houseplan-assets/zigbee-topology-Cqy0TLsM.js"
"houseplan-assets/backdrop-pick-CQVZf39i.js",
"houseplan-assets/form-kit.styles-DKGwlmsM.js",
"houseplan-assets/furniture-plan-art.generated-B-MBntZA.js",
"houseplan-assets/houseplan-card-BOp8z3uh.js",
"houseplan-assets/zigbee-topology-D5yAwzq5.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-5eeeu7AW.js"
"houseplan-assets/zigbee-topology-runtime-DbVKhzR5.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-DSIK-BGM.js",
"sha256": "de294e25601433494f6e51115c3f80f07114de505294d63033b37f3aca54e141",
"path": "houseplan-assets/houseplan-onboarding-runtime-Caj5uRGL.js",
"sha256": "ffe91d6f6a8b981c08437230fba254f1ab45166fc1698d9ea1338756cf5af78f",
"rawBytes": 15986,
"gzipBytes": 4897,
"gzipBytes": 4901,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-DRkr0tk8.js",
"houseplan-assets/form-kit.styles-DYUuaY3S.js",
"houseplan-assets/houseplan-card-B2PnrBQR.js"
"houseplan-assets/backdrop-pick-CQVZf39i.js",
"houseplan-assets/form-kit.styles-DKGwlmsM.js",
"houseplan-assets/houseplan-card-BOp8z3uh.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-BduoL8gH.js",
"sha256": "38c15d091ac7deb7cbc7236fd05139808c48945c9b32bc65e2a00dbad1728db1",
"path": "houseplan-assets/hp-zigbee-topology-overlay-BH3BvfHq.js",
"sha256": "a6031c96df72736acb459a34ad980671565570f17257d153eefca5e14cb5b2cb",
"rawBytes": 10759,
"gzipBytes": 3685,
"gzipBytes": 3688,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B2PnrBQR.js",
"houseplan-assets/zigbee-topology-Cqy0TLsM.js",
"houseplan-assets/zigbee-topology-runtime-5eeeu7AW.js"
"houseplan-assets/houseplan-card-BOp8z3uh.js",
"houseplan-assets/zigbee-topology-D5yAwzq5.js",
"houseplan-assets/zigbee-topology-runtime-DbVKhzR5.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-D6CIqqIw.js",
"sha256": "b178c3fcecd53c48b3193454a8fbe084cd18591fd0dd0c40661874b322425a97",
"path": "houseplan-assets/iso-scene-render-eqCcJQHJ.js",
"sha256": "59aaef056527652819599b360b773e8a8ebfd18de06b063f8993d04a9f8c4a0a",
"rawBytes": 51983,
"gzipBytes": 17641,
"gzipBytes": 17644,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B2PnrBQR.js"
"houseplan-assets/houseplan-card-BOp8z3uh.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-BSvV0uW9.js",
"sha256": "57415a11d4a901af9577037adc5c8b285100d1f359c23169121887334f097c8b",
"path": "houseplan-assets/live-interaction-runtime-DbbTYlYk.js",
"sha256": "d1a46296c077dbc3f5d40c4182b8b607fe3e3b8984faccdedeaf97f870e15e09",
"rawBytes": 8216,
"gzipBytes": 3209,
"gzipBytes": 3210,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B2PnrBQR.js"
"houseplan-assets/houseplan-card-BOp8z3uh.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-BrZIJTO9.js",
"sha256": "276208ddf54620283cac18bdc0f8e32db24fc4beedcb533ff9a0eab3642ed344",
"path": "houseplan-assets/pdf-export-DquVPB17.js",
"sha256": "f9e7cffebd4b2d0e8aba782d459b66529d450378231f1d4c43caa703c6ed415d",
"rawBytes": 236264,
"gzipBytes": 109887,
"gzipBytes": 109888,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-CYO7K4uD.js",
"houseplan-assets/houseplan-card-B2PnrBQR.js"
"houseplan-assets/furniture-plan-art.generated-B-MBntZA.js",
"houseplan-assets/houseplan-card-BOp8z3uh.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-DOYN7bgA.js",
"sha256": "a568e60350b44bc8adc5de2356119db858da85207cea81825f024956d8b06b5b",
"path": "houseplan-assets/summary-panel-editor-B99lC1OW.js",
"sha256": "61e4c5e49bdfe0984626b38f62954bc68f37f7dabc9b7965ef8c2de2ff08558b",
"rawBytes": 14862,
"gzipBytes": 3426,
"gzipBytes": 3429,
"isEntry": false,
"imports": [
"houseplan-assets/form-kit.styles-DYUuaY3S.js",
"houseplan-assets/houseplan-card-B2PnrBQR.js",
"houseplan-assets/summary-panel-runtime-loaded-Ft-l_EHN.js"
"houseplan-assets/form-kit.styles-DKGwlmsM.js",
"houseplan-assets/houseplan-card-BOp8z3uh.js",
"houseplan-assets/summary-panel-runtime-loaded-CcDGhY-_.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-0cFkd4B2.js",
"sha256": "eb5d6eb23de7fa1e67228c60a72e448ffbc7eb7755e4095864979dc6696fcbc4",
"path": "houseplan-assets/summary-panel-metrics-ECNtS0-f.js",
"sha256": "3bbe51c7e707d448d5e93e249157d53fb764184cffdcc2c6dd87b47876888413",
"rawBytes": 2611,
"gzipBytes": 1308,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B2PnrBQR.js"
"houseplan-assets/houseplan-card-BOp8z3uh.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-Ft-l_EHN.js",
"sha256": "b8ed92b5b3062bb151f5fe4a98d3e7096a89429fe672a18d825c1180cc6bdecc",
"path": "houseplan-assets/summary-panel-runtime-loaded-CcDGhY-_.js",
"sha256": "c05563a9ba67578bb536682ad31090baad5df64dead6669a1ba213046794f080",
"rawBytes": 72733,
"gzipBytes": 20177,
"gzipBytes": 20176,
"isEntry": false,
"imports": [
"houseplan-assets/form-kit.styles-DYUuaY3S.js",
"houseplan-assets/houseplan-card-B2PnrBQR.js"
"houseplan-assets/form-kit.styles-DKGwlmsM.js",
"houseplan-assets/houseplan-card-BOp8z3uh.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-DOYN7bgA.js",
"houseplan-assets/summary-panel-metrics-0cFkd4B2.js"
"houseplan-assets/summary-panel-editor-B99lC1OW.js",
"houseplan-assets/summary-panel-metrics-ECNtS0-f.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-Cqy0TLsM.js",
"sha256": "26a05f7b1a5d6283b9a6c44926275a0a07f8703efe3b595e440fbf3afd4c086a",
"path": "houseplan-assets/zigbee-topology-D5yAwzq5.js",
"sha256": "75f3c4086d6dd46685b6206d414b19df58ffae0fc309f798055668bf423ee3c5",
"rawBytes": 18962,
"gzipBytes": 7430,
"gzipBytes": 7432,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B2PnrBQR.js"
"houseplan-assets/houseplan-card-BOp8z3uh.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-5eeeu7AW.js",
"sha256": "b4998ace9b92d817a87218ff2b98cfece4109ea995b11631652dc47186cc58c2",
"path": "houseplan-assets/zigbee-topology-runtime-DbVKhzR5.js",
"sha256": "8d1e0181afa72ba8924682789c747c7996c86906ebdf9cd79957922ee9a77290",
"rawBytes": 3942,
"gzipBytes": 1766,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B2PnrBQR.js",
"houseplan-assets/zigbee-topology-Cqy0TLsM.js"
"houseplan-assets/houseplan-card-BOp8z3uh.js",
"houseplan-assets/zigbee-topology-D5yAwzq5.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "3b2839dca3a6aa42cdcaa13f97de1f44adbadb4bd0dea5642a59eba49454c3b9",
"sha256": "105d7374d55a5a8aca99ba6dbab39afb939d6cb85a2f09e9161320247edc8d13",
"rawBytes": 1205,
"gzipBytes": 804,
"gzipBytes": 805,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-B2PnrBQR.js"
"houseplan-assets/houseplan-card-BOp8z3uh.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "5c84e0c2faeecbcabf4b99d3751b6baacc08ed15b46b1593b95e527fae383386",
"sha256": "f366cc54a1572548ecce64cb15a07073dc27123f90a5e707815df34fe1e4fffc",
"rawBytes": 6165,
"gzipBytes": 2327,
"gzipBytes": 2328,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-B2PnrBQR.js"
"houseplan-assets/houseplan-card-BOp8z3uh.js"
],
"dynamicImports": []
}
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="155bad1a300cad69c2d558ec7ec4615f5ce886fe90fbb922b018667063337748";import{A as e,c as a,s as t,l as i,d as n,ap as s,h as r,j as o,g as l,dH as c,dI as p,dJ as d,cL as h,dK as u,cK as m,dL as g,cQ as _,cP as b,dM as f,bs as v,br as w,bt as y,av as k,aC as $,aD as x,dN as S}from"./houseplan-card-B2PnrBQR.js";import{c as C,f as M,C as L}from"./form-kit.styles-DYUuaY3S.js";const z=C+M(L,{withSwitch:!1}),P=new WeakSet;let D=null;function T(e){const a=e.renderRoot;if(!a||P.has(a))return;const t=a.ownerDocument??globalThis.document,i=t?.defaultView?.CSSStyleSheet;if(i&&"adoptedStyleSheets"in a)return D||(D=new i,D.replaceSync(z)),a.adoptedStyleSheets=[...a.adoptedStyleSheets,D],void P.add(a);if(a.querySelector("style[data-hp-form-kit]"))return void P.add(a);const n=t.createElement("style");n.dataset.hpFormKit="true",n.textContent=z,a.appendChild(n),P.add(a)}function H({title:t,help:i,body:n,id:s}){return a`<section class="hpf-card" data-card=${s??e}>
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="2b04d2889e0a5948d73c9e38fc89660ac8a2c64b91e0f4914849c235294f7787";import{A as e,c as a,s as t,l as i,d as n,ap as s,h as r,j as o,g as l,dH as c,dI as p,dJ as d,cL as h,dK as u,cK as m,dL as g,cQ as _,cP as b,dM as f,bs as v,br as w,bt as y,av as k,aC as $,aD as x,dN as S}from"./houseplan-card-BOp8z3uh.js";import{c as C,f as M,C as L}from"./form-kit.styles-DKGwlmsM.js";const z=C+M(L,{withSwitch:!1}),P=new WeakSet;let D=null;function T(e){const a=e.renderRoot;if(!a||P.has(a))return;const t=a.ownerDocument??globalThis.document,i=t?.defaultView?.CSSStyleSheet;if(i&&"adoptedStyleSheets"in a)return D||(D=new i,D.replaceSync(z)),a.adoptedStyleSheets=[...a.adoptedStyleSheets,D],void P.add(a);if(a.querySelector("style[data-hp-form-kit]"))return void P.add(a);const n=t.createElement("style");n.dataset.hpFormKit="true",n.textContent=z,a.appendChild(n),P.add(a)}function H({title:t,help:i,body:n,id:s}){return a`<section class="hpf-card" data-card=${s??e}>
${t?a`<div class="hpf-head"><h3>${t}</h3>${i??e}</div>`:e}
<div class="hpf-body">${n}</div>
</section>`}function E({title:t,help:i}){return a`<div class="hpf-sub"><h4>${t}</h4>${i??e}</div>`}function F({label:t,htmlFor:i,help:n,control:s,hint:r,error:o}){return a`<div class="hpf-field">
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="155bad1a300cad69c2d558ec7ec4615f5ce886fe90fbb922b018667063337748";import{aD as e,l as o,aG as t,ee as s,A as a,ef as i,eg as l,eh as n,E as r,c}from"./houseplan-card-B2PnrBQR.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__="2b04d2889e0a5948d73c9e38fc89660ac8a2c64b91e0f4914849c235294f7787";import{aD as e,l as o,aG as t,ee as s,A as a,ef as i,eg as l,eh as n,E as r,c}from"./houseplan-card-BOp8z3uh.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__="155bad1a300cad69c2d558ec7ec4615f5ce886fe90fbb922b018667063337748";import{l as t,bv as s,A as e,aG as o,c as i,m as a,cJ as l,cK as h,cL as n,bs as r,cM as c,cR as p,cN as d,cO as _,cP as u,cQ as g,cS as m,cT as b}from"./houseplan-card-B2PnrBQR.js";import{z as f,y as v,A as y,B as D,C as w,D as S,E as $,G as C,n as k}from"./backdrop-pick-DRkr0tk8.js";import"./form-kit.styles-DYUuaY3S.js";const M="155bad1a300cad69c2d558ec7ec4615f5ce886fe90fbb922b018667063337748";class I{constructor(t){this.host=t,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(a){const l=`${a}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,a)&&s(h,l)?i`<hp-help data-help-key=${a}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="2b04d2889e0a5948d73c9e38fc89660ac8a2c64b91e0f4914849c235294f7787";import{l as t,bv as s,A as e,aG as o,c as i,m as a,cJ as l,cK as h,cL as n,bs as r,cM as c,cR as p,cN as d,cO as _,cP as u,cQ as g,cS as m,cT as b}from"./houseplan-card-BOp8z3uh.js";import{z as f,y as v,A as y,B as D,C as w,D as S,E as $,G as C,n as k}from"./backdrop-pick-CQVZf39i.js";import"./form-kit.styles-DKGwlmsM.js";const M="2b04d2889e0a5948d73c9e38fc89660ac8a2c64b91e0f4914849c235294f7787";class I{constructor(t){this.host=t,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(a){const l=`${a}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,a)&&s(h,l)?i`<hp-help data-help-key=${a}
.text=${o(h,a)} .ariaLabel=${o(h,l)}></hp-help>`:e}_openSpaceDialog(t,s){if(!this.host._serverStorage||!this.host._serverCfg)return void this.host._showToast(this.host._t("toast.integration_missing"));if("edit"===t){const e=this.host._serverCfg.spaces.find(t=>t.id===s);if(!e)return;const o=a(e),i=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?l(e.settings.custom_fill):null,p="none"===o.fill?{...i||h,a:0}:i;return void(this.host._spaceDialog={mode:t,spaceId:s,title:e.title,planUrl:e.plan_url||null,planFile:null,source:e.plan_url?"file":"draw",showBorders:o.showBorders,showNames:o.showNames,zeroWallStyle:c(e),displayTouched:!0,hideDecor:o.hideDecor,hideOpenings:o.hideOpenings,roomColor:o.color,roomOpacity:o.opacity,fillMode:"none"===o.fill?"custom":o.fill,customFill:p,glowEnabled:o.glow,bgColor:o.bgColor,bgMode:"static"===e.settings?.bg_mode||"daynight"===e.settings?.bg_mode?e.settings.bg_mode:null,northDeg:r({},e.settings),northDegInput:null===r({},e.settings)?"":String(r({},e.settings)),sunRays:"boolean"==typeof e.settings?.sun_rays?e.settings.sun_rays:null,tempMin:o.tempMin,tempMax:o.tempMax,tempMinInput:String(o.tempMin),tempMaxInput:String(o.tempMax),showLqi:o.showLqi??this.host._config?.show_signal??!0,cardFontScale:o.cardFontScale,labelTemp:o.labelTemp,labelHum:o.labelHum,labelLqi:o.labelLqi,labelLight:o.labelLight,cellCm:Number(e.cell_cm)>0?Number(e.cell_cm):5,cellCmInput:n(Number(e.cell_cm)>0?Number(e.cell_cm):5,this.host._imperial),cellCmTouched:!1,busy:!1})}const e=p(this.host._imperial);this.host._spaceDialog={mode:t,title:"",planUrl:null,planFile:null,...m(),hideDecor:!1,hideOpenings:!1,zeroWallStyle:"dashed",roomColor:g,roomOpacity:u,fillMode:"custom",customFill:{...h,a:0},glowEnabled:!0,bgColor:null,bgMode:"daynight",northDeg:null,northDegInput:"",sunRays:null,tempMin:_,tempMax:d,tempMinInput:String(_),tempMaxInput:String(d),showLqi:this.host._config?.show_signal??!0,cardFontScale:1,labelTemp:!1,labelHum:!1,labelLqi:!1,labelLight:!1,cellCm:e,cellCmInput:n(e,this.host._imperial),cellCmTouched:!1,busy:!1},f(this.host,this.host._spaceDialog)}async _pickPlanFile(t){const s=t.target,e=s.files?.[0];if(!e||!this.host._spaceDialog)return;s.value="";const o=await v(e);if("reject"===o.kind)return void this.host._showToast(this.host._t("toast.plan_formats"));if("guard"===o.kind)return void(this.host._backdropGuard=o.state);const i=await y(e,o.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:i})}_renderBackdropGuard(){return D(this.host,t=>{this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:t})},()=>{this.host._backdropGuard=null},this.host.hass)??e}_useServerPlan(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,planUrl:t,planFile:null,pickSaved:!1,savedAspect:void 0},this.host._aspectJob=this._readPlanAspect(t))}async _readPlanAspect(t){for(let s=0;s<40;s++){const s=this.host._display(t);if(s){const e=await new Promise(t=>{const e=new Image;e.onload=()=>t(e.naturalWidth&&e.naturalHeight?e.naturalWidth/e.naturalHeight:0),e.onerror=()=>t(0),e.src=s}),o=this.host._spaceDialog;return o&&o.planUrl===t&&Number.isFinite(e)&&e>0?(this.host._spaceDialog={...o,savedAspect:e},e):0}if(await new Promise(t=>setTimeout(t,150)),this.host._spaceDialog?.planUrl!==t)return 0}return 0}async _deleteServerPlan(t){const s=this.host._spaceDialog,e=s?.saved?.find(s=>s.name===t);if(!s||!e||e.used_by.length||e.url===s.planUrl)return;const o=await this.host._confirmDanger({key:"delete-plan",kind:"destructive",title:this.host._t("confirm.delete_plan_title"),message:this.host._t("confirm.delete_plan_body"),objectName:t,confirmLabel:this.host._t("btn.delete"),cancelLabel:this.host._t("btn.cancel")}),i=this.host._spaceDialog,a=i?.saved?.find(s=>s.name===t);if(o&&i&&a&&a.url===e.url&&a.modified===e.modified&&!a.used_by.length&&a.url!==i.planUrl)try{await this.host.hass.callWS({type:"houseplan/plans/delete",name:t});const s=this.host._spaceDialog;s?.saved&&(this.host._spaceDialog={...s,saved:s.saved.filter(s=>s.name!==t)})}catch(t){this.host._showToast(this.host._t("toast.plan_delete_failed",{err:this.host._errText(t)}))}}_renderServerPlans(t){if(t.savedBusy)return i`<div class="savedplans muted">${this.host._t("space.loading")}</div>`;const s=t.saved||[];if(!s.length)return i`<div class="savedplans muted">${this.host._t("space.no_saved")}</div>`;return i`<div class="savedplans">
${s.map(s=>{return i`
<div class="savedplan ${s.url===t.planUrl?"cur":""}">
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="155bad1a300cad69c2d558ec7ec4615f5ce886fe90fbb922b018667063337748";import{c as a,A as e}from"./houseplan-card-B2PnrBQR.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-Ft-l_EHN.js";import"./form-kit.styles-DYUuaY3S.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__="2b04d2889e0a5948d73c9e38fc89660ac8a2c64b91e0f4914849c235294f7787";import{c as a,A as e}from"./houseplan-card-BOp8z3uh.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-CcDGhY-_.js";import"./form-kit.styles-DKGwlmsM.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
<span class="summary-switch-caption"><strong>${b("summary.show_local")}</strong>
<small id="summary-local-show-hint">${b("summary.show_local_hint")}</small></span>
<input id="summary-local-show" data-summary-local-show type="checkbox"
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="155bad1a300cad69c2d558ec7ec4615f5ce886fe90fbb922b018667063337748";import{ek as e,N as t,a$ as n,L as i,ae as o,ac as r,bT as s,bS as a,a_ as c,aZ as l,b0 as u,el as d,em as f,bV as m,en as g}from"./houseplan-card-B2PnrBQR.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 _(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,u=_){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 _=m.cellCm/o;d+=a(v)*_*_/1e4}return d}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=d(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};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="2b04d2889e0a5948d73c9e38fc89660ac8a2c64b91e0f4914849c235294f7787";import{ek as e,N as t,a$ as n,L as i,ae as o,ac as r,bT as s,bS as a,a_ as c,aZ as l,b0 as u,el as d,em as f,bV as m,en as g}from"./houseplan-card-BOp8z3uh.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 _(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,u=_){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 _=m.cellCm/o;d+=a(v)*_*_/1e4}return d}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=d(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__="155bad1a300cad69c2d558ec7ec4615f5ce886fe90fbb922b018667063337748";import{n as t,b as n}from"./zigbee-topology-Cqy0TLsM.js";import{aM as e}from"./houseplan-card-B2PnrBQR.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__="2b04d2889e0a5948d73c9e38fc89660ac8a2c64b91e0f4914849c235294f7787";import{n as t,b as n}from"./zigbee-topology-D5yAwzq5.js";import{aM as e}from"./houseplan-card-BOp8z3uh.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__="155bad1a300cad69c2d558ec7ec4615f5ce886fe90fbb922b018667063337748";try{await import("./houseplan-assets/houseplan-card-B2PnrBQR.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__="2b04d2889e0a5948d73c9e38fc89660ac8a2c64b91e0f4914849c235294f7787";try{await import("./houseplan-assets/houseplan-card-BOp8z3uh.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