\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,a=e.type;e=(e=e.max||6)||6;let i=document.createElement("div");i.setAttribute("class","new-input");let r=document.createElement("input");r.setAttribute("type",a),r.setAttribute("placeholder",n);let o=document.createElement("button");o.setAttribute("class","remove"),o.setAttribute("type","button"),i.appendChild(r),i.appendChild(o),l.appendChild(i),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 a=l.parentElement.parentNode;e=l.parentElement.getBoundingClientRect().height,l.parentElement.remove(),t.style.height=t.getBoundingClientRect().height-e+"px",a.childNodes.length<=n&&(a.nextElementSibling.disabled=!1,a.nextElementSibling.style.cssText="opacity:1;cursor:pointer;")}}};function l(t){let l=e.getElementById(t);l.classList.toggle("notallowed");let n=l.parentElement.lastElementChild;l.classList.contains("notallowed")?(l.disabled=!0,l.checked=!1,n.style.height=null):l.disabled=!1}var n;function a(e,t,l){return""==e?"":''+l+""}function i(e){return Number(e).toLocaleString("id-ID",{style:"currency",currency:"IDR",maximumFractionDigits:0})}n="#url-gambar-input",(n=e.querySelector(n)).style.height=n.scrollHeight+"px",e.getElementById("hidecheckoutchat").addEventListener("change",function(){l("nomorwhatsapp"),l("metodepembayaran")}),e.addEventListener("click",t.inputToggle),e.getElementById("addfield").addEventListener("click",function(){t.addInput({parent:this.previousElementSibling,elm:this.previousElementSibling,placeholder:"https://...",type:"url",max:5})}),e.getElementById("addfield2").addEventListener("click",function(){t.addInput({parent:this.previousElementSibling.parentNode,elm:this.previousElementSibling,placeholder:"Contoh: BCA, 1122334400, Sugeng Riyadi",type:"text",max:5})}),e.getElementById("url-gambar-input").addEventListener("click",function(e){t.removeInput({elm:this,target:e.target,max:5})}),e.getElementById("input-collection2").addEventListener("click",function(e){t.removeInput({elm:this,target:e.target,max:5})}),e.getElementById("submit").addEventListener("click",function(){var l=e.getElementById("url-gambar-input").querySelectorAll("input");var n=e.getElementById("input-metode-pembayaran").querySelectorAll("input"),r=t.getVal("#harga").replace(/\D/g,""),o=t.getVal("#hargapromo").replace(/\D/g,"");let d=t.getVal("#status");var s=t.lineToBr(t.getVal("#deskripsi"),"tagbr"),c=t.lineToBr(t.getVal("#deskripsi-long"),"tagbr2"),g=t.getVal("#checkouturl"),u=t.getVal("#hidecheckoutchat"),m=t.getVal("#nomorwhatsapp"),p=t.getVal("#metodepembayaran"),h=t.getVal("#url-checkout"),k=t.getVal("#no-whatsapp"),v=a(t.getVal("#tokopedia"),"link-tokopedia","Tokopedia"),y=a(t.getVal("#shopee"),"link-shopee","Shopee"),b=a(t.getVal("#bukalapak"),"link-bukalapak","Bukalapak"),E=a(t.getVal("#blibli"),"link-blibli","Blibli"),f=a(t.getVal("#lazada"),"link-lazada","Lazada"),S=a(t.getVal("#marketplace-lain"),"link-custom",t.getVal("#marketplace-lain-title")),L=(l=function(e){let t="";for(let n=0;n')}return t}(l),n=p?function(e){let t="themeSetting.rekbank = [";for(let n=0;n'+d+"":"";var I=""==o?i(r):""+i(r)+" "+i(o);o='\n';o+='\t
'+l+"\n\t
\n",o+='\t
'+d+"\n\t
\n",o+="
\n\n",o+='\n\n",o+=''+s+"
\n\n",o+=''+c+"
\n\n",o+='\n\n',o+=''+v+y+b+E+f+S+"
\n\n",o+="