(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/email-address/responder-attachments-dynamic"],{1061:(e,t,n)=>{"use strict";n.r(t);var a=n(144);const r=a.Locale.getSection("smb.components.forms.email-address");class l extends a.AddRemoveDynamicSubForm{_initConfiguration(e){super._initConfiguration({addButtonTitle:r.lmsg("buttonAddResponderAttachment"),removeButtonTitle:r.lmsg("buttonRemoveResponderAttachment"),...e})}_bindDynamicContent(e){super._bindDynamicContent(e,!1),e.querySelectorAll("input").forEach((e=>{if(e.value){const t=new Element("div",{class:"text-value"});(0,a.render)(e.closest(".field-value"),t,"top"),e.closest(".field-value").querySelectorAll("input, .remove-responder-attachment-button-wrapper").forEach((e=>{e!==t&&(0,a.render)(t,e)})),(0,a.render)(e,e.value,"after")}else e.parentNode.replaceChild(new Element("input",{type:"file",id:e.id,name:e.name}),e)}))}}t.default=e=>new l(e)}}]);
//# sourceMappingURL=responder-attachments-dynamic.js.map?276187def5ff23bec390