UNPKG

iobroker.lovelace

Version:

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

1 lines 5.03 kB
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[84175],{45100:function(o,t,a){a.a(o,async function(o,i){try{a.r(t),a.d(t,{HaIconButtonPrev:function(){return g}});a(62953);var e=a(40445),n=a(5124),s=a(67576),r=a(63091),l=a(26300),c=o([l]);l=(c.then?(await c)():c)[0];let h,p=o=>o;const d="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",u="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z";class g extends n.WF{render(){var o;return(0,n.qy)(h||(h=p` <ha-icon-button .disabled="${0}" .label="${0}" .path="${0}" .href="${0}" .target="${0}" .rel="${0}" .download="${0}"></ha-icon-button> `),this.disabled,this.label||(null===(o=this.hass)||void 0===o?void 0:o.localize("ui.common.back"))||"Back",this._icon,this.href,this.target,this.rel,this.download)}constructor(...o){super(...o),this.disabled=!1,this._icon="rtl"===r.G.document.dir?u:d}}(0,e.Cg)([(0,s.MZ)({attribute:!1})],g.prototype,"hass",void 0),(0,e.Cg)([(0,s.MZ)({type:Boolean})],g.prototype,"disabled",void 0),(0,e.Cg)([(0,s.MZ)()],g.prototype,"label",void 0),(0,e.Cg)([(0,s.MZ)()],g.prototype,"href",void 0),(0,e.Cg)([(0,s.MZ)()],g.prototype,"target",void 0),(0,e.Cg)([(0,s.MZ)()],g.prototype,"rel",void 0),(0,e.Cg)([(0,s.MZ)()],g.prototype,"download",void 0),(0,e.Cg)([(0,s.wk)()],g.prototype,"_icon",void 0),g=(0,e.Cg)([(0,s.EM)("ha-icon-button-prev")],g),i()}catch(h){i(h)}})},55218:function(o,t,a){a.a(o,async function(o,i){try{a.r(t);a(3362),a(62953);var e=a(40445),n=a(5124),s=a(67576),r=a(1087),l=a(63130),c=a(18350),h=a(72554),p=(a(93444),a(26300)),d=a(45100),u=(a(83892),a(31420)),g=a(14503),y=a(81619),v=o([c,h,p,d,u]);[c,h,p,d,u]=v.then?(await v)():v;let _,m,b=o=>o;const f="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",k="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z",L="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z";class w extends n.WF{showDialog(o){this._params=o,this._open=!0}closeDialog(){return this._open&&(0,r.r)(this,"dialog-closed",{dialog:this.localName}),this._open=!1,this._params=void 0,!0}render(){var o;return this._params?(0,n.qy)(_||(_=b` <ha-dialog .open="${0}" header-title="${0}" prevent-scrim-close @closed="${0}"> <ha-icon-button slot="headerNavigationIcon" data-dialog="close" .label="${0}" .path="${0}"></ha-icon-button> <p> ${0} </p> <div class="encryption-key"> <p>${0}</p> <ha-icon-button .path="${0}" @click="${0}"></ha-icon-button> </div> <ha-row-item> <span slot="headline"> ${0} </span> <span slot="supporting-text"> ${0} </span> <ha-button slot="end" appearance="filled" @click="${0}"> <ha-svg-icon .path="${0}" slot="start"></ha-svg-icon> ${0} </ha-button> </ha-row-item> <ha-dialog-footer slot="footer"> <ha-button slot="primaryAction" @click="${0}"> ${0} </ha-button> </ha-dialog-footer> </ha-dialog> `),this._open,this.hass.localize("ui.panel.config.backup.dialogs.show_encryption_key.title"),this.closeDialog,this.hass.localize("ui.common.close"),f,this.hass.localize("ui.panel.config.backup.dialogs.show_encryption_key.description"),null===(o=this._params)||void 0===o?void 0:o.currentKey,k,this._copyKeyToClipboard,this.hass.localize("ui.panel.config.backup.encryption_key.download_emergency_kit"),this.hass.localize("ui.panel.config.backup.encryption_key.download_emergency_kit_description"),this._download,L,this.hass.localize("ui.panel.config.backup.encryption_key.download_emergency_kit_action"),this.closeDialog,this.hass.localize("ui.common.close")):n.s6}async _copyKeyToClipboard(){var o,t;null!==(o=this._params)&&void 0!==o&&o.currentKey&&(await(0,l.l)(null===(t=this._params)||void 0===t?void 0:t.currentKey,this._copyContainer),(0,y.P)(this,{message:this.hass.localize("ui.common.copied_clipboard")}))}_download(){var o;null!==(o=this._params)&&void 0!==o&&o.currentKey&&(0,u.Sx)(this.hass,this._params.currentKey,"old")}static get styles(){return[g.RF,g.nA,(0,n.AH)(m||(m=b`ha-dialog{--dialog-content-padding:var(--ha-space-2) var(--ha-space-6)}ha-row-item{--ha-row-item-padding-inline:0}.encryption-key{border:1px solid var(--divider-color);background-color:var(--primary-background-color);border-radius:var(--ha-border-radius-md);padding:16px;display:flex;flex-direction:row;align-items:center;gap:var(--ha-space-6)}.encryption-key p{margin:0;flex:1;font-size:var(--ha-font-size-xl);font-family:var(--ha-font-family-code);font-style:normal;font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-condensed);text-align:center}.encryption-key ha-icon-button{flex:none;margin:-16px}p{margin-top:0}`))]}constructor(...o){super(...o),this._open=!1}}(0,e.Cg)([(0,s.MZ)({attribute:!1})],w.prototype,"hass",void 0),(0,e.Cg)([(0,s.wk)()],w.prototype,"_open",void 0),(0,e.Cg)([(0,s.wk)()],w.prototype,"_params",void 0),(0,e.Cg)([(0,s.P)("div")],w.prototype,"_copyContainer",void 0),w=(0,e.Cg)([(0,s.EM)("ha-dialog-show-backup-encryption-key")],w),i()}catch(_){i(_)}})}}]);