UNPKG

iobroker.lovelace

Version:

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

2 lines 1.07 kB
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["94618"],{41023:function(t,a,s){s.a(t,(async function(t,n){try{s.r(a),s.d(a,{HuiHorizontalStackCard:()=>f});var r=s(61701),e=s(72621),i=(s(71695),s(92745),s(40251),s(47021),s(57243)),o=s(50778),c=s(81833),h=s(58621),u=t([h]);h=(u.then?(await u)():u)[0];let d,l=t=>t,f=(0,r.Z)([(0,o.Mo)("hui-horizontal-stack-card")],(function(t,a){class s extends a{constructor(...a){super(...a),t(this)}}return{F:s,d:[{kind:"method",key:"getCardSize",value:async function(){if(!this._cards)return 0;const t=[];for(const s of this._cards)t.push((0,c.N)(s));const a=await Promise.all(t);return Math.max(...a)}},{kind:"get",static:!0,key:"styles",value:function(){return[(0,e.Z)(s,"sharedStyles",this),(0,i.iv)(d||(d=l`#root{display:flex;height:100%;gap:var(--horizontal-stack-card-gap,var(--stack-card-gap,8px))}#root>hui-card{display:contents}#root>hui-card>*{flex:1 1 0;min-width:0}`))]}}]}}),h.p);n()}catch(d){n(d)}}))}}]); //# sourceMappingURL=94618.3c3e3e65b339f933.js.map