mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
fix(dialogs): polish settings layout and radar flow (#602)
Issue: #602 User-Visible: yes
This commit is contained in:
Vendored
+150
-150
@@ -1,312 +1,312 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "a0c3649fc88d2931677043b67e48a3f23956224b0a9808cbf060452ffbf762af",
|
||||
"fingerprint": "f9056c2ea5d96e83f29e2f1e552bce8e9612fcdc71fe9c0789bfe5892b0cc86c",
|
||||
"entry": "houseplan-card.js",
|
||||
"panelEntry": "houseplan-panel.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-CWPQrAJy.js",
|
||||
"houseplan-assets/houseplan-card-Cz83HEMp.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 289851,
|
||||
"initialViewGzipBytes": 290048,
|
||||
"initialPanelFiles": [
|
||||
"houseplan-assets/houseplan-card-CWPQrAJy.js",
|
||||
"houseplan-assets/houseplan-card-Cz83HEMp.js",
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelGzipBytes": 291375,
|
||||
"initialPanelGzipBytes": 291571,
|
||||
"initialPanelOnlyFiles": [
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelOnlyGzipBytes": 2330,
|
||||
"initialPanelOnlyGzipBytes": 2325,
|
||||
"lazyFiles": [
|
||||
"houseplan-assets/backdrop-pick-D2PXrYRn.js",
|
||||
"houseplan-assets/de-Cq0p0mgN.js",
|
||||
"houseplan-assets/editor-DpRkFHeH.js",
|
||||
"houseplan-assets/form-kit.styles-CErkoaQW.js",
|
||||
"houseplan-assets/fr-D5DWk-ow.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CkV-MxkE.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-C6ogfdd9.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-CtrSB_PN.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DCJr06wI.js",
|
||||
"houseplan-assets/iso-scene-render-C0aeaxce.js",
|
||||
"houseplan-assets/live-interaction-runtime-DmWlKMN8.js",
|
||||
"houseplan-assets/pdf-export-asgntFGl.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-C9I_hZrx.js",
|
||||
"houseplan-assets/zigbee-topology-B3YARiuI.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Des3vZFG.js"
|
||||
"houseplan-assets/backdrop-pick-Onl3OkIL.js",
|
||||
"houseplan-assets/de-CjHNoSUF.js",
|
||||
"houseplan-assets/editor-D-s5ryj5.js",
|
||||
"houseplan-assets/form-kit.styles-FzwmfPCr.js",
|
||||
"houseplan-assets/fr-Dvji6wRV.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-e8zBoMvR.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-DQTpgWEG.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-Cs6jfiOu.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-CV5O3irH.js",
|
||||
"houseplan-assets/iso-scene-render-BvmFOJPp.js",
|
||||
"houseplan-assets/live-interaction-runtime-CFGABASM.js",
|
||||
"houseplan-assets/pdf-export-CzA4ULvw.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DfviyO6_.js",
|
||||
"houseplan-assets/zigbee-topology-CP-xBRdy.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-ZuqmFFRh.js"
|
||||
],
|
||||
"lazyGzipBytes": 459674,
|
||||
"lazyGzipBytes": 459462,
|
||||
"lazyEditorFiles": [
|
||||
"houseplan-assets/backdrop-pick-D2PXrYRn.js",
|
||||
"houseplan-assets/editor-DpRkFHeH.js",
|
||||
"houseplan-assets/form-kit.styles-CErkoaQW.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CkV-MxkE.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-C6ogfdd9.js",
|
||||
"houseplan-assets/zigbee-topology-B3YARiuI.js"
|
||||
"houseplan-assets/backdrop-pick-Onl3OkIL.js",
|
||||
"houseplan-assets/editor-D-s5ryj5.js",
|
||||
"houseplan-assets/form-kit.styles-FzwmfPCr.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-e8zBoMvR.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-DQTpgWEG.js",
|
||||
"houseplan-assets/zigbee-topology-CP-xBRdy.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 243082,
|
||||
"lazyEditorGzipBytes": 242941,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick-D2PXrYRn.js",
|
||||
"houseplan-assets/form-kit.styles-CErkoaQW.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-CtrSB_PN.js"
|
||||
"houseplan-assets/backdrop-pick-Onl3OkIL.js",
|
||||
"houseplan-assets/form-kit.styles-FzwmfPCr.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-Cs6jfiOu.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 33678,
|
||||
"lazyOnboardingGzipBytes": 33534,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-Cq0p0mgN.js",
|
||||
"houseplan-assets/fr-D5DWk-ow.js"
|
||||
"houseplan-assets/de-CjHNoSUF.js",
|
||||
"houseplan-assets/fr-Dvji6wRV.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 55391,
|
||||
"lazyLocaleGzipBytes": 55353,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/iso-scene-render-C0aeaxce.js"
|
||||
"houseplan-assets/iso-scene-render-BvmFOJPp.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 17645,
|
||||
"lazyIsometricGzipBytes": 17643,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-CkV-MxkE.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-e8zBoMvR.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 16941,
|
||||
"lazyFurnitureArtGzipBytes": 16944,
|
||||
"lazyPdfFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-CkV-MxkE.js",
|
||||
"houseplan-assets/pdf-export-asgntFGl.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-e8zBoMvR.js",
|
||||
"houseplan-assets/pdf-export-CzA4ULvw.js"
|
||||
],
|
||||
"lazyPdfGzipBytes": 126818,
|
||||
"lazyPdfGzipBytes": 126819,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick-D2PXrYRn.js",
|
||||
"sha256": "f55b86796758ab8ad2875e94c68837cec39de8c2a2d50c763a45a05da8ed1a27",
|
||||
"rawBytes": 74674,
|
||||
"gzipBytes": 24126,
|
||||
"path": "houseplan-assets/backdrop-pick-Onl3OkIL.js",
|
||||
"sha256": "e50a21b742599f1e2172c3dbab23776a65d47cd2be335a97813a9451f3a2ed1b",
|
||||
"rawBytes": 74107,
|
||||
"gzipBytes": 23926,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/form-kit.styles-CErkoaQW.js",
|
||||
"houseplan-assets/houseplan-card-CWPQrAJy.js"
|
||||
"houseplan-assets/form-kit.styles-FzwmfPCr.js",
|
||||
"houseplan-assets/houseplan-card-Cz83HEMp.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-Cq0p0mgN.js",
|
||||
"sha256": "66c8405855addf7bef4ee1d6fe4707ef37c26f0af7e4cb4d015c4e41a8432beb",
|
||||
"rawBytes": 92513,
|
||||
"gzipBytes": 27937,
|
||||
"path": "houseplan-assets/de-CjHNoSUF.js",
|
||||
"sha256": "7f42ab15db23898827376069c799c62c5e0a260cec50768605ce6b846e82abb1",
|
||||
"rawBytes": 92482,
|
||||
"gzipBytes": 27916,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-DpRkFHeH.js",
|
||||
"sha256": "8987f0122c891a98043b41d2b6d56a35a521964903d3fbf8fd6fc9005f86365c",
|
||||
"path": "houseplan-assets/editor-D-s5ryj5.js",
|
||||
"sha256": "cbe0ff6fcd3e99c521a4ca1b528f3eecbf589de267fbb5f34513d9173c7f7ef0",
|
||||
"rawBytes": 3833,
|
||||
"gzipBytes": 1586,
|
||||
"gzipBytes": 1583,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-CWPQrAJy.js"
|
||||
"houseplan-assets/houseplan-card-Cz83HEMp.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/form-kit.styles-CErkoaQW.js",
|
||||
"sha256": "218978f3b021ccb8cb5a4d9415f94a34a1683cda9deef84526406ee33a389ed9",
|
||||
"rawBytes": 23544,
|
||||
"gzipBytes": 4717,
|
||||
"path": "houseplan-assets/form-kit.styles-FzwmfPCr.js",
|
||||
"sha256": "67c35256f4c3f3ca12776bc70bf8649c319596091bb83d5923b0dfbc9b91ab03",
|
||||
"rawBytes": 23946,
|
||||
"gzipBytes": 4779,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-D5DWk-ow.js",
|
||||
"sha256": "aeb8ed90d66ffb69c2d8496d4c4c16fa3465580ac9c9dd8a017b42300d20bc96",
|
||||
"rawBytes": 94824,
|
||||
"gzipBytes": 27454,
|
||||
"path": "houseplan-assets/fr-Dvji6wRV.js",
|
||||
"sha256": "19c368fbeeb3a18ae47f759f27584cd0afd835a5b07e0ef80fecbf152c18b08f",
|
||||
"rawBytes": 94786,
|
||||
"gzipBytes": 27437,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-CkV-MxkE.js",
|
||||
"sha256": "eedc2fad1472be76f817428d220ef4e828c1fcc97427a6ba20612573daa01694",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-e8zBoMvR.js",
|
||||
"sha256": "57fd9f9f7514d008bbe25b54c94d50aeb84daca5e5e3e022e4b4520689053459",
|
||||
"rawBytes": 52033,
|
||||
"gzipBytes": 16941,
|
||||
"gzipBytes": 16944,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-CWPQrAJy.js",
|
||||
"sha256": "e285583eaab36e31cdf277be5ca9356b069233fa1afb78b4c3f5247d31e14468",
|
||||
"rawBytes": 1027208,
|
||||
"gzipBytes": 289045,
|
||||
"path": "houseplan-assets/houseplan-card-Cz83HEMp.js",
|
||||
"sha256": "df633a578a2922e534e5f2e4b6134228d3a8170539f057ab3e428140059d4729",
|
||||
"rawBytes": 1028686,
|
||||
"gzipBytes": 289246,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/de-Cq0p0mgN.js",
|
||||
"houseplan-assets/editor-DpRkFHeH.js",
|
||||
"houseplan-assets/fr-D5DWk-ow.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CkV-MxkE.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-C6ogfdd9.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-CtrSB_PN.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DCJr06wI.js",
|
||||
"houseplan-assets/iso-scene-render-C0aeaxce.js",
|
||||
"houseplan-assets/live-interaction-runtime-DmWlKMN8.js",
|
||||
"houseplan-assets/pdf-export-asgntFGl.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-C9I_hZrx.js"
|
||||
"houseplan-assets/de-CjHNoSUF.js",
|
||||
"houseplan-assets/editor-D-s5ryj5.js",
|
||||
"houseplan-assets/fr-Dvji6wRV.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-e8zBoMvR.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-DQTpgWEG.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-Cs6jfiOu.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-CV5O3irH.js",
|
||||
"houseplan-assets/iso-scene-render-BvmFOJPp.js",
|
||||
"houseplan-assets/live-interaction-runtime-CFGABASM.js",
|
||||
"houseplan-assets/pdf-export-CzA4ULvw.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DfviyO6_.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-C6ogfdd9.js",
|
||||
"sha256": "ffb354ffbc0e8059e5cabc588414a48d5cf3b86973a5448850b46542aaeef10e",
|
||||
"rawBytes": 677322,
|
||||
"gzipBytes": 188283,
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-DQTpgWEG.js",
|
||||
"sha256": "62ff920d6394dbe2ff7782a1a29588162d6f1fc545fdf3d853d55e11580b87cb",
|
||||
"rawBytes": 676964,
|
||||
"gzipBytes": 188280,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-D2PXrYRn.js",
|
||||
"houseplan-assets/form-kit.styles-CErkoaQW.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CkV-MxkE.js",
|
||||
"houseplan-assets/houseplan-card-CWPQrAJy.js",
|
||||
"houseplan-assets/zigbee-topology-B3YARiuI.js"
|
||||
"houseplan-assets/backdrop-pick-Onl3OkIL.js",
|
||||
"houseplan-assets/form-kit.styles-FzwmfPCr.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-e8zBoMvR.js",
|
||||
"houseplan-assets/houseplan-card-Cz83HEMp.js",
|
||||
"houseplan-assets/zigbee-topology-CP-xBRdy.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/zigbee-topology-runtime-Des3vZFG.js"
|
||||
"houseplan-assets/zigbee-topology-runtime-ZuqmFFRh.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-CtrSB_PN.js",
|
||||
"sha256": "81631b60198a3cbba28de78166248e1c7f8847687d601e6fb5c1b871279d214b",
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-Cs6jfiOu.js",
|
||||
"sha256": "1d7a10813fe562a4c081aa8cd58731808656e9fae90d72034f8f38d66d31005d",
|
||||
"rawBytes": 15667,
|
||||
"gzipBytes": 4835,
|
||||
"gzipBytes": 4829,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-D2PXrYRn.js",
|
||||
"houseplan-assets/form-kit.styles-CErkoaQW.js",
|
||||
"houseplan-assets/houseplan-card-CWPQrAJy.js"
|
||||
"houseplan-assets/backdrop-pick-Onl3OkIL.js",
|
||||
"houseplan-assets/form-kit.styles-FzwmfPCr.js",
|
||||
"houseplan-assets/houseplan-card-Cz83HEMp.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-DCJr06wI.js",
|
||||
"sha256": "cc17e0e458898748ae2f4659e7b212ee47ed8560fafb1d1443249f2ed156c27e",
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-CV5O3irH.js",
|
||||
"sha256": "a54de33f70f996089a603054fa238254d6887f7e8c1e4b223c14c81bf2e4e26c",
|
||||
"rawBytes": 10759,
|
||||
"gzipBytes": 3690,
|
||||
"gzipBytes": 3684,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-CWPQrAJy.js",
|
||||
"houseplan-assets/zigbee-topology-B3YARiuI.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Des3vZFG.js"
|
||||
"houseplan-assets/houseplan-card-Cz83HEMp.js",
|
||||
"houseplan-assets/zigbee-topology-CP-xBRdy.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-ZuqmFFRh.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-C0aeaxce.js",
|
||||
"sha256": "5b1549e14d741172fc4adfcfb9e20b34659a45c838b2321f23ae2525135ed6db",
|
||||
"path": "houseplan-assets/iso-scene-render-BvmFOJPp.js",
|
||||
"sha256": "c19aa259653193a10c15a10c52735b5a51e46a4cda75a51891987f9a46ec8af1",
|
||||
"rawBytes": 51983,
|
||||
"gzipBytes": 17645,
|
||||
"gzipBytes": 17643,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-CWPQrAJy.js"
|
||||
"houseplan-assets/houseplan-card-Cz83HEMp.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-DmWlKMN8.js",
|
||||
"sha256": "ee152dec5633a8c2e4d9e286cae4ada38efdbfdfd290c7859ea7c38d9ec3f824",
|
||||
"path": "houseplan-assets/live-interaction-runtime-CFGABASM.js",
|
||||
"sha256": "68944dd19963f4f2c04aff1ba4df5b3c17b73e58d778d918128cbf6828eeeeaa",
|
||||
"rawBytes": 8216,
|
||||
"gzipBytes": 3212,
|
||||
"gzipBytes": 3205,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-CWPQrAJy.js"
|
||||
"houseplan-assets/houseplan-card-Cz83HEMp.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/pdf-export-asgntFGl.js",
|
||||
"sha256": "7b98bdf98059f7a5f77e5b8ef964c3ff6d14d0d949467cbd0fc8843d700f4fde",
|
||||
"path": "houseplan-assets/pdf-export-CzA4ULvw.js",
|
||||
"sha256": "0391ebd5afb7452505c5affcdd89809f641af17362fbb6a56fab5185b6c16379",
|
||||
"rawBytes": 236247,
|
||||
"gzipBytes": 109877,
|
||||
"gzipBytes": 109875,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/furniture-plan-art.generated-CkV-MxkE.js",
|
||||
"houseplan-assets/houseplan-card-CWPQrAJy.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-e8zBoMvR.js",
|
||||
"houseplan-assets/houseplan-card-Cz83HEMp.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-editor-DFZctvf5.js",
|
||||
"sha256": "53d68034ba5e08f660409526a2b124cc3537eed5ad81914c7221537c5afd867d",
|
||||
"rawBytes": 14867,
|
||||
"gzipBytes": 3430,
|
||||
"path": "houseplan-assets/summary-panel-editor-B8hG4vob.js",
|
||||
"sha256": "db137401a6cf359a5bbd1c3025483d9c6cdf59ce86e414fd7fa4d9fbaf15f638",
|
||||
"rawBytes": 14862,
|
||||
"gzipBytes": 3422,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/form-kit.styles-CErkoaQW.js",
|
||||
"houseplan-assets/houseplan-card-CWPQrAJy.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-C9I_hZrx.js"
|
||||
"houseplan-assets/form-kit.styles-FzwmfPCr.js",
|
||||
"houseplan-assets/houseplan-card-Cz83HEMp.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DfviyO6_.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-metrics-CjOXCqmR.js",
|
||||
"sha256": "941001433becc2912a5850dfb17042e984f024d202ebcf3f6c8f81b29e4f9b27",
|
||||
"path": "houseplan-assets/summary-panel-metrics-BClFgwsP.js",
|
||||
"sha256": "ecfcf8ac6516b522be42476d82ef9beab68afeab9cef5d3aca47d9d0b29b634f",
|
||||
"rawBytes": 2611,
|
||||
"gzipBytes": 1310,
|
||||
"gzipBytes": 1307,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-CWPQrAJy.js"
|
||||
"houseplan-assets/houseplan-card-Cz83HEMp.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-C9I_hZrx.js",
|
||||
"sha256": "a2192117a0b1ebbe42bfb93ded533777ddb7ab8ebe1ac521614d77f8bc985d07",
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-DfviyO6_.js",
|
||||
"sha256": "a1e17e86e992d43f10815979f361a0281994d6d412603024949a13763546badf",
|
||||
"rawBytes": 72733,
|
||||
"gzipBytes": 20175,
|
||||
"gzipBytes": 20169,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/form-kit.styles-CErkoaQW.js",
|
||||
"houseplan-assets/houseplan-card-CWPQrAJy.js"
|
||||
"houseplan-assets/form-kit.styles-FzwmfPCr.js",
|
||||
"houseplan-assets/houseplan-card-Cz83HEMp.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/summary-panel-editor-DFZctvf5.js",
|
||||
"houseplan-assets/summary-panel-metrics-CjOXCqmR.js"
|
||||
"houseplan-assets/summary-panel-editor-B8hG4vob.js",
|
||||
"houseplan-assets/summary-panel-metrics-BClFgwsP.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-B3YARiuI.js",
|
||||
"sha256": "e1dec1492914b3ec0677a204d47332ec96c3e5d7cc3d3903fc220cd45d26d7d0",
|
||||
"path": "houseplan-assets/zigbee-topology-CP-xBRdy.js",
|
||||
"sha256": "67ca4f4b12df4bfdd8dae8c645ca3b7f1cd9c7ad1197f71cb6588c010baef1a9",
|
||||
"rawBytes": 18962,
|
||||
"gzipBytes": 7429,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-CWPQrAJy.js"
|
||||
"houseplan-assets/houseplan-card-Cz83HEMp.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-Des3vZFG.js",
|
||||
"sha256": "ba5dde77850ec3e0fd16db42d6c16cdc97f2c7952e5b338999998131033293d3",
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-ZuqmFFRh.js",
|
||||
"sha256": "d26ab567fdb0430cba2296db583d6da91d789b13d15796c6d7a6f4d850d80f86",
|
||||
"rawBytes": 3942,
|
||||
"gzipBytes": 1767,
|
||||
"gzipBytes": 1763,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-CWPQrAJy.js",
|
||||
"houseplan-assets/zigbee-topology-B3YARiuI.js"
|
||||
"houseplan-assets/houseplan-card-Cz83HEMp.js",
|
||||
"houseplan-assets/zigbee-topology-CP-xBRdy.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "a9585d1c2b78ad5ddec6140965f2cc6455d2e7752aae43f2838d6d9a9028f213",
|
||||
"sha256": "3c3fd8133d83bf1c28173f8fea61e3375c49edb6a2cc8f67ed3dd2c967f51aef",
|
||||
"rawBytes": 1205,
|
||||
"gzipBytes": 806,
|
||||
"gzipBytes": 802,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-CWPQrAJy.js"
|
||||
"houseplan-assets/houseplan-card-Cz83HEMp.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-panel.js",
|
||||
"sha256": "ebf22cda3026070e462616988363f28d152aad76fd057249214adeec95e3247f",
|
||||
"sha256": "724ca9345da10320040f34d81f2c4a23e9fad87ba43a4f69f7afefc3b80b1709",
|
||||
"rawBytes": 6165,
|
||||
"gzipBytes": 2330,
|
||||
"gzipBytes": 2325,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-CWPQrAJy.js"
|
||||
"houseplan-assets/houseplan-card-Cz83HEMp.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
}
|
||||
|
||||
-251
File diff suppressed because one or more lines are too long
+255
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+3
-3
@@ -1,14 +1,14 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="a0c3649fc88d2931677043b67e48a3f23956224b0a9808cbf060452ffbf762af";import{az as e,l as o,aC as t,e7 as s,A as a,e8 as i,e9 as l,ea as n,E as r,c}from"./houseplan-card-CWPQrAJy.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),u=e=>c`<ha-form
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f9056c2ea5d96e83f29e2f1e552bce8e9612fcdc71fe9c0789bfe5892b0cc86c";import{az as e,l as o,aC as t,e7 as s,A as a,e8 as i,e9 as l,ea as n,E as r,c}from"./houseplan-card-Cz83HEMp.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=>f[e.name]||e.name}
|
||||
@value-changed=${this._valueChanged}
|
||||
></ha-form>`;return c`
|
||||
${u(h.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}
|
||||
${u(h.slice(3))}
|
||||
${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
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+5
-5
File diff suppressed because one or more lines are too long
+107
-114
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="a0c3649fc88d2931677043b67e48a3f23956224b0a9808cbf060452ffbf762af";import{l as t,bq as s,A as e,aC as o,c as a,g as i,cE as l,cF as h,cG as n,bn as r,cH as c,cM as p,cI as d,cJ as _,cK as u,cL as g,cN as m,cO as f}from"./houseplan-card-CWPQrAJy.js";import{D as b,C as v,E as y,G as w,H as D,I as $,J as S,v as C}from"./backdrop-pick-D2PXrYRn.js";import"./form-kit.styles-CErkoaQW.js";const k="a0c3649fc88d2931677043b67e48a3f23956224b0a9808cbf060452ffbf762af";class F{constructor(t){this.host=t,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(i){const l=`${i}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,i)&&s(h,l)?a`<hp-help data-help-key=${i}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f9056c2ea5d96e83f29e2f1e552bce8e9612fcdc71fe9c0789bfe5892b0cc86c";import{l as t,bq as s,A as e,aC as o,c as a,g as i,cE as l,cF as h,cG as n,bn as r,cH as c,cM as p,cI as d,cJ as _,cK as u,cL as g,cN as m,cO as f}from"./houseplan-card-Cz83HEMp.js";import{D as b,C as v,E as y,G as w,H as D,I as $,J as S,v as C}from"./backdrop-pick-Onl3OkIL.js";import"./form-kit.styles-FzwmfPCr.js";const k="f9056c2ea5d96e83f29e2f1e552bce8e9612fcdc71fe9c0789bfe5892b0cc86c";class F{constructor(t){this.host=t,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(i){const l=`${i}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,i)&&s(h,l)?a`<hp-help data-help-key=${i}
|
||||
.text=${o(h,i)} .ariaLabel=${o(h,l)}></hp-help>`:e}_openSpaceDialog(t,s){if(!this.host._serverStorage||!this.host._serverCfg)return void this.host._showToast(this.host._t("toast.integration_missing"));if("edit"===t){const e=this.host._serverCfg.spaces.find(t=>t.id===s);if(!e)return;const o=i(e),a=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?l(e.settings.custom_fill):null,p="none"===o.fill?{...a||h,a:0}:a;return void(this.host._spaceDialog={mode:t,spaceId:s,title:e.title,planUrl:e.plan_url||null,planFile:null,source:e.plan_url?"file":"draw",showBorders:o.showBorders,showNames:o.showNames,zeroWallStyle:c(e),displayTouched:!0,hideDecor:o.hideDecor,hideOpenings:o.hideOpenings,roomColor:o.color,roomOpacity:o.opacity,fillMode:"none"===o.fill?"custom":o.fill,customFill:p,glowEnabled:o.glow,bgColor:o.bgColor,bgMode:"static"===e.settings?.bg_mode||"daynight"===e.settings?.bg_mode?e.settings.bg_mode:null,northDeg:r({},e.settings),sunRays:"boolean"==typeof e.settings?.sun_rays?e.settings.sun_rays:null,tempMin:o.tempMin,tempMax:o.tempMax,showLqi:o.showLqi??this.host._config?.show_signal??!0,cardFontScale:o.cardFontScale,labelTemp:o.labelTemp,labelHum:o.labelHum,labelLqi:o.labelLqi,labelLight:o.labelLight,cellCm:Number(e.cell_cm)>0?Number(e.cell_cm):5,cellCmInput:n(Number(e.cell_cm)>0?Number(e.cell_cm):5,this.host._imperial),cellCmTouched:!1,busy:!1})}const e=p(this.host._imperial);this.host._spaceDialog={mode:t,title:"",planUrl:null,planFile:null,...m(),hideDecor:!1,hideOpenings:!1,zeroWallStyle:"dashed",roomColor:g,roomOpacity:u,fillMode:"custom",customFill:{...h,a:0},glowEnabled:!0,bgColor:null,bgMode:"daynight",northDeg:null,sunRays:null,tempMin:_,tempMax:d,showLqi:this.host._config?.show_signal??!0,cardFontScale:1,labelTemp:!1,labelHum:!1,labelLqi:!1,labelLight:!1,cellCm:e,cellCmInput:n(e,this.host._imperial),cellCmTouched:!1,busy:!1},b(this.host,this.host._spaceDialog)}async _pickPlanFile(t){const s=t.target,e=s.files?.[0];if(!e||!this.host._spaceDialog)return;s.value="";const o=await v(e);if("reject"===o.kind)return void this.host._showToast(this.host._t("toast.plan_formats"));if("guard"===o.kind)return void(this.host._backdropGuard=o.state);const a=await y(e,o.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:a})}_renderBackdropGuard(){return w(this.host,t=>{this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:t})},()=>{this.host._backdropGuard=null},this.host.hass)??e}_useServerPlan(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,planUrl:t,planFile:null,pickSaved:!1,savedAspect:void 0},this.host._aspectJob=this._readPlanAspect(t))}async _readPlanAspect(t){for(let s=0;s<40;s++){const s=this.host._display(t);if(s){const e=await new Promise(t=>{const e=new Image;e.onload=()=>t(e.naturalWidth&&e.naturalHeight?e.naturalWidth/e.naturalHeight:0),e.onerror=()=>t(0),e.src=s}),o=this.host._spaceDialog;return o&&o.planUrl===t&&Number.isFinite(e)&&e>0?(this.host._spaceDialog={...o,savedAspect:e},e):0}if(await new Promise(t=>setTimeout(t,150)),this.host._spaceDialog?.planUrl!==t)return 0}return 0}async _deleteServerPlan(t){const s=this.host._spaceDialog,e=s?.saved?.find(s=>s.name===t);if(!s||!e||e.used_by.length||e.url===s.planUrl)return;const o=await this.host._confirmDanger({key:"delete-plan",kind:"destructive",title:this.host._t("confirm.delete_plan_title"),message:this.host._t("confirm.delete_plan_body"),objectName:t,confirmLabel:this.host._t("btn.delete"),cancelLabel:this.host._t("btn.cancel")}),a=this.host._spaceDialog,i=a?.saved?.find(s=>s.name===t);if(o&&a&&i&&i.url===e.url&&i.modified===e.modified&&!i.used_by.length&&i.url!==a.planUrl)try{await this.host.hass.callWS({type:"houseplan/plans/delete",name:t});const s=this.host._spaceDialog;s?.saved&&(this.host._spaceDialog={...s,saved:s.saved.filter(s=>s.name!==t)})}catch(t){this.host._showToast(this.host._t("toast.plan_delete_failed",{err:this.host._errText(t)}))}}_renderServerPlans(t){if(t.savedBusy)return a`<div class="savedplans muted">${this.host._t("space.loading")}</div>`;const s=t.saved||[];if(!s.length)return a`<div class="savedplans muted">${this.host._t("space.no_saved")}</div>`;return a`<div class="savedplans">
|
||||
${s.map(s=>{return a`
|
||||
<div class="savedplan ${s.url===t.planUrl?"cur":""}">
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
+52
-52
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="a0c3649fc88d2931677043b67e48a3f23956224b0a9808cbf060452ffbf762af";import{c as a,A as s}from"./houseplan-card-CWPQrAJy.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-C9I_hZrx.js";import"./form-kit.styles-CErkoaQW.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">
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f9056c2ea5d96e83f29e2f1e552bce8e9612fcdc71fe9c0789bfe5892b0cc86c";import{c as a,A as e}from"./houseplan-card-Cz83HEMp.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-DfviyO6_.js";import"./form-kit.styles-FzwmfPCr.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"
|
||||
@@ -10,31 +10,31 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="a0c3649fc88d2931677043b67e48a3f23956
|
||||
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>`:s}
|
||||
${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?s:a`<div class="summary-field">
|
||||
${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(s=>{s.title=a.target.value})} />
|
||||
${v("title")?a`<div class="summary-problem error">${h(v("title"))}</div>`:s}
|
||||
@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?s:a`<label class="summary-switch" for="summary-mobile-show">
|
||||
${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(s=>{s.show_on_mobile=a.target.checked})} /></label>`}
|
||||
@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>`:s}
|
||||
${m.storageUnavailable?a`<div class="summary-problem warning">${b("summary.storage_unavailable")}</div>`:e}
|
||||
</section>
|
||||
${d.localOnly?s:a`
|
||||
${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>
|
||||
@@ -42,7 +42,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="a0c3649fc88d2931677043b67e48a3f23956
|
||||
<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((e,t)=>{const u=`blocks.${t}`,n=v(`${u}.scope`);return a`<article class="summary-editor-block"
|
||||
${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">
|
||||
@@ -57,40 +57,40 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="a0c3649fc88d2931677043b67e48a3f23956
|
||||
?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=${e.title}
|
||||
<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(s=>{s.blocks[t].title=a.target.value})} />
|
||||
@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(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}
|
||||
?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=${e.scope.type} ?disabled=${d.busy}
|
||||
<select .value=${s.scope.type} ?disabled=${d.busy}
|
||||
aria-label=${b("summary.scope")}
|
||||
@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>
|
||||
@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"===e.scope.type?a`<select .value=${e.scope.space_id}
|
||||
${"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(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}
|
||||
@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>`:s}
|
||||
${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">
|
||||
${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"
|
||||
${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")}
|
||||
@@ -101,7 +101,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="a0c3649fc88d2931677043b67e48a3f23956
|
||||
@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===e.values.length-1||d.busy}
|
||||
?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">
|
||||
@@ -109,8 +109,8 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="a0c3649fc88d2931677043b67e48a3f23956
|
||||
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(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}
|
||||
@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"
|
||||
@@ -119,9 +119,9 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="a0c3649fc88d2931677043b67e48a3f23956
|
||||
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(e.id,i.id)}}>
|
||||
@click=${a=>{a.stopPropagation(),k?m.closeSource():m.openSource(s.id,i.id)}}>
|
||||
<span class="summary-source-caption"><strong>${g}</strong>
|
||||
${_?a`<small>${_}</small>`:s}</span>
|
||||
${_?a`<small>${_}</small>`:e}</span>
|
||||
${l("chevron")}
|
||||
</button>
|
||||
${k&&f?a`<div class="summary-source-picker"
|
||||
@@ -135,39 +135,39 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="a0c3649fc88d2931677043b67e48a3f23956
|
||||
<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(s=>a`
|
||||
${["device_count","total_area","datetime"].map(e=>a`
|
||||
<button type="button" role="option"
|
||||
?disabled=${d.busy}
|
||||
aria-selected=${p===`system:${s}`?"true":"false"}
|
||||
@click=${()=>m.setSource(e.id,i.id,`system:${s}`)}>
|
||||
${b(`summary.system.${s}`)}
|
||||
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(e.id,i.id,p)}>
|
||||
@click=${()=>m.setSource(s.id,i.id,p)}>
|
||||
${g}
|
||||
</button>`:s}
|
||||
</button>`:e}
|
||||
<div class="summary-source-group">${b("summary.entities_group")}</div>
|
||||
${f.entries.map(s=>a`<button type="button" role="option"
|
||||
${f.entries.map(e=>a`<button type="button" role="option"
|
||||
?disabled=${d.busy}
|
||||
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>
|
||||
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?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}
|
||||
${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>`:s}
|
||||
${$?a`<div class="summary-problem ${$.kind}">${h($)}</div>`:s}
|
||||
</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=${e.values.length>=20||d.busy}
|
||||
title=${e.values.length>=20?b("summary.limit_values"):""}
|
||||
?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>
|
||||
@@ -186,11 +186,11 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="a0c3649fc88d2931677043b67e48a3f23956
|
||||
${l("plus")}${b("summary.add_block")}
|
||||
</button>
|
||||
</section>
|
||||
${d.error?a`<div class="summary-problem error" role="alert">${d.error}</div>`:s}
|
||||
${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>`:s}
|
||||
</button>`:e}
|
||||
`}
|
||||
</div>
|
||||
<div class="row summary-editor-footer" slot="footer">
|
||||
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="a0c3649fc88d2931677043b67e48a3f23956224b0a9808cbf060452ffbf762af";import{ed as e,J as t,aX as n,H as i,aa as o,a8 as r,bO as a,bN as s,aW as l,aV as c,aY as u,ee as d,ef as f,bQ as m,eg as g}from"./houseplan-card-CWPQrAJy.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),a=i.binding.slice(o+1),s="device"===r?e.registry.devices?.[a]:null,l="entity"===r?e.registry.entities?.[a]:null,c="device"===r?a:l?.device_id,u="device"===r?s?.area_id:l?.area_id||c&&e.registry.devices?.[c]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;c&&e.registry.devices?.[c]&&e.spaceIds.has(f)&&(!n.devices.has(c)||"entity"===r&&n.liveEntities.has(a))&&t.add(c)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=l(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:c(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*h(l,c,u=_){try{let d=0;for(const f of c){const c=l.spaces.find(e=>String(e?.id)===f.id);if(!c)continue;const m=e(c,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const s=t(e);if(!s)continue;const l=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||s;v=y(v,a(l,m.physicalBodies)),yield}const _=m.cellCm/o;d+=s(v)*_*_/1e4}return d}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function b(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=d(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,p as totalCleanFloorAreaM2};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f9056c2ea5d96e83f29e2f1e552bce8e9612fcdc71fe9c0789bfe5892b0cc86c";import{ed as e,J as t,aX as n,H as i,aa as o,a8 as r,bO as s,bN as a,aW as c,aV as l,aY as u,ee as d,ef as f,bQ as m,eg as g}from"./houseplan-card-Cz83HEMp.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,c="entity"===r?e.registry.entities?.[s]:null,l="device"===r?s:c?.device_id,u="device"===r?a?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===r&&n.liveEntities.has(s))&&t.add(l)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=c(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*h(c,l,u=_){try{let d=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(c,m.physicalBodies)),yield}const _=m.cellCm/o;d+=a(v)*_*_/1e4}return d}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function b(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=d(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,p as totalCleanFloorAreaM2};
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="a0c3649fc88d2931677043b67e48a3f23956224b0a9808cbf060452ffbf762af";import{n as t,b as n}from"./zigbee-topology-B3YARiuI.js";import{aI as e}from"./houseplan-card-CWPQrAJy.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function m(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function g(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const f=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&p?.(n):c&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await m(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f9056c2ea5d96e83f29e2f1e552bce8e9612fcdc71fe9c0789bfe5892b0cc86c";import{n as t,b as n}from"./zigbee-topology-CP-xBRdy.js";import{aI as e}from"./houseplan-card-Cz83HEMp.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function m(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function g(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const f=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&p?.(n):c&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await m(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="a0c3649fc88d2931677043b67e48a3f23956224b0a9808cbf060452ffbf762af";try{await import("./houseplan-assets/houseplan-card-CWPQrAJy.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__="f9056c2ea5d96e83f29e2f1e552bce8e9612fcdc71fe9c0789bfe5892b0cc86c";try{await import("./houseplan-assets/houseplan-card-Cz83HEMp.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)}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user