Files
2026-01-30 23:31:00 -06:00

6 lines
42 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*! For license information please see 9894.a66f08c03278c8ac.js.LICENSE.txt */
export const ids=["9894"];export const modules={2292:function(e,t,i){var s={"./flow-preview-generic.ts":["7433","1552","686","6898","513","2206","4224","2139","2973","1160","5958","6160","4044","7599","669"],"./flow-preview-generic_camera.ts":["96738","1552","686","6898","513","2206","4224","2139","2973","1160","5958","6160","4044","7599","9336"],"./flow-preview-generic":["7433","1552","686","6898","513","2206","4224","2139","2973","1160","5958","6160","4044","7599","669"],"./flow-preview-generic_camera":["96738","1552","686","6898","513","2206","4224","2139","2973","1160","5958","6160","4044","7599","9336"],"./flow-preview-template.ts":["76144","1552","686","6898","513","2206","4224","2139","2973","1160","5958","6160","4044","7599","8063"],"./flow-preview-template":["76144","1552","686","6898","513","2206","4224","2139","2973","1160","5958","6160","4044","7599","8063"]};function n(e){if(!i.o(s,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=s[e],n=t[0];return Promise.all(t.slice(1).map(i.e)).then((function(){return i(n)}))}n.keys=()=>Object.keys(s),n.id="2292",e.exports=n},69181:function(e,t,i){var s=i(44249),n=(i(39527),i(92181),i(99790),i(13334),i(36993),i(57243)),a=i(50778),o=i(35359),r=i(27486),l=i(11297),d=i(79575),c=i(59848),h=i(71656),u=i(99523),p=i(4557),f=i(88233);i(69484),i(59897),i(74064),i(10508);const m=e=>n.dy`<ha-list-item graphic="icon" class="${(0,o.$)({"add-new":e.area_id===g})}"> ${e.icon?n.dy`<ha-icon slot="graphic" .icon="${e.icon}"></ha-icon>`:n.dy`<ha-svg-icon slot="graphic" .path="${"M20 2H4C2.9 2 2 2.9 2 4V20C2 21.11 2.9 22 4 22H20C21.11 22 22 21.11 22 20V4C22 2.9 21.11 2 20 2M4 6L6 4H10.9L4 10.9V6M4 13.7L13.7 4H18.6L4 18.6V13.7M20 18L18 20H13.1L20 13.1V18M20 10.3L10.3 20H5.4L20 5.4V10.3Z"}"></ha-svg-icon>`} ${e.name} </ha-list-item>`,g="___ADD_NEW___",_="___NO_ITEMS___",v="___ADD_NEW_SUGGESTION___";(0,s.Z)([(0,a.Mo)("ha-area-picker")],(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)()],key:"label",value:void 0},{kind:"field",decorators:[(0,a.Cb)()],key:"value",value:void 0},{kind:"field",decorators:[(0,a.Cb)()],key:"helper",value:void 0},{kind:"field",decorators:[(0,a.Cb)()],key:"placeholder",value:void 0},{kind:"field",decorators:[(0,a.Cb)({type:Boolean,attribute:"no-add"})],key:"noAdd",value:()=>!1},{kind:"field",decorators:[(0,a.Cb)({type:Array,attribute:"include-domains"})],key:"includeDomains",value:void 0},{kind:"field",decorators:[(0,a.Cb)({type:Array,attribute:"exclude-domains"})],key:"excludeDomains",value:void 0},{kind:"field",decorators:[(0,a.Cb)({type:Array,attribute:"include-device-classes"})],key:"includeDeviceClasses",value:void 0},{kind:"field",decorators:[(0,a.Cb)({type:Array,attribute:"exclude-areas"})],key:"excludeAreas",value:void 0},{kind:"field",decorators:[(0,a.Cb)({attribute:!1})],key:"deviceFilter",value:void 0},{kind:"field",decorators:[(0,a.Cb)({attribute:!1})],key:"entityFilter",value:void 0},{kind:"field",decorators:[(0,a.Cb)({type:Boolean})],key:"disabled",value:()=>!1},{kind:"field",decorators:[(0,a.Cb)({type:Boolean})],key:"required",value:()=>!1},{kind:"field",decorators:[(0,a.SB)()],key:"_opened",value:void 0},{kind:"field",decorators:[(0,a.IO)("ha-combo-box",!0)],key:"comboBox",value:void 0},{kind:"field",key:"_suggestion",value:void 0},{kind:"field",key:"_init",value:()=>!1},{kind:"method",key:"open",value:async function(){await this.updateComplete,await(this.comboBox?.open())}},{kind:"method",key:"focus",value:async function(){await this.updateComplete,await(this.comboBox?.focus())}},{kind:"field",key:"_getAreas",value(){return(0,r.Z)(((e,t,i,s,n,a,o,r,l,c)=>{let h,p,f={};(s||n||a||o||r)&&(f=(0,u.R6)(i),h=t,p=i.filter((e=>e.area_id)),s&&(h=h.filter((e=>{const t=f[e.id];return!(!t||!t.length)&&f[e.id].some((e=>s.includes((0,d.M)(e.entity_id))))})),p=p.filter((e=>s.includes((0,d.M)(e.entity_id))))),n&&(h=h.filter((e=>{const t=f[e.id];return!t||!t.length||i.every((e=>!n.includes((0,d.M)(e.entity_id))))})),p=p.filter((e=>!n.includes((0,d.M)(e.entity_id))))),a&&(h=h.filter((e=>{const t=f[e.id];return!(!t||!t.length)&&f[e.id].some((e=>{const t=this.hass.states[e.entity_id];return!!t&&(t.attributes.device_class&&a.includes(t.attributes.device_class))}))})),p=p.filter((e=>{const t=this.hass.states[e.entity_id];return t.attributes.device_class&&a.includes(t.attributes.device_class)}))),o&&(h=h.filter((e=>o(e)))),r&&(h=h.filter((e=>{const t=f[e.id];return!(!t||!t.length)&&f[e.id].some((e=>{const t=this.hass.states[e.entity_id];return!!t&&r(t)}))})),p=p.filter((e=>{const t=this.hass.states[e.entity_id];return!!t&&r(t)}))));let m,v=e;return h&&(m=h.filter((e=>e.area_id)).map((e=>e.area_id))),p&&(m=(m??[]).concat(p.filter((e=>e.area_id)).map((e=>e.area_id)))),m&&(v=v.filter((e=>m.includes(e.area_id)))),c&&(v=v.filter((e=>!c.includes(e.area_id)))),v.length||(v=[{area_id:_,floor_id:null,name:this.hass.localize("ui.components.area-picker.no_areas"),picture:null,icon:null,aliases:[],labels:[],created_at:0,modified_at:0}]),l?v:[...v,{area_id:g,floor_id:null,name:this.hass.localize("ui.components.area-picker.add_new"),picture:null,icon:"mdi:plus",aliases:[],labels:[],created_at:0,modified_at:0}]}))}},{kind:"method",key:"updated",value:function(e){if(!this._init&&this.hass||this._init&&e.has("_opened")&&this._opened){this._init=!0;const e=this._getAreas(Object.values(this.hass.areas),Object.values(this.hass.devices),Object.values(this.hass.entities),this.includeDomains,this.excludeDomains,this.includeDeviceClasses,this.deviceFilter,this.entityFilter,this.noAdd,this.excludeAreas).map((e=>({...e,strings:[e.area_id,...e.aliases,e.name]})));this.comboBox.items=e,this.comboBox.filteredItems=e}}},{kind:"method",key:"render",value:function(){return n.dy` <ha-combo-box .hass="${this.hass}" .helper="${this.helper}" item-value-path="area_id" item-id-path="area_id" item-label-path="name" .value="${this._value}" .disabled="${this.disabled}" .required="${this.required}" .label="${void 0===this.label&&this.hass?this.hass.localize("ui.components.area-picker.area"):this.label}" .placeholder="${this.placeholder?this.hass.areas[this.placeholder]?.name:void 0}" .renderer="${m}" @filter-changed="${this._filterChanged}" @opened-changed="${this._openedChanged}" @value-changed="${this._areaChanged}"> </ha-combo-box> `}},{kind:"method",key:"_filterChanged",value:function(e){const t=e.target,i=e.detail.value;if(!i)return void(this.comboBox.filteredItems=this.comboBox.items);const s=(0,c.q)(i,t.items?.filter((e=>![_,g].includes(e.label_id)))||[]);0===s.length?this.noAdd?(this._suggestion=i,this.comboBox.filteredItems=[{area_id:v,floor_id:null,name:this.hass.localize("ui.components.area-picker.add_new_sugestion",{name:this._suggestion}),icon:"mdi:plus",picture:null,labels:[],aliases:[],created_at:0,modified_at:0}]):this.comboBox.filteredItems=[{area_id:_,floor_id:null,name:this.hass.localize("ui.components.area-picker.no_match"),icon:null,picture:null,labels:[],aliases:[],created_at:0,modified_at:0}]:this.comboBox.filteredItems=s}},{kind:"get",key:"_value",value:function(){return this.value||""}},{kind:"method",key:"_openedChanged",value:function(e){this._opened=e.detail.value}},{kind:"method",key:"_areaChanged",value:function(e){e.stopPropagation();let t=e.detail.value;if(t===_)return t="",void this.comboBox.setInputValue("");[v,g].includes(t)?(e.target.value=this._value,this.hass.loadFragmentTranslation("config"),(0,f.E)(this,{suggestedName:t===v?this._suggestion:"",createEntry:async e=>{try{const t=await(0,h.Lo)(this.hass,e),i=[...Object.values(this.hass.areas),t];this.comboBox.filteredItems=this._getAreas(i,Object.values(this.hass.devices),Object.values(this.hass.entities),this.includeDomains,this.excludeDomains,this.includeDeviceClasses,this.deviceFilter,this.entityFilter,this.noAdd,this.excludeAreas),await this.updateComplete,await this.comboBox.updateComplete,this._setValue(t.area_id)}catch(e){(0,p.Ys)(this,{title:this.hass.localize("ui.components.area-picker.failed_create_area"),text:e.message})}}}),this._suggestion=void 0,this.comboBox.setInputValue("")):t!==this._value&&this._setValue(t)}},{kind:"method",key:"_setValue",value:function(e){this.value=e,setTimeout((()=>{(0,l.B)(this,"value-changed",{value:e}),(0,l.B)(this,"change")}),0)}}]}}),n.oi)},90977:function(e,t,i){var s=i(44249),n=i(72621),a=i(58795),o=i(57243),r=i(50778);(0,s.Z)([(0,r.Mo)("ha-circular-progress")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,r.Cb)({attribute:"aria-label",type:String})],key:"ariaLabel",value:()=>"Loading"},{kind:"field",decorators:[(0,r.Cb)()],key:"size",value:void 0},{kind:"method",key:"updated",value:function(e){if((0,n.Z)(i,"updated",this,3)([e]),e.has("size"))switch(this.size){case"tiny":this.style.setProperty("--md-circular-progress-size","16px");break;case"small":this.style.setProperty("--md-circular-progress-size","28px");break;case"medium":this.style.setProperty("--md-circular-progress-size","48px");break;case"large":this.style.setProperty("--md-circular-progress-size","68px")}}},{kind:"field",static:!0,key:"styles",value(){return[...(0,n.Z)(i,"styles",this),o.iv`:host{--md-sys-color-primary:var(--primary-color);--md-circular-progress-size:48px}`]}}]}}),a.B)},12328:function(e,t,i){i.d(t,{x:function(){return s}});i(39527),i(41360);const s=e=>{const t={};return e.forEach((e=>{if(void 0!==e.description?.suggested_value&&null!==e.description?.suggested_value)t[e.name]=e.description.suggested_value;else if("default"in e)t[e.name]=e.default;else if(e.required){if("boolean"===e.type)t[e.name]=!1;else if("string"===e.type)t[e.name]="";else if("integer"===e.type)t[e.name]="valueMin"in e?e.valueMin:0;else if("constant"===e.type)t[e.name]=e.value;else if("float"===e.type)t[e.name]=0;else if("select"===e.type){if(e.options.length){const i=e.options[0];t[e.name]=Array.isArray(i)?i[0]:i}}else if("positive_time_period_dict"===e.type)t[e.name]={hours:0,minutes:0,seconds:0};else if("expandable"===e.type)t[e.name]=s(e.schema);else if("selector"in e){const i=e.selector;if("device"in i)t[e.name]=i.device?.multiple?[]:"";else if("entity"in i)t[e.name]=i.entity?.multiple?[]:"";else if("area"in i)t[e.name]=i.area?.multiple?[]:"";else if("label"in i)t[e.name]=i.label?.multiple?[]:"";else if("boolean"in i)t[e.name]=!1;else if("addon"in i||"attribute"in i||"file"in i||"icon"in i||"template"in i||"text"in i||"theme"in i||"object"in i)t[e.name]="";else if("number"in i)t[e.name]=i.number?.min??0;else if("select"in i){if(i.select?.options.length){const s=i.select.options[0],n="string"==typeof s?s:s.value;t[e.name]=i.select.multiple?[n]:n}}else if("country"in i)i.country?.countries?.length&&(t[e.name]=i.country.countries[0]);else if("language"in i)i.language?.languages?.length&&(t[e.name]=i.language.languages[0]);else if("duration"in i)t[e.name]={hours:0,minutes:0,seconds:0};else if("time"in i)t[e.name]="00:00:00";else if("date"in i||"datetime"in i){const i=(new Date).toISOString().slice(0,10);t[e.name]=`${i}T00:00:00`}else if("color_rgb"in i)t[e.name]=[0,0,0];else if("color_temp"in i)t[e.name]=i.color_temp?.min_mireds??153;else if("action"in i||"trigger"in i||"condition"in i)t[e.name]=[];else{if(!("media"in i)&&!("target"in i))throw new Error(`Selector ${Object.keys(i)[0]} not supported in initial form data`);t[e.name]={}}}}else;})),t}},54220:function(e,t,i){i.r(t),i.d(t,{HaIconNext:function(){return r}});var s=i(44249),n=i(50778),a=i(13089),o=i(10508);let r=(0,s.Z)([(0,n.Mo)("ha-icon-next")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,n.Cb)()],key:"path",value:()=>"rtl"===a.E.document.dir?"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z":"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"}]}}),o.HaSvgIcon)},71656:function(e,t,i){i.d(t,{IO:function(){return a},Lo:function(){return n},a:function(){return o}});i(92745);var s=i(32770);i(86912);const n=(e,t)=>e.callWS({type:"config/area_registry/create",...t}),a=(e,t,i)=>e.callWS({type:"config/area_registry/update",area_id:t,...i}),o=(e,t)=>(i,n)=>{const a=t?t.indexOf(i):-1,o=t?t.indexOf(n):-1;if(-1===a&&-1===o){const t=e?.[i]?.name??i,a=e?.[n]?.name??n;return(0,s.$)(t,a)}return-1===a?1:-1===o?-1:a-o}},80495:function(e,t,i){i.d(t,{Bg:function(){return h},DT:function(){return c},SY:function(){return l},aJ:function(){return o},cz:function(){return r},ko:function(){return d}});var s=i(4468),n=i(36719);let a=function(e){return e[e.ANNOUNCE=1]="ANNOUNCE",e}({});const o=(e,t,i)=>e.connection.subscribeMessage(i,{type:"assist_satellite/intercept_wake_word",entity_id:t}),r=(e,t)=>e.callWS({type:"assist_satellite/test_connection",entity_id:t}),l=(e,t,i)=>e.callService("assist_satellite","announce",{message:i},{entity_id:t}),d=(e,t)=>e.callWS({type:"assist_satellite/get_configuration",entity_id:t}),c=(e,t,i)=>e.callWS({type:"assist_satellite/set_wake_words",entity_id:t,wake_word_ids:i}),h=e=>e&&e.state!==n.nZ&&(0,s.e)(e,a.ANNOUNCE)},41946:function(e,t,i){i.d(t,{iI:function(){return n},oT:function(){return s}});i(13334);const s=e=>e.map((e=>{if("string"!==e.type)return e;switch(e.name){case"username":return{...e,autocomplete:"username",autofocus:!0};case"password":return{...e,autocomplete:"current-password"};case"code":return{...e,autocomplete:"one-time-code",autofocus:!0};default:return e}})),n=(e,t)=>e.callWS({type:"auth/sign_path",path:t})},79983:function(e,t,i){i.d(t,{D4:function(){return a},D7:function(){return d},Ky:function(){return n},XO:function(){return o},d4:function(){return l},oi:function(){return r}});const s={"HA-Frontend-Base":`${location.protocol}//${location.host}`},n=(e,t,i)=>e.callApi("POST","config/config_entries/flow",{handler:t,show_advanced_options:Boolean(e.userData?.showAdvanced),entry_id:i},s),a=(e,t)=>e.callApi("GET",`config/config_entries/flow/${t}`,void 0,s),o=(e,t,i)=>e.callApi("POST",`config/config_entries/flow/${t}`,i,s),r=(e,t)=>e.callApi("DELETE",`config/config_entries/flow/${t}`),l=(e,t)=>e.callApi("GET","config/config_entries/flow_handlers"+(t?`?type=${t}`:"")),d=e=>e.sendMessagePromise({type:"config_entries/flow/progress"})},36719:function(e,t,i){i.d(t,{ON:function(){return o},PX:function(){return r},V_:function(){return l},lz:function(){return a},nZ:function(){return n},rk:function(){return c}});var s=i(95907);const n="unavailable",a="unknown",o="on",r="off",l=[n,a],d=[n,a,r],c=(0,s.z)(l);(0,s.z)(d)},44699:function(e,t,i){i.d(t,{H:function(){return n},O:function(){return a}});const s=["generic_camera","template"],n=(e,t,i,s,n,a)=>e.connection.subscribeMessage(a,{type:`${t}/start_preview`,flow_id:i,flow_type:s,user_input:n}),a=e=>s.includes(e)?e:"generic"},86912:function(e,t,i){i(32770)},69817:function(e,t,i){var s=i("44249"),n=i("72621"),a=(i("31622"),i("57243")),o=i("50778"),r=i("11297");i("90977"),i("44118"),i("59897");var l=i("66193"),d=i("26205"),c=i("4557");const h=()=>i.e("3393").then(i.bind(i,27295));var u=i("18694");const p=a.iv`h2{margin:24px 38px 0 0;margin-inline-start:0px;margin-inline-end:38px;padding:0 24px;padding-inline-start:24px;padding-inline-end:24px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(
--mdc-typography-headline6-font-family,
var(--mdc-typography-font-family, Roboto, sans-serif)
);font-size:var(--mdc-typography-headline6-font-size, 1.25rem);line-height:var(--mdc-typography-headline6-line-height, 2rem);font-weight:var(--mdc-typography-headline6-font-weight,500);letter-spacing:var(--mdc-typography-headline6-letter-spacing, .0125em);text-decoration:var(--mdc-typography-headline6-text-decoration,inherit);text-transform:var(--mdc-typography-headline6-text-transform,inherit);box-sizing:border-box}.content,.preview{margin-top:20px;padding:0 24px}.buttons{position:relative;padding:8px 16px 8px 24px;margin:8px 0 0;color:var(--primary-color);display:flex;justify-content:flex-end}ha-markdown{overflow-wrap:break-word}ha-markdown a{color:var(--primary-color)}ha-markdown img:first-child:last-child{display:block;margin:0 auto}`;(0,s.Z)([(0,o.Mo)("step-flow-abort")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"params",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"step",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"domain",value:void 0},{kind:"method",key:"firstUpdated",value:function(e){(0,n.Z)(i,"firstUpdated",this,3)([e]),"missing_credentials"===this.step.reason&&this._handleMissingCreds()}},{kind:"method",key:"render",value:function(){return"missing_credentials"===this.step.reason?a.Ld:a.dy` <h2> ${this.params.flowConfig.renderAbortHeader?this.params.flowConfig.renderAbortHeader(this.hass,this.step):this.hass.localize(`component.${this.domain}.title`)} </h2> <div class="content"> ${this.params.flowConfig.renderAbortDescription(this.hass,this.step)} </div> <div class="buttons"> <mwc-button @click="${this._flowDone}">${this.hass.localize("ui.panel.config.integrations.config_flow.close")}</mwc-button> </div> `}},{kind:"method",key:"_handleMissingCreds",value:async function(){var e,t;e=this.params.dialogParentElement,t={selectedDomain:this.domain,manifest:this.params.manifest,applicationCredentialAddedCallback:()=>{(0,u.t)(this.params.dialogParentElement,{dialogClosedCallback:this.params.dialogClosedCallback,startFlowHandler:this.domain,showAdvanced:this.hass.userData?.showAdvanced})}},(0,r.B)(e,"show-dialog",{dialogTag:"dialog-add-application-credential",dialogImport:h,dialogParams:t}),this._flowDone()}},{kind:"method",key:"_flowDone",value:function(){(0,r.B)(this,"flow-update",{step:void 0})}},{kind:"get",static:!0,key:"styles",value:function(){return p}}]}}),a.oi);i("39527"),i("99790"),i("13334"),i("36993");var f=i("27486"),m=i("79575"),g=(i("69181"),i("80495")),_=i("99523");const v=()=>Promise.all([i.e("1552"),i.e("686"),i.e("6898"),i.e("513"),i.e("2206"),i.e("4224"),i.e("2407"),i.e("5958"),i.e("6160"),i.e("3732")]).then(i.bind(i,66738));(0,s.Z)([(0,o.Mo)("step-flow-create-entry")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"flowConfig",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"step",value:void 0},{kind:"field",key:"_devices",value:()=>(0,f.Z)(((e,t,i)=>e&&i?t.filter((e=>e.config_entries.includes(i))):[]))},{kind:"field",key:"_deviceEntities",value:()=>(0,f.Z)(((e,t,i)=>t.filter((t=>t.device_id===e&&(!i||(0,m.M)(t.entity_id)===i)))))},{kind:"method",key:"willUpdate",value:function(e){if(!e.has("devices")&&!e.has("hass"))return;const t=this._devices(this.flowConfig.showDevices,Object.values(this.hass.devices),this.step.result?.entry_id);if(1!==t.length||t[0].primary_config_entry!==this.step.result?.entry_id)return;const i=this._deviceEntities(t[0].id,Object.values(this.hass.entities),"assist_satellite");var s,n;i.length&&i.some((e=>(0,g.Bg)(this.hass.states[e.entity_id])))&&(this._flowDone(),s=this,n={deviceId:t[0].id},(0,r.B)(s,"show-dialog",{dialogTag:"ha-voice-assistant-setup-dialog",dialogImport:v,dialogParams:n}))}},{kind:"method",key:"render",value:function(){const e=this.hass.localize,t=this._devices(this.flowConfig.showDevices,Object.values(this.hass.devices),this.step.result?.entry_id);return a.dy` <h2>${e("ui.panel.config.integrations.config_flow.success")}!</h2> <div class="content"> ${this.flowConfig.renderCreateEntryDescription(this.hass,this.step)} ${"not_loaded"===this.step.result?.state?a.dy`<span class="error">${e("ui.panel.config.integrations.config_flow.not_loaded")}</span>`:a.Ld} ${0===t.length?a.Ld:a.dy` <p> ${e("ui.panel.config.integrations.config_flow.found_following_devices")}: </p> <div class="devices"> ${t.map((e=>a.dy` <div class="device"> <div> <b>${(0,_.jL)(e,this.hass)}</b><br> ${e.model||e.manufacturer?a.dy`${e.model} ${e.manufacturer?a.dy`(${e.manufacturer})`:""}`:a.dy` `} </div> <ha-area-picker .hass="${this.hass}" .device="${e.id}" .value="${e.area_id??void 0}" @value-changed="${this._areaPicked}"></ha-area-picker> </div> `))} </div> `} </div> <div class="buttons"> <mwc-button @click="${this._flowDone}">${e("ui.panel.config.integrations.config_flow.finish")}</mwc-button> </div> `}},{kind:"method",key:"_flowDone",value:function(){(0,r.B)(this,"flow-update",{step:void 0})}},{kind:"method",key:"_areaPicked",value:async function(e){const t=e.currentTarget,i=t.device,s=e.detail.value;try{await(0,_.t1)(this.hass,i,{area_id:s})}catch(e){(0,c.Ys)(this,{text:this.hass.localize("ui.panel.config.integrations.config_flow.error_saving_area",{error:e.message})}),t.value=null}}},{kind:"get",static:!0,key:"styles",value:function(){return[p,a.iv`.devices{display:flex;flex-wrap:wrap;margin:-4px;max-height:600px;overflow-y:auto}.device{border:1px solid var(--divider-color);padding:5px;border-radius:4px;margin:4px;display:inline-block;width:250px}.buttons>:last-child{margin-left:auto;margin-inline-start:auto;margin-inline-end:initial}@media all and (max-width:450px),all and (max-height:500px){.device{width:100%}}.error{color:var(--error-color)}`]}}]}}),a.oi),(0,s.Z)([(0,o.Mo)("step-flow-external")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"flowConfig",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"step",value:void 0},{kind:"method",key:"render",value:function(){const e=this.hass.localize;return a.dy` <h2>${this.flowConfig.renderExternalStepHeader(this.hass,this.step)}</h2> <div class="content"> ${this.flowConfig.renderExternalStepDescription(this.hass,this.step)} <div class="open-button"> <a href="${this.step.url}" target="_blank" rel="noreferrer"> <mwc-button raised> ${e("ui.panel.config.integrations.config_flow.external_step.open_site")} </mwc-button> </a> </div> </div> `}},{kind:"method",key:"firstUpdated",value:function(e){(0,n.Z)(i,"firstUpdated",this,3)([e]),window.open(this.step.url)}},{kind:"get",static:!0,key:"styles",value:function(){return[p,a.iv`.open-button{text-align:center;padding:24px 0}.open-button a{text-decoration:none}`]}}]}}),a.oi);i("92181"),i("67670"),i("41360"),i("14394");var y=i("38653"),k=i("3812"),w=(i("17949"),i("12328")),b=(i("42877"),i("61158"),i("41946")),$=i("44699");(0,s.Z)([(0,o.Mo)("step-flow-form")],(function(e,t){class s extends t{constructor(...t){super(...t),e(this)}}return{F:s,d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"flowConfig",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"step",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_loading",value:()=>!1},{kind:"field",decorators:[(0,o.SB)()],key:"_stepData",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_errorMsg",value:void 0},{kind:"method",key:"disconnectedCallback",value:function(){(0,n.Z)(s,"disconnectedCallback",this,3)([]),this.removeEventListener("keydown",this._handleKeyDown)}},{kind:"method",key:"render",value:function(){const e=this.step,t=this._stepDataProcessed;return a.dy` <h2>${this.flowConfig.renderShowFormStepHeader(this.hass,this.step)}</h2> <div class="content" @click="${this._clickHandler}"> ${this.flowConfig.renderShowFormStepDescription(this.hass,this.step)} ${this._errorMsg?a.dy`<ha-alert alert-type="error">${this._errorMsg}</ha-alert>`:""} <ha-form .hass="${this.hass}" .data="${t}" .disabled="${this._loading}" @value-changed="${this._stepDataChanged}" .schema="${(0,b.oT)(e.data_schema)}" .error="${e.errors}" .computeLabel="${this._labelCallback}" .computeHelper="${this._helperCallback}" .computeError="${this._errorCallback}" .localizeValue="${this._localizeValueCallback}"></ha-form> </div> ${e.preview?a.dy`<div class="preview" @set-flow-errors="${this._setError}"> <h3> ${this.hass.localize("ui.panel.config.integrations.config_flow.preview")}: </h3> ${(0,y.h)(`flow-preview-${(0,$.O)(e.preview)}`,{hass:this.hass,domain:e.preview,flowType:this.flowConfig.flowType,handler:e.handler,stepId:e.step_id,flowId:e.flow_id,stepData:t})} </div>`:a.Ld} <div class="buttons"> ${this._loading?a.dy` <div class="submit-spinner"> <ha-circular-progress indeterminate></ha-circular-progress> </div> `:a.dy` <div> <mwc-button @click="${this._submitStep}"> ${this.flowConfig.renderShowFormStepSubmitButton(this.hass,this.step)} </mwc-button> </div> `} </div> `}},{kind:"method",key:"_setError",value:function(e){this.step={...this.step,errors:e.detail}}},{kind:"method",key:"firstUpdated",value:function(e){(0,n.Z)(s,"firstUpdated",this,3)([e]),setTimeout((()=>this.shadowRoot.querySelector("ha-form").focus()),0),this.addEventListener("keydown",this._handleKeyDown)}},{kind:"method",key:"willUpdate",value:function(e){(0,n.Z)(s,"willUpdate",this,3)([e]),e.has("step")&&this.step?.preview&&i(2292)(`./flow-preview-${(0,$.O)(this.step.preview)}`)}},{kind:"method",key:"_clickHandler",value:function(e){(0,k.J)(e,!1)&&(0,r.B)(this,"flow-update",{step:void 0})}},{kind:"field",key:"_handleKeyDown",value(){return e=>{"Enter"===e.key&&this._submitStep()}}},{kind:"get",key:"_stepDataProcessed",value:function(){return void 0!==this._stepData||(this._stepData=(0,w.x)(this.step.data_schema)),this._stepData}},{kind:"method",key:"_submitStep",value:async function(){const e=this._stepData||{};if(!(void 0===e?void 0===this.step.data_schema.find((e=>e.required)):e&&this.step.data_schema.every((t=>!t.required||!["",void 0].includes(e[t.name])))))return void(this._errorMsg=this.hass.localize("ui.panel.config.integrations.config_flow.not_all_required_fields"));this._loading=!0,this._errorMsg=void 0;const t=this.step.flow_id,i={};Object.keys(e).forEach((t=>{const s=e[t];[void 0,""].includes(s)||(i[t]=s)}));try{const e=await this.flowConfig.handleFlowStep(this.hass,this.step.flow_id,i);if(!this.step||t!==this.step.flow_id)return;(0,r.B)(this,"flow-update",{step:e})}catch(e){e&&e.body?(e.body.message&&(this._errorMsg=e.body.message),e.body.errors&&(this.step={...this.step,errors:e.body.errors}),e.body.message||e.body.errors||(this._errorMsg="Unknown error occurred")):this._errorMsg="Unknown error occurred"}finally{this._loading=!1}}},{kind:"method",key:"_stepDataChanged",value:function(e){this._stepData=e.detail.value}},{kind:"field",key:"_labelCallback",value(){return(e,t,i)=>this.flowConfig.renderShowFormStepFieldLabel(this.hass,this.step,e,i)}},{kind:"field",key:"_helperCallback",value(){return(e,t)=>this.flowConfig.renderShowFormStepFieldHelper(this.hass,this.step,e,t)}},{kind:"field",key:"_errorCallback",value(){return e=>this.flowConfig.renderShowFormStepFieldError(this.hass,this.step,e)}},{kind:"field",key:"_localizeValueCallback",value(){return e=>this.flowConfig.renderShowFormStepFieldLocalizeValue(this.hass,this.step,e)}},{kind:"get",static:!0,key:"styles",value:function(){return[l.Qx,p,a.iv`.error{color:red}.submit-spinner{margin-right:16px;margin-inline-end:16px;margin-inline-start:initial}ha-alert,ha-form{margin-top:24px;display:block}h2{word-break:break-word;padding-inline-end:72px;direction:var(--direction)}`]}}]}}),a.oi),(0,s.Z)([(0,o.Mo)("step-flow-loading")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"flowConfig",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"loadingReason",value:void 0},{kind:"field",decorators:[(0,o.Cb)()],key:"handler",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"step",value:void 0},{kind:"method",key:"render",value:function(){const e=this.flowConfig.renderLoadingDescription(this.hass,this.loadingReason,this.handler,this.step);return a.dy` <div class="init-spinner"> ${e?a.dy`<div>${e}</div>`:""} <ha-circular-progress indeterminate></ha-circular-progress> </div> `}},{kind:"get",static:!0,key:"styles",value:function(){return a.iv`.init-spinner{padding:50px 100px;text-align:center}ha-circular-progress{margin-top:16px}`}}]}}),a.oi);i("87319"),i("54220");(0,s.Z)([(0,o.Mo)("step-flow-menu")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"flowConfig",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"step",value:void 0},{kind:"method",key:"render",value:function(){let e,t;if(Array.isArray(this.step.menu_options)){e=this.step.menu_options,t={};for(const i of e)t[i]=this.flowConfig.renderMenuOption(this.hass,this.step,i)}else e=Object.keys(this.step.menu_options),t=this.step.menu_options;const i=this.flowConfig.renderMenuDescription(this.hass,this.step);return a.dy` <h2>${this.flowConfig.renderMenuHeader(this.hass,this.step)}</h2> ${i?a.dy`<div class="content">${i}</div>`:""} <div class="options"> ${e.map((e=>a.dy` <mwc-list-item hasMeta .step="${e}" @click="${this._handleStep}"> <span>${t[e]}</span> <ha-icon-next slot="meta"></ha-icon-next> </mwc-list-item> `))} </div> `}},{kind:"method",key:"_handleStep",value:function(e){(0,r.B)(this,"flow-update",{stepPromise:this.flowConfig.handleFlowStep(this.hass,this.step.flow_id,{next_step_id:e.currentTarget.step})})}},{kind:"field",static:!0,key:"styles",value:()=>[p,a.iv`.options{margin-top:20px;margin-bottom:8px}.content{padding-bottom:16px;border-bottom:1px solid var(--divider-color)}.content+.options{margin-top:8px}mwc-list-item{--mdc-list-side-padding:24px}`]}]}}),a.oi),(0,s.Z)([(0,o.Mo)("step-flow-progress")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"flowConfig",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"step",value:void 0},{kind:"method",key:"render",value:function(){return a.dy` <h2> ${this.flowConfig.renderShowFormProgressHeader(this.hass,this.step)} </h2> <div class="content"> <ha-circular-progress indeterminate></ha-circular-progress> ${this.flowConfig.renderShowFormProgressDescription(this.hass,this.step)} </div> `}},{kind:"get",static:!0,key:"styles",value:function(){return[p,a.iv`.content{padding:50px 100px;text-align:center}ha-circular-progress{margin-bottom:16px}`]}}]}}),a.oi);let C=0;(0,s.Z)([(0,o.Mo)("dialog-data-entry-flow")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_params",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_loading",value:void 0},{kind:"field",key:"_instance",value:()=>C},{kind:"field",decorators:[(0,o.SB)()],key:"_step",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_handler",value:void 0},{kind:"field",key:"_unsubDataEntryFlowProgressed",value:void 0},{kind:"method",key:"showDialog",value:async function(e){this._params=e,this._instance=C++;const t=this._instance;let i;if(e.startFlowHandler){this._loading="loading_flow",this._handler=e.startFlowHandler;try{i=await this._params.flowConfig.createFlow(this.hass,e.startFlowHandler)}catch(e){this.closeDialog();let t=e.message||e.body||"Unknown error";return"string"!=typeof t&&(t=JSON.stringify(t)),void(0,c.Ys)(this,{title:this.hass.localize("ui.panel.config.integrations.config_flow.error"),text:`${this.hass.localize("ui.panel.config.integrations.config_flow.could_not_load")}: ${t}`})}if(t!==this._instance)return}else{if(!e.continueFlowId)return;this._loading="loading_flow";try{i=await e.flowConfig.fetchFlow(this.hass,e.continueFlowId)}catch(e){this.closeDialog();let t=e.message||e.body||"Unknown error";return"string"!=typeof t&&(t=JSON.stringify(t)),void(0,c.Ys)(this,{title:this.hass.localize("ui.panel.config.integrations.config_flow.error"),text:`${this.hass.localize("ui.panel.config.integrations.config_flow.could_not_load")}: ${t}`})}}t===this._instance&&(this._processStep(i),this._loading=void 0)}},{kind:"method",key:"closeDialog",value:function(){if(!this._params)return;const e=Boolean(this._step&&["create_entry","abort"].includes(this._step.type));!this._step||e||this._params.continueFlowId||this._params.flowConfig.deleteFlow(this.hass,this._step.flow_id),this._step&&this._params.dialogClosedCallback&&this._params.dialogClosedCallback({flowFinished:e,entryId:"result"in this._step?this._step.result?.entry_id:void 0}),this._loading=void 0,this._step=void 0,this._params=void 0,this._handler=void 0,this._unsubDataEntryFlowProgressed&&(this._unsubDataEntryFlowProgressed.then((e=>{e()})),this._unsubDataEntryFlowProgressed=void 0),(0,r.B)(this,"dialog-closed",{dialog:this.localName})}},{kind:"method",key:"render",value:function(){return this._params?a.dy` <ha-dialog open @closed="${this.closeDialog}" scrimClickAction escapeKeyAction hideActions> <div> ${this._loading||null===this._step?a.dy` <step-flow-loading .flowConfig="${this._params.flowConfig}" .hass="${this.hass}" .loadingReason="${this._loading}" .handler="${this._handler}" .step="${this._step}"></step-flow-loading> `:void 0===this._step?"":a.dy` <div class="dialog-actions"> ${["form","menu","external","progress","data_entry_flow_progressed"].includes(this._step?.type)&&this._params.manifest?.is_built_in||this._params.manifest?.documentation?a.dy` <a href="${this._params.manifest.is_built_in?(0,d.R)(this.hass,`/integrations/${this._params.manifest.domain}`):this._params?.manifest?.documentation}" target="_blank" rel="noreferrer noopener"> <ha-icon-button .label="${this.hass.localize("ui.common.help")}" .path="${"M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"}"> </ha-icon-button></a> `:""} <ha-icon-button .label="${this.hass.localize("ui.panel.config.integrations.config_flow.dismiss")}" .path="${"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"}" dialogAction="close"></ha-icon-button> </div> ${"form"===this._step.type?a.dy` <step-flow-form .flowConfig="${this._params.flowConfig}" .step="${this._step}" .hass="${this.hass}"></step-flow-form> `:"external"===this._step.type?a.dy` <step-flow-external .flowConfig="${this._params.flowConfig}" .step="${this._step}" .hass="${this.hass}"></step-flow-external> `:"abort"===this._step.type?a.dy` <step-flow-abort .params="${this._params}" .step="${this._step}" .hass="${this.hass}" .domain="${this._step.handler}"></step-flow-abort> `:"progress"===this._step.type?a.dy` <step-flow-progress .flowConfig="${this._params.flowConfig}" .step="${this._step}" .hass="${this.hass}"></step-flow-progress> `:"menu"===this._step.type?a.dy` <step-flow-menu .flowConfig="${this._params.flowConfig}" .step="${this._step}" .hass="${this.hass}"></step-flow-menu> `:a.dy` <step-flow-create-entry .flowConfig="${this._params.flowConfig}" .step="${this._step}" .hass="${this.hass}"></step-flow-create-entry> `} `} </div> </ha-dialog> `:a.Ld}},{kind:"method",key:"firstUpdated",value:function(e){(0,n.Z)(i,"firstUpdated",this,3)([e]),this.addEventListener("flow-update",(e=>{const{step:t,stepPromise:i}=e.detail;this._processStep(t||i)}))}},{kind:"method",key:"willUpdate",value:function(e){(0,n.Z)(i,"willUpdate",this,3)([e]),e.has("_step")&&this._step&&["external","progress"].includes(this._step.type)&&this._subscribeDataEntryFlowProgressed()}},{kind:"method",key:"_processStep",value:async function(e){if(e instanceof Promise){this._loading="loading_step";try{this._step=await e}catch(e){return this.closeDialog(),void(0,c.Ys)(this,{title:this.hass.localize("ui.panel.config.integrations.config_flow.error"),text:e?.body?.message})}finally{this._loading=void 0}}else void 0!==e?(this._step=void 0,await this.updateComplete,this._step=e):this.closeDialog()}},{kind:"method",key:"_subscribeDataEntryFlowProgressed",value:async function(){var e,t;this._unsubDataEntryFlowProgressed||(this._unsubDataEntryFlowProgressed=(e=this.hass.connection,t=async e=>{e.data.flow_id===this._step?.flow_id&&this._processStep(this._params.flowConfig.fetchFlow(this.hass,this._step.flow_id))},e.subscribeEvents(t,"data_entry_flow_progressed")))}},{kind:"get",static:!0,key:"styles",value:function(){return[l.yu,a.iv`ha-dialog{--dialog-content-padding:0}.dialog-actions{padding:16px;position:absolute;top:0;right:0;inset-inline-start:initial;inset-inline-end:0px;direction:var(--direction)}.dialog-actions>*{color:var(--secondary-text-color)}`]}}]}}),a.oi)},18694:function(e,t,i){i.d(t,{t:function(){return r}});var s=i(57243),n=i(79983),a=i(1275),o=i(43373);const r=(e,t)=>(0,o.w)(e,t,{flowType:"config_flow",showDevices:!0,createFlow:async(e,i)=>{const[s]=await Promise.all([(0,n.Ky)(e,i,t.entryId),e.loadFragmentTranslation("config"),e.loadBackendTranslation("config",i),e.loadBackendTranslation("selector",i),e.loadBackendTranslation("title",i)]);return s},fetchFlow:async(e,t)=>{const i=await(0,n.D4)(e,t);return await e.loadFragmentTranslation("config"),await e.loadBackendTranslation("config",i.handler),await e.loadBackendTranslation("selector",i.handler),i},handleFlowStep:n.XO,deleteFlow:n.oi,renderAbortDescription(e,t){const i=e.localize(`component.${t.translation_domain||t.handler}.config.abort.${t.reason}`,t.description_placeholders);return i?s.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?s.dy` <ha-markdown allow-svg breaks .content="${i}"></ha-markdown> `:""},renderShowFormStepFieldLabel(e,t,i,s){if("expandable"===i.type)return e.localize(`component.${t.handler}.config.step.${t.step_id}.sections.${i.name}.name`);const n=s?.path?.[0]?`sections.${s.path[0]}.`:"";return e.localize(`component.${t.handler}.config.step.${t.step_id}.${n}data.${i.name}`)||i.name},renderShowFormStepFieldHelper(e,t,i,n){if("expandable"===i.type)return e.localize(`component.${t.translation_domain||t.handler}.config.step.${t.step_id}.sections.${i.name}.description`);const a=n?.path?.[0]?`sections.${n.path[0]}.`:"",o=e.localize(`component.${t.translation_domain||t.handler}.config.step.${t.step_id}.${a}data_description.${i.name}`,t.description_placeholders);return o?s.dy`<ha-markdown breaks .content="${o}"></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 s.dy` <p> ${e.localize("ui.panel.config.integrations.config_flow.external_step.description")} </p> ${i?s.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 s.dy` ${i?s.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?s.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?s.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,s){if("loading_flow"!==t&&"loading_step"!==t)return"";const n=s?.handler||i;return e.localize(`ui.panel.config.integrations.config_flow.loading.${t}`,{integration:n?(0,a.Lh)(e.localize,n):e.localize("ui.panel.config.integrations.config_flow.loading.fallback_title")})}})},88233:function(e,t,i){i.d(t,{E:function(){return a}});var s=i(11297);const n=()=>Promise.all([i.e("1552"),i.e("8006"),i.e("6343"),i.e("8963"),i.e("1854"),i.e("9616")]).then(i.bind(i,40600)),a=(e,t)=>{(0,s.B)(e,"show-dialog",{dialogTag:"dialog-area-registry-detail",dialogImport:n,dialogParams:t})}},26205:function(e,t,i){i.d(t,{R:function(){return s}});const s=(e,t)=>`https://${e.config.version.includes("b")?"rc":e.config.version.includes("dev")?"next":"www"}.home-assistant.io${t}`},87319:function(e,t,i){var s=i(9065),n=i(50778),a=i(65703),o=i(46289);let r=class extends a.K{};r.styles=[o.W],r=(0,s.gn)([(0,n.Mo)("mwc-list-item")],r)},68107:function(e,t,i){var s=i(40810),n=i(73994),a=i(63983),o=i(71998),r=i(4576);s({target:"Iterator",proto:!0,real:!0},{every:function(e){o(this),a(e);var t=r(this),i=0;return!n(t,(function(t,s){if(!e(t,i++))return s()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},92181:function(e,t,i){i(68107)}};
//# sourceMappingURL=9894.a66f08c03278c8ac.js.map