Align summary panel with designer prototype (#505)

Issue: #505
User-Visible: yes
This commit is contained in:
Matysh
2026-09-09 09:32:36 +03:00
parent d23cb267d0
commit 05778a47c0
74 changed files with 4900 additions and 1765 deletions
+135 -135
View File
@@ -1,118 +1,118 @@
{
"schema": 1,
"fingerprint": "81860efb3d03fa8c4235b70dca20201ffdefe227fe06da93ac0c1c3a63d974a1",
"fingerprint": "23ed457d01a2622aae7bb6937116f20f0044b8216b723388ed3dcf85dacd4a1e",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-BhViMJTd.js",
"houseplan-assets/houseplan-card-Crzae5p3.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 298557,
"initialViewGzipBytes": 298558,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-BhViMJTd.js",
"houseplan-assets/houseplan-card-Crzae5p3.js",
"houseplan-card.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 300858,
"initialPanelGzipBytes": 300861,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2301,
"initialPanelOnlyGzipBytes": 2303,
"lazyFiles": [
"houseplan-assets/backdrop-pick-Di1x8cgy.js",
"houseplan-assets/de-D7NY7RjE.js",
"houseplan-assets/editor-CnskaSu-.js",
"houseplan-assets/fr-Cqx1kEHG.js",
"houseplan-assets/furniture-plan-art.generated-C3FvF1Eb.js",
"houseplan-assets/guard-BYY_c7Ar.js",
"houseplan-assets/houseplan-editor-runtime-dpcsXuqh.js",
"houseplan-assets/houseplan-onboarding-runtime-BkHTGc_9.js",
"houseplan-assets/hp-zigbee-topology-overlay-DD-0BfNR.js",
"houseplan-assets/iso-scene-render-CdA3BsMJ.js",
"houseplan-assets/live-interaction-runtime-CLAzKdY6.js",
"houseplan-assets/pdf-export-DufZazIP.js",
"houseplan-assets/summary-panel-runtime-loaded-CtveBJom.js",
"houseplan-assets/zigbee-topology-Bl8L5Rm5.js",
"houseplan-assets/zigbee-topology-runtime-dbWCI8PY.js"
"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"
],
"lazyGzipBytes": 413603,
"lazyGzipBytes": 417361,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-Di1x8cgy.js",
"houseplan-assets/editor-CnskaSu-.js",
"houseplan-assets/furniture-plan-art.generated-C3FvF1Eb.js",
"houseplan-assets/guard-BYY_c7Ar.js",
"houseplan-assets/houseplan-editor-runtime-dpcsXuqh.js",
"houseplan-assets/zigbee-topology-Bl8L5Rm5.js"
"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"
],
"lazyEditorGzipBytes": 205639,
"lazyEditorGzipBytes": 205645,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-Di1x8cgy.js",
"houseplan-assets/houseplan-onboarding-runtime-BkHTGc_9.js"
"houseplan-assets/backdrop-pick-BCw0zFw7.js",
"houseplan-assets/houseplan-onboarding-runtime-BzoTZeZg.js"
],
"lazyOnboardingGzipBytes": 14143,
"lazyOnboardingGzipBytes": 14147,
"lazyLocaleFiles": [
"houseplan-assets/de-D7NY7RjE.js",
"houseplan-assets/fr-Cqx1kEHG.js"
"houseplan-assets/de-BVVa3kCi.js",
"houseplan-assets/fr-8Xkk5wY_.js"
],
"lazyLocaleGzipBytes": 54836,
"lazyLocaleGzipBytes": 54848,
"lazyIsometricFiles": [
"houseplan-assets/guard-BYY_c7Ar.js",
"houseplan-assets/iso-scene-render-CdA3BsMJ.js"
"houseplan-assets/guard-D8Rzo9jl.js",
"houseplan-assets/iso-scene-render-BAvzyoJA.js"
],
"lazyIsometricGzipBytes": 13453,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-C3FvF1Eb.js"
"houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js"
],
"lazyFurnitureArtGzipBytes": 10254,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-C3FvF1Eb.js",
"houseplan-assets/pdf-export-DufZazIP.js"
"houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js",
"houseplan-assets/pdf-export-CJWEmxpd.js"
],
"lazyPdfGzipBytes": 120367,
"files": [
{
"path": "houseplan-assets/backdrop-pick-Di1x8cgy.js",
"sha256": "998b429a8dd5cf292a86f6387051de68926a673c7fdadd9949b7de37cddc7b4d",
"path": "houseplan-assets/backdrop-pick-BCw0zFw7.js",
"sha256": "d989456633e3d802f5aad6266cc2c412bc6e9accf3af16044af05a4e72a1b08c",
"rawBytes": 21134,
"gzipBytes": 7143,
"gzipBytes": 7145,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BhViMJTd.js"
"houseplan-assets/houseplan-card-Crzae5p3.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-D7NY7RjE.js",
"sha256": "f922b55b90888d3c76cd8d58d7be423ac6df3a96c59444cf202060148cc78e7c",
"path": "houseplan-assets/de-BVVa3kCi.js",
"sha256": "76eee95dce2c13a393bb3dd2c066141bd88e9e1f0cda7e3bd48d8cf3486ecfd6",
"rawBytes": 91441,
"gzipBytes": 27702,
"gzipBytes": 27709,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-CnskaSu-.js",
"sha256": "5fb9421340ffd5b3d3dbd479b2e08a34bdbe624f78ec4faef315fda43b6a53bc",
"path": "houseplan-assets/editor-Deh_Ej8v.js",
"sha256": "31d7a51bbe8553349367f9afe195055fb384a6840fd51fe44ea5a8725c62aaea",
"rawBytes": 3837,
"gzipBytes": 1585,
"gzipBytes": 1584,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BhViMJTd.js"
"houseplan-assets/houseplan-card-Crzae5p3.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-Cqx1kEHG.js",
"sha256": "89278fe3e4ab04f3a14d93aaf078317beb81ec8d5c1a5abe7f5bbcae9280fb8e",
"path": "houseplan-assets/fr-8Xkk5wY_.js",
"sha256": "02a93d5496032c9bcb155e60d174a2ba3b96a29db941bed63a87d374ed31864b",
"rawBytes": 93719,
"gzipBytes": 27134,
"gzipBytes": 27139,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-C3FvF1Eb.js",
"sha256": "6d53c0d84f72969e6a379a675ca29d84c3dda1a4e0ceda09129a47e46f343289",
"path": "houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js",
"sha256": "030b2d6954a4ff7bc0b389c9de1f961bda06d4055884c097c589be0f0631fe47",
"rawBytes": 33655,
"gzipBytes": 10254,
"isEntry": false,
@@ -120,190 +120,190 @@
"dynamicImports": []
},
{
"path": "houseplan-assets/guard-BYY_c7Ar.js",
"sha256": "01428a07846e634a57bfe8c8d774eba4640cc4f323f0cf0c3f2c11b8797fb60f",
"path": "houseplan-assets/guard-D8Rzo9jl.js",
"sha256": "409c457573b85a57996d46dcc02b3c693add63fb5a3becc7bab555acd84ad927",
"rawBytes": 518,
"gzipBytes": 369,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BhViMJTd.js"
"houseplan-assets/houseplan-card-Crzae5p3.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-BhViMJTd.js",
"sha256": "091205969deafcf4326e3fdb48c50a7a4a031c7163c6064a0bc0394cdb7f06f9",
"path": "houseplan-assets/houseplan-card-Crzae5p3.js",
"sha256": "24ad72eb97102ca5dcc6b9bd877dae9f946c2bd6794fc34433f534d22919ea7d",
"rawBytes": 1075320,
"gzipBytes": 297755,
"gzipBytes": 297757,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-D7NY7RjE.js",
"houseplan-assets/editor-CnskaSu-.js",
"houseplan-assets/fr-Cqx1kEHG.js",
"houseplan-assets/furniture-plan-art.generated-C3FvF1Eb.js",
"houseplan-assets/houseplan-editor-runtime-dpcsXuqh.js",
"houseplan-assets/houseplan-onboarding-runtime-BkHTGc_9.js",
"houseplan-assets/hp-zigbee-topology-overlay-DD-0BfNR.js",
"houseplan-assets/iso-scene-render-CdA3BsMJ.js",
"houseplan-assets/live-interaction-runtime-CLAzKdY6.js",
"houseplan-assets/pdf-export-DufZazIP.js",
"houseplan-assets/summary-panel-runtime-loaded-CtveBJom.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/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"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-dpcsXuqh.js",
"sha256": "b3873753eb7bae95e4c259580b2594e592c6ffa43e70280321f04202a835f0a8",
"path": "houseplan-assets/houseplan-editor-runtime-D2jS6dwP.js",
"sha256": "2337f99d01d53eb1ccddf5e61af130e8c9b3fc4d25b9f8086244ece74b92d418",
"rawBytes": 671979,
"gzipBytes": 178865,
"gzipBytes": 178867,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-Di1x8cgy.js",
"houseplan-assets/furniture-plan-art.generated-C3FvF1Eb.js",
"houseplan-assets/guard-BYY_c7Ar.js",
"houseplan-assets/houseplan-card-BhViMJTd.js",
"houseplan-assets/zigbee-topology-Bl8L5Rm5.js"
"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"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-dbWCI8PY.js"
"houseplan-assets/zigbee-topology-runtime-CmpU5AFI.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-BkHTGc_9.js",
"sha256": "d08e5440ba775be5fd4f6f14f12230107c9aa6eb54a9440e5233b109bd8d8a40",
"path": "houseplan-assets/houseplan-onboarding-runtime-BzoTZeZg.js",
"sha256": "1604baf6d7dde717a2922090abadf3fe6a206d100029aea458d62561f3ebc20c",
"rawBytes": 28237,
"gzipBytes": 7000,
"gzipBytes": 7002,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-Di1x8cgy.js",
"houseplan-assets/houseplan-card-BhViMJTd.js"
"houseplan-assets/backdrop-pick-BCw0zFw7.js",
"houseplan-assets/houseplan-card-Crzae5p3.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-DD-0BfNR.js",
"sha256": "114632d3343de6d54c1c9b20b005f3da11e497c38175e426fdedc41686a250e4",
"path": "houseplan-assets/hp-zigbee-topology-overlay-Uf2fNUK5.js",
"sha256": "63b14a681bad4d4afd1e85df9b640924d39100c3e135c111e8c82fcc9be1e780",
"rawBytes": 11034,
"gzipBytes": 3730,
"gzipBytes": 3729,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BhViMJTd.js",
"houseplan-assets/zigbee-topology-Bl8L5Rm5.js",
"houseplan-assets/zigbee-topology-runtime-dbWCI8PY.js"
"houseplan-assets/houseplan-card-Crzae5p3.js",
"houseplan-assets/zigbee-topology-4quV6dd1.js",
"houseplan-assets/zigbee-topology-runtime-CmpU5AFI.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-CdA3BsMJ.js",
"sha256": "4ecfc56d979ed0cdfffc34a5bb62178890ba6cd21d35d18246d6a247b1e01e6c",
"path": "houseplan-assets/iso-scene-render-BAvzyoJA.js",
"sha256": "5d97bb17a3f2303043990c5042271c075f8e4ba5ec99f5788ca786d5915585a1",
"rawBytes": 38562,
"gzipBytes": 13084,
"isEntry": false,
"imports": [
"houseplan-assets/guard-BYY_c7Ar.js",
"houseplan-assets/houseplan-card-BhViMJTd.js"
"houseplan-assets/guard-D8Rzo9jl.js",
"houseplan-assets/houseplan-card-Crzae5p3.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-CLAzKdY6.js",
"sha256": "f0f49d47d1304bce2adc171804a979b7f542e6f114f1a5385318dd8000b9eb4d",
"path": "houseplan-assets/live-interaction-runtime-CQkj3ysn.js",
"sha256": "a829eac419b3f7af667360371884033c8f284ade75460cc2000781a207822ca9",
"rawBytes": 5196,
"gzipBytes": 2124,
"gzipBytes": 2126,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BhViMJTd.js"
"houseplan-assets/houseplan-card-Crzae5p3.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-DufZazIP.js",
"sha256": "7071be8d5835f75ece11c10f5b51fb2ad3bcc5553a4d4b0c637520b33eb2b29e",
"path": "houseplan-assets/pdf-export-CJWEmxpd.js",
"sha256": "3b1e0cbb95ea3f4fa41613b7e5850000616c0253ea99a1a3efa38da6973637e4",
"rawBytes": 237254,
"gzipBytes": 110113,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-C3FvF1Eb.js",
"houseplan-assets/houseplan-card-BhViMJTd.js"
"houseplan-assets/furniture-plan-art.generated-CTTaXtIO.js",
"houseplan-assets/houseplan-card-Crzae5p3.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-D6FUiDtF.js",
"sha256": "f7d426ee7587d34776a81ba2f31816d06265007ce90d4e0c54107a2e92bc2dc2",
"rawBytes": 12383,
"gzipBytes": 3098,
"path": "houseplan-assets/summary-panel-editor-B2fiaXD8.js",
"sha256": "ea39522db6752da7783fa49322026e1ca99231cf1b5be62724e507f8e4c14456",
"rawBytes": 14811,
"gzipBytes": 3388,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BhViMJTd.js",
"houseplan-assets/summary-panel-runtime-loaded-CtveBJom.js"
"houseplan-assets/houseplan-card-Crzae5p3.js",
"houseplan-assets/summary-panel-runtime-loaded-DC3M6d7A.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-Dl_5_omk.js",
"sha256": "d82c52d965e25dbe036562aa79b304651ca07fdfa2adf00c4080c37366b7461f",
"path": "houseplan-assets/summary-panel-metrics-DDyIt-bT.js",
"sha256": "3f7c19ec90f9140fbe9f50c4c9bc70e31ce82d35538d78e79a74a70a228f5b4f",
"rawBytes": 2195,
"gzipBytes": 1118,
"gzipBytes": 1119,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BhViMJTd.js"
"houseplan-assets/houseplan-card-Crzae5p3.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-CtveBJom.js",
"sha256": "6b65e7987152a7f28d3330c773e41278b43ac1de82ac3af5cf60edc4ace8c9fc",
"rawBytes": 52125,
"gzipBytes": 15315,
"path": "houseplan-assets/summary-panel-runtime-loaded-DC3M6d7A.js",
"sha256": "f5b9d69b1c6aaabe7b863d7a331e100e960c5064f4b880d0e9fddf1b5a245ad4",
"rawBytes": 69680,
"gzipBytes": 19052,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BhViMJTd.js"
"houseplan-assets/houseplan-card-Crzae5p3.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-D6FUiDtF.js",
"houseplan-assets/summary-panel-metrics-Dl_5_omk.js"
"houseplan-assets/summary-panel-editor-B2fiaXD8.js",
"houseplan-assets/summary-panel-metrics-DDyIt-bT.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-Bl8L5Rm5.js",
"sha256": "362ef37f91fe13b94bbe74b69da10f1e4f3076ed6fd27c81d1447e07080a48e4",
"path": "houseplan-assets/zigbee-topology-4quV6dd1.js",
"sha256": "016f849b7e7291337494a0e0e71799d1644e4a236afd0d7e715bdd90534bd68f",
"rawBytes": 18961,
"gzipBytes": 7423,
"gzipBytes": 7426,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BhViMJTd.js"
"houseplan-assets/houseplan-card-Crzae5p3.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-dbWCI8PY.js",
"sha256": "7dbfdf2afbab16df2d5b74a09af87105189f1c68f444fc48a9aa783709a6c25a",
"path": "houseplan-assets/zigbee-topology-runtime-CmpU5AFI.js",
"sha256": "6cf2dfe363667803e75c59cb1f059baa74621c44ed47329ef59959024f871eab",
"rawBytes": 3941,
"gzipBytes": 1762,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BhViMJTd.js",
"houseplan-assets/zigbee-topology-Bl8L5Rm5.js"
"houseplan-assets/houseplan-card-Crzae5p3.js",
"houseplan-assets/zigbee-topology-4quV6dd1.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "7dca424b1c1e387a7ec82d75caf161ead9fd4b49c01a91d1f6bb4cf20fb98dae",
"sha256": "34a415172bdec8e716f6e399c55e84d97e3c4ed52f7dbcb6036ad115efbcb318",
"rawBytes": 1205,
"gzipBytes": 802,
"gzipBytes": 801,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-BhViMJTd.js"
"houseplan-assets/houseplan-card-Crzae5p3.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "4404496457e98d89dc3e2bfdd1a2906224a42611163208bdd8b5d6428f1c4093",
"sha256": "562bc17dab1e28b1502168bb74c681112af7e161893d79f6422e7b2ce3faba8a",
"rawBytes": 6124,
"gzipBytes": 2301,
"gzipBytes": 2303,
"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__="81860efb3d03fa8c4235b70dca20201ffdefe227fe06da93ac0c1c3a63d974a1";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-BhViMJTd.js";class f extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,f={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},h=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="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
.hass=${this.hass}
.data=${this._formData}
.schema=${e}
.computeLabel=${e=>f[e.name]||e.name}
.computeLabel=${e=>h[e.name]||e.name}
@value-changed=${this._valueChanged}
></ha-form>`;return c`
${d(h.slice(0,3))}
${d(f.slice(0,3))}
${_?c`<div class="default-floor-error" role="alert"
style="color:var(--error-color,#db4437);margin:-4px 0 12px;overflow-wrap:anywhere">
${t(s,"editor.default_floor_missing",{id:_})}
</div>`:a}
${d(h.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}f.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",f);
${d(f.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}h.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",h);
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="81860efb3d03fa8c4235b70dca20201ffdefe227fe06da93ac0c1c3a63d974a1";import{dT as r,dU as t,dV as e}from"./houseplan-card-BhViMJTd.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="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
File diff suppressed because one or more lines are too long
+203
View File
@@ -0,0 +1,203 @@
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">
<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"
.checked=${d.localShow}
?disabled=${d.busy} aria-label=${b("summary.show_local")}
aria-describedby="summary-local-show-hint"
@change=${a=>m.setDialog({...d,localShow:a.target.checked})} /></label>`;return a`<hp-dialog .hass=${c.hass} data-kind="summary"
.title=${b("summary.settings")} wide
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}
<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">
<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}
</div>`}
${g}
${d.localOnly?e: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>`}
</div>
${m.storageUnavailable?a`<div class="summary-problem warning">${b("summary.storage_unavailable")}</div>`:e}
</section>
${d.localOnly?e: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>
<p>${b("summary.blocks_hint")}</p></div>
<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"
@dragover=${a=>a.preventDefault()}
@drop=${a=>m.drop(a,`block:${t}`)}>
<div class="summary-block-head">
<span class="summary-drag" draggable=${String(!d.busy)} title=${b("summary.drag")}
@dragstart=${a=>m.dragStart(a,`block:${t}`)}>${l("grip")}</span>
<div class="summary-order">
<button class="summary-icon-button" type="button" title=${b("summary.up")}
aria-label=${b("summary.up")} ?disabled=${0===t||d.busy}
@click=${()=>m.mutate(a=>{a.blocks=r(a.blocks,t,t-1)})}>${l("up")}</button>
<button class="summary-icon-button" type="button" title=${b("summary.down")}
aria-label=${b("summary.down")}
?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}
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})} />
<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}
<div class="summary-scope">
<select .value=${s.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>
</select>
${"space"===s.scope.type?a`<select .value=${s.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}
</div>
${n?a`<div class="summary-problem summary-scope-problem ${n.kind}">${h(n)}</div>`:e}
</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"
@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")}
@dragstart=${a=>m.dragStart(a,`value:${t}:${c}`)}>${l("grip")}</span>
<div class="summary-order">
<button class="summary-icon-button" type="button" title=${b("summary.up")}
aria-label=${b("summary.up")} ?disabled=${0===c||d.busy}
@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}
@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">
<input type="text" .value=${i.label} ?disabled=${d.busy}
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}
</div>
<div class="summary-source-field">
<button class="summary-source" type="button"
?disabled=${d.busy}
data-summary-source-owner=${S}
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)}}>
<span class="summary-source-caption"><strong>${g}</strong>
${_?a`<small>${_}</small>`:e}</span>
${l("chevron")}
</button>
${k&&f?a`<div class="summary-source-picker"
@click=${a=>a.stopPropagation()}
@keydown=${a=>{"Escape"===a.key&&(a.preventDefault(),a.stopPropagation(),m.closeSource(!0))}}>
<label>${b("summary.search_entities")}</label>
<input type="search" data-summary-picker-search
?disabled=${d.busy}
aria-label=${b("summary.search_entities")} .value=${d.entityFilter}
@input=${a=>m.setDialog({...d,entityFilter:a.target.value})} />
<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`
<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}`)}
</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)}>
${g}
</button>`:e}
<div class="summary-source-group">${b("summary.entities_group")}</div>
${f.entries.map(e=>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>
</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}
</div>
</div>`:e}
${$?a`<div class="summary-problem ${$.kind}">${h($)}</div>`:e}
</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"):""}
@click=${()=>m.mutate(a=>{a.blocks[t].values.push(i())})}>
${l("plus")}${b("summary.add_value")}
</button>
</div>
<footer class="summary-block-footer">
<button class="summary-delete-block" type="button" ?disabled=${d.busy}
@click=${()=>m.deleteBlock(t)}>${b("summary.delete_block")}</button>
</footer>
</div>
</article>`})}
</div>
<button class="summary-add summary-add-block" type="button"
?disabled=${d.draft.blocks.length>=10||d.busy}
title=${d.draft.blocks.length>=10?b("summary.limit_blocks"):""}
@click=${()=>m.mutate(a=>{a.blocks.push(u(b))})}>
${l("plus")}${b("summary.add_block")}
</button>
</section>
${d.error?a`<div class="summary-problem error" role="alert">${d.error}</div>`:e}
${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}
`}
</div>
<div class="row summary-editor-footer" slot="footer">
<button class="btn ghost" data-hp="dialog-cancel"
?disabled=${d.busy} @click=${k}>${b("btn.cancel")}</button>
<button class="btn on" data-hp="dialog-confirm"
?disabled=${d.localOnly?!$||d.busy:!p}
@click=${()=>m.save()}>${b("btn.save")}</button>
</div>
</hp-dialog>`};export{m as renderSummaryPanelEditor};
-168
View File
@@ -1,168 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="81860efb3d03fa8c4235b70dca20201ffdefe227fe06da93ac0c1c3a63d974a1";import{b as e,A as t}from"./houseplan-card-BhViMJTd.js";import{s as a,n as s,m as l,a as o,b as i,c as r}from"./summary-panel-runtime-loaded-CtveBJom.js";const c=c=>{const{host:u,dialog:n,local:m,problems:d,t:p}=c,$=d.find(e=>"error"===e.kind),b=n.localShow!==n.baseLocalShow||!n.localOnly&&!a(s(n.draft),n.base),y=b&&!n.busy&&!$,v=e=>d.find(t=>t.path===e),h=e=>e?p(`summary.problem.${e.code}`):"",k=()=>c.close(),g=e`<label class="summary-switch"><input type="checkbox"
.checked=${n.localShow}
@change=${e=>c.setDialog({...n,localShow:e.target.checked})} />
<span>${p("summary.show_local")}</span></label>`,_=e`<h3 class="summary-sizes-title">${p("summary.sizes_title")}</h3>
<div class="summary-local-sizes">
<div class="summary-size-field">
<div><label for="summary-icon-scale">${p("kiosk.icon_scale")}</label>
<output for="summary-icon-scale">${Math.round(100*m.icon_scale)}%</output></div>
<input id="summary-icon-scale" type="range" min="50" max="300" step="5"
.value=${String(Math.round(100*m.icon_scale))}
@input=${e=>c.saveLocal({icon_scale:Number(e.target.value)/100})} />
</div>
<div class="summary-size-field">
<div><label for="summary-font-scale">${p("kiosk.font_scale")}</label>
<output for="summary-font-scale">${Math.round(100*m.font_scale)}%</output></div>
<input id="summary-font-scale" type="range" min="50" max="300" step="5"
.value=${String(Math.round(100*m.font_scale))}
@input=${e=>c.saveLocal({font_scale:Number(e.target.value)/100})} />
</div>
<button class="btn ghost summary-size-reset" type="button"
@click=${()=>c.saveLocal({icon_scale:1,font_scale:1})}>${p("gs.reset")}</button>
</div>
${c.storageUnavailable?e`<div class="summary-problem warning">${p("summary.storage_unavailable")}</div>`:t}`;return e`<hp-dialog .hass=${u.hass} data-kind="summary"
.title=${p("summary.settings")}
icon="mdi:view-dashboard-outline" dismiss-on-scrim aria-busy=${String(n.busy)}
@hp-close=${k}>
<div class="body summary-editor" @click=${()=>c.closeSource()}>
${n.localOnly?e`<p class="rhint">${p(n.localOnlyHint)}</p>`:t}
${n.localOnly?e`${g}${_}`:e`
<label>${p("summary.panel_title")}</label>
<input type="text" .value=${n.draft.title}
data-summary-error=${String(n.attempted&&"title"===$?.path)}
aria-invalid=${"error"===v("title")?.kind?"true":"false"}
@input=${e=>c.mutate(t=>{t.title=e.target.value})} />
${v("title")?e`<div class="summary-problem error">${h(v("title"))}</div>`:t}
${g}
<label class="summary-switch"><input type="checkbox" .checked=${n.draft.show_on_mobile}
@change=${e=>c.mutate(t=>{t.show_on_mobile=e.target.checked})} />
<span>${p("summary.show_mobile")}</span></label>
${_}
<div class="summary-editor-blocks">
${n.draft.blocks.map((a,s)=>{const r=`blocks.${s}`,m=v(`${r}.scope`);return e`<article class="summary-editor-block"
@dragover=${e=>e.preventDefault()}
@drop=${e=>c.drop(e,`block:${s}`)}>
<div class="summary-editor-row summary-block-head">
<span class="summary-drag" draggable="true" title=${p("summary.drag")}
@dragstart=${e=>c.dragStart(e,`block:${s}`)}>⋮⋮</span>
<input type="text" .value=${a.title}
placeholder=${p("summary.block_title")}
data-summary-error=${String(n.attempted&&$?.path===`${r}.title`)}
@input=${e=>c.mutate(t=>{t.blocks[s].title=e.target.value})} />
<button type="button" title=${p("summary.up")} ?disabled=${0===s}
@click=${()=>c.mutate(e=>{e.blocks=l(e.blocks,s,s-1)})}>↑</button>
<button type="button" title=${p("summary.down")}
?disabled=${s===n.draft.blocks.length-1}
@click=${()=>c.mutate(e=>{e.blocks=l(e.blocks,s,s+1)})}>↓</button>
<button type="button" title=${p("btn.delete")}
@click=${()=>c.deleteBlock(s)}><ha-icon icon="mdi:delete-outline"></ha-icon></button>
</div>
${v(`${r}.title`)?e`<div class="summary-problem error">${h(v(`${r}.title`))}</div>`:t}
<div class="summary-editor-row">
<label class="summary-switch"><input type="checkbox" .checked=${a.visible}
@change=${e=>c.mutate(t=>{t.blocks[s].visible=e.target.checked})} />
<span>${p("summary.block_visible")}</span></label>
<select .value=${a.scope.type}
@change=${e=>c.mutate(t=>{t.blocks[s].scope="space"===e.target.value?{type:"space",space_id:u._space}:{type:"all"}})}>
<option value="all" ?selected=${"all"===a.scope.type}>${p("summary.scope_all")}</option>
<option value="space" ?selected=${"space"===a.scope.type}>${p("summary.scope_space")}</option>
</select>
${"space"===a.scope.type?e`<select .value=${a.scope.space_id}
data-summary-error=${String(n.attempted&&$?.path===`${r}.scope`)}
@change=${e=>c.mutate(t=>{const a=t.blocks[s].scope;"space"===a.type&&(a.space_id=e.target.value)})}>
${u._model.some(e=>e.id===a.scope.space_id)?t:e`<option value=${a.scope.space_id} selected>${a.scope.space_id}</option>`}
${u._model.map(t=>e`<option value=${t.id}
?selected=${t.id===a.scope.space_id}>${t.title}</option>`)}
</select>`:t}
</div>
${m?e`<div class="summary-problem ${m.kind}">${h(m)}</div>`:t}
<div class="summary-editor-values">
${a.values.map((i,u)=>{const m=`${r}.values.${u}`,d=v(`${m}.source`),b=c.sourceToken(i.source),y=n.activeSource?.blockId===a.id&&n.activeSource.valueId===i.id,k="system"===i.source.type?p(`summary.system.${i.source.key}`):i.source.entity_id?`${c.entityIndex.labels.get(i.source.entity_id)||i.source.entity_id} — ${i.source.entity_id}`:p("summary.select_source"),g=y?o(c.entityIndex,n.entityFilter):null,_="entity"===i.source.type&&!!i.source.entity_id&&!c.entityIndex.labels.has(i.source.entity_id),f=`${a.id}\n${i.id}`;return e`<div class="summary-editor-value"
@dragover=${e=>{e.preventDefault(),e.stopPropagation()}}
@drop=${e=>c.drop(e,`value:${s}:${u}`)}>
<div class="summary-editor-row">
<span class="summary-drag" draggable="true" title=${p("summary.drag")}
@dragstart=${e=>c.dragStart(e,`value:${s}:${u}`)}>⋮⋮</span>
<input type="text" .value=${i.label}
placeholder=${p("summary.value_name")}
data-summary-error=${String(n.attempted&&$?.path===`${m}.label`)}
@input=${e=>c.mutate(t=>{t.blocks[s].values[u].label=e.target.value})} />
<button type="button" title=${p("summary.up")} ?disabled=${0===u}
@click=${()=>c.mutate(e=>{e.blocks[s].values=l(e.blocks[s].values,u,u-1)})}>↑</button>
<button type="button" title=${p("summary.down")} ?disabled=${u===a.values.length-1}
@click=${()=>c.mutate(e=>{e.blocks[s].values=l(e.blocks[s].values,u,u+1)})}>↓</button>
<button type="button" title=${p("btn.delete")}
@click=${()=>c.mutate(e=>{e.blocks[s].values.splice(u,1)})}><ha-icon icon="mdi:delete-outline"></ha-icon></button>
</div>
${v(`${m}.label`)?e`<div class="summary-problem error">${h(v(`${m}.label`))}</div>`:t}
<button class="summary-source" type="button"
data-summary-source-owner=${f}
data-summary-error=${String(n.attempted&&$?.path===`${m}.source`)}
aria-haspopup="listbox" aria-expanded=${y?"true":"false"}
@click=${e=>{e.stopPropagation(),y?c.closeSource():c.openSource(a.id,i.id)}}>
<span>${k}</span><ha-icon icon="mdi:chevron-down"></ha-icon>
</button>
${y&&g?e`<div class="summary-source-picker"
@click=${e=>e.stopPropagation()}
@keydown=${e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),c.closeSource(!0))}}>
<label>${p("summary.search_entities")}</label>
<input type="search" data-summary-picker-search
aria-label=${p("summary.search_entities")} .value=${n.entityFilter}
@input=${e=>c.setDialog({...n,entityFilter:e.target.value})} />
<div class="summary-source-results" role="listbox"
aria-label=${p("summary.select_source")}>
<div class="summary-source-group">${p("summary.system_group")}</div>
${["device_count","total_area","datetime"].map(t=>e`
<button type="button" role="option"
aria-selected=${b===`system:${t}`?"true":"false"}
@click=${()=>c.setSource(a.id,i.id,`system:${t}`)}>
${p(`summary.system.${t}`)}
</button>`)}
${_?e`<div class="summary-source-group">${p("summary.current_source")}</div>
<button type="button" role="option" class="broken" aria-selected="true"
@click=${()=>c.setSource(a.id,i.id,b)}>
${k}
</button>`:t}
<div class="summary-source-group">${p("summary.entities_group")}</div>
${g.entries.map(t=>e`<button type="button" role="option"
aria-selected=${b===`entity:${t.id}`?"true":"false"}
@click=${()=>c.setSource(a.id,i.id,`entity:${t.id}`)}>
<span>${t.label}</span><small>${t.id}</small>
</button>`)}
${g.total?t:e`<div class="summary-empty">${p("summary.no_search_results")}</div>`}
${g.truncated?e`<div class="summary-refine">${p("summary.refine_search")}</div>`:t}
</div>
</div>`:t}
${d?e`<div class="summary-problem ${d.kind}">${h(d)}</div>`:t}
</div>`})}
<button class="btn ghost summary-add" type="button"
?disabled=${a.values.length>=20}
title=${a.values.length>=20?p("summary.limit_values"):""}
@click=${()=>c.mutate(e=>{e.blocks[s].values.push(i())})}>
<ha-icon icon="mdi:plus"></ha-icon>${p("summary.add_value")}
</button>
</div>
</article>`})}
</div>
<button class="btn ghost summary-add" type="button"
?disabled=${n.draft.blocks.length>=10}
title=${n.draft.blocks.length>=10?p("summary.limit_blocks"):""}
@click=${()=>c.mutate(e=>{e.blocks.push(r(p))})}>
<ha-icon icon="mdi:plus"></ha-icon>${p("summary.add_block")}
</button>
${n.error?e`<div class="summary-problem error" role="alert">${n.error}</div>`:t}
${n.conflict?e`<button class="btn ghost summary-reload" type="button"
?disabled=${n.busy} @click=${()=>c.reload()}>
<ha-icon icon="mdi:reload"></ha-icon>${p("summary.reload_current")}
</button>`:t}
`}
</div>
<div class="row" slot="footer">
<button class="btn ghost" data-hp="dialog-cancel"
?disabled=${n.busy} @click=${k}>${p("btn.cancel")}</button>
<span class="spacer"></span>
<button class="btn on" data-hp="dialog-confirm"
?disabled=${n.localOnly?!b||n.busy:!y}
@click=${()=>c.save()}><ha-icon icon="mdi:check"></ha-icon>${p("btn.save")}</button>
</div>
</hp-dialog>`};export{c as renderSummaryPanelEditor};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="81860efb3d03fa8c4235b70dca20201ffdefe227fe06da93ac0c1c3a63d974a1";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-BhViMJTd.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__="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};
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 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="81860efb3d03fa8c4235b70dca20201ffdefe227fe06da93ac0c1c3a63d974a1";import{n as t,b as n}from"./zigbee-topology-Bl8L5Rm5.js";import{F as e}from"./houseplan-card-BhViMJTd.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function g(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function m(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const f=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&p?.(n):c&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await g(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await g(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="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};
+1 -1
View File
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="81860efb3d03fa8c4235b70dca20201ffdefe227fe06da93ac0c1c3a63d974a1";try{await import("./houseplan-assets/houseplan-card-BhViMJTd.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__="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)}
+1 -1
View File
File diff suppressed because one or more lines are too long