mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
Vendored
+115
-115
@@ -1,232 +1,232 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "e152d03f9299361990e05b57f7e4e0a7bb3f5e86bf1be87b9fd76f98bd07256a",
|
||||
"fingerprint": "646efb7cbcc3983509681c3430fa42513ae62445f7606ebb8de7f3967afe4f00",
|
||||
"entry": "houseplan-card.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-DtVSF3iT.js",
|
||||
"houseplan-assets/houseplan-card-B_QYG0Py.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 288574,
|
||||
"initialViewGzipBytes": 288573,
|
||||
"lazyFiles": [
|
||||
"houseplan-assets/backdrop-pick-DR86CsfB.js",
|
||||
"houseplan-assets/de-Cagw-bX3.js",
|
||||
"houseplan-assets/editor-gomnV0g1.js",
|
||||
"houseplan-assets/fr-BDbA4Ha5.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D9KduSGU.js",
|
||||
"houseplan-assets/guard-PLMAyOrH.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-kQb_Gj0M.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-YtW1EL9r.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-D7HwyxjF.js",
|
||||
"houseplan-assets/iso-scene-render-DNuSKEUA.js",
|
||||
"houseplan-assets/live-interaction-runtime-B7M19onS.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-D5a3_vWN.js",
|
||||
"houseplan-assets/zigbee-topology-z5Fpqn2o.js"
|
||||
"houseplan-assets/backdrop-pick-D6LhKf2N.js",
|
||||
"houseplan-assets/de-BolUcHuX.js",
|
||||
"houseplan-assets/editor-DC4i4Aam.js",
|
||||
"houseplan-assets/fr-CyV9xY4W.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DPM3xdWV.js",
|
||||
"houseplan-assets/guard-DU4QQi6u.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-DqX68E_8.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-DvtWmEpp.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DVdGoL1j.js",
|
||||
"houseplan-assets/iso-scene-render-DczF6NiN.js",
|
||||
"houseplan-assets/live-interaction-runtime-Bn789cLD.js",
|
||||
"houseplan-assets/zigbee-topology-BnpLzLg7.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-JzXR8tg6.js"
|
||||
],
|
||||
"lazyGzipBytes": 270403,
|
||||
"lazyGzipBytes": 270606,
|
||||
"lazyEditorFiles": [
|
||||
"houseplan-assets/backdrop-pick-DR86CsfB.js",
|
||||
"houseplan-assets/editor-gomnV0g1.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D9KduSGU.js",
|
||||
"houseplan-assets/guard-PLMAyOrH.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-kQb_Gj0M.js",
|
||||
"houseplan-assets/zigbee-topology-z5Fpqn2o.js"
|
||||
"houseplan-assets/backdrop-pick-D6LhKf2N.js",
|
||||
"houseplan-assets/editor-DC4i4Aam.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DPM3xdWV.js",
|
||||
"houseplan-assets/guard-DU4QQi6u.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-DqX68E_8.js",
|
||||
"houseplan-assets/zigbee-topology-BnpLzLg7.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 192970,
|
||||
"lazyEditorGzipBytes": 193161,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick-DR86CsfB.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-YtW1EL9r.js"
|
||||
"houseplan-assets/backdrop-pick-D6LhKf2N.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-DvtWmEpp.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 14323,
|
||||
"lazyOnboardingGzipBytes": 14328,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-Cagw-bX3.js",
|
||||
"houseplan-assets/fr-BDbA4Ha5.js"
|
||||
"houseplan-assets/de-BolUcHuX.js",
|
||||
"houseplan-assets/fr-CyV9xY4W.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 49758,
|
||||
"lazyLocaleGzipBytes": 49760,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/guard-PLMAyOrH.js",
|
||||
"houseplan-assets/iso-scene-render-DNuSKEUA.js"
|
||||
"houseplan-assets/guard-DU4QQi6u.js",
|
||||
"houseplan-assets/iso-scene-render-DczF6NiN.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 13459,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-D9KduSGU.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-DPM3xdWV.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 10255,
|
||||
"lazyFurnitureArtGzipBytes": 10253,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick-DR86CsfB.js",
|
||||
"sha256": "7b5094171ba353c2febd891e1c8609d1af0c1f71c0ea78eca43ca01066f4ccb0",
|
||||
"path": "houseplan-assets/backdrop-pick-D6LhKf2N.js",
|
||||
"sha256": "e164e525884bfa62ae90ed5b1a944d359c41a6bc9734e1afff07790fcf23aa27",
|
||||
"rawBytes": 21592,
|
||||
"gzipBytes": 7357,
|
||||
"gzipBytes": 7358,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DtVSF3iT.js"
|
||||
"houseplan-assets/houseplan-card-B_QYG0Py.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-Cagw-bX3.js",
|
||||
"sha256": "b3d9d3d60b5e59a6f68dae66b1e0753e93b79cf6e01da75e20b42c1f88cbff85",
|
||||
"path": "houseplan-assets/de-BolUcHuX.js",
|
||||
"sha256": "06484d80baa36816150b95cf26964d7a73c43534204f57267fe21e4dcd13964a",
|
||||
"rawBytes": 83541,
|
||||
"gzipBytes": 25128,
|
||||
"gzipBytes": 25129,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-gomnV0g1.js",
|
||||
"sha256": "807acf7a0e6871a1f625a548e053e5b38fb0ed19b6a39b35915a59f0c116944d",
|
||||
"path": "houseplan-assets/editor-DC4i4Aam.js",
|
||||
"sha256": "37892b28acd7508c762c898cbb0f92d7b926f1b0aa31935431e61500dd5f5a57",
|
||||
"rawBytes": 3837,
|
||||
"gzipBytes": 1588,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DtVSF3iT.js"
|
||||
"houseplan-assets/houseplan-card-B_QYG0Py.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-BDbA4Ha5.js",
|
||||
"sha256": "dfd7ea4d9987b35e9b748541fcd2fa5e90c8bfbf11c7002e9b5f8414e4458ce8",
|
||||
"path": "houseplan-assets/fr-CyV9xY4W.js",
|
||||
"sha256": "0c7b378ce233e3e6a1d5e4c48c21a955305613ceed5f6f00a83e6761383aae3c",
|
||||
"rawBytes": 85540,
|
||||
"gzipBytes": 24630,
|
||||
"gzipBytes": 24631,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-D9KduSGU.js",
|
||||
"sha256": "2c83593d8c66c53e76580a9b44dd77a7a2a3d5e54017477af9963149813e6a58",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-DPM3xdWV.js",
|
||||
"sha256": "d4b70f684b4820e261fe9aa06fa47de277c475d78740334bce686d9e24b4e93d",
|
||||
"rawBytes": 33655,
|
||||
"gzipBytes": 10255,
|
||||
"gzipBytes": 10253,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/guard-PLMAyOrH.js",
|
||||
"sha256": "ba1718947cddf1c505e857abf3bcddbf4ac4ae4c618ca8e329a21e649d073347",
|
||||
"path": "houseplan-assets/guard-DU4QQi6u.js",
|
||||
"sha256": "e8fe75271f7bc89eac6bd5650b3c7af013ceef14ea513b83162e4950997c1b59",
|
||||
"rawBytes": 518,
|
||||
"gzipBytes": 372,
|
||||
"gzipBytes": 371,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DtVSF3iT.js"
|
||||
"houseplan-assets/houseplan-card-B_QYG0Py.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-DtVSF3iT.js",
|
||||
"sha256": "b84bf7ecebc9b629d1ca2be540581ed511ed98319b48f5bce212e2cc5f603320",
|
||||
"path": "houseplan-assets/houseplan-card-B_QYG0Py.js",
|
||||
"sha256": "3c346bdeb12782170d057dbe671bee8f9389d537f89cb502b0760911669980fb",
|
||||
"rawBytes": 1037058,
|
||||
"gzipBytes": 287778,
|
||||
"gzipBytes": 287775,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/de-Cagw-bX3.js",
|
||||
"houseplan-assets/editor-gomnV0g1.js",
|
||||
"houseplan-assets/fr-BDbA4Ha5.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D9KduSGU.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-kQb_Gj0M.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-YtW1EL9r.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-D7HwyxjF.js",
|
||||
"houseplan-assets/iso-scene-render-DNuSKEUA.js",
|
||||
"houseplan-assets/live-interaction-runtime-B7M19onS.js"
|
||||
"houseplan-assets/de-BolUcHuX.js",
|
||||
"houseplan-assets/editor-DC4i4Aam.js",
|
||||
"houseplan-assets/fr-CyV9xY4W.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DPM3xdWV.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-DqX68E_8.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-DvtWmEpp.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DVdGoL1j.js",
|
||||
"houseplan-assets/iso-scene-render-DczF6NiN.js",
|
||||
"houseplan-assets/live-interaction-runtime-Bn789cLD.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-kQb_Gj0M.js",
|
||||
"sha256": "b7c290e802be0dd42447db0c6db58bbe127df9c7860478b723d24ad63b2fb1b9",
|
||||
"rawBytes": 623934,
|
||||
"gzipBytes": 165969,
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-DqX68E_8.js",
|
||||
"sha256": "a7abbe810557d33a4b71d33c428b57e46ee306768b275b5d525bb652156eb936",
|
||||
"rawBytes": 624431,
|
||||
"gzipBytes": 166163,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-DR86CsfB.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D9KduSGU.js",
|
||||
"houseplan-assets/guard-PLMAyOrH.js",
|
||||
"houseplan-assets/houseplan-card-DtVSF3iT.js",
|
||||
"houseplan-assets/zigbee-topology-z5Fpqn2o.js"
|
||||
"houseplan-assets/backdrop-pick-D6LhKf2N.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DPM3xdWV.js",
|
||||
"houseplan-assets/guard-DU4QQi6u.js",
|
||||
"houseplan-assets/houseplan-card-B_QYG0Py.js",
|
||||
"houseplan-assets/zigbee-topology-BnpLzLg7.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/zigbee-topology-runtime-D5a3_vWN.js"
|
||||
"houseplan-assets/zigbee-topology-runtime-JzXR8tg6.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-YtW1EL9r.js",
|
||||
"sha256": "5af5374058e357f9ea406c7758fa9d0f097afff7fb8bfa42da0b133a3b29bf49",
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-DvtWmEpp.js",
|
||||
"sha256": "e87e2fd96e1182695603cb6ad8e5a74997db9b7a1cfa26cee69c6ab110601f51",
|
||||
"rawBytes": 28071,
|
||||
"gzipBytes": 6966,
|
||||
"gzipBytes": 6970,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-DR86CsfB.js",
|
||||
"houseplan-assets/houseplan-card-DtVSF3iT.js"
|
||||
"houseplan-assets/backdrop-pick-D6LhKf2N.js",
|
||||
"houseplan-assets/houseplan-card-B_QYG0Py.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-D7HwyxjF.js",
|
||||
"sha256": "86372a31d0ade64a8f0d31668c6d9cf08ed78b85a9ae670b16e960eb65cc0468",
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-DVdGoL1j.js",
|
||||
"sha256": "e1146c384c2481dcd855192c1fd4ed149b217ea109233e6baca117cd072a418e",
|
||||
"rawBytes": 11034,
|
||||
"gzipBytes": 3731,
|
||||
"gzipBytes": 3733,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DtVSF3iT.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-D5a3_vWN.js",
|
||||
"houseplan-assets/zigbee-topology-z5Fpqn2o.js"
|
||||
"houseplan-assets/houseplan-card-B_QYG0Py.js",
|
||||
"houseplan-assets/zigbee-topology-BnpLzLg7.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-JzXR8tg6.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-DNuSKEUA.js",
|
||||
"sha256": "6d5f70a5cccbc7a7ed5cfdaeb0516f803152d46240d588ece253c8860ecb4f6e",
|
||||
"path": "houseplan-assets/iso-scene-render-DczF6NiN.js",
|
||||
"sha256": "4fdc508e34c4fd9faac86fede3072beaaecf13564f07a30f278accdbb7d6b9fc",
|
||||
"rawBytes": 38562,
|
||||
"gzipBytes": 13087,
|
||||
"gzipBytes": 13088,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/guard-PLMAyOrH.js",
|
||||
"houseplan-assets/houseplan-card-DtVSF3iT.js"
|
||||
"houseplan-assets/guard-DU4QQi6u.js",
|
||||
"houseplan-assets/houseplan-card-B_QYG0Py.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-B7M19onS.js",
|
||||
"sha256": "459ad45f6484d1fc30ca4bc4efa8613e7ddf1e8577d4e74fefd5348ebadce112",
|
||||
"path": "houseplan-assets/live-interaction-runtime-Bn789cLD.js",
|
||||
"sha256": "57f2f09b46377f3697d126a6eb2a318ed8a230e84223182f7f18559add3730c8",
|
||||
"rawBytes": 5196,
|
||||
"gzipBytes": 2128,
|
||||
"gzipBytes": 2129,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DtVSF3iT.js"
|
||||
"houseplan-assets/houseplan-card-B_QYG0Py.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-D5a3_vWN.js",
|
||||
"sha256": "231c710899045c9081e632934477589912ee494684a2116437b19e4a135ec7b3",
|
||||
"rawBytes": 3941,
|
||||
"gzipBytes": 1763,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DtVSF3iT.js",
|
||||
"houseplan-assets/zigbee-topology-z5Fpqn2o.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-z5Fpqn2o.js",
|
||||
"sha256": "d3bca2e78246e08322c150ef908f59e56114459d9bdd657de11796307014c8b4",
|
||||
"path": "houseplan-assets/zigbee-topology-BnpLzLg7.js",
|
||||
"sha256": "871f706f545fba4a31208097a9b26605615a9f185eb27c1baa06b38b797446de",
|
||||
"rawBytes": 18961,
|
||||
"gzipBytes": 7429,
|
||||
"gzipBytes": 7428,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DtVSF3iT.js"
|
||||
"houseplan-assets/houseplan-card-B_QYG0Py.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-JzXR8tg6.js",
|
||||
"sha256": "03ad74129781c6009c82696618a2e0f77a577e793a83932b098a6ddade7b35f6",
|
||||
"rawBytes": 3941,
|
||||
"gzipBytes": 1765,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-B_QYG0Py.js",
|
||||
"houseplan-assets/zigbee-topology-BnpLzLg7.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "eab33ac0d6322290de13a7931196a30ffd23668e2ce6057bc51c80688b6d9d27",
|
||||
"sha256": "e53e42ad8703704c7bd3a16f88f791baf2615be5c53825abdf718dbca1866c11",
|
||||
"rawBytes": 1183,
|
||||
"gzipBytes": 796,
|
||||
"gzipBytes": 798,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DtVSF3iT.js"
|
||||
"houseplan-assets/houseplan-card-B_QYG0Py.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
}
|
||||
|
||||
Vendored
+7
-7
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="e152d03f9299361990e05b57f7e4e0a7bb3f5e86bf1be87b9fd76f98bd07256a";import{t as e,l as o,x as t,dM as s,A as a,dN as i,dO as l,dP as n,dL as r,b as c}from"./houseplan-card-DtVSF3iT.js";class f extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,f={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},h=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="646efb7cbcc3983509681c3430fa42513ae62445f7606ebb8de7f3967afe4f00";import{t as e,l as o,x as t,dM as s,A as a,dN as i,dO as l,dP as n,dL as r,b as c}from"./houseplan-card-B_QYG0Py.js";class f extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,f={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},h=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
|
||||
.hass=${this.hass}
|
||||
.data=${this._formData}
|
||||
.schema=${e}
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="646efb7cbcc3983509681c3430fa42513ae62445f7606ebb8de7f3967afe4f00";import{dJ as r,dK as t,dL as e}from"./houseplan-card-B_QYG0Py.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
|
||||
-1
@@ -1 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="e152d03f9299361990e05b57f7e4e0a7bb3f5e86bf1be87b9fd76f98bd07256a";import{dJ as r,dK as e,dL as t}from"./houseplan-card-DtVSF3iT.js";const s={},a=r(class extends e{constructor(){super(...arguments),this.ot=s}render(r,e){return e()}update(r,[e,s]){if(Array.isArray(e)){if(Array.isArray(this.ot)&&this.ot.length===e.length&&e.every((r,e)=>r===this.ot[e]))return t}else if(this.ot===e)return t;return this.ot=Array.isArray(e)?Array.from(e):e,this.render(e,s)}});export{a as i};
|
||||
Vendored
+6
-6
File diff suppressed because one or more lines are too long
+90
-90
File diff suppressed because one or more lines are too long
+7
-7
File diff suppressed because one or more lines are too long
+7
-7
File diff suppressed because one or more lines are too long
+31
-31
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
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="e152d03f9299361990e05b57f7e4e0a7bb3f5e86bf1be87b9fd76f98bd07256a";import{n as t,b as n}from"./zigbee-topology-z5Fpqn2o.js";import{F as e}from"./houseplan-card-DtVSF3iT.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function m(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function g(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const f=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&p?.(n):c&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await m(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="646efb7cbcc3983509681c3430fa42513ae62445f7606ebb8de7f3967afe4f00";import{n as t,b as n}from"./zigbee-topology-BnpLzLg7.js";import{F as e}from"./houseplan-card-B_QYG0Py.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function m(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function g(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const f=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&p?.(n):c&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await m(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="e152d03f9299361990e05b57f7e4e0a7bb3f5e86bf1be87b9fd76f98bd07256a";try{await import("./houseplan-assets/houseplan-card-DtVSF3iT.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale entry: the main chunk is unavailable",e)}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="646efb7cbcc3983509681c3430fa42513ae62445f7606ebb8de7f3967afe4f00";try{await import("./houseplan-assets/houseplan-card-B_QYG0Py.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale entry: the main chunk is unavailable",e)}
|
||||
|
||||
Reference in New Issue
Block a user