\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 o=document.createElement("div");o.setAttribute("class","new-input");let r=document.createElement("input");r.setAttribute("type",i),r.setAttribute("placeholder",n);let s=document.createElement("button");s.setAttribute("class","remove"),s.setAttribute("type","button"),o.appendChild(r),o.appendChild(s),l.appendChild(o),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,n={relatedPosts:"#relatedposts",jumlahRelatedPosts:"#relatedpostsnum",relatedPostsThumb:"#relatedpoststhumb",sliderLoop:"#sliderloop"};let i="