PageSourceSearch

https://steiler.de/frontend_latest/97592.1f826b13e9421583.js

js steiler.de collected 2026-09-25 22:44:33 UTC 7,470 bytes, 2 lines download raw bytes

1export const __rspack_esm_id=97592;export const __rspack_esm_ids=[97592];export const __webpack_modules__={84260(t,e,i){i(45367),i(92731),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698);i.d(e,{},{b:(t,e)=>{if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;let i,r;if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(i=r;0!==i--;)if(t[i]!==e[i])return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(i[1]!==e.get(i[0]))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(r=t.length,r!==e.length)return!1;for(i=r;0!==i--;)if(t[i]!==e[i])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(r=s.length,r!==Object.keys(e).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(e,s[i]))return!1;for(i=r;0!==i--;){const r=s[i];if(t[r]!==e[r])return!1}return!0}return t!=t&&e!=e}})},35609(t,e,i){const r=(0,i(63018).q6)("dirtyState");i.d(e,{},{f:r,v:"__default__"})},28229(t,e,i){i(18111),i(13579),i(45367),i(92731);var r=i(28861),s=i(63018),a=i(33810),o=i(82476),n=i(62228),l=i(742),c=i(84260),d=i(35609);const h=new Map,p=()=>{const t=Array.from(h.values()).some(Boolean);t!==window.isDirtyState&&(window.isDirtyState=t,(0,n.r)(window,"dirty-state-changed",{isDirty:t}))};i.d(e,{},{U:()=>t=>{class e extends t{_normalizeEffective(t){return this._effectiveNormalize?this._effectiveNormalize(t):t}_buildContextValue(){const t=Array.from(this._dirtySlices.values());return{isDirty:t.some(({initial:t,current:e})=>!this._dirtyCompareFn(t,e)),isEffectiveDirty:t.some(({normalizedInitial:t,current:e})=>!this._dirtyCompareFn(t,this._normalizeEffective(e))),setState:(t,e)=>{this._writeSlice(e,t)},markClean:()=>{this._markDirtyStateClean()}}}_publishContext(){this._dirtyStateContext=this._buildContextValue()}connectedCallback(){super.connectedCallback(),h.set(this,this.isDirtyState),p()}updated(t){super.updated(t),h.set(this,this.isDirtyState),p()}disconnectedCallback(){h.delete(this),p(),super.disconnectedCallback()}_writeSlice(t,e){const i=this._dirtySlices.get(t);if(!i){const i=this._dirtyCloneFn(e);return this._dirtySlices.set(t,{initial:i,current:e,normalizedInitial:this._normalizeEffective(i)}),void this._publishContext()}this._dirtyCompareFn(i.current,e)||(i.current=e,this._publishContext())}_initDirtyTracking(t,e,i){switch(this._effectiveNormalize=i,t.type){case"deep":this._dirtyCompareFn=(t,e)=>(0,l.b)(t,e),this._dirtyCloneFn=t=>(0,a.A)(t);break;case"shallow":this._dirtyCompareFn=(t,e)=>(0,c.b)(t,e),this._dirtyCloneFn=t=>t;break;default:this._dirtyCompareFn=t.compare,this._dirtyCloneFn=t=>t}if(this._dirtySlices.clear(),void 0!==e){const t=this._dirtyCloneFn(e);this._dirtySlices.set(d.v,{initial:t,current:e,normalizedInitial:this._normalizeEffective(t)})}this._publishContext()}_updateDirtyState(t){this._writeSlice(d.v,t)}_markDirtyStateClean(){for(const t of this._dirtySlices.values())t.initial=this._dirtyCloneFn(t.current),t.normalizedInitial=this._normalizeEffective(t.initial);this._publishContext()}_discardDirtyStateChanges(){for(const t of this._dirtySlices.values())t.current=this._dirtyCloneFn(t.initial);this._publishContext()}get isDirtyState(){return this._dirtyStateContext.isDirty}get isEffectiveDirtyState(){return this._dirtyStateContext.isEffectiveDirty}constructor(...t){super(...t),this._dirtySlices=new Map,this._dirtyCompareFn=l.b,this._dirtyCloneFn=t=>t,this._dirtyStateContext=this._buildContextValue()}}return(0,r.Cg)([(0,s.Gt)({context:d.f}),(0,o.wk)()],e.prototype,"_dirtyStateContext",void 0),e}})},75115(t,e,i){i.a(t,async function(t,r){try{i.r(e);var s=i(28861),a=i(11467),o=i(82476),n=i(62228),l=i(52937),c=i(69595),d=i(25395),h=(i(35883),i(70366)),p=i(21867),_=i(28229),u=i(7578),y=i(92718),f=t([l,c,d,h,p,y]);[l,c,d,h,p,y]=f.then?(await f)():f;class g extends((0,_.U)()(a.WF)){showDialog(t){this._open=!0,this._params=t,this._initDirtyTracking({type:"shallow"},"")}closeDialog(){return this._open=!1,!0}_dialogClosed(){this._open&&(0,n.r)(this,"dialog-closed",{dialog:this.localName}),this._open=!1,this._params=void 0,this._encryptionKey="",this._error=""}render(){return this._params?a.qy` <ha-dialog .open=${this._open} header-title=${this.hass.localize("ui.panel.config.backup.dialogs.download.title")} .preventScrimClose=${this.isDirtyState} @closed=${this._dialogClosed}> <p> ${this.hass.localize("ui.panel.config.backup.dialogs.download.description")} </p> <p> ${this.hass.localize("ui.panel.config.backup.dialogs.download.download_backup_encrypted",{download_it_encrypted:a.qy`<button class="link" @click=${this._downloadEncrypted}> ${this.hass.localize("ui.panel.config.backup.dialogs.download.download_it_encrypted")} </button>`})} </p> <ha-input type="password" password-toggle .label=${this.hass.localize("ui.panel.config.backup.dialogs.download.encryption_key")} @input=${this._keyChanged}></ha-input> ${this._error?a.qy`<ha-alert alert-type="error">${this._error}</ha-alert>`:a.s6} <ha-dialog-footer slot="footer"> <ha-button slot="secondaryAction" appearance="plain" @click=${this._cancel}> ${this.hass.localize("ui.common.cancel")} </ha-button>
1 <ha-button slot="primaryAction" @click=${this._submit} .disabled=${!this.isDirtyState}> ${this.hass.localize("ui.panel.config.backup.dialogs.download.download")} </ha-button> </ha-dialog-footer> </ha-dialog> `:a.s6}_cancel(){this.closeDialog()}async _submit(){if(""!==this._encryptionKey)try{await(0,p.Zm)(this.hass,this._params.backup.backup_id,this._agentId,this._encryptionKey),(0,y.s)(this.hass,this._params.backup.backup_id,this._agentId,this._encryptionKey),this._markDirtyStateClean(),this.closeDialog()}catch(t){"password_incorrect"===t?.code?this._error=this.hass.localize("ui.panel.config.backup.dialogs.download.incorrect_encryption_key"):"decrypt_not_supported"===t?.code?this._error=this.hass.localize("ui.panel.config.backup.dialogs.download.decryption_not_supported"):alert(t.message)}}_keyChanged(t){this._encryptionKey=t.currentTarget.value,this._error="",this._updateDirtyState(this._encryptionKey)}get _agentId(){return this._params?.agentId?this._params.agentId:(0,p.EB)(Object.keys(this._params.backup.agents))}async _downloadEncrypted(){(0,y.s)(this.hass,this._params.backup.backup_id,this._agentId),this.closeDialog()}static get styles(){return[u.RF,u.nA,a.AH`ha-dialog{--dialog-content-padding:var(--ha-space-2) var(--ha-space-6)}button.link{font-size:var(--ha-font-size-m);color:var(--primary-color);cursor:pointer;background:0 0;border:none;padding:0;text-decoration:underline}`]}constructor(...t){super(...t),this._open=!1,this._encryptionKey="",this._error=""}}(0,s.Cg)([(0,o.MZ)({attribute:!1})],g.prototype,"hass",void 0),(0,s.Cg)([(0,o.wk)()],g.prototype,"_open",void 0),(0,s.Cg)([(0,o.wk)()],g.prototype,"_params",void 0),(0,s.Cg)([(0,o.wk)()],g.prototype,"_encryptionKey",void 0),(0,s.Cg)([(0,o.wk)()],g.prototype,"_error",void 0),g=(0,s.Cg)([(0,o.EM)("ha-dialog-download-decrypted-backup")],g),r()}catch(t){r(t)}})}};
2//# sourceMappingURL=97592.1f826b13e9421583.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.