1import{a as e}from"./standalone-app-Bj-IdwrG.js";import{E as t,_ as n,x as r}from"./institution-DyFDvNu6.js";import"./jha-button-Dyau4S4K.js";import{t as i}from"./language-utils-DMDnwVwz.js";import"./bannoweb-confirmation-DnbjNe7C.js";var a=i(n);window.BannowebSettingsTwoFactorRemoveDialogElement=class extends a{static get is(){return`bannoweb-settings-two-factor-remove-dialog`}static get properties(){return{enrollment:{type:Object},lastEnrollment:{type:Boolean,attribute:`last-enrollment`},credential:{type:Object},lastCredential:{type:Boolean,attribute:`last-credential`},isLoading:{type:Boolean,attribute:`is-loading`}}}constructor(){super(),e(()=>import(`./icon-circle-exclamation-CPV1Eg_u.js`).then(e=>e.t),[]),this.enrollment=void 0,this.lastEnrollment=!1,this.credential=void 0,this.lastCredential=!1,this.isLoading=!1}onClickCancel_(e){this.dispatchEvent(new CustomEvent(`closeModal`,{bubbles:!0,composed:!0}))}onClickRemove_(e){this.isLoading=!0,this.credential&&!this.lastCredential?this.dispatchEvent(new CustomEvent(`confirmRemoveCredential`,{bubbles:!0,composed:!0,detail:this.credential})):this.dispatchEvent(new CustomEvent(`confirmRemoveEnrollment`,{bubbles:!0,composed:!0,detail:this.enrollment}))}static get styles(){return t`:host{font-family:var(--jha-base-font-family);color:var(--body-text-primary-color);font-weight:400;font-size:var(--jha-base-font-size);text-align:center;display:block}jh-icon-circle-exclamation{width:125px;height:125px;fill:var(--jha-color-warning)}`}render(){return r`<bannoweb-confirmation> <jh-icon-circle-exclamation slot="icon"></jh-icon-circle-exclamation> <h1 slot="header">${`Are you sure?`}</h1> ${this.lastEnrollment?``:r`<p slot="description">${`This 2-step enrollment will be removed.`}</p>`} ${this.lastEnrollment?r`<p slot="description">${`This is your last 2-step enrollment. You will be logged out.`}</p>`:``} <jha-button outline sync type="button" @click="${this.onClickCancel_}"> ${`Cancel`} </jha-button> <jha-button type="button" .isLoading="${this.isLoading}" @click="${this.onClickRemove_}"> ${`Remove`} </jha-button> </bannoweb-confirmation>`}},customElements.define(window.BannowebSettingsTwoFactorRemoveDialogElement.is,window.BannowebSettingsTwoFactorRemoveDialogElement);var o=window.BannowebSettingsTwoFactorRemoveDialogElement;export{o as default};
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.