Смена пространства выбрасывает слой, а не сверяет его поэлементно

#525 увёл оба списка сцены с `map()` на `repeat(items, (item) => item.id, …)`,
чтобы Lit не переиспользовал узлы по позиции и не проигрывал анимацию двери,
которой не было. Правка верная, но на плане с двумя сотнями маркеров она
оказалась дорогой ровно там, где пользы не приносит: при смене пространства
ключи не пересекаются вовсе, и `repeat` строит две карты ключей и обходит оба
списка, чтобы затем всё равно выбросить всё и создать заново.

Бисект по медиане `switchCycleMs` на `large-house`: 871,2 перед #525 → 953,5
после. На раннере эти 80 мс распадаются на шесть-девять дополнительных длинных
задач, и `longTask.countP95` вышел за порог стабильного гейта.

Теперь оба списка рендерятся как `keyed(space.id, repeat(…))`. Внешний ключ
делает смену пространства: поддерево выбрасывается целиком, дифа нет. Внутренний
остаётся, потому что состав списков едет и внутри пространства — у маркеров от
призраков редактора и живого синка, у проёмов от записи с нерешённым хостом,
которая живёт только в режиме plan, — а переходы на `.device-shell-frame`,
`.op-leaf` и `.op-arc` никуда не делись.

Замер после правки: `switchCycleMs` 889,1 против 936,0 на `main` и 871,2 до
#525. Потолок карточки поднят на одну строку — на `import { keyed }`;
переносить нечего, сам рендер не вырос ни на символ.

