mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
fix: the clean-floor total is computed in per-room slices, not one long task
Moving the aggregate out of render fixed the first frame, but the work itself was still one uninterrupted ~1.5 s task on the large-house fixture — the interface stayed frozen, just a moment later, which is the same symptom the issue reports. cleanFloorAreaSteps yields after every room; the runtime advances it with an 8 ms budget per frame and reschedules until it finishes, so no slice outlives a frame and the skeletons stay until the number is ready. The smoke now watches longtask entries for the whole show, not only the first frame: a single long task while the values are computed fails it. Issue: #509 User-Visible: no
This commit is contained in:
@@ -1,307 +1,307 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "124fb0df371c29dfe42379078c6da169f3d9b99562e1e922b8307fa9c6752bd4",
|
||||
"fingerprint": "5c1b1c61b738b69334f9555c60ee17aa874c642234b0dcca6c358552357c0daf",
|
||||
"entry": "houseplan-card.js",
|
||||
"panelEntry": "houseplan-panel.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js",
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 298989,
|
||||
"initialViewGzipBytes": 298992,
|
||||
"initialPanelFiles": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js",
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js",
|
||||
"houseplan-card.js",
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelGzipBytes": 301295,
|
||||
"initialPanelGzipBytes": 301298,
|
||||
"initialPanelOnlyFiles": [
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelOnlyGzipBytes": 2306,
|
||||
"lazyFiles": [
|
||||
"houseplan-assets/backdrop-pick-CfkYRcXV.js",
|
||||
"houseplan-assets/de-C0_-94h5.js",
|
||||
"houseplan-assets/editor-Cx3qhTny.js",
|
||||
"houseplan-assets/fr-B3kRJHIg.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-Yh429YO5.js",
|
||||
"houseplan-assets/guard-Ccxtbz5-.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-daXn-qEd.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-TxrqWs69.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-BsupAjYt.js",
|
||||
"houseplan-assets/iso-scene-render-fC5qC2z8.js",
|
||||
"houseplan-assets/live-interaction-runtime-C0AGopGh.js",
|
||||
"houseplan-assets/pdf-export-BvVr5Fm8.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-Bw4D2-JH.js",
|
||||
"houseplan-assets/zigbee-topology-CLVlJ-cG.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-eE629XsS.js"
|
||||
"houseplan-assets/backdrop-pick-BulfpEVa.js",
|
||||
"houseplan-assets/de-DBUfK9Nr.js",
|
||||
"houseplan-assets/editor-0keqnMJ7.js",
|
||||
"houseplan-assets/fr-ZUqkYkE7.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BQsXbVMw.js",
|
||||
"houseplan-assets/guard-CHvmsSf0.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CydVVblm.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BRKtwSzg.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DcQjr8ux.js",
|
||||
"houseplan-assets/iso-scene-render-Dj9V5jm8.js",
|
||||
"houseplan-assets/live-interaction-runtime-B2sEacd_.js",
|
||||
"houseplan-assets/pdf-export-DEpE7VK0.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CPSfTezy.js",
|
||||
"houseplan-assets/zigbee-topology-IW8V-F7u.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-CrPRm7sL.js"
|
||||
],
|
||||
"lazyGzipBytes": 418074,
|
||||
"lazyGzipBytes": 418227,
|
||||
"lazyEditorFiles": [
|
||||
"houseplan-assets/backdrop-pick-CfkYRcXV.js",
|
||||
"houseplan-assets/editor-Cx3qhTny.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-Yh429YO5.js",
|
||||
"houseplan-assets/guard-Ccxtbz5-.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-daXn-qEd.js",
|
||||
"houseplan-assets/zigbee-topology-CLVlJ-cG.js"
|
||||
"houseplan-assets/backdrop-pick-BulfpEVa.js",
|
||||
"houseplan-assets/editor-0keqnMJ7.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BQsXbVMw.js",
|
||||
"houseplan-assets/guard-CHvmsSf0.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CydVVblm.js",
|
||||
"houseplan-assets/zigbee-topology-IW8V-F7u.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 205645,
|
||||
"lazyEditorGzipBytes": 205644,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick-CfkYRcXV.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-TxrqWs69.js"
|
||||
"houseplan-assets/backdrop-pick-BulfpEVa.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BRKtwSzg.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 14154,
|
||||
"lazyOnboardingGzipBytes": 14151,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-C0_-94h5.js",
|
||||
"houseplan-assets/fr-B3kRJHIg.js"
|
||||
"houseplan-assets/de-DBUfK9Nr.js",
|
||||
"houseplan-assets/fr-ZUqkYkE7.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 54855,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/guard-Ccxtbz5-.js",
|
||||
"houseplan-assets/iso-scene-render-fC5qC2z8.js"
|
||||
"houseplan-assets/guard-CHvmsSf0.js",
|
||||
"houseplan-assets/iso-scene-render-Dj9V5jm8.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 13461,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-Yh429YO5.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-BQsXbVMw.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 10253,
|
||||
"lazyFurnitureArtGzipBytes": 10251,
|
||||
"lazyPdfFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-Yh429YO5.js",
|
||||
"houseplan-assets/pdf-export-BvVr5Fm8.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-BQsXbVMw.js",
|
||||
"houseplan-assets/pdf-export-DEpE7VK0.js"
|
||||
],
|
||||
"lazyPdfGzipBytes": 120366,
|
||||
"lazyPdfGzipBytes": 120365,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick-CfkYRcXV.js",
|
||||
"sha256": "8c1290550a7aedad05481dd351c1e90160f35443cc09fe74e948bd5dc56649ae",
|
||||
"path": "houseplan-assets/backdrop-pick-BulfpEVa.js",
|
||||
"sha256": "57f46e0fb40b55a83643dc1041a8c5ec99c3d66485823043fc06861709920de4",
|
||||
"rawBytes": 21134,
|
||||
"gzipBytes": 7146,
|
||||
"gzipBytes": 7147,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-C0_-94h5.js",
|
||||
"sha256": "1c75e62f0e5f4a967fc3c866d9cc26f78de1dff2049f24a97dac8db374384a98",
|
||||
"path": "houseplan-assets/de-DBUfK9Nr.js",
|
||||
"sha256": "b0c61302ea7c2249f0621a7942effdee3f3c8673490f3ab4f959741208c94cbe",
|
||||
"rawBytes": 91441,
|
||||
"gzipBytes": 27711,
|
||||
"gzipBytes": 27712,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-Cx3qhTny.js",
|
||||
"sha256": "7fb4171b406a5ca8abc125975767d6fced0ed63f16764d9f50b56c9579fae261",
|
||||
"path": "houseplan-assets/editor-0keqnMJ7.js",
|
||||
"sha256": "ae010db9f4fbd53649e1f6beae7a823db74743516ee1e584175a21071bfdaf76",
|
||||
"rawBytes": 3837,
|
||||
"gzipBytes": 1587,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-B3kRJHIg.js",
|
||||
"sha256": "5ccec3ff6236a30e91f23fe54d747ca127f0dc33a206f64ecdc6ec04eed90e71",
|
||||
"path": "houseplan-assets/fr-ZUqkYkE7.js",
|
||||
"sha256": "384fa06671bfe1ba9f4b5ac8a59707ebace2e7c1eda8aa9f8193bd611e32dfaf",
|
||||
"rawBytes": 93719,
|
||||
"gzipBytes": 27144,
|
||||
"gzipBytes": 27143,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-Yh429YO5.js",
|
||||
"sha256": "4ba60d86b2f262a6a85f9f430d809d16993d57d8f49a96f86bf39c973578ea08",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-BQsXbVMw.js",
|
||||
"sha256": "9d716575d2c50c0b87420aef9abd5654aac1545c4050e097a1687e356a05daf7",
|
||||
"rawBytes": 33655,
|
||||
"gzipBytes": 10253,
|
||||
"gzipBytes": 10251,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/guard-Ccxtbz5-.js",
|
||||
"sha256": "3dc8286b4e66e5ebac5aa85810138391969aca70b966a1353dfd9f658880d900",
|
||||
"path": "houseplan-assets/guard-CHvmsSf0.js",
|
||||
"sha256": "5235e984db15e7bb9080ec44f11b43038cffb285afe489534f59413280ead9c7",
|
||||
"rawBytes": 518,
|
||||
"gzipBytes": 371,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-Boux1KbX.js",
|
||||
"sha256": "225d32ae91543df196cf5bc1721dad811532c552cee75f6ad5ee43ee6e8cbbf4",
|
||||
"path": "houseplan-assets/houseplan-card-yh8-YihB.js",
|
||||
"sha256": "73b88b18d508bc8e075c49cb898742df9eb29dd70a70db42e9763dc12b6e5c59",
|
||||
"rawBytes": 1076670,
|
||||
"gzipBytes": 298184,
|
||||
"gzipBytes": 298188,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/de-C0_-94h5.js",
|
||||
"houseplan-assets/editor-Cx3qhTny.js",
|
||||
"houseplan-assets/fr-B3kRJHIg.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-Yh429YO5.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-daXn-qEd.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-TxrqWs69.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-BsupAjYt.js",
|
||||
"houseplan-assets/iso-scene-render-fC5qC2z8.js",
|
||||
"houseplan-assets/live-interaction-runtime-C0AGopGh.js",
|
||||
"houseplan-assets/pdf-export-BvVr5Fm8.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-Bw4D2-JH.js"
|
||||
"houseplan-assets/de-DBUfK9Nr.js",
|
||||
"houseplan-assets/editor-0keqnMJ7.js",
|
||||
"houseplan-assets/fr-ZUqkYkE7.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BQsXbVMw.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CydVVblm.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BRKtwSzg.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DcQjr8ux.js",
|
||||
"houseplan-assets/iso-scene-render-Dj9V5jm8.js",
|
||||
"houseplan-assets/live-interaction-runtime-B2sEacd_.js",
|
||||
"houseplan-assets/pdf-export-DEpE7VK0.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CPSfTezy.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-daXn-qEd.js",
|
||||
"sha256": "1e506f2e01f21d7e6694b2dd18e98c788d3917a9d329c3aa9d6dddd9d03c7f2e",
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-CydVVblm.js",
|
||||
"sha256": "7af93a6b4519b59e91b12b10ceb982e79e73773981c1d006ec9f825a8a418a41",
|
||||
"rawBytes": 672001,
|
||||
"gzipBytes": 178861,
|
||||
"gzipBytes": 178857,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-CfkYRcXV.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-Yh429YO5.js",
|
||||
"houseplan-assets/guard-Ccxtbz5-.js",
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js",
|
||||
"houseplan-assets/zigbee-topology-CLVlJ-cG.js"
|
||||
"houseplan-assets/backdrop-pick-BulfpEVa.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BQsXbVMw.js",
|
||||
"houseplan-assets/guard-CHvmsSf0.js",
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js",
|
||||
"houseplan-assets/zigbee-topology-IW8V-F7u.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/zigbee-topology-runtime-eE629XsS.js"
|
||||
"houseplan-assets/zigbee-topology-runtime-CrPRm7sL.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-TxrqWs69.js",
|
||||
"sha256": "3a3bc039b013d2ade091d1a1a428375397a563784f3ff1d4c2f271777d37a716",
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-BRKtwSzg.js",
|
||||
"sha256": "cd9d632b79045c4493012025a45514cf0aaf08c784c2ae93fd3734e119c7cccb",
|
||||
"rawBytes": 28237,
|
||||
"gzipBytes": 7008,
|
||||
"gzipBytes": 7004,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-CfkYRcXV.js",
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/backdrop-pick-BulfpEVa.js",
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-BsupAjYt.js",
|
||||
"sha256": "74d7aec4beb83a1e1b231621ccc9100365590395cd4d7b291ce2bde6f2c8f412",
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-DcQjr8ux.js",
|
||||
"sha256": "2acad806393bd295362b45cedcaa121bcbe53e136a2e91c071463f4ed7fec25f",
|
||||
"rawBytes": 11034,
|
||||
"gzipBytes": 3732,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js",
|
||||
"houseplan-assets/zigbee-topology-CLVlJ-cG.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-eE629XsS.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js",
|
||||
"houseplan-assets/zigbee-topology-IW8V-F7u.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-CrPRm7sL.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-fC5qC2z8.js",
|
||||
"sha256": "c02a171d4f6394ec0f2b8712d6671bd4a78513d97c88aee82c85439f40b21a3a",
|
||||
"path": "houseplan-assets/iso-scene-render-Dj9V5jm8.js",
|
||||
"sha256": "88c036b7404425633b64f71f099c7443b1dd848758998f149a862b10390a5712",
|
||||
"rawBytes": 38562,
|
||||
"gzipBytes": 13090,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/guard-Ccxtbz5-.js",
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/guard-CHvmsSf0.js",
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-C0AGopGh.js",
|
||||
"sha256": "ed6fa8091e4ceead8f36d21e4f075982e34498d6a2b812fa9bfe9edc06a1bc74",
|
||||
"path": "houseplan-assets/live-interaction-runtime-B2sEacd_.js",
|
||||
"sha256": "c1fa7f6a58a1ba215be6b78d0f663e776575b574972025ac281689ceb29649cb",
|
||||
"rawBytes": 5196,
|
||||
"gzipBytes": 2128,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/pdf-export-BvVr5Fm8.js",
|
||||
"sha256": "51f677d24b518d2d6f73962bb8b0c258e6ef6f597a7c6510986f0df1effc2d73",
|
||||
"path": "houseplan-assets/pdf-export-DEpE7VK0.js",
|
||||
"sha256": "41119e049b787a8554bc5a1e766a6676ffdebd2f121dd1c6a4dfc071b98a3ebc",
|
||||
"rawBytes": 237254,
|
||||
"gzipBytes": 110113,
|
||||
"gzipBytes": 110114,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/furniture-plan-art.generated-Yh429YO5.js",
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-BQsXbVMw.js",
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-editor-BPgQgIH2.js",
|
||||
"sha256": "b8654d28d267af142f654b9751a222c93dee699b845b6e4940e07f4aaffff96a",
|
||||
"path": "houseplan-assets/summary-panel-editor-DoCYqzD1.js",
|
||||
"sha256": "450035176dde97d9435338ffb393fdf34105e35dd7ca8c3b7117377eb7781884",
|
||||
"rawBytes": 14824,
|
||||
"gzipBytes": 3403,
|
||||
"gzipBytes": 3401,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-Bw4D2-JH.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CPSfTezy.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-metrics-CwZEnD23.js",
|
||||
"sha256": "ec78ccff631e9da45964cfd4137ae192ca48d85495591fcdce697582ff5fda99",
|
||||
"rawBytes": 2487,
|
||||
"gzipBytes": 1245,
|
||||
"path": "houseplan-assets/summary-panel-metrics-CDLFRpun.js",
|
||||
"sha256": "4aa9ee8c9345f89ce1446c19506f44a93c1758f8e39b1b887a66f69feebc7d52",
|
||||
"rawBytes": 2610,
|
||||
"gzipBytes": 1306,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-Bw4D2-JH.js",
|
||||
"sha256": "87dd3b74bed505b18f053fa02d1c9fe4a6703bc3b160eb040b5397fa27273735",
|
||||
"rawBytes": 72210,
|
||||
"gzipBytes": 19737,
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-CPSfTezy.js",
|
||||
"sha256": "22ddab2c9b679a3dc4b823a05381d11f83905ad3ed6fc5f1a21d9af51d89b2dc",
|
||||
"rawBytes": 72803,
|
||||
"gzipBytes": 19896,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/summary-panel-editor-BPgQgIH2.js",
|
||||
"houseplan-assets/summary-panel-metrics-CwZEnD23.js"
|
||||
"houseplan-assets/summary-panel-editor-DoCYqzD1.js",
|
||||
"houseplan-assets/summary-panel-metrics-CDLFRpun.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-CLVlJ-cG.js",
|
||||
"sha256": "1e64afef3eb53b87f6789a363ab346379f373adb720b1e566e7d34b62a391f07",
|
||||
"path": "houseplan-assets/zigbee-topology-IW8V-F7u.js",
|
||||
"sha256": "dd55f2b592f031a1c5318fffdce18938e0f2ceefdc90965489cb0b6ade2b3af5",
|
||||
"rawBytes": 18961,
|
||||
"gzipBytes": 7427,
|
||||
"gzipBytes": 7431,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-eE629XsS.js",
|
||||
"sha256": "fcd899ac58189a76cf8af3bc8726985edeb4218f44eb6977fd3e193d803ba96d",
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-CrPRm7sL.js",
|
||||
"sha256": "03214e422e8dd438c064cc454f05cdf4770f32a1b384d2756f9c79200f7747df",
|
||||
"rawBytes": 3941,
|
||||
"gzipBytes": 1766,
|
||||
"gzipBytes": 1764,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js",
|
||||
"houseplan-assets/zigbee-topology-CLVlJ-cG.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js",
|
||||
"houseplan-assets/zigbee-topology-IW8V-F7u.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "e7c9486f6c6ec4ec4f4c2f833b48bad5ebff2d66534464e37bd08936421e2aa7",
|
||||
"sha256": "c4e8d4da209de178e051ed7e27c86c9ed86ddce4274a95f7170143dddf373be9",
|
||||
"rawBytes": 1205,
|
||||
"gzipBytes": 805,
|
||||
"gzipBytes": 804,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-panel.js",
|
||||
"sha256": "3992fe51450904ad79a3f6861088662f4acbb6181935b65c298b9707e1bd4b47",
|
||||
"sha256": "71c93fe566ec7aea9ff4dbef8b9fa5ac57f932589d44bca0055f086af74a8d8f",
|
||||
"rawBytes": 6124,
|
||||
"gzipBytes": 2306,
|
||||
"isEntry": true,
|
||||
|
||||
+7
-7
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="124fb0df371c29dfe42379078c6da169f3d9b99562e1e922b8307fa9c6752bd4";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,dW as r,b as c}from"./houseplan-card-Boux1KbX.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="5c1b1c61b738b69334f9555c60ee17aa874c642234b0dcca6c358552357c0daf";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,dW as r,b as c}from"./houseplan-card-yh8-YihB.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
|
||||
.hass=${this.hass}
|
||||
.data=${this._formData}
|
||||
.schema=${e}
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="5c1b1c61b738b69334f9555c60ee17aa874c642234b0dcca6c358552357c0daf";import{dU as r,dV as t,dW as s}from"./houseplan-card-yh8-YihB.js";const e={},a=r(class extends t{constructor(){super(...arguments),this.ot=e}render(r,t){return t()}update(r,[t,e]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return s}else if(this.ot===t)return s;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,e)}});export{a as i};
|
||||
@@ -1 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="124fb0df371c29dfe42379078c6da169f3d9b99562e1e922b8307fa9c6752bd4";import{dU as r,dV as t,dW as e}from"./houseplan-card-Boux1KbX.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};
|
||||
+7
-7
File diff suppressed because one or more lines are too long
+3
-3
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="124fb0df371c29dfe42379078c6da169f3d9b99562e1e922b8307fa9c6752bd4";import{l as t,b2 as s,A as e,x as o,b as a,cl as l,cm as i,cn as h,co as c,a$ as n,cp as r,cu as p,cq as d,cr as _,cs as u,ct as g,cv as m,cw as b,dr as $,ds as v,dt as f,a_ as y,b0 as w,du as D}from"./houseplan-card-Boux1KbX.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-CfkYRcXV.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="124fb0df371c29dfe42379078c6da169f3d9b99562e1e922b8307fa9c6752bd4";class L{constructor(t){this.host=t,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?a`<hp-help data-help-key=${l}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="5c1b1c61b738b69334f9555c60ee17aa874c642234b0dcca6c358552357c0daf";import{l as t,b2 as s,A as e,x as o,b as a,cl as l,cm as i,cn as h,co as c,a$ as n,cp as r,cu as p,cq as d,cr as _,cs as u,ct as g,cv as m,cw as b,dr as $,ds as v,dt as f,a_ as y,b0 as w,du as D}from"./houseplan-card-yh8-YihB.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-BulfpEVa.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="5c1b1c61b738b69334f9555c60ee17aa874c642234b0dcca6c358552357c0daf";class L{constructor(t){this.host=t,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?a`<hp-help data-help-key=${l}
|
||||
.text=${o(h,l)} .ariaLabel=${o(h,i)}></hp-help>`:e}_openSpaceDialog(t,s){if(!this.host._serverStorage||!this.host._serverCfg)return void this.host._showToast(this.host._t("toast.integration_missing"));if("edit"===t){const e=this.host._serverCfg.spaces.find(t=>t.id===s);if(!e)return;const o=l(e),a=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?i(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:r(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:n({},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:c(Number(e.cell_cm)>0?Number(e.cell_cm):5,this.host._imperial),cellCmTouched:!1,busy:!1})}const e=p(this.host._imperial);this.host._spaceDialog={mode:t,title:"",planUrl:null,planFile:null,...m(),hideDecor:!1,hideOpenings:!1,zeroWallStyle:"dashed",roomColor:g,roomOpacity:u,fillMode:"custom",customFill:{...h,a:0},glowEnabled:!0,bgColor:null,bgMode:"daynight",northDeg:null,sunRays:null,tempMin:_,tempMax:d,showLqi:this.host._config?.show_signal??!0,cardFontScale:1,labelTemp:!1,labelHum:!1,labelLqi:!1,labelLight:!1,cellCm:e,cellCmInput:c(e,this.host._imperial),cellCmTouched:!1,busy:!1}}async _pickPlanFile(t){const s=t.target,e=s.files?.[0];if(!e||!this.host._spaceDialog)return;s.value="";const o=await k(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 S(e,o.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:a})}_renderBackdropGuard(){return C(this.host,t=>{this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:t})},()=>{this.host._backdropGuard=null},this.host.hass)??e}_useServerPlan(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,planUrl:t,planFile:null,pickSaved:!1,savedAspect:void 0},this.host._aspectJob=this._readPlanAspect(t))}async _readPlanAspect(t){for(let s=0;s<40;s++){const s=this.host._display(t);if(s){const e=await new Promise(t=>{const e=new Image;e.onload=()=>t(e.naturalWidth&&e.naturalHeight?e.naturalWidth/e.naturalHeight:0),e.onerror=()=>t(0),e.src=s}),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,l=a?.saved?.find(s=>s.name===t);if(o&&a&&l&&l.url===e.url&&l.modified===e.modified&&!l.used_by.length&&l.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
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="124fb0df371c29dfe42379078c6da169f3d9b99562e1e922b8307fa9c6752bd4";import{b as a,A as e}from"./houseplan-card-Boux1KbX.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-Bw4D2-JH.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="5c1b1c61b738b69334f9555c60ee17aa874c642234b0dcca6c358552357c0daf";import{b as a,A as e}from"./houseplan-card-yh8-YihB.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-CPSfTezy.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
|
||||
<span class="summary-switch-caption"><strong>${b("summary.show_local")}</strong>
|
||||
<small id="summary-local-show-hint">${b("summary.show_local_hint")}</small></span>
|
||||
<input id="summary-local-show" data-summary-local-show type="checkbox"
|
||||
+1
@@ -0,0 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="5c1b1c61b738b69334f9555c60ee17aa874c642234b0dcca6c358552357c0daf";import{eb as e,P as t,a5 as n,M as i,aq as o,N as r,bq as s,bp as a,a4 as c,a3 as l,az as u,ec as d,ed as f,bs as m,ee as g}from"./houseplan-card-yh8-YihB.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*p(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 h(e,t,n=_){const i=p(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{p as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,h as totalCleanFloorAreaM2};
|
||||
-1
@@ -1 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="124fb0df371c29dfe42379078c6da169f3d9b99562e1e922b8307fa9c6752bd4";import{az as e,a4 as t,N as n,aq as i,M as r,a3 as s,eb as o,ec as a,bs as c,ed as l,P as d,a5 as u,bq as f,bp as m,ee as g}from"./houseplan-card-Boux1KbX.js";function v(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 s=e.binding.slice(0,r),o=e.binding.slice(r+1),a="device"===s?t.registry.devices?.[o]:null,c="entity"===s?t.registry.entities?.[o]:null,l="device"===s?o:c?.device_id,d="device"===s?a?.area_id:c?.area_id||l&&t.registry.devices?.[l]?.area_id,u="string"==typeof e.room_id&&e.room_id.length>0&&null===e.area?"":e.area||d||"",f=u&&t.areaToSpace[u]||e.space||t.firstSpaceId;l&&t.registry.devices?.[l]&&t.spaceIds.has(f)&&(!i.devices.has(l)||"entity"===s&&i.liveEntities.has(o))&&n.add(l)}return n}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,o){const a=t(e.rooms,o.walls,o.openCuts,[],r,o.cellCm,i,n);return{roomGeom:"ok"===a.status||"degraded-extra"===a.status?a.roomGeom:void 0,multiWallNodes:s(e.rooms,o.walls,o.openCuts,r,o.cellCm,i,n)}}function p(e,t,s=_){try{let o=0;for(const a of t){const t=e.spaces.find(e=>String(e?.id)===a.id);if(!t)continue;const c=l(t,a),g=s(a,c);let v=null;for(const e of a.rooms){if(!e.id)continue;const t=d(e);if(!t)continue;const s=u(a.rooms,e.id,c.walls,c.openCuts,r,c.cellCm,i,n,g.roomGeom,g.multiWallNodes)||t;v=y(v,f(s,c.physicalBodies))}const _=c.cellCm/i;o+=m(v)*_*_/1e4}return o}catch{return null}}function h(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:c(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 b(e,t){const n=e?.states?.[t];if(!n)return null;const i=o(e,t);return i?a(i,String(n.attributes?.unit_of_measurement||"")):null}export{v as representedHaDeviceIds,_ as spaceWallGeometry,b as summaryEntityValue,h as summarySystemValue,p as totalCleanFloorAreaM2};
|
||||
+6
-6
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__="124fb0df371c29dfe42379078c6da169f3d9b99562e1e922b8307fa9c6752bd4";import{n as t,b as n}from"./zigbee-topology-CLVlJ-cG.js";import{F as e}from"./houseplan-card-Boux1KbX.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__="5c1b1c61b738b69334f9555c60ee17aa874c642234b0dcca6c358552357c0daf";import{n as t,b as n}from"./zigbee-topology-IW8V-F7u.js";import{F as e}from"./houseplan-card-yh8-YihB.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function p(t){if(!0!==t?.user?.is_admin)throw a("permission")}function f(n){const e=i(n);return e?c(e,"zha",async()=>{if(p(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function g(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function m(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(p(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,f=null,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const p=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&f?.(n):c&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await g(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await g(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{f as readZhaTopology,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="124fb0df371c29dfe42379078c6da169f3d9b99562e1e922b8307fa9c6752bd4";try{await import("./houseplan-assets/houseplan-card-Boux1KbX.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__="5c1b1c61b738b69334f9555c60ee17aa874c642234b0dcca6c358552357c0daf";try{await import("./houseplan-assets/houseplan-card-yh8-YihB.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -66,6 +66,16 @@ async function openLargePlan(page, { reducedMotion = false } = {}) {
|
||||
const first = await page.evaluate(async () => {
|
||||
const f = window.__firstPaint;
|
||||
const toggle = f.root().querySelector('.summary-control')?.querySelector('button:last-child');
|
||||
// Долгие задачи главного потока за всё время показа: подвисание может
|
||||
// случиться и не в первом кадре, а сразу после прихода ленивого чанка,
|
||||
// и человек увидит ровно тот же фриз (#509 AC4).
|
||||
window.__longTasks = [];
|
||||
try {
|
||||
window.__longTaskObserver = new PerformanceObserver((list) => {
|
||||
for (const entry of list.getEntries()) window.__longTasks.push(Math.round(entry.duration));
|
||||
});
|
||||
window.__longTaskObserver.observe({ entryTypes: ['longtask'] });
|
||||
} catch { window.__longTaskObserver = null; }
|
||||
const started = performance.now();
|
||||
toggle?.click();
|
||||
// Ровно один кадр: именно его и видел человек как «зависание».
|
||||
@@ -94,11 +104,20 @@ async function openLargePlan(page, { reducedMotion = false } = {}) {
|
||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
await f.card.updateComplete;
|
||||
}
|
||||
return { waitedMs: performance.now() - started, pending: f.pending(), texts: f.texts() };
|
||||
window.__longTaskObserver?.takeRecords?.().forEach((entry) => window.__longTasks.push(Math.round(entry.duration)));
|
||||
window.__longTaskObserver?.disconnect?.();
|
||||
return {
|
||||
waitedMs: performance.now() - started, pending: f.pending(), texts: f.texts(),
|
||||
longest: window.__longTasks.length ? Math.max(...window.__longTasks) : 0,
|
||||
observed: !!window.__longTaskObserver,
|
||||
};
|
||||
});
|
||||
check('skeletonReplacedByValues', settled.pending === 0);
|
||||
check('valuesAreReal', settled.texts.every((text) => text && !/unavailable/i.test(text)));
|
||||
check('replacedWithinBudget', settled.waitedMs < 3000);
|
||||
check('replacedWithinBudget', settled.waitedMs < 6000);
|
||||
// AC4: ни одна порция расчёта не держит поток дольше кадра-другого. Без
|
||||
// порционного обхода здесь была бы одна задача на всю площадь (S2: ~1,5 с).
|
||||
check('noLongTaskWhileComputing', !settled.observed || settled.longest < 250);
|
||||
|
||||
// AC5: появление панели анимируется — кадры анимации реально существуют.
|
||||
const motion = await page.evaluate(async () => {
|
||||
|
||||
Vendored
+134
-134
@@ -1,307 +1,307 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "124fb0df371c29dfe42379078c6da169f3d9b99562e1e922b8307fa9c6752bd4",
|
||||
"fingerprint": "5c1b1c61b738b69334f9555c60ee17aa874c642234b0dcca6c358552357c0daf",
|
||||
"entry": "houseplan-card.js",
|
||||
"panelEntry": "houseplan-panel.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js",
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 298989,
|
||||
"initialViewGzipBytes": 298992,
|
||||
"initialPanelFiles": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js",
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js",
|
||||
"houseplan-card.js",
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelGzipBytes": 301295,
|
||||
"initialPanelGzipBytes": 301298,
|
||||
"initialPanelOnlyFiles": [
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelOnlyGzipBytes": 2306,
|
||||
"lazyFiles": [
|
||||
"houseplan-assets/backdrop-pick-CfkYRcXV.js",
|
||||
"houseplan-assets/de-C0_-94h5.js",
|
||||
"houseplan-assets/editor-Cx3qhTny.js",
|
||||
"houseplan-assets/fr-B3kRJHIg.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-Yh429YO5.js",
|
||||
"houseplan-assets/guard-Ccxtbz5-.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-daXn-qEd.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-TxrqWs69.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-BsupAjYt.js",
|
||||
"houseplan-assets/iso-scene-render-fC5qC2z8.js",
|
||||
"houseplan-assets/live-interaction-runtime-C0AGopGh.js",
|
||||
"houseplan-assets/pdf-export-BvVr5Fm8.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-Bw4D2-JH.js",
|
||||
"houseplan-assets/zigbee-topology-CLVlJ-cG.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-eE629XsS.js"
|
||||
"houseplan-assets/backdrop-pick-BulfpEVa.js",
|
||||
"houseplan-assets/de-DBUfK9Nr.js",
|
||||
"houseplan-assets/editor-0keqnMJ7.js",
|
||||
"houseplan-assets/fr-ZUqkYkE7.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BQsXbVMw.js",
|
||||
"houseplan-assets/guard-CHvmsSf0.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CydVVblm.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BRKtwSzg.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DcQjr8ux.js",
|
||||
"houseplan-assets/iso-scene-render-Dj9V5jm8.js",
|
||||
"houseplan-assets/live-interaction-runtime-B2sEacd_.js",
|
||||
"houseplan-assets/pdf-export-DEpE7VK0.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CPSfTezy.js",
|
||||
"houseplan-assets/zigbee-topology-IW8V-F7u.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-CrPRm7sL.js"
|
||||
],
|
||||
"lazyGzipBytes": 418074,
|
||||
"lazyGzipBytes": 418227,
|
||||
"lazyEditorFiles": [
|
||||
"houseplan-assets/backdrop-pick-CfkYRcXV.js",
|
||||
"houseplan-assets/editor-Cx3qhTny.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-Yh429YO5.js",
|
||||
"houseplan-assets/guard-Ccxtbz5-.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-daXn-qEd.js",
|
||||
"houseplan-assets/zigbee-topology-CLVlJ-cG.js"
|
||||
"houseplan-assets/backdrop-pick-BulfpEVa.js",
|
||||
"houseplan-assets/editor-0keqnMJ7.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BQsXbVMw.js",
|
||||
"houseplan-assets/guard-CHvmsSf0.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CydVVblm.js",
|
||||
"houseplan-assets/zigbee-topology-IW8V-F7u.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 205645,
|
||||
"lazyEditorGzipBytes": 205644,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick-CfkYRcXV.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-TxrqWs69.js"
|
||||
"houseplan-assets/backdrop-pick-BulfpEVa.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BRKtwSzg.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 14154,
|
||||
"lazyOnboardingGzipBytes": 14151,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-C0_-94h5.js",
|
||||
"houseplan-assets/fr-B3kRJHIg.js"
|
||||
"houseplan-assets/de-DBUfK9Nr.js",
|
||||
"houseplan-assets/fr-ZUqkYkE7.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 54855,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/guard-Ccxtbz5-.js",
|
||||
"houseplan-assets/iso-scene-render-fC5qC2z8.js"
|
||||
"houseplan-assets/guard-CHvmsSf0.js",
|
||||
"houseplan-assets/iso-scene-render-Dj9V5jm8.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 13461,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-Yh429YO5.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-BQsXbVMw.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 10253,
|
||||
"lazyFurnitureArtGzipBytes": 10251,
|
||||
"lazyPdfFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-Yh429YO5.js",
|
||||
"houseplan-assets/pdf-export-BvVr5Fm8.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-BQsXbVMw.js",
|
||||
"houseplan-assets/pdf-export-DEpE7VK0.js"
|
||||
],
|
||||
"lazyPdfGzipBytes": 120366,
|
||||
"lazyPdfGzipBytes": 120365,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick-CfkYRcXV.js",
|
||||
"sha256": "8c1290550a7aedad05481dd351c1e90160f35443cc09fe74e948bd5dc56649ae",
|
||||
"path": "houseplan-assets/backdrop-pick-BulfpEVa.js",
|
||||
"sha256": "57f46e0fb40b55a83643dc1041a8c5ec99c3d66485823043fc06861709920de4",
|
||||
"rawBytes": 21134,
|
||||
"gzipBytes": 7146,
|
||||
"gzipBytes": 7147,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-C0_-94h5.js",
|
||||
"sha256": "1c75e62f0e5f4a967fc3c866d9cc26f78de1dff2049f24a97dac8db374384a98",
|
||||
"path": "houseplan-assets/de-DBUfK9Nr.js",
|
||||
"sha256": "b0c61302ea7c2249f0621a7942effdee3f3c8673490f3ab4f959741208c94cbe",
|
||||
"rawBytes": 91441,
|
||||
"gzipBytes": 27711,
|
||||
"gzipBytes": 27712,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-Cx3qhTny.js",
|
||||
"sha256": "7fb4171b406a5ca8abc125975767d6fced0ed63f16764d9f50b56c9579fae261",
|
||||
"path": "houseplan-assets/editor-0keqnMJ7.js",
|
||||
"sha256": "ae010db9f4fbd53649e1f6beae7a823db74743516ee1e584175a21071bfdaf76",
|
||||
"rawBytes": 3837,
|
||||
"gzipBytes": 1587,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-B3kRJHIg.js",
|
||||
"sha256": "5ccec3ff6236a30e91f23fe54d747ca127f0dc33a206f64ecdc6ec04eed90e71",
|
||||
"path": "houseplan-assets/fr-ZUqkYkE7.js",
|
||||
"sha256": "384fa06671bfe1ba9f4b5ac8a59707ebace2e7c1eda8aa9f8193bd611e32dfaf",
|
||||
"rawBytes": 93719,
|
||||
"gzipBytes": 27144,
|
||||
"gzipBytes": 27143,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-Yh429YO5.js",
|
||||
"sha256": "4ba60d86b2f262a6a85f9f430d809d16993d57d8f49a96f86bf39c973578ea08",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-BQsXbVMw.js",
|
||||
"sha256": "9d716575d2c50c0b87420aef9abd5654aac1545c4050e097a1687e356a05daf7",
|
||||
"rawBytes": 33655,
|
||||
"gzipBytes": 10253,
|
||||
"gzipBytes": 10251,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/guard-Ccxtbz5-.js",
|
||||
"sha256": "3dc8286b4e66e5ebac5aa85810138391969aca70b966a1353dfd9f658880d900",
|
||||
"path": "houseplan-assets/guard-CHvmsSf0.js",
|
||||
"sha256": "5235e984db15e7bb9080ec44f11b43038cffb285afe489534f59413280ead9c7",
|
||||
"rawBytes": 518,
|
||||
"gzipBytes": 371,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-Boux1KbX.js",
|
||||
"sha256": "225d32ae91543df196cf5bc1721dad811532c552cee75f6ad5ee43ee6e8cbbf4",
|
||||
"path": "houseplan-assets/houseplan-card-yh8-YihB.js",
|
||||
"sha256": "73b88b18d508bc8e075c49cb898742df9eb29dd70a70db42e9763dc12b6e5c59",
|
||||
"rawBytes": 1076670,
|
||||
"gzipBytes": 298184,
|
||||
"gzipBytes": 298188,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/de-C0_-94h5.js",
|
||||
"houseplan-assets/editor-Cx3qhTny.js",
|
||||
"houseplan-assets/fr-B3kRJHIg.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-Yh429YO5.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-daXn-qEd.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-TxrqWs69.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-BsupAjYt.js",
|
||||
"houseplan-assets/iso-scene-render-fC5qC2z8.js",
|
||||
"houseplan-assets/live-interaction-runtime-C0AGopGh.js",
|
||||
"houseplan-assets/pdf-export-BvVr5Fm8.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-Bw4D2-JH.js"
|
||||
"houseplan-assets/de-DBUfK9Nr.js",
|
||||
"houseplan-assets/editor-0keqnMJ7.js",
|
||||
"houseplan-assets/fr-ZUqkYkE7.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BQsXbVMw.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CydVVblm.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BRKtwSzg.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DcQjr8ux.js",
|
||||
"houseplan-assets/iso-scene-render-Dj9V5jm8.js",
|
||||
"houseplan-assets/live-interaction-runtime-B2sEacd_.js",
|
||||
"houseplan-assets/pdf-export-DEpE7VK0.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CPSfTezy.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-daXn-qEd.js",
|
||||
"sha256": "1e506f2e01f21d7e6694b2dd18e98c788d3917a9d329c3aa9d6dddd9d03c7f2e",
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-CydVVblm.js",
|
||||
"sha256": "7af93a6b4519b59e91b12b10ceb982e79e73773981c1d006ec9f825a8a418a41",
|
||||
"rawBytes": 672001,
|
||||
"gzipBytes": 178861,
|
||||
"gzipBytes": 178857,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-CfkYRcXV.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-Yh429YO5.js",
|
||||
"houseplan-assets/guard-Ccxtbz5-.js",
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js",
|
||||
"houseplan-assets/zigbee-topology-CLVlJ-cG.js"
|
||||
"houseplan-assets/backdrop-pick-BulfpEVa.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BQsXbVMw.js",
|
||||
"houseplan-assets/guard-CHvmsSf0.js",
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js",
|
||||
"houseplan-assets/zigbee-topology-IW8V-F7u.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/zigbee-topology-runtime-eE629XsS.js"
|
||||
"houseplan-assets/zigbee-topology-runtime-CrPRm7sL.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-TxrqWs69.js",
|
||||
"sha256": "3a3bc039b013d2ade091d1a1a428375397a563784f3ff1d4c2f271777d37a716",
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-BRKtwSzg.js",
|
||||
"sha256": "cd9d632b79045c4493012025a45514cf0aaf08c784c2ae93fd3734e119c7cccb",
|
||||
"rawBytes": 28237,
|
||||
"gzipBytes": 7008,
|
||||
"gzipBytes": 7004,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-CfkYRcXV.js",
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/backdrop-pick-BulfpEVa.js",
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-BsupAjYt.js",
|
||||
"sha256": "74d7aec4beb83a1e1b231621ccc9100365590395cd4d7b291ce2bde6f2c8f412",
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-DcQjr8ux.js",
|
||||
"sha256": "2acad806393bd295362b45cedcaa121bcbe53e136a2e91c071463f4ed7fec25f",
|
||||
"rawBytes": 11034,
|
||||
"gzipBytes": 3732,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js",
|
||||
"houseplan-assets/zigbee-topology-CLVlJ-cG.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-eE629XsS.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js",
|
||||
"houseplan-assets/zigbee-topology-IW8V-F7u.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-CrPRm7sL.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-fC5qC2z8.js",
|
||||
"sha256": "c02a171d4f6394ec0f2b8712d6671bd4a78513d97c88aee82c85439f40b21a3a",
|
||||
"path": "houseplan-assets/iso-scene-render-Dj9V5jm8.js",
|
||||
"sha256": "88c036b7404425633b64f71f099c7443b1dd848758998f149a862b10390a5712",
|
||||
"rawBytes": 38562,
|
||||
"gzipBytes": 13090,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/guard-Ccxtbz5-.js",
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/guard-CHvmsSf0.js",
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-C0AGopGh.js",
|
||||
"sha256": "ed6fa8091e4ceead8f36d21e4f075982e34498d6a2b812fa9bfe9edc06a1bc74",
|
||||
"path": "houseplan-assets/live-interaction-runtime-B2sEacd_.js",
|
||||
"sha256": "c1fa7f6a58a1ba215be6b78d0f663e776575b574972025ac281689ceb29649cb",
|
||||
"rawBytes": 5196,
|
||||
"gzipBytes": 2128,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/pdf-export-BvVr5Fm8.js",
|
||||
"sha256": "51f677d24b518d2d6f73962bb8b0c258e6ef6f597a7c6510986f0df1effc2d73",
|
||||
"path": "houseplan-assets/pdf-export-DEpE7VK0.js",
|
||||
"sha256": "41119e049b787a8554bc5a1e766a6676ffdebd2f121dd1c6a4dfc071b98a3ebc",
|
||||
"rawBytes": 237254,
|
||||
"gzipBytes": 110113,
|
||||
"gzipBytes": 110114,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/furniture-plan-art.generated-Yh429YO5.js",
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-BQsXbVMw.js",
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-editor-BPgQgIH2.js",
|
||||
"sha256": "b8654d28d267af142f654b9751a222c93dee699b845b6e4940e07f4aaffff96a",
|
||||
"path": "houseplan-assets/summary-panel-editor-DoCYqzD1.js",
|
||||
"sha256": "450035176dde97d9435338ffb393fdf34105e35dd7ca8c3b7117377eb7781884",
|
||||
"rawBytes": 14824,
|
||||
"gzipBytes": 3403,
|
||||
"gzipBytes": 3401,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-Bw4D2-JH.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CPSfTezy.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-metrics-CwZEnD23.js",
|
||||
"sha256": "ec78ccff631e9da45964cfd4137ae192ca48d85495591fcdce697582ff5fda99",
|
||||
"rawBytes": 2487,
|
||||
"gzipBytes": 1245,
|
||||
"path": "houseplan-assets/summary-panel-metrics-CDLFRpun.js",
|
||||
"sha256": "4aa9ee8c9345f89ce1446c19506f44a93c1758f8e39b1b887a66f69feebc7d52",
|
||||
"rawBytes": 2610,
|
||||
"gzipBytes": 1306,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-Bw4D2-JH.js",
|
||||
"sha256": "87dd3b74bed505b18f053fa02d1c9fe4a6703bc3b160eb040b5397fa27273735",
|
||||
"rawBytes": 72210,
|
||||
"gzipBytes": 19737,
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-CPSfTezy.js",
|
||||
"sha256": "22ddab2c9b679a3dc4b823a05381d11f83905ad3ed6fc5f1a21d9af51d89b2dc",
|
||||
"rawBytes": 72803,
|
||||
"gzipBytes": 19896,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/summary-panel-editor-BPgQgIH2.js",
|
||||
"houseplan-assets/summary-panel-metrics-CwZEnD23.js"
|
||||
"houseplan-assets/summary-panel-editor-DoCYqzD1.js",
|
||||
"houseplan-assets/summary-panel-metrics-CDLFRpun.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-CLVlJ-cG.js",
|
||||
"sha256": "1e64afef3eb53b87f6789a363ab346379f373adb720b1e566e7d34b62a391f07",
|
||||
"path": "houseplan-assets/zigbee-topology-IW8V-F7u.js",
|
||||
"sha256": "dd55f2b592f031a1c5318fffdce18938e0f2ceefdc90965489cb0b6ade2b3af5",
|
||||
"rawBytes": 18961,
|
||||
"gzipBytes": 7427,
|
||||
"gzipBytes": 7431,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-eE629XsS.js",
|
||||
"sha256": "fcd899ac58189a76cf8af3bc8726985edeb4218f44eb6977fd3e193d803ba96d",
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-CrPRm7sL.js",
|
||||
"sha256": "03214e422e8dd438c064cc454f05cdf4770f32a1b384d2756f9c79200f7747df",
|
||||
"rawBytes": 3941,
|
||||
"gzipBytes": 1766,
|
||||
"gzipBytes": 1764,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js",
|
||||
"houseplan-assets/zigbee-topology-CLVlJ-cG.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js",
|
||||
"houseplan-assets/zigbee-topology-IW8V-F7u.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "e7c9486f6c6ec4ec4f4c2f833b48bad5ebff2d66534464e37bd08936421e2aa7",
|
||||
"sha256": "c4e8d4da209de178e051ed7e27c86c9ed86ddce4274a95f7170143dddf373be9",
|
||||
"rawBytes": 1205,
|
||||
"gzipBytes": 805,
|
||||
"gzipBytes": 804,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-Boux1KbX.js"
|
||||
"houseplan-assets/houseplan-card-yh8-YihB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-panel.js",
|
||||
"sha256": "3992fe51450904ad79a3f6861088662f4acbb6181935b65c298b9707e1bd4b47",
|
||||
"sha256": "71c93fe566ec7aea9ff4dbef8b9fa5ac57f932589d44bca0055f086af74a8d8f",
|
||||
"rawBytes": 6124,
|
||||
"gzipBytes": 2306,
|
||||
"isEntry": true,
|
||||
|
||||
Vendored
+7
-7
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="124fb0df371c29dfe42379078c6da169f3d9b99562e1e922b8307fa9c6752bd4";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,dW as r,b as c}from"./houseplan-card-Boux1KbX.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="5c1b1c61b738b69334f9555c60ee17aa874c642234b0dcca6c358552357c0daf";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,dW as r,b as c}from"./houseplan-card-yh8-YihB.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
|
||||
.hass=${this.hass}
|
||||
.data=${this._formData}
|
||||
.schema=${e}
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="5c1b1c61b738b69334f9555c60ee17aa874c642234b0dcca6c358552357c0daf";import{dU as r,dV as t,dW as s}from"./houseplan-card-yh8-YihB.js";const e={},a=r(class extends t{constructor(){super(...arguments),this.ot=e}render(r,t){return t()}update(r,[t,e]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return s}else if(this.ot===t)return s;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,e)}});export{a as i};
|
||||
-1
@@ -1 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="124fb0df371c29dfe42379078c6da169f3d9b99562e1e922b8307fa9c6752bd4";import{dU as r,dV as t,dW as e}from"./houseplan-card-Boux1KbX.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};
|
||||
Vendored
+7
-7
File diff suppressed because one or more lines are too long
+3
-3
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="124fb0df371c29dfe42379078c6da169f3d9b99562e1e922b8307fa9c6752bd4";import{l as t,b2 as s,A as e,x as o,b as a,cl as l,cm as i,cn as h,co as c,a$ as n,cp as r,cu as p,cq as d,cr as _,cs as u,ct as g,cv as m,cw as b,dr as $,ds as v,dt as f,a_ as y,b0 as w,du as D}from"./houseplan-card-Boux1KbX.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-CfkYRcXV.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="124fb0df371c29dfe42379078c6da169f3d9b99562e1e922b8307fa9c6752bd4";class L{constructor(t){this.host=t,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?a`<hp-help data-help-key=${l}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="5c1b1c61b738b69334f9555c60ee17aa874c642234b0dcca6c358552357c0daf";import{l as t,b2 as s,A as e,x as o,b as a,cl as l,cm as i,cn as h,co as c,a$ as n,cp as r,cu as p,cq as d,cr as _,cs as u,ct as g,cv as m,cw as b,dr as $,ds as v,dt as f,a_ as y,b0 as w,du as D}from"./houseplan-card-yh8-YihB.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-BulfpEVa.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="5c1b1c61b738b69334f9555c60ee17aa874c642234b0dcca6c358552357c0daf";class L{constructor(t){this.host=t,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?a`<hp-help data-help-key=${l}
|
||||
.text=${o(h,l)} .ariaLabel=${o(h,i)}></hp-help>`:e}_openSpaceDialog(t,s){if(!this.host._serverStorage||!this.host._serverCfg)return void this.host._showToast(this.host._t("toast.integration_missing"));if("edit"===t){const e=this.host._serverCfg.spaces.find(t=>t.id===s);if(!e)return;const o=l(e),a=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?i(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:r(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:n({},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:c(Number(e.cell_cm)>0?Number(e.cell_cm):5,this.host._imperial),cellCmTouched:!1,busy:!1})}const e=p(this.host._imperial);this.host._spaceDialog={mode:t,title:"",planUrl:null,planFile:null,...m(),hideDecor:!1,hideOpenings:!1,zeroWallStyle:"dashed",roomColor:g,roomOpacity:u,fillMode:"custom",customFill:{...h,a:0},glowEnabled:!0,bgColor:null,bgMode:"daynight",northDeg:null,sunRays:null,tempMin:_,tempMax:d,showLqi:this.host._config?.show_signal??!0,cardFontScale:1,labelTemp:!1,labelHum:!1,labelLqi:!1,labelLight:!1,cellCm:e,cellCmInput:c(e,this.host._imperial),cellCmTouched:!1,busy:!1}}async _pickPlanFile(t){const s=t.target,e=s.files?.[0];if(!e||!this.host._spaceDialog)return;s.value="";const o=await k(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 S(e,o.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:a})}_renderBackdropGuard(){return C(this.host,t=>{this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:t})},()=>{this.host._backdropGuard=null},this.host.hass)??e}_useServerPlan(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,planUrl:t,planFile:null,pickSaved:!1,savedAspect:void 0},this.host._aspectJob=this._readPlanAspect(t))}async _readPlanAspect(t){for(let s=0;s<40;s++){const s=this.host._display(t);if(s){const e=await new Promise(t=>{const e=new Image;e.onload=()=>t(e.naturalWidth&&e.naturalHeight?e.naturalWidth/e.naturalHeight:0),e.onerror=()=>t(0),e.src=s}),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,l=a?.saved?.find(s=>s.name===t);if(o&&a&&l&&l.url===e.url&&l.modified===e.modified&&!l.used_by.length&&l.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
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="124fb0df371c29dfe42379078c6da169f3d9b99562e1e922b8307fa9c6752bd4";import{b as a,A as e}from"./houseplan-card-Boux1KbX.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-Bw4D2-JH.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="5c1b1c61b738b69334f9555c60ee17aa874c642234b0dcca6c358552357c0daf";import{b as a,A as e}from"./houseplan-card-yh8-YihB.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-CPSfTezy.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"
|
||||
@@ -0,0 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="5c1b1c61b738b69334f9555c60ee17aa874c642234b0dcca6c358552357c0daf";import{eb as e,P as t,a5 as n,M as i,aq as o,N as r,bq as s,bp as a,a4 as c,a3 as l,az as u,ec as d,ed as f,bs as m,ee as g}from"./houseplan-card-yh8-YihB.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*p(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 h(e,t,n=_){const i=p(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{p as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,h as totalCleanFloorAreaM2};
|
||||
@@ -1 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="124fb0df371c29dfe42379078c6da169f3d9b99562e1e922b8307fa9c6752bd4";import{az as e,a4 as t,N as n,aq as i,M as r,a3 as s,eb as o,ec as a,bs as c,ed as l,P as d,a5 as u,bq as f,bp as m,ee as g}from"./houseplan-card-Boux1KbX.js";function v(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 s=e.binding.slice(0,r),o=e.binding.slice(r+1),a="device"===s?t.registry.devices?.[o]:null,c="entity"===s?t.registry.entities?.[o]:null,l="device"===s?o:c?.device_id,d="device"===s?a?.area_id:c?.area_id||l&&t.registry.devices?.[l]?.area_id,u="string"==typeof e.room_id&&e.room_id.length>0&&null===e.area?"":e.area||d||"",f=u&&t.areaToSpace[u]||e.space||t.firstSpaceId;l&&t.registry.devices?.[l]&&t.spaceIds.has(f)&&(!i.devices.has(l)||"entity"===s&&i.liveEntities.has(o))&&n.add(l)}return n}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,o){const a=t(e.rooms,o.walls,o.openCuts,[],r,o.cellCm,i,n);return{roomGeom:"ok"===a.status||"degraded-extra"===a.status?a.roomGeom:void 0,multiWallNodes:s(e.rooms,o.walls,o.openCuts,r,o.cellCm,i,n)}}function p(e,t,s=_){try{let o=0;for(const a of t){const t=e.spaces.find(e=>String(e?.id)===a.id);if(!t)continue;const c=l(t,a),g=s(a,c);let v=null;for(const e of a.rooms){if(!e.id)continue;const t=d(e);if(!t)continue;const s=u(a.rooms,e.id,c.walls,c.openCuts,r,c.cellCm,i,n,g.roomGeom,g.multiWallNodes)||t;v=y(v,f(s,c.physicalBodies))}const _=c.cellCm/i;o+=m(v)*_*_/1e4}return o}catch{return null}}function h(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:c(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 b(e,t){const n=e?.states?.[t];if(!n)return null;const i=o(e,t);return i?a(i,String(n.attributes?.unit_of_measurement||"")):null}export{v as representedHaDeviceIds,_ as spaceWallGeometry,b as summaryEntityValue,h as summarySystemValue,p as totalCleanFloorAreaM2};
|
||||
+6
-6
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__="124fb0df371c29dfe42379078c6da169f3d9b99562e1e922b8307fa9c6752bd4";import{n as t,b as n}from"./zigbee-topology-CLVlJ-cG.js";import{F as e}from"./houseplan-card-Boux1KbX.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__="5c1b1c61b738b69334f9555c60ee17aa874c642234b0dcca6c358552357c0daf";import{n as t,b as n}from"./zigbee-topology-IW8V-F7u.js";import{F as e}from"./houseplan-card-yh8-YihB.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};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="124fb0df371c29dfe42379078c6da169f3d9b99562e1e922b8307fa9c6752bd4";try{await import("./houseplan-assets/houseplan-card-Boux1KbX.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__="5c1b1c61b738b69334f9555c60ee17aa874c642234b0dcca6c358552357c0daf";try{await import("./houseplan-assets/houseplan-card-yh8-YihB.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
@@ -81,12 +81,21 @@ export function spaceWallGeometry(
|
||||
};
|
||||
}
|
||||
|
||||
/** Canonical clean-floor union, in physical square metres, for every space. */
|
||||
export function totalCleanFloorAreaM2(
|
||||
/**
|
||||
* Тот же расчёт, но шагами по комнате (#509).
|
||||
*
|
||||
* Даже с общей кладкой пространства полный обход большого дома — это ~1,5 с
|
||||
* непрерывной работы в главном потоке. Вне кадра он не задерживает первый
|
||||
* показ панели, но всё ещё «подвешивает» интерфейс на всё это время, а это
|
||||
* ровно тот симптом, ради которого заведена задача. Поэтому расчёт отдаёт
|
||||
* управление после каждой комнаты: вызывающий сам решает, сколько работы
|
||||
* уместить в кадр.
|
||||
*/
|
||||
export function* cleanFloorAreaSteps(
|
||||
config: ServerConfig,
|
||||
models: readonly SpaceModel[],
|
||||
geometryOf: typeof spaceWallGeometry = spaceWallGeometry,
|
||||
): number | null {
|
||||
): Generator<void, number | null, void> {
|
||||
try {
|
||||
let total = 0;
|
||||
for (const space of models) {
|
||||
@@ -107,6 +116,7 @@ export function totalCleanFloorAreaM2(
|
||||
) || poly;
|
||||
const clean = floorMinusBodies(inner, prepared.physicalBodies) as Geom;
|
||||
spaceFloor = unionGeometry(spaceFloor, clean);
|
||||
yield;
|
||||
}
|
||||
const cmPerUnit = prepared.cellCm / GRID_PITCH;
|
||||
total += geometryArea(spaceFloor) * cmPerUnit * cmPerUnit / 1e4;
|
||||
@@ -117,6 +127,18 @@ export function totalCleanFloorAreaM2(
|
||||
}
|
||||
}
|
||||
|
||||
/** Canonical clean-floor union, in physical square metres, for every space. */
|
||||
export function totalCleanFloorAreaM2(
|
||||
config: ServerConfig,
|
||||
models: readonly SpaceModel[],
|
||||
geometryOf: typeof spaceWallGeometry = spaceWallGeometry,
|
||||
): number | null {
|
||||
const steps = cleanFloorAreaSteps(config, models, geometryOf);
|
||||
let step = steps.next();
|
||||
while (!step.done) step = steps.next();
|
||||
return step.value;
|
||||
}
|
||||
|
||||
export function summarySystemValue(
|
||||
source: SummaryPanelSource,
|
||||
values: { deviceCount: number | null; areaM2: number | null; now: Date },
|
||||
|
||||
@@ -63,6 +63,9 @@ type SummaryLayoutState = {
|
||||
* this controller owns only summary-panel local/UI state and asks the host to
|
||||
* repaint after mutations.
|
||||
*/
|
||||
/** Бюджет одной порции фонового расчёта агрегатов: короче кадра (#509). */
|
||||
const SUMMARY_METRICS_FRAME_BUDGET_MS = 8;
|
||||
|
||||
export class LoadedSummaryPanelRuntime {
|
||||
private readonly host: SummaryPanelHost;
|
||||
private dialog: SummaryPanelDialogState | null = null;
|
||||
@@ -89,6 +92,8 @@ export class LoadedSummaryPanelRuntime {
|
||||
// геометрии занимал сотни миллисекунд прямо в render, и первый показ панели
|
||||
// выглядел зависанием. Здесь — только флаг «пересчёт уже запланирован».
|
||||
private metricsRefresh = 0;
|
||||
private areaSteps: Generator<void, number | null, void> | null = null;
|
||||
private areaStepsEpoch = -1;
|
||||
private styleSheet: CSSStyleSheet | null = null;
|
||||
private entityIndex: SummaryEntityIndex | null = null;
|
||||
private lifecycleGeneration = 0;
|
||||
@@ -722,8 +727,13 @@ export class LoadedSummaryPanelRuntime {
|
||||
const run = () => {
|
||||
this.metricsRefresh = 0;
|
||||
if (!this.current(generation)) return;
|
||||
this.computeMetrics();
|
||||
// Порциями по комнате с бюджетом на кадр: полный обход большого дома —
|
||||
// полторы секунды непрерывной работы, и вне кадра он всё равно
|
||||
// «подвешивал» бы интерфейс (#509). Каждая порция короче кадра, между
|
||||
// порциями браузер обрабатывает ввод и рисует.
|
||||
const done = this.advanceMetrics(SUMMARY_METRICS_FRAME_BUDGET_MS);
|
||||
this.host.requestUpdate();
|
||||
if (!done) this.scheduleMetrics();
|
||||
};
|
||||
// Кадр сначала должен быть показан: rAF отдаёт нам момент ПОСЛЕ отрисовки,
|
||||
// таймер — фолбэк для окружений без rAF (тесты, скрытая вкладка).
|
||||
@@ -735,7 +745,33 @@ export class LoadedSummaryPanelRuntime {
|
||||
}
|
||||
|
||||
/** @internal — фоновый пересчёт агрегатов; тесты вызывают напрямую (#509). */
|
||||
public computeMetrics(): void {
|
||||
/**
|
||||
* Один шаг фонового расчёта: работает не дольше бюджета, возвращает `true`,
|
||||
* когда считать больше нечего (#509).
|
||||
*/
|
||||
public advanceMetrics(budgetMs = SUMMARY_METRICS_FRAME_BUDGET_MS): boolean {
|
||||
const module = this.metricsModule;
|
||||
if (!module) return true;
|
||||
this.computeDeviceCount();
|
||||
if (!this.host._serverCfg) {
|
||||
this.areaMemo = { cfgEpoch: this.host._cfgEpoch, value: null };
|
||||
return true;
|
||||
}
|
||||
if (this.areaMemo && this.areaMemo.cfgEpoch === this.host._cfgEpoch) return true;
|
||||
if (!this.areaSteps || this.areaStepsEpoch !== this.host._cfgEpoch) {
|
||||
this.areaSteps = module.cleanFloorAreaSteps(this.host._serverCfg, this.host._model);
|
||||
this.areaStepsEpoch = this.host._cfgEpoch;
|
||||
}
|
||||
const started = Date.now();
|
||||
let step = this.areaSteps.next();
|
||||
while (!step.done && Date.now() - started < budgetMs) step = this.areaSteps.next();
|
||||
if (!step.done) return false;
|
||||
this.areaMemo = { cfgEpoch: this.areaStepsEpoch, value: step.value ?? null };
|
||||
this.areaSteps = null;
|
||||
return true;
|
||||
}
|
||||
|
||||
private computeDeviceCount(): void {
|
||||
const module = this.metricsModule;
|
||||
if (!module) return;
|
||||
if (!this.deviceMemo || this.deviceMemo.cfgEpoch !== this.host._cfgEpoch
|
||||
@@ -754,12 +790,11 @@ export class LoadedSummaryPanelRuntime {
|
||||
registryRev: this.host._haRegistry.revision, value: represented?.size ?? null,
|
||||
};
|
||||
}
|
||||
if (!this.areaMemo || this.areaMemo.cfgEpoch !== this.host._cfgEpoch) {
|
||||
this.areaMemo = {
|
||||
cfgEpoch: this.host._cfgEpoch,
|
||||
value: this.host._serverCfg ? module.totalCleanFloorAreaM2(this.host._serverCfg, this.host._model) : null,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/** Синхронный расчёт целиком — тесты и окружения без кадров (#509). */
|
||||
public computeMetrics(): void {
|
||||
while (!this.advanceMetrics(Number.POSITIVE_INFINITY)) { /* до конца */ }
|
||||
}
|
||||
|
||||
private metrics(): { deviceCount: number | null; areaM2: number | null; now: Date } {
|
||||
|
||||
@@ -244,13 +244,20 @@ test('#509 AC1/AC2/AC9: значение показывает скелет до
|
||||
? (values.deviceCount === null ? null : String(values.deviceCount)) : null),
|
||||
representedHaDeviceIds: () => new Set(['d1', 'd2']),
|
||||
totalCleanFloorAreaM2: () => 12.5,
|
||||
// Порционный расчёт площади (#509): генератор, отдающий управление
|
||||
// после каждой комнаты. Здесь — две порции, чтобы проверить и то, что
|
||||
// незавершённый расчёт не считается готовым.
|
||||
cleanFloorAreaSteps: function* steps() { yield; yield; return 12.5; },
|
||||
};
|
||||
assert.deepEqual(state(deviceCount), { kind: 'pending' });
|
||||
// AC2: живая сущность отвечает сразу; отсутствующая — честная ошибка.
|
||||
assert.deepEqual(state(entity), { kind: 'ready', text: 'On' });
|
||||
assert.deepEqual(state({ ...entity, source: { type: 'entity', entity_id: 'light.gone' } }), { kind: 'unavailable' });
|
||||
|
||||
// Расчёт после кадра: имитируем его завершение.
|
||||
// Порция короче полного расчёта не делает значение готовым…
|
||||
assert.equal(runtime.advanceMetrics(-1), false, 'бюджет исчерпан — расчёт продолжится');
|
||||
assert.equal(runtime.metricsFresh(), false);
|
||||
// …а полный проход — делает.
|
||||
runtime.computeMetrics();
|
||||
assert.deepEqual(state(deviceCount), { kind: 'ready', text: '2' });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user