"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[29676],{74025:function(e,t,s){s(2008),s(18111),s(22489),s(79432),s(26099);var n=s(45706),i={conversation:{domain:"assist_pipeline",name:"Assist"},"cloud.alexa":{domain:"alexa",name:"Amazon Alexa"},"cloud.google_assistant":{domain:"google_assistant",name:"Google Assistant"}},a=function(e,t,s){return e.callWS({type:"homeassistant/expose_new_entities/set",assistant:t,expose_new:s})},o=function(e,t){return e.callWS({type:"homeassistant/expose_new_entities/get",assistant:t})},r=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"})},u=function(e,t){var s=(0,n.Ox)(e)[t];return Object.keys(i).filter(function(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})};s.d(t,{Gw:function(){return o},Ow:function(){return c},YH:function(){return a},aK:function(){return i},hB:function(){return u},ij:function(){return r}})},76359:function(e,t,s){s.r(t);var n=s(36854),i=s(98117),a=s(57567),o=s(25979),r=s(12463),c=s(16472),u=s(92297),l=(s(28706),s(26099),s(3362),s(15697)),d=s(358),p=s(51209),h=s(80189),f=s(74025),v=s(99061),g=[{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(67202),s.e(51843),s.e(57927),s.e(5933),s.e(98870),s.e(13049),s.e(82590),s.e(73142),s.e(48999),s.e(32675),s.e(84728),s.e(70547),s.e(65753)]).then(s.bind(s,89817))},cache:!0},expose:{tag:"ha-config-voice-assistants-expose",load:function(){return Promise.all([s.e(67202),s.e(51843),s.e(5933),s.e(98870),s.e(13049),s.e(82590),s.e(73142),s.e(54600),s.e(48573),s.e(2170),s.e(70547),s.e(3786),s.e(57425),s.e(79337),s.e(35391),s.e(51371)]).then(s.bind(s,76904))}},debug:{tag:"assist-debug",load:function(){return Promise.all([s.e(67202),s.e(51843),s.e(57927),s.e(5933),s.e(98870),s.e(13049),s.e(82590),s.e(73142),s.e(43098),s.e(30781),s.e(17405),s.e(84050),s.e(70547),s.e(81188),s.e(61710),s.e(55595),s.e(72602),s.e(2215)]).then(s.bind(s,55161))}},assist:{tag:"ha-config-voice-assistants-assist-devices",load:function(){return Promise.all([s.e(67202),s.e(98870),s.e(13049),s.e(82590),s.e(10154),s.e(70547),s.e(61710),s.e(57425),s.e(86400)]).then(s.bind(s,48207))}}}},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()}}])}(v.a);(0,l.Cg)([(0,p.MZ)({attribute:!1})],_.prototype,"hass",void 0),(0,l.Cg)([(0,p.MZ)({attribute:!1})],_.prototype,"cloudStatus",void 0),(0,l.Cg)([(0,p.MZ)({type:Boolean})],_.prototype,"narrow",void 0),(0,l.Cg)([(0,p.MZ)({attribute:"is-wide",type:Boolean})],_.prototype,"isWide",void 0),(0,l.Cg)([(0,p.wk)(),(0,d.Fg)({context:h.X1,subscribe:!0})],_.prototype,"_entities",void 0),(0,l.Cg)([(0,p.wk)()],_.prototype,"_exposedEntities",void 0),_=(0,l.Cg)([(0,p.EM)("ha-config-voice-assistants")],_),s.d(t,{voiceAssistantTabs:function(){return g}})}}]);
//# sourceMappingURL=29676.8a59d031d2ad2729.js.map