"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["app/backup/upload-files"],{3149(e,n,i){i.r(n),i.d(n,{default:()=>r});var t=i(90);const a=t.Locale.getSection("components.forms.backup.upload");class o extends t.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,t.render)(e,(0,t.createElement)("input",{type:"file",id:e.id,name:e.name}),"replace")})}_prepareDynamicContent(e){const n=Math.floor(1e6*Math.random()),i=new RegExp(`(name=.*?)\\[(${this._id})\\]\\[dynamicSubFormTemplate\\]\\[file\\]`,"g"),t=new RegExp(`(id=.*?\\-${this._id}-)dynamicSubFormTemplate(-)`,"g");return e.innerHTML=e.innerHTML.replace(i,`$1__$2__c${n}[]`).replace(t,`$1c${n}$2`),e}}const r=e=>new o(e)}}]);
//# sourceMappingURL=upload-files.js.map?255591cc5b296aeeccd8