document.getElementById("print-button").addEventListener("click",()=>{let e=t("FluentCart Receipt");e&&document.getElementById("fct-order-invoice-no")&&(e=t("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!")}});function t(n){var o;return(((o=window.fct_receipt_data)==null?void 0:o.translations)||{})[n]||n}});window.addEventListener("DOMContentLoaded",function(){if(new URLSearchParams(window.location.search).get("download")==="1"){const t=document.getElementById("print-button");t&&t.click()}});
