mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-28 19:01:34 +00:00
test: repair isometric golden host-face contract (#583)
Issue: #583 User-Visible: no
This commit is contained in:
@@ -1,114 +1,114 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "240d3e0d377956018fd391c05bdbc8390f4eca9704a5ca6ba7cac0a00c4a139b",
|
||||
"fingerprint": "8f3777a9cb13e5ce966a6d4abe6321583191da25876aadb60cccf8ed094c1c49",
|
||||
"entry": "houseplan-card.js",
|
||||
"panelEntry": "houseplan-panel.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js",
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 291127,
|
||||
"initialViewGzipBytes": 291130,
|
||||
"initialPanelFiles": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js",
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js",
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelGzipBytes": 292649,
|
||||
"initialPanelGzipBytes": 292653,
|
||||
"initialPanelOnlyFiles": [
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelOnlyGzipBytes": 2324,
|
||||
"initialPanelOnlyGzipBytes": 2325,
|
||||
"lazyFiles": [
|
||||
"houseplan-assets/backdrop-pick-CWb2HhWI.js",
|
||||
"houseplan-assets/de-Dqz0XPIf.js",
|
||||
"houseplan-assets/editor-Bl9zD6kT.js",
|
||||
"houseplan-assets/fr-CMQ4gUjs.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CPLGL2Av.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-3wT0L_Y2.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BUEnwsS_.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-De7SexFw.js",
|
||||
"houseplan-assets/iso-scene-render-CKbgrVlC.js",
|
||||
"houseplan-assets/live-interaction-runtime-C6JnpY_i.js",
|
||||
"houseplan-assets/pdf-export-0nZlIOFH.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-BHB_ww94.js",
|
||||
"houseplan-assets/zigbee-topology-Dq-_44UP.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-BPBY6wCe.js"
|
||||
"houseplan-assets/backdrop-pick-B16NGRXv.js",
|
||||
"houseplan-assets/de-DImDeVRF.js",
|
||||
"houseplan-assets/editor-DFuwV7s2.js",
|
||||
"houseplan-assets/fr-nE15Pu8B.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-B7C_J6ia.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-WFYzU6tf.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BWyg7LT0.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DU12iQ6Q.js",
|
||||
"houseplan-assets/iso-scene-render-DcjKH0UU.js",
|
||||
"houseplan-assets/live-interaction-runtime-COBHr7aN.js",
|
||||
"houseplan-assets/pdf-export-DrK0iurI.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CjC5avlN.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Byv01sYO.js",
|
||||
"houseplan-assets/zigbee-topology-vMt2wTBO.js"
|
||||
],
|
||||
"lazyGzipBytes": 420070,
|
||||
"lazyGzipBytes": 420084,
|
||||
"lazyEditorFiles": [
|
||||
"houseplan-assets/backdrop-pick-CWb2HhWI.js",
|
||||
"houseplan-assets/editor-Bl9zD6kT.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CPLGL2Av.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-3wT0L_Y2.js",
|
||||
"houseplan-assets/zigbee-topology-Dq-_44UP.js"
|
||||
"houseplan-assets/backdrop-pick-B16NGRXv.js",
|
||||
"houseplan-assets/editor-DFuwV7s2.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-B7C_J6ia.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-WFYzU6tf.js",
|
||||
"houseplan-assets/zigbee-topology-vMt2wTBO.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 204953,
|
||||
"lazyEditorGzipBytes": 204957,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick-CWb2HhWI.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BUEnwsS_.js"
|
||||
"houseplan-assets/backdrop-pick-B16NGRXv.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BWyg7LT0.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 13911,
|
||||
"lazyOnboardingGzipBytes": 13915,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-Dqz0XPIf.js",
|
||||
"houseplan-assets/fr-CMQ4gUjs.js"
|
||||
"houseplan-assets/de-DImDeVRF.js",
|
||||
"houseplan-assets/fr-nE15Pu8B.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 54918,
|
||||
"lazyLocaleGzipBytes": 54921,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/iso-scene-render-CKbgrVlC.js"
|
||||
"houseplan-assets/iso-scene-render-DcjKH0UU.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 14557,
|
||||
"lazyIsometricGzipBytes": 14558,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-CPLGL2Av.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-B7C_J6ia.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 10253,
|
||||
"lazyPdfFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-CPLGL2Av.js",
|
||||
"houseplan-assets/pdf-export-0nZlIOFH.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-B7C_J6ia.js",
|
||||
"houseplan-assets/pdf-export-DrK0iurI.js"
|
||||
],
|
||||
"lazyPdfGzipBytes": 120125,
|
||||
"lazyPdfGzipBytes": 120124,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick-CWb2HhWI.js",
|
||||
"sha256": "c644ee7e699b712e22bdf57bd0f4e6d71cd709c86caf34223e32c73d89b63450",
|
||||
"path": "houseplan-assets/backdrop-pick-B16NGRXv.js",
|
||||
"sha256": "39e97b0efc5e0236ec06c1e30e205a4b4149444dbc295bef3cd7449d0f174a1c",
|
||||
"rawBytes": 19956,
|
||||
"gzipBytes": 6878,
|
||||
"gzipBytes": 6879,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-Dqz0XPIf.js",
|
||||
"sha256": "5864e7bdfb269fa6e9ab60cd2f5d1902f674219bb34823f4cfba1e3288bcd6c3",
|
||||
"path": "houseplan-assets/de-DImDeVRF.js",
|
||||
"sha256": "c1d00092f0261c6a57defeb918ce2c437a176cf02b3b6fe9e471a52c1a2ded80",
|
||||
"rawBytes": 91590,
|
||||
"gzipBytes": 27742,
|
||||
"gzipBytes": 27744,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-Bl9zD6kT.js",
|
||||
"sha256": "9ef05de2e00bc943260ac5609d81958a21fe154dc0317b8012e92793f0a9a599",
|
||||
"path": "houseplan-assets/editor-DFuwV7s2.js",
|
||||
"sha256": "dd613833736f237053cc66e205cff6b7c2d418d242394de3a3e64cf13bf99862",
|
||||
"rawBytes": 3831,
|
||||
"gzipBytes": 1583,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-CMQ4gUjs.js",
|
||||
"sha256": "738860c08b0b739c5548fd4d8318a2e66a255e2294c4378f4e0ef75ab3a5559b",
|
||||
"path": "houseplan-assets/fr-nE15Pu8B.js",
|
||||
"sha256": "d25fbb36d6701a6c0058e6baa6bc213887eca78392eca747f5ec09f98abc476c",
|
||||
"rawBytes": 93884,
|
||||
"gzipBytes": 27176,
|
||||
"gzipBytes": 27177,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-CPLGL2Av.js",
|
||||
"sha256": "17ce052c6e3daa68fc7afd96985ebcd2da24c0f5992808415e2888ae5cd1eaa7",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-B7C_J6ia.js",
|
||||
"sha256": "b3e44e28d56944e1747079e6f9d078099a9bc9fe44ccfec4f6d52f4a18b8c817",
|
||||
"rawBytes": 33655,
|
||||
"gzipBytes": 10253,
|
||||
"isEntry": false,
|
||||
@@ -116,180 +116,180 @@
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-DjM6Kttx.js",
|
||||
"sha256": "7a71a60bef9e54f39b9201629043f553ec8dbbf0b7187f2f07e776ea95f01341",
|
||||
"path": "houseplan-assets/houseplan-card-BwLd7B5O.js",
|
||||
"sha256": "9afd55336b6bf8f17b0865e19a6d55570029e0ada4d8f73a2f2549679edc5b8c",
|
||||
"rawBytes": 1034007,
|
||||
"gzipBytes": 290325,
|
||||
"gzipBytes": 290328,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/de-Dqz0XPIf.js",
|
||||
"houseplan-assets/editor-Bl9zD6kT.js",
|
||||
"houseplan-assets/fr-CMQ4gUjs.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CPLGL2Av.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-3wT0L_Y2.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BUEnwsS_.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-De7SexFw.js",
|
||||
"houseplan-assets/iso-scene-render-CKbgrVlC.js",
|
||||
"houseplan-assets/live-interaction-runtime-C6JnpY_i.js",
|
||||
"houseplan-assets/pdf-export-0nZlIOFH.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-BHB_ww94.js"
|
||||
"houseplan-assets/de-DImDeVRF.js",
|
||||
"houseplan-assets/editor-DFuwV7s2.js",
|
||||
"houseplan-assets/fr-nE15Pu8B.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-B7C_J6ia.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-WFYzU6tf.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BWyg7LT0.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DU12iQ6Q.js",
|
||||
"houseplan-assets/iso-scene-render-DcjKH0UU.js",
|
||||
"houseplan-assets/live-interaction-runtime-COBHr7aN.js",
|
||||
"houseplan-assets/pdf-export-DrK0iurI.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CjC5avlN.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-3wT0L_Y2.js",
|
||||
"sha256": "fa3d361a70c9eb8cc20f7235783a37639f048f4aee0106a617e972542b7909a5",
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-WFYzU6tf.js",
|
||||
"sha256": "25b9e20603de62305ad370325a316e2744b598db69d951b47850957297868190",
|
||||
"rawBytes": 670150,
|
||||
"gzipBytes": 178815,
|
||||
"gzipBytes": 178814,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-CWb2HhWI.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CPLGL2Av.js",
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js",
|
||||
"houseplan-assets/zigbee-topology-Dq-_44UP.js"
|
||||
"houseplan-assets/backdrop-pick-B16NGRXv.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-B7C_J6ia.js",
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js",
|
||||
"houseplan-assets/zigbee-topology-vMt2wTBO.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/zigbee-topology-runtime-BPBY6wCe.js"
|
||||
"houseplan-assets/zigbee-topology-runtime-Byv01sYO.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-BUEnwsS_.js",
|
||||
"sha256": "3bb5ce9ef4c019a55595477a27bee15272f72b99e69c2030223a703210df3709",
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-BWyg7LT0.js",
|
||||
"sha256": "371f34a47a3871cd5f91fbca3514762f3582d41698dce14c25662559a05aea1e",
|
||||
"rawBytes": 28287,
|
||||
"gzipBytes": 7033,
|
||||
"gzipBytes": 7036,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-CWb2HhWI.js",
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/backdrop-pick-B16NGRXv.js",
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-De7SexFw.js",
|
||||
"sha256": "31da5c9d279a7044884808cf9519eac8475e8b8c167379dc27c0c129e7ea12e5",
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-DU12iQ6Q.js",
|
||||
"sha256": "fb14d3b52c5b214519c53063b86f8b7b8d901de29dfe907ceb3bf8f7f4e6d901",
|
||||
"rawBytes": 10756,
|
||||
"gzipBytes": 3684,
|
||||
"gzipBytes": 3682,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js",
|
||||
"houseplan-assets/zigbee-topology-Dq-_44UP.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-BPBY6wCe.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Byv01sYO.js",
|
||||
"houseplan-assets/zigbee-topology-vMt2wTBO.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-CKbgrVlC.js",
|
||||
"sha256": "084763721a2c53710926002231ba288b8e2e0c68631a1afe36fe6461b69ae0cf",
|
||||
"path": "houseplan-assets/iso-scene-render-DcjKH0UU.js",
|
||||
"sha256": "1bdc49e9522181684632ee6851b6b6e4ad0c2ebd0f6c2887df40311ad46ee023",
|
||||
"rawBytes": 43068,
|
||||
"gzipBytes": 14557,
|
||||
"gzipBytes": 14558,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-C6JnpY_i.js",
|
||||
"sha256": "e5cbb268f25103b5c3b5c527ee44af8e952311292f0304a13cd3eb4089c5233a",
|
||||
"path": "houseplan-assets/live-interaction-runtime-COBHr7aN.js",
|
||||
"sha256": "4a86804164a394030db8d2e741f0ddcc9aa26f63b710567e2be74063045189c6",
|
||||
"rawBytes": 8216,
|
||||
"gzipBytes": 3204,
|
||||
"gzipBytes": 3208,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/pdf-export-0nZlIOFH.js",
|
||||
"sha256": "eace6f03a8d5c3940eb9c2e332c0e402ced996273deb476fa6033e765ef652a4",
|
||||
"path": "houseplan-assets/pdf-export-DrK0iurI.js",
|
||||
"sha256": "a78ce65dd337f399dd903a6f9998932dfd51b10282336cdd4b11cb1a6a4cf735",
|
||||
"rawBytes": 236244,
|
||||
"gzipBytes": 109872,
|
||||
"gzipBytes": 109871,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/furniture-plan-art.generated-CPLGL2Av.js",
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-B7C_J6ia.js",
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-editor-2wwxwIR4.js",
|
||||
"sha256": "42353cfe0654b4e59abdf4a9f454ea739b963ce1695f6f4163c587afecc2b703",
|
||||
"path": "houseplan-assets/summary-panel-editor-DI5se8qp.js",
|
||||
"sha256": "d2a34a22cdbf932082cafd27abf24b5d39a8d6fe96837f4ba506f36bb0445a86",
|
||||
"rawBytes": 14824,
|
||||
"gzipBytes": 3398,
|
||||
"gzipBytes": 3397,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-BHB_ww94.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CjC5avlN.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-metrics-DeEeKrf8.js",
|
||||
"sha256": "a465234be357bc19def5f4b9f8cb7cf30b8ac8d079468b9bb8b49f9dc016f032",
|
||||
"path": "houseplan-assets/summary-panel-metrics-CqDZFZBE.js",
|
||||
"sha256": "dcce813648d7847df7950ab2e6c59f7054bce0b4cea70652ede413f042f3ac04",
|
||||
"rawBytes": 2610,
|
||||
"gzipBytes": 1306,
|
||||
"gzipBytes": 1305,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-BHB_ww94.js",
|
||||
"sha256": "c63eacd0d43ac8a7d9b7e6ff42c3198a858ae1dc77dc60fca222d2deff0007c9",
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-CjC5avlN.js",
|
||||
"sha256": "d4fed65af4420363928d3aafc3030ecf7e5fe7dbe6db510d3a46cbaec2f4296e",
|
||||
"rawBytes": 73366,
|
||||
"gzipBytes": 20086,
|
||||
"gzipBytes": 20089,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/summary-panel-editor-2wwxwIR4.js",
|
||||
"houseplan-assets/summary-panel-metrics-DeEeKrf8.js"
|
||||
"houseplan-assets/summary-panel-editor-DI5se8qp.js",
|
||||
"houseplan-assets/summary-panel-metrics-CqDZFZBE.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-Dq-_44UP.js",
|
||||
"sha256": "97b41c2d14882b96eef5fc3c6f5ec8732dada6c63fd8c80e42d59353e4f66f80",
|
||||
"rawBytes": 18961,
|
||||
"gzipBytes": 7424,
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-Byv01sYO.js",
|
||||
"sha256": "1946f670d119e45cedff669aba05b41c3ec45d3e8200a120f09959bfbe786628",
|
||||
"rawBytes": 3941,
|
||||
"gzipBytes": 1762,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js",
|
||||
"houseplan-assets/zigbee-topology-vMt2wTBO.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-BPBY6wCe.js",
|
||||
"sha256": "58f47c102d2192d1f34baabfce965e2d210140ca0dc23761f75748a8adb169f1",
|
||||
"rawBytes": 3941,
|
||||
"gzipBytes": 1763,
|
||||
"path": "houseplan-assets/zigbee-topology-vMt2wTBO.js",
|
||||
"sha256": "07ef43e2a6b11105eb4b251c6938e2f7c508db9fc5a0cecf005d595e4f134fdc",
|
||||
"rawBytes": 18961,
|
||||
"gzipBytes": 7428,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js",
|
||||
"houseplan-assets/zigbee-topology-Dq-_44UP.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "b80d21a336b292fb10fc94fa213d27864226f14b75899e9e6e5c5f7d9fc84a5b",
|
||||
"sha256": "458ca4c6b78de94c2f6625b84de53035533e342aaec24732243841d8315ab7b8",
|
||||
"rawBytes": 1205,
|
||||
"gzipBytes": 802,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-panel.js",
|
||||
"sha256": "79e9fef2388110d9e5f3e70da99a97ea7e3121850067a8b68505a5112e3aeed4",
|
||||
"sha256": "bccfd0b032c62049d6ceb418cff892a8806ae8311f1965a946a509114c9968f9",
|
||||
"rawBytes": 6165,
|
||||
"gzipBytes": 2324,
|
||||
"gzipBytes": 2325,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.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
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="240d3e0d377956018fd391c05bdbc8390f4eca9704a5ca6ba7cac0a00c4a139b";import{q as e,l as o,v as t,e5 as s,A as a,e6 as i,e7 as l,e8 as n,E as r,c}from"./houseplan-card-DjM6Kttx.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__="8f3777a9cb13e5ce966a6d4abe6321583191da25876aadb60cccf8ed094c1c49";import{q as e,l as o,v as t,e5 as s,A as a,e6 as i,e7 as l,e8 as n,E as r,c}from"./houseplan-card-BwLd7B5O.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
|
||||
.hass=${this.hass}
|
||||
.data=${this._formData}
|
||||
.schema=${e}
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+5
-5
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__="240d3e0d377956018fd391c05bdbc8390f4eca9704a5ca6ba7cac0a00c4a139b";import{l as t,b4 as s,A as e,v as a,c as o,cn as l,co as i,cp as h,cq as c,b1 as n,cr as r,cw as p,cs as d,ct as _,cu as u,cv as g,cx as m,cy as b,dt as $,du as v,dv as f,b0 as y,b2 as w,dw as D}from"./houseplan-card-DjM6Kttx.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-CWb2HhWI.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="240d3e0d377956018fd391c05bdbc8390f4eca9704a5ca6ba7cac0a00c4a139b";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)?o`<hp-help data-help-key=${l}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="8f3777a9cb13e5ce966a6d4abe6321583191da25876aadb60cccf8ed094c1c49";import{l as t,b4 as s,A as e,v as a,c as o,cn as l,co as i,cp as h,cq as c,b1 as n,cr as r,cw as p,cs as d,ct as _,cu as u,cv as g,cx as m,cy as b,dt as $,du as v,dv as f,b0 as y,b2 as w,dw as D}from"./houseplan-card-BwLd7B5O.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-B16NGRXv.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="8f3777a9cb13e5ce966a6d4abe6321583191da25876aadb60cccf8ed094c1c49";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)?o`<hp-help data-help-key=${l}
|
||||
.text=${a(h,l)} .ariaLabel=${a(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 a=l(e),o=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?i(e.settings.custom_fill):null,p="none"===a.fill?{...o||h,a:0}:o;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:a.showBorders,showNames:a.showNames,zeroWallStyle:r(e),displayTouched:!0,hideDecor:a.hideDecor,hideOpenings:a.hideOpenings,roomColor:a.color,roomOpacity:a.opacity,fillMode:"none"===a.fill?"custom":a.fill,customFill:p,glowEnabled:a.glow,bgColor:a.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:a.tempMin,tempMax:a.tempMax,showLqi:a.showLqi??this.host._config?.show_signal??!0,cardFontScale:a.cardFontScale,labelTemp:a.labelTemp,labelHum:a.labelHum,labelLqi:a.labelLqi,labelLight:a.labelLight,cellCm:Number(e.cell_cm)>0?Number(e.cell_cm):5,cellCmInput:c(Number(e.cell_cm)>0?Number(e.cell_cm):5,this.host._imperial),cellCmTouched:!1,busy:!1})}const e=p(this.host._imperial);this.host._spaceDialog={mode:t,title:"",planUrl:null,planFile:null,...m(),hideDecor:!1,hideOpenings:!1,zeroWallStyle:"dashed",roomColor:g,roomOpacity:u,fillMode:"custom",customFill:{...h,a:0},glowEnabled:!0,bgColor:null,bgMode:"daynight",northDeg:null,sunRays:null,tempMin:_,tempMax:d,showLqi:this.host._config?.show_signal??!0,cardFontScale:1,labelTemp:!1,labelHum:!1,labelLqi:!1,labelLight:!1,cellCm:e,cellCmInput:c(e,this.host._imperial),cellCmTouched:!1,busy:!1}}async _pickPlanFile(t){const s=t.target,e=s.files?.[0];if(!e||!this.host._spaceDialog)return;s.value="";const a=await k(e);if("reject"===a.kind)return void this.host._showToast(this.host._t("toast.plan_formats"));if("guard"===a.kind)return void(this.host._backdropGuard=a.state);const o=await S(e,a.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:o})}_renderBackdropGuard(){return C(this.host,t=>{this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:t})},()=>{this.host._backdropGuard=null},this.host.hass)??e}_useServerPlan(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,planUrl:t,planFile:null,pickSaved:!1,savedAspect:void 0},this.host._aspectJob=this._readPlanAspect(t))}async _readPlanAspect(t){for(let s=0;s<40;s++){const s=this.host._display(t);if(s){const e=await new Promise(t=>{const e=new Image;e.onload=()=>t(e.naturalWidth&&e.naturalHeight?e.naturalWidth/e.naturalHeight:0),e.onerror=()=>t(0),e.src=s}),a=this.host._spaceDialog;return a&&a.planUrl===t&&Number.isFinite(e)&&e>0?(this.host._spaceDialog={...a,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 a=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")}),o=this.host._spaceDialog,l=o?.saved?.find(s=>s.name===t);if(a&&o&&l&&l.url===e.url&&l.modified===e.modified&&!l.used_by.length&&l.url!==o.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 o`<div class="savedplans muted">${this.host._t("space.loading")}</div>`;const s=t.saved||[];if(!s.length)return o`<div class="savedplans muted">${this.host._t("space.no_saved")}</div>`;return o`<div class="savedplans">
|
||||
${s.map(s=>{return o`
|
||||
<div class="savedplan ${s.url===t.planUrl?"cur":""}">
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="240d3e0d377956018fd391c05bdbc8390f4eca9704a5ca6ba7cac0a00c4a139b";import{c as a,A as e}from"./houseplan-card-DjM6Kttx.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-BHB_ww94.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="8f3777a9cb13e5ce966a6d4abe6321583191da25876aadb60cccf8ed094c1c49";import{c as a,A as e}from"./houseplan-card-BwLd7B5O.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-CjC5avlN.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
|
||||
<span class="summary-switch-caption"><strong>${b("summary.show_local")}</strong>
|
||||
<small id="summary-local-show-hint">${b("summary.show_local_hint")}</small></span>
|
||||
<input id="summary-local-show" data-summary-local-show type="checkbox"
|
||||
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="240d3e0d377956018fd391c05bdbc8390f4eca9704a5ca6ba7cac0a00c4a139b";import{eb as e,P as t,a5 as n,M as i,aq as r,N as o,bs as a,br as s,a4 as c,a3 as l,aA as d,ec as u,ed as f,bu as m,ee as g}from"./houseplan-card-DjM6Kttx.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=d(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const r=String(i.binding||"").indexOf(":");if(r<1)continue;const o=i.binding.slice(0,r),a=i.binding.slice(r+1),s="device"===o?e.registry.devices?.[a]:null,c="entity"===o?e.registry.entities?.[a]:null,l="device"===o?a:c?.device_id,d="device"===o?s?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.area_id,u="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||d||"",f=u&&e.areaToSpace[u]||i.space||e.firstSpaceId;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===o&&n.liveEntities.has(a))&&t.add(l)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=c(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,r,o);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,r,o)}}function*h(c,l,d=_){try{let u=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=d(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const s=t(e);if(!s)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,r,o,g.roomGeom,g.multiWallNodes)||s;v=y(v,a(c,m.physicalBodies)),yield}const _=m.cellCm/r;u+=s(v)*_*_/1e4}return u}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let r=i.next();for(;!r.done;)r=i.next();return r.value}function b(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=u(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,p as totalCleanFloorAreaM2};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="8f3777a9cb13e5ce966a6d4abe6321583191da25876aadb60cccf8ed094c1c49";import{eb as e,P as t,a5 as n,M as i,aq as r,N as o,bs as s,br as a,a4 as c,a3 as l,aA as d,ec as u,ed as f,bu as m,ee as g}from"./houseplan-card-BwLd7B5O.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=d(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const r=String(i.binding||"").indexOf(":");if(r<1)continue;const o=i.binding.slice(0,r),s=i.binding.slice(r+1),a="device"===o?e.registry.devices?.[s]:null,c="entity"===o?e.registry.entities?.[s]:null,l="device"===o?s:c?.device_id,d="device"===o?a?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.area_id,u="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||d||"",f=u&&e.areaToSpace[u]||i.space||e.firstSpaceId;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===o&&n.liveEntities.has(s))&&t.add(l)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=c(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,r,o);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,r,o)}}function*h(c,l,d=_){try{let u=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=d(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,r,o,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(c,m.physicalBodies)),yield}const _=m.cellCm/r;u+=a(v)*_*_/1e4}return u}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let r=i.next();for(;!r.done;)r=i.next();return r.value}function b(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=u(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,p as totalCleanFloorAreaM2};
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="240d3e0d377956018fd391c05bdbc8390f4eca9704a5ca6ba7cac0a00c4a139b";import{n as t,b as n}from"./zigbee-topology-Dq-_44UP.js";import{F as e}from"./houseplan-card-DjM6Kttx.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__="8f3777a9cb13e5ce966a6d4abe6321583191da25876aadb60cccf8ed094c1c49";import{n as t,b as n}from"./zigbee-topology-vMt2wTBO.js";import{F as e}from"./houseplan-card-BwLd7B5O.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
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="240d3e0d377956018fd391c05bdbc8390f4eca9704a5ca6ba7cac0a00c4a139b";try{await import("./houseplan-assets/houseplan-card-DjM6Kttx.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="8f3777a9cb13e5ce966a6d4abe6321583191da25876aadb60cccf8ed094c1c49";try{await import("./houseplan-assets/houseplan-card-BwLd7B5O.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -534,10 +534,13 @@ export function prepareGoldenFixture(scenario) {
|
||||
}
|
||||
const seen = new Set();
|
||||
for (const opening of contract.openings) {
|
||||
const expectedOffset = contract.surface === 'iso' && opening?.type !== 'window'
|
||||
? 'selected-face'
|
||||
: 'center';
|
||||
if (!opening?.id || seen.has(opening.id)
|
||||
|| !['door', 'window', 'gate'].includes(opening.type)
|
||||
|| !Number.isFinite(opening.at) || !Number.isFinite(opening.length)
|
||||
|| !(opening.length > 0) || opening.offset !== 'center'
|
||||
|| !(opening.length > 0) || opening.offset !== expectedOffset
|
||||
|| typeof opening.flipV !== 'boolean') {
|
||||
throw new Error(`invalid golden opening symbol entry: ${opening?.id || '<empty>'}`);
|
||||
}
|
||||
|
||||
@@ -53,13 +53,13 @@ const openingIsoContract = {
|
||||
kind: 'room', wallCm: 30, surface: 'iso',
|
||||
openings: [
|
||||
{ id: 'golden-iso-door', type: 'door', at: 0.20, length: 0.09,
|
||||
flipV: false, offset: 'center' },
|
||||
flipV: false, offset: 'selected-face' },
|
||||
{ id: 'golden-iso-window', type: 'window', at: 0.40, length: 0.09,
|
||||
flipV: false, offset: 'center' },
|
||||
{ id: 'golden-iso-gate-default', type: 'gate', at: 0.62, length: 0.09,
|
||||
flipV: false, offset: 'center', turnPair: 'golden-iso-gate-turn' },
|
||||
flipV: false, offset: 'selected-face', turnPair: 'golden-iso-gate-turn' },
|
||||
{ id: 'golden-iso-gate-flipped', type: 'gate', at: 0.82, length: 0.09,
|
||||
flipV: true, offset: 'center', turnPair: 'golden-iso-gate-turn' },
|
||||
flipV: true, offset: 'selected-face', turnPair: 'golden-iso-gate-turn' },
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
+15
-3
@@ -848,6 +848,7 @@ async function assertOpeningSymbolContract(page, contract) {
|
||||
}
|
||||
} else {
|
||||
const bases = card._isoSource?.()?.build?.().openings || [];
|
||||
const pointDistance = (a, b) => Math.hypot(a[0] - b[0], a[1] - b[1]);
|
||||
for (const item of expected.openings) {
|
||||
const cfg = openingCfg.get(item.id);
|
||||
const basis = bases.find((opening) => opening.id === item.id);
|
||||
@@ -865,13 +866,24 @@ async function assertOpeningSymbolContract(page, contract) {
|
||||
basis.leaves.reduce((sum, leaf) => sum + leaf.hinge[1], 0) / basis.leaves.length,
|
||||
];
|
||||
const offset = Math.hypot(centre[0] - cfg.x * 1000, centre[1] - cfg.y * 1000);
|
||||
if (item.offset !== 'center' || offset > epsilon)
|
||||
throw new Error(`semantic golden Iso centre failed for ${item.id}: ${offset}`);
|
||||
const faceOffset = Math.max(...basis.leaves.map((leaf) => pointDistance(
|
||||
leaf.hinge,
|
||||
leaf.leaf === 0 ? basis.face.selectedStart : basis.face.selectedEnd,
|
||||
)));
|
||||
if (item.offset === 'center') {
|
||||
if (item.type !== 'window' || offset > epsilon)
|
||||
throw new Error(`semantic golden Iso centre failed for ${item.id}: ${offset}`);
|
||||
} else if (item.offset === 'selected-face') {
|
||||
if (item.type === 'window' || faceOffset > epsilon)
|
||||
throw new Error(`semantic golden Iso selected face failed for ${item.id}: ${faceOffset}`);
|
||||
} else {
|
||||
throw new Error(`semantic golden Iso offset contract is unknown: ${item.id}`);
|
||||
}
|
||||
const turn = item.type === 'gate' ? basis.leaves[0].turnDeg : null;
|
||||
if (turn != null && Math.abs(Math.abs(turn) - 10) > epsilon)
|
||||
throw new Error(`semantic golden Iso gate turn failed: ${item.id}`);
|
||||
if (item.turnPair) turns.set(item.id, { pair: item.turnPair, flipV: item.flipV, turn });
|
||||
rows.push({ id: item.id, offset, turn });
|
||||
rows.push({ id: item.id, offset, faceOffset, turn });
|
||||
}
|
||||
if (root.querySelectorAll('.iso-opening-panel').length < expected.openings.length)
|
||||
throw new Error('semantic golden Iso opening panels are missing');
|
||||
|
||||
Vendored
+131
-131
@@ -1,114 +1,114 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "240d3e0d377956018fd391c05bdbc8390f4eca9704a5ca6ba7cac0a00c4a139b",
|
||||
"fingerprint": "8f3777a9cb13e5ce966a6d4abe6321583191da25876aadb60cccf8ed094c1c49",
|
||||
"entry": "houseplan-card.js",
|
||||
"panelEntry": "houseplan-panel.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js",
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 291127,
|
||||
"initialViewGzipBytes": 291130,
|
||||
"initialPanelFiles": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js",
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js",
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelGzipBytes": 292649,
|
||||
"initialPanelGzipBytes": 292653,
|
||||
"initialPanelOnlyFiles": [
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelOnlyGzipBytes": 2324,
|
||||
"initialPanelOnlyGzipBytes": 2325,
|
||||
"lazyFiles": [
|
||||
"houseplan-assets/backdrop-pick-CWb2HhWI.js",
|
||||
"houseplan-assets/de-Dqz0XPIf.js",
|
||||
"houseplan-assets/editor-Bl9zD6kT.js",
|
||||
"houseplan-assets/fr-CMQ4gUjs.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CPLGL2Av.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-3wT0L_Y2.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BUEnwsS_.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-De7SexFw.js",
|
||||
"houseplan-assets/iso-scene-render-CKbgrVlC.js",
|
||||
"houseplan-assets/live-interaction-runtime-C6JnpY_i.js",
|
||||
"houseplan-assets/pdf-export-0nZlIOFH.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-BHB_ww94.js",
|
||||
"houseplan-assets/zigbee-topology-Dq-_44UP.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-BPBY6wCe.js"
|
||||
"houseplan-assets/backdrop-pick-B16NGRXv.js",
|
||||
"houseplan-assets/de-DImDeVRF.js",
|
||||
"houseplan-assets/editor-DFuwV7s2.js",
|
||||
"houseplan-assets/fr-nE15Pu8B.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-B7C_J6ia.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-WFYzU6tf.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BWyg7LT0.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DU12iQ6Q.js",
|
||||
"houseplan-assets/iso-scene-render-DcjKH0UU.js",
|
||||
"houseplan-assets/live-interaction-runtime-COBHr7aN.js",
|
||||
"houseplan-assets/pdf-export-DrK0iurI.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CjC5avlN.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Byv01sYO.js",
|
||||
"houseplan-assets/zigbee-topology-vMt2wTBO.js"
|
||||
],
|
||||
"lazyGzipBytes": 420070,
|
||||
"lazyGzipBytes": 420084,
|
||||
"lazyEditorFiles": [
|
||||
"houseplan-assets/backdrop-pick-CWb2HhWI.js",
|
||||
"houseplan-assets/editor-Bl9zD6kT.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CPLGL2Av.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-3wT0L_Y2.js",
|
||||
"houseplan-assets/zigbee-topology-Dq-_44UP.js"
|
||||
"houseplan-assets/backdrop-pick-B16NGRXv.js",
|
||||
"houseplan-assets/editor-DFuwV7s2.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-B7C_J6ia.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-WFYzU6tf.js",
|
||||
"houseplan-assets/zigbee-topology-vMt2wTBO.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 204953,
|
||||
"lazyEditorGzipBytes": 204957,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick-CWb2HhWI.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BUEnwsS_.js"
|
||||
"houseplan-assets/backdrop-pick-B16NGRXv.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BWyg7LT0.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 13911,
|
||||
"lazyOnboardingGzipBytes": 13915,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-Dqz0XPIf.js",
|
||||
"houseplan-assets/fr-CMQ4gUjs.js"
|
||||
"houseplan-assets/de-DImDeVRF.js",
|
||||
"houseplan-assets/fr-nE15Pu8B.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 54918,
|
||||
"lazyLocaleGzipBytes": 54921,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/iso-scene-render-CKbgrVlC.js"
|
||||
"houseplan-assets/iso-scene-render-DcjKH0UU.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 14557,
|
||||
"lazyIsometricGzipBytes": 14558,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-CPLGL2Av.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-B7C_J6ia.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 10253,
|
||||
"lazyPdfFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-CPLGL2Av.js",
|
||||
"houseplan-assets/pdf-export-0nZlIOFH.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-B7C_J6ia.js",
|
||||
"houseplan-assets/pdf-export-DrK0iurI.js"
|
||||
],
|
||||
"lazyPdfGzipBytes": 120125,
|
||||
"lazyPdfGzipBytes": 120124,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick-CWb2HhWI.js",
|
||||
"sha256": "c644ee7e699b712e22bdf57bd0f4e6d71cd709c86caf34223e32c73d89b63450",
|
||||
"path": "houseplan-assets/backdrop-pick-B16NGRXv.js",
|
||||
"sha256": "39e97b0efc5e0236ec06c1e30e205a4b4149444dbc295bef3cd7449d0f174a1c",
|
||||
"rawBytes": 19956,
|
||||
"gzipBytes": 6878,
|
||||
"gzipBytes": 6879,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-Dqz0XPIf.js",
|
||||
"sha256": "5864e7bdfb269fa6e9ab60cd2f5d1902f674219bb34823f4cfba1e3288bcd6c3",
|
||||
"path": "houseplan-assets/de-DImDeVRF.js",
|
||||
"sha256": "c1d00092f0261c6a57defeb918ce2c437a176cf02b3b6fe9e471a52c1a2ded80",
|
||||
"rawBytes": 91590,
|
||||
"gzipBytes": 27742,
|
||||
"gzipBytes": 27744,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-Bl9zD6kT.js",
|
||||
"sha256": "9ef05de2e00bc943260ac5609d81958a21fe154dc0317b8012e92793f0a9a599",
|
||||
"path": "houseplan-assets/editor-DFuwV7s2.js",
|
||||
"sha256": "dd613833736f237053cc66e205cff6b7c2d418d242394de3a3e64cf13bf99862",
|
||||
"rawBytes": 3831,
|
||||
"gzipBytes": 1583,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-CMQ4gUjs.js",
|
||||
"sha256": "738860c08b0b739c5548fd4d8318a2e66a255e2294c4378f4e0ef75ab3a5559b",
|
||||
"path": "houseplan-assets/fr-nE15Pu8B.js",
|
||||
"sha256": "d25fbb36d6701a6c0058e6baa6bc213887eca78392eca747f5ec09f98abc476c",
|
||||
"rawBytes": 93884,
|
||||
"gzipBytes": 27176,
|
||||
"gzipBytes": 27177,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-CPLGL2Av.js",
|
||||
"sha256": "17ce052c6e3daa68fc7afd96985ebcd2da24c0f5992808415e2888ae5cd1eaa7",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-B7C_J6ia.js",
|
||||
"sha256": "b3e44e28d56944e1747079e6f9d078099a9bc9fe44ccfec4f6d52f4a18b8c817",
|
||||
"rawBytes": 33655,
|
||||
"gzipBytes": 10253,
|
||||
"isEntry": false,
|
||||
@@ -116,180 +116,180 @@
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-DjM6Kttx.js",
|
||||
"sha256": "7a71a60bef9e54f39b9201629043f553ec8dbbf0b7187f2f07e776ea95f01341",
|
||||
"path": "houseplan-assets/houseplan-card-BwLd7B5O.js",
|
||||
"sha256": "9afd55336b6bf8f17b0865e19a6d55570029e0ada4d8f73a2f2549679edc5b8c",
|
||||
"rawBytes": 1034007,
|
||||
"gzipBytes": 290325,
|
||||
"gzipBytes": 290328,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/de-Dqz0XPIf.js",
|
||||
"houseplan-assets/editor-Bl9zD6kT.js",
|
||||
"houseplan-assets/fr-CMQ4gUjs.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CPLGL2Av.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-3wT0L_Y2.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BUEnwsS_.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-De7SexFw.js",
|
||||
"houseplan-assets/iso-scene-render-CKbgrVlC.js",
|
||||
"houseplan-assets/live-interaction-runtime-C6JnpY_i.js",
|
||||
"houseplan-assets/pdf-export-0nZlIOFH.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-BHB_ww94.js"
|
||||
"houseplan-assets/de-DImDeVRF.js",
|
||||
"houseplan-assets/editor-DFuwV7s2.js",
|
||||
"houseplan-assets/fr-nE15Pu8B.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-B7C_J6ia.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-WFYzU6tf.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BWyg7LT0.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DU12iQ6Q.js",
|
||||
"houseplan-assets/iso-scene-render-DcjKH0UU.js",
|
||||
"houseplan-assets/live-interaction-runtime-COBHr7aN.js",
|
||||
"houseplan-assets/pdf-export-DrK0iurI.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CjC5avlN.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-3wT0L_Y2.js",
|
||||
"sha256": "fa3d361a70c9eb8cc20f7235783a37639f048f4aee0106a617e972542b7909a5",
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-WFYzU6tf.js",
|
||||
"sha256": "25b9e20603de62305ad370325a316e2744b598db69d951b47850957297868190",
|
||||
"rawBytes": 670150,
|
||||
"gzipBytes": 178815,
|
||||
"gzipBytes": 178814,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-CWb2HhWI.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-CPLGL2Av.js",
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js",
|
||||
"houseplan-assets/zigbee-topology-Dq-_44UP.js"
|
||||
"houseplan-assets/backdrop-pick-B16NGRXv.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-B7C_J6ia.js",
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js",
|
||||
"houseplan-assets/zigbee-topology-vMt2wTBO.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/zigbee-topology-runtime-BPBY6wCe.js"
|
||||
"houseplan-assets/zigbee-topology-runtime-Byv01sYO.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-BUEnwsS_.js",
|
||||
"sha256": "3bb5ce9ef4c019a55595477a27bee15272f72b99e69c2030223a703210df3709",
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-BWyg7LT0.js",
|
||||
"sha256": "371f34a47a3871cd5f91fbca3514762f3582d41698dce14c25662559a05aea1e",
|
||||
"rawBytes": 28287,
|
||||
"gzipBytes": 7033,
|
||||
"gzipBytes": 7036,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-CWb2HhWI.js",
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/backdrop-pick-B16NGRXv.js",
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-De7SexFw.js",
|
||||
"sha256": "31da5c9d279a7044884808cf9519eac8475e8b8c167379dc27c0c129e7ea12e5",
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-DU12iQ6Q.js",
|
||||
"sha256": "fb14d3b52c5b214519c53063b86f8b7b8d901de29dfe907ceb3bf8f7f4e6d901",
|
||||
"rawBytes": 10756,
|
||||
"gzipBytes": 3684,
|
||||
"gzipBytes": 3682,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js",
|
||||
"houseplan-assets/zigbee-topology-Dq-_44UP.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-BPBY6wCe.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-Byv01sYO.js",
|
||||
"houseplan-assets/zigbee-topology-vMt2wTBO.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-CKbgrVlC.js",
|
||||
"sha256": "084763721a2c53710926002231ba288b8e2e0c68631a1afe36fe6461b69ae0cf",
|
||||
"path": "houseplan-assets/iso-scene-render-DcjKH0UU.js",
|
||||
"sha256": "1bdc49e9522181684632ee6851b6b6e4ad0c2ebd0f6c2887df40311ad46ee023",
|
||||
"rawBytes": 43068,
|
||||
"gzipBytes": 14557,
|
||||
"gzipBytes": 14558,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-C6JnpY_i.js",
|
||||
"sha256": "e5cbb268f25103b5c3b5c527ee44af8e952311292f0304a13cd3eb4089c5233a",
|
||||
"path": "houseplan-assets/live-interaction-runtime-COBHr7aN.js",
|
||||
"sha256": "4a86804164a394030db8d2e741f0ddcc9aa26f63b710567e2be74063045189c6",
|
||||
"rawBytes": 8216,
|
||||
"gzipBytes": 3204,
|
||||
"gzipBytes": 3208,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/pdf-export-0nZlIOFH.js",
|
||||
"sha256": "eace6f03a8d5c3940eb9c2e332c0e402ced996273deb476fa6033e765ef652a4",
|
||||
"path": "houseplan-assets/pdf-export-DrK0iurI.js",
|
||||
"sha256": "a78ce65dd337f399dd903a6f9998932dfd51b10282336cdd4b11cb1a6a4cf735",
|
||||
"rawBytes": 236244,
|
||||
"gzipBytes": 109872,
|
||||
"gzipBytes": 109871,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/furniture-plan-art.generated-CPLGL2Av.js",
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-B7C_J6ia.js",
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-editor-2wwxwIR4.js",
|
||||
"sha256": "42353cfe0654b4e59abdf4a9f454ea739b963ce1695f6f4163c587afecc2b703",
|
||||
"path": "houseplan-assets/summary-panel-editor-DI5se8qp.js",
|
||||
"sha256": "d2a34a22cdbf932082cafd27abf24b5d39a8d6fe96837f4ba506f36bb0445a86",
|
||||
"rawBytes": 14824,
|
||||
"gzipBytes": 3398,
|
||||
"gzipBytes": 3397,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-BHB_ww94.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CjC5avlN.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-metrics-DeEeKrf8.js",
|
||||
"sha256": "a465234be357bc19def5f4b9f8cb7cf30b8ac8d079468b9bb8b49f9dc016f032",
|
||||
"path": "houseplan-assets/summary-panel-metrics-CqDZFZBE.js",
|
||||
"sha256": "dcce813648d7847df7950ab2e6c59f7054bce0b4cea70652ede413f042f3ac04",
|
||||
"rawBytes": 2610,
|
||||
"gzipBytes": 1306,
|
||||
"gzipBytes": 1305,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-BHB_ww94.js",
|
||||
"sha256": "c63eacd0d43ac8a7d9b7e6ff42c3198a858ae1dc77dc60fca222d2deff0007c9",
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-CjC5avlN.js",
|
||||
"sha256": "d4fed65af4420363928d3aafc3030ecf7e5fe7dbe6db510d3a46cbaec2f4296e",
|
||||
"rawBytes": 73366,
|
||||
"gzipBytes": 20086,
|
||||
"gzipBytes": 20089,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/summary-panel-editor-2wwxwIR4.js",
|
||||
"houseplan-assets/summary-panel-metrics-DeEeKrf8.js"
|
||||
"houseplan-assets/summary-panel-editor-DI5se8qp.js",
|
||||
"houseplan-assets/summary-panel-metrics-CqDZFZBE.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-Dq-_44UP.js",
|
||||
"sha256": "97b41c2d14882b96eef5fc3c6f5ec8732dada6c63fd8c80e42d59353e4f66f80",
|
||||
"rawBytes": 18961,
|
||||
"gzipBytes": 7424,
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-Byv01sYO.js",
|
||||
"sha256": "1946f670d119e45cedff669aba05b41c3ec45d3e8200a120f09959bfbe786628",
|
||||
"rawBytes": 3941,
|
||||
"gzipBytes": 1762,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js",
|
||||
"houseplan-assets/zigbee-topology-vMt2wTBO.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-BPBY6wCe.js",
|
||||
"sha256": "58f47c102d2192d1f34baabfce965e2d210140ca0dc23761f75748a8adb169f1",
|
||||
"rawBytes": 3941,
|
||||
"gzipBytes": 1763,
|
||||
"path": "houseplan-assets/zigbee-topology-vMt2wTBO.js",
|
||||
"sha256": "07ef43e2a6b11105eb4b251c6938e2f7c508db9fc5a0cecf005d595e4f134fdc",
|
||||
"rawBytes": 18961,
|
||||
"gzipBytes": 7428,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js",
|
||||
"houseplan-assets/zigbee-topology-Dq-_44UP.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "b80d21a336b292fb10fc94fa213d27864226f14b75899e9e6e5c5f7d9fc84a5b",
|
||||
"sha256": "458ca4c6b78de94c2f6625b84de53035533e342aaec24732243841d8315ab7b8",
|
||||
"rawBytes": 1205,
|
||||
"gzipBytes": 802,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-panel.js",
|
||||
"sha256": "79e9fef2388110d9e5f3e70da99a97ea7e3121850067a8b68505a5112e3aeed4",
|
||||
"sha256": "bccfd0b032c62049d6ceb418cff892a8806ae8311f1965a946a509114c9968f9",
|
||||
"rawBytes": 6165,
|
||||
"gzipBytes": 2324,
|
||||
"gzipBytes": 2325,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DjM6Kttx.js"
|
||||
"houseplan-assets/houseplan-card-BwLd7B5O.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
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="240d3e0d377956018fd391c05bdbc8390f4eca9704a5ca6ba7cac0a00c4a139b";import{q as e,l as o,v as t,e5 as s,A as a,e6 as i,e7 as l,e8 as n,E as r,c}from"./houseplan-card-DjM6Kttx.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__="8f3777a9cb13e5ce966a6d4abe6321583191da25876aadb60cccf8ed094c1c49";import{q as e,l as o,v as t,e5 as s,A as a,e6 as i,e7 as l,e8 as n,E as r,c}from"./houseplan-card-BwLd7B5O.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
|
||||
.hass=${this.hass}
|
||||
.data=${this._formData}
|
||||
.schema=${e}
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+5
-5
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__="240d3e0d377956018fd391c05bdbc8390f4eca9704a5ca6ba7cac0a00c4a139b";import{l as t,b4 as s,A as e,v as a,c as o,cn as l,co as i,cp as h,cq as c,b1 as n,cr as r,cw as p,cs as d,ct as _,cu as u,cv as g,cx as m,cy as b,dt as $,du as v,dv as f,b0 as y,b2 as w,dw as D}from"./houseplan-card-DjM6Kttx.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-CWb2HhWI.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="240d3e0d377956018fd391c05bdbc8390f4eca9704a5ca6ba7cac0a00c4a139b";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)?o`<hp-help data-help-key=${l}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="8f3777a9cb13e5ce966a6d4abe6321583191da25876aadb60cccf8ed094c1c49";import{l as t,b4 as s,A as e,v as a,c as o,cn as l,co as i,cp as h,cq as c,b1 as n,cr as r,cw as p,cs as d,ct as _,cu as u,cv as g,cx as m,cy as b,dt as $,du as v,dv as f,b0 as y,b2 as w,dw as D}from"./houseplan-card-BwLd7B5O.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-B16NGRXv.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="8f3777a9cb13e5ce966a6d4abe6321583191da25876aadb60cccf8ed094c1c49";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)?o`<hp-help data-help-key=${l}
|
||||
.text=${a(h,l)} .ariaLabel=${a(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 a=l(e),o=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?i(e.settings.custom_fill):null,p="none"===a.fill?{...o||h,a:0}:o;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:a.showBorders,showNames:a.showNames,zeroWallStyle:r(e),displayTouched:!0,hideDecor:a.hideDecor,hideOpenings:a.hideOpenings,roomColor:a.color,roomOpacity:a.opacity,fillMode:"none"===a.fill?"custom":a.fill,customFill:p,glowEnabled:a.glow,bgColor:a.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:a.tempMin,tempMax:a.tempMax,showLqi:a.showLqi??this.host._config?.show_signal??!0,cardFontScale:a.cardFontScale,labelTemp:a.labelTemp,labelHum:a.labelHum,labelLqi:a.labelLqi,labelLight:a.labelLight,cellCm:Number(e.cell_cm)>0?Number(e.cell_cm):5,cellCmInput:c(Number(e.cell_cm)>0?Number(e.cell_cm):5,this.host._imperial),cellCmTouched:!1,busy:!1})}const e=p(this.host._imperial);this.host._spaceDialog={mode:t,title:"",planUrl:null,planFile:null,...m(),hideDecor:!1,hideOpenings:!1,zeroWallStyle:"dashed",roomColor:g,roomOpacity:u,fillMode:"custom",customFill:{...h,a:0},glowEnabled:!0,bgColor:null,bgMode:"daynight",northDeg:null,sunRays:null,tempMin:_,tempMax:d,showLqi:this.host._config?.show_signal??!0,cardFontScale:1,labelTemp:!1,labelHum:!1,labelLqi:!1,labelLight:!1,cellCm:e,cellCmInput:c(e,this.host._imperial),cellCmTouched:!1,busy:!1}}async _pickPlanFile(t){const s=t.target,e=s.files?.[0];if(!e||!this.host._spaceDialog)return;s.value="";const a=await k(e);if("reject"===a.kind)return void this.host._showToast(this.host._t("toast.plan_formats"));if("guard"===a.kind)return void(this.host._backdropGuard=a.state);const o=await S(e,a.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:o})}_renderBackdropGuard(){return C(this.host,t=>{this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:t})},()=>{this.host._backdropGuard=null},this.host.hass)??e}_useServerPlan(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,planUrl:t,planFile:null,pickSaved:!1,savedAspect:void 0},this.host._aspectJob=this._readPlanAspect(t))}async _readPlanAspect(t){for(let s=0;s<40;s++){const s=this.host._display(t);if(s){const e=await new Promise(t=>{const e=new Image;e.onload=()=>t(e.naturalWidth&&e.naturalHeight?e.naturalWidth/e.naturalHeight:0),e.onerror=()=>t(0),e.src=s}),a=this.host._spaceDialog;return a&&a.planUrl===t&&Number.isFinite(e)&&e>0?(this.host._spaceDialog={...a,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 a=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")}),o=this.host._spaceDialog,l=o?.saved?.find(s=>s.name===t);if(a&&o&&l&&l.url===e.url&&l.modified===e.modified&&!l.used_by.length&&l.url!==o.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 o`<div class="savedplans muted">${this.host._t("space.loading")}</div>`;const s=t.saved||[];if(!s.length)return o`<div class="savedplans muted">${this.host._t("space.no_saved")}</div>`;return o`<div class="savedplans">
|
||||
${s.map(s=>{return o`
|
||||
<div class="savedplan ${s.url===t.planUrl?"cur":""}">
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="240d3e0d377956018fd391c05bdbc8390f4eca9704a5ca6ba7cac0a00c4a139b";import{c as a,A as e}from"./houseplan-card-DjM6Kttx.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-BHB_ww94.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="8f3777a9cb13e5ce966a6d4abe6321583191da25876aadb60cccf8ed094c1c49";import{c as a,A as e}from"./houseplan-card-BwLd7B5O.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-CjC5avlN.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
|
||||
<span class="summary-switch-caption"><strong>${b("summary.show_local")}</strong>
|
||||
<small id="summary-local-show-hint">${b("summary.show_local_hint")}</small></span>
|
||||
<input id="summary-local-show" data-summary-local-show type="checkbox"
|
||||
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="240d3e0d377956018fd391c05bdbc8390f4eca9704a5ca6ba7cac0a00c4a139b";import{eb as e,P as t,a5 as n,M as i,aq as r,N as o,bs as a,br as s,a4 as c,a3 as l,aA as d,ec as u,ed as f,bu as m,ee as g}from"./houseplan-card-DjM6Kttx.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=d(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const r=String(i.binding||"").indexOf(":");if(r<1)continue;const o=i.binding.slice(0,r),a=i.binding.slice(r+1),s="device"===o?e.registry.devices?.[a]:null,c="entity"===o?e.registry.entities?.[a]:null,l="device"===o?a:c?.device_id,d="device"===o?s?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.area_id,u="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||d||"",f=u&&e.areaToSpace[u]||i.space||e.firstSpaceId;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===o&&n.liveEntities.has(a))&&t.add(l)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=c(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,r,o);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,r,o)}}function*h(c,l,d=_){try{let u=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=d(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const s=t(e);if(!s)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,r,o,g.roomGeom,g.multiWallNodes)||s;v=y(v,a(c,m.physicalBodies)),yield}const _=m.cellCm/r;u+=s(v)*_*_/1e4}return u}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let r=i.next();for(;!r.done;)r=i.next();return r.value}function b(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=u(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,p as totalCleanFloorAreaM2};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="8f3777a9cb13e5ce966a6d4abe6321583191da25876aadb60cccf8ed094c1c49";import{eb as e,P as t,a5 as n,M as i,aq as r,N as o,bs as s,br as a,a4 as c,a3 as l,aA as d,ec as u,ed as f,bu as m,ee as g}from"./houseplan-card-BwLd7B5O.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=d(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const r=String(i.binding||"").indexOf(":");if(r<1)continue;const o=i.binding.slice(0,r),s=i.binding.slice(r+1),a="device"===o?e.registry.devices?.[s]:null,c="entity"===o?e.registry.entities?.[s]:null,l="device"===o?s:c?.device_id,d="device"===o?a?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.area_id,u="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||d||"",f=u&&e.areaToSpace[u]||i.space||e.firstSpaceId;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===o&&n.liveEntities.has(s))&&t.add(l)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=c(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,r,o);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,r,o)}}function*h(c,l,d=_){try{let u=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=d(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,r,o,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(c,m.physicalBodies)),yield}const _=m.cellCm/r;u+=a(v)*_*_/1e4}return u}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let r=i.next();for(;!r.done;)r=i.next();return r.value}function b(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=u(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,p as totalCleanFloorAreaM2};
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="240d3e0d377956018fd391c05bdbc8390f4eca9704a5ca6ba7cac0a00c4a139b";import{n as t,b as n}from"./zigbee-topology-Dq-_44UP.js";import{F as e}from"./houseplan-card-DjM6Kttx.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__="8f3777a9cb13e5ce966a6d4abe6321583191da25876aadb60cccf8ed094c1c49";import{n as t,b as n}from"./zigbee-topology-vMt2wTBO.js";import{F as e}from"./houseplan-card-BwLd7B5O.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
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="240d3e0d377956018fd391c05bdbc8390f4eca9704a5ca6ba7cac0a00c4a139b";try{await import("./houseplan-assets/houseplan-card-DjM6Kttx.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="8f3777a9cb13e5ce966a6d4abe6321583191da25876aadb60cccf8ed094c1c49";try{await import("./houseplan-assets/houseplan-card-BwLd7B5O.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -70,10 +70,12 @@ test('golden matrix has stable unique ids and bounded comparison thresholds', ()
|
||||
for (const opening of contract.openings) {
|
||||
assert.match(opening.id, /^[a-z0-9-]+$/, scenario.id);
|
||||
assert.equal(['door', 'window', 'gate'].includes(opening.type), true, scenario.id);
|
||||
assert.equal(['center', 'edge'].includes(opening.offset), true, scenario.id);
|
||||
const expectedOffset = contract.surface === 'iso' && opening.type !== 'window'
|
||||
? 'selected-face'
|
||||
: 'center';
|
||||
assert.equal(opening.offset, expectedOffset, scenario.id);
|
||||
assert.equal(typeof opening.flipV, 'boolean', scenario.id);
|
||||
assert.equal(Number.isFinite(opening.at) && opening.length > 0, true, scenario.id);
|
||||
if (opening.type === 'gate') assert.equal(opening.offset, 'center', scenario.id);
|
||||
}
|
||||
assert.equal(contract.surface === 'iso', scenario.projection === 'iso', scenario.id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user