"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["app/email-address/responder-attachments-dynamic"],{3199(e,t,n){n.r(t),n.d(t,{default:()=>r});var a=n(95);const o=a.Locale.getSection("smb.components.forms.email-address");class l 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 r=e=>new l(e);n.dn(r)}}]);
//# sourceMappingURL=responder-attachments-dynamic.js.map?177eff305ebf3bb2b0dc