mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-01 04:09:17 +00:00
@@ -1,251 +1,251 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "112643a8aad29264054ec9372cc2658db416802a8d41ee537a4771b736b6a339",
|
||||
"fingerprint": "b332044218271051c4a939cfbdc8b87e45393dfb7a75b61c6b3535f92b3afdbd",
|
||||
"entry": "houseplan-card.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js",
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 289573,
|
||||
"initialViewGzipBytes": 289611,
|
||||
"lazyFiles": [
|
||||
"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"
|
||||
"houseplan-assets/backdrop-pick-B1EefAgT.js",
|
||||
"houseplan-assets/de-CZ246cdk.js",
|
||||
"houseplan-assets/editor-D8gv2kqT.js",
|
||||
"houseplan-assets/fr-qOPvzulz.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-sWkfgXfr.js",
|
||||
"houseplan-assets/guard-e__Wz0Kq.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-BOFIqkpb.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-B2jpNrBY.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-BaQSHmzG.js",
|
||||
"houseplan-assets/iso-scene-render-C3a6fTr3.js",
|
||||
"houseplan-assets/live-interaction-runtime-t8MYyn20.js",
|
||||
"houseplan-assets/pdf-export-hy2vL_vF.js",
|
||||
"houseplan-assets/zigbee-topology-CYIGlVKb.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Dx_TEW7G.js"
|
||||
],
|
||||
"lazyGzipBytes": 377415,
|
||||
"lazyGzipBytes": 377461,
|
||||
"lazyEditorFiles": [
|
||||
"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"
|
||||
"houseplan-assets/backdrop-pick-B1EefAgT.js",
|
||||
"houseplan-assets/editor-D8gv2kqT.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-sWkfgXfr.js",
|
||||
"houseplan-assets/guard-e__Wz0Kq.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-BOFIqkpb.js",
|
||||
"houseplan-assets/zigbee-topology-CYIGlVKb.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 195227,
|
||||
"lazyEditorGzipBytes": 195240,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick-DubHaSDf.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D8cJDCsE.js"
|
||||
"houseplan-assets/backdrop-pick-B1EefAgT.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-B2jpNrBY.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 14325,
|
||||
"lazyOnboardingGzipBytes": 14329,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-DPCqBr5P.js",
|
||||
"houseplan-assets/fr-C_r3cO05.js"
|
||||
"houseplan-assets/de-CZ246cdk.js",
|
||||
"houseplan-assets/fr-qOPvzulz.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 50278,
|
||||
"lazyLocaleGzipBytes": 50272,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/guard-CFQddxbr.js",
|
||||
"houseplan-assets/iso-scene-render-BNRo0lct.js"
|
||||
"houseplan-assets/guard-e__Wz0Kq.js",
|
||||
"houseplan-assets/iso-scene-render-C3a6fTr3.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 13458,
|
||||
"lazyIsometricGzipBytes": 13460,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-sWkfgXfr.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 10249,
|
||||
"lazyFurnitureArtGzipBytes": 10253,
|
||||
"lazyPdfFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"houseplan-assets/pdf-export-BiG3Atf9.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-sWkfgXfr.js",
|
||||
"houseplan-assets/pdf-export-hy2vL_vF.js"
|
||||
],
|
||||
"lazyPdfGzipBytes": 114478,
|
||||
"lazyPdfGzipBytes": 114516,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick-DubHaSDf.js",
|
||||
"sha256": "e16cd963f9fbd07bea131e987a719cfe5a26824c2814edcff25a55f91bdb62ce",
|
||||
"path": "houseplan-assets/backdrop-pick-B1EefAgT.js",
|
||||
"sha256": "25bbab5076c879c847b86872195475858315d5f36ca8ff61b8de58d0e2287b17",
|
||||
"rawBytes": 21592,
|
||||
"gzipBytes": 7357,
|
||||
"gzipBytes": 7361,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-DPCqBr5P.js",
|
||||
"sha256": "e24a0c358a13d4590494a18487d02a72a523f7ebc2953068974a92ac560ce5c3",
|
||||
"path": "houseplan-assets/de-CZ246cdk.js",
|
||||
"sha256": "8a1d2fe22e56bd4220672e135127574c2a9ceb5597f7cd737d143c7a6d6c3c0e",
|
||||
"rawBytes": 84320,
|
||||
"gzipBytes": 25382,
|
||||
"gzipBytes": 25379,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-CmM6quh1.js",
|
||||
"sha256": "f752e80919c1fc18b8ab523030865dd9f9173c204ec068a9c1c92cae83896f88",
|
||||
"path": "houseplan-assets/editor-D8gv2kqT.js",
|
||||
"sha256": "edcfa79910318f7faccf22e249ec72d3023955f58226206058f8a8a1fdc49b01",
|
||||
"rawBytes": 3837,
|
||||
"gzipBytes": 1590,
|
||||
"gzipBytes": 1591,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-C_r3cO05.js",
|
||||
"sha256": "0801edde1312c78af7894a10b34a2b0945edac4847fb05f973e0d6b349d4e213",
|
||||
"path": "houseplan-assets/fr-qOPvzulz.js",
|
||||
"sha256": "2b4df1a44b0397af345c9761242ca27adf86c290f11943b0e64c552f3bd823e9",
|
||||
"rawBytes": 86352,
|
||||
"gzipBytes": 24896,
|
||||
"gzipBytes": 24893,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"sha256": "5e62c98a1a271d7ff1580fb60b1b7a199e284294cc3a194265666e11d41e7f42",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-sWkfgXfr.js",
|
||||
"sha256": "e5b7ffde40b81da25d60dde7dfcec364010f6c8006ab6efc5faab493f666a5dc",
|
||||
"rawBytes": 33655,
|
||||
"gzipBytes": 10249,
|
||||
"gzipBytes": 10253,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/guard-CFQddxbr.js",
|
||||
"sha256": "b823b10e202c2523de500308432372c1e0ae14a956822e5e8f7eba3d1bc3556a",
|
||||
"path": "houseplan-assets/guard-e__Wz0Kq.js",
|
||||
"sha256": "7cd13b43649cbc975f89e2dc0eb8c179fa7b8d1cfe2128097e9ed90097dc39d9",
|
||||
"rawBytes": 518,
|
||||
"gzipBytes": 373,
|
||||
"gzipBytes": 371,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-s3bVlTkn.js",
|
||||
"sha256": "2d97e21595f4b7558fb29b12fcccac30ea891e74a2fa61f3c3af1f1b8815f6b2",
|
||||
"rawBytes": 1040882,
|
||||
"gzipBytes": 288777,
|
||||
"path": "houseplan-assets/houseplan-card-B8ohIxZF.js",
|
||||
"sha256": "7b6c4ecfe1a1e950f18ff399952f559674e733d89e2c4f35dc8cb98a1ebde0e0",
|
||||
"rawBytes": 1040994,
|
||||
"gzipBytes": 288814,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"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"
|
||||
"houseplan-assets/de-CZ246cdk.js",
|
||||
"houseplan-assets/editor-D8gv2kqT.js",
|
||||
"houseplan-assets/fr-qOPvzulz.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-sWkfgXfr.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-BOFIqkpb.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-B2jpNrBY.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-BaQSHmzG.js",
|
||||
"houseplan-assets/iso-scene-render-C3a6fTr3.js",
|
||||
"houseplan-assets/live-interaction-runtime-t8MYyn20.js",
|
||||
"houseplan-assets/pdf-export-hy2vL_vF.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-e-dG4Ei0.js",
|
||||
"sha256": "a03f4b121b76cf18efd73a1e06745c10637215cfd0b56a791eaa3bfed0ccb9a4",
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-BOFIqkpb.js",
|
||||
"sha256": "90474d3edd1ea95256183ccca23cca86b1b0aaad3c03e460202b5cd9afb7c490",
|
||||
"rawBytes": 631884,
|
||||
"gzipBytes": 168229,
|
||||
"gzipBytes": 168233,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"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"
|
||||
"houseplan-assets/backdrop-pick-B1EefAgT.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-sWkfgXfr.js",
|
||||
"houseplan-assets/guard-e__Wz0Kq.js",
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js",
|
||||
"houseplan-assets/zigbee-topology-CYIGlVKb.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/zigbee-topology-runtime-Bwf2MjrI.js"
|
||||
"houseplan-assets/zigbee-topology-runtime-Dx_TEW7G.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-D8cJDCsE.js",
|
||||
"sha256": "c315d1d6688ddd9ed61aa9255a9575a9794a780d3857881680ad082f71f3e588",
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-B2jpNrBY.js",
|
||||
"sha256": "f55ec1d76800a8efbb95a18aca799ebfe8917f82084e0ca2e32e1de3dde812d8",
|
||||
"rawBytes": 28071,
|
||||
"gzipBytes": 6968,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-DubHaSDf.js",
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
"houseplan-assets/backdrop-pick-B1EefAgT.js",
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-Yc4xSGb-.js",
|
||||
"sha256": "bd0fb0bef591f0fcea4d9eea53be532e049fc87fe566beb9bc9ab36d5e7aa766",
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-BaQSHmzG.js",
|
||||
"sha256": "4d7f71f904a595f66fb813a73e5a2adecd3d8464508778729eb789091868dc46",
|
||||
"rawBytes": 11034,
|
||||
"gzipBytes": 3733,
|
||||
"gzipBytes": 3734,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js",
|
||||
"houseplan-assets/zigbee-topology-DkupobQQ.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Bwf2MjrI.js"
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js",
|
||||
"houseplan-assets/zigbee-topology-CYIGlVKb.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Dx_TEW7G.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-BNRo0lct.js",
|
||||
"sha256": "3f75fa03f6d507baf8c73a291c65dd4aa934780d5ba6d5f8097efdba45b34aae",
|
||||
"path": "houseplan-assets/iso-scene-render-C3a6fTr3.js",
|
||||
"sha256": "b9e1d3be325f97a430eb2dae8bc6e851866431c117a395efd40abbb2aa04d980",
|
||||
"rawBytes": 38562,
|
||||
"gzipBytes": 13085,
|
||||
"gzipBytes": 13089,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/guard-CFQddxbr.js",
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
"houseplan-assets/guard-e__Wz0Kq.js",
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-DUSSC4_H.js",
|
||||
"sha256": "a37e4c7785159b7254d4d2bd6a33117464e01a18a4e8f9818019e55069a2692b",
|
||||
"path": "houseplan-assets/live-interaction-runtime-t8MYyn20.js",
|
||||
"sha256": "dfe11993ef97c19f8747bbfd91651a4a23ce1dd089e7c998e28a65868a04d818",
|
||||
"rawBytes": 5196,
|
||||
"gzipBytes": 2130,
|
||||
"gzipBytes": 2129,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/pdf-export-BiG3Atf9.js",
|
||||
"sha256": "8e09ba7764e0110bab5e6971bcaab8a31a7c2e22937953de7e61a5b0cf1355be",
|
||||
"rawBytes": 220489,
|
||||
"gzipBytes": 104229,
|
||||
"path": "houseplan-assets/pdf-export-hy2vL_vF.js",
|
||||
"sha256": "f3133cfd59e7da5e5269d0d05d05bfe6efed13712b74e93c93263538bb3f141d",
|
||||
"rawBytes": 220566,
|
||||
"gzipBytes": 104263,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-sWkfgXfr.js",
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-DkupobQQ.js",
|
||||
"sha256": "164a592977580a5a285cbac17e1b2ae6bc7a22b881d9e72b89dbedccef945c1d",
|
||||
"path": "houseplan-assets/zigbee-topology-CYIGlVKb.js",
|
||||
"sha256": "df19c8ae6a36468cead501f7520998d5e44143bbeded3bb86d528d800c7c8fd2",
|
||||
"rawBytes": 18961,
|
||||
"gzipBytes": 7429,
|
||||
"gzipBytes": 7431,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-Bwf2MjrI.js",
|
||||
"sha256": "72180179807d8cdf91e6413e8bdacd78e150589efc91164d1237753bc2f04350",
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-Dx_TEW7G.js",
|
||||
"sha256": "624f512ec66d0c93f6c201b6dadb074dafe290bf49b43d2aa98a6bdbf027baed",
|
||||
"rawBytes": 3941,
|
||||
"gzipBytes": 1765,
|
||||
"gzipBytes": 1766,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js",
|
||||
"houseplan-assets/zigbee-topology-DkupobQQ.js"
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js",
|
||||
"houseplan-assets/zigbee-topology-CYIGlVKb.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "1ecda001d2d0b03a02e3820dc1f8e7fd2d9bbbd7f9ba1386819b104d78ecb1c5",
|
||||
"sha256": "4b6d7663d5b386da1abed2ba3154f1886c20e3c2ac23ee2e27377678c6d63339",
|
||||
"rawBytes": 1183,
|
||||
"gzipBytes": 796,
|
||||
"gzipBytes": 797,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.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__="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
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b332044218271051c4a939cfbdc8b87e45393dfb7a75b61c6b3535f92b3afdbd";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-B8ohIxZF.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
|
||||
.hass=${this.hass}
|
||||
.data=${this._formData}
|
||||
.schema=${e}
|
||||
.computeLabel=${e=>h[e.name]||e.name}
|
||||
@value-changed=${this._valueChanged}
|
||||
></ha-form>`;return c`
|
||||
${d(_.slice(0,3))}
|
||||
${f?c`<div class="default-floor-error" role="alert"
|
||||
${d(f.slice(0,3))}
|
||||
${_?c`<div class="default-floor-error" role="alert"
|
||||
style="color:var(--error-color,#db4437);margin:-4px 0 12px;overflow-wrap:anywhere">
|
||||
${t(s,"editor.default_floor_missing",{id:f})}
|
||||
${t(s,"editor.default_floor_missing",{id:_})}
|
||||
</div>`:a}
|
||||
${d(_.slice(3))}
|
||||
${d(f.slice(3))}
|
||||
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}h.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",h);
|
||||
+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 @@
|
||||
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};
|
||||
@@ -0,0 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b332044218271051c4a939cfbdc8b87e45393dfb7a75b61c6b3535f92b3afdbd";import{dK as r,dL as t,dM as s}from"./houseplan-card-B8ohIxZF.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};
|
||||
+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__="112643a8aad29264054ec9372cc2658db416802a8d41ee537a4771b736b6a339";import{l as t,a_ as s,A as e,x as o,b as a,ci as l,cj as i,ck as h,cl as c,aX as n,cm as r,cr as p,cn as _,co as d,cp as u,cq as g,di as m,aW as b,aY as $,dj as v}from"./houseplan-card-s3bVlTkn.js";import{i as f,c as y,e as w,r as D,a as k,b as S,g as C,t as M}from"./backdrop-pick-DubHaSDf.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="112643a8aad29264054ec9372cc2658db416802a8d41ee537a4771b736b6a339";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__="b332044218271051c4a939cfbdc8b87e45393dfb7a75b61c6b3535f92b3afdbd";import{l as t,a_ as s,A as e,x as o,b as a,ci as l,cj as i,ck as h,cl as c,aX as n,cm as r,cr as p,cn as _,co as d,cp as u,cq as g,di as m,aW as b,aY as $,dj as v}from"./houseplan-card-B8ohIxZF.js";import{i as f,c as y,e as w,r as D,a as k,b as S,g as C,t as M}from"./backdrop-pick-B1EefAgT.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="b332044218271051c4a939cfbdc8b87e45393dfb7a75b61c6b3535f92b3afdbd";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,...f(),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:d,tempMax:_,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 y(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 w(e,o.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:a})}_renderBackdropGuard(){return D(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":""}">
|
||||
+7
-7
File diff suppressed because one or more lines are too long
+33
-33
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__="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};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b332044218271051c4a939cfbdc8b87e45393dfb7a75b61c6b3535f92b3afdbd";import{n as t,b as n}from"./zigbee-topology-CYIGlVKb.js";import{F as e}from"./houseplan-card-B8ohIxZF.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};
|
||||
@@ -1 +1 @@
|
||||
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)}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b332044218271051c4a939cfbdc8b87e45393dfb7a75b61c6b3535f92b3afdbd";try{await import("./houseplan-assets/houseplan-card-B8ohIxZF.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)}
|
||||
|
||||
Vendored
+120
-120
@@ -1,251 +1,251 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "112643a8aad29264054ec9372cc2658db416802a8d41ee537a4771b736b6a339",
|
||||
"fingerprint": "b332044218271051c4a939cfbdc8b87e45393dfb7a75b61c6b3535f92b3afdbd",
|
||||
"entry": "houseplan-card.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js",
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 289573,
|
||||
"initialViewGzipBytes": 289611,
|
||||
"lazyFiles": [
|
||||
"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"
|
||||
"houseplan-assets/backdrop-pick-B1EefAgT.js",
|
||||
"houseplan-assets/de-CZ246cdk.js",
|
||||
"houseplan-assets/editor-D8gv2kqT.js",
|
||||
"houseplan-assets/fr-qOPvzulz.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-sWkfgXfr.js",
|
||||
"houseplan-assets/guard-e__Wz0Kq.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-BOFIqkpb.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-B2jpNrBY.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-BaQSHmzG.js",
|
||||
"houseplan-assets/iso-scene-render-C3a6fTr3.js",
|
||||
"houseplan-assets/live-interaction-runtime-t8MYyn20.js",
|
||||
"houseplan-assets/pdf-export-hy2vL_vF.js",
|
||||
"houseplan-assets/zigbee-topology-CYIGlVKb.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Dx_TEW7G.js"
|
||||
],
|
||||
"lazyGzipBytes": 377415,
|
||||
"lazyGzipBytes": 377461,
|
||||
"lazyEditorFiles": [
|
||||
"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"
|
||||
"houseplan-assets/backdrop-pick-B1EefAgT.js",
|
||||
"houseplan-assets/editor-D8gv2kqT.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-sWkfgXfr.js",
|
||||
"houseplan-assets/guard-e__Wz0Kq.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-BOFIqkpb.js",
|
||||
"houseplan-assets/zigbee-topology-CYIGlVKb.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 195227,
|
||||
"lazyEditorGzipBytes": 195240,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick-DubHaSDf.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D8cJDCsE.js"
|
||||
"houseplan-assets/backdrop-pick-B1EefAgT.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-B2jpNrBY.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 14325,
|
||||
"lazyOnboardingGzipBytes": 14329,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-DPCqBr5P.js",
|
||||
"houseplan-assets/fr-C_r3cO05.js"
|
||||
"houseplan-assets/de-CZ246cdk.js",
|
||||
"houseplan-assets/fr-qOPvzulz.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 50278,
|
||||
"lazyLocaleGzipBytes": 50272,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/guard-CFQddxbr.js",
|
||||
"houseplan-assets/iso-scene-render-BNRo0lct.js"
|
||||
"houseplan-assets/guard-e__Wz0Kq.js",
|
||||
"houseplan-assets/iso-scene-render-C3a6fTr3.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 13458,
|
||||
"lazyIsometricGzipBytes": 13460,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-sWkfgXfr.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 10249,
|
||||
"lazyFurnitureArtGzipBytes": 10253,
|
||||
"lazyPdfFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"houseplan-assets/pdf-export-BiG3Atf9.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-sWkfgXfr.js",
|
||||
"houseplan-assets/pdf-export-hy2vL_vF.js"
|
||||
],
|
||||
"lazyPdfGzipBytes": 114478,
|
||||
"lazyPdfGzipBytes": 114516,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick-DubHaSDf.js",
|
||||
"sha256": "e16cd963f9fbd07bea131e987a719cfe5a26824c2814edcff25a55f91bdb62ce",
|
||||
"path": "houseplan-assets/backdrop-pick-B1EefAgT.js",
|
||||
"sha256": "25bbab5076c879c847b86872195475858315d5f36ca8ff61b8de58d0e2287b17",
|
||||
"rawBytes": 21592,
|
||||
"gzipBytes": 7357,
|
||||
"gzipBytes": 7361,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-DPCqBr5P.js",
|
||||
"sha256": "e24a0c358a13d4590494a18487d02a72a523f7ebc2953068974a92ac560ce5c3",
|
||||
"path": "houseplan-assets/de-CZ246cdk.js",
|
||||
"sha256": "8a1d2fe22e56bd4220672e135127574c2a9ceb5597f7cd737d143c7a6d6c3c0e",
|
||||
"rawBytes": 84320,
|
||||
"gzipBytes": 25382,
|
||||
"gzipBytes": 25379,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-CmM6quh1.js",
|
||||
"sha256": "f752e80919c1fc18b8ab523030865dd9f9173c204ec068a9c1c92cae83896f88",
|
||||
"path": "houseplan-assets/editor-D8gv2kqT.js",
|
||||
"sha256": "edcfa79910318f7faccf22e249ec72d3023955f58226206058f8a8a1fdc49b01",
|
||||
"rawBytes": 3837,
|
||||
"gzipBytes": 1590,
|
||||
"gzipBytes": 1591,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-C_r3cO05.js",
|
||||
"sha256": "0801edde1312c78af7894a10b34a2b0945edac4847fb05f973e0d6b349d4e213",
|
||||
"path": "houseplan-assets/fr-qOPvzulz.js",
|
||||
"sha256": "2b4df1a44b0397af345c9761242ca27adf86c290f11943b0e64c552f3bd823e9",
|
||||
"rawBytes": 86352,
|
||||
"gzipBytes": 24896,
|
||||
"gzipBytes": 24893,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"sha256": "5e62c98a1a271d7ff1580fb60b1b7a199e284294cc3a194265666e11d41e7f42",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-sWkfgXfr.js",
|
||||
"sha256": "e5b7ffde40b81da25d60dde7dfcec364010f6c8006ab6efc5faab493f666a5dc",
|
||||
"rawBytes": 33655,
|
||||
"gzipBytes": 10249,
|
||||
"gzipBytes": 10253,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/guard-CFQddxbr.js",
|
||||
"sha256": "b823b10e202c2523de500308432372c1e0ae14a956822e5e8f7eba3d1bc3556a",
|
||||
"path": "houseplan-assets/guard-e__Wz0Kq.js",
|
||||
"sha256": "7cd13b43649cbc975f89e2dc0eb8c179fa7b8d1cfe2128097e9ed90097dc39d9",
|
||||
"rawBytes": 518,
|
||||
"gzipBytes": 373,
|
||||
"gzipBytes": 371,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-s3bVlTkn.js",
|
||||
"sha256": "2d97e21595f4b7558fb29b12fcccac30ea891e74a2fa61f3c3af1f1b8815f6b2",
|
||||
"rawBytes": 1040882,
|
||||
"gzipBytes": 288777,
|
||||
"path": "houseplan-assets/houseplan-card-B8ohIxZF.js",
|
||||
"sha256": "7b6c4ecfe1a1e950f18ff399952f559674e733d89e2c4f35dc8cb98a1ebde0e0",
|
||||
"rawBytes": 1040994,
|
||||
"gzipBytes": 288814,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"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"
|
||||
"houseplan-assets/de-CZ246cdk.js",
|
||||
"houseplan-assets/editor-D8gv2kqT.js",
|
||||
"houseplan-assets/fr-qOPvzulz.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-sWkfgXfr.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-BOFIqkpb.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-B2jpNrBY.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-BaQSHmzG.js",
|
||||
"houseplan-assets/iso-scene-render-C3a6fTr3.js",
|
||||
"houseplan-assets/live-interaction-runtime-t8MYyn20.js",
|
||||
"houseplan-assets/pdf-export-hy2vL_vF.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-e-dG4Ei0.js",
|
||||
"sha256": "a03f4b121b76cf18efd73a1e06745c10637215cfd0b56a791eaa3bfed0ccb9a4",
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-BOFIqkpb.js",
|
||||
"sha256": "90474d3edd1ea95256183ccca23cca86b1b0aaad3c03e460202b5cd9afb7c490",
|
||||
"rawBytes": 631884,
|
||||
"gzipBytes": 168229,
|
||||
"gzipBytes": 168233,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"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"
|
||||
"houseplan-assets/backdrop-pick-B1EefAgT.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-sWkfgXfr.js",
|
||||
"houseplan-assets/guard-e__Wz0Kq.js",
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js",
|
||||
"houseplan-assets/zigbee-topology-CYIGlVKb.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/zigbee-topology-runtime-Bwf2MjrI.js"
|
||||
"houseplan-assets/zigbee-topology-runtime-Dx_TEW7G.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-D8cJDCsE.js",
|
||||
"sha256": "c315d1d6688ddd9ed61aa9255a9575a9794a780d3857881680ad082f71f3e588",
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-B2jpNrBY.js",
|
||||
"sha256": "f55ec1d76800a8efbb95a18aca799ebfe8917f82084e0ca2e32e1de3dde812d8",
|
||||
"rawBytes": 28071,
|
||||
"gzipBytes": 6968,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-DubHaSDf.js",
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
"houseplan-assets/backdrop-pick-B1EefAgT.js",
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-Yc4xSGb-.js",
|
||||
"sha256": "bd0fb0bef591f0fcea4d9eea53be532e049fc87fe566beb9bc9ab36d5e7aa766",
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-BaQSHmzG.js",
|
||||
"sha256": "4d7f71f904a595f66fb813a73e5a2adecd3d8464508778729eb789091868dc46",
|
||||
"rawBytes": 11034,
|
||||
"gzipBytes": 3733,
|
||||
"gzipBytes": 3734,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js",
|
||||
"houseplan-assets/zigbee-topology-DkupobQQ.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Bwf2MjrI.js"
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js",
|
||||
"houseplan-assets/zigbee-topology-CYIGlVKb.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Dx_TEW7G.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-BNRo0lct.js",
|
||||
"sha256": "3f75fa03f6d507baf8c73a291c65dd4aa934780d5ba6d5f8097efdba45b34aae",
|
||||
"path": "houseplan-assets/iso-scene-render-C3a6fTr3.js",
|
||||
"sha256": "b9e1d3be325f97a430eb2dae8bc6e851866431c117a395efd40abbb2aa04d980",
|
||||
"rawBytes": 38562,
|
||||
"gzipBytes": 13085,
|
||||
"gzipBytes": 13089,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/guard-CFQddxbr.js",
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
"houseplan-assets/guard-e__Wz0Kq.js",
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-DUSSC4_H.js",
|
||||
"sha256": "a37e4c7785159b7254d4d2bd6a33117464e01a18a4e8f9818019e55069a2692b",
|
||||
"path": "houseplan-assets/live-interaction-runtime-t8MYyn20.js",
|
||||
"sha256": "dfe11993ef97c19f8747bbfd91651a4a23ce1dd089e7c998e28a65868a04d818",
|
||||
"rawBytes": 5196,
|
||||
"gzipBytes": 2130,
|
||||
"gzipBytes": 2129,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/pdf-export-BiG3Atf9.js",
|
||||
"sha256": "8e09ba7764e0110bab5e6971bcaab8a31a7c2e22937953de7e61a5b0cf1355be",
|
||||
"rawBytes": 220489,
|
||||
"gzipBytes": 104229,
|
||||
"path": "houseplan-assets/pdf-export-hy2vL_vF.js",
|
||||
"sha256": "f3133cfd59e7da5e5269d0d05d05bfe6efed13712b74e93c93263538bb3f141d",
|
||||
"rawBytes": 220566,
|
||||
"gzipBytes": 104263,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/furniture-plan-art.generated-C8Mxc74M.js",
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-sWkfgXfr.js",
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-DkupobQQ.js",
|
||||
"sha256": "164a592977580a5a285cbac17e1b2ae6bc7a22b881d9e72b89dbedccef945c1d",
|
||||
"path": "houseplan-assets/zigbee-topology-CYIGlVKb.js",
|
||||
"sha256": "df19c8ae6a36468cead501f7520998d5e44143bbeded3bb86d528d800c7c8fd2",
|
||||
"rawBytes": 18961,
|
||||
"gzipBytes": 7429,
|
||||
"gzipBytes": 7431,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-Bwf2MjrI.js",
|
||||
"sha256": "72180179807d8cdf91e6413e8bdacd78e150589efc91164d1237753bc2f04350",
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-Dx_TEW7G.js",
|
||||
"sha256": "624f512ec66d0c93f6c201b6dadb074dafe290bf49b43d2aa98a6bdbf027baed",
|
||||
"rawBytes": 3941,
|
||||
"gzipBytes": 1765,
|
||||
"gzipBytes": 1766,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js",
|
||||
"houseplan-assets/zigbee-topology-DkupobQQ.js"
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.js",
|
||||
"houseplan-assets/zigbee-topology-CYIGlVKb.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "1ecda001d2d0b03a02e3820dc1f8e7fd2d9bbbd7f9ba1386819b104d78ecb1c5",
|
||||
"sha256": "4b6d7663d5b386da1abed2ba3154f1886c20e3c2ac23ee2e27377678c6d63339",
|
||||
"rawBytes": 1183,
|
||||
"gzipBytes": 796,
|
||||
"gzipBytes": 797,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-s3bVlTkn.js"
|
||||
"houseplan-assets/houseplan-card-B8ohIxZF.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__="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
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b332044218271051c4a939cfbdc8b87e45393dfb7a75b61c6b3535f92b3afdbd";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-B8ohIxZF.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
|
||||
.hass=${this.hass}
|
||||
.data=${this._formData}
|
||||
.schema=${e}
|
||||
.computeLabel=${e=>h[e.name]||e.name}
|
||||
@value-changed=${this._valueChanged}
|
||||
></ha-form>`;return c`
|
||||
${d(_.slice(0,3))}
|
||||
${f?c`<div class="default-floor-error" role="alert"
|
||||
${d(f.slice(0,3))}
|
||||
${_?c`<div class="default-floor-error" role="alert"
|
||||
style="color:var(--error-color,#db4437);margin:-4px 0 12px;overflow-wrap:anywhere">
|
||||
${t(s,"editor.default_floor_missing",{id:f})}
|
||||
${t(s,"editor.default_floor_missing",{id:_})}
|
||||
</div>`:a}
|
||||
${d(_.slice(3))}
|
||||
${d(f.slice(3))}
|
||||
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}h.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",h);
|
||||
+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 +0,0 @@
|
||||
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 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b332044218271051c4a939cfbdc8b87e45393dfb7a75b61c6b3535f92b3afdbd";import{dK as r,dL as t,dM as s}from"./houseplan-card-B8ohIxZF.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};
|
||||
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__="112643a8aad29264054ec9372cc2658db416802a8d41ee537a4771b736b6a339";import{l as t,a_ as s,A as e,x as o,b as a,ci as l,cj as i,ck as h,cl as c,aX as n,cm as r,cr as p,cn as _,co as d,cp as u,cq as g,di as m,aW as b,aY as $,dj as v}from"./houseplan-card-s3bVlTkn.js";import{i as f,c as y,e as w,r as D,a as k,b as S,g as C,t as M}from"./backdrop-pick-DubHaSDf.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="112643a8aad29264054ec9372cc2658db416802a8d41ee537a4771b736b6a339";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__="b332044218271051c4a939cfbdc8b87e45393dfb7a75b61c6b3535f92b3afdbd";import{l as t,a_ as s,A as e,x as o,b as a,ci as l,cj as i,ck as h,cl as c,aX as n,cm as r,cr as p,cn as _,co as d,cp as u,cq as g,di as m,aW as b,aY as $,dj as v}from"./houseplan-card-B8ohIxZF.js";import{i as f,c as y,e as w,r as D,a as k,b as S,g as C,t as M}from"./backdrop-pick-B1EefAgT.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="b332044218271051c4a939cfbdc8b87e45393dfb7a75b61c6b3535f92b3afdbd";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,...f(),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:d,tempMax:_,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 y(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 w(e,o.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:a})}_renderBackdropGuard(){return D(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":""}">
|
||||
+7
-7
File diff suppressed because one or more lines are too long
+33
-33
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__="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};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b332044218271051c4a939cfbdc8b87e45393dfb7a75b61c6b3535f92b3afdbd";import{n as t,b as n}from"./zigbee-topology-CYIGlVKb.js";import{F as e}from"./houseplan-card-B8ohIxZF.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function m(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function g(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const f=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&p?.(n):c&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await m(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="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)}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b332044218271051c4a939cfbdc8b87e45393dfb7a75b61c6b3535f92b3afdbd";try{await import("./houseplan-assets/houseplan-card-B8ohIxZF.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)}
|
||||
|
||||
@@ -356,7 +356,8 @@ View. `localStorage` — единственное новое состояние,
|
||||
|
||||
## 15. Производительность и безопасность
|
||||
|
||||
Генерация — синхронный расчёт сцены (< 200 мс для одного текущего
|
||||
Генерация — синхронный расчёт сцены из уже построенных видимой карточкой
|
||||
кэшей стен и чистых контуров комнат (< 200 мс CPU для одного текущего
|
||||
пространства `large-house`: 20 комнат и относящиеся к этому пространству
|
||||
перегородки, колонны и декор; проверяется в unit как порог) плюс асинхронная
|
||||
растеризация подложки. Ничего не уходит в сеть, кроме загрузки чанка и
|
||||
|
||||
@@ -10688,6 +10688,8 @@ export class HouseplanCard extends LitElement {
|
||||
for (const [id, asset] of this._decorAssets) {
|
||||
decorAssets.set(id, { url: this._display(asset.url), mime: asset.mime });
|
||||
}
|
||||
const sharedWallGeometry = this._wallUnionGeometry();
|
||||
const openCuts = this._openCuts();
|
||||
return runtime.render({
|
||||
config: this._serverCfg,
|
||||
rawSpace,
|
||||
@@ -10699,7 +10701,10 @@ export class HouseplanCard extends LitElement {
|
||||
hass: this.hass,
|
||||
backdropUrl: space.bg ? this._display(space.bg.href) : '',
|
||||
decorAssets,
|
||||
sharedWallGeometry: this._wallUnionGeometry(),
|
||||
sharedWallGeometry,
|
||||
resolveInnerContour: (roomId) => this._innerRoomContour(
|
||||
space, roomId, openCuts, sharedWallGeometry?.roomGeom, sharedWallGeometry?.multiWallNodes,
|
||||
),
|
||||
t: (key, vars) => this._t(key as I18nKey, vars),
|
||||
toast: (message) => this._showToast(message),
|
||||
close: () => { this._pdfDialog = false; this.requestUpdate(); },
|
||||
|
||||
@@ -18,6 +18,7 @@ export interface PdfDialogContext {
|
||||
backdropUrl: string;
|
||||
decorAssets: ReadonlyMap<string, PdfAssetReference>;
|
||||
sharedWallGeometry?: PdfSharedWallGeometry | null;
|
||||
resolveInnerContour?: (roomId: string) => number[][] | null | undefined;
|
||||
t: (key: string, vars?: Record<string, string | number>) => string;
|
||||
toast: (message: string) => void;
|
||||
close: () => void;
|
||||
|
||||
@@ -68,6 +68,8 @@ export interface PdfSceneInput {
|
||||
rasters?: readonly PdfRasterPlacement[];
|
||||
/** The exact structural pass already used by the visible card. */
|
||||
sharedWallGeometry?: PdfSharedWallGeometry | null;
|
||||
/** The visible card's per-room clean-floor cache, resolved only when dimensions are requested. */
|
||||
resolveInnerContour?: (roomId: string) => number[][] | null | undefined;
|
||||
}
|
||||
|
||||
const MM = 72 / 25.4;
|
||||
@@ -210,10 +212,11 @@ export function buildPdfPage(input: PdfSceneInput): PdfPage & { scale: number }
|
||||
if (input.options.dimensions) for (const room of input.space.rooms) {
|
||||
const original = roomPoly(room);
|
||||
if (!original) continue;
|
||||
dimensionContours.set(room, room.id ? innerContourForRoom(
|
||||
const shared = room.id ? input.resolveInnerContour?.(room.id) : undefined;
|
||||
dimensionContours.set(room, room.id ? (shared === undefined ? innerContourForRoom(
|
||||
input.space.rooms, room.id, built.walls, built.zero.contour, GRID_STEP_N,
|
||||
built.cellCm, GRID_PITCH, NORM_W, built.geometry.roomGeom, built.geometry.multiWallNodes,
|
||||
) || original : original);
|
||||
) : shared) || original : original);
|
||||
}
|
||||
const architectureRings = built.geometry.status === 'failed-core'
|
||||
? input.space.rooms.map((room) => roomPoly(room) || []).filter((ring) => ring.length)
|
||||
|
||||
+11
-2
@@ -1,6 +1,5 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { performance } from 'node:perf_hooks';
|
||||
import { buildPdfPage } from '../test-build/pdf/pdf-scene.js';
|
||||
import { stableDimensionEdges } from '../test-build/pdf/pdf-dimensions.js';
|
||||
import { makeLargeHouseFixture } from '../demo/fixtures/large-house.mjs';
|
||||
@@ -10,7 +9,7 @@ import {
|
||||
geometryOpenings, geometryPartitionOpeningCuts, geometryRoomOpeningInputs,
|
||||
} from '../test-build/plan-geometry-preflight.js';
|
||||
import { spaceModels, GRID_PITCH, GRID_STEP_N, NORM_W } from '../test-build/space-geometry.js';
|
||||
import { wallBodiesGeometry } from '../test-build/wall-thickness.js';
|
||||
import { innerContourForRoom, wallBodiesGeometry } from '../test-build/wall-thickness.js';
|
||||
import { resolveZeroWalls } from '../test-build/zero-walls.js';
|
||||
|
||||
const rawSpace = {
|
||||
@@ -208,18 +207,28 @@ test('current 20-room large-house space builds from the visible geometry cache u
|
||||
largeSpace.rooms, largeRaw.walls, zero.contour, roomOpenings,
|
||||
GRID_STEP_N, cellCm, GRID_PITCH, NORM_W, extras,
|
||||
);
|
||||
const innerContours = new Map(largeSpace.rooms.map((room) => [room.id, innerContourForRoom(
|
||||
largeSpace.rooms, room.id, largeRaw.walls, zero.contour, GRID_STEP_N,
|
||||
cellCm, GRID_PITCH, NORM_W, sharedWallGeometry.roomGeom, sharedWallGeometry.multiWallNodes,
|
||||
)]));
|
||||
// The full suite runs test files concurrently on CI. Measuring wall time here would
|
||||
// count periods when this worker is descheduled, so use the CPU consumed by the
|
||||
// scene build itself while keeping the agreed 200 ms product budget unchanged.
|
||||
const started = process.cpuUsage();
|
||||
let contourCacheReads = 0;
|
||||
buildPdfPage({
|
||||
config: largeConfig, rawSpace: largeRaw, space: largeSpace, layout: fixture.layout,
|
||||
sharedWallGeometry,
|
||||
resolveInnerContour: (roomId) => {
|
||||
contourCacheReads++;
|
||||
return innerContours.get(roomId);
|
||||
},
|
||||
options: { dimensions: true, roomNames: true, decor: true, backdrop: false },
|
||||
imperial: false, cardTitle: 'House', version: 'test',
|
||||
now: new Date('2026-09-07T00:00:00Z'), t,
|
||||
});
|
||||
const elapsed = process.cpuUsage(started);
|
||||
const elapsedMs = (elapsed.user + elapsed.system) / 1000;
|
||||
assert.equal(contourCacheReads, largeSpace.rooms.length);
|
||||
assert.ok(elapsedMs < 200, `PDF scene build used ${elapsedMs.toFixed(1)} ms of CPU`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user