(()=>{function e(a){return function(t,c,o){t.$watch(o.componentName,function(){var n,e=(t.$eval(o.componentName)||"").replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())});e&&(n=document.createElement(e),e=(c[0]||c).attributes,_.forEach(e,function(e){"component-name"===e.name||/^\$/.test(e.name)||n.setAttribute(e.name,e.value)}),a(n)(t),c.html(n))})}}e.$inject=["$compile"],angular.module("c8y.ui").directive("c8yUiComponent",e)})();