"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["71745"],{14782:function(e,t,s){s.d(t,{Gw:function(){return o},Ow:function(){return d},YH:function(){return a},aK:function(){return n},hB:function(){return l},ij:function(){return c}});s(18111),s(22489);var i=s(59241);const n={conversation:{domain:"assist_pipeline",name:"Assist"},"cloud.alexa":{domain:"alexa",name:"Amazon Alexa"},"cloud.google_assistant":{domain:"google_assistant",name:"Google Assistant"}},a=(e,t,s)=>e.callWS({type:"homeassistant/expose_new_entities/set",assistant:t,expose_new:s}),o=(e,t)=>e.callWS({type:"homeassistant/expose_new_entities/get",assistant:t}),c=(e,t,s,i)=>e.callWS({type:"homeassistant/expose_entity",assistants:t,entity_ids:s,should_expose:i}),d=e=>e.callWS({type:"homeassistant/expose_entity/list"}),l=(e,t)=>{const s=(0,i.Ox)(e)[t];return Object.keys(n).filter(e=>{var t;return null==s||null===(t=s.options)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.should_expose})}},72440:function(e,t,s){s.r(t),s.d(t,{voiceAssistantTabs:function(){return l}});s(3362),s(62953);var i=s(40445),n=s(16527),a=s(77845),o=s(38911),c=s(14782),d=s(324);const l=[{path:"/config/voice-assistants/assistants",translationKey:"ui.panel.config.voice_assistants.assistants.caption",iconPath:"M12,2A3,3 0 0,1 15,5V11A3,3 0 0,1 12,14A3,3 0 0,1 9,11V5A3,3 0 0,1 12,2M19,11C19,14.53 16.39,17.44 13,17.93V21H11V17.93C7.61,17.44 5,14.53 5,11H7A5,5 0 0,0 12,16A5,5 0 0,0 17,11H19Z"},{path:"/config/voice-assistants/expose",translationKey:"ui.panel.config.voice_assistants.expose.caption",iconPath:"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"}];class r extends d.a{connectedCallback(){super.connectedCallback(),this.addEventListener("exposed-entities-changed",this._fetchExposedEntities)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("exposed-entities-changed",this._fetchExposedEntities)}updatePageEl(e){e.hass=this.hass,e.cloudStatus=this.cloudStatus,e.narrow=this.narrow,e.isWide=this.isWide,e.route=this.routeTail,e.exposedEntities=this._exposedEntities}willUpdate(e){e.has("_entities")&&this._fetchExposedEntities()}constructor(...e){super(...e),this.narrow=!1,this.isWide=!1,this.routerOptions={defaultPage:"assistants",routes:{assistants:{tag:"ha-config-voice-assistants-assistants",load:()=>Promise.all([s.e("62066"),s.e("46095"),s.e("31065"),s.e("30628"),s.e("83431"),s.e("34995"),s.e("26767"),s.e("67254"),s.e("85453")]).then(s.bind(s,6684)),cache:!0},expose:{tag:"ha-config-voice-assistants-expose",load:()=>Promise.all([s.e("62066"),s.e("46095"),s.e("31065"),s.e("30628"),s.e("83431"),s.e("34995"),s.e("8477"),s.e("34861"),s.e("25582"),s.e("42670"),s.e("14707"),s.e("19112"),s.e("30002"),s.e("88481"),s.e("57725")]).then(s.bind(s,43601))},debug:{tag:"assist-debug",load:()=>Promise.all([s.e("62066"),s.e("46095"),s.e("31065"),s.e("30628"),s.e("83431"),s.e("34995"),s.e("8477"),s.e("72130"),s.e("85010"),s.e("95620"),s.e("34310"),s.e("24907"),s.e("1077")]).then(s.bind(s,30034))},assist:{tag:"ha-config-voice-assistants-assist-devices",load:()=>Promise.all([s.e("31065"),s.e("83431"),s.e("8477"),s.e("2766"),s.e("19112"),s.e("16660")]).then(s.bind(s,4032))}}},this._fetchExposedEntities=async()=>{this._exposedEntities=(await(0,c.Ow)(this.hass)).exposed_entities,this.lastChild&&(this.lastChild.exposedEntities=this._exposedEntities)}}}(0,i.Cg)([(0,a.MZ)({attribute:!1})],r.prototype,"hass",void 0),(0,i.Cg)([(0,a.MZ)({attribute:!1})],r.prototype,"cloudStatus",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean})],r.prototype,"narrow",void 0),(0,i.Cg)([(0,a.MZ)({attribute:"is-wide",type:Boolean})],r.prototype,"isWide",void 0),(0,i.Cg)([(0,a.wk)(),(0,n.Fg)({context:o.X1,subscribe:!0})],r.prototype,"_entities",void 0),(0,i.Cg)([(0,a.wk)()],r.prototype,"_exposedEntities",void 0),r=(0,i.Cg)([(0,a.EM)("ha-config-voice-assistants")],r)}}]);
//# sourceMappingURL=71745.850dd81550d5f9fd.js.map