\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,a=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",a),o.setAttribute("placeholder",l);let i=document.createElement("button");i.setAttribute("class","remove"),i.setAttribute("type","button"),r.appendChild(o),r.appendChild(i),n.appendChild(r),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 a=n.parentElement.parentNode;e=n.parentElement.getBoundingClientRect().height,n.parentElement.remove(),t.style.height=t.getBoundingClientRect().height-e+"px",a.childNodes.length<=l&&(a.nextElementSibling.disabled=!1,a.nextElementSibling.style.cssText="opacity:1;cursor:pointer;")}}};var n;n="#metode-pembayaran",(n=e.querySelector(n)).style.height=n.scrollHeight+"px",e.getElementById("addfield").addEventListener("click",function(){t.addInput({parent:this.previousElementSibling,elm:this.previousElementSibling,placeholder:"Bank, 00112233, Nama",type:"text",max:5})}),e.getElementById("metode-pembayaran").addEventListener("click",function(e){t.removeInput({elm:this,target:e.target,max:5})}),e.getElementById("submit").addEventListener("click",function(){var n,l={checkoutChat:"#cchat",checkoutMarketplace:"#cmarketplace",checkoutLink:"#clink",ckcText:"#ctchat",ckmText:"#ctmarketplace",cklText:"#ctlink",jmlhproduk:"#fjumlah",nama:"#fnama",email:"#femail",notelp:"#fnotelp",alamat:"#falamat",provinsi:"#fprov",kota:"#fkota",kodepos:"#fpos",pembayaran:"#fpay",pembayaranTitle:"#ftpay",nomorWa:"#nowa",waBtnText:"#tchatbtn",waPesan:"#chatmsg",checkoutChatNote:"#fnote",formError:"#ferror",loopProdukImage:"#slimg",loopBanner:"#slbnr",loopTestimonial:"#sltesti",autoSlideProdukImage:"#saimg",autoSlideBanner:"#sabnr",autoSlideTestimonial:"#satesti",autoSlideTimer:"#sdur",shareFacebook:"#srfb",shareTwitter:"#srwa",shareWhatsapp:"#srtw",shareTelegram:"#srtg",darkMode:"#drkmd",autoDarkMode:"#autodrkmd",popupBoxActive:"#akp",openPopupBoxAfter:"#mkps",disablePopupBoxDays:"#ojts",relatedPosts:"#rltd",jumlahRelatedPosts:"#jrltd",jumlahRecentPosts:"#jrcp",ajaxHomePagination:"#hpa"};let a="