iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 22.8 kB
JavaScript
webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["46226"],{19631:function(e,n,t){t.a(e,(async function(e,o){try{t.d(n,{Bt:()=>d,T8:()=>c});t(19083);var i=t(16485),a=t(88977),s=t(20382),r=e([i]);i=(r.then?(await r)():r)[0];const l=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],d=e=>e.first_weekday===s.FS.language?"weekInfo"in Intl.Locale.prototype?new Intl.Locale(e.language).weekInfo.firstDay%7:(0,a.L)(e.language)%7:l.includes(e.first_weekday)?l.indexOf(e.first_weekday):1,c=e=>{const n=d(e);return l[n]};o()}catch(l){o(l)}}))},94947:function(e,n,t){t.a(e,(async function(e,o){try{t.d(n,{G:()=>d});var i=t(16485),a=t(27486),s=t(27046),r=e([i,s]);[i,s]=r.then?(await r)():r;const l=(0,a.Z)((e=>new Intl.RelativeTimeFormat(e.language,{numeric:"auto"}))),d=(e,n,t,o=!0)=>{const i=(0,s.W)(e,t,n);return o?l(n).format(i.value,i.unit):Intl.NumberFormat(n.language,{style:"unit",unit:i.unit,unitDisplay:"long"}).format(Math.abs(i.value))};o()}catch(l){o(l)}}))},87733:function(e,n,t){t.d(n,{f:()=>o});const o=e=>e.charAt(0).toUpperCase()+e.slice(1)},27046:function(e,n,t){t.a(e,(async function(e,o){try{t.d(n,{W:()=>h});t(19423);var i=t(13809),a=t(29558),s=t(94763),r=t(19631),l=e([r]);r=(l.then?(await l)():l)[0];const c=1e3,u=60,p=60*u;function h(e,n=Date.now(),t,o={}){const l=Object.assign(Object.assign({},m),o||{}),d=(+e-+n)/c;if(Math.abs(d)<l.second)return{value:Math.round(d),unit:"second"};const h=d/u;if(Math.abs(h)<l.minute)return{value:Math.round(h),unit:"minute"};const f=d/p;if(Math.abs(f)<l.hour)return{value:Math.round(f),unit:"hour"};const g=new Date(e),_=new Date(n);g.setHours(0,0,0,0),_.setHours(0,0,0,0);const $=(0,i.j)(g,_);if(0===$)return{value:Math.round(f),unit:"hour"};if(Math.abs($)<l.day)return{value:$,unit:"day"};const w=(0,r.Bt)(t),y=(0,a.z)(g,{weekStartsOn:w}),k=(0,a.z)(_,{weekStartsOn:w}),v=(0,s.p)(y,k);if(0===v)return{value:$,unit:"day"};if(Math.abs(v)<l.week)return{value:v,unit:"week"};const b=g.getFullYear()-_.getFullYear(),z=12*b+g.getMonth()-_.getMonth();return 0===z?{value:v,unit:"week"}:Math.abs(z)<l.month||0===b?{value:z,unit:"month"}:{value:Math.round(b),unit:"year"}}const m={second:45,minute:45,hour:22,day:5,week:4,month:11};o()}catch(d){o(d)}}))},74633:function(e,n,t){var o=t(61701),i=t(72621),a=(t(71695),t(47021),t(78755)),s=t(57243),r=t(50778);let l,d=e=>e;(0,o.Z)([(0,r.Mo)("ha-md-list-item")],(function(e,n){class t extends n{constructor(...n){super(...n),e(this)}}return{F:t,d:[{kind:"field",static:!0,key:"styles",value(){return[...(0,i.Z)(t,"styles",this),(0,s.iv)(l||(l=d`: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,n,t){var o=t(61701),i=t(72621),a=(t(71695),t(47021),t(623)),s=t(57243),r=t(50778);let l,d=e=>e;(0,o.Z)([(0,r.Mo)("ha-md-list")],(function(e,n){class t extends n{constructor(...n){super(...n),e(this)}}return{F:t,d:[{kind:"field",static:!0,key:"styles",value(){return[...(0,i.Z)(t,"styles",this),(0,s.iv)(l||(l=d`:host{--md-sys-color-surface:var(--card-background-color)}`))]}}]}}),a.j)},15681:function(e,n,t){t.d(n,{D4:()=>c,D7:()=>f,Ky:()=>d,P3:()=>r,V3:()=>$,WW:()=>w,XO:()=>u,ZJ:()=>_,d4:()=>m,oi:()=>h,pV:()=>s,zO:()=>p});var o=t(62212),i=t(22381),a=t(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}`},d=(e,n,t)=>{var o;return e.callApi("POST","config/config_entries/flow",{handler:n,show_advanced_options:Boolean(null===(o=e.userData)||void 0===o?void 0:o.showAdvanced),entry_id:t},l)},c=(e,n)=>e.callApi("GET",`config/config_entries/flow/${n}`,void 0,l),u=(e,n,t)=>e.callApi("POST",`config/config_entries/flow/${n}`,t,l),p=(e,n,t)=>e.callWS({type:"config_entries/ignore_flow",flow_id:n,title:t}),h=(e,n)=>e.callApi("DELETE",`config/config_entries/flow/${n}`),m=(e,n)=>e.callApi("GET","config/config_entries/flow_handlers"+(n?`?type=${n}`:"")),f=e=>e.sendMessagePromise({type:"config_entries/flow/progress"}),g=(e,n)=>e.subscribeEvents((0,i.D)((()=>f(e).then((e=>n.setState(e,!0)))),500,!0),"config_entry_discovered"),_=e=>(0,o._)(e,"_configFlowProgress",f,g),$=(e,n)=>_(e.connection).subscribe(n),w=(e,n)=>n.context.title_placeholders&&0!==Object.keys(n.context.title_placeholders).length?e(`component.${n.handler}.config.flow_title`,n.context.title_placeholders)||("name"in n.context.title_placeholders?n.context.title_placeholders.name:(0,a.Lh)(e,n.handler)):(0,a.Lh)(e,n.handler)},38572:function(e,n,t){t.d(n,{t:()=>_});t(63721),t(71695),t(40251),t(47021);var o=t(57243),i=t(15681),a=t(57816),s=t(7956);let r,l,d,c,u,p,h,m,f,g=e=>e;const _=(e,n)=>(0,s.w)(e,n,{flowType:"config_flow",showDevices:!0,createFlow:async(e,t)=>{const[o]=await Promise.all([(0,i.Ky)(e,t,n.entryId),e.loadFragmentTranslation("config"),e.loadBackendTranslation("config",t),e.loadBackendTranslation("selector",t),e.loadBackendTranslation("title",t)]);return o},fetchFlow:async(e,n)=>{const t=await(0,i.D4)(e,n);return await e.loadFragmentTranslation("config"),await e.loadBackendTranslation("config",t.handler),await e.loadBackendTranslation("selector",t.handler),t},handleFlowStep:i.XO,deleteFlow:i.oi,renderAbortDescription(e,n){const t=e.localize(`component.${n.translation_domain||n.handler}.config.abort.${n.reason}`,n.description_placeholders);return t?(0,o.dy)(r||(r=g` <ha-markdown allow-svg breaks .content="${0}"></ha-markdown> `),t):n.reason},renderShowFormStepHeader(e,n){return e.localize(`component.${n.translation_domain||n.handler}.config.step.${n.step_id}.title`,n.description_placeholders)||e.localize(`component.${n.handler}.title`)},renderShowFormStepDescription(e,n){const t=e.localize(`component.${n.translation_domain||n.handler}.config.step.${n.step_id}.description`,n.description_placeholders);return t?(0,o.dy)(l||(l=g` <ha-markdown allow-svg breaks .content="${0}"></ha-markdown> `),t):""},renderShowFormStepFieldLabel(e,n,t,o){var i;if("expandable"===t.type)return e.localize(`component.${n.handler}.config.step.${n.step_id}.sections.${t.name}.name`);const a=null!=o&&null!==(i=o.path)&&void 0!==i&&i[0]?`sections.${o.path[0]}.`:"";return e.localize(`component.${n.handler}.config.step.${n.step_id}.${a}data.${t.name}`)||t.name},renderShowFormStepFieldHelper(e,n,t,i){var a;if("expandable"===t.type)return e.localize(`component.${n.translation_domain||n.handler}.config.step.${n.step_id}.sections.${t.name}.description`);const s=null!=i&&null!==(a=i.path)&&void 0!==a&&a[0]?`sections.${i.path[0]}.`:"",r=e.localize(`component.${n.translation_domain||n.handler}.config.step.${n.step_id}.${s}data_description.${t.name}`,n.description_placeholders);return r?(0,o.dy)(d||(d=g`<ha-markdown breaks .content="${0}"></ha-markdown>`),r):""},renderShowFormStepFieldError(e,n,t){return e.localize(`component.${n.translation_domain||n.translation_domain||n.handler}.config.error.${t}`,n.description_placeholders)||t},renderShowFormStepFieldLocalizeValue(e,n,t){return e.localize(`component.${n.handler}.selector.${t}`)},renderShowFormStepSubmitButton(e,n){return e.localize(`component.${n.handler}.config.step.${n.step_id}.submit`)||e.localize("ui.panel.config.integrations.config_flow."+(!1===n.last_step?"next":"submit"))},renderExternalStepHeader(e,n){return e.localize(`component.${n.handler}.config.step.${n.step_id}.title`)||e.localize("ui.panel.config.integrations.config_flow.external_step.open_site")},renderExternalStepDescription(e,n){const t=e.localize(`component.${n.translation_domain||n.handler}.config.${n.step_id}.description`,n.description_placeholders);return(0,o.dy)(c||(c=g` <p> ${0} </p> ${0} `),e.localize("ui.panel.config.integrations.config_flow.external_step.description"),t?(0,o.dy)(u||(u=g` <ha-markdown allow-svg breaks .content="${0}"></ha-markdown> `),t):"")},renderCreateEntryDescription(e,n){const t=e.localize(`component.${n.translation_domain||n.handler}.config.create_entry.${n.description||"default"}`,n.description_placeholders);return(0,o.dy)(p||(p=g` ${0} <p> ${0} </p> `),t?(0,o.dy)(h||(h=g` <ha-markdown allow-svg breaks .content="${0}"></ha-markdown> `),t):"",e.localize("ui.panel.config.integrations.config_flow.created_config",{name:n.title}))},renderShowFormProgressHeader(e,n){return e.localize(`component.${n.handler}.config.step.${n.step_id}.title`)||e.localize(`component.${n.handler}.title`)},renderShowFormProgressDescription(e,n){const t=e.localize(`component.${n.translation_domain||n.handler}.config.progress.${n.progress_action}`,n.description_placeholders);return t?(0,o.dy)(m||(m=g` <ha-markdown allow-svg breaks .content="${0}"></ha-markdown> `),t):""},renderMenuHeader(e,n){return e.localize(`component.${n.handler}.config.step.${n.step_id}.title`)||e.localize(`component.${n.handler}.title`)},renderMenuDescription(e,n){const t=e.localize(`component.${n.translation_domain||n.handler}.config.step.${n.step_id}.description`,n.description_placeholders);return t?(0,o.dy)(f||(f=g` <ha-markdown allow-svg breaks .content="${0}"></ha-markdown> `),t):""},renderMenuOption(e,n,t){return e.localize(`component.${n.translation_domain||n.handler}.config.step.${n.step_id}.menu_options.${t}`,n.description_placeholders)},renderLoadingDescription(e,n,t,o){if("loading_flow"!==n&&"loading_step"!==n)return"";const i=(null==o?void 0:o.handler)||t;return e.localize(`ui.panel.config.integrations.config_flow.loading.${n}`,{integration:i?(0,a.Lh)(e.localize,i):e.localize("ui.panel.config.integrations.config_flow.loading.fallback_title")})}})},7956:function(e,n,t){t.d(n,{w:()=>a});t(71695),t(19423),t(40251),t(47021);var o=t(36522);const i=()=>Promise.all([t.e("46379"),t.e("66031"),t.e("72206"),t.e("97983"),t.e("24199"),t.e("78943"),t.e("2142"),t.e("58640"),t.e("52430"),t.e("4697"),t.e("43429"),t.e("27090"),t.e("8949")]).then(t.bind(t,12656)),a=(e,n,t)=>{(0,o.B)(e,"show-dialog",{dialogTag:"dialog-data-entry-flow",dialogImport:i,dialogParams:Object.assign(Object.assign({},n),{},{flowConfig:t,dialogParentElement:e})})}},36439:function(e,n,t){var o=t(61701),i=(t(71695),t(47021),t(57243)),a=t(50778),s=t(57816);let r,l,d=e=>e;(0,o.Z)([(0,a.Mo)("dialog-repairs-issue-subtitle")],(function(e,n){return{F:class extends n{constructor(...n){super(...n),e(this)}},d:[{kind:"field",decorators:[(0,a.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,a.Cb)({type:Object})],key:"issue",value:void 0},{kind:"method",key:"firstUpdated",value:function(){var e;this.scrollWidth>this.offsetWidth&&(this.title=(null===(e=this.shadowRoot)||void 0===e||null===(e=e.firstElementChild)||void 0===e?void 0:e.innerText)||"")}},{kind:"method",key:"render",value:function(){const e=(0,s.Lh)(this.hass.localize,this.issue.domain),n=e?` ⸱ ${this.hass.localize("ui.panel.config.repairs.reported_by",{integration:e})}`:"",t=this.hass.localize(`ui.panel.config.repairs.${this.issue.severity}`);return(0,i.dy)(r||(r=d` <span> <span class="${0}"> ${0} </span> ${0} </span> `),this.issue.severity,t,n)}},{kind:"field",static:!0,key:"styles",value(){return(0,i.iv)(l||(l=d`:host{display:block;font-size:14px;margin-bottom:8px;color:var(--secondary-text-color);text-overflow:ellipsis;overflow:hidden}.critical,.error{color:var(--error-color)}.warning{color:var(--warning-color)}`))}}]}}),i.oi)},99801:function(e,n,t){t.a(e,(async function(e,n){try{var o=t(61701),i=(t(19083),t(71695),t(9359),t(70104),t(40251),t(61006),t(47021),t(57243)),a=t(50778),s=t(94947),r=t(87733),l=(t(19993),t(74633),t(57816)),d=t(25482),c=t(38572),u=t(88238),p=t(89868),h=t(34621),m=t(92015),f=t(17705),g=e([s]);s=(g.then?(await g)():g)[0];let _,$,w,y,k,v,b=e=>e;(0,o.Z)([(0,a.Mo)("ha-config-repairs")],(function(e,n){return{F:class extends n{constructor(...n){super(...n),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:"narrow",value(){return!1}},{kind:"field",decorators:[(0,a.Cb)({attribute:!1})],key:"repairsIssues",value:void 0},{kind:"field",decorators:[(0,a.Cb)({type:Number})],key:"total",value:void 0},{kind:"method",key:"render",value:function(){var e;if(null===(e=this.repairsIssues)||void 0===e||!e.length)return i.Ld;const n=this.repairsIssues;return(0,i.dy)(_||(_=b` <div class="title"> ${0} </div> <ha-md-list> ${0} </ha-md-list> `),this.hass.localize("ui.panel.config.repairs.title",{count:this.total||this.repairsIssues.length}),n.map((e=>{var n;const t=(0,l.Lh)(this.hass.localize,e.domain),o=e.created&&t?this.hass.localize("ui.panel.config.repairs.created_at_by",{date:(0,r.f)((0,s.G)(new Date(e.created),this.hass.locale)),integration:t}):"";return(0,i.dy)($||($=b` <ha-md-list-item .hasMeta="${0}" .issue="${0}" class="${0}" @click="${0}" type="button"> <img slot="start" alt="${0}" loading="lazy" src="${0}" .title="${0}" crossorigin="anonymous" referrerpolicy="no-referrer"> <span slot="headline"> ${0} </span> <span slot="supporting-text"> ${0} ${0} ${0} ${0} </span> ${0} </ha-md-list-item> `),!this.narrow,e,e.ignored?"ignored":"",this._openShowMoreDialog,t,(0,u.X1)({domain:e.issue_domain||e.domain,type:"icon",useFallback:!0,darkOptimized:null===(n=this.hass.themes)||void 0===n?void 0:n.darkMode}),t,this.hass.localize(`component.${e.domain}.issues.${e.translation_key||e.issue_id}.title`,e.translation_placeholders||{})||`${e.domain}: ${e.translation_key||e.issue_id}`,"critical"===e.severity||"error"===e.severity?(0,i.dy)(w||(w=b`<span class="error">${0}</span>`),this.hass.localize(`ui.panel.config.repairs.${e.severity}`)):"","critical"!==e.severity&&"error"!==e.severity||!e.created?"":" ⸱ ",o?(0,i.dy)(y||(y=b`<span .title="${0}">${0}</span>`),o,o):i.Ld,e.ignored?` ⸱ ${this.hass.localize("ui.panel.config.repairs.dialog.ignored_in_version_short",{version:e.dismissed_version})}`:"",this.narrow?"":(0,i.dy)(k||(k=b`<ha-icon-next slot="end"></ha-icon-next>`)))})))}},{kind:"method",key:"_openShowMoreDialog",value:async function(e){const n=e.currentTarget.issue;if(n.is_fixable)(0,h.w)(this,n);else if("homeassistant"===n.domain&&"config_entry_reauth"===n.translation_key){const e=await(0,d.VS)(this.hass.connection,n.domain,n.issue_id);"flow_id"in e.issue_data&&(0,c.t)(this,{continueFlowId:e.issue_data.flow_id})}else if("sensor"===n.domain&&n.translation_key&&f.PA.includes(n.translation_key)){this.hass.loadFragmentTranslation("developer-tools");const e=await(0,d.VS)(this.hass.connection,n.domain,n.issue_id);"issue_type"in e.issue_data&&(await(0,p.e)(this,{type:e.issue_data.issue_type,data:e.issue_data}),(0,f.Qm)(this.hass))}else(0,m.W)(this,{issue:n})}},{kind:"field",static:!0,key:"styles",value(){return(0,i.iv)(v||(v=b`:host{--mdc-list-vertical-padding:0}.title{font-size:16px;padding:16px;padding-bottom:0}.ignored{opacity:var(--light-secondary-opacity)}button.show-more{color:var(--primary-color);text-align:left;cursor:pointer;background:0 0;border-width:initial;border-style:none;border-color:initial;border-image:initial;padding:16px;font:inherit}button.show-more:focus{outline:0;text-decoration:underline}ha-md-list-item img[slot=start]{width:40px;height:40px}ha-md-list-item span[slot=supporting-text]{white-space:nowrap}.error{color:var(--error-color)}`))}}]}}),i.oi);n()}catch(_){n(_)}}))},34621:function(e,n,t){t.d(n,{w:()=>F});t(71695),t(19423),t(40251),t(47021);var o=t(57243),i=t(57816),a=(t(36439),t(25482)),s=t(7956);let r,l,d,c,u,p,h,m,f,g,_,$,w,y,k,v,b=e=>e;const z=(e,n)=>n.description_placeholders&&e.translation_placeholders?Object.assign(Object.assign({},e.translation_placeholders),n.description_placeholders):n.description_placeholders||e.translation_placeholders,x=(e,n)=>n.breaks_in_ha_version?(0,o.dy)(r||(r=b` <ha-alert alert-type="warning"> ${0} </ha-alert><br> `),e.localize("ui.panel.config.repairs.dialog.breaks_in_version",{version:n.breaks_in_ha_version})):"",F=(e,n,t)=>(0,s.w)(e,{startFlowHandler:n.domain,domain:n.domain,dialogClosedCallback:t},{flowType:"repair_flow",showDevices:!1,createFlow:async(e,t)=>{const[o]=await Promise.all([(0,a.F$)(e,t,n.issue_id),e.loadBackendTranslation("issues",n.domain),e.loadBackendTranslation("selector",n.domain)]);return o},fetchFlow:async(e,t)=>{const[o]=await Promise.all([(0,a.iU)(e,t),e.loadBackendTranslation("issues",n.domain),e.loadBackendTranslation("selector",n.domain)]);return o},handleFlowStep:a.eJ,deleteFlow:a.EB,renderAbortHeader(e){return(0,o.dy)(l||(l=b` ${0} <dialog-repairs-issue-subtitle .hass="${0}" .issue="${0}"></dialog-repairs-issue-subtitle> `),e.localize("ui.dialogs.repair_flow.form.header"),e,n)},renderAbortDescription(e,t){const i=e.localize(`component.${n.domain}.issues.${n.translation_key||n.issue_id}.fix_flow.abort.${t.reason}`,z(n,t));return(0,o.dy)(d||(d=b`${0} ${0}`),x(e,n),i?(0,o.dy)(c||(c=b` <ha-markdown breaks allow-svg .content="${0}"></ha-markdown> `),i):t.reason)},renderShowFormStepHeader(e,t){return(0,o.dy)(u||(u=b` ${0} <dialog-repairs-issue-subtitle .hass="${0}" .issue="${0}"></dialog-repairs-issue-subtitle> `),e.localize(`component.${n.domain}.issues.${n.translation_key||n.issue_id}.fix_flow.step.${t.step_id}.title`,z(n,t))||e.localize("ui.dialogs.repair_flow.form.header"),e,n)},renderShowFormStepDescription(e,t){const i=e.localize(`component.${n.domain}.issues.${n.translation_key||n.issue_id}.fix_flow.step.${t.step_id}.description`,z(n,t));return(0,o.dy)(p||(p=b`${0} ${0}`),x(e,n),i?(0,o.dy)(h||(h=b` <ha-markdown allow-svg breaks .content="${0}"></ha-markdown> `),i):o.Ld)},renderShowFormStepFieldLabel(e,t,o,i){return e.localize(`component.${n.domain}.issues.${n.translation_key||n.issue_id}.fix_flow.step.${t.step_id}.${null!=i&&i.prefix?`section.${i.prefix[0]}.`:""}data.${o.name}`,z(n,t))},renderShowFormStepFieldHelper(e,t,i,a){const s=e.localize(`component.${n.domain}.issues.${n.translation_key||n.issue_id}.fix_flow.step.${t.step_id}.${null!=a&&a.prefix?`section.${a.prefix[0]}.`:""}data_description.${i.name}`,z(n,t));return(0,o.dy)(m||(m=b`${0} ${0}`),x(e,n),s?(0,o.dy)(f||(f=b`<ha-markdown breaks .content="${0}"></ha-markdown>`),s):o.Ld)},renderShowFormStepFieldError(e,t,o){return e.localize(`component.${n.domain}.issues.${n.translation_key||n.issue_id}.fix_flow.error.${o}`,z(n,t))},renderShowFormStepFieldLocalizeValue(e,t,o){return e.localize(`component.${n.domain}.selector.${o}`)},renderShowFormStepSubmitButton(e,t){return e.localize(`component.${n.domain}.issues.${n.translation_key||n.issue_id}.fix_flow.step.${t.step_id}.submit`)||e.localize("ui.panel.config.integrations.config_flow."+(!1===t.last_step?"next":"submit"))},renderExternalStepHeader(e,n){return""},renderExternalStepDescription(e,n){return""},renderCreateEntryDescription(e,n){return(0,o.dy)(g||(g=b` <p>${0}</p> `),e.localize("ui.dialogs.repair_flow.success.description"))},renderShowFormProgressHeader(e,t){return(0,o.dy)(_||(_=b` ${0} <dialog-repairs-issue-subtitle .hass="${0}" .issue="${0}"></dialog-repairs-issue-subtitle> `),e.localize(`component.${n.domain}.issues.step.${n.translation_key||n.issue_id}.fix_flow.${t.step_id}.title`,z(n,t))||e.localize(`component.${n.domain}.title`),e,n)},renderShowFormProgressDescription(e,t){const i=e.localize(`component.${n.domain}.issues.${n.translation_key||n.issue_id}.fix_flow.progress.${t.progress_action}`,z(n,t));return(0,o.dy)($||($=b`${0}${0}`),x(e,n),i?(0,o.dy)(w||(w=b` <ha-markdown allow-svg breaks .content="${0}"></ha-markdown> `),i):o.Ld)},renderMenuHeader(e,t){return(0,o.dy)(y||(y=b` ${0} <dialog-repairs-issue-subtitle .hass="${0}" .issue="${0}"></dialog-repairs-issue-subtitle> `),e.localize(`component.${n.domain}.issues.${n.translation_key||n.issue_id}.fix_flow.step.${t.step_id}.title`,z(n,t))||e.localize(`component.${n.domain}.title`),e,n)},renderMenuDescription(e,t){const i=e.localize(`component.${n.domain}.issues.${n.translation_key||n.issue_id}.fix_flow.step.${t.step_id}.description`,z(n,t));return(0,o.dy)(k||(k=b`${0} ${0}`),x(e,n),i?(0,o.dy)(v||(v=b` <ha-markdown allow-svg breaks .content="${0}"></ha-markdown> `),i):o.Ld)},renderMenuOption(e,t,o){return e.localize(`component.${n.domain}.issues.${n.translation_key||n.issue_id}.fix_flow.step.${t.step_id}.menu_options.${o}`,z(n,t))},renderLoadingDescription(e,t){return e.localize(`component.${n.domain}.issues.${n.translation_key||n.issue_id}.fix_flow.loading`)||("loading_flow"===t||"loading_step"===t?e.localize(`ui.dialogs.repair_flow.loading.${t}`,{integration:(0,i.Lh)(e.localize,n.domain)}):"")}})},92015:function(e,n,t){t.d(n,{W:()=>a});t(71695),t(40251),t(47021);var o=t(36522);const i=()=>Promise.all([t.e("2142"),t.e("7442"),t.e("52430"),t.e("2778"),t.e("8399")]).then(t.bind(t,12627)),a=(e,n)=>{(0,o.B)(e,"show-dialog",{dialogTag:"dialog-repairs-issue",dialogImport:i,dialogParams:n})}},89868:function(e,n,t){t.d(n,{e:()=>s});t(40251),t(71695),t(19423),t(47021);var o=t(36522);const i=()=>Promise.all([t.e("66031"),t.e("91552"),t.e("97983"),t.e("78456"),t.e("56898"),t.e("35671"),t.e("2142"),t.e("29570"),t.e("8795"),t.e("71588"),t.e("92139"),t.e("32146"),t.e("31241"),t.e("47399"),t.e("63018"),t.e("18865"),t.e("44959"),t.e("63055"),t.e("70147"),t.e("79931"),t.e("44251"),t.e("65005"),t.e("60487"),t.e("3371"),t.e("1466"),t.e("38326"),t.e("10745"),t.e("80809"),t.e("70639"),t.e("92368"),t.e("39043"),t.e("37457"),t.e("72974"),t.e("73179"),t.e("60057")]).then(t.bind(t,6311)),a=()=>Promise.all([t.e("97983"),t.e("7010"),t.e("79096"),t.e("93278")]).then(t.bind(t,46511)),s=async(e,n)=>"units_changed"===n.type?((e,n)=>new Promise((t=>{const i=n.fixedCallback;(0,o.B)(e,"show-dialog",{dialogTag:"dialog-statistics-fix-units-changed",dialogImport:a,dialogParams:Object.assign(Object.assign({},n),{},{cancelCallback:()=>{t(!1)},fixedCallback:()=>{t(!0),null==i||i()}})})})))(e,{issue:n}):((e,n)=>new Promise((t=>{const a=n.fixedCallback;(0,o.B)(e,"show-dialog",{dialogTag:"dialog-statistics-fix",dialogImport:i,dialogParams:Object.assign(Object.assign({},n),{},{cancelCallback:()=>{t(!1)},fixedCallback:()=>{t(!0),null==a||a()}})})})))(e,{issue:n})},88238:function(e,n,t){t.d(n,{RU:()=>i,X1:()=>o,u4:()=>a,zC:()=>s});t(88044);const o=e=>`https://brands.home-assistant.io/${e.brand?"brands/":""}${e.useFallback?"_/":""}${e.domain}/${e.darkOptimized?"dark_":""}${e.type}.png`,i=e=>`https://brands.home-assistant.io/hardware/${e.category}/${e.darkOptimized?"dark_":""}${e.manufacturer}${e.model?`_${e.model}`:""}.png`,a=e=>e.split("/")[4],s=e=>e.startsWith("https://brands.home-assistant.io/")}}]);
//# sourceMappingURL=46226.93f8c48b7fa43f5f.js.map
;(self.