"use strict";function _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,n){for(var t=0;t");n.from(t).toImg().then(function(){e.css("display","none"),a.prop("alt",o).prop("src",n.prop.img.src).addClass("invoice-img").css("max-width","".concat(e.outerWidth(),"px")),i.append(a)}),$("#download-pdf").on("click",function(e){e.preventDefault(),n.from(t).toPdf().save(o)})}}]),e}();$(document).on("theme:init",function(){new InvoiceDemo}); //# sourceMappingURL=../../sourcemaps/pages/invoice-demo.min.js.map