(window.webpackJsonpPlesk=window.webpackJsonpPlesk||[]).push([["app/backup/upload-files"],{941:function(e,n,t){"use strict";t.r(n);var i=t(145);const a=i.Locale.getSection("components.forms.backup.upload");class o extends i.AddRemoveDynamicSubForm{_initConfiguration(e){super._initConfiguration({addButtonTitle:a.lmsg("addFileLink"),removeButtonTitle:a.lmsg("removeLink"),...e})}_bindDynamicContent(e,n){super._bindDynamicContent(e,n),e.querySelectorAll("input").forEach(e=>{Object(i.render)(e,Object(i.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"),i=new RegExp("(id=.*?\\-".concat(this._id,"-)dynamicSubFormTemplate(-)"),"g");return e.innerHTML=e.innerHTML.replace(t,"$1__$2__c".concat(n,"[]")).replace(i,"$1c".concat(n,"$2")),e}}n.default=e=>new o(e)}}]);
//# sourceMappingURL=upload-files.js.map?e94ebd28a9dc2c920fe4