UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

2 lines 2.06 kB
/*! For license information please see 56601.ce60bca9a0b7a846.js.LICENSE.txt */ "use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[56601],{93132:function(e,t,s){s.a(e,async function(e,r){try{s.r(t),s.d(t,{HuiRecoveryModeCard:function(){return u}});var o=s(40445),i=s(5124),n=s(67576),a=(s(76776),s(22828)),c=e([a]);a=(c.then?(await c)():c)[0];let h,d,l=e=>e;class u extends i.WF{getCardSize(){return 3}setConfig(e){}render(){return(0,i.qy)(h||(h=l` <ha-card .header="${0}"> <div class="card-content"> ${0} </div> <error-log-card .hass="${0}" provider="core"></error-log-card> </ha-card> `),this.hass.localize("ui.panel.lovelace.cards.recovery-mode.header"),this.hass.localize("ui.panel.lovelace.cards.recovery-mode.description"),this.hass)}}u.styles=(0,i.AH)(d||(d=l`ha-card{--ha-card-header-color:var(--primary-color)}error-log-card{display:block;padding-bottom:16px}`)),(0,o.Cg)([(0,n.MZ)({attribute:!1})],u.prototype,"hass",void 0),u=(0,o.Cg)([(0,n.EM)("hui-recovery-mode-card")],u),r()}catch(h){r(h)}})},35463:function(e,t,s){s.d(t,{Q:function(){return r}});s(3362),s(17642),s(58004),s(33853),s(45876),s(32475),s(15024),s(31698),s(62953);class r{handleChanges(e){var t;this.value=null===(t=this.callback)||void 0===t?void 0:t.call(this,e,this.u)}hostConnected(){for(const e of this.t)this.observe(e)}hostDisconnected(){this.disconnect()}async hostUpdated(){const e=this.u.takeRecords();e.length&&this.handleChanges(e)}observe(e){this.t.add(e),this.u.observe(e),this.i=!0}unobserve(e){this.t.delete(e),this.u.unobserve(e)}disconnect(){this.u.disconnect()}constructor(e,{target:t,config:s,callback:r,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=e,null!==t&&this.t.add(null!=t?t:e),this.o=null!=o?o:this.o,this.callback=r,window.IntersectionObserver?(this.u=new IntersectionObserver(e=>{const t=this.i;this.i=!1,this.o&&t||(this.handleChanges(e),this.h.requestUpdate())},s),e.addController(this)):console.warn("IntersectionController error: browser does not support IntersectionObserver.")}}}}]);