Remove unused summary visibility translations (#505)

Issue: #505
User-Visible: no
This commit is contained in:
Matysh
2026-09-09 09:54:14 +03:00
parent f03a9e5ddc
commit 7b9af60541
46 changed files with 520 additions and 508 deletions
@@ -1,118 +1,118 @@
{
"schema": 1,
"fingerprint": "23ed457d01a2622aae7bb6937116f20f0044b8216b723388ed3dcf85dacd4a1e",
"fingerprint": "4c71ffc5d05d356ad51092fb72d0d4b399aaa26b182f3a714ffb32a569995bef",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-Crzae5p3.js",
"houseplan-assets/houseplan-card-Cg17Cmu0.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 298558,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-Crzae5p3.js",
"houseplan-assets/houseplan-card-Cg17Cmu0.js",
"houseplan-card.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 300861,
"initialPanelGzipBytes": 300862,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2303,
"initialPanelOnlyGzipBytes": 2304,
"lazyFiles": [
"houseplan-assets/backdrop-pick-BCw0zFw7.js",
"houseplan-assets/de-BVVa3kCi.js",
"houseplan-assets/editor-Deh_Ej8v.js",
"houseplan-assets/fr-8Xkk5wY_.js",
"houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js",
"houseplan-assets/guard-D8Rzo9jl.js",
"houseplan-assets/houseplan-editor-runtime-D2jS6dwP.js",
"houseplan-assets/houseplan-onboarding-runtime-BzoTZeZg.js",
"houseplan-assets/hp-zigbee-topology-overlay-Uf2fNUK5.js",
"houseplan-assets/iso-scene-render-BAvzyoJA.js",
"houseplan-assets/live-interaction-runtime-CQkj3ysn.js",
"houseplan-assets/pdf-export-CJWEmxpd.js",
"houseplan-assets/summary-panel-runtime-loaded-DC3M6d7A.js",
"houseplan-assets/zigbee-topology-4quV6dd1.js",
"houseplan-assets/zigbee-topology-runtime-CmpU5AFI.js"
"houseplan-assets/backdrop-pick-3DCIqEsp.js",
"houseplan-assets/de-DbS4s-Qa.js",
"houseplan-assets/editor-CXsKVKol.js",
"houseplan-assets/fr-B6ro1Q5o.js",
"houseplan-assets/furniture-plan-art.generated-CYq6jbw5.js",
"houseplan-assets/guard-ByEDSPwu.js",
"houseplan-assets/houseplan-editor-runtime-DaZwvOy_.js",
"houseplan-assets/houseplan-onboarding-runtime-BR9RSpCT.js",
"houseplan-assets/hp-zigbee-topology-overlay-Di9OO2dq.js",
"houseplan-assets/iso-scene-render-cQfh1DQY.js",
"houseplan-assets/live-interaction-runtime-DSfFBqbd.js",
"houseplan-assets/pdf-export-BdtCfTg7.js",
"houseplan-assets/summary-panel-runtime-loaded-Bm2iVqgf.js",
"houseplan-assets/zigbee-topology-BNhyfBy9.js",
"houseplan-assets/zigbee-topology-runtime-rlK9o-Ny.js"
],
"lazyGzipBytes": 417361,
"lazyGzipBytes": 417357,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-BCw0zFw7.js",
"houseplan-assets/editor-Deh_Ej8v.js",
"houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js",
"houseplan-assets/guard-D8Rzo9jl.js",
"houseplan-assets/houseplan-editor-runtime-D2jS6dwP.js",
"houseplan-assets/zigbee-topology-4quV6dd1.js"
"houseplan-assets/backdrop-pick-3DCIqEsp.js",
"houseplan-assets/editor-CXsKVKol.js",
"houseplan-assets/furniture-plan-art.generated-CYq6jbw5.js",
"houseplan-assets/guard-ByEDSPwu.js",
"houseplan-assets/houseplan-editor-runtime-DaZwvOy_.js",
"houseplan-assets/zigbee-topology-BNhyfBy9.js"
],
"lazyEditorGzipBytes": 205645,
"lazyEditorGzipBytes": 205654,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-BCw0zFw7.js",
"houseplan-assets/houseplan-onboarding-runtime-BzoTZeZg.js"
"houseplan-assets/backdrop-pick-3DCIqEsp.js",
"houseplan-assets/houseplan-onboarding-runtime-BR9RSpCT.js"
],
"lazyOnboardingGzipBytes": 14147,
"lazyOnboardingGzipBytes": 14150,
"lazyLocaleFiles": [
"houseplan-assets/de-BVVa3kCi.js",
"houseplan-assets/fr-8Xkk5wY_.js"
"houseplan-assets/de-DbS4s-Qa.js",
"houseplan-assets/fr-B6ro1Q5o.js"
],
"lazyLocaleGzipBytes": 54848,
"lazyIsometricFiles": [
"houseplan-assets/guard-D8Rzo9jl.js",
"houseplan-assets/iso-scene-render-BAvzyoJA.js"
"houseplan-assets/guard-ByEDSPwu.js",
"houseplan-assets/iso-scene-render-cQfh1DQY.js"
],
"lazyIsometricGzipBytes": 13453,
"lazyIsometricGzipBytes": 13460,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js"
"houseplan-assets/furniture-plan-art.generated-CYq6jbw5.js"
],
"lazyFurnitureArtGzipBytes": 10254,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js",
"houseplan-assets/pdf-export-CJWEmxpd.js"
"houseplan-assets/furniture-plan-art.generated-CYq6jbw5.js",
"houseplan-assets/pdf-export-BdtCfTg7.js"
],
"lazyPdfGzipBytes": 120367,
"lazyPdfGzipBytes": 120368,
"files": [
{
"path": "houseplan-assets/backdrop-pick-BCw0zFw7.js",
"sha256": "d989456633e3d802f5aad6266cc2c412bc6e9accf3af16044af05a4e72a1b08c",
"path": "houseplan-assets/backdrop-pick-3DCIqEsp.js",
"sha256": "00992c4abf8846365fa55e994fde9f795ff3ea1a6f55e7c30a21de1508f9da2f",
"rawBytes": 21134,
"gzipBytes": 7145,
"gzipBytes": 7147,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-BVVa3kCi.js",
"sha256": "76eee95dce2c13a393bb3dd2c066141bd88e9e1f0cda7e3bd48d8cf3486ecfd6",
"path": "houseplan-assets/de-DbS4s-Qa.js",
"sha256": "e5e0b3c6ec959fc081a2f9201fa525ff9669612b2586c0e979414297c0f11f1b",
"rawBytes": 91441,
"gzipBytes": 27709,
"gzipBytes": 27708,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-Deh_Ej8v.js",
"sha256": "31d7a51bbe8553349367f9afe195055fb384a6840fd51fe44ea5a8725c62aaea",
"path": "houseplan-assets/editor-CXsKVKol.js",
"sha256": "e677e369b211518f25c6caa180f89b89ebd74c58f9c35f0d6ebeb5ac5d3ae96f",
"rawBytes": 3837,
"gzipBytes": 1584,
"gzipBytes": 1585,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-8Xkk5wY_.js",
"sha256": "02a93d5496032c9bcb155e60d174a2ba3b96a29db941bed63a87d374ed31864b",
"path": "houseplan-assets/fr-B6ro1Q5o.js",
"sha256": "8544547cd3153483151c7c89981d365155203665673dbaca61d907142c68a2c1",
"rawBytes": 93719,
"gzipBytes": 27139,
"gzipBytes": 27140,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js",
"sha256": "030b2d6954a4ff7bc0b389c9de1f961bda06d4055884c097c589be0f0631fe47",
"path": "houseplan-assets/furniture-plan-art.generated-CYq6jbw5.js",
"sha256": "f1b61bb4602c80b2f5d04dd2f50082193f38ed4dc4e50c08183b828d7b5d51b2",
"rawBytes": 33655,
"gzipBytes": 10254,
"isEntry": false,
@@ -120,190 +120,190 @@
"dynamicImports": []
},
{
"path": "houseplan-assets/guard-D8Rzo9jl.js",
"sha256": "409c457573b85a57996d46dcc02b3c693add63fb5a3becc7bab555acd84ad927",
"path": "houseplan-assets/guard-ByEDSPwu.js",
"sha256": "b3fb5416a6d679bc93eaf7e0816f291f5b20d5baee6b23c4cc1b67b860cbc02b",
"rawBytes": 518,
"gzipBytes": 369,
"gzipBytes": 373,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-Crzae5p3.js",
"sha256": "24ad72eb97102ca5dcc6b9bd877dae9f946c2bd6794fc34433f534d22919ea7d",
"path": "houseplan-assets/houseplan-card-Cg17Cmu0.js",
"sha256": "2f3695af0e595a12cb5dea95c925f4cb69ce2aa1d3dfb86a0d8626b7aed101f5",
"rawBytes": 1075320,
"gzipBytes": 297757,
"gzipBytes": 297756,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-BVVa3kCi.js",
"houseplan-assets/editor-Deh_Ej8v.js",
"houseplan-assets/fr-8Xkk5wY_.js",
"houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js",
"houseplan-assets/houseplan-editor-runtime-D2jS6dwP.js",
"houseplan-assets/houseplan-onboarding-runtime-BzoTZeZg.js",
"houseplan-assets/hp-zigbee-topology-overlay-Uf2fNUK5.js",
"houseplan-assets/iso-scene-render-BAvzyoJA.js",
"houseplan-assets/live-interaction-runtime-CQkj3ysn.js",
"houseplan-assets/pdf-export-CJWEmxpd.js",
"houseplan-assets/summary-panel-runtime-loaded-DC3M6d7A.js"
"houseplan-assets/de-DbS4s-Qa.js",
"houseplan-assets/editor-CXsKVKol.js",
"houseplan-assets/fr-B6ro1Q5o.js",
"houseplan-assets/furniture-plan-art.generated-CYq6jbw5.js",
"houseplan-assets/houseplan-editor-runtime-DaZwvOy_.js",
"houseplan-assets/houseplan-onboarding-runtime-BR9RSpCT.js",
"houseplan-assets/hp-zigbee-topology-overlay-Di9OO2dq.js",
"houseplan-assets/iso-scene-render-cQfh1DQY.js",
"houseplan-assets/live-interaction-runtime-DSfFBqbd.js",
"houseplan-assets/pdf-export-BdtCfTg7.js",
"houseplan-assets/summary-panel-runtime-loaded-Bm2iVqgf.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-D2jS6dwP.js",
"sha256": "2337f99d01d53eb1ccddf5e61af130e8c9b3fc4d25b9f8086244ece74b92d418",
"path": "houseplan-assets/houseplan-editor-runtime-DaZwvOy_.js",
"sha256": "3b43f294a722ca06706b6c2d6013deded2df67808abd041089e74e3eeb5e2fe6",
"rawBytes": 671979,
"gzipBytes": 178867,
"gzipBytes": 178870,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-BCw0zFw7.js",
"houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js",
"houseplan-assets/guard-D8Rzo9jl.js",
"houseplan-assets/houseplan-card-Crzae5p3.js",
"houseplan-assets/zigbee-topology-4quV6dd1.js"
"houseplan-assets/backdrop-pick-3DCIqEsp.js",
"houseplan-assets/furniture-plan-art.generated-CYq6jbw5.js",
"houseplan-assets/guard-ByEDSPwu.js",
"houseplan-assets/houseplan-card-Cg17Cmu0.js",
"houseplan-assets/zigbee-topology-BNhyfBy9.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-CmpU5AFI.js"
"houseplan-assets/zigbee-topology-runtime-rlK9o-Ny.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-BzoTZeZg.js",
"sha256": "1604baf6d7dde717a2922090abadf3fe6a206d100029aea458d62561f3ebc20c",
"path": "houseplan-assets/houseplan-onboarding-runtime-BR9RSpCT.js",
"sha256": "7428ebb2954c6d84fd6245fc69a47b1bb00ca280550c5d1578ec47ff11338d26",
"rawBytes": 28237,
"gzipBytes": 7002,
"gzipBytes": 7003,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-BCw0zFw7.js",
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/backdrop-pick-3DCIqEsp.js",
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-Uf2fNUK5.js",
"sha256": "63b14a681bad4d4afd1e85df9b640924d39100c3e135c111e8c82fcc9be1e780",
"path": "houseplan-assets/hp-zigbee-topology-overlay-Di9OO2dq.js",
"sha256": "69ef04e0ac18eef0376836b7fcfab21fbad1beeb9f28d01e467c2380ed2dfbc2",
"rawBytes": 11034,
"gzipBytes": 3729,
"gzipBytes": 3728,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js",
"houseplan-assets/zigbee-topology-4quV6dd1.js",
"houseplan-assets/zigbee-topology-runtime-CmpU5AFI.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js",
"houseplan-assets/zigbee-topology-BNhyfBy9.js",
"houseplan-assets/zigbee-topology-runtime-rlK9o-Ny.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-BAvzyoJA.js",
"sha256": "5d97bb17a3f2303043990c5042271c075f8e4ba5ec99f5788ca786d5915585a1",
"path": "houseplan-assets/iso-scene-render-cQfh1DQY.js",
"sha256": "1ed10cb62c00d264e38272f3c63b4057901f0b3fa62d02d2acc4e2eb17635344",
"rawBytes": 38562,
"gzipBytes": 13084,
"gzipBytes": 13087,
"isEntry": false,
"imports": [
"houseplan-assets/guard-D8Rzo9jl.js",
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/guard-ByEDSPwu.js",
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-CQkj3ysn.js",
"sha256": "a829eac419b3f7af667360371884033c8f284ade75460cc2000781a207822ca9",
"path": "houseplan-assets/live-interaction-runtime-DSfFBqbd.js",
"sha256": "6fc9517f220eec1c527416278c00d01613e446e3576def536f4e7d931b8acf56",
"rawBytes": 5196,
"gzipBytes": 2126,
"gzipBytes": 2127,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-CJWEmxpd.js",
"sha256": "3b1e0cbb95ea3f4fa41613b7e5850000616c0253ea99a1a3efa38da6973637e4",
"path": "houseplan-assets/pdf-export-BdtCfTg7.js",
"sha256": "f24886949c691ca212c3001148ba4a90319f720eba15c65368279fc216238279",
"rawBytes": 237254,
"gzipBytes": 110113,
"gzipBytes": 110114,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js",
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/furniture-plan-art.generated-CYq6jbw5.js",
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-B2fiaXD8.js",
"sha256": "ea39522db6752da7783fa49322026e1ca99231cf1b5be62724e507f8e4c14456",
"rawBytes": 14811,
"gzipBytes": 3388,
"path": "houseplan-assets/summary-panel-editor-BsUm638u.js",
"sha256": "a39b926b44ef9003d384ad83cbd91366a3b9cf945a88cb0ee8a7938504041214",
"rawBytes": 14816,
"gzipBytes": 3391,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js",
"houseplan-assets/summary-panel-runtime-loaded-DC3M6d7A.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js",
"houseplan-assets/summary-panel-runtime-loaded-Bm2iVqgf.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-DDyIt-bT.js",
"sha256": "3f7c19ec90f9140fbe9f50c4c9bc70e31ce82d35538d78e79a74a70a228f5b4f",
"path": "houseplan-assets/summary-panel-metrics-DBvxfhFX.js",
"sha256": "2394b0b9af52d7cb8fe750836e46bbedd17f2164cb8a924252fcb57619df40dc",
"rawBytes": 2195,
"gzipBytes": 1119,
"gzipBytes": 1121,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-DC3M6d7A.js",
"sha256": "f5b9d69b1c6aaabe7b863d7a331e100e960c5064f4b880d0e9fddf1b5a245ad4",
"rawBytes": 69680,
"gzipBytes": 19052,
"path": "houseplan-assets/summary-panel-runtime-loaded-Bm2iVqgf.js",
"sha256": "755e05a1e388228dd11c55237a45f2b18ad0770b101c3d66b5dbc6328fd31311",
"rawBytes": 69530,
"gzipBytes": 19034,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-B2fiaXD8.js",
"houseplan-assets/summary-panel-metrics-DDyIt-bT.js"
"houseplan-assets/summary-panel-editor-BsUm638u.js",
"houseplan-assets/summary-panel-metrics-DBvxfhFX.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-4quV6dd1.js",
"sha256": "016f849b7e7291337494a0e0e71799d1644e4a236afd0d7e715bdd90534bd68f",
"path": "houseplan-assets/zigbee-topology-BNhyfBy9.js",
"sha256": "1608877b5c177b7de64f362018509abc5b58cc8ab5f9c6935cf073477646d185",
"rawBytes": 18961,
"gzipBytes": 7426,
"gzipBytes": 7425,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-CmpU5AFI.js",
"sha256": "6cf2dfe363667803e75c59cb1f059baa74621c44ed47329ef59959024f871eab",
"path": "houseplan-assets/zigbee-topology-runtime-rlK9o-Ny.js",
"sha256": "737c38278e68d640444f76a0474511367cabb15c1530e849491b3c0c5fa11027",
"rawBytes": 3941,
"gzipBytes": 1762,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js",
"houseplan-assets/zigbee-topology-4quV6dd1.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js",
"houseplan-assets/zigbee-topology-BNhyfBy9.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "34a415172bdec8e716f6e399c55e84d97e3c4ed52f7dbcb6036ad115efbcb318",
"sha256": "89006673a7ab07880dc3360602a9141370c8f88e6f4ba4202306bc0a32ce93b6",
"rawBytes": 1205,
"gzipBytes": 801,
"gzipBytes": 802,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "562bc17dab1e28b1502168bb74c681112af7e161893d79f6422e7b2ce3faba8a",
"sha256": "301705f5fd0d15b60f197110cddcfc2d33dbdc484db0c08ca41a55dcd659c80e",
"rawBytes": 6124,
"gzipBytes": 2303,
"gzipBytes": 2304,
"isEntry": true,
"imports": [
"houseplan-card.js"
@@ -1,14 +1,14 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044b8216b723388ed3dcf85dacd4a1e";import{t as e,l as o,x as t,e5 as s,A as a,e6 as i,e7 as l,e8 as n,dV as r,b as c}from"./houseplan-card-Crzae5p3.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="4c71ffc5d05d356ad51092fb72d0d4b399aaa26b182f3a714ffb32a569995bef";import{t as e,l as o,x as t,e5 as s,A as a,e6 as i,e7 as l,e8 as n,dV as r,b as c}from"./houseplan-card-Cg17Cmu0.js";class f extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,f={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},h=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
.hass=${this.hass}
.data=${this._formData}
.schema=${e}
.computeLabel=${e=>h[e.name]||e.name}
.computeLabel=${e=>f[e.name]||e.name}
@value-changed=${this._valueChanged}
></ha-form>`;return c`
${d(f.slice(0,3))}
${d(h.slice(0,3))}
${_?c`<div class="default-floor-error" role="alert"
style="color:var(--error-color,#db4437);margin:-4px 0 12px;overflow-wrap:anywhere">
${t(s,"editor.default_floor_missing",{id:_})}
</div>`:a}
${d(f.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}h.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",h);
${d(h.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}f.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",f);
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="4c71ffc5d05d356ad51092fb72d0d4b399aaa26b182f3a714ffb32a569995bef";import{dT as r,dU as t,dV as s}from"./houseplan-card-Cg17Cmu0.js";const a={},e=r(class extends t{constructor(){super(...arguments),this.ot=a}render(r,t){return t()}update(r,[t,a]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return s}else if(this.ot===t)return s;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,a)}});export{e as i};
@@ -1 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044b8216b723388ed3dcf85dacd4a1e";import{dT as r,dU as t,dV as e}from"./houseplan-card-Crzae5p3.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044b8216b723388ed3dcf85dacd4a1e";import{b as a,A as e}from"./houseplan-card-Crzae5p3.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-DC3M6d7A.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__="4c71ffc5d05d356ad51092fb72d0d4b399aaa26b182f3a714ffb32a569995bef";import{b as a,A as s}from"./houseplan-card-Cg17Cmu0.js";import{s as e,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-Bm2iVqgf.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&&!e(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(s=>s.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"
@@ -10,31 +10,31 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044
dismiss-on-scrim aria-busy=${String(d.busy)}
@hp-close=${k}>
<div class="body summary-editor" @click=${()=>m.closeSource()}>
${d.localOnly?a`<p class="summary-local-hint">${b(d.localOnlyHint)}</p>`:e}
${d.localOnly?a`<p class="summary-local-hint">${b(d.localOnlyHint)}</p>`:s}
<section class="summary-general" aria-labelledby="summary-general-title">
<h3 id="summary-general-title">${b("summary.general_settings")}</h3>
<div class="summary-general-grid">
${d.localOnly?e:a`<div class="summary-field">
${d.localOnly?s:a`<div class="summary-field">
<label for="summary-panel-title">${b("summary.panel_title")}</label>
<input id="summary-panel-title" type="text" .value=${d.draft.title}
?disabled=${d.busy}
data-summary-error=${String(d.attempted&&"title"===y?.path)}
aria-invalid=${"error"===v("title")?.kind?"true":"false"}
@input=${a=>m.mutate(e=>{e.title=a.target.value})} />
${v("title")?a`<div class="summary-problem error">${h(v("title"))}</div>`:e}
@input=${a=>m.mutate(s=>{s.title=a.target.value})} />
${v("title")?a`<div class="summary-problem error">${h(v("title"))}</div>`:s}
</div>`}
${g}
${d.localOnly?e:a`<label class="summary-switch" for="summary-mobile-show">
${d.localOnly?s:a`<label class="summary-switch" for="summary-mobile-show">
<span class="summary-switch-caption"><strong>${b("summary.show_mobile")}</strong>
<small id="summary-mobile-show-hint">${b("summary.show_mobile_hint")}</small></span>
<input id="summary-mobile-show" data-summary-mobile-show type="checkbox"
.checked=${d.draft.show_on_mobile} ?disabled=${!d.localShow||d.busy}
aria-label=${b("summary.show_mobile")} aria-describedby="summary-mobile-show-hint"
@change=${a=>m.mutate(e=>{e.show_on_mobile=a.target.checked})} /></label>`}
@change=${a=>m.mutate(s=>{s.show_on_mobile=a.target.checked})} /></label>`}
</div>
${m.storageUnavailable?a`<div class="summary-problem warning">${b("summary.storage_unavailable")}</div>`:e}
${m.storageUnavailable?a`<div class="summary-problem warning">${b("summary.storage_unavailable")}</div>`:s}
</section>
${d.localOnly?e:a`
${d.localOnly?s:a`
<section class="summary-blocks-card" aria-labelledby="summary-blocks-title">
<header class="summary-blocks-heading">
<div><h3 id="summary-blocks-title">${b("summary.blocks")}</h3>
@@ -42,7 +42,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044
<span class="summary-block-count">${b("summary.block_count").replace("{count}",String(d.draft.blocks.length)).replace("{limit}","10")}</span>
</header>
<div class="summary-editor-blocks">
${d.draft.blocks.map((s,t)=>{const u=`blocks.${t}`,n=v(`${u}.scope`);return a`<article class="summary-editor-block"
${d.draft.blocks.map((e,t)=>{const u=`blocks.${t}`,n=v(`${u}.scope`);return a`<article class="summary-editor-block"
@dragover=${a=>a.preventDefault()}
@drop=${a=>m.drop(a,`block:${t}`)}>
<div class="summary-block-head">
@@ -57,40 +57,40 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044
?disabled=${t===d.draft.blocks.length-1||d.busy}
@click=${()=>m.mutate(a=>{a.blocks=r(a.blocks,t,t+1)})}>${l("down")}</button>
</div>
<input class="summary-block-title" type="text" .value=${s.title}
<input class="summary-block-title" type="text" .value=${e.title}
placeholder=${b("summary.block_title")} aria-label=${b("summary.block_title")}
?disabled=${d.busy}
data-summary-error=${String(d.attempted&&y?.path===`${u}.title`)}
aria-invalid=${"error"===v(`${u}.title`)?.kind?"true":"false"}
@input=${a=>m.mutate(e=>{e.blocks[t].title=a.target.value})} />
@input=${a=>m.mutate(s=>{s.blocks[t].title=a.target.value})} />
<button class="summary-icon-button summary-visibility" type="button"
?disabled=${d.busy} aria-pressed=${String(s.visible)}
title=${b(s.visible?"summary.hide_block":"summary.show_block")}
aria-label=${b(s.visible?"summary.hide_block":"summary.show_block")}
@click=${()=>m.mutate(a=>{a.blocks[t].visible=!a.blocks[t].visible})}>${l(s.visible?"eye":"eyeOff")}</button>
${v(`${u}.title`)?a`<div class="summary-problem error summary-block-title-error">${h(v(`${u}.title`))}</div>`:e}
?disabled=${d.busy} aria-pressed=${String(e.visible)}
title=${b(e.visible?"summary.hide_block":"summary.show_block")}
aria-label=${b(e.visible?"summary.hide_block":"summary.show_block")}
@click=${()=>m.mutate(a=>{a.blocks[t].visible=!a.blocks[t].visible})}>${l(e.visible?"eye":"eyeOff")}</button>
${v(`${u}.title`)?a`<div class="summary-problem error summary-block-title-error">${h(v(`${u}.title`))}</div>`:s}
<div class="summary-scope">
<select .value=${s.scope.type} ?disabled=${d.busy}
<select .value=${e.scope.type} ?disabled=${d.busy}
aria-label=${b("summary.scope")}
@change=${a=>m.mutate(e=>{e.blocks[t].scope="space"===a.target.value?{type:"space",space_id:c._space}:{type:"all"}})}>
<option value="all" ?selected=${"all"===s.scope.type}>${b("summary.scope_all")}</option>
<option value="space" ?selected=${"space"===s.scope.type}>${b("summary.scope_space")}</option>
@change=${a=>m.mutate(s=>{s.blocks[t].scope="space"===a.target.value?{type:"space",space_id:c._space}:{type:"all"}})}>
<option value="all" ?selected=${"all"===e.scope.type}>${b("summary.scope_all")}</option>
<option value="space" ?selected=${"space"===e.scope.type}>${b("summary.scope_space")}</option>
</select>
${"space"===s.scope.type?a`<select .value=${s.scope.space_id}
${"space"===e.scope.type?a`<select .value=${e.scope.space_id}
?disabled=${d.busy} aria-label=${b("summary.scope_space")}
data-summary-error=${String(d.attempted&&y?.path===`${u}.scope`)}
aria-invalid=${"error"===n?.kind?"true":"false"}
@change=${a=>m.mutate(e=>{const s=e.blocks[t].scope;"space"===s.type&&(s.space_id=a.target.value)})}>
${c._model.some(a=>a.id===s.scope.space_id)?e:a`<option value=${s.scope.space_id} selected>${s.scope.space_id}</option>`}
${c._model.map(e=>a`<option value=${e.id}
?selected=${e.id===s.scope.space_id}>${e.title}</option>`)}
</select>`:e}
@change=${a=>m.mutate(s=>{const e=s.blocks[t].scope;"space"===e.type&&(e.space_id=a.target.value)})}>
${c._model.some(a=>a.id===e.scope.space_id)?s:a`<option value=${e.scope.space_id} selected>${e.scope.space_id}</option>`}
${c._model.map(s=>a`<option value=${s.id}
?selected=${s.id===e.scope.space_id}>${s.title}</option>`)}
</select>`:s}
</div>
${n?a`<div class="summary-problem summary-scope-problem ${n.kind}">${h(n)}</div>`:e}
${n?a`<div class="summary-problem summary-scope-problem ${n.kind}">${h(n)}</div>`:s}
</div>
<div class="summary-block-body">
<div class="summary-editor-values">
${s.values.map((i,c)=>{const n=`${u}.values.${c}`,$=v(`${n}.source`),p=m.sourceToken(i.source),k=d.activeSource?.blockId===s.id&&d.activeSource.valueId===i.id,g="system"===i.source.type?b(`summary.system.${i.source.key}`):i.source.entity_id?m.entityIndex.labels.get(i.source.entity_id)||i.source.entity_id:b("summary.select_source"),_="system"===i.source.type?b("summary.system_source"):i.source.entity_id,f=k?o(m.entityIndex,d.entityFilter):null,w="entity"===i.source.type&&!!i.source.entity_id&&!m.entityIndex.labels.has(i.source.entity_id),S=`${s.id}\n${i.id}`;return a`<div class="summary-editor-value"
${e.values.map((i,c)=>{const n=`${u}.values.${c}`,$=v(`${n}.source`),p=m.sourceToken(i.source),k=d.activeSource?.blockId===e.id&&d.activeSource.valueId===i.id,g="system"===i.source.type?b(`summary.system.${i.source.key}`):i.source.entity_id?m.entityIndex.labels.get(i.source.entity_id)||i.source.entity_id:b("summary.select_source"),_="system"===i.source.type?b("summary.system_source"):i.source.entity_id,f=k?o(m.entityIndex,d.entityFilter):null,w="entity"===i.source.type&&!!i.source.entity_id&&!m.entityIndex.labels.has(i.source.entity_id),S=`${e.id}\n${i.id}`;return a`<div class="summary-editor-value"
@dragover=${a=>{a.preventDefault(),a.stopPropagation()}}
@drop=${a=>m.drop(a,`value:${t}:${c}`)}>
<span class="summary-drag" draggable=${String(!d.busy)} title=${b("summary.drag")}
@@ -101,7 +101,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044
@click=${()=>m.mutate(a=>{a.blocks[t].values=r(a.blocks[t].values,c,c-1)})}>${l("up")}</button>
<button class="summary-icon-button" type="button" title=${b("summary.down")}
aria-label=${b("summary.down")}
?disabled=${c===s.values.length-1||d.busy}
?disabled=${c===e.values.length-1||d.busy}
@click=${()=>m.mutate(a=>{a.blocks[t].values=r(a.blocks[t].values,c,c+1)})}>${l("down")}</button>
</div>
<div class="summary-value-label">
@@ -109,8 +109,8 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044
placeholder=${b("summary.value_name")} aria-label=${b("summary.value_name")}
data-summary-error=${String(d.attempted&&y?.path===`${n}.label`)}
aria-invalid=${"error"===v(`${n}.label`)?.kind?"true":"false"}
@input=${a=>m.mutate(e=>{e.blocks[t].values[c].label=a.target.value})} />
${v(`${n}.label`)?a`<div class="summary-problem error">${h(v(`${n}.label`))}</div>`:e}
@input=${a=>m.mutate(s=>{s.blocks[t].values[c].label=a.target.value})} />
${v(`${n}.label`)?a`<div class="summary-problem error">${h(v(`${n}.label`))}</div>`:s}
</div>
<div class="summary-source-field">
<button class="summary-source" type="button"
@@ -119,9 +119,9 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044
data-summary-error=${String(d.attempted&&y?.path===`${n}.source`)}
aria-invalid=${"error"===$?.kind?"true":"false"}
aria-haspopup="listbox" aria-expanded=${k?"true":"false"}
@click=${a=>{a.stopPropagation(),k?m.closeSource():m.openSource(s.id,i.id)}}>
@click=${a=>{a.stopPropagation(),k?m.closeSource():m.openSource(e.id,i.id)}}>
<span class="summary-source-caption"><strong>${g}</strong>
${_?a`<small>${_}</small>`:e}</span>
${_?a`<small>${_}</small>`:s}</span>
${l("chevron")}
</button>
${k&&f?a`<div class="summary-source-picker"
@@ -135,39 +135,39 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044
<div class="summary-source-results" role="listbox"
aria-label=${b("summary.select_source")}>
<div class="summary-source-group">${b("summary.system_group")}</div>
${["device_count","total_area","datetime"].map(e=>a`
${["device_count","total_area","datetime"].map(s=>a`
<button type="button" role="option"
?disabled=${d.busy}
aria-selected=${p===`system:${e}`?"true":"false"}
@click=${()=>m.setSource(s.id,i.id,`system:${e}`)}>
${b(`summary.system.${e}`)}
aria-selected=${p===`system:${s}`?"true":"false"}
@click=${()=>m.setSource(e.id,i.id,`system:${s}`)}>
${b(`summary.system.${s}`)}
</button>`)}
${w?a`<div class="summary-source-group">${b("summary.current_source")}</div>
<button type="button" role="option" class="broken" aria-selected="true"
?disabled=${d.busy}
@click=${()=>m.setSource(s.id,i.id,p)}>
@click=${()=>m.setSource(e.id,i.id,p)}>
${g}
</button>`:e}
</button>`:s}
<div class="summary-source-group">${b("summary.entities_group")}</div>
${f.entries.map(e=>a`<button type="button" role="option"
${f.entries.map(s=>a`<button type="button" role="option"
?disabled=${d.busy}
aria-selected=${p===`entity:${e.id}`?"true":"false"}
@click=${()=>m.setSource(s.id,i.id,`entity:${e.id}`)}>
<span>${e.label}</span><small>${e.id}</small>
aria-selected=${p===`entity:${s.id}`?"true":"false"}
@click=${()=>m.setSource(e.id,i.id,`entity:${s.id}`)}>
<span>${s.label}</span><small>${s.id}</small>
</button>`)}
${f.total?e:a`<div class="summary-empty">${b("summary.no_search_results")}</div>`}
${f.truncated?a`<div class="summary-refine">${b("summary.refine_search")}</div>`:e}
${f.total?s:a`<div class="summary-empty">${b("summary.no_search_results")}</div>`}
${f.truncated?a`<div class="summary-refine">${b("summary.refine_search")}</div>`:s}
</div>
</div>`:e}
${$?a`<div class="summary-problem ${$.kind}">${h($)}</div>`:e}
</div>`:s}
${$?a`<div class="summary-problem ${$.kind}">${h($)}</div>`:s}
</div>
<button class="summary-icon-button summary-value-remove" type="button"
title=${b("btn.delete")} aria-label=${b("btn.delete")} ?disabled=${d.busy}
@click=${()=>m.mutate(a=>{a.blocks[t].values.splice(c,1)})}>${l("close")}</button>
</div>`})}
<button class="summary-add summary-add-value" type="button"
?disabled=${s.values.length>=20||d.busy}
title=${s.values.length>=20?b("summary.limit_values"):""}
?disabled=${e.values.length>=20||d.busy}
title=${e.values.length>=20?b("summary.limit_values"):""}
@click=${()=>m.mutate(a=>{a.blocks[t].values.push(i())})}>
${l("plus")}${b("summary.add_value")}
</button>
@@ -186,11 +186,11 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044
${l("plus")}${b("summary.add_block")}
</button>
</section>
${d.error?a`<div class="summary-problem error" role="alert">${d.error}</div>`:e}
${d.error?a`<div class="summary-problem error" role="alert">${d.error}</div>`:s}
${d.conflict?a`<button class="btn ghost summary-reload" type="button"
?disabled=${d.busy} @click=${()=>m.reload()}>
<ha-icon icon="mdi:reload"></ha-icon>${b("summary.reload_current")}
</button>`:e}
</button>`:s}
`}
</div>
<div class="row summary-editor-footer" slot="footer">
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044b8216b723388ed3dcf85dacd4a1e";import{az as e,ea as t,eb as n,bs as i,ec as r,P as a,a5 as s,M as o,aq as c,N as d,bq as l,bp as u,ed as f}from"./houseplan-card-Crzae5p3.js";function g(t){if(!t.registry.authoritative)return null;const n=new Set,i=e(t.markers);for(const e of Object.values(t.registry.devices||{}))e?.id&&"service"!==e.entry_type&&!i.devices.has(e.id)&&e.area_id&&t.areaToSpace[e.area_id]&&n.add(e.id);for(const e of t.markers||[]){if(e.removed||"virtual"===e.binding)continue;const r=String(e.binding||"").indexOf(":");if(r<1)continue;const a=e.binding.slice(0,r),s=e.binding.slice(r+1),o="device"===a?t.registry.devices?.[s]:null,c="entity"===a?t.registry.entities?.[s]:null,d="device"===a?s:c?.device_id,l="device"===a?o?.area_id:c?.area_id||d&&t.registry.devices?.[d]?.area_id,u="string"==typeof e.room_id&&e.room_id.length>0&&null===e.area?"":e.area||l||"",f=u&&t.areaToSpace[u]||e.space||t.firstSpaceId;d&&t.registry.devices?.[d]&&t.spaceIds.has(f)&&(!i.devices.has(d)||"entity"===a&&i.liveEntities.has(s))&&n.add(d)}return n}function m(e,t){return e?.length?t?.length?f(e,t):e:t}function v(e,t){try{let n=0;for(const i of t){const t=e.spaces.find(e=>String(e?.id)===i.id);if(!t)continue;const f=r(t,i);let g=null;for(const e of i.rooms){if(!e.id)continue;const t=a(e);if(!t)continue;const n=s(i.rooms,e.id,f.walls,f.openCuts,o,f.cellCm,c,d)||t;g=m(g,l(n,f.physicalBodies))}const v=f.cellCm/c;n+=u(g)*v*v/1e4}return n}catch{return null}}function y(e,t,n,r){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:i(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(r||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function _(e,i){const r=e?.states?.[i];if(!r)return null;const a=t(e,i);return a?n(a,String(r.attributes?.unit_of_measurement||"")):null}export{g as representedHaDeviceIds,_ as summaryEntityValue,y as summarySystemValue,v as totalCleanFloorAreaM2};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="4c71ffc5d05d356ad51092fb72d0d4b399aaa26b182f3a714ffb32a569995bef";import{az as e,ea as t,eb as n,bs as i,ec as r,P as a,a5 as s,M as o,aq as c,N as d,bq as l,bp as u,ed as f}from"./houseplan-card-Cg17Cmu0.js";function g(t){if(!t.registry.authoritative)return null;const n=new Set,i=e(t.markers);for(const e of Object.values(t.registry.devices||{}))e?.id&&"service"!==e.entry_type&&!i.devices.has(e.id)&&e.area_id&&t.areaToSpace[e.area_id]&&n.add(e.id);for(const e of t.markers||[]){if(e.removed||"virtual"===e.binding)continue;const r=String(e.binding||"").indexOf(":");if(r<1)continue;const a=e.binding.slice(0,r),s=e.binding.slice(r+1),o="device"===a?t.registry.devices?.[s]:null,c="entity"===a?t.registry.entities?.[s]:null,d="device"===a?s:c?.device_id,l="device"===a?o?.area_id:c?.area_id||d&&t.registry.devices?.[d]?.area_id,u="string"==typeof e.room_id&&e.room_id.length>0&&null===e.area?"":e.area||l||"",f=u&&t.areaToSpace[u]||e.space||t.firstSpaceId;d&&t.registry.devices?.[d]&&t.spaceIds.has(f)&&(!i.devices.has(d)||"entity"===a&&i.liveEntities.has(s))&&n.add(d)}return n}function m(e,t){return e?.length?t?.length?f(e,t):e:t}function v(e,t){try{let n=0;for(const i of t){const t=e.spaces.find(e=>String(e?.id)===i.id);if(!t)continue;const f=r(t,i);let g=null;for(const e of i.rooms){if(!e.id)continue;const t=a(e);if(!t)continue;const n=s(i.rooms,e.id,f.walls,f.openCuts,o,f.cellCm,c,d)||t;g=m(g,l(n,f.physicalBodies))}const v=f.cellCm/c;n+=u(g)*v*v/1e4}return n}catch{return null}}function y(e,t,n,r){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:i(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(r||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function _(e,i){const r=e?.states?.[i];if(!r)return null;const a=t(e,i);return a?n(a,String(r.attributes?.unit_of_measurement||"")):null}export{g as representedHaDeviceIds,_ as summaryEntityValue,y as summarySystemValue,v as totalCleanFloorAreaM2};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044b8216b723388ed3dcf85dacd4a1e";import{n as t,b as n}from"./zigbee-topology-4quV6dd1.js";import{F as e}from"./houseplan-card-Crzae5p3.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function p(t){if(!0!==t?.user?.is_admin)throw a("permission")}function f(n){const e=i(n);return e?c(e,"zha",async()=>{if(p(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function g(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function m(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(p(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,f=null,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const p=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&f?.(n):c&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await g(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await g(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{f as readZhaTopology,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="4c71ffc5d05d356ad51092fb72d0d4b399aaa26b182f3a714ffb32a569995bef";import{n as t,b as n}from"./zigbee-topology-BNhyfBy9.js";import{F as e}from"./houseplan-card-Cg17Cmu0.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};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044b8216b723388ed3dcf85dacd4a1e";try{await import("./houseplan-assets/houseplan-card-Crzae5p3.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__="4c71ffc5d05d356ad51092fb72d0d4b399aaa26b182f3a714ffb32a569995bef";try{await import("./houseplan-assets/houseplan-card-Cg17Cmu0.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
+138 -138
View File
@@ -1,118 +1,118 @@
{
"schema": 1,
"fingerprint": "23ed457d01a2622aae7bb6937116f20f0044b8216b723388ed3dcf85dacd4a1e",
"fingerprint": "4c71ffc5d05d356ad51092fb72d0d4b399aaa26b182f3a714ffb32a569995bef",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-Crzae5p3.js",
"houseplan-assets/houseplan-card-Cg17Cmu0.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 298558,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-Crzae5p3.js",
"houseplan-assets/houseplan-card-Cg17Cmu0.js",
"houseplan-card.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 300861,
"initialPanelGzipBytes": 300862,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2303,
"initialPanelOnlyGzipBytes": 2304,
"lazyFiles": [
"houseplan-assets/backdrop-pick-BCw0zFw7.js",
"houseplan-assets/de-BVVa3kCi.js",
"houseplan-assets/editor-Deh_Ej8v.js",
"houseplan-assets/fr-8Xkk5wY_.js",
"houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js",
"houseplan-assets/guard-D8Rzo9jl.js",
"houseplan-assets/houseplan-editor-runtime-D2jS6dwP.js",
"houseplan-assets/houseplan-onboarding-runtime-BzoTZeZg.js",
"houseplan-assets/hp-zigbee-topology-overlay-Uf2fNUK5.js",
"houseplan-assets/iso-scene-render-BAvzyoJA.js",
"houseplan-assets/live-interaction-runtime-CQkj3ysn.js",
"houseplan-assets/pdf-export-CJWEmxpd.js",
"houseplan-assets/summary-panel-runtime-loaded-DC3M6d7A.js",
"houseplan-assets/zigbee-topology-4quV6dd1.js",
"houseplan-assets/zigbee-topology-runtime-CmpU5AFI.js"
"houseplan-assets/backdrop-pick-3DCIqEsp.js",
"houseplan-assets/de-DbS4s-Qa.js",
"houseplan-assets/editor-CXsKVKol.js",
"houseplan-assets/fr-B6ro1Q5o.js",
"houseplan-assets/furniture-plan-art.generated-CYq6jbw5.js",
"houseplan-assets/guard-ByEDSPwu.js",
"houseplan-assets/houseplan-editor-runtime-DaZwvOy_.js",
"houseplan-assets/houseplan-onboarding-runtime-BR9RSpCT.js",
"houseplan-assets/hp-zigbee-topology-overlay-Di9OO2dq.js",
"houseplan-assets/iso-scene-render-cQfh1DQY.js",
"houseplan-assets/live-interaction-runtime-DSfFBqbd.js",
"houseplan-assets/pdf-export-BdtCfTg7.js",
"houseplan-assets/summary-panel-runtime-loaded-Bm2iVqgf.js",
"houseplan-assets/zigbee-topology-BNhyfBy9.js",
"houseplan-assets/zigbee-topology-runtime-rlK9o-Ny.js"
],
"lazyGzipBytes": 417361,
"lazyGzipBytes": 417357,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-BCw0zFw7.js",
"houseplan-assets/editor-Deh_Ej8v.js",
"houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js",
"houseplan-assets/guard-D8Rzo9jl.js",
"houseplan-assets/houseplan-editor-runtime-D2jS6dwP.js",
"houseplan-assets/zigbee-topology-4quV6dd1.js"
"houseplan-assets/backdrop-pick-3DCIqEsp.js",
"houseplan-assets/editor-CXsKVKol.js",
"houseplan-assets/furniture-plan-art.generated-CYq6jbw5.js",
"houseplan-assets/guard-ByEDSPwu.js",
"houseplan-assets/houseplan-editor-runtime-DaZwvOy_.js",
"houseplan-assets/zigbee-topology-BNhyfBy9.js"
],
"lazyEditorGzipBytes": 205645,
"lazyEditorGzipBytes": 205654,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-BCw0zFw7.js",
"houseplan-assets/houseplan-onboarding-runtime-BzoTZeZg.js"
"houseplan-assets/backdrop-pick-3DCIqEsp.js",
"houseplan-assets/houseplan-onboarding-runtime-BR9RSpCT.js"
],
"lazyOnboardingGzipBytes": 14147,
"lazyOnboardingGzipBytes": 14150,
"lazyLocaleFiles": [
"houseplan-assets/de-BVVa3kCi.js",
"houseplan-assets/fr-8Xkk5wY_.js"
"houseplan-assets/de-DbS4s-Qa.js",
"houseplan-assets/fr-B6ro1Q5o.js"
],
"lazyLocaleGzipBytes": 54848,
"lazyIsometricFiles": [
"houseplan-assets/guard-D8Rzo9jl.js",
"houseplan-assets/iso-scene-render-BAvzyoJA.js"
"houseplan-assets/guard-ByEDSPwu.js",
"houseplan-assets/iso-scene-render-cQfh1DQY.js"
],
"lazyIsometricGzipBytes": 13453,
"lazyIsometricGzipBytes": 13460,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js"
"houseplan-assets/furniture-plan-art.generated-CYq6jbw5.js"
],
"lazyFurnitureArtGzipBytes": 10254,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js",
"houseplan-assets/pdf-export-CJWEmxpd.js"
"houseplan-assets/furniture-plan-art.generated-CYq6jbw5.js",
"houseplan-assets/pdf-export-BdtCfTg7.js"
],
"lazyPdfGzipBytes": 120367,
"lazyPdfGzipBytes": 120368,
"files": [
{
"path": "houseplan-assets/backdrop-pick-BCw0zFw7.js",
"sha256": "d989456633e3d802f5aad6266cc2c412bc6e9accf3af16044af05a4e72a1b08c",
"path": "houseplan-assets/backdrop-pick-3DCIqEsp.js",
"sha256": "00992c4abf8846365fa55e994fde9f795ff3ea1a6f55e7c30a21de1508f9da2f",
"rawBytes": 21134,
"gzipBytes": 7145,
"gzipBytes": 7147,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-BVVa3kCi.js",
"sha256": "76eee95dce2c13a393bb3dd2c066141bd88e9e1f0cda7e3bd48d8cf3486ecfd6",
"path": "houseplan-assets/de-DbS4s-Qa.js",
"sha256": "e5e0b3c6ec959fc081a2f9201fa525ff9669612b2586c0e979414297c0f11f1b",
"rawBytes": 91441,
"gzipBytes": 27709,
"gzipBytes": 27708,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-Deh_Ej8v.js",
"sha256": "31d7a51bbe8553349367f9afe195055fb384a6840fd51fe44ea5a8725c62aaea",
"path": "houseplan-assets/editor-CXsKVKol.js",
"sha256": "e677e369b211518f25c6caa180f89b89ebd74c58f9c35f0d6ebeb5ac5d3ae96f",
"rawBytes": 3837,
"gzipBytes": 1584,
"gzipBytes": 1585,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-8Xkk5wY_.js",
"sha256": "02a93d5496032c9bcb155e60d174a2ba3b96a29db941bed63a87d374ed31864b",
"path": "houseplan-assets/fr-B6ro1Q5o.js",
"sha256": "8544547cd3153483151c7c89981d365155203665673dbaca61d907142c68a2c1",
"rawBytes": 93719,
"gzipBytes": 27139,
"gzipBytes": 27140,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js",
"sha256": "030b2d6954a4ff7bc0b389c9de1f961bda06d4055884c097c589be0f0631fe47",
"path": "houseplan-assets/furniture-plan-art.generated-CYq6jbw5.js",
"sha256": "f1b61bb4602c80b2f5d04dd2f50082193f38ed4dc4e50c08183b828d7b5d51b2",
"rawBytes": 33655,
"gzipBytes": 10254,
"isEntry": false,
@@ -120,190 +120,190 @@
"dynamicImports": []
},
{
"path": "houseplan-assets/guard-D8Rzo9jl.js",
"sha256": "409c457573b85a57996d46dcc02b3c693add63fb5a3becc7bab555acd84ad927",
"path": "houseplan-assets/guard-ByEDSPwu.js",
"sha256": "b3fb5416a6d679bc93eaf7e0816f291f5b20d5baee6b23c4cc1b67b860cbc02b",
"rawBytes": 518,
"gzipBytes": 369,
"gzipBytes": 373,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-Crzae5p3.js",
"sha256": "24ad72eb97102ca5dcc6b9bd877dae9f946c2bd6794fc34433f534d22919ea7d",
"path": "houseplan-assets/houseplan-card-Cg17Cmu0.js",
"sha256": "2f3695af0e595a12cb5dea95c925f4cb69ce2aa1d3dfb86a0d8626b7aed101f5",
"rawBytes": 1075320,
"gzipBytes": 297757,
"gzipBytes": 297756,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-BVVa3kCi.js",
"houseplan-assets/editor-Deh_Ej8v.js",
"houseplan-assets/fr-8Xkk5wY_.js",
"houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js",
"houseplan-assets/houseplan-editor-runtime-D2jS6dwP.js",
"houseplan-assets/houseplan-onboarding-runtime-BzoTZeZg.js",
"houseplan-assets/hp-zigbee-topology-overlay-Uf2fNUK5.js",
"houseplan-assets/iso-scene-render-BAvzyoJA.js",
"houseplan-assets/live-interaction-runtime-CQkj3ysn.js",
"houseplan-assets/pdf-export-CJWEmxpd.js",
"houseplan-assets/summary-panel-runtime-loaded-DC3M6d7A.js"
"houseplan-assets/de-DbS4s-Qa.js",
"houseplan-assets/editor-CXsKVKol.js",
"houseplan-assets/fr-B6ro1Q5o.js",
"houseplan-assets/furniture-plan-art.generated-CYq6jbw5.js",
"houseplan-assets/houseplan-editor-runtime-DaZwvOy_.js",
"houseplan-assets/houseplan-onboarding-runtime-BR9RSpCT.js",
"houseplan-assets/hp-zigbee-topology-overlay-Di9OO2dq.js",
"houseplan-assets/iso-scene-render-cQfh1DQY.js",
"houseplan-assets/live-interaction-runtime-DSfFBqbd.js",
"houseplan-assets/pdf-export-BdtCfTg7.js",
"houseplan-assets/summary-panel-runtime-loaded-Bm2iVqgf.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-D2jS6dwP.js",
"sha256": "2337f99d01d53eb1ccddf5e61af130e8c9b3fc4d25b9f8086244ece74b92d418",
"path": "houseplan-assets/houseplan-editor-runtime-DaZwvOy_.js",
"sha256": "3b43f294a722ca06706b6c2d6013deded2df67808abd041089e74e3eeb5e2fe6",
"rawBytes": 671979,
"gzipBytes": 178867,
"gzipBytes": 178870,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-BCw0zFw7.js",
"houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js",
"houseplan-assets/guard-D8Rzo9jl.js",
"houseplan-assets/houseplan-card-Crzae5p3.js",
"houseplan-assets/zigbee-topology-4quV6dd1.js"
"houseplan-assets/backdrop-pick-3DCIqEsp.js",
"houseplan-assets/furniture-plan-art.generated-CYq6jbw5.js",
"houseplan-assets/guard-ByEDSPwu.js",
"houseplan-assets/houseplan-card-Cg17Cmu0.js",
"houseplan-assets/zigbee-topology-BNhyfBy9.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-CmpU5AFI.js"
"houseplan-assets/zigbee-topology-runtime-rlK9o-Ny.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-BzoTZeZg.js",
"sha256": "1604baf6d7dde717a2922090abadf3fe6a206d100029aea458d62561f3ebc20c",
"path": "houseplan-assets/houseplan-onboarding-runtime-BR9RSpCT.js",
"sha256": "7428ebb2954c6d84fd6245fc69a47b1bb00ca280550c5d1578ec47ff11338d26",
"rawBytes": 28237,
"gzipBytes": 7002,
"gzipBytes": 7003,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-BCw0zFw7.js",
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/backdrop-pick-3DCIqEsp.js",
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-Uf2fNUK5.js",
"sha256": "63b14a681bad4d4afd1e85df9b640924d39100c3e135c111e8c82fcc9be1e780",
"path": "houseplan-assets/hp-zigbee-topology-overlay-Di9OO2dq.js",
"sha256": "69ef04e0ac18eef0376836b7fcfab21fbad1beeb9f28d01e467c2380ed2dfbc2",
"rawBytes": 11034,
"gzipBytes": 3729,
"gzipBytes": 3728,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js",
"houseplan-assets/zigbee-topology-4quV6dd1.js",
"houseplan-assets/zigbee-topology-runtime-CmpU5AFI.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js",
"houseplan-assets/zigbee-topology-BNhyfBy9.js",
"houseplan-assets/zigbee-topology-runtime-rlK9o-Ny.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-BAvzyoJA.js",
"sha256": "5d97bb17a3f2303043990c5042271c075f8e4ba5ec99f5788ca786d5915585a1",
"path": "houseplan-assets/iso-scene-render-cQfh1DQY.js",
"sha256": "1ed10cb62c00d264e38272f3c63b4057901f0b3fa62d02d2acc4e2eb17635344",
"rawBytes": 38562,
"gzipBytes": 13084,
"gzipBytes": 13087,
"isEntry": false,
"imports": [
"houseplan-assets/guard-D8Rzo9jl.js",
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/guard-ByEDSPwu.js",
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-CQkj3ysn.js",
"sha256": "a829eac419b3f7af667360371884033c8f284ade75460cc2000781a207822ca9",
"path": "houseplan-assets/live-interaction-runtime-DSfFBqbd.js",
"sha256": "6fc9517f220eec1c527416278c00d01613e446e3576def536f4e7d931b8acf56",
"rawBytes": 5196,
"gzipBytes": 2126,
"gzipBytes": 2127,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-CJWEmxpd.js",
"sha256": "3b1e0cbb95ea3f4fa41613b7e5850000616c0253ea99a1a3efa38da6973637e4",
"path": "houseplan-assets/pdf-export-BdtCfTg7.js",
"sha256": "f24886949c691ca212c3001148ba4a90319f720eba15c65368279fc216238279",
"rawBytes": 237254,
"gzipBytes": 110113,
"gzipBytes": 110114,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js",
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/furniture-plan-art.generated-CYq6jbw5.js",
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-B2fiaXD8.js",
"sha256": "ea39522db6752da7783fa49322026e1ca99231cf1b5be62724e507f8e4c14456",
"rawBytes": 14811,
"gzipBytes": 3388,
"path": "houseplan-assets/summary-panel-editor-BsUm638u.js",
"sha256": "a39b926b44ef9003d384ad83cbd91366a3b9cf945a88cb0ee8a7938504041214",
"rawBytes": 14816,
"gzipBytes": 3391,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js",
"houseplan-assets/summary-panel-runtime-loaded-DC3M6d7A.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js",
"houseplan-assets/summary-panel-runtime-loaded-Bm2iVqgf.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-DDyIt-bT.js",
"sha256": "3f7c19ec90f9140fbe9f50c4c9bc70e31ce82d35538d78e79a74a70a228f5b4f",
"path": "houseplan-assets/summary-panel-metrics-DBvxfhFX.js",
"sha256": "2394b0b9af52d7cb8fe750836e46bbedd17f2164cb8a924252fcb57619df40dc",
"rawBytes": 2195,
"gzipBytes": 1119,
"gzipBytes": 1121,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-DC3M6d7A.js",
"sha256": "f5b9d69b1c6aaabe7b863d7a331e100e960c5064f4b880d0e9fddf1b5a245ad4",
"rawBytes": 69680,
"gzipBytes": 19052,
"path": "houseplan-assets/summary-panel-runtime-loaded-Bm2iVqgf.js",
"sha256": "755e05a1e388228dd11c55237a45f2b18ad0770b101c3d66b5dbc6328fd31311",
"rawBytes": 69530,
"gzipBytes": 19034,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-B2fiaXD8.js",
"houseplan-assets/summary-panel-metrics-DDyIt-bT.js"
"houseplan-assets/summary-panel-editor-BsUm638u.js",
"houseplan-assets/summary-panel-metrics-DBvxfhFX.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-4quV6dd1.js",
"sha256": "016f849b7e7291337494a0e0e71799d1644e4a236afd0d7e715bdd90534bd68f",
"path": "houseplan-assets/zigbee-topology-BNhyfBy9.js",
"sha256": "1608877b5c177b7de64f362018509abc5b58cc8ab5f9c6935cf073477646d185",
"rawBytes": 18961,
"gzipBytes": 7426,
"gzipBytes": 7425,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-CmpU5AFI.js",
"sha256": "6cf2dfe363667803e75c59cb1f059baa74621c44ed47329ef59959024f871eab",
"path": "houseplan-assets/zigbee-topology-runtime-rlK9o-Ny.js",
"sha256": "737c38278e68d640444f76a0474511367cabb15c1530e849491b3c0c5fa11027",
"rawBytes": 3941,
"gzipBytes": 1762,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js",
"houseplan-assets/zigbee-topology-4quV6dd1.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js",
"houseplan-assets/zigbee-topology-BNhyfBy9.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "34a415172bdec8e716f6e399c55e84d97e3c4ed52f7dbcb6036ad115efbcb318",
"sha256": "89006673a7ab07880dc3360602a9141370c8f88e6f4ba4202306bc0a32ce93b6",
"rawBytes": 1205,
"gzipBytes": 801,
"gzipBytes": 802,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-Crzae5p3.js"
"houseplan-assets/houseplan-card-Cg17Cmu0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "562bc17dab1e28b1502168bb74c681112af7e161893d79f6422e7b2ce3faba8a",
"sha256": "301705f5fd0d15b60f197110cddcfc2d33dbdc484db0c08ca41a55dcd659c80e",
"rawBytes": 6124,
"gzipBytes": 2303,
"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__="23ed457d01a2622aae7bb6937116f20f0044b8216b723388ed3dcf85dacd4a1e";import{t as e,l as o,x as t,e5 as s,A as a,e6 as i,e7 as l,e8 as n,dV as r,b as c}from"./houseplan-card-Crzae5p3.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="4c71ffc5d05d356ad51092fb72d0d4b399aaa26b182f3a714ffb32a569995bef";import{t as e,l as o,x as t,e5 as s,A as a,e6 as i,e7 as l,e8 as n,dV as r,b as c}from"./houseplan-card-Cg17Cmu0.js";class f extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,f={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},h=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
.hass=${this.hass}
.data=${this._formData}
.schema=${e}
.computeLabel=${e=>h[e.name]||e.name}
.computeLabel=${e=>f[e.name]||e.name}
@value-changed=${this._valueChanged}
></ha-form>`;return c`
${d(f.slice(0,3))}
${d(h.slice(0,3))}
${_?c`<div class="default-floor-error" role="alert"
style="color:var(--error-color,#db4437);margin:-4px 0 12px;overflow-wrap:anywhere">
${t(s,"editor.default_floor_missing",{id:_})}
</div>`:a}
${d(f.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}h.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",h);
${d(h.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}f.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",f);
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="4c71ffc5d05d356ad51092fb72d0d4b399aaa26b182f3a714ffb32a569995bef";import{dT as r,dU as t,dV as s}from"./houseplan-card-Cg17Cmu0.js";const a={},e=r(class extends t{constructor(){super(...arguments),this.ot=a}render(r,t){return t()}update(r,[t,a]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return s}else if(this.ot===t)return s;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,a)}});export{e as i};
-1
View File
@@ -1 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044b8216b723388ed3dcf85dacd4a1e";import{dT as r,dU as t,dV as e}from"./houseplan-card-Crzae5p3.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
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__="23ed457d01a2622aae7bb6937116f20f0044b8216b723388ed3dcf85dacd4a1e";import{b as a,A as e}from"./houseplan-card-Crzae5p3.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-DC3M6d7A.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__="4c71ffc5d05d356ad51092fb72d0d4b399aaa26b182f3a714ffb32a569995bef";import{b as a,A as s}from"./houseplan-card-Cg17Cmu0.js";import{s as e,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-Bm2iVqgf.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&&!e(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(s=>s.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"
@@ -10,31 +10,31 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044
dismiss-on-scrim aria-busy=${String(d.busy)}
@hp-close=${k}>
<div class="body summary-editor" @click=${()=>m.closeSource()}>
${d.localOnly?a`<p class="summary-local-hint">${b(d.localOnlyHint)}</p>`:e}
${d.localOnly?a`<p class="summary-local-hint">${b(d.localOnlyHint)}</p>`:s}
<section class="summary-general" aria-labelledby="summary-general-title">
<h3 id="summary-general-title">${b("summary.general_settings")}</h3>
<div class="summary-general-grid">
${d.localOnly?e:a`<div class="summary-field">
${d.localOnly?s:a`<div class="summary-field">
<label for="summary-panel-title">${b("summary.panel_title")}</label>
<input id="summary-panel-title" type="text" .value=${d.draft.title}
?disabled=${d.busy}
data-summary-error=${String(d.attempted&&"title"===y?.path)}
aria-invalid=${"error"===v("title")?.kind?"true":"false"}
@input=${a=>m.mutate(e=>{e.title=a.target.value})} />
${v("title")?a`<div class="summary-problem error">${h(v("title"))}</div>`:e}
@input=${a=>m.mutate(s=>{s.title=a.target.value})} />
${v("title")?a`<div class="summary-problem error">${h(v("title"))}</div>`:s}
</div>`}
${g}
${d.localOnly?e:a`<label class="summary-switch" for="summary-mobile-show">
${d.localOnly?s:a`<label class="summary-switch" for="summary-mobile-show">
<span class="summary-switch-caption"><strong>${b("summary.show_mobile")}</strong>
<small id="summary-mobile-show-hint">${b("summary.show_mobile_hint")}</small></span>
<input id="summary-mobile-show" data-summary-mobile-show type="checkbox"
.checked=${d.draft.show_on_mobile} ?disabled=${!d.localShow||d.busy}
aria-label=${b("summary.show_mobile")} aria-describedby="summary-mobile-show-hint"
@change=${a=>m.mutate(e=>{e.show_on_mobile=a.target.checked})} /></label>`}
@change=${a=>m.mutate(s=>{s.show_on_mobile=a.target.checked})} /></label>`}
</div>
${m.storageUnavailable?a`<div class="summary-problem warning">${b("summary.storage_unavailable")}</div>`:e}
${m.storageUnavailable?a`<div class="summary-problem warning">${b("summary.storage_unavailable")}</div>`:s}
</section>
${d.localOnly?e:a`
${d.localOnly?s:a`
<section class="summary-blocks-card" aria-labelledby="summary-blocks-title">
<header class="summary-blocks-heading">
<div><h3 id="summary-blocks-title">${b("summary.blocks")}</h3>
@@ -42,7 +42,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044
<span class="summary-block-count">${b("summary.block_count").replace("{count}",String(d.draft.blocks.length)).replace("{limit}","10")}</span>
</header>
<div class="summary-editor-blocks">
${d.draft.blocks.map((s,t)=>{const u=`blocks.${t}`,n=v(`${u}.scope`);return a`<article class="summary-editor-block"
${d.draft.blocks.map((e,t)=>{const u=`blocks.${t}`,n=v(`${u}.scope`);return a`<article class="summary-editor-block"
@dragover=${a=>a.preventDefault()}
@drop=${a=>m.drop(a,`block:${t}`)}>
<div class="summary-block-head">
@@ -57,40 +57,40 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044
?disabled=${t===d.draft.blocks.length-1||d.busy}
@click=${()=>m.mutate(a=>{a.blocks=r(a.blocks,t,t+1)})}>${l("down")}</button>
</div>
<input class="summary-block-title" type="text" .value=${s.title}
<input class="summary-block-title" type="text" .value=${e.title}
placeholder=${b("summary.block_title")} aria-label=${b("summary.block_title")}
?disabled=${d.busy}
data-summary-error=${String(d.attempted&&y?.path===`${u}.title`)}
aria-invalid=${"error"===v(`${u}.title`)?.kind?"true":"false"}
@input=${a=>m.mutate(e=>{e.blocks[t].title=a.target.value})} />
@input=${a=>m.mutate(s=>{s.blocks[t].title=a.target.value})} />
<button class="summary-icon-button summary-visibility" type="button"
?disabled=${d.busy} aria-pressed=${String(s.visible)}
title=${b(s.visible?"summary.hide_block":"summary.show_block")}
aria-label=${b(s.visible?"summary.hide_block":"summary.show_block")}
@click=${()=>m.mutate(a=>{a.blocks[t].visible=!a.blocks[t].visible})}>${l(s.visible?"eye":"eyeOff")}</button>
${v(`${u}.title`)?a`<div class="summary-problem error summary-block-title-error">${h(v(`${u}.title`))}</div>`:e}
?disabled=${d.busy} aria-pressed=${String(e.visible)}
title=${b(e.visible?"summary.hide_block":"summary.show_block")}
aria-label=${b(e.visible?"summary.hide_block":"summary.show_block")}
@click=${()=>m.mutate(a=>{a.blocks[t].visible=!a.blocks[t].visible})}>${l(e.visible?"eye":"eyeOff")}</button>
${v(`${u}.title`)?a`<div class="summary-problem error summary-block-title-error">${h(v(`${u}.title`))}</div>`:s}
<div class="summary-scope">
<select .value=${s.scope.type} ?disabled=${d.busy}
<select .value=${e.scope.type} ?disabled=${d.busy}
aria-label=${b("summary.scope")}
@change=${a=>m.mutate(e=>{e.blocks[t].scope="space"===a.target.value?{type:"space",space_id:c._space}:{type:"all"}})}>
<option value="all" ?selected=${"all"===s.scope.type}>${b("summary.scope_all")}</option>
<option value="space" ?selected=${"space"===s.scope.type}>${b("summary.scope_space")}</option>
@change=${a=>m.mutate(s=>{s.blocks[t].scope="space"===a.target.value?{type:"space",space_id:c._space}:{type:"all"}})}>
<option value="all" ?selected=${"all"===e.scope.type}>${b("summary.scope_all")}</option>
<option value="space" ?selected=${"space"===e.scope.type}>${b("summary.scope_space")}</option>
</select>
${"space"===s.scope.type?a`<select .value=${s.scope.space_id}
${"space"===e.scope.type?a`<select .value=${e.scope.space_id}
?disabled=${d.busy} aria-label=${b("summary.scope_space")}
data-summary-error=${String(d.attempted&&y?.path===`${u}.scope`)}
aria-invalid=${"error"===n?.kind?"true":"false"}
@change=${a=>m.mutate(e=>{const s=e.blocks[t].scope;"space"===s.type&&(s.space_id=a.target.value)})}>
${c._model.some(a=>a.id===s.scope.space_id)?e:a`<option value=${s.scope.space_id} selected>${s.scope.space_id}</option>`}
${c._model.map(e=>a`<option value=${e.id}
?selected=${e.id===s.scope.space_id}>${e.title}</option>`)}
</select>`:e}
@change=${a=>m.mutate(s=>{const e=s.blocks[t].scope;"space"===e.type&&(e.space_id=a.target.value)})}>
${c._model.some(a=>a.id===e.scope.space_id)?s:a`<option value=${e.scope.space_id} selected>${e.scope.space_id}</option>`}
${c._model.map(s=>a`<option value=${s.id}
?selected=${s.id===e.scope.space_id}>${s.title}</option>`)}
</select>`:s}
</div>
${n?a`<div class="summary-problem summary-scope-problem ${n.kind}">${h(n)}</div>`:e}
${n?a`<div class="summary-problem summary-scope-problem ${n.kind}">${h(n)}</div>`:s}
</div>
<div class="summary-block-body">
<div class="summary-editor-values">
${s.values.map((i,c)=>{const n=`${u}.values.${c}`,$=v(`${n}.source`),p=m.sourceToken(i.source),k=d.activeSource?.blockId===s.id&&d.activeSource.valueId===i.id,g="system"===i.source.type?b(`summary.system.${i.source.key}`):i.source.entity_id?m.entityIndex.labels.get(i.source.entity_id)||i.source.entity_id:b("summary.select_source"),_="system"===i.source.type?b("summary.system_source"):i.source.entity_id,f=k?o(m.entityIndex,d.entityFilter):null,w="entity"===i.source.type&&!!i.source.entity_id&&!m.entityIndex.labels.has(i.source.entity_id),S=`${s.id}\n${i.id}`;return a`<div class="summary-editor-value"
${e.values.map((i,c)=>{const n=`${u}.values.${c}`,$=v(`${n}.source`),p=m.sourceToken(i.source),k=d.activeSource?.blockId===e.id&&d.activeSource.valueId===i.id,g="system"===i.source.type?b(`summary.system.${i.source.key}`):i.source.entity_id?m.entityIndex.labels.get(i.source.entity_id)||i.source.entity_id:b("summary.select_source"),_="system"===i.source.type?b("summary.system_source"):i.source.entity_id,f=k?o(m.entityIndex,d.entityFilter):null,w="entity"===i.source.type&&!!i.source.entity_id&&!m.entityIndex.labels.has(i.source.entity_id),S=`${e.id}\n${i.id}`;return a`<div class="summary-editor-value"
@dragover=${a=>{a.preventDefault(),a.stopPropagation()}}
@drop=${a=>m.drop(a,`value:${t}:${c}`)}>
<span class="summary-drag" draggable=${String(!d.busy)} title=${b("summary.drag")}
@@ -101,7 +101,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044
@click=${()=>m.mutate(a=>{a.blocks[t].values=r(a.blocks[t].values,c,c-1)})}>${l("up")}</button>
<button class="summary-icon-button" type="button" title=${b("summary.down")}
aria-label=${b("summary.down")}
?disabled=${c===s.values.length-1||d.busy}
?disabled=${c===e.values.length-1||d.busy}
@click=${()=>m.mutate(a=>{a.blocks[t].values=r(a.blocks[t].values,c,c+1)})}>${l("down")}</button>
</div>
<div class="summary-value-label">
@@ -109,8 +109,8 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044
placeholder=${b("summary.value_name")} aria-label=${b("summary.value_name")}
data-summary-error=${String(d.attempted&&y?.path===`${n}.label`)}
aria-invalid=${"error"===v(`${n}.label`)?.kind?"true":"false"}
@input=${a=>m.mutate(e=>{e.blocks[t].values[c].label=a.target.value})} />
${v(`${n}.label`)?a`<div class="summary-problem error">${h(v(`${n}.label`))}</div>`:e}
@input=${a=>m.mutate(s=>{s.blocks[t].values[c].label=a.target.value})} />
${v(`${n}.label`)?a`<div class="summary-problem error">${h(v(`${n}.label`))}</div>`:s}
</div>
<div class="summary-source-field">
<button class="summary-source" type="button"
@@ -119,9 +119,9 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044
data-summary-error=${String(d.attempted&&y?.path===`${n}.source`)}
aria-invalid=${"error"===$?.kind?"true":"false"}
aria-haspopup="listbox" aria-expanded=${k?"true":"false"}
@click=${a=>{a.stopPropagation(),k?m.closeSource():m.openSource(s.id,i.id)}}>
@click=${a=>{a.stopPropagation(),k?m.closeSource():m.openSource(e.id,i.id)}}>
<span class="summary-source-caption"><strong>${g}</strong>
${_?a`<small>${_}</small>`:e}</span>
${_?a`<small>${_}</small>`:s}</span>
${l("chevron")}
</button>
${k&&f?a`<div class="summary-source-picker"
@@ -135,39 +135,39 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044
<div class="summary-source-results" role="listbox"
aria-label=${b("summary.select_source")}>
<div class="summary-source-group">${b("summary.system_group")}</div>
${["device_count","total_area","datetime"].map(e=>a`
${["device_count","total_area","datetime"].map(s=>a`
<button type="button" role="option"
?disabled=${d.busy}
aria-selected=${p===`system:${e}`?"true":"false"}
@click=${()=>m.setSource(s.id,i.id,`system:${e}`)}>
${b(`summary.system.${e}`)}
aria-selected=${p===`system:${s}`?"true":"false"}
@click=${()=>m.setSource(e.id,i.id,`system:${s}`)}>
${b(`summary.system.${s}`)}
</button>`)}
${w?a`<div class="summary-source-group">${b("summary.current_source")}</div>
<button type="button" role="option" class="broken" aria-selected="true"
?disabled=${d.busy}
@click=${()=>m.setSource(s.id,i.id,p)}>
@click=${()=>m.setSource(e.id,i.id,p)}>
${g}
</button>`:e}
</button>`:s}
<div class="summary-source-group">${b("summary.entities_group")}</div>
${f.entries.map(e=>a`<button type="button" role="option"
${f.entries.map(s=>a`<button type="button" role="option"
?disabled=${d.busy}
aria-selected=${p===`entity:${e.id}`?"true":"false"}
@click=${()=>m.setSource(s.id,i.id,`entity:${e.id}`)}>
<span>${e.label}</span><small>${e.id}</small>
aria-selected=${p===`entity:${s.id}`?"true":"false"}
@click=${()=>m.setSource(e.id,i.id,`entity:${s.id}`)}>
<span>${s.label}</span><small>${s.id}</small>
</button>`)}
${f.total?e:a`<div class="summary-empty">${b("summary.no_search_results")}</div>`}
${f.truncated?a`<div class="summary-refine">${b("summary.refine_search")}</div>`:e}
${f.total?s:a`<div class="summary-empty">${b("summary.no_search_results")}</div>`}
${f.truncated?a`<div class="summary-refine">${b("summary.refine_search")}</div>`:s}
</div>
</div>`:e}
${$?a`<div class="summary-problem ${$.kind}">${h($)}</div>`:e}
</div>`:s}
${$?a`<div class="summary-problem ${$.kind}">${h($)}</div>`:s}
</div>
<button class="summary-icon-button summary-value-remove" type="button"
title=${b("btn.delete")} aria-label=${b("btn.delete")} ?disabled=${d.busy}
@click=${()=>m.mutate(a=>{a.blocks[t].values.splice(c,1)})}>${l("close")}</button>
</div>`})}
<button class="summary-add summary-add-value" type="button"
?disabled=${s.values.length>=20||d.busy}
title=${s.values.length>=20?b("summary.limit_values"):""}
?disabled=${e.values.length>=20||d.busy}
title=${e.values.length>=20?b("summary.limit_values"):""}
@click=${()=>m.mutate(a=>{a.blocks[t].values.push(i())})}>
${l("plus")}${b("summary.add_value")}
</button>
@@ -186,11 +186,11 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044
${l("plus")}${b("summary.add_block")}
</button>
</section>
${d.error?a`<div class="summary-problem error" role="alert">${d.error}</div>`:e}
${d.error?a`<div class="summary-problem error" role="alert">${d.error}</div>`:s}
${d.conflict?a`<button class="btn ghost summary-reload" type="button"
?disabled=${d.busy} @click=${()=>m.reload()}>
<ha-icon icon="mdi:reload"></ha-icon>${b("summary.reload_current")}
</button>`:e}
</button>`:s}
`}
</div>
<div class="row summary-editor-footer" slot="footer">
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044b8216b723388ed3dcf85dacd4a1e";import{az as e,ea as t,eb as n,bs as i,ec as r,P as a,a5 as s,M as o,aq as c,N as d,bq as l,bp as u,ed as f}from"./houseplan-card-Crzae5p3.js";function g(t){if(!t.registry.authoritative)return null;const n=new Set,i=e(t.markers);for(const e of Object.values(t.registry.devices||{}))e?.id&&"service"!==e.entry_type&&!i.devices.has(e.id)&&e.area_id&&t.areaToSpace[e.area_id]&&n.add(e.id);for(const e of t.markers||[]){if(e.removed||"virtual"===e.binding)continue;const r=String(e.binding||"").indexOf(":");if(r<1)continue;const a=e.binding.slice(0,r),s=e.binding.slice(r+1),o="device"===a?t.registry.devices?.[s]:null,c="entity"===a?t.registry.entities?.[s]:null,d="device"===a?s:c?.device_id,l="device"===a?o?.area_id:c?.area_id||d&&t.registry.devices?.[d]?.area_id,u="string"==typeof e.room_id&&e.room_id.length>0&&null===e.area?"":e.area||l||"",f=u&&t.areaToSpace[u]||e.space||t.firstSpaceId;d&&t.registry.devices?.[d]&&t.spaceIds.has(f)&&(!i.devices.has(d)||"entity"===a&&i.liveEntities.has(s))&&n.add(d)}return n}function m(e,t){return e?.length?t?.length?f(e,t):e:t}function v(e,t){try{let n=0;for(const i of t){const t=e.spaces.find(e=>String(e?.id)===i.id);if(!t)continue;const f=r(t,i);let g=null;for(const e of i.rooms){if(!e.id)continue;const t=a(e);if(!t)continue;const n=s(i.rooms,e.id,f.walls,f.openCuts,o,f.cellCm,c,d)||t;g=m(g,l(n,f.physicalBodies))}const v=f.cellCm/c;n+=u(g)*v*v/1e4}return n}catch{return null}}function y(e,t,n,r){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:i(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(r||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function _(e,i){const r=e?.states?.[i];if(!r)return null;const a=t(e,i);return a?n(a,String(r.attributes?.unit_of_measurement||"")):null}export{g as representedHaDeviceIds,_ as summaryEntityValue,y as summarySystemValue,v as totalCleanFloorAreaM2};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="4c71ffc5d05d356ad51092fb72d0d4b399aaa26b182f3a714ffb32a569995bef";import{az as e,ea as t,eb as n,bs as i,ec as r,P as a,a5 as s,M as o,aq as c,N as d,bq as l,bp as u,ed as f}from"./houseplan-card-Cg17Cmu0.js";function g(t){if(!t.registry.authoritative)return null;const n=new Set,i=e(t.markers);for(const e of Object.values(t.registry.devices||{}))e?.id&&"service"!==e.entry_type&&!i.devices.has(e.id)&&e.area_id&&t.areaToSpace[e.area_id]&&n.add(e.id);for(const e of t.markers||[]){if(e.removed||"virtual"===e.binding)continue;const r=String(e.binding||"").indexOf(":");if(r<1)continue;const a=e.binding.slice(0,r),s=e.binding.slice(r+1),o="device"===a?t.registry.devices?.[s]:null,c="entity"===a?t.registry.entities?.[s]:null,d="device"===a?s:c?.device_id,l="device"===a?o?.area_id:c?.area_id||d&&t.registry.devices?.[d]?.area_id,u="string"==typeof e.room_id&&e.room_id.length>0&&null===e.area?"":e.area||l||"",f=u&&t.areaToSpace[u]||e.space||t.firstSpaceId;d&&t.registry.devices?.[d]&&t.spaceIds.has(f)&&(!i.devices.has(d)||"entity"===a&&i.liveEntities.has(s))&&n.add(d)}return n}function m(e,t){return e?.length?t?.length?f(e,t):e:t}function v(e,t){try{let n=0;for(const i of t){const t=e.spaces.find(e=>String(e?.id)===i.id);if(!t)continue;const f=r(t,i);let g=null;for(const e of i.rooms){if(!e.id)continue;const t=a(e);if(!t)continue;const n=s(i.rooms,e.id,f.walls,f.openCuts,o,f.cellCm,c,d)||t;g=m(g,l(n,f.physicalBodies))}const v=f.cellCm/c;n+=u(g)*v*v/1e4}return n}catch{return null}}function y(e,t,n,r){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:i(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(r||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function _(e,i){const r=e?.states?.[i];if(!r)return null;const a=t(e,i);return a?n(a,String(r.attributes?.unit_of_measurement||"")):null}export{g as representedHaDeviceIds,_ as summaryEntityValue,y as summarySystemValue,v as totalCleanFloorAreaM2};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044b8216b723388ed3dcf85dacd4a1e";import{n as t,b as n}from"./zigbee-topology-4quV6dd1.js";import{F as e}from"./houseplan-card-Crzae5p3.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function p(t){if(!0!==t?.user?.is_admin)throw a("permission")}function f(n){const e=i(n);return e?c(e,"zha",async()=>{if(p(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function g(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function m(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(p(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,f=null,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const p=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&f?.(n):c&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await g(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await g(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{f as readZhaTopology,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="4c71ffc5d05d356ad51092fb72d0d4b399aaa26b182f3a714ffb32a569995bef";import{n as t,b as n}from"./zigbee-topology-BNhyfBy9.js";import{F as e}from"./houseplan-card-Cg17Cmu0.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};
+1 -1
View File
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="23ed457d01a2622aae7bb6937116f20f0044b8216b723388ed3dcf85dacd4a1e";try{await import("./houseplan-assets/houseplan-card-Crzae5p3.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__="4c71ffc5d05d356ad51092fb72d0d4b399aaa26b182f3a714ffb32a569995bef";try{await import("./houseplan-assets/houseplan-card-Cg17Cmu0.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
@@ -107,6 +107,22 @@ each clean guard passed, each mutated guard failed, and the runner reported
| AC10 | Four locales, narrow geometry, actual targets, keyboard, camera identity; theme/large-text frames | Actual bounds/focus/value comparisons and frame inspection. |
| AC11 | Gates/docs above; code scope inspection | No new eager implementation except header call order; stored schema and backend untouched. |
## Code-review r1 follow-up
The independent review accepted the implementation and recorded one Low L1:
`summary.block_visible` had no remaining consumers. The follow-up removes only
that unused key from all four dictionaries and rebuilds the bundle. No render,
style, event, model or visible string is changed. The paired visual evidence
above still describes the accepted implementation; it is not claimed as a new
capture of the cleanup commit.
- `rg -n 'summary\.block_visible' src demo test scripts` — no matches.
- `npm run gate:small` after rebuilding, synchronizing and staging the complete
generated trees — PASS. The preliminary attempts caught unsynchronized bundle
manifests and untracked generated assets; both were corrected without changing
any test or gate.
- `node demo/smoke_summary_panel_polish.mjs` on the fresh cleanup bundle — PASS.
Rollback is a revert and normal bundle rebuild. Nothing needs data migration.
Independent review and pipeline merge remain required before S8; publication
and issue closure belong to a later release request.
-4
View File
@@ -52,7 +52,6 @@ const dictionaries = {
"summary.down": "Move down",
"summary.drag": "Drag to reorder",
"summary.select_source": "Select a source",
"summary.block_visible": "Visible",
"summary.scope_all": "All spaces",
"summary.scope_space": "Specific space",
"summary.system_group": "System values",
@@ -121,7 +120,6 @@ const dictionaries = {
"summary.down": "Ниже",
"summary.drag": "Перетащить для изменения порядка",
"summary.select_source": "Выберите источник",
"summary.block_visible": "Показывать",
"summary.scope_all": "Все пространства",
"summary.scope_space": "Определённое пространство",
"summary.system_group": "Системные показатели",
@@ -190,7 +188,6 @@ const dictionaries = {
"summary.down": "Nach unten",
"summary.drag": "Zum Sortieren ziehen",
"summary.select_source": "Quelle auswählen",
"summary.block_visible": "Sichtbar",
"summary.scope_all": "Alle Bereiche",
"summary.scope_space": "Bestimmter Bereich",
"summary.system_group": "Systemwerte",
@@ -259,7 +256,6 @@ const dictionaries = {
"summary.down": "Descendre",
"summary.drag": "Faire glisser pour réorganiser",
"summary.select_source": "Sélectionner une source",
"summary.block_visible": "Visible",
"summary.scope_all": "Tous les espaces",
"summary.scope_space": "Espace spécifique",
"summary.system_group": "Valeurs système",