/** * FileName att-style-guide * Version 2.17.0 * Build number 5c64ecd381d5984c483cdfaa078a1890 * Date 11/23/2015 */ !function(angular,window){return angular.module("att.abs",["att.abs.tpls","att.abs.utilities","att.abs.position","att.abs.transition","att.abs.accordion","att.abs.alert","att.abs.boardStrip","att.abs.breadCrumbs","att.abs.buttons","att.abs.checkbox","att.abs.colorselector","att.abs.datepicker","att.abs.devNotes","att.abs.dividerLines","att.abs.dragdrop","att.abs.drawer","att.abs.message","att.abs.formField","att.abs.hourpicker","att.abs.iconButtons","att.abs.links","att.abs.loading","att.abs.modal","att.abs.pagination","att.abs.paneSelector","att.abs.tooltip","att.abs.popOvers","att.abs.profileCard","att.abs.progressBars","att.abs.radio","att.abs.scrollbar","att.abs.search","att.abs.select","att.abs.slider","att.abs.splitButtonDropdown","att.abs.splitIconButton","att.abs.stepSlider","att.abs.steptracker","att.abs.table","att.abs.tableMessages","att.abs.tabs","att.abs.tagBadges","att.abs.textOverflow","att.abs.toggle","att.abs.treeview","att.abs.typeAhead","att.abs.verticalSteptracker","att.abs.videoControls"]),angular.module("att.abs.tpls",["app/scripts/ng_js_att_tpls/accordion/accordion.html","app/scripts/ng_js_att_tpls/accordion/accordion_alt.html","app/scripts/ng_js_att_tpls/accordion/attAccord.html","app/scripts/ng_js_att_tpls/accordion/attAccordBody.html","app/scripts/ng_js_att_tpls/accordion/attAccordHeader.html","app/scripts/ng_js_att_tpls/alert/alert.html","app/scripts/ng_js_att_tpls/boardStrip/attAddBoard.html","app/scripts/ng_js_att_tpls/boardStrip/attBoard.html","app/scripts/ng_js_att_tpls/boardStrip/attBoardStrip.html","app/scripts/ng_js_att_tpls/buttons/buttonDropdown.html","app/scripts/ng_js_att_tpls/colorselector/colorselector.html","app/scripts/ng_js_att_tpls/datepicker/dateFilter.html","app/scripts/ng_js_att_tpls/datepicker/dateFilterList.html","app/scripts/ng_js_att_tpls/datepicker/datepicker.html","app/scripts/ng_js_att_tpls/datepicker/datepickerPopup.html","app/scripts/ng_js_att_tpls/dividerLines/dividerLines.html","app/scripts/ng_js_att_tpls/dragdrop/fileUpload.html","app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlert.html","app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlertPrv.html","app/scripts/ng_js_att_tpls/formField/creditCardImage.html","app/scripts/ng_js_att_tpls/formField/cvcSecurityImg.html","app/scripts/ng_js_att_tpls/hourpicker/hourpicker.html","app/scripts/ng_js_att_tpls/links/readMore.html","app/scripts/ng_js_att_tpls/loading/loading.html","app/scripts/ng_js_att_tpls/modal/backdrop.html","app/scripts/ng_js_att_tpls/modal/tabbedItem.html","app/scripts/ng_js_att_tpls/modal/tabbedOverlayItem.html","app/scripts/ng_js_att_tpls/modal/window.html","app/scripts/ng_js_att_tpls/pagination/pagination.html","app/scripts/ng_js_att_tpls/paneSelector/innerPane.html","app/scripts/ng_js_att_tpls/paneSelector/paneGroup.html","app/scripts/ng_js_att_tpls/paneSelector/sidePane.html","app/scripts/ng_js_att_tpls/tooltip/tooltip-popup.html","app/scripts/ng_js_att_tpls/popOvers/popOvers.html","app/scripts/ng_js_att_tpls/profileCard/addUser.html","app/scripts/ng_js_att_tpls/profileCard/profileCard.html","app/scripts/ng_js_att_tpls/progressBars/progressBars.html","app/scripts/ng_js_att_tpls/scrollbar/scrollbar.html","app/scripts/ng_js_att_tpls/search/search.html","app/scripts/ng_js_att_tpls/select/select.html","app/scripts/ng_js_att_tpls/select/textDropdown.html","app/scripts/ng_js_att_tpls/slider/maxContent.html","app/scripts/ng_js_att_tpls/slider/minContent.html","app/scripts/ng_js_att_tpls/slider/slider.html","app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdown.html","app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdownItem.html","app/scripts/ng_js_att_tpls/splitIconButton/splitIcon.html","app/scripts/ng_js_att_tpls/splitIconButton/splitIconButton.html","app/scripts/ng_js_att_tpls/splitIconButton/splitIconButtonGroup.html","app/scripts/ng_js_att_tpls/stepSlider/attStepSlider.html","app/scripts/ng_js_att_tpls/steptracker/step-tracker.html","app/scripts/ng_js_att_tpls/steptracker/step.html","app/scripts/ng_js_att_tpls/steptracker/timeline.html","app/scripts/ng_js_att_tpls/steptracker/timelineBar.html","app/scripts/ng_js_att_tpls/steptracker/timelineDot.html","app/scripts/ng_js_att_tpls/table/attTable.html","app/scripts/ng_js_att_tpls/table/attTableBody.html","app/scripts/ng_js_att_tpls/table/attTableHeader.html","app/scripts/ng_js_att_tpls/tableMessages/attTableMessage.html","app/scripts/ng_js_att_tpls/tableMessages/attUserMessage.html","app/scripts/ng_js_att_tpls/tabs/floatingTabs.html","app/scripts/ng_js_att_tpls/tabs/genericTabs.html","app/scripts/ng_js_att_tpls/tabs/menuTab.html","app/scripts/ng_js_att_tpls/tabs/parentmenuTab.html","app/scripts/ng_js_att_tpls/tabs/simplifiedTabs.html","app/scripts/ng_js_att_tpls/tabs/submenuTab.html","app/scripts/ng_js_att_tpls/tagBadges/tagBadges.html","app/scripts/ng_js_att_tpls/toggle/demoToggle.html","app/scripts/ng_js_att_tpls/typeAhead/typeAhead.html","app/scripts/ng_js_att_tpls/verticalSteptracker/vertical-step-tracker.html","app/scripts/ng_js_att_tpls/videoControls/photoControls.html","app/scripts/ng_js_att_tpls/videoControls/videoControls.html"]),angular.module("att.abs.utilities",[]).filter("unsafe",["$sce",function(e){return function(t){return e.trustAsHtml(t)}}]).filter("highlight",function(){function e(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(t,n,i){return n&&t?t.replace(new RegExp(e(n),"gi"),'$&'):t}}).filter("attLimitTo",function(){return function(e,t,n){var i=[],a=t,s=n;return isNaN(s)&&(s=0),i=e&&!isNaN(a)?e.slice(s,s+a):e}}).filter("startsWith",function(){return"function"!=typeof String.prototype.startsWith&&(String.prototype.startsWith=function(e){return 0===this.indexOf(e)}),function(e,t){if(void 0===t||""===t)return e;var n=[];return angular.forEach(e,function(e){e.title.toLowerCase().startsWith(t.toLowerCase())&&n.push(e)}),n}}).directive("attInputDeny",[function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,i){var a=null;n.$observe("attInputDeny",function(e){e&&(a=new RegExp(e,"g"))}),t.bind("input",function(){var t=i.$viewValue&&i.$viewValue.replace(a,"");t!==i.$viewValue&&(i.$setViewValue(t),i.$render(),e.$apply())})}}}]).directive("attAccessibilityClick",[function(){return{restrict:"A",link:function(e,t,n){var i=[];n.$observe("attAccessibilityClick",function(e){e&&(i=e.split(","))}),t.bind("keydown",function(e){var n=function(){var t=!1;return e.keyCode||(e.which?e.keyCode=e.which:e.charCode&&(e.keyCode=e.charCode)),e.keyCode&&i.indexOf(e.keyCode.toString())>-1&&(t=!0),t};i.length>0&&n()&&(t[0].click(),e.preventDefault())})}}}]).directive("attElementFocus",[function(){return{restrict:"A",link:function(e,t,n){e.$watch(n.attElementFocus,function(e){e&&t[0].focus()})}}}]).directive("focusOn",["$timeout",function(e){var t=function(e){if(!e.focusOn&&""!==e.focusOn)throw"FocusOnCondition missing attribute to evaluate"};return{restrict:"A",link:function(n,i,a){t(a),n.$watch(a.focusOn,function(t){t&&e(function(){i[0].focus()})})}}}]).constant("whenScrollEndsConstants",{threshold:100,width:0,height:0}).directive("whenScrollEnds",function(e,t){return{restrict:"A",link:function(n,i,a){var s=parseInt(a.threshold,10)||e.threshold;return a.axis&&""!==a.axis?void("x"===a.axis?(visibleWidth=parseInt(a.width,10)||e.width,i.css("width")&&(visibleWidth=i.css("width").split("px")[0]),i[0].addEventListener("scroll",function(){var e=i.prop("scrollWidth");void 0===e&&(e=1);var t=e-visibleWidth;t-i[0].scrollLeft<=s&&n.$apply(a.whenScrollEnds)})):"y"===a.axis&&(visibleHeight=parseInt(a.height,10)||e.height,i.css("width")&&(visibleHeight=i.css("height").split("px")[0]),i[0].addEventListener("scroll",function(){var e=i.prop("scrollHeight");void 0===e&&(e=1);var t=e-visibleHeight;t-i[0].scrollTop<=s&&n.$apply(a.whenScrollEnds)}))):void t.warn("axis attribute must be defined for whenScrollEnds.")}}}).directive("validImei",function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,i){i.$parsers.unshift(function(t){if(t){if(e.valid=!1,isNaN(t)||15!==t.length)e.valid=!1;else{for(var n=0,a=[],s=0;15>s;s++)a[s]=parseInt(t.substring(s,s+1),10),s%2!==0&&(a[s]=parseInt(2*a[s],10)),a[s]>9&&(a[s]=parseInt(a[s]%10,10)+parseInt(a[s]/10,10)),n+=parseInt(a[s],10);n%10===0?e.valid=!0:e.valid=!1}i.$setValidity("invalidImei",e.valid)}return e.valid?t:void 0})}}}).directive("togglePassword",function(){return{restrict:"A",transclude:!1,link:function(e,t,n,i){t.bind("click",function(){var e=n.togglePassword;t[0].innerHTML="Show"===t[0].innerHTML?"Hide":"Show";var i=angular.element(document.querySelector("#"+e))[0].type;angular.element(document.querySelector("#"+e))[0].type="password"===i?"text":"password"})}}}).factory("events",function(){var e=function(e){e.stopPropagation?e.stopPropagation():e.returnValue=!1},t=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1};return{stopPropagation:e,preventDefault:t}}).factory("$documentBind",["$document","$timeout",function(e,t){var n=function(n,i,a){a.$watch(n,function(n){t(function(){n?e.bind("click",i):e.unbind("click",i)})})},i=function(n,i,a,s,r,o){r?(o||(o=0),s.$watch(i,function(i,s){i!==s&&t(function(){i?e.bind(n,a):e.unbind(n,a)},o)})):s.$watch(i,function(t,i){t!==i&&(t?e.bind(n,a):e.unbind(n,a))})};return{click:n,event:i}}]).factory("DOMHelper",function(){function e(e){var t=angular.element(e),n=parseInt(t.attr("tabindex"),10)>=0?!0:!1,i=t[0].tagName.toUpperCase();return n||"A"===i||"INPUT"===i||"TEXTAREA"===i?!(t[0].disabled||t[0].readOnly):!1}function t(e){return 1==e.nodeType&&"SCRIPT"!=e.nodeName&&"STYLE"!=e.nodeName}function n(i){var i=i||document.getElementsByTagName("body")[0];if(t(i)&&e(i))return i;if(!i.hasChildNodes())return void 0;for(var a=i.firstChild;a;){var s=n(a);if(s)return s;a=a.nextSibling}}var i=function(e){var t=e;return e.hasOwnProperty("length")&&(t=e[0]),n(t)};return{firstTabableElement:i}}).factory("keymap",function(){return{KEY:{TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,COMMAND:91},MAP:{91:"COMMAND",8:"BACKSPACE",9:"TAB",13:"ENTER",16:"SHIFT",17:"CTRL",18:"ALT",19:"PAUSEBREAK",20:"CAPSLOCK",27:"ESC",32:"SPACE",33:"PAGE_UP",34:"PAGE_DOWN",35:"END",36:"HOME",37:"LEFT",38:"UP",39:"RIGHT",40:"DOWN",43:"+",44:"PRINTSCREEN",45:"INSERT",46:"DELETE",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NUMLOCK",145:"SCROLLLOCK",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},isControl:function(e){var t=e.keyCode;switch(t){case this.KEY.COMMAND:case this.KEY.SHIFT:case this.KEY.CTRL:case this.KEY.ALT:return!0}return e.metaKey?!0:!1},isFunctionKey:function(e){return e=e.keyCode?e.keyCode:e,e>=112&&123>=e},isVerticalMovement:function(e){return~[this.KEY.UP,this.KEY.DOWN].indexOf(e)},isHorizontalMovement:function(e){return~[this.KEY.LEFT,this.KEY.RIGHT,this.KEY.BACKSPACE,this.KEY.DELETE].indexOf(e)},isAllowedKey:function(e){return~[this.KEY.SPACE,this.KEY.ESC,this.KEY.ENTER].indexOf(e)||this.isHorizontalMovement(e)||this.isVerticalMovement(e)}}}).factory("keyMapAc",function(){return{keys:{32:" ",33:"!",34:'"',35:"#",36:"$",37:"%",38:"&",39:"'",40:"(",41:")",42:"*",43:"+",44:",",45:"-",46:".",47:"/",58:":",59:";",60:"<",61:"=",62:">",63:"?",64:"@",91:"[",92:"\\",93:"]",94:"^",95:"_",96:"`",123:"{",124:"|",125:"}",126:"~"},keyRange:{startNum:"48",endNum:"57",startSmallLetters:"97",endSmallLetters:"122",startCapitalLetters:"65",endCapitalLetters:"90"},allowedKeys:{TAB:8,BACKSPACE:9,DELETE:16}}}).factory("$attElementDetach",function(){var e=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)};return e}).factory("$ieVersion",function(){var ie=null,loadIEVersion=function(){var isIE10=eval("/*@cc_on!@*/false")&&10===document.documentMode;if(isIE10)return 10;var v=3,div=document.createElement("div"),all=div.getElementsByTagName("i");do div.innerHTML="";while(all[0]);return v>4?v:void 0};return function(){return null===ie&&(ie=loadIEVersion()),ie}}),function(){String.prototype.toSnakeCase=function(){return this.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})};var e=function(e,t){e=e||"",t=!isNaN(t)&&t||0;for(var n="",i=0;t>i;i++)n+=e;return n},t=function(t,n,i,a){return t=t||"",n=!isNaN(n)&&n||0,i=i||"",n>t.length?a?e(i,n-t.length)+t:t+e(i,n-t.length):t};String.prototype.lPad=function(e,n){return t(this,e,n,!0)},String.prototype.rPad=function(e,n){return t(this,e,n,!1)},Array.prototype.indexOf||(Array.prototype.indexOf=function(e){for(var t=0;t0&&(this.index=0),e.$on("$destroy",function(){t.removeGroup(e)})},this.removeGroup=function(e){var t=this.groups.indexOf(e);-1!==t&&this.groups.splice(this.groups.indexOf(e),1)}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",transclude:!0,replace:!1,scope:{cClass:"@css",expandAll:"=?",collapseAll:"=?"},template:'
',link:function(e,t,n,i){e.$watch("expandAll",function(t){t&&(i.expandAll(),e.expandAll=!1)}),e.$watch("collapseAll",function(t){t&&(i.collapseAll(),e.collapseAll=!1)})}}}).directive("accordionGroup",[function(){return{require:["^accordion","accordionGroup"],restrict:"EA",transclude:!0,replace:!0,templateUrl:"app/scripts/ng_js_att_tpls/accordion/accordion.html",scope:{heading:"@",isOpen:"=?"},controller:["$scope",function(e){e.showicon=!0,this.setHeading=function(t){this.heading=t,e.showicon=!1},this.isIsOpen=function(){return e.isOpen}}],link:function(e,t,n,i){var a=i[0],s=i[1],r={tab:9,enter:13,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,left:37,up:38,right:39,down:40},o=t.children().eq(0),l=n.parentLink;e.setFocus=!1,e.childLength=n.childLength,e.headingIconClass=n.imageSource;var c=function(t){var n=!0;switch(t.keyCode){case r.enter:t.preventDefault(),e.toggle(),e.$apply();break;case r.up:case r.left:t.preventDefault(),a.cycle(e,!1);break;case r.down:case r.right:t.preventDefault(),a.cycle(e,!0);break;default:n=!1}return t.stopPropagation(),n};angular.isUndefined(e.isOpen)&&(e.isOpen=!1),o.bind("keydown",c),a.addGroup(e),0===e.index&&(e.focused=!0),s.toggle=e.toggle=function(){return e.childLength>0?(e.isOpen=!e.isOpen,a.focus(e),e.isOpen):void(window.location.href=l)},e.$watch("isOpen",function(t){t&&a.closeOthers(e)}),e.$watch("focused",function(t){t?(o.attr("tabindex","0"),e.setFocus&&o[0].focus()):(e.setFocus=!1,o.attr("tabindex","-1"))})}}}]).directive("accordionToggle",function(){return{restrict:"EA",require:"^accordionGroup",scope:{expandIcon:"@",collapseIcon:"@"},link:function(e,t,n,i){var a=function(n){e.expandIcon&&e.collapseIcon&&(n?(t.removeClass(e.expandIcon),t.addClass(e.collapseIcon)):(t.removeClass(e.collapseIcon),t.addClass(e.expandIcon)))};t.bind("click",function(){i.toggle(),e.$apply()}),e.$watch(function(){return i.isIsOpen()},function(e){a(e)})}}}).directive("accordionHeading",function(){return{restrict:"EA",transclude:!0,template:"",require:"^accordionGroup",compile:function(e,t,n){var i=function(e,t,i,a){n(e,function(e){t.append(e),a.setHeading(t)})};return i}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(e,t,n,i){e.$watch(function(){return i[n.accordionTransclude]},function(e){e&&t.find("span").eq(0).prepend(e)})}}}).directive("attGoTop",["$scrollTo",function(e){return{restrict:"A",transclude:!1,link:function(t,n,i){n.bind("click",function(){e(0,i.attGoTop)})}}}]).directive("attGoTo",["$anchorScroll","$location",function(e,t){return{restrict:"A",transclude:!1,link:function(n,i,a){i.bind("click",function(){var n=a.attGoTo;t.hash()!==n?t.hash(a.attGoTo):e()})}}}]).directive("freeStanding",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:!0,template:"
\n
\n\n
",compile:function(e,t,n){var i=function(e,t,i){e.content="",n(e,function(e){t.find("span").append(e)}),e.showAccordion=!1,e.btnText=e.showAccordion?i.hideMsg:i.showMsg,e.fsToggle=function(){e.showAccordion=!e.showAccordion,e.btnText=e.showAccordion?i.hideMsg:i.showMsg}};return i}}}).directive("expanders",function(){return{restrict:"EA",replace:!0,transclude:!0,template:"
",controller:["$scope",function(e){var t=null;this.setScope=function(e){t=e},this.toggle=function(){return e.isOpen=t.isOpen=!t.isOpen,t.isOpen}}],link:function(e){e.isOpen=!1}}}).directive("expanderHeading",function(){return{require:"^expanders",restrict:"EA",replace:!0,transclude:!0,scope:!0,template:"
"}}).directive("expanderBody",function(){return{restrict:"EA",require:"^expanders",replace:!0,transclude:!0,scope:{},template:"
",link:function(e,t,n,i){e.isOpen=!1,i.setScope(e)}}}).directive("expanderToggle",function(){return{restrict:"EA",require:"^expanders",scope:{expandIcon:"@",collapseIcon:"@"},link:function(e,t,n,i){var a=!1,s=function(){e.expandIcon&&e.collapseIcon&&(a?(t.removeClass(e.expandIcon),t.addClass(e.collapseIcon)):(t.removeClass(e.collapseIcon),t.addClass(e.expandIcon)))};t.bind("keydown",function(t){13===t.keyCode&&e.toggleit()}),t.bind("click",function(){e.toggleit()}),e.toggleit=function(){a=i.toggle(),s(),e.$apply()},s()}}}).directive("collapse",["$transition",function(e){var t={open:{marginTop:null,marginBottom:null,paddingTop:null,paddingBottom:null,display:"block"},closed:{marginTop:0,marginBottom:0,paddingTop:0,paddingBottom:0,display:"none"}},n=function(e,n,i){n.removeClass("collapse"),n.css({height:i}),0===i?n.css(t.closed):n.css(t.open),n.addClass("collapse")};return{link:function(i,a,s){var r,o=!0;i.$watch(function(){return a[0].scrollHeight},function(){0===a[0].scrollHeight||r||(o?n(i,a,a[0].scrollHeight+"px"):n(i,a,"auto"))});var l,c=function(t){return l&&l.cancel(),l=e(a,t),l.then(function(){l=void 0},function(){l=void 0}),l},d=function(){i.postTransition=!0,o?(o=!1,r||n(i,a,"auto")):c(angular.extend({height:a[0].scrollHeight+"px"},t.open)).then(function(){r||n(i,a,"auto")}),r=!1},p=function(){r=!0,o?(o=!1,n(i,a,0)):(n(i,a,a[0].scrollHeight+"px"),c(angular.extend({height:0},t.closed)).then(function(){i.postTransition=!1}))};i.$watch(s.collapse,function(e){e?p():d()})}}}]).directive("attAccord",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{},controller:"AttAccordCtrl",templateUrl:"app/scripts/ng_js_att_tpls/accordion/attAccordHeader.html"}}).controller("AttAccordCtrl",[function(){this.type="attAccord",this.headerCtrl,this.bodyCtrl;var e=!0;this.toggleBody=function(){e?this.expandBody():this.collapseBody(),e=!e},this.expandBody=function(){this.bodyCtrl.expand()},this.collapseBody=function(){this.bodyCtrl.collapse()}}]).controller("AttAccordHeaderCtrl",[function(){this.type="header"}]).directive("attAccordHeader",["keymap","events",function(e,t){return{restrict:"EA",transclude:!0,replace:!0,require:["^attAccord","attAccordHeader"],controller:"AttAccordHeaderCtrl",templateUrl:"app/scripts/ng_js_att_tpls/accordion/attAccordHeader.html",link:function(t,n,i,a){var s=a[0],r=a[1];s.headerCtrl=r;var o=n.children().eq(0);t.clickFunc=function(){s.toggleBody()};var l=function(n){var i=!0;switch(n.keyCode){case e.KEY.ENTER:n.preventDefault(),t.clickFunc(),t.$apply();break;default:i=!1}return n.stopPropagation(),i};angular.isUndefined(t.isOpen)&&(t.isOpen=!1),o.bind("keydown",l)}}}]).controller("AttAccordBodyCtrl",["$scope",function(e){this.type="body",this.expand=function(){e.expand()},this.collapse=function(){e.collapse()}}]).directive("attAccordBody",["$timeout","$height",function(e,t){return{restrict:"EA",transclude:!0,replace:!0,require:["^attAccord","attAccordBody"],controller:"AttAccordBodyCtrl",templateUrl:"app/scripts/ng_js_att_tpls/accordion/attAccordBody.html",link:function(n,i,a,s){var r=s[0],o=s[1];r.bodyCtrl=o;var l;e(function(){l=i[0].offsetHeight,t(i,0,0,0)}),n.expand=function(){t(i,.05,l,1)},n.collapse=function(){t(i,.25,0,0)}}}}]),angular.module("att.abs.alert",[]).directive("attAlert",[function(){return{restrict:"EA",replace:!0,transclude:!0,scope:{alertType:"@type",showTop:"@topPos",showAlert:"="},templateUrl:"app/scripts/ng_js_att_tpls/alert/alert.html",link:function(e){"true"===e.showTop?e.cssStyle={top:"50px"}:e.cssStyle={top:"0px"},e.close=function(){e.showAlert=!1}}}}]),angular.module("att.abs.boardStrip",["att.abs.utilities"]).constant("BoardStripConfig",{maxVisibleBoards:4,boardsToScroll:1,boardLength:140,boardMargin:15}).directive("attBoard",[function(){return{restrict:"AE",replace:!0,transclude:!0,require:"^attBoardStrip",scope:{boardIndex:"=",boardLabel:"="},templateUrl:"app/scripts/ng_js_att_tpls/boardStrip/attBoard.html",link:function(e,t,n,i){var a=i;e.getCurrentIndex=function(){return a.getCurrentIndex()},e.selectBoard=function(e){isNaN(e)||a.setCurrentIndex(e)},e.isInView=function(e){return a.isInView(e)}}}}]).directive("attBoardStrip",["BoardStripConfig","$timeout","$ieVersion",function(e,t,n){return{restrict:"AE",replace:!0,transclude:!0,scope:{currentIndex:"=selectedIndex",boardsMasterArray:"=",onAddBoard:"&?"},templateUrl:"app/scripts/ng_js_att_tpls/boardStrip/attBoardStrip.html",controller:function(t){if(angular.isDefined(t.boardsMasterArray)||(t.boardsMasterArray=[]),this.rectifyMaxVisibleBoards=function(){this.maxVisibleIndex>=t.boardsMasterArray.length&&(this.maxVisibleIndex=t.boardsMasterArray.length-1),this.maxVisibleIndex<0&&(this.maxVisibleIndex=0)},this.resetBoardStrip=function(){t.currentIndex=0,this.maxVisibleIndex=e.maxVisibleBoards-1,this.minVisibleIndex=0,this.rectifyMaxVisibleBoards()},t.currentIndex>0){var n=t.currentIndex;this.resetBoardStrip(),n>t.boardsMasterArray.length?t.currentIndex=t.boardsMasterArray.length-1:t.currentIndex=n}else this.resetBoardStrip();this.getCurrentIndex=function(){return t.currentIndex},this.setCurrentIndex=function(e){t.currentIndex=e},this.isInView=function(e){return e<=this.maxVisibleIndex&&e>=this.minVisibleIndex},this.getBoardsMasterArrayLength=function(){return t.boardsMasterArray.length}},link:function(i,a,s,r){var o,l=n(),c=1e3;l&&10>l&&(c=0);var d=function(t){return t*(e.boardLength+e.boardMargin)};a[0].querySelector(".board-viewport")&&angular.element(a[0].querySelector(".board-viewport")).css({width:d(e.maxVisibleBoards)+"px"});var p=function(t){return t*(e.boardLength+e.boardMargin)};a[0].querySelector(".boardstrip-container")&&(angular.element(a[0].querySelector(".boardstrip-container")).css({width:p(r.getBoardsMasterArrayLength())+"px"}),angular.element(a[0].querySelector(".boardstrip-container")).css({left:"0px"}));var u=function(){var t;return t=r.getBoardsMasterArrayLength()<=e.maxVisibleBoards?0:r.minVisibleIndex*(e.boardLength+e.boardMargin)*-1},h=function(e,t,n){for(var i=0;i=i;i++)angular.element(e[i]).attr("tabindex","0")};i.$watchCollection("boardsMasterArray",function(n,i){n!==i&&(n.length0},i.isNextBoard=function(){return r.getBoardsMasterArrayLength()-1>r.maxVisibleIndex}}}}]).directive("attAddBoard",["BoardStripConfig","$parse","$timeout",function(e,t,n){return{restrict:"AE",replace:!0,require:"^attBoardStrip",scope:{onAddBoard:"&?"},templateUrl:"app/scripts/ng_js_att_tpls/boardStrip/attAddBoard.html",link:function(e,n,i,a){e.addBoard=function(){i.onAddBoard&&(e.onAddBoard=t(e.onAddBoard),e.onAddBoard())}}}}]).directive("attBoardNavigation",["keymap","events",function(e,t){return{restrict:"AE",link:function(n,i){var a=e.KEY.LEFT,s=e.KEY.RIGHT;i.bind("keydown",function(e){switch(e.keyCode||(e.keyCode=e.which),e.keyCode){case s:if(t.preventDefault(e),t.stopPropagation(e),i[0].nextElementSibling&&parseInt(angular.element(i[0].nextElementSibling).attr("tabindex"))>=0)angular.element(i[0])[0].nextElementSibling.focus();else{var n=angular.element(i[0])[0];do{if(!n.nextSibling)break;n=n.nextSibling}while(n&&"LI"!==n.tagName);n.tagName&&"LI"===n.tagName&&parseInt(angular.element(n).attr("tabindex"))>=0&&n.focus()}break;case a:if(t.preventDefault(e),t.stopPropagation(e),i[0].previousElementSibling&&parseInt(angular.element(i[0].previousElementSibling).attr("tabindex"))>=0)angular.element(i[0])[0].previousElementSibling.focus();else{var r=angular.element(i[0])[0];do{if(!r.previousSibling)break;r=r.previousSibling}while(r&&"LI"!==r.tagName);r.tagName&&"LI"===r.tagName&&parseInt(angular.element(n).attr("tabindex"))>=0&&r.focus()}}})}}}]),angular.module("att.abs.breadCrumbs",[]).constant("classConstant",{defaultClass:"breadcrumbs__link",activeClass:"breadcrumbs__link--active"}).directive("attCrumb",["classConstant",function(e){return{restrict:"A",link:function(t,n,i){n.addClass(e.defaultClass),"active"===i.attCrumb&&n.addClass(e.activeClass),n.hasClass("last")||n.after('')}}}]),angular.module("att.abs.buttons",["att.abs.position","att.abs.utilities"]).constant("btnConfig",{btnClass:"button",btnPrimaryClass:"button--primary",btnSecondaryClass:"button--secondary",btnDisabledClass:"button--inactive",btnSmallClass:"button--small" }).directive("attButton",["btnConfig",function(e){return{restrict:"A",link:function(t,n,i){n.addClass(e.btnClass),"small"===i.size&&n.addClass(e.btnSmallClass),i.$observe("btnType",function(t){"primary"===t?(n.addClass(e.btnPrimaryClass),n.removeClass(e.btnSecondaryClass),n.removeClass(e.btnDisabledClass),n.removeAttr("disabled")):"secondary"===t?(n.addClass(e.btnSecondaryClass),n.removeClass(e.btnPrimaryClass),n.removeClass(e.btnDisabledClass),n.removeAttr("disabled")):"disabled"===t&&(n.addClass(e.btnDisabledClass),n.removeClass(e.btnPrimaryClass),n.removeClass(e.btnSecondaryClass),n.attr("disabled","disabled"))})}}}]).directive("attButtonLoader",[function(){return{restrict:"A",replace:!1,scope:{size:"@"},template:"
",link:function(e,t){t.addClass("button button--inactive")}}}]).directive("attButtonHero",[function(){return{restrict:"A",replace:!1,transclude:!0,scope:{icon:"@"},template:"
",link:function(e,t){t.addClass("button button--hero"),t.attr("tabindex","0")}}}]).directive("attBtnDropdown",["$document","$timeout","$isElement","$documentBind","keymap","events",function(e,t,n,i,a,s){return{restrict:"EA",scope:{type:"@dropdowntype"},replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/buttons/buttonDropdown.html",link:function(r,o){r.isOpen=!1;var l=-1,c=[],d=void 0;t(function(){c=o.find("li"),d=o.find("button")[0]},10);var p=r.toggle=function(e){angular.isUndefined(e)||""===e?r.isOpen=!r.isOpen:r.isOpen=e},u=function(){l+1=0&&(l--,c[l].focus())};o.bind("keydown",function(e){var t=e.keyCode;if(a.isAllowedKey(t)||a.isControl(e)||a.isFunctionKey(e))switch(t){case a.KEY.ENTER:l>0&&(d.focus(),r.$apply());break;case a.KEY.ESC:p(!1),l=-1,d.focus(),r.$apply();break;case a.KEY.DOWN:u(),r.$apply(),s.preventDefault(e),s.stopPropagation(e);break;case a.KEY.UP:h(),r.$apply(),s.preventDefault(e),s.stopPropagation(e)}else t===a.KEY.TAB&&(p(!1),l=-1,r.$apply())});var g=function(t){var i=n(angular.element(t.target),o,e);if(!i){p(!1),l=-1;for(var a=0;a=parseInt(e.selectLimit)?i.setMaxLimits(!1):i.setMaxLimits(!0)},!0)}}}).directive("attCheckbox",["$compile","attCheckboxConfig",function(e,t){return{scope:{},restrict:"A",require:["ngModel","^?checkboxLimit"],link:function(n,i,a,s){var r=s[0],o=s[1],l=e('')(n);i.css({display:"none"}),i.wrap(l),i.parent().append('
'),i.parent().attr("title",a.title),i.parent().attr("aria-label",a.title),i.parent().attr("id",a.id),i.removeAttr("id"),r.$render=function(){var e=r.$modelValue?!0:!1;i.parent().toggleClass(t.activeClass,e),i.parent().attr("aria-checked",e)},n.updateModel=function(e){n.disabled||(r.$setViewValue(i.parent().hasClass(t.activeClass)?!1:!0),o&&!o.getMaxLimits()&&r.$modelValue?(o.maxCheckboxSelected(),r.$setViewValue(i.parent().hasClass(t.activeClass)?!0:!1)):r.$render()),e.preventDefault()},a.$observe("disabled",function(e){n.disabled=e||"disabled"===e||"true"===e,i.parent().toggleClass(t.disabledClass,n.disabled),i.parent().attr("tabindex",n.disabled?"-1":"0")})}}}]).directive("checkboxGroup",["$compile",function(e){return{scope:{checkboxGroup:"=",checkboxGroupValue:"=?"},restrict:"A",link:function(t,n,i){t.checkboxState="none",void 0===t.checkboxGroupValue&&(t.checkboxGroupValue="indeterminate"),n.css({display:"none"}),n.wrap(e('')(t)),n.parent().append('
'),n.parent().attr("title",i.title),n.parent().attr("aria-label",i.title),t.$watch("checkboxState",function(e){"all"===e?(n.parent().addClass("att-checkbox--on"),n.parent().removeClass("att-checkbox--indeterminate"),n.parent().attr("aria-checked",!0)):"none"===e?(n.parent().removeClass("att-checkbox--on"),n.parent().removeClass("att-checkbox--indeterminate"),n.parent().attr("aria-checked",!1)):"indeterminate"===e&&(n.parent().removeClass("att-checkbox--on"),n.parent().addClass("att-checkbox--indeterminate"),n.parent().attr("aria-checked",!0))}),t.updateModel=function(e){if(n.parent().hasClass("att-checkbox--on")){n.parent().removeClass("att-checkbox--on");for(var i in t.checkboxGroup)t.checkboxGroup.hasOwnProperty(i)&&(t.checkboxGroup[i]=!1)}else{n.parent().addClass("att-checkbox--on");for(var a in t.checkboxGroup)t.checkboxGroup.hasOwnProperty(a)&&(t.checkboxGroup[a]=!0)}e.preventDefault()},t.$watch("checkboxGroupValue",function(e){if(e===!1){n.parent().removeClass("att-checkbox--on");for(var i in t.checkboxGroup)t.checkboxGroup.hasOwnProperty(i)&&(t.checkboxGroup[i]=!1)}else if(e===!0){n.parent().addClass("att-checkbox--on");for(var a in t.checkboxGroup)t.checkboxGroup.hasOwnProperty(a)&&(t.checkboxGroup[a]=!0)}}),t.$watch("checkboxGroup",function(){var e=0,n=0,i=0;for(var a in t.checkboxGroup)t.checkboxGroup.hasOwnProperty(a)&&(i+=1,t.checkboxGroup[a]?e+=1:t.checkboxGroup[a]||(n+=1));i===e?(t.checkboxState="all",t.checkboxGroupValue=!0):i===n?(t.checkboxState="none",t.checkboxGroupValue=!1):(t.checkboxState="indeterminate",t.checkboxGroupValue="indeterminate")},!0)}}}]),angular.module("att.abs.colorselector",[]).directive("colorSelectorWrapper",[function(){return{scope:{selected:"=",iconColor:"@"},restrict:"AE",transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/colorselector/colorselector.html",link:function(e){e.applycolor={"background-color":e.iconColor},e.selectedcolor=function(t){e.selected=t}}}}]).directive("colorSelector",["$compile",function(e){return{restrict:"A",scope:{colorSelector:"@",ngModel:"="},link:function(t,n,i){n.removeAttr("color-selector");var a=i.title,s=angular.element(''+n.prop("outerHTML")+""),r=e(s)(t);n.replaceWith(r)}}}]),angular.module("att.abs.datepicker",["att.abs.position","att.abs.utilities"]).constant("datepickerConfig",{dateFormat:"MM/dd/yyyy",dayFormat:"d",monthFormat:"MMMM",yearFormat:"yyyy",dayHeaderFormat:"EEEE",dayTitleFormat:"MMMM yyyy",disableWeekend:!1,disableSunday:!1,startingDay:0,minDate:null,maxDate:null,mode:0,dateFilter:{defaultText:"Select from list"},datepickerEvalAttributes:["dateFormat","dayFormat","monthFormat","yearFormat","dayHeaderFormat","dayTitleFormat","disableWeekend","disableSunday","startingDay","mode"],datepickerWatchAttributes:["min","max"]}).factory("datepickerService",["datepickerConfig","dateFilter",function(e,t){var n=function(t,n){if(angular.isDefined(t)&&null!==t&&angular.isDefined(n)&&null!==n){var i=e.datepickerEvalAttributes.concat(e.datepickerWatchAttributes);for(var a in t){var s=t[a];-1!==i.indexOf(a)&&angular.isDefined(s)&&n.attr(a.toSnakeCase(),a)}}},i=function(t,n){if(angular.isDefined(t)&&null!==t&&angular.isDefined(n)&&null!==n){var i=function(e,t){n[e]=n.$parent.$eval(t)},a=function(e,t){n.$parent.$watch(t,function(t){n[e]=t}),n.$watch(e,function(e){n.$parent[t]=e})},s=e.datepickerEvalAttributes,r=e.datepickerWatchAttributes;for(var o in t){var l=t[o];-1!==s.indexOf(o)&&angular.isDefined(l)?i(o,l):-1!==r.indexOf(o)&&angular.isDefined(l)&&a(o,l)}}},a=function(e,n){if(e&&n){var i;-1!==n.indexOf("/")?i="/":-1!==n.indexOf("-")?i="-":-1!==n.indexOf(".")&&(i=".");var a=e.split(i),s=n.split(i);if(a.length!==s.length)return!1;for(var r=0;ra;)n[a++]=new Date(i),i.setDate(i.getDate()+1);return n}function o(t){return t&&angular.isDate(e.currentDate)&&0===_(t,e.currentDate)?!0:!1}function l(t){return t&&angular.isDate(e.fromDate)&&0===_(t,e.fromDate)?!0:!1}function c(t){return t&&angular.isDate(e.fromDate)&&angular.isDate(e.currentDate)&&0===_(t,e.currentDate)?!0:!1}function d(t){return t&&angular.isDate(e.fromDate)&&angular.isDate(e.currentDate)&&_(t,e.fromDate)>=0&&_(t,e.currentDate)<=0?!0:!1}function p(e){return"Saturday"===n(e,b.dayHeader)||"Sunday"===n(e,b.dayHeader)?!0:!1}function u(t){return 0===_(t,e.resetTime(new Date))?!0:!1}function h(t){return t&&angular.isDate(e.focusedDate)&&0===_(t,e.focusedDate)?!0:!1}function g(t,n){return e.minDate&&e.minDate.getTime()>=t.getTime()&&e.minDate.getTime()<=n.getTime()}function f(t,n){return e.maxDate&&e.maxDate.getTime()>=t.getTime()&&e.maxDate.getTime()<=n.getTime()}function m(e){if(e){var t={pre:e.substr(0,3),post:e};return t}}function v(e){return{date:e.date,label:n(e.date,e.formatDay),header:n(e.date,e.formatHeader),focused:!!e.isFocused,selected:!!e.isSelected,from:!!e.isFromDate,to:!!e.isToDate,dateRange:!!e.isDateRange,oldMonth:!!e.oldMonth,nextMonth:!!e.newMonth,disabled:!!e.isDisabled,today:!!e.isToday,weekend:!!e.isWeakend}}var b={date:a(t.dateFormat,i.dateFormat),day:a(t.dayFormat,i.dayFormat),month:a(t.monthFormat,i.monthFormat),year:a(t.yearFormat,i.yearFormat),dayHeader:a(t.dayHeaderFormat,i.dayHeaderFormat),dayTitle:a(t.dayTitleFormat,i.dayTitleFormat),disableWeekend:a(t.disableWeekend,i.disableWeekend),disableSunday:a(t.disableSunday,i.disableSunday)},y=a(t.startingDay,i.startingDay);e.mode=a(t.mode,i.mode),e.minDate=i.minDate?e.resetTime(i.minDate):null,e.maxDate=i.maxDate?e.resetTime(i.maxDate):null;var _=this.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},w=this.isDisabled=function(t){return b.disableWeekend!==!0||"Saturday"!==n(t,b.dayHeader)&&"Sunday"!==n(t,b.dayHeader)?b.disableSunday===!0&&"Sunday"===n(t,b.dayHeader)?!0:e.minDate&&_(t,e.minDate)<0||e.maxDate&&_(t,e.maxDate)>0:!0};this.modes=[{name:"day",getVisibleDates:function(t,i){var a=t.getFullYear(),_=t.getMonth(),k=new Date(a,_,1),C=new Date(a,_+1,0),S=y-k.getDay(),D=S>0?7-S:-S,x=new Date(k),T=0;D>0&&(x.setDate(-D+1),T+=D),T+=s(a,_+1),T+=(7-T%7)%7;for(var $=r(x,T),E=[],A=0;T>A;A++){var I=new Date($[A]);$[A]=v({date:I,formatDay:b.day,formatHeader:b.dayHeader,isFocused:h(I),isSelected:o(I),isFromDate:l(I),isToDate:c(I),isDateRange:d(I),oldMonth:new Date(I.getFullYear(),I.getMonth(),1,0,0,0).getTime()new Date(a,_,1,0,0,0).getTime(),isDisabled:w(I),isToday:u(I),isWeakend:p(I)})}for(var L=0;7>L;L++)E[L]=m(n($[L].date,b.dayHeader));return"top"===i?(e.disablePrevTop=g(k,C),e.disableNextTop=f(k,C)):"bottom"===i?(e.disablePrevBottom=g(k,C),e.disableNextBottom=f(k,C)):(e.disablePrevTop=e.disablePrevBottom=g(k,C),e.disableNextTop=e.disableNextBottom=f(k,C)),e.disablePrev=e.disablePrevTop||e.disablePrevBottom,e.disableNext=e.disableNextTop||e.disableNextBottom,{objects:$,title:n(t,b.dayTitle),labels:E}},split:7,step:{months:1}},{name:"month",getVisibleDates:function(e){for(var t=[],i=[],a=e.getFullYear(),s=0;12>s;s++){var r=new Date(a,s,1);t[s]=v({date:r,formatDay:b.month,formatHeader:b.month,isFocused:h(r),isSelected:o(r),isFromDate:l(r),isToDate:c(r),isDateRange:d(r),oldMonth:!1,newMonth:!1,isDisabled:w(r),isToday:u(r),isWeakend:!1})}return{objects:t,title:n(e,b.year),labels:i}},split:3,step:{years:1}}]}]).directive("datepicker",["$timeout",function(e){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/datepicker/datepicker.html",scope:{currentDate:"=?current",fromDate:"=?from"},require:"datepicker",controller:"DatepickerController",link:function(t,n,i,a){function s(e,t){for(var n=[];e.length>0;)n.push(e.splice(0,t));return n}function r(e){if(angular.isDate(e)&&!isNaN(e)?o=new Date(e):o||(o=new Date),o){var n;1===t.mode?(o=new Date,n=d(angular.copy(o),-1)):n=angular.copy(o);var i=l.modes[t.mode],a=i.getVisibleDates(n,"top");t.currentRows=s(a.objects,i.split),t.currentTitle=a.title,t.labels=a.labels||[];var r=i.getVisibleDates(d(angular.copy(n),1),"bottom");t.nextRows=s(r.objects,i.split),t.nextTitle=r.title}}var o,l=a,c=!1;t.focusedDate,t.resetTime=function(e){var n;return isNaN(new Date(e))?null:(n=new Date(e),n=1===t.mode?new Date(n.getFullYear(),n.getMonth()):new Date(n.getFullYear(),n.getMonth(),n.getDate()))},i.min&&t.$parent.$watch(i.min,function(e){t.minDate=e?t.resetTime(e):null,r()}),i.max&&t.$parent.$watch(i.max,function(e){t.maxDate=e?t.resetTime(e):null,r()});var d=function(e,n){var i=l.modes[t.mode].step;return e.setDate(1),e.setMonth(e.getMonth()+n*(i.months||0)),e.setFullYear(e.getFullYear()+n*(i.years||0)),e},p=function(e){var n=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.currentDate=n},u=function(e){var n=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.fromDate=n};t.select=function(e){c=!0,i.from?angular.isDate(t.fromDate)&&angular.isDate(t.currentDate)||(angular.isDate(t.fromDate)?p(e):angular.isDate(t.fromDate)||u(e)):p(e),t.focusedDate=e};var h=function(n,i){u(i),e(function(){c=!0,t.focusedDate=i,p(n)})};t.move=function(e){o=d(angular.copy(o),e),r()},t.$watch("currentDate",function(e){return angular.isDate(e)&&!isNaN(e)&&l.isDisabled(e)?void(t.currentDate=null):i.from&&!isNaN(e)&&!isNaN(t.fromDate)&&l.compare(e,t.fromDate)<0?void h(t.fromDate,e):(c?(r(),c=!1):angular.isDefined(e)&&null!==e?r(e):r(),void(t.focusedDate=void 0))}),t.$watch("fromDate",function(e){if(angular.isDate(e)&&!isNaN(e)&&l.isDisabled(e))return void(t.fromDate=null);if(i.from){if(!isNaN(t.currentDate)&&!isNaN(e)&&l.compare(t.currentDate,e)<0)return void h(e,t.currentDate);c?(r(),c=!1):angular.isDefined(e)&&null!==e?r(e):r()}t.focusedDate=void 0})}}}]).directive("datepickerPopup",["$document","datepickerService","$isElement","$documentBind",function(e,t,n,i){var a=function(a,s,r){t.bindScope(r,a),a.isOpen=!1;var o=a.toggle=function(e){e===!0||e===!1?a.isOpen=e:a.isOpen=!a.isOpen};a.$watch("current",function(){o(!1)});var l=function(t){var i=n(angular.element(t.target),s,e);i||(o(!1),a.$apply())};i.click("isOpen",l,a)};return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/datepicker/datepickerPopup.html",scope:{current:"=current"},compile:function(e,n){var i=e.find("span").eq(1);return i.attr("current","current"),t.setAttributes(n,i),a}}}]).directive("attDatepicker",["$log",function(e){return{restrict:"A",require:"ngModel",scope:{},controller:["$scope","$element","$attrs","$compile","datepickerConfig","datepickerService",function(e,t,n,i,a,s){var r=angular.isDefined(n.dateFormat)?e.$parent.$eval(n.dateFormat):a.dateFormat,o='
the date you selected is {{$parent.current | date : \''+r+"'}}
";t.removeAttr("att-datepicker"),t.removeAttr("ng-model"),t.attr("ng-model","$parent.current"),t.attr("aria-describedby","datepicker"),t.attr("format-date",r),t.attr("att-input-deny","[^0-9/-]"),t.attr("maxlength",10),t.attr("readonly","readonly");var l=angular.element("
");l.attr("datepicker-popup",""),l.attr("current","current"),s.setAttributes(n,l),s.bindScope(n,e),l.html(""),l.append(t.prop("outerHTML")),null===navigator.userAgent.match(/MSIE 8/)&&l.append(o);var c=l.prop("outerHTML");c=i(c)(e),t.replaceWith(c)}],link:function(t,n,i,a){return a?(t.$watch("current",function(e){a.$setViewValue(e)}),void(a.$render=function(){t.current=a.$viewValue})):void e.error("ng-model is required.")}}}]).directive("formatDate",["dateFilter","datepickerService",function(e,t){return{restrict:"A",require:"ngModel",link:function(n,i,a,s){var r="";a.$observe("formatDate",function(e){r=e});var o=function(t){return t?(s.$setValidity("invalidDate",!0),e(t,r)):(s.$setValidity("invalidDate",!1),i.val())},l=function(e){return t.validateDateString(e,r)?(s.$setValidity("invalidDate",!0),new Date(e)):(s.$setValidity("invalidDate",!1),null)};s.$formatters.unshift(o),s.$parsers.unshift(l)}}}]).directive("attDateFilter",["$document","dateFilter","datepickerConfig","datepickerService","$isElement","$documentBind",function(e,t,n,i,a,s){var r=function(r,o,l,c){i.bindScope(l,r),r.selectedOption=n.dateFilter.defaultText,r.showDropdownList=!1,r.showCalendar=!1,r.applyButtonType="disabled",r.currentSelection="";var d=angular.isDefined(l.dateFormat)?r.$parent.$eval(l.dateFormat):n.dateFormat,p=!1,u=function(e){if(!p){var n=d.toUpperCase(),i=d.toUpperCase();isNaN(new Date(r.fromDate))||(n=t(r.fromDate,d)),isNaN(new Date(r.currentDate))||(i=t(r.currentDate,d)),"Custom Single Date"===e?(c.$setValidity("invalidDate",!0),r.maxLength=10,r.selectedOption=i):"Custom Range"===e&&(c.$setValidity("invalidDate",!0),c.$setValidity("invalidDateRange",!0),r.maxLength=21,r.selectedOption=n+"-"+i)}},h=r.clear=function(e){r.fromDate=void 0,r.currentDate=void 0,r.applyButtonType="disabled",e||(c.$setValidity("invalidDate",!0),c.$setValidity("invalidDateRange",!0),u(r.currentSelection))},g=function(){r.showCalendar=!0},f=function(){r.showCalendar=!1,"Custom Single Date"!==r.currentSelection&&"Custom Range"!==r.currentSelection&&h(!0)},m=r.showDropdown=function(e){e===!0||e===!1?r.showDropdownList=e:r.showDropdownList=!r.showDropdownList,r.showDropdownList?("Custom Single Date"===r.currentSelection||"Custom Range"===r.currentSelection)&&g():(r.focusInputButton=!0,f())};r.resetTime=function(e){var t;return isNaN(new Date(e))?null:(t=new Date(e),new Date(t.getFullYear(),t.getMonth(),t.getDate()))},r.getDropdownText=function(){p=!0;var e=r.selectedOption;if("Custom Single Date"===r.currentSelection)!isNaN(new Date(e))&&i.validateDateString(e,d)?(c.$setValidity("invalidDate",!0),r.fromDate=void 0,r.currentDate=new Date(e)):(c.$setValidity("invalidDate",!1),h(!0));else if("Custom Range"===r.currentSelection)if(-1===e.indexOf("-")||2!==e.split("-").length&&6!==e.split("-").length)c.$setValidity("invalidDateRange",!1),h(!0);else{c.$setValidity("invalidDateRange",!0);var t=e.split("-");if(2===t.length)t[0]=t[0].trim(),t[1]=t[1].trim();else if(6===t.length){var n=t[0].trim()+"-"+t[1].trim()+"-"+t[2].trim(),a=t[3].trim()+"-"+t[4].trim()+"-"+t[5].trim();t[0]=n,t[1]=a}if(!isNaN(new Date(t[0]))&&!isNaN(new Date(t[1]))&&i.validateDateString(t[0],d)&&i.validateDateString(t[1],d)){c.$setValidity("invalidDate",!0);var s=new Date(t[0]),o=new Date(t[1]);s.getTime()
',replace:!0}}).directive("pane",function(){return{require:"^attDevNotes",restrict:"EA",transclude:!0,scope:{title:"@"},link:function(e,t,n,i){i.addPane(e)},template:'
'+"
",replace:!0}}),angular.module("att.abs.dividerLines",[]).directive("attDividerLines",[function(){return{scope:{attDividerLines:"@"},restrict:"A",replace:!0,templateUrl:"app/scripts/ng_js_att_tpls/dividerLines/dividerLines.html",link:function(e,t,n){e.lightContainer=n.attDividerLines}}}]),angular.module("att.abs.dragdrop",[]).directive("attFileDrop",["$parse",function(e){return{restrict:"A",scope:{fileModel:"=",onDrop:"&",attFileDrop:"&"},controller:["$scope","$attrs",function(e,t){""!==t.attFileDrop&&(e.onDrop=e.attFileDrop),this.onDrop=e.onDrop}],link:function(t,n){n.addClass("dragdrop"),n.bind("dragover",function(e){return e.originalEvent&&(e.dataTransfer=e.originalEvent.dataTransfer),e.dataTransfer.dropEffect="move",e.preventDefault&&e.preventDefault(),n.addClass("dragdrop-over"),!1}),n.bind("dragenter",function(e){return e.preventDefault&&e.preventDefault(),n.addClass("dragdrop-over"),!1}),n.bind("dragleave",function(){return n.removeClass("dragdrop-over"),!1}),n.bind("drop",function(i){return i.preventDefault&&i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.originalEvent&&(i.dataTransfer=i.originalEvent.dataTransfer),n.removeClass("dragdrop-over"),i.dataTransfer.files&&i.dataTransfer.files.length>0&&(t.fileModel=i.dataTransfer.files[0],t.$apply(),"function"==typeof t.onDrop&&(t.onDrop=e(t.onDrop),t.onDrop())),!1})}}}]).directive("attFileLink",[function(){return{restrict:"EA",require:"^?attFileDrop",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/dragdrop/fileUpload.html",scope:{fileModel:"=?",onFileSelect:"&",attFileLink:"&"},controller:["$scope","$parse",function(e,t){this.setFileModel=function(t){e.takeFileModelFromParent?(e.$parent.fileModel=t,e.$parent.$apply()):(e.fileModel=t,e.$apply())},this.callbackFunction=function(){"function"==typeof e.onFileSelect&&(e.onFileSelect=t(e.onFileSelect),e.onFileSelect())}}],link:function(e,t,n,i){e.takeFileModelFromParent=!1,!n.fileModel&&i&&(e.takeFileModelFromParent=!0),""!==n.attFileLink?e.onFileSelect=e.attFileLink:!n.onFileSelect&&i&&(e.onFileSelect=i.onDrop)}}}]).directive("attFileChange",["$log","$rootScope",function(e,t){return{restrict:"A",require:"^attFileLink",link:function(n,i,a,s){function r(n){if(n.target.files&&n.target.files.length>0)s.setFileModel(n.target.files[0]),s.callbackFunction();else{var i=n.target.value;try{var a=new ActiveXObject("Scripting.FileSystemObject");s.setFileModel(a.getFile(i)),s.callbackFunction()}catch(n){var r="Error: Please follow the guidelines of Drag and Drop component on Sandbox demo page.";e.error(r),t.$broadcast("att-file-link-failure",r)}}}i.bind("change",r)}}}]),angular.module("att.abs.drawer",["att.abs.utilities"]).directive("attDrawer",["$document","$timeout","DOMHelper",function(e,t,n){return{restrict:"EA",replace:!0,transclude:!0,scope:{drawerOpen:"=?",drawerAutoClose:"&?"},template:'
',link:function(e,i,a){function s(t,n){t&&0!==t.style.width&&0!==t.style.height&&(u.style.display="none","right"===n.side||"left"===n.side?t.style.width="0px":("top"===n.side||"bottom"===n.side)&&(t.style.height="0px")),e.drawerOpen=!1,angular.isDefined(d)&&null!=d&&d.focus()}function r(e,n){d=document.activeElement,0!==e.style.width&&0!==e.style.height&&("right"===n.side||"left"===n.side?e.style.width=n.size:("top"===n.side||"bottom"===n.side)&&(e.style.height=n.size),t(function(){u.style.display="block",angular.isDefined(c)&&null!=c&&c.focus()},1e3*n.speed))}function o(e){var t={};return e&&"[object Function]"===t.toString.call(e)}var l={},c=void 0,d=void 0;l.side=a.drawerSlide||"top",l.speed=a.drawerSpeed||"0.25",l.size=a.drawerSize||"300px",l.zindex=a.drawerZindex||1e3,l.className=a.drawerClass||"att-drawer";var p=i.eq(0).children()[0],u=angular.element(p).children()[0];p.className=l.className,p.style.transitionDuration=l.speed+"s",p.style.webkitTransitionDuration=l.speed+"s",p.style.zIndex=l.zindex,p.style.position="fixed",p.style.width=0,p.style.height=0,p.style.transitionProperty="width, height","right"===l.side?(p.style.height=a.drawerCustomHeight||"100%",p.style.top=a.drawerCustomTop||"0px",p.style.bottom=a.drawerCustomBottom||"0px",p.style.right=a.drawerCustomRight||"0px"):"left"===l.side?(p.style.height=a.drawerCustomHeight||"100%",p.style.top=a.drawerCustomTop||"0px",p.style.bottom=a.drawerCustomBottom||"0px",p.style.left=a.drawerCustomRight||"0px"):("top"===l.side||"bottom"===l.side)&&(p.style.width=a.drawerCustomWidth||"100%",p.style.left=a.drawerCustomLeft||"0px",p.style.top=a.drawerCustomTop||"0px",p.style.right=a.drawerCustomRight||"0px"),t(function(){c=n.firstTabableElement(i[0])},10,!1),a.drawerSize&&e.$watch(function(){return a.drawerSize},function(t){l.size=t,e.drawerOpen&&r(p,l)}),e.$watch("drawerOpen",function(e){e?r(p,l):s(p,l)}),e.drawerAutoClose()&&(e.$on("$locationChangeStart",function(){s(p,l),o(e.drawerAutoClose())&&e.drawerAutoClose()}),e.$on("$stateChangeStart",function(){s(p,l),o(e.drawerAutoClose)&&e.drawerAutoClose()}))}}}]),angular.module("att.abs.message",[]).directive("attMessages",[function(){return{restrict:"EA",scope:{messageType:"=?"},controller:["$scope","$element","$attrs",function(e,t,n){e.messageScope=[],this.registerScope=function(t){e.messageScope.push(t)},e.$parent.$watchCollection(n["for"],function(t){for(var n in t){if(t[n]){e.error=n;break}e.error=null}for(var i=0;i'),t.parent().append('"),t.wrap('
'),t.bind("keyup",function(){""!==this.value?t.parent().parent().find("label").addClass("form-field__label--show").removeClass("form-field__label--hide"):t.parent().parent().find("label").addClass("form-field__label--hide").removeClass("form-field__label--show")}),t.bind("blur",function(){""===this.value&&t.parent().parent().find("label").removeClass("form-field__label--hide")})}}}]).directive("attFormFieldValidation",["$compile","$log",function(e,t){return{priority:102,scope:{},restrict:"A",require:["?ngModel","?attFormField"],link:function(n,i,a,s){var r=s[0],o=s[1];return n.valid="",r?o?(i.parent().append(e(angular.element(' '))(n)),i.parent().append(e(angular.element(' '))(n)),n.$watch("valid",function(e){e?i.parent().parent().addClass("success"):e===!1?i.parent().parent().addClass("error"):i.parent().parent().removeClass("success").removeClass("error")}),void i.bind("keyup",function(){r.$valid?n.valid=!0:r.$invalid?n.valid=!1:n.valid="",n.$apply()})):void t.error("att-form-field-validation :: att-form-field directive is required."):void t.error("att-form-field-validation :: ng-model directive is required.")}}}]).directive("attFormFieldValidationAlert",["$timeout",function(e){return{scope:{messageType:"=?"},restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlert.html",link:function(t,n,i,a){t.showLabel=!1,t.hideLabel=!1,t.errorMessage=!1,t.warningMessage=!1;var s=function(){var e=t.messageType;"error"===e?(t.errorMessage=!0,t.warningMessage=!1):"warning"===e?(t.errorMessage=!1,t.warningMessage=!0):(t.errorMessage=!1,t.warningMessage=!1)},r=-1!==navigator.userAgent.toLowerCase().indexOf("msie 8.0");n.find("label").text(n.find("input").attr("placeholder")),n.find("input").bind("keyup",function(){""!==this.value?(t.showLabel=!0,t.hideLabel=!1,r&&n.find("label").css({top:"-20px"})):(t.showLabel=!1,t.hideLabel=!0,r&&n.find("label").css({top:"0px"})),s(),t.$apply()}),n.find("input").bind("blur",function(){""===this.value&&(t.showLabel=!1,t.hideLabel=!1),t.$apply()}),e(function(){s()},100)}}}]).constant("CoreFormsUiConfig",{phoneMask:"(___) ___-____"}).directive("attPhoneMask",["$parse","CoreFormsUiConfig",function(e,t){ return{require:"ngModel",scope:{ngModel:"="},link:function(e,n,i,a){var s=navigator.userAgent.toLowerCase(),r=s.indexOf("android")>-1,o=(-1!==s.indexOf("msie 8.0"),""),l=!1;o=r?"__________":t.phoneMask,n.attr("maxlength",o.length);var c=function(e){var t=!1;return e&&(t=10===e.length),a.$setValidity("invalidPhoneNumber",l),a.$setValidity("mask",t),t},d=function(){var e,t=a.$modelValue;if(t.length){var n,i,s,r,l;for(r=[],s=o.split(""),l=s.length,n=t.substring(0,o.length),i=t.replace(/[^0-9]/g,"").split(""),e=0;l>e&&(r.push("_"===s[e]?i.shift():s[e]),0!==i.length);e++);return t=r.join(""),"("===t&&(t=""),a.$setViewValue(t),a.$render(),t}},p=function(t){t.which&&((t.which<48||t.which>57)&&(t.which<96||t.which>105)?8===t.which||9===t.which||46===t.which||13===t.which||37===t.which||39===t.which||t.ctrlKey===!0||"118"===t.which&&"86"===t.which||t.ctrlKey===!0||"99"===t.which&&"67"===t.which||t.ctrlKey===!0||"120"===t.which&&"88"===t.which||(t.preventDefault?t.preventDefault():t.returnValue=!1,n.attr("aria-label","Only numbers are allowed"),l=!1):(n.removeAttr("aria-label"),l=!0)),e.$apply()},u=function(e){var t=/^[A-Za-z]+$/,n=/^[0-9]+$/;e.match(t)&&(l=!1),e.match(n)&&(l=!0);var i="";return e&&e.length>0&&(i=e.replace(/[^0-9]/g,"")),c(i),i},h=function(e){var t="";return c(e),e&&(t=d()),t};a.$parsers.push(u),a.$formatters.push(h),n.bind("keyup",d),n.bind("keydown",p),n.bind("input",function(e){d(e),p(e)})}}}]).constant("validationTypeInt",{validationNum:{number:"1",text:"2",email:"3"}}).directive("attFormFieldPrv",["keyMapAc","validationTypeInt",function(e,t){return{priority:101,restrict:"AE",controller:["$scope",function(n){this.showHideErrorMessage=function(e){null!=n.$$prevSibling&&angular.isDefined(n.$$prevSibling)&&angular.isDefined(n.$$prevSibling.hideErrorMsg)&&(n.$$prevSibling.hideErrorMsg=e,n.$apply())},this.findAllowedCharactor=function(t){var i=e.keys;if(angular.isDefined(n.allowedSpecialCharacters)&&angular.isDefined(n.allowedSpecialCharacters.length)&&n.allowedSpecialCharacters.length>0){for(var a=n.allowedSpecialCharacters,s=!1,r=0;r0)for(var r=0;r'+n.placeholder+""),t.wrap('
'),t.parent().parent().find("label").addClass("form-field__label--show")}}}]).directive("attFormFieldValidationPrv",["keyMapAc","validationTypeInt",function(e,t){return{priority:202,scope:{validationType:"=",allowedChars:"="},restrict:"A",require:["?ngModel","^attFormFieldPrv"],link:function(n,i,a,s){var r=s[1];i.bind("keyup",function(){r.validateInput(n.validationType,n.allowedChars,i[0].value)?r.showHideErrorMessage(!1):r.showHideErrorMessage(!0)});var o=e.keyRange,l=e.allowedKeys,c=function(e,t){var n=t.whicho.endNum,i=t.whicho.endCapitalLetters,a=t.whicho.endSmallLetters,s=n&&i&&a;return s&&!e},d=function(e,t){return(t.whicho.endNum)&&!e},p=function(e,t){var n="-"!==String.fromCharCode(t.which)&&"_"!==String.fromCharCode(t.which),i="@"!==String.fromCharCode(t.which)&&"."!==String.fromCharCode(t.which),a=n&&i,s=c(e,t);return!e&&a&&s},u=function(e,n,i){switch(e){case t.validationNum.text:if(c(n,i))return!0;break;case t.validationNum.number:if(d(n,i))return!0;break;case t.validationNum.email:if(p(n,i))return!0}return!1};i.bind("keypress",function(e){e.which||(e.keyCode?e.which=e.keyCode:e.charCode&&(e.which=e.charCode));var i=r.findAllowedCharactor(e.which),a=angular.isDefined(n.validationType)&&""!==n.validationType,s=e.which!==l.TAB&&e.which!==l.BACKSPACE&&e.which!==l.DELETE,o=a&&s;o&&u(t.validationNum[n.validationType],i,e)&&e.preventDefault()})}}}]).directive("attFormFieldValidationAlertPrv",[function(){return{restrict:"A",scope:{errorMessage:"="},transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlertPrv.html",link:function(e){e.errorMessage=e.errorMessage,angular.isDefined(e.$parent.hideErrorMsg)?e.hideErrorMsg=e.$parent.hideErrorMsg:e.hideErrorMsg=!0}}}]).factory("Cards",[function(){var e=/(\d{1,4})/g,t=/(?:^|\s)(\d{4})$/,n=[{type:"discover",pattern:/^(6011|65|64[4-9]|622)/,format:e,inputFormat:t,length:[16],cvcLength:[3],cvcSecurityImg:"visaI",zipLength:[5],luhn:!0},{type:"mc",pattern:/^5[1-5]/,format:e,inputFormat:t,length:[16],cvcLength:[3],cvcSecurityImg:"visaI",zipLength:[5],luhn:!0},{type:"amex",pattern:/^3[47]/,format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,inputFormat:/^(\d{4}|\d{4}\s\d{6})$/,length:[15],cvcLength:[4],cvcSecurityImg:"amexI",zipLength:[5],luhn:!0},{type:"visa",pattern:/^4/,format:e,inputFormat:t,length:[16],cvcLength:[3],cvcSecurityImg:"visaI",zipLength:[5],luhn:!0}],i=function(e){var t,i,a;for(e=(e+"").replace(/\D/g,""),i=0,a=n.length;a>i;i++)if(t=n[i],t.pattern.test(e))return t},a=function(e){var t,i,a;for(i=0,a=n.length;a>i;i++)if(t=n[i],t.type===e)return t};return{fromNumber:function(e){return i(e)},fromType:function(e){return a(e)},defaultFormat:function(){return e},defaultInputFormat:function(){return t}}}]).factory("_Validate",["Cards","$parse",function(e,t){var n=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1},i=function(e){var t,n,i,a,s,r;for(i=!0,a=0,n=(e+"").split("").reverse(),s=0,r=n.length;r>s;s++)t=n[s],t=parseInt(t,10),(i=!i)&&(t*=2),t>9&&(t-=9),a+=t;return a%10===0},a={};return a.cvc=function(i,a,s,r){var o,l;if(angular.isUndefined(i)||null===i||0===i.length)return!0;if(!/^\d+$/.test(i))return!1;var c;if(r.paymentsTypeModel){var d=t(r.paymentsTypeModel);c=d(s)}return c?(l=e.fromType(c),o=i.length,n.call(null!==l?l.cvcLength:void 0,o)>=0):i.length>=3&&i.length<=4},a.zip=function(i,a,s,r){var o,l;if(angular.isUndefined(i)||null===i||0===i.length)return!0;if(!/^\d+$/.test(i))return!1;var c;if(r.paymentsTypeModel){var d=t(r.paymentsTypeModel);c=d(s)}return c?(l=e.fromType(c),o=i.length,n.call(null!==l?l.zipLength:void 0,o)>=0):i.length<6},a.card=function(a,s,r,o){var l,c,d;o.paymentsTypeModel&&(d=t(o.paymentsTypeModel));var p=function(){d&&d.assign(r,null),s.$card=null};return angular.isUndefined(a)||null===a||0===a.length?(p(),!0):(a=(a+"").replace(/\s+|-/g,""),/^\d+$/.test(a)&&(l=e.fromNumber(a))?(s.$card=angular.copy(l),d&&d.assign(r,l.type),ret=(c=a.length,n.call(l.length,c)>=0&&(l.luhn===!1||i(a))),ret):(p(),!1))},function(e,t,n,i,s){if(!a[e])throw types=Object.keys(a),errstr='Unknown type for validation: "'+e+'". ',errstr+='Should be one of: "'+types.join('", "')+'"',errstr;return a[e](t,n,i,s)}}]).factory("_ValidateWatch",["_Validate",function(e){var t={};return t.cvc=function(t,n,i,a){a.paymentsTypeModel&&i.$watch(a.paymentsTypeModel,function(s,r){if(s!==r){var o=e(t,n.$modelValue,n,i,a);n.$setValidity(t,o)}})},t.zip=function(t,n,i,a){a.paymentsTypeModel&&i.$watch(a.paymentsTypeModel,function(s,r){if(s!==r){var o=e(t,n.$modelValue,n,i,a);n.$setValidity(t,o)}})},function(e,n,i,a){return t[e]?t[e](e,n,i,a):void 0}}]).directive("validateCard",["$window","_Validate","_ValidateWatch",function(e,t,n){return{restrict:"A",require:"ngModel",link:function(e,i,a,s){var r=a.validateCard;n(r,s,e,a);var o=function(n){var o=t(r,n,s,e,a);return s.$setValidity(r,o),"card"===r&&(null===s.$card?null==n||""===n||""===n?(e.invalidCardError="",e.invalidCard=""):n.length>=1&&(e.invalidCardError="error",e.invalidCard="The number entered is not a recognized credit card number."):o?(e.invalidCardError="",e.invalidCard=""):s.$card.length.indexOf(n.length)>=0?(e.invalidCardError="error",e.invalidCard="The number entered is not a recognized credit card number."):(e.invalidCardError="",e.invalidCard=""),i.bind("blur",function(){o&&null!==s.$card?(e.invalidCardError="",e.invalidCard=""):(e.invalidCardError="error",e.invalidCard="The number entered is not a recognized credit card number.")})),o?n:void 0};s.$formatters.push(o),s.$parsers.push(o)}}}]).directive("creditCardImage",function(){return{templateUrl:"app/scripts/ng_js_att_tpls/formField/creditCardImage.html",replace:!1,transclude:!1,link:function(e,t,n){e.$watch(n.creditCardImage,function(t,n){t!==n&&(e.cvc="",angular.isUndefined(t)||null===t||(e.newValCCI="show-"+t),null===t&&(e.newValCCI=""))})}}}).directive("securityCodeImage",["$document",function(e){return{templateUrl:"app/scripts/ng_js_att_tpls/formField/cvcSecurityImg.html",replace:!1,transclude:!1,link:function(t,n,i){t.$watch(i.securityCodeImage,function(e,n){e!==n&&(angular.isUndefined(e)||null===e||("amexI"===e?(t.newValI="ccv2-security-amex",t.newValIAlt="The 4 digit CVC security code is on the front of the card.",t.cvcPlaceholder="4 digits",t.cvcMaxlength=4):"visaI"===e&&(t.newValI="ccv2-security",t.newValIAlt="The CVC security code is on the back of your card right after the credit card number.",t.cvcPlaceholder="3 digits",t.cvcMaxlength=3)),null===e&&(t.newValI="ccv2-security",t.cvcPlaceholder="3 digits",t.cvcMaxlength=3,t.newValIAlt="The CVC security code is on the back of your card right after the credit card number."))}),n.bind("click",function(e){e.preventDefault(),n.find("button").hasClass("active")?n.find("button").removeClass("active"):n.find("button").addClass("active")});var a=angular.element(e);a.bind("click",function(e){var t=e.target.className;"btn btn-alt btn-tooltip active"!==t&&n.find("button").hasClass("active")&&n.find("button").removeClass("active")})}}}]),angular.module("att.abs.hourpicker",["att.abs.utilities"]).constant("hourpickerConfig",{days:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],customOption:"Custom"}).controller("hourPickerController",["$scope",function(e){e.options=[],this.setOptions=function(t,n,i,a,s,r){e.options.push(t),void 0!==a&&(e.preselect=a);var o;if(void 0!==n){e.fromtime=n;for(o in e.days)e.days.hasOwnProperty(o)&&(e.FrtimeList[e.days[o]]={},void 0!==s?(e.FrtimeList[e.days[o]].value=s,e.selectedFromOption[e.days[o]]=s):(e.FrtimeList[e.days[o]].value=n[0].value,e.selectedFromOption[e.days[o]]=n[0].value))}if(void 0!==i){e.totime=i;for(o in e.days)e.days.hasOwnProperty(o)&&(e.TotimeList[e.days[o]]={},void 0!==r?(e.TotimeList[e.days[o]].value=r,e.selectedToOption[e.days[o]]=r):(e.TotimeList[e.days[o]].value=i[0].value,e.selectedToOption[e.days[o]]=i[0].value),e.showToTimeErrorDay[e.days[o]]=!1)}void 0!==s&&(e.uncheckedFromTime=s),void 0!==r&&(e.uncheckedToTime=r)},this.getSelectedOption=function(){return e.selectedOption},this.setToTimeErrorDay=function(t,n){e.showToTimeErrorDay[t]=n}}]).directive("attHourpickerOption",[function(){return{restrict:"EA",require:"^attHourpicker",scope:{option:"=option",fromtime:"=fromtime",totime:"=totime",preselect:"=preselect",uncheckedFromTime:"=",uncheckedToTime:"="},link:function(e,t,n,i){i.setOptions(e.option,e.fromtime,e.totime,e.preselect,e.uncheckedFromTime,e.uncheckedToTime)}}}]).directive("attHourpicker",["hourpickerConfig","$document","$log","$documentBind","$timeout",function(e,t,n,i,a){return{require:"ngModel",restrict:"EA",controller:"hourPickerController",transclude:!0,scope:{model:"=ngModel",resetFlag:"=?"},templateUrl:"app/scripts/ng_js_att_tpls/hourpicker/hourpicker.html",link:function(t,n,s,r){var o=!1;t.isFromDropDownOpen=!1,t.isToDropDownOpen=!1;var l="",c={};t.days=e.days,t.daysList={},t.FrtimeList={},t.FrtimeListDay={},t.TotimeListDay={},t.selectedFromOption={},t.selectedToOption={},t.TotimeList={},t.selectedIndex=0,t.selectedOption="Select from list",t.customTime=[],t.resetFlag=!1,t.showToTimeErrorDay={},t.validatedCustomPreselect=[],t.$watch("resetFlag",function(n,i){if(n!==i){if(n&&t.selectedOption===e.customOption){for(day in t.daysList)t.daysList.hasOwnProperty(day)&&(t.daysList[day]=!1,t.addSelectedValue(day));t.preselectUpdateFxn(t.preselect)}t.resetFlag=!1}}),t.$watch("selCategory",function(e){e&&r.$setViewValue(e)},!0),t.updateData=function(n){if(n.constructor===Array){t.showDaysSelector=!0,t.selectedOption=e.customOption;for(var i in n)if(n.hasOwnProperty(i)){var a=n[i].day;"boolean"==typeof n[i].preEnabled&&n[i].preEnabled?t.daysList[a]=!0:t.daysList[a]=!1;for(var s in t.fromtime)t.fromtime[s].value!==n[i].FromTime||t.uncheckedFromTime||(t.FrtimeList[a].value=t.fromtime[s].value,t.selectedFromOption[a]=t.FrtimeList[a].value);for(var r in t.totime)t.totime[r].value!==n[i].ToTime||t.uncheckedToTime||(t.TotimeList[a].value=t.totime[r].value,t.selectedToOption[a]=t.TotimeList[a].value);if(t.addSelectedValue(a,n[i].FromTime,n[i].ToTime),parseInt(i)+1===n.length)break}}else t.selectOption(n.day)},t.$watch("preselect",function(e){t.preselectUpdateFxn(e)}),t.preselectUpdateFxn=function(e){if(void 0!==e){if(t.options&&(e=t.validatePreselectData(e)),""===e)return;t.updateData(e)}},t.validatePreselectData=function(e){if(e.constructor===Array){for(var n in e)if(e.hasOwnProperty(n)){var i=e[n].day,a=!1,s=!1,r=!1;for(var o in t.days)if(t.days[o]===i){a=!0;break}if(!a){e.splice(n,1);continue}for(var l in t.fromtime)if(t.fromtime[l].value===e[n].FromTime){s=!0;break}s||(e[n].FromTime=t.fromtime[0].value);for(var c in t.totime)if(t.totime[c].value===e[n].ToTime){r=!0;break}if(r||(e[n].ToTime=t.totime[0].value),"boolean"==typeof e[n].preEnabled&&e[n].preEnabled?e[n].preEnabled=!0:e[n].preEnabled=!1,t.validatedCustomPreselect[i]={},t.validatedCustomPreselect[i].FromTime=e[n].FromTime,t.validatedCustomPreselect[i].ToTime=e[n].ToTime,parseInt(n)+1===e.length)break}}else{var d=!1;for(var p in t.options)if(t.options[p]===e.day){d=!0;break}d||(e="")}return e},t.selectPrevNextValue=function(e,t,n){var i,a=0;if(38===e.keyCode)i=-1;else{if(40!==e.keyCode)return n;i=1}if(-1!==t.indexOf(n))a=t.indexOf(n)+i;else for(var s in t)if(t[s].value===n){a=parseInt(s)+i;break}return a===t.length?a-=1:-1===a&&(a+=1),e.preventDefault(),t[a].value?t[a].value:t[a]},t.showDropdown=function(){t.showlist=!t.showlist,o=!o},t.showfromDayDropdown=function(e){for(count in t.FrtimeListDay)count!==e&&t.FrtimeListDay[count]&&(t.FrtimeListDay[count]=!1);for(count in t.TotimeListDay)t.TotimeListDay[count]&&(t.TotimeListDay[count]=!1);t.FrtimeListDay[e]=!t.FrtimeListDay[e],o=!o,t.showlist=!1,t.FrtimeListDay[e]?(t.isFromDropDownOpen=!0,l=e):t.isFromDropDownOpen=!1,a(function(){if(t.FrtimeListDay[e]){var i=angular.element(n)[0].querySelector(".customdays-width"),a=angular.element(i.querySelector(".select2-container-active")).parent()[0].querySelector("ul"),s=angular.element(a.querySelector(".selectedItemInDropDown"))[0].offsetTop;angular.element(a)[0].scrollTop=s}})},t.showtoDayDropdown=function(e){for(count in t.TotimeListDay)count!==e&&t.TotimeListDay[count]&&(t.TotimeListDay[count]=!1);for(count in t.FrtimeListDay)t.FrtimeListDay[count]&&(t.FrtimeListDay[count]=!1);t.TotimeListDay[e]=!t.TotimeListDay[e],o=!o,t.showlist=!1,t.TotimeListDay[e]?(t.isToDropDownOpen=!0,l=e):t.isToDropDownOpen=!1,a(function(){if(t.TotimeListDay[e]){var i=angular.element(n)[0].querySelector(".customdays-width"),a=angular.element(i.querySelector(".select2-container-active")).parent()[0].querySelector("ul"),s=angular.element(a.querySelector(".selectedItemInDropDown"))[0].offsetTop;angular.element(a)[0].scrollTop=s}})},t.selectFromDayOption=function(e,n){t.selectedFromOption[e]=n,t.FrtimeList[e].value=n,t.FrtimeListDay[e]=!1,t.isFromDropDownOpen=!1},t.selectToDayOption=function(e,n){t.selectedToOption[e]=n,t.TotimeList[e].value=n,t.TotimeListDay[e]=!1,t.isToDropDownOpen=!1},t.addSelectedValue=function(e,n,i){var a,s;if(void 0===t.daysList[e]||t.daysList[e]){for(t.selectedFromOption[e]===t.uncheckedFromTime&&(angular.isDefined(t.validatedCustomPreselect[e])?(t.selectedFromOption[e]=t.validatedCustomPreselect[e].FromTime,n=t.validatedCustomPreselect[e].FromTime,t.FrtimeList[e].value=t.validatedCustomPreselect[e].FromTime):(t.selectedFromOption[e]=t.fromtime[0].value,n=t.fromtime[0].value,t.FrtimeList[e].value=t.fromtime[0].value)),t.selectedToOption[e]===t.uncheckedToTime&&(angular.isDefined(t.validatedCustomPreselect[e])?(t.selectedToOption[e]=t.validatedCustomPreselect[e].ToTime,i=t.validatedCustomPreselect[e].ToTime,t.TotimeList[e].value=t.validatedCustomPreselect[e].ToTime):(t.selectedToOption[e]=t.totime[0].value,i=t.totime[0].value,t.TotimeList[e].value=t.totime[0].value)),c.day=e,c.FromTime=t.FrtimeList[e].value,c.ToTime=t.TotimeList[e].value,a=0,s=t.customTime.length;s>a;a++)if(t.customTime[a].day===e){t.customTime[a].FromTime=c.FromTime,t.customTime[a].ToTime=c.ToTime;break}if(a===s){var r=angular.copy(c);t.customTime.push(r)}}else for(a=0,s=t.customTime.length;s>a;a++)if(t.customTime[a].day===e){t.uncheckedFromTime?t.selectedFromOption[t.customTime[a].day]=t.uncheckedFromTime:t.selectedFromOption[t.customTime[a].day]=t.FrtimeList[t.customTime[a].day].value,t.uncheckedToTime?t.selectedToOption[t.customTime[a].day]=t.uncheckedToTime:t.selectedToOption[t.customTime[a].day]=t.TotimeList[t.customTime[a].day].value,t.customTime.splice(a,1);break}t.selCategory=t.customTime};var d=function(){t.showlist&&t.$apply(function(){t.showlist=!1})};i.click("showlist",d,t);var p=function(){t.$apply(function(){t.isFromDropDownOpen&&(t.FrtimeListDay[l]=!1,t.isFromDropDownOpen=!1)})};i.click("isFromDropDownOpen",p,t);var u=function(){t.$apply(function(){t.isToDropDownOpen&&(t.TotimeListDay[l]=!1,t.isToDropDownOpen=!1)})};i.click("isToDropDownOpen",u,t),t.selectOption=function(n){if(n===e.customOption)t.showDaysSelector=!0,t.selCategory=t.customTime;else{t.showDaysSelector=!1;var i=/[0-9]\s?am/i.exec(n),a=/[0-9]\s?pm/i.exec(n);t.selCategory={day:n,FromTime:null===i?"NA":i[0],ToTime:null===a?"NA":a[0]}}t.showlist=!1,o=!1,t.selectedOption=n}}}}]).directive("attHourpickerValidator",["hourpickerConfig",function(e){return{restrict:"A",require:["attHourpicker","ngModel"],link:function(t,n,i,a){var s=a[0],r=a[1],o=function(e){var t=Number(e.match(/^(\d+)/)[1]),n=Number(e.match(/:(\d+)/)[1]),i=e.match(/\s(.*)$/)[1].toUpperCase();"PM"===i&&12>t&&(t+=12),"AM"===i&&12===t&&(t-=12);var a=t.toString(),s=n.toString();return 10>t&&(a="0"+a),10>n&&(s="0"+s),parseInt(a+s,10)},l=function(e,t){var n=o(e),i=o(t);return i-n},c=function(t){if(s.getSelectedOption()===e.customOption){var n=0;for(var i in t)t.hasOwnProperty(i)&&(l(t[i].FromTime,t[i].ToTime)<=0?(s.setToTimeErrorDay(t[i].day,!0),n++):s.setToTimeErrorDay(t[i].day,!1));return n>0?(r.$setValidity("validationStatus",!1),[]):(r.$setValidity("validationStatus",!0),t)}return r.$setValidity("validationStatus",!0),t};r.$parsers.unshift(c)}}}]),angular.module("att.abs.iconButtons",[]).constant("buttonConfig",{activeClass:"active--button",toggleEvent:"click"}).directive("attIconBtnRadio",["buttonConfig",function(e){var t=e.activeClass||"active--button",n=e.toggleEvent||"click";return{require:"ngModel",link:function(e,i,a,s){i.attr("tabindex","0"),i.append(""+a.attIconBtnRadio+""),s.$render=function(){i.parent().toggleClass(t,angular.equals(s.$modelValue,a.attIconBtnRadio))},i.parent().bind(n,function(){i.parent().hasClass(t)||e.$apply(function(){s.$setViewValue(a.attIconBtnRadio),s.$render()})})}}}]).directive("attIconBtnCheckbox",["buttonConfig",function(e){var t=e.activeClass||"active--button",n=e.toggleEvent||"click";return{require:"ngModel",link:function(e,i,a,s){function r(){var t=e.$eval(a.btnCheckboxTrue);return angular.isDefined(t)?t:!0}function o(){var t=e.$eval(a.btnCheckboxFalse);return angular.isDefined(t)?t:!1}i.attr("tabindex","0"),i.append(""+a.attIconBtnCheckbox+""),s.$render=function(){i.parent().toggleClass(t,angular.equals(s.$modelValue,r()))},i.parent().bind(n,function(){e.$apply(function(){s.$setViewValue(i.parent().hasClass(t)?o():r()),s.$render()})})}}}]),angular.module("att.abs.links",["ngSanitize"]).directive("attLink",[function(){return{restrict:"A",link:function(e,t){t.addClass("link"),t.attr("href")||t.attr("tabindex","0")}}}]).directive("attLinkVisited",[function(){return{restrict:"A",link:function(e,t){t.addClass("link--visited"),t.attr("href")||t.attr("tabindex","0")}}}]).directive("attReadmore",["$timeout",function(e){return{restrict:"A",scope:{lines:"@noOfLines",textModel:"=",isOpen:"="},templateUrl:"app/scripts/ng_js_att_tpls/links/readMore.html",link:function(t,n){var i=1;t.$watch("textModel",function(a){a?("function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),t.textToDisplay=a.trim(),t.readFlag=!0,e(function(){var e=n[0].children[0].children[0];1===i&&(i=window.getComputedStyle?parseInt(t.lines)*parseFloat(window.getComputedStyle(e,null).getPropertyValue("height")):parseInt(t.lines)*parseFloat(e.currentStyle.height),t.elemHeight=i,t.readLinkStyle={height:t.elemHeight+"px"})}),t.readMoreLink=!0,t.readLessLink=!1):(t.textToDisplay="",t.readMoreLink=!1,t.readLessLink=!1,t.readFlag=!1)});var a=n.parent();a.hasClass("att-accordion__body")&&t.$watch("isOpen",function(e){e||(t.readMoreLink=!0,t.readLessLink=!1,t.readLinkStyle={height:t.elemHeight+"px"},t.readFlag=!0)}),t.readMore=function(){t.readMoreLink=!1,t.readLessLink=!0,t.readLinkStyle={height:"auto"},t.readFlag=!1;var i=angular.element(n).children().eq(1).find("a")[0];e(function(){i.focus()})},t.readLess=function(){t.readMoreLink=!0,t.readLessLink=!1,t.readLinkStyle={height:t.elemHeight+"px"},t.readFlag=!0;var i=angular.element(n).children().eq(0).find("a")[0];e(function(){i.focus()})}}}}]).directive("attLinksList",[function(){return{restrict:"A",controller:function(){},link:function(e,t){t.addClass("links-list")}}}]).directive("attLinksListItem",[function(){return{restrict:"A",require:"^attLinksList",link:function(e,t){t.addClass("links-list__item"),t.attr("href")||t.attr("tabindex","0")}}}]),angular.module("att.abs.loading",[]).directive("attLoading",["$window",function(e){return{restrict:"A",replace:!0,scope:{icon:"@attLoading",progressStatus:"=?",colorClass:"=?"},templateUrl:"app/scripts/ng_js_att_tpls/loading/loading.html",link:function(t,n){var i=t.progressStatus;if(t.progressStatus=Math.min(100,Math.max(0,i)),-1!==e.navigator.userAgent.indexOf("MSIE 8.")){var a=0,s=36*t.progressStatus;n.css({"background-position-x":a,"background-position-y":-s})}}}}]),angular.module("att.abs.modal",["att.abs.utilities"]).factory("$$stackedMap",function(){return{createNew:function(){var e=[];return{add:function(t,n){e.push({key:t,value:n})},get:function(t){for(var n=0;n0),i.css({overflow:"scroll"}),c&&-1==r()&&(c.remove(),c=void 0),a.modalScope.$destroy(),angular.isDefined(g)&&null!=g&&g.focus()}var l,c,d="modal-open",p=n.$new(!0),u=i.createNew(),h={},g=void 0;return n.$watch(r,function(e){p.index=e}),e.bind("keydown",function(e){var t;if(27===e.which)t=u.top(),t&&t.value.keyboard&&n.$apply(function(){h.dismiss(t.key)});else if(e.keyCode===s.KEY.BACKSPACE){var i,r=!1,o=e.srcElement||e.target;r=void 0===o.type?!0:"INPUT"===o.tagName.toUpperCase()&&("TEXT"===(i=o.type.toUpperCase())||"PASSWORD"===i||"FILE"===i||"SEARCH"===i||"EMAIL"===i||"NUMBER"===i||"DATE"===i||"TEL"===i||"URL"===i||"TIME"===i)||"TEXTAREA"===o.tagName.toUpperCase()?o.readOnly||o.disabled:!0,r&&a.preventDefault(e)}}),h.open=function(n,i){u.add(n,{deferred:i.deferred,modalScope:i.scope,backdrop:i.backdrop,keyboard:i.keyboard}),g=document.activeElement;var a=e.find("body").eq(0),s=e.find("html").eq(0);r()>=0&&!c&&(l=angular.element("
"),c=t(l)(p),a.append(c));var o=angular.element("
");o.attr("window-class",i.windowClass),o.attr("index",u.length()-1),o.attr("modal-title",i.modalTitle),o.html(i.content);var h=t(o)(i.scope);u.top().value.modalDomEl=h,a.append(h),a.addClass(d),s.css({overflow:"hidden"})},h.close=function(e,t){var n=u.get(e);n&&(n.value.deferred.resolve(t),o(e))},h.dismiss=function(e,t){var n=u.get(e).value;n&&(n.deferred.reject(t),o(e))},h.getTop=function(){return u.top()},h}]).provider("$modal",function(){var e={options:{backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$http","$templateCache","$controller","$modalStack",function(t,n,i,a,s,r,o){function l(e){return e.template?i.when(e.template):a.get(e.templateUrl,{cache:s}).then(function(e){return e.data})}function c(e){var n=[];return angular.forEach(e,function(e){(angular.isFunction(e)||angular.isArray(e))&&n.push(i.when(t.invoke(e)))}),n}var d={};return d.open=function(t){var a=i.defer(),s=i.defer(),d={result:a.promise,opened:s.promise,close:function(e){o.close(d,e)},dismiss:function(e){o.dismiss(d,e)}};if(t=angular.extend({},e.options,t),t.resolve=t.resolve||{},!t.template&&!t.templateUrl)throw new Error("One of template or templateUrl options is required.");var p=i.all([l(t)].concat(c(t.resolve)));return p.then(function(e){var i=(t.scope||n).$new();i.$close=d.close,i.$dismiss=d.dismiss;var s,l={},c=1;t.controller&&(l.$scope=i,l.$modalInstance=d,angular.forEach(t.resolve,function(t,n){l[n]=e[c++]}),s=r(t.controller,l)),o.open(d,{scope:i,deferred:a,content:e[0],backdrop:t.backdrop,keyboard:t.keyboard,windowClass:t.windowClass,modalTitle:t.modalTitle})},function(e){a.reject(e)}),p.then(function(){s.resolve(!0)},function(){s.reject(!1)}),d},d}]};return e}).directive("simpleModal",["$modal",function(e){return{restrict:"EA",scope:{simpleModal:"@",backdrop:"@",keyboard:"@",modalOk:"&",modalCancel:"&",windowClass:"@",controller:"@",modalTitle:"@?"},link:function(t,n){n.bind("click",function(i){i.preventDefault(),angular.isDefined(n.attr("href"))&&""!==n.attr("href")&&(t.simpleModal=n.attr("href")),"false"===t.backdrop?t.backdropclick="static":t.backdropclick=!0,"false"===t.keyboard?t.keyboardev=!1:t.keyboardev=!0,e.open({templateUrl:t.simpleModal,backdrop:t.backdropclick,keyboard:t.keyboardev,windowClass:t.windowClass,controller:t.controller,modalTitle:t.modalTitle}).result.then(t.modalOk,t.modalCancel)})}}}]).directive("tabbedItem",["$modal","$log",function(e,t){return{restrict:"AE",replace:!0,scope:{items:"=items",controller:"@",templateId:"@",modalTitle:"@?"},templateUrl:"app/scripts/ng_js_att_tpls/modal/tabbedItem.html",controller:["$scope","$rootScope","$attrs",function(n){n.clickTab=function(i){for(var a=0;at)&&(t=1),t>e.totalPages&&(t=e.totalPages),e.currentPage!==t&&(e.currentPage=t,n(e.currentPage)),e.totalPages>7&&(t3?e.pages=[t,t+1,t+2]:t>e.pages[2]&&t=t?e.pages=[1,2,3]:t>=e.totalPages-2&&(e.pages=[e.totalPages-2,e.totalPages-1,e.totalPages])))}e.focusedPage,e.$watch("totalPages",function(n){if(angular.isDefined(n)&&null!==n){if(e.pages=[],1>n)return void(e.totalPages=1);if(7>=n)for(var i=1;n>=i;i++)e.pages.push(i);else if(n>7){var a=Math.ceil(n/2);e.pages=[a-1,a,a+1]}t(1)}}),e.$watch("currentPage",function(e){t(e)});var n=function(t){angular.isFunction(e.clickHandler)&&e.clickHandler(t)};e.next=function(t){t.preventDefault(),e.currentPage1&&(e.currentPage-=1,n(e.currentPage))},e.selectPage=function(t,i){i.preventDefault(),e.currentPage=t,e.focusedPage=t,n(e.currentPage)},e.checkSelectedPage=function(t){return e.currentPage===t?!0:!1},e.isFocused=function(t){return e.focusedPage===t}}}}]),angular.module("att.abs.paneSelector",["att.abs.utilities"]).constant("paneGroupConstants",{SIDE_WIDTH_DEFAULT:"33%",INNER_PANE_DEFAULT:"67%",SIDE_PANE_ID:"sidePane",NO_DRILL_DOWN:"none"}).factory("animation",function(){return TweenLite}).directive("attPaneAccessibility",["keymap","$window",function(e,t){return{restrict:"A",require:["^?sidePane","^?innerPane"],link:function(t,n,i,a){var s=a[0],r=a[1],o=!1;t.ie=function(){for(var e,t=3,n=document.createElement("div"),i=n.getElementsByTagName("i");n.innerHTML="",i[0];);return t>4?t:e}(),o=8===t.ie?!0:!1,n.bind("keydown",function(t){if(e.isAllowedKey(t.keyCode)||e.isControl(t)||e.isFunctionKey(t)){t.preventDefault(),t.stopPropagation();var i;switch(t.keyCode){case e.KEY.DOWN:if(i=angular.element(n[0])[0],i&&i.nextElementSibling&&i.nextElementSibling.focus(),o){do{if(!i||!i.nextSibling)break;i=i.nextSibling; }while(i&&"DIV"!==i.tagName);i.focus()}break;case e.KEY.UP:if(i=angular.element(n[0])[0],i&&i.previousElementSibling&&i.previousElementSibling.focus(),o){do{if(!i||!i.previousSibling)break;i=i.previousSibling}while(i&&"DIV"!==i.tagName);i.focus()}break;case e.KEY.RIGHT:angular.isDefined(s)&&(i=s.getElement()[0]),angular.isDefined(r)&&(i=r.getElement()[0]);do{if(!i||!i.nextElementSibling)break;i=i.nextElementSibling}while("none"===window.getComputedStyle(i,null).getPropertyValue("display"));if(o)do{if(!i||!i.nextSibling)break;i=i.nextSibling}while(i&&"DIV"==i.tagName&&"none"==i.currentStyle.display);i&&i.querySelector("[att-pane-accessibility]").focus();break;case e.KEY.LEFT:angular.isDefined(s)&&(i=s.getElement()[0]),angular.isDefined(r)&&(i=r.getElement()[0]);do{if(!i||!i.previousElementSibling)break;i=i.previousElementSibling}while("none"==window.getComputedStyle(i,null).getPropertyValue("display"));if(o)do{if(!i||!i.previousSibling)break;i=i.previousSibling}while(i&&"DIV"==i.tagName&&"none"==i.currentStyle.display);i&&i.querySelector("[att-pane-accessibility]").focus()}}})}}}]).directive("sideRow",[function(){return{restrict:"A",replace:!0,require:["^sidePane","^paneGroup"],link:function(e,t,n,i){var a=i[0],s=i[1];e.$first&&(a.sidePaneIds=[]);var r=n.paneId,o=n.drillDownTo;a.sidePaneRows.push({paneId:r,drillDownTo:o}),t.on("click",function(){a.currentSelectedRowPaneId=r,s.slideOutPane(r,!0)})}}}]).controller("SidePaneCtrl",["$scope","$element","animation","paneGroupConstants",function(e,t,n,i){this.getElement=function(){return t},this.sidePaneTracker={},this.currentWidth=i.SIDE_WIDTH_DEFAULT,this.paneId=i.SIDE_PANE_ID,this.currentSelectedRowPaneId,this.drillDownToMapper={},this.sidePaneRows=[],this.init=function(){var e=this.sidePaneRows;if(e)for(var t in e)if(e.hasOwnProperty(t)){var n=e[t].paneId,i=e[t].drillDownTo;this.drillDownToMapper[n]=i,0==t&&(this.currentSelectedRowPaneId=n,this.sidePaneTracker[n]=[])}},this.getSidePanesList=function(){return this.sidePaneTracker[this.currentSelectedRowPaneId]},this.addToSidePanesList=function(e){void 0===this.sidePaneTracker[this.currentSelectedRowPaneId]?this.sidePaneTracker[this.currentSelectedRowPaneId]=[]:e&&this.sidePaneTracker[this.currentSelectedRowPaneId].push(e)},this.setWidth=function(e){e&&(this.currentWidth=e),n.set(t,{width:this.currentWidth})},this.resizeWidth=function(e){e&&(this.currentWidth=e),n.to(t,.5,{width:e})}}]).directive("sidePane",["paneGroupConstants",function(e){return{restrict:"EA",transclude:!0,replace:!0,templateUrl:"app/scripts/ng_js_att_tpls/paneSelector/sidePane.html",require:["^paneGroup","sidePane"],controller:"SidePaneCtrl",scope:{},link:function(t,n,i,a){var s=a[0],r=a[1];s.addPaneCtrl(e.SIDE_PANE_ID,r)}}}]).directive("drillDownRow",["$parse","paneGroupConstants",function(e,t){return{restrict:"A",replace:!0,require:["^innerPane","^paneGroup"],link:function(e,n,i,a){var s=a[0],r=a[1];n.on("click",function(){var e=s.drillDownTo;s.drillDownTo!==t.NO_DRILL_DOWN&&r.slideOutPane(e),n[0].focus()})}}}]).controller("InnerPaneCtrl",["$scope","$element","animation","paneGroupConstants",function(e,t,n,i){this.getElement=function(){return t},this.paneId=e.paneId,this.drillDownTo,this.currentWidth=i.INNER_PANE_DEFAULT,this.setWidth=function(e){e&&(this.currentWidth=e),n.set(t,{width:this.currentWidth})},this.resizeWidth=function(e,i){n.to(t,.25,{width:e,onComplete:i})},this.displayNone=function(){n.set(t,{display:"none"})},this.displayBlock=function(){n.set(t,{display:"block"}),this&&this.hideRightBorder()},this.floatLeft=function(){n.set(t,{"float":"left"})},this.hideLeftBorder=function(){n.set(t,{borderLeftWidth:"0px"})},this.showLeftBorder=function(){n.set(t,{borderLeftWidth:"1px"})},this.hideRightBorder=function(){n.set(t,{borderRightWidth:"0px"})},this.showRightBorder=function(){n.set(t,{borderRightWidth:"1px"})},this.slideFromRight=function(){n.set(t,{"float":"right"}),n.set(t,{width:this.currentWidth})},this.startOpen=function(){return e.startOpen}}]).directive("innerPane",function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/paneSelector/innerPane.html",require:["^paneGroup","innerPane"],controller:"InnerPaneCtrl",scope:{paneId:"@"},link:function(e,t,n,i){""===n.startOpen&&(e.startOpen=!0);var a=i[0],s=i[1];a.addPaneCtrl(e.paneId,s)}}}).controller("PaneGroupCtrl",["$scope","$element","paneGroupConstants",function(e,t,n){this.panes={},this.accountLevelPaneModel=[],this.title=e.title,this.init=function(){function e(e,t){var n,i=[];for(n in e.sidePaneRows)if(e.sidePaneRows.hasOwnProperty(n)){var a=e.sidePaneRows[n];n>0&&t[a.paneId].startOpen&&t[a.paneId].startOpen()&&(i.push(a),e.addToSidePanesList(a.paneId))}if(s)for(n in i)if(i.hasOwnProperty(n)){var r=i[n].paneId,o=t[r];o&&o.setWidth&&o.displayBlock&&(o.setWidth(s),o.displayBlock())}}var t=this.panes[n.SIDE_PANE_ID];if(t){t.init();var i,a=1;for(i in this.panes)this.panes[i].startOpen&&this.panes[i].startOpen()&&a++;var s;if(a>=3&&(s=100/a+"%"),this.panes[t.currentSelectedRowPaneId]){s?(t.setWidth(s),this.panes[t.currentSelectedRowPaneId].setWidth(s)):(t.setWidth(),this.panes[t.currentSelectedRowPaneId].setWidth()),this.panes[t.currentSelectedRowPaneId].displayBlock();for(i in this.panes)i!==n.SIDE_PANE_ID&&i!==t.currentSelectedRowPaneId&&this.panes[i].displayNone(),this.panes[i].drillDownTo=t.drillDownToMapper[i]}e(t,this.panes)}},this.resetPanes=function(){for(var e in this.panes)if(this.panes.hasOwnProperty(e)){var t=this.panes[e];t&&t.paneId!==n.SIDE_PANE_ID&&(t.floatLeft(),t.displayNone())}this.panes[n.SIDE_PANE_ID]&&this.panes[n.SIDE_PANE_ID].setWidth(n.SIDE_WIDTH_DEFAULT)},this.addPaneCtrl=function(e,t){this.panes[e]=t},this._slideOutPane=function(e,t){this.resetPanes();var i;if(t)if(this.panes[n.SIDE_PANE_ID]&&(i=this.panes[n.SIDE_PANE_ID].getSidePanesList()),i){if(this.panes&&this.panes[n.SIDE_PANE_ID])if(0===i.length&&this.panes[e])this.panes[n.SIDE_PANE_ID].setWidth(n.SIDE_WIDTH_DEFAULT),this.panes[e].displayBlock(),this.panes[e].setWidth(n.INNER_PANE_DEFAULT);else{var a=i.length+2,s=100/a+"%";this.panes[n.SIDE_PANE_ID].setWidth(s),this.panes[this.panes[n.SIDE_PANE_ID].currentSelectedRowPaneId]&&(this.panes[this.panes[n.SIDE_PANE_ID].currentSelectedRowPaneId].displayBlock(),this.panes[this.panes[n.SIDE_PANE_ID].currentSelectedRowPaneId].setWidth(s));for(var r in i)this.panes[i[r]]&&(this.panes[i[r]].displayBlock(),this.panes[i[r]].setWidth(s))}}else this.panes&&this.panes[n.SIDE_PANE_ID]&&this.panes[e]&&(this.panes[n.SIDE_PANE_ID].currentSelectedRowPaneId=e,this.panes[n.SIDE_PANE_ID].addToSidePanesList(),this.panes[e].slideFromRight(),this.panes[e].displayBlock(),this.panes[e].setWidth(n.INNER_PANE_DEFAULT));else{var o,l=!1;this.panes[n.SIDE_PANE_ID]&&(o=this.panes[n.SIDE_PANE_ID].getSidePanesList());for(var c in o)if(o.hasOwnProperty(c)){var d=o[c];if(d===e){l=!0;break}}!l&&this.panes[n.SIDE_PANE_ID]&&this.panes[n.SIDE_PANE_ID].addToSidePanesList(e);var p;this.panes[n.SIDE_PANE_ID]&&(p=this.panes[n.SIDE_PANE_ID].getSidePanesList().length);var u=p+2,h=100/u+"%";this.panes[n.SIDE_PANE_ID]&&this.panes[n.SIDE_PANE_ID].setWidth(h);var g;this.panes[n.SIDE_PANE_ID]&&(g=this.panes[n.SIDE_PANE_ID].getSidePanesList()[p-1]);var f=this;f.panes[n.SIDE_PANE_ID]&&(i=f.panes[n.SIDE_PANE_ID].getSidePanesList());for(var m in i)if(i.hasOwnProperty(m)){var v=i[m],b=this.panes[v];v!==g&&b&&(b.setWidth(h),b.displayBlock(),b.floatLeft())}this.panes[this.panes[n.SIDE_PANE_ID].currentSelectedRowPaneId]&&(this.panes[this.panes[n.SIDE_PANE_ID].currentSelectedRowPaneId].displayBlock(),this.panes[this.panes[n.SIDE_PANE_ID].currentSelectedRowPaneId].showRightBorder(),this.panes[this.panes[n.SIDE_PANE_ID].currentSelectedRowPaneId].resizeWidth(h,function(){f.panes[g]&&f.panes[f.panes[n.SIDE_PANE_ID].currentSelectedRowPaneId]&&(f.panes[f.panes[n.SIDE_PANE_ID].currentSelectedRowPaneId].hideRightBorder(),f.panes[g].setWidth(h),f.panes[g].slideFromRight(),f.panes[g].displayBlock(),f.panes[g].floatLeft())}))}},this.slideOutPane=function(e,t){this._slideOutPane(e,t)}}]).directive("paneGroup",["$timeout",function(e){return{restrict:"EA",transclude:!0,replace:!0,templateUrl:"app/scripts/ng_js_att_tpls/paneSelector/paneGroup.html",scope:{},controller:"PaneGroupCtrl",link:function(t,n,i,a){function s(){a.init()}e(s,100)}}}]),angular.module("att.abs.tooltip",["att.abs.position","att.abs.utilities","ngSanitize"]).constant("tooltipDefaultOptions",{placement:"above",animation:!1,popupDelay:0,stylett:"dark",appendToBody:!0}).provider("$tooltip",["tooltipDefaultOptions",function(e){function t(e){var t=/[A-Z]/g,n="-";return e.replace(t,function(e,t){return(t?n:"")+e.toLowerCase()})}var n={mouseenter:"mouseleave",click:"click",focus:"blur",mouseover:"mouseout"},i={};this.options=function(e){angular.extend(i,e)},this.setTriggers=function(e){angular.extend(n,e)},this.$get=["$window","$compile","$timeout","$parse","$document","$position","$interpolate","$attElementDetach",function(a,s,r,o,l,c,d,p){return function(a,u,h){function g(e){var t=e||f.trigger||h,i=n[t]||t;return{show:t,hide:i}}var f=angular.extend({},e,i),m=t(a),v=d.startSymbol(),b=d.endSymbol();return{restrict:"EA",scope:!0,link:function(e,t,n){function i(){e.tt_isOpen?h():d()}function d(){(!I||e.$eval(n[u+"Enable"]))&&(e.tt_popupDelay?S=r(y,e.tt_popupDelay):e.$apply(y))}function h(){e.$apply(function(){_()})}function y(){var n,i,a,s;if(e.tt_content){C&&r.cancel(C),T.css({top:0,left:0,display:"block","z-index":9999}),$?(D=D||l.find("body"),D.append(T)):t.after(T),n=$?c.offset(t):c.position(t),i=T.prop("offsetWidth"),a=T.prop("offsetHeight");var o=10;switch(e.tt_placement){case"right":s=$?{top:n.top+n.height/2-a/2,left:n.left+n.width+L}:{top:n.top+n.height/2-a/2,left:n.left+n.width+o+L};break;case"below":s=$?{top:n.top+n.height+L,left:n.left+n.width/2-i/2}:{top:n.top+n.height+o+L,left:n.left+n.width/2-i/2};break;case"left":s=$?{top:n.top+n.height/2-a/2,left:n.left-i-L}:{top:n.top+n.height/2-a/2,left:n.left-i-o-L};break;default:s=$?{top:n.top-a-L,left:n.left+n.width/2-i/2}:{top:n.top-a-o-L,left:n.left+n.width/2-i/2}}s.top+="px",s.left+="px",T.css(s),e.tt_isOpen=!0}}function _(){e.tt_isOpen=!1,r.cancel(S),angular.isDefined(e.tt_animation)&&e.tt_animation()?C=r(function(){p(T[0])},500):p(T[0])}function w(){t.removeAttr("title"),k||(P?t.attr("title",e.tooltipAriaLabel):t.attr("title",e.tt_content))}t.attr("tabindex")||t.attr("tabindex","0");var k=!1;t.bind("mouseenter",function(){k=!0,t.removeAttr("title")}),t.bind("mouseleave",function(){k=!1}),e.parentAttrs=n;var C,S,D,x="
',T=s(x)(e),$=angular.isDefined(f.appendToBody)?f.appendToBody:!1,E=g(void 0),A=!1,I=angular.isDefined(n[u+"Enable"]),L=0,P=!1;e.tt_isOpen=!1,e.$watch("tt_isOpen",function(e,t){e===t||e||p(T[0])}),n.$observe(a,function(t){t?e.tt_content=t:e.tt_isOpen&&_()}),n.$observe(u+"Title",function(t){e.tt_title=t}),n.$observe(u+"Placement",function(t){e.tt_placement=angular.isDefined(t)?t:f.placement}),n.$observe(u+"Style",function(t){e.tt_style=angular.isDefined(t)?t:f.stylett}),n.$observe(u+"Animation",function(t){e.tt_animation=angular.isDefined(t)?o(t):function(){return f.animation}}),n.$observe(u+"PopupDelay",function(t){var n=parseInt(t,10);e.tt_popupDelay=isNaN(n)?f.popupDelay:n}),n.$observe(u+"Trigger",function(e){A&&(t.unbind(E.show,d),t.unbind(E.hide,h)),E=g(e),"focus"===E.show?(t.bind("focus",d),t.bind("blur",h),t.bind("click",function(e){e.stopPropagation()})):E.show===E.hide?t.bind(E.show,i):(t.bind(E.show,d),t.bind(E.hide,h)),A=!0}),n.$observe(u+"AppendToBody",function(t){$=angular.isDefined(t)?o(t)(e):$}),n.$observe(u+"Offset",function(e){L=angular.isDefined(e)?parseInt(e,10):0}),n.$observe(u+"AriaLabel",function(t){angular.isDefined(t)?(e.tooltipAriaLabel=t,P=!0):P=!1,w()}),$&&e.$on("$locationChangeSuccess",function(){e.tt_isOpen&&_()}),e.$on("$destroy",function(){e.tt_isOpen?_():T.remove()})}}}}]}]).directive("tooltipPopup",["$document","$documentBind",function(e,t){return{restrict:"EA",replace:!0,transclude:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"=",stylett:"@"},templateUrl:"app/scripts/ng_js_att_tpls/tooltip/tooltip-popup.html",link:function(e,n){e.$watch("isOpen",function(){e.isOpen}),n.bind("click",function(e){e.stopPropagation()});var i=function(){e.$apply(function(){e.isOpen=!1})};t.event("click","isOpen",i,e,!0,10)}}}]).directive("tooltip",["$tooltip",function(e){return e("tooltip","tooltip","mouseenter")}]).directive("tooltipCondition",["$timeout",function(e){return{restrict:"EA",replace:!0,scope:{tooltipCondition:"@?"},template:'

{{tooltipCondition}}{{tooltipCondition}}

',link:function(t,n,i){t.showpop=!1,"true"===i.height?e(function(){var e=n[0].offsetHeight,i=n.children(0)[0].offsetHeight;i>e&&(t.showpop=!0)}):t.tooltipCondition.length>=25&&(t.showpop=!0)}}}]),angular.module("att.abs.popOvers",["att.abs.tooltip","att.abs.utilities","ngSanitize"]).directive("popover",["$tooltip",function(e){return e("popover","popover","click")}]).directive("popoverPopup",["$document","$documentBind","$timeout","events","DOMHelper",function(e,t,n,i,a){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/popOvers/popOvers.html",scope:{content:"@",placement:"@",animation:"&",isOpen:"=",stylett:"@"},link:function(e,s,r,o){e.closeable=!1;try{e.closeable=""===e.$parent.parentAttrs.closeable?!0:!1}catch(l){}var c=void 0,d=void 0,p=function(t){e.$apply(function(){e.isOpen=!1})},u=function(t){(27===t.which||27===t.keyCode)&&(console.log("ESC was pressed!"),e.$apply(function(){e.isOpen=!1}))};n(function(){d=a.firstTabableElement(s)},10,!1),e.$watch("isOpen",function(t){if(e.isOpen){if(c=document.activeElement,angular.isDefined(d))try{d.focus()}catch(n){}}else if(angular.isDefined(c))try{c.focus()}catch(n){}}),e.$watch("stylett",function(t){e.popOverStyle=t}),e.$watch("placement",function(t){e.popOverPlacement=t}),e.closeMe=function(){e.isOpen=!1},s.bind("click",function(e){i.stopPropagation(e)}),t.event("click","isOpen",p,e,!0,10),t.event("keydown","isOpen",u,e,!0,10)}}}]),angular.module("att.abs.profileCard",[]).constant("profileStatus",{status:{ACTIVE:{status:"Active",color:"green"},DEACTIVATED:{status:"Deactivated",color:"red"},LOCKED:{status:"Locked",color:"red"},IDLE:{status:"Idle",color:"yellow"},PENDING:{status:"Pending",color:"blue"}},role:"COMPANY ADMINISTRATOR"}).directive("profileCard",["$http","$q","profileStatus",function(e,t,n){return{restrict:"EA",replace:"true",templateUrl:function(e,t){return t.addUser?"app/scripts/ng_js_att_tpls/profileCard/addUser.html":"app/scripts/ng_js_att_tpls/profileCard/profileCard.html"},scope:{profile:"="},link:function(e,i,a){function s(e){var n=t.defer(),i=new Image;return i.onerror=function(){n.reject(!1)},i.onload=function(){n.resolve(!0)},void 0!==e&&e.length>0?i.src=e:n.reject(!1),n.promise}if(e.image=!0,!a.addUser){e.image=!1,s(e.profile.img).then(function(t){e.image=t});var r=e.profile.name.split(" ");e.initials="";for(var o=0;o=p?e.profile.lastLogin="Today":2>=p&&(e.profile.lastLogin="Yesterday")}}}}]),angular.module("att.abs.progressBars",[]).directive("attProgressBar",[function(){return{restrict:"A",replace:!0,templateUrl:"app/scripts/ng_js_att_tpls/progressBars/progressBars.html"}}]),angular.module("att.abs.radio",[]).constant("attRadioConfig",{activeClass:"att-radio--on",disabledClass:"att-radio--disabled"}).directive("attRadio",["$compile","attRadioConfig",function(e,t){return{scope:{},restrict:"A",require:"ngModel",link:function(n,i,a,s){var r=s;n.radioVal="";var o=angular.element('
');i.attr("value",a.attRadio),i.removeAttr("att-radio"),i.removeAttr("title"),i.attr("ng-model","radioVal"),o.append(i.prop("outerHTML")),o.append('
'),o.attr("title",a.title);var l=o.prop("outerHTML");l=e(l)(n),i=i.replaceWith(l);var c=l.find("input");c.on("focus",function(){l.css("outline","2px solid #5E9ED6"),l.css("outline","-webkit-focus-ring-color auto 5px")}),c.on("blur",function(){l.css("outline","none")}),r.$render=function(){n.radioVal=r.$modelValue;var e=angular.equals(r.$modelValue,a.attRadio);l.toggleClass(t.activeClass,e)},n.updateModel=function(){c[0].focus();var e=l.hasClass(t.activeClass);e||n.disabled||(r.$setViewValue(e?null:a.attRadio),r.$render())},a.$observe("disabled",function(e){n.disabled=e||"disabled"===e||"true"===e,n.disabled?(l.addClass(t.disabledClass),l.attr("tabindex","-1")):(l.removeClass(t.disabledClass),l.attr("tabindex","0"))})}}}]),angular.module("att.abs.scrollbar",["att.abs.position"]).constant("attScrollbarConstant",{defaults:{axis:"y",navigation:!1,wheel:!0,wheelSpeed:40,wheelLock:!0,scrollInvert:!1,trackSize:!1,thumbSize:!1,alwaysVisible:!0}}).directive("attScrollbar",["$window","$timeout","$parse","$animate","attScrollbarConstant","$position",function(e,t,n,i,a,s){return{restrict:"A",scope:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/scrollbar/scrollbar.html",controller:["$scope","$element","$attrs",function(r,o,l){function c(){k.contentRatio<=1&&k.contentPosition>k.contentSize-k.viewportSize?k.contentPosition=k.contentSize-k.viewportSize:k.contentRatio>1&&k.contentPosition>0&&(k.contentPosition=0),k.contentPosition<=0?r.prevAvailable=!1:r.prevAvailable=!0,k.contentPosition>=k.contentSize-k.viewportSize?r.nextAvailable=!1:r.nextAvailable=!0}function d(){I?(D.on("touchstart",u),$.on("touchstart",u)):($.on("mousedown",h),T.on("mousedown",v)),angular.element(e).on("resize",p),k.options.wheel&&o.on(L,g)}function p(){k.update()}function u(e){1===e.touches.length&&(e.stopPropagation(),h(e.touches[0]))}function h(e){C.addClass("scroll-no-select"),o.addClass("scroll-no-select"),k.options.alwaysVisible||T.addClass("visible"),E=A?e.clientX:e.clientY,k.thumbPosition=parseInt($.css(M),10)||0,I?(N=!1,F=!1,D.on("touchmove",f),D.on("touchend",b),$.on("touchmove",m),$.on("touchend",b)):(S.on("mousemove",v),S.on("mouseup",b),$.on("mouseup",b))}function g(n){if(!(k.contentRatio>=1)){k.options.alwaysVisible||(w&&t.cancel(w),T.addClass("visible"),w=t(function(){T.removeClass("visible")},100));var i=n&&n.originalEvent||n||e.event,a=k.options.axis.toUpperCase(),s={X:i.deltaX||0,Y:i.deltaY||0},l=0===i.deltaMode?k.options.wheelSpeed:1;k.options.scrollInvert&&(l*=-1),"mousewheel"===L&&(s.Y=-1*i.wheelDelta/40,i.wheelDeltaX&&(s.X=-1*i.wheelDeltaX/40)),s.X*=-1/l,s.Y*=-1/l;var d=s[a];k.contentPosition-=d*k.options.wheelSpeed,k.contentPosition=Math.min(k.contentSize-k.viewportSize,Math.max(0,k.contentPosition)),fireEvent(o[0],"move"),c(),$.css(M,k.contentPosition/k.trackRatio+"px"),x.css(M,-k.contentPosition+"px"),(k.options.wheelLock||k.contentPosition!==k.contentSize-k.viewportSize&&0!==k.contentPosition)&&i.preventDefault(),r.$apply()}}function f(e){e.preventDefault(),N=!0,v(e.touches[0])}function m(e){e.preventDefault(),F=!0,v(e.touches[0])}function v(e){if(!(k.contentRatio>=1)){var t=A?e.clientX:e.clientY,n=t-E;(k.options.scrollInvert&&!I||I&&!k.options.scrollInvert)&&(n=E-t),N&&I&&(n=E-t),F&&I&&(n=t-E);var i=Math.min(k.trackSize-k.thumbSize,Math.max(0,k.thumbPosition+n));k.contentPosition=i*k.trackRatio,fireEvent(o[0],"move"),c(),$.css(M,i+"px"),x.css(M,-k.contentPosition+"px"),r.$apply()}}function b(){C.removeClass("scroll-no-select"),o.removeClass("scroll-no-select"),k.options.alwaysVisible||T.removeClass("visible"),S.off("mousemove",v),S.off("mouseup",b),$.off("mouseup",b),S.off("touchmove",f),S.off("ontouchend",b),$.off("touchmove",m),$.off("touchend",b)}var y={axis:l.attScrollbar||a.defaults.axis,navigation:l.navigation||a.defaults.navigation,wheel:a.defaults.wheel,wheelSpeed:a.defaults.wheelSpeed,wheelLock:a.defaults.wheelLock,scrollInvert:a.defaults.scrollInvert,trackSize:a.defaults.trackSize,thumbSize:a.defaults.thumbSize,alwaysVisible:a.defaults.alwaysVisible},_=l.scrollbar;_=_?n(_)(r):{},this.options=angular.extend({},y,_),this._defaults=y;var w,k=this,C=angular.element(document.querySelectorAll("body")[0]),S=angular.element(document),D=angular.element(o[0].querySelectorAll(".scroll-viewport")[0]),x=angular.element(o[0].querySelectorAll(".scroll-overview")[0]),T=angular.element(o[0].querySelectorAll(".scroll-bar")[0]),$=angular.element(o[0].querySelectorAll(".scroll-thumb")[0]),E=0,A="x"===this.options.axis,I=!1,L="onwheel"in document?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",P=A?"width":"height",O=P.charAt(0).toUpperCase()+P.slice(1).toLowerCase(),M=A?"left":"top",F=!1,N=!1;("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)&&(I=!0),this.contentPosition=0,this.viewportSize=0,this.contentSize=0,this.contentRatio=0,this.trackSize=0,this.trackRatio=0,this.thumbSize=0,this.thumbPosition=0,this.initialize=function(){return this.options.alwaysVisible||T.css("opacity",0),k.update(),d(),k},this.setSizeData=function(){this.viewportSize=D.prop("offset"+O)||1,this.contentSize=x.prop("scroll"+O)||1,this.contentRatio=this.viewportSize/this.contentSize,this.trackSize=this.options.trackSize||this.viewportSize,this.thumbSize=Math.min(this.trackSize,Math.max(0,this.options.thumbSize||this.trackSize*this.contentRatio)),this.trackRatio=this.options.thumbSize?(this.contentSize-this.viewportSize)/(this.trackSize-this.thumbSize):this.contentSize/this.trackSize},this.update=function(e){return k.setSizeData(),E=T.prop("offsetTop"),T.toggleClass("disable",this.contentRatio>=1||isNaN(this.contentRatio)),!this.options.alwaysVisible&&this.contentRatio<1&&this.viewportSize>0&&i.addClass(T,"visible").then(function(){i.removeClass(T,"visible"),r.$digest()}),null!==e&&("bottom"===e?this.contentPosition=this.contentSize-this.viewportSize:this.contentPosition=parseInt(e,10)||0),c(),$.css(M,k.contentPosition/k.trackRatio+"px"),T.css(P,k.trackSize+"px"),$.css(P,k.thumbSize+"px"),x.css(M,-k.contentPosition+"px"),this},fireEvent=function(e,t){var n,i=e;document.createEvent?(n=document.createEvent("HTMLEvents"),n.initEvent(t,!0,!1),i.dispatchEvent(n)):document.createEventObject&&(n=document.createEventObject(),i.fireEvent("on"+t,n))},r.customScroll=function(e){if(!(k.contentRatio>=1)){var t,n=s.position(D);t=A?n.width:n.height,e?k.contentPosition+=t:k.contentPosition-=t,k.contentPosition=Math.min(k.contentSize-k.viewportSize,Math.max(0,k.contentPosition)),fireEvent(o[0],"move"),c(),$.css(M,k.contentPosition/k.trackRatio+"px"),x.css(M,-k.contentPosition+"px")}},this.cleanup=function(){D.off("touchstart",u),$.off("mousedown",h),T.off("mousedown",v),$.off("touchmove",m),$.off("touchend",b),angular.element(e).off("resize",p),o.off(L,g),k.options.alwaysVisible=!0,b()}}],link:function(e,n,i,a){e.navigation=a.options.navigation,e.viewportHeight=i.viewportHeight,e.viewportWidth=i.viewportWidth,e.scrollbarAxis=a.options.axis,"x"===e.scrollbarAxis?n.addClass("horizontal"):"y"===e.scrollbarAxis&&n.addClass("vertical");var s=n.css("position");"relative"!==s&&"absolute"!==s&&n.css("position","relative"),e.$watch(function(){t(r,100,!1)});var r=function(){var t=angular.element(n[0].querySelectorAll(".scroll-overview")[0]),i=t.prop("scrollHeight"),s=e.oldValue;i!==s&&(e.oldValue=i,a.update())};a.initialize(),n.on("$destroy",function(){a.cleanup()})}}}]),angular.module("att.abs.search",["att.abs.utilities","att.abs.position","att.abs.utilities"]).directive("attSearch",["$document","$filter","$isElement","$documentBind","$timeout","$log","keymap",function(e,t,n,i,a,s,r){return{restrict:"A",scope:{cName:"=attSearch"},transclude:!1,replace:!1,require:"ngModel",templateUrl:"app/scripts/ng_js_att_tpls/search/search.html",link:function(t,o,l,c){t.selectedIndex=-1,t.selectedOption=l.placeholder,t.isDisabled=!1,t.className="select2-match",t.showSearch=!1,t.showlist=!1;var d="",p=new Date,u=void 0,h=[];a(function(){h=o.find("li")},10),s.warn("attSearch is deprecated, please use attSelect instead. This component will be removed by version 2.7."),l.noFilter||"true"===l.noFilter?t.noFilter=!0:t.noFilter=!1,"false"===l.placeholderAsOption?t.selectedOption=l.placeholder:t.selectMsg=l.placeholder,(l.startsWithFilter||"true"===l.startsWithFilter)&&(t.startsWithFilter=!0),"true"===l.showInputFilter&&(t.showSearch=!1,s.warn("showInputFilter functionality has been removed from the library.")),l.disabled&&(t.isDisabled=!0),u=angular.element(o).children().eq(0).find("a")[0];var g=0,f=function(){if(t.noFilter){var e=d,n=0;for(n=g;n=t.cName.length||!t.cName[n+1].title.startsWith(e))&&g>0&&(g=0)}};t.showDropdown=function(){l.disabled||(t.showlist=!t.showlist,t.setSelectTop())},o.bind("keydown",function(e){if(r.isAllowedKey(e.keyCode)||r.isControl(e)||r.isFunctionKey(e))switch(e.preventDefault(),e.stopPropagation(),e.keyCode){case r.KEY.DOWN:t.selectNext();break;case r.KEY.UP:t.selectPrev(),d="";break;case r.KEY.ENTER:t.selectCurrent(),d="";break;case r.KEY.BACKSPACE:t.title="",d="",t.$apply();break;case r.KEY.SPACE:t.noFilter||(t.title+=" "),t.$apply();break;case r.KEY.ESC:""===t.title||void 0===t.title?(t.showlist=!1,u.focus(),t.$apply()):(t.title="",t.$apply()),t.noFilter&&(d="",u.focus(),t.showlist=!1)}else if(9!==e.keyCode){if(t.noFilter){var n=new Date,i=Math.abs(p.getMilliseconds()-n.getMilliseconds());p=n,i>100&&(d=""),d=d?d+String.fromCharCode(e.keyCode):String.fromCharCode(e.keyCode),d.length>2&&(d=d.substring(0,2)),f()}else t.showlist=!0,t.title=t.title?t.title+String.fromCharCode(e.keyCode):String.fromCharCode(e.keyCode);t.$apply()}else 9===e.keyCode&&(t.showlist=!1,t.title="",t.$apply())}),t.selectOption=function(e,n,i){-1===n||"-1"===n?(t.selCategory="",t.selectedIndex=-1,c.$setViewValue(""),"false"!==l.placeholderAsOption&&(t.selectedOption=t.selectMsg)):(t.selCategory=t.cName[n],t.selectedIndex=n,c.$setViewValue(t.selCategory),t.selectedOption=t.selCategory.title,angular.isDefined(h[n])&&h[n].focus()),t.title="",i||(t.showlist=!1,u.focus()),t.$apply()},t.selectCurrent=function(){t.showlist?(t.selectOption(t.selectMsg,t.selectedIndex,!1),t.$apply()):(t.showlist=!0,t.setSelectTop(),t.$apply())},t.hoverIn=function(e){t.selectedIndex=e,t.focusme()},t.setSelectTop=function(){a(function(){if(t.showlist&&!t.noFilter){var e=angular.element(o)[0].querySelector(".select2-results");if(angular.element(e.querySelector(".select2-result-current"))[0])var n=angular.element(e.querySelector(".select2-result-current"))[0].offsetTop;angular.element(e)[0].scrollTop=n}})},t.setCurrentTop=function(){a(function(){if(t.showlist){var e=angular.element(o)[0].querySelector(".select2-results");if(angular.element(e.querySelector(".hovstyle"))[0])var n=angular.element(e.querySelector(".hovstyle"))[0].offsetTop;nangular.element(e)[0].clientHeight&&(angular.element(e)[0].scrollTop+=30)}})},t.selectNext=function(){t.selectedIndex+1<=t.cName.length-1&&(t.selectedIndex+=1,t.showlist||t.selectOption(t.selectMsg,t.selectedIndex,!1),t.focusme(),t.$apply()),t.setCurrentTop()},t.selectPrev=function(){t.selectedIndex-1>=0?(t.selectedIndex-=1,t.showlist||t.selectOption(t.selectMsg,t.selectedIndex,!1),t.focusme(),t.$apply()):t.selectedIndex-1<0&&(void 0===l.placeholderAsOption||"true"===l.placeholderAsOption?t.selectedIndex=-1:t.selectedIndex=0,t.showlist||t.selectOption(t.selectMsg,t.selectedIndex,!1),t.focusme(),t.$apply()),t.setCurrentTop()},t.updateSelection=function(e){t.selectedOption=e.title,t.title=""},t.focusme=function(){a(function(){var e=angular.element(o).find("ul").find("li"),n=t.selectedIndex+2;t.noFilter&&(n=t.selectedIndex),angular.isDefined(e[n])&&e[n].focus()})},t.$watch("selCategory",function(e){e&&t.updateSelection(e)}),c.$viewChangeListeners.push(function(){t.$eval(l.ngChange)}),c.$render=function(){t.selCategory=c.$viewValue};var m=function(i){var a=n(angular.element(i.target),o,e);a||(t.showlist=!1,u.focus(),t.$apply())};i.click("showlist",m,t)}}}]),angular.module("att.abs.select",["att.abs.utilities","att.abs.position","att.abs.utilities"]).directive("attSelect",["$document","$filter","$isElement","$documentBind","$timeout","keymap","$log",function(e,t,n,i,a,s,r){return{restrict:"A",scope:{cName:"=attSelect"},transclude:!1,replace:!1,require:"ngModel",templateUrl:"app/scripts/ng_js_att_tpls/select/select.html",link:function(o,l,c,d){o.selectedIndex=-1,o.selectedOption=c.placeholder,o.isDisabled=!1,o.className="select2-match",o.showSearch=!1,o.showlist=!1,o.titleName=c.titlename,o.$watch("ngModel",function(){});var p="",u=new Date,h=void 0,g=[];a(function(){g=l.find("li")},10),c.noFilter||"true"===c.noFilter?o.noFilter=!0:o.noFilter=!1,"false"===c.placeholderAsOption?o.selectedOption=c.placeholder:o.selectMsg=c.placeholder,(c.startsWithFilter||"true"===c.startsWithFilter)&&(o.startsWithFilter=!0),"true"===c.showInputFilter&&(o.showSearch=!1,r.warn("showInputFilter functionality has been removed from the library.")),c.disabled&&(o.isDisabled=!0);var f=function(){return o.startsWithFilter?"startsWith":"filter"};h=angular.element(l).children().eq(0).find("span")[0];var m=0,v=function(){if(o.noFilter){var e=p,t=0;for(t=m;t=o.cName.length||!o.cName[t+1].title.startsWith(e))&&m>0&&(m=0)}};o.showDropdown=function(){c.disabled||(o.showlist=!o.showlist,o.setSelectTop(),o.focusme())},l.bind("keydown",function(e){if(s.isAllowedKey(e.keyCode)||s.isControl(e)||s.isFunctionKey(e))switch(e.preventDefault(),e.stopPropagation(),e.keyCode){case s.KEY.DOWN:o.selectNext();break;case s.KEY.UP:o.selectPrev(),p="";break;case s.KEY.ENTER:o.selectCurrent(),p="";break;case s.KEY.BACKSPACE:o.title="",p="",o.$apply();break;case s.KEY.SPACE:o.noFilter||(o.title+=" "),o.$apply();break;case s.KEY.ESC:""===o.title||void 0===o.title?(o.showlist=!1,h.focus(),o.$apply()):(o.title="",o.$apply()),o.noFilter&&(p="",h.focus(),o.showlist=!1)}else if(e.keyCode!==s.KEY.TAB){if(o.noFilter){var n=new Date,i=Math.abs(u.getMilliseconds()-n.getMilliseconds());u=n,i>100&&(p=""),p=p?p+String.fromCharCode(e.keyCode):String.fromCharCode(e.keyCode),p.length>2&&(p=p.substring(0,2)),v()}else if(o.showlist=!0,o.title=o.title?o.title+String.fromCharCode(e.keyCode):String.fromCharCode(e.keyCode),""!=o.title)for(var a=t(f())(o.cName,o.title),r=0;rangular.element(e)[0].clientHeight&&(angular.element(e)[0].scrollTop+=30)}})},o.selectNext=function(){o.cName.length;if(o.selectedIndex+1<=o.cName.length-1){o.selectedIndex+=1;var e=o.cName[o.selectedIndex].disabled;e&&(o.selectedIndex+=1),o.showlist||o.selectOption(o.selectMsg,o.selectedIndex,!1),o.focusme(),o.$apply()}o.setCurrentTop()},o.selectPrev=function(){if(o.selectedIndex-1>=0){o.selectedIndex-=1;var e=o.cName[o.selectedIndex].disabled;e&&(o.selectedIndex-=1),o.showlist||o.selectOption(o.selectMsg,o.selectedIndex,!1),o.focusme(),o.$apply()}else o.selectedIndex-1<0&&(void 0===c.placeholderAsOption||"true"===c.placeholderAsOption?void 0===c.placeholder?o.selectedIndex=0:o.selectedIndex=-1:o.selectedIndex=0,o.showlist||o.selectOption(o.selectMsg,o.selectedIndex,!1),o.focusme(),o.$apply());o.setCurrentTop()},o.updateSelection=function(e){o.selectedOption=e.title,o.title="",e.index<0&&o.selectOption(o.selectMsg,e.index,o.showlist)},o.focusme=function(){a(function(){var e=angular.element(l).find("ul").find("li"),t=o.selectedIndex+2;if(o.noFilter&&(t=o.selectedIndex),angular.isDefined(e[t]))try{e[t].focus()}catch(n){}})},o.$watch("selCategory",function(e){e&&o.updateSelection(e)}),d.$viewChangeListeners.push(function(){o.$eval(c.ngChange)}),d.$render=function(){o.selCategory=d.$viewValue};var b=function(t){var i=n(angular.element(t.target),l,e);i||(o.showlist=!1,h.focus(),o.$apply())};i.click("showlist",b,o)}}}]).directive("textDropdown",["$document","$isElement","$documentBind","keymap",function(e,t,n,i){return{restrict:"EA",replace:!0,scope:{actions:"=actions",defaultAction:"=defaultAction",onActionClicked:"=?"},templateUrl:"app/scripts/ng_js_att_tpls/select/textDropdown.html",link:function(a,s,r){a.selectedIndex=0,a.selectedOption=r.placeholder,a.isDisabled=!1,a.isActionsShown=!1;var o=void 0;if(r.disabled&&(a.isDisabled=!0),o=s.find("div")[0],angular.isDefined(a.defaultAction))if(angular.isDefined(a.defaultAction)||""!==a.defaultAction){for(var l in a.actions)if(a.actions[l]===a.defaultAction){a.currentAction=a.actions[l],a.selectedIndex=a.actions.indexOf(l),a.isActionsShown=!1;break}}else a.currentAction=a.actions[0];else a.currentAction=a.actions[0],a.selectedIndex=0;a.toggle=function(){a.isActionsShown=!a.isActionsShown},a.chooseAction=function(e,t,n){null!=e?(a.currentAction=t,a.selectedIndex=n):a.currentAction=a.actions[a.selectedIndex],angular.isFunction(a.onActionClicked)&&a.onActionClicked(a.currentAction),a.toggle()},a.isCurrentAction=function(e){return e===a.currentAction},s.bind("keydown",function(e){if(i.isAllowedKey(e.keyCode)||i.isControl(e)||i.isFunctionKey(e)){switch(e.preventDefault(),e.stopPropagation(),e.keyCode){case i.KEY.DOWN:a.selectNext();break;case i.KEY.UP:a.selectPrev();break;case i.KEY.ENTER:a.selectCurrent();break;case i.KEY.ESC:a.isActionsShown=!1,o.focus(),a.$apply()}return void a.$apply()}e.keyCode===i.KEY.TAB&&(a.isActionsShown=!1,a.$apply())}),a.selectCurrent=function(){a.selectedIndex<0&&(a.selectedIndex=0),a.isActionsShown?a.chooseAction(null,a.currentAction):a.toggle()},a.selectNext=function(){a.isActionsShown&&(a.selectedIndex+1=0?a.selectedIndex-=1:a.selectedIndex-1<0&&(a.selectedIndex=0),a.$apply())},a.hoverIn=function(e){a.selectedIndex=e};var c=function(n){var i=t(angular.element(n.target),s,e);i||(a.toggle(),a.$apply())};n.click("isActionsShown",c,a)}}}]),angular.module("att.abs.slider",["att.abs.position"]).constant("sliderDefaultOptions",{width:300,step:1,precision:0,disabledWidth:116}).directive("attSlider",["sliderDefaultOptions","$position","$document",function(e,t,n){return{restrict:"EA",replace:!0,transclude:!0,scope:{floor:"=",ceiling:"=",step:"@",precision:"@",width:"@",textDisplay:"=",value:"=",ngModelSingle:"=?",ngModelLow:"=?",ngModelHigh:"=?",ngModelDisabled:"=?"},templateUrl:"app/scripts/ng_js_att_tpls/slider/slider.html",link:function(i,a,s){var r,o,l,c,d,p,u,h,g,f,m,v,b,y,_,w,k,C,S=0,D=!1;i.minPtrOffset=0,i.maxPtrOffset=0;var x=e.disabledWidth,T=a.children();h=T[0].children,h=angular.element(h[0]),C=T[1].children,k=angular.element(C[0]),w=angular.element(C[1]),_=angular.element(C[2]),g=null==s.ngModelSingle&&null==s.ngModelLow&&null==s.ngModelHigh&&null!=s.ngModelDisabled,v=null==s.ngModelSingle&&null!=s.ngModelLow&&null!=s.ngModelHigh,b="ngModelLow",y="ngModelHigh",v?k.remove():(w.remove(),_.remove()),g?(i.disabledStyle={width:x+"px",zIndex:1},i.handleStyle={left:x+"px"}):h.remove(),f=parseFloat(i.floor),m=parseFloat(i.ceiling),u=m-f,r=0,o=void 0!==s.width?s.width:0!==a[0].clientWidth?a[0].clientWidth:e.width,p=o-r,i.keyDown=function(n){if(39===n.keyCode){var s=t.position(a).left;if(l)"ngModelLow"===i.ref?(c=e.step+c,l=c):"ngModelHigh"===i.ref?(d=e.step+d,l=d):l=e.step+l;else{if(v&&"ngModelLow"===i.ref)return;l=e.step+s,c=d=l}}else if(37===n.keyCode){var r=t.position(k).left;l?0>=l||("ngModelLow"===i.ref?(c-=e.step,l=c):"ngModelHigh"===i.ref?(d-=e.step,l=d):(l-=e.step,c=d=l)):l=r-e.step}l>=0&&i.ptrOffset(l)},i.mouseDown=function(e,t){i.ref=t,D=!0,S=v?i.ref===b?e.clientX-i.minPtrOffset:e.clientX-i.maxPtrOffset:l?e.clientX-l:e.clientX,g&&(i.ref="ngModelDisabled",i.disabledStyle={width:x+"px",zIndex:1})},i.moveElem=function(e){if(D){var t;t=e.clientX,l=t-S,i.ptrOffset(l)}},i.focus=function(e,t){console.log(t),i.ref=t},i.mouseUp=function(e){D=!1,w.removeClass("dragging"),_.removeClass("dragging"),k.removeClass("dragging"),n.off("mousemove")},i.keyUp=function(e){D=!1,w.removeClass("dragging"),_.removeClass("dragging"),k.removeClass("dragging"),n.off("mousemove")},i.calStep=function(e,t,n,i){var a,s,r,o;return null===i&&(i=0),null===n&&(n=1/Math.pow(10,t)),s=(e-i)%n,o=s>n/2?e+n-s:e-s,a=Math.pow(10,t),r=o*a/a,r.toFixed(t)},i.percentOffset=function(e){return(e-r)/p*100},i.ptrOffset=function(t){var n,a;if(t=Math.max(Math.min(t,o),r),n=i.percentOffset(t),a=f+u*n/100,v){var s;i.ref===b?(i.minHandleStyle={left:t+"px"},i.minNewVal=a,i.minPtrOffset=t,w.addClass("dragging"),a>i.maxNewVal&&(i.ref=y,_[0].focus(),i.maxNewVal=a,i.maxPtrOffset=t,_.addClass("dragging"),w.removeClass("dragging"),i.maxHandleStyle={left:t+"px"})):(i.maxHandleStyle={left:t+"px"},i.maxNewVal=a,i.maxPtrOffset=t,_.addClass("dragging"),ax?i.rangeStyle={width:t+"px",zIndex:0}:(k.addClass("dragging"),i.rangeStyle={width:t+"px"}),i.handleStyle={left:t+"px"};(void 0===i.precision||void 0===i.step)&&(i.precision=e.precision,i.step=e.step),a=i.calStep(a,parseInt(i.precision),parseFloat(i.step),parseFloat(i.floor)),i[i.ref]=a}}}}]).directive("attSliderMin",[function(){return{require:"^attSlider",restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/slider/minContent.html"}}]).directive("attSliderMax",[function(){return{require:"^attSlider",restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/slider/maxContent.html"}}]),angular.module("att.abs.splitButtonDropdown",["att.abs.utilities","att.abs.position"]).directive("attButtonDropdown",["$document","$parse","$documentBind","$timeout","$isElement",function(e,t,n,i,a){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdown.html",scope:{btnText:"@",btnType:"@",btnLink:"@",btnClick:"&",toggleTitle:"@"},controller:["$scope","$element",function(e,t){this.cSelected=0,this.closeAndFocusDropdown=function(){e.isDropDownOpen&&e.$apply(function(){e.isDropDownOpen=!1,angular.element(t[0].querySelector("a.dropdown-toggle"))[0].focus()})},this.focusNext=function(){this.cSelected=this.cSelected+1>=this.childScopes.length?e.cycleSelection===!0?0:this.childScopes.length-1:this.cSelected+1,this.childScopes[this.cSelected].sFlag=!0,this.resetFlag(this.cSelected)},this.focusPrev=function(){this.cSelected=this.cSelected-1<0?e.cycleSelection===!0?this.childScopes.length-1:0:this.cSelected-1,this.childScopes[this.cSelected].sFlag=!0,this.resetFlag(this.cSelected)},this.childScopes=[],this.registerScope=function(e){this.childScopes.push(e)},this.resetFlag=function(e){for(var t=0;t
",scope:{dirType:"@"},link:function(e,t,n,i){var a=i[0],s=i[1];a.addSubCtrl(s)}}}]).controller("AttSplitIconCtrl",["$scope",function(e){this.setType=function(t){e.type=t},this.isDropdown=function(t){e.isDropdown=t},this.dropDownClicked=function(){e.dropDownClicked&&e.dropDownClicked()},this.dirType=e.dirType}]).directive("attSplitIcon",["$document","$timeout","iconStateConstants","$documentBind","events","keymap",function(e,t,n,i,a,s){return{restrict:"EA",replace:!0,priority:200,transclude:!0,require:["^attSplitIconButton","attSplitIcon"],templateUrl:"app/scripts/ng_js_att_tpls/splitIconButton/splitIcon.html",scope:{icon:"@",iconTitle:"@title",hoverWatch:"=",dropDownWatch:"=",dirType:"@"},controller:"AttSplitIconCtrl",link:function(e,t,r,o){var l=o[0],c=o[1];l.addSubCtrl(c),e.iconStateConstants=n;var d,p=0,u=!1;e.isDropdown=!1,e.isDropdownOpen=!1;var h=function(t){e.isDropdown&&(u?(u=!1,e.toggleDropdown()):e.toggleDropdown(!1),e.$apply())};r.dropDownId&&""!==r.dropDownId&&(e.dropDownId=r.dropDownId,e.isDropdown=!0),e.$on(n.SPLIT_ICON_BTN_EVENT_EMITTER_KEY,function(n,i){function r(t){switch(t.which){case s.KEY.TAB:e.toggleDropdown(!1),e.$digest();break;case s.KEY.ESC:h();break;case s.KEY.ENTER:e.isDropDownOpen&&o();break;case s.KEY.UP:t.preventDefault(),a.stopPropagation(t),e.isDropDownOpen&&e.previousItemInDropdown();break;case s.KEY.DOWN:t.preventDefault(),a.stopPropagation(t),e.isDropDownOpen?e.nextItemInDropdown():(u=!0,h(),o())}}function o(){if(void 0===d){d=[];for(var e=t.find("li"),n=0;n0&&(p--,d[p].children().eq(0).addClass("selected-item"),p+1e;e++)if(l[e]===s){c-1>=e+1&&l[e+1].isLeftLineShown()&&l[e+1].subCtrls[d]&&l[e+1].subCtrls[d].setActiveState&&l[e+1].subCtrls[d].setActiveState(i),e-1>=0&&l[e-1].isRightLineShown()&&l[e-1].subCtrls[p]&&l[e-1].subCtrls[p].setActiveState&&l[e-1].subCtrls[p].setActiveState(i);break}}var l=a.subIconButtons,c=l.length,d=n(t.DIR_TYPE.LEFT),p=n(t.DIR_TYPE.RIGHT);r?l[c-2]==s?l[c-2].isLeftLineShown()?l[c-2].subCtrls[d].setActiveState(i):c-3>=0&&l[c-3].isRightLineShown()&&l[c-3].subCtrls[p].setActiveState(i):(o(),e.isLeftLineShown&&this.subCtrls[d].setActiveState(i),e.isRightLineShown&&this.subCtrls[p].setActiveState(i)):(e.isLeftLineShown||e.isRightLineShown||o(),e.isLeftLineShown&&this.subCtrls[d].setActiveState&&this.subCtrls[d].setActiveState(i),e.isRightLineShown&&this.subCtrls[p].setActiveState&&this.subCtrls[p].setActiveState(i))},this.setButtonType=function(e){var i=n(t.DIR_TYPE.BUTTON);this.subCtrls[i]&&this.subCtrls[i].setType&&this.subCtrls[i].setType(e)}}]).directive("attSplitIconButton",["$document","iconStateConstants","keymap",function(e,t,n){return{restrict:"EA",replace:!0,priority:100,transclude:!0,require:["^attSplitIconButtonGroup","attSplitIconButton"],controller:"AttSplitIconButtonCtrl",templateUrl:"app/scripts/ng_js_att_tpls/splitIconButton/splitIconButton.html",scope:{icon:"@",title:"@",dropDownId:"@"},link:function(e,i,a,s){e.title||(e.title=e.icon);var r=s[0],o=s[1];r.addIconButton(o),i.bind("keydown",function(i){(i.which===n.KEY.ESC||i.which===n.KEY.DOWN||i.which===n.KEY.ENTER||i.which===n.KEY.UP||i.which===n.KEY.TAB)&&(e.clickHandler(),e.$broadcast(t.SPLIT_ICON_BTN_EVENT_EMITTER_KEY,i))}),e.dropDownWatch=!1,e.iconStateConstants=t,e.clickHandler=function(){r.hideLeftLineRightButton(o)},e.$watch("isHovered",function(e){e?o.toggleLines(e,r,o,r.isDropDownOpen):o.toggleLines(e,r,o,r.isDropDownOpen)}),e.$watch("dropDownWatch",function(e){r.isDropDownOpen=e,r.toggleDropdownState(e)})}}}]).controller("AttSplitIconButtonGroupCtrl",["$scope","iconStateConstants",function(e,t){this.subIconButtons=[],this.addIconButton=function(e){this.subIconButtons.push(e)},this.isDropDownOpen=!1,this.hideLeftLineRightButton=function(e){var t=this.subIconButtons.length,n=this.subIconButtons[t-2],i=this.subIconButtons[t-1];e!=n&&e!=i&&i.setLeftLineHover(!1)},this.toggleDropdownState=function(e){var n=this.subIconButtons.length;n>2?e?(this.subIconButtons[n-2].isRightLineShown()?this.subIconButtons[n-2].setRightLineHover(!0):this.subIconButtons[n-1].setLeftLineHover(!0),this.subIconButtons[n-2].setButtonType(t.NEXT_TO_DROPDOWN)):(this.subIconButtons[n-1].setLeftLineHover(!1),this.subIconButtons[n-2].setButtonType(t.MIDDLE)):e?(this.subIconButtons[0].setRightLineHover(!0),this.subIconButtons[0].setButtonType(t.LEFT_NEXT_TO_DROPDOWN)):this.subIconButtons[0].setButtonType(t.LEFT)}}]).directive("attSplitIconButtonGroup",["$document","$timeout","iconStateConstants",function(e,t,n){return{restrict:"EA",replace:!0,priority:50,transclude:!0,require:"attSplitIconButtonGroup",controller:"AttSplitIconButtonGroupCtrl",templateUrl:"app/scripts/ng_js_att_tpls/splitIconButton/splitIconButtonGroup.html",scope:{},link:function(e,i,a,s){function r(){var e=s.subIconButtons,t=0,a=e.length-1;if(e[t].setButtonType(n.LEFT),e[t].isLeftLineShown(!1),e[t].isRightLineShown(!0),e[a].setButtonType(n.RIGHT),e[a].isRightLineShown(!1),e[a].isLeftLineShown(!1),a>=2){for(var r=1;a>r;)e[r].setButtonType(n.MIDDLE),e[r].isRightLineShown(!1),e[r].isLeftLineShown(!1),r++;for(var o=2;a>=o;)o==a?e[o].isLeftLineShown(!0):(e[o].isRightLineShown(!0),e[o].isLeftLineShown(!0)),o+=2}var l=i.find("ul");if(l.length>0){var c=a+1;if(c>2){var d=34*c-70+c/1.5+.5,p=d+"px";angular.element(l).css("left",p),angular.element(l).css("border-top-left-radius","0px")}else angular.element(l).css("left","0px")}}t(r,100)}}}]),angular.module("att.abs.stepSlider",["att.abs.position"]).constant("sliderConstants",{SLIDER:{settings:{from:1,to:40,step:1,smooth:!0,limits:!0,value:"3",dimension:"",vertical:!1},className:"jslider",selector:".jslider-"},EVENTS:{},COLORS:{GREEN:"green",BLUE_HIGHLIGHT:"blue",MAGENTA:"magenta",GOLD:"gold",PURPLE:"purple",DARK_BLUE:"dark-blue",REGULAR:"regular",WHITE:"white"}}).factory("utils",function(){return{offset:function(e){var t=e[0],n=0,i=0,a=document.documentElement||document.body,s=window.pageXOffset||a.scrollLeft,r=window.pageYOffset||a.scrollTop;return n=t.getBoundingClientRect().left+s,i=t.getBoundingClientRect().top+r,{left:n,top:i}},roundUpToScale:function(e,t,n,i){function a(e,t){var n=.1;return Math.abs(t-e)<=n?!0:!1}for(var s,r,o,l,c=1;c=e||a(s,e)){o=s;break}if(e>s&&(r>e||a(e,r))){o=r;break}}return n&&n>o?t[i]:o},valueForDifferentScale:function(e,t,n,i){var a=n/100;return 0===a?e:i[n]},convertToMbpsGbps:function(e,t,n){function i(e,t){var n=Math.pow(10,t);return~~(e*n)/n}var a=3;return n&&(a=n),e>1024&&1e6>e&&angular.equals(t,"Kbps")?(e=i(e/1e3,a),t="Mbps"):e>1024&&1e6>e&&angular.equals(t,"Mbps")?(e=i(e/1e3,a),t="Mbps"):t=(1024>=e&&angular.equals(t,"Mbps"),"Kbps"),e>=1e6&&angular.equals(t,"Kbps")&&(e=i(e/1e6,a),t="Gbps"),{unitValue:e,unitLabel:t}},getConversionFactorValue:function(e,t,n){if(e<=t[0].startVal)return{scaledVal:e,scaledDimension:n};var i=0;for(var a in t){var s=t[a];e>s.startVal&&(i=a)}var r=t[i].scaleFactor,o=e/r,l=t[i].dimension;return{scaledVal:o,scaledDimension:l}}}}).factory("sliderDraggable",["utils",function(e){function t(){this._init.apply(this,arguments)}return t.prototype.oninit=function(){},t.prototype.events=function(){},t.prototype.onmousedown=function(){this.ptr.css({position:"absolute"})},t.prototype.onmousemove=function(e,t,n){this.ptr.css({left:t,top:n})},t.prototype.onmouseup=function(){},t.prototype.isDefault={drag:!1,clicked:!1,toclick:!0,mouseup:!1},t.prototype._init=function(){if(arguments.length>0){if(this.ptr=arguments[0],this.parent=arguments[2],!this.ptr)return;this.is={},angular.extend(this.is,this.isDefault);var t=e.offset(this.ptr);this.d={left:t.left,top:t.top,width:this.ptr[0].clientWidth,height:this.ptr[0].clientHeight},this.oninit.apply(this,arguments),this._events()}},t.prototype._getPageCoords=function(e){var t={};return t=e.targetTouches&&e.targetTouches[0]?{x:e.targetTouches[0].pageX,y:e.targetTouches[0].pageY}:{x:e.pageX,y:e.pageY}},t.prototype._bindEvent=function(e,t,n){this.supportTouches_?e[0].attachEvent(this.events_[t],n):e.bind&&e.bind(this.events_[t],n)},t.prototype._events=function(){var e=this;this.supportTouches_="ontouchend"in document,this.events_={click:this.supportTouches_?"touchstart":"click",down:this.supportTouches_?"touchstart":"mousedown",move:this.supportTouches_?"touchmove":"mousemove",up:this.supportTouches_?"touchend":"mouseup",mousedown:(this.supportTouches_,"mousedown")};var t=angular.element(window.document);this._bindEvent(t,"move",function(t){e.is.drag&&(t.stopPropagation(),t.preventDefault(),e.parent.disabled||e._mousemove(t))}),this._bindEvent(t,"down",function(t){e.is.drag&&(t.stopPropagation(),t.preventDefault())}),this._bindEvent(t,"up",function(t){e._mouseup(t)}),this._bindEvent(this.ptr,"down",function(t){return e._mousedown(t),!1}),this._bindEvent(this.ptr,"up",function(t){e._mouseup(t)}),this.events()},t.prototype._mousedown=function(e){this.is.drag=!0,this.is.clicked=!1,this.is.mouseup=!1;var t=this._getPageCoords(e);this.cx=t.x-this.ptr[0].offsetLeft,this.cy=t.y-this.ptr[0].offsetTop,angular.extend(this.d,{left:this.ptr[0].offsetLeft,top:this.ptr[0].offsetTop,width:this.ptr[0].clientWidth,height:this.ptr[0].clientHeight}),this.outer&&this.outer.get(0)&&this.outer.css({height:Math.max(this.outer.height(),$(document.body).height()),overflow:"hidden"}),this.onmousedown(e)},t.prototype._mousemove=function(e){if(0!==this.uid){this.is.toclick=!1;var t=this._getPageCoords(e);this.onmousemove(e,t.x-this.cx,t.y-this.cy)}},t.prototype._mouseup=function(e){this.is.drag&&(this.is.drag=!1,this.outer&&this.outer.get(0)&&($.browser.mozilla?this.outer.css({overflow:"hidden"}):this.outer.css({overflow:"visible"}),$.browser.msie&&"6.0"===$.browser.version?this.outer.css({height:"100%"}):this.outer.css({height:"auto"})),this.onmouseup(e))},t}]).factory("sliderPointer",["sliderDraggable","utils",function(e,t){function n(){e.apply(this,arguments)}return n.prototype=new e,n.prototype.oninit=function(e,t,n){this.uid=t,this.parent=n,this.value={},this.settings=angular.copy(n.settings)},n.prototype.onmousedown=function(e){var n=t.offset(this.parent.domNode),i={left:n.left,top:n.top,width:this.parent.domNode[0].clientWidth,height:this.parent.domNode[0].clientHeight};this._parent={offset:i,width:i.width,height:i.height},this.ptr.addClass("jslider-pointer-hover"),this.setIndexOver()},n.prototype.onmousemove=function(e,n,i){var a=this._getPageCoords(e),s=this.calc(a.x);this.parent.settings.smooth||(s=t.roundUpToScale(s,this.parent.settings.scale,this.parent.settings.cutOffWidth,this.parent.settings.cutOffIndex));var r=this.parent.settings.cutOffWidth;r&&r>s&&(s=r),this._set(s)},n.prototype.onmouseup=function(e){if(this.settings.callback&&angular.isFunction(this.settings.callback)){var t=this.parent.getValue();this.settings.callback.call(this.parent,t)}this.ptr.removeClass("jslider-pointer-hover")},n.prototype.setIndexOver=function(){this.parent.setPointersIndex(1),this.index(2)},n.prototype.index=function(e){},n.prototype.limits=function(e){return this.parent.limits(e,this)},n.prototype.calc=function(e){var t=e-this._parent.offset.left,n=this.limits(100*t/this._parent.width);return n},n.prototype.set=function(e,t){this.value.origin=this.parent.round(e),this._set(this.parent.valueToPrc(e,this),t)},n.prototype._set=function(e,t){t||(this.value.origin=this.parent.prcToValue(e)),this.value.prc=e,this.ptr.css({left:e+"%"}),this.parent.redraw(this)},n}]).factory("slider",["sliderPointer","sliderConstants","utils",function(e,t,n){function i(){return this.init.apply(this,arguments)}function a(e){s.css("width",e)}var s;return i.prototype.changeCutOffWidth=a,i.prototype.init=function(e,n,i){this.settings=t.SLIDER.settings,angular.extend(this.settings,angular.copy(i)),this.inputNode=e,this.inputNode.addClass("ng-hide"),this.settings.interval=this.settings.to-this.settings.from,this.settings.calculate&&$.isFunction(this.settings.calculate)&&(this.nice=this.settings.calculate),this.settings.onstatechange&&$.isFunction(this.settings.onstatechange)&&(this.onstatechange=this.settings.onstatechange),this.is={init:!1},this.o={},this.create(n)},i.prototype.create=function(t){var i=this;this.domNode=t;var a=n.offset(this.domNode),r={left:a.left,top:a.top,width:this.domNode[0].clientWidth,height:this.domNode[0].clientHeight};this.sizes={domWidth:this.domNode[0].clientWidth,domOffset:r},angular.extend(this.o,{pointers:{},labels:{0:{o:angular.element(this.domNode.find("div")[5])},1:{o:angular.element(this.domNode.find("div")[6])}},limits:{0:angular.element(this.domNode.find("div")[3]),1:angular.element(this.domNode.find("div")[5])}}),angular.extend(this.o.labels[0],{value:this.o.labels[0].o.find("span")}),angular.extend(this.o.labels[1],{value:this.o.labels[1].o.find("span")}),i.settings.value.split(";")[1]||(this.settings.single=!0);var o=this.domNode.find("div");s=angular.element(o[8]),s&&s.css&&s.css("width","0%");var l=[angular.element(o[1]),angular.element(o[2])];angular.forEach(l,function(t,n){i.settings=angular.copy(i.settings);var a=i.settings.value.split(";")[n];if(a){i.o.pointers[n]=new e(t,n,i);var s=i.settings.value.split(";")[n-1];s&&parseInt(a,10)i.settings.to?i.settings.to:a,i.o.pointers[n].set(r,!0),0===n&&i.domNode.bind("mousedown",i.clickHandler.apply(i))}}),this.o.value=angular.element(this.domNode.find("i")[2]),this.is.init=!0,angular.forEach(this.o.pointers,function(e){i.redraw(e)})},i.prototype.clickHandler=function(){var e=this;return function(t){if(!e.disabled){var i=t.target.className,a=0;i.indexOf("jslider-pointer-to")>0&&(a=1);var s=n.offset(e.domNode),r={left:s.left,top:s.top,width:e.domNode[0].clientWidth,height:e.domNode[0].clientHeight};a=1;var o=e.o.pointers[a];return o._parent={offset:r,width:r.width,height:r.height},o._mousemove(t),o.onmouseup(),!1}}},i.prototype.disable=function(e){this.disabled=e},i.prototype.nice=function(e){return e},i.prototype.onstatechange=function(){},i.prototype.limits=function(e,t){if(!this.settings.smooth){var n=100*this.settings.step/this.settings.interval;e=Math.round(e/n)*n}var i=this.o.pointers[1-t.uid];i&&t.uid&&ei.value.prc&&(e=i.value.prc),0>e&&(e=0),e>100&&(e=100);var a=Math.round(10*e)/10;return a},i.prototype.setPointersIndex=function(e){angular.forEach(this.getPointers(),function(e,t){e.index(t)})},i.prototype.getPointers=function(){return this.o.pointers},i.prototype.onresize=function(){var e=this;this.sizes={domWidth:this.domNode[0].clientWidth,domHeight:this.domNode[0].clientHeight,domOffset:{left:this.domNode[0].offsetLeft,top:this.domNode[0].offsetTop,width:this.domNode[0].clientWidth,height:this.domNode[0].clientHeight}},angular.forEach(this.o.pointers,function(t,n){e.redraw(t)})},i.prototype.update=function(){this.onresize(),this.drawScale()},i.prototype.drawScale=function(){},i.prototype.redraw=function(e){if(!this.settings.smooth){var t=n.roundUpToScale(e.value.prc,this.settings.scale,this.settings.cutOffWidth,this.settings.cutOffIndex);e.value.origin=t,e.value.prc=t}if(!this.is.init)return!1;this.setValue();var i=this.o.pointers[1].value.prc,a={left:"0%",width:i+"%"};this.o.value.css(a);var s=this.nice(e.value.origin),r=this.settings.firstDimension;if(this.settings.stepWithDifferentScale&&!this.settings.smooth&&(s=n.valueForDifferentScale(this.settings.from,this.settings.to,s,this.settings.prcToValueMapper)),this.settings.realtimeCallback&&angular.isFunction(this.settings.realtimeCallback)&&void 0!==this.settings.cutOffVal&&1===e.uid&&this.settings.realtimeCallback(s),this.settings.conversion){var o=n.getConversionFactorValue(parseInt(s),this.settings.conversion,this.settings.firstDimension);s=o.scaledVal,r=o.scaledDimension}s=parseFloat(s);var l=n.convertToMbpsGbps(s,r,this.settings.decimalPlaces);this.o.labels[e.uid].value.html(l.unitValue+" "+l.unitLabel),this.redrawLabels(e)},i.prototype.redrawLabels=function(e){function t(e,t,i){t.margin=-t.label/2;var a=n.sizes.domWidth,s=t.border+t.margin;return 0>s&&(t.margin-=s),t.border+t.label/2>a?(t.margin=0,t.right=!0):t.right=!1,t.margin=-(e.o[0].clientWidth/2-e.o[0].clientWidth/20),e.o.css({left:i+"%",marginLeft:t.margin,right:"auto"}),t.right&&e.o.css({left:"auto",right:0}),t}var n=this,i=this.o.labels[e.uid],a=e.value.prc,s={label:i.o[0].offsetWidth,right:!1,border:a*l/100},r=null,o=null;if(!this.settings.single)switch(o=this.o.pointers[1-e.uid],r=this.o.labels[o.uid],e.uid){case 0:s.border+s.label/2>r.o[0].offsetLeft-this.sizes.domOffset.left?(r.o.css({visibility:"hidden"}),r.value.html(this.nice(o.value.origin)),i.o.css({visibility:"hidden"}),a=(o.value.prc-a)/2+a,o.value.prc!==e.value.prc&&(i.value.html(this.nice(e.value.origin)+" – "+this.nice(o.value.origin)),s.label=i.o[0].clientWidth,s.border=a*l/100)):r.o.css({visibility:"visible"});break;case 1:s.border-s.label/2this.sizes.domWidth-s[0].clientWidth&&(e[1]=!1)}for(var r=0;r0?";":"")+r}}),t},i.prototype.getPrcValue=function(){if(!this.is.init)return!1;var e="";return $.each(this.o.pointers,function(t){void 0===this.value.prc||isNaN(this.value.prc)||(e+=(t>0?";":"")+this.value.prc)}),e},i.prototype.prcToValue=function(e){var t;if(this.settings.heterogeneity&&this.settings.heterogeneity.length>0)for(var n=this.settings.heterogeneity,i=0,a=this.settings.from,s=0;s<=n.length;s++){var r;r=n[s]?n[s].split("/"):[100,this.settings.to],e>=i&&e<=r[0]&&(t=a+(e-i)*(r[1]-a)/(r[0]-i)),i=r[0],a=r[1]}else t=this.settings.from+e*this.settings.interval/100;var o=this.round(t);return o},i.prototype.valueToPrc=function(e,t){var n;if(this.settings.heterogeneity&&this.settings.heterogeneity.length>0)for(var i=this.settings.heterogeneity,a=0,s=this.settings.from,r=0;r<=i.length;r++){var o;o=i[r]?i[r].split("/"):[100,this.settings.to],e>=s&&e<=o[1]&&(n=t.limits(a+(e-s)*(o[0]-a)/(o[1]-s))),a=o[0],s=o[1]}else n=t.limits(100*(e-this.settings.from)/this.settings.interval);return n},i.prototype.round=function(e){return e=Math.round(e/this.settings.step)*this.settings.step,e=this.settings.round?Math.round(e*Math.pow(10,this.settings.round))/Math.pow(10,this.settings.round):Math.round(e)},i}]).directive("attStepSlider",["$compile","$templateCache","$timeout","$window","slider","sliderConstants","utils",function(e,t,n,i,a,s,r){var o="app/scripts/ng_js_att_tpls/stepSlider/attStepSlider.html";return{restrict:"AE",require:"?ngModel",scope:{options:"=",cutOff:"="},priority:1,templateUrl:o,link:function(l,c,d,p){function u(){angular.element(i).bind("resize",function(e){l.slider.onresize()})}if(p){l.mainSliderClass="step-slider",c.after(e(t.get(o))(l,function(e,t){t.tmplElt=e})),p.$render=function(){if(p.$viewValue.split&&1===p.$viewValue.split(";").length?p.$viewValue="0;"+p.$viewValue:"number"==typeof p.$viewValue&&(p.$viewValue="0;"+p.$viewValue),(p.$viewValue||0===p.$viewValue)&&("number"==typeof p.$viewValue&&(p.$viewValue=""+p.$viewValue),l.slider)){var e="0";if(l.slider.getPointers()[0].set(e,!0),p.$viewValue.split(";")[1]){var t=p.$viewValue.split(";")[1];t.length>=4&&(t=t.substring(0,2)),l.options.realtime||l.options.callback(parseFloat(p.$viewValue.split(";")[1])),l.slider.getPointers()[1].set(p.$viewValue.split(";")[1],!0)}}};var h=function(){function e(){0!==i[0]&&i.splice(0,0,0),100!==i[i.length-1]&&i.splice(i.length,0,100)}function t(){if(i[i.length-1]!==l.options.to&&i.splice(i.length,0,l.options.to),l.options.displayScaledvalues){for(var e in i)o.push(Math.log2(i[e]));var t=o[o.length-1]}for(var e in i){var n,a=i[e]/l.options.from,s=i[e]/l.options.to;n=l.options.displayScaledvalues?o[e]/t*100:(i[e]-l.options.from)/(l.options.to-l.options.from)*100;var r=i[e];1===s?n=100:1===a&&(n=0),i[e]=n,d[""+n]=r}}l.from=""+l.options.from,l.to=""+l.options.to,l.options.calculate&&"function"==typeof l.options.calculate&&(l.from=l.options.calculate(l.from),l.to=l.options.calculate(l.to)),l.showDividers=l.options.showDividers,l.COLORS=s.COLORS,l.sliderColor=l.options.sliderColor,l.sliderColor||(l.sliderColor=s.COLORS.REGULAR);var i=l.options.scale,a=[],o=[],d={};for(var h in i){var f=i[h];a.push(f)}0===l.options.from&&100===l.options.to||!l.options.smooth?0===l.options.from&&100===l.options.to||l.options.smooth?(t(),e()):(l.options.stepWithDifferentScale=!0,t(),e()):(e(),l.options.stepWithDifferentScale=!0);var m=0;if(l.options.decimalPlaces&&(m=l.options.decimalPlaces),l.endDimension=l.options.dimension,l.options.conversion){var v=l.options.conversion.length-1,b=l.options.conversion[v].dimension,y=l.options.conversion[v].scaleFactor;l.endDimension=" "+b;var _=(l.to/y).toFixed(m);l.toStr=_}else l.toStr=l.options.to;var w=r.convertToMbpsGbps(l.toStr,l.endDimension,l.options.decimalPlaces);l.toStr=w.unitValue,l.endDimension=" "+w.unitLabel;var k={from:l.options.from,to:l.options.to,step:l.options.step,smooth:l.options.smooth,limits:!0,stepWithDifferentScale:l.options.stepWithDifferentScale,round:l.options.round||!1,value:p.$viewValue,scale:l.options.scale,nonPercentScaleArray:a,prcToValueMapper:d,firstDimension:l.options.dimension,decimalPlaces:m,conversion:l.options.conversion,realtimeCallback:l.options.callback};angular.isFunction(l.options.realtime)?k.realtimeCallback=function(e){p.$setViewValue(e),l.options.callback(e)}:k.callback=g,k.calculate=l.options.calculate||void 0,k.onstatechange=l.options.onstatechange||void 0,n(function(){var e=l.tmplElt.find("div")[7];k.conversion||(l.tmplElt.find("div").eq(6).find("span").eq(0).css("padding-left","10px"),l.tmplElt.find("div").eq(6).find("span").eq(0).css("padding-right","15px")),l.slider=angular.element.slider(c,l.tmplElt,k),angular.element(e).html(l.generateScale()),l.drawScale(e),u(),l.$watch("options.disable",function(e){l.slider&&(l.tmplElt.toggleClass("disabled",e),l.slider.disable(e))}),l.$watch("cutOff",function(e){if(e&&e>0){var t=(e-l.slider.settings.from)/(l.slider.settings.to-l.slider.settings.from);if(t=100*t,l.isCutOffSlider=!0,l.slider.settings.cutOffWidth=t,l.cutOffVal=e,l.options.conversion){var n=r.getConversionFactorValue(e,l.options.conversion,l.options.dimension);n.scaledVal=parseFloat(n.scaledVal).toFixed(l.options.decimalPlaces),l.cutOffVal=n.scaledVal+" "+n.scaledDimension}l.slider.settings.cutOffVal=e,l.slider.changeCutOffWidth(t+"%");var i=l.slider.settings.nonPercentScaleArray;for(var a in i)if(a>=1){var s=i[a-1],o=i[a];e>s&&o>=e&&(l.slider.settings.cutOffIndex=a)}}else l.slider.settings.cutOffVal=0})})};l.generateScale=function(){if(l.options.scale&&l.options.scale.length>0){for(var e="",t=l.options.scale,n="left",i=0;i'}return e}return""},l.drawScale=function(e){angular.forEach(angular.element(e).find("ins"),function(e,t){e.style.marginLeft=-e.clientWidth/2})};var g=function(e){var t=e.split(";")[1];l.$apply(function(){p.$setViewValue(parseInt(t))}),l.options.callback&&l.options.callback(parseInt(t))};l.$watch("options",function(e){h()}),angular.element.slider=function(e,t,n){t.data("jslider")||t.data("jslider",new a(e,t,n));var i=t.data("jslider");return i}}}}}]),angular.module("att.abs.steptracker",["att.abs.transition"]).directive("steptracker",["$timeout",function(e){return{priority:100,scope:{sdata:"=sdata",cstep:"=currentStep",clickHandler:"=?",disableClick:"=?"},restrict:"EA",replace:!0,templateUrl:"app/scripts/ng_js_att_tpls/steptracker/step-tracker.html",link:function(t,n){void 0===t.disableClick&&(t.disableClick=!1),e(function(){function e(e){return angular.element(r[e-1])}function i(){if(t.cstep>0&&t.cstep<=t.sdata.length-1&&c>0){var n=c/d*100+"%";p=e(t.cstep),p.css("width",n)}}function a(){t.cstep<=t.sdata.length&&(c=t.sdata[t.cstep-1].currentPage,d=t.sdata[t.cstep-1].totalPages)}t.cstep<1?t.cstep=1:t.cstep>t.sdata.length&&(t.cstep=t.sdata.length);var s=n.find("div"),r=[];for(var o in s)if(s.eq(o)[0]){var l=s.eq(o)[0].className;l.indexOf("track ng-scope")>-1&&r.push(s.eq(o))}var c,d,p=e(t.cstep);t.set_width=function(e){var n=100/(t.sdata.length-1)+"%";return t.sdata.length-1>e?{width:n}:void 0},t.$watch("sdata",function(){a();var e=t.cstep;if(1>c&&(c=1,1!==t.cstep&&(t.cstep--,a())),c>d){if(t.cstep>t.sdata.length-1)return void t.cstep++;c=d,i(),t.cstep++,a(),i()}1>c&&e===t.cstep&&(c=1,t.cstep>1&&(t.cstep--,t.sdata[t.cstep-1].currentPage=t.sdata[t.cstep-1].totalPages,t.sdata[t.cstep].currentPage=1)),i()},!0),t.activestep=function(e){return e===t.cstep-1},t.donesteps=function(e){return e=0&&en;s--)t.sdata[s].currentPage=1;t.sdata[n].currentPage--}angular.isFunction(t.clickHandler)&&t.clickHandler(e,n),t.cstep=n+1,t.cstep<=t.sdata.length&&t.sdata[t.cstep].currentPage<1&&(t.sdata[t.cstep].currentPage=1),a(),i()}},100)}}}]).constant("timelineConstants",{STEP_TYPE:{ALERT:"alert",COMPLETED:"completed",CANCELLED:"cancelled"}}).controller("AttTimelineCtrl",["$scope","$timeout",function(e,t){function n(){function t(e,t){return e.ordert.order?1:0}s.sort(t),a.sort(t),e.$parent.animate&&i(),e.$watch("trigger",function(t){t?e.resetTimeline():e.$parent.animate=!1})}function i(){function n(){for(var e in s){var t=s[e];if(e%2===0?t.unhoveredStateForBelow(.25):t.unhoveredStateForAbove(.25),t.isStop())break}}function i(e,o){return 0===e?function(){s[e+1].isStop()&&s[e+1].isCancelled()&&a[e].isCancelled(!0),a[e].animate(i(e+1,o),o)}:e===a.length-1?function(){s[0].isCurrentStep()&&s[0].isCurrentStep(!1),s[e].isStop()?(s[e-1].shrinkAnimate(r),s[e].isCurrentStep(!0)):(s[e-1].shrinkAnimate(r),a[e].animate(i(e+1,o),o)),s[e].expandedAnimate(r),t(function(){n()},500)}:e===a.length?function(){s[0].isCurrentStep()&&s[0].isCurrentStep(!1),s[e-1].shrinkAnimate(r),s[e].expandedAnimate(r),s[e].isCurrentStep(!0),t(function(){n()},500)}:function(){s[0].isCurrentStep()&&s[0].isCurrentStep(!1),s[e].isStop()?(s[e-1].shrinkAnimate(r),s[e].expandedAnimate(r),s[e].isCurrentStep(!0),t(function(){n()},500)):(s[e+1].isStop()&&s[e+1].isCancelled()&&a[e].isCancelled(!0),s[e-1].shrinkAnimate(r),a[e].animate(i(e+1,o),o),s[e].expandedAnimate(r))}}var r=.25,o=.25;"number"==typeof e.barAnimateDuration&&(o=e.barAnimateDuration);var l=i(0,o);l()}var a=[],s=[];this.numSteps=0,this.isAlternate=function(){return e.alternate},this.addTimelineBarCtrls=function(e){a.push(e)},this.addTimelineDotCtrls=function(e){s.push(e)},t(n,200)}]).directive("attTimeline",["$timeout","$compile",function(e,t){return{restrict:"EA",replace:!0,scope:{steps:"=",trigger:"=",alternate:"=",barAnimateDuration:"="},templateUrl:"app/scripts/ng_js_att_tpls/steptracker/timeline.html",controller:"AttTimelineCtrl",link:function(e,n,i,a){var s=function(){for(var t=e.steps,n=[],i=1;i0))return void c(e);for(var n=0;n0?d(a):c(a)})},50)}}}]),angular.module("att.abs.tableMessages",["att.abs.utilities"]).constant("messageConstants",{TABLE_MESSAGE_TYPES:{noMatching:1,errorLoading:2,magnifySearch:3,isLoading:4},USER_MESSAGE_TYPES:{success:1,error:0}}).directive("attTableMessage",["messageConstants",function(e){return{restrict:"AE",replace:!0,transclude:!0,scope:{msgType:"=",onRefreshClick:"&"},templateUrl:"app/scripts/ng_js_att_tpls/tableMessages/attTableMessage.html",link:function(t){t.messageConstants=e,t.refreshAction=function(e){t.onRefreshClick(e)}}}}]).directive("attUserMessage",["messageConstants","$timeout","DOMHelper",function(e,t,n){return{restrict:"AE",replace:!0,transclude:!0,scope:{thetitle:"=",type:"=",message:"=",trigger:"="},templateUrl:"app/scripts/ng_js_att_tpls/tableMessages/attUserMessage.html",link:function(i,a){var s=void 0,r=void 0;i.messageConstants=e,t(function(){r=n.firstTabableElement(a[0])},10),i.$watch("trigger",function(){i.trigger?(s=document.activeElement,angular.isDefined(r)&&r.focus()):angular.isDefined(s)&&s.focus()})}}}]),angular.module("att.abs.tabs",["att.abs.utilities"]).directive("attTabs",function(){return{restrict:"EA",transclude:!1,replace:!0,scope:{tabs:"=title"},controller:["$scope",function(e){this.getData=function(){return e.tabs},this.onClickTab=function(t){return e.currentTab=t.url,e.currentTab},this.isActiveTab=function(t){return t===e.currentTab}}],link:function(e){for(var t=0;t-1*s/2;t.children().eq(1).removeClass("dragging"),TweenMax.to(t.children().eq(1),.1,{left:l?0:-1*s,ease:Power4.easeOut,onComplete:function(){t.children().eq(1).css({left:""})}}),(l||!l&&"left"===i.gesture.direction)&&r(),a=0}return!1},e.directiveValue=i.attToggleTemplate,e.on=i.trueValue,e.off=i.falseValue;var o=-1*s+"px";e.$watch("modelVal",function(n){if(e.attrValue=n,n===i.ngTrueValue||n){t.children().eq(1).css({left:"0px"}),t.addClass("att-checkbox--on");var s=t.find("div").find("div").eq(1);s.attr("aria-checked",!0),a=0}else{t.children().eq(1).css({left:o}),t.removeClass("att-checkbox--on"); var s=t.find("div").find("div").eq(1);s.attr("aria-checked",!1),a=0}t.children().eq(1).css({left:""})})}}}]).directive("attToggleMain",["$compile",function(e){return{restrict:"A",require:"ngModel",transclude:!0,replace:!0,scope:{modelValue:"=ngModel",trueValue:"=ngTrueValue",falseValue:"=ngFalseValue"},link:function(t,n,i){var a="",s="";n.removeAttr("att-toggle-main"),t.on=i.ngTrueValue,t.off=i.ngFalseValue,t.largeValue=i.attToggleMain,angular.isDefined(i.ngTrueValue)&&(a+=' true-value="{{on}}" false-value="{{off}}"'),void 0!==t.largeValue&&(s+=' ="{{largeValue}}"'),n.css({display:"none"});var r=angular.element('
"+n.prop("outerHTML")+"
");r=e(r)(t),n.replaceWith(r)}}}]),angular.module("att.abs.treeview",[]).directive("treeView",function(){return{restrict:"A",link:function(e,t){function n(){s.reversed()?s.play():s.reverse()}function i(e){e.stopPropagation(),void 0!==angular.element(e.target).attr("tree-view")&&(t.hasClass("minus")?t.removeClass("minus"):t.addClass("minus"),n())}var a=t.children("ul li"),s=TweenMax.from(a,.2,{display:"none",paused:!0,reversed:!0});t.attr("tabindex","0"),t.on("click",function(e){i(e)}),t.on("keypress",function(e){var t=e.keyCode?e.keyCode:e.charCode,n=[13,32];n.length>0&&t&&n.indexOf(t)>-1&&(i(e),e.preventDefault())})}}}),angular.module("att.abs.typeAhead",["att.abs.tagBadges"]).directive("focusMe",["$timeout","$parse",function(e,t){return{link:function(n,i,a){var s=t(a.focusMe);n.$watch(s,function(t){t&&e(function(){i[0].focus(),n.inputActive=!0})}),i.bind("blur",function(){s.assign(n,!1),n.inputActive=!1,n.$digest()})}}}]).directive("typeAhead",["$timeout","$log",function(e,t){return{restrict:"EA",templateUrl:"app/scripts/ng_js_att_tpls/typeAhead/typeAhead.html",replace:!0,scope:{items:"=",title:"@?",titleName:"@",subtitle:"@",model:"=",emailIdList:"=",emailMessage:"="},link:function(n,i){!angular.isDefined(n.titleName)&&angular.isDefined(n.title)&&e(function(){n.titleName=n.title,t.warn("title attribute is deprecated and title-name attribute is used instead as it is conflicting with html title attribute")}),n.lineItems=[],n.filteredListLength=-1,n.filteredList=[],n.setFocus=function(){n.clickFocus=!0},n.setFocus(),n.handleSelection=function(e,t){n.lineItems.push(e),n.emailIdList.push(t),n.model="",n.current=0,n.selected=!0,n.clickFocus=!0},n.theMethodToBeCalled=function(t){var i=n.lineItems.slice();n.emailIdList.splice(t,1),i.splice(t,1),e(function(){n.lineItems=[],n.$apply(),n.lineItems=n.lineItems.concat(i)})},n.current=0,n.selected=!0,n.isCurrent=function(e,t,i,a){return n.current===e&&(n.itemName=t,n.itemEmail=i),n.dropdownLength=a,n.current===e},n.setCurrent=function(e){n.current=e},n.selectionIndex=function(e){38===e.keyCode&&n.current>0?(e.preventDefault(),n.current=n.current-1,n.isCurrent(n.current)):9===e.keyCode?n.selected=!0:13===e.keyCode&&n.dropdownLength!==n.items.length?n.handleSelection(n.itemName,n.itemEmail):8===e.keyCode&&0===n.model.length||46===e.keyCode?n.theMethodToBeCalled(n.lineItems.length-1):40===e.keyCode&&n.current',link:function(){}}}]).directive("verticalSteptrackerStep",[function(){return{restrict:"EA",transclude:!0,replace:!1,scope:{type:"=type",id:"=id"},templateUrl:"app/scripts/ng_js_att_tpls/verticalSteptracker/vertical-step-tracker.html",link:function(){}}}]).directive("attAbsLink",[function(){return{restrict:"EA",transclude:!0,replace:!1,template:''}}]),angular.module("att.abs.videoControls",[]).config(["$compileProvider",function(e){e.aHrefSanitizationWhitelist(/^\s*(https?|javascript):/)}]).directive("videoControls",[function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/videoControls/videoControls.html"}}]).directive("photoControls",[function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"app/scripts/ng_js_att_tpls/videoControls/photoControls.html",scope:{prevLink:"@",nextLink:"@"},link:function(e,t,n){n.prevLink||(e.prevLink="javascript:void(0)"),n.nextLink||(e.nextLink="javascript:void(0)"),e.links={prevLink:e.prevLink,nextLink:e.nextLink}}}}]),angular.module("app/scripts/ng_js_att_tpls/accordion/accordion.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/accordion/accordion.html",' ')}]),angular.module("app/scripts/ng_js_att_tpls/accordion/accordion_alt.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/accordion/accordion_alt.html",'
\n \n \n {{heading}}\n
\n
\n
')}]),angular.module("app/scripts/ng_js_att_tpls/accordion/attAccord.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/accordion/attAccord.html","
")}]),angular.module("app/scripts/ng_js_att_tpls/accordion/attAccordBody.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/accordion/attAccordBody.html","
")}]),angular.module("app/scripts/ng_js_att_tpls/accordion/attAccordHeader.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/accordion/attAccordHeader.html",'
\n
\n \n
\n
')}]),angular.module("app/scripts/ng_js_att_tpls/alert/alert.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/alert/alert.html","
\n
\n"+' Dismiss \n \n
\n
')}]),angular.module("app/scripts/ng_js_att_tpls/boardStrip/attAddBoard.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/boardStrip/attAddBoard.html",'
\n \n
\n
Add board
\n
')}]),angular.module("app/scripts/ng_js_att_tpls/boardStrip/attBoard.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/boardStrip/attBoard.html",'
  • \n
    \n
    \n
    \n
    \n
    \n
  • ')}]),angular.module("app/scripts/ng_js_att_tpls/boardStrip/attBoardStrip.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/boardStrip/attBoardStrip.html",'
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    ')}]),angular.module("app/scripts/ng_js_att_tpls/buttons/buttonDropdown.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/buttons/buttonDropdown.html",'
    \n
    \n \n \n \n \n\n'+"
      \n
      \n \n
      \n")}]),angular.module("app/scripts/ng_js_att_tpls/colorselector/colorselector.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/colorselector/colorselector.html",'
      \n
      \n
      ')}]),angular.module("app/scripts/ng_js_att_tpls/datepicker/dateFilter.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/datepicker/dateFilter.html",'
      \n \n
      \n
        \n
          \n
        • \n
          Custom Single Date...
          \n
          Custom single month...
          \n
        • \n
        • \n
          Custom Range...
          \n
          Custom month range...
          \n
        • \n
        • \n \n \n \n
        • \n
        \n
        \n
        \n \n \n
        \n
        \n')}]),angular.module("app/scripts/ng_js_att_tpls/datepicker/dateFilterList.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/datepicker/dateFilterList.html",'
      • \n
        \n
      • ')}]),angular.module("app/scripts/ng_js_att_tpls/datepicker/datepicker.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/datepicker/datepicker.html",'\n")}]),angular.module("app/scripts/ng_js_att_tpls/datepicker/datepickerPopup.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/datepicker/datepickerPopup.html",'
        \n
        \n \n \n
        \n \n
        \n')}]),angular.module("app/scripts/ng_js_att_tpls/dividerLines/dividerLines.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/dividerLines/dividerLines.html",'
        \n
        \n
        \n\n')}]),angular.module("app/scripts/ng_js_att_tpls/dragdrop/fileUpload.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/dragdrop/fileUpload.html",'')}]),angular.module("app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlert.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlert.html",'
        \n \n
        \n
        ')}]),angular.module("app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlertPrv.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/formField/attFormFieldValidationAlertPrv.html",'
        \n
        \n
        \n {{errorMessage}}\n
        \n
        \n')}]),angular.module("app/scripts/ng_js_att_tpls/formField/creditCardImage.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/formField/creditCardImage.html",'\nWe accept\n
          \n
        • MasterCard
        • \n
        • Visa
        • \n
        • American Express
        • \n
        • Discover
        • \n
        \n
        \n')}]),angular.module("app/scripts/ng_js_att_tpls/formField/cvcSecurityImg.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/formField/cvcSecurityImg.html",'
        \n\n\n
        \n')}]),angular.module("app/scripts/ng_js_att_tpls/hourpicker/hourpicker.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/hourpicker/hourpicker.html",'
        \n \n
        \n
        \n
        \n
        From

        \n
        To
        \n
        \n
        \n
        \n
        \n \n
        \n {{day}}
        \n \n \n \n \n
        \n
        \n
        \n
        \n
        \n
        ')}]),angular.module("app/scripts/ng_js_att_tpls/links/readMore.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/links/readMore.html",'
        \n
        \n Read More\n \n
        \n\n Read Less\n'); }]),angular.module("app/scripts/ng_js_att_tpls/loading/loading.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/loading/loading.html",'
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n\n')}]),angular.module("app/scripts/ng_js_att_tpls/modal/backdrop.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/modal/backdrop.html",'
        \n
        ")}]),angular.module("app/scripts/ng_js_att_tpls/modal/tabbedItem.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/modal/tabbedItem.html",'
        \n
          \n
        • \n \n {{item.title}} ({{item.number}})\n Show\n
        • \n
        \n
        ')}]),angular.module("app/scripts/ng_js_att_tpls/modal/tabbedOverlayItem.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/modal/tabbedOverlayItem.html",'
        \n
          \n
        • \n \n {{item.title}} ({{item.number}})\n Show\n
        • \n
        \n
        ')}]),angular.module("app/scripts/ng_js_att_tpls/modal/window.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/modal/window.html",'\n')}]),angular.module("app/scripts/ng_js_att_tpls/pagination/pagination.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/pagination/pagination.html",'
        \n Previous\n 1\n ...\n {{page}}\n ...\n \n {{totalPages}}\n Next \n
        ')}]),angular.module("app/scripts/ng_js_att_tpls/paneSelector/innerPane.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/paneSelector/innerPane.html","
        ")}]),angular.module("app/scripts/ng_js_att_tpls/paneSelector/paneGroup.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/paneSelector/paneGroup.html","
        ")}]),angular.module("app/scripts/ng_js_att_tpls/paneSelector/sidePane.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/paneSelector/sidePane.html","
        ")}]),angular.module("app/scripts/ng_js_att_tpls/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/tooltip/tooltip-popup.html","
        ")}]),angular.module("app/scripts/ng_js_att_tpls/popOvers/popOvers.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/popOvers/popOvers.html","
        \n
        \n
        \n
        \n \n
        \n"+' \n
        \n
        \n
        ')}]),angular.module("app/scripts/ng_js_att_tpls/profileCard/addUser.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/profileCard/addUser.html",'
        \n
        \n
        \n add User\n
        \n
        ')}]),angular.module("app/scripts/ng_js_att_tpls/profileCard/profileCard.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/profileCard/profileCard.html",'
        \n
        \n
        \n {{profile.name}}\n {{initials}}\n

        \n

        \n \n \n {{profile.state}}Admin\n

        \n
        \n
        \n
        \n
        \n \n

        {{profile.userName}}

        \n \n

        {{profile.email}}

        \n \n

        {{profile.role}}

        \n \n

        {{profile.lastLogin}}

        \n
        \n
        \n
        ')}]),angular.module("app/scripts/ng_js_att_tpls/progressBars/progressBars.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/progressBars/progressBars.html",'
        \n
         
        \n
        ')}]),angular.module("app/scripts/ng_js_att_tpls/scrollbar/scrollbar.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/scrollbar/scrollbar.html",'
        \n
        \n
        \n\n
        \n
        \n
        \n\n")}]),angular.module("app/scripts/ng_js_att_tpls/search/search.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/search/search.html",'\n\n')}]),angular.module("app/scripts/ng_js_att_tpls/select/select.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/select/select.html",'\n\n')}]),angular.module("app/scripts/ng_js_att_tpls/select/textDropdown.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/select/textDropdown.html",'
        \n \n
          \n
        • {{action}}
        • \n
        \n
        ')}]),angular.module("app/scripts/ng_js_att_tpls/slider/maxContent.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/slider/maxContent.html",'
        ')}]),angular.module("app/scripts/ng_js_att_tpls/slider/minContent.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/slider/minContent.html",'
        ')}]),angular.module("app/scripts/ng_js_att_tpls/slider/slider.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/slider/slider.html",'
        \n
        \n
        \n
        \n
        \n
        \n \n \n \n
        \n
        \n
        ')}]),angular.module("app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdown.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdown.html",' ')}]),angular.module("app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdownItem.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/splitButtonDropdown/splitButtonDropdownItem.html",'
      • ')}]),angular.module("app/scripts/ng_js_att_tpls/splitIconButton/splitIcon.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/splitIconButton/splitIcon.html","
        \n\n
        \n \n \n
        \n\n \n\n
        ")}]),angular.module("app/scripts/ng_js_att_tpls/splitIconButton/splitIconButton.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/splitIconButton/splitIconButton.html","
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        ")}]),angular.module("app/scripts/ng_js_att_tpls/splitIconButton/splitIconButtonGroup.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/splitIconButton/splitIconButtonGroup.html","
        \n
        ")}]),angular.module("app/scripts/ng_js_att_tpls/stepSlider/attStepSlider.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/stepSlider/attStepSlider.html",'\n \n \n \n \n
        \n
        \n \n \n \n
        \n
        \n
        \n
        \n
        \n
        {{options.dimension}}
        \n
        {{toolTipDimension}}
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n
        \n')}]),angular.module("app/scripts/ng_js_att_tpls/steptracker/step-tracker.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/steptracker/step-tracker.html",'
        \n
        \n
        \n
        {{($index) + 1}}{{step.title}}
        \n
        \n
        \n
        \n
        ')}]),angular.module("app/scripts/ng_js_att_tpls/steptracker/step.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/steptracker/step.html",'
        \n
        \n
        \n
        {{($index) + 1}}{{step.title}}
        \n
        \n
        \n
        \n
        \n')}]),angular.module("app/scripts/ng_js_att_tpls/steptracker/timeline.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/steptracker/timeline.html","
        \n
        \n\n
        \n
        \n
        \n
        \n
        \n\n
        "); }]),angular.module("app/scripts/ng_js_att_tpls/steptracker/timelineBar.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/steptracker/timelineBar.html","
        \n
        \n
        \n
        \n
        ")}]),angular.module("app/scripts/ng_js_att_tpls/steptracker/timelineDot.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/steptracker/timelineDot.html","
        \n\n
        \n
        \n\n
        \n
        \n\n
        \n
        \n\n
        \n \n
        \n
        \n\n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n\n
        \n
        \n
        \n\n
        ")}]),angular.module("app/scripts/ng_js_att_tpls/table/attTable.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/table/attTable.html",'
        \n')}]),angular.module("app/scripts/ng_js_att_tpls/table/attTableBody.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/table/attTableBody.html","\n")}]),angular.module("app/scripts/ng_js_att_tpls/table/attTableHeader.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/table/attTableHeader.html","
        ")}]),angular.module("app/scripts/ng_js_att_tpls/tableMessages/attTableMessage.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/tableMessages/attTableMessage.html",'
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        Oops!
        \n
        The information could not load at this time.
        \n \n
        \n
        \n
        \n
        \n

        Please input values to
        begin your search.

        \n
        \n
        \n
        \n
        \n
        \n
        \n
        ')}]),angular.module("app/scripts/ng_js_att_tpls/tableMessages/attUserMessage.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/tableMessages/attUserMessage.html",'
        \n
        \n
        \n\n
        \n
        \n
        \n
        \n
        \n
        \n
        \n\n
        \n
        \n
        \n\n
        \n
        \n \n
        \n
        \n
        \n
        \n
        \n
        \n\n
        \n
        \n')}]),angular.module("app/scripts/ng_js_att_tpls/tabs/floatingTabs.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/tabs/floatingTabs.html","')}]),angular.module("app/scripts/ng_js_att_tpls/tabs/genericTabs.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/tabs/genericTabs.html","\n')}]),angular.module("app/scripts/ng_js_att_tpls/tabs/menuTab.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/tabs/menuTab.html",'
      • \n {{tabName}}\n
        \n
      • \n')}]),angular.module("app/scripts/ng_js_att_tpls/tabs/parentmenuTab.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/tabs/parentmenuTab.html",'
        \n \n
        ')}]),angular.module("app/scripts/ng_js_att_tpls/tabs/simplifiedTabs.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/tabs/simplifiedTabs.html",'
        \n
          \n \n
        • \n
        \n
        ')}]),angular.module("app/scripts/ng_js_att_tpls/tabs/submenuTab.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/tabs/submenuTab.html",'
      • \n{{tabName}}\n{{tabName}}\n\n
      • \n')}]),angular.module("app/scripts/ng_js_att_tpls/tagBadges/tagBadges.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/tagBadges/tagBadges.html","')}]),angular.module("app/scripts/ng_js_att_tpls/toggle/demoToggle.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/toggle/demoToggle.html",'\n
        \n
        {{on}}{{directiveValue}} when checked.
        \n \n
        {{off}}{{directiveValue}} when unchecked.
        \n
        \n')}]),angular.module("app/scripts/ng_js_att_tpls/typeAhead/typeAhead.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/typeAhead/typeAhead.html",'
        \n To\n
        \n {{lineItem}}\n
        \n
        \n
        \n
        \n
        \n {{item[titleName]}}\n {{item[subtitle]}}\n
        \n
        \n
        \n \n
        \n Message\n \n \n
        \n \n
        \n')}]),angular.module("app/scripts/ng_js_att_tpls/verticalSteptracker/vertical-step-tracker.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/verticalSteptracker/vertical-step-tracker.html","
      • \n \n \n
      • \n \n")}]),angular.module("app/scripts/ng_js_att_tpls/videoControls/photoControls.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/videoControls/photoControls.html",'
        \n  \n \n  \n
        ')}]),angular.module("app/scripts/ng_js_att_tpls/videoControls/videoControls.html",[]).run(["$templateCache",function(e){e.put("app/scripts/ng_js_att_tpls/videoControls/videoControls.html",'
        \n
        \n \n
        \n
        \n\n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n \n
        \n \n
        \n
          \n
        •  
        • \n
        •  
        • \n
        •  
        • \n
        •  
        • \n
        •  
        • \n
        \n
        \n  \n
        \n
        ')}]),{}}(angular,window);