"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/mail-settings/confirmation-remove-popup-form"],{3018:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var i=n(89);class s extends i.PopupForm{_initConfiguration(t){super._initConfiguration({locale:i.Locale.getSection("smb.components.forms.mail-settings.show"),...t}),this._handler=this._getConfigParam("handler",null),this._domain=this._getConfigParam("domain",null),this._handlerOnCancel=this._getConfigParam("handlerOnCancel",(()=>null))}render(){super.render(),this.setBoxType("form-box"),this.setTitle(this.lmsg("title",{domain:(0,i.escapeHtml)(this._domain)})),(0,i.render)(document.getElementById(this._contentAreaId),`<div class="form-row"><div class="single-row"><div class="indent-box"><input id="confirm-remove-all" type="checkbox" class="checkbox" ><div class="indent-box-content"><label for="confirm-remove-all">${this.lmsg("checkbox",{domain:(0,i.escapeHtml)(this._domain)})}</label></div></div></div></div>`);const t=document.getElementById("confirm-remove-all");t.addEventListener("click",(()=>{this._updateButton(this._buttonOk,{disabled:!t.checked})})),this.addOkButton(),this.addCancelButton()}addOkButton(){this._buttonOk=this.addRightButton(i.Locale.getSection("components.buttons").lmsg("yesRemove"),this.onOkClick,!0,!1,{disabled:!0,class:"btn-danger"})}addCancelButton(){this.addRightButton(i.Locale.getSection("components.buttons").lmsg("cancel"),this.onCancelClick,!1,!1)}onOkClick(){this._handler(),this.hide()}onCancelClick(){this._handlerOnCancel(),this.hide()}}const o=s}}]);
//# sourceMappingURL=confirmation-remove-popup-form.js.map?f9072084e511e8f94abd