text: /**
   * angular-strap
   * @version v2.1.4 - 2014-11-26
   * @link http://mgcrea.github.io/angular-strap
   * @author Olivier Louvignes (olivier@mg-crea.com)
   * @license MIT License, http://www.opensource.org/licenses/MIT
   */
  "use strict";angular.module("mgcrea.ngStrap.collapse",[]).provider("$collapse",function(){var e=this.defaults={animation:"am-collapse",disallowToggle:!1,activeClass:"in",startCollapsed:!1},t=this.controller=function(t,a,s){var i=this;i.$options=angular.copy(e),angular.forEach(["animation","disallowToggle","activeClass","startCollapsed"],function(e){angular.isDefined(s[e])&&(i.$options[e]=s[e])}),i.$toggles=[],i.$targets=[],i.$viewChangeListeners=[],i.$registerToggle=function(e){i.$toggles.push(e)},i.$registerTarget=function(e){i.$targets.push(e)},i.$targets.$active=i.$options.startCollapsed?-1:0,i.$setActive=t.$setActive=function(e){i.$targets.$active=i.$options.disallowToggle?e:i.$targets.$active===e?-1:e,i.$viewChangeListeners.forEach(function(e){e()})}};this.$get=function(){var a={};return a.defaults=e,a.controller=t,a}}).directive("bsCollapse",["$window","$animate","$collapse",function(e,t,a){a.defaults;return{require:["?ngModel","bsCollapse"],controller:["$scope","$element","$attrs",a.controller],link:function(e,t,a,s){var i=s[0],n=s[1];i&&(n.$viewChangeListeners.push(function(){i.$setViewValue(n.$targets.$active)}),i.$formatters.push(function(e){return n.$targets.$active!==1*e&&n.$setActive(1*e),e}))}}}]).directive("bsCollapseToggle",function(){return{require:["^?ngModel","^bsCollapse"],link:function(e,t,a,s){var i=(s[0],s[1]);t.attr("data-toggle","collapse"),i.$registerToggle(t),t.on("click",function(){var s=a.bsCollapseToggle||i.$toggles.indexOf(t);i.$setActive(1*s),e.$apply()})}}}).directive("bsCollapseTarget",["$animate",function(e){return{require:["^?ngModel","^bsCollapse"],link:function(t,a,s,i){function n(){var t=o.$targets.indexOf(a),s=o.$targets.$active;e[t===s?"addClass":"removeClass"](a,o.$options.activeClass)}var o=(i[0],i[1]);a.addClass("collapse"),o.$options.animation&&a.addClass(o.$options.animation),o.$registerTarget(a),o.$viewChangeListeners.push(function(){n()}),n()}}}]);
  //# sourceMappingURL=collapse.min.js.map