(()=>{function e(o,r,d,i,l,a){return{getQrCodeCompiledHtml:u,print:function(e,n){var e=u(e,n),t=d.open("","_blank","width=800,height=600"),n=t&&t.document;t.opener=null,n?(n.open(),n.write('<html><head></head><body id="body"></body></html>'),n.close(),angular.element(n.getElementById("body")).append(e),i(function(){t.print()})):l.danger(a("Popup window failed to open. Please confirm your browser settings."))}};function u(e,n){var t=o.$new();return t.data=e,r(angular.element(n))(t)}}e.$inject=["$rootScope","$compile","$window","$timeout","c8yAlert","gettext"],angular.module("c8y.qrCode").factory("qrCodePrinter",e)})();