"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["97370"],{84446:function(t,e,s){s.d(e,{p:function(){return a},z:function(){return i}});s(17642),s(58004),s(33853),s(45876),s(32475),s(15024),s(31698),s(62953);var n=s(71727);const i=t=>t.include_domains.length+t.include_entities.length+t.exclude_domains.length+t.exclude_entities.length===0,a=(t,e,s,i)=>{const a=new Set(t),o=new Set(e),r=new Set(s),l=new Set(i),c=a.size>0||o.size>0,u=r.size>0||l.size>0;return c||u?c&&!u?t=>o.has(t)||a.has((0,n.m)(t)):!c&&u?t=>!l.has(t)&&!r.has((0,n.m)(t)):a.size?t=>a.has((0,n.m)(t))?!l.has(t):o.has(t):r.size?t=>r.has((0,n.m)(t))?o.has(t):!l.has(t):t=>o.has(t):()=>!0}},61037:function(t,e,s){var n=s(40445),i=s(77845),a=s(96196),o=s(14503),r=s(14782),l=s(44144);let c,u,d=t=>t;class h extends a.WF{render(){var t;return(0,a.qy)(c||(c=d` <img class="logo" alt="${0}" src="${0}" crossorigin="anonymous" referrerpolicy="no-referrer"> `),r.aK[this.voiceAssistantId].name,(0,l.MR)({domain:r.aK[this.voiceAssistantId].domain,type:"icon",darkOptimized:null===(t=this.hass.themes)||void 0===t?void 0:t.darkMode},this.hass.auth.data.hassUrl))}static get styles(){return[o.RF,(0,a.AH)(u||(u=d`:host{display:inline}.logo{position:relative;vertical-align:middle;height:24px}`))]}}(0,n.Cg)([(0,i.MZ)({attribute:!1})],h.prototype,"hass",void 0),(0,n.Cg)([(0,i.MZ)({attribute:!1})],h.prototype,"voiceAssistantId",void 0),h=(0,n.Cg)([(0,i.EM)("voice-assistant-brand-icon")],h)},53211:function(t,e,s){s.d(e,{Gk:function(){return i},Gq:function(){return n}});const n=t=>t.callWS({type:"cloud/alexa/entities"}),i=(t,e)=>t.callWS({type:"cloud/alexa/entities/get",entity_id:e})},14782:function(t,e,s){s.d(e,{Gw:function(){return o},Ow:function(){return l},YH:function(){return a},aK:function(){return i},hB:function(){return c},ij:function(){return r}});s(18111),s(22489);var n=s(59241);const i={conversation:{domain:"assist_pipeline",name:"Assist"},"cloud.alexa":{domain:"alexa",name:"Amazon Alexa"},"cloud.google_assistant":{domain:"google_assistant",name:"Google Assistant"}},a=(t,e,s)=>t.callWS({type:"homeassistant/expose_new_entities/set",assistant:e,expose_new:s}),o=(t,e)=>t.callWS({type:"homeassistant/expose_new_entities/get",assistant:e}),r=(t,e,s,n)=>t.callWS({type:"homeassistant/expose_entity",assistants:e,entity_ids:s,should_expose:n}),l=t=>t.callWS({type:"homeassistant/expose_entity/list"}),c=(t,e)=>{const s=(0,n.Ox)(t)[e];return Object.keys(i).filter(t=>{var e;return null==s||null===(e=s.options)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.should_expose})}},56982:function(t,e,s){s.d(e,{ig:function(){return n},kz:function(){return i}});const n=t=>t.callWS({type:"cloud/google_assistant/entities"}),i=(t,e)=>t.callWS({type:"cloud/google_assistant/entities/get",entity_id:e})},66983:function(t,e,s){s.a(t,async function(t,n){try{s.r(e);s(18111),s(7588),s(62953);var i=s(40445),a=s(96196),o=s(77845),r=s(22786),l=s(14782),c=s(95341),u=t([c]);c=(u.then?(await u)():u)[0];let d,h,p=t=>t;class y extends a.WF{render(){return this.params?(0,a.qy)(d||(d=p`<entity-voice-settings .hass="${0}" .entityId="${0}" .entry="${0}" .exposed="${0}"></entity-voice-settings>`),this.hass,this.entry.entity_id,this.entry,this._calculateExposed(this.entry)):a.s6}static get styles(){return[(0,a.AH)(h||(h=p`:host{display:flex;flex-direction:column}.content{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ha-space-6);flex:1}`))]}constructor(...t){super(...t),this._calculateExposed=(0,r.A)(t=>{const e={};return Object.keys(l.aK).forEach(s=>{var n;e[s]=null===(n=t.options)||void 0===n||null===(n=n[s])||void 0===n?void 0:n.should_expose}),e})}}(0,i.Cg)([(0,o.MZ)({attribute:!1})],y.prototype,"hass",void 0),(0,i.Cg)([(0,o.MZ)({attribute:!1})],y.prototype,"entry",void 0),(0,i.Cg)([(0,o.MZ)()],y.prototype,"params",void 0),y=(0,i.Cg)([(0,o.EM)("ha-more-info-view-voice-assistants")],y),n()}catch(d){n(d)}})}}]);
//# sourceMappingURL=97370.0c49e5fe1b51324b.js.map