export const __rspack_esm_id="39608";export const __rspack_esm_ids=["39608"];export const __webpack_modules__={70947(a,t,e){var o=e(62826),s=e(79265),n=(e(94100),e(96196)),r=e(44457);e(67094);class c extends s.A{renderCheckboxIcon(){return n.qy` <ha-svg-icon id="check" part="checkmark" .path="${this.checked?"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z":"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z"}"></ha-svg-icon> `}static get styles(){return[s.A.styles,n.AH`:host{min-height:var(--ha-space-10)}#check{visibility:visible}#icon ::slotted(*){color:var(--ha-color-on-neutral-normal)}:host([variant=danger]) #icon ::slotted(*){color:var(--ha-color-on-danger-quiet)}`]}}c=(0,o.Cg)([(0,r.EM)("ha-dropdown-item")],c)},29823(a,t,e){e.a(a,async function(a,t){try{var o=e(62826),s=e(52254),n=e(96196),r=e(44457),c=a([s]);s=(c.then?(await c)():c)[0];class i extends s.A{static get styles(){return[s.A.styles,n.AH`:host{font-size:var(--ha-dropdown-font-size, var(--ha-font-size-m));--wa-color-surface-raised:var(
            --card-background-color,
            var(--ha-dialog-surface-background, var(--mdc-theme-surface, #fff)),
          )}#menu{padding:var(--ha-space-1)}`]}constructor(...a){super(...a),this.dropdownTag="ha-dropdown",this.dropdownItemTag="ha-dropdown-item"}}(0,o.Cg)([(0,r.MZ)({attribute:!1})],i.prototype,"dropdownTag",void 0),(0,o.Cg)([(0,r.MZ)({attribute:!1})],i.prototype,"dropdownItemTag",void 0),i=(0,o.Cg)([(0,r.EM)("ha-dropdown")],i),t()}catch(a){t(a)}})},82e3(a,t,e){e.d(t,{D5:()=>o,Fy:()=>r,Gk:()=>d,Hg:()=>s,Y_:()=>h,ds:()=>i,e0:()=>n,ec:()=>c});e(18111),e(61701),e(33110);const o=14881==e.j?`${location.protocol}//${location.host}`:null,s=a=>a.map(a=>{if("string"!==a.type)return a;switch(a.name){case"username":return{...a,autocomplete:"username",autofocus:!0};case"password":return{...a,autocomplete:"current-password"};case"code":return{...a,autocomplete:"one-time-code",autofocus:!0};default:return a}}),n=(a,t)=>a.callWS({type:"auth/sign_path",path:t}),r=async(a,t,e,o)=>a.callWS({type:"config/auth_provider/homeassistant/create",user_id:t,username:e,password:o}),c=(a,t,e)=>a.callWS({type:"config/auth_provider/homeassistant/change_password",current_password:t,new_password:e}),i=(a,t,e)=>a.callWS({type:"config/auth_provider/homeassistant/admin_change_password",user_id:t,password:e}),d=(a,t,e)=>a.callWS({type:"config/auth_provider/homeassistant/admin_change_username",user_id:t,username:e}),h=(a,t,e)=>a.callWS({type:"auth/delete_all_refresh_tokens",token_type:t,delete_current_token:e})},58315(a,t,e){e.a(a,async function(a,o){try{e.r(t);var s=e(62826),n=e(96196),r=e(44457),c=(e(26300),e(67094),e(82e3)),i=(e(81310),e(13133)),d=e(30039),h=(e(70947),e(29823)),l=a([i,h]);[i,h]=l.then?(await l)():l;const p="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",u="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z";class g extends n.WF{render(){return n.qy` <hass-subpage back-path="/config/system" .hass="${this.hass}" .narrow="${this.narrow}" .header="${this.hass.localize("ui.panel.config.analytics.caption")}"> ${(0,d.h)(this.hass)?n.qy` <ha-dropdown @wa-select="${this._handleOverflowAction}" slot="toolbar-icon"> <ha-icon-button slot="trigger" .path="${p}"> </ha-icon-button> <ha-dropdown-item .value="${"download_device_info"}"> <ha-svg-icon slot="icon" .path="${u}"></ha-svg-icon> ${this.hass.localize("ui.panel.config.analytics.download_device_info")} </ha-dropdown-item> </ha-dropdown> `:n.s6} <div class="content"> <ha-config-analytics .hass="${this.hass}"></ha-config-analytics> </div> </hass-subpage> `}async _handleOverflowAction(a){if("download_device_info"===a.detail.item.value){const a=await(0,c.e0)(this.hass,"/api/analytics/devices");(0,d.R)(a.path)}}constructor(...a){super(...a),this.narrow=!1}}g.styles=n.AH`.content{padding:28px 20px 0;max-width:1040px;margin:0 auto}ha-config-analytics{display:block;max-width:600px;margin:0 auto}`,(0,s.Cg)([(0,r.MZ)({attribute:!1})],g.prototype,"hass",void 0),(0,s.Cg)([(0,r.MZ)({attribute:!1})],g.prototype,"route",void 0),(0,s.Cg)([(0,r.MZ)({type:Boolean})],g.prototype,"narrow",void 0),g=(0,s.Cg)([(0,r.EM)("ha-config-section-analytics")],g),o()}catch(a){o(a)}})},30039(a,t,e){e.d(t,{R:()=>s,h:()=>n});var o=e(22348);const s=(a,t="")=>{const e=document.createElement("a");e.target="_blank",e.href=a,e.download=t,e.style.display="none",document.body.appendChild(e),e.dispatchEvent(new MouseEvent("click")),document.body.removeChild(e)},n=a=>!(0,o.V)(a)||!!a.auth.external?.config.downloadFileSupported},22348(a,t,e){e.d(t,{V:()=>s});var o=e(37177);const s=a=>!!a.auth.external&&o.n},37177(a,t,e){e.d(t,{n:()=>o});const o=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}};
//# sourceMappingURL=39608.8c5de26bb1419c57.js.map