document.getElementById("print-button").addEventListener("click",()=>{let e="FluentCart Receipt";e&&document.getElementById("fct-order-invoice-no")&&(e="Receipt Number: "+document.getElementById("fct-order-invoice-no").innerText),document.querySelector(".fct-email-template-content"),document.querySelector(".fct-email-template-content-inner"),printThis(document.getElementById("receipt"),{debug:!1,importCSS:!0,printContainer:!0,pageTitle:e,removeInline:!1,printDelay:100,beforePrint:function(){console.log("About to print...")},afterPrint:function(){console.log("Print completed!")}})});window.addEventListener("DOMContentLoaded",function(){if(new URLSearchParams(window.location.search).get("download")==="1"){const t=document.getElementById("print-button");t&&t.click()}});
