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