UNPKG

iobroker.lovelace

Version:

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

4 lines 74.3 kB
export const __webpack_ids__=["78036"];export const __webpack_modules__={59826:function(e,t,i){var n=i(44249),o=i(31622),a=i(57243),s=i(15093),r=i(22344);(0,n.Z)([(0,s.Mo)("ha-button")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",static:!0,key:"styles",value:()=>[r.W,a.iv`::slotted([slot=icon]){margin-inline-start:0px;margin-inline-end:8px;direction:var(--direction);display:block}.mdc-button{height:var(--button-height,36px)}.trailing-icon{display:flex}.slot-container{overflow:var(--button-slot-container-overflow,visible)}:host([destructive]){--mdc-theme-primary:var(--error-color)}`]}]}}),o.Button)},54977:function(e,t,i){var n=i(44249),o=i(57243),a=i(15093);(0,n.Z)([(0,a.Mo)("ha-card")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,a.Cb)()],key:"header",value:void 0},{kind:"field",decorators:[(0,a.Cb)({type:Boolean,reflect:!0})],key:"raised",value:()=>!1},{kind:"field",static:!0,key:"styles",value:()=>o.iv`: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 o.dy` ${this.header?o.dy`<h1 class="card-header">${this.header}</h1>`:o.Ld} <slot></slot> `}}]}}),o.oi)},48103:function(e,t,i){var n=i(44249),o=i(72621),a=i(57243),s=i(93958),r=i(97536),l=i(46289),c=i(15093),d=i(36522);(0,n.Z)([(0,c.Mo)("ha-check-list-item")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"method",key:"onChange",value:async function(e){(0,o.Z)(i,"onChange",this,3)([e]),(0,d.B)(this,e.type)}},{kind:"field",static:!0,key:"styles",value:()=>[l.W,r.W,a.iv`:host{--mdc-theme-secondary:var(--primary-color)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic,:host([graphic=control]) .mdc-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic,:host([graphic=medium]) .mdc-deprecated-list-item__graphic{margin-inline-end:var(--mdc-list-item-graphic-margin,16px);margin-inline-start:0px;direction:var(--direction)}.mdc-deprecated-list-item__meta{flex-shrink:0;direction:var(--direction);margin-inline-start:auto;margin-inline-end:0}.mdc-deprecated-list-item__graphic{margin-top:var(--check-list-item-graphic-margin-top)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic{margin-inline-start:0;margin-inline-end:var(--mdc-list-item-graphic-margin,32px)}`]}]}}),s.F)},4935:function(e,t,i){var n=i(44249),o=i(72621),a=i(57243),s=i(15093),r=i(7285);(0,n.Z)([(0,s.Mo)("ha-clickable-list-item")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,s.Cb)()],key:"href",value:void 0},{kind:"field",decorators:[(0,s.Cb)({attribute:"disable-href",type:Boolean})],key:"disableHref",value:()=>!1},{kind:"field",decorators:[(0,s.Cb)({attribute:"open-new-tab",type:Boolean,reflect:!0})],key:"openNewTab",value:()=>!1},{kind:"field",decorators:[(0,s.IO)("a")],key:"_anchor",value:void 0},{kind:"method",key:"render",value:function(){const e=(0,o.Z)(i,"render",this,3)([]),t=this.href||"";return a.dy`${this.disableHref?a.dy`<a href="#" class="disabled">${e}</a>`:a.dy`<a target="${this.openNewTab?"_blank":""}" href="${t}">${e}</a>`}`}},{kind:"method",key:"firstUpdated",value:function(){(0,o.Z)(i,"firstUpdated",this,3)([]),this.addEventListener("keydown",(e=>{"Enter"!==e.key&&" "!==e.key||this._anchor.click()}))}},{kind:"get",static:!0,key:"styles",value:function(){return[(0,o.Z)(i,"styles",this),a.iv`a{width:100%;height:100%;display:flex;align-items:center;overflow:hidden}.disabled{pointer-events:none}`]}}]}}),r.M)},74633:function(e,t,i){var n=i(44249),o=i(72621),a=i(78755),s=i(57243),r=i(15093);(0,n.Z)([(0,r.Mo)("ha-md-list-item")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",static:!0,key:"styles",value(){return[...(0,o.Z)(i,"styles",this),s.iv`:host{--ha-icon-display:block;--md-sys-color-primary:var(--primary-text-color);--md-sys-color-secondary:var(--secondary-text-color);--md-sys-color-surface:var(--card-background-color);--md-sys-color-on-surface:var(--primary-text-color);--md-sys-color-on-surface-variant:var(--secondary-text-color)}md-item{overflow:var(--md-item-overflow,hidden);align-items:var(--md-item-align-items,center)}`]}}]}}),a.g)},19993:function(e,t,i){var n=i(44249),o=i(72621),a=i(623),s=i(57243),r=i(15093);(0,n.Z)([(0,r.Mo)("ha-md-list")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",static:!0,key:"styles",value(){return[...(0,o.Z)(i,"styles",this),s.iv`:host{--md-sys-color-surface:var(--card-background-color)}`]}}]}}),a.j)},17170:function(e,t,i){i.a(e,(async function(e,n){try{i.r(t),i.d(t,{HaSpinner:()=>h});var o=i(44249),a=i(72621),s=i(97677),r=i(43580),l=i(57243),c=i(15093),d=e([s]);s=(d.then?(await d)():d)[0];let h=(0,o.Z)([(0,c.Mo)("ha-spinner")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,c.Cb)()],key:"size",value:void 0},{kind:"method",key:"updated",value:function(e){if((0,a.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:()=>[r.Z,l.iv`: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)}`]}]}}),s.Z);n()}catch(e){n(e)}}))},11498:function(e,t,i){i.d(t,{A8:()=>n,Ax:()=>o,Fc:()=>a,G$:()=>s,zq:()=>r});const n=async e=>e.callWS({type:"application_credentials/config"}),o=async(e,t)=>e.callWS({type:"application_credentials/config_entry",config_entry_id:t}),a=async e=>e.callWS({type:"application_credentials/list"}),s=async(e,t,i,n,o)=>e.callWS({type:"application_credentials/create",domain:t,client_id:i,client_secret:n,name:o}),r=async(e,t)=>e.callWS({type:"application_credentials/delete",application_credentials_id:t})},75101:function(e,t,i){i.d(t,{$H:()=>n,DJ:()=>r,LZ:()=>a,Nn:()=>g,Ny:()=>p,Pk:()=>u,Q4:()=>s,RQ:()=>c,SO:()=>d,T0:()=>m,aR:()=>o,iJ:()=>h,pB:()=>l});i(9359),i(56475),i(1331);const n=(e,t)=>e.callWS({type:"config_entries/subentries/list",entry_id:t}),o=(e,t,i)=>e.callWS({type:"config_entries/subentries/delete",entry_id:t,subentry_id:i}),a=["migration_error","setup_error","setup_retry"],s=["not_loaded","loaded","setup_error","setup_retry"],r=(e,t,i)=>{const n={type:"config_entries/subscribe"};return i&&i.type&&(n.type_filter=i.type),e.connection.subscribeMessage((e=>t(e)),n)},l=(e,t)=>{const i={};return t&&(t.type&&(i.type_filter=t.type),t.domain&&(i.domain=t.domain)),e.callWS({type:"config_entries/get",...i})},c=(e,t)=>e.callWS({type:"config_entries/get_single",entry_id:t}),d=(e,t,i)=>e.callWS({type:"config_entries/update",entry_id:t,...i}),h=(e,t)=>e.callApi("DELETE",`config/config_entries/entry/${t}`),g=(e,t)=>e.callApi("POST",`config/config_entries/entry/${t}/reload`),p=(e,t)=>e.callWS({type:"config_entries/disable",entry_id:t,disabled_by:"user"}),m=(e,t)=>e.callWS({type:"config_entries/disable",entry_id:t,disabled_by:null}),u=(e,t)=>{if(!t)return e;const i=e.find((e=>e.entry_id===t));if(!i)return e;return[i,...e.filter((e=>e.entry_id!==t))]}},15681:function(e,t,i){i.d(t,{D4:()=>d,D7:()=>u,Ky:()=>c,P3:()=>r,V3:()=>y,WW:()=>v,XO:()=>h,ZJ:()=>_,d4:()=>m,oi:()=>p,pV:()=>s,zO:()=>g});var n=i(62212),o=i(22381),a=i(57816);const s=["bluetooth","dhcp","discovery","hardware","hassio","homekit","integration_discovery","mqtt","ssdp","unignore","usb","zeroconf"],r=["reauth"],l={"HA-Frontend-Base":`${location.protocol}//${location.host}`},c=(e,t,i)=>e.callApi("POST","config/config_entries/flow",{handler:t,show_advanced_options:Boolean(e.userData?.showAdvanced),entry_id:i},l),d=(e,t)=>e.callApi("GET",`config/config_entries/flow/${t}`,void 0,l),h=(e,t,i)=>e.callApi("POST",`config/config_entries/flow/${t}`,i,l),g=(e,t,i)=>e.callWS({type:"config_entries/ignore_flow",flow_id:t,title:i}),p=(e,t)=>e.callApi("DELETE",`config/config_entries/flow/${t}`),m=(e,t)=>e.callApi("GET","config/config_entries/flow_handlers"+(t?`?type=${t}`:"")),u=e=>e.sendMessagePromise({type:"config_entries/flow/progress"}),f=(e,t)=>e.subscribeEvents((0,o.D)((()=>u(e).then((e=>t.setState(e,!0)))),500,!0),"config_entry_discovered"),_=e=>(0,n._)(e,"_configFlowProgress",u,f),y=(e,t)=>_(e.connection).subscribe(t),v=(e,t)=>t.context.title_placeholders&&0!==Object.keys(t.context.title_placeholders).length?e(`component.${t.handler}.config.flow_title`,t.context.title_placeholders)||("name"in t.context.title_placeholders?t.context.title_placeholders.name:(0,a.Lh)(e,t.handler)):(0,a.Lh)(e,t.handler)},6823:function(e,t,i){i.d(t,{ZK:()=>s,iP:()=>a,lf:()=>o,pD:()=>n});const n=e=>e.callWS({type:"diagnostics/list"}),o=(e,t)=>e.callWS({type:"diagnostics/get",domain:t}),a=e=>`/api/diagnostics/config_entry/${e}`,s=(e,t)=>`/api/diagnostics/config_entry/${e}/device/${t}`},62992:function(e,t,i){i.d(t,{m:()=>a});const n=async(e,t,i,o,a,...s)=>{const r=a,l=r[e],c=l=>o&&o(a,l.result)!==l.cacheKey?(r[e]=void 0,n(e,t,i,o,a,...s)):l.result;if(l)return l instanceof Promise?l.then(c):c(l);const d=i(a,...s);return r[e]=d,d.then((i=>{r[e]={result:i,cacheKey:o?.(a,i)},setTimeout((()=>{r[e]=void 0}),t)}),(()=>{r[e]=void 0})),d},o=e=>e.callWS({type:"entity/source"}),a=e=>n("_entitySources",3e4,o,(e=>Object.keys(e.states).length),e)},75951:function(e,t,i){i.d(t,{G:()=>n,l:()=>o});const n=e=>e.callApi("GET","error_log"),o="/api/error_log"},45594:function(e,t,i){i.d(t,{Fv:()=>s,e1:()=>a,eH:()=>n,lJ:()=>o});const n=(e,t)=>e.callApi("POST","config/config_entries/options/flow",{handler:t,show_advanced_options:Boolean(e.userData?.showAdvanced)}),o=(e,t)=>e.callApi("GET",`config/config_entries/options/flow/${t}`),a=(e,t,i)=>e.callApi("POST",`config/config_entries/options/flow/${t}`,i),s=(e,t)=>e.callApi("DELETE",`config/config_entries/options/flow/${t}`)},38572:function(e,t,i){i.d(t,{t:()=>r});var n=i(57243),o=i(15681),a=i(57816),s=i(7956);const r=(e,t)=>(0,s.w)(e,t,{flowType:"config_flow",showDevices:!0,createFlow:async(e,i)=>{const[n]=await Promise.all([(0,o.Ky)(e,i,t.entryId),e.loadFragmentTranslation("config"),e.loadBackendTranslation("config",i),e.loadBackendTranslation("selector",i),e.loadBackendTranslation("title",i)]);return n},fetchFlow:async(e,t)=>{const i=await(0,o.D4)(e,t);return await e.loadFragmentTranslation("config"),await e.loadBackendTranslation("config",i.handler),await e.loadBackendTranslation("selector",i.handler),i},handleFlowStep:o.XO,deleteFlow:o.oi,renderAbortDescription(e,t){const i=e.localize(`component.${t.translation_domain||t.handler}.config.abort.${t.reason}`,t.description_placeholders);return i?n.dy` <ha-markdown allow-svg breaks .content="${i}"></ha-markdown> `:t.reason},renderShowFormStepHeader:(e,t)=>e.localize(`component.${t.translation_domain||t.handler}.config.step.${t.step_id}.title`,t.description_placeholders)||e.localize(`component.${t.handler}.title`),renderShowFormStepDescription(e,t){const i=e.localize(`component.${t.translation_domain||t.handler}.config.step.${t.step_id}.description`,t.description_placeholders);return i?n.dy` <ha-markdown allow-svg breaks .content="${i}"></ha-markdown> `:""},renderShowFormStepFieldLabel(e,t,i,n){if("expandable"===i.type)return e.localize(`component.${t.handler}.config.step.${t.step_id}.sections.${i.name}.name`);const o=n?.path?.[0]?`sections.${n.path[0]}.`:"";return e.localize(`component.${t.handler}.config.step.${t.step_id}.${o}data.${i.name}`)||i.name},renderShowFormStepFieldHelper(e,t,i,o){if("expandable"===i.type)return e.localize(`component.${t.translation_domain||t.handler}.config.step.${t.step_id}.sections.${i.name}.description`);const a=o?.path?.[0]?`sections.${o.path[0]}.`:"",s=e.localize(`component.${t.translation_domain||t.handler}.config.step.${t.step_id}.${a}data_description.${i.name}`,t.description_placeholders);return s?n.dy`<ha-markdown breaks .content="${s}"></ha-markdown>`:""},renderShowFormStepFieldError:(e,t,i)=>e.localize(`component.${t.translation_domain||t.translation_domain||t.handler}.config.error.${i}`,t.description_placeholders)||i,renderShowFormStepFieldLocalizeValue:(e,t,i)=>e.localize(`component.${t.handler}.selector.${i}`),renderShowFormStepSubmitButton:(e,t)=>e.localize(`component.${t.handler}.config.step.${t.step_id}.submit`)||e.localize("ui.panel.config.integrations.config_flow."+(!1===t.last_step?"next":"submit")),renderExternalStepHeader:(e,t)=>e.localize(`component.${t.handler}.config.step.${t.step_id}.title`)||e.localize("ui.panel.config.integrations.config_flow.external_step.open_site"),renderExternalStepDescription(e,t){const i=e.localize(`component.${t.translation_domain||t.handler}.config.${t.step_id}.description`,t.description_placeholders);return n.dy` <p> ${e.localize("ui.panel.config.integrations.config_flow.external_step.description")} </p> ${i?n.dy` <ha-markdown allow-svg breaks .content="${i}"></ha-markdown> `:""} `},renderCreateEntryDescription(e,t){const i=e.localize(`component.${t.translation_domain||t.handler}.config.create_entry.${t.description||"default"}`,t.description_placeholders);return n.dy` ${i?n.dy` <ha-markdown allow-svg breaks .content="${i}"></ha-markdown> `:""} <p> ${e.localize("ui.panel.config.integrations.config_flow.created_config",{name:t.title})} </p> `},renderShowFormProgressHeader:(e,t)=>e.localize(`component.${t.handler}.config.step.${t.step_id}.title`)||e.localize(`component.${t.handler}.title`),renderShowFormProgressDescription(e,t){const i=e.localize(`component.${t.translation_domain||t.handler}.config.progress.${t.progress_action}`,t.description_placeholders);return i?n.dy` <ha-markdown allow-svg breaks .content="${i}"></ha-markdown> `:""},renderMenuHeader:(e,t)=>e.localize(`component.${t.handler}.config.step.${t.step_id}.title`)||e.localize(`component.${t.handler}.title`),renderMenuDescription(e,t){const i=e.localize(`component.${t.translation_domain||t.handler}.config.step.${t.step_id}.description`,t.description_placeholders);return i?n.dy` <ha-markdown allow-svg breaks .content="${i}"></ha-markdown> `:""},renderMenuOption:(e,t,i)=>e.localize(`component.${t.translation_domain||t.handler}.config.step.${t.step_id}.menu_options.${i}`,t.description_placeholders),renderLoadingDescription(e,t,i,n){if("loading_flow"!==t&&"loading_step"!==t)return"";const o=n?.handler||i;return e.localize(`ui.panel.config.integrations.config_flow.loading.${t}`,{integration:o?(0,a.Lh)(e.localize,o):e.localize("ui.panel.config.integrations.config_flow.loading.fallback_title")})}})},7956:function(e,t,i){i.d(t,{w:()=>a});var n=i(36522);const o=()=>Promise.all([i.e("46379"),i.e("66031"),i.e("72206"),i.e("97983"),i.e("24199"),i.e("27506"),i.e("83895"),i.e("58640"),i.e("2981"),i.e("1562"),i.e("84503"),i.e("27090"),i.e("19882")]).then(i.bind(i,12656)),a=(e,t,i)=>{(0,n.B)(e,"show-dialog",{dialogTag:"dialog-data-entry-flow",dialogImport:o,dialogParams:{...t,flowConfig:i,dialogParentElement:e}})}},91854:function(e,t,i){i.d(t,{c:()=>r});var n=i(57243),o=i(57816),a=i(45594),s=i(7956);const r=(e,t,i)=>(0,s.w)(e,{startFlowHandler:t.entry_id,domain:t.domain,...i},{flowType:"options_flow",showDevices:!1,createFlow:async(e,i)=>{const[n]=await Promise.all([(0,a.eH)(e,i),e.loadFragmentTranslation("config"),e.loadBackendTranslation("options",t.domain),e.loadBackendTranslation("selector",t.domain)]);return n},fetchFlow:async(e,i)=>{const[n]=await Promise.all([(0,a.lJ)(e,i),e.loadFragmentTranslation("config"),e.loadBackendTranslation("options",t.domain),e.loadBackendTranslation("selector",t.domain)]);return n},handleFlowStep:a.e1,deleteFlow:a.Fv,renderAbortDescription(e,i){const o=e.localize(`component.${i.translation_domain||t.domain}.options.abort.${i.reason}`,i.description_placeholders);return o?n.dy` <ha-markdown breaks allow-svg .content="${o}"></ha-markdown> `:i.reason},renderShowFormStepHeader:(e,i)=>e.localize(`component.${i.translation_domain||t.domain}.options.step.${i.step_id}.title`,i.description_placeholders)||e.localize("ui.dialogs.options_flow.form.header"),renderShowFormStepDescription(e,i){const o=e.localize(`component.${i.translation_domain||t.domain}.options.step.${i.step_id}.description`,i.description_placeholders);return o?n.dy` <ha-markdown allow-svg breaks .content="${o}"></ha-markdown> `:""},renderShowFormStepFieldLabel(e,i,n,o){if("expandable"===n.type)return e.localize(`component.${t.domain}.options.step.${i.step_id}.sections.${n.name}.name`);const a=o?.path?.[0]?`sections.${o.path[0]}.`:"";return e.localize(`component.${t.domain}.options.step.${i.step_id}.${a}data.${n.name}`)||n.name},renderShowFormStepFieldHelper(e,i,o,a){if("expandable"===o.type)return e.localize(`component.${i.translation_domain||t.domain}.options.step.${i.step_id}.sections.${o.name}.description`);const s=a?.path?.[0]?`sections.${a.path[0]}.`:"",r=e.localize(`component.${i.translation_domain||t.domain}.options.step.${i.step_id}.${s}data_description.${o.name}`,i.description_placeholders);return r?n.dy`<ha-markdown breaks .content="${r}"></ha-markdown>`:""},renderShowFormStepFieldError:(e,i,n)=>e.localize(`component.${i.translation_domain||t.domain}.options.error.${n}`,i.description_placeholders)||n,renderShowFormStepFieldLocalizeValue:(e,i,n)=>e.localize(`component.${t.domain}.selector.${n}`),renderShowFormStepSubmitButton:(e,i)=>e.localize(`component.${t.domain}.options.step.${i.step_id}.submit`)||e.localize("ui.panel.config.integrations.config_flow."+(!1===i.last_step?"next":"submit")),renderExternalStepHeader:(e,t)=>"",renderExternalStepDescription:(e,t)=>"",renderCreateEntryDescription:(e,t)=>n.dy` <p>${e.localize("ui.dialogs.options_flow.success.description")}</p> `,renderShowFormProgressHeader:(e,i)=>e.localize(`component.${t.domain}.options.step.${i.step_id}.title`)||e.localize(`component.${t.domain}.title`),renderShowFormProgressDescription(e,i){const o=e.localize(`component.${i.translation_domain||t.domain}.options.progress.${i.progress_action}`,i.description_placeholders);return o?n.dy` <ha-markdown allow-svg breaks .content="${o}"></ha-markdown> `:""},renderMenuHeader:(e,i)=>e.localize(`component.${t.domain}.options.step.${i.step_id}.title`)||e.localize(`component.${t.domain}.title`),renderMenuDescription(e,i){const o=e.localize(`component.${i.translation_domain||t.domain}.options.step.${i.step_id}.description`,i.description_placeholders);return o?n.dy` <ha-markdown allow-svg breaks .content="${o}"></ha-markdown> `:""},renderMenuOption:(e,i,n)=>e.localize(`component.${i.translation_domain||t.domain}.options.step.${i.step_id}.menu_options.${n}`,i.description_placeholders),renderLoadingDescription:(e,i)=>e.localize(`component.${t.domain}.options.loading`)||("loading_flow"===i||"loading_step"===i?e.localize(`ui.dialogs.options_flow.loading.${i}`,{integration:(0,o.Lh)(e.localize,t.domain)}):"")})},34515:function(e,t,i){i.r(t);var n=i(44249),o=(i(31622),i(57243)),a=i(15093);i(54202),i(43344),i(99426);(0,n.Z)([(0,a.Mo)("hass-error-screen")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,a.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,a.Cb)({type:Boolean})],key:"toolbar",value:()=>!0},{kind:"field",decorators:[(0,a.Cb)({type:Boolean})],key:"rootnav",value:()=>!1},{kind:"field",decorators:[(0,a.Cb)({type:Boolean})],key:"narrow",value:()=>!1},{kind:"field",decorators:[(0,a.Cb)()],key:"error",value:void 0},{kind:"method",key:"render",value:function(){return o.dy` ${this.toolbar?o.dy`<div class="toolbar"> ${this.rootnav||history.state?.root?o.dy` <ha-menu-button .hass="${this.hass}" .narrow="${this.narrow}"></ha-menu-button> `:o.dy` <ha-icon-button-arrow-prev .hass="${this.hass}" @click="${this._handleBack}"></ha-icon-button-arrow-prev> `} </div>`:""} <div class="content"> <ha-alert alert-type="error">${this.error}</ha-alert> <slot> <mwc-button @click="${this._handleBack}"> ${this.hass?.localize("ui.common.back")} </mwc-button> </slot> </div> `}},{kind:"method",key:"_handleBack",value:function(){history.back()}},{kind:"get",static:!0,key:"styles",value:function(){return[o.iv`: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}@media (max-width:599px){.toolbar{padding:4px}}ha-icon-button-arrow-prev{pointer-events:auto}.content{color:var(--primary-text-color);height:calc(100% - var(--header-height));display:flex;padding:16px;align-items:center;justify-content:center;flex-direction:column;box-sizing:border-box}a{color:var(--primary-color)}ha-alert{margin-bottom:16px}`]}}]}}),o.oi)},75375:function(e,t,i){i.a(e,(async function(e,n){try{i.r(t);var o=i(44249),a=i(57243),s=i(15093),r=i(17170),l=(i(54202),i(43344),i(28008)),c=e([r]);r=(c.then?(await c)():c)[0];(0,o.Z)([(0,s.Mo)("hass-loading-screen")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,s.Cb)({type:Boolean,attribute:"no-toolbar"})],key:"noToolbar",value:()=>!1},{kind:"field",decorators:[(0,s.Cb)({type:Boolean})],key:"rootnav",value:()=>!1},{kind:"field",decorators:[(0,s.Cb)({type:Boolean})],key:"narrow",value:()=>!1},{kind:"field",decorators:[(0,s.Cb)()],key:"message",value:void 0},{kind:"method",key:"render",value:function(){return a.dy` ${this.noToolbar?"":a.dy`<div class="toolbar"> ${this.rootnav||history.state?.root?a.dy` <ha-menu-button .hass="${this.hass}" .narrow="${this.narrow}"></ha-menu-button> `:a.dy` <ha-icon-button-arrow-prev .hass="${this.hass}" @click="${this._handleBack}"></ha-icon-button-arrow-prev> `} </div>`} <div class="content"> <ha-spinner></ha-spinner> ${this.message?a.dy`<div id="loading-text">${this.message}</div>`:a.Ld} </div> `}},{kind:"method",key:"_handleBack",value:function(){history.back()}},{kind:"get",static:!0,key:"styles",value:function(){return[l.Qx,a.iv`: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}@media (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}`]}}]}}),a.oi);n()}catch(e){n(e)}}))},32731:function(e,t,i){i.d(t,{x:()=>N});var n=i(44249),o=i(72621),a=(i(92745),i(9359),i(56475),i(1331),i(31526),i(70104),i(52924),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814),i(75656),i(50100),i(18084),i(2060),i(57243)),s=i(15093),r=i(35359),l=i(94571),c=i(27486),d=i(72344),h=i(17803),g=i(1416),p=i(76320),m=(i(59826),i(54977),i(51868),i(7285),i(64780),i(19993),i(74633),i(7843),i(11498)),u=i(43546),f=i(75101),_=i(15681),y=i(6823),v=i(63318),b=i(62992),$=i(75951),k=i(57816),w=i(36522);const x=()=>Promise.all([i.e("97983"),i.e("31343"),i.e("26321")]).then(i.bind(i,97720));var C=i(38572),z=i(91854),L=i(76131),H=(i(34515),i(87979),i(6736)),E=i(28008),V=i(88238),S=i(73192),M=i(58014),A=i(84361);const F="M20,2H4V4L9.81,8.36C6.14,9.57 4.14,13.53 5.35,17.2C6.56,20.87 10.5,22.87 14.19,21.66C17.86,20.45 19.86,16.5 18.65,12.82C17.95,10.71 16.3,9.05 14.19,8.36L20,4V2M14.94,19.5L12,17.78L9.06,19.5L9.84,16.17L7.25,13.93L10.66,13.64L12,10.5L13.34,13.64L16.75,13.93L14.16,16.17L14.94,19.5Z",D={bronze:{icon:F,translationKey:"ui.panel.config.integrations.config_entry.bronze_quality"},silver:{icon:F,translationKey:"ui.panel.config.integrations.config_entry.silver_quality"},gold:{icon:F,translationKey:"ui.panel.config.integrations.config_entry.gold_quality"},platinum:{icon:"M18 2C17.1 2 16 3 16 4H8C8 3 6.9 2 6 2H2V11C2 12 3 13 4 13H6.2C6.6 15 7.9 16.7 11 17V19.08C8 19.54 8 22 8 22H16C16 22 16 19.54 13 19.08V17C16.1 16.7 17.4 15 17.8 13H20C21 13 22 12 22 11V2H18M6 11H4V4H6V11M20 11H18V4H20V11Z",translationKey:"ui.panel.config.integrations.config_entry.platinum_quality"},internal:{icon:i(30511).mdiHomeAssistant,translationKey:"ui.panel.config.integrations.config_entry.internal_integration"},legacy:{icon:"M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z",translationKey:"ui.panel.config.integrations.config_entry.legacy_integration"}},B={"HA-Frontend-Base":`${location.protocol}//${location.host}`},T=(e,t,i,n)=>e.callApi("POST","config/config_entries/subentries/flow",{handler:[t,i],show_advanced_options:Boolean(e.userData?.showAdvanced),subentry_id:n},B),Z=(e,t,i)=>e.callApi("POST",`config/config_entries/subentries/flow/${t}`,i,B),P=(e,t)=>e.callApi("DELETE",`config/config_entries/subentries/flow/${t}`);var I=i(7956);const O=(e,t,i,n)=>(0,I.w)(e,n,{flowType:"config_subentries_flow",showDevices:!0,createFlow:async(e,o)=>{const[a]=await Promise.all([T(e,o,i,n.subEntryId),e.loadFragmentTranslation("config"),e.loadBackendTranslation("config_subentries",t.domain),e.loadBackendTranslation("selector",t.domain),e.loadBackendTranslation("title",t.domain)]);return a},fetchFlow:async(e,i)=>{const n=await((e,t)=>e.callApi("GET",`config/config_entries/subentries/flow/${t}`,void 0,B))(e,i);return await e.loadFragmentTranslation("config"),await e.loadBackendTranslation("config_subentries",t.domain),await e.loadBackendTranslation("selector",t.domain),n},handleFlowStep:Z,deleteFlow:P,renderAbortDescription(e,n){const o=e.localize(`component.${n.translation_domain||t.domain}.config_subentries.${i}.abort.${n.reason}`,n.description_placeholders);return o?a.dy` <ha-markdown allowsvg breaks .content="${o}"></ha-markdown> `:n.reason},renderShowFormStepHeader:(e,n)=>e.localize(`component.${n.translation_domain||t.domain}.config_subentries.${i}.step.${n.step_id}.title`,n.description_placeholders)||e.localize(`component.${t.domain}.title`),renderShowFormStepDescription(e,n){const o=e.localize(`component.${n.translation_domain||t.domain}.config_subentries.${i}.step.${n.step_id}.description`,n.description_placeholders);return o?a.dy` <ha-markdown allowsvg breaks .content="${o}"></ha-markdown> `:""},renderShowFormStepFieldLabel(e,n,o,a){if("expandable"===o.type)return e.localize(`component.${t.domain}.config_subentries.${i}.step.${n.step_id}.sections.${o.name}.name`);const s=a?.path?.[0]?`sections.${a.path[0]}.`:"";return e.localize(`component.${t.domain}.config_subentries.${i}.step.${n.step_id}.${s}data.${o.name}`)||o.name},renderShowFormStepFieldHelper(e,n,o,s){if("expandable"===o.type)return e.localize(`component.${n.translation_domain||t.domain}.config_subentries.${i}.step.${n.step_id}.sections.${o.name}.description`);const r=s?.path?.[0]?`sections.${s.path[0]}.`:"",l=e.localize(`component.${n.translation_domain||t.domain}.config_subentries.${i}.step.${n.step_id}.${r}data_description.${o.name}`,n.description_placeholders);return l?a.dy`<ha-markdown breaks .content="${l}"></ha-markdown>`:""},renderShowFormStepFieldError:(e,n,o)=>e.localize(`component.${n.translation_domain||n.translation_domain||t.domain}.config_subentries.${i}.error.${o}`,n.description_placeholders)||o,renderShowFormStepFieldLocalizeValue:(e,i,n)=>e.localize(`component.${t.domain}.selector.${n}`),renderShowFormStepSubmitButton:(e,n)=>e.localize(`component.${t.domain}.config_subentries.${i}.step.${n.step_id}.submit`)||e.localize("ui.panel.config.integrations.config_flow."+(!1===n.last_step?"next":"submit")),renderExternalStepHeader:(e,n)=>e.localize(`component.${t.domain}.config_subentries.${i}.step.${n.step_id}.title`)||e.localize("ui.panel.config.integrations.config_flow.external_step.open_site"),renderExternalStepDescription(e,n){const o=e.localize(`component.${n.translation_domain||t.domain}.config_subentries.${i}.step.${n.step_id}.description`,n.description_placeholders);return a.dy` <p> ${e.localize("ui.panel.config.integrations.config_flow.external_step.description")} </p> ${o?a.dy` <ha-markdown allowsvg breaks .content="${o}"></ha-markdown> `:""} `},renderCreateEntryDescription(e,n){const o=e.localize(`component.${n.translation_domain||t.domain}.config_subentries.${i}.create_entry.${n.description||"default"}`,n.description_placeholders);return a.dy` ${o?a.dy` <ha-markdown allowsvg breaks .content="${o}"></ha-markdown> `:""} <p> ${e.localize("ui.panel.config.integrations.config_flow.created_config",{name:n.title})} </p> `},renderShowFormProgressHeader:(e,n)=>e.localize(`component.${t.domain}.config_subentries.${i}.step.${n.step_id}.title`)||e.localize(`component.${t.domain}.title`),renderShowFormProgressDescription(e,n){const o=e.localize(`component.${n.translation_domain||t.domain}.config_subentries.${i}.progress.${n.progress_action}`,n.description_placeholders);return o?a.dy` <ha-markdown allowsvg breaks .content="${o}"></ha-markdown> `:""},renderMenuHeader:(e,n)=>e.localize(`component.${t.domain}.config_subentries.${i}.step.${n.step_id}.title`,n.description_placeholders)||e.localize(`component.${t.domain}.title`),renderMenuDescription(e,n){const o=e.localize(`component.${n.translation_domain||t.domain}.config_subentries.${i}.step.${n.step_id}.description`,n.description_placeholders);return o?a.dy` <ha-markdown allowsvg breaks .content="${o}"></ha-markdown> `:""},renderMenuOption:(e,n,o)=>e.localize(`component.${n.translation_domain||t.domain}.config_subentries.${i}.step.${n.step_id}.menu_options.${o}`,n.description_placeholders),renderLoadingDescription(e,t,i,n){if("loading_flow"!==t&&"loading_step"!==t)return"";const o=n?.handler||i;return e.localize(`ui.panel.config.integrations.config_flow.loading.${t}`,{integration:o?(0,k.Lh)(e.localize,o):e.localize("ui.panel.config.integrations.config_flow.loading.fallback_title")})}}),W="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",q="M3 6H21V4H3C1.9 4 1 4.9 1 6V18C1 19.1 1.9 20 3 20H7V18H3V6M13 12H9V13.78C8.39 14.33 8 15.11 8 16C8 16.89 8.39 17.67 9 18.22V20H13V18.22C13.61 17.67 14 16.88 14 16S13.61 14.33 13 13.78V12M11 17.5C10.17 17.5 9.5 16.83 9.5 16S10.17 14.5 11 14.5 12.5 15.17 12.5 16 11.83 17.5 11 17.5M22 8H16C15.5 8 15 8.5 15 9V19C15 19.5 15.5 20 16 20H22C22.5 20 23 19.5 23 19V9C23 8.5 22.5 8 22 8M21 18H17V10H21V18Z",R="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",G="M22 15V16L14 18.5L7 16.6V18H1V7H9L15.2 9.3C16.2 9.7 17 10.8 17 12H19C20.7 12 22 13.3 22 15M5 16V9H3V16H5M19.9 14.6C19.7 14.2 19.4 14 19 14H13.6C13.1 14 12.5 13.9 12 13.8L9.7 13L10.3 11.1L12.7 11.9C13 11.9 15 12 15 12C15 11.6 14.8 11.3 14.4 11.2L8.6 9H7V14.5L14 16.4L19.9 14.6Z",j="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",K="M11,13.5V21.5H3V13.5H11M9,15.5H5V19.5H9V15.5M12,2L17.5,11H6.5L12,2M12,5.86L10.08,9H13.92L12,5.86M17.5,13C20,13 22,15 22,17.5C22,20 20,22 17.5,22C15,22 13,20 13,17.5C13,15 15,13 17.5,13M17.5,15A2.5,2.5 0 0,0 15,17.5A2.5,2.5 0 0,0 17.5,20A2.5,2.5 0 0,0 20,17.5A2.5,2.5 0 0,0 17.5,15Z",N=(e,t)=>{if(t.reason){if(t.error_reason_translation_key){const i=e.loadBackendTranslation("exceptions",t.domain).then((e=>e(`component.${t.domain}.exceptions.${t.error_reason_translation_key}.message`,t.error_reason_translation_placeholders??void 0)||t.reason));return a.dy`${(0,l.C)(i)}`}const i=e.loadBackendTranslation("config",t.domain).then((e=>e(`component.${t.domain}.config.error.${t.reason}`)||t.reason));return a.dy`${(0,l.C)(i,t.reason)}`}return a.dy` <br> ${e.localize("ui.panel.config.integrations.config_entry.check_the_logs")} `};(0,n.Z)([(0,s.Mo)("ha-config-integration-page")],(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)()],key:"domain",value:void 0},{kind:"field",decorators:[(0,s.Cb)({type:Boolean,reflect:!0})],key:"narrow",value:()=>!1},{kind:"field",decorators:[(0,s.Cb)({attribute:"is-wide",type:Boolean})],key:"isWide",value:()=>!1},{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"showAdvanced",value:()=>!1},{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"configEntries",value:void 0},{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"configEntriesInProgress",value:()=>[]},{kind:"field",decorators:[(0,s.SB)()],key:"_entities",value:()=>[]},{kind:"field",decorators:[(0,s.SB)()],key:"_manifest",value:void 0},{kind:"field",decorators:[(0,s.SB)()],key:"_extraConfigEntries",value:void 0},{kind:"field",decorators:[(0,s.SB)()],key:"_diagnosticHandler",value:void 0},{kind:"field",decorators:[(0,s.SB)()],key:"_logInfo",value:void 0},{kind:"field",decorators:[(0,s.SB)()],key:"_searchParms",value:()=>new URLSearchParams(window.location.hash.substring(1))},{kind:"field",decorators:[(0,s.SB)()],key:"_domainEntities",value:()=>({})},{kind:"field",decorators:[(0,s.SB)()],key:"_subEntries",value:()=>({})},{kind:"field",key:"_configPanel",value:()=>(0,c.Z)(((e,t)=>Object.values(t).find((t=>t.config_panel_domain===e))?.url_path||k.ez[e]))},{kind:"field",key:"_domainConfigEntries",value:()=>(0,c.Z)(((e,t)=>t?t.filter((t=>t.domain===e)):[]))},{kind:"field",key:"_domainConfigEntriesInProgress",value:()=>(0,c.Z)(((e,t)=>t?t.filter((t=>t.handler===e)):[]))},{kind:"method",key:"hassSubscribe",value:function(){return[(0,v.LM)(this.hass.connection,(e=>{this._entities=e})),(0,k.O)(this.hass.connection,(e=>{for(const t of e)t.domain===this.domain&&(this._logInfo=t)}))]}},{kind:"method",key:"willUpdate",value:function(e){e.has("domain")&&(this.hass.loadBackendTranslation("title",[this.domain]),this.hass.loadBackendTranslation("config_subentries",[this.domain]),this._extraConfigEntries=void 0,this._fetchManifest(),this._fetchDiagnostics(),this._fetchEntitySources()),(e.has("configEntries")||e.has("_extraConfigEntries"))&&this._fetchSubEntries()}},{kind:"method",key:"_fetchEntitySources",value:async function(){const e=await(0,b.m)(this.hass),t={};for(const[i,n]of Object.entries(e))n.domain in t||(t[n.domain]=[]),t[n.domain].push(i);this._domainEntities=t}},{kind:"method",key:"updated",value:function(e){(0,o.Z)(i,"updated",this,3)([e]),this._searchParms.has("config_entry")&&e.has("configEntries")&&!e.get("configEntries")&&this.configEntries&&this._highlightEntry()}},{kind:"method",key:"render",value:function(){if(!this.configEntries||!this.domain)return a.Ld;const e=this._domainConfigEntries(this.domain,this._extraConfigEntries||this.configEntries),t=this._domainConfigEntriesInProgress(this.domain,this.configEntriesInProgress),i=t.filter((e=>!_.P3.includes(e.context.source))),n=t.filter((e=>_.P3.includes(e.context.source))),o=e.filter((e=>f.LZ.includes(e.state))),s=e.filter((e=>"ignore"!==e.source&&!f.LZ.includes(e.state))).sort(((e,t)=>Boolean(e.disabled_by)!==Boolean(t.disabled_by)?e.disabled_by?1:-1:(0,g.fe)(e.title,t.title,this.hass.locale.language))),r=this._getDevices(e,this.hass.devices),l=this._getEntities(e,this._entities);let c=l.length;if(this.domain in this._domainEntities&&c!==this._domainEntities[this.domain].length)if(c){const e=new Set(l.map((e=>e.entity_id)));for(const t of this._domainEntities[this.domain])e.add(t);c=e.size}else c=this._domainEntities[this.domain].length;const d=!r.some((e=>"service"!==e.entry_type));return a.dy` <hass-subpage .hass="${this.hass}" .narrow="${this.narrow}" .header="${(0,k.Lh)(this.hass.localize,this.domain)}"> <div class="container"> <div class="column small"> <ha-card class="overview"> <div class="card-content"> <div class="logo-container"> <img alt="${(0,k.Lh)(this.hass.localize,this.domain)}" src="${(0,V.X1)({domain:this.domain,type:"logo",darkOptimized:this.hass.themes?.darkMode})}" crossorigin="anonymous" referrerpolicy="no-referrer" @load="${this._onImageLoad}" @error="${this._onImageError}"> </div> ${null!=this._manifest?.version?a.dy`<div class="version">${this._manifest.version}</div>`:a.Ld} ${!1===this._manifest?.is_built_in?a.dy`<div class="${"integration-info "+(this._manifest.overwrites_built_in?"error":"warn")}"> <ha-svg-icon path="${"M2,10.96C1.5,10.68 1.35,10.07 1.63,9.59L3.13,7C3.24,6.8 3.41,6.66 3.6,6.58L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.66,6.72 20.82,6.88 20.91,7.08L22.36,9.6C22.64,10.08 22.47,10.69 22,10.96L21,11.54V16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V10.96C2.7,11.13 2.32,11.14 2,10.96M12,4.15V4.15L12,10.85V10.85L17.96,7.5L12,4.15M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V12.69L14,15.59C13.67,15.77 13.3,15.76 13,15.6V19.29L19,15.91M13.85,13.36L20.13,9.73L19.55,8.72L13.27,12.35L13.85,13.36Z"}"></ha-svg-icon> <a href="${(0,S.R)(this.hass,"/docs/quality_scale/#-custom")}" rel="noopener noreferrer" target="_blank"> ${this.hass.localize(this._manifest.overwrites_built_in?"ui.panel.config.integrations.config_entry.custom_overwrites_core":"ui.panel.config.integrations.config_entry.custom_integration")} </a> </div>`:a.Ld} ${this._manifest?.iot_class?.startsWith("cloud_")?a.dy`<div class="integration-info"> <ha-svg-icon .path="${"M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}"></ha-svg-icon> ${this.hass.localize("ui.panel.config.integrations.config_entry.depends_on_cloud")} </div>`:a.Ld} ${0===s.length&&this._manifest&&!this._manifest.config_flow&&this.hass.config.components.find((e=>e.split(".")[0]===this.domain))?a.dy`<div class="integration-info info"> <ha-svg-icon path="${"M14 2H6C4.89 2 4 2.9 4 4V20C4 21.11 4.89 22 6 22H18C19.11 22 20 21.11 20 20V8L14 2M18 20H6V4H13V9H18V20M9.54 15.65L11.63 17.74L10.35 19L7 15.65L10.35 12.3L11.63 13.56L9.54 15.65M17 15.65L13.65 19L12.38 17.74L14.47 15.65L12.38 13.56L13.65 12.3L17 15.65Z"}"></ha-svg-icon>${this.hass.localize("ui.panel.config.integrations.config_entry.no_config_flow")} </div>`:a.Ld} </div> <div class="card-actions"> ${this._manifest?.is_built_in&&this._manifest.quality_scale&&Object.keys(D).includes(this._manifest.quality_scale)?a.dy` <a href="${(0,S.R)(this.hass,`/docs/quality_scale/#-${this._manifest.quality_scale}`)}" rel="noopener noreferrer" target="_blank"> <ha-list-item hasMeta graphic="icon"> <ha-svg-icon slot="graphic" class="${`quality-scale ${this._manifest.quality_scale}-quality`}" .path="${D[this._manifest.quality_scale].icon}"></ha-svg-icon> ${this.hass.localize(D[this._manifest.quality_scale].translationKey)} <ha-svg-icon slot="meta" .path="${j}"></ha-svg-icon> </ha-list-item> </a> `:a.Ld} ${r.length>0?a.dy`<a href="${1===r.length?`/config/devices/device/${r[0].id}`:`/config/devices/dashboard?historyBack=1&domain=${this.domain}`}"> <ha-list-item hasMeta graphic="icon"> <ha-svg-icon .path="${d?G:q}" slot="graphic"></ha-svg-icon> ${this.hass.localize("ui.panel.config.integrations.config_entry."+(d?"services":"devices"),{count:r.length})} <ha-icon-next slot="meta"></ha-icon-next> </ha-list-item> </a>`:a.Ld} ${c>0?a.dy`<a href="${`/config/entities?historyBack=1&domain=${this.domain}`}"> <ha-list-item hasMeta graphic="icon"> <ha-svg-icon .path="${K}" slot="graphic"></ha-svg-icon> ${this.hass.localize("ui.panel.config.integrations.config_entry.entities",{count:c})} <ha-icon-next slot="meta"></ha-icon-next> </ha-list-item> </a>`:a.Ld} ${this._manifest?a.dy`<a href="${this._manifest.is_built_in?(0,S.R)(this.hass,`/integrations/${this._manifest.domain}`):this._manifest.documentation}" rel="noreferrer" target="_blank"> <ha-list-item graphic="icon" hasMeta> ${this.hass.localize("ui.panel.config.integrations.config_entry.documentation")} <ha-svg-icon slot="graphic" .path="${"M9 3V18H12V3H9M12 5L16 18L19 17L15 4L12 5M5 5V18H8V5H5M3 19V21H21V19H3Z"}"></ha-svg-icon> <ha-svg-icon slot="meta" .path="${j}"></ha-svg-icon> </ha-list-item> </a>`:a.Ld} ${this._manifest&&(this._manifest.is_built_in||this._manifest.issue_tracker)?a.dy`<a href="${(0,k.H0)(this.domain,this._manifest)}" rel="noreferrer" target="_blank"> <ha-list-item graphic="icon" hasMeta> ${this.hass.localize("ui.panel.config.integrations.config_entry.known_issues")} <ha-svg-icon slot="graphic" .path="${"M14,12H10V10H14M14,16H10V14H14M20,8H17.19C16.74,7.22 16.12,6.55 15.37,6.04L17,4.41L15.59,3L13.42,5.17C12.96,5.06 12.5,5 12,5C11.5,5 11.04,5.06 10.59,5.17L8.41,3L7,4.41L8.62,6.04C7.88,6.55 7.26,7.22 6.81,8H4V10H6.09C6.04,10.33 6,10.66 6,11V12H4V14H6V15C6,15.34 6.04,15.67 6.09,16H4V18H6.81C7.85,19.79 9.78,21 12,21C14.22,21 16.15,19.79 17.19,18H20V16H17.91C17.96,15.67 18,15.34 18,15V14H20V12H18V11C18,10.66 17.96,10.33 17.91,10H20V8Z"}"></ha-svg-icon> <ha-svg-icon slot="meta" .path="${j}"></ha-svg-icon> </ha-list-item> </a>`:a.Ld} ${this._logInfo?a.dy`<ha-list-item @request-selected="${this._logInfo.level===k.WH.DEBUG?this._handleDisableDebugLogging:this._handleEnableDebugLogging}" graphic="icon"> ${this._logInfo.level===k.WH.DEBUG?this.hass.localize("ui.panel.config.integrations.config_entry.disable_debug_logging"):this.hass.localize("ui.panel.config.integrations.config_entry.enable_debug_logging")} <ha-svg-icon slot="graphic" class="${this._logInfo.level===k.WH.DEBUG?"warning":""}" .path="${this._logInfo.level===k.WH.DEBUG?"M19 7H16.19C15.74 6.2 15.12 5.5 14.37 5L16 3.41L14.59 2L12.42 4.17C11.96 4.06 11.5 4 11 4S10.05 4.06 9.59 4.17L7.41 2L6 3.41L7.62 5C6.87 5.5 6.26 6.21 5.81 7H3V9H5.09C5.03 9.33 5 9.66 5 10V11H3V13H5V14C5 14.34 5.03 14.67 5.09 15H3V17H5.81C7.26 19.5 10.28 20.61 13 19.65V19C13 16.46 14.61 14.2 17 13.35V13H19V11H17V10C17 9.66 16.97 9.33 16.91 9H19V7M13 15H9V13H13V15M13 11H9V9H13V11M16 16H22V22H16V16Z":"M19 7H16.19C15.74 6.2 15.12 5.5 14.37 5L16 3.41L14.59 2L12.42 4.17C11.96 4.06 11.5 4 11 4S10.05 4.06 9.59 4.17L7.41 2L6 3.41L7.62 5C6.87 5.5 6.26 6.21 5.81 7H3V9H5.09C5.03 9.33 5 9.66 5 10V11H3V13H5V14C5 14.34 5.03 14.67 5.09 15H3V17H5.81C7.26 19.5 10.28 20.61 13 19.65V19C13 16.46 14.61 14.2 17 13.35V13H19V11H17V10C17 9.66 16.97 9.33 16.91 9H19V7M13 15H9V13H13V15M13 11H9V9H13V11M17 16V22L22 19L17 16Z"}"></ha-svg-icon> </ha-list-item>`:a.Ld} </div> </ha-card> </div> <div class="column"> ${i.length?a.dy`<ha-card> <h1 class="card-header"> ${this.hass.localize("ui.panel.config.integrations.discovered")} </h1> <ha-md-list> ${i.map((e=>a.dy`<ha-md-list-item class="discovered"> ${e.localized_title} <ha-button slot="end" unelevated .flow="${e}" @click="${this._continueFlow}" .label="${this.hass.localize("ui.common.add")}"></ha-button> </ha-md-list-item>`))} </ha-md-list> </ha-card>`:a.Ld} ${n.length||o.length?a.dy`<ha-card> <h1 class="card-header"> ${this.hass.localize("ui.panel.config.integrations.integration_page.attention_entries")} </h1> <ha-md-list> ${n.map((e=>{const t=_.P3.includes(e.context.source);return a.dy`<ha-md-list-item class="config_entry ${t?"attention":""}"> ${e.localized_title} <span slot="supporting-text">${this.hass.localize("ui.panel.config.integrations."+(t?"attention":"discovered"))}</span> <ha-button slot="end" unelevated .flow="${e}" @click="${this._continueFlow}" .label="${this.hass.localize("ui.panel.config.integrations."+(t?"reconfigure":"configure"))}"></ha-button> </ha-md-list-item>`}))} ${o.map(((e,t)=>a.dy`${this._renderConfigEntry(e)} ${t<o.length-1?a.dy` <ha-md-divider role="separator" tabindex="-1"></ha-md-divider>`:a.Ld} `))} </ha-md-list> </ha-card>`:a.Ld} <ha-card> <h1 class="card-header"> ${this._manifest?.integration_type?this.hass.localize(`ui.panel.config.integrations.integration_page.entries_${this._manifest.integration_type}`):this.hass.localize("ui.panel.config.integrations.integration_page.entries")} </h1> ${0===s.length?a.dy`<div class="card-content no-entries"> ${this._manifest&&!this._manifest.config_flow&&this.hass.config.components.find((e=>e.split(".")[0]===this.domain))?this.hass.localize("ui.panel.config.integrations.integration_page.yaml_entry"):this.hass.localize("ui.panel.config.integrations.integration_page.no_entries")} </div>`:a.dy`<ha-md-list> ${s.map(((e,t)=>a.dy`${this._renderConfigEntry(e)} ${t<s.length-1?a.dy` <ha-md-divider role="separator" tabindex="-1"></ha-md-divider>`:a.Ld}`))} </ha-md-list>`} <div class="card-actions"> <ha-button @click="${this._addIntegration}"> ${this._manifest?.integration_type?this.hass.localize(`ui.panel.config.integrations.integration_page.add_${this._manifest.integration_type}`):this.hass.localize("ui.panel.config.integrations.integration_page.add_entry")} </ha-button> </div> </ha-card> </div> </div> </hass-subpage> `}},{kind:"method",key:"_onImageLoad",value:function(e){e.target.style.display="inline-block"}},{kind:"method",key:"_onImageError",value:function(e){e.target.style.display="none"}},{kind:"method",key:"_renderDeviceLine",value:function(e,t,i,n,o){let s=[];for(const[n,r]of[[t,"devices"],[i,"services"]]){if(0===n.length)continue;const t=1===n.length?`/config/devices/device/${n[0].id}`:`/config/devices/dashboard?historyBack=1&config_entry=${e.entry_id}${o?`&sub_entry=${o.subentry_id}`:""}`;s.push(a.dy`<a href="${t}">${this.hass.localize(`ui.panel.config.integrations.config_entry.${r}`,{count:n.length})}</a>`)}return n.length&&s.push(a.dy`<a href="${`/config/entities?historyBack=1&config_entry=${e.entry_id}${o?`&sub_entry=${o.subentry_id}`:""}`}">${this.hass.localize("ui.panel.config.integrations.config_entry.entities",{count:n.length})}</a>`),0===s.length?s=[this.hass.localize("ui.panel.config.integrations.config_entry.no_devices_or_entities")]:2===s.length?s=[s[0],` ${this.hass.localize("ui.common.and")} `,s[1]]:3===s.length&&(s=[s[0],", ",s[1],` ${this.hass.localize("ui.common.and")} `,s[2]]),s}},{kind:"method",key:"_renderConfigEntry",value:function(e){let t,i,n="M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";e.disabled_by||"not_loaded"!==e.state?"setup_in_progress"===e.state?(n="M13 2V4C17.39 4.54 20.5 8.53 19.96 12.92C19.5 16.56 16.64 19.43 13 19.88V21.88C18.5 21.28 22.45 16.34 21.85 10.85C21.33 6.19 17.66 2.5 13 2M11 2C9.04 2.18 7.19 2.95 5.67 4.2L7.1 5.74C8.22 4.84 9.57 4.26 11 4.06V2M4.26 5.67C3 7.19 2.24 9.04 2.05 11H4.05C4.24 9.58 4.8 8.23 5.69 7.1L4.26 5.67M2.06 13C2.26 14.96 3.03 16.81 4.27 18.33L5.69 16.9C4.81 15.77 4.24 14.42 4.06 13H2.06M7.06 18.37L5.67 19.74C7.18 21 9.04 21.79 11 22V20C9.58 19.82 8.23 19.25 7.1 18.37H7.06Z",t=["ui.panel.config.integrations.config_entry.setup_in_progress"]):f.LZ.includes(e.state)&&("setup_retry"===e.state&&(n="M2 12C2 17 6 21 11 21C13.4 21 15.7 20.1 17.4 18.4L15.9 16.9C14.6 18.3 12.9 19 11 19C4.8 19 1.6 11.5 6.1 7.1S18 5.8 18 12H15L19 16H19.1L23 12H20C20 7 16 3 11 3S2 7 2 12M10 15H12V17H10V15M10 7H12V13H10V7"),t=[`ui.panel.config.integrations.config_entry.state.${e.state}`],i=N(this.hass,e)):t=["ui.panel.config.integrations.config_entry.not_loaded"];const o=this._getConfigEntryDevices(e),s=this._getConfigEntryServices(e),l=this._getConfigEntryEntities(e);let c=[];e.disabled_by?(c.push(this.hass.localize("ui.panel.config.integrations.config_entry.disable.disabled_cause",{cause:this.hass.lo