(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/backup/upload-files"],{995:(e,n,t)=>{"use strict";t.r(n);var a=t(144);const i=a.Locale.getSection("components.forms.backup.upload");class c extends a.AddRemoveDynamicSubForm{_initConfiguration(e){super._initConfiguration({addButtonTitle:i.lmsg("addFileLink"),removeButtonTitle:i.lmsg("removeLink"),...e})}_bindDynamicContent(e,n){super._bindDynamicContent(e,n),e.querySelectorAll("input").forEach((e=>{(0,a.render)(e,(0,a.createElement)("input",{type:"file",id:e.id,name:e.name}),"replace")}))}_prepareDynamicContent(e){const n=Math.floor(1e6*Math.random()),t=new RegExp("(name=.*?)\\[(".concat(this._id,")\\]\\[dynamicSubFormTemplate\\]\\[file\\]"),"g"),a=new RegExp("(id=.*?\\-".concat(this._id,"-)dynamicSubFormTemplate(-)"),"g");return e.innerHTML=e.innerHTML.replace(t,"$1__$2__c".concat(n,"[]")).replace(a,"$1c".concat(n,"$2")),e}}n.default=e=>new c(e)}}]);
//# sourceMappingURL=upload-files.js.map?ebb13beecf5b870f2e76