"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/file-manager/file-name-popup-form"],{2602:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var o=n(89);class i extends o.PopupForm{_initConfiguration(e){super._initConfiguration({locale:o.Locale.getSection("smb.components.forms.file-manager.show"),...e}),this._handler=this._getConfigParam("handler",null)}render(){super.render(),this.setBoxType("form-box"),this.setTitle(this.lmsg("popupTitle")),document.getElementById(this._contentAreaId).innerHTML=`${this.lmsg("popupFilename")} <input type="text" id="saveAsFileNamePopup" autofocus />`,this.addOkButton(),this.addCancelButton()}addOkButton(){this.addRightButton(o.Locale.getSection("components.buttons").lmsg("ok"),this.onOkClick,!0,!0)}addCancelButton(){this.addRightButton(o.Locale.getSection("components.buttons").lmsg("cancel"),this.onCancelClick,!1,!1)}onOkClick(){this._handler(document.getElementById("saveAsFileNamePopup").value),this.hide()}onCancelClick(){this.hide()}}const s=i}}]);
//# sourceMappingURL=file-name-popup-form.js.map?254b3716a92292f8554d