"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/backup/upload-files"],{2527:(e,n,t)=>{t.r(n),t.d(n,{default:()=>r});var i=t(89);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=>{(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}}const r=e=>new o(e)}}]);
//# sourceMappingURL=upload-files.js.map?11b50bd50483d3ebd426