/*! * 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='
  • ',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='
    ',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"),o.addClass("ms-Button-label").append(e[s]),t.append(o)),"UIF-ICON"===e[s].tagName&&(o=n.element(""),o.addClass("ms-Button-icon").append(e[s]),t.append(o));break;case r.ButtonTypeEnum[r.ButtonTypeEnum.compound]:for(var s=0;s"),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"),o.addClass("ms-Button-label").append(e[s]),t.append(o)),"UIF-ICON"===e[s].tagName&&(o=n.element(""),o.addClass("ms-Button-icon").append(e[s]),t.append(o))}})},e.prototype._populateHtmlTemplates=function(){this.templateOptions[o.ButtonTemplateType.actionButton]='',this.templateOptions[o.ButtonTemplateType.actionLink]='\n \n ',this.templateOptions[o.ButtonTemplateType.primaryButton]='',this.templateOptions[o.ButtonTemplateType.primaryLink]='\n \n ',this.templateOptions[o.ButtonTemplateType.commandButton]='',this.templateOptions[o.ButtonTemplateType.commandLink]='',this.templateOptions[o.ButtonTemplateType.compoundButton]='',this.templateOptions[o.ButtonTemplateType.compoundLink]='',this.templateOptions[o.ButtonTemplateType.heroButton]='',this.templateOptions[o.ButtonTemplateType.heroLink]=''},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=''}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='

    '}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='

    '}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='
    ',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"+'
    ',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(''),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='
    ',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='
    ',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\n \n
    \n \n
    \n
    \n \n
    \n '}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='
    ',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='
    \n \n
    \n \n
    \n
    ',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=' ',angular.element(t[0].querySelector(".ms-CommandBarItem-overflow .ms-CommandBarItem-linkWrapper ul")).remove(),angular.forEach(e.hiddenItems,function(e){i+=e.submenu?'\n \n \n \n ':'\n '}),i+="";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='',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 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=''}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 . 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]='
  • \n \n \n \n
    \n
  • ',this.templateTypes[n.link]='
  • \n \n
  • ',this.templateTypes[n.header]="\n
  • \n \n
  • ",this.templateTypes[n.divider]='
  • '}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 you need to specify either 'uif-text' as attribute or 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"+t.text+""))},e.prototype.insertSubMenu=function(e,t,i){for(var n=0;n',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 . 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='
    Go to today
    {{highlightedValue.year}}
    {{month}}
    {{highlightedValue.year - 10}} - {{highlightedValue.year}}
    {{year}}
    ',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="
    ",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='
    '}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='
    '}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='
    '}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='

    '}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="
    ",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='
  • ',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{{selectedTitle}}
    ',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='',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=''}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='',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='
      ',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='
    • ',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',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='',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='',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='',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='
      ',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='
      ',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='
      ',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='
      ',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='
      ',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='
      {{ uifActionLabel }}
      ',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 you need to specify 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=this.SMALL_BREAK_POINT?this._resizeRegular():this._resizeSmall()},e.prototype._resizeRegular=function(){if(this._clientWidth-this._bufferSize>this._initTextWidth&&this._initTextWidththis._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='
      ',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 you need to specify 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")),n.append(o);break}}},e.prototype.hasItemContent=function(e,t){for(var i=0;i\n
      \n \n
      \n \n
        \n
        \n
      \n
      ',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"),"
      "):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
    • \n \n
    • ",this.templateTypes[a.menu]='\n
    • \n \n \n
      \n
    • '}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 you need to specify either 'uif-text' as attribute or 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"+t.text+""))},e.prototype.insertMenu=function(e,t,i){for(var n=0;n\n
      \n \n
      \n ',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="
      ",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='
      \n
      \n
      \n
      \n \n
      \n
      \n
      \n
      \n
      ',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. 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='

      ',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='

        ',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';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?'
      • ':'
      • '}}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=''}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='
        '}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='
        ';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='
        ',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='
        ',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',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='
        ',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
        {{uifName}}
        {{uifDescription}}
        ',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='',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='
        ',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("
        ");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("
        "),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.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="",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'),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",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="",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  ')}}),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="",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="",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="
        "+'{{uifDescription}}
        ',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='
        ',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='
        ',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='
        '}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='
        '}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='
          '}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='
        • ',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-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
          \n \n \n
          \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='
          '}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='
          '}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='
          '}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='
          '}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\n \n
          \n
          \n
          \n
          {{groupData.group.name}}
          \n \n
          \n
          \n \n
          \n ',this.templateTypes[u.compact]='
          \n \n
          \n
          \n
          \n
          {{groupData.group.name}}
          \n \n
          \n
          \n \n
          \n
          ',this.templateTypes[u.memberList]='\n
          \n \n
          \n
          \n
          \n \n
          \n
          \n
          \n \n \n \n
          ',this.templateTypes[u.facePile]='\n
          \n \n
          \n
          \n {{facePileHeader}}\n
          \n
          \n \n
          \n
          \n
          \n \n
          \n
          \n\n
          '}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;rd?(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
            \n
          • \n
            \n \n {{person.initials}}\n {{person.primaryText}}\n {{person.secondaryText}}\n \n \n \n \n \n \n \n
            \n
            \n \n
            \n
          • \n
          ',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
          \n \n
          \n
          \n \n \n
          \n \n
          \n
          \n
          \n \n \n
          \n \n
          \n
          \n
          \n \n
          \n \n
          \n \n
          ',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
          \n
          {{searchingForText}} {{searchQuery}}
          \n \n
          ',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
          \n \n
          ',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
          \n \n
          ',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
          \n
          \n \n
          \n
            \n
          • \n \n {{person.initials}}\n {{person.primaryText}}\n {{person.secondaryText}}\n \n \n
          • \n
          \n
          ',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='',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())}])});