(()=>{function e(n){function a(e,t){_.isUndefined(e.data)||_.isUndefined(e.template)||t.empty().append(n.getQrCodeCompiledHtml([e.data],e.template))}return{restrict:"A",scope:{data:"=",template:"="},link:function(e,t,n){e.$watch(n.data,function(){a(e,t)}),e.$watch(n.template,function(){a(e,t)})}}}e.$inject=["qrCodePrinter"],angular.module("c8y.qrCode").directive("c8yDisplayQrCode",e)})();