mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-07 06:59:46 +00:00
refactor: типизировать ключи заливки вместо any (#594)
Validate вернул задачу с красным `no-new-any`: одна строка в переработанном диалоге комнаты, `this.host._t(k as any)`. Послабление переноса (#592) её справедливо не покрыло — вокруг строки код действительно изменился, а блок короче порога переносом не считается. Причина `any` была в форме данных: пара «значение, ключ» собиралась кортежами, и ключ, полученный конкатенацией, терял литеральный тип. Теперь варианты заливки объявлены явно — режим остаётся значением `_roomFill`, а ключ проверяется компилятором как настоящий `I18nKey`. Приведение не понадобилось вовсе: долг не обоснован, а снят. Issue: #594 User-Visible: no
This commit is contained in:
@@ -1,295 +1,295 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "6a0a0a560880372a00a1a6978f61f81fa669710edb3c124b4289e193e9d9fd35",
|
||||
"fingerprint": "271e0747b4ddef1af0d15d8bf63a832d72b0f7211550c349a59b3baa3864a84e",
|
||||
"entry": "houseplan-card.js",
|
||||
"panelEntry": "houseplan-panel.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-DSukbbuf.js",
|
||||
"houseplan-assets/houseplan-card-BMVLvcks.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 291872,
|
||||
"initialPanelFiles": [
|
||||
"houseplan-assets/houseplan-card-DSukbbuf.js",
|
||||
"houseplan-assets/houseplan-card-BMVLvcks.js",
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelGzipBytes": 293395,
|
||||
"initialPanelGzipBytes": 293394,
|
||||
"initialPanelOnlyFiles": [
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelOnlyGzipBytes": 2325,
|
||||
"lazyFiles": [
|
||||
"houseplan-assets/backdrop-pick-BRg4ZNgz.js",
|
||||
"houseplan-assets/de-TaMpwyht.js",
|
||||
"houseplan-assets/editor-DpZYpH-q.js",
|
||||
"houseplan-assets/fr-CEp7_lQF.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BoMKUAYH.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-D2d4RDrh.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-DxF69ClX.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-CjD-0T3k.js",
|
||||
"houseplan-assets/iso-scene-render-CYRj99bX.js",
|
||||
"houseplan-assets/live-interaction-runtime-1VzIFftN.js",
|
||||
"houseplan-assets/pdf-export-Djhm0_t-.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded--2rOgrdc.js",
|
||||
"houseplan-assets/zigbee-topology-BkAcWPhv.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-DylZbbzJ.js"
|
||||
"houseplan-assets/backdrop-pick-BEAwnXmw.js",
|
||||
"houseplan-assets/de-DWDYt11e.js",
|
||||
"houseplan-assets/editor-CV6uoEg_.js",
|
||||
"houseplan-assets/fr-Bfh5k4A7.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D0lHr8pH.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CffLSWDF.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-aNl4FiLj.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-BoAV-qiO.js",
|
||||
"houseplan-assets/iso-scene-render-C9GeuwoY.js",
|
||||
"houseplan-assets/live-interaction-runtime-BI1aUBNm.js",
|
||||
"houseplan-assets/pdf-export-D_xOUM3j.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-g1LT0Cej.js",
|
||||
"houseplan-assets/zigbee-topology-BEa8LNBZ.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-6-X3BuRu.js"
|
||||
],
|
||||
"lazyGzipBytes": 437720,
|
||||
"lazyGzipBytes": 437743,
|
||||
"lazyEditorFiles": [
|
||||
"houseplan-assets/backdrop-pick-BRg4ZNgz.js",
|
||||
"houseplan-assets/editor-DpZYpH-q.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BoMKUAYH.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-D2d4RDrh.js",
|
||||
"houseplan-assets/zigbee-topology-BkAcWPhv.js"
|
||||
"houseplan-assets/backdrop-pick-BEAwnXmw.js",
|
||||
"houseplan-assets/editor-CV6uoEg_.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D0lHr8pH.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CffLSWDF.js",
|
||||
"houseplan-assets/zigbee-topology-BEa8LNBZ.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 221450,
|
||||
"lazyEditorGzipBytes": 221474,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick-BRg4ZNgz.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-DxF69ClX.js"
|
||||
"houseplan-assets/backdrop-pick-BEAwnXmw.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-aNl4FiLj.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 13918,
|
||||
"lazyOnboardingGzipBytes": 13916,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-TaMpwyht.js",
|
||||
"houseplan-assets/fr-CEp7_lQF.js"
|
||||
"houseplan-assets/de-DWDYt11e.js",
|
||||
"houseplan-assets/fr-Bfh5k4A7.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 55600,
|
||||
"lazyLocaleGzipBytes": 55595,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/iso-scene-render-CYRj99bX.js"
|
||||
"houseplan-assets/iso-scene-render-C9GeuwoY.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 15015,
|
||||
"lazyIsometricGzipBytes": 15013,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BoMKUAYH.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-D0lHr8pH.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 23343,
|
||||
"lazyFurnitureArtGzipBytes": 23347,
|
||||
"lazyPdfFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BoMKUAYH.js",
|
||||
"houseplan-assets/pdf-export-Djhm0_t-.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-D0lHr8pH.js",
|
||||
"houseplan-assets/pdf-export-D_xOUM3j.js"
|
||||
],
|
||||
"lazyPdfGzipBytes": 133216,
|
||||
"lazyPdfGzipBytes": 133220,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick-BRg4ZNgz.js",
|
||||
"sha256": "6a9adcb9a37304c033f5f7aec9fbf7f22e18ad53d7ac2f7456f81d5d8b942a0d",
|
||||
"path": "houseplan-assets/backdrop-pick-BEAwnXmw.js",
|
||||
"sha256": "e25323c086334af09e9266ba9cdedcb7298a4f010d6170b52e709cc05e9fd9b3",
|
||||
"rawBytes": 19959,
|
||||
"gzipBytes": 6881,
|
||||
"gzipBytes": 6880,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DSukbbuf.js"
|
||||
"houseplan-assets/houseplan-card-BMVLvcks.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-TaMpwyht.js",
|
||||
"sha256": "fc8aa0dc04df573ad567d1501ffe3aebf1ef3f944342b8ea58f8ab1e2ae8a1bb",
|
||||
"path": "houseplan-assets/de-DWDYt11e.js",
|
||||
"sha256": "61a2ab3d6417bc3b31db1289f17f02d1b6c9f715f9084dbc5a6cff46efaceecc",
|
||||
"rawBytes": 92816,
|
||||
"gzipBytes": 28087,
|
||||
"gzipBytes": 28084,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-DpZYpH-q.js",
|
||||
"sha256": "5c7c689e39ee14fc750946c715b949632134809299c6bf9fd7c42a4395a3640d",
|
||||
"path": "houseplan-assets/editor-CV6uoEg_.js",
|
||||
"sha256": "adb0f86d68da9a0d2a7f68cb4e02bf86e9112f0437066b7ad22fcf29d065b58a",
|
||||
"rawBytes": 3833,
|
||||
"gzipBytes": 1583,
|
||||
"gzipBytes": 1585,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DSukbbuf.js"
|
||||
"houseplan-assets/houseplan-card-BMVLvcks.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-CEp7_lQF.js",
|
||||
"sha256": "7affcb2941195ab5112ae52d4187a5e3ba61fe895538b73c4aebb5f10d98dfdb",
|
||||
"path": "houseplan-assets/fr-Bfh5k4A7.js",
|
||||
"sha256": "445c24e66a97909334e8927978cc0acd009eb053d6d4317d89c2bce39b8b58c7",
|
||||
"rawBytes": 95188,
|
||||
"gzipBytes": 27513,
|
||||
"gzipBytes": 27511,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-BoMKUAYH.js",
|
||||
"sha256": "ee14e7b7ac83efa10a85aa2aa44401c58cb2c73ba8a39d48955a268248b52b1f",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-D0lHr8pH.js",
|
||||
"sha256": "92af6580a4908ac007cba2432b7b22cf7835fcf10c372e67f6105046db85aa68",
|
||||
"rawBytes": 90517,
|
||||
"gzipBytes": 23343,
|
||||
"gzipBytes": 23347,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-DSukbbuf.js",
|
||||
"sha256": "6c383e928206d9db8ca2810ad964d65f834a9f0eed68230862d8615f2c488bbb",
|
||||
"path": "houseplan-assets/houseplan-card-BMVLvcks.js",
|
||||
"sha256": "8a13e2c37d3e1a994c4e53abd2a5815aa12d35106f990b17914afa741799d55a",
|
||||
"rawBytes": 1037084,
|
||||
"gzipBytes": 291070,
|
||||
"gzipBytes": 291069,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/de-TaMpwyht.js",
|
||||
"houseplan-assets/editor-DpZYpH-q.js",
|
||||
"houseplan-assets/fr-CEp7_lQF.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BoMKUAYH.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-D2d4RDrh.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-DxF69ClX.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-CjD-0T3k.js",
|
||||
"houseplan-assets/iso-scene-render-CYRj99bX.js",
|
||||
"houseplan-assets/live-interaction-runtime-1VzIFftN.js",
|
||||
"houseplan-assets/pdf-export-Djhm0_t-.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded--2rOgrdc.js"
|
||||
"houseplan-assets/de-DWDYt11e.js",
|
||||
"houseplan-assets/editor-CV6uoEg_.js",
|
||||
"houseplan-assets/fr-Bfh5k4A7.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D0lHr8pH.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CffLSWDF.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-aNl4FiLj.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-BoAV-qiO.js",
|
||||
"houseplan-assets/iso-scene-render-C9GeuwoY.js",
|
||||
"houseplan-assets/live-interaction-runtime-BI1aUBNm.js",
|
||||
"houseplan-assets/pdf-export-D_xOUM3j.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-g1LT0Cej.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-D2d4RDrh.js",
|
||||
"sha256": "4cf108b88dc759bba5aac3382bdc5e32322c1a49e798315af6bd27995283543f",
|
||||
"rawBytes": 674584,
|
||||
"gzipBytes": 182218,
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-CffLSWDF.js",
|
||||
"sha256": "df39790bc4f69ea19d62012a9f2c0a5c22fbefd10858b7c9110a6a2bf7363c93",
|
||||
"rawBytes": 674630,
|
||||
"gzipBytes": 182233,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-BRg4ZNgz.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BoMKUAYH.js",
|
||||
"houseplan-assets/houseplan-card-DSukbbuf.js",
|
||||
"houseplan-assets/zigbee-topology-BkAcWPhv.js"
|
||||
"houseplan-assets/backdrop-pick-BEAwnXmw.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D0lHr8pH.js",
|
||||
"houseplan-assets/houseplan-card-BMVLvcks.js",
|
||||
"houseplan-assets/zigbee-topology-BEa8LNBZ.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/zigbee-topology-runtime-DylZbbzJ.js"
|
||||
"houseplan-assets/zigbee-topology-runtime-6-X3BuRu.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-DxF69ClX.js",
|
||||
"sha256": "b2d337cc573acfdd25b8e5587f16b9dbae49c3aa15f9820d58a3ffe36064fca4",
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-aNl4FiLj.js",
|
||||
"sha256": "af2b2dc7cdb63f36d693b1d89b3b4540592c5f81897eace70d8d6af391147455",
|
||||
"rawBytes": 28287,
|
||||
"gzipBytes": 7037,
|
||||
"gzipBytes": 7036,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-BRg4ZNgz.js",
|
||||
"houseplan-assets/houseplan-card-DSukbbuf.js"
|
||||
"houseplan-assets/backdrop-pick-BEAwnXmw.js",
|
||||
"houseplan-assets/houseplan-card-BMVLvcks.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-CjD-0T3k.js",
|
||||
"sha256": "b13c7a9de4d141b3598dd0f0b3b0d4eba6bae29dde2ff1a7c63d9857c0d93b7c",
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-BoAV-qiO.js",
|
||||
"sha256": "9767b014de5d5f6b5e48d4c83647c45b91ea5be02a7177cb8ce456212fb24991",
|
||||
"rawBytes": 10759,
|
||||
"gzipBytes": 3688,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DSukbbuf.js",
|
||||
"houseplan-assets/zigbee-topology-BkAcWPhv.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-DylZbbzJ.js"
|
||||
"houseplan-assets/houseplan-card-BMVLvcks.js",
|
||||
"houseplan-assets/zigbee-topology-BEa8LNBZ.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-6-X3BuRu.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-CYRj99bX.js",
|
||||
"sha256": "a11fc3d5ec58d4385b62613e814e7f76f66211247220762442f294844268bd2c",
|
||||
"path": "houseplan-assets/iso-scene-render-C9GeuwoY.js",
|
||||
"sha256": "7658e6aba6394d37150e0e578b7a342c1dd36e5b615fb0d04967d366c4ac6993",
|
||||
"rawBytes": 44439,
|
||||
"gzipBytes": 15015,
|
||||
"gzipBytes": 15013,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DSukbbuf.js"
|
||||
"houseplan-assets/houseplan-card-BMVLvcks.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-1VzIFftN.js",
|
||||
"sha256": "f2f7c1a78e46c577f12775373fd3680f49ae6ca202e0290e93158ac1804eca4a",
|
||||
"path": "houseplan-assets/live-interaction-runtime-BI1aUBNm.js",
|
||||
"sha256": "bd1cb4c7629ed7a8211a0d5d78a4805a9551bb63a8e5bce712c8e899d6ba7e06",
|
||||
"rawBytes": 8216,
|
||||
"gzipBytes": 3206,
|
||||
"gzipBytes": 3211,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DSukbbuf.js"
|
||||
"houseplan-assets/houseplan-card-BMVLvcks.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/pdf-export-Djhm0_t-.js",
|
||||
"sha256": "6863a0957e40d5930199d9c673a54d196bdab76b8583e7a66fa720851fb9cbf8",
|
||||
"path": "houseplan-assets/pdf-export-D_xOUM3j.js",
|
||||
"sha256": "2a0ce1424dbbb753c3954ca750cbc2a4c07a57dc335f9443f7fb92a544163cd7",
|
||||
"rawBytes": 236247,
|
||||
"gzipBytes": 109873,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BoMKUAYH.js",
|
||||
"houseplan-assets/houseplan-card-DSukbbuf.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-D0lHr8pH.js",
|
||||
"houseplan-assets/houseplan-card-BMVLvcks.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-editor-CrJYjLc1.js",
|
||||
"sha256": "993d21e87ce051b8535daf6ce27c33e044c9212bb13ec01d27aa49686cc728b9",
|
||||
"path": "houseplan-assets/summary-panel-editor-CC7xfAHi.js",
|
||||
"sha256": "875f068b28f9a2b494c12f6070a6220b9520a114506f3e6ca6c2c6cae533520a",
|
||||
"rawBytes": 14824,
|
||||
"gzipBytes": 3397,
|
||||
"gzipBytes": 3400,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DSukbbuf.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded--2rOgrdc.js"
|
||||
"houseplan-assets/houseplan-card-BMVLvcks.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-g1LT0Cej.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-metrics-D8g4eTKv.js",
|
||||
"sha256": "34502580964a5ec3a62ae42e011ba5a8c5e2f0e57f24f24fb1ed15149fc4a8d7",
|
||||
"path": "houseplan-assets/summary-panel-metrics-BNvy3ieG.js",
|
||||
"sha256": "0c1d00835fa887c628894bf666aa3482eecab24273e25ffc04c14ba0c1b00f43",
|
||||
"rawBytes": 2611,
|
||||
"gzipBytes": 1309,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DSukbbuf.js"
|
||||
"houseplan-assets/houseplan-card-BMVLvcks.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded--2rOgrdc.js",
|
||||
"sha256": "3cbc676a298e1f87f83fedc400a6177025ece932463997987907ced476e7287e",
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-g1LT0Cej.js",
|
||||
"sha256": "8636cc30ed28478ed53ec99db1af654ca32eeca97867db997621ea24f9690ca9",
|
||||
"rawBytes": 73367,
|
||||
"gzipBytes": 20088,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DSukbbuf.js"
|
||||
"houseplan-assets/houseplan-card-BMVLvcks.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/summary-panel-editor-CrJYjLc1.js",
|
||||
"houseplan-assets/summary-panel-metrics-D8g4eTKv.js"
|
||||
"houseplan-assets/summary-panel-editor-CC7xfAHi.js",
|
||||
"houseplan-assets/summary-panel-metrics-BNvy3ieG.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-BkAcWPhv.js",
|
||||
"sha256": "fe8be028ef7a087e3777c0f31b9868dfdece70ff73e0019c2559044ec0e02ead",
|
||||
"path": "houseplan-assets/zigbee-topology-BEa8LNBZ.js",
|
||||
"sha256": "3e3d656e76c73d257389b408ae7921eac1034ee1d32e860a659432e84e54822b",
|
||||
"rawBytes": 18962,
|
||||
"gzipBytes": 7425,
|
||||
"gzipBytes": 7429,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DSukbbuf.js"
|
||||
"houseplan-assets/houseplan-card-BMVLvcks.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-DylZbbzJ.js",
|
||||
"sha256": "8312bc735d462e3fa56f941bcd1032eec8130dc72f88a1dbb763a2284a2b0fd7",
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-6-X3BuRu.js",
|
||||
"sha256": "db1b7ba90817c3f67a032d28186f64b9863a136788fa08a12320759a80bd138f",
|
||||
"rawBytes": 3942,
|
||||
"gzipBytes": 1763,
|
||||
"gzipBytes": 1765,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DSukbbuf.js",
|
||||
"houseplan-assets/zigbee-topology-BkAcWPhv.js"
|
||||
"houseplan-assets/houseplan-card-BMVLvcks.js",
|
||||
"houseplan-assets/zigbee-topology-BEa8LNBZ.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "b9ff789f3afc02d313823e02e931dd182454430fc15c213947d92f138efc0f3c",
|
||||
"sha256": "6c2cf3707dd9c1cebf8b33748449ad09064d267ac0aa7926f20b6c6f685f4848",
|
||||
"rawBytes": 1205,
|
||||
"gzipBytes": 802,
|
||||
"gzipBytes": 803,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DSukbbuf.js"
|
||||
"houseplan-assets/houseplan-card-BMVLvcks.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-panel.js",
|
||||
"sha256": "6705e5bec9ec40c3e5aa59b9bf346bae1be864640d2bc689b4cb460be8640b75",
|
||||
"sha256": "416e6a7b7ca38d635e350b01eb44ab93ce84d21eacb26f3303e6b17c40413d3a",
|
||||
"rawBytes": 6165,
|
||||
"gzipBytes": 2325,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DSukbbuf.js"
|
||||
"houseplan-assets/houseplan-card-BMVLvcks.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
}
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="6a0a0a560880372a00a1a6978f61f81fa669710edb3c124b4289e193e9d9fd35";import{aI as e,l as o,aL as t,e7 as s,A as a,e8 as i,e9 as l,ea as n,E as r,c}from"./houseplan-card-DSukbbuf.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__="271e0747b4ddef1af0d15d8bf63a832d72b0f7211550c349a59b3baa3864a84e";import{aI as e,l as o,aL as t,e7 as s,A as a,e8 as i,e9 as l,ea as n,E as r,c}from"./houseplan-card-BMVLvcks.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
|
||||
.hass=${this.hass}
|
||||
.data=${this._formData}
|
||||
.schema=${e}
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+5
-5
File diff suppressed because one or more lines are too long
+43
-43
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="6a0a0a560880372a00a1a6978f61f81fa669710edb3c124b4289e193e9d9fd35";import{l as t,bw as s,A as e,aL as a,c as o,g as l,cK as i,au as h,am as n,as as c,cL as r,cQ as p,cM as d,cN as _,cO as u,cP as g,cR as m,cS as b,al as $,ao as v,ap as f,aq as y,ar as w,at as D}from"./houseplan-card-DSukbbuf.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-BRg4ZNgz.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="6a0a0a560880372a00a1a6978f61f81fa669710edb3c124b4289e193e9d9fd35";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__="271e0747b4ddef1af0d15d8bf63a832d72b0f7211550c349a59b3baa3864a84e";import{l as t,bw as s,A as e,aL as a,c as o,g as l,cK as i,au as h,am as n,as as c,cL as r,cQ as p,cM as d,cN as _,cO as u,cP as g,cR as m,cS as b,al as $,ao as v,ap as f,aq as y,ar as w,at as D}from"./houseplan-card-BMVLvcks.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-BEAwnXmw.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="271e0747b4ddef1af0d15d8bf63a832d72b0f7211550c349a59b3baa3864a84e";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:c({},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:n(Number(e.cell_cm)>0?Number(e.cell_cm):5,this.host._imperial),cellCmTouched:!1,busy:!1})}const e=p(this.host._imperial);this.host._spaceDialog={mode:t,title:"",planUrl:null,planFile:null,...m(),hideDecor:!1,hideOpenings:!1,zeroWallStyle:"dashed",roomColor:g,roomOpacity:u,fillMode:"custom",customFill:{...h,a:0},glowEnabled:!0,bgColor:null,bgMode:"daynight",northDeg:null,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:n(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":""}">
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="6a0a0a560880372a00a1a6978f61f81fa669710edb3c124b4289e193e9d9fd35";import{c as a,A as e}from"./houseplan-card-DSukbbuf.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--2rOgrdc.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__="271e0747b4ddef1af0d15d8bf63a832d72b0f7211550c349a59b3baa3864a84e";import{c as a,A as e}from"./houseplan-card-BMVLvcks.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-g1LT0Cej.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
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="6a0a0a560880372a00a1a6978f61f81fa669710edb3c124b4289e193e9d9fd35";import{ed as e,J as t,b4 as n,H as i,aa as o,a8 as r,bU as s,bT as a,b3 as l,b2 as c,b5 as d,ee as u,ef as f,bW as m,eg as g}from"./houseplan-card-DSukbbuf.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=d(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,l="entity"===r?e.registry.entities?.[s]:null,c="device"===r?s:l?.device_id,d="device"===r?a?.area_id:l?.area_id||c&&e.registry.devices?.[c]?.area_id,u="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||d||"",f=u&&e.areaToSpace[u]||i.space||e.firstSpaceId;c&&e.registry.devices?.[c]&&e.spaceIds.has(f)&&(!n.devices.has(c)||"entity"===r&&n.liveEntities.has(s))&&t.add(c)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=l(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:c(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*b(l,c,d=_){try{let u=0;for(const f of c){const c=l.spaces.find(e=>String(e?.id)===f.id);if(!c)continue;const m=e(c,f),g=d(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const l=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(l,m.physicalBodies)),yield}const _=m.cellCm/o;u+=a(v)*_*_/1e4}return u}catch{return null}}function h(e,t,n=_){const i=b(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function p(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=u(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{b as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,p as summarySystemValue,h as totalCleanFloorAreaM2};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="271e0747b4ddef1af0d15d8bf63a832d72b0f7211550c349a59b3baa3864a84e";import{ed as e,J as t,b4 as n,H as i,aa as o,a8 as r,bU as s,bT as a,b3 as l,b2 as c,b5 as d,ee as u,ef as f,bW as m,eg as g}from"./houseplan-card-BMVLvcks.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=d(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,l="entity"===r?e.registry.entities?.[s]:null,c="device"===r?s:l?.device_id,d="device"===r?a?.area_id:l?.area_id||c&&e.registry.devices?.[c]?.area_id,u="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||d||"",f=u&&e.areaToSpace[u]||i.space||e.firstSpaceId;c&&e.registry.devices?.[c]&&e.spaceIds.has(f)&&(!n.devices.has(c)||"entity"===r&&n.liveEntities.has(s))&&t.add(c)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=l(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:c(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*b(l,c,d=_){try{let u=0;for(const f of c){const c=l.spaces.find(e=>String(e?.id)===f.id);if(!c)continue;const m=e(c,f),g=d(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const l=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(l,m.physicalBodies)),yield}const _=m.cellCm/o;u+=a(v)*_*_/1e4}return u}catch{return null}}function h(e,t,n=_){const i=b(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function p(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=u(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{b as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,p as summarySystemValue,h as totalCleanFloorAreaM2};
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="6a0a0a560880372a00a1a6978f61f81fa669710edb3c124b4289e193e9d9fd35";import{n as t,b as n}from"./zigbee-topology-BkAcWPhv.js";import{aR as e}from"./houseplan-card-DSukbbuf.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function m(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function g(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const f=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&p?.(n):c&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await m(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="271e0747b4ddef1af0d15d8bf63a832d72b0f7211550c349a59b3baa3864a84e";import{n as t,b as n}from"./zigbee-topology-BEa8LNBZ.js";import{aR as e}from"./houseplan-card-BMVLvcks.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function m(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function g(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const f=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&p?.(n):c&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await m(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="6a0a0a560880372a00a1a6978f61f81fa669710edb3c124b4289e193e9d9fd35";try{await import("./houseplan-assets/houseplan-card-DSukbbuf.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__="271e0747b4ddef1af0d15d8bf63a832d72b0f7211550c349a59b3baa3864a84e";try{await import("./houseplan-assets/houseplan-card-BMVLvcks.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
Reference in New Issue
Block a user