Issue: #534
User-Visible: yes
This commit is contained in:
Codex
2026-09-11 22:30:11 +03:00
parent a9a6d37bba
commit 5afdb644c7
55 changed files with 650 additions and 563 deletions
@@ -1,309 +1,309 @@
{
"schema": 1,
"fingerprint": "f40ffc9357a1340e70f3959e98bf17da6858dff6a2b4f32392befa4ce825f0b3",
"fingerprint": "b3e08d50a47faaba7562dc080f267ca13de845113735892a9115a6cdd991392a",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-CvCwcI3S.js",
"houseplan-assets/houseplan-card-bOJWMeFY.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 287246,
"initialViewGzipBytes": 287302,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-CvCwcI3S.js",
"houseplan-assets/houseplan-card-bOJWMeFY.js",
"houseplan-card.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 289551,
"initialPanelGzipBytes": 289606,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2305,
"initialPanelOnlyGzipBytes": 2304,
"lazyFiles": [
"houseplan-assets/backdrop-pick-B2vh4ldK.js",
"houseplan-assets/de-BzGLbwvZ.js",
"houseplan-assets/editor-C1xpueyG.js",
"houseplan-assets/fr-C3geGtjl.js",
"houseplan-assets/furniture-plan-art.generated-Cq22RSiq.js",
"houseplan-assets/guard-Cf4E-8ce.js",
"houseplan-assets/houseplan-editor-runtime-Dj6agWVl.js",
"houseplan-assets/houseplan-onboarding-runtime-J0_74gcV.js",
"houseplan-assets/hp-zigbee-topology-overlay-DwyWKwR8.js",
"houseplan-assets/iso-scene-render-DJJ7WLdq.js",
"houseplan-assets/live-interaction-runtime-jSU7kWgv.js",
"houseplan-assets/pdf-export-DpRho-Fx.js",
"houseplan-assets/summary-panel-runtime-loaded-Cu8UM3xX.js",
"houseplan-assets/zigbee-topology-RVaqPxNn.js",
"houseplan-assets/zigbee-topology-runtime-CiKM8bMZ.js"
"houseplan-assets/backdrop-pick-BVE5pvXV.js",
"houseplan-assets/de-Cl_N0-YX.js",
"houseplan-assets/editor-DAm0GfXr.js",
"houseplan-assets/fr-D490TXwk.js",
"houseplan-assets/furniture-plan-art.generated-d7Er55Or.js",
"houseplan-assets/guard-zx2aaPuf.js",
"houseplan-assets/houseplan-editor-runtime-B0CHFoUQ.js",
"houseplan-assets/houseplan-onboarding-runtime-Dts4ebgR.js",
"houseplan-assets/hp-zigbee-topology-overlay-xOc6gz5D.js",
"houseplan-assets/iso-scene-render-B6PFBRuR.js",
"houseplan-assets/live-interaction-runtime-uOonwwaS.js",
"houseplan-assets/pdf-export-CYH2TEQI.js",
"houseplan-assets/summary-panel-runtime-loaded-cFcfVYdb.js",
"houseplan-assets/zigbee-topology-70mzkKN3.js",
"houseplan-assets/zigbee-topology-runtime-CE0rjXi5.js"
],
"lazyGzipBytes": 417414,
"lazyGzipBytes": 417421,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-B2vh4ldK.js",
"houseplan-assets/editor-C1xpueyG.js",
"houseplan-assets/furniture-plan-art.generated-Cq22RSiq.js",
"houseplan-assets/guard-Cf4E-8ce.js",
"houseplan-assets/houseplan-editor-runtime-Dj6agWVl.js",
"houseplan-assets/zigbee-topology-RVaqPxNn.js"
"houseplan-assets/backdrop-pick-BVE5pvXV.js",
"houseplan-assets/editor-DAm0GfXr.js",
"houseplan-assets/furniture-plan-art.generated-d7Er55Or.js",
"houseplan-assets/guard-zx2aaPuf.js",
"houseplan-assets/houseplan-editor-runtime-B0CHFoUQ.js",
"houseplan-assets/zigbee-topology-70mzkKN3.js"
],
"lazyEditorGzipBytes": 204996,
"lazyEditorGzipBytes": 204997,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-B2vh4ldK.js",
"houseplan-assets/houseplan-onboarding-runtime-J0_74gcV.js"
"houseplan-assets/backdrop-pick-BVE5pvXV.js",
"houseplan-assets/houseplan-onboarding-runtime-Dts4ebgR.js"
],
"lazyOnboardingGzipBytes": 13916,
"lazyOnboardingGzipBytes": 13918,
"lazyLocaleFiles": [
"houseplan-assets/de-BzGLbwvZ.js",
"houseplan-assets/fr-C3geGtjl.js"
"houseplan-assets/de-Cl_N0-YX.js",
"houseplan-assets/fr-D490TXwk.js"
],
"lazyLocaleGzipBytes": 54817,
"lazyLocaleGzipBytes": 54821,
"lazyIsometricFiles": [
"houseplan-assets/guard-Cf4E-8ce.js",
"houseplan-assets/iso-scene-render-DJJ7WLdq.js"
"houseplan-assets/guard-zx2aaPuf.js",
"houseplan-assets/iso-scene-render-B6PFBRuR.js"
],
"lazyIsometricGzipBytes": 13456,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-Cq22RSiq.js"
"houseplan-assets/furniture-plan-art.generated-d7Er55Or.js"
],
"lazyFurnitureArtGzipBytes": 10255,
"lazyFurnitureArtGzipBytes": 10251,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-Cq22RSiq.js",
"houseplan-assets/pdf-export-DpRho-Fx.js"
"houseplan-assets/furniture-plan-art.generated-d7Er55Or.js",
"houseplan-assets/pdf-export-CYH2TEQI.js"
],
"lazyPdfGzipBytes": 120128,
"lazyPdfGzipBytes": 120123,
"files": [
{
"path": "houseplan-assets/backdrop-pick-B2vh4ldK.js",
"sha256": "50c3c752cc39625b8e9693a517bf09c50152befe468d634bd9f157a880d13c2b",
"path": "houseplan-assets/backdrop-pick-BVE5pvXV.js",
"sha256": "04f4f6ebe74df3384c918202679b3ff9380729b553ff798dafe33ba5231eaaa4",
"rawBytes": 19956,
"gzipBytes": 6880,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-BzGLbwvZ.js",
"sha256": "d003e6380ff0cf2a41e7e956de4d343b21c45e9f9bde0d57a2e2ebc4db5adb51",
"path": "houseplan-assets/de-Cl_N0-YX.js",
"sha256": "2ea60918c00765be8acb766982dcc9b58715271c62f2eef3dabc07218dd70f64",
"rawBytes": 91402,
"gzipBytes": 27692,
"gzipBytes": 27695,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-C1xpueyG.js",
"sha256": "074d2bb9067d77491a11ea32a6443dcc22af8fe684af24e18001cb500d8dc7b2",
"path": "houseplan-assets/editor-DAm0GfXr.js",
"sha256": "2524ee570c6d20502ae83cbacddc596882d293b27f7943ae59521c7b1923e796",
"rawBytes": 3832,
"gzipBytes": 1583,
"gzipBytes": 1586,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-C3geGtjl.js",
"sha256": "52b7f50e7dcc34671a868a19250bb48a657a4956e157221daf961159fb2095d5",
"path": "houseplan-assets/fr-D490TXwk.js",
"sha256": "8ff8d7ac1efd3359263752a7e11a26b3c34bc12ae874108c684a07ea2ff9590f",
"rawBytes": 93667,
"gzipBytes": 27125,
"gzipBytes": 27126,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-Cq22RSiq.js",
"sha256": "43d140c50a1359d5e94e2806f505c262a04edfa872d443c83198a2215a4b988f",
"path": "houseplan-assets/furniture-plan-art.generated-d7Er55Or.js",
"sha256": "016eabf8c967f1a22d567a35f83102a80b9d14ce864162308bb833855e440c40",
"rawBytes": 33655,
"gzipBytes": 10255,
"gzipBytes": 10251,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/guard-Cf4E-8ce.js",
"sha256": "d0895bcb2a7b722d7d036235d9fbbed3887b2907b1ea8ec961fecb5ab1ac6ef4",
"path": "houseplan-assets/guard-zx2aaPuf.js",
"sha256": "3455ec5c4d0ea4b31e517eb4aa029de858d0078fc6e59d49737612224440a98f",
"rawBytes": 518,
"gzipBytes": 369,
"gzipBytes": 371,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-CvCwcI3S.js",
"sha256": "d0f9cb54803bb7dacf2e0275fb26372e4b4232357c199b9521b4b75ee102ea04",
"rawBytes": 1021015,
"gzipBytes": 286443,
"path": "houseplan-assets/houseplan-card-bOJWMeFY.js",
"sha256": "69a22d0bc488c22923dcc434d2e77fa2d9f12eb75a37c4b388507de7a4d9ce9d",
"rawBytes": 1021194,
"gzipBytes": 286498,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-BzGLbwvZ.js",
"houseplan-assets/editor-C1xpueyG.js",
"houseplan-assets/fr-C3geGtjl.js",
"houseplan-assets/furniture-plan-art.generated-Cq22RSiq.js",
"houseplan-assets/houseplan-editor-runtime-Dj6agWVl.js",
"houseplan-assets/houseplan-onboarding-runtime-J0_74gcV.js",
"houseplan-assets/hp-zigbee-topology-overlay-DwyWKwR8.js",
"houseplan-assets/iso-scene-render-DJJ7WLdq.js",
"houseplan-assets/live-interaction-runtime-jSU7kWgv.js",
"houseplan-assets/pdf-export-DpRho-Fx.js",
"houseplan-assets/summary-panel-runtime-loaded-Cu8UM3xX.js"
"houseplan-assets/de-Cl_N0-YX.js",
"houseplan-assets/editor-DAm0GfXr.js",
"houseplan-assets/fr-D490TXwk.js",
"houseplan-assets/furniture-plan-art.generated-d7Er55Or.js",
"houseplan-assets/houseplan-editor-runtime-B0CHFoUQ.js",
"houseplan-assets/houseplan-onboarding-runtime-Dts4ebgR.js",
"houseplan-assets/hp-zigbee-topology-overlay-xOc6gz5D.js",
"houseplan-assets/iso-scene-render-B6PFBRuR.js",
"houseplan-assets/live-interaction-runtime-uOonwwaS.js",
"houseplan-assets/pdf-export-CYH2TEQI.js",
"houseplan-assets/summary-panel-runtime-loaded-cFcfVYdb.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-Dj6agWVl.js",
"sha256": "28b55c311643e4b2ac783f060ac2d8af851a49fc65a264d1954101ea36074865",
"path": "houseplan-assets/houseplan-editor-runtime-B0CHFoUQ.js",
"sha256": "7433aa76bf0dd431661b9ca16546c81599493662392375ea421940a13e6c865f",
"rawBytes": 668813,
"gzipBytes": 178480,
"gzipBytes": 178479,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-B2vh4ldK.js",
"houseplan-assets/furniture-plan-art.generated-Cq22RSiq.js",
"houseplan-assets/guard-Cf4E-8ce.js",
"houseplan-assets/houseplan-card-CvCwcI3S.js",
"houseplan-assets/zigbee-topology-RVaqPxNn.js"
"houseplan-assets/backdrop-pick-BVE5pvXV.js",
"houseplan-assets/furniture-plan-art.generated-d7Er55Or.js",
"houseplan-assets/guard-zx2aaPuf.js",
"houseplan-assets/houseplan-card-bOJWMeFY.js",
"houseplan-assets/zigbee-topology-70mzkKN3.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-CiKM8bMZ.js"
"houseplan-assets/zigbee-topology-runtime-CE0rjXi5.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-J0_74gcV.js",
"sha256": "f26d85e6c6b9276ed1b8dddf68f8d6fec58285034a5612e7bc621d0650fe3b39",
"path": "houseplan-assets/houseplan-onboarding-runtime-Dts4ebgR.js",
"sha256": "66085f37bd788c2f5e2d50d580655e93325a6b707b003500b953fdf815b926d8",
"rawBytes": 28287,
"gzipBytes": 7036,
"gzipBytes": 7038,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-B2vh4ldK.js",
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/backdrop-pick-BVE5pvXV.js",
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-DwyWKwR8.js",
"sha256": "38630979c6005defc2870cbd670e93a2bc72e7103c0619a2db8bbc9e5e35add0",
"path": "houseplan-assets/hp-zigbee-topology-overlay-xOc6gz5D.js",
"sha256": "c1007a28222b185c910284669d96f6dc941a2d7606b3194086f8c4fb29cdfd6f",
"rawBytes": 10756,
"gzipBytes": 3682,
"gzipBytes": 3683,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js",
"houseplan-assets/zigbee-topology-RVaqPxNn.js",
"houseplan-assets/zigbee-topology-runtime-CiKM8bMZ.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js",
"houseplan-assets/zigbee-topology-70mzkKN3.js",
"houseplan-assets/zigbee-topology-runtime-CE0rjXi5.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-DJJ7WLdq.js",
"sha256": "0fe3c080025e143c7c1e36360c048bdfeb7de15ad5614e51ccd93a474ac01a76",
"path": "houseplan-assets/iso-scene-render-B6PFBRuR.js",
"sha256": "aa5903e34a2fd82469d195a19e4288c07b29d20130a9f99ed649903c2c6d6353",
"rawBytes": 38562,
"gzipBytes": 13087,
"gzipBytes": 13085,
"isEntry": false,
"imports": [
"houseplan-assets/guard-Cf4E-8ce.js",
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/guard-zx2aaPuf.js",
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-jSU7kWgv.js",
"sha256": "f82bbf39d216aa1da371f477a98bf0db290a322b978159534ec77313272a73b2",
"path": "houseplan-assets/live-interaction-runtime-uOonwwaS.js",
"sha256": "b26b6e1cadb17533b49d7d824cccc4a649def8557953e632b8075fa2da358594",
"rawBytes": 6032,
"gzipBytes": 2432,
"gzipBytes": 2433,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-DpRho-Fx.js",
"sha256": "b3f320d2a9fc4dae77d252e9ca71a9e8bf76aab8143296f070d0d8501afb60d3",
"path": "houseplan-assets/pdf-export-CYH2TEQI.js",
"sha256": "1bf1783f9f3f80b37d38b5000a831860334f1a4cb1aacb58dc172b6c9f25f65b",
"rawBytes": 236244,
"gzipBytes": 109873,
"gzipBytes": 109872,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-Cq22RSiq.js",
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/furniture-plan-art.generated-d7Er55Or.js",
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-Cq0L-N9R.js",
"sha256": "27880dfef9a780a4bbd5003875801eec32943df47d5a41de9ba2ddf33475e798",
"path": "houseplan-assets/summary-panel-editor-TASGFcvs.js",
"sha256": "9e4e2bd331c2f5fdfb6cc6719f09795c5556d712fd961e2cd18d561f2dfee7e2",
"rawBytes": 14824,
"gzipBytes": 3402,
"gzipBytes": 3401,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js",
"houseplan-assets/summary-panel-runtime-loaded-Cu8UM3xX.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js",
"houseplan-assets/summary-panel-runtime-loaded-cFcfVYdb.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-Ci8fAKZP.js",
"sha256": "185fd9a451dec36588013e643f7fa30a91b198bed52e7b95bbe742b47da3af4e",
"path": "houseplan-assets/summary-panel-metrics-bIh_Q9NB.js",
"sha256": "e50c875e83ee220fc99121b013f04f3417b8c1412d2d08265b94f4d2e3c74f57",
"rawBytes": 2610,
"gzipBytes": 1304,
"gzipBytes": 1308,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-Cu8UM3xX.js",
"sha256": "1a47e72af54209e481ea42ba635d5539d5fa93230054cb32ec2c37f163a37f8f",
"path": "houseplan-assets/summary-panel-runtime-loaded-cFcfVYdb.js",
"sha256": "78d50efb02e10eaeb8a5c4d299e98f298606d1d95a419e6bfdfdf8dc37ff36a9",
"rawBytes": 72272,
"gzipBytes": 19728,
"gzipBytes": 19727,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-Cq0L-N9R.js",
"houseplan-assets/summary-panel-metrics-Ci8fAKZP.js"
"houseplan-assets/summary-panel-editor-TASGFcvs.js",
"houseplan-assets/summary-panel-metrics-bIh_Q9NB.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-runtime-CiKM8bMZ.js",
"sha256": "df8412087da621cc7e9bccfb3548af001e39ff202d98a407be75f007c3bf0211",
"rawBytes": 3941,
"gzipBytes": 1763,
"path": "houseplan-assets/zigbee-topology-70mzkKN3.js",
"sha256": "789d0ec02c2b0133838b379975944bb2730ee6c4679c9262000861d8457535a5",
"rawBytes": 18961,
"gzipBytes": 7430,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js",
"houseplan-assets/zigbee-topology-RVaqPxNn.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-RVaqPxNn.js",
"sha256": "fee6dd544594966f44db71dc5529031b2fc8adfe11fe78290b1d0f5bd33e20a0",
"rawBytes": 18961,
"gzipBytes": 7429,
"path": "houseplan-assets/zigbee-topology-runtime-CE0rjXi5.js",
"sha256": "04c8c7571c42d0659a412b4d560d3dbc504209631591f58ab7c86afd3580fedf",
"rawBytes": 3941,
"gzipBytes": 1765,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js",
"houseplan-assets/zigbee-topology-70mzkKN3.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "d1bd483cc0d9e5030c33d713eed4ce01674aaee15d7a09ed230e3470bbe186c1",
"sha256": "6bf9432b3ce24211e3771939aca869d04bf03e4412c118129b3559d9561d6923",
"rawBytes": 1205,
"gzipBytes": 803,
"gzipBytes": 804,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "2827d1118a9d90c49306e0c01b4f1a7b448c24cf51b1ca0ec829bd95c1b37995",
"sha256": "fbdee8bf86166bcbca6e899b1ffb00f840eda83bb4a7edb66390bd08982c5a7b",
"rawBytes": 6124,
"gzipBytes": 2305,
"gzipBytes": 2304,
"isEntry": true,
"imports": [
"houseplan-card.js"
@@ -1,14 +1,14 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f40ffc9357a1340e70f3959e98bf17da6858dff6a2b4f32392befa4ce825f0b3";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-CvCwcI3S.js";class f extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,f={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},h=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b3e08d50a47faaba7562dc080f267ca13de845113735892a9115a6cdd991392a";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-bOJWMeFY.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}
.computeLabel=${e=>f[e.name]||e.name}
.computeLabel=${e=>h[e.name]||e.name}
@value-changed=${this._valueChanged}
></ha-form>`;return c`
${d(h.slice(0,3))}
${d(f.slice(0,3))}
${_?c`<div class="default-floor-error" role="alert"
style="color:var(--error-color,#db4437);margin:-4px 0 12px;overflow-wrap:anywhere">
${t(s,"editor.default_floor_missing",{id:_})}
</div>`:a}
${d(h.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}f.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",f);
${d(f.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}h.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",h);
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f40ffc9357a1340e70f3959e98bf17da6858dff6a2b4f32392befa4ce825f0b3";import{dS as r,dT as t,dU as e}from"./houseplan-card-CvCwcI3S.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};
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b3e08d50a47faaba7562dc080f267ca13de845113735892a9115a6cdd991392a";import{dS as r,dT as t,dU as a}from"./houseplan-card-bOJWMeFY.js";const s={},e=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 a}else if(this.ot===t)return a;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{e as i};
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f40ffc9357a1340e70f3959e98bf17da6858dff6a2b4f32392befa4ce825f0b3";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 f,dr as v,aY as y,a_ as w,ds as D}from"./houseplan-card-CvCwcI3S.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-B2vh4ldK.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="f40ffc9357a1340e70f3959e98bf17da6858dff6a2b4f32392befa4ce825f0b3";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__="b3e08d50a47faaba7562dc080f267ca13de845113735892a9115a6cdd991392a";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-bOJWMeFY.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-BVE5pvXV.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="b3e08d50a47faaba7562dc080f267ca13de845113735892a9115a6cdd991392a";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":""}">
@@ -85,13 +85,13 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f40ffc9357a1340e70f3959e98bf17da6858
max=${c(F,this.host._imperial)}
step="0.1"
.value=${t.cellCmInput??c(t.cellCm,this.host._imperial)}
@input=${s=>{const e=s.target.value,a=x(e),o=null==a?null:f(a,this.host._imperial);this.host._spaceDialog={...t,cellCmInput:e,cellCmTouched:!0,cellCm:null!=o&&o>0?Math.max(.1,Math.min(F,o)):t.cellCm}}} />
@input=${s=>{const e=s.target.value,a=x(e),o=null==a?null:v(a,this.host._imperial);this.host._spaceDialog={...t,cellCmInput:e,cellCmTouched:!0,cellCm:null!=o&&o>0?Math.max(.1,Math.min(F,o)):t.cellCm}}} />
<span class="opl">${this.host._t(this.host._imperial?"space.scale_unit_imperial":"space.scale_unit")}</span>
</div>
<label class="dispsection">${this.host._t("space.display_section")}</label>
<label class="srcrow">
${this._boolInput(t.showBorders,s=>{this.host._spaceDialog=v(t,"showBorders",s)})}
${this._boolInput(t.showBorders,s=>{this.host._spaceDialog=f(t,"showBorders",s)})}
<span>${this.host._t("space.show_borders")}</span>
</label>
<div class="helpfieldlabel">
@@ -107,7 +107,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f40ffc9357a1340e70f3959e98bf17da6858
</option>
</select>
<label class="srcrow">
${this._boolInput(t.showNames,s=>{this.host._spaceDialog=v(t,"showNames",s)})}
${this._boolInput(t.showNames,s=>{this.host._spaceDialog=f(t,"showNames",s)})}
<span>${this.host._t("space.show_names")}</span>
</label>
<label class="srcrow">
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f40ffc9357a1340e70f3959e98bf17da6858dff6a2b4f32392befa4ce825f0b3";import{b as a,A as e}from"./houseplan-card-CvCwcI3S.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-Cu8UM3xX.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__="b3e08d50a47faaba7562dc080f267ca13de845113735892a9115a6cdd991392a";import{b as a,A as e}from"./houseplan-card-bOJWMeFY.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-cFcfVYdb.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 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f40ffc9357a1340e70f3959e98bf17da6858dff6a2b4f32392befa4ce825f0b3";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 l,a0 as c,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-CvCwcI3S.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,l="entity"===r?e.registry.entities?.[s]:null,c="device"===r?s:l?.device_id,u="device"===r?a?.area_id:l?.area_id||c&&e.registry.devices?.[c]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;c&&e.registry.devices?.[c]&&e.spaceIds.has(f)&&(!n.devices.has(c)||"entity"===r&&n.liveEntities.has(s))&&t.add(c)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=l(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:c(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*h(l,c,u=_){try{let d=0;for(const f of c){const c=l.spaces.find(e=>String(e?.id)===f.id);if(!c)continue;const m=e(c,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const l=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(l,m.physicalBodies)),yield}const _=m.cellCm/o;d+=a(v)*_*_/1e4}return d}catch{return null}}function 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};
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b3e08d50a47faaba7562dc080f267ca13de845113735892a9115a6cdd991392a";import{e9 as e,L as t,a2 as n,J as i,an as o,N as a,bo as r,bn as s,a1 as c,a0 as l,ax as d,ea as u,eb as f,bq as m,ec as g}from"./houseplan-card-bOJWMeFY.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 a=i.binding.slice(0,o),r=i.binding.slice(o+1),s="device"===a?e.registry.devices?.[r]:null,c="entity"===a?e.registry.entities?.[r]:null,l="device"===a?r:c?.device_id,d="device"===a?s?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.area_id,u="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||d||"",f=u&&e.areaToSpace[u]||i.space||e.firstSpaceId;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===a&&n.liveEntities.has(r))&&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,a);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,a)}}function*h(c,l,d=_){try{let u=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=d(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const s=t(e);if(!s)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,a,g.roomGeom,g.multiWallNodes)||s;v=y(v,r(c,m.physicalBodies)),yield}const _=m.cellCm/o;u+=s(v)*_*_/1e4}return u}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function b(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=u(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,p as totalCleanFloorAreaM2};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f40ffc9357a1340e70f3959e98bf17da6858dff6a2b4f32392befa4ce825f0b3";import{n as t,b as n}from"./zigbee-topology-RVaqPxNn.js";import{B as e}from"./houseplan-card-CvCwcI3S.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 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(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,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=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 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&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),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{p as readZhaTopology,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b3e08d50a47faaba7562dc080f267ca13de845113735892a9115a6cdd991392a";import{n as t,b as n}from"./zigbee-topology-70mzkKN3.js";import{B as e}from"./houseplan-card-bOJWMeFY.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__="f40ffc9357a1340e70f3959e98bf17da6858dff6a2b4f32392befa4ce825f0b3";try{await import("./houseplan-assets/houseplan-card-CvCwcI3S.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__="b3e08d50a47faaba7562dc080f267ca13de845113735892a9115a6cdd991392a";try{await import("./houseplan-assets/houseplan-card-bOJWMeFY.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
+56 -1
View File
@@ -148,7 +148,62 @@ const res = await page.evaluate(async () => {
const onRealChange = runningAnimations();
out.aRealDoorOpeningStillAnimates = onRealChange
.filter((entry) => /op-leaf/.test(entry.cls)).length >= 1;
// ---- 3) состав списка меняется ВНУТРИ пространства (#534) --------------
// Внешний ключ `keyed(space.id, …)` снимает дорогой диф на смене
// пространства, но внутри пространства состав списков всё равно ездит:
// у маркеров — призраки редактора и живой синк, у проёмов — запись с
// нерешённым хостом, которая живёт ТОЛЬКО в режиме plan. Если убрать
// внутренний `repeat`, позиционное переиспользование вернётся через эту
// дверь, и ни одна проверка выше не покраснеет.
await settle();
const byId = (nodes) => new Map(nodes.map((node) => [node.dataset.id, node]));
const markerNodes = () => [...root().querySelectorAll('[data-hp="device"]')];
const openingNodes = () => [...root().querySelectorAll('.opening')];
const markersKept = byId(markerNodes());
const template = c._renderDevices.find((device) => device.space === c._space);
out.markerTemplateFound = !!template;
c._devices = [{ ...template, id: 'hp-534-probe', name: 'probe' }, ...c._devices];
c._cfgEpoch++;
c.requestUpdate();
await c.updateComplete;
await frame();
const markersAfterInsert = byId(markerNodes());
const movedMarkers = [...markersKept].filter(([id, node]) =>
markersAfterInsert.has(id) && markersAfterInsert.get(id) !== node);
out.listGrewInsideTheSpace = markersAfterInsert.size > markersKept.size;
out.noMarkerNodeSwappedInsideTheSpace = movedMarkers.length === 0;
out.swappedMarkerNodes = movedMarkers.map(([id]) => id);
out.quietAfterTheInsert = runningAnimations().filter((entry) => !EXPECTED(entry)).length === 0;
// Проёмы: запись с нерешённым хостом отдаётся только в режиме plan, поэтому
// вход в редактор добавляет её в список и сдвигает позиции остальных.
await settle();
const space = c._serverCfg.spaces.find((item) => item.id === c._space);
const donor = space.openings[0];
out.openingDonorFound = !!donor;
space.openings = [
{ ...donor, id: 'hp-534-orphan', host: { kind: 'partition', id: 'hp-534-missing' } },
...space.openings,
];
c._cfgEpoch++;
c.requestUpdate();
await c.updateComplete;
await settle();
const openingsKept = byId(openingNodes());
c._setMode('plan');
await c.updateComplete;
await frame();
const openingsInPlan = byId(openingNodes());
const movedOpenings = [...openingsKept].filter(([id, node]) =>
openingsInPlan.has(id) && openingsInPlan.get(id) !== node);
out.orphanAppearsOnlyInPlan = openingsInPlan.size > openingsKept.size;
out.noOpeningNodeSwappedInsideTheSpace = movedOpenings.length === 0;
out.swappedOpeningNodes = movedOpenings.map(([id]) => id);
out.quietAfterTheModeSwitch = runningAnimations()
.filter((entry) => /op-leaf|op-arc/.test(entry.cls)).length === 0;
return out;
});
checkAll(res, { unexpectedAnimations: [], reusedMarkerNodes: [] });
checkAll(res, { unexpectedAnimations: [], reusedMarkerNodes: [],
swappedMarkerNodes: [], swappedOpeningNodes: [] });
await finish(browser, res);
+142 -142
View File
@@ -1,309 +1,309 @@
{
"schema": 1,
"fingerprint": "f40ffc9357a1340e70f3959e98bf17da6858dff6a2b4f32392befa4ce825f0b3",
"fingerprint": "b3e08d50a47faaba7562dc080f267ca13de845113735892a9115a6cdd991392a",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-CvCwcI3S.js",
"houseplan-assets/houseplan-card-bOJWMeFY.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 287246,
"initialViewGzipBytes": 287302,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-CvCwcI3S.js",
"houseplan-assets/houseplan-card-bOJWMeFY.js",
"houseplan-card.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 289551,
"initialPanelGzipBytes": 289606,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2305,
"initialPanelOnlyGzipBytes": 2304,
"lazyFiles": [
"houseplan-assets/backdrop-pick-B2vh4ldK.js",
"houseplan-assets/de-BzGLbwvZ.js",
"houseplan-assets/editor-C1xpueyG.js",
"houseplan-assets/fr-C3geGtjl.js",
"houseplan-assets/furniture-plan-art.generated-Cq22RSiq.js",
"houseplan-assets/guard-Cf4E-8ce.js",
"houseplan-assets/houseplan-editor-runtime-Dj6agWVl.js",
"houseplan-assets/houseplan-onboarding-runtime-J0_74gcV.js",
"houseplan-assets/hp-zigbee-topology-overlay-DwyWKwR8.js",
"houseplan-assets/iso-scene-render-DJJ7WLdq.js",
"houseplan-assets/live-interaction-runtime-jSU7kWgv.js",
"houseplan-assets/pdf-export-DpRho-Fx.js",
"houseplan-assets/summary-panel-runtime-loaded-Cu8UM3xX.js",
"houseplan-assets/zigbee-topology-RVaqPxNn.js",
"houseplan-assets/zigbee-topology-runtime-CiKM8bMZ.js"
"houseplan-assets/backdrop-pick-BVE5pvXV.js",
"houseplan-assets/de-Cl_N0-YX.js",
"houseplan-assets/editor-DAm0GfXr.js",
"houseplan-assets/fr-D490TXwk.js",
"houseplan-assets/furniture-plan-art.generated-d7Er55Or.js",
"houseplan-assets/guard-zx2aaPuf.js",
"houseplan-assets/houseplan-editor-runtime-B0CHFoUQ.js",
"houseplan-assets/houseplan-onboarding-runtime-Dts4ebgR.js",
"houseplan-assets/hp-zigbee-topology-overlay-xOc6gz5D.js",
"houseplan-assets/iso-scene-render-B6PFBRuR.js",
"houseplan-assets/live-interaction-runtime-uOonwwaS.js",
"houseplan-assets/pdf-export-CYH2TEQI.js",
"houseplan-assets/summary-panel-runtime-loaded-cFcfVYdb.js",
"houseplan-assets/zigbee-topology-70mzkKN3.js",
"houseplan-assets/zigbee-topology-runtime-CE0rjXi5.js"
],
"lazyGzipBytes": 417414,
"lazyGzipBytes": 417421,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-B2vh4ldK.js",
"houseplan-assets/editor-C1xpueyG.js",
"houseplan-assets/furniture-plan-art.generated-Cq22RSiq.js",
"houseplan-assets/guard-Cf4E-8ce.js",
"houseplan-assets/houseplan-editor-runtime-Dj6agWVl.js",
"houseplan-assets/zigbee-topology-RVaqPxNn.js"
"houseplan-assets/backdrop-pick-BVE5pvXV.js",
"houseplan-assets/editor-DAm0GfXr.js",
"houseplan-assets/furniture-plan-art.generated-d7Er55Or.js",
"houseplan-assets/guard-zx2aaPuf.js",
"houseplan-assets/houseplan-editor-runtime-B0CHFoUQ.js",
"houseplan-assets/zigbee-topology-70mzkKN3.js"
],
"lazyEditorGzipBytes": 204996,
"lazyEditorGzipBytes": 204997,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-B2vh4ldK.js",
"houseplan-assets/houseplan-onboarding-runtime-J0_74gcV.js"
"houseplan-assets/backdrop-pick-BVE5pvXV.js",
"houseplan-assets/houseplan-onboarding-runtime-Dts4ebgR.js"
],
"lazyOnboardingGzipBytes": 13916,
"lazyOnboardingGzipBytes": 13918,
"lazyLocaleFiles": [
"houseplan-assets/de-BzGLbwvZ.js",
"houseplan-assets/fr-C3geGtjl.js"
"houseplan-assets/de-Cl_N0-YX.js",
"houseplan-assets/fr-D490TXwk.js"
],
"lazyLocaleGzipBytes": 54817,
"lazyLocaleGzipBytes": 54821,
"lazyIsometricFiles": [
"houseplan-assets/guard-Cf4E-8ce.js",
"houseplan-assets/iso-scene-render-DJJ7WLdq.js"
"houseplan-assets/guard-zx2aaPuf.js",
"houseplan-assets/iso-scene-render-B6PFBRuR.js"
],
"lazyIsometricGzipBytes": 13456,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-Cq22RSiq.js"
"houseplan-assets/furniture-plan-art.generated-d7Er55Or.js"
],
"lazyFurnitureArtGzipBytes": 10255,
"lazyFurnitureArtGzipBytes": 10251,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-Cq22RSiq.js",
"houseplan-assets/pdf-export-DpRho-Fx.js"
"houseplan-assets/furniture-plan-art.generated-d7Er55Or.js",
"houseplan-assets/pdf-export-CYH2TEQI.js"
],
"lazyPdfGzipBytes": 120128,
"lazyPdfGzipBytes": 120123,
"files": [
{
"path": "houseplan-assets/backdrop-pick-B2vh4ldK.js",
"sha256": "50c3c752cc39625b8e9693a517bf09c50152befe468d634bd9f157a880d13c2b",
"path": "houseplan-assets/backdrop-pick-BVE5pvXV.js",
"sha256": "04f4f6ebe74df3384c918202679b3ff9380729b553ff798dafe33ba5231eaaa4",
"rawBytes": 19956,
"gzipBytes": 6880,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-BzGLbwvZ.js",
"sha256": "d003e6380ff0cf2a41e7e956de4d343b21c45e9f9bde0d57a2e2ebc4db5adb51",
"path": "houseplan-assets/de-Cl_N0-YX.js",
"sha256": "2ea60918c00765be8acb766982dcc9b58715271c62f2eef3dabc07218dd70f64",
"rawBytes": 91402,
"gzipBytes": 27692,
"gzipBytes": 27695,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-C1xpueyG.js",
"sha256": "074d2bb9067d77491a11ea32a6443dcc22af8fe684af24e18001cb500d8dc7b2",
"path": "houseplan-assets/editor-DAm0GfXr.js",
"sha256": "2524ee570c6d20502ae83cbacddc596882d293b27f7943ae59521c7b1923e796",
"rawBytes": 3832,
"gzipBytes": 1583,
"gzipBytes": 1586,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-C3geGtjl.js",
"sha256": "52b7f50e7dcc34671a868a19250bb48a657a4956e157221daf961159fb2095d5",
"path": "houseplan-assets/fr-D490TXwk.js",
"sha256": "8ff8d7ac1efd3359263752a7e11a26b3c34bc12ae874108c684a07ea2ff9590f",
"rawBytes": 93667,
"gzipBytes": 27125,
"gzipBytes": 27126,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-Cq22RSiq.js",
"sha256": "43d140c50a1359d5e94e2806f505c262a04edfa872d443c83198a2215a4b988f",
"path": "houseplan-assets/furniture-plan-art.generated-d7Er55Or.js",
"sha256": "016eabf8c967f1a22d567a35f83102a80b9d14ce864162308bb833855e440c40",
"rawBytes": 33655,
"gzipBytes": 10255,
"gzipBytes": 10251,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/guard-Cf4E-8ce.js",
"sha256": "d0895bcb2a7b722d7d036235d9fbbed3887b2907b1ea8ec961fecb5ab1ac6ef4",
"path": "houseplan-assets/guard-zx2aaPuf.js",
"sha256": "3455ec5c4d0ea4b31e517eb4aa029de858d0078fc6e59d49737612224440a98f",
"rawBytes": 518,
"gzipBytes": 369,
"gzipBytes": 371,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-CvCwcI3S.js",
"sha256": "d0f9cb54803bb7dacf2e0275fb26372e4b4232357c199b9521b4b75ee102ea04",
"rawBytes": 1021015,
"gzipBytes": 286443,
"path": "houseplan-assets/houseplan-card-bOJWMeFY.js",
"sha256": "69a22d0bc488c22923dcc434d2e77fa2d9f12eb75a37c4b388507de7a4d9ce9d",
"rawBytes": 1021194,
"gzipBytes": 286498,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-BzGLbwvZ.js",
"houseplan-assets/editor-C1xpueyG.js",
"houseplan-assets/fr-C3geGtjl.js",
"houseplan-assets/furniture-plan-art.generated-Cq22RSiq.js",
"houseplan-assets/houseplan-editor-runtime-Dj6agWVl.js",
"houseplan-assets/houseplan-onboarding-runtime-J0_74gcV.js",
"houseplan-assets/hp-zigbee-topology-overlay-DwyWKwR8.js",
"houseplan-assets/iso-scene-render-DJJ7WLdq.js",
"houseplan-assets/live-interaction-runtime-jSU7kWgv.js",
"houseplan-assets/pdf-export-DpRho-Fx.js",
"houseplan-assets/summary-panel-runtime-loaded-Cu8UM3xX.js"
"houseplan-assets/de-Cl_N0-YX.js",
"houseplan-assets/editor-DAm0GfXr.js",
"houseplan-assets/fr-D490TXwk.js",
"houseplan-assets/furniture-plan-art.generated-d7Er55Or.js",
"houseplan-assets/houseplan-editor-runtime-B0CHFoUQ.js",
"houseplan-assets/houseplan-onboarding-runtime-Dts4ebgR.js",
"houseplan-assets/hp-zigbee-topology-overlay-xOc6gz5D.js",
"houseplan-assets/iso-scene-render-B6PFBRuR.js",
"houseplan-assets/live-interaction-runtime-uOonwwaS.js",
"houseplan-assets/pdf-export-CYH2TEQI.js",
"houseplan-assets/summary-panel-runtime-loaded-cFcfVYdb.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-Dj6agWVl.js",
"sha256": "28b55c311643e4b2ac783f060ac2d8af851a49fc65a264d1954101ea36074865",
"path": "houseplan-assets/houseplan-editor-runtime-B0CHFoUQ.js",
"sha256": "7433aa76bf0dd431661b9ca16546c81599493662392375ea421940a13e6c865f",
"rawBytes": 668813,
"gzipBytes": 178480,
"gzipBytes": 178479,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-B2vh4ldK.js",
"houseplan-assets/furniture-plan-art.generated-Cq22RSiq.js",
"houseplan-assets/guard-Cf4E-8ce.js",
"houseplan-assets/houseplan-card-CvCwcI3S.js",
"houseplan-assets/zigbee-topology-RVaqPxNn.js"
"houseplan-assets/backdrop-pick-BVE5pvXV.js",
"houseplan-assets/furniture-plan-art.generated-d7Er55Or.js",
"houseplan-assets/guard-zx2aaPuf.js",
"houseplan-assets/houseplan-card-bOJWMeFY.js",
"houseplan-assets/zigbee-topology-70mzkKN3.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-CiKM8bMZ.js"
"houseplan-assets/zigbee-topology-runtime-CE0rjXi5.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-J0_74gcV.js",
"sha256": "f26d85e6c6b9276ed1b8dddf68f8d6fec58285034a5612e7bc621d0650fe3b39",
"path": "houseplan-assets/houseplan-onboarding-runtime-Dts4ebgR.js",
"sha256": "66085f37bd788c2f5e2d50d580655e93325a6b707b003500b953fdf815b926d8",
"rawBytes": 28287,
"gzipBytes": 7036,
"gzipBytes": 7038,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-B2vh4ldK.js",
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/backdrop-pick-BVE5pvXV.js",
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-DwyWKwR8.js",
"sha256": "38630979c6005defc2870cbd670e93a2bc72e7103c0619a2db8bbc9e5e35add0",
"path": "houseplan-assets/hp-zigbee-topology-overlay-xOc6gz5D.js",
"sha256": "c1007a28222b185c910284669d96f6dc941a2d7606b3194086f8c4fb29cdfd6f",
"rawBytes": 10756,
"gzipBytes": 3682,
"gzipBytes": 3683,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js",
"houseplan-assets/zigbee-topology-RVaqPxNn.js",
"houseplan-assets/zigbee-topology-runtime-CiKM8bMZ.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js",
"houseplan-assets/zigbee-topology-70mzkKN3.js",
"houseplan-assets/zigbee-topology-runtime-CE0rjXi5.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-DJJ7WLdq.js",
"sha256": "0fe3c080025e143c7c1e36360c048bdfeb7de15ad5614e51ccd93a474ac01a76",
"path": "houseplan-assets/iso-scene-render-B6PFBRuR.js",
"sha256": "aa5903e34a2fd82469d195a19e4288c07b29d20130a9f99ed649903c2c6d6353",
"rawBytes": 38562,
"gzipBytes": 13087,
"gzipBytes": 13085,
"isEntry": false,
"imports": [
"houseplan-assets/guard-Cf4E-8ce.js",
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/guard-zx2aaPuf.js",
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-jSU7kWgv.js",
"sha256": "f82bbf39d216aa1da371f477a98bf0db290a322b978159534ec77313272a73b2",
"path": "houseplan-assets/live-interaction-runtime-uOonwwaS.js",
"sha256": "b26b6e1cadb17533b49d7d824cccc4a649def8557953e632b8075fa2da358594",
"rawBytes": 6032,
"gzipBytes": 2432,
"gzipBytes": 2433,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-DpRho-Fx.js",
"sha256": "b3f320d2a9fc4dae77d252e9ca71a9e8bf76aab8143296f070d0d8501afb60d3",
"path": "houseplan-assets/pdf-export-CYH2TEQI.js",
"sha256": "1bf1783f9f3f80b37d38b5000a831860334f1a4cb1aacb58dc172b6c9f25f65b",
"rawBytes": 236244,
"gzipBytes": 109873,
"gzipBytes": 109872,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-Cq22RSiq.js",
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/furniture-plan-art.generated-d7Er55Or.js",
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-Cq0L-N9R.js",
"sha256": "27880dfef9a780a4bbd5003875801eec32943df47d5a41de9ba2ddf33475e798",
"path": "houseplan-assets/summary-panel-editor-TASGFcvs.js",
"sha256": "9e4e2bd331c2f5fdfb6cc6719f09795c5556d712fd961e2cd18d561f2dfee7e2",
"rawBytes": 14824,
"gzipBytes": 3402,
"gzipBytes": 3401,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js",
"houseplan-assets/summary-panel-runtime-loaded-Cu8UM3xX.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js",
"houseplan-assets/summary-panel-runtime-loaded-cFcfVYdb.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-Ci8fAKZP.js",
"sha256": "185fd9a451dec36588013e643f7fa30a91b198bed52e7b95bbe742b47da3af4e",
"path": "houseplan-assets/summary-panel-metrics-bIh_Q9NB.js",
"sha256": "e50c875e83ee220fc99121b013f04f3417b8c1412d2d08265b94f4d2e3c74f57",
"rawBytes": 2610,
"gzipBytes": 1304,
"gzipBytes": 1308,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-Cu8UM3xX.js",
"sha256": "1a47e72af54209e481ea42ba635d5539d5fa93230054cb32ec2c37f163a37f8f",
"path": "houseplan-assets/summary-panel-runtime-loaded-cFcfVYdb.js",
"sha256": "78d50efb02e10eaeb8a5c4d299e98f298606d1d95a419e6bfdfdf8dc37ff36a9",
"rawBytes": 72272,
"gzipBytes": 19728,
"gzipBytes": 19727,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-Cq0L-N9R.js",
"houseplan-assets/summary-panel-metrics-Ci8fAKZP.js"
"houseplan-assets/summary-panel-editor-TASGFcvs.js",
"houseplan-assets/summary-panel-metrics-bIh_Q9NB.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-runtime-CiKM8bMZ.js",
"sha256": "df8412087da621cc7e9bccfb3548af001e39ff202d98a407be75f007c3bf0211",
"rawBytes": 3941,
"gzipBytes": 1763,
"path": "houseplan-assets/zigbee-topology-70mzkKN3.js",
"sha256": "789d0ec02c2b0133838b379975944bb2730ee6c4679c9262000861d8457535a5",
"rawBytes": 18961,
"gzipBytes": 7430,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js",
"houseplan-assets/zigbee-topology-RVaqPxNn.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-RVaqPxNn.js",
"sha256": "fee6dd544594966f44db71dc5529031b2fc8adfe11fe78290b1d0f5bd33e20a0",
"rawBytes": 18961,
"gzipBytes": 7429,
"path": "houseplan-assets/zigbee-topology-runtime-CE0rjXi5.js",
"sha256": "04c8c7571c42d0659a412b4d560d3dbc504209631591f58ab7c86afd3580fedf",
"rawBytes": 3941,
"gzipBytes": 1765,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js",
"houseplan-assets/zigbee-topology-70mzkKN3.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "d1bd483cc0d9e5030c33d713eed4ce01674aaee15d7a09ed230e3470bbe186c1",
"sha256": "6bf9432b3ce24211e3771939aca869d04bf03e4412c118129b3559d9561d6923",
"rawBytes": 1205,
"gzipBytes": 803,
"gzipBytes": 804,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-CvCwcI3S.js"
"houseplan-assets/houseplan-card-bOJWMeFY.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "2827d1118a9d90c49306e0c01b4f1a7b448c24cf51b1ca0ec829bd95c1b37995",
"sha256": "fbdee8bf86166bcbca6e899b1ffb00f840eda83bb4a7edb66390bd08982c5a7b",
"rawBytes": 6124,
"gzipBytes": 2305,
"gzipBytes": 2304,
"isEntry": true,
"imports": [
"houseplan-card.js"
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,14 +1,14 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f40ffc9357a1340e70f3959e98bf17da6858dff6a2b4f32392befa4ce825f0b3";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-CvCwcI3S.js";class f extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,f={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},h=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b3e08d50a47faaba7562dc080f267ca13de845113735892a9115a6cdd991392a";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-bOJWMeFY.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}
.computeLabel=${e=>f[e.name]||e.name}
.computeLabel=${e=>h[e.name]||e.name}
@value-changed=${this._valueChanged}
></ha-form>`;return c`
${d(h.slice(0,3))}
${d(f.slice(0,3))}
${_?c`<div class="default-floor-error" role="alert"
style="color:var(--error-color,#db4437);margin:-4px 0 12px;overflow-wrap:anywhere">
${t(s,"editor.default_floor_missing",{id:_})}
</div>`:a}
${d(h.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}f.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",f);
${d(f.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}h.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",h);
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f40ffc9357a1340e70f3959e98bf17da6858dff6a2b4f32392befa4ce825f0b3";import{dS as r,dT as t,dU as e}from"./houseplan-card-CvCwcI3S.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
View File
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b3e08d50a47faaba7562dc080f267ca13de845113735892a9115a6cdd991392a";import{dS as r,dT as t,dU as a}from"./houseplan-card-bOJWMeFY.js";const s={},e=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 a}else if(this.ot===t)return a;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{e 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__="f40ffc9357a1340e70f3959e98bf17da6858dff6a2b4f32392befa4ce825f0b3";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 f,dr as v,aY as y,a_ as w,ds as D}from"./houseplan-card-CvCwcI3S.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-B2vh4ldK.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="f40ffc9357a1340e70f3959e98bf17da6858dff6a2b4f32392befa4ce825f0b3";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__="b3e08d50a47faaba7562dc080f267ca13de845113735892a9115a6cdd991392a";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-bOJWMeFY.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-BVE5pvXV.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="b3e08d50a47faaba7562dc080f267ca13de845113735892a9115a6cdd991392a";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":""}">
@@ -85,13 +85,13 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f40ffc9357a1340e70f3959e98bf17da6858
max=${c(F,this.host._imperial)}
step="0.1"
.value=${t.cellCmInput??c(t.cellCm,this.host._imperial)}
@input=${s=>{const e=s.target.value,a=x(e),o=null==a?null:f(a,this.host._imperial);this.host._spaceDialog={...t,cellCmInput:e,cellCmTouched:!0,cellCm:null!=o&&o>0?Math.max(.1,Math.min(F,o)):t.cellCm}}} />
@input=${s=>{const e=s.target.value,a=x(e),o=null==a?null:v(a,this.host._imperial);this.host._spaceDialog={...t,cellCmInput:e,cellCmTouched:!0,cellCm:null!=o&&o>0?Math.max(.1,Math.min(F,o)):t.cellCm}}} />
<span class="opl">${this.host._t(this.host._imperial?"space.scale_unit_imperial":"space.scale_unit")}</span>
</div>
<label class="dispsection">${this.host._t("space.display_section")}</label>
<label class="srcrow">
${this._boolInput(t.showBorders,s=>{this.host._spaceDialog=v(t,"showBorders",s)})}
${this._boolInput(t.showBorders,s=>{this.host._spaceDialog=f(t,"showBorders",s)})}
<span>${this.host._t("space.show_borders")}</span>
</label>
<div class="helpfieldlabel">
@@ -107,7 +107,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f40ffc9357a1340e70f3959e98bf17da6858
</option>
</select>
<label class="srcrow">
${this._boolInput(t.showNames,s=>{this.host._spaceDialog=v(t,"showNames",s)})}
${this._boolInput(t.showNames,s=>{this.host._spaceDialog=f(t,"showNames",s)})}
<span>${this.host._t("space.show_names")}</span>
</label>
<label class="srcrow">
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__="f40ffc9357a1340e70f3959e98bf17da6858dff6a2b4f32392befa4ce825f0b3";import{b as a,A as e}from"./houseplan-card-CvCwcI3S.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-Cu8UM3xX.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__="b3e08d50a47faaba7562dc080f267ca13de845113735892a9115a6cdd991392a";import{b as a,A as e}from"./houseplan-card-bOJWMeFY.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-cFcfVYdb.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 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f40ffc9357a1340e70f3959e98bf17da6858dff6a2b4f32392befa4ce825f0b3";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 l,a0 as c,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-CvCwcI3S.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,l="entity"===r?e.registry.entities?.[s]:null,c="device"===r?s:l?.device_id,u="device"===r?a?.area_id:l?.area_id||c&&e.registry.devices?.[c]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;c&&e.registry.devices?.[c]&&e.spaceIds.has(f)&&(!n.devices.has(c)||"entity"===r&&n.liveEntities.has(s))&&t.add(c)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=l(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:c(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*h(l,c,u=_){try{let d=0;for(const f of c){const c=l.spaces.find(e=>String(e?.id)===f.id);if(!c)continue;const m=e(c,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const l=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(l,m.physicalBodies)),yield}const _=m.cellCm/o;d+=a(v)*_*_/1e4}return d}catch{return null}}function 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};
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b3e08d50a47faaba7562dc080f267ca13de845113735892a9115a6cdd991392a";import{e9 as e,L as t,a2 as n,J as i,an as o,N as a,bo as r,bn as s,a1 as c,a0 as l,ax as d,ea as u,eb as f,bq as m,ec as g}from"./houseplan-card-bOJWMeFY.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 a=i.binding.slice(0,o),r=i.binding.slice(o+1),s="device"===a?e.registry.devices?.[r]:null,c="entity"===a?e.registry.entities?.[r]:null,l="device"===a?r:c?.device_id,d="device"===a?s?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.area_id,u="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||d||"",f=u&&e.areaToSpace[u]||i.space||e.firstSpaceId;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===a&&n.liveEntities.has(r))&&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,a);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,a)}}function*h(c,l,d=_){try{let u=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=d(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const s=t(e);if(!s)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,a,g.roomGeom,g.multiWallNodes)||s;v=y(v,r(c,m.physicalBodies)),yield}const _=m.cellCm/o;u+=s(v)*_*_/1e4}return u}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function b(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=u(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,p as totalCleanFloorAreaM2};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f40ffc9357a1340e70f3959e98bf17da6858dff6a2b4f32392befa4ce825f0b3";import{n as t,b as n}from"./zigbee-topology-RVaqPxNn.js";import{B as e}from"./houseplan-card-CvCwcI3S.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 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(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,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=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 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&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),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{p as readZhaTopology,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b3e08d50a47faaba7562dc080f267ca13de845113735892a9115a6cdd991392a";import{n as t,b as n}from"./zigbee-topology-70mzkKN3.js";import{B as e}from"./houseplan-card-bOJWMeFY.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__="f40ffc9357a1340e70f3959e98bf17da6858dff6a2b4f32392befa4ce825f0b3";try{await import("./houseplan-assets/houseplan-card-CvCwcI3S.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__="b3e08d50a47faaba7562dc080f267ca13de845113735892a9115a6cdd991392a";try{await import("./houseplan-assets/houseplan-card-bOJWMeFY.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
+7
View File
@@ -2,6 +2,13 @@
## Unreleased
- Switching between floors on a large plan is quick again. Every switch was
rebuilding the device markers the slow way — comparing two hundred old
markers against two hundred new ones only to throw all of them away — which
cost about a tenth of a second of a frozen card each time. Nothing looks
different, and the door that never moved still does not animate
([#534](https://github.com/Matysh/houseplan-card/issues/534)).
- The “Follows the sun” background no longer slows the plan down. The plan's
outer outline is a blur over the whole sheet, and it lived in the same layer
as the plan: any mouse movement made the engine re-run it. The outline now
+7
View File
@@ -8,6 +8,13 @@
## Не выпущено
- Переключение между этажами на большом плане снова быстрое. Каждое
переключение пересобирало маркеры устройств самым долгим способом — сверяло
двести старых маркеров с двумя сотнями новых, чтобы затем выбросить все, — и
это стоило около десятой доли секунды подвисшей карточки. Внешне не меняется
ничего, и дверь, которая никуда не двигалась, по-прежнему не анимируется
([#534](https://github.com/Matysh/houseplan-card/issues/534)).
- Фон «Следует за Солнцем» больше не замедляет план. Внешний контур плана —
это размытие по габариту всего листа, и оно жило в общем слое с планом: любое
движение мыши заставляло движок прогонять его заново. Теперь контур держится
+12 -12
View File
@@ -3,7 +3,7 @@
"fixture": "synthetic-only",
"chromium": "151.0.7922.34",
"oxipng": "oxipng 10.2.0",
"sourceFingerprint": "1a0b29e3e36eba71bc42630eceef108cf9a9bc82cc78aa7d1d047144086ae4f6",
"sourceFingerprint": "d11c6433c3b10ec39a97f45ea5a1ea80da8443b80f8ab34a6e7bd4bd70aee64a",
"captureScriptSha256": "9e4b0ae533407fe003a129078aec020f2c83d67cdb6fc6da696ce3d829beaeb5",
"command": "npm run build && node demo/docs/capture.mjs",
"scenarios": {
@@ -15,7 +15,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "1a0b29e3e36eba71bc42630eceef108cf9a9bc82cc78aa7d1d047144086ae4f6",
"sourceSha256": "d11c6433c3b10ec39a97f45ea5a1ea80da8443b80f8ab34a6e7bd4bd70aee64a",
"imageSha256": "76c35a87810e3dc6890bda7b43da133f57d8860031204a62cda7115c15950090"
},
"view-touch": {
@@ -26,7 +26,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "1a0b29e3e36eba71bc42630eceef108cf9a9bc82cc78aa7d1d047144086ae4f6",
"sourceSha256": "d11c6433c3b10ec39a97f45ea5a1ea80da8443b80f8ab34a6e7bd4bd70aee64a",
"imageSha256": "795585acb09488236ebb8028a7fcbd918404c5fe01560bb9b4559de13d441625"
},
"space-create": {
@@ -37,7 +37,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "1a0b29e3e36eba71bc42630eceef108cf9a9bc82cc78aa7d1d047144086ae4f6",
"sourceSha256": "d11c6433c3b10ec39a97f45ea5a1ea80da8443b80f8ab34a6e7bd4bd70aee64a",
"imageSha256": "9f0970de09772674c3156b9fc5b2d49de0ceb22be11ecf8b136047d37d100a84"
},
"room-contour-close": {
@@ -48,7 +48,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "1a0b29e3e36eba71bc42630eceef108cf9a9bc82cc78aa7d1d047144086ae4f6",
"sourceSha256": "d11c6433c3b10ec39a97f45ea5a1ea80da8443b80f8ab34a6e7bd4bd70aee64a",
"imageSha256": "0c354a79f9c3660788b6c5e889a27b6bd78b1f209dc0eef6bb43e2c1344028c4"
},
"plan-context-tray": {
@@ -59,7 +59,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "1a0b29e3e36eba71bc42630eceef108cf9a9bc82cc78aa7d1d047144086ae4f6",
"sourceSha256": "d11c6433c3b10ec39a97f45ea5a1ea80da8443b80f8ab34a6e7bd4bd70aee64a",
"imageSha256": "64169c543291bc4df806dcf8ff484b42c8ea55eb343323d945344e0e28f2ce97"
},
"device-editor": {
@@ -70,7 +70,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "1a0b29e3e36eba71bc42630eceef108cf9a9bc82cc78aa7d1d047144086ae4f6",
"sourceSha256": "d11c6433c3b10ec39a97f45ea5a1ea80da8443b80f8ab34a6e7bd4bd70aee64a",
"imageSha256": "3c8703175605fcf0387d654cd30783ecfd33e21743e70b45190a5ae1a8d355c2"
},
"device-display-preview": {
@@ -81,7 +81,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "1a0b29e3e36eba71bc42630eceef108cf9a9bc82cc78aa7d1d047144086ae4f6",
"sourceSha256": "d11c6433c3b10ec39a97f45ea5a1ea80da8443b80f8ab34a6e7bd4bd70aee64a",
"imageSha256": "5d6193202102f5e6d85567f1111fa105895b933979fbf369c6ba0b1029deb823"
},
"background-editor": {
@@ -92,7 +92,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "1a0b29e3e36eba71bc42630eceef108cf9a9bc82cc78aa7d1d047144086ae4f6",
"sourceSha256": "d11c6433c3b10ec39a97f45ea5a1ea80da8443b80f8ab34a6e7bd4bd70aee64a",
"imageSha256": "375900a29aa62632883ede6727b7dbb8b48cabe9d7d0e16425f9779c837f3dd9"
},
"room-card": {
@@ -103,7 +103,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "1a0b29e3e36eba71bc42630eceef108cf9a9bc82cc78aa7d1d047144086ae4f6",
"sourceSha256": "d11c6433c3b10ec39a97f45ea5a1ea80da8443b80f8ab34a6e7bd4bd70aee64a",
"imageSha256": "3d85424676c823ddca3fa7dab3cce089b6030e48c05d16d2d48d922c66c0cbd2"
},
"device-info": {
@@ -114,7 +114,7 @@
},
"theme": "dark",
"language": "en",
"sourceSha256": "1a0b29e3e36eba71bc42630eceef108cf9a9bc82cc78aa7d1d047144086ae4f6",
"sourceSha256": "d11c6433c3b10ec39a97f45ea5a1ea80da8443b80f8ab34a6e7bd4bd70aee64a",
"imageSha256": "ac962820f8e1c5cb5b042d39b18dc95905fa840cb2d4749060d991be4f6977c2"
},
"pdf-export": {
@@ -125,7 +125,7 @@
},
"theme": "light",
"language": "en",
"sourceSha256": "1a0b29e3e36eba71bc42630eceef108cf9a9bc82cc78aa7d1d047144086ae4f6",
"sourceSha256": "d11c6433c3b10ec39a97f45ea5a1ea80da8443b80f8ab34a6e7bd4bd70aee64a",
"imageSha256": "4537692fd57a3ed95528eddd748eee5cb6e456ffab7cc49169853d62459252cd"
}
},
+5 -4
View File
@@ -7438,8 +7438,9 @@ const MUTANT_DEFINITIONS = [
+ 'animates a door that never moved (#525 AC1)',
patches: [{
file: 'src/houseplan-card.ts',
find: ' return svg`<g class="openinglayer">${repeat(items, (o) => o.id, (o) => {',
replace: ' return svg`<g class="openinglayer">${items.map((o) => {',
find: " return svg`<g class=\"openinglayer\">${keyed(space.id, repeat(items,"
+ " (o) => o.id, (o) => {",
replace: " return svg`<g class=\"openinglayer\">${keyed(space.id, items.map((o) => {",
}],
},
{
@@ -7450,8 +7451,8 @@ const MUTANT_DEFINITIONS = [
+ 'painter, which finds the dragged marker by that attribute (#525 AC2)',
patches: [{
file: 'src/houseplan-card.ts',
find: ' ${repeat(devs, (d) => d.id, (d) => this._renderDevice(',
replace: ' ${devs.map((d) => this._renderDevice(',
find: ' ${keyed(space.id, repeat(devs, (d) => d.id, (d) => this._renderDevice(',
replace: ' ${keyed(space.id, devs.map((d) => this._renderDevice(',
}],
},
{
+5 -4
View File
@@ -9,6 +9,7 @@
import { LitElement, html, svg, nothing, noChange, TemplateResult, PropertyValues, type PropertyDeclaration } from 'lit';
import { cache as litCache } from 'lit/directives/cache.js';
import { guard } from 'lit/directives/guard.js';
import { keyed } from 'lit/directives/keyed.js';
import { repeat } from 'lit/directives/repeat.js';
import './hp-dialog';
import type { HpDialog } from './hp-dialog';
@@ -11784,9 +11785,9 @@ export class HouseplanCard extends LitElement {
view,
(point) => this._scenePoint(point),
)}
${repeat(devs, (d) => d.id, (d) => this._renderDevice(
${keyed(space.id, repeat(devs, (d) => d.id, (d) => this._renderDevice(
d, view, showLqi, isoOverlays?.devices.get(d.id),
))}
)))}
${this._renderVacuums(this._renderVacuumDevices, view, space.id)}
${this._renderVacFit(view)}
${this._renderOpeningLocks(view, isoOverlays?.locks)}
@@ -12993,7 +12994,7 @@ export class HouseplanCard extends LitElement {
const walls = this._spaceWalls;
const openCuts = this._openCuts();
const openingWallIndex = this._openingWallIndexFor(space, openCuts).value;
return svg`<g class="openinglayer">${repeat(items, (o) => o.id, (o) => {
return svg`<g class="openinglayer">${keyed(space.id, repeat(items, (o) => o.id, (o) => {
if (o.orphanReason) return svg`<g class="opening orphan" data-hp="opening-orphan"
data-id=${o.id} role="button" tabindex="0"
aria-label=${this._t('opening.partition_orphan')}
@@ -13045,7 +13046,7 @@ export class HouseplanCard extends LitElement {
@pointerup=${(e: PointerEvent) => this._opPointerUp(e, o)}
@pointercancel=${(e: PointerEvent) => this._opPointerUp(e, o)}></rect>
</g>`;
})}</g>`;
}))}</g>`;
}
/** Padlock badges for door-like openings with a lock entity. */
+3
View File
@@ -210,6 +210,9 @@ export const devicesStyles = css`
background: transparent;
box-shadow: var(--device-shell-shadow);
/* no box-shadow here: cqw-sized, restarts on every container resize (#524) */
/* these two are why the marker list keeps a per-item key under the
space-level one (#525, #534): ghosts and live config sync shift
positions inside one space — see plan.styles.ts for the full note */
transition: border-color .15s, opacity .2s;
pointer-events: auto;
/* Normative production fallback: never add a per-marker backdrop blur. */
+11 -1
View File
@@ -539,7 +539,17 @@ export const planStyles = css`
Anything animated that is rendered from a list needs a key. The Glow
spots learned it first (glow-scene.ts, opacity), the openings and the
device markers (.device-shell-frame, box-shadow) with this issue.
Witness: demo/smoke_space_switch_transitions.mjs. */
#534: the shape is now keyed(space.id, repeat(items, (o) => o.id, ...)),
and BOTH halves are load-bearing. The outer key does the space switch:
there the key sets are disjoint, so repeat would build two key maps and
walk both lists only to throw everything away — 80 ms of it on a plan
with two hundred markers. The inner key does everything inside one
space, where the list composition still changes underneath: an opening
with an unresolved host is listed ONLY in plan mode (_openingsR), so
entering and leaving the editor shifts the positions of the rest.
Removing either half brings the phantom animation back through a
different door. Witnesses: demo/smoke_space_switch_transitions.mjs. */
.op-leaf {
transition: transform 0.6s ease;
}
+4 -1
View File
@@ -23,7 +23,10 @@ const CAPS = {
// model and rendering themselves remain in dedicated modules.
// #500 moved config/layout identity and the adoption sequence into
// src/config-adoption.ts; the ratchet keeps that win.
'src/houseplan-card.ts': 13650,
// 2026-09-11, #534: +1 for `import { keyed }`. The line buys back the 80 ms
// that #525 put on every space switch, and there is nothing to move out —
// the render itself did not grow by a character.
'src/houseplan-card.ts': 13651,
// #478 removed the persisted room-draft editor branch. Keep that reduction.
// #485 keeps its large setup surface in editors/radar-section.ts; these are
// only the dialog state/save seam and the thin lazy-render adapter.