export const __rspack_esm_id="71745";export const __rspack_esm_ids=["71745"];export const __webpack_modules__={14782(e,s,t){t.d(s,{Gw:()=>o,Ow:()=>c,YH:()=>a,aK:()=>i,ij:()=>n});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=(e,s,t)=>e.callWS({type:"homeassistant/expose_new_entities/set",assistant:s,expose_new:t}),o=(e,s)=>e.callWS({type:"homeassistant/expose_new_entities/get",assistant:s}),n=(e,s,t,i)=>e.callWS({type:"homeassistant/expose_entity",assistants:s,entity_ids:t,should_expose:i}),c=e=>e.callWS({type:"homeassistant/expose_entity/list"})},72440(e,s,t){t.r(s),t.d(s,{voiceAssistantTabs:()=>p});var i=t(62826),a=t(16527),o=t(44457),n=t(38911),c=t(14782),d=t(324);const p=[{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 l 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([t.e("44533"),t.e("7199"),t.e("46095"),t.e("37382"),t.e("26767"),t.e("47251"),t.e("62748"),t.e("67289"),t.e("2157")]).then(t.bind(t,6684)),cache:!0},expose:{tag:"ha-config-voice-assistants-expose",load:()=>Promise.all([t.e("44533"),t.e("7199"),t.e("96261"),t.e("46095"),t.e("52074"),t.e("93785"),t.e("37382"),t.e("8477"),t.e("34861"),t.e("22016"),t.e("62725"),t.e("19249"),t.e("56999"),t.e("19870"),t.e("67289"),t.e("44288"),t.e("51783"),t.e("30002"),t.e("59873")]).then(t.bind(t,43601))},debug:{tag:"assist-debug",load:()=>Promise.all([t.e("44533"),t.e("7199"),t.e("96261"),t.e("52074"),t.e("37382"),t.e("26767"),t.e("47251"),t.e("70141"),t.e("34326"),t.e("8477"),t.e("72130"),t.e("85010"),t.e("19877"),t.e("23811"),t.e("34310"),t.e("24907"),t.e("71881")]).then(t.bind(t,30034))},assist:{tag:"ha-config-voice-assistants-assist-devices",load:()=>Promise.all([t.e("44533"),t.e("7199"),t.e("37382"),t.e("8477"),t.e("12548"),t.e("44288"),t.e("33367")]).then(t.bind(t,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,o.MZ)({attribute:!1})],l.prototype,"hass",void 0),(0,i.Cg)([(0,o.MZ)({attribute:!1})],l.prototype,"cloudStatus",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean})],l.prototype,"narrow",void 0),(0,i.Cg)([(0,o.MZ)({attribute:"is-wide",type:Boolean})],l.prototype,"isWide",void 0),(0,i.Cg)([(0,o.wk)(),(0,a.Fg)({context:n.X1,subscribe:!0})],l.prototype,"_entities",void 0),(0,i.Cg)([(0,o.wk)()],l.prototype,"_exposedEntities",void 0),l=(0,i.Cg)([(0,o.EM)("ha-config-voice-assistants")],l)}};
//# sourceMappingURL=71745.1c40d0d41fc79fb5.js.map