(()=>{function t(r,n){var e={restrict:n,link:function(e,t){e.$watch(function(){return t.html()},function(){var e=t;e=t.find("[c8y-guide-href]"),_.forEach(e,function(e){var t=r.getUserGuideLink(e.getAttribute("c8y-guide-href"));e.setAttribute("href",t),e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer")})}),"A"===n&&_.isNull(r.getBaseUrl())&&t.remove()},scope:{},controllerAs:"vm",controller:function(){this.isBaseUrl=r.getBaseUrl()}};return"E"===n&&_.assign(e,{transclude:!0,template:'<ng-transclude ng-show="vm.isBaseUrl"></ng-transclude>'}),e}angular.module("c8y.ui").directive("c8yGuideDocs",["c8yDocs",function(e){return t(e,"E")}]).directive("c8yGuideDocs",["c8yDocs",function(e){return t(e,"A")}])})();