document.querySelectorAll(".checkout-tab").forEach(function(o){o.querySelectorAll(".nexttab").forEach(function(t){o.querySelectorAll('button[data-bs-toggle="pill"]').forEach(function(e){e.addEventListener("show.bs.tab",function(e){e.target.classList.add("done")})}),t.addEventListener("click",function(){var e=t.getAttribute("data-nexttab");document.getElementById(e).click()})}),o.querySelectorAll(".previestab").forEach(function(r){r.addEventListener("click",function(){for(var e=r.getAttribute("data-previous"),t=r.closest("form"),o=t-1;o<t;o++)r.closest("form").querySelectorAll(".custom-nav .done")[o]&&r.closest("form").querySelectorAll(".custom-nav .done")[o].classList.remove("done");document.getElementById(e).click()})});var r=o.querySelectorAll('button[data-bs-toggle="pill"]');r.forEach(function(e,t){e.setAttribute("data-position",t),e.addEventListener("click",function(){0<o.querySelectorAll(".custom-nav .done").length&&o.querySelectorAll(".custom-nav .done").forEach(function(e){e.classList.remove("done")});for(var e=0;e<=t;e++)r[e].classList.contains("active")?r[e].classList.remove("done"):r[e].classList.add("done")})})});var dropzonePreviewNode=document.querySelector("#dropzone-preview-list");dropzonePreviewNode.id="";var previewTemplate=dropzonePreviewNode.parentNode.innerHTML;dropzonePreviewNode.parentNode.removeChild(dropzonePreviewNode);var dropzone=new Dropzone(".dropzone",{url:"https://httpbin.org/post",method:"post",previewTemplate:previewTemplate,previewsContainer:"#dropzone-preview"});