sp-dev-fx-webparts/samples/angular-migration/angular-todo/node_modules/ng-office-ui-fabric/ngOfficeUiFabric.min.js

12 lines
152 KiB
JavaScript

/*!
* ngOfficeUIFabric
* http://ngofficeuifabric.com
* Angular 1.x directives for Microsoft's Office UI Fabric
* https://angularjs.org & https://dev.office.com/fabric
* v0.11.0
*/
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("angular"));else if("function"==typeof define&&define.amd)define(["angular"],t);else{var i=t("object"==typeof exports?require("angular"):e.angular);for(var n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(this,function(e){return function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}([function(e,t,i){i(1),e.exports=i(3)},function(e,t,i){"use strict";var n=i(2);t.module=n.module("officeuifabric.core",[])},function(t,i){t.exports=e},function(e,t,i){"use strict";var n=i(2),r=i(4),o=i(5),s=i(8),a=i(11),c=i(13),l=i(14),u=i(15),d=i(16),f=i(17),p=i(19),m=i(20),h=i(22),v=i(23),g=i(24),y=i(28),b=i(29),P=i(31),C=i(32),k=i(34),$=i(36),T=i(41),S=i(44),w=i(47),E=i(48),I=i(49),x=i(51),M=i(54),D=i(56),B=i(57),O=i(61);t.module=n.module("officeuifabric.components",[r.module.name,o.module.name,s.module.name,a.module.name,c.module.name,l.module.name,u.module.name,d.module.name,f.module.name,p.module.name,m.module.name,h.module.name,v.module.name,g.module.name,y.module.name,b.module.name,P.module.name,C.module.name,k.module.name,O.module.name,$.module.name,T.module.name,S.module.name,w.module.name,E.module.name,I.module.name,x.module.name,M.module.name,D.module.name,B.module.name])},function(e,t,i){"use strict";var n=i(2),r=function(){function e(){this.restrict="E",this.require="^uifBreadcrumb",this.transclude=!0,this.replace=!0,this.template='<li class="ms-Breadcrumb-listItem"><a class="ms-Breadcrumb-itemLink" ng-href="{{ngHref}}" tabindex="{{uifTabindex}}" ng-transclude></a><i class="ms-Breadcrumb-chevron ms-Icon ms-Icon--chevronRight"></i></li>',this.scope={ngHref:"@"}}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i,n,r){var o=Array.prototype.indexOf.call(t.parent().children(),t[0])+2;e.uifTabindex=o},e}();t.BreadcrumbLinkDirective=r;var o=function(){function e(e,t){this.href=e,this.linkText=t}return e}();t.BreadcrumbLink=o;var s=function(){function e(t,i,r){this.$scope=t,this.$document=i,this.$window=r;var o=n.element(r);t.visibleElements=4,t.overflowMenuOpen=!1,t.isOverflow=function(){var e=!1;return e=n.isDefined(t.uifBreadcrumbLinks)&&t.uifBreadcrumbLinks.length>t.visibleElements},t.overflowElements=function(){return t.isOverflow()?t.uifBreadcrumbLinks.length-t.visibleElements:0},t.openOverflow=function(e){e.stopPropagation(),t.overflowMenuOpen=!0},i.find("html").on("click",function(e){t.overflowMenuOpen=!1,t.$apply()}),o.on("resize",function(){var i=r.innerWidth,n=i>e._breakingWidth?4:2;n!==t.visibleElements&&(t.visibleElements=n,t.$apply())})}return e.$inject=["$scope","$document","$window"],e._breakingWidth=639,e}();t.BreadcrumbController=s;var a=function(){function e(){this.restrict="E",this.replace=!0,this.template='<div class="ms-Breadcrumb" ng-class="{\'is-overflow\': isOverflow()}"><div class="ms-Breadcrumb-overflow"><div class="ms-Breadcrumb-overflowButton ms-Icon ms-Icon--ellipsis" ng-click="openOverflow($event)" tabindex="1"></div><i class="ms-Breadcrumb-chevron ms-Icon ms-Icon--chevronRight"></i><div class="ms-Breadcrumb-overflowMenu" ng-class="{\'is-open\': overflowMenuOpen}"><ul class="ms-ContextualMenu is-open"><li class="ms-ContextualMenu-item" ng-repeat="link in uifBreadcrumbLinks | limitTo:overflowElements()"><a class="ms-ContextualMenu-link" ng-href="{{link.href}}">{{link.linkText}}</a></li></ul></div></div><ul class="ms-Breadcrumb-list"><uif-breadcrumb-link ng-repeat="link in uifBreadcrumbLinks | limitTo:-visibleElements" ng-href="{{link.href}}">{{link.linkText}}</uif-breadcrumb-link></ul></div>',this.controller=s,this.require="uifBreadcrumb",this.scope={uifBreadcrumbLinks:"="}}return e.factory=function(){var t=function(){return new e};return t},e}();t.BreadcrumbDirective=a,t.module=n.module("officeuifabric.components.breadcrumb",["officeuifabric.components"]).directive("uifBreadcrumb",a.factory()).directive("uifBreadcrumbLink",r.factory())},function(e,t,i){"use strict";var n=i(2),r=i(6),o=i(7),s=function(){function e(e){this.$log=e}return e.$inject=["$log"],e}(),a=function(){function e(e){var t=this;this.$log=e,this.restrict="E",this.transclude=!0,this.replace=!0,this.scope={},this.controller=s,this.controllerAs="button",this.templateOptions={},this.template=function(e,i){switch(!n.isUndefined(i.uifType)&&n.isUndefined(r.ButtonTypeEnum[i.uifType])&&t.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.button - Unsupported button: The button ('"+i.uifType+"') is not supported by the Office UI Fabric. Supported options are listed here: https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/button/buttonTypeEnum.ts"),i.uifType){case r.ButtonTypeEnum[r.ButtonTypeEnum.primary]:return n.isUndefined(i.ngHref)?t.templateOptions[o.ButtonTemplateType.primaryButton]:t.templateOptions[o.ButtonTemplateType.primaryLink];case r.ButtonTypeEnum[r.ButtonTypeEnum.command]:return n.isUndefined(i.ngHref)?t.templateOptions[o.ButtonTemplateType.commandButton]:t.templateOptions[o.ButtonTemplateType.commandLink];case r.ButtonTypeEnum[r.ButtonTypeEnum.compound]:return n.isUndefined(i.ngHref)?t.templateOptions[o.ButtonTemplateType.compoundButton]:t.templateOptions[o.ButtonTemplateType.compoundLink];case r.ButtonTypeEnum[r.ButtonTypeEnum.hero]:return n.isUndefined(i.ngHref)?t.templateOptions[o.ButtonTemplateType.heroButton]:t.templateOptions[o.ButtonTemplateType.heroLink];default:return n.isUndefined(i.ngHref)?t.templateOptions[o.ButtonTemplateType.actionButton]:t.templateOptions[o.ButtonTemplateType.actionLink]}},this._populateHtmlTemplates()}return e.factory=function(){var t=function(t){return new e(t)};return t.$inject=["$log"],t},e.prototype.compile=function(e,t,i){return{post:this.postLink,pre:this.preLink}},e.prototype.preLink=function(e,t,i,n,r){i.$observe("disabled",function(t){e.disabled=!!t}),t.on("click",function(t){e.disabled&&t.preventDefault()})},e.prototype.postLink=function(e,t,i,o,s){if(n.isUndefined(i.uifType)||i.uifType===r.ButtonTypeEnum[r.ButtonTypeEnum.primary]||i.uifType===r.ButtonTypeEnum[r.ButtonTypeEnum.compound]){var a=t.find("uif-icon");0!==a.length&&(a.remove(),o.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.button - Icon not allowed in primary or compound buttons: The primary & compound button does not support including icons in the body. The icon has been removed but may cause rendering errors. Consider buttons that support icons such as command or hero."))}s(function(e){var o;switch(i.uifType){case r.ButtonTypeEnum[r.ButtonTypeEnum.command]:for(var s=0;s<e.length;s++)"SPAN"===e[s].tagName&&(o=n.element("<span></span>"),o.addClass("ms-Button-label").append(e[s]),t.append(o)),"UIF-ICON"===e[s].tagName&&(o=n.element("<span></span>"),o.addClass("ms-Button-icon").append(e[s]),t.append(o));break;case r.ButtonTypeEnum[r.ButtonTypeEnum.compound]:for(var s=0;s<e.length;s++)"SPAN"===e[s].tagName&&("ng-scope"===e[s].classList[0]&&1===e[s].classList.length?(o=n.element("<span></span>"),o.addClass("ms-Button-label").append(e[s]),t.append(o)):t.append(e[s]));break;case r.ButtonTypeEnum[r.ButtonTypeEnum.hero]:for(var s=0;s<e.length;s++)"SPAN"===e[s].tagName&&(o=n.element("<span></span>"),o.addClass("ms-Button-label").append(e[s]),t.append(o)),"UIF-ICON"===e[s].tagName&&(o=n.element("<span></span>"),o.addClass("ms-Button-icon").append(e[s]),t.append(o))}})},e.prototype._populateHtmlTemplates=function(){this.templateOptions[o.ButtonTemplateType.actionButton]='<button class="ms-Button" ng-class="{\'is-disabled\': disabled}">\n <span class="ms-Button-label" ng-transclude></span>\n </button>',this.templateOptions[o.ButtonTemplateType.actionLink]='<a class="ms-Button" ng-class="{\'is-disabled\': disabled}">\n <span class="ms-Button-label" ng-transclude></span>\n </a>',this.templateOptions[o.ButtonTemplateType.primaryButton]='<button class="ms-Button ms-Button--primary" ng-class="{\'is-disabled\': disabled}">\n <span class="ms-Button-label" ng-transclude></span>\n </button>',this.templateOptions[o.ButtonTemplateType.primaryLink]='<a class="ms-Button ms-Button--primary" ng-class="{\'is-disabled\': disabled}">\n <span class="ms-Button-label" ng-transclude></span>\n </a>',this.templateOptions[o.ButtonTemplateType.commandButton]='<button class="ms-Button ms-Button--command" ng-class="{\'is-disabled\': disabled}"></button>',this.templateOptions[o.ButtonTemplateType.commandLink]='<a class="ms-Button ms-Button--command" ng-class="{\'is-disabled\': disabled}"></a>',this.templateOptions[o.ButtonTemplateType.compoundButton]='<button class="ms-Button ms-Button--compound" ng-class="{\'is-disabled\': disabled}"></button>',this.templateOptions[o.ButtonTemplateType.compoundLink]='<a class="ms-Button ms-Button--compound" ng-class="{\'is-disabled\': disabled}"></a>',this.templateOptions[o.ButtonTemplateType.heroButton]='<button class="ms-Button ms-Button--hero" ng-class="{\'is-disabled\': disabled}"></button>',this.templateOptions[o.ButtonTemplateType.heroLink]='<a class="ms-Button ms-Button--hero" ng-class="{\'is-disabled\': disabled}"></a>'},e}();t.ButtonDirective=a;var c=function(){function e(){this.restrict="E",this.require="^uifButton",this.transclude=!0,this.replace=!0,this.scope=!1,this.template='<span class="ms-Button-description" ng-transclude></span>'}return e.factory=function(){var t=function(){return new e};return t},e}();t.ButtonDescriptionDirective=c,t.module=n.module("officeuifabric.components.button",["officeuifabric.components"]).directive("uifButton",a.factory()).directive("uifButtonDescription",c.factory())},function(e,t){"use strict";!function(e){e[e.primary=0]="primary",e[e.command=1]="command",e[e.compound=2]="compound",e[e.hero=3]="hero"}(t.ButtonTypeEnum||(t.ButtonTypeEnum={}));t.ButtonTypeEnum},function(e,t){"use strict";!function(e){e[e.actionButton=0]="actionButton",e[e.actionLink=1]="actionLink",e[e.primaryButton=2]="primaryButton",e[e.primaryLink=3]="primaryLink",e[e.commandButton=4]="commandButton",e[e.commandLink=5]="commandLink",e[e.compoundButton=6]="compoundButton",e[e.compoundLink=7]="compoundLink",e[e.heroButton=8]="heroButton",e[e.heroLink=9]="heroLink"}(t.ButtonTemplateType||(t.ButtonTemplateType={}));t.ButtonTemplateType},function(e,t,i){"use strict";var n=i(2),r=i(9),o=i(10),s=function(){function e(e,t){this.$scope=e,this.$log=t}return e.$inject=["$scope","$log"],e}();t.CalloutController=s;var a=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!1,this.scope=!1,this.template='<div class="ms-Callout-header"><p class="ms-Callout-title" ng-transclude></p></div>'}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i,r){var o=t.parent().parent();if(!n.isUndefined(o)&&o.hasClass("ms-Callout-main")){var s=t.detach();o.prepend(s)}},e}();t.CalloutHeaderDirective=a;var c=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!1,this.scope=!1,this.template='<div class="ms-Callout-content"><p class="ms-Callout-subText" ng-transclude></p></div>'}return e.factory=function(){var t=function(){return new e};return t},e}();t.CalloutContentDirective=c;var l=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!1,this.scope=!1,this.template='<div class="ms-Callout-actions" ng-transclude></div>',this.require="^?uifCallout"}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i,r){n.isObject(r)&&r.$scope.$watch("hasSeparator",function(e){if(e)for(var i=t.children().eq(0).children(),n=0;n<i.length;n++){var r=i.eq(n);r.addClass("ms-Callout-action");for(var o=r.find("span"),s=0;s<o.length;s++){var a=o.eq(s);(a.hasClass("ms-Button-label")||a.hasClass("ms-Button-icon"))&&a.addClass("ms-Callout-actionText")}}})},e}();t.CalloutActionsDirective=l;var u=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!1,this.template="<div class=\"ms-Callout ms-Callout--arrow{{arrowDirection}}\" ng-class=\"{'ms-Callout--actionText': hasSeparator, 'ms-Callout--OOBE': uifType=='oobe', 'ms-Callout--Peek': uifType=='peek', 'ms-Callout--close': closeButton}\">"+'<div class="ms-Callout-main"><div class="ms-Callout-inner" ng-transclude></div></div></div>',this.require=["uifCallout"],this.scope={ngShow:"=?",uifType:"@"},this.controller=s}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i,s){var a=s[0];if(i.$observe("uifType",function(e){n.isUndefined(r.CalloutType[e])&&a.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.callout - "'+e+'" is not a valid value for uifType. It should be oobe or peek')}),i.uifArrow||(e.arrowDirection="Left"),i.$observe("uifArrow",function(t){if(n.isUndefined(o.CalloutArrow[t]))return void a.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.callout - "'+t+'" is not a valid value for uifArrow. It should be left, right, top, bottom.');var i=t.charAt(0).toUpperCase();i+=t.slice(1).toLowerCase(),e.arrowDirection=i}),e.hasSeparator=!n.isUndefined(i.uifActionText)||!n.isUndefined(i.uifSeparator),!n.isUndefined(i.uifClose)){e.closeButton=!0;var c=n.element('<button class="ms-Callout-close" type="button"><i class="ms-Icon ms-Icon--x"></i></button>'),l=t.find("div").eq(0);l.append(c),c.bind("click",function(t){e.ngShow=!1,e.closeButtonClicked=!0,e.$apply()})}t.bind("mouseenter",function(t){e.isMouseOver=!0,e.$apply()}),t.bind("mouseleave",function(t){e.isMouseOver=!1,e.$apply()}),e.$watch("ngShow",function(t,i){var n=!t&&e.closeButtonClicked;return n?void(e.ngShow=e.closeButtonClicked=!1):void(t||(e.ngShow=e.isMouseOver))}),e.$watch("isMouseOver",function(t,i){!t&&i&&(e.closeButton||(e.ngShow=!1))})},e}();t.CalloutDirective=u,t.module=n.module("officeuifabric.components.callout",["officeuifabric.components"]).directive("uifCallout",u.factory()).directive("uifCalloutHeader",a.factory()).directive("uifCalloutContent",c.factory()).directive("uifCalloutActions",l.factory())},function(e,t){"use strict";!function(e){e[e.oobe=0]="oobe",e[e.peek=1]="peek"}(t.CalloutType||(t.CalloutType={}));t.CalloutType},function(e,t){"use strict";!function(e){e[e.left=0]="left",e[e.right=1]="right",e[e.top=2]="top",e[e.bottom=3]="bottom"}(t.CalloutArrow||(t.CalloutArrow={}));t.CalloutArrow},function(e,t,i){"use strict";var n=i(2),r=i(12),o=function(){function e(e){this.$log=e}return e.$inject=["$log"],e}();t.ChoicefieldOptionController=o;var s=function(){function e(){this.template='<div class="ms-ChoiceField"><input id="{{::$id}}" class="ms-ChoiceField-input" type="{{uifType}}" value="{{value}}" ng-disabled="disabled" ng-model="ngModel" ng-true-value="{{ngTrueValue}}" ng-false-value="{{ngFalseValue}}" /><label for="{{::$id}}" class="ms-ChoiceField-field"><span class="ms-Label" ng-transclude></span></label></div>',this.restrict="E",this.require=["uifChoicefieldOption","^?uifChoicefieldGroup"],this.replace=!0,this.transclude=!0,this.scope={ngFalseValue:"@",ngModel:"=",ngTrueValue:"@",uifType:"@",value:"@"},this.controller=o}return e.factory=function(){var t=function(){return new e};return t},e.prototype.compile=function(e,t,i){var n=e.find("input");return"ngModel"in t||n.removeAttr("ng-model"),{pre:this.preLink}},e.prototype.preLink=function(e,t,i,n,o){var s=n[0],a=n[1];if(e.$watch("uifType",function(e,t){void 0===r.ChoicefieldType[e]&&s.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.choicefield - "'+e+'" is not a valid value for uifType. Supported options are listed here: https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/choicefield/choicefieldTypeEnum.ts')}),null!=a){var c=function(){var e=a.getViewValue()===i.value;t.find("input").prop("checked",e)};a.addRender(c),i.$observe("value",c),t.on("$destroy",function(){a.removeRender(c)})}var l=e.$parent.$parent,u=function(){e.disabled="disabled"in i&&i.disabled,e.disabled=e.disabled||null!=l&&l.disabled};e.$watch(function(){return t.attr("disabled")},function(e){u()}),e.$watch(function(){return null==l?"":l.disabled},function(e){u()}),u(),t.on("click",function(t){e.disabled||e.$apply(function(){null!=a&&a.setViewValue(i.value,t)})})},e}();t.ChoicefieldOptionDirective=s;var a=function(){function e(){this.template='<div class="ms-ChoiceFieldGroup-title"><ng-transclude /></div>',this.transclude=!0}return e.factory=function(){var t=function(){return new e};return t},e}();t.ChoicefieldGroupTitleDirective=a;var c=function(){function e(e,t){this.$element=e,this.$scope=t,this.renderFns=[]}return e.prototype.init=function(){var e=this;"undefined"!=typeof this.$scope.ngModel&&null!=this.$scope.ngModel&&(this.$scope.ngModel.$render=function(){e.render()},this.render())},e.prototype.addRender=function(e){this.renderFns.push(e)},e.prototype.removeRender=function(e){this.renderFns.splice(this.renderFns.indexOf(e))},e.prototype.setViewValue=function(e,t){this.$scope.ngModel.$setViewValue(e,t),this.render()},e.prototype.getViewValue=function(){return"undefined"!=typeof this.$scope.ngModel&&null!=this.$scope.ngModel?this.$scope.ngModel.$viewValue:void 0},e.prototype.render=function(){for(var e=0;e<this.renderFns.length;e++)this.renderFns[e]()},e.$inject=["$element","$scope"],e}();t.ChoicefieldGroupController=c;var l=function(){function e(){this.template='<div class="ms-ChoiceFieldGroup"><ng-transclude /></div>',this.restrict="E",this.transclude=!0,this.require=["uifChoicefieldGroup","?ngModel"],this.controller=c,this.scope={}}return e.factory=function(){var t=function(){return new e};return t},e.prototype.compile=function(e,t,i){return{pre:this.preLink}},e.prototype.preLink=function(e,t,i,n){var r=n[0],o=n[1];e.ngModel=o,r.init(),e.$watch(function(){return t.attr("disabled")},function(t){e.disabled="undefined"!=typeof t}),e.disabled="disabled"in i},e}();t.ChoicefieldGroupDirective=l,t.module=n.module("officeuifabric.components.choicefield",["officeuifabric.components"]).directive("uifChoicefieldOption",s.factory()).directive("uifChoicefieldGroup",l.factory()).directive("uifChoicefieldGroupTitle",a.factory())},function(e,t){"use strict";!function(e){e[e.radio=0]="radio",e[e.checkbox=1]="checkbox"}(t.ChoicefieldType||(t.ChoicefieldType={}));t.ChoicefieldType},function(e,t,i){"use strict";var n=i(2),r=function(){function e(){this.restrict="E",this.template='<div class="ms-CommandBar" ng-transclude></div>',this.transclude=!0,this.replace=!0,this.scope={placeholder:"@",uifSearchTerm:"="}}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i){e.focusSearchInput=function(){e.isSearchActive=!0,angular.element(t[0].querySelector(".ms-CommandBarSearch-input"))[0].focus()},e.clearSearchTerm=function(){e.uifSearchTerm=null,e.isSearchActive=!1}},e}();t.CommandBarDirective=r;var o=function(){function e(){this.restrict="E",this.replace=!0,this.transclude=!0,this.template='<div class="ms-CommandBarSearch" ng-class="$parent.isSearchActive == true ? \'is-active\' : \'\';">\n <input class="ms-CommandBarSearch-input"\n type="text"\n placeholder="{{$parent.placeholder}}"\n tabindex="1"\n ng-focus="$parent.isSearchActive = true;"\n ng-blur="$parent.isSearchActive = false;"\n ng-model="$parent.uifSearchTerm">\n <div class="ms-CommandBarSearch-iconWrapper ms-CommandBarSearch-iconSearchWrapper"\n ng-click="$parent.focusSearchInput()">\n <uif-icon uif-type="search" />\n </div>\n <div class="ms-CommandBarSearch-iconWrapper ms-CommandBarSearch-iconClearWrapper ms-font-s"\n ng-mousedown="$parent.clearSearchTerm()">\n <uif-icon uif-type="x"/>\n </div>\n </div>'}return e.factory=function(){var t=function(){return new e};return t},e}();t.CommandBarSearchDirective=o;var s=function(){function e(){this.restrict="E",this.template='<div class="ms-CommandBar-sideCommands" ng-transclude></div>',this.replace=!0,this.transclude=!0}return e.factory=function(){var t=function(){return new e};return t},e}();t.CommandBarSideDirective=s;var a=function(){function e(e){this.$timeout=e,this.restrict="E",this.template='<div class="ms-CommandBar-mainArea">\n <ng-transclude></ng-transclude>\n <div ng-if="uifShowOverflow"\n class="ms-CommandBarItem ms-CommandBarItem--iconOnly ms-CommandBarItem-overflow"\n ng-class="overflowVisible == true ? \'is-visible\' : \'\';">\n <div class="ms-CommandBarItem-linkWrapper"\n ng-click="openOverflowMenu()">\n <a class="ms-CommandBarItem-link" tabindex="2">\n <uif-icon uif-type="ellipsis" />\n </a>\n </div>\n </div>\n </div>',this.replace=!0,this.transclude=!0,this.controller=c,this.scope={uifShowOverflow:"="}}return e.factory=function(){var t=function(t){return new e(t)};return t.$inject=["$timeout"],t},e.prototype.compile=function(e,t,i){return{post:this.postLink}},e.prototype.postLink=function(e,t,i,n){e.openOverflowMenu=function(){e.overflowMenuOpen=!e.overflowMenuOpen;var i;i=' <uif-contextual-menu class="ms-CommandBar-overflowMenu"\n uif-is-open="overflowMenuOpen"\n uif-close-on-click="false">',angular.element(t[0].querySelector(".ms-CommandBarItem-overflow .ms-CommandBarItem-linkWrapper ul")).remove(),angular.forEach(e.hiddenItems,function(e){i+=e.submenu?'<uif-contextual-menu-item ng-model="hiddenItems['+e.i+"]\"\n ng-click='openOverflowItem(hiddenItems["+e.i+"])'\n uif-text='hiddenItems["+e.i+"].text'\n ng-show='hiddenItems["+e.i+"].visible'\n uif-type=\"subMenu\">\n <uif-contextual-menu>\n <uif-contextual-menu-item\n ng-click='openOverflowItem(subitem)'\n uif-text='subitem.text'\n uif-type=\"link\"\n ng-repeat=\"subitem in hiddenItems["+e.i+'].submenuitems track by $index"/>\n </uif-contextual-menu>\n </uif-contextual-menu-item>':'<uif-contextual-menu-item ng-model="hiddenItems['+e.i+"]\"\n ng-click='openOverflowItem(hiddenItems["+e.i+"])'\n uif-text='hiddenItems["+e.i+"].text'\n ng-show='hiddenItems["+e.i+'].visible\'\n uif-type="link">\n </uif-contextual-menu-item>'}),i+="</<uif-contextual-menu>";var r;r=t[0].querySelector(".ms-CommandBarItem-overflow .ms-CommandBarItem-linkWrapper"),angular.element(r).append(n.$compile(i)(e))},e.loadMenuItems=function(t){var i=0,n=0;e.commandItems=[],angular.forEach(t,function(t){angular.element(t).hasClass("ms-CommandBarItem-overflow")!==!0&&(i+=t.offsetWidth,e.commandItems.push({index:n,offset:i}),n++)})},e.openOverflowItem=function(e){e.submenu?(e.submenuitems=[],angular.forEach(e.submenu.children,function(t){var i;i={},i.text=t.innerText,i.menuType="item",i.childitem=!0,i.i=e.submenuitems.length,i.parent=e.i,e.submenuitems.push(i)})):n.$timeout(function(){if(e.childitem===!0){var i=void 0;i=t[0].querySelectorAll(".ms-CommandBarItem")[e.parent].querySelectorAll(".ms-ContextualMenu-item")[e.i],angular.element(i).triggerHandler("click")}else angular.element(t[0].querySelectorAll(".ms-CommandBarItem")[e.i]).triggerHandler("click")},1)},e.toggleItemVisibility=function(){var i;i=angular.element(t[0].querySelectorAll(".ms-CommandBar-mainArea .ms-CommandBarItem")),window.innerWidth<640&&e.mobileSwitch===!1?(e.loadMenuItems(i),e.mobileSwitch=!0):window.innerWidth>=640&&e.mobileSwitch===!0&&(e.loadMenuItems(i),e.mobileSwitch=!1),angular.forEach(e.commandItems,function(i){i.offset>=t.prop("offsetWidth")-200?(angular.element(t[0].querySelectorAll(".ms-CommandBarItem")[i.index]).addClass("is-hidden"),e.hiddenItems[i.index].visible=!0,e.overflowVisible=!0):(angular.element(t[0].querySelectorAll(".ms-CommandBarItem")[i.index]).removeClass("is-hidden"),e.hiddenItems[i.index].visible=!1,e.overflowVisible=!1)}),n.$timeout(function(){e.$apply()},1)},e.$on("uif-command-bar-resize",function(){e.overflowMenuOpen=!1,e.toggleItemVisibility()}),angular.element(window).bind("resize",function(){e.$broadcast("uif-command-bar-resize")}),angular.element(document).ready(function(){e.loadMenuItems(angular.element(t[0].querySelectorAll(".ms-CommandBarItem"))),e.toggleItemVisibility()})},e}();t.CommandBarMainDirective=a;var c=function(){function e(e,t,i,n){this.$scope=e,this.$element=t,this.$compile=i,this.$timeout=n}return e.prototype.addOverflowItem=function(e){null==this.$scope.hiddenItems&&(this.$scope.hiddenItems=[]),e.i=this.$scope.hiddenItems.length,this.$scope.hiddenItems.push(e)},e.$inject=["$scope","$element","$compile","$timeout"],e}();t.CommandBarMainController=c;var l=function(){function e(){this.restrict="E",this.template='<div class="ms-CommandBarItem"><div class="ms-CommandBarItem-linkWrapper"> <a class="ms-CommandBarItem-link"> </a></div></div>',this.transclude=!0,this.replace=!0,this.controller=c,this.require="^?uifCommandBarMain"}return e.factory=function(){var t=function(){return new e};return t},e.prototype.compile=function(e,t,i){return{post:this.postLink}},e.prototype.postLink=function(e,t,i,n,r){r(function(e){var i;i={};for(var r=0;r<e.length;r++)"UIF-ICON"===e[r].tagName&&angular.element(t[0].querySelector("a.ms-CommandBarItem-link")).append(e[r]),"SPAN"===e[r].tagName&&(e[r].classList.contains("ms-CommandBarItem-commandText")||e[r].classList.add("ms-CommandBarItem-commandText"),-1===e[r].className.indexOf("ms-font-")&&e[r].classList.add("ms-font-m"),angular.element(t[0].querySelector("a.ms-CommandBarItem-link")).append(e[r]),i.text=e[r].innerText),"UL"===e[r].tagName&&e[r].classList.contains("ms-ContextualMenu")&&(angular.element(t).append(e[r]),i.submenu=e[r]);null!==n&&(null==i.submenu?i.menuType="link":i.menuType="subMenu",n.addOverflowItem(i))}),0===angular.element(t[0].querySelector(".ms-CommandBarItem-link > uif-icon")).length&&angular.element(t[0].querySelector(".ms-CommandBarItem")).addClass("ms-CommandBarItem-hasTextOnly")},e}();t.CommandBarItemDirective=l,t.module=n.module("officeuifabric.components.commandbar",["officeuifabric.components"]).directive("uifCommandBar",r.factory()).directive("uifCommandBarSearch",o.factory()).directive("uifCommandBarItem",l.factory()).directive("uifCommandBarMain",a.factory()).directive("uifCommandBarSide",s.factory())},function(e,t,i){"use strict";var n=i(2),r=function(){function e(){this.replace=!0,this.restrict="E",this.transclude=!0,this.scope=!0,this.template='<span class="uif-content" ng-transclude></span>'}return e.factory=function(){var t=function(){return new e};return t},e.directiveName="uifContent",e}();t.ContentDirective=r,t.module=n.module("officeuifabric.components.content",["officeuifabric.components"]).directive(r.directiveName,r.factory())},function(e,t,i){"use strict";var n,r=i(2);!function(e){e[e.link=0]="link",e[e.divider=1]="divider",e[e.header=2]="header",e[e.subMenu=3]="subMenu"}(n||(n={}));var o=function(){function e(e){var t=this;this.$log=e,this.restrict="E",this.require="^uifContextualMenu",this.transclude=!0,this.controller=s,this.replace=!0,this.scope={isSelected:"=?uifIsSelected",onClick:"&ngClick",text:"=?uifText",type:"@uifType"},this.templateTypes={},this.template=function(e,i){var o=i.uifType;return r.isUndefined(o)?t.templateTypes[n.link]:(void 0===n[o]&&t.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.contextualmenu - unsupported menu type:\nthe type '"+o+"' is not supported by ng-Office UI Fabric as valid type for context menu.Supported types can be found under MenuItemTypes enum here:\nhttps://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/contextualmenu/contextualMenu.ts"),t.templateTypes[n[o]])},this.link=function(e,i,n,o,s){"boolean"!=typeof e.isSelected&&void 0!==e.isSelected&&o.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.contextualmenu - invalid attribute type: 'uif-is-selected'.\nThe type '"+typeof e.isSelected+"' is not supported as valid type for 'uif-is-selected' attribute for <uif-contextual-menu-item />. The valid type is boolean."),n.$observe("disabled",function(t){e.isDisabled=!!t}),t.transcludeChilds(e,i,s),e.selectItem=function(t){o.isMultiSelectionMenu()||o.deselectItems(),r.isUndefined(e.isSelected)&&!e.isDisabled?e.isSelected=!0:e.isSelected=!e.isSelected,e.hasChildMenu?o.closeSubMenus(e.$id):(o.closeSubMenus(null,!0),o.isRootMenu()||o.deselectItems(!0)),e.hasChildMenu&&e.childMenuCtrl.openMenu(),r.isUndefined(e.onClick)||e.onClick(),t.stopPropagation()},e.$on("uif-menu-deselect",function(){e.isSelected=!1}),e.$on("uif-menu-close",function(t,i){e.hasChildMenu&&e.$id!==i&&e.childMenuCtrl.closeMenu()})},this.templateTypes[n.subMenu]='<li class="ms-ContextualMenu-item">\n <a class="ms-ContextualMenu-link ms-ContextualMenu-link--hasMenu"\n ng-class="{\'is-selected\': isSelected, \'is-disabled\': isDisabled}" ng-click="selectItem($event)" href>\n <span class=\'uif-item-content\'></span></a>\n <i class="ms-ContextualMenu-subMenuIcon ms-Icon ms-Icon--chevronRight"></i>\n <div class="uif-context-submenu"></div>\n </li>',this.templateTypes[n.link]='<li class="ms-ContextualMenu-item">\n <a class="ms-ContextualMenu-link" ng-class="{\'is-selected\': isSelected, \'is-disabled\': isDisabled}"\n ng-click="selectItem($event)" href><span class=\'uif-item-content\'></span></a>\n </li>',this.templateTypes[n.header]="\n <li class=\"ms-ContextualMenu-item ms-ContextualMenu-item--header\">\n <span class='uif-item-content'></span>\n </li>",this.templateTypes[n.divider]='<li class="ms-ContextualMenu-item ms-ContextualMenu-item--divider"></li>'}return e.factory=function(){var t=function(t){return new e(t)};return t.$inject=["$log"],t},e.prototype.transcludeChilds=function(e,t,i){var n=this;i(function(i){var r=n.hasItemContent(i);r||e.text||e.hasChildMenu||"divider"===e.type||n.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.contextualmenu - you need to provide a text for a contextual menu item.\nFor <uif-contextual-menu-item> you need to specify either 'uif-text' as attribute or <uif-content> as a child directive"),n.insertItemContent(i,e,t),n.insertSubMenu(i,e,t)})},e.prototype.insertItemContent=function(e,t,i){var n=angular.element(i[0].querySelector(".uif-item-content"));if(this.hasItemContent(e))for(var r=0;r<e.length;r++){var o=angular.element(e[r]);if(o.hasClass("uif-content")){n.replaceWith(o);break}}else n.replaceWith(angular.element("<span>"+t.text+"</span>"))},e.prototype.insertSubMenu=function(e,t,i){for(var n=0;n<e.length;n++){var r=angular.element(e[n]);r.hasClass("ms-ContextualMenu")&&angular.element(i[0].querySelector(".uif-context-submenu")).replaceWith(r);
}},e.prototype.hasItemContent=function(e){for(var t=0;t<e.length;t++){var i=angular.element(e[t]);if(i.hasClass("uif-content"))return!0}return!1},e.directiveName="uifContextualMenuItem",e}();t.ContextualMenuItemDirective=o;var s=function(){function e(e,t){this.$scope=e,this.$element=t}return e.prototype.setChildMenu=function(e){this.$scope.hasChildMenu=!0,this.$scope.childMenuCtrl=e},e.$inject=["$scope","$element"],e}();t.ContextualMenuItemController=s;var a=function(){function e(){this.restrict="E",this.require=e.directiveName,this.transclude=!0,this.template='<ul class="ms-ContextualMenu" ng-transclude></ul>',this.replace=!0,this.controller=c,this.scope={closeOnClick:"@uifCloseOnClick",isOpen:"=?uifIsOpen",multiselect:"@uifMultiselect"}}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i,n){var s=function(t){r.isUndefined(t)?e.closeOnClick=!0:e.closeOnClick="true"===t.toString().toLowerCase()};s(e.closeOnClick),i.$observe("uifCloseOnClick",s);var a=t.controller(o.directiveName);r.isUndefined(a)||a.setChildMenu(n),r.isUndefined(e.multiselect)||"true"!==e.multiselect.toLowerCase()||t.addClass("ms-ContextualMenu--multiselect")},e.directiveName="uifContextualMenu",e}();t.ContextualMenuDirective=a;var c=function(){function e(e,t,i,n){var s=this;this.$scope=e,this.$animate=t,this.$element=i,this.$log=n,this.onRootMenuClosed=[],this.isOpenClassName="is-open",r.isUndefined(i.controller(o.directiveName))&&(e.isRootMenu=!0),e.$watch("isOpen",function(e){"boolean"!=typeof e&&void 0!==e&&s.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.contextualmenu - invalid attribute type: 'uif-is-open'.\nThe type '"+typeof e+"' is not supported as valid type for 'uif-is-open' attribute for <uif-contextual-menu />. The valid type is boolean."),t[e?"addClass":"removeClass"](i,s.isOpenClassName)}),this.onRootMenuClosed.push(function(){s.closeMenu(),s.deselectItems(!0)}),e.$on("uif-menu-close",function(){e.isRootMenu&&e.closeOnClick&&s.onRootMenuClosed.forEach(function(e){e()})})}return e.prototype.deselectItems=function(e){this.$scope.$broadcast("uif-menu-deselect"),e&&this.$scope.$emit("uif-menu-deselect")},e.prototype.closeSubMenus=function(e,t){this.$scope.$broadcast("uif-menu-close",e),t&&this.$scope.$emit("uif-menu-close")},e.prototype.openMenu=function(){this.$scope.isOpen=!0},e.prototype.closeMenu=function(){this.$scope.isOpen=!1},e.prototype.isRootMenu=function(){return this.$scope.isRootMenu},e.prototype.isMultiSelectionMenu=function(){return r.isUndefined(this.$scope.multiselect)?!1:"true"===this.$scope.multiselect.toLowerCase()},e.prototype.isMenuOpened=function(){return this.$element.hasClass("is-open")},e.$inject=["$scope","$animate","$element","$log"],e}();t.ContextualMenuController=c,t.module=r.module("officeuifabric.components.contextualmenu",["officeuifabric.components"]).directive(a.directiveName,a.factory()).directive(o.directiveName,o.factory())},function(e,t,i){"use strict";var n=i(2),r=function(){function e(e,t){this.$scope=t,this.isPickingYears=!1,this.isPickingMonths=!1,this.jElement=$(e[0]),t.ctrl=this}return e.prototype.range=function(e,t,i){i=i||1;for(var n=[],r=e;t>=r;r+=i)n.push(r);return n},e.prototype.getPicker=function(){return this.jElement.find(".ms-TextField-field").pickadate("picker")},e.prototype.setValue=function(e){this.getPicker().set("select",e),this.changeHighlightedDate(e.getFullYear(),e.getMonth(),e.getDate())},e.prototype.initDatepicker=function(e){var t=this;this.jElement.find(".ms-TextField-field").pickadate({clear:"",close:"",klass:{active:"ms-DatePicker-input--active",box:"ms-DatePicker-dayPicker",day:"ms-DatePicker-day",disabled:"ms-DatePicker-day--disabled",focused:"ms-DatePicker-picker--focused",frame:"ms-DatePicker-frame",header:"ms-DatePicker-header",holder:"ms-DatePicker-holder",infocus:"ms-DatePicker-day--infocus",input:"ms-DatePicker-input",month:"ms-DatePicker-month",now:"ms-DatePicker-day--today",opened:"ms-DatePicker-picker--opened",outfocus:"ms-DatePicker-day--outfocus",picker:"ms-DatePicker-picker",selected:"ms-DatePicker-day--selected",table:"ms-DatePicker-table",weekdays:"ms-DatePicker-weekday",wrap:"ms-DatePicker-wrap",year:"ms-DatePicker-year"},onStart:function(){t.initCustomView()},today:"",weekdaysShort:["S","M","T","W","T","F","S"]});var i=this.getPicker();i.on({open:function(){t.scrollUp()},set:function(t){var n=i.get("select","yyyy-mm-dd");e.$setViewValue(n)}})},e.prototype.initCustomView=function(){var e=this.jElement.find(".ms-DatePicker-monthComponents"),t=this.jElement.find(".ms-DatePicker-goToday"),i=this.jElement.find(".ms-DatePicker-monthPicker"),n=this.jElement.find(".ms-DatePicker-yearPicker"),r=this.jElement.find(".ms-DatePicker-wrap"),o=this.getPicker(),s=this;e.appendTo(r),t.appendTo(r),i.appendTo(r),n.appendTo(r),e.on("click",".js-prevMonth",function(e){e.preventDefault();var t=o.get("highlight").month-1;s.changeHighlightedDate(null,t,null),s.$scope.$apply()}),e.on("click",".js-nextMonth",function(e){e.preventDefault();var t=o.get("highlight").month+1;s.changeHighlightedDate(null,t,null),s.$scope.$apply()}),i.on("click",".js-prevYear",function(e){e.preventDefault();var t=o.get("highlight").year-1;s.changeHighlightedDate(t,null,null),s.$scope.$apply()}),i.on("click",".js-nextYear",function(e){e.preventDefault();var t=o.get("highlight").year+1;s.changeHighlightedDate(t,null,null),s.$scope.$apply()}),n.on("click",".js-prevDecade",function(e){e.preventDefault();var t=o.get("highlight").year-10;s.changeHighlightedDate(t,null,null),s.$scope.$apply()}),n.on("click",".js-nextDecade",function(e){e.preventDefault();var t=o.get("highlight").year+10;s.changeHighlightedDate(t,null,null),s.$scope.$apply()}),t.on("click",function(e){e.preventDefault();var t=new Date;o.set("select",t),s.jElement.removeClass("is-pickingMonths").removeClass("is-pickingYears"),s.$scope.$apply()}),i.on("click",".js-changeDate",function(e){e.preventDefault();var t=o.get("highlight"),i=t.year,n=+$(this).attr("data-month"),r=t.day;s.changeHighlightedDate(i,n,r),s.jElement.hasClass("is-pickingMonths")&&s.jElement.removeClass("is-pickingMonths"),s.$scope.$apply()}),n.on("click",".js-changeDate",function(e){e.preventDefault();var t=o.get("highlight"),i=+$(this).attr("data-year"),n=t.month,r=t.day;s.changeHighlightedDate(i,n,r),s.jElement.hasClass("is-pickingYears")&&s.jElement.removeClass("is-pickingYears"),s.$scope.$apply()}),e.on("click",".js-showMonthPicker",function(e){s.isPickingMonths=!s.isPickingMonths,s.$scope.$apply()}),i.on("click",".js-showYearPicker",function(e){s.isPickingYears=!s.isPickingYears,s.$scope.$apply()}),s.$scope.highlightedValue=o.get("highlight")},e.prototype.scrollUp=function(){$("html, body").animate({scrollTop:this.jElement.offset().top},367)},e.prototype.changeHighlightedDate=function(e,t,i){var n=this.getPicker();null==e&&(e=n.get("highlight").year),null==t&&(t=n.get("highlight").month),null==i&&(i=n.get("highlight").date),n.set("highlight",[e,t,i]),this.$scope.highlightedValue=n.get("highlight")},e.$inject=["$element","$scope"],e}();t.DatepickerController=r;var o=function(){function e(){this.template='<div ng-class="{\'ms-DatePicker\': true, \'is-pickingYears\': ctrl.isPickingYears, \'is-pickingMonths\': ctrl.isPickingMonths}"><div class="ms-TextField"><i class="ms-DatePicker-event ms-Icon ms-Icon--event"></i><input class="ms-TextField-field" type="text" placeholder="{{placeholder}}" ng-disabled="isDisabled"></div><div class="ms-DatePicker-monthComponents"><span class="ms-DatePicker-nextMonth js-nextMonth"><i class="ms-Icon ms-Icon--chevronRight"></i></span><span class="ms-DatePicker-prevMonth js-prevMonth"><i class="ms-Icon ms-Icon--chevronLeft"></i></span><div class="ms-DatePicker-headerToggleView js-showMonthPicker"></div></div><span class="ms-DatePicker-goToday js-goToday">Go to today</span><div class="ms-DatePicker-monthPicker"><div class="ms-DatePicker-header"><div class="ms-DatePicker-yearComponents"><span class="ms-DatePicker-nextYear js-nextYear"><i class="ms-Icon ms-Icon--chevronRight"></i></span><span class="ms-DatePicker-prevYear js-prevYear"><i class="ms-Icon ms-Icon--chevronLeft"></i></span></div><div class="ms-DatePicker-currentYear js-showYearPicker">{{highlightedValue.year}}</div></div><div class="ms-DatePicker-optionGrid" ><span ng-repeat="month in monthsArray"ng-class="{\'ms-DatePicker-monthOption js-changeDate\': true, \'is-highlighted\': highlightedValue.month == $index}"data-month="{{$index}}">{{month}}</span></div></div><div class="ms-DatePicker-yearPicker"><div class="ms-DatePicker-decadeComponents"><span class="ms-DatePicker-nextDecade js-nextDecade"><i class="ms-Icon ms-Icon--chevronRight"></i></span><span class="ms-DatePicker-prevDecade js-prevDecade"><i class="ms-Icon ms-Icon--chevronLeft"></i></span></div><div class="ms-DatePicker-currentDecade">{{highlightedValue.year - 10}} - {{highlightedValue.year}}</div><div class="ms-DatePicker-optionGrid"><span ng-class="{\'ms-DatePicker-yearOption js-changeDate\': true,\'is-highlighted\': highlightedValue.year == year}" ng-repeat="year in ctrl.range(highlightedValue.year - 10, highlightedValue.year)"data-year="{{year}}">{{year}}</span></div></div></div>',this.controller=r,this.restrict="E",this.replace=!0,this.scope={placeholder:"@",uifMonths:"@"},this.require=["uifDatepicker","?ngModel"]}return e.factory=function(){var t=function(){return new e};return t},e.prototype.compile=function(e,t,i){return{post:this.postLink,pre:this.preLink}},e.prototype.preLink=function(e,t,i,n){if(e.uifMonths||(e.uifMonths="Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec"),e.placeholder||(e.placeholder="Select a date"),e.monthsArray=e.uifMonths.split(","),12!==e.monthsArray.length)throw"Months setting should have 12 months, separated by a comma";i.$observe("disabled",function(t){e.isDisabled=!!t})},e.prototype.postLink=function(e,t,i,n){var r=n[0],o=n[1];r.initDatepicker(o),o.$render=function(){if(""!==o.$modelValue&&"undefined"!=typeof o.$modelValue)if("string"==typeof o.$modelValue){var e=new Date(o.$modelValue);r.setValue(e)}else r.setValue(o.$modelValue)}},e}();t.DatepickerDirective=o,t.module=n.module("officeuifabric.components.datepicker",["officeuifabric.components"]).directive("uifDatepicker",o.factory())},function(e,t,i){"use strict";var n=i(2),r=i(18),o=function(){function e(e){this.$log=e}return e.$inject=["$log"],e}();t.DialogController=o;var s=function(){function e(){this.restrict="E",this.controller=o,this.replace=!0,this.transclude=!0,this.template="<div class=\"ms-Dialog\"ng-class=\"{ 'ms-Dialog--close': uifClose=='true', 'ms-Dialog--lgHeader': uifType=='header', 'ms-Dialog--multiline': uifType=='multiline' }\"><uif-overlay uif-mode=\"{{uifOverlay}}\"></uif-overlay><div class=\"ms-Dialog-main\" ng-transclude></div></div>",this.scope={uifClose:"@",uifOverlay:"@",uifType:"@"}}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i,n){e.$watch("uifType",function(t,i){"undefined"!=typeof t&&void 0===r.DialogTypeEnum[t]&&n.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.dialog - Unsupported type:The type ('"+e.uifType+"') is not supported by the Office UI Fabric.Supported options are listed here: https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/dialog/dialogEnums.ts")})},e}();t.DialogDirective=s;var a=function(){function e(){this.restrict="E",this.replace=!0,this.transclude=!0,this.require="^^uifDialog",this.template='<div class="ms-Dialog-header"><button ng-if="$parent.uifClose" class="ms-Dialog-button ms-Dialog-button--close"><i class="ms-Icon ms-Icon--x"></i></button><ng-transclude></ng-transclude></div>'}return e.factory=function(){var t=function(){return new e};return t},e}();t.DialogHeaderDirective=a;var c=function(){function e(){this.restrict="E",this.replace=!0,this.transclude=!0,this.template='<div class="ms-Dialog-content" ng-transclude></div>'}return e.factory=function(){var t=function(){return new e};return t},e}();t.DialogContentDirective=c;var l=function(){function e(){this.restrict="E",this.replace=!0,this.transclude=!0,this.template='<div class="ms-Dialog-inner" ng-transclude></div>'}return e.factory=function(){var t=function(){return new e};return t},e}();t.DialogInnerDirective=l;var u=function(){function e(){this.restrict="E",this.replace=!0,this.transclude=!0,this.template='<p class="ms-Dialog-subText" ng-transclude></p>'}return e.factory=function(){var t=function(){return new e};return t},e}();t.DialogSubtextDirective=u;var d=function(){function e(e){this.$log=e}return e.$inject=["$log"],e}();t.DialogActionsController=d;var f=function(){function e(){this.restrict="E",this.replace=!0,this.transclude=!0,this.controller=d,this.template="<div class=\"ms-Dialog-actions\"><div ng-class=\"{ 'ms-Dialog-actionsRight': uifPosition=='right'}\"><ng-transclude></ng-transclude></div></div>",this.scope={uifPosition:"@"}}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i,n){e.$watch("uifPosition",function(t,i){"undefined"!=typeof t&&void 0===r.DialogActionsPositionEnum[t]&&n.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.dialog - Unsupported type:The type ('"+e.uifPosition+"') is not supported by the Office UI Fabric.Supported options are listed here: https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/dialog/dialogEnums.ts")})},e}();t.DialogActionsDirective=f,t.module=n.module("officeuifabric.components.dialog",["officeuifabric.components"]).directive("uifDialog",s.factory()).directive("uifDialogHeader",a.factory()).directive("uifDialogContent",c.factory()).directive("uifDialogInner",l.factory()).directive("uifDialogSubtext",u.factory()).directive("uifDialogActions",f.factory())},function(e,t){"use strict";!function(e){e[e.none=0]="none",e[e.header=1]="header",e[e.multiline=2]="multiline"}(t.DialogTypeEnum||(t.DialogTypeEnum={}));t.DialogTypeEnum;!function(e){e[e.none=0]="none",e[e.left=1]="left",e[e.right=2]="right"}(t.DialogActionsPositionEnum||(t.DialogActionsPositionEnum={}));t.DialogActionsPositionEnum},function(e,t,i){"use strict";var n=i(2),r=function(){function e(){this.template='<li class="ms-Dropdown-item" ng-transclude></li>',this.restrict="E",this.require="^uifDropdown",this.replace=!0,this.transclude=!0}return e.factory=function(){var t=function(){return new e};return t},e.prototype.compile=function(e,t,i){return{post:this.postLink}},e.prototype.postLink=function(e,t,i,n,r){if(!n)throw"Dropdown controller not found!";t.on("click",function(r){e.$apply(function(){n.setViewValue(t.find("span").html(),i.value,r)})});var o=""+n.getViewValue();o&&o===i.value&&n.setViewValue(i.title,i.value,null)},e}();t.DropdownOptionDirective=r;var o=function(){function e(e,t,i){this.$element=e,this.$scope=t,this.$document=i}return e.prototype.init=function(){var e=this;this.$element.on("click",function(t){if(!e.$scope.disabled){e.$scope.isOpen=!e.$scope.isOpen,e.$scope.$apply();var i=angular.element(this.querySelector(".ms-Dropdown"))[0].clientWidth;if(angular.element(this.querySelector(".ms-Dropdown-items"))[0].style.width=i+"px",t.stopPropagation(),e.$scope.isOpen){var n=function(){e.$scope.isOpen=!1,e.$scope.$apply(),e.$document.off("click",n)};e.$document.on("click",n),e.$scope.$on("$destroy",function(){e.$document.off("click",n)})}}}),"undefined"!=typeof this.$scope.ngModel&&null!=this.$scope.ngModel&&(this.$scope.ngModel.$render=function(){for(var t=!1,i=e.$element.find("li"),n=0;n<i.length;n++){var r=i[n],o=r.getAttribute("value");if(o===e.$scope.ngModel.$viewValue){e.$scope.selectedTitle=angular.element(r).find("span").html(),t=!0;break}}t||(e.$scope.selectedTitle="")})},e.prototype.setViewValue=function(e,t,i){this.$scope.selectedTitle=e,this.$scope.ngModel.$setViewValue(t,i)},e.prototype.getViewValue=function(){return"undefined"!=typeof this.$scope.ngModel&&null!=this.$scope.ngModel?this.$scope.ngModel.$viewValue:void 0},e.$inject=["$element","$scope","$document"],e}();t.DropdownController=o;var s=function(){function e(){this.template='<div ng-click="dropdownClick" ng-class="{\'ms-Dropdown\' : true, \'is-open\': isOpen, \'is-disabled\': disabled}" tabindex="0"><i class="ms-Dropdown-caretDown ms-Icon ms-Icon--caretDown"></i><span class="ms-Dropdown-title">{{selectedTitle}}</span><ul class="ms-Dropdown-items"><ng-transclude></ng-transclude></ul></div>',this.restrict="E",this.transclude=!0,this.require=["uifDropdown","?ngModel"],this.scope={},this.controller=o}return e.factory=function(){var t=function(){return new e};return t},e.prototype.compile=function(e,t,i){return{pre:this.preLink}},e.prototype.preLink=function(e,t,i,n){var r=n[0],o=n[1];e.ngModel=o,r.init(),e.$watch(function(){return t.attr("disabled")},function(t){e.disabled="undefined"!=typeof t}),e.disabled="disabled"in i},e}();t.DropdownDirective=s,t.module=n.module("officeuifabric.components.dropdown",["officeuifabric.components"]).directive("uifDropdownOption",r.factory()).directive("uifDropdown",s.factory())},function(e,t,i){"use strict";var n=i(2),r=i(21),o=function(){function e(e){this.$log=e}return e.$inject=["$log"],e}(),s=function(){function e(){this.restrict="E",this.template='<i class="ms-Icon ms-Icon--{{uifType}}" aria-hidden="true"></i>',this.scope={uifType:"@"},this.transclude=!0,this.controller=o,this.controllerAs="icon"}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i,n){e.$watch("uifType",function(t,i){void 0===r.IconEnum[t]&&n.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.icon - Unsupported icon: The icon ('"+e.uifType+"') is not supported by the Office UI Fabric. Supported options are listed here: https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/icon/iconEnum.ts")})},e}();t.IconDirective=s,t.module=n.module("officeuifabric.components.icon",["officeuifabric.components"]).directive("uifIcon",s.factory())},function(e,t){"use strict";!function(e){e[e.alert=0]="alert",e[e.alert2=1]="alert2",e[e.alertOutline=2]="alertOutline",e[e.arrowDown=3]="arrowDown",e[e.arrowDown2=4]="arrowDown2",e[e.arrowDownLeft=5]="arrowDownLeft",e[e.arrowDownRight=6]="arrowDownRight",e[e.arrowLeft=7]="arrowLeft",e[e.arrowRight=8]="arrowRight",e[e.arrowUp=9]="arrowUp",e[e.arrowUp2=10]="arrowUp2",e[e.arrowUpLeft=11]="arrowUpLeft",e[e.arrowUpRight=12]="arrowUpRight",e[e.ascending=13]="ascending",e[e.at=14]="at",e[e.attachment=15]="attachment",e[e.bag=16]="bag",e[e.balloon=17]="balloon",e[e.bell=18]="bell",e[e.boards=19]="boards",e[e.bold=20]="bold",e[e.bookmark=21]="bookmark",e[e.books=22]="books",e[e.briefcase=23]="briefcase",e[e.bundle=24]="bundle",e[e.cake=25]="cake",e[e.calendar=26]="calendar",e[e.calendarDay=27]="calendarDay",e[e.calendarPublic=28]="calendarPublic",e[e.calendarWeek=29]="calendarWeek",e[e.calendarWorkWeek=30]="calendarWorkWeek",e[e.camera=31]="camera",e[e.car=32]="car",e[e.caretDown=33]="caretDown",e[e.caretDownLeft=34]="caretDownLeft",e[e.caretDownOutline=35]="caretDownOutline",e[e.caretDownRight=36]="caretDownRight",e[e.caretLeft=37]="caretLeft",e[e.caretLeftOutline=38]="caretLeftOutline",e[e.caretRight=39]="caretRight",e[e.caretRightOutline=40]="caretRightOutline",e[e.caretUp=41]="caretUp",e[e.caretUpLeft=42]="caretUpLeft",e[e.caretUpOutline=43]="caretUpOutline",e[e.caretUpRight=44]="caretUpRight",e[e.cart=45]="cart",e[e.cat=46]="cat",e[e.chart=47]="chart",e[e.chat=48]="chat",e[e.chatAdd=49]="chatAdd",e[e.check=50]="check",e[e.checkbox=51]="checkbox",e[e.checkboxCheck=52]="checkboxCheck",e[e.checkboxEmpty=53]="checkboxEmpty",e[e.checkboxMixed=54]="checkboxMixed",e[e.checkPeople=55]="checkPeople",e[e.chevronDown=56]="chevronDown",e[e.chevronLeft=57]="chevronLeft",e[e.chevronRight=58]="chevronRight",e[e.chevronsDown=59]="chevronsDown",e[e.chevronsLeft=60]="chevronsLeft",e[e.chevronsRight=61]="chevronsRight",e[e.chevronsUp=62]="chevronsUp",e[e.chevronThickDown=63]="chevronThickDown",e[e.chevronThickLeft=64]="chevronThickLeft",e[e.chevronThickRight=65]="chevronThickRight",e[e.chevronThickUp=66]="chevronThickUp",e[e.chevronThinDown=67]="chevronThinDown",e[e.chevronThinLeft=68]="chevronThinLeft",e[e.chevronThinRight=69]="chevronThinRight",e[e.chevronThinUp=70]="chevronThinUp",e[e.chevronUp=71]="chevronUp",e[e.circleBall=72]="circleBall",e[e.circleBalloons=73]="circleBalloons",e[e.circleCar=74]="circleCar",e[e.circleCat=75]="circleCat",e[e.circleCoffee=76]="circleCoffee",e[e.circleDog=77]="circleDog",e[e.circleEmpty=78]="circleEmpty",e[e.circleFill=79]="circleFill",e[e.circleFilled=80]="circleFilled",e[e.circleHalfFilled=81]="circleHalfFilled",e[e.circleInfo=82]="circleInfo",e[e.circleLightning=83]="circleLightning",e[e.circlePill=84]="circlePill",e[e.circlePlane=85]="circlePlane",e[e.circlePlus=86]="circlePlus",e[e.circlePoodle=87]="circlePoodle",e[e.circleUnfilled=88]="circleUnfilled",e[e.classNotebook=89]="classNotebook",e[e.classroom=90]="classroom",e[e.clock=91]="clock",e[e.clutter=92]="clutter",e[e.coffee=93]="coffee",e[e.collapse=94]="collapse",e[e.conflict=95]="conflict",e[e.contact=96]="contact",e[e.contactForm=97]="contactForm",e[e.contactPublic=98]="contactPublic",e[e.copy=99]="copy",e[e.creditCard=100]="creditCard",e[e.creditCardOutline=101]="creditCardOutline",e[e.dashboard=102]="dashboard",e[e.descending=103]="descending",e[e.desktop=104]="desktop",e[e.deviceWipe=105]="deviceWipe",e[e.dialpad=106]="dialpad",e[e.directions=107]="directions",e[e.document=108]="document",e[e.documentAdd=109]="documentAdd",e[e.documentForward=110]="documentForward",e[e.documentLandscape=111]="documentLandscape",e[e.documentPDF=112]="documentPDF",e[e.documentReply=113]="documentReply",e[e.documents=114]="documents",e[e.documentSearch=115]="documentSearch",e[e.dog=116]="dog",e[e.dogAlt=117]="dogAlt",e[e.dot=118]="dot",e[e.download=119]="download",e[e.drm=120]="drm",e[e.drop=121]="drop",e[e.dropdown=122]="dropdown",e[e.editBox=123]="editBox",e[e.ellipsis=124]="ellipsis",e[e.embed=125]="embed",e[e.event=126]="event",e[e.eventCancel=127]="eventCancel",e[e.eventInfo=128]="eventInfo",e[e.eventRecurring=129]="eventRecurring",e[e.eventShare=130]="eventShare",e[e.exclamation=131]="exclamation",e[e.expand=132]="expand",e[e.eye=133]="eye",e[e.favorites=134]="favorites",e[e.fax=135]="fax",e[e.fieldMail=136]="fieldMail",e[e.fieldNumber=137]="fieldNumber",e[e.fieldText=138]="fieldText",e[e.fieldTextBox=139]="fieldTextBox",e[e.fileDocument=140]="fileDocument",e[e.fileImage=141]="fileImage",e[e.filePDF=142]="filePDF",e[e.filter=143]="filter",e[e.filterClear=144]="filterClear",e[e.firstAid=145]="firstAid",e[e.flag=146]="flag",e[e.folder=147]="folder",e[e.folderMove=148]="folderMove",e[e.folderPublic=149]="folderPublic",e[e.folderSearch=150]="folderSearch",e[e.fontColor=151]="fontColor",e[e.fontDecrease=152]="fontDecrease",e[e.fontIncrease=153]="fontIncrease",e[e.frowny=154]="frowny",e[e.fullscreen=155]="fullscreen",e[e.gear=156]="gear",e[e.glasses=157]="glasses",e[e.globe=158]="globe",e[e.graph=159]="graph",e[e.group=160]="group",e[e.header=161]="header",e[e.heart=162]="heart",e[e.heartEmpty=163]="heartEmpty",e[e.hide=164]="hide",e[e.home=165]="home",e[e.inboxCheck=166]="inboxCheck",e[e.info=167]="info",e[e.infoCircle=168]="infoCircle",e[e.italic=169]="italic",e[e.key=170]="key",e[e.late=171]="late",e[e.lifesaver=172]="lifesaver",e[e.lifesaverLock=173]="lifesaverLock",e[e.lightBulb=174]="lightBulb",e[e.lightning=175]="lightning",e[e.link=176]="link",e[e.linkRemove=177]="linkRemove",e[e.listBullets=178]="listBullets",e[e.listCheck=179]="listCheck",e[e.listCheckbox=180]="listCheckbox",e[e.listGroup=181]="listGroup",e[e.listGroup2=182]="listGroup2",e[e.listNumbered=183]="listNumbered",e[e.lock=184]="lock",e[e.mail=185]="mail",e[e.mailCheck=186]="mailCheck",e[e.mailDown=187]="mailDown",e[e.mailEdit=188]="mailEdit",e[e.mailEmpty=189]="mailEmpty",e[e.mailError=190]="mailError",e[e.mailOpen=191]="mailOpen",e[e.mailPause=192]="mailPause",e[e.mailPublic=193]="mailPublic",e[e.mailRead=194]="mailRead",e[e.mailSend=195]="mailSend",e[e.mailSync=196]="mailSync",e[e.mailUnread=197]="mailUnread",e[e.mapMarker=198]="mapMarker",e[e.meal=199]="meal",e[e.menu=200]="menu",e[e.menu2=201]="menu2",e[e.merge=202]="merge",e[e.metadata=203]="metadata",e[e.microphone=204]="microphone",e[e.miniatures=205]="miniatures",e[e.minus=206]="minus",e[e.mobile=207]="mobile",e[e.money=208]="money",e[e.move=209]="move",e[e.multiChoice=210]="multiChoice",e[e.music=211]="music",e[e.navigate=212]="navigate",e[e["new"]=213]="new",e[e.newsfeed=214]="newsfeed",e[e.note=215]="note",e[e.notebook=216]="notebook",e[e.noteEdit=217]="noteEdit",e[e.noteForward=218]="noteForward",e[e.noteReply=219]="noteReply",e[e.notRecurring=220]="notRecurring",e[e.onedrive=221]="onedrive",e[e.onlineAdd=222]="onlineAdd",e[e.onlineJoin=223]="onlineJoin",e[e.oofReply=224]="oofReply",e[e.org=225]="org",e[e.page=226]="page",e[e.paint=227]="paint",e[e.panel=228]="panel",e[e.partner=229]="partner",e[e.pause=230]="pause",e[e.pencil=231]="pencil",e[e.people=232]="people",e[e.peopleAdd=233]="peopleAdd",e[e.peopleCheck=234]="peopleCheck",e[e.peopleError=235]="peopleError",e[e.peoplePause=236]="peoplePause",e[e.peopleRemove=237]="peopleRemove",e[e.peopleSecurity=238]="peopleSecurity",e[e.peopleSync=239]="peopleSync",e[e.person=240]="person",e[e.personAdd=241]="personAdd",e[e.personRemove=242]="personRemove",e[e.phone=243]="phone",e[e.phoneAdd=244]="phoneAdd",e[e.phoneTransfer=245]="phoneTransfer",e[e.picture=246]="picture",e[e.pictureAdd=247]="pictureAdd",e[e.pictureEdit=248]="pictureEdit",e[e.pictureRemove=249]="pictureRemove",e[e.pill=250]="pill",e[e.pinDown=251]="pinDown",e[e.pinLeft=252]="pinLeft",e[e.placeholder=253]="placeholder",e[e.plane=254]="plane",e[e.play=255]="play",e[e.plus=256]="plus",e[e.plus2=257]="plus2",e[e.pointItem=258]="pointItem",e[e.popout=259]="popout",e[e.post=260]="post",e[e.print=261]="print",e[e.protectionCenter=262]="protectionCenter",e[e.question=263]="question",e[e.questionReverse=264]="questionReverse",e[e.quote=265]="quote",e[e.radioButton=266]="radioButton",e[e.reactivate=267]="reactivate",e[e.receiptCheck=268]="receiptCheck",e[e.receiptForward=269]="receiptForward",e[e.receiptReply=270]="receiptReply",e[e.refresh=271]="refresh",e[e.reload=272]="reload",e[e.reply=273]="reply",e[e.replyAll=274]="replyAll",e[e.replyAllAlt=275]="replyAllAlt",e[e.replyAlt=276]="replyAlt",e[e.ribbon=277]="ribbon",e[e.room=278]="room",e[e.save=279]="save",e[e.scheduling=280]="scheduling",e[e.search=281]="search",e[e.section=282]="section",e[e.sections=283]="sections",e[e.settings=284]="settings",e[e.share=285]="share",e[e.shield=286]="shield",e[e.sites=287]="sites",e[e.smiley=288]="smiley",e[e.soccer=289]="soccer",e[e.socialListening=290]="socialListening",e[e.sort=291]="sort",e[e.sortLines=292]="sortLines",e[e.split=293]="split",e[e.star=294]="star",e[e.starEmpty=295]="starEmpty",e[e.stopwatch=296]="stopwatch",e[e.story=297]="story",e[e.styleRemove=298]="styleRemove",e[e.subscribe=299]="subscribe",e[e.sun=300]="sun",e[e.sunAdd=301]="sunAdd",e[e.sunQuestion=302]="sunQuestion",e[e.support=303]="support",e[e.table=304]="table",e[e.tablet=305]="tablet",e[e.tag=306]="tag",e[e.taskRecurring=307]="taskRecurring",e[e.tasks=308]="tasks",e[e.teamwork=309]="teamwork",e[e.text=310]="text",e[e.textBox=311]="textBox",e[e.tile=312]="tile",e[e.timeline=313]="timeline",e[e.today=314]="today",e[e.toggle=315]="toggle",e[e.toggleMiddle=316]="toggleMiddle",e[e.touch=317]="touch",e[e.trash=318]="trash",e[e.triangleDown=319]="triangleDown",e[e.triangleEmptyDown=320]="triangleEmptyDown",e[e.triangleEmptyLeft=321]="triangleEmptyLeft",e[e.triangleEmptyRight=322]="triangleEmptyRight",e[e.triangleEmptyUp=323]="triangleEmptyUp",e[e.triangleLeft=324]="triangleLeft",e[e.triangleRight=325]="triangleRight",e[e.triangleUp=326]="triangleUp",e[e.trophy=327]="trophy",e[e.underline=328]="underline",e[e.unsubscribe=329]="unsubscribe",e[e.upload=330]="upload",e[e.video=331]="video",e[e.voicemail=332]="voicemail",e[e.voicemailForward=333]="voicemailForward",e[e.voicemailReply=334]="voicemailReply",e[e.waffle=335]="waffle",e[e.work=336]="work",e[e.wrench=337]="wrench",e[e.x=338]="x",e[e.xCircle=339]="xCircle"}(t.IconEnum||(t.IconEnum={}));t.IconEnum},function(e,t,i){"use strict";var n=i(2),r=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!1,this.scope=!1,this.template='<label class="ms-Label"><ng-transclude/></label>'}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i){n.isDefined(i.disabled)&&t.find("label").eq(0).addClass("is-disabled"),n.isDefined(i.required)&&t.find("label").eq(0).addClass("is-required")},e}();t.LabelDirective=r,t.module=n.module("officeuifabric.components.label",["officeuifabric.components"]).directive("uifLabel",r.factory())},function(e,t,i){"use strict";var n=i(2),r=function(){function e(){this.restrict="E",this.template='<a ng-href="{{ ngHref }}" class="ms-Link" ng-transclude></a>',this.scope={ngHref:"@"},this.transclude=!0,this.replace=!0}return e.factory=function(){var t=function(){return new e};return t},e}();t.LinkDirective=r,t.module=n.module("officeuifabric.components.link",["officeuifabric.components"]).directive("uifLink",r.factory())},function(e,t,i){"use strict";var n=i(2),r=i(25),o=i(26),s=i(27),a=function(){function e(e,t){this.$scope=e,this.$log=t,this.$scope.items=[],this.$scope.selectedItems||(this.$scope.selectedItems=[])}return Object.defineProperty(e.prototype,"itemSelectMode",{get:function(){return this.$scope.itemSelectMode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedItems",{get:function(){return this.$scope.selectedItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this.$scope.items},enumerable:!0,configurable:!0}),e.$inject=["$scope","$log"],e}(),c=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!1,this.template='<ul class="ms-List" ng-transclude></ul>',this.controller=a,this.controllerAs="list",this.scope={selectedItems:"=?uifSelectedItems"}}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i,n){void 0!==i.uifLayout&&null!==i.uifLayout&&(void 0===s.ListLayoutEnum[i.uifLayout]?n.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.list. '"+i.uifLayout+"' is not a valid option for 'uif-layout'. Valid options are list|grid."):e.layout=i.uifLayout),void 0===e.layout&&(e.layout=s.ListLayoutEnum[s.ListLayoutEnum.list]),e.layout===s.ListLayoutEnum[s.ListLayoutEnum.grid]&&t.children().eq(0).addClass("ms-List--grid"),void 0!==i.uifItemSelectMode&&null!==i.uifItemSelectMode&&(void 0===r.ListItemSelectModeEnum[i.uifItemSelectMode]?n.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.list. '"+i.uifItemSelectMode+"' is not a valid option for 'uif-item-select-mode'. Valid options are none|single|multiple."):e.itemSelectMode=i.uifItemSelectMode),void 0===e.itemSelectMode&&(e.itemSelectMode=r.ListItemSelectModeEnum[r.ListItemSelectModeEnum.none])},e}();t.ListDirective=c;var l=function(){function e(e,t){this.$scope=e,this.$log=t}return e.$inject=["$scope","$log"],e}(),u=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!1,this.template='<li class="ms-ListItem" ng-transclude></li>',this.require="^uifList",this.scope={item:"=uifItem"},this.controller=l}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i,n){if(void 0!==i.uifSelected&&null!==i.uifSelected){var s=i.uifSelected.toLowerCase();"true"!==s&&"false"!==s?n.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.list. '"+i.uifSelected+"' is not a valid boolean value. Valid options are true|false."):"true"===s&&(e.selected=!0)}if(e.item&&n.selectedItems.length>0)for(var a=0;a<n.selectedItems.length;a++)n.selectedItems[a]===e.item&&(e.selected=!0);switch(void 0!==i.uifType&&null!==i.uifType&&(void 0===o.ListItemTypeEnum[i.uifType]?n.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.list. '"+i.uifType+"' is not a valid option for 'uif-type'. Valid options are item|itemWithImage|itemWithIcon."):e.type=o.ListItemTypeEnum[i.uifType]),
e.type){case o.ListItemTypeEnum.itemWithIcon:t.children().eq(0).addClass("ms-ListItem--document"),0===t.children().find("uif-list-item-icon").length&&n.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.list. List item type itemWithIcon requires the uif-list-item-icon directive");break;case o.ListItemTypeEnum.itemWithImage:t.children().eq(0).addClass("ms-ListItem--image"),0===t.children().find("uif-list-item-image").length&&n.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.list. List item type itemWithImage requires the uif-list-item-image directive")}if(void 0!==i.uifUnread&&null!==i.uifUnread){var c=i.uifUnread.toLowerCase();"true"!==c&&"false"!==c?n.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.list. '"+i.uifUnread+"' is not a valid boolean value. Valid options are true|false."):"true"===c&&(e.unread=!0)}if(void 0!==i.uifUnseen&&null!==i.uifUnseen){var l=i.uifUnseen.toLowerCase();"true"!==l&&"false"!==l?n.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.list. '"+i.uifUnseen+"' is not a valid boolean value. Valid options are true|false."):"true"===l&&(e.unseen=!0)}void 0!==e.item&&n.items.push(e),e.itemClick=function(t){e.selected=!e.selected,e.$apply()},e.$watch("selected",function(e,i,o){if(e===!0){if(n.itemSelectMode===r.ListItemSelectModeEnum[r.ListItemSelectModeEnum.single]&&(n.selectedItems.length=0,n.items))for(var s=0;s<n.items.length;s++)n.items[s]!==o&&(n.items[s].selected=!1);for(var a=!1,s=0;s<n.selectedItems.length;s++)if(n.selectedItems[s]===o.item){a=!0;break}a||n.selectedItems.push(o.item),t.children().eq(0).addClass("is-selected")}else{for(var s=0;s<n.selectedItems.length;s++)if(n.selectedItems[s]===o.item){n.selectedItems.splice(s,1);break}t.children().eq(0).removeClass("is-selected")}}),e.$watch("unread",function(e,i,n){e===!0?t.children().eq(0).addClass("is-unread"):t.children().eq(0).removeClass("is-unread")}),e.$watch("unseen",function(e,i,n){e===!0?t.children().eq(0).addClass("is-unseen"):t.children().eq(0).removeClass("is-unseen")}),n.itemSelectMode!==r.ListItemSelectModeEnum[r.ListItemSelectModeEnum.none]&&(t.on("click",e.itemClick),t.children().eq(0).addClass("is-selectable"))},e}();t.ListItemDirective=u;var d=function(){function e(){this.restrict="E",this.transclude=!0,this.template='<span class="ms-ListItem-primaryText" ng-transclude></span>',this.replace=!1}return e.factory=function(){var t=function(){return new e};return t},e}();t.ListItemPrimaryTextDirective=d;var f=function(){function e(){this.restrict="E",this.transclude=!0,this.template='<span class="ms-ListItem-secondaryText" ng-transclude></span>',this.replace=!1}return e.factory=function(){var t=function(){return new e};return t},e}();t.ListItemSecondaryTextDirective=f;var p=function(){function e(){this.restrict="E",this.transclude=!0,this.template='<span class="ms-ListItem-tertiaryText" ng-transclude></span>',this.replace=!1}return e.factory=function(){var t=function(){return new e};return t},e}();t.ListItemTertiaryTextDirective=p;var m=function(){function e(){this.restrict="E",this.transclude=!0,this.template='<span class="ms-ListItem-metaText" ng-transclude></span>',this.replace=!1}return e.factory=function(){var t=function(){return new e};return t},e}();t.ListItemMetaTextDirective=m;var h=function(){function e(){this.restrict="E",this.transclude=!0,this.template='<div class="ms-ListItem-image" ng-transclude></div>',this.replace=!1}return e.factory=function(){var t=function(){return new e};return t},e}();t.ListItemImageDirective=h;var v=function(){function e(){this.restrict="E",this.transclude=!0,this.template='<div class="ms-ListItem-itemIcon" ng-transclude></div>',this.replace=!1}return e.factory=function(){var t=function(){return new e};return t},e}();t.ListItemIconDirective=v;var g=function(){function e(){this.restrict="E",this.transclude=!0,this.template='<div class="ms-ListItem-selectionTarget" ng-transclude></div>',this.replace=!1}return e.factory=function(){var t=function(){return new e};return t},e}();t.ListItemSelectionTargetDirective=g;var y=function(){function e(){this.restrict="E",this.transclude=!0,this.template='<div class="ms-ListItem-actions" ng-transclude></div>',this.replace=!1}return e.factory=function(){var t=function(){return new e};return t},e}();t.ListItemActionsDirective=y;var b=function(){function e(){this.restrict="E",this.transclude=!0,this.template='<div class="ms-ListItem-action" ng-transclude></div>',this.replace=!1}return e.factory=function(){var t=function(){return new e};return t},e}();t.ListItemActionDirective=b,t.module=n.module("officeuifabric.components.list",["officeuifabric.components"]).directive("uifList",c.factory()).directive("uifListItem",u.factory()).directive("uifListItemPrimaryText",d.factory()).directive("uifListItemSecondaryText",f.factory()).directive("uifListItemTertiaryText",p.factory()).directive("uifListItemMetaText",m.factory()).directive("uifListItemImage",h.factory()).directive("uifListItemIcon",v.factory()).directive("uifListItemSelectionTarget",g.factory()).directive("uifListItemActions",y.factory()).directive("uifListItemAction",b.factory())},function(e,t){"use strict";!function(e){e[e.none=0]="none",e[e.single=1]="single",e[e.multiple=2]="multiple"}(t.ListItemSelectModeEnum||(t.ListItemSelectModeEnum={}));t.ListItemSelectModeEnum},function(e,t){"use strict";!function(e){e[e.item=0]="item",e[e.itemWithImage=1]="itemWithImage",e[e.itemWithIcon=2]="itemWithIcon"}(t.ListItemTypeEnum||(t.ListItemTypeEnum={}));t.ListItemTypeEnum},function(e,t){"use strict";!function(e){e[e.list=0]="list",e[e.grid=1]="grid"}(t.ListLayoutEnum||(t.ListLayoutEnum={}));t.ListLayoutEnum},function(e,t,i){"use strict";var n=i(2),r=function(){function e(e,t,i){this.$scope=e,this.$log=t,this.$window=i}return e.$inject=["$scope","$log","$window"],e}();t.MessageBannerController=r;var o=function(){function e(e,t){var i=this;this.$log=e,this.$timeout=t,this.controller=r,this.restrict="E",this.transclude=!0,this.replace=!1,this.require="uifMessageBanner",this.isExpanded=!1,this.template='<div class="ms-MessageBanner" ng-show="uifIsVisible"><div class="ms-MessageBanner-content"><div class="ms-MessageBanner-text"><div class="ms-MessageBanner-clipper"></div></div><uif-button uif-type="command" class="ms-MessageBanner-expand" ng-show="!isExpanded" style="height:52px"><uif-icon uif-type="chevronsDown"></uif-icon></uif-button><uif-button uif-type="command" class="ms-MessageBanner-expand" ng-show="isExpanded" style="height:52px"><uif-icon uif-type="chevronsUp"></uif-icon></uif-button><div class="ms-MessageBanner-action"><uif-button uif-type="primary" class="ms-fontColor-neutralLight" ng-click="uifAction()">{{ uifActionLabel }}</uif-button></div></div><uif-button uif-type="command" class="ms-MessageBanner-close" ng-click="uifOnClose()" style="height:52px"><uif-icon uif-type="x"></uif-icon></uif-button></div>',this.scope={uifAction:"&",uifActionLabel:"@",uifIsVisible:"=?",uifOnClose:"&?"},this._textContainerMaxWidth=700,this._bufferElementsWidth=88,this._bufferElementsWidthSmall=35,this.SMALL_BREAK_POINT=480,this.link=function(e,t,r,o,s){e.uifActionLabel=r.uifActionLabel,e.isExpanded=!1,i._initLocals(t),i.transcludeChilds(e,t,s),n.element(o.$window).bind("resize",function(){i._onResize(),e.$digest()}),n.element(i._chevronButton).bind("click",function(){i._toggleExpansion(e)}),n.element(i._closeButton).bind("click",function(){i._hideBanner(e)}),i._onResize()}}return e.factory=function(){var t=function(t,i){return new e(t,i)};return t.$inject=["$log","$timeout"],t},e.prototype.transcludeChilds=function(e,t,i){var n=this;i(function(i){var r=n.hasItemContent(i);r||n.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.messagebanner - you need to provide a text for the message banner.\nFor <uif-message-banner> you need to specify<uif-content> as a child directive"),n.insertItemContent(i,e,t)})},e.prototype.insertItemContent=function(e,t,i){var n=angular.element(i[0].querySelector(".ms-MessageBanner-clipper"));if(this.hasItemContent(e))for(var r=0;r<e.length;r++){var o=angular.element(e[r]);if(o.hasClass("uif-content")){n.append(o);break}}},e.prototype.hasItemContent=function(e){for(var t=0;t<e.length;t++){var i=angular.element(e[t]);if(i.hasClass("uif-content"))return!0}return!1},e.prototype._initLocals=function(e){this._messageBanner=n.element(e[0].querySelector(".ms-MessageBanner")),this._clipper=n.element(e[0].querySelector(".ms-MessageBanner-clipper")),this._chevronButton=n.element(e[0].querySelectorAll(".ms-MessageBanner-expand")),this._actionButton=n.element(e[0].querySelector(".ms-MessageBanner-action")),this._bufferSize=this._actionButton[0].offsetWidth+this._bufferElementsWidth,this._closeButton=n.element(e[0].querySelector(".ms-MessageBanner-close"))},e.prototype._onResize=function(){this._clientWidth=this._messageBanner[0].offsetWidth,window.innerWidth>=this.SMALL_BREAK_POINT?this._resizeRegular():this._resizeSmall()},e.prototype._resizeRegular=function(){if(this._clientWidth-this._bufferSize>this._initTextWidth&&this._initTextWidth<this._textContainerMaxWidth)this._textWidth="auto",this._chevronButton.addClass("ms-MessageBanner-expand");else{this._textWidth=Math.min(this._clientWidth-this._bufferSize,this._textContainerMaxWidth)+"px";for(var e=0;e<this._chevronButton.length;e++){var t=n.element(this._chevronButton[e]);t.hasClass("is-visible")||t.hasClass("ng-hide")?t.removeClass("is-visible"):t.addClass("is-visible")}}this._clipper[0].style.width=this._textWidth},e.prototype._resizeSmall=function(){this._clientWidth-(this._bufferElementsWidthSmall+this._closeButton[0].offsetWidth)>this._initTextWidth?this._textWidth="auto":this._textWidth=this._clientWidth-(this._bufferElementsWidthSmall+this._closeButton[0].offsetWidth)+"px",this._clipper[0].style.width=this._textWidth},e.prototype._toggleExpansion=function(e){e.isExpanded=!e.isExpanded,e.$digest(),this._messageBanner.toggleClass("is-expanded")},e.prototype._hideBanner=function(e){var t=this;e.uifIsVisible&&(this._messageBanner.addClass("hide"),this.$timeout(function(){e.uifIsVisible=!1,e.$apply(),t._messageBanner.removeClass("hide")},500))},e}();t.MessageBannerDirective=o,t.module=n.module("officeuifabric.components.messagebanner",["officeuifabric.components"]).directive("uifMessageBanner",o.factory())},function(e,t,i){"use strict";var n=i(2),r=i(30),o=function(){function e(e,t){this.$scope=e,this.$log=t}return e.$inject=["$scope","$log"],e}();t.MessageBarController=o;var s=function(){function e(e,t){var i=this;this.$log=e,this.$timeout=t,this.controller=o,this.restrict="E",this.transclude=!0,this.replace=!1,this.require="uifMessageBar",this.template='<div ng-class="[\'ms-MessageBar\', classType]"><div class="ms-MessageBar-content"><div class="ms-MessageBar-icon"><i ng-class="[\'ms-Icon\', iconType]"></i></div><div class="ms-MessageBar-text" /></div></div>',this.scope={uifType:"&"},this.link=function(e,t,n,o,s){e.iconType="ms-Icon--infoCircle",e.classType="",e.uifType=n.uifType,e.$watch("uifType",function(t,i){if("undefined"!=typeof t)if(void 0===r.MessageBarTypeEnum[t])o.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.messagebar - Unsupported type: The type ('"+e.uifType+"') is not supported by the Office UI Fabric. Supported options are listed here: https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/messagebar/messageBarTypeEnum.ts");else{var n=" ms-MessageBar--";switch(e.classType=n+t,r.MessageBarTypeEnum[t]){case r.MessageBarTypeEnum.error:e.iconType="ms-Icon--xCircle";break;case r.MessageBarTypeEnum.remove:e.iconType="ms-Icon--minus ms-Icon--circle";break;case r.MessageBarTypeEnum.severewarning:e.iconType="ms-Icon--alert";break;case r.MessageBarTypeEnum.success:e.iconType="ms-Icon--checkboxCheck ms-Icon--circle"}}}),i.transcludeChilds(e,t,s)}}return e.factory=function(){var t=function(t,i){return new e(t,i)};return t.$inject=["$log","$timeout"],t},e.prototype.transcludeChilds=function(e,t,i){var n=this;i(function(i){var r=n.hasItemContent(i,"uif-content");r||n.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.MessageBar - you need to provide a text for the message bar.\nFor <uif-message-bar> you need to specify<uif-content> as a child directive"),n.insertItemContent(i,e,t)})},e.prototype.insertItemContent=function(e,t,i){var n=angular.element(i[0].querySelector(".ms-MessageBar-text"));if(this.hasItemContent(e,"uif-content"))for(var r=0;r<e.length;r++){var o=angular.element(e[r]);if(o.hasClass("uif-content")){n.append(o);break}}if(this.hasItemContent(e,"ms-Link"))for(var r=0;r<e.length;r++){var o=angular.element(e[r]);if(o.hasClass("ms-Link")){n.append(angular.element("<br />")),n.append(o);break}}},e.prototype.hasItemContent=function(e,t){for(var i=0;i<e.length;i++){var n=angular.element(e[i]);if(n.hasClass(t))return!0}return!1},e}();t.MessageBarDirective=s,t.module=n.module("officeuifabric.components.messagebar",["officeuifabric.components"]).directive("uifMessageBar",s.factory())},function(e,t){"use strict";!function(e){e[e.error=0]="error",e[e.remove=1]="remove",e[e.severewarning=2]="severewarning",e[e.success=3]="success",e[e.warning=4]="warning"}(t.MessageBarTypeEnum||(t.MessageBarTypeEnum={}));t.MessageBarTypeEnum},function(e,t,i){"use strict";var n=i(2),r=i(15),o=function(){function e(e,t,i,n){this.$scope=e,this.$animate=t,this.$element=i,this.$log=n}return e.prototype.openMobileMenu=function(){var e=this.$element.hasClass("is-open");this.$animate[e?"removeClass":"addClass"](this.$element,"is-open")},e.prototype.closeMobileMenu=function(){this.$element.hasClass("is-open")&&this.$animate.removeClass(this.$element,"is-open")},e.prototype.closeAllContextMenus=function(){for(var e=this.$element[0].querySelectorAll(".ms-NavBar-item"),t=0;t<e.length;t++){var i=angular.element(e[t]),n=i.controller(l.directiveName);n&&(n.closeContextualMenu(),n.deselectItem())}},e.prototype.hideSearchTextBox=function(){for(var e=this.$element[0].querySelectorAll(".ms-NavBar-item--search"),t=0;t<e.length;t++){var i=angular.element(e[t]),n=i.controller(d.directiveName);n&&n.closeSearch()}},e.$inject=["$scope","$animate","$element","$log"],e}();t.NavBarController=o;var s=function(){function e(e,t,i){var n=this;this.$log=e,this.$animate=t,this.$document=i,this.replace=!0,this.restrict="E",this.transclude=!0,this.controller=o,this.controllerAs="nav",this.template='\n <div class="ms-NavBar">\n <div class="ms-NavBar-openMenu js-openMenu" ng-click="nav.openMobileMenu()">\n <uif-icon uif-type="menu"></uif-icon>\n </div>\n <uif-overlay uif-mode="{{overlay}}" ng-click="nav.closeMobileMenu()"></uif-overlay>\n <ul class="ms-NavBar-items">\n <div class=\'uif-nav-items\'></div>\n </ul>\n </div>',this.scope={overlay:"@?uifOverlay"},this.link=function(e,t,i,r,o){n.$document.on("click",function(){r.closeAllContextMenus(),r.hideSearchTextBox()}),o(function(e){var i=angular.element(t[0].querySelector(".uif-nav-items"));i.replaceWith(e)})}}return e.factory=function(){var t=function(t,i,n){return new e(t,i,n)};return t.$inject=["$log","$animate","$document"],t},e.directiveName="uifNavBar",e.overlayValues=["light","dark"],e}();t.NavBarDirective=s;var a;!function(e){e[e.link=0]="link",e[e.menu=1]="menu"}(a||(a={}));var c=function(){function e(e,t){this.$scope=e,this.$element=t}return e.prototype.closeContextualMenu=function(){this.$scope.hasChildMenu&&this.$scope.contextMenuCtrl.closeMenu()},e.prototype.deselectItem=function(){this.$element.removeClass("is-selected")},e.$inject=["$scope","$element"],e}();t.NavBarItemController=c;var l=function(){function e(e){var t=this;this.$log=e,this.replace=!0,this.restrict="E",this.transclude=!0,this.controller=c,this.require="^"+s.directiveName,this.scope={isDisabled:"@?disabled",position:"@?uifPosition",text:"=?uifText",type:"@?uifType"},this.templateTypes={},this.template=function(e,i){var r=i.uifType;return n.isUndefined(r)?t.templateTypes[a.link]:void 0===a[r]?(t.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.navbar - unsupported nav bar item type:\nthe type '"+r+"' is not supported by ng-Office UI Fabric as valid type for nav bar item.Supported types can be found under NavBarItemTypes enum here:\nhttps://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/navbar/navbarDirective.ts"),"<div></div>"):t.templateTypes[a[r]]},this.link=function(e,i,o,s,c){if(e.isDisabled){var l=angular.element(i[0].querySelector(".ms-NavBar-link"));l.removeAttr("href")}n.isUndefined(e.type)&&(e.type=a[a.link]),e.selectItem=function(t){t.stopPropagation(),i.hasClass("is-disabled")||(i.parent().find("li").removeClass("is-selected"),s.closeAllContextMenus(),s.hideSearchTextBox(),i.toggleClass("is-selected"),e.hasChildMenu&&e.contextMenuCtrl.isMenuOpened()?(e.contextMenuCtrl.closeMenu(),i.removeClass("is-selected")):e.hasChildMenu&&!e.contextMenuCtrl.isMenuOpened()?(e.contextMenuCtrl.openMenu(),i.addClass("is-selected")):e.hasChildMenu||s.closeMobileMenu(),e.$apply())},i.on("click",e.selectItem),t.transcludeChilds(e,i,c);var u=angular.element(i[0].querySelector(".ms-ContextualMenu")).controller(r.ContextualMenuDirective.directiveName);u&&(e.hasChildMenu=!0,e.contextMenuCtrl=u,e.contextMenuCtrl.onRootMenuClosed.push(function(){s.closeMobileMenu(),i.removeClass("is-selected")}))},this.templateTypes[a.link]="\n <li class=\"ms-NavBar-item\"\n ng-class=\"{'is-disabled': isDisabled, 'ms-NavBar-item--right': position === 'right'}\">\n <a class=\"ms-NavBar-link\" href=\"\"><span class='uif-nav-item-content'></span></a>\n </li>",this.templateTypes[a.menu]='\n <li class="ms-NavBar-item ms-NavBar-item--hasMenu" ng-class="{\'is-disabled\': isDisabled}">\n <a class="ms-NavBar-link" href=""><span class=\'uif-nav-item-content\'></span></a>\n <i class="ms-NavBar-chevronDown ms-Icon ms-Icon--chevronDown"></i>\n <div class=\'uif-submenu\'></div>\n </li>'}return e.factory=function(){var t=function(t){return new e(t)};return t.$inject=["$log"],t},e.prototype.transcludeChilds=function(e,t,i){var n=this;i(function(i){var r=n.hasItemContent(i);r||e.text||n.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.navbar - you need to provide a text for a nav bar menu item.\nFor <uif-nav-bar-item> you need to specify either 'uif-text' as attribute or <uif-nav-item-content> as a child directive"),n.insertLink(i,e,t),n.insertMenu(i,e,t)})},e.prototype.insertLink=function(e,t,i){var n=angular.element(i[0].querySelector(".uif-nav-item-content"));if(this.hasItemContent(e))for(var r=0;r<e.length;r++){var o=angular.element(e[r]);if(o.hasClass("uif-content")){n.replaceWith(o);break}}else n.replaceWith(angular.element("<span>"+t.text+"</span>"))},e.prototype.insertMenu=function(e,t,i){for(var n=0;n<e.length;n++){var r=angular.element(e[n]);r.hasClass("ms-ContextualMenu")&&angular.element(i[0].querySelector(".uif-submenu")).replaceWith(r)}},e.prototype.hasItemContent=function(e){for(var t=0;t<e.length;t++){var i=angular.element(e[t]);if(i.hasClass("uif-content"))return!0}return!1},e.directiveName="uifNavBarItem",e}();t.NavBarItemDirective=l;var u=function(){function e(e,t,i,n,r){this.$scope=e,this.$element=t,this.$document=i,this.$animate=n,this.$timeout=r}return e.prototype.closeSearch=function(){var e=this;this.$timeout(function(){e.$scope.searchText||e.$animate.removeClass(e.$element,"is-open"),e.$animate.removeClass(e.$element,"is-selected")})},e.$inject=["$scope","$element","$document","$animate","$timeout"],e}();t.NavBarSearchController=u;var d=function(){function e(t,i,n){var r=this;this.$document=t,this.$animate=i,this.$timeout=n,this.replace=!0,this.restrict="E",this.controller=u,this.require=["^"+s.directiveName,""+e.directiveName],this.transclude=!0,this.scope={onSearchCallback:"&?uifOnSearch",placeholder:"@?placeholder"},this.template='\n <li class="ms-NavBar-item ms-NavBar-item--search ms-u-hiddenSm" ng-click="onSearch($event)">\n <div class="ms-TextField" ng-click="skipOnClick($event)">\n <input placeholder={{placeholder}} class="ms-TextField-field" type="text" ng-keypress="onSearch($event)" ng-model="searchText">\n </div>\n </li>',this.link=function(e,t,i,n,o){r.$document.on("click",function(){n[1].closeSearch()}),e.skipOnClick=function(e){r.applyCssClasses(t),e.stopPropagation()},e.onSearch=function(i){n[0].closeAllContextMenus(),i instanceof KeyboardEvent&&13===i.which&&e.onSearchCallback?e.onSearchCallback({search:e.searchText}):i instanceof MouseEvent&&t.hasClass("is-open")&&e.onSearchCallback&&e.onSearchCallback({search:e.searchText}),r.applyCssClasses(t),i.stopPropagation()}}}return e.factory=function(){var t=function(t,i,n){return new e(t,i,n)};return t.$inject=["$document","$animate","$timeout"],t},e.prototype.applyCssClasses=function(e){e.hasClass("is-open")||(this.$animate.addClass(e,"is-open"),this.$timeout(function(){angular.element(e[0].querySelector(".ms-TextField-field"))[0].focus()},1)),e.parent().find("li").removeClass("is-selected"),this.$animate.addClass(e,"is-selected")},e.directiveName="uifNavBarSearch",e}();t.NavBarSearch=d,t.module=n.module("officeuifabric.components.navbar",["officeuifabric.components"]).directive(s.directiveName,s.factory()).directive(l.directiveName,l.factory()).directive(d.directiveName,d.factory())},function(e,t,i){"use strict";var n=i(2),r=i(33),o=(function(){function e(e){this.log=e}return e.$inject=["$log"],e}(),function(){function e(t){this.log=t,this.restrict="E",this.template="<div class=\"ms-Overlay\" ng-class=\"{'ms-Overlay--dark': uifMode == 'dark'}\" ng-transclude></div>",this.scope={uifMode:"@"},this.transclude=!0,e.log=t}return e.factory=function(){var t=function(t){return new e(t)};return t.$inject=["$log"],t},e.prototype.link=function(t){t.$watch("uifMode",function(i,n){void 0===r.OverlayMode[i]&&e.log.error("Error [ngOfficeUiFabric] officeuifabric.components.overlay - Unsupported overlay mode: The overlay mode ('"+t.uifMode+"') is not supported by the Office UI Fabric. Supported options are listed here: https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/overlay/overlayModeEnum.ts")})},e}());t.OverlayDirective=o,t.module=n.module("officeuifabric.components.overlay",["officeuifabric.components"]).directive("uifOverlay",o.factory())},function(e,t){"use strict";!function(e){e[e.light=0]="light",e[e.dark=1]="dark"}(t.OverlayMode||(t.OverlayMode={}));t.OverlayMode},function(e,t,i){"use strict";var n=i(2),r=i(35),o=function(){function e(e,t,i){this.$log=e,this.$animate=t,this.$timeout=i,this.restrict="E",this.template='<div class="ms-Panel">\n <div class="ms-Overlay"\n ng-click="closePanel()"\n ng-class="uifShowOverlay === true ? \'ms-Overlay--dark\' : \'\';"></div>\n <div class="ms-Panel-main">\n <div class="ms-Panel-commands">\n <button ng-if="uifShowClose" class=\'ms-Panel-closeButton\' ng-click="closePanel()">\n <uif-icon uif-type=\'x\'></uif-icon>\n </button>\n </div>\n <div class="ms-Panel-contentInner">\n </div>\n </div>\n </div>',this.transclude=!0,this.replace=!0,this.controller=s,this.scope={uifIsOpen:"=",uifShowClose:"=",uifShowOverlay:"=",uifType:"@"}}return e.factory=function(){var t=function(t,i,n){return new e(t,i,n)};return t.$inject=["$log","$animate","$timeout"],t},e.prototype.compile=function(e,t,i){return{pre:this.preLink}},e.prototype.preLink=function(e,t,i,n,r){r(function(i){for(var n=0;n<i.length;n++)angular.element(i[n]).hasClass("ms-CommandBar")?angular.element(t[0].querySelector("div.ms-Panel-commands")).prepend(i[n]):"left"===e.uifType?angular.element(t[0].querySelector("div.ms-Panel-main")).append(i[n]):angular.element(t[0].querySelector("div.ms-Panel-contentInner")).append(i[n])}),e.closePanel=function(){e.uifIsOpen=!1}},e}();t.PanelDirective=o;var s=function(){function e(e,t,i,n,o){var s=this;this.$scope=e,this.$animate=t,this.$element=i,this.$log=n,this.$timeout=o,e.uifType||(e.uifType="medium"),void 0===r.PanelTypes[e.uifType]&&(this.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.panel - unsupported panel type:\nthe type '"+e.uifType+"' is not supported by ng-Office UI Fabric as valid type for panels.Supported types can be found under PanelTypes enum here:\nhttps://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/panel/panel.ts"),e.uifType="medium"),i.addClass("ms-Panel--"+e.uifType),e.$watch("uifIsOpen",function(e){"boolean"!=typeof e&&void 0!==e&&s.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.panel - invalid attribute type: 'uif-is-open'.\nThe type '"+typeof e+"' is not supported as valid type for 'uif-is-open' attribute for <uif-panel/>. The valid type is boolean."),e===!0?(t.addClass(s.$element,"ms-Panel-animateIn"),i.addClass("is-open"),i[0].querySelector(".ms-CommandBar")&&angular.element(i[0].querySelector(".ms-CommandBar")).scope().$broadcast("uif-command-bar-resize")):(t.addClass(s.$element,"ms-Panel-animateOut"),o(function(){i.removeClass("ms-Panel-animateIn ms-Panel-animateOut"),i.removeClass("is-open")},500))})}return e.$inject=["$scope","$animate","$element","$log","$timeout"],e}();t.PanelController=s;var a=function(){function e(){this.restrict="E",this.template='<p class="ms-Panel-headerText" ng-transclude></div>',this.transclude=!0,this.replace=!0,this.scope={uifHeaderText:"@"}}return e.factory=function(){var t=function(){return new e};return t},e}();t.PanelHeaderDirective=a,t.module=n.module("officeuifabric.components.panel",["officeuifabric.components"]).directive("uifPanel",o.factory()).directive("uifPanelHeader",a.factory())},function(e,t){"use strict";!function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.extralarge=3]="extralarge",e[e.left=4]="left"}(t.PanelTypes||(t.PanelTypes={}));t.PanelTypes},function(e,t,i){"use strict";var n=i(2),r=i(37),o=i(38),s=i(39),a=i(40),c=function(){function e(){var e=this;this.restrict="E",this.transclude=!0,this.replace=!0,this.require=["uifPersonaCard"],this.controller=l,this.scope={uifPresence:"@",uifSize:"@",uifImageUrl:"@"},this.template='<div class="ms-PersonaCard" ng-class="getPersonaCardClasses()"><div class="ms-PersonaCard-persona"><div class="ms-Persona" ng-class="getPersonaClasses()"><div class="ms-Persona-imageArea"><uif-icon uif-type="person"></uif-icon><img class="ms-Persona-image" ng-src="{{uifImageUrl}}" ng-if="uifImageUrl"></div><div class="ms-Persona-presence"></div><div class="ms-Persona-details"></div></div></div><ul class="ms-PersonaCard-actions"><li ng-repeat="action in personaCardActions" ng-class="getActionClasses(action)" ng-click="selectAction($event, action)"><uif-icon uif-type={{action.icon}} ng-if="action.placeholder != \'overflow\'"></uif-icon></li></ul><div class="ms-PersonaCard-actionDetailBox"><ul ng-class="detailClass"></ul></div></div>',this.link=function(t,i,c,l,u){var d=l[0],f=i.find("uif-icon");return f.addClass("ms-Persona-placeholder"),n.isDefined(c.uifSize)&&n.isUndefined(r.PersonaSize[c.uifSize])?void d.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.personacard - "'+c.uifSize+'" is not a valid value for uifSize. It should be xsmall, small, medium, large, xlarge.'):n.isDefined(c.uifStyle)&&n.isUndefined(s.PersonaStyleEnum[c.uifStyle])?void d.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.personacard - "'+c.uifStyle+'" is not a valid value for uifStyle. It should be round or square.'):n.isDefined(c.uifPresence)&&n.isUndefined(a.PresenceEnum[c.uifPresence])?void d.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.personacard - "'+c.uifPresence+'" is not a valid value for uifPresence. It should be available, away, blocked, busy, dnd or offline.'):(t.getActionClasses=function(e){var t=[],i=o.PlaceholderEnum[e.placeholder];switch(i){case o.PlaceholderEnum.topright:t.push("ms-PersonaCard-action"),t.push("ms-PersonaCard-orgChart");break;case o.PlaceholderEnum.regular:t.push("ms-PersonaCard-action")}return e.isActive&&t.push("is-active"),t.join(" ")},t.getPersonaClasses=function(){var e=[];switch(s.PersonaStyleEnum[c.uifStyle]===s.PersonaStyleEnum.square&&e.push("ms-Persona--square"),r.PersonaSize[c.uifSize]){case r.PersonaSize.xsmall:e.push("ms-Persona--xs");break;case r.PersonaSize.small:e.push("ms-Persona--sm");break;case r.PersonaSize.large:e.push("ms-Persona--lg");break;case r.PersonaSize.xlarge:e.push("ms-Persona--xl")}switch(a.PresenceEnum[c.uifPresence]){case a.PresenceEnum.available:e.push("ms-Persona--available");break;case a.PresenceEnum.away:e.push("ms-Persona--away");break;case a.PresenceEnum.blocked:e.push("ms-Persona--blocked");break;case a.PresenceEnum.busy:e.push("ms-Persona--busy");break;case a.PresenceEnum.dnd:e.push("ms-Persona--dnd");break;default:e.push("ms-Persona--offline")}return e.join(" ")},t.getPersonaCardClasses=function(){return s.PersonaStyleEnum[c.uifStyle]===s.PersonaStyleEnum.square?"ms-PersonaCard--square":""},void u(function(r){for(var s=n.element(i[0].getElementsByClassName("ms-Persona-details")),a=n.element(i[0].getElementsByClassName("ms-PersonaCard-actionDetailBox")).find("ul").eq(0),c=n.element(i[0].getElementsByClassName("ms-PersonaCard-actions")),l=0;l<r.length;l++){var u=r[l].tagName;switch(u){case"UIF-PERSONA-CARD-PRIMARY-TEXT":case"UIF-PERSONA-CARD-SECONDARY-TEXT":case"UIF-PERSONA-CARD-TERTIARY-TEXT":case"UIF-PERSONA-CARD-OPTIONAL-TEXT":s.append(r[l]);break;case"UIF-PERSONA-CARD-ACTION":var f=n.element(r[l]),p=f.attr("uif-placeholder");o.PlaceholderEnum[p]===o.PlaceholderEnum.overflow?c.append(f):a.append(e.processAction(f,t,d))}}}))}}return e.factory=function(){var t=function(){return new e};return t},e.prototype.processAction=function(e,t,i){var n="",r=e.attr("uif-placeholder"),s=e.attr("uif-icon"),a=new u(s,r);switch(r){case o.PlaceholderEnum[o.PlaceholderEnum.regular]:n="detail-"+ ++t.regularActionsCount;break;case o.PlaceholderEnum[o.PlaceholderEnum.topright]:n="detail-5"}return e.find("li").eq(0).addClass(n),a.detailClass=n,i.addAction(a),e},e}();t.PersonaCardDirective=c;var l=function(){function e(e,t){var i=this;this.$log=e,this.$scope=t,this.detailCss={1:"Chat",2:"Phone",3:"Video",4:"Mail",5:"Org"},t.personaCardActions=new Array,t.regularActionsCount=0,t.detailClass="ms-PersonaCard-detailChat",t.selectAction=function(e,n){t.personaCardActions.forEach(function(e){e.isActive=!1}),n.isActive=!0;var r=+n.detailClass.charAt(n.detailClass.length-1);t.detailClass="ms-PersonaCard-detail"+i.detailCss[r]}}return e.prototype.addAction=function(e){0===this.$scope.personaCardActions.length&&(e.isActive=!0),this.$scope.personaCardActions.push(e)},e.$inject=["$log","$scope"],e}();t.PersonaCardController=l;var u=function(){function e(e,t){this.icon=e,this.placeholder=t}return e}(),d=function(){function e(e){var t=this;this.directiveType=e,this.restrict="E",this.transclude=!0,this.replace=!1,this.scope=!1,this.availableClasses={primary:"ms-Persona-primaryText",secondary:"ms-Persona-secondaryText",tertiary:"ms-Persona-tertiaryText",optional:"ms-Persona-optionalText"},this.template=function(e,i){var n='<div class="'+t.availableClasses[t.directiveType]+'" ng-transclude></div>';return n},n.isUndefined(this.availableClasses[this.directiveType])&&(this.directiveType="optional")}return e.factory=function(t){var i=function(){return new e(t)};return i},e}();t.PersonaCardTextDirective=d;var f=function(){function e(e){var t=this;this.$log=e,this.restrict="E",this.transclude=!0,this.replace=!1,this.require="^?uifPersonaCard",this.scope=!1,this.template=function(e,i){return n.isDefined(i.uifPlaceholder)&&n.isUndefined(o.PlaceholderEnum[i.uifPlaceholder])?(t.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.personacard - "'+i.uifPlaceholder+'" is not a valid value for uifPlaceholder. It should be regular, topright or overflow.'),
""):o.PlaceholderEnum[i.uifPlaceholder]===o.PlaceholderEnum.overflow?'<li class="ms-PersonaCard-overflow" ng-transclude></li>':'<li class="ms-PersonaCard-actionDetails" ng-transclude></li>'}}return e.factory=function(){var t=function(t){return new e(t)};return t.$inject=["$log"],t},e}();t.PersonaCardActionDirective=f;var p=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!0,this.scope=!1,this.template='<span class="ms-PersonaCard-detailLabel" ng-transclude></span>'}return e.factory=function(){var t=function(){return new e};return t},e}();t.PersonaCardDetailLabelDirective=p;var m=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!0,this.scope=!1,this.template='<div class="ms-PersonaCard-detailLine" ng-transclude></div>'}return e.factory=function(){var t=function(){return new e};return t},e}();t.PersonaCardDetailLineDirective=m,t.module=n.module("officeuifabric.components.personacard",["officeuifabric.components"]).directive("uifPersonaCard",c.factory()).directive("uifPersonaCardAction",f.factory()).directive("uifPersonaCardDetailLabel",p.factory()).directive("uifPersonaCardDetailLine",m.factory()).directive("uifPersonaCardPrimaryText",d.factory("primary")).directive("uifPersonaCardSecondaryText",d.factory("secondary")).directive("uifPersonaCardTertiaryText",d.factory("tertiary")).directive("uifPersonaCardOptionalText",d.factory(""))},function(e,t){"use strict";!function(e){e[e.xsmall=0]="xsmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large",e[e.xlarge=4]="xlarge"}(t.PersonaSize||(t.PersonaSize={}));t.PersonaSize},function(e,t){"use strict";!function(e){e[e.regular=0]="regular",e[e.topright=1]="topright",e[e.overflow=2]="overflow"}(t.PlaceholderEnum||(t.PlaceholderEnum={}));t.PlaceholderEnum},function(e,t){"use strict";!function(e){e[e.round=0]="round",e[e.square=1]="square"}(t.PersonaStyleEnum||(t.PersonaStyleEnum={}));t.PersonaStyleEnum},function(e,t){"use strict";!function(e){e[e.available=0]="available",e[e.away=1]="away",e[e.blocked=2]="blocked",e[e.busy=3]="busy",e[e.dnd=4]="dnd",e[e.offline=5]="offline"}(t.PresenceEnum||(t.PresenceEnum={}));t.PresenceEnum},function(e,t,i){"use strict";var n=i(2),r=i(39),o=i(40),s=i(42),a=i(43),c=function(){function e(e){var t=this;this.directiveType=e,this.restrict="E",this.transclude=!0,this.replace=!1,this.scope=!1,this.availableClasses={primary:"ms-Persona-primaryText",secondary:"ms-Persona-secondaryText",tertiary:"ms-Persona-tertiaryText",optional:"ms-Persona-optionalText"},this.template=function(e,i){var n='<div class="'+t.availableClasses[t.directiveType]+'" ng-transclude></div>';return n},n.isUndefined(this.availableClasses[this.directiveType])&&(this.directiveType="optional")}return e.factory=function(t){var i=function(){return new e(t)};return i},e}();t.PersonaTextDirective=c;var l=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!1,this.require=["^uifPersona"],this.scope={uifColor:"@"},this.template='<div class="ms-Persona-initials ms-Persona-initials--{{uifColor}}" ng-transclude></div> ',this.link=function(e,t,i,r){var o=r[0];n.isUndefined(i.uifColor)&&(e.uifColor=s.PersonaInitialsColor[s.PersonaInitialsColor.blue]),e.$watch("uifColor",function(e){n.isUndefined(s.PersonaInitialsColor[e])&&o.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.persona - "'+e+'" is not a valid value for uifColor. It should be lightBlue, blue, darkBlue, teal, lightGreen, green, darkGreen, lightPink, pink, magenta, purple, black, orange, red or darkRed.')})}}return e.factory=function(){var t=function(){return new e};return t},e}();t.PersonaInitialsDirective=l;var u=function(){function e(){var e=this;this.restrict="E",this.transclude=!0,this.replace=!0,this.require=["uifPersona"],this.controller=d,this.scope={uifPresence:"@",uifSize:"@",uifImageUrl:"@"},this.template='<div class="ms-Persona" ng-class="getPersonaClasses()"><div class="ms-Persona-imageArea" ng-show="getImageAreaVisibility()"><img class="ms-Persona-image" ng-src="{{uifImageUrl}}" ng-if="uifImageUrl"></div><div class="ms-Persona-presence"></div><div class="ms-Persona-details"></div></div>',this.uifSizeClasses=(t={},t[a.PersonaSize.tiny]="ms-Persona--tiny",t[a.PersonaSize.xsmall]="ms-Persona--xs",t[a.PersonaSize.small]="ms-Persona--sm",t[a.PersonaSize.large]="ms-Persona--lg",t[a.PersonaSize.xlarge]="ms-Persona--xl",t),this.uifPresenceClasses=(i={},i[o.PresenceEnum.available]="ms-Persona--available",i[o.PresenceEnum.away]="ms-Persona--away",i[o.PresenceEnum.blocked]="ms-Persona--blocked",i[o.PresenceEnum.busy]="ms-Persona--busy",i[o.PresenceEnum.dnd]="ms-Persona--dnd",i[o.PresenceEnum.offline]="ms-Persona--offline",i),this.link=function(t,i,s,c,l){var u=c[0];return n.isDefined(s.uifSize)&&n.isUndefined(a.PersonaSize[s.uifSize])?void u.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.persona - "'+s.uifSize+'" is not a valid value for uifSize. It should be tiny, xsmall, small, medium, large, xlarge.'):n.isDefined(s.uifStyle)&&n.isUndefined(r.PersonaStyleEnum[s.uifStyle])?void u.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.persona - "'+s.uifStyle+'" is not a valid value for uifStyle. It should be round or square.'):n.isDefined(s.uifPresence)&&n.isUndefined(o.PresenceEnum[s.uifPresence])?void u.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.persona - "'+s.uifPresence+'" is not a valid value for uifPresence. It should be available, away, blocked, busy, dnd or offline.'):(t.getImageAreaVisibility=function(){return a.PersonaSize[s.uifSize]!==a.PersonaSize.tiny},t.getPersonaClasses=function(){var t=[],i=a.PersonaSize[s.uifSize],c=n.isDefined(s.uifPresence)?o.PresenceEnum[s.uifPresence]:o.PresenceEnum.offline;r.PersonaStyleEnum[s.uifStyle]===r.PersonaStyleEnum.square&&t.push("ms-Persona--square");var l=e.uifSizeClasses[i];return n.isDefined(l)&&t.push(l),t.push(e.uifPresenceClasses[c]),t.join(" ")},void l(function(e){for(var t=n.element(i[0].getElementsByClassName("ms-Persona-details")),r=n.element(i[0].getElementsByClassName("ms-Persona-imageArea")),o=0;o<e.length;o++){var s=e[o].tagName;switch(s){case"UIF-PERSONA-PRIMARY-TEXT":case"UIF-PERSONA-SECONDARY-TEXT":case"UIF-PERSONA-TERTIARY-TEXT":case"UIF-PERSONA-OPTIONAL-TEXT":t.append(e[o]);break;case"UIF-PERSONA-INITIALS":r.prepend(e[o])}}}))};var t,i}return e.factory=function(){var t=function(){return new e};return t},e}();t.PersonaDirective=u;var d=function(){function e(e){this.$log=e}return e.$inject=["$log"],e}();t.PersonaController=d,t.module=n.module("officeuifabric.components.persona",["officeuifabric.components"]).directive("uifPersona",u.factory()).directive("uifPersonaInitials",l.factory()).directive("uifPersonaPrimaryText",c.factory("primary")).directive("uifPersonaSecondaryText",c.factory("secondary")).directive("uifPersonaTertiaryText",c.factory("tertiary")).directive("uifPersonaOptionalText",c.factory(""))},function(e,t){"use strict";!function(e){e[e.lightBlue=0]="lightBlue",e[e.blue=1]="blue",e[e.darkBlue=2]="darkBlue",e[e.teal=3]="teal",e[e.lightGreen=4]="lightGreen",e[e.green=5]="green",e[e.darkGreen=6]="darkGreen",e[e.lightPink=7]="lightPink",e[e.pink=8]="pink",e[e.magenta=9]="magenta",e[e.purple=10]="purple",e[e.black=11]="black",e[e.orange=12]="orange",e[e.red=13]="red",e[e.darkRed=14]="darkRed"}(t.PersonaInitialsColor||(t.PersonaInitialsColor={}));t.PersonaInitialsColor},function(e,t){"use strict";!function(e){e[e.tiny=0]="tiny",e[e.xsmall=1]="xsmall",e[e.small=2]="small",e[e.medium=3]="medium",e[e.large=4]="large",e[e.xlarge=5]="xlarge"}(t.PersonaSize||(t.PersonaSize={}));t.PersonaSize},function(e,t,i){"use strict";var n=i(2),r=i(45),o=i(46),s=function(){function e(e,t){this.$log=e,this.$scope=t,t.pivotClick=function(e){t.uifPivots.forEach(function(i,n){i.selected=n===e,i.selected&&(t.uifSelected=i)})}}return e.$inject=["$log","$scope"],e}();t.PivotController=s;var a=function(){function e(e){this.title=e}return e}();t.PivotItem=a;var c=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!1,this.template='<li class="ms-Pivot-link ms-Pivot-link--overflow"><uif-icon uif-type="ellipsis" class="ms-Pivot-ellipsis"></uif-icon><ng-transclude></ng-transclude></li>',this.scope=!1}return e.factory=function(){var t=function(){return new e};return t},e}();t.PivotEllipsisDirective=c;var l=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!1,this.controller=s,this.require=["uifPivot"],this.template='<ul class="ms-Pivot" ng-class="getClasses()" ><span ng-repeat-start="pivot in uifPivots"></span><li class="ms-Pivot-link" ng-click="pivotClick($index)" ng-class="{\'is-selected\': pivot.selected}">{{pivot.title}}</li> <span ng-repeat-end></span><ng-transclude></ng-transclude></ul>',this.scope={uifPivots:"=?",uifSelected:"=?",uifSize:"@",uifType:"@"}}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i,s){var a=s[0];e.$watch("uifSize",function(e){n.isDefined(e)&&n.isUndefined(r.PivotSize[e])&&a.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.pivot - Unsupported size: "'+e+'" is not a valid value for uifSize. It should be regular or large.')}),e.$watch("uifType",function(e){n.isDefined(e)&&n.isUndefined(o.PivotType[e])&&a.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.pivot - Unsupported size: "'+e+'" is not a valid value for uifType. It should be regular or tabs.')}),e.$watch("uifSelected",function(t,i){if(n.isDefined(t)){e.uifPivots.forEach(function(e){e.selected=e.title===t.title});var r=e.uifPivots.filter(function(e){return e.selected});if(r.length>1)for(var o=1;o<r.length;o++)r[o].selected=!1}}),e.getClasses=function(){var t="";return t+=o.PivotType[e.uifType]===o.PivotType.tabs?"ms-Pivot--tabs":"",t+=r.PivotSize[e.uifSize]===r.PivotSize.large?" ms-Pivot--large":""}},e}();t.PivotDirective=l,t.module=n.module("officeuifabric.components.pivot",["officeuifabric.components"]).directive("uifPivot",l.factory()).directive("uifPivotEllipsis",c.factory())},function(e,t){"use strict";!function(e){e[e.regular=0]="regular",e[e.large=1]="large"}(t.PivotSize||(t.PivotSize={}));t.PivotSize},function(e,t){"use strict";!function(e){e[e.regular=0]="regular",e[e.tabs=1]="tabs"}(t.PivotType||(t.PivotType={}));t.PivotType},function(e,t,i){"use strict";var n=i(2),r=function(){function e(t){this.log=t,this.restrict="E",this.template='<div class="ms-ProgressIndicator"><div class="ms-ProgressIndicator-itemName">{{uifName}}</div><div class="ms-ProgressIndicator-itemProgress"><div class="ms-ProgressIndicator-progressTrack"></div><div class="ms-ProgressIndicator-progressBar" ng-style="{width: uifPercentComplete+\'%\'}"></div></div><div class="ms-ProgressIndicator-itemDescription">{{uifDescription}}</div></div>',this.scope={uifDescription:"@",uifName:"@",uifPercentComplete:"@"},e.log=t}return e.factory=function(){var t=function(t){return new e(t)};return t.$inject=["$log"],t},e.prototype.link=function(t){t.$watch("uifPercentComplete",function(i,n){if(null==i||""===i)return void(t.uifPercentComplete=0);var r=parseFloat(i);(isNaN(r)||0>r||r>100)&&(e.log.error("Error [ngOfficeUiFabric] officeuifabric.components.progressindicator - Percent complete must be a valid number between 0 and 100."),t.uifPercentComplete=Math.max(Math.min(r,100),0))})},e}();t.ProgressIndicatorDirective=r,t.module=n.module("officeuifabric.components.progressindicator",["officeuifabric.components"]).directive("uifProgressIndicator",r.factory())},function(e,t,i){"use strict";var n=i(2),r=function(){function e(){this.template='<div class="ms-SearchBox" ng-class="{\'is-active\':isActive, \'is-disabled\':isDisabled}"><input class="ms-SearchBox-field" ng-focus="inputFocus()" ng-blur="inputBlur()" ng-model="value" id="{{::\'searchBox_\'+$id}}" ng-disabled="isDisabled" /><label class="ms-SearchBox-label" for="{{::\'searchBox_\'+$id}}" ng-hide="isLabelHidden"><i class="ms-SearchBox-icon ms-Icon ms-Icon--search" ></i> {{placeholder}}</label><button class="ms-SearchBox-closeButton" ng-mousedown="btnMousedown()" type="button"><i class="ms-Icon ms-Icon--x"></i></button></div>',this.scope={placeholder:"=?",value:"=?"}}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i){e.isFocus=!1,e.isCancel=!1,e.isLabelHidden=!1,e.isActive=!1,e.inputFocus=function(){e.isFocus=!0,e.isLabelHidden=!0,e.isActive=!0},e.inputBlur=function(){e.isCancel&&(e.value="",e.isLabelHidden=!1),e.isActive=!1,"undefined"!=typeof e.value&&""!==e.value||(e.isLabelHidden=!1),e.isFocus=e.isCancel=!1},e.btnMousedown=function(){e.isCancel=!0},e.$watch("value",function(t){e.isFocus||(t&&""!==t?e.isLabelHidden=!0:e.isLabelHidden=!1,e.value=t)}),e.$watch("placeholder",function(t){e.placeholder=t}),i.$observe("disabled",function(t){e.isDisabled=!!t})},e}();t.SearchBoxDirective=r,t.module=n.module("officeuifabric.components.searchbox",["officeuifabric.components"]).directive("uifSearchbox",r.factory())},function(e,t,i){"use strict";var n=i(2),r=i(50),o=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!0,this.template='<div class="ms-Spinner"></div>',this.controller=s,this.scope={ngShow:"=",uifSize:"@"}}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i,o,s){n.isDefined(i.uifSize)&&(n.isUndefined(r.SpinnerSize[i.uifSize])&&o.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.spinner - Unsupported size: Spinner size ('"+i.uifSize+"') is not supported by the Office UI Fabric."),r.SpinnerSize[i.uifSize]===r.SpinnerSize.large&&t.addClass("ms-Spinner--large")),null!=i.ngShow?e.$watch("ngShow",function(e,t,i){e?i.start():i.stop()}):e.start(),s(function(e){if(e.length>0){var i=n.element("<div></div>");i.addClass("ms-Spinner-label").append(e),t.append(i)}}),e.init()},e}();t.SpinnerDirective=o;var s=function(){function e(e,t,i,n){var o=this;this.$scope=e,this.$element=t,this.$interval=i,this.$log=n,this._offsetSize=.179,this._numCircles=8,this._animationSpeed=90,this._circles=[],e.init=function(){o._parentSize=r.SpinnerSize[o.$scope.uifSize]===r.SpinnerSize.large?28:20,o.createCirclesAndArrange(),o.setInitialOpacity()},e.start=function(){o._animationInterval=i(function(){for(var e=o._circles.length;e--;)o.fadeCircle(o._circles[e])},o._animationSpeed)},e.stop=function(){i.cancel(o._animationInterval)}}return e.prototype.createCirclesAndArrange=function(){for(var e=0,t=this._parentSize*this._offsetSize,i=2*Math.PI/this._numCircles,n=this._numCircles,r=.5*(this._parentSize-t);n--;){var o=this.createCircle(),s=Math.round(.5*this._parentSize+r*Math.cos(e)-.5*o[0].clientWidth)-.5*t,c=Math.round(.5*this._parentSize+r*Math.sin(e)-.5*o[0].clientHeight)-.5*t;this.$element.append(o),o.css("left",s+"px"),o.css("top",c+"px"),e+=i;var l=new a(o,n);this._circles.push(l)}},e.prototype.createCircle=function(){var e=n.element("<div></div>"),t=this._parentSize*this._offsetSize+"px";return e.addClass("ms-Spinner-circle").css("width",t).css("height",t),e},e.prototype.setInitialOpacity=function(){var e,t=this;this._fadeIncrement=1/this._numCircles,this._circles.forEach(function(i,n){e=t._fadeIncrement*(n+1),i.opacity=e})},e.prototype.fadeCircle=function(e){var t=e.opacity-this._fadeIncrement;0>=t&&(t=1),e.opacity=t},e.$inject=["$scope","$element","$interval","$log"],e}(),a=function(){function e(e,t){this.circleElement=e,this.circleIndex=t}return Object.defineProperty(e.prototype,"opacity",{get:function(){return+this.circleElement.css("opacity")},set:function(e){this.circleElement.css("opacity",e)},enumerable:!0,configurable:!0}),e}();t.module=n.module("officeuifabric.components.spinner",["officeuifabric.components"]).directive("uifSpinner",o.factory())},function(e,t){"use strict";!function(e){e[e.small=0]="small",e[e.large=1]="large"}(t.SpinnerSize||(t.SpinnerSize={}));t.SpinnerSize},function(e,t,i){"use strict";var n=i(2),r=i(52),o=i(53),s=function(){function e(e,t){this.$scope=e,this.$log=t,this.$scope.orderBy=null,this.$scope.orderAsc=!0,this.$scope.rows=[]}return Object.defineProperty(e.prototype,"orderBy",{get:function(){return this.$scope.orderBy},set:function(e){this.$scope.orderBy=e,this.$scope.$digest()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orderAsc",{get:function(){return this.$scope.orderAsc},set:function(e){this.$scope.orderAsc=e,this.$scope.$digest()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowSelectMode",{get:function(){return this.$scope.rowSelectMode},set:function(e){void 0===r.TableRowSelectModeEnum[e]&&this.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.table. '"+e+"' is not a valid option for 'uif-row-select-mode'. Valid options are none|single|multiple."),this.$scope.rowSelectMode=e,this.$scope.$digest()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this.$scope.rows},set:function(e){this.$scope.rows=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedItems",{get:function(){for(var e=[],t=0;t<this.rows.length;t++)this.rows[t].selected===!0&&e.push(this.rows[t].item);return e},enumerable:!0,configurable:!0}),e.$inject=["$scope","$log"],e}(),a=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!0,this.template="<table ng-class=\"['ms-Table', tableTypeClass]\" ng-transclude></table>",this.controller=s,this.controllerAs="table"}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i,n){void 0!==i.uifRowSelectMode&&null!==i.uifRowSelectMode&&(void 0===r.TableRowSelectModeEnum[i.uifRowSelectMode]?n.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.table. '"+i.uifRowSelectMode+"' is not a valid option for 'uif-row-select-mode'. Valid options are none|single|multiple."):e.rowSelectMode=i.uifRowSelectMode),void 0===e.rowSelectMode&&(e.rowSelectMode=r.TableRowSelectModeEnum[r.TableRowSelectModeEnum.none]),void 0!==i.uifTableType&&null!==i.uifTableType&&(void 0===o.TableTypeEnum[i.uifTableType]?n.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.table. '"+i.uifTableType+"' is not a valid option for 'uif-table-type'. Valid options are fixed|fluid."):e.tableType=i.uifTableType),void 0===e.tableType&&(e.tableType=o.TableTypeEnum[o.TableTypeEnum.fluid]),e.tableType===o.TableTypeEnum[o.TableTypeEnum.fixed]&&(e.tableTypeClass="ms-Table--fixed")},e}();t.TableDirective=a;var c=function(){function e(e,t){this.$scope=e,this.$log=t}return Object.defineProperty(e.prototype,"item",{get:function(){return this.$scope.item},set:function(e){this.$scope.item=e,this.$scope.$digest()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.$scope.selected},set:function(e){this.$scope.selected=e,this.$scope.$digest()},enumerable:!0,configurable:!0}),e.$inject=["$scope","$log"],e}(),l=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!0,this.template="<tr ng-transclude></tr>",this.require="^uifTable",this.scope={item:"=uifItem"},this.controller=c}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i,n){if(void 0!==i.uifSelected&&null!==i.uifSelected){var o=i.uifSelected.toLowerCase();"true"!==o&&"false"!==o?n.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.table. '"+i.uifSelected+"' is not a valid boolean value. Valid options are true|false."):"true"===o&&(e.selected=!0)}void 0!==e.item&&n.rows.push(e),e.rowClick=function(t){e.selected=!e.selected,e.$apply()},e.$watch("selected",function(e,i,o){if(e===!0){if(n.rowSelectMode===r.TableRowSelectModeEnum[r.TableRowSelectModeEnum.single]&&n.rows)for(var s=0;s<n.rows.length;s++)n.rows[s]!==o&&(n.rows[s].selected=!1);t.addClass("is-selected")}else t.removeClass("is-selected")}),n.rowSelectMode!==r.TableRowSelectModeEnum[r.TableRowSelectModeEnum.none]&&void 0!==e.item&&t.on("click",e.rowClick),n.rowSelectMode===r.TableRowSelectModeEnum[r.TableRowSelectModeEnum.none]&&t.css("cursor","default")},e}();t.TableRowDirective=l;var u=function(){function e(){this.restrict="E",this.template='<td class="ms-Table-rowCheck"></td>',this.replace=!0,this.require=["^uifTable","?^uifTableHead","^uifTableRow"]}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i,n){var o=n[1];o&&t.replaceWith('<th class="ms-Table-rowCheck"></th>'),e.rowSelectClick=function(t){var i=n[0],o=n[2];if(i.rowSelectMode===r.TableRowSelectModeEnum[r.TableRowSelectModeEnum.multiple]&&(void 0===o.item||null===o.item)){for(var s=!1,a=0;a<i.rows.length;a++)if(i.rows[a].selected!==!0){s=!0;break}for(var a=0;a<i.rows.length;a++)i.rows[a].selected!==s&&(i.rows[a].selected=s);e.$apply()}},t.on("click",e.rowSelectClick)},e}();t.TableRowSelectDirective=u;var d=function(){function e(){this.restrict="E",this.transclude=!0,this.template="<td ng-transclude></td>",this.replace=!0}return e.factory=function(){var t=function(){return new e};return t},e}();t.TableCellDirective=d;var f=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!0,this.template="<th ng-transclude></th>",this.require="^uifTable"}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i,n){e.headerClick=function(e){n.orderBy===i.uifOrderBy?n.orderAsc=!n.orderAsc:(n.orderBy=i.uifOrderBy,n.orderAsc=!0)},e.$watch("table.orderBy",function(e,n,r){if(n!==e&&e===i.uifOrderBy){for(var o=t.parent().children(),s=0;s<o.length;s++)2===o.eq(s).children().length&&o.eq(s).children().eq(1).remove();t.append('<span class="uif-sort-order">&nbsp; <i class="ms-Icon ms-Icon--caretDown" aria-hidden="true"></i></span>')}}),e.$watch("table.orderAsc",function(e,i,n){if(2===t.children().length){var r=i?"ms-Icon--caretDown":"ms-Icon--caretUp",o=e?"ms-Icon--caretDown":"ms-Icon--caretUp";t.children().eq(1).children().eq(0).removeClass(r).addClass(o)}}),"uifOrderBy"in i&&t.on("click",e.headerClick)},e}();t.TableHeaderDirective=f;var p=function(){function e(){}return e}(),m=function(){function e(){this.restrict="E",this.transclude=!0,this.template="<thead ng-transclude></thead>",this.replace=!0,this.controller=p}return e.factory=function(){var t=function(){return new e};return t},e}();t.TableHeadDirective=m;var h=function(){function e(){this.restrict="E",this.transclude=!0,this.template="<tbody ng-transclude></tbody>",this.replace=!0}return e.factory=function(){var t=function(){return new e};return t},e}();t.TableBodyDirective=h,t.module=n.module("officeuifabric.components.table",["officeuifabric.components"]).directive("uifTable",a.factory()).directive("uifTableRow",l.factory()).directive("uifTableRowSelect",u.factory()).directive("uifTableCell",d.factory()).directive("uifTableHeader",f.factory()).directive("uifTableHead",m.factory()).directive("uifTableBody",h.factory())},function(e,t){"use strict";!function(e){e[e.none=0]="none",e[e.single=1]="single",e[e.multiple=2]="multiple"}(t.TableRowSelectModeEnum||(t.TableRowSelectModeEnum={}));t.TableRowSelectModeEnum},function(e,t){"use strict";!function(e){e[e.fluid=0]="fluid",e[e.fixed=1]="fixed"}(t.TableTypeEnum||(t.TableTypeEnum={}));t.TableTypeEnum},function(e,t,i){"use strict";var n=i(2),r=i(55),o=function(){function e(e){this.$log=e}return e.$inject=["$log"],e}(),s=function(){function e(){this.controller=o,this.template="<div ng-class=\"{'is-active': isActive, 'ms-TextField': true, 'ms-TextField--underlined': uifUnderlined, 'ms-TextField--placeholder': placeholder, 'is-required': required, 'is-disabled': disabled, 'ms-TextField--multiline' : uifMultiline }\">"+'<label ng-show="labelShown" class="ms-Label" ng-click="labelClick()">{{uifLabel || placeholder}}</label><input ng-model="ngModel" ng-change="ngChange" ng-blur="inputBlur()" ng-focus="inputFocus()" ng-click="inputClick()" class="ms-TextField-field" ng-show="!uifMultiline" ng-disabled="disabled" type="{{uifType}}"min="{{min}}" max="{{max}}" step="{{step}}" /><textarea ng-model="ngModel" ng-blur="inputBlur()" ng-focus="inputFocus()" ng-click="inputClick()" class="ms-TextField-field" ng-show="uifMultiline" ng-disabled="disabled"></textarea><span class="ms-TextField-description">{{uifDescription}}</span></div>',this.scope={max:"@",min:"@",ngChange:"=?",ngModel:"=?",placeholder:"@",step:"@",uifDescription:"@",uifLabel:"@"},this.require=["uifTextfield","?ngModel"],this.restrict="E"}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i,n){var o=n[0],s=n[1];e.disabled="disabled"in i,e.$watch(function(){return t.attr("disabled")},function(t){e.disabled="undefined"!=typeof t}),e.labelShown=!0,e.required="required"in i,e.uifMultiline="true"===i.uifMultiline,e.uifType=i.uifType,e.$watch("uifType",function(t,i){"undefined"!=typeof t?void 0===r.InputTypeEnum[t]&&o.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.textfield - Unsupported type: The type ('"+e.uifType+"') is not supported by the Office UI Fabric. Supported options are listed here: https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/textfield/uifTypeEnum.ts"):e.uifType=r.InputTypeEnum.text}),e.uifUnderlined="uifUnderlined"in i,e.inputFocus=function(t){e.placeholder&&(e.labelShown=!1),e.isActive=!0},e.inputBlur=function(i){var n=t.find("input");e.placeholder&&0===n.val().length&&(e.labelShown=!0),e.isActive=!1},e.labelClick=function(i){if(e.placeholder){var n=e.uifMultiline?t.find("textarea"):t.find("input");n[0].focus()}},null!=s&&(s.$render=function(){e.placeholder&&(e.labelShown=!s.$viewValue)})},e}();t.TextFieldDirective=s,t.module=n.module("officeuifabric.components.textfield",["officeuifabric.components"]).directive("uifTextfield",s.factory())},function(e,t){"use strict";!function(e){e[e.text=0]="text",e[e.password=1]="password",e[e.email=2]="email",e[e.url=3]="url",e[e.tel=4]="tel",e[e.range=5]="range",e[e.number=6]="number"}(t.InputTypeEnum||(t.InputTypeEnum={}));t.InputTypeEnum},function(e,t,i){"use strict";var n=i(2),r=function(){function e(){this.template='<div ng-class="[\'ms-Toggle\', textLocation, {\'is-disabled\': disabled}]"><span class="ms-Toggle-description"><ng-transclude/></span><input type="checkbox" id="{{::$id}}" class="ms-Toggle-input" ng-model="ngModel" ng-change="ngChange()" ng-disabled="disabled" ng-attr-ng-true-value="{{ngTrueValue || undefined}}" ng-attr-ng-false-value="{{ngFalseValue || undefined}}" /><label for="{{::$id}}" class="ms-Toggle-field"><span class="ms-Label ms-Label--off">{{uifLabelOff}}</span><span class="ms-Label ms-Label--on">{{uifLabelOn}}</span></label></div>',this.restrict="E",this.transclude=!0,this.scope={ngChange:"&?",ngFalseValue:"@?",ngModel:"=?",ngTrueValue:"@?",uifLabelOff:"@",uifLabelOn:"@",uifTextLocation:"@"}}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i){if(e.uifTextLocation){var n=e.uifTextLocation;n=n.charAt(0).toUpperCase()+n.slice(1),e.textLocation=" ms-Toggle--text"+n}e.$watch(function(){return t.attr("disabled")},function(t){e.disabled="undefined"!=typeof t}),e.disabled="disabled"in i},e}();t.ToggleDirective=r,t.module=n.module("officeuifabric.components.toggle",["officeuifabric.components"]).directive("uifToggle",r.factory())},function(e,t,i){"use strict";var n=i(2),r=i(58),o=i(59),s=i(60),a=function(){function e(e,t){this.$scope=e,this.$log=t,this.$scope.selectMode=null,this.$scope.items=[]}return Object.defineProperty(e.prototype,"items",{get:function(){return this.$scope.items},set:function(e){this.$scope.items=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedItems",{get:function(){return this.$scope.selectedItems},set:function(e){this.$scope.selectedItems=e},enumerable:!0,configurable:!0}),e.$inject=["$scope","$log"],e}(),c=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!0,this.template='<div class="ms-OrgChart" ng-transclude ></div>',this.controller=a,this.scope={selectedItems:"=?uifSelectedItems"}}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i,n){if(i.uifSelectMode)switch(s.OrgChartSelectModeEnum[i.uifSelectMode]){case s.OrgChartSelectModeEnum.single:case s.OrgChartSelectModeEnum.multiple:n.selectMode=s.OrgChartSelectModeEnum[i.uifSelectMode];break;default:n.$log.error("Error [ngOfficeUIFabric] officeuifabric.components.orgchart - Unsupported select-mode: The select-mode ('"+i.uifSelectMode+") is not supperted. Supported options are: single, multiple")}},e}();t.OrgChartDirective=c;var l=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!0,this.template='<div class="ms-OrgChart-group" ng-transclude ></div>'}return e.factory=function(){var t=function(){return new e};return t},e}();t.OrgChartGroupDirective=l;var u=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!0,this.template='<div class="ms-OrgChart-groupTitle" ng-transclude ></div>'}return e.factory=function(){var t=function(){return new e};return t},e}();t.OrgChartGroupTitleDirective=u;var d=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!0,this.template='<ul class="ms-OrgChart-list" ng-transclude ></ul>'}return e.factory=function(){var t=function(){return new e};return t},e}();t.OrgChartListDirective=d;var f=function(){function e(e){this.$log=e,this.restrict="E",this.transclude=!0,this.replace=!0,this.template='<li class="ms-OrgChart-listItem"><div class="ms-Persona" ng-transclude ></div></li>',this.require="^uifOrgChart",this.scope={item:"=?uifItem",presence:"=?uifPresence",selected:"=?uifSelected"}}return e.factory=function(){var t=function(t){return new e(t)};return t.$inject=["$log"],t},e.prototype.compile=function(e,t,i){return{post:this.postLink}},e.prototype.postLink=function(e,t,i,n,a){if(void 0===e.selected&&(e.selected=!1),e.presence)switch(r.OrgChartPresenceEnum[e.presence]){case r.OrgChartPresenceEnum.available:t.children().eq(0).addClass("ms-Persona--available");break;case r.OrgChartPresenceEnum.busy:t.children().eq(0).addClass("ms-Persona--busy");break;case r.OrgChartPresenceEnum.away:t.children().eq(0).addClass("ms-Persona--away");break;case r.OrgChartPresenceEnum.blocked:t.children().eq(0).addClass("ms-Persona--blocked");break;case r.OrgChartPresenceEnum.dnd:t.children().eq(0).addClass("ms-Persona--dnd");break;case r.OrgChartPresenceEnum.offline:t.children().eq(0).addClass("ms-Persona--offline");break;default:n.$log.error("Error [ngOfficeUIFabric] officeuifabric.components.orgchart - Unsupported presence: The presence ('"+e.presence+"') is not supperted by the Office UI Fabric. Supported options are: available, busy, away, blocked, dnd, offline.")}if(i.uifStyle)switch(o.OrgChartStyleEnum[i.uifStyle]){case o.OrgChartStyleEnum.square:t.children().eq(0).addClass("ms-Persona--square");break;case o.OrgChartStyleEnum.standard:break;default:n.$log.error("Error [ngOfficeUIFabric] officeuifabric.components.orgchart - Unsupported style: The style ('"+i.uifStyle+") is not supperted by the Office UI Fabric. Supported options are: standard(default), square")}if(void 0!==n.selectMode&&t.children().eq(0).addClass("ms-Persona--selectable"),e.$watch("selected",function(e,i){void 0!==n.selectMode&&(e===!0?t.children().eq(0).addClass("is-selected"):t.children().eq(0).removeClass("is-selected"))}),e.item&&n.items.push(e),(n.selectMode===s.OrgChartSelectModeEnum.single||n.selectMode===s.OrgChartSelectModeEnum.multiple)&&e.selected){if(n.selectMode===s.OrgChartSelectModeEnum.single){n.selectedItems&&(n.selectedItems=[]);for(var c=0;c<n.items.length;c++)n.items[c]!==e&&(n.items[c].selected=!1)}t.children().eq(0).addClass("is-selected"),n.selectedItems&&n.selectedItems.push(e.item)}e.personaClick=function(i){if(e.selected=!e.selected,e.selected){if(n.selectMode===s.OrgChartSelectModeEnum.single){if(n.items)for(var r=0;r<n.items.length;r++)n.items[r]!==e&&(n.items[r].selected=!1);t.children().eq(0).addClass("is-selected"),
n.selectedItems=[],n.selectedItems.push(e.item)}n.selectMode===s.OrgChartSelectModeEnum.multiple&&(t.children().eq(0).addClass("is-selected"),n.selectedItems&&n.selectedItems.push(e.item))}else if(t.children().eq(0).removeClass("is-selected"),n.selectedItems){var o=n.selectedItems.indexOf(e.item);o>-1&&n.selectedItems.splice(o,1)}e.$apply()},n.selectMode!==s.OrgChartSelectModeEnum.single&&n.selectMode!==s.OrgChartSelectModeEnum.multiple||!e.item||t.children().eq(0).on("click",e.personaClick)},e}();t.OrgChartPersonaDirective=f;var p=function(){function e(){this.restrict="E",this.replace=!0,this.template='\n <div class="ms-Persona-imageArea">\n <i class="ms-Persona-placeholder ms-Icon ms-Icon--person"></i>\n <img class="ms-Persona-image" ng-src="{{ngSrc}}" />\n </div>\n ',this.scope={ngSrc:"="}}return e.factory=function(){var t=function(){return new e};return t},e}();t.OrgChartImageDirective=p;var m=function(){function e(){this.restrict="E",this.replace=!0,this.template='<div class="ms-Persona-presence" ></div>'}return e.factory=function(){var t=function(){return new e};return t},e.prototype.link=function(e,t,i,n){e.$parent.presence||t.css("display","none")},e}();t.OrgChartPresenceDirective=m;var h=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!0,this.template='<div class="ms-Persona-details" ng-transclude ></div>'}return e.factory=function(){var t=function(){return new e};return t},e}();t.OrgChartDetailsDirective=h;var v=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!0,this.template='<div class="ms-Persona-primaryText" ng-transclude ></div>'}return e.factory=function(){var t=function(){return new e};return t},e}();t.OrgChartPrimaryTextDirective=v;var g=function(){function e(){this.restrict="E",this.transclude=!0,this.replace=!0,this.template='<div class="ms-Persona-secondaryText" ng-transclude ></div>'}return e.factory=function(){var t=function(){return new e};return t},e}();t.OrgChartSecondaryTextDirective=g;var y=function(){function e(){}return e.factory=function(){return function(e,t){var i=[];if(e){for(var n=0;n<e.length;n++){var r=e[n][t];-1===i.indexOf(r)&&i.push(r)}return i}}},e}();t.OrgChartGroupByFilter=y,t.module=n.module("officeuifabric.components.orgchart",["officeuifabric.components"]).directive("uifOrgChart",c.factory()).directive("uifOrgChartGroup",l.factory()).directive("uifOrgChartGroupTitle",u.factory()).directive("uifOrgChartList",d.factory()).directive("uifOrgChartPersona",f.factory()).directive("uifOrgChartImage",p.factory()).directive("uifOrgChartPresence",m.factory()).directive("uifOrgChartDetails",h.factory()).directive("uifOrgChartPrimaryText",v.factory()).directive("uifOrgChartSecondaryText",g.factory()).filter("uifOrgChartGroupBy",y.factory)},function(e,t){"use strict";!function(e){e[e.available=0]="available",e[e.busy=1]="busy",e[e.away=2]="away",e[e.blocked=3]="blocked",e[e.dnd=4]="dnd",e[e.offline=5]="offline"}(t.OrgChartPresenceEnum||(t.OrgChartPresenceEnum={}));t.OrgChartPresenceEnum},function(e,t){"use strict";!function(e){e[e.standard=0]="standard",e[e.square=1]="square"}(t.OrgChartStyleEnum||(t.OrgChartStyleEnum={}));t.OrgChartStyleEnum},function(e,t){"use strict";!function(e){e[e.single=0]="single",e[e.multiple=1]="multiple"}(t.OrgChartSelectModeEnum||(t.OrgChartSelectModeEnum={}));t.OrgChartSelectModeEnum},function(e,t,i){"use strict";var n=i(2),r=i(39),o=i(43),s=i(21),a="uif-people-search",c=function(){function e(){this.people=[]}return e}();t.GroupedPeopleData=c;var l=function(){function e(e,t,i){this.$scope=e,this.$filter=t,this.$element=i}return e.prototype.getSelectedPersons=function(){return this.$scope.selectedPersons},e.prototype.pickerType=function(){var e=this.$scope.type;return n.isUndefined(e)?u[u.grouped]:this.$scope.type},e.prototype.searchQuery=function(){return this.$scope.searchQuery},e.prototype.search=function(){this.bindPeople(this.$scope.searchQuery),this.$scope.$broadcast(a,this.searchQuery())},e.prototype.bindPeople=function(e){var t=this,i=this.$scope.peopleCallback()(e);if(i=i||[],i instanceof Array)this.$scope.groups=this.createPeopleDataStructure(i);else if("function"==typeof i.then){var n=angular.element(this.$element[0].querySelector(".ms-PeoplePicker-searchMore")).controller(""+m.directiveName);n&&n.isSearching(!0);var r=this;i.then(function(e){r.$scope.groups=t.createPeopleDataStructure(e)})["finally"](function(){n&&n.isSearching(!1)})}},e.prototype.createPeopleDataStructure=function(e){var t=this,i=[];return angular.forEach(e,function(e){var n=t.$filter("filter")(i,{group:e.group}),r=1===n.length;if(r){var o=n[0];o.people.push(e)}else{var s=new c;s.group=e.group,s.people.push(e),i.push(s)}}),i},e.$inject=["$scope","$filter","$element"],e}();t.PeoplePickerController=l;var u;!function(e){e[e.grouped=0]="grouped",e[e.compact=1]="compact",e[e.memberList=2]="memberList",e[e.facePile=3]="facePile"}(u||(u={}));var d=function(){function e(t,i,a,c){var d=this;this.$document=t,this.$timeout=i,this.$log=a,this.$window=c,this.replace=!0,this.require=["ngModel",""+e.directiveName],this.restrict="E",this.transclude=!0,this.controller=l,this.scope={delay:"@uifSearchDelay",facePileHeader:"@?uifFacepileHeader",ngDisabled:"=?",ngModel:"=",onSelectedPersonClick:"&?uifSelectedPersonClick",peopleCallback:"&uifPeople",placeholder:"@?",type:"@?uifType"},this.templateTypes={},this.template=function(e,t){var i=t.uifType;if(n.isUndefined(i))return d.templateTypes[u.grouped];if(void 0===u[i])throw d.$log.error("Error [ngOfficeUiFabric] officeuifabric.components.peoplepicker - unsupported people picker type:\nthe type '"+i+"' is not supported by ng-Office UI Fabric as valid type for people picker.Supported types can be found under PeoplePickerTypes enum here:\nhttps://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/peoplepicker/peoplePickerDirective.ts"),"[ngOfficeUiFabric] - Error";return d.templateTypes[u[i]]},this.link=function(e,t,i,n,r){var o=n[0],s=n[1];d.initDisabledState(t,e,i),e.facePileHeader=e.facePileHeader||"Suggested contacts",e.$watchCollection("selectedPersons",function(e,i,n){d.resizeSearchField(t)}),o.$render=function(){o.$viewValue?e.selectedPersons=o.$viewValue:e.selectedPersons=[],d.resizeSearchField(t)},s.search();var a=null;e.onSearchKeyUp=function(i){var n=angular.element(t[0].querySelector(".ms-PeoplePicker-searchMore"));0!==n.length&&(e.searchQuery?t.addClass("is-searching"):t.removeClass("is-searching"),e.searchQuery?n.addClass("is-active"):n.removeClass("is-active"),d.animateSelectedPeople(t)),e.delay&&(null!=a&&d.$timeout.cancel(a),a=d.$timeout(function(){s.search()},e.delay))},e.onPeoplePickerActive=function(i){if(d.smoothScrollTo(t[0]),e.type!==u[u.facePile]){var n=angular.element(t[0].querySelector(".ms-PeoplePicker-results"));n[0].style.width=t[0].clientWidth-2+"px"}else e.type===u[u.facePile]&&d.animateSelectedPeople(t);i.stopPropagation(),t.addClass("is-active")},e.addPersonToSelectedPeople=function(t){-1===e.selectedPersons.indexOf(t)&&(e.selectedPersons.push(t),o.$setViewValue(e.selectedPersons))},e.removePersonFromSelectedPeople=function(t,i){var n=e.selectedPersons.indexOf(t);e.selectedPersons.splice(n,1),o.$setViewValue(e.selectedPersons),i.stopPropagation()},e.removePersonFromSearchResults=function(e,t,i){i.stopPropagation();var n=e.indexOf(t);e.splice(n,1)},d.$document.on("click",function(){t.removeClass("is-active")}),e.type===u[u.facePile]&&r(function(i){d.insertFacePileHeader(i,e,t),d.insertFacePileSearchMore(i,e,t)})},this.templateTypes[u.grouped]='<div class="ms-PeoplePicker">\n <div class="ms-PeoplePicker-searchBox">\n <div class="ms-PeoplePicker-persona" ng-repeat="person in selectedPersons track by $index">\n <uif-persona ng-click="onSelectedPersonClick()(person)"\n uif-style="'+r.PersonaStyleEnum[r.PersonaStyleEnum.square]+'"\n uif-size="'+o.PersonaSize[o.PersonaSize.xsmall]+'"\n uif-presence="{{person.presence}}"\n uif-image-url="{{person.icon}}">\n <uif-persona-initials uif-color="{{person.color}}">{{person.initials}}</uif-persona-initials>\n <uif-persona-primary-text>{{person.primaryText}}</uif-persona-primary-text>\n </uif-persona>\n <button ng-click="removePersonFromSelectedPeople(person, $event)" class="ms-PeoplePicker-personaRemove">\n <uif-icon uif-type="'+s.IconEnum[s.IconEnum.x]+'"></uif-icon>\n </button>\n </div>\n <input ng-click="onPeoplePickerActive($event)"\n placeholder="{{placeholder}}"\n ng-model="searchQuery"\n class="ms-PeoplePicker-searchField"\n ng-focus="onPeoplePickerActive($event)"\n ng-keyup="onSearchKeyUp($event)"\n type="text">\n </div>\n <div class="ms-PeoplePicker-results">\n <div class="ms-PeoplePicker-resultGroups">\n <div class="ms-PeoplePicker-resultGroup" ng-repeat="groupData in groups | orderBy:\'-order\'">\n <div class="ms-PeoplePicker-resultGroupTitle">{{groupData.group.name}}</div>\n <uif-people-picker-result-list\n ng-model="groupData.people"\n uif-person-click="addPersonToSelectedPeople"\n uif-person-close-click="removePersonFromSearchResults"\n uif-style="'+r.PersonaStyleEnum[r.PersonaStyleEnum.square]+'"\n uif-size="'+o.PersonaSize[o.PersonaSize.medium]+'"></uif-people-picker-result-list>\n </div>\n </div>\n <ng-transclude />\n </div>\n </div>',this.templateTypes[u.compact]='<div class="ms-PeoplePicker ms-PeoplePicker--compact">\n <div class="ms-PeoplePicker-searchBox">\n <div class="ms-PeoplePicker-persona" ng-repeat="person in selectedPersons track by $index">\n <uif-persona ng-click="onSelectedPersonClick()(person)"\n uif-style="'+r.PersonaStyleEnum[r.PersonaStyleEnum.square]+'"\n uif-size="'+o.PersonaSize[o.PersonaSize.xsmall]+'"\n uif-presence="{{person.presence}}"\n uif-image-url="{{person.icon}}">\n <uif-persona-initials uif-color="{{person.color}}">{{person.initials}}</uif-persona-initials>\n <uif-persona-primary-text>{{person.primaryText}}</uif-persona-primary-text>\n </uif-persona>\n <button ng-click="removePersonFromSelectedPeople(person, $event)" class="ms-PeoplePicker-personaRemove">\n <uif-icon uif-type="'+s.IconEnum[s.IconEnum.x]+'"></uif-icon>\n </button>\n </div>\n <input ng-click="onPeoplePickerActive($event)"\n ng-model="searchQuery"\n placeholder="{{placeholder}}"\n class="ms-PeoplePicker-searchField"\n ng-focus="onPeoplePickerActive($event)"\n ng-keyup="onSearchKeyUp($event)"\n type="text">\n </div>\n <div class="ms-PeoplePicker-results">\n <div class="ms-PeoplePicker-resultGroups">\n <div class="ms-PeoplePicker-resultGroup" ng-repeat="groupData in groups | orderBy:\'-order\'">\n <div class="ms-PeoplePicker-resultGroupTitle">{{groupData.group.name}}</div>\n <uif-people-picker-result-list\n ng-model="groupData.people"\n uif-picker-type="'+u[u.compact]+'"\n uif-person-click="addPersonToSelectedPeople"\n uif-person-close-click="removePersonFromSearchResults"\n uif-style="'+r.PersonaStyleEnum[r.PersonaStyleEnum.square]+'"\n uif-size="'+o.PersonaSize[o.PersonaSize.xsmall]+'"></uif-people-picker-result-list>\n </div>\n </div>\n <ng-transclude />\n </div>\n </div>',this.templateTypes[u.memberList]='\n <div class="ms-PeoplePicker ms-PeoplePicker--membersList">\n <div class="ms-PeoplePicker-searchBox">\n <input ng-click="onPeoplePickerActive($event)"\n placeholder="{{placeholder}}"\n ng-model="searchQuery"\n class="ms-PeoplePicker-searchField"\n ng-focus="onPeoplePickerActive($event)"\n ng-keyup="onSearchKeyUp($event)"\n type="text">\n </div>\n <div class="ms-PeoplePicker-results">\n <div class="ms-PeoplePicker-resultGroups">\n <div class="ms-PeoplePicker-resultGroup" ng-repeat="groupData in groups | orderBy:\'-order\'">\n <uif-people-picker-result-list\n ng-model="groupData.people"\n uif-person-click="addPersonToSelectedPeople"\n uif-style="'+r.PersonaStyleEnum[r.PersonaStyleEnum.round]+'"\n uif-size="'+o.PersonaSize[o.PersonaSize.medium]+'"></uif-people-picker-result-list>\n </div>\n </div>\n </div>\n <uif-people-picker-selected ng-model="selectedPersons"\n uif-selected-person-click="onSelectedPersonClick()"\n uif-person-close="removePersonFromSelectedPeople">\n <ng-transclude></ng-transclude>\n </uif-people-picker-selected>\n </div>',this.templateTypes[u.facePile]='\n <div class="ms-PeoplePicker ms-PeoplePicker--Facepile">\n <div class="ms-PeoplePicker-searchBox">\n <input ng-click="onPeoplePickerActive($event)"\n placeholder="{{placeholder}}"\n ng-model="searchQuery"\n class="ms-PeoplePicker-searchField"\n ng-focus="onPeoplePickerActive($event)"\n ng-keyup="onSearchKeyUp($event)"\n type="text">\n </div>\n <div class="ms-PeoplePicker-results">\n <div class="ms-PeoplePicker-peopleListHeader">\n <span>{{facePileHeader}}</span>\n </div>\n <div ng-repeat="groupData in groups | orderBy:\'-order\'">\n <uif-people-picker-result-list\n ng-model="groupData.people"\n uif-person-click="addPersonToSelectedPeople"\n uif-style="'+r.PersonaStyleEnum[r.PersonaStyleEnum.round]+'"\n uif-size="'+o.PersonaSize[o.PersonaSize.small]+'"></uif-people-picker-result-list>\n </div>\n <div class="uif-search-more"></div>\n </div>\n <uif-people-picker-selected ng-model="selectedPersons"\n uif-selected-person-click="onSelectedPersonClick()"\n uif-person-close="removePersonFromSelectedPeople">\n <div class="uif-people-header"></div>\n </uif-people-picker-selected>\n\n </div>'}return e.factory=function(){var t=function(t,i,n,r){return new e(t,i,n,r)};return t.$inject=["$document","$timeout","$log","$window"],t},e.prototype.initDisabledState=function(e,t,i){var n=angular.element(e[0].querySelector(".ms-PeoplePicker-searchField"));i.$observe("disabled",function(e){e?n.attr("disabled","disabled"):n.removeAttr("disabled")})},e.prototype.animateSelectedPeople=function(e){var t=angular.element(e[0].querySelector(".ms-PeoplePicker-selectedPeople"));t.addClass("ms-u-slideDownIn20"),setTimeout(function(){t.removeClass("ms-u-slideDownIn20")},1e3)},e.prototype.currentYPosition=function(){if(this.$window.pageYOffset)return this.$window.pageYOffset;var e=angular.element(this.$document[0]).find("body")[0];return e.scrollTop?e.scrollTop:0},e.prototype.elmYPosition=function(e){for(var t=e.offsetTop,i=e;i.offsetParent&&i.offsetParent!==document.body;)i=i.offsetParent,t+=i.offsetTop;return t},e.prototype.smoothScrollTo=function(e){var t=this.currentYPosition(),i=this.elmYPosition(e),n=i>t?i-t:t-i;if(100>n)return void window.scrollTo(0,i);var r=Math.round(n/30);r>=20&&(r=20);var o=Math.round(n/25),s=i>t?t+o:t-o,a=0;if(i>t)for(var c=t;i>c;c+=o)!function(e,t){setTimeout(function(){window.scrollTo(0,e)},t*r)}(s,a),s+=o,s>i&&(s=i),a++;else for(var c=t;c>i;c-=o)!function(e,t){setTimeout(function(){window.scrollTo(0,e)},t*r)}(s,a),s-=o,i>s&&(s=i),a++},e.prototype.insertFacePileHeader=function(e,t,i){for(var n=angular.element(i[0].querySelector(".uif-people-header")),r=0;r<e.length;r++){var o=angular.element(e[r]);if(o.hasClass("ms-PeoplePicker-selectedCount")){n.replaceWith(o);break}}},e.prototype.insertFacePileSearchMore=function(e,t,i){for(var n=angular.element(i[0].querySelector(".uif-search-more")),r=0;r<e.length;r++){var o=angular.element(e[r]);if(o.hasClass("ms-PeoplePicker-searchMore")){n.replaceWith(o);break}}},e.prototype.resizeSearchField=function(e){var t=angular.element(e[0].querySelector(".ms-PeoplePicker-searchBox")),i=angular.element(e[0].querySelector(".ms-PeoplePicker-searchField")),n=t.prop("offsetLeft"),r=t[0].clientWidth,o=n+r,s=t[0].querySelectorAll(".ms-PeoplePicker-persona");if(0===s.length)return void(i[0].style.width="100%");var a=angular.element(s[s.length-1]),c=a.prop("offsetLeft"),l=a[0].clientWidth,u=c+l,d=o-u-5;100>d?(d="100%",i[0].style.width="100%"):i[0].style.width=d+"px"},e.directiveName="uifPeoplePicker",e}();t.PeoplePickerDirective=d;var f=function(){function e(){this.replace=!0,this.restrict="E",this.transclude=!0,this.template='\n <ul class="ms-PeoplePicker-resultList">\n <li class="ms-PeoplePicker-result" ng-repeat="person in people track by $index">\n <div role="button" class="ms-PeoplePicker-resultBtn"\n ng-class="{\'ms-PeoplePicker-resultBtn--compact\': pickerType === \'compact\'}" ng-click="onPersonClick()(person)">\n <uif-persona\n uif-style="{{personStyle}}"\n uif-size="{{personSize}}"\n uif-presence="{{person.presence}}"\n uif-image-url="{{person.icon}}">\n <uif-persona-initials uif-color="{{person.color}}">{{person.initials}}</uif-persona-initials>\n <uif-persona-primary-text>{{person.primaryText}}</uif-persona-primary-text>\n <uif-persona-secondary-text>{{person.secondaryText}}</uif-persona-secondary-text>\n </uif-persona>\n <button\n ng-if="!person.additionalData && onPersonCloseClick()"\n ng-click="onPersonCloseClick()(people, person, $event)"\n class="ms-PeoplePicker-resultAction js-resultRemove">\n <uif-icon uif-type="'+s.IconEnum[s.IconEnum.x]+'"></uif-icon>\n </button>\n <button\n ng-if="person.additionalData"\n ng-click="expandAdditionalData($event)"\n class="ms-PeoplePicker-resultAction js-resultRemove">\n <uif-icon uif-type="'+s.IconEnum[s.IconEnum.chevronsDown]+'"></uif-icon>\n </button>\n </div>\n <div ng-if="person.additionalData" class="ms-PeoplePicker-resultAdditionalContent">\n <uif-people-picker-result-list\n ng-model="person.additionalData"\n uif-person-click="onPersonClick()"\n uif-person-close-click="onPersonCloseClick()"\n uif-picker-type="{{pickerType}}"\n uif-style="{{personStyle}}"\n uif-size="{{personSize}}"></uif-people-picker-result-list>\n </div>\n </li>\n </ul>',this.scope={onPersonClick:"&uifPersonClick",onPersonCloseClick:"&uifPersonCloseClick",people:"=ngModel",personSize:"@uifSize",personStyle:"@uifStyle",pickerType:"@uifPickerType"},this.link=function(e,t,i,n,r){e.expandAdditionalData=function(e){e.stopPropagation();for(var t=angular.element(e.target),i=0;10>i;i++){var n=t.parent();if(n.hasClass("ms-PeoplePicker-result")){n.toggleClass("is-expanded");break}t=n}}}}return e.factory=function(){var t=function(){return new e};return t},e.directiveName="uifPeoplePickerResultList",e}();t.PeoplePickerResultListDirective=f;var p=function(){function e(e,t){this.$scope=e,this.$element=t,this.searchCallbacks=[]}return e.prototype.isSearching=function(e){this.$scope.processing=e,e?this.$element.addClass("is-searching"):this.$element.removeClass("is-searching")},e.$inject=["$scope","$element"],e}();t.PeopleSearchMoreController=p;var m=function(){function e(){this.replace=!0,this.restrict="E",this.transclude=!0,this.require="^^"+d.directiveName,this.controller=p,this.template='\n <div class="ms-PeoplePicker-searchMore js-searchMore"\n ng-class="{\'ms-PeoplePicker-searchMore--disconnected\': disconnected}">\n <button ng-if="pickerType === \''+u[u.grouped]+'\' && !disconnected"\n ng-click="onSearch($event)" class="ms-PeoplePicker-searchMoreBtn">\n <div class="ms-PeoplePicker-searchMoreIcon">\n <uif-icon ng-if="!disconnected" uif-type="'+s.IconEnum[s.IconEnum.search]+'"></uif-icon>\n <uif-icon ng-if="disconnected" uif-type="'+s.IconEnum[s.IconEnum.alert]+'"></uif-icon>\n </div>\n <ng-transclude />\n </button>\n <div role="button" ng-if="pickerType === \''+u[u.compact]+'\' && !disconnected"\n ng-click="onSearch($event)" class="ms-PeoplePicker-searchMoreBtn ms-PeoplePicker-searchMoreBtn--compact">\n <div class="ms-PeoplePicker-searchMoreIcon">\n <uif-icon ng-if="!disconnected" uif-type="'+s.IconEnum[s.IconEnum.search]+'"></uif-icon>\n <uif-icon ng-if="disconnected" uif-type="'+s.IconEnum[s.IconEnum.alert]+'"></uif-icon>\n </div>\n <ng-transclude />\n </div>\n <div role="button" ng-if="pickerType === \''+u[u.facePile]+'\' && !disconnected"\n ng-click="onSearch($event)" class="ms-PeoplePicker-searchMoreBtn ms-PeoplePicker-searchMoreBtn--compact">\n <div class="ms-PeoplePicker-searchMoreIcon">\n <uif-icon ng-if="!disconnected" uif-type="'+s.IconEnum[s.IconEnum.search]+'"></uif-icon>\n <uif-icon ng-if="disconnected" uif-type="'+s.IconEnum[s.IconEnum.alert]+'"></uif-icon>\n </div>\n <ng-transclude />\n </div>\n <div role="button" ng-if="disconnected" class="ms-PeoplePicker-searchMoreBtn">\n <div class="ms-PeoplePicker-searchMoreIcon">\n <uif-icon uif-type="'+s.IconEnum[s.IconEnum.alert]+'"></uif-icon>\n </div>\n <ng-transclude />\n </div>\n <uif-spinner ng-show="processing"></uif-spinner>\n </div>',this.scope={disconnected:"=uifDisconnected"},this.link=function(e,t,i,n,r){e.pickerType=n.pickerType(),e.onSearch=function(t){t.stopPropagation(),n.search(),e.$broadcast(a,n.searchQuery())}}}return e.factory=function(){var t=function(){return new e};return t},e.directiveName="uifPeopleSearchMore",e}();t.PeopleSearchMoreDirective=m;var h=function(){function e(e){var t=this;this.$scope=e,this.$scope.$on(a,function(e,i){t.$scope.searchQuery=i})}return e.$inject=["$scope"],e}();t.PrimaryTextController=h;var v=function(){function e(){this.replace=!0,this.restrict="E",this.require=["^^"+m.directiveName,"^^"+d.directiveName],this.transclude=!0,this.controller=h,this.template='\n <div ng-show="!$parent.$parent.disconnected" class="ms-PeoplePicker-searchMorePrimary">\n <div ng-show="$parent.$parent.processing">{{searchingForText}} {{searchQuery}}</div>\n <ng-transclude ng-show="!$parent.$parent.processing"></ng-transclude>\n </div>',this.scope={searchingForText:"@?uifSearchForText"},this.link=function(e,t,i,n,r){e.searchingForText=e.searchingForText||"Searching for"}}return e.factory=function(){var t=function(){return new e};return t},e.directiveName="uifPrimaryText",e}();t.PrimaryTextDirective=v;var g=function(){function e(){this.replace=!0,this.restrict="E",this.transclude=!0,this.template='\n <div ng-show="!$parent.$parent.disconnected" class="ms-PeoplePicker-searchMoreSecondary">\n <ng-transclude></ng-transclude>\n </div>',this.scope=!0}return e.factory=function(){var t=function(){return new e};return t},e.directiveName="uifSecondaryText",e}();t.SecondaryTextDirective=g;var y=function(){function e(){this.replace=!0,this.restrict="E",this.transclude=!0,this.template='\n <div ng-show="$parent.$parent.disconnected" class="ms-PeoplePicker-searchMorePrimary">\n <ng-transclude></ng-transclude>\n </div>',this.scope=!0}return e.factory=function(){var t=function(){return new e};return t},e.directiveName="uifDisconnectedText",e}();t.DisconnectedTextDirective=y;var b=function(){function e(){this.replace=!0,this.restrict="E",this.transclude=!0,this.template='\n <div class="ms-PeoplePicker-selected" ng-class="{\'is-active\': selectedPeople && selectedPeople.length > 0}">\n <div class="ms-PeoplePicker-selectedHeader">\n <ng-transclude></ng-transclude>\n </div>\n <ul class="ms-PeoplePicker-selectedPeople">\n <li class="ms-PeoplePicker-selectedPerson" ng-repeat="person in selectedPeople track by $index">\n <uif-persona ng-click="onSelectedPersonClick()(person)"\n uif-style="'+r.PersonaStyleEnum[r.PersonaStyleEnum.round]+'"\n uif-size="'+o.PersonaSize[o.PersonaSize.small]+'"\n uif-presence="{{person.presence}}"\n uif-image-url="{{person.icon}}">\n <uif-persona-initials uif-color="{{person.color}}">{{person.initials}}</uif-persona-initials>\n <uif-persona-primary-text>{{person.primaryText}}</uif-persona-primary-text>\n <uif-persona-secondary-text>{{person.secondaryText}}</uif-persona-secondary-text>\n </uif-persona>\n <button ng-click="removePersonFromSelectedPeople()(person, $event)" class="ms-PeoplePicker-resultAction js-resultRemove">\n <uif-icon uif-type="'+s.IconEnum[s.IconEnum.x]+'"></uif-icon>\n </button>\n </li>\n </ul>\n </div>',this.scope={onSelectedPersonClick:"&?uifSelectedPersonClick",removePersonFromSelectedPeople:"&uifPersonClose",selectedPeople:"=ngModel"}}return e.factory=function(){var t=function(){return new e};return t},e.directiveName="uifPeoplePickerSelected",e}();t.PeoplePickerSelectedDirective=b;var P=function(){function e(){this.require="^^"+d.directiveName,this.replace=!0,this.restrict="E",this.transclude=!0,this.scope=!0,this.template='<span class="ms-PeoplePicker-selectedCount" ng-transclude></span>',this.link=function(e,t,i,n,r){e.selectedPersons=n.getSelectedPersons()}}return e.factory=function(){var t=function(){return new e};return t},e.directiveName="uifSelectedPeopleHeader",e}();t.SelectedPeopleHeaderDirective=P,t.module=n.module("officeuifabric.components.peoplepicker",["officeuifabric.components"]).directive(d.directiveName,d.factory()).directive(v.directiveName,v.factory()).directive(g.directiveName,g.factory()).directive(f.directiveName,f.factory()).directive(y.directiveName,y.factory()).directive(b.directiveName,b.factory()).directive(P.directiveName,P.factory()).directive(m.directiveName,m.factory())}])});