fix: блокировать нажатия устройств после pinch (#563)

Issue: #563
User-Visible: yes
This commit is contained in:
Sergey Matyunin
2026-09-13 18:44:07 +03:00
parent 8fa2568cf9
commit aa13e2264e
53 changed files with 1092 additions and 897 deletions
@@ -1,88 +1,88 @@
{
"schema": 1,
"fingerprint": "293f2f5c2037e02cc88485ababe84a1c82f0134f9ded671bb6324e000218c7b6",
"fingerprint": "52627a202515ca20c62f6e85a19460c166380bde36ca83e4d61a3fecb05727df",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-B3XEsyr7.js",
"houseplan-assets/houseplan-card-DZPydqw0.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 288236,
"initialViewGzipBytes": 288402,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-B3XEsyr7.js",
"houseplan-assets/houseplan-card-DZPydqw0.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 289758,
"initialPanelGzipBytes": 289924,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2326,
"lazyFiles": [
"houseplan-assets/backdrop-pick-CQxoq0qA.js",
"houseplan-assets/de-Diw0u3Rp.js",
"houseplan-assets/editor-CfWb1PrW.js",
"houseplan-assets/fr-CPQOeFpN.js",
"houseplan-assets/furniture-plan-art.generated-GQ00oM_7.js",
"houseplan-assets/guard-C0tnMJTa.js",
"houseplan-assets/houseplan-editor-runtime-EMzdfb0p.js",
"houseplan-assets/houseplan-onboarding-runtime-BWzpAk8U.js",
"houseplan-assets/hp-zigbee-topology-overlay-BvLrNA1u.js",
"houseplan-assets/iso-scene-render-B9hu-vxe.js",
"houseplan-assets/live-interaction-runtime-CeR3xrjm.js",
"houseplan-assets/pdf-export-BX8qvQmp.js",
"houseplan-assets/summary-panel-runtime-loaded-CmbY2LK7.js",
"houseplan-assets/zigbee-topology-CfTA4hD2.js",
"houseplan-assets/zigbee-topology-runtime-DmT0AkWm.js"
"houseplan-assets/backdrop-pick-mz_xxNpg.js",
"houseplan-assets/de-Dq465WYJ.js",
"houseplan-assets/editor-BOMDU1Tz.js",
"houseplan-assets/fr-DIw15TVn.js",
"houseplan-assets/furniture-plan-art.generated-DsUjClfK.js",
"houseplan-assets/guard-BAK_LMQo.js",
"houseplan-assets/houseplan-editor-runtime-BnwgtIiq.js",
"houseplan-assets/houseplan-onboarding-runtime-CTqmF2qt.js",
"houseplan-assets/hp-zigbee-topology-overlay-D7Oj_nWB.js",
"houseplan-assets/iso-scene-render-DMwWHb41.js",
"houseplan-assets/live-interaction-runtime-CRbPdezg.js",
"houseplan-assets/pdf-export-iwTn7RAX.js",
"houseplan-assets/summary-panel-runtime-loaded-pVwbZzxZ.js",
"houseplan-assets/zigbee-topology-Di-JGf6I.js",
"houseplan-assets/zigbee-topology-runtime-BmsZMbvW.js"
],
"lazyGzipBytes": 417840,
"lazyGzipBytes": 417834,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-CQxoq0qA.js",
"houseplan-assets/editor-CfWb1PrW.js",
"houseplan-assets/furniture-plan-art.generated-GQ00oM_7.js",
"houseplan-assets/guard-C0tnMJTa.js",
"houseplan-assets/houseplan-editor-runtime-EMzdfb0p.js",
"houseplan-assets/zigbee-topology-CfTA4hD2.js"
"houseplan-assets/backdrop-pick-mz_xxNpg.js",
"houseplan-assets/editor-BOMDU1Tz.js",
"houseplan-assets/furniture-plan-art.generated-DsUjClfK.js",
"houseplan-assets/guard-BAK_LMQo.js",
"houseplan-assets/houseplan-editor-runtime-BnwgtIiq.js",
"houseplan-assets/zigbee-topology-Di-JGf6I.js"
],
"lazyEditorGzipBytes": 204997,
"lazyEditorGzipBytes": 204995,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-CQxoq0qA.js",
"houseplan-assets/houseplan-onboarding-runtime-BWzpAk8U.js"
"houseplan-assets/backdrop-pick-mz_xxNpg.js",
"houseplan-assets/houseplan-onboarding-runtime-CTqmF2qt.js"
],
"lazyOnboardingGzipBytes": 13914,
"lazyLocaleFiles": [
"houseplan-assets/de-Diw0u3Rp.js",
"houseplan-assets/fr-CPQOeFpN.js"
"houseplan-assets/de-Dq465WYJ.js",
"houseplan-assets/fr-DIw15TVn.js"
],
"lazyLocaleGzipBytes": 54821,
"lazyIsometricFiles": [
"houseplan-assets/guard-C0tnMJTa.js",
"houseplan-assets/iso-scene-render-B9hu-vxe.js"
"houseplan-assets/guard-BAK_LMQo.js",
"houseplan-assets/iso-scene-render-DMwWHb41.js"
],
"lazyIsometricGzipBytes": 13456,
"lazyIsometricGzipBytes": 13453,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-GQ00oM_7.js"
"houseplan-assets/furniture-plan-art.generated-DsUjClfK.js"
],
"lazyFurnitureArtGzipBytes": 10252,
"lazyFurnitureArtGzipBytes": 10251,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-GQ00oM_7.js",
"houseplan-assets/pdf-export-BX8qvQmp.js"
"houseplan-assets/furniture-plan-art.generated-DsUjClfK.js",
"houseplan-assets/pdf-export-iwTn7RAX.js"
],
"lazyPdfGzipBytes": 120123,
"lazyPdfGzipBytes": 120122,
"files": [
{
"path": "houseplan-assets/backdrop-pick-CQxoq0qA.js",
"sha256": "60188764f7c24223f093735fe044efb2b41f611cb43dfb5e7028e2bcef498ea9",
"path": "houseplan-assets/backdrop-pick-mz_xxNpg.js",
"sha256": "8ccd540461f88c3ad7b4a213e2ae813124c2420533a75064d178560d100cfa38",
"rawBytes": 19956,
"gzipBytes": 6877,
"gzipBytes": 6878,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-Diw0u3Rp.js",
"sha256": "aea3509180766d54513003a7d6d18d3aefde2d00247445af099bcb8026c9871a",
"path": "houseplan-assets/de-Dq465WYJ.js",
"sha256": "b081040cbdc83f59396f62539ace823e5a5e89667010b39e3cfa9ae277587562",
"rawBytes": 91402,
"gzipBytes": 27695,
"isEntry": false,
@@ -90,19 +90,19 @@
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-CfWb1PrW.js",
"sha256": "d5787981b891853920144395ecb2d9dc31f354325027853a8f58c58c866f15d9",
"path": "houseplan-assets/editor-BOMDU1Tz.js",
"sha256": "264bf91b2a497468e6890e9bb24546aa6ee41b57c9230886dee179b005c60ab4",
"rawBytes": 3832,
"gzipBytes": 1584,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-CPQOeFpN.js",
"sha256": "e2b231c25e391fb270ac1f3ddbee16f588b9c60515337289ec8688ca70370d61",
"path": "houseplan-assets/fr-DIw15TVn.js",
"sha256": "38afd095e3b4936294d335e08c2bae25127c5b2a715f844d0cefdb3c46995f85",
"rawBytes": 93667,
"gzipBytes": 27126,
"isEntry": false,
@@ -110,202 +110,202 @@
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-GQ00oM_7.js",
"sha256": "1197227bfce78dda577f6b7eb3b4eb252d54a4c2f33c6c26b471b629cb6d4d38",
"path": "houseplan-assets/furniture-plan-art.generated-DsUjClfK.js",
"sha256": "479d21a6870d1fff03e8b8eef9a304e867fb7546c4a36aeec118e9c5f3094cd1",
"rawBytes": 33655,
"gzipBytes": 10252,
"gzipBytes": 10251,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/guard-C0tnMJTa.js",
"sha256": "6640d5133c05975567da91d7f9f499b6347238e0acaf0e5b5a35d89b4818a1ee",
"path": "houseplan-assets/guard-BAK_LMQo.js",
"sha256": "a8bd2c26e2286e43247825ca547d78a9dfd5bc8233783d7125fa6185f62843df",
"rawBytes": 518,
"gzipBytes": 370,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-B3XEsyr7.js",
"sha256": "8d4de802d98eaed758c85e9bdd64ea2baab826257f87d32bf0127134e807bd2d",
"rawBytes": 1023955,
"gzipBytes": 287432,
"path": "houseplan-assets/houseplan-card-DZPydqw0.js",
"sha256": "38ff9c7a418bdecc0c2467347934a35d4ddd4e7070b73f4c013f01e08d81c91f",
"rawBytes": 1024749,
"gzipBytes": 287598,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-Diw0u3Rp.js",
"houseplan-assets/editor-CfWb1PrW.js",
"houseplan-assets/fr-CPQOeFpN.js",
"houseplan-assets/furniture-plan-art.generated-GQ00oM_7.js",
"houseplan-assets/houseplan-editor-runtime-EMzdfb0p.js",
"houseplan-assets/houseplan-onboarding-runtime-BWzpAk8U.js",
"houseplan-assets/hp-zigbee-topology-overlay-BvLrNA1u.js",
"houseplan-assets/iso-scene-render-B9hu-vxe.js",
"houseplan-assets/live-interaction-runtime-CeR3xrjm.js",
"houseplan-assets/pdf-export-BX8qvQmp.js",
"houseplan-assets/summary-panel-runtime-loaded-CmbY2LK7.js"
"houseplan-assets/de-Dq465WYJ.js",
"houseplan-assets/editor-BOMDU1Tz.js",
"houseplan-assets/fr-DIw15TVn.js",
"houseplan-assets/furniture-plan-art.generated-DsUjClfK.js",
"houseplan-assets/houseplan-editor-runtime-BnwgtIiq.js",
"houseplan-assets/houseplan-onboarding-runtime-CTqmF2qt.js",
"houseplan-assets/hp-zigbee-topology-overlay-D7Oj_nWB.js",
"houseplan-assets/iso-scene-render-DMwWHb41.js",
"houseplan-assets/live-interaction-runtime-CRbPdezg.js",
"houseplan-assets/pdf-export-iwTn7RAX.js",
"houseplan-assets/summary-panel-runtime-loaded-pVwbZzxZ.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-EMzdfb0p.js",
"sha256": "481456d973fb15f03bd784bde71e243fe765b4867f08260e179e9a98f7932273",
"path": "houseplan-assets/houseplan-editor-runtime-BnwgtIiq.js",
"sha256": "777be5d28962b846a6396b455cdd0f7b6056f72ac8d07fdbfa93c12a8bf72eba",
"rawBytes": 668820,
"gzipBytes": 178485,
"gzipBytes": 178483,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-CQxoq0qA.js",
"houseplan-assets/furniture-plan-art.generated-GQ00oM_7.js",
"houseplan-assets/guard-C0tnMJTa.js",
"houseplan-assets/houseplan-card-B3XEsyr7.js",
"houseplan-assets/zigbee-topology-CfTA4hD2.js"
"houseplan-assets/backdrop-pick-mz_xxNpg.js",
"houseplan-assets/furniture-plan-art.generated-DsUjClfK.js",
"houseplan-assets/guard-BAK_LMQo.js",
"houseplan-assets/houseplan-card-DZPydqw0.js",
"houseplan-assets/zigbee-topology-Di-JGf6I.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-DmT0AkWm.js"
"houseplan-assets/zigbee-topology-runtime-BmsZMbvW.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-BWzpAk8U.js",
"sha256": "b8467cd54a8a91e5c4f421375404dbfd1eee08bfc15cadf7b65358218b42edfe",
"path": "houseplan-assets/houseplan-onboarding-runtime-CTqmF2qt.js",
"sha256": "aaf056ed370865c1d745158dedd642b5a96e8da80f31bca476e78b6828ce3f5c",
"rawBytes": 28287,
"gzipBytes": 7037,
"gzipBytes": 7036,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-CQxoq0qA.js",
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/backdrop-pick-mz_xxNpg.js",
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-BvLrNA1u.js",
"sha256": "932fb91fc3dee03cadc42e86eaece3b30302b5281221d1510ceb35eb055c5db3",
"path": "houseplan-assets/hp-zigbee-topology-overlay-D7Oj_nWB.js",
"sha256": "ec95bd42a719c2ffeeb455e8273ca8a91ae9b3e5cd04ad349dbcf76e8d122f31",
"rawBytes": 10756,
"gzipBytes": 3681,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js",
"houseplan-assets/zigbee-topology-CfTA4hD2.js",
"houseplan-assets/zigbee-topology-runtime-DmT0AkWm.js"
"houseplan-assets/houseplan-card-DZPydqw0.js",
"houseplan-assets/zigbee-topology-Di-JGf6I.js",
"houseplan-assets/zigbee-topology-runtime-BmsZMbvW.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-B9hu-vxe.js",
"sha256": "c9ac4db92b7c5e841f6e69413ddee4f67c7428f2965dae11b573007c0f9ec1ff",
"path": "houseplan-assets/iso-scene-render-DMwWHb41.js",
"sha256": "cf45f9923dcfd2b2b1e224f9b3135e9a9c42c5ab1502608d31bb8ede627c491d",
"rawBytes": 38562,
"gzipBytes": 13086,
"gzipBytes": 13083,
"isEntry": false,
"imports": [
"houseplan-assets/guard-C0tnMJTa.js",
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/guard-BAK_LMQo.js",
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-CeR3xrjm.js",
"sha256": "e4f3b624fcddf88527cc8ada3c26dd998083e5988466eed34756e52de4495743",
"path": "houseplan-assets/live-interaction-runtime-CRbPdezg.js",
"sha256": "b90b6ab1341f107d3fefb61153c54da87933c44873bb09ebd5b9a51081337e2c",
"rawBytes": 6233,
"gzipBytes": 2497,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-BX8qvQmp.js",
"sha256": "4ae62389b3be7663a4802f238dd112f40bddb1fe8d771c4ff7360448dd7de523",
"path": "houseplan-assets/pdf-export-iwTn7RAX.js",
"sha256": "8c0f6c757c5bbc085c068b3b3d3fdd1f84a4102f947191c130d54b7947ddd457",
"rawBytes": 236244,
"gzipBytes": 109871,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-GQ00oM_7.js",
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/furniture-plan-art.generated-DsUjClfK.js",
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-DD0wPqdJ.js",
"sha256": "d8e54137ebe776944b721a5013cf9bd2dc3b8b13d362caedcff1b85fd5297a65",
"path": "houseplan-assets/summary-panel-editor-BCwsZsf4.js",
"sha256": "84723c84c73926a1cd99680a7eca64bd1e33c9b810a32bb5b32998e4dd05d6af",
"rawBytes": 14824,
"gzipBytes": 3401,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js",
"houseplan-assets/summary-panel-runtime-loaded-CmbY2LK7.js"
"houseplan-assets/houseplan-card-DZPydqw0.js",
"houseplan-assets/summary-panel-runtime-loaded-pVwbZzxZ.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-BrUz5zW0.js",
"sha256": "15bfb467d54c95d9b657ba88868a4136f961b9469de824355bcbda5cb6a575a5",
"path": "houseplan-assets/summary-panel-metrics-F95RQvjd.js",
"sha256": "e9fb3489fa02cd91317e58a71da5b2fc861a9f355728dbae49ca2dbbfc172961",
"rawBytes": 2610,
"gzipBytes": 1306,
"gzipBytes": 1305,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-CmbY2LK7.js",
"sha256": "4cb95e9082b1190fb9f0fbb735615fd779d76264f68792185038ac376d37b4ad",
"path": "houseplan-assets/summary-panel-runtime-loaded-pVwbZzxZ.js",
"sha256": "c59619b68071da8edbaaa7b79c93413372a5a3782b1b256e545148d67b43a068",
"rawBytes": 73366,
"gzipBytes": 20087,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-DD0wPqdJ.js",
"houseplan-assets/summary-panel-metrics-BrUz5zW0.js"
"houseplan-assets/summary-panel-editor-BCwsZsf4.js",
"houseplan-assets/summary-panel-metrics-F95RQvjd.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-CfTA4hD2.js",
"sha256": "46ac22029841797cb019f1dfc825b3f2c9e941a8426d0061add1479fcae0d0f3",
"path": "houseplan-assets/zigbee-topology-Di-JGf6I.js",
"sha256": "22c5608464858ff41854334ab733b150a786a35e6846e94213685ae745916db0",
"rawBytes": 18961,
"gzipBytes": 7429,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-DmT0AkWm.js",
"sha256": "92da75128f25ec34e0de3ac0e734aeed00f4a22e6ec0a3234c75ddd868ef9e36",
"path": "houseplan-assets/zigbee-topology-runtime-BmsZMbvW.js",
"sha256": "26c3199751869fd1e70082c8fe05c49d761ca487c75ec1bd9aad4736672717d3",
"rawBytes": 3941,
"gzipBytes": 1763,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js",
"houseplan-assets/zigbee-topology-CfTA4hD2.js"
"houseplan-assets/houseplan-card-DZPydqw0.js",
"houseplan-assets/zigbee-topology-Di-JGf6I.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "fff30e508787dc5b04e8687b19e8ac5dda96d47e30f3a4f3fdc822743594afee",
"sha256": "4b86033303d1d419b56f9f5d8e93a287ba1a7147368df329b62b32ce32f04c5a",
"rawBytes": 1205,
"gzipBytes": 804,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "51b08a92f4980d86a1b5d6318e560310df5aad5fa8cba4425c02db4753501172",
"sha256": "5715bc151a7d817ae0e279d9785c6bba1cf610d9c878c625d223a9d1e477b928",
"rawBytes": 6165,
"gzipBytes": 2326,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
}
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="293f2f5c2037e02cc88485ababe84a1c82f0134f9ded671bb6324e000218c7b6";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-B3XEsyr7.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__="52627a202515ca20c62f6e85a19460c166380bde36ca83e4d61a3fecb05727df";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-DZPydqw0.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
.hass=${this.hass}
.data=${this._formData}
.schema=${e}
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="293f2f5c2037e02cc88485ababe84a1c82f0134f9ded671bb6324e000218c7b6";import{dS as r,dT as t,dU as e}from"./houseplan-card-B3XEsyr7.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="52627a202515ca20c62f6e85a19460c166380bde36ca83e4d61a3fecb05727df";import{dS as r,dT as t,dU as e}from"./houseplan-card-DZPydqw0.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="293f2f5c2037e02cc88485ababe84a1c82f0134f9ded671bb6324e000218c7b6";import{l as t,b0 as s,A as e,t as a,b as o,cj as l,ck as i,cl as h,cm as c,aZ as n,cn as r,cs as p,co as d,cp as _,cq as u,cr as g,ct as m,cu as b,dp as $,dq as v,dr as f,aY as y,a_ as w,ds as D}from"./houseplan-card-B3XEsyr7.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-CQxoq0qA.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="293f2f5c2037e02cc88485ababe84a1c82f0134f9ded671bb6324e000218c7b6";class L{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(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?o`<hp-help data-help-key=${l}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="52627a202515ca20c62f6e85a19460c166380bde36ca83e4d61a3fecb05727df";import{l as t,b0 as s,A as e,t as a,b as o,cj as l,ck as i,cl as h,cm as c,aZ as n,cn as r,cs as p,co as d,cp as _,cq as u,cr as g,ct as m,cu as b,dp as $,dq as v,dr as f,aY as y,a_ as w,ds as D}from"./houseplan-card-DZPydqw0.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-mz_xxNpg.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="52627a202515ca20c62f6e85a19460c166380bde36ca83e4d61a3fecb05727df";class L{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(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?o`<hp-help data-help-key=${l}
.text=${a(h,l)} .ariaLabel=${a(h,i)}></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 a=l(e),o=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?i(e.settings.custom_fill):null,p="none"===a.fill?{...o||h,a:0}:o;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:a.showBorders,showNames:a.showNames,zeroWallStyle:r(e),displayTouched:!0,hideDecor:a.hideDecor,hideOpenings:a.hideOpenings,roomColor:a.color,roomOpacity:a.opacity,fillMode:"none"===a.fill?"custom":a.fill,customFill:p,glowEnabled:a.glow,bgColor:a.bgColor,bgMode:"static"===e.settings?.bg_mode||"daynight"===e.settings?.bg_mode?e.settings.bg_mode:null,northDeg:n({},e.settings),sunRays:"boolean"==typeof e.settings?.sun_rays?e.settings.sun_rays:null,tempMin:a.tempMin,tempMax:a.tempMax,showLqi:a.showLqi??this.host._config?.show_signal??!0,cardFontScale:a.cardFontScale,labelTemp:a.labelTemp,labelHum:a.labelHum,labelLqi:a.labelLqi,labelLight:a.labelLight,cellCm:Number(e.cell_cm)>0?Number(e.cell_cm):5,cellCmInput:c(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,sunRays:null,tempMin:_,tempMax:d,showLqi:this.host._config?.show_signal??!0,cardFontScale:1,labelTemp:!1,labelHum:!1,labelLqi:!1,labelLight:!1,cellCm:e,cellCmInput:c(e,this.host._imperial),cellCmTouched:!1,busy:!1}}async _pickPlanFile(t){const s=t.target,e=s.files?.[0];if(!e||!this.host._spaceDialog)return;s.value="";const a=await k(e);if("reject"===a.kind)return void this.host._showToast(this.host._t("toast.plan_formats"));if("guard"===a.kind)return void(this.host._backdropGuard=a.state);const o=await S(e,a.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:o})}_renderBackdropGuard(){return C(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}),a=this.host._spaceDialog;return a&&a.planUrl===t&&Number.isFinite(e)&&e>0?(this.host._spaceDialog={...a,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 a=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")}),o=this.host._spaceDialog,l=o?.saved?.find(s=>s.name===t);if(a&&o&&l&&l.url===e.url&&l.modified===e.modified&&!l.used_by.length&&l.url!==o.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 o`<div class="savedplans muted">${this.host._t("space.loading")}</div>`;const s=t.saved||[];if(!s.length)return o`<div class="savedplans muted">${this.host._t("space.no_saved")}</div>`;return o`<div class="savedplans">
${s.map(s=>{return o`
<div class="savedplan ${s.url===t.planUrl?"cur":""}">
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="293f2f5c2037e02cc88485ababe84a1c82f0134f9ded671bb6324e000218c7b6";import{b as a,A as e}from"./houseplan-card-B3XEsyr7.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-CmbY2LK7.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__="52627a202515ca20c62f6e85a19460c166380bde36ca83e4d61a3fecb05727df";import{b as a,A as e}from"./houseplan-card-DZPydqw0.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-pVwbZzxZ.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__="293f2f5c2037e02cc88485ababe84a1c82f0134f9ded671bb6324e000218c7b6";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as c,a0 as l,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-B3XEsyr7.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*b(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 h(e,t,n=_){const i=b(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function p(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=d(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{b as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,p as summarySystemValue,h as totalCleanFloorAreaM2};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="52627a202515ca20c62f6e85a19460c166380bde36ca83e4d61a3fecb05727df";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as a,bn as s,a1 as c,a0 as l,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-DZPydqw0.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),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,u="device"===r?s?.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(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,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 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;d+=s(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__="293f2f5c2037e02cc88485ababe84a1c82f0134f9ded671bb6324e000218c7b6";import{n as t,b as n}from"./zigbee-topology-CfTA4hD2.js";import{B as e}from"./houseplan-card-B3XEsyr7.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 g(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 m(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,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=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&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await g(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 g(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,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="52627a202515ca20c62f6e85a19460c166380bde36ca83e4d61a3fecb05727df";import{n as t,b as n}from"./zigbee-topology-Di-JGf6I.js";import{B as e}from"./houseplan-card-DZPydqw0.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 g(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 m(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,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=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&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await g(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 g(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,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="293f2f5c2037e02cc88485ababe84a1c82f0134f9ded671bb6324e000218c7b6";try{await import("./houseplan-assets/houseplan-card-B3XEsyr7.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__="52627a202515ca20c62f6e85a19460c166380bde36ca83e4d61a3fecb05727df";try{await import("./houseplan-assets/houseplan-card-DZPydqw0.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
+63 -26
View File
@@ -26,44 +26,81 @@ out.pinchZoomsInPlanEditor = await page.evaluate(() => {
return zoomed && c._path.length === 0;
});
// A child control may stop pointer events before the stage sees the first
// finger. The card-level capture guard must still classify the sequence as a
// pinch and swallow WebKit's synthetic click before it reaches that control.
out.pinchCannotMisclickInteractiveChild = await page.evaluate(async () => {
// A real device is the safety boundary: a delayed compatibility click from a
// completed pinch must not reach its action, while the next deliberate
// pointerdown/up/click sequence must work immediately. Exercise every terminal
// path because touch browsers disagree about pointerup/cancel/capture ordering.
Object.assign(out, await page.evaluate(async () => {
const c = window.__card;
c._setMode('view');
await c.updateComplete;
const stage = c._stageEl;
const probe = document.createElement('button');
let clicks = 0;
probe.addEventListener('pointerdown', (ev) => ev.stopPropagation());
probe.addEventListener('pointermove', (ev) => ev.stopPropagation());
probe.addEventListener('pointerup', (ev) => ev.stopPropagation());
probe.addEventListener('click', () => clicks++);
stage.appendChild(probe);
const pointer = (type, id, target, x = id === 51 ? 300 : 400) => target.dispatchEvent(new PointerEvent(type, {
const marker = c.renderRoot.querySelector('.dev');
if (!marker) return {
pinchZoomsFromDevice: false,
pinchIntermediateClickBlocked: false,
pinchDelayedClickBlocked: false,
pinchTerminalVariantsBlocked: false,
pinchCancelsDeviceLongPress: false,
nextDeliberateDeviceTapWorks: false,
};
let actionCalls = 0;
const originalClickDevice = c._clickDevice;
c._clickDevice = () => { actionCalls += 1; };
c._infoCard = null;
c._tapConfirm = null;
const pointer = (type, id, target, x) => target.dispatchEvent(new PointerEvent(type, {
bubbles: true, composed: true, pointerId: id, pointerType: 'touch',
clientX: x, clientY: 300,
}));
const compatibilityClick = () => marker.dispatchEvent(new MouseEvent('click', {
bubbles: true, composed: true, cancelable: true,
}));
c._resetZoom();
const zoom0 = c._zoom;
pointer('pointerdown', 51, probe);
pointer('pointerdown', 52, stage);
pointer('pointermove', 51, probe, 250);
pointer('pointerdown', 51, marker, 300);
pointer('pointerdown', 52, stage, 400);
pointer('pointermove', 51, marker, 250);
pointer('pointermove', 52, stage, 450);
const pinchZoomed = c._zoom > zoom0 * 1.5;
pointer('pointerup', 51, probe);
pointer('pointerup', 52, stage);
probe.dispatchEvent(new MouseEvent('click', { bubbles: true, composed: true, cancelable: true }));
const gestureClickBlocked = clicks === 0;
await new Promise((resolve) => setTimeout(resolve, 520));
probe.dispatchEvent(new MouseEvent('click', { bubbles: true, composed: true, cancelable: true }));
probe.remove();
const ordinaryTapStillWorks = clicks === 1;
const pinchZoomsFromDevice = c._zoom > zoom0 * 1.5;
pointer('pointerup', 51, marker, 250);
compatibilityClick(); // between the two releases
const pinchIntermediateClickBlocked = actionCalls === 0;
pointer('pointerup', 52, stage, 450);
await new Promise((resolve) => setTimeout(resolve, 620));
compatibilityClick(); // deliberately later than the old 500 ms window
const pinchDelayedClickBlocked = actionCalls === 0;
const pinchCancelsDeviceLongPress = c._infoCard === null && c._tapConfirm === null;
const terminalGesture = (firstTerminal, secondTerminal, base) => {
pointer('pointerdown', base, marker, 300);
pointer('pointerdown', base + 1, stage, 400);
pointer(firstTerminal, base + 1, stage, 400); // reverse the first gesture's order
compatibilityClick();
pointer(secondTerminal, base, marker, 300);
compatibilityClick();
};
terminalGesture('pointerup', 'pointercancel', 61);
terminalGesture('lostpointercapture', 'pointerup', 71);
const pinchTerminalVariantsBlocked = actionCalls === 0;
// No timeout: the pointerdown itself, not elapsed time, proves a new intent.
pointer('pointerdown', 81, marker, 300);
pointer('pointerup', 81, marker, 300);
compatibilityClick();
const nextDeliberateDeviceTapWorks = actionCalls === 1;
c._clickDevice = originalClickDevice;
c._setMode('plan');
await c.updateComplete;
return pinchZoomed && gestureClickBlocked && ordinaryTapStillWorks;
});
return {
pinchZoomsFromDevice,
pinchIntermediateClickBlocked,
pinchDelayedClickBlocked,
pinchTerminalVariantsBlocked,
pinchCancelsDeviceLongPress,
nextDeliberateDeviceTapWorks,
};
}));
// Robot-map calibration owns the gesture surface. The card-level capture
// guard must still suppress a two-finger misclick, but must not seed or apply
+127 -127
View File
@@ -1,88 +1,88 @@
{
"schema": 1,
"fingerprint": "293f2f5c2037e02cc88485ababe84a1c82f0134f9ded671bb6324e000218c7b6",
"fingerprint": "52627a202515ca20c62f6e85a19460c166380bde36ca83e4d61a3fecb05727df",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-B3XEsyr7.js",
"houseplan-assets/houseplan-card-DZPydqw0.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 288236,
"initialViewGzipBytes": 288402,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-B3XEsyr7.js",
"houseplan-assets/houseplan-card-DZPydqw0.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 289758,
"initialPanelGzipBytes": 289924,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2326,
"lazyFiles": [
"houseplan-assets/backdrop-pick-CQxoq0qA.js",
"houseplan-assets/de-Diw0u3Rp.js",
"houseplan-assets/editor-CfWb1PrW.js",
"houseplan-assets/fr-CPQOeFpN.js",
"houseplan-assets/furniture-plan-art.generated-GQ00oM_7.js",
"houseplan-assets/guard-C0tnMJTa.js",
"houseplan-assets/houseplan-editor-runtime-EMzdfb0p.js",
"houseplan-assets/houseplan-onboarding-runtime-BWzpAk8U.js",
"houseplan-assets/hp-zigbee-topology-overlay-BvLrNA1u.js",
"houseplan-assets/iso-scene-render-B9hu-vxe.js",
"houseplan-assets/live-interaction-runtime-CeR3xrjm.js",
"houseplan-assets/pdf-export-BX8qvQmp.js",
"houseplan-assets/summary-panel-runtime-loaded-CmbY2LK7.js",
"houseplan-assets/zigbee-topology-CfTA4hD2.js",
"houseplan-assets/zigbee-topology-runtime-DmT0AkWm.js"
"houseplan-assets/backdrop-pick-mz_xxNpg.js",
"houseplan-assets/de-Dq465WYJ.js",
"houseplan-assets/editor-BOMDU1Tz.js",
"houseplan-assets/fr-DIw15TVn.js",
"houseplan-assets/furniture-plan-art.generated-DsUjClfK.js",
"houseplan-assets/guard-BAK_LMQo.js",
"houseplan-assets/houseplan-editor-runtime-BnwgtIiq.js",
"houseplan-assets/houseplan-onboarding-runtime-CTqmF2qt.js",
"houseplan-assets/hp-zigbee-topology-overlay-D7Oj_nWB.js",
"houseplan-assets/iso-scene-render-DMwWHb41.js",
"houseplan-assets/live-interaction-runtime-CRbPdezg.js",
"houseplan-assets/pdf-export-iwTn7RAX.js",
"houseplan-assets/summary-panel-runtime-loaded-pVwbZzxZ.js",
"houseplan-assets/zigbee-topology-Di-JGf6I.js",
"houseplan-assets/zigbee-topology-runtime-BmsZMbvW.js"
],
"lazyGzipBytes": 417840,
"lazyGzipBytes": 417834,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-CQxoq0qA.js",
"houseplan-assets/editor-CfWb1PrW.js",
"houseplan-assets/furniture-plan-art.generated-GQ00oM_7.js",
"houseplan-assets/guard-C0tnMJTa.js",
"houseplan-assets/houseplan-editor-runtime-EMzdfb0p.js",
"houseplan-assets/zigbee-topology-CfTA4hD2.js"
"houseplan-assets/backdrop-pick-mz_xxNpg.js",
"houseplan-assets/editor-BOMDU1Tz.js",
"houseplan-assets/furniture-plan-art.generated-DsUjClfK.js",
"houseplan-assets/guard-BAK_LMQo.js",
"houseplan-assets/houseplan-editor-runtime-BnwgtIiq.js",
"houseplan-assets/zigbee-topology-Di-JGf6I.js"
],
"lazyEditorGzipBytes": 204997,
"lazyEditorGzipBytes": 204995,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-CQxoq0qA.js",
"houseplan-assets/houseplan-onboarding-runtime-BWzpAk8U.js"
"houseplan-assets/backdrop-pick-mz_xxNpg.js",
"houseplan-assets/houseplan-onboarding-runtime-CTqmF2qt.js"
],
"lazyOnboardingGzipBytes": 13914,
"lazyLocaleFiles": [
"houseplan-assets/de-Diw0u3Rp.js",
"houseplan-assets/fr-CPQOeFpN.js"
"houseplan-assets/de-Dq465WYJ.js",
"houseplan-assets/fr-DIw15TVn.js"
],
"lazyLocaleGzipBytes": 54821,
"lazyIsometricFiles": [
"houseplan-assets/guard-C0tnMJTa.js",
"houseplan-assets/iso-scene-render-B9hu-vxe.js"
"houseplan-assets/guard-BAK_LMQo.js",
"houseplan-assets/iso-scene-render-DMwWHb41.js"
],
"lazyIsometricGzipBytes": 13456,
"lazyIsometricGzipBytes": 13453,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-GQ00oM_7.js"
"houseplan-assets/furniture-plan-art.generated-DsUjClfK.js"
],
"lazyFurnitureArtGzipBytes": 10252,
"lazyFurnitureArtGzipBytes": 10251,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-GQ00oM_7.js",
"houseplan-assets/pdf-export-BX8qvQmp.js"
"houseplan-assets/furniture-plan-art.generated-DsUjClfK.js",
"houseplan-assets/pdf-export-iwTn7RAX.js"
],
"lazyPdfGzipBytes": 120123,
"lazyPdfGzipBytes": 120122,
"files": [
{
"path": "houseplan-assets/backdrop-pick-CQxoq0qA.js",
"sha256": "60188764f7c24223f093735fe044efb2b41f611cb43dfb5e7028e2bcef498ea9",
"path": "houseplan-assets/backdrop-pick-mz_xxNpg.js",
"sha256": "8ccd540461f88c3ad7b4a213e2ae813124c2420533a75064d178560d100cfa38",
"rawBytes": 19956,
"gzipBytes": 6877,
"gzipBytes": 6878,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-Diw0u3Rp.js",
"sha256": "aea3509180766d54513003a7d6d18d3aefde2d00247445af099bcb8026c9871a",
"path": "houseplan-assets/de-Dq465WYJ.js",
"sha256": "b081040cbdc83f59396f62539ace823e5a5e89667010b39e3cfa9ae277587562",
"rawBytes": 91402,
"gzipBytes": 27695,
"isEntry": false,
@@ -90,19 +90,19 @@
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-CfWb1PrW.js",
"sha256": "d5787981b891853920144395ecb2d9dc31f354325027853a8f58c58c866f15d9",
"path": "houseplan-assets/editor-BOMDU1Tz.js",
"sha256": "264bf91b2a497468e6890e9bb24546aa6ee41b57c9230886dee179b005c60ab4",
"rawBytes": 3832,
"gzipBytes": 1584,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-CPQOeFpN.js",
"sha256": "e2b231c25e391fb270ac1f3ddbee16f588b9c60515337289ec8688ca70370d61",
"path": "houseplan-assets/fr-DIw15TVn.js",
"sha256": "38afd095e3b4936294d335e08c2bae25127c5b2a715f844d0cefdb3c46995f85",
"rawBytes": 93667,
"gzipBytes": 27126,
"isEntry": false,
@@ -110,202 +110,202 @@
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-GQ00oM_7.js",
"sha256": "1197227bfce78dda577f6b7eb3b4eb252d54a4c2f33c6c26b471b629cb6d4d38",
"path": "houseplan-assets/furniture-plan-art.generated-DsUjClfK.js",
"sha256": "479d21a6870d1fff03e8b8eef9a304e867fb7546c4a36aeec118e9c5f3094cd1",
"rawBytes": 33655,
"gzipBytes": 10252,
"gzipBytes": 10251,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/guard-C0tnMJTa.js",
"sha256": "6640d5133c05975567da91d7f9f499b6347238e0acaf0e5b5a35d89b4818a1ee",
"path": "houseplan-assets/guard-BAK_LMQo.js",
"sha256": "a8bd2c26e2286e43247825ca547d78a9dfd5bc8233783d7125fa6185f62843df",
"rawBytes": 518,
"gzipBytes": 370,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-B3XEsyr7.js",
"sha256": "8d4de802d98eaed758c85e9bdd64ea2baab826257f87d32bf0127134e807bd2d",
"rawBytes": 1023955,
"gzipBytes": 287432,
"path": "houseplan-assets/houseplan-card-DZPydqw0.js",
"sha256": "38ff9c7a418bdecc0c2467347934a35d4ddd4e7070b73f4c013f01e08d81c91f",
"rawBytes": 1024749,
"gzipBytes": 287598,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-Diw0u3Rp.js",
"houseplan-assets/editor-CfWb1PrW.js",
"houseplan-assets/fr-CPQOeFpN.js",
"houseplan-assets/furniture-plan-art.generated-GQ00oM_7.js",
"houseplan-assets/houseplan-editor-runtime-EMzdfb0p.js",
"houseplan-assets/houseplan-onboarding-runtime-BWzpAk8U.js",
"houseplan-assets/hp-zigbee-topology-overlay-BvLrNA1u.js",
"houseplan-assets/iso-scene-render-B9hu-vxe.js",
"houseplan-assets/live-interaction-runtime-CeR3xrjm.js",
"houseplan-assets/pdf-export-BX8qvQmp.js",
"houseplan-assets/summary-panel-runtime-loaded-CmbY2LK7.js"
"houseplan-assets/de-Dq465WYJ.js",
"houseplan-assets/editor-BOMDU1Tz.js",
"houseplan-assets/fr-DIw15TVn.js",
"houseplan-assets/furniture-plan-art.generated-DsUjClfK.js",
"houseplan-assets/houseplan-editor-runtime-BnwgtIiq.js",
"houseplan-assets/houseplan-onboarding-runtime-CTqmF2qt.js",
"houseplan-assets/hp-zigbee-topology-overlay-D7Oj_nWB.js",
"houseplan-assets/iso-scene-render-DMwWHb41.js",
"houseplan-assets/live-interaction-runtime-CRbPdezg.js",
"houseplan-assets/pdf-export-iwTn7RAX.js",
"houseplan-assets/summary-panel-runtime-loaded-pVwbZzxZ.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-EMzdfb0p.js",
"sha256": "481456d973fb15f03bd784bde71e243fe765b4867f08260e179e9a98f7932273",
"path": "houseplan-assets/houseplan-editor-runtime-BnwgtIiq.js",
"sha256": "777be5d28962b846a6396b455cdd0f7b6056f72ac8d07fdbfa93c12a8bf72eba",
"rawBytes": 668820,
"gzipBytes": 178485,
"gzipBytes": 178483,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-CQxoq0qA.js",
"houseplan-assets/furniture-plan-art.generated-GQ00oM_7.js",
"houseplan-assets/guard-C0tnMJTa.js",
"houseplan-assets/houseplan-card-B3XEsyr7.js",
"houseplan-assets/zigbee-topology-CfTA4hD2.js"
"houseplan-assets/backdrop-pick-mz_xxNpg.js",
"houseplan-assets/furniture-plan-art.generated-DsUjClfK.js",
"houseplan-assets/guard-BAK_LMQo.js",
"houseplan-assets/houseplan-card-DZPydqw0.js",
"houseplan-assets/zigbee-topology-Di-JGf6I.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-DmT0AkWm.js"
"houseplan-assets/zigbee-topology-runtime-BmsZMbvW.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-BWzpAk8U.js",
"sha256": "b8467cd54a8a91e5c4f421375404dbfd1eee08bfc15cadf7b65358218b42edfe",
"path": "houseplan-assets/houseplan-onboarding-runtime-CTqmF2qt.js",
"sha256": "aaf056ed370865c1d745158dedd642b5a96e8da80f31bca476e78b6828ce3f5c",
"rawBytes": 28287,
"gzipBytes": 7037,
"gzipBytes": 7036,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-CQxoq0qA.js",
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/backdrop-pick-mz_xxNpg.js",
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-BvLrNA1u.js",
"sha256": "932fb91fc3dee03cadc42e86eaece3b30302b5281221d1510ceb35eb055c5db3",
"path": "houseplan-assets/hp-zigbee-topology-overlay-D7Oj_nWB.js",
"sha256": "ec95bd42a719c2ffeeb455e8273ca8a91ae9b3e5cd04ad349dbcf76e8d122f31",
"rawBytes": 10756,
"gzipBytes": 3681,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js",
"houseplan-assets/zigbee-topology-CfTA4hD2.js",
"houseplan-assets/zigbee-topology-runtime-DmT0AkWm.js"
"houseplan-assets/houseplan-card-DZPydqw0.js",
"houseplan-assets/zigbee-topology-Di-JGf6I.js",
"houseplan-assets/zigbee-topology-runtime-BmsZMbvW.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-B9hu-vxe.js",
"sha256": "c9ac4db92b7c5e841f6e69413ddee4f67c7428f2965dae11b573007c0f9ec1ff",
"path": "houseplan-assets/iso-scene-render-DMwWHb41.js",
"sha256": "cf45f9923dcfd2b2b1e224f9b3135e9a9c42c5ab1502608d31bb8ede627c491d",
"rawBytes": 38562,
"gzipBytes": 13086,
"gzipBytes": 13083,
"isEntry": false,
"imports": [
"houseplan-assets/guard-C0tnMJTa.js",
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/guard-BAK_LMQo.js",
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-CeR3xrjm.js",
"sha256": "e4f3b624fcddf88527cc8ada3c26dd998083e5988466eed34756e52de4495743",
"path": "houseplan-assets/live-interaction-runtime-CRbPdezg.js",
"sha256": "b90b6ab1341f107d3fefb61153c54da87933c44873bb09ebd5b9a51081337e2c",
"rawBytes": 6233,
"gzipBytes": 2497,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-BX8qvQmp.js",
"sha256": "4ae62389b3be7663a4802f238dd112f40bddb1fe8d771c4ff7360448dd7de523",
"path": "houseplan-assets/pdf-export-iwTn7RAX.js",
"sha256": "8c0f6c757c5bbc085c068b3b3d3fdd1f84a4102f947191c130d54b7947ddd457",
"rawBytes": 236244,
"gzipBytes": 109871,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-GQ00oM_7.js",
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/furniture-plan-art.generated-DsUjClfK.js",
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-DD0wPqdJ.js",
"sha256": "d8e54137ebe776944b721a5013cf9bd2dc3b8b13d362caedcff1b85fd5297a65",
"path": "houseplan-assets/summary-panel-editor-BCwsZsf4.js",
"sha256": "84723c84c73926a1cd99680a7eca64bd1e33c9b810a32bb5b32998e4dd05d6af",
"rawBytes": 14824,
"gzipBytes": 3401,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js",
"houseplan-assets/summary-panel-runtime-loaded-CmbY2LK7.js"
"houseplan-assets/houseplan-card-DZPydqw0.js",
"houseplan-assets/summary-panel-runtime-loaded-pVwbZzxZ.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-BrUz5zW0.js",
"sha256": "15bfb467d54c95d9b657ba88868a4136f961b9469de824355bcbda5cb6a575a5",
"path": "houseplan-assets/summary-panel-metrics-F95RQvjd.js",
"sha256": "e9fb3489fa02cd91317e58a71da5b2fc861a9f355728dbae49ca2dbbfc172961",
"rawBytes": 2610,
"gzipBytes": 1306,
"gzipBytes": 1305,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-CmbY2LK7.js",
"sha256": "4cb95e9082b1190fb9f0fbb735615fd779d76264f68792185038ac376d37b4ad",
"path": "houseplan-assets/summary-panel-runtime-loaded-pVwbZzxZ.js",
"sha256": "c59619b68071da8edbaaa7b79c93413372a5a3782b1b256e545148d67b43a068",
"rawBytes": 73366,
"gzipBytes": 20087,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-DD0wPqdJ.js",
"houseplan-assets/summary-panel-metrics-BrUz5zW0.js"
"houseplan-assets/summary-panel-editor-BCwsZsf4.js",
"houseplan-assets/summary-panel-metrics-F95RQvjd.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-CfTA4hD2.js",
"sha256": "46ac22029841797cb019f1dfc825b3f2c9e941a8426d0061add1479fcae0d0f3",
"path": "houseplan-assets/zigbee-topology-Di-JGf6I.js",
"sha256": "22c5608464858ff41854334ab733b150a786a35e6846e94213685ae745916db0",
"rawBytes": 18961,
"gzipBytes": 7429,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-DmT0AkWm.js",
"sha256": "92da75128f25ec34e0de3ac0e734aeed00f4a22e6ec0a3234c75ddd868ef9e36",
"path": "houseplan-assets/zigbee-topology-runtime-BmsZMbvW.js",
"sha256": "26c3199751869fd1e70082c8fe05c49d761ca487c75ec1bd9aad4736672717d3",
"rawBytes": 3941,
"gzipBytes": 1763,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js",
"houseplan-assets/zigbee-topology-CfTA4hD2.js"
"houseplan-assets/houseplan-card-DZPydqw0.js",
"houseplan-assets/zigbee-topology-Di-JGf6I.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "fff30e508787dc5b04e8687b19e8ac5dda96d47e30f3a4f3fdc822743594afee",
"sha256": "4b86033303d1d419b56f9f5d8e93a287ba1a7147368df329b62b32ce32f04c5a",
"rawBytes": 1205,
"gzipBytes": 804,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/houseplan-card-DZPydqw0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "51b08a92f4980d86a1b5d6318e560310df5aad5fa8cba4425c02db4753501172",
"sha256": "5715bc151a7d817ae0e279d9785c6bba1cf610d9c878c625d223a9d1e477b928",
"rawBytes": 6165,
"gzipBytes": 2326,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-B3XEsyr7.js"
"houseplan-assets/houseplan-card-DZPydqw0.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,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="293f2f5c2037e02cc88485ababe84a1c82f0134f9ded671bb6324e000218c7b6";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-B3XEsyr7.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__="52627a202515ca20c62f6e85a19460c166380bde36ca83e4d61a3fecb05727df";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-DZPydqw0.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
.hass=${this.hass}
.data=${this._formData}
.schema=${e}
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="293f2f5c2037e02cc88485ababe84a1c82f0134f9ded671bb6324e000218c7b6";import{dS as r,dT as t,dU as e}from"./houseplan-card-B3XEsyr7.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="52627a202515ca20c62f6e85a19460c166380bde36ca83e4d61a3fecb05727df";import{dS as r,dT as t,dU as e}from"./houseplan-card-DZPydqw0.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
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__="293f2f5c2037e02cc88485ababe84a1c82f0134f9ded671bb6324e000218c7b6";import{l as t,b0 as s,A as e,t as a,b as o,cj as l,ck as i,cl as h,cm as c,aZ as n,cn as r,cs as p,co as d,cp as _,cq as u,cr as g,ct as m,cu as b,dp as $,dq as v,dr as f,aY as y,a_ as w,ds as D}from"./houseplan-card-B3XEsyr7.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-CQxoq0qA.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="293f2f5c2037e02cc88485ababe84a1c82f0134f9ded671bb6324e000218c7b6";class L{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(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?o`<hp-help data-help-key=${l}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="52627a202515ca20c62f6e85a19460c166380bde36ca83e4d61a3fecb05727df";import{l as t,b0 as s,A as e,t as a,b as o,cj as l,ck as i,cl as h,cm as c,aZ as n,cn as r,cs as p,co as d,cp as _,cq as u,cr as g,ct as m,cu as b,dp as $,dq as v,dr as f,aY as y,a_ as w,ds as D}from"./houseplan-card-DZPydqw0.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-mz_xxNpg.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="52627a202515ca20c62f6e85a19460c166380bde36ca83e4d61a3fecb05727df";class L{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(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?o`<hp-help data-help-key=${l}
.text=${a(h,l)} .ariaLabel=${a(h,i)}></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 a=l(e),o=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?i(e.settings.custom_fill):null,p="none"===a.fill?{...o||h,a:0}:o;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:a.showBorders,showNames:a.showNames,zeroWallStyle:r(e),displayTouched:!0,hideDecor:a.hideDecor,hideOpenings:a.hideOpenings,roomColor:a.color,roomOpacity:a.opacity,fillMode:"none"===a.fill?"custom":a.fill,customFill:p,glowEnabled:a.glow,bgColor:a.bgColor,bgMode:"static"===e.settings?.bg_mode||"daynight"===e.settings?.bg_mode?e.settings.bg_mode:null,northDeg:n({},e.settings),sunRays:"boolean"==typeof e.settings?.sun_rays?e.settings.sun_rays:null,tempMin:a.tempMin,tempMax:a.tempMax,showLqi:a.showLqi??this.host._config?.show_signal??!0,cardFontScale:a.cardFontScale,labelTemp:a.labelTemp,labelHum:a.labelHum,labelLqi:a.labelLqi,labelLight:a.labelLight,cellCm:Number(e.cell_cm)>0?Number(e.cell_cm):5,cellCmInput:c(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,sunRays:null,tempMin:_,tempMax:d,showLqi:this.host._config?.show_signal??!0,cardFontScale:1,labelTemp:!1,labelHum:!1,labelLqi:!1,labelLight:!1,cellCm:e,cellCmInput:c(e,this.host._imperial),cellCmTouched:!1,busy:!1}}async _pickPlanFile(t){const s=t.target,e=s.files?.[0];if(!e||!this.host._spaceDialog)return;s.value="";const a=await k(e);if("reject"===a.kind)return void this.host._showToast(this.host._t("toast.plan_formats"));if("guard"===a.kind)return void(this.host._backdropGuard=a.state);const o=await S(e,a.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:o})}_renderBackdropGuard(){return C(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}),a=this.host._spaceDialog;return a&&a.planUrl===t&&Number.isFinite(e)&&e>0?(this.host._spaceDialog={...a,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 a=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")}),o=this.host._spaceDialog,l=o?.saved?.find(s=>s.name===t);if(a&&o&&l&&l.url===e.url&&l.modified===e.modified&&!l.used_by.length&&l.url!==o.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 o`<div class="savedplans muted">${this.host._t("space.loading")}</div>`;const s=t.saved||[];if(!s.length)return o`<div class="savedplans muted">${this.host._t("space.no_saved")}</div>`;return o`<div class="savedplans">
${s.map(s=>{return o`
<div class="savedplan ${s.url===t.planUrl?"cur":""}">
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="293f2f5c2037e02cc88485ababe84a1c82f0134f9ded671bb6324e000218c7b6";import{b as a,A as e}from"./houseplan-card-B3XEsyr7.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-CmbY2LK7.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__="52627a202515ca20c62f6e85a19460c166380bde36ca83e4d61a3fecb05727df";import{b as a,A as e}from"./houseplan-card-DZPydqw0.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-pVwbZzxZ.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__="293f2f5c2037e02cc88485ababe84a1c82f0134f9ded671bb6324e000218c7b6";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as c,a0 as l,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-B3XEsyr7.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*b(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 h(e,t,n=_){const i=b(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function p(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=d(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{b as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,p as summarySystemValue,h as totalCleanFloorAreaM2};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="52627a202515ca20c62f6e85a19460c166380bde36ca83e4d61a3fecb05727df";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as a,bn as s,a1 as c,a0 as l,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-DZPydqw0.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),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,u="device"===r?s?.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(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,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 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;d+=s(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__="293f2f5c2037e02cc88485ababe84a1c82f0134f9ded671bb6324e000218c7b6";import{n as t,b as n}from"./zigbee-topology-CfTA4hD2.js";import{B as e}from"./houseplan-card-B3XEsyr7.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 g(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 m(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,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=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&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await g(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 g(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,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="52627a202515ca20c62f6e85a19460c166380bde36ca83e4d61a3fecb05727df";import{n as t,b as n}from"./zigbee-topology-Di-JGf6I.js";import{B as e}from"./houseplan-card-DZPydqw0.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 g(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 m(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,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=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&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await g(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 g(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,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
+1 -1
View File
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="293f2f5c2037e02cc88485ababe84a1c82f0134f9ded671bb6324e000218c7b6";try{await import("./houseplan-assets/houseplan-card-B3XEsyr7.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__="52627a202515ca20c62f6e85a19460c166380bde36ca83e4d61a3fecb05727df";try{await import("./houseplan-assets/houseplan-card-DZPydqw0.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
+1 -1
View File
File diff suppressed because one or more lines are too long
+5
View File
@@ -2,6 +2,11 @@
## Unreleased
- Pinch-zooming the plan from a device marker no longer runs that device's
action through a delayed browser compatibility click. The next deliberate
single tap works immediately, without an artificial pause
([#563](https://github.com/Matysh/houseplan-card/issues/563)).
## v1.76.0-beta.1 — 2026-09-13
- Summary-panel visibility and size preferences no longer move between House
+5
View File
@@ -8,6 +8,11 @@
## Не выпущено
- Масштабирование плана щипком, начатое на значке устройства, больше не
запускает его действие из-за запоздалого синтетического нажатия браузера.
Следующий намеренный одиночный тап работает сразу, без искусственной паузы
([#563](https://github.com/Matysh/houseplan-card/issues/563)).
## v1.76.0-beta.1 — 2026-09-13
- Видимость и размеры сводной панели больше не переходят между карточками
+9 -3
View File
@@ -1613,9 +1613,15 @@ separately promised workflows:
the current snapshot immediately, so the very first later motion/event
transition is detected. Rebinding a marker's effective source clears the
old source's finite flash in the same update [auto: smoke_motion_sense]
- [ ] Editor gestures on touch (dev): in the plan editor on a phone, pinch
zooms and a moving finger pans; releasing after a gesture does not draw
a point, a clean tap still does [auto: smoke_editor_gestures]
- [ ] Touch gesture ownership (dev): in the plan editor on a phone, pinch zooms
and a moving finger pans; releasing after a gesture does not draw a point
and a clean tap still does. In View, a pinch started on a real device
marker changes zoom but neither an intermediate nor a delayed (>500 ms)
compatibility click runs its action; reverse release, pointer cancel and
lost capture stay blocked, while the next deliberate single-touch
pointerdown/up/click works once without waiting
[unit: touch-gesture-click-guard; auto: smoke_editor_gestures; mutation:
touch-pinch-click-block-cleared-on-terminal]
- [ ] Legacy geometry parity (v1.50.4, HP-1503-01): a store with a zero
viewport and a negative rect renders identically sane in BOTH cards —
full canvas fallback, normalised rectangle [auto: smoke_legacy_geometry]
+7
View File
@@ -45,6 +45,13 @@ On phones, tablets, wall panels and HA Companion apps, the ordinary View must:
remount;
- preserve kiosk gestures and prevent accidental editor interactions.
Once a second touch joins an input sequence, that whole sequence is navigation
only: device and other click actions stay blocked through every release,
cancellation or lost capture and through any delayed browser compatibility
clicks. A new pointer down after the old contacts have ended starts a deliberate
input sequence immediately; users never have to wait before the next single
tap.
The summary panel, both halves of its control, and its simple settings form are
supported View surfaces: each control has a 44 × 44 px or larger target, panel
scrolling owns its touch gesture instead of zooming the plan, and the settings
+12 -12
View File
@@ -3,7 +3,7 @@
"fixture": "synthetic-only",
"chromium": "151.0.7922.34",
"oxipng": "oxipng 10.2.0",
"sourceFingerprint": "95c3c3511fe84f1b6fcb6b51c58c8190cd7c679cb541ef6e12951ea5b67a816a",
"sourceFingerprint": "9c54293536e50ef4ef5b1ac8847b8ad700158dad74378152c25fb0feb5c3dfdc",
"captureScriptSha256": "9e4b0ae533407fe003a129078aec020f2c83d67cdb6fc6da696ce3d829beaeb5",
"command": "npm run build && node demo/docs/capture.mjs",
"scenarios": {
@@ -15,7 +15,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "95c3c3511fe84f1b6fcb6b51c58c8190cd7c679cb541ef6e12951ea5b67a816a",
"sourceSha256": "9c54293536e50ef4ef5b1ac8847b8ad700158dad74378152c25fb0feb5c3dfdc",
"imageSha256": "76c35a87810e3dc6890bda7b43da133f57d8860031204a62cda7115c15950090"
},
"view-touch": {
@@ -26,7 +26,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "95c3c3511fe84f1b6fcb6b51c58c8190cd7c679cb541ef6e12951ea5b67a816a",
"sourceSha256": "9c54293536e50ef4ef5b1ac8847b8ad700158dad74378152c25fb0feb5c3dfdc",
"imageSha256": "795585acb09488236ebb8028a7fcbd918404c5fe01560bb9b4559de13d441625"
},
"space-create": {
@@ -37,7 +37,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "95c3c3511fe84f1b6fcb6b51c58c8190cd7c679cb541ef6e12951ea5b67a816a",
"sourceSha256": "9c54293536e50ef4ef5b1ac8847b8ad700158dad74378152c25fb0feb5c3dfdc",
"imageSha256": "9f0970de09772674c3156b9fc5b2d49de0ceb22be11ecf8b136047d37d100a84"
},
"room-contour-close": {
@@ -48,7 +48,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "95c3c3511fe84f1b6fcb6b51c58c8190cd7c679cb541ef6e12951ea5b67a816a",
"sourceSha256": "9c54293536e50ef4ef5b1ac8847b8ad700158dad74378152c25fb0feb5c3dfdc",
"imageSha256": "0c354a79f9c3660788b6c5e889a27b6bd78b1f209dc0eef6bb43e2c1344028c4"
},
"plan-context-tray": {
@@ -59,7 +59,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "95c3c3511fe84f1b6fcb6b51c58c8190cd7c679cb541ef6e12951ea5b67a816a",
"sourceSha256": "9c54293536e50ef4ef5b1ac8847b8ad700158dad74378152c25fb0feb5c3dfdc",
"imageSha256": "64169c543291bc4df806dcf8ff484b42c8ea55eb343323d945344e0e28f2ce97"
},
"device-editor": {
@@ -70,7 +70,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "95c3c3511fe84f1b6fcb6b51c58c8190cd7c679cb541ef6e12951ea5b67a816a",
"sourceSha256": "9c54293536e50ef4ef5b1ac8847b8ad700158dad74378152c25fb0feb5c3dfdc",
"imageSha256": "3c8703175605fcf0387d654cd30783ecfd33e21743e70b45190a5ae1a8d355c2"
},
"device-display-preview": {
@@ -81,7 +81,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "95c3c3511fe84f1b6fcb6b51c58c8190cd7c679cb541ef6e12951ea5b67a816a",
"sourceSha256": "9c54293536e50ef4ef5b1ac8847b8ad700158dad74378152c25fb0feb5c3dfdc",
"imageSha256": "5d6193202102f5e6d85567f1111fa105895b933979fbf369c6ba0b1029deb823"
},
"background-editor": {
@@ -92,7 +92,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "95c3c3511fe84f1b6fcb6b51c58c8190cd7c679cb541ef6e12951ea5b67a816a",
"sourceSha256": "9c54293536e50ef4ef5b1ac8847b8ad700158dad74378152c25fb0feb5c3dfdc",
"imageSha256": "375900a29aa62632883ede6727b7dbb8b48cabe9d7d0e16425f9779c837f3dd9"
},
"room-card": {
@@ -103,7 +103,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "95c3c3511fe84f1b6fcb6b51c58c8190cd7c679cb541ef6e12951ea5b67a816a",
"sourceSha256": "9c54293536e50ef4ef5b1ac8847b8ad700158dad74378152c25fb0feb5c3dfdc",
"imageSha256": "3d85424676c823ddca3fa7dab3cce089b6030e48c05d16d2d48d922c66c0cbd2"
},
"device-info": {
@@ -114,7 +114,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "95c3c3511fe84f1b6fcb6b51c58c8190cd7c679cb541ef6e12951ea5b67a816a",
"sourceSha256": "9c54293536e50ef4ef5b1ac8847b8ad700158dad74378152c25fb0feb5c3dfdc",
"imageSha256": "ac962820f8e1c5cb5b042d39b18dc95905fa840cb2d4749060d991be4f6977c2"
},
"pdf-export": {
@@ -125,7 +125,7 @@
},
"theme": "light",
"language": "en",
"sourceSha256": "95c3c3511fe84f1b6fcb6b51c58c8190cd7c679cb541ef6e12951ea5b67a816a",
"sourceSha256": "9c54293536e50ef4ef5b1ac8847b8ad700158dad74378152c25fb0feb5c3dfdc",
"imageSha256": "4537692fd57a3ed95528eddd748eee5cb6e456ffab7cc49169853d62459252cd"
}
},
+15
View File
@@ -7490,6 +7490,21 @@ const MUTANT_DEFINITIONS = [
replace: ' remote.add(other.markerId);',
}],
},
{
id: 'touch-pinch-click-block-cleared-on-terminal',
guard: 'npx tsc -p tsconfig.test.json && node scripts/fix-test-build.mjs '
+ '&& node --test --test-name-pattern="#563" test/touch-gesture-click-guard.test.mjs',
because: 'a completed pinch still owns every delayed compatibility click until a new '
+ 'pointerdown proves deliberate input; clearing on pointerup can toggle a real device (#563 AC7)',
patches: [{
file: 'src/touch-gesture-click-guard.ts',
find: ' if (this._activeTouchPointers.size === 0) this._sequenceMultitouch = false;',
replace: ' if (this._activeTouchPointers.size === 0) {\n'
+ ' this._sequenceMultitouch = false;\n'
+ ' this._postGestureClickBlocked = false; // mutant: delayed click is re-armed\n'
+ ' }',
}],
},
{
id: 'double-fit-free-background-owner-removed',
guard: 'node --test --test-name-pattern="#449 only" test/room-fit.test.mjs',
+17 -13
View File
@@ -106,6 +106,7 @@ import {
resolveFixedFloor, resolveInitialSpace, settleBestEffort,
type FixedFloorSelection, type InitialSpaceSelection,
} from './initial-load';
import { TouchGestureClickGuard } from './touch-gesture-click-guard';
import { selectActiveSpaceModel, selectSpaceModelById } from './space-model-selection';
import {
createEmptySpaceConfig, initialSpaceDisplayDraft, roomTempRangeFromDraft, switchSpacePlanSource, touchSpaceDisplay,
@@ -2061,8 +2062,10 @@ export class HouseplanCard extends LitElement {
* a synthetic tap on a device, room link, opening badge or editor control.
*/
private _touchContacts = new Map<number, { x: number; y: number; inStage: boolean }>();
private _touchSequenceMultitouch = false;
private _touchClickBlockUntil = 0;
private readonly _touchClickGuard = new TouchGestureClickGuard();
private get _touchSequenceMultitouch(): boolean {
return this._touchClickGuard.sequenceMultitouch;
}
/** Route occupied by this live card. Persistent navigation remembers only
* the space; leaving this HA route ends the transient editor session. */
private _connectedPath = '';
@@ -2883,8 +2886,7 @@ export class HouseplanCard extends LitElement {
// their closure — a disconnected card must not stay pinned to window.
this._editorRuntime?._furnShiftDetach();
this._touchContacts.clear();
this._touchSequenceMultitouch = false;
this._touchClickBlockUntil = 0;
this._touchClickGuard.reset();
this._clearTransientHover(true);
this._cancelDevicePressFeedback();
this._pointerHoverObserver?.disconnect();
@@ -7233,14 +7235,14 @@ export class HouseplanCard extends LitElement {
* `_suppressClick` covers a pan/pinch that the stage itself observed. The
* contact set closes the other path: an interactive child is allowed to stop
* pointer propagation, but it is not allowed to hide/navigate/toggle from one
* finger of a two-finger gesture. The short tail also covers WebKit emitting
* `click` after the final pointerup rather than in the same task.
* finger of a two-finger gesture. The event-owned post-gesture barrier also
* covers WebKit emitting `click` long after the final pointerup; only a new
* pointerdown proves a new deliberate input sequence.
*/
private _guardTouchGesture(ev: Event): void {
if (this._editorSecondary?.handleOutsideDismiss(ev)) return;
if (ev.type === 'click') {
if (!this._suppressClick && !this._touchSequenceMultitouch
&& Date.now() > this._touchClickBlockUntil) return;
if (!this._suppressClick && !this._touchClickGuard.clickBlocked) return;
ev.preventDefault();
ev.stopImmediatePropagation();
return;
@@ -7248,6 +7250,9 @@ export class HouseplanCard extends LitElement {
const pointer = ev as PointerEvent;
this._notePointer(pointer);
if (ev.type === 'pointercancel' || ev.type === 'lostpointercapture') this._doubleFit.clear(); else if (ev.type === 'pointerdown') this._doubleFit.clearOutside(pointer);
if (ev.type === 'pointerdown') this._touchClickGuard.pointerDown(
pointer.pointerId, pointer.pointerType,
);
if (pointer.pointerType !== 'touch') return;
if (ev.type === 'pointerdown') {
this._touchContacts.set(pointer.pointerId, {
@@ -7258,8 +7263,6 @@ export class HouseplanCard extends LitElement {
if (this._touchContacts.size >= 2) {
this._clearRoomFocus(true);
this._clearTransientHover();
this._touchSequenceMultitouch = true;
this._touchClickBlockUntil = Number.POSITIVE_INFINITY;
clearTimeout(this._holdTimer);
clearTimeout(this._kioskHoldTimer);
this._swipeStart = null;
@@ -7306,10 +7309,12 @@ export class HouseplanCard extends LitElement {
}
if (ev.type !== 'pointerup' && ev.type !== 'pointercancel'
&& ev.type !== 'lostpointercapture') return;
const wasMultitouch = this._touchClickGuard.pointerTerminal(
pointer.pointerId, pointer.pointerType,
);
this._clearTransientHover();
this._touchContacts.delete(pointer.pointerId);
if (this._touchSequenceMultitouch) {
this._touchClickBlockUntil = Date.now() + 500;
if (wasMultitouch) {
this._pointers.delete(pointer.pointerId);
if (!this._vacFit && this._pointers.size >= 2) {
const [a, b] = [...this._pointers.values()];
@@ -7322,7 +7327,6 @@ export class HouseplanCard extends LitElement {
this._panLock = null;
}
}
if (this._touchContacts.size === 0) this._touchSequenceMultitouch = false;
}
private _showTip(
+53
View File
@@ -0,0 +1,53 @@
/**
* Event-owned click suppression for touch gestures.
*
* Browsers may emit a compatibility `click` an arbitrary time after the final
* touch pointerup. A timeout cannot tell that stale click from a deliberate
* tap; a new pointerdown can. Keep the completed multi-touch sequence blocked
* until a genuinely new pointer sequence starts.
*/
export class TouchGestureClickGuard {
private readonly _activeTouchPointers = new Set<number>();
private _sequenceMultitouch = false;
private _postGestureClickBlocked = false;
get sequenceMultitouch(): boolean {
return this._sequenceMultitouch;
}
get clickBlocked(): boolean {
return this._sequenceMultitouch || this._postGestureClickBlocked;
}
/** Returns true only when this pointer makes the sequence multi-touch. */
pointerDown(pointerId: number, pointerType: string): boolean {
// No touch contact from the previous sequence remains: this pointerdown is
// positive evidence of a new deliberate input sequence. It may therefore
// re-arm touch, mouse and hybrid-device clicks immediately.
if (this._activeTouchPointers.size === 0) this._postGestureClickBlocked = false;
if (pointerType !== 'touch') return false;
const wasMultitouch = this._sequenceMultitouch;
this._activeTouchPointers.add(pointerId);
if (this._activeTouchPointers.size >= 2) {
this._sequenceMultitouch = true;
this._postGestureClickBlocked = true;
}
return !wasMultitouch && this._sequenceMultitouch;
}
/** Returns whether the pointer belonged to an already multi-touch sequence. */
pointerTerminal(pointerId: number, pointerType: string): boolean {
if (pointerType !== 'touch') return false;
const wasMultitouch = this._sequenceMultitouch;
this._activeTouchPointers.delete(pointerId);
if (this._activeTouchPointers.size === 0) this._sequenceMultitouch = false;
return wasMultitouch;
}
reset(): void {
this._activeTouchPointers.clear();
this._sequenceMultitouch = false;
this._postGestureClickBlocked = false;
}
}
+63
View File
@@ -0,0 +1,63 @@
import assert from 'node:assert/strict';
import test from 'node:test';
import { TouchGestureClickGuard } from '../test-build/touch-gesture-click-guard.js';
test('#563 multi-touch keeps every unowned click blocked after both releases', () => {
const guard = new TouchGestureClickGuard();
assert.equal(guard.pointerDown(1, 'touch'), false);
assert.equal(guard.pointerDown(2, 'touch'), true);
assert.equal(guard.sequenceMultitouch, true);
assert.equal(guard.clickBlocked, true);
assert.equal(guard.pointerTerminal(1, 'touch'), true);
assert.equal(guard.sequenceMultitouch, true);
assert.equal(guard.clickBlocked, true);
assert.equal(guard.pointerTerminal(2, 'touch'), true);
assert.equal(guard.sequenceMultitouch, false);
assert.equal(guard.clickBlocked, true);
});
test('#563 a new single-pointer sequence re-arms its click immediately', () => {
const guard = new TouchGestureClickGuard();
guard.pointerDown(1, 'touch');
guard.pointerDown(2, 'touch');
guard.pointerTerminal(2, 'touch');
guard.pointerTerminal(1, 'touch');
assert.equal(guard.clickBlocked, true);
assert.equal(guard.pointerDown(3, 'touch'), false);
assert.equal(guard.clickBlocked, false);
assert.equal(guard.pointerTerminal(3, 'touch'), false);
assert.equal(guard.clickBlocked, false);
});
test('#563 reverse release, cancel and lost capture never turn a pinch into a tap', () => {
for (const terminals of [
['pointerup', 'pointercancel'],
['lostpointercapture', 'pointerup'],
]) {
const guard = new TouchGestureClickGuard();
guard.pointerDown(10, 'touch');
guard.pointerDown(11, 'touch');
// Event names are deliberately irrelevant to the state transition: every
// terminal removes its exact pointer but preserves multi-touch ownership.
assert.equal(guard.pointerTerminal(11, 'touch'), true, terminals[0]);
assert.equal(guard.pointerTerminal(10, 'touch'), true, terminals[1]);
assert.equal(guard.clickBlocked, true);
}
});
test('#563 a new mouse sequence on a hybrid device is not held by an old pinch', () => {
const guard = new TouchGestureClickGuard();
guard.pointerDown(1, 'touch');
guard.pointerDown(2, 'touch');
guard.pointerTerminal(1, 'touch');
guard.pointerTerminal(2, 'touch');
assert.equal(guard.clickBlocked, true);
guard.pointerDown(20, 'mouse');
assert.equal(guard.clickBlocked, false);
guard.reset();
assert.equal(guard.sequenceMultitouch, false);
assert.equal(guard.clickBlocked, false);
});
+1 -1
View File
@@ -27,7 +27,7 @@
"src/space-geometry.ts", "src/junction-limits.ts",
"src/space-order.ts", "src/card-editor-validation.ts",
"src/signing.ts", "src/initial-load.ts", "src/space-model-selection.ts", "src/space-dialog.ts",
"src/visual-continuity.ts", "src/version-recovery.ts", "src/version-recovery-card.ts", "src/mode-transition.ts", "src/viewport-transition.ts", "src/boot-soft-layout.ts", "src/room-fit.ts", "src/editor-runtime-loader.ts", "src/editor-secondary.ts", "src/pointer-modality.ts",
"src/visual-continuity.ts", "src/version-recovery.ts", "src/version-recovery-card.ts", "src/mode-transition.ts", "src/viewport-transition.ts", "src/boot-soft-layout.ts", "src/room-fit.ts", "src/editor-runtime-loader.ts", "src/editor-secondary.ts", "src/pointer-modality.ts", "src/touch-gesture-click-guard.ts",
"src/render-device-snapshot.ts", "src/render-invalidation.ts", "src/houseplan-render-lifecycle.ts", "src/live-interaction-runtime.ts", "src/live-viewport.ts", "src/live-hover.ts", "src/live-editor.ts", "src/pointer-move-queue.ts",
"src/command-stack.ts", "src/device-position-history.ts",
"src/coordinate-canonicalization.ts",