export const __rspack_esm_id="39608";export const __rspack_esm_ids=["39608"];export const __webpack_modules__={70947(e,t,o){var a=o(62826),n=o(90075),r=(o(43776),o(96196)),s=o(97735);o(67094);class i extends n.A{renderCheckboxIcon(){return r.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[n.A.styles,r.AH`:host{min-height:var(--ha-space-10)}#check{visibility:visible;flex-shrink:0}#icon ::slotted(*){color:var(--ha-color-on-neutral-normal)}:host([variant=danger]) #icon ::slotted(*){color:var(--ha-color-on-danger-quiet)}:host([selected]){font-weight:var(--ha-font-weight-medium);color:var(--primary-color);background-color:var(--ha-color-fill-primary-quiet-resting);--icon-primary-color:var(--primary-color)}:host([selected]:hover){background-color:var(--ha-color-fill-primary-quiet-hover)}`]}constructor(...e){super(...e),this.selected=!1}}(0,a.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],i.prototype,"selected",void 0),i=(0,a.Cg)([(0,s.EM)("ha-dropdown-item")],i)},29823(e,t,o){o.a(e,async function(e,t){try{var a=o(62826),n=o(52254),r=o(96196),s=o(97735),i=e([n]);n=(i.then?(await i)():i)[0];class c extends n.A{get anchorElement(){return this.popup?.anchor}set anchorElement(e){this.popup&&(this.popup.anchor&&"ha-icon-button"===this.popup.anchor.localName&&(this.popup.anchor.selected=!1),this.popup.anchor=e)}getTrigger(){return this.anchorElement?this.anchorElement:super.getTrigger()}async showMenu(){await super.showMenu();const e=this.getTrigger();e&&"ha-icon-button"===e.localName&&(e.selected=!0)}async hideMenu(){const e=this.getTrigger();e&&"ha-icon-button"===e.localName&&(e.selected=!1),await super.hideMenu()}static get styles(){return[n.A.styles,r.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(...e){super(...e),this.dropdownTag="ha-dropdown",this.dropdownItemTag="ha-dropdown-item"}}(0,a.Cg)([(0,s.MZ)({attribute:!1})],c.prototype,"dropdownTag",void 0),(0,a.Cg)([(0,s.MZ)({attribute:!1})],c.prototype,"dropdownItemTag",void 0),c=(0,a.Cg)([(0,s.EM)("ha-dropdown")],c),t()}catch(e){t(e)}})},82e3(e,t,o){o.d(t,{D5:()=>a,Fy:()=>l,Gk:()=>g,Hg:()=>n,TJ:()=>s,UQ:()=>h,Y_:()=>m,ds:()=>u,e0:()=>r,ec:()=>p,go:()=>c,n2:()=>d,sq:()=>i});o(18111),o(61701),o(33110);const a=14881==o.j?`${location.protocol}//${location.host}`:null,n=e=>e.map(e=>{if("string"!==e.type)return e;switch(e.name){case"username":return{...e,autocomplete:"username",autofocus:!0};case"password":return{...e,autocomplete:"current-password"};case"code":return{...e,autocomplete:"one-time-code",autofocus:!0};default:return e}}),r=(e,t)=>e.callWS({type:"auth/sign_path",path:t}),s=()=>fetch("/auth/providers",{credentials:"same-origin"}),i=(e,t,o)=>fetch("/auth/login_flow",{method:"POST",credentials:"same-origin",body:JSON.stringify({client_id:e,handler:o,redirect_uri:t})}),c=(e,t)=>fetch(`/auth/login_flow/${e}`,{method:"POST",credentials:"same-origin",body:JSON.stringify(t)}),d=e=>fetch(`/auth/login_flow/${e}`,{method:"DELETE",credentials:"same-origin"}),h=(e,t,o,a)=>{e.includes("?")?e.endsWith("&")||(e+="&"):e+="?",e+=`code=${encodeURIComponent(t)}`,o&&(e+=`&state=${encodeURIComponent(o)}`),a&&(e+="&storeToken=true"),document.location.assign(e)},l=async(e,t,o,a)=>e.callWS({type:"config/auth_provider/homeassistant/create",user_id:t,username:o,password:a}),p=(e,t,o)=>e.callWS({type:"config/auth_provider/homeassistant/change_password",current_password:t,new_password:o}),u=(e,t,o)=>e.callWS({type:"config/auth_provider/homeassistant/admin_change_password",user_id:t,password:o}),g=(e,t,o)=>e.callWS({type:"config/auth_provider/homeassistant/admin_change_username",user_id:t,username:o}),m=(e,t,o)=>e.callWS({type:"auth/delete_all_refresh_tokens",token_type:t,delete_current_token:o})},58315(e,t,o){o.a(e,async function(e,a){try{o.r(t);var n=o(62826),r=o(96196),s=o(97735),i=o(29823),c=(o(70947),o(26300)),d=(o(67094),o(82e3)),h=o(81310),l=o(30039),p=o(13133),u=e([i,c,h,p]);[i,c,h,p]=u.then?(await u)():u;const g="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",m="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z";class y extends r.WF{render(){return r.qy` <hass-subpage back-path="/config/system" .hass="${this.hass}" .narrow="${this.narrow}" .header="${this.hass.localize("ui.panel.config.analytics.caption")}"> <ha-dropdown @wa-select="${this._handleOverflowAction}" slot="toolbar-icon"> <ha-icon-button slot="trigger" .path="${g}"> </ha-icon-button> <ha-dropdown-item .value="${"download_device_info"}"> <ha-svg-icon slot="icon" .path="${m}"></ha-svg-icon> ${this.hass.localize("ui.panel.config.analytics.download_device_info")} </ha-dropdown-item> </ha-dropdown> <div class="content"> <ha-config-analytics .hass="${this.hass}"></ha-config-analytics> </div> </hass-subpage> `}async _handleOverflowAction(e){if("download_device_info"===e.detail.item.value){const e=await(0,d.e0)(this.hass,"/api/analytics/devices");(0,l.R)(e.path)}}constructor(...e){super(...e),this.narrow=!1}}y.styles=r.AH`.content{padding:28px 20px 0;max-width:1040px;margin:0 auto}ha-config-analytics{display:block;max-width:600px;margin:0 auto;margin-bottom:24px}`,(0,n.Cg)([(0,s.MZ)({attribute:!1})],y.prototype,"hass",void 0),(0,n.Cg)([(0,s.MZ)({attribute:!1})],y.prototype,"route",void 0),(0,n.Cg)([(0,s.MZ)({type:Boolean})],y.prototype,"narrow",void 0),y=(0,n.Cg)([(0,s.EM)("ha-config-section-analytics")],y),a()}catch(e){a(e)}})},30039(e,t,o){o.d(t,{R:()=>a});const a=(e,t="")=>{const o=document.createElement("a");o.target="_blank",o.href=e,o.download=t,o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click")),document.body.removeChild(o)}}};
//# sourceMappingURL=39608.902214ea2e765445.js.map