/** * angular-strap * @version v2.3.9 - 2016-06-10 * @link http://mgcrea.github.io/angular-strap * @author Olivier Louvignes (https://github.com/mgcrea) * @license MIT License, http://www.opensource.org/licenses/MIT */ 'use strict';angular.module('mgcrea.ngStrap.tab',[]).provider('$tab',function(){var e=this.defaults={animation:'am-fade',template:'tab/tab.tpl.html',navClass:'nav-tabs',activeClass:'active'},n=this.controller=function(n,a,t){var s=this;s.$options=angular.copy(e),angular.forEach(['animation','navClass','activeClass'],function(e){angular.isDefined(t[e])&&(s.$options[e]=t[e])}),n.$navClass=s.$options.navClass,n.$activeClass=s.$options.activeClass,s.$panes=n.$panes=[],s.$activePaneChangeListeners=s.$viewChangeListeners=[],s.$push=function(e){angular.isUndefined(s.$panes.$active)&&n.$setActive(e.name||0),s.$panes.push(e)},s.$remove=function(e){var n,a=s.$panes.indexOf(e),t=s.$panes.$active;n=angular.isString(t)?s.$panes.map(function(e){return e.name}).indexOf(t):s.$panes.$active,s.$panes.splice(a,1),n>a?n--:a===n&&n===s.$panes.length&&n--,n>=0&&n