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