PageSourceSearch

https://aitor3ml.com/frontend_latest/95587.593a2210f746e30f.js

js aitor3ml.com collected 2026-09-25 22:31:56 UTC 9,821 bytes, 2 lines download raw bytes

1export const __rspack_esm_id=95587;export const __rspack_esm_ids=[95587];export const __webpack_modules__={70381(t,e,i){i.d(e,{},{A:t=>t.name?.trim()})},38071(t,e,i){var o=i(74424),r=i(24783),a=i(52502);const s=(t,e,i)=>{const o=e[t.entity_id];return o?n(o,i):(0,r.u)(t)},n=(t,e,i)=>{const s=t.name||("original_name"in t&&null!=t.original_name?String(t.original_name):void 0),n=t.device_id?e[t.device_id]:void 0;if(!n)return s||(i?(0,r.u)(i):void 0);const l=(0,o.xn)(n);return l!==s?l&&s&&(0,a.p)(s,l)||s:void 0};i.d(e,{},{aH:s,cx:n,es:(t,e,i)=>!s(t,e,i)})},68158(t,e,i){i.d(e,{},{X:t=>t.name?.trim()})},53467(t,e,i){i(33110);var o=i(97400);i.d(e,{},{_:(t,e)=>{if(!(e instanceof o.C5))return{warnings:[e.message],errors:void 0};const i=[],r=[];for(const o of e.failures())if(void 0===o.value)i.push(t.localize("ui.errors.config.key_missing",{key:o.path.join(".")}));else if("never"===o.type)r.push(t.localize("ui.errors.config.key_not_expected",{key:o.path.join(".")}));else{if("union"===o.type)continue;"enums"===o.type?r.push(t.localize("ui.errors.config.key_wrong_type",{key:o.path.join("."),type_correct:o.message.replace("Expected ","").split(", ")[0],type_wrong:JSON.stringify(o.value)})):r.push(t.localize("ui.errors.config.key_wrong_type",{key:o.path.join("."),type_correct:o.refinement||o.type,type_wrong:JSON.stringify(o.value)}))}return{warnings:r,errors:i}}})},1315(t,e,i){var o=i(27065);i.d(e,{},{l:async(t,e)=>{if(navigator.clipboard)try{return void await navigator.clipboard.writeText(t)}catch{}const i=e||(0,o.n)()?.getRootNode()||document.body,r=i.nodeType===Node.DOCUMENT_NODE?document.body:i,a=document.createElement("textarea");a.value=t,a.setAttribute("readonly",""),a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",r.appendChild(a),a.select(),document.execCommand("copy"),r.removeChild(a)}})},742(t,e,i){i(45367),i(92731),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698);const o=(t,e,i)=>{if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;let r,a;if(Array.isArray(t)){if(a=t.length,a!==e.length)return!1;for(r=a;0!==r--;)if(!o(t[r],e[r],i))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!o(r[1],e.get(r[0]),i))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(a=t.length,a!==e.length)return!1;for(r=a;0!==r--;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();const s=Object.keys(t);if(a=s.length,a!==Object.keys(e).length)return!1;for(r=a;0!==r--;)if(!Object.prototype.hasOwnProperty.call(e,s[r]))return!1;for(r=a;0!==r--;){const a=s[r];if(!o(t[a],e[a],i))return!1}if(i?.compareSymbols){const r=Object.getOwnPropertySymbols(t),a=Object.getOwnPropertySymbols(e);if(r.length!==a.length)return!1;for(const a of r){if(!Object.prototype.hasOwnProperty.call(e,a))return!1;if(!o(t[a],e[a],i))return!1}}return!0}return t!=t&&e!=e};i.d(e,{},{b:o})},56684(t,e,i){i.a(t,async function(t,e){try{var o=i(28861),r=i(33872),a=i(11467),s=i(82476),n=i(63018),l=i(62228),d=i(1315),c=i(7578),h=i(10110),u=i(69595),p=i(28486),y=i(78813),g=t([u,p]);[u,p]=g.then?(await g)():g;const f=t=>{if("object"!=typeof t||null===t)return!1;for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0};class m extends a.WF{setValue(t){try{this._yaml=f(t)?"":(0,r.dump)(t,{schema:this.yamlSchema,noRefs:!0})}catch(e){console.error(e,t),alert(`There was an error converting to YAML: ${e}`)}}firstUpdated(){void 0!==this.defaultValue&&this.setValue(this.defaultValue)}willUpdate(t){super.willUpdate(t),this.autoUpdate&&t.has("value")&&this.setValue(this.value)}focus(){this._codeEditor?.codemirror&&this._codeEditor?.codemirror.focus()}disableCodeEditorFullscreen(){this.disableFullscreen=!0,this._codeEditor&&(this._codeEditor.disableFullscreen=!0)}render(){return void 0===this._yaml?a.s6:a.qy` ${this.label?a.qy`<p>${this.label}${this.required?" *":""}</p>`:a.s6} <ha-code-editor .value=${this._yaml} .readOnly=${this.readOnly} .disableFullscreen=${this.disableFullscreen} .inDialog=${this.inDialog} mode="yaml" lint autocomplete-entities autocomplete-icons .error=${!1===this.isValid} @value-changed=${this._onChange} @editor-save=${this._onEditorSave} dir="ltr"></ha-code-editor> ${this.copyClipboard||this.hasExtraActions?a.qy` <div class="card-actions"> ${this.copyClipboard?a.qy` <ha-button appearance="plain" @click=${this._copyYaml}> ${this._i18n.localize("ui.components.yaml-editor.copy_to_clipboard")} </ha-button>
1 `:a.s6} <slot name="extra-actions"></slot> </div> `:a.s6} `}_onChange(t){let e;t.stopPropagation(),this._yaml=t.detail.value;let i,o=!0,a=null;if(this._yaml)try{e=(0,r.Hh)(this._yaml,{schema:this.yamlSchema})}catch(t){o=!1,a=t,i=`${this._i18n.localize("ui.components.yaml-editor.error",{reason:t.reason})}${t.mark?` (${this._i18n.localize("ui.components.yaml-editor.error_location",{line:t.mark.line+1,column:t.mark.column+1})})`:""}`}else e={};this._codeEditor?.setYamlError(a),this.value=e,this.isValid=o,(0,l.r)(this,"value-changed",{value:e,isValid:o,errorMsg:i})}get yaml(){return this._yaml}get codemirror(){return this._codeEditor?.codemirror}get hasComments(){return this._codeEditor?.hasComments??!1}_onEditorSave(t){(0,l.r)(this,"editor-save"),t.stopPropagation()}async _copyYaml(){this.yaml&&(await(0,d.l)(this.yaml),(0,h.P)(this,{message:this._i18n.localize("ui.common.copied_clipboard")}))}static get styles(){return[c.RF,a.AH`.card-actions{border-radius:var(--actions-border-radius,var(--ha-border-radius-square) var(--ha-border-radius-square) var(--ha-card-border-radius,var(--ha-border-radius-lg)) var(--ha-card-border-radius,var(--ha-border-radius-lg)));border:1px solid var(--divider-color);padding:5px 16px}ha-code-editor{flex-grow:1;min-height:0}`]}constructor(...t){super(...t),this.yamlSchema=r.Wj,this.isValid=!0,this.autoUpdate=!1,this.readOnly=!1,this.disableFullscreen=!1,this.inDialog=!1,this.required=!1,this.copyClipboard=!1,this.hasExtraActions=!1,this._yaml=""}}(0,o.Cg)([(0,s.MZ)()],m.prototype,"value",void 0),(0,o.Cg)([(0,s.MZ)({attribute:!1})],m.prototype,"yamlSchema",void 0),(0,o.Cg)([(0,s.MZ)({attribute:!1})],m.prototype,"defaultValue",void 0),(0,o.Cg)([(0,s.MZ)({attribute:"is-valid",type:Boolean})],m.prototype,"isValid",void 0),(0,o.Cg)([(0,s.MZ)()],m.prototype,"label",void 0),(0,o.Cg)([(0,s.MZ)({attribute:"auto-update",type:Boolean})],m.prototype,"autoUpdate",void 0),(0,o.Cg)([(0,s.MZ)({attribute:"read-only",type:Boolean})],m.prototype,"readOnly",void 0),(0,o.Cg)([(0,s.MZ)({type:Boolean,attribute:"disable-fullscreen"})],m.prototype,"disableFullscreen",void 0),(0,o.Cg)([(0,s.MZ)({type:Boolean,attribute:"in-dialog"})],m.prototype,"inDialog",void 0),(0,o.Cg)([(0,s.MZ)({type:Boolean})],m.prototype,"required",void 0),(0,o.Cg)([(0,s.MZ)({attribute:"copy-clipboard",type:Boolean})],m.prototype,"copyClipboard",void 0),(0,o.Cg)([(0,s.MZ)({attribute:"has-extra-actions",type:Boolean})],m.prototype,"hasExtraActions",void 0),(0,o.Cg)([(0,s.wk)()],m.prototype,"_yaml",void 0),(0,o.Cg)([(0,s.wk)(),(0,n.Fg)({context:y.D5,subscribe:!0})],m.prototype,"_i18n",void 0),(0,o.Cg)([(0,s.P)("ha-code-editor")],m.prototype,"_codeEditor",void 0),m=(0,o.Cg)([(0,s.EM)("ha-yaml-editor")],m),e()}catch(t){e(t)}})},64933(t,e,i){i.a(t,async function(t,o){try{i.r(e);var r=i(28861),a=i(11467),s=i(82476),n=i(62228),l=i(69595),d=(i(35883),i(25395)),c=i(28229),h=i(7578),u=i(41091),p=t([l,d,u]);[l,d,u]=p.then?(await p)():p;class y extends((0,c.U)()(a.WF)){showDialog(t){this._params=t,this._data=t.config.strategy,this._open=!0,this._initDirtyTracking({type:"deep"},this._data)}closeDialog(){this._open=!1}_dialogClosed(){this._params=void 0,this._data=void 0,(0,n.r)(this,"dialog-closed",{dialog:this.localName})}render(){return this._params&&this._data?a.qy` <ha-dialog .open=${this._open} .preventScrimClose=${this.isDirtyState} header-title=${this.hass.localize("ui.panel.config.lovelace.dashboards.detail.new_dashboard")} @closed=${this._dialogClosed}> <div> <hui-dashboard-strategy-element-editor .hass=${this.hass} .lovelace=${this._params.config} .value=${this._data} @config-changed=${this._handleConfigChanged} autofocus></hui-dashboard-strategy-element-editor> </div> <ha-dialog-footer slot="footer"> <ha-button slot="primaryAction" @click=${this._save} .disabled=${this._submitting}> ${this.hass.localize("ui.common.next")} </ha-button> </ha-dialog-footer> </ha-dialog> `:a.s6}_handleConfigChanged(t){this._data=t.detail.config,this._updateDirtyState(this._data)}async _save(){this._data&&(this._submitting=!0,await this._params.saveConfig({...this._params.config,strategy:this._data}),this._submitting=!1,this._markDirtyStateClean(),this.closeDialog())}static get styles(){return[h.nA,a.AH``]}constructor(...t){super(...t),this._open=!1,this._submitting=!1}}(0,r.Cg)([(0,s.MZ)({attribute:!1})],y.prototype,"hass",void 0),(0,r.Cg)([(0,s.wk)()],y.prototype,"_params",void 0),(0,r.Cg)([(0,s.wk)()],y.prototype,"_open",void 0),(0,r.Cg)([(0,s.wk)()],y.prototype,"_submitting",void 0),(0,r.Cg)([(0,s.wk)()],y.prototype,"_data",void 0),y=(0,r.Cg)([(0,s.EM)("dialog-lovelace-dashboard-configure-strategy")],y),i.d(e,{DialogLovelaceDashboardConfigureStrategy:()=>y}),o()}catch(t){o(t)}})},88999(t,e,i){i(74423);i.d(e,{},{o:(t,e)=>`https://${t.config.version.includes("b")?"rc":t.config.version.includes("dev")?"next":"www"}.home-assistant.io${e}`})}};
2//# sourceMappingURL=95587.593a2210f746e30f.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.