"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["app/email-address/responder-attachments-dynamic"],{3176(e,t,n){n.r(t),n.d(t,{default:()=>l});var a=n(95);const r=a.Locale.getSection("smb.components.forms.email-address");class o 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)})}}const l=e=>new o(e);(Object.getOwnPropertyDescriptor(l,"name")||{}).writable||Object.defineProperty(l,"name",{value:"default",configurable:!0})}}]);
//# sourceMappingURL=responder-attachments-dynamic.js.map?087ce59855ab4a20d847