"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/backup/upload-files"],{1288:(e,n,t)=>{t.r(n);var i=t(88);const a=i.Locale.getSection("components.forms.backup.upload");class r 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=>{(0,i.render)(e,(0,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=.*?)\\[(${this._id})\\]\\[dynamicSubFormTemplate\\]\\[file\\]`,"g"),i=new RegExp(`(id=.*?\\-${this._id}-)dynamicSubFormTemplate(-)`,"g");return e.innerHTML=e.innerHTML.replace(t,`$1__$2__c${n}[]`).replace(i,`$1c${n}$2`),e}}n.default=e=>new r(e)}}]);
//# sourceMappingURL=upload-files.js.map?3eb5fc84f77749b287d4