"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["app/backup/upload-files"],{3163(e,n,t){t.r(n),t.d(n,{default:()=>o});var a=t(95);const i=a.Locale.getSection("components.forms.backup.upload");class r 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(n=>{const t=e.querySelector(`label[for="${n.id}"]`),i={type:"file",id:n.id,name:n.name};t&&(i["aria-label"]=t.textContent.trim()),(0,a.render)(n,(0,a.createElement)("input",i),"replace")})}_prepareDynamicContent(e){const n=Math.floor(1e6*Math.random()),t=new RegExp(`(name=.*?)\\[(${this._id})\\]\\[dynamicSubFormTemplate\\]\\[file\\]`,"g"),a=new RegExp(`(id=.*?\\-${this._id}-)dynamicSubFormTemplate(-)`,"g"),i=new RegExp(`(for=.*?\\-${this._id}-)dynamicSubFormTemplate(-)`,"g");return e.innerHTML=e.innerHTML.replace(t,`$1__$2__c${n}[]`).replace(a,`$1c${n}$2`).replace(i,`$1c${n}$2`),e}}const o=e=>new r(e);(Object.getOwnPropertyDescriptor(o,"name")||{}).writable||Object.defineProperty(o,"name",{value:"default",configurable:!0})}}]);
//# sourceMappingURL=upload-files.js.map?85b69a8a1d26e794804a