\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({parent:e,elm:t,placeholder:l,type:n,name:i,max:a}){a=a||6;let r=document.createElement("div");r.setAttribute("class","new-input");let s=document.createElement("input");s.setAttribute("type",n),s.setAttribute("placeholder",l),s.setAttribute("name",i);let d=document.createElement("button");d.setAttribute("class","remove"),d.setAttribute("type","button"),r.appendChild(s),r.appendChild(d),t.appendChild(r),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:l}){if(l=l||6,"remove"===t.className){--l;let i=t.parentElement.parentNode;var n=t.parentElement.getBoundingClientRect().height;t.parentElement.remove(),e.style.height=e.getBoundingClientRect().height-n+"px",i.childNodes.length<=l&&(i.nextElementSibling.disabled=!1,i.nextElementSibling.style.cssText="opacity:1;cursor:pointer;")}}};!function(e){let t=e.getElementById("output-code"),l=e.getElementById("submit"),n=e.getElementById("addfield"),i=e.getElementById("url-gambar-input");var a;a="#url-gambar-input",(a=e.querySelector(a)).style.height=a.scrollHeight+"px",n.addEventListener("click",function(){helperFn.addInput({parent:this.previousElementSibling,elm:this.previousElementSibling,placeholder:"https://...",type:"url",name:"url-gambar",max:5})}),i.addEventListener("click",function(e){helperFn.removeInput({elm:this,target:e.target,max:5})}),l.addEventListener("click",function(){let l,n,i,a,r,s,d=e.getElementById("url-gambar-input").querySelectorAll("input"),o=e.getElementById("tokopedia").value,c=e.getElementById("shopee").value,u=e.getElementById("bukalapak").value,p=e.getElementById("blibli").value,m=e.getElementById("lazada").value,h=e.getElementById("harga").value.replace(/\D/g,""),g=e.getElementById("hargapromo").value.replace(/\D/g,""),v=e.getElementById("promo").checked,y=e.getElementById("stokhabis").checked,b=e.getElementById("terlaris").checked,k=e.getElementById("deskripsi").value,E="";function f(e,t,l){return""==t?"":''+l+""}function L(e,t,l){let n;return n=e?'