\n"):e,setAttributes(e,t){for(var l in t)e.setAttribute(l,t[l])},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,l=e.elm;var n=e.placeholder,i=e.type;e=(e=e.max||6)||6;let r=document.createElement("div");r.setAttribute("class","new-input");let o=document.createElement("input");o.setAttribute("type",i),o.setAttribute("placeholder",n);let a=document.createElement("button");a.setAttribute("class","remove"),a.setAttribute("type","button"),r.appendChild(o),r.appendChild(a),l.appendChild(r),l.childNodes.length>=e&&(l.nextElementSibling.disabled=!0,l.nextElementSibling.style.cssText="opacity:.3;cursor:not-allowed"),t.style.height=t.scrollHeight+"px"},removeInput(e){let t=e.elm,l=e.target;var n=e.max||6;if("remove"===l.className){--n;let i=l.parentElement.parentNode;e=l.parentElement.getBoundingClientRect().height,l.parentElement.remove(),t.style.height=t.getBoundingClientRect().height-e+"px",i.childNodes.length<=n&&(i.nextElementSibling.disabled=!1,i.nextElementSibling.style.cssText="opacity:1;cursor:pointer;")}}};e.getElementById("submit").addEventListener("click",function(){var l=t.getVal("#judul-popup"),n=t.getVal("#konten-popup");let i=t.getVal("#button-url");var r=t.getVal("#button-txt"),o=t.getValRadio(".buttons input");l="