PageSourceSearch

https://ross146.com/frontend_latest/19791.bbf66a999c785754.js

js ross146.com collected 2026-09-28 01:53:57 UTC 14,438 bytes, 2 lines download raw bytes

1export const __webpack_ids__=["19791"];export const __webpack_modules__={18460:function(t,e,i){i.d(e,{b:()=>o,u:()=>a});i(67886),i(65451),i(46015),i(38334),i(94880),i(75643),i(29761);var s=i(44272);const a=t=>t.include_domains.length+t.include_entities.length+t.exclude_domains.length+t.exclude_entities.length===0,o=(t,e,i,a)=>{const o=new Set(t),n=new Set(e),l=new Set(i),d=new Set(a),c=o.size>0||n.size>0,r=l.size>0||d.size>0;return c||r?c&&!r?t=>n.has(t)||o.has((0,s.M)(t)):!c&&r?t=>!d.has(t)&&!l.has((0,s.M)(t)):o.size?t=>o.has((0,s.M)(t))?!d.has(t):n.has(t):l.size?t=>l.has((0,s.M)(t))?n.has(t):!d.has(t):t=>n.has(t):()=>!0}},79160:function(t,e,i){var s=i(73742),a=i(59048),o=i(26292),n=i(39884);i(97929);class l extends a.oi{render(){return this.aliases?a.dy` <ha-multi-textfield .hass="${this.hass}" .value="${this.aliases}" .disabled="${this.disabled}" .label="${this.hass.localize("ui.dialogs.aliases.label")}" .removeLabel="${this.hass.localize("ui.dialogs.aliases.remove")}" .addLabel="${this.hass.localize("ui.dialogs.aliases.add")}" item-index @value-changed="${this._aliasesChanged}"> </ha-multi-textfield> `:a.Ld}_aliasesChanged(t){(0,n.B)(this,"value-changed",{value:t})}constructor(...t){super(...t),this.disabled=!1}}(0,s.__decorate)([(0,o.Cb)({attribute:!1})],l.prototype,"hass",void 0),(0,s.__decorate)([(0,o.Cb)({type:Array})],l.prototype,"aliases",void 0),(0,s.__decorate)([(0,o.Cb)({type:Boolean})],l.prototype,"disabled",void 0),l=(0,s.__decorate)([(0,o.Mo)("ha-aliases-editor")],l)},97929:function(t,e,i){i(81738),i(6989);var s=i(73742),a=i(59048),o=i(26292),n=i(39884),l=i(95814);i(72953),i(48017),i(37492),i(22534);class d extends a.oi{render(){return a.dy` ${this._items.map((t,e)=>{const i=""+(this.itemIndex?` ${e+1}`:"");return a.dy` <div class="layout horizontal center-center row"> <ha-textfield .suffix="${this.inputSuffix}" .prefix="${this.inputPrefix}" .type="${this.inputType}" .autocomplete="${this.autocomplete}" .disabled="${this.disabled}" dialogInitialFocus="${e}" .index="${e}" class="flex-auto" .label="${""+(this.label?`${this.label}${i}`:"")}" .value="${t}" ?data-last="${e===this._items.length-1}" @input="${this._editItem}" @keydown="${this._keyDown}"></ha-textfield> <ha-icon-button .disabled="${this.disabled}" .index="${e}" slot="navigationIcon" .label="${this.removeLabel??this.hass?.localize("ui.common.remove")??"Remove"}" @click="${this._removeItem}" .path="${"M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z"}"></ha-icon-button> </div> `})} <div class="layout horizontal"> <ha-button @click="${this._addItem}" .disabled="${this.disabled}"> ${this.addLabel??(this.label?this.hass?.localize("ui.components.multi-textfield.add_item",{item:this.label}):this.hass?.localize("ui.common.add"))??"Add"} <ha-svg-icon slot="icon" .path="${"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"}"></ha-svg-icon> </ha-button> </div> ${this.helper?a.dy`<ha-input-helper-text .disabled="${this.disabled}">${this.helper}</ha-input-helper-text>`:a.Ld} `}get _items(){return this.value??[]}async _addItem(){const t=[...this._items,""];this._fireChanged(t),await this.updateComplete;const e=this.shadowRoot?.querySelector("ha-textfield[data-last]");e?.focus()}async _editItem(t){const e=t.target.index,i=[...this._items];i[e]=t.target.value,this._fireChanged(i)}async _keyDown(t){"Enter"===t.key&&(t.stopPropagation(),this._addItem())}async _removeItem(t){const e=t.target.index,i=[...this._items];i.splice(e,1),this._fireChanged(i)}_fireChanged(t){this.value=t,(0,n.B)(this,"value-changed",{value:t})}static get styles(){return[l.Qx,a.iv`.row{margin-bottom:8px}ha-textfield{display:block}ha-icon-button{display:block}ha-button{margin-left:8px;margin-inline-start:8px;margin-inline-end:initial}`]}constructor(...t){super(...t),this.disabled=!1,this.itemIndex=!1}}(0,s.__decorate)([(0,o.Cb)({attribute:!1})],d.prototype,"hass",void 0),(0,s.__decorate)([(0,o.Cb)({attribute:!1})],d.prototype,"value",void 0),(0,s.__decorate)([(0,o.Cb)({type:Boolean})],d.prototype,"disabled",void 0),(0,s.__decorate)([(0,o.Cb)()],d.prototype,"label",void 0),(0,s.__decorate)([(0,o.Cb)({attribute:!1})],d.prototype,"helper",void 0),(0,s.__decorate)([(0,o.Cb)({attribute:!1})],d.prototype,"inputType",void 0),(0,s.__decorate)([(0,o.Cb)({attribute:!1})],d.prototype,"inputSuffix",void 0),(0,s.__decorate)([(0,o.Cb)({attribute:!1})],d.prototype,"inputPrefix",void 0),(0,s.__decorate)([(0,o.Cb)({attribute:!1})],d.prototype,"autocomplete",void 0),(0,s.__decorate)([(0,o.Cb)({attribute:!1})],d.prototype,"addLabel",void 0),(0,s.__decorate)([(0,o.Cb)({attribute:!1})],d.prototype,"removeLabel",void 0),(0,s.__decorate)([(0,o.Cb)({attribute:"item-index",type:Boolean})],d.prototype,"itemIndex",void 0),d=(0,s.__decorate)([(0,o.Mo)("ha-multi-textfield")],d)}
1,97580:function(t,e,i){i.d(e,{Zo:()=>a,tt:()=>s});const s=t=>t.callWS({type:"cloud/alexa/entities"}),a=(t,e)=>t.callWS({type:"cloud/alexa/entities/get",entity_id:e})},31307:function(t,e,i){i.d(e,{AC:()=>m,AV:()=>c,De:()=>u,H9:()=>p,LI:()=>d,LV:()=>_,Mc:()=>r,QD:()=>y,VU:()=>a,_Y:()=>s,_t:()=>l,bi:()=>n,dV:()=>g,dn:()=>h,u_:()=>o});const s=({hass:t,...e})=>t.callApi("POST","cloud/login",e),a=t=>t.callApi("POST","cloud/logout"),o=(t,e)=>t.callApi("POST","cloud/forgot_password",{email:e}),n=(t,e,i)=>t.callApi("POST","cloud/register",{email:e,password:i}),l=(t,e)=>t.callApi("POST","cloud/resend_confirm",{email:e}),d=t=>t.callWS({type:"cloud/status"}),c=(t,e)=>t.callWS({type:"cloud/cloudhook/create",webhook_id:e}),r=(t,e)=>t.callWS({type:"cloud/cloudhook/delete",webhook_id:e}),h=t=>t.callWS({type:"cloud/remote/connect"}),p=t=>t.callWS({type:"cloud/remote/disconnect"}),u=t=>t.callWS({type:"cloud/subscription"}),_=(t,e)=>t.callWS({type:"cloud/update_prefs",...e}),g=t=>t.callWS({type:"cloud/remove_data"}),y=(t,e,i)=>t.callWS({type:"cloud/google_assistant/entities/update",entity_id:e,disable_2fa:i}),m=t=>t.callApi("GET","cloud/support_package")},84301:function(t,e,i){i.d(e,{Fk:()=>o,HC:()=>l,_v:()=>n,fL:()=>a,rx:()=>s});const s={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,i)=>t.callWS({type:"homeassistant/expose_new_entities/set",assistant:e,expose_new:i}),o=(t,e)=>t.callWS({type:"homeassistant/expose_new_entities/get",assistant:e}),n=(t,e,i,s)=>t.callWS({type:"homeassistant/expose_entity",assistants:e,entity_ids:i,should_expose:s}),l=t=>t.callWS({type:"homeassistant/expose_entity/list"})},65700:function(t,e,i){i.d(e,{Jq:()=>a,gh:()=>s});const s=t=>t.callWS({type:"cloud/google_assistant/entities"}),a=(t,e)=>t.callWS({type:"cloud/google_assistant/entities/get",entity_id:e})},33929:function(t,e,i){i.r(e);i(81738),i(22960);var s=i(73742),a=i(59048),o=i(26292),n=i(28105),l=i(84301);i(40238);class d extends a.oi{render(){return this.params?a.dy`<entity-voice-settings .hass="${this.hass}" .entityId="${this.entry.entity_id}" .entry="${this.entry}" .exposed="${this._calculateExposed(this.entry)}"></entity-voice-settings>`:a.Ld}static get styles(){return[a.iv`:host{display:flex;flex-direction:column}.content{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;flex:1}`]}constructor(...t){super(...t),this._calculateExposed=(0,n.Z)(t=>{const e={};return Object.keys(l.rx).forEach(i=>{e[i]=t.options?.[i]?.should_expose}),e})}}(0,s.__decorate)([(0,o.Cb)({attribute:!1})],d.prototype,"hass",void 0),(0,s.__decorate)([(0,o.Cb)({attribute:!1})],d.prototype,"entry",void 0),(0,s.__decorate)([(0,o.Cb)()],d.prototype,"params",void 0),d=(0,s.__decorate)([(0,o.Mo)("ha-more-info-view-voice-assistants")],d)},40238:function(t,e,i){i(81738),i(94814),i(6989);var s=i(73742),a=i(59048),o=i(26292),n=i(28105),l=i(37528),d=i(39884),c=i(18460),r=(i(12942),i(79160),i(63752),i(53166),i(55245),i(86699),i(97580)),h=i(31307),p=i(70947),u=i(84301),_=i(65700),g=i(6291),y=i(95814),m=i(35580),x=i(42399);class b extends((0,g.f)(a.oi)){willUpdate(t){(0,l.p)(this.hass,"cloud")&&(t.has("entityId")&&this.entityId&&this._fetchEntities(),this.hasUpdated||(0,h.LI)(this.hass).then(t=>{this._cloudStatus=t}))}async _fetchEntities(){try{const t=await(0,_.Jq)(this.hass,this.entityId);this._googleEntity=t,this.requestUpdate("_googleEntity")}catch(t){"not_supported"===t.code&&(this._unsupported["cloud.google_assistant"]=!0,this.requestUpdate("_unsupported"))}try{await(0,r.Zo)(this.hass,this.entityId)}catch(t){"not_supported"===t.code&&(this._unsupported["cloud.alexa"]=!0,this.requestUpdate("_unsupported"))}}render(){const t=!0===this._cloudStatus?.logged_in&&!0===this._cloudStatus.prefs.google_enabled,e=!0===this._cloudStatus?.logged_in&&!0===this._cloudStatus.prefs.alexa_enabled,i=[...Object.keys(u.rx)],s=[...i],o=e&&!(0,c.u)(this._cloudStatus.alexa_entities),n=t&&!(0,c.u)(this._cloudStatus.google_entities);t?n&&s.splice(s.indexOf("cloud.google_assistant"),1):(i.splice(i.indexOf("cloud.google_assistant"),1),s.splice(i.indexOf("cloud.google_assistant"),1)),e?o&&s.splice(s.indexOf("cloud.alexa"),1):(i.splice(i.indexOf("cloud.alexa"),1),s.splice(s.indexOf("cloud.alexa"),1));const l=s.some(t=>this.exposed[t]);let d;(o||n)&&(d=this._getEntityFilterFuncs(this._cloudStatus.google_entities,this._cloudStatus.alexa_entities));
1const r=o&&d.alexa(this.entityId),h=n&&d.google(this.entityId),p=l||r||h;return a.dy` <ha-settings-row> <h3 slot="heading"> ${this.hass.localize("ui.dialogs.voice-settings.expose_header")} </h3> <ha-switch @change="${this._toggleAll}" .assistants="${s}" .checked="${p}"></ha-switch> </ha-settings-row> ${p?i.map(t=>{const e=!this._unsupported[t],i=o&&"cloud.alexa"===t?r:n&&"cloud.google_assistant"===t?h:this.exposed[t],s=o&&"cloud.alexa"===t||n&&"cloud.google_assistant"===t,l="cloud.google_assistant"===t&&!n&&e&&this._googleEntity?.might_2fa;return a.dy` <ha-settings-row .threeLine="${!e&&s}"> <img alt="" src="${(0,m.X1)({domain:u.rx[t].domain,type:"icon",darkOptimized:this.hass.themes?.darkMode})}" crossorigin="anonymous" referrerpolicy="no-referrer" slot="prefix"> <span slot="heading">${u.rx[t].name}</span> ${e?a.Ld:a.dy`<div slot="description" class="unsupported"> <ha-svg-icon .path="${"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}"></ha-svg-icon> ${this.hass.localize("ui.dialogs.voice-settings.unsupported")} </div>`} ${s?a.dy` <div slot="description"> ${this.hass.localize("ui.dialogs.voice-settings.manual_config")} </div> `:a.Ld} ${l?a.dy` <ha-formfield slot="description" .label="${this.hass.localize("ui.dialogs.voice-settings.ask_pin")}"> <ha-checkbox .checked="${!this._googleEntity.disable_2fa}" @change="${this._2faChanged}"></ha-checkbox> </ha-formfield> `:a.Ld} <ha-switch .assistant="${t}" @change="${this._toggleAssistant}" .disabled="${s||!i&&!e}" .checked="${i}"></ha-switch> </ha-settings-row> `}):a.Ld} <h3 class="header"> ${this.hass.localize("ui.dialogs.voice-settings.aliases_header")} </h3> <p class="description"> ${this.hass.localize("ui.dialogs.voice-settings.aliases_description")} </p> ${this.entry?a.dy`<ha-aliases-editor .hass="${this.hass}" .aliases="${this._aliases??this.entry.aliases}" @value-changed="${this._aliasesChanged}" @blur="${this._saveAliases}"></ha-aliases-editor>`:a.dy`<ha-alert alert-type="warning"> ${this.hass.localize("ui.dialogs.voice-settings.aliases_no_unique_id",{faq_link:a.dy`<a href="${(0,x.R)(this.hass,"/faq/unique_id")}" target="_blank" rel="noreferrer">${this.hass.localize("ui.dialogs.entity_registry.faq")}</a>`})} </ha-alert>`} `}_aliasesChanged(t){const e=this._aliases?.length??this.entry?.aliases?.length??0;this._aliases=t.detail.value,e>t.detail.value.length&&this._saveAliases()}async _2faChanged(t){try{await(0,h.QD)(this.hass,this.entityId,!t.target.checked)}catch(e){t.target.checked=!t.target.checked}}async _saveAliases(){if(!this._aliases)return;const t=await(0,p.Nv)(this.hass,this.entityId,{aliases:this._aliases.map(t=>t.trim()).filter(t=>t)});(0,d.B)(this,"entity-entry-updated",t.entity_entry)}async _toggleAssistant(t){if((0,u._v)(this.hass,[t.target.assistant],[this.entityId],t.target.checked),this.entry){const t=await(0,p.L3)(this.hass,this.entityId);(0,d.B)(this,"entity-entry-updated",t)}(0,d.B)(this,"exposed-entities-changed")}async _toggleAll(t){const e=t.target.checked?t.target.assistants.filter(t=>!this._unsupported[t]):t.target.assistants;if((0,u._v)(this.hass,e,[this.entityId],t.target.checked),this.entry){const t=await(0,p.L3)(this.hass,this.entityId);(0,d.B)(this,"entity-entry-updated",t)}(0,d.B)(this,"exposed-entities-changed")}static get styles(){return[y.Qx,a.iv`:host{display:block;margin:32px;margin-top:0;--settings-row-prefix-display:contents;--settings-row-content-display:contents}ha-settings-row{padding:0}img{height:32px;width:32px;margin-right:16px;margin-inline-end:16px;margin-inline-start:initial}ha-aliases-editor{display:block}ha-alert{display:block;margin-top:16px}ha-formfield{margin-left:-8px;margin-inline-start:-8px;margin-inline-end:initial}ha-checkbox{--mdc-checkbox-state-layer-size:40px}.unsupported{display:flex;align-items:center}.unsupported ha-svg-icon{color:var(--error-color);--mdc-icon-size:16px;margin-right:4px;margin-inline-end:4px;margin-inline-start:initial}.header{margin-top:8px;margin-bottom:4px}.description{color:var(--secondary-text-color);font-size:var(--ha-font-size-m);line-height:var(--ha-line-height-condensed);margin-top:0;margin-bottom:16px}`]}constructor(...t){super(...t),this._unsupported={},this._getEntityFilterFuncs=(0,n.Z)((t,e)=>({google:(0,c.b)(t.include_domains,t.include_entities,t.exclude_domains,t.exclude_entities),alexa:(0,c.b)(e.include_domains,e.include_entities,e.exclude_domains,e.exclude_entities)}))}}(0,s.__decorate)([(0,o.Cb)({attribute:!1})],b.prototype,"hass",void 0),(0,s.__decorate)([(0,o.Cb)({attribute:!1})],b.prototype,"entityId",void 0),(0,s.__decorate)([(0,o.Cb)({attribute:!1})],b.prototype,"exposed",void 0),(0,s.__decorate)([(0,o.Cb)({attribute:!1})],b.prototype,"entry",void 0),(0,s.__decorate)([(0,o.SB)()],b.prototype,"_cloudStatus",void 0),(0,s.__decorate)([(0,o.SB)()],b.prototype,"_aliases",void 0),(0,s.__decorate)([(0,o.SB)()],b.prototype,"_googleEntity",void 0),(0,s.__decorate)([(0,o.SB)()],b.prototype,"_unsupported",void 0),b=(0,s.__decorate)([(0,o.Mo)("entity-voice-settings")],b)}};
2//# sourceMappingURL=19791.bbf66a999c785754.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.