iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 22.7 kB
JavaScript
;(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["56500"],{49976:function(e,t,i){i.d(t,{U:()=>n});const n=e=>e.stopPropagation()},76320:function(e,t,i){i.d(t,{T:()=>n,y:()=>o});i(40251);const n=e=>{requestAnimationFrame((()=>setTimeout(e,0)))},o=()=>new Promise((e=>{n(e)}))},7285:function(e,t,i){i.d(t,{M:()=>h});var n=i(61701),o=i(72621),a=(i(71695),i(47021),i(65703)),s=i(46289),r=i(57243),l=i(50778);let d,c,p,u=e=>e,h=(0,n.Z)([(0,l.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,o.Z)(i,"renderRipple",this,3)([])}},{kind:"get",static:!0,key:"styles",value:function(){return[s.W,(0,r.iv)(d||(d=u`: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,r.iv)(c||(c=u`span.material-icons:first-of-type,span.material-icons:last-of-type{direction:rtl!important;--direction:rtl}`)):(0,r.iv)(p||(p=u``))]}}]}}),a.K)},92824:function(e,t,i){var n=i(61701),o=i(72621),a=(i(71695),i(40251),i(47021),i(60930)),s=i(9714),r=i(57243),l=i(50778),d=i(22381),c=i(76320);i(23334);let p,u,h,g,m=e=>e;(0,n.Z)([(0,l.Mo)("ha-select")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,l.Cb)({type:Boolean})],key:"icon",value(){return!1}},{kind:"field",decorators:[(0,l.Cb)({type:Boolean,reflect:!0})],key:"clearable",value(){return!1}},{kind:"field",decorators:[(0,l.Cb)({attribute:"inline-arrow",type:Boolean})],key:"inlineArrow",value(){return!1}},{kind:"field",decorators:[(0,l.Cb)()],key:"options",value:void 0},{kind:"method",key:"render",value:function(){return(0,r.dy)(p||(p=m` ${0} ${0} `),(0,o.Z)(i,"render",this,3)([]),this.clearable&&!this.required&&!this.disabled&&this.value?(0,r.dy)(u||(u=m`<ha-icon-button label="clear" @click="${0}" .path="${0}"></ha-icon-button>`),this._clearValue,"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"):r.Ld)}},{kind:"method",key:"renderLeadingIcon",value:function(){return this.icon?(0,r.dy)(h||(h=m`<span class="mdc-select__icon"><slot name="icon"></slot></span>`)):r.Ld}},{kind:"method",key:"connectedCallback",value:function(){(0,o.Z)(i,"connectedCallback",this,3)([]),window.addEventListener("translations-updated",this._translationsUpdated)}},{kind:"method",key:"firstUpdated",value:async function(){var e;((0,o.Z)(i,"firstUpdated",this,3)([]),this.inlineArrow)&&(null===(e=this.shadowRoot)||void 0===e||null===(e=e.querySelector(".mdc-select__selected-text-container"))||void 0===e||e.classList.add("inline-arrow"))}},{kind:"method",key:"updated",value:function(e){if((0,o.Z)(i,"updated",this,3)([e]),e.has("inlineArrow")){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".mdc-select__selected-text-container");this.inlineArrow?null==e||e.classList.add("inline-arrow"):null==e||e.classList.remove("inline-arrow")}e.get("options")&&(this.layoutOptions(),this.selectByValue(this.value))}},{kind:"method",key:"disconnectedCallback",value:function(){(0,o.Z)(i,"disconnectedCallback",this,3)([]),window.removeEventListener("translations-updated",this._translationsUpdated)}},{kind:"method",key:"_clearValue",value:function(){!this.disabled&&this.value&&(this.valueSetDirectly=!0,this.select(-1),this.mdcFoundation.handleChange())}},{kind:"field",key:"_translationsUpdated",value(){return(0,d.D)((async()=>{await(0,c.y)(),this.layoutOptions()}),500)}},{kind:"field",static:!0,key:"styles",value(){return[s.W,(0,r.iv)(g||(g=m`:host([clearable]){position:relative}.mdc-select:not(.mdc-select--disabled) .mdc-select__icon{color:var(--secondary-text-color)}.mdc-select__anchor{width:var(--ha-select-min-width,200px)}.mdc-select--filled .mdc-select__anchor{height:var(--ha-select-height,56px)}.mdc-select--filled .mdc-floating-label{inset-inline-start:12px;inset-inline-end:initial;direction:var(--direction)}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label{inset-inline-start:48px;inset-inline-end:initial;direction:var(--direction)}.mdc-select .mdc-select__anchor{padding-inline-start:12px;padding-inline-end:0px;direction:var(--direction)}.mdc-select__anchor .mdc-floating-label--float-above{transform-origin:var(--float-start)}.mdc-select__selected-text-container{padding-inline-end:var(--select-selected-text-padding-end,0px)}:host([clearable]) .mdc-select__selected-text-container{padding-inline-end:var(--select-selected-text-padding-end,12px)}ha-icon-button{position:absolute;top:10px;right:28px;--mdc-icon-button-size:36px;--mdc-icon-size:20px;color:var(--secondary-text-color);inset-inline-start:initial;inset-inline-end:28px;direction:var(--direction)}.inline-arrow{flex-grow:0}`))]}}]}}),a.K)},91838:function(e,t,i){i.r(t),i.d(t,{HaConversationAgentSelector:()=>C});var n=i(61701),o=(i(71695),i(47021),i(57243)),a=i(50778),s=i(72621),r=(i(19083),i(9359),i(1331),i(70104),i(40251),i(61006),i(36522)),l=i(49976),d=i(22381),c=i(75101),p=i(42740),u=i(57816),h=i(91854),g=(i(7285),i(92824),i(63318));let m,_,v,y,f,k=e=>e;const b="__NONE_OPTION__";(0,n.Z)([(0,a.Mo)("ha-conversation-agent-picker")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,a.Cb)()],key:"value",value:void 0},{kind:"field",decorators:[(0,a.Cb)()],key:"language",value:void 0},{kind:"field",decorators:[(0,a.Cb)()],key:"label",value:void 0},{kind:"field",decorators:[(0,a.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,a.Cb)({type:Boolean,reflect:!0})],key:"disabled",value(){return!1}},{kind:"field",decorators:[(0,a.Cb)({type:Boolean})],key:"required",value(){return!1}},{kind:"field",decorators:[(0,a.SB)()],key:"_agents",value:void 0},{kind:"field",decorators:[(0,a.SB)()],key:"_configEntry",value:void 0},{kind:"method",key:"render",value:function(){var e;if(!this._agents)return o.Ld;let t=this.value;if(!t&&this.required){for(const e of this._agents)if("conversation.home_assistant"===e.id&&e.supported_languages.includes(this.language)){t=e.id;break}if(!t)for(const e of this._agents)if("*"===e.supported_languages&&e.supported_languages.includes(this.language)){t=e.id;break}}return t||(t=b),(0,o.dy)(m||(m=k` <ha-select .label="${0}" .value="${0}" .required="${0}" .disabled="${0}" @selected="${0}" @closed="${0}" fixedMenuPosition naturalMenuWidth> ${0} ${0}</ha-select>${0} `),this.label||this.hass.localize("ui.components.coversation-agent-picker.conversation_agent"),t,this.required,this.disabled,this._changed,l.U,this.required?o.Ld:(0,o.dy)(_||(_=k`<ha-list-item .value="${0}"> ${0} </ha-list-item>`),b,this.hass.localize("ui.components.coversation-agent-picker.none")),this._agents.map((e=>(0,o.dy)(v||(v=k`<ha-list-item .value="${0}" .disabled="${0}"> ${0} </ha-list-item>`),e.id,"*"!==e.supported_languages&&0===e.supported_languages.length,e.name))),null!==(e=this._configEntry)&&void 0!==e&&e.supports_options?(0,o.dy)(y||(y=k`<ha-icon-button .path="${0}" @click="${0}"></ha-icon-button>`),"M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",this._openOptionsFlow):"")}},{kind:"method",key:"willUpdate",value:function(e){(0,s.Z)(i,"willUpdate",this,3)([e]),this.hasUpdated?e.has("language")&&this._debouncedUpdateAgents():this._updateAgents(),e.has("value")&&this._maybeFetchConfigEntry()}},{kind:"method",key:"_maybeFetchConfigEntry",value:async function(){if(this.value&&this.value in this.hass.entities)try{const e=await(0,g.L3)(this.hass,this.value);if(!e.config_entry_id)return void(this._configEntry=void 0);this._configEntry=(await(0,c.RQ)(this.hass,e.config_entry_id)).config_entry}catch(e){this._configEntry=void 0}else this._configEntry=void 0}},{kind:"field",key:"_debouncedUpdateAgents",value(){return(0,d.D)((()=>this._updateAgents()),500)}},{kind:"method",key:"_updateAgents",value:async function(){const{agents:e}=await(0,p.rM)(this.hass,this.language,this.hass.config.country||void 0);if(this._agents=e,!this.value)return;const t=e.find((e=>e.id===this.value));(0,r.B)(this,"supported-languages-changed",{value:null==t?void 0:t.supported_languages}),(!t||"*"!==t.supported_languages&&0===t.supported_languages.length)&&(this.value=void 0,(0,r.B)(this,"value-changed",{value:this.value}))}},{kind:"method",key:"_openOptionsFlow",value:async function(){this._configEntry&&(0,h.c)(this,this._configEntry,{manifest:await(0,u.t4)(this.hass,this._configEntry.domain)})}},{kind:"field",static:!0,key:"styles",value(){return(0,o.iv)(f||(f=k`:host{display:flex;align-items:center}ha-select{width:100%}ha-icon-button{color:var(--secondary-text-color)}`))}},{kind:"method",key:"_changed",value:function(e){var t;const i=e.target;!this.hass||""===i.value||i.value===this.value||void 0===this.value&&i.value===b||(this.value=i.value===b?void 0:i.value,(0,r.B)(this,"value-changed",{value:this.value}),(0,r.B)(this,"supported-languages-changed",{value:null===(t=this._agents.find((e=>e.id===this.value)))||void 0===t?void 0:t.supported_languages}))}}]}}),o.oi);let w,$,x=e=>e,C=(0,n.Z)([(0,a.Mo)("ha-selector-conversation_agent")],(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)({attribute:!1})],key:"selector",value:void 0},{kind:"field",decorators:[(0,a.Cb)()],key:"value",value:void 0},{kind:"field",decorators:[(0,a.Cb)()],key:"label",value:void 0},{kind:"field",decorators:[(0,a.Cb)()],key:"helper",value:void 0},{kind:"field",decorators:[(0,a.Cb)({type:Boolean})],key:"disabled",value(){return!1}},{kind:"field",decorators:[(0,a.Cb)({type:Boolean})],key:"required",value(){return!0}},{kind:"field",decorators:[(0,a.Cb)({attribute:!1})],key:"context",value:void 0},{kind:"method",key:"render",value:function(){var e,t;return(0,o.dy)(w||(w=x`<ha-conversation-agent-picker .hass="${0}" .value="${0}" .language="${0}" .label="${0}" .helper="${0}" .disabled="${0}" .required="${0}"></ha-conversation-agent-picker>`),this.hass,this.value,(null===(e=this.selector.conversation_agent)||void 0===e?void 0:e.language)||(null===(t=this.context)||void 0===t?void 0:t.language),this.label,this.helper,this.disabled,this.required)}},{kind:"field",static:!0,key:"styles",value(){return(0,o.iv)($||($=x`ha-conversation-agent-picker{width:100%}`))}}]}}),o.oi)},75101:function(e,t,i){i.d(t,{$H:()=>n,DJ:()=>r,LZ:()=>a,Nn:()=>u,Ny:()=>h,Pk:()=>m,Q4:()=>s,RQ:()=>d,SO:()=>c,T0:()=>g,aR:()=>o,iJ:()=>p,pB:()=>l});i(71695),i(9359),i(56475),i(1331),i(19423),i(47021);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=99387==i.j?["migration_error","setup_error","setup_retry"]:null,s=99387==i.j?["not_loaded","loaded","setup_error","setup_retry"]:null,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(Object.assign({type:"config_entries/get"},i))},d=(e,t)=>e.callWS({type:"config_entries/get_single",entry_id:t}),c=(e,t,i)=>e.callWS(Object.assign({type:"config_entries/update",entry_id:t},i)),p=(e,t)=>e.callApi("DELETE",`config/config_entries/entry/${t}`),u=(e,t)=>e.callApi("POST",`config/config_entries/entry/${t}/reload`),h=(e,t)=>e.callWS({type:"config_entries/disable",entry_id:t,disabled_by:"user"}),g=(e,t)=>e.callWS({type:"config_entries/disable",entry_id:t,disabled_by:null}),m=(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))]}},42740:function(e,t,i){if(i.d(t,{KH:()=>r,T1:()=>s,rM:()=>a,zt:()=>o}),99387==i.j)var n=i(95262);let o=function(e){return e[e.CONTROL=1]="CONTROL",e}({});const a=(e,t,i)=>e.callWS({type:"conversation/agent/list",language:t,country:i}),s=(e,t,i,o)=>e.callWS({type:"conversation/agent/homeassistant/debug",sentences:(0,n.r)(t),language:i,device_id:o}),r=(e,t,i)=>e.callWS({type:"conversation/agent/homeassistant/language_scores",language:t,country:i})},63318:function(e,t,i){i.d(t,{Iq:()=>g,L3:()=>h,LM:()=>k,Mw:()=>$,Nv:()=>m,_V:()=>b,eD:()=>c,tf:()=>y,vA:()=>u,w1:()=>w,wX:()=>p,z3:()=>_});i(19083),i(71695),i(61893),i(9359),i(56475),i(1331),i(19423),i(47021);if(66977!=i.j)var n=i(62212);var o=i(27486),a=i(47194),s=i(1416),r=i(22381);if(66977!=i.j)var l=i(73850);const d=66977!=i.j?["sensor","binary_sensor"]:null,c=(e,t)=>{const i=t.filter((t=>e.states[t.entity_id]&&"battery"===e.states[t.entity_id].attributes.device_class&&d.includes((0,l.M)(t.entity_id)))).sort(((e,t)=>d.indexOf((0,l.M)(e.entity_id))-d.indexOf((0,l.M)(t.entity_id))));if(i.length>0)return i[0]},p=(e,t)=>t.find((t=>e.states[t.entity_id]&&"battery_charging"===e.states[t.entity_id].attributes.device_class)),u=(e,t)=>{if(t.name)return t.name;const i=e.states[t.entity_id];return i?(0,a.C)(i):t.original_name?t.original_name:t.entity_id},h=(e,t)=>e.callWS({type:"config/entity_registry/get",entity_id:t}),g=(e,t)=>e.callWS({type:"config/entity_registry/get_entries",entity_ids:t}),m=(e,t,i)=>e.callWS(Object.assign({type:"config/entity_registry/update",entity_id:t},i)),_=(e,t)=>e.callWS({type:"config/entity_registry/remove",entity_id:t}),v=e=>e.sendMessagePromise({type:"config/entity_registry/list"}),y=e=>e.sendMessagePromise({type:"config/entity_registry/list_for_display"}),f=(e,t)=>e.subscribeEvents((0,r.D)((()=>v(e).then((e=>t.setState(e,!0)))),500,!0),"entity_registry_updated"),k=(e,t)=>(0,n.B)("_entityRegistry",v,f,e,t),b=(e,t)=>e.sort(((e,i)=>(0,s.fe)(e.name||"",i.name||"",t))),w=(0,o.Z)((e=>{const t={};for(const i of e)t[i.entity_id]=i;return t})),$=(0,o.Z)((e=>{const t={};for(const i of e)t[i.id]=i;return t}))},57816:function(e,t,i){if(i.d(t,{F3:()=>d,H0:()=>r,Lh:()=>l,Mt:()=>p,O:()=>m,RO:()=>h,WH:()=>s,ez:()=>a,t4:()=>c}),99387==i.j)var n=i(62212);var o=i(22381);const a=99387==i.j?{bluetooth:"config/bluetooth",matter:"config/matter",mqtt:"config/mqtt",thread:"config/thread",zha:"config/zha/dashboard",zwave_js:"config/zwave_js/dashboard"}:null;let s=99387==i.j?function(e){return e[e.CRITICAL=50]="CRITICAL",e[e.ERROR=40]="ERROR",e[e.WARNING=30]="WARNING",e[e.INFO=20]="INFO",e[e.DEBUG=10]="DEBUG",e[e.NOTSET=0]="NOTSET",e}({}):null;const r=(e,t)=>t.issue_tracker||`https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+${e}%22`,l=(e,t,i)=>e(`component.${t}.title`)||(null==i?void 0:i.name)||t,d=(e,t)=>{const i={type:"manifest/list"};return t&&(i.integrations=t),e.callWS(i)},c=(e,t)=>e.callWS({type:"manifest/get",integration:t}),p=e=>e.callWS({type:"integration/setup_info"}),u=e=>e.sendMessagePromise({type:"logger/log_info"}),h=(e,t,i,n)=>e.callWS({type:"logger/integration_log_level",integration:t,level:i,persistence:n}),g=(e,t)=>e.subscribeEvents((0,o.D)((()=>u(e).then((e=>t.setState(e,!0)))),200,!0),"logging_changed"),m=(e,t)=>(0,n.B)("_integration_log_info",u,g,e,t)},45594:function(e,t,i){i.d(t,{Fv:()=>s,e1:()=>a,eH:()=>n,lJ:()=>o});const n=(e,t)=>{var i;return e.callApi("POST","config/config_entries/options/flow",{handler:t,show_advanced_options:Boolean(null===(i=e.userData)||void 0===i?void 0:i.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}`)},7956:function(e,t,i){i.d(t,{w:()=>a});i(71695),i(19423),i(40251),i(47021);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("78943"),i.e("2142"),i.e("58640"),i.e("52430"),i.e("4697"),i.e("8871"),i.e("27090"),i.e("8949")]).then(i.bind(i,12656)),a=(e,t,i)=>{(0,n.B)(e,"show-dialog",{dialogTag:"dialog-data-entry-flow",dialogImport:o,dialogParams:Object.assign(Object.assign({},t),{},{flowConfig:i,dialogParentElement:e})})}},91854:function(e,t,i){i.d(t,{c:()=>g});i(71695),i(19423),i(40251),i(47021);var n=i(57243),o=i(57816),a=i(45594),s=i(7956);let r,l,d,c,p,u,h=e=>e;const g=(e,t,i)=>(0,s.w)(e,Object.assign({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?(0,n.dy)(r||(r=h` <ha-markdown breaks allow-svg .content="${0}"></ha-markdown> `),o):i.reason},renderShowFormStepHeader(e,i){return 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?(0,n.dy)(l||(l=h` <ha-markdown allow-svg breaks .content="${0}"></ha-markdown> `),o):""},renderShowFormStepFieldLabel(e,i,n,o){var a;if("expandable"===n.type)return e.localize(`component.${t.domain}.options.step.${i.step_id}.sections.${n.name}.name`);const s=null!=o&&null!==(a=o.path)&&void 0!==a&&a[0]?`sections.${o.path[0]}.`:"";return e.localize(`component.${t.domain}.options.step.${i.step_id}.${s}data.${n.name}`)||n.name},renderShowFormStepFieldHelper(e,i,o,a){var s;if("expandable"===o.type)return e.localize(`component.${i.translation_domain||t.domain}.options.step.${i.step_id}.sections.${o.name}.description`);const r=null!=a&&null!==(s=a.path)&&void 0!==s&&s[0]?`sections.${a.path[0]}.`:"",l=e.localize(`component.${i.translation_domain||t.domain}.options.step.${i.step_id}.${r}data_description.${o.name}`,i.description_placeholders);return l?(0,n.dy)(d||(d=h`<ha-markdown breaks .content="${0}"></ha-markdown>`),l):""},renderShowFormStepFieldError(e,i,n){return e.localize(`component.${i.translation_domain||t.domain}.options.error.${n}`,i.description_placeholders)||n},renderShowFormStepFieldLocalizeValue(e,i,n){return e.localize(`component.${t.domain}.selector.${n}`)},renderShowFormStepSubmitButton(e,i){return 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){return""},renderExternalStepDescription(e,t){return""},renderCreateEntryDescription(e,t){return(0,n.dy)(c||(c=h` <p>${0}</p> `),e.localize("ui.dialogs.options_flow.success.description"))},renderShowFormProgressHeader(e,i){return 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?(0,n.dy)(p||(p=h` <ha-markdown allow-svg breaks .content="${0}"></ha-markdown> `),o):""},renderMenuHeader(e,i){return 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?(0,n.dy)(u||(u=h` <ha-markdown allow-svg breaks .content="${0}"></ha-markdown> `),o):""},renderMenuOption(e,i,n){return e.localize(`component.${i.translation_domain||t.domain}.options.step.${i.step_id}.menu_options.${n}`,i.description_placeholders)},renderLoadingDescription(e,i){return 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)}):"")}})}}]);
//# sourceMappingURL=56500.ba725d295920e327.js.map