text: !function(a){"function"==typeof define&&define.amd?define(["angular","../const/constants"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("angular"):require("angular")(b)),a(c,require("../const/constants")),c}:a(angular)}(function(a){"use strict";function b(){var b=this,c=function(a){var b=e(a.children(),"selector","n-collapse-dropdown-sub-menu"),c=e(a.children(),"tagName","A");if(b){var d=window.getComputedStyle(b[0],null).getPropertyValue("min-width");b.css({left:"-"+d})}a.addClass("open"),c&&c.eq(0).addClass("n-dropdown-sub-menu-parent-active")},d=function(a){var b=e(a.children(),"selector","n-collapse-dropdown-sub-menu"),c=e(a.children(),"tagName","A");b&&b.css({left:"auto"}),a.removeClass("open"),c&&c.eq(0).removeClass("n-dropdown-sub-menu-parent-active")},e=function(a,b,c){var d,e,f=a.length;if("selector"===b){for(d=0;d<f;d++)if(e=a.eq(d),e.hasClass(c))return e}else if("tagName"===b)for(d=0;d<f;d++)if(e=a.eq(d),e[0].tagName===c)return e};b.mouseover=function(b){var d=a.element(b.target);d.parent().parent().parent().hasClass("dropdown")&&d.parent().parent().parent().parent().hasClass("n-banner-links-collapse-dropdown-menu")?c(d.parent().parent().parent()):d.parent().hasClass("dropdown")&&d.parent().parent().hasClass("n-banner-links-collapse-dropdown-menu")&&c(d.parent())},b.mouseleave=function(b){var c=a.element(b.target);c.parent().parent().parent().hasClass("dropdown")&&c.parent().parent().parent().parent().hasClass("n-banner-links-collapse-dropdown-menu")?d(c.parent().parent().parent()):c.parent().hasClass("dropdown")&&c.parent().parent().hasClass("n-banner-links-collapse-dropdown-menu")&&d(c.parent())}}b.$inject=["WF-KEYCODE-CONST"],a.module("wf.angular.bannerActionSet",["wf.angular.constants"]).controller("BannerActionSetController",b).component("wfBannerActionSet",{transclude:!0,templateUrl:"wf/ng-template/banner/bannerActionSet.html",bindings:{actionSet:"<",overflowOpen:"<"},controller:b}).directive("wfOverflowMouseEvent",function(){return{restrict:"A",controller:"BannerActionSetController",link:function(a,b,c,d){b.on("mouseover",function(a){d.mouseover(a)}),b.on("mouseleave",function(a){d.mouseleave(a)})}}}),a.module("wf.angular.bannerActionSet").run(["$templateCache",function(a){a.put("wf/ng-template/banner/bannerActionSet.html",'<div class="n-banner-right n-banner-links-collapse dropdown">\n    <a href="#" class="n-banner-dropdown-toggle n-banner-links-collapse-dropdown-toggle show-on-blue-detached"\n       data-toggle="dropdown" aria-expanded="false" ng-if="$ctrl.overflowOpen" role="button">\n        <span class="icon icon-dropdown-menu"></span>\n    </a>\n    <ul class="n-banner-nav n-banner-links">\n        <li   ng-repeat="action  in  $ctrl.actionSet" class={{action.cssClass}} wf-overflow-mouse-event>\n            <a href={{action.link}}}  ng-if = "!(action.hasChild)" >\n                <span>\n                    <i class={{action.icon}}></i>\n                    <span>{{action.name}}</span>\n                </span>\n            </a>\n            <a  aria-expanded="false"  data-toggle="dropdown" href={{action.link}} role="button" ng-if="action.hasChild">\n                <span>\n                    <i class="icon icon-back show-on-blue-detached" ></i>\n                    <i class={{action.icon}}></i>\n                    <span>{{action.name}}</span>\n                    <span class="caret hidden-on-blue-detached"></span>\n                </span>\n            </a>\n            <ul class="dropdown-menu" role="menu" ng-if="action.hasChild">\n                <li ng-repeat="actionitem in action.childItems">\n                    <a href={{actionitem.link}} >\n                        <span>{{actionitem.name}}</span>\n                    </a>\n                </li>\n            </ul>\n        </li>\n    </ul>\n</div>')}])});