(()=>{function e(e){e.hookEvent()}function n(n,e,t,o){var c=!1,s={},i=_.partial(d,!1),r=_.partial(d,!0),a=_.once(function(){n.$on("accessDenied",p)}),u={type:"warning",text:e("The application requested data your user does not have access to. Please check the user menu for more details"),onDetail:g,onClose:function(){c=!1}};return{resetHideMessage:i,hideMessage:r,getHideMessage:l,addUrl:f,getUrls:h,showAccessDeniedRequestsList:g,hookEvent:a};function d(e){!1===(c=e)&&(s={})}function l(){return c}function f(e,n){e=[e,n].join(" ");s[e]?s[e]++:s[e]=1}function h(){return s}function g(){var e=n.$new(!0);return e.urls=s,t({templateUrl:":::PLUGIN_PATH:::/ui/header/accessDeniedModal.html",scope:e})}function p(e,n){c||o.add(u),r(),f(n.request.config.method,n.request.config.url)}}e.$inject=["c8yAccessDenied"],n.$inject=["$rootScope","gettext","c8yModal","c8yAlert"],angular.module("c8y.ui").factory("c8yAccessDenied",n).run(e)})();