mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-03 21:28:59 +00:00
@@ -1,251 +1,251 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "6412fad64699400d6b77fdda3cf1ecebe27c1dc2134d0e63e34fc7ef196a99a0",
|
||||
"fingerprint": "112643a8aad29264054ec9372cc2658db416802a8d41ee537a4771b736b6a339",
|
||||
"entry": "houseplan-card.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js",
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 289556,
|
||||
"initialViewGzipBytes": 289573,
|
||||
"lazyFiles": [
|
||||
"houseplan-assets/backdrop-pick-flaNG0_n.js",
|
||||
"houseplan-assets/de-D3py1G7D.js",
|
||||
"houseplan-assets/editor-BnofZxOF.js",
|
||||
"houseplan-assets/fr-L4xgx5pL.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CiVCUNvm.js",
|
||||
"houseplan-assets/guard-eiu_tbpd.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-BH5YaEYG.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-85cI-2kH.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DMrX_wpv.js",
|
||||
"houseplan-assets/iso-scene-render-CuYsIodT.js",
|
||||
"houseplan-assets/live-interaction-runtime-CH6eiF-a.js",
|
||||
"houseplan-assets/pdf-export-COKn8jYQ.js",
|
||||
"houseplan-assets/zigbee-topology-CQqDGRbo.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Dpiom0TO.js"
|
||||
"houseplan-assets/backdrop-pick-DubHaSDf.js",
|
||||
"houseplan-assets/de-DPCqBr5P.js",
|
||||
"houseplan-assets/editor-CmM6quh1.js",
|
||||
"houseplan-assets/fr-C_r3cO05.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"houseplan-assets/guard-CFQddxbr.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-e-dG4Ei0.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D8cJDCsE.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-Yc4xSGb-.js",
|
||||
"houseplan-assets/iso-scene-render-BNRo0lct.js",
|
||||
"houseplan-assets/live-interaction-runtime-DUSSC4_H.js",
|
||||
"houseplan-assets/pdf-export-BiG3Atf9.js",
|
||||
"houseplan-assets/zigbee-topology-DkupobQQ.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Bwf2MjrI.js"
|
||||
],
|
||||
"lazyGzipBytes": 377345,
|
||||
"lazyGzipBytes": 377415,
|
||||
"lazyEditorFiles": [
|
||||
"houseplan-assets/backdrop-pick-flaNG0_n.js",
|
||||
"houseplan-assets/editor-BnofZxOF.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CiVCUNvm.js",
|
||||
"houseplan-assets/guard-eiu_tbpd.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-BH5YaEYG.js",
|
||||
"houseplan-assets/zigbee-topology-CQqDGRbo.js"
|
||||
"houseplan-assets/backdrop-pick-DubHaSDf.js",
|
||||
"houseplan-assets/editor-CmM6quh1.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"houseplan-assets/guard-CFQddxbr.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-e-dG4Ei0.js",
|
||||
"houseplan-assets/zigbee-topology-DkupobQQ.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 195204,
|
||||
"lazyEditorGzipBytes": 195227,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick-flaNG0_n.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-85cI-2kH.js"
|
||||
"houseplan-assets/backdrop-pick-DubHaSDf.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D8cJDCsE.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 14317,
|
||||
"lazyOnboardingGzipBytes": 14325,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-D3py1G7D.js",
|
||||
"houseplan-assets/fr-L4xgx5pL.js"
|
||||
"houseplan-assets/de-DPCqBr5P.js",
|
||||
"houseplan-assets/fr-C_r3cO05.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 50257,
|
||||
"lazyLocaleGzipBytes": 50278,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/guard-eiu_tbpd.js",
|
||||
"houseplan-assets/iso-scene-render-CuYsIodT.js"
|
||||
"houseplan-assets/guard-CFQddxbr.js",
|
||||
"houseplan-assets/iso-scene-render-BNRo0lct.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 13446,
|
||||
"lazyIsometricGzipBytes": 13458,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-CiVCUNvm.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 10255,
|
||||
"lazyFurnitureArtGzipBytes": 10249,
|
||||
"lazyPdfFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-CiVCUNvm.js",
|
||||
"houseplan-assets/pdf-export-COKn8jYQ.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"houseplan-assets/pdf-export-BiG3Atf9.js"
|
||||
],
|
||||
"lazyPdfGzipBytes": 114486,
|
||||
"lazyPdfGzipBytes": 114478,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick-flaNG0_n.js",
|
||||
"sha256": "04e8745a797c6f976ec5f87f9c0a5bc18653f1028275861044263a2daf22969b",
|
||||
"path": "houseplan-assets/backdrop-pick-DubHaSDf.js",
|
||||
"sha256": "e16cd963f9fbd07bea131e987a719cfe5a26824c2814edcff25a55f91bdb62ce",
|
||||
"rawBytes": 21592,
|
||||
"gzipBytes": 7355,
|
||||
"gzipBytes": 7357,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js"
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-D3py1G7D.js",
|
||||
"sha256": "20652fe56057977dae0187378dbc3c67a0ce311e12ba8838e5c1d54ffcd1cd93",
|
||||
"path": "houseplan-assets/de-DPCqBr5P.js",
|
||||
"sha256": "e24a0c358a13d4590494a18487d02a72a523f7ebc2953068974a92ac560ce5c3",
|
||||
"rawBytes": 84320,
|
||||
"gzipBytes": 25372,
|
||||
"gzipBytes": 25382,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-BnofZxOF.js",
|
||||
"sha256": "51746cf20edd2be956863470de80b3fbe7ece5d9fe9e65ba5a52dfafffa53f8e",
|
||||
"path": "houseplan-assets/editor-CmM6quh1.js",
|
||||
"sha256": "f752e80919c1fc18b8ab523030865dd9f9173c204ec068a9c1c92cae83896f88",
|
||||
"rawBytes": 3837,
|
||||
"gzipBytes": 1584,
|
||||
"gzipBytes": 1590,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js"
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-L4xgx5pL.js",
|
||||
"sha256": "b8d5a14bde89f9e07b0c7ab70f08c5099237ffaa5759081d3e1e3f8c18b0cc98",
|
||||
"path": "houseplan-assets/fr-C_r3cO05.js",
|
||||
"sha256": "0801edde1312c78af7894a10b34a2b0945edac4847fb05f973e0d6b349d4e213",
|
||||
"rawBytes": 86352,
|
||||
"gzipBytes": 24885,
|
||||
"gzipBytes": 24896,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-CiVCUNvm.js",
|
||||
"sha256": "6081dc4efb3668d809bb82dec2621dd3f70ad405188aba7e24479d6ad69c28ea",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"sha256": "5e62c98a1a271d7ff1580fb60b1b7a199e284294cc3a194265666e11d41e7f42",
|
||||
"rawBytes": 33655,
|
||||
"gzipBytes": 10255,
|
||||
"gzipBytes": 10249,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/guard-eiu_tbpd.js",
|
||||
"sha256": "1ee2be96bf2ce1d4685dd7c3d5de794447ba876ff05d536bb58adea654c056e7",
|
||||
"path": "houseplan-assets/guard-CFQddxbr.js",
|
||||
"sha256": "b823b10e202c2523de500308432372c1e0ae14a956822e5e8f7eba3d1bc3556a",
|
||||
"rawBytes": 518,
|
||||
"gzipBytes": 365,
|
||||
"gzipBytes": 373,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js"
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-BCodcbie.js",
|
||||
"sha256": "b40defc0d09d30394c8b88f2a8df835b5cf014df27c7ab093257d02fa080edc5",
|
||||
"path": "houseplan-assets/houseplan-card-s3bVlTkn.js",
|
||||
"sha256": "2d97e21595f4b7558fb29b12fcccac30ea891e74a2fa61f3c3af1f1b8815f6b2",
|
||||
"rawBytes": 1040882,
|
||||
"gzipBytes": 288764,
|
||||
"gzipBytes": 288777,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/de-D3py1G7D.js",
|
||||
"houseplan-assets/editor-BnofZxOF.js",
|
||||
"houseplan-assets/fr-L4xgx5pL.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CiVCUNvm.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-BH5YaEYG.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-85cI-2kH.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DMrX_wpv.js",
|
||||
"houseplan-assets/iso-scene-render-CuYsIodT.js",
|
||||
"houseplan-assets/live-interaction-runtime-CH6eiF-a.js",
|
||||
"houseplan-assets/pdf-export-COKn8jYQ.js"
|
||||
"houseplan-assets/de-DPCqBr5P.js",
|
||||
"houseplan-assets/editor-CmM6quh1.js",
|
||||
"houseplan-assets/fr-C_r3cO05.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-e-dG4Ei0.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D8cJDCsE.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-Yc4xSGb-.js",
|
||||
"houseplan-assets/iso-scene-render-BNRo0lct.js",
|
||||
"houseplan-assets/live-interaction-runtime-DUSSC4_H.js",
|
||||
"houseplan-assets/pdf-export-BiG3Atf9.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-BH5YaEYG.js",
|
||||
"sha256": "6bd2e8c672fe3bf779c829a4b111752a1d53233ca75b77ec0cc9e92ea26d3ef3",
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-e-dG4Ei0.js",
|
||||
"sha256": "a03f4b121b76cf18efd73a1e06745c10637215cfd0b56a791eaa3bfed0ccb9a4",
|
||||
"rawBytes": 631884,
|
||||
"gzipBytes": 168220,
|
||||
"gzipBytes": 168229,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-flaNG0_n.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CiVCUNvm.js",
|
||||
"houseplan-assets/guard-eiu_tbpd.js",
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js",
|
||||
"houseplan-assets/zigbee-topology-CQqDGRbo.js"
|
||||
"houseplan-assets/backdrop-pick-DubHaSDf.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"houseplan-assets/guard-CFQddxbr.js",
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js",
|
||||
"houseplan-assets/zigbee-topology-DkupobQQ.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/zigbee-topology-runtime-Dpiom0TO.js"
|
||||
"houseplan-assets/zigbee-topology-runtime-Bwf2MjrI.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-85cI-2kH.js",
|
||||
"sha256": "3f1ebc1a94c0d80789d80ac38f504aa835834c55d2d957b5d5e5e90fef100007",
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-D8cJDCsE.js",
|
||||
"sha256": "c315d1d6688ddd9ed61aa9255a9575a9794a780d3857881680ad082f71f3e588",
|
||||
"rawBytes": 28071,
|
||||
"gzipBytes": 6962,
|
||||
"gzipBytes": 6968,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-flaNG0_n.js",
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js"
|
||||
"houseplan-assets/backdrop-pick-DubHaSDf.js",
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-DMrX_wpv.js",
|
||||
"sha256": "688fdbdaf6d7c76cf81fe8b9068c75a71d73ac12ce59bb6bf79b4c734aba05ac",
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-Yc4xSGb-.js",
|
||||
"sha256": "bd0fb0bef591f0fcea4d9eea53be532e049fc87fe566beb9bc9ab36d5e7aa766",
|
||||
"rawBytes": 11034,
|
||||
"gzipBytes": 3728,
|
||||
"gzipBytes": 3733,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js",
|
||||
"houseplan-assets/zigbee-topology-CQqDGRbo.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Dpiom0TO.js"
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js",
|
||||
"houseplan-assets/zigbee-topology-DkupobQQ.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Bwf2MjrI.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-CuYsIodT.js",
|
||||
"sha256": "67856018777fa49b14a323beb24c0b416738f1a62399ab00e0d0f1d62bd14aaa",
|
||||
"path": "houseplan-assets/iso-scene-render-BNRo0lct.js",
|
||||
"sha256": "3f75fa03f6d507baf8c73a291c65dd4aa934780d5ba6d5f8097efdba45b34aae",
|
||||
"rawBytes": 38562,
|
||||
"gzipBytes": 13081,
|
||||
"gzipBytes": 13085,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/guard-eiu_tbpd.js",
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js"
|
||||
"houseplan-assets/guard-CFQddxbr.js",
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-CH6eiF-a.js",
|
||||
"sha256": "4496895d47a93cb25b52f543915fd62147ffbb081130128abb86335fe953853e",
|
||||
"path": "houseplan-assets/live-interaction-runtime-DUSSC4_H.js",
|
||||
"sha256": "a37e4c7785159b7254d4d2bd6a33117464e01a18a4e8f9818019e55069a2692b",
|
||||
"rawBytes": 5196,
|
||||
"gzipBytes": 2122,
|
||||
"gzipBytes": 2130,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js"
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/pdf-export-COKn8jYQ.js",
|
||||
"sha256": "fbdb5f9473127c4d4aafb94cd912f031ecd684e65764cba5319ed0f58efc51e8",
|
||||
"path": "houseplan-assets/pdf-export-BiG3Atf9.js",
|
||||
"sha256": "8e09ba7764e0110bab5e6971bcaab8a31a7c2e22937953de7e61a5b0cf1355be",
|
||||
"rawBytes": 220489,
|
||||
"gzipBytes": 104231,
|
||||
"gzipBytes": 104229,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/furniture-plan-art.generated-CiVCUNvm.js",
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-CQqDGRbo.js",
|
||||
"sha256": "08222cd7aef111484a28efc7d8189aec4e360cd393daf1742127d49e0fc19746",
|
||||
"path": "houseplan-assets/zigbee-topology-DkupobQQ.js",
|
||||
"sha256": "164a592977580a5a285cbac17e1b2ae6bc7a22b881d9e72b89dbedccef945c1d",
|
||||
"rawBytes": 18961,
|
||||
"gzipBytes": 7425,
|
||||
"gzipBytes": 7429,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js"
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-Dpiom0TO.js",
|
||||
"sha256": "b7d06489a8b0d553848e1d7264f34e05fb5b093202cacf2db98ab2e387c901f7",
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-Bwf2MjrI.js",
|
||||
"sha256": "72180179807d8cdf91e6413e8bdacd78e150589efc91164d1237753bc2f04350",
|
||||
"rawBytes": 3941,
|
||||
"gzipBytes": 1760,
|
||||
"gzipBytes": 1765,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js",
|
||||
"houseplan-assets/zigbee-topology-CQqDGRbo.js"
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js",
|
||||
"houseplan-assets/zigbee-topology-DkupobQQ.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "4037aeb456109886170e1113322ef22e9d6d77fc01fa9df01c4351ee0b151719",
|
||||
"sha256": "1ecda001d2d0b03a02e3820dc1f8e7fd2d9bbbd7f9ba1386819b104d78ecb1c5",
|
||||
"rawBytes": 1183,
|
||||
"gzipBytes": 792,
|
||||
"gzipBytes": 796,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js"
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
}
|
||||
|
||||
+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
+5
-5
@@ -1,14 +1,14 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="6412fad64699400d6b77fdda3cf1ecebe27c1dc2134d0e63e34fc7ef196a99a0";import{t as e,l as o,x as t,dV as s,A as a,dW as i,dX as l,dY as n,dM as r,b as c}from"./houseplan-card-BCodcbie.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__="112643a8aad29264054ec9372cc2658db416802a8d41ee537a4771b736b6a339";import{t as e,l as o,x as t,dV as s,A as a,dW as i,dX as l,dY as n,dM as r,b as c}from"./houseplan-card-s3bVlTkn.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")},_=this._schema,f=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
|
||||
.hass=${this.hass}
|
||||
.data=${this._formData}
|
||||
.schema=${e}
|
||||
.computeLabel=${e=>h[e.name]||e.name}
|
||||
@value-changed=${this._valueChanged}
|
||||
></ha-form>`;return c`
|
||||
${d(f.slice(0,3))}
|
||||
${_?c`<div class="default-floor-error" role="alert"
|
||||
${d(_.slice(0,3))}
|
||||
${f?c`<div class="default-floor-error" role="alert"
|
||||
style="color:var(--error-color,#db4437);margin:-4px 0 12px;overflow-wrap:anywhere">
|
||||
${t(s,"editor.default_floor_missing",{id:_})}
|
||||
${t(s,"editor.default_floor_missing",{id:f})}
|
||||
</div>`:a}
|
||||
${d(f.slice(3))}
|
||||
${d(_.slice(3))}
|
||||
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}h.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",h);
|
||||
+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__="112643a8aad29264054ec9372cc2658db416802a8d41ee537a4771b736b6a339";import{dK as r,dL as t,dM as e}from"./houseplan-card-s3bVlTkn.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
|
||||
@@ -1 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="6412fad64699400d6b77fdda3cf1ecebe27c1dc2134d0e63e34fc7ef196a99a0";import{dK as r,dL as e,dM as t}from"./houseplan-card-BCodcbie.js";const s={},a=r(class extends e{constructor(){super(...arguments),this.ot=s}render(r,e){return e()}update(r,[e,s]){if(Array.isArray(e)){if(Array.isArray(this.ot)&&this.ot.length===e.length&&e.every((r,e)=>r===this.ot[e]))return t}else if(this.ot===e)return t;return this.ot=Array.isArray(e)?Array.from(e):e,this.render(e,s)}});export{a as i};
|
||||
+6
-6
File diff suppressed because one or more lines are too long
+3
-3
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
File diff suppressed because one or more lines are too long
+8
-8
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
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="6412fad64699400d6b77fdda3cf1ecebe27c1dc2134d0e63e34fc7ef196a99a0";import{n as t,b as n}from"./zigbee-topology-CQqDGRbo.js";import{F as e}from"./houseplan-card-BCodcbie.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function m(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function g(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const f=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&p?.(n):c&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await m(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="112643a8aad29264054ec9372cc2658db416802a8d41ee537a4771b736b6a339";import{n as t,b as n}from"./zigbee-topology-DkupobQQ.js";import{F as e}from"./houseplan-card-s3bVlTkn.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 m(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function g(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(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,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,g=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const 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&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await m(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await m(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{f as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="6412fad64699400d6b77fdda3cf1ecebe27c1dc2134d0e63e34fc7ef196a99a0";try{await import("./houseplan-assets/houseplan-card-BCodcbie.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 entry: the main chunk is unavailable",e)}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="112643a8aad29264054ec9372cc2658db416802a8d41ee537a4771b736b6a339";try{await import("./houseplan-assets/houseplan-card-s3bVlTkn.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 entry: the main chunk is unavailable",e)}
|
||||
|
||||
@@ -25,12 +25,32 @@ await clickPrinter(page);
|
||||
await page.waitForFunction(() => window.__card.renderRoot.querySelector('hp-pdf-dialog'));
|
||||
|
||||
const dialog = await page.evaluate(async () => {
|
||||
const frame = () => new Promise((resolve) => requestAnimationFrame(resolve));
|
||||
const card = window.__card;
|
||||
const pdf = card.renderRoot.querySelector('hp-pdf-dialog');
|
||||
const root = pdf.shadowRoot || pdf.renderRoot;
|
||||
const shell = root.querySelector('hp-dialog');
|
||||
await shell?.updateComplete;
|
||||
const native = shell?.shadowRoot?.querySelector('dialog');
|
||||
const parent = pdf.parentNode;
|
||||
const surface = shell?.shadowRoot?.querySelector('.surface');
|
||||
const centred = () => {
|
||||
const rect = surface?.getBoundingClientRect();
|
||||
return !!rect
|
||||
&& Math.abs((rect.left + rect.right) / 2 - innerWidth / 2) <= 1
|
||||
&& Math.abs((rect.top + rect.bottom) / 2 - innerHeight / 2) <= 1;
|
||||
};
|
||||
const shellBeforeReconnect = native || shell?.shadowRoot?.querySelector('ha-dialog');
|
||||
pdf.remove();
|
||||
parent?.append(pdf);
|
||||
await pdf.updateComplete;
|
||||
await shell?.updateComplete;
|
||||
await frame();
|
||||
await frame();
|
||||
const shellAfterReconnect = native || shell?.shadowRoot?.querySelector('ha-dialog');
|
||||
const reconnectKeepsModalCentered = shellBeforeReconnect === shellAfterReconnect
|
||||
&& (native ? native.open && native.matches(':modal') : !!shellAfterReconnect)
|
||||
&& centred();
|
||||
const inputs = [...root.querySelectorAll('input[type="checkbox"]')];
|
||||
const defaults = {
|
||||
dimensions: inputs[0]?.checked,
|
||||
@@ -46,6 +66,7 @@ const dialog = await page.evaluate(async () => {
|
||||
expectedCount: card._spaceModel().bg ? 4 : 3,
|
||||
defaults,
|
||||
modal: native ? native.open && native.matches(':modal') : true,
|
||||
reconnectKeepsModalCentered,
|
||||
editorStillAbsent: !card._editorRuntime,
|
||||
};
|
||||
});
|
||||
@@ -95,6 +116,7 @@ const out = {
|
||||
defaultsAndTouchModalWork: dialog.defaults.dimensions && dialog.defaults.names
|
||||
&& !dialog.defaults.decor && (dialog.expectedCount === 3 || dialog.defaults.backdrop)
|
||||
&& dialog.modal,
|
||||
dialogRecoversAfterReconnect: dialog.reconnectKeepsModalCentered,
|
||||
printerDoesNotLoadEditor: dialog.editorStillAbsent,
|
||||
downloadNameIsStable: /^houseplan-.+-\d{4}-\d{2}-\d{2}\.pdf$/.test(download.suggestedFilename()),
|
||||
oneA4Page: document.numPages === 1 && (
|
||||
|
||||
Vendored
+119
-119
@@ -1,251 +1,251 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "6412fad64699400d6b77fdda3cf1ecebe27c1dc2134d0e63e34fc7ef196a99a0",
|
||||
"fingerprint": "112643a8aad29264054ec9372cc2658db416802a8d41ee537a4771b736b6a339",
|
||||
"entry": "houseplan-card.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js",
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 289556,
|
||||
"initialViewGzipBytes": 289573,
|
||||
"lazyFiles": [
|
||||
"houseplan-assets/backdrop-pick-flaNG0_n.js",
|
||||
"houseplan-assets/de-D3py1G7D.js",
|
||||
"houseplan-assets/editor-BnofZxOF.js",
|
||||
"houseplan-assets/fr-L4xgx5pL.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CiVCUNvm.js",
|
||||
"houseplan-assets/guard-eiu_tbpd.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-BH5YaEYG.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-85cI-2kH.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DMrX_wpv.js",
|
||||
"houseplan-assets/iso-scene-render-CuYsIodT.js",
|
||||
"houseplan-assets/live-interaction-runtime-CH6eiF-a.js",
|
||||
"houseplan-assets/pdf-export-COKn8jYQ.js",
|
||||
"houseplan-assets/zigbee-topology-CQqDGRbo.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Dpiom0TO.js"
|
||||
"houseplan-assets/backdrop-pick-DubHaSDf.js",
|
||||
"houseplan-assets/de-DPCqBr5P.js",
|
||||
"houseplan-assets/editor-CmM6quh1.js",
|
||||
"houseplan-assets/fr-C_r3cO05.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"houseplan-assets/guard-CFQddxbr.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-e-dG4Ei0.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D8cJDCsE.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-Yc4xSGb-.js",
|
||||
"houseplan-assets/iso-scene-render-BNRo0lct.js",
|
||||
"houseplan-assets/live-interaction-runtime-DUSSC4_H.js",
|
||||
"houseplan-assets/pdf-export-BiG3Atf9.js",
|
||||
"houseplan-assets/zigbee-topology-DkupobQQ.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Bwf2MjrI.js"
|
||||
],
|
||||
"lazyGzipBytes": 377345,
|
||||
"lazyGzipBytes": 377415,
|
||||
"lazyEditorFiles": [
|
||||
"houseplan-assets/backdrop-pick-flaNG0_n.js",
|
||||
"houseplan-assets/editor-BnofZxOF.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CiVCUNvm.js",
|
||||
"houseplan-assets/guard-eiu_tbpd.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-BH5YaEYG.js",
|
||||
"houseplan-assets/zigbee-topology-CQqDGRbo.js"
|
||||
"houseplan-assets/backdrop-pick-DubHaSDf.js",
|
||||
"houseplan-assets/editor-CmM6quh1.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"houseplan-assets/guard-CFQddxbr.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-e-dG4Ei0.js",
|
||||
"houseplan-assets/zigbee-topology-DkupobQQ.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 195204,
|
||||
"lazyEditorGzipBytes": 195227,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick-flaNG0_n.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-85cI-2kH.js"
|
||||
"houseplan-assets/backdrop-pick-DubHaSDf.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D8cJDCsE.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 14317,
|
||||
"lazyOnboardingGzipBytes": 14325,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-D3py1G7D.js",
|
||||
"houseplan-assets/fr-L4xgx5pL.js"
|
||||
"houseplan-assets/de-DPCqBr5P.js",
|
||||
"houseplan-assets/fr-C_r3cO05.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 50257,
|
||||
"lazyLocaleGzipBytes": 50278,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/guard-eiu_tbpd.js",
|
||||
"houseplan-assets/iso-scene-render-CuYsIodT.js"
|
||||
"houseplan-assets/guard-CFQddxbr.js",
|
||||
"houseplan-assets/iso-scene-render-BNRo0lct.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 13446,
|
||||
"lazyIsometricGzipBytes": 13458,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-CiVCUNvm.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 10255,
|
||||
"lazyFurnitureArtGzipBytes": 10249,
|
||||
"lazyPdfFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-CiVCUNvm.js",
|
||||
"houseplan-assets/pdf-export-COKn8jYQ.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"houseplan-assets/pdf-export-BiG3Atf9.js"
|
||||
],
|
||||
"lazyPdfGzipBytes": 114486,
|
||||
"lazyPdfGzipBytes": 114478,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick-flaNG0_n.js",
|
||||
"sha256": "04e8745a797c6f976ec5f87f9c0a5bc18653f1028275861044263a2daf22969b",
|
||||
"path": "houseplan-assets/backdrop-pick-DubHaSDf.js",
|
||||
"sha256": "e16cd963f9fbd07bea131e987a719cfe5a26824c2814edcff25a55f91bdb62ce",
|
||||
"rawBytes": 21592,
|
||||
"gzipBytes": 7355,
|
||||
"gzipBytes": 7357,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js"
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-D3py1G7D.js",
|
||||
"sha256": "20652fe56057977dae0187378dbc3c67a0ce311e12ba8838e5c1d54ffcd1cd93",
|
||||
"path": "houseplan-assets/de-DPCqBr5P.js",
|
||||
"sha256": "e24a0c358a13d4590494a18487d02a72a523f7ebc2953068974a92ac560ce5c3",
|
||||
"rawBytes": 84320,
|
||||
"gzipBytes": 25372,
|
||||
"gzipBytes": 25382,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-BnofZxOF.js",
|
||||
"sha256": "51746cf20edd2be956863470de80b3fbe7ece5d9fe9e65ba5a52dfafffa53f8e",
|
||||
"path": "houseplan-assets/editor-CmM6quh1.js",
|
||||
"sha256": "f752e80919c1fc18b8ab523030865dd9f9173c204ec068a9c1c92cae83896f88",
|
||||
"rawBytes": 3837,
|
||||
"gzipBytes": 1584,
|
||||
"gzipBytes": 1590,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js"
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-L4xgx5pL.js",
|
||||
"sha256": "b8d5a14bde89f9e07b0c7ab70f08c5099237ffaa5759081d3e1e3f8c18b0cc98",
|
||||
"path": "houseplan-assets/fr-C_r3cO05.js",
|
||||
"sha256": "0801edde1312c78af7894a10b34a2b0945edac4847fb05f973e0d6b349d4e213",
|
||||
"rawBytes": 86352,
|
||||
"gzipBytes": 24885,
|
||||
"gzipBytes": 24896,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-CiVCUNvm.js",
|
||||
"sha256": "6081dc4efb3668d809bb82dec2621dd3f70ad405188aba7e24479d6ad69c28ea",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"sha256": "5e62c98a1a271d7ff1580fb60b1b7a199e284294cc3a194265666e11d41e7f42",
|
||||
"rawBytes": 33655,
|
||||
"gzipBytes": 10255,
|
||||
"gzipBytes": 10249,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/guard-eiu_tbpd.js",
|
||||
"sha256": "1ee2be96bf2ce1d4685dd7c3d5de794447ba876ff05d536bb58adea654c056e7",
|
||||
"path": "houseplan-assets/guard-CFQddxbr.js",
|
||||
"sha256": "b823b10e202c2523de500308432372c1e0ae14a956822e5e8f7eba3d1bc3556a",
|
||||
"rawBytes": 518,
|
||||
"gzipBytes": 365,
|
||||
"gzipBytes": 373,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js"
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-BCodcbie.js",
|
||||
"sha256": "b40defc0d09d30394c8b88f2a8df835b5cf014df27c7ab093257d02fa080edc5",
|
||||
"path": "houseplan-assets/houseplan-card-s3bVlTkn.js",
|
||||
"sha256": "2d97e21595f4b7558fb29b12fcccac30ea891e74a2fa61f3c3af1f1b8815f6b2",
|
||||
"rawBytes": 1040882,
|
||||
"gzipBytes": 288764,
|
||||
"gzipBytes": 288777,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/de-D3py1G7D.js",
|
||||
"houseplan-assets/editor-BnofZxOF.js",
|
||||
"houseplan-assets/fr-L4xgx5pL.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CiVCUNvm.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-BH5YaEYG.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-85cI-2kH.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DMrX_wpv.js",
|
||||
"houseplan-assets/iso-scene-render-CuYsIodT.js",
|
||||
"houseplan-assets/live-interaction-runtime-CH6eiF-a.js",
|
||||
"houseplan-assets/pdf-export-COKn8jYQ.js"
|
||||
"houseplan-assets/de-DPCqBr5P.js",
|
||||
"houseplan-assets/editor-CmM6quh1.js",
|
||||
"houseplan-assets/fr-C_r3cO05.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-e-dG4Ei0.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D8cJDCsE.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-Yc4xSGb-.js",
|
||||
"houseplan-assets/iso-scene-render-BNRo0lct.js",
|
||||
"houseplan-assets/live-interaction-runtime-DUSSC4_H.js",
|
||||
"houseplan-assets/pdf-export-BiG3Atf9.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-BH5YaEYG.js",
|
||||
"sha256": "6bd2e8c672fe3bf779c829a4b111752a1d53233ca75b77ec0cc9e92ea26d3ef3",
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-e-dG4Ei0.js",
|
||||
"sha256": "a03f4b121b76cf18efd73a1e06745c10637215cfd0b56a791eaa3bfed0ccb9a4",
|
||||
"rawBytes": 631884,
|
||||
"gzipBytes": 168220,
|
||||
"gzipBytes": 168229,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-flaNG0_n.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CiVCUNvm.js",
|
||||
"houseplan-assets/guard-eiu_tbpd.js",
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js",
|
||||
"houseplan-assets/zigbee-topology-CQqDGRbo.js"
|
||||
"houseplan-assets/backdrop-pick-DubHaSDf.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"houseplan-assets/guard-CFQddxbr.js",
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js",
|
||||
"houseplan-assets/zigbee-topology-DkupobQQ.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/zigbee-topology-runtime-Dpiom0TO.js"
|
||||
"houseplan-assets/zigbee-topology-runtime-Bwf2MjrI.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-85cI-2kH.js",
|
||||
"sha256": "3f1ebc1a94c0d80789d80ac38f504aa835834c55d2d957b5d5e5e90fef100007",
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-D8cJDCsE.js",
|
||||
"sha256": "c315d1d6688ddd9ed61aa9255a9575a9794a780d3857881680ad082f71f3e588",
|
||||
"rawBytes": 28071,
|
||||
"gzipBytes": 6962,
|
||||
"gzipBytes": 6968,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-flaNG0_n.js",
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js"
|
||||
"houseplan-assets/backdrop-pick-DubHaSDf.js",
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-DMrX_wpv.js",
|
||||
"sha256": "688fdbdaf6d7c76cf81fe8b9068c75a71d73ac12ce59bb6bf79b4c734aba05ac",
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-Yc4xSGb-.js",
|
||||
"sha256": "bd0fb0bef591f0fcea4d9eea53be532e049fc87fe566beb9bc9ab36d5e7aa766",
|
||||
"rawBytes": 11034,
|
||||
"gzipBytes": 3728,
|
||||
"gzipBytes": 3733,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js",
|
||||
"houseplan-assets/zigbee-topology-CQqDGRbo.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Dpiom0TO.js"
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js",
|
||||
"houseplan-assets/zigbee-topology-DkupobQQ.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Bwf2MjrI.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-CuYsIodT.js",
|
||||
"sha256": "67856018777fa49b14a323beb24c0b416738f1a62399ab00e0d0f1d62bd14aaa",
|
||||
"path": "houseplan-assets/iso-scene-render-BNRo0lct.js",
|
||||
"sha256": "3f75fa03f6d507baf8c73a291c65dd4aa934780d5ba6d5f8097efdba45b34aae",
|
||||
"rawBytes": 38562,
|
||||
"gzipBytes": 13081,
|
||||
"gzipBytes": 13085,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/guard-eiu_tbpd.js",
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js"
|
||||
"houseplan-assets/guard-CFQddxbr.js",
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-CH6eiF-a.js",
|
||||
"sha256": "4496895d47a93cb25b52f543915fd62147ffbb081130128abb86335fe953853e",
|
||||
"path": "houseplan-assets/live-interaction-runtime-DUSSC4_H.js",
|
||||
"sha256": "a37e4c7785159b7254d4d2bd6a33117464e01a18a4e8f9818019e55069a2692b",
|
||||
"rawBytes": 5196,
|
||||
"gzipBytes": 2122,
|
||||
"gzipBytes": 2130,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js"
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/pdf-export-COKn8jYQ.js",
|
||||
"sha256": "fbdb5f9473127c4d4aafb94cd912f031ecd684e65764cba5319ed0f58efc51e8",
|
||||
"path": "houseplan-assets/pdf-export-BiG3Atf9.js",
|
||||
"sha256": "8e09ba7764e0110bab5e6971bcaab8a31a7c2e22937953de7e61a5b0cf1355be",
|
||||
"rawBytes": 220489,
|
||||
"gzipBytes": 104231,
|
||||
"gzipBytes": 104229,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/furniture-plan-art.generated-CiVCUNvm.js",
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-CQqDGRbo.js",
|
||||
"sha256": "08222cd7aef111484a28efc7d8189aec4e360cd393daf1742127d49e0fc19746",
|
||||
"path": "houseplan-assets/zigbee-topology-DkupobQQ.js",
|
||||
"sha256": "164a592977580a5a285cbac17e1b2ae6bc7a22b881d9e72b89dbedccef945c1d",
|
||||
"rawBytes": 18961,
|
||||
"gzipBytes": 7425,
|
||||
"gzipBytes": 7429,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js"
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-Dpiom0TO.js",
|
||||
"sha256": "b7d06489a8b0d553848e1d7264f34e05fb5b093202cacf2db98ab2e387c901f7",
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-Bwf2MjrI.js",
|
||||
"sha256": "72180179807d8cdf91e6413e8bdacd78e150589efc91164d1237753bc2f04350",
|
||||
"rawBytes": 3941,
|
||||
"gzipBytes": 1760,
|
||||
"gzipBytes": 1765,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js",
|
||||
"houseplan-assets/zigbee-topology-CQqDGRbo.js"
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js",
|
||||
"houseplan-assets/zigbee-topology-DkupobQQ.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "4037aeb456109886170e1113322ef22e9d6d77fc01fa9df01c4351ee0b151719",
|
||||
"sha256": "1ecda001d2d0b03a02e3820dc1f8e7fd2d9bbbd7f9ba1386819b104d78ecb1c5",
|
||||
"rawBytes": 1183,
|
||||
"gzipBytes": 792,
|
||||
"gzipBytes": 796,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCodcbie.js"
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
}
|
||||
|
||||
Vendored
+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
+5
-5
@@ -1,14 +1,14 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="6412fad64699400d6b77fdda3cf1ecebe27c1dc2134d0e63e34fc7ef196a99a0";import{t as e,l as o,x as t,dV as s,A as a,dW as i,dX as l,dY as n,dM as r,b as c}from"./houseplan-card-BCodcbie.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__="112643a8aad29264054ec9372cc2658db416802a8d41ee537a4771b736b6a339";import{t as e,l as o,x as t,dV as s,A as a,dW as i,dX as l,dY as n,dM as r,b as c}from"./houseplan-card-s3bVlTkn.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")},_=this._schema,f=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
|
||||
.hass=${this.hass}
|
||||
.data=${this._formData}
|
||||
.schema=${e}
|
||||
.computeLabel=${e=>h[e.name]||e.name}
|
||||
@value-changed=${this._valueChanged}
|
||||
></ha-form>`;return c`
|
||||
${d(f.slice(0,3))}
|
||||
${_?c`<div class="default-floor-error" role="alert"
|
||||
${d(_.slice(0,3))}
|
||||
${f?c`<div class="default-floor-error" role="alert"
|
||||
style="color:var(--error-color,#db4437);margin:-4px 0 12px;overflow-wrap:anywhere">
|
||||
${t(s,"editor.default_floor_missing",{id:_})}
|
||||
${t(s,"editor.default_floor_missing",{id:f})}
|
||||
</div>`:a}
|
||||
${d(f.slice(3))}
|
||||
${d(_.slice(3))}
|
||||
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}h.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",h);
|
||||
+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__="112643a8aad29264054ec9372cc2658db416802a8d41ee537a4771b736b6a339";import{dK as r,dL as t,dM as e}from"./houseplan-card-s3bVlTkn.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
|
||||
-1
@@ -1 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="6412fad64699400d6b77fdda3cf1ecebe27c1dc2134d0e63e34fc7ef196a99a0";import{dK as r,dL as e,dM as t}from"./houseplan-card-BCodcbie.js";const s={},a=r(class extends e{constructor(){super(...arguments),this.ot=s}render(r,e){return e()}update(r,[e,s]){if(Array.isArray(e)){if(Array.isArray(this.ot)&&this.ot.length===e.length&&e.every((r,e)=>r===this.ot[e]))return t}else if(this.ot===e)return t;return this.ot=Array.isArray(e)?Array.from(e):e,this.render(e,s)}});export{a as i};
|
||||
Vendored
+6
-6
File diff suppressed because one or more lines are too long
+3
-3
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
File diff suppressed because one or more lines are too long
+8
-8
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
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="6412fad64699400d6b77fdda3cf1ecebe27c1dc2134d0e63e34fc7ef196a99a0";import{n as t,b as n}from"./zigbee-topology-CQqDGRbo.js";import{F as e}from"./houseplan-card-BCodcbie.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function m(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function g(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const f=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&p?.(n):c&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await m(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="112643a8aad29264054ec9372cc2658db416802a8d41ee537a4771b736b6a339";import{n as t,b as n}from"./zigbee-topology-DkupobQQ.js";import{F as e}from"./houseplan-card-s3bVlTkn.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 m(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function g(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(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,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,g=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const 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&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await m(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await m(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{f as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="6412fad64699400d6b77fdda3cf1ecebe27c1dc2134d0e63e34fc7ef196a99a0";try{await import("./houseplan-assets/houseplan-card-BCodcbie.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 entry: the main chunk is unavailable",e)}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="112643a8aad29264054ec9372cc2658db416802a8d41ee537a4771b736b6a339";try{await import("./houseplan-assets/houseplan-card-s3bVlTkn.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 entry: the main chunk is unavailable",e)}
|
||||
|
||||
@@ -336,7 +336,7 @@ View. `localStorage` — единственное новое состояние,
|
||||
| AC11 | Ленивость: чанк `pdf` не в initial, initial View растёт только на кнопку, exact-build loader и передачу контекста (≤ 1 200 Б gzip; замер реализации относительно `origin/dev` — 983 Б); отказ загрузки чанка → тост, карточка жива; чужая сборка → терминальный отказ без повтора | `bundle:budget` + smoke с перехватом чанка (образец #474) |
|
||||
| AC12 | Скачивание работает в мобильном приложении HA (Android) — файл появляется в загрузках | вручную владельцем на даче до закрытия, запись в issue |
|
||||
| AC13 | Растровая подложка встроена под геометрией с прозрачностью, лимит 25 МБ даёт `pdf.too_large` без файла | unit + smoke |
|
||||
| AC14 | Диалог модален и центрирован после переподключения HA (контракт #463) | smoke `smoke_dialog_modal_recovery` расширяется на `hp-pdf-dialog` |
|
||||
| AC14 | Диалог модален и центрирован после переподключения HA (контракт #463) | `smoke_pdf_export` повторяет reconnect-проверку из `smoke_dialog_modal_recovery` на реальном `hp-pdf-dialog` |
|
||||
| AC15 | Свидетели §13 в реестре, каждый «поймано 1 из 1» | отрицательные прогоны |
|
||||
|
||||
## 13. План автотестов
|
||||
|
||||
Reference in New Issue
Block a user