PageSourceSearch

https://wardrop.casa/frontend_latest/86108.8fb9e138fadb81ae.js

js wardrop.casa collected 2026-10-09 22:11:04 UTC 26,542 bytes, 3 lines download raw bytes

1/*! For license information please see 86108.8fb9e138fadb81ae.js.LICENSE.txt */
2export const __rspack_esm_id=86108;export const __rspack_esm_ids=[86108];export const __webpack_modules__={65738(t,e,a){const i=()=>Boolean(`${location.protocol}//${location.host}`)&&`${location.protocol}//${location.host}`!==location.origin;a.d(e,{},{e:i,x:t=>i()?new URL(t,`${location.protocol}//${location.host}`).toString():t})},49448(t,e,a){a(47144),a(99686);var i=a(89797),o=a(16406),r=a(20686),s=a(32379);class n extends r.WF{_onSlotChange(t){return e=>{const a=e.target.assignedNodes({flatten:!0}).some(t=>t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.TEXT_NODE&&""!==t.textContent?.trim());"start"===t?this._hasStart=a:this._hasEnd=a}}render(){return this._renderBase(this._renderInner())}_renderBase(t){return r.qy`<div part="base" class="base" id="item">${t}</div>`}_renderInner(){const t=this._slotController.test("content");return r.qy` <div part="start" class="start" ?hidden=${!this._hasStart}> <slot name="start" @slotchange=${this._onSlotChange("start")}></slot> </div> <div part="content" class="content"> ${t?r.qy`<slot name="content"></slot>`:this._renderDefaultContent()} </div> <div part="end" class="end" ?hidden=${!this._hasEnd}> <slot name="end" @slotchange=${this._onSlotChange("end")}></slot> </div> `}_renderDefaultContent(){const t=this._slotController.test("headline"),e=this._slotController.test("supporting-text"),a=t||void 0!==this.headline,i=e||void 0!==this.supportingText;return r.qy` ${a?r.qy`<div part="headline" class="headline"> <slot name="headline">${this.headline??r.s6}</slot> </div>`:r.s6} ${i?r.qy`<div part="supporting-text" class="supporting"> <slot name="supporting-text">${this.supportingText??r.s6}</slot> </div>`:r.s6} `}constructor(...t){super(...t),this.disabled=!1,this._slotController=new o.X(this,"headline","supporting-text","content"),this._hasStart=!1,this._hasEnd=!1}}n.styles=r.AH`:host{color:var(--primary-text-color);font-size:var(--ha-font-size-m);line-height:var(--ha-line-height-normal);display:block}:host([disabled]){color:var(--disabled-text-color);pointer-events:none}.base{align-items:center;gap:var(--ha-row-item-gap,var(--ha-space-4));padding-block:var(--ha-row-item-padding-block,var(--ha-space-3));padding-inline:var(--ha-row-item-padding-inline,var(--ha-space-4));min-height:var(--ha-row-item-min-height,48px);box-sizing:border-box;flex-direction:row;display:flex;position:relative}.content{flex-direction:column;flex:auto;justify-content:center;min-width:0;display:flex}.start,.end{flex:none;align-items:center;display:flex}.start[hidden],.end[hidden]{display:none}.headline{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.supporting{color:var(--secondary-text-color);font-size:var(--ha-font-size-s);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}`,(0,i.Cg)([(0,s.MZ)({type:String})],n.prototype,"headline",void 0),(0,i.Cg)([(0,s.MZ)({type:String,attribute:"supporting-text"})],n.prototype,"supportingText",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],n.prototype,"disabled",void 0),(0,i.Cg)([(0,s.wk)()],n.prototype,"_hasStart",void 0),(0,i.Cg)([(0,s.wk)()],n.prototype,"_hasEnd",void 0),n=(0,i.Cg)([(0,s.EM)("ha-row-item")],n),a.d(e,{x:()=>n})},44199(t,e,a){a.a(t,async function(t,e){try{var i=a(89797),o=a(4542),r=a(20686),s=a(32379),n=t([o]);o=(n.then?(await n)():n)[0];class c extends o.A{static get styles(){return[o.A.styles,r.AH`:host{--indicator-color:var(--ha-progress-bar-indicator-color,var(--ha-color-on-primary-normal));--track-color:var(--ha-progress-bar-track-color,var(--ha-color-fill-neutral-normal-hover));--track-height:var(--ha-progress-bar-track-height,12px);--wa-transition-slow:var(--ha-animation-duration-slow);position:relative}.progress-bar{border-radius:var(--ha-progress-bar-border-radius,var(--ha-border-radius-pill))}.indicator{background:var(--ha-progress-bar-indicator-background,var(--indicator-color))}:host([indeterminate]) .indicator{animation:wa-progress-indeterminate var(--ha-progress-bar-animation-duration,2.5s) infinite cubic-bezier(.37, 0, .63, 1)}@keyframes slide-highlight{0%{transform:translate(-200%)}to{transform:translate(200%)}}:host([loading]:not([indeterminate])) .progress-bar:after{content:"";background:linear-gradient(90deg, transparent 0%, oklch(from var(--indicator-color) 85% c h) 50%, transparent 100%);opacity:.5;animation:slide-highlight var(--ha-progress-bar-animation-duration,2.5s) infinite cubic-bezier(.37, 0, .63, 1);width:50%;position:absolute;inset:0}:host:after{--width:var(--ha-progress-bar-indicator-highlight-width,calc(var(--track-height) * 2));width:var(--width);height:var(--ha-progress-bar-indicator-highlight-height,calc(var(--track-height) * 2));content:"";inset-inline-start:clamp(var(--width) / 2, var(--percentage,0%), calc(100% - var(--width) / 2));background-image:var(--ha-progress-bar-indicator-highlight-image);pointer-events:none;transition:inset-inline-start var(--wa-transition-slow,.2s) var(--wa-transition-easing,ease);background-position:50%;background-repeat:no-repeat;background-size:contain;position:absolute;top:50%;transform:translate(-50%,-50%)}:host([indeterminate]):after{display:none}`]}constructor(...t){super(...t),this.loading=!1}}(0,i.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],c.prototype,"loading",void 0),c=(0,i.Cg)([(0,s.EM)("ha-progress-bar")],c),e()}catch(t){e(t)}})},94216(t,e,a){a.a(t,async function(t,i){try{a(97700),a(47144),a(25744),a(65337),a(8021),a(89542),a(34602),a(95637),a(14269),a(29319),a(87199);var o=a(83164),r=a(63098),s=a(19741),n=a(19237),c=a(37151),l=a(6694),d=a(26194),p=a(67779),h=a(1589),u=a(58506),_=t([c,l]);[c,l]=_.then?(await _)():_;var g=59509==a.j?function(t){return t.NEVER="never",t.DAILY="daily",t.CUSTOM_DAYS="custom_days",t}({}):null;const b=59509==a.j?["mon","tue","wed","thu","fri","sat","sun"]:null,f=t=>t.sort((t,e)=>b.indexOf(t)-b.indexOf(e)),m=t=>t.callWS({type:"backup/config/info"}),v=(t,e)=>t.callWS({type:"backup/config/update",...e}),k=(t,e)=>v(t,{create_backup:{agent_ids:e.create_backup.agent_ids,include_folders:e.create_backup.include_folders??[],include_database:e.create_backup.include_database,include_addons:e.create_backup.include_addons??[],include_all_addons:e.create_backup.include_all_addons,password:e.create_backup.password},retention:e.retention,schedule:e.schedule}),y=(t,e,a)=>`/api/backup/download/${t}?agent_id=${e}${a?`&password=${a}`:""}`,w=t=>t.callWS({type:"backup/info"}),x=(t,e)=>t.callWS({type:"backup/details",backup_id:e}),$=t=>t.callWS({type:"backup/agents/info"}),C=(t,e)=>t.callWS({type:"backup/delete",backup_id:e}),O=(t,e)=>t.callWS({type:"backup/generate",...e}),j=t=>t.callWS({type:"backup/generate_with_automatic_settings"}),S=(t,e)=>t.callWS({type:"backup/restore",...e}),z=async(t,e,a)=>{const i=new FormData;i.append("file",e);const o=new URLSearchParams;return a.forEach(t=>{o.append("agent_id",t)}),(0,h.QE)(t.fetchWithAuth(`/api/backup/upload?${o.toString()}`,{method:"POST",body:i}))},L=t=>{const e=t.find(U);if(e)return e;const a=t.find(M);return a||t[0]},B=(t,e,a,i)=>t.callWS({type:"backup/can_decrypt_on_download",backup_id:e,agent_id:a,password:i}),E="backup.local",T="hassio.local",A="cloud.cloud",q=3,U=t=>[E,T].includes(t),N=t=>t?.filter(t=>A in t.agents).sort((t,e)=>new Date(e.date).getTime()-new Date(t.date).getTime())[0],W=t=>!!t?.automatic_backups_configured&&t.create_backup.agent_ids.includes(A),D=59509==a.j?60*q*60*1e3:null,I=t=>{if(!W(t))return"none";const e=t?.last_completed_automatic_backup?new Date(t.last_completed_automatic_backup).getTime():0,a=t?.last_attempted_automatic_backup?new Date(t.last_attempted_automatic_backup).getTime():0;if(!e&&!a)return"none";if(a>e)return"failed";const i=t?.next_automatic_backup&&new Date(t.next_automatic_backup).getTime();return i&&i<Date.now()-D?"old":"success"},M=t=>{const[e,a]=t.split(".");return"hassio"===e&&"local"!==a},R=(t,e,a)=>{if(U(e))return t("ui.panel.config.backup.agents.local_agent");const i=a.find(t=>t.agent_id===e),o=e.split(".")[0],r=i?i.name:e.split(".")[1];if(M(e))return r;const s=(0,u.p$)(t,o);return a.filter(t=>t.agent_id.split(".")[0]===o).length>1?`${s}: ${r}`:s},F=t=>Math.max(...Object.values(t.agents).map(t=>t.size)),H=["automatic","app_update","manual"],P=(0,s.A)(t=>t?H:H.filter(t=>"app_update"!==t)),Y=(t,e)=>t.with_automatic_settings?"automatic":!e||null==t.extra_metadata?.["supervisor.addon_update"]&&null==t.extra_metadata?.["supervisor.app_update"]?"manual":"app_update",Z=(t,e)=>{const a=U(t),i=U(e),o=M(t),r=M(e),s=(t,e)=>t?1:e?2:3,n=s(a,o),c=s(i,r);return n!==c?n-c:t.localeCompare(e)},J=()=>{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",e="xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx";let a="";const i=new Uint8Array(34);
2return crypto.getRandomValues(i),i.forEach((i,o)=>{a+="-"===e[o]?"-":t[i%36]}),a},K=(t,e)=>"data:text/plain;charset=utf-8,"+encodeURIComponent(`${t.localize("ui.panel.config.backup.emergency_kit_file.title")}\n\n${t.localize("ui.panel.config.backup.emergency_kit_file.description")}\n\n${t.localize("ui.panel.config.backup.emergency_kit_file.date")} ${(0,c.r6)(new Date,t.locale,t.config)}\n\n${t.localize("ui.panel.config.backup.emergency_kit_file.instance")}\n${t.config.location_name}\n\n${t.localize("ui.panel.config.backup.emergency_kit_file.url")}\n${t.auth.data.hassUrl}\n\n${t.localize("ui.panel.config.backup.emergency_kit_file.encryption_key")}\n${e}\n\n${t.localize("ui.panel.config.backup.emergency_kit_file.more_info",{link:(0,d.ou)(t,"/more-info/backup-emergency-kit")})}`),V=(t,e)=>`home_assistant_backup_emergency_kit_${e?`${e}_`:""}${(0,c.GH)(new Date,t.locale,t.config).replace(",","").replace(" ","_")}.txt`,X=(t,e,a)=>(0,p.R)(K(t,e),V(t,a)),G=(0,o.g)((0,r.a)(new Date,4),45),Q=(0,o.g)((0,r.a)(new Date,5),45),tt=(0,s.A)((t,e,a)=>{if((0,n.A)(a))return(0,l.fU)(a,t,e);if("string"==typeof a&&a){const i=a.split(":"),s=(0,o.g)((0,r.a)(new Date,parseInt(i[0])),parseInt(i[1]));return(0,l.fU)(s,t,e)}return`${(0,l.fU)(G,t,e)} - ${(0,l.fU)(Q,t,e)}`}),et="application/x-tar",at=t=>t.type===et||t.name.toLowerCase().endsWith(".tar"),it=59509==a.j?{file:void 0}:null;a.d(e,{qk:()=>g},{BW:W,Bi:U,Dt:it,EB:L,Fi:at,IW:j,P_:$,Q2:N,SG:O,Sx:X,T2:b,Xm:m,Ye:f,Zm:B,cq:J,dH:S,en:tt,gE:I,gF:k,gb:v,gv:E,jU:M,kI:z,mF:T,mu:C,oJ:A,pI:w,pL:Q,q5:P,q7:R,sp:Y,uM:G,v3:F,xN:et,yL:y,yj:Z,zZ:x}),i()}catch(t){i(t)}})},93814(t,e,a){a.d(e,{c:()=>r});const i=async(t,e,a,o,r,...s)=>{const n=r,c=n[t],l=c=>o&&o(r,c.result)!==c.cacheKey?(n[t]=void 0,i(t,e,a,o,r,...s)):c.result;if(c)return c instanceof Promise?c.then(l):l(c);const d=a(r,...s),p=d.then(t=>({result:t,cacheKey:o?.(r,t)}));return n[t]=p,p.then(a=>{n[t]=a,setTimeout(()=>{n[t]===a&&(n[t]=void 0)},e)},()=>{n[t]=void 0}),d},o=t=>t.callWS({type:"entity/source"}),r=t=>i("_entitySources",3e4,o,t=>Object.keys(t.states).length,t)},21649(t,e,a){a(97700);const i=window.externalAppV2||window.externalApp||window.webkit?.messageHandlers?.getExternalAuth||location.search.includes("external_auth=1"),o=window.externalApp||window.externalAppV2;a.d(e,{},{B:o,g:i})},94902(t,e,a){a.d(e,{},{r:async(t,e)=>t.callWS({type:"hassio/update/config/update",...e}),y:async t=>t.callWS({type:"hassio/update/config/info"})})},73212(t,e,a){a.a(t,async function(t,e){try{a(97700);var i=a(89797),o=(a(45999),a(21947),a(20686)),r=a(32379),s=a(98878),n=a(13820),c=a(80827),l=a(70465),d=a(11808),p=a(99890),h=(a(66705),a(41850)),u=(a(49448),a(94216)),_=a(66572),g=a(93814),b=a(94902),f=a(13755),m=t([h,u,f,c]);[h,u,f,c]=m.then?(await m)():m;class v extends o.WF{get createBackup(){return!(!this.stateObj||!(0,p.$)(this.stateObj,f.TY.BACKUP))&&this._createBackup}firstUpdated(){this._setupBackup()}render(){if(!this.stateObj||!(0,p.$)(this.stateObj,f.TY.BACKUP))return o.s6;const t=this._computeCreateBackupTexts();return t||this._backupConfigLoading?o.qy` <ha-row-item .headline=${t?t.title:void 0} .supportingText=${t?t.description:void 0}> ${t?o.s6:o.qy`<ha-fade-in slot="headline" .delay=${500}><ha-skeleton-text></ha-skeleton-text></ha-fade-in>`} ${this._createBackupLoading?o.qy`<ha-fade-in class="skeleton-end" slot="end" .delay=${500}><ha-skeleton></ha-skeleton></ha-fade-in>`:o.qy`<ha-switch slot="end" .checked=${this._createBackup} @change=${this._createBackupChanged} .disabled=${(0,f.Jy)(this.stateObj)}></ha-switch>`} </ha-row-item> `:o.s6}async _setupBackup(){if(!(0,p.$)(this.stateObj,f.TY.BACKUP))return this._createBackupLoading=!1,void(this._backupConfigLoading=!1);let t;try{this._entitySources=await(0,g.c)({callWS:this._api.callWS,states:this._states}),t=(0,f.mj)(this.stateObj,this._entitySources)}catch(t){console.error(t)}if(void 0===t)return this._createBackupLoading=!1,void(this._backupConfigLoading=!1);this._fetchUpdateBackupConfig(t),this._fetchBackupConfig(t)}async _fetchUpdateBackupConfig(t){try{if((0,n.x)(this._config,"hassio")&&["addon","home_assistant","home_assistant_os"].includes(t)){const e=await(0,b.y)(this._api);if(this._isHaOrOsUpdate(t))return void(this._createBackup=e.core_backup_before_update);"addon"===t&&(this._createBackup=e.add_on_backup_before_update)}}catch(t){console.error(t),this._createBackup=!1}finally{this._createBackupLoading=!1}}async _fetchBackupConfig(t){try{if(this._isHaOrOsUpdate(t)){const{config:t}=await(0,u.Xm)(this._api);this._backupConfig=t}}catch(t){console.error(t)}finally{this._backupConfigLoading=!1}}_isHaOrOsUpdate(t){return["home_assistant","home_assistant_os"].includes(t)}_computeCreateBackupTexts(){const t=this._entitySources?(0,f.mj)(this.stateObj,this._entitySources):"generic";if(this._isHaOrOsUpdate(t)){if(this._backupConfigLoading)return;if(!(!!this._backupConfig&&!!this._backupConfig.automatic_backups_configured&&!!this._backupConfig.create_backup.password&&this._backupConfig.create_backup.agent_ids.length>0))return{title:this._localize("ui.dialogs.more_info_control.update.create_backup.manual"),description:this._localize("ui.dialogs.more_info_control.update.create_backup.manual_description")};const t=this._backupConfig?.last_completed_automatic_backup?new Date(this._backupConfig?.last_completed_automatic_backup):null,e=new Date;return{title:this._localize("ui.dialogs.more_info_control.update.create_backup.automatic"),description:t?this._localize("ui.dialogs.more_info_control.update.create_backup.automatic_description_last",{relative_time:(0,c.K)(t,this._locale,e,!0)}):this._localize("ui.dialogs.more_info_control.update.create_backup.automatic_description_none")}}
2if("addon"===t){const t=this.stateObj.attributes.installed_version;return{title:this._localize("ui.dialogs.more_info_control.update.create_backup.app"),description:t?this._localize("ui.dialogs.more_info_control.update.create_backup.app_description",{version:t}):void 0}}return{title:this._localize("ui.dialogs.more_info_control.update.create_backup.generic")}}_createBackupChanged(t){this._createBackup=t.target.checked}constructor(...t){super(...t),this._backupConfigLoading=!0,this._createBackupLoading=!0,this._createBackup=!1}}v.styles=o.AH`:host{width:100%;display:block}ha-row-item{--ha-row-item-padding-inline:var(--ha-space-6);width:100%}.skeleton-end{--ha-skeleton-border-radius:var(--ha-border-radius-pill);width:48px;height:24px;display:block}`,(0,i.Cg)([(0,r.MZ)({attribute:!1})],v.prototype,"stateObj",void 0),(0,i.Cg)([(0,r.wk)(),(0,l.IW)()],v.prototype,"_localize",void 0),(0,i.Cg)([(0,r.wk)(),(0,s.F)({context:_.D5,subscribe:!0}),(0,d.p)({transformer:({locale:t})=>t})],v.prototype,"_locale",void 0),(0,i.Cg)([(0,r.wk)()],v.prototype,"_backupConfigLoading",void 0),(0,i.Cg)([(0,r.wk)()],v.prototype,"_backupConfig",void 0),(0,i.Cg)([(0,r.wk)()],v.prototype,"_createBackupLoading",void 0),(0,i.Cg)([(0,r.wk)()],v.prototype,"_createBackup",void 0),(0,i.Cg)([(0,r.wk)()],v.prototype,"_entitySources",void 0),(0,i.Cg)([(0,s.F)({context:_.Ie,subscribe:!0})],v.prototype,"_api",void 0),(0,i.Cg)([(0,s.F)({context:_.iN,subscribe:!0})],v.prototype,"_states",void 0),(0,i.Cg)([(0,s.F)({context:_.WF,subscribe:!0}),(0,d.p)({transformer:({config:t})=>t})],v.prototype,"_config",void 0),v=(0,i.Cg)([(0,r.EM)("ha-more-info-update-backup")],v),e()}catch(t){e(t)}})},47927(t,e,a){a.a(t,async function(t,i){try{a.r(e);var o=a(89797),r=a(20686),s=a(32379),n=a(98878),c=(a(60666),a(70465)),l=a(99890),d=a(76761),p=a(46686),h=a(90306),u=(a(97511),a(49057)),_=a(44199),g=a(66572),b=a(52695),f=a(13755),m=a(7915),v=a(73212),k=t([p,h,u,_,v,f]);[p,h,u,_,v,f]=k.then?(await k)():k;class y extends r.WF{render(){if(!this._localize||!this.stateObj||this.stateObj.state===b.Hh||this.stateObj.state===b.HV)return r.s6;const t=(0,d.zO)(this.stateObj.attributes.release_url);return r.qy` <div class="content"> <div class="summary"> ${this.stateObj.attributes.in_progress?(0,l.$)(this.stateObj,f.TY.PROGRESS)&&null!==this.stateObj.attributes.update_percentage?r.qy`<ha-progress-bar loading .value=${this.stateObj.attributes.update_percentage}></ha-progress-bar>`:r.qy`<ha-progress-bar indeterminate></ha-progress-bar>`:r.s6} <h3>${this.stateObj.attributes.title}</h3> ${this._error?r.qy`<ha-alert alert-type="error">${this._error}</ha-alert>`:r.s6} <div class="row"> <div class="key"> ${this._formatters.formatEntityAttributeName(this.stateObj,"installed_version")} </div> <div class="value"> ${this.stateObj.attributes.installed_version??this._localize("state.default.unavailable")} </div> </div> <div class="row"> <div class="key"> ${this._formatters.formatEntityAttributeName(this.stateObj,"latest_version")} </div> <div class="value"> ${this.stateObj.attributes.latest_version??this._localize("state.default.unavailable")} </div> </div> ${t?r.qy`<div class="row"> <div class="key"> <a href=${t} target="_blank" rel="noreferrer"> ${this._localize("ui.dialogs.more_info_control.update.release_announcement")} </a> </div> </div>`:r.s6} </div> ${(0,l.$)(this.stateObj,f.TY.RELEASE_NOTES)&&!this._error?void 0===this._releaseNotes?r.qy` <hr/> ${this._markdownLoading?this._renderLoader():r.s6} `:this._releaseNotes?r.qy` <hr/> <ha-markdown @content-resize=${this._markdownLoaded} .content=${this._releaseNotes} class=${this._markdownLoading?"hidden":""}></ha-markdown> ${this._markdownLoading?this._renderLoader():r.s6} `:r.s6:this.stateObj.attributes.release_summary?r.qy` <hr/> <ha-markdown @content-resize=${this._markdownLoaded} .content=${this.stateObj.attributes.release_summary} class=${this._markdownLoading?"hidden":""}></ha-markdown> ${this._markdownLoading?this._renderLoader():r.s6} `:r.s6} </div> <div class="footer"> <ha-more-info-update-backup .stateObj=${this.stateObj}></ha-more-info-update-backup> <div class="actions"> ${"off"===this.stateObj.state&&this.stateObj.attributes.skipped_version?r.qy` <ha-button appearance="plain" @click=${this._handleClearSkipped}> ${this._localize("ui.dialogs.more_info_control.update.clear_skipped")} </ha-button>
2 `:r.qy` <ha-button appearance="plain" @click=${this._handleSkip} .disabled=${(0,f.IC)(this.stateObj)||"off"===this.stateObj.state||(0,f.Jy)(this.stateObj)}> ${this._localize("ui.dialogs.more_info_control.update.skip")} </ha-button> `} ${(0,l.$)(this.stateObj,f.TY.INSTALL)?r.qy` <ha-button @click=${this._handleInstall} .loading=${(0,f.Jy)(this.stateObj)} .disabled=${(0,f.od)(this.stateObj)}> ${this._localize("ui.dialogs.more_info_control.update.update")} </ha-button> `:r.s6} </div> </div> `}_renderLoader(){return r.qy` <div class="flex center loader"> <ha-spinner></ha-spinner> </div> `}firstUpdated(){(0,l.$)(this.stateObj,f.TY.RELEASE_NOTES)&&this._fetchReleaseNotes()}async _markdownLoaded(){this._markdownLoading&&(this._markdownLoading=!1)}async _fetchReleaseNotes(){try{this._releaseNotes=await(0,f.ev)(this._api,this.stateObj.entity_id)}catch(t){this._error=t.message}}_handleInstall(){const t={entity_id:this.stateObj.entity_id};this._backupElement?.createBackup&&(t.backup=!0),(0,l.$)(this.stateObj,f.TY.SPECIFIC_VERSION)&&this.stateObj.attributes.latest_version&&(t.version=this.stateObj.attributes.latest_version),this._api.callService("update","install",t)}_handleSkip(){this.stateObj.attributes.auto_update?(0,m.showAlertDialog)(this,{title:this._localize("ui.dialogs.more_info_control.update.auto_update_enabled_title"),text:this._localize("ui.dialogs.more_info_control.update.auto_update_enabled_text")}):this._api.callService("update","skip",{entity_id:this.stateObj.entity_id})}_handleClearSkipped(){this._api.callService("update","clear_skipped",{entity_id:this.stateObj.entity_id})}constructor(...t){super(...t),this._markdownLoading=!0}}y.styles=r.AH`:host{flex-direction:column;flex:1;justify-content:space-between;display:flex}hr{border-color:var(--divider-color);margin:var(--ha-space-4) 0;border-bottom:none}ha-expansion-panel{margin:var(--ha-space-4) 0}.summary{margin-bottom:var(--ha-space-4)}.row{flex-direction:row;justify-content:space-between;margin:0;display:flex}.footer{border-top:1px solid var(--divider-color);background:var(--ha-dialog-surface-background,var(--mdc-theme-surface,#fff));margin:0 calc(var(--ha-space-6) * -1) 0 calc(var(--ha-space-6) * -1);margin-bottom:calc(-1 * max(var(--safe-area-inset-bottom), var(--ha-space-6)));box-sizing:border-box;z-index:10;flex-direction:column;align-items:center;display:flex;position:sticky;bottom:0;overflow:hidden}.actions{box-sizing:border-box;width:100%;padding:var(--ha-space-4);z-index:1;justify-content:flex-end;gap:var(--ha-space-2);flex-flow:wrap;display:flex}a{color:var(--primary-color)}.flex.center{justify-content:center;align-items:center;display:flex}ha-markdown{padding-bottom:var(--ha-space-4);box-sizing:border-box;direction:ltr}ha-markdown.hidden{display:none}.loader{box-sizing:border-box;height:80px;padding-bottom:var(--ha-space-4)}`,(0,o.Cg)([(0,s.MZ)({attribute:!1})],y.prototype,"stateObj",void 0),(0,o.Cg)([(0,s.wk)(),(0,c.IW)()],y.prototype,"_localize",void 0),(0,o.Cg)([(0,s.wk)(),(0,n.F)({context:g.p0,subscribe:!0})],y.prototype,"_formatters",void 0),(0,o.Cg)([(0,n.F)({context:g.Ie,subscribe:!0})],y.prototype,"_api",void 0),(0,o.Cg)([(0,s.wk)()],y.prototype,"_releaseNotes",void 0),(0,o.Cg)([(0,s.wk)()],y.prototype,"_error",void 0),(0,o.Cg)([(0,s.wk)()],y.prototype,"_markdownLoading",void 0),(0,o.Cg)([(0,s.P)("ha-more-info-update-backup")],y.prototype,"_backupElement",void 0),y=(0,o.Cg)([(0,s.EM)("more-info-update")],y),i()}catch(t){i(t)}})},44204(t,e,a){a.d(e,{},{v:async(t,e,a={})=>(t.expired&&await t.refreshAccessToken(),a.credentials="same-origin",a.headers||(a.headers={}),a.headers||(a.headers={}),a.headers.authorization=`Bearer ${t.accessToken}`,fetch(e,a))})},67779(t,e,a){var i=a(65738),o=a(21649);a.d(e,{},{R:(t,e="")=>{const a=document.createElement("a");a.target="_blank",a.href=(0,i.x)(t),a.download=e,a.style.display="none",document.body.appendChild(a),a.dispatchEvent(new MouseEvent("click")),document.body.removeChild(a),t.startsWith("blob:")&&(o.B?setTimeout(()=>URL.revokeObjectURL(t),1e4):URL.revokeObjectURL(t))}})},1589(t,e,a){a(97700),a(86873);if(66649!=a.j)var i=a(44204);const o=async t=>{let e,a;try{e=await t}catch(t){throw{error:"Request error",status_code:void 0,body:void 0}}const i=e.headers.get("content-type");if(i&&i.includes("application/json"))try{a=await e.json()}catch(t){throw{error:"Unable to parse JSON response",status_code:t.status,body:null}}else a=await e.text();if(!e.ok)throw{error:`Response error: ${e.status}`,status_code:e.status,body:a};return a};async function r(t,e,a,r,s){const n=`${t.data.hassUrl}/api/${a}`,c={method:e,headers:s||{}};return r&&(c.headers["Content-Type"]="application/json;charset=UTF-8",c.body=JSON.stringify(r)),o((0,i.v)(t,n,c))}async function s(t,e,a,o,r,s){const n=`${t.data.hassUrl}/api/${a}`,c={method:e,headers:r||{},signal:s};return o&&(c.headers["Content-Type"]="application/json;charset=UTF-8",c.body=JSON.stringify(o)),(0,i.v)(t,n,c)}a.d(e,{Ay:()=>r,qB:()=>s},{QE:o})},4542(t,e,a){a.a(t,async function(t,i){try{var o=a(20686),r=a(32379),s=a(25771),n=a(82559),c=a(57065),l=a(45780),d=a(34232),p=t([l]);l=(p.then?(await p)():p)[0];var h=Object.defineProperty,u=Object.getOwnPropertyDescriptor,_=(t,e,a,i)=>{for(var o,r=i>1?void 0:i?u(e,a):e,s=t.length-1;s>=0;s--)(o=t[s])&&(r=(i?o(e,a,r):o(r))||r);return i&&r&&h(e,a,r),r};let g=class extends c.A{updated(t){t.has("value")&&requestAnimationFrame(()=>{this.style.setProperty("--percentage",`${(0,n.q)(this.value,0,100)}%`)})}render(){return o.qy` <div part="base" class="progress-bar" role="progressbar" title=${(0,s.J)(this.title)} aria-label=${this.label.length>0?this.label:this.localize.term("progress")} aria-valuemin="0" aria-valuemax="100" aria-valuenow=${this.indeterminate?"0":this.value}> <div part="indicator" class="indicator"> ${this.indeterminate?"":o.qy` <slot part="label" class="label"></slot> `} </div> </div> `}constructor(){super(...arguments),this.localize=new l.c(this),this.value=0,this.indeterminate=!1,this.label=""}}
2;g.css=d.A,_([(0,r.MZ)({type:Number,reflect:!0})],g.prototype,"value",2),_([(0,r.MZ)({type:Boolean,reflect:!0})],g.prototype,"indeterminate",2),_([(0,r.MZ)()],g.prototype,"label",2),g=_([(0,r.EM)("wa-progress-bar")],g),a.d(e,{A:()=>g}),i()}catch(t){i(t)}})},34232(t,e,a){var i=a(20686).AH`:host{--track-height:1rem;--track-color:var(--wa-color-neutral-fill-normal);--indicator-color:var(--wa-color-brand-fill-loud);display:flex}.progress-bar{height:var(--track-height);border-radius:var(--wa-border-radius-pill);background-color:var(--track-color);color:var(--wa-color-brand-on-loud);font-size:var(--wa-font-size-s);flex:auto;display:flex;position:relative;overflow:hidden}.indicator{width:var(--percentage);background-color:var(--indicator-color);text-align:center;white-space:nowrap;line-height:1;font-weight:var(--wa-font-weight-semibold);transition:all var(--wa-transition-slow,.2s) var(--wa-transition-easing,ease);-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;display:flex;overflow:hidden}:host([indeterminate]) .indicator{inline-size:50%;animation:2.5s cubic-bezier(.37,0,.63,1) infinite wa-progress-indeterminate;position:absolute;inset-block:0}@media (forced-colors:active){.progress-bar{background-color:var(--wa-color-surface-default);outline:1px solid selecteditem}.indicator{background-color:selecteditem;outline:1px solid selecteditem}}@keyframes wa-progress-indeterminate{0%{inset-inline-start:-50%}75%,to{inset-inline-start:100%}}`;a.d(e,{A:()=>i})},63098(t,e,a){var i=a(66024);function o(t,e,a){const o=(0,i.a)(t,a?.in);return o.setHours(e),o}a.d(e,{a:()=>o})},83164(t,e,a){var i=a(66024);function o(t,e,a){const o=(0,i.a)(t,a?.in);return o.setMinutes(e),o}a.d(e,{g:()=>o})}};
3//# sourceMappingURL=86108.8fb9e138fadb81ae.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.