\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({parent:e,elm:t,placeholder:n,type:l,name:i,max:o}){o=o||6;let a=document.createElement("div");a.setAttribute("class","new-input");let s=document.createElement("input");s.setAttribute("type",l),s.setAttribute("placeholder",n),s.setAttribute("name",i);let r=document.createElement("button");r.setAttribute("class","remove"),r.setAttribute("type","button"),a.appendChild(s),a.appendChild(r),t.appendChild(a),t.childNodes.length>=o&&(t.nextElementSibling.disabled=!0,t.nextElementSibling.style.cssText="opacity:.3;cursor:not-allowed"),e.style.height=e.scrollHeight+"px"},removeInput({elm:e,target:t,max:n}){if(n=n||6,"remove"===t.className){--n;let i=t.parentElement.parentNode;var l=t.parentElement.getBoundingClientRect().height;t.parentElement.remove(),e.style.height=e.getBoundingClientRect().height-l+"px",i.childNodes.length<=n&&(i.nextElementSibling.disabled=!1,i.nextElementSibling.style.cssText="opacity:1;cursor:pointer;")}}};!function(e){let t=e.getElementById("output-code");e.getElementById("submit").addEventListener("click",function(){var e,n={judulCTA:"#judulcta",teksJudulCTA:"#teksjudulcta",tombolWA:"#tombolwa",nomorWA:"#nomorwa",teksPesanWA:"#tekspesanwa",tombolSMS:"#tombolsms",nomorSMS:"#nomorsms",teksPesanSMS:"#tekspesansms",tombolTelpon:"#tomboltelpon",nomorTelpon:"#nomortelpon"};let l="