iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
5 lines • 22.6 kB
JavaScript
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["32294"],{54977:function(e,t,i){var a=i(61701),n=(i(71695),i(47021),i(57243)),o=i(50778);let r,s,d,l=e=>e;(0,a.Z)([(0,o.Mo)("ha-card")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,o.Cb)()],key:"header",value:void 0},{kind:"field",decorators:[(0,o.Cb)({type:Boolean,reflect:!0})],key:"raised",value(){return!1}},{kind:"field",static:!0,key:"styles",value(){return(0,n.iv)(r||(r=l`:host{background:var(--ha-card-background,var(--card-background-color,#fff));-webkit-backdrop-filter:var(--ha-card-backdrop-filter,none);backdrop-filter:var(--ha-card-backdrop-filter,none);box-shadow:var(--ha-card-box-shadow,none);box-sizing:border-box;border-radius:var(--ha-card-border-radius,12px);border-width:var(--ha-card-border-width,1px);border-style:solid;border-color:var(--ha-card-border-color,var(--divider-color,#e0e0e0));color:var(--primary-text-color);display:block;transition:all .3s ease-out;position:relative}:host([raised]){border:none;box-shadow:var(--ha-card-box-shadow,0px 2px 1px -1px rgba(0,0,0,.2),0px 1px 1px 0px rgba(0,0,0,.14),0px 1px 3px 0px rgba(0,0,0,.12))}.card-header,:host ::slotted(.card-header){color:var(--ha-card-header-color,var(--primary-text-color));font-family:var(--ha-card-header-font-family, inherit);font-size:var(--ha-card-header-font-size, 24px);letter-spacing:-.012em;line-height:48px;padding:12px 16px 16px;display:block;margin-block-start:0px;margin-block-end:0px;font-weight:400}:host ::slotted(.card-content:not(:first-child)),slot:not(:first-child)::slotted(.card-content){padding-top:0px;margin-top:-8px}:host ::slotted(.card-content){padding:16px}:host ::slotted(.card-actions){border-top:1px solid var(--divider-color,#e8e8e8);padding:5px 16px}`))}},{kind:"method",key:"render",value:function(){return(0,n.dy)(s||(s=l` ${0} <slot></slot> `),this.header?(0,n.dy)(d||(d=l`<h1 class="card-header">${0}</h1>`),this.header):n.Ld)}}]}}),n.oi)},20130:function(e,t,i){var a=i(61701),n=i(72621),o=(i(71695),i(47021),i(39785)),r=i(52876),s=i(50778),d=i(57243),l=i(5111);let c,h,p,u=e=>e;(0,a.Z)([(0,s.Mo)("ha-fab")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"method",key:"firstUpdated",value:function(e){(0,n.Z)(i,"firstUpdated",this,3)([e]),this.style.setProperty("--mdc-theme-secondary","var(--primary-color)")}},{kind:"field",static:!0,key:"styles",value(){return[r.W,(0,d.iv)(c||(c=u`:host .mdc-fab--extended .mdc-fab__icon{margin-inline-start:-8px;margin-inline-end:12px;direction:var(--direction)}:disabled{--mdc-theme-secondary:var(--disabled-text-color);pointer-events:none}`)),"rtl"===l.E.document.dir?(0,d.iv)(h||(h=u`:host .mdc-fab--extended .mdc-fab__icon{direction:rtl}`)):(0,d.iv)(p||(p=u``))]}}]}}),o._)},7285:function(e,t,i){i.d(t,{M:()=>u});var a=i(61701),n=i(72621),o=(i(71695),i(47021),i(65703)),r=i(46289),s=i(57243),d=i(50778);let l,c,h,p=e=>e,u=(0,a.Z)([(0,d.Mo)("ha-list-item")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"method",key:"renderRipple",value:function(){return this.noninteractive?"":(0,n.Z)(i,"renderRipple",this,3)([])}},{kind:"get",static:!0,key:"styles",value:function(){return[r.W,(0,s.iv)(l||(l=p`:host{padding-left:var(--mdc-list-side-padding-left,var(--mdc-list-side-padding,20px));padding-inline-start:var(--mdc-list-side-padding-left,var(--mdc-list-side-padding,20px));padding-right:var(--mdc-list-side-padding-right,var(--mdc-list-side-padding,20px));padding-inline-end:var(--mdc-list-side-padding-right,var(--mdc-list-side-padding,20px))}:host([graphic=avatar]:not([twoLine])),:host([graphic=icon]:not([twoLine])){height:48px}span.material-icons:first-of-type{margin-inline-start:0px!important;margin-inline-end:var(--mdc-list-item-graphic-margin,16px)!important;direction:var(--direction)!important}span.material-icons:last-of-type{margin-inline-start:auto!important;margin-inline-end:0px!important;direction:var(--direction)!important}.mdc-deprecated-list-item__meta{display:var(--mdc-list-item-meta-display);align-items:center;flex-shrink:0}:host([graphic=icon]:not([twoline])) .mdc-deprecated-list-item__graphic{margin-inline-end:var(--mdc-list-item-graphic-margin,20px)!important}:host([multiline-secondary]){height:auto}:host([multiline-secondary]) .mdc-deprecated-list-item__text{padding:8px 0}:host([multiline-secondary]) .mdc-deprecated-list-item__secondary-text{text-overflow:initial;white-space:normal;overflow:auto;display:inline-block;margin-top:10px}:host([multiline-secondary]) .mdc-deprecated-list-item__primary-text{margin-top:10px}:host([multiline-secondary]) .mdc-deprecated-list-item__secondary-text::before{display:none}:host([multiline-secondary]) .mdc-deprecated-list-item__primary-text::before{display:none}:host([disabled]){color:var(--disabled-text-color)}:host([noninteractive]){pointer-events:unset}`)),"rtl"===document.dir?(0,s.iv)(c||(c=p`span.material-icons:first-of-type,span.material-icons:last-of-type{direction:rtl!important;--direction:rtl}`)):(0,s.iv)(h||(h=p``))]}}]}}),o.K)},17170:function(e,t,i){i.a(e,(async function(e,a){try{i.r(t),i.d(t,{HaSpinner:()=>u});var n=i(61701),o=i(72621),r=(i(71695),i(47021),i(97677)),s=i(43580),d=i(57243),l=i(50778),c=e([r]);r=(c.then?(await c)():c)[0];let h,p=e=>e,u=(0,n.Z)([(0,l.Mo)("ha-spinner")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,l.Cb)()],key:"size",value:void 0},{kind:"method",key:"updated",value:function(e){if((0,o.Z)(i,"updated",this,3)([e]),e.has("size"))switch(this.size){case"tiny":this.style.setProperty("--ha-spinner-size","16px");break;case"small":this.style.setProperty("--ha-spinner-size","28px");break;case"medium":this.style.setProperty("--ha-spinner-size","48px");break;case"large":this.style.setProperty("--ha-spinner-size","68px");break;case void 0:this.style.removeProperty("--ha-progress-ring-size")}}},{kind:"field",static:!0,key:"styles",value(){return[s.Z,(0,d.iv)(h||(h=p`:host{--indicator-color:var(
--ha-spinner-indicator-color,
var(--primary-color)
);--track-color:var(--ha-spinner-divider-color, var(--divider-color));--track-width:4px;--speed:3.5s;font-size:var(--ha-spinner-size, 48px)}`))]}}]}}),r.Z);a()}catch(h){a(h)}}))},93678:function(e,t,i){var a=i(61701),n=(i(71695),i(47021),i(57243)),o=i(50778),r=i(35359),s=i(69634),d=i(4242);let l,c,h,p=e=>e;(0,a.Z)([(0,o.Mo)("ha-person-badge")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"person",value:void 0},{kind:"method",key:"render",value:function(){if(!this.person)return n.Ld;const e=this.person.picture;if(e)return(0,n.dy)(l||(l=p`<div style="${0}" class="picture"></div>`),(0,s.V)({backgroundImage:`url(${this.hass.hassUrl(e)})`}));const t=(0,d.fm)(this.person.name);return(0,n.dy)(c||(c=p`<div class="initials ${0}"> ${0} </div>`),(0,r.$)({long:t.length>2}),t)}},{kind:"field",static:!0,key:"styles",value(){return(0,n.iv)(h||(h=p`:host{width:40px;height:40px;display:block}.picture{width:100%;height:100%;background-size:cover;border-radius:50%}.initials{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;width:100%;height:100%;border-radius:50%;background-color:var(--light-primary-color);text-decoration:none;color:var(--text-light-primary-color,var(--primary-text-color));overflow:hidden;font-size:var(--person-badge-font-size, 1em)}.initials.long{font-size:80%}`))}}]}}),n.oi)},69497:function(e,t,i){i.d(t,{HD:()=>a,jt:()=>r,oO:()=>n,p6:()=>o});i(19423);const a=e=>e.callWS({type:"person/list"}),n=(e,t)=>e.callWS(Object.assign({type:"person/create"},t)),o=(e,t,i)=>e.callWS(Object.assign({type:"person/update",person_id:t},i)),r=(e,t)=>e.callWS({type:"person/delete",person_id:t})},4242:function(e,t,i){i.d(t,{CE:()=>n,FH:()=>c,Nq:()=>s,Pb:()=>a,fm:()=>l,h8:()=>d,r4:()=>r,uh:()=>o});i(92745),i(9359),i(70104),i(19423),i(40251),i(81804);const a="system-admin",n="system-users",o=async e=>e.callWS({type:"config/auth/list"}),r=async(e,t,i,a)=>e.callWS({type:"config/auth/create",name:t,group_ids:i,local_only:a}),s=async(e,t,i)=>e.callWS(Object.assign(Object.assign({},i),{},{type:"config/auth/update",user_id:t})),d=async(e,t)=>e.callWS({type:"config/auth/delete",user_id:t}),l=e=>e?e.trim().split(" ").slice(0,3).map((e=>e.substring(0,1))).join(""):"?",c=(e,t,i)=>{const a=[],n=t=>e.localize(`ui.panel.config.users.${t}`);return t.is_owner&&a.push(["M12 2C6.47 2 2 6.5 2 12C2 17.5 6.5 22 12 22S22 17.5 22 12 17.5 2 12 2M12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4S20 7.58 20 12C20 16.42 16.42 20 12 20M8 14L7 8L10 10L12 7L14 10L17 8L16 14H8M8.56 16C8.22 16 8 15.78 8 15.44V15H16V15.44C16 15.78 15.78 16 15.44 16H8.56Z",n("is_owner")]),i&&t.system_generated&&a.push(["M11,7H15V9H11V11H13A2,2 0 0,1 15,13V15A2,2 0 0,1 13,17H9V15H13V13H11A2,2 0 0,1 9,11V9A2,2 0 0,1 11,7M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z",n("is_system")]),t.local_only&&a.push(["M12 20C7.6 20 4 16.4 4 12S7.6 4 12 4 20 7.6 20 12 16.4 20 12 20M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M11 14H13V17H16V12H18L12 7L6 12H8V17H11V14",n("is_local")]),t.is_active||a.push(["M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z",n("is_not_active")]),a}},75375:function(e,t,i){i.a(e,(async function(e,a){try{i.r(t);var n=i(61701),o=(i(71695),i(47021),i(57243)),r=i(50778),s=i(17170),d=(i(54202),i(43344),i(28008)),l=e([s]);s=(l.then?(await l)():l)[0];let c,h,p,u,f,m,g=e=>e;(0,n.Z)([(0,r.Mo)("hass-loading-screen")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,r.Cb)({type:Boolean,attribute:"no-toolbar"})],key:"noToolbar",value(){return!1}},{kind:"field",decorators:[(0,r.Cb)({type:Boolean})],key:"rootnav",value(){return!1}},{kind:"field",decorators:[(0,r.Cb)({type:Boolean})],key:"narrow",value(){return!1}},{kind:"field",decorators:[(0,r.Cb)()],key:"message",value:void 0},{kind:"method",key:"render",value:function(){var e;return(0,o.dy)(c||(c=g` ${0} <div class="content"> <ha-spinner></ha-spinner> ${0} </div> `),this.noToolbar?"":(0,o.dy)(h||(h=g`<div class="toolbar"> ${0} </div>`),this.rootnav||null!==(e=history.state)&&void 0!==e&&e.root?(0,o.dy)(p||(p=g` <ha-menu-button .hass="${0}" .narrow="${0}"></ha-menu-button> `),this.hass,this.narrow):(0,o.dy)(u||(u=g` <ha-icon-button-arrow-prev .hass="${0}" ="${0}"></ha-icon-button-arrow-prev> `),this.hass,this._handleBack)),this.message?(0,o.dy)(f||(f=g`<div id="loading-text">${0}</div>`),this.message):o.Ld)}},{kind:"method",key:"_handleBack",value:function(){history.back()}},{kind:"get",static:!0,key:"styles",value:function(){return[d.Qx,(0,o.iv)(m||(m=g`:host{display:block;height:100%;background-color:var(--primary-background-color)}.toolbar{display:flex;align-items:center;font-size:20px;height:var(--header-height);padding:8px 12px;pointer-events:none;background-color:var(--app-header-background-color);font-weight:400;color:var(--app-header-text-color,#fff);border-bottom:var(--app-header-border-bottom,none);box-sizing:border-box} (max-width:599px){.toolbar{padding:4px}}ha-icon-button-arrow-prev,ha-menu-button{pointer-events:auto}.content{height:calc(100% - var(--header-height));display:flex;flex-direction:column;align-items:center;justify-content:center}#loading-text{max-width:350px;margin-top:16px}`))]}}]}}),o.oi);a()}catch(c){a(c)}}))},98241:function(e,t,i){var a=i(61701),n=(i(71695),i(47021),i(57243)),o=i(50778),r=i(35359);let s,d,l=e=>e;(0,a.Z)([(0,o.Mo)("ha-config-section")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,o.Cb)({attribute:"is-wide",type:Boolean})],key:"isWide",value(){return!1}},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"vertical",value(){return!1}},{kind:"field",decorators:[(0,o.Cb)({type:Boolean,attribute:"full-width"})],key:"fullWidth",value(){return!1}},{kind:"method",key:"render",value:function(){return(0,n.dy)(s||(s=l` <div class="content ${0}"> <div class="header"><slot name="header"></slot></div> <div class="together layout ${0}"> <div class="intro"><slot name="introduction"></slot></div> <div class="panel flex-auto"><slot></slot></div> </div> </div> `),(0,r.$)({narrow:!this.isWide,"full-width":this.fullWidth}),(0,r.$)({narrow:!this.isWide,vertical:this.vertical||!this.isWide,horizontal:!this.vertical&&this.isWide}))}},{kind:"field",static:!0,key:"styles",value(){return(0,n.iv)(d||(d=l`:host{display:block}.content{padding:28px 20px 0;max-width:1040px;margin:0 auto}.layout{display:flex}.horizontal{flex-direction:row}.vertical{flex-direction:column}.flex-auto{flex:1 1 auto}.header{font-family:var(--paper-font-headline_-_font-family);-webkit-font-smoothing:var(--paper-font-headline_-_-webkit-font-smoothing);font-size:var(--paper-font-headline_-_font-size);font-weight:var(--paper-font-headline_-_font-weight);letter-spacing:var(--paper-font-headline_-_letter-spacing);line-height:var(--paper-font-headline_-_line-height);opacity:var(--dark-primary-opacity)}.together{margin-top:var(--config-section-content-together-margin-top,32px)}.intro{font-family:var(--paper-font-subhead_-_font-family);-webkit-font-smoothing:var(--paper-font-subhead_-_-webkit-font-smoothing);font-weight:var(--paper-font-subhead_-_font-weight);line-height:var(--paper-font-subhead_-_line-height);width:100%;opacity:var(--dark-primary-opacity);font-size:14px;padding-bottom:20px}.horizontal .intro{max-width:400px;margin-right:40px;margin-inline-end:40px;margin-inline-start:initial}.panel{margin-top:-24px}.panel ::slotted(*){margin-top:24px;display:block}.narrow.content{max-width:640px}.narrow .together{margin-top:var(--config-section-narrow-content-together-margin-top,var(--config-section-content-together-margin-top,20px))}.narrow .intro{padding-bottom:20px;margin-right:0;margin-inline-end:0;margin-inline-start:initial;max-width:500px}.full-width{padding:0}.full-width .layout{flex-direction:column}`))}}]}}),n.oi)},76429:function(e,t,i){i.a(e,(async function(e,a){try{i.r(t),i.d(t,{HaConfigPerson:()=>P});var n=i(61701),o=i(72621),r=(i(19083),i(71695),i(61893),i(9359),i(56475),i(1331),i(70104),i(40251),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814),i(61006),i(47021),i(2060),i(57243)),s=i(50778),d=i(1416),l=(i(54977),i(20130),i(37583),i(7285),i(93678),i(69497)),c=i(4242),h=i(76131),p=i(75375),u=(i(97546),i(73192)),f=(i(98241),i(82967)),m=i(84017),g=e([p]);p=(g.then?(await g)():g)[0];let v,y,b,k,x,_,w,$,C=e=>e;const z="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";let P=(0,n.Z)([(0,s.Mo)("ha-config-person")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,s.Cb)({attribute:"is-wide",type:Boolean})],key:"isWide",value(){return!1}},{kind:"field",decorators:[(0,s.Cb)({type:Boolean})],key:"narrow",value(){return!1}},{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"route",value:void 0},{kind:"field",decorators:[(0,s.SB)()],key:"_storageItems",value:void 0},{kind:"field",decorators:[(0,s.SB)()],key:"_configItems",value:void 0},{kind:"field",key:"_usersLoad",value:void 0},{kind:"method",key:"render",value:function(){if(!this.hass||void 0===this._storageItems||void 0===this._configItems)return(0,r.dy)(v||(v=C` <hass-loading-screen></hass-loading-screen> `));const e=this.hass;return(0,r.dy)(y||(y=C` <hass-tabs-subpage .hass="${0}" .narrow="${0}" .route="${0}" back-path="/config" .tabs="${0}"> <ha-config-section .isWide="${0}"> <span slot="header">${0}</span> <span slot="introduction"> <p>${0}</p> ${0} <a href="${0}" target="_blank" rel="noreferrer"> ${0} </a> </span> <ha-card outlined class="storage"> <mwc-list> ${0} </mwc-list> ${0} </ha-card> ${0} </ha-config-section> <ha-fab slot="fab" .label="${0}" extended ="${0}"> <ha-svg-icon slot="icon" .path="${0}"></ha-svg-icon> </ha-fab> </hass-tabs-subpage> `),this.hass,this.narrow,this.route,f.configSections.persons,this.isWide,e.localize("ui.panel.config.person.caption"),e.localize("ui.panel.config.person.introduction"),this._configItems.length>0?(0,r.dy)(b||(b=C` <p> ${0} </p> `),e.localize("ui.panel.config.person.note_about_persons_configured_in_yaml")):"",(0,u.R)(this.hass,"/integrations/person/"),this.hass.localize("ui.panel.config.person.learn_more"),this._storageItems.map((e=>(0,r.dy)(k||(k=C` <ha-list-item graphic="avatar" ="${0}" .entry="${0}"> <ha-person-badge .hass="${0}" .person="${0}" slot="graphic"></ha-person-badge> <span>${0}</span> </ha-list-item> `),this._openEditEntry,e,this.hass,e,e.name))),0===this._storageItems.length?(0,r.dy)(x||(x=C` <div class="empty"> ${0} <mwc-button ="${0}"> ${0}</mwc-button> </div> `),e.localize("ui.panel.config.person.no_persons_created_yet"),this._createPerson,e.localize("ui.panel.config.person.create_person")):r.Ld,this._configItems.length>0?(0,r.dy)(_||(_=C` <ha-card outlined header="Configuration.yaml persons"> <mwc-list> ${0} </mwc-list> </ha-card> `),this._configItems.map((e=>(0,r.dy)(w||(w=C` <ha-list-item graphic="avatar"> <ha-person-badge .hass="${0}" .person="${0}" slot="graphic"></ha-person-badge> <span>${0}</span> </ha-list-item> `),this.hass,e,e.name)))):r.Ld,e.localize("ui.panel.config.person.add_person"),this._createPerson,z)}},{kind:"method",key:"firstUpdated",value:function(e){(0,o.Z)(i,"firstUpdated",this,3)([e]),this._fetchData(),(0,m.C)()}},{kind:"method",key:"_fetchData",value:async function(){this._usersLoad=(0,c.uh)(this.hass);const e=await(0,l.HD)(this.hass);this._storageItems=e.storage.sort(((e,t)=>(0,d.$K)(e.name,t.name,this.hass.locale.language))),this._configItems=e.config.sort(((e,t)=>(0,d.$K)(e.name,t.name,this.hass.locale.language))),this._openDialogIfPersonSpecifiedInRoute()}},{kind:"method",key:"_openDialogIfPersonSpecifiedInRoute",value:function(){if(!this.route.path.includes("/edit/"))return;const e=this.route.path.split("/edit/"),t=e.length>1?e[1]:null;if(!t)return;const i=this._storageItems.find((e=>e.id===t));var a,n;i?this._openDialog(i):(0,h.showAlertDialog)(this,{title:null===(a=this.hass)||void 0===a?void 0:a.localize("ui.panel.config.person.person_not_found_title"),text:null===(n=this.hass)||void 0===n?void 0:n.localize("ui.panel.config.person.person_not_found")})}},{kind:"method",key:"_createPerson",value:function(){this._openDialog()}},{kind:"method",key:"_openEditEntry",value:function(e){const t=e.currentTarget.entry;this._openDialog(t)}},{kind:"method",key:"_allowedUsers",value:function(e,t){const i=new Set;for(const n of[this._configItems,this._storageItems])for(const e of n)e.user_id&&i.add(e.user_id);const a=t?t.user_id:void 0;return e.filter((e=>e.id===a||!i.has(e.id)))}},{kind:"method",key:"_openDialog",value:async function(e){const t=await this._usersLoad;(0,m.D)(this,{entry:e,users:this._allowedUsers(t,e),createEntry:async e=>{const t=await(0,l.oO)(this.hass,e);this._storageItems=this._storageItems.concat(t).sort(((e,t)=>(0,d.$K)(e.name,t.name,this.hass.locale.language)))},updateEntry:async t=>{const i=await(0,l.p6)(this.hass,e.id,t);this._storageItems=this._storageItems.map((t=>t===e?i:t))},removeEntry:async()=>{if(!(await(0,h.showConfirmationDialog)(this,{title:this.hass.localize("ui.panel.config.person.confirm_delete_title",{name:e.name}),text:this.hass.localize("ui.panel.config.person.confirm_delete_text"),dismissText:this.hass.localize("ui.common.cancel"),confirmText:this.hass.localize("ui.common.delete"),destructive:!0})))return!1;try{return await(0,l.jt)(this.hass,e.id),this._storageItems=this._storageItems.filter((t=>t!==e)),!0}catch(t){return!1}},refreshUsers:()=>{this._usersLoad=(0,c.uh)(this.hass)}})}},{kind:"field",static:!0,key:"styles",value(){return(0,r.iv)($||($=C`a{color:var(--primary-color)}ha-card{max-width:600px;margin:16px auto;overflow:hidden}.empty{padding:8px;display:flex;align-items:center;justify-content:space-around}mwc-list:has(+ .empty){display:none}`))}}]}}),r.oi);a()}catch(v){a(v)}}))},84017:function(e,t,i){i.d(t,{C:()=>n,D:()=>o});i(71695),i(40251),i(47021);var a=i(36522);const n=()=>Promise.all([i.e("46379"),i.e("66031"),i.e("97983"),i.e("24199"),i.e("78943"),i.e("42311"),i.e("29243"),i.e("18865"),i.e("27090"),i.e("44959"),i.e("3049"),i.e("72308"),i.e("99266")]).then(i.bind(i,2903)),o=(e,t)=>{(0,a.B)(e,"show-dialog",{dialogTag:"dialog-person-detail",dialogImport:n,dialogParams:t})}},16485:function(e,t,i){i.a(e,(async function(e,t){try{i(71695),i(92745),i(40251),i(47021);var a=i(61449),n=i(40574),o=i(30532),r=i(41674),s=i(49722),d=i(76632),l=i(7884),c=i(35185),h=i(65401),p=i(44180),u=i(49447);const e=async()=>{const e=(0,p.sS)(),t=[];(0,o.shouldPolyfill)()&&await Promise.all([i.e("80210"),i.e("74055")]).then(i.bind(i,98133)),(0,s.shouldPolyfill)()&&await Promise.all([i.e("2142"),i.e("75297"),i.e("80210"),i.e("60251")]).then(i.bind(i,59095)),(0,a.shouldPolyfill)(e)&&t.push(Promise.all([i.e("2142"),i.e("75297"),i.e("68250")]).then(i.bind(i,80561)).then((()=>(0,u.H)()))),(0,h.shouldPolyfill)()&&t.push(Promise.all([i.e("2142"),i.e("75297"),i.e("65578")]).then(i.bind(i,97995))),(0,n.shouldPolyfill)(e)&&t.push(Promise.all([i.e("2142"),i.e("75297"),i.e("59826")]).then(i.bind(i,31514))),(0,r.shouldPolyfill)(e)&&t.push(Promise.all([i.e("2142"),i.e("75297"),i.e("23649")]).then(i.bind(i,93840))),(0,d.shouldPolyfill)(e)&&t.push(Promise.all([i.e("2142"),i.e("75297"),i.e("42831")]).then(i.bind(i,29559))),(0,l.shouldPolyfill)(e)&&t.push(Promise.all([i.e("2142"),i.e("75297"),i.e("57377")]).then(i.bind(i,39030)).then((()=>i.e("61236").then(i.t.bind(i,4121,23))))),(0,c.shouldPolyfill)(e)&&t.push(Promise.all([i.e("2142"),i.e("75297"),i.e("13870")]).then(i.bind(i,74546))),0!==t.length&&await Promise.all(t).then((()=>(0,u.n)(e)))};await e(),t()}catch(f){t(f)}}),1)},73192:function(e,t,i){i.d(t,{R:()=>a});const a=(e,t)=>`https://www.iobroker.net/#${e.language&&e.language.split("-")[0]||"en"}/adapters/adapterref/iobroker.lovelace/README.md#`}}]);
//# sourceMappingURL=32294.36763ae1eec811e7.js.map