"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["71745"],{14782:function(e,t,s){s.d(t,{Gw:function(){return a},Ow:function(){return c},YH:function(){return i},aK:function(){return n},ij:function(){return o}});var n={conversation:{domain:"assist_pipeline",name:"Assist"},"cloud.alexa":{domain:"alexa",name:"Amazon Alexa"},"cloud.google_assistant":{domain:"google_assistant",name:"Google Assistant"}},i=function(e,t,s){return e.callWS({type:"homeassistant/expose_new_entities/set",assistant:t,expose_new:s})},a=function(e,t){return e.callWS({type:"homeassistant/expose_new_entities/get",assistant:t})},o=function(e,t,s,n){return e.callWS({type:"homeassistant/expose_entity",assistants:t,entity_ids:s,should_expose:n})},c=function(e){return e.callWS({type:"homeassistant/expose_entity/list"})}},72440:function(e,t,s){s.r(t),s.d(t,{voiceAssistantTabs:function(){return v}});var n=s(61397),i=s(50264),a=s(44734),o=s(43080),c=s(69683),r=s(6454),u=s(25460),d=(s(28706),s(23792),s(26099),s(3362),s(47764),s(62953),s(40445)),l=s(56261),p=s(77845),h=s(38911),f=s(14782),g=s(324),v=[{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"}],_=function(e){function t(){var e;(0,a.A)(this,t);for(var o=arguments.length,r=new Array(o),u=0;u<o;u++)r[u]=arguments[u];return(e=(0,c.A)(this,t,[].concat(r))).narrow=!1,e.isWide=!1,e.routerOptions={defaultPage:"assistants",routes:{assistants:{tag:"ha-config-voice-assistants-assistants",load:function(){return Promise.all([s.e("44533"),s.e("7199"),s.e("46095"),s.e("37382"),s.e("26767"),s.e("80131"),s.e("47251"),s.e("95990"),s.e("67289"),s.e("2157")]).then(s.bind(s,6684))},cache:!0},expose:{tag:"ha-config-voice-assistants-expose",load:function(){return Promise.all([s.e("44533"),s.e("7199"),s.e("49021"),s.e("46095"),s.e("76068"),s.e("63768"),s.e("8124"),s.e("93785"),s.e("37382"),s.e("8477"),s.e("34861"),s.e("22016"),s.e("20921"),s.e("62725"),s.e("27928"),s.e("56999"),s.e("42081"),s.e("67289"),s.e("44288"),s.e("64690"),s.e("52760"),s.e("59873")]).then(s.bind(s,43601))}},debug:{tag:"assist-debug",load:function(){return Promise.all([s.e("44533"),s.e("7199"),s.e("49021"),s.e("63768"),s.e("8124"),s.e("37382"),s.e("26767"),s.e("80131"),s.e("47251"),s.e("70141"),s.e("34326"),s.e("8477"),s.e("72130"),s.e("85010"),s.e("13894"),s.e("22587"),s.e("51146"),s.e("34310"),s.e("17195"),s.e("71881")]).then(s.bind(s,30034))}},assist:{tag:"ha-config-voice-assistants-assist-devices",load:function(){return Promise.all([s.e("44533"),s.e("7199"),s.e("37382"),s.e("8477"),s.e("36422"),s.e("44288"),s.e("33367")]).then(s.bind(s,4032))}}}},e._fetchExposedEntities=(0,i.A)((0,n.A)().m(function t(){return(0,n.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,(0,f.Ow)(e.hass);case 1:e._exposedEntities=t.v.exposed_entities,e.lastChild&&(e.lastChild.exposedEntities=e._exposedEntities);case 2:return t.a(2)}},t)})),e}return(0,r.A)(t,e),(0,o.A)(t,[{key:"connectedCallback",value:function(){(0,u.A)(t,"connectedCallback",this,3)([]),this.addEventListener("exposed-entities-changed",this._fetchExposedEntities)}},{key:"disconnectedCallback",value:function(){(0,u.A)(t,"disconnectedCallback",this,3)([]),this.removeEventListener("exposed-entities-changed",this._fetchExposedEntities)}},{key:"updatePageEl",value:function(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}},{key:"willUpdate",value:function(e){e.has("_entities")&&this._fetchExposedEntities()}}])}(g.a);(0,d.Cg)([(0,p.MZ)({attribute:!1})],_.prototype,"hass",void 0),(0,d.Cg)([(0,p.MZ)({attribute:!1})],_.prototype,"cloudStatus",void 0),(0,d.Cg)([(0,p.MZ)({type:Boolean})],_.prototype,"narrow",void 0),(0,d.Cg)([(0,p.MZ)({attribute:"is-wide",type:Boolean})],_.prototype,"isWide",void 0),(0,d.Cg)([(0,p.wk)(),(0,l.Fg)({context:h.X1,subscribe:!0})],_.prototype,"_entities",void 0),(0,d.Cg)([(0,p.wk)()],_.prototype,"_exposedEntities",void 0),_=(0,d.Cg)([(0,p.EM)("ha-config-voice-assistants")],_)}}]);
//# sourceMappingURL=71745.078c4b529daa174e.js.map