\n"):e,setAttributes(e,t){for(var n in t)e.setAttribute(n,t[n])},inputToggle(e){if(e.target.classList.contains("input-toggle")){let t=e.target.parentElement.lastElementChild;!0===e.target.checked?(t.style.height=t.scrollHeight+"px",t.classList.remove("hidden")):(t.firstChild.value="",t.style.height=null,t.classList.add("hidden"))}},addInput(e){let t=e.parent,n=e.elm;var l=e.placeholder,o=e.type;e=(e=e.max||6)||6;let i=document.createElement("div");i.setAttribute("class","new-input");let r=document.createElement("input");r.setAttribute("type",o),r.setAttribute("placeholder",l);let s=document.createElement("button");s.setAttribute("class","remove"),s.setAttribute("type","button"),i.appendChild(r),i.appendChild(s),n.appendChild(i),n.childNodes.length>=e&&(n.nextElementSibling.disabled=!0,n.nextElementSibling.style.cssText="opacity:.3;cursor:not-allowed"),t.style.height=t.scrollHeight+"px"},removeInput(e){let t=e.elm,n=e.target;var l=e.max||6;if("remove"===n.className){--l;let o=n.parentElement.parentNode;e=n.parentElement.getBoundingClientRect().height,n.parentElement.remove(),t.style.height=t.getBoundingClientRect().height-e+"px",o.childNodes.length<=l&&(o.nextElementSibling.disabled=!1,o.nextElementSibling.style.cssText="opacity:1;cursor:pointer;")}}};e.getElementById("submit").addEventListener("click",function(){var n,l={judulCTA:"#judulcta",teksJudulCTA:"#teksjudulcta",tombolWA:"#tombolwa",nomorWA:"#nomorwa",teksPesanWA:"#tekspesanwa",tombolSMS:"#tombolsms",nomorSMS:"#nomorsms",teksPesanSMS:"#tekspesansms",tombolTelpon:"#tomboltelpon",nomorTelpon:"#nomortelpon"};let o="