"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/email-address/responder-attachments-dynamic"],{1782:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var a=n(97);const o=a.Locale.getSection("smb.components.forms.email-address");class r extends a.AddRemoveDynamicSubForm{_initConfiguration(e){super._initConfiguration({addButtonTitle:o.lmsg("buttonAddResponderAttachment"),removeButtonTitle:o.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)}))}}const s=e=>new r(e)}}]);
//# sourceMappingURL=responder-attachments-dynamic.js.map?c0b7f1487376d515747b