(window.webpackJsonpPlesk=window.webpackJsonpPlesk||[]).push([["app/email-address/responder-attachments-dynamic"],{1005:function(e,t,n){"use strict";n.r(t);var o=n(145);const a=o.Locale.getSection("smb.components.forms.email-address");class r extends o.AddRemoveDynamicSubForm{_initConfiguration(e){super._initConfiguration({addButtonTitle:a.lmsg("buttonAddResponderAttachment"),removeButtonTitle:a.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"});Object(o.render)(e.closest(".field-value"),t,"top"),e.closest(".field-value").querySelectorAll("input, .remove-responder-attachment-button-wrapper").forEach(e=>{e!==t&&Object(o.render)(t,e)}),Object(o.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 r(e)}}]);
//# sourceMappingURL=responder-attachments-dynamic.js.map?a33b16103c4f797a38b4