text: /**
   * angular-strap
   * @version v2.3.8 - 2016-03-31
   * @link http://mgcrea.github.io/angular-strap
   * @author Olivier Louvignes <olivier@mg-crea.com> (https://github.com/mgcrea)
   * @license MIT License, http://www.opensource.org/licenses/MIT
   */
  'use strict';angular.module('mgcrea.ngStrap.button',[]).provider('$button',function(){var e=this.defaults={activeClass:'active',toggleEvent:'click'};this.$get=function(){return{defaults:e}}}).directive('bsCheckboxGroup',function(){return{restrict:'A',require:'ngModel',compile:function(e,t){e.attr('data-toggle','buttons'),e.removeAttr('ng-model');var n=e[0].querySelectorAll('input[type="checkbox"]');angular.forEach(n,function(e){var n=angular.element(e);n.attr('bs-checkbox',''),n.attr('ng-model',t.ngModel+'.'+n.attr('value'))})}}}).directive('bsCheckbox',['$button','$$rAF',function(e,t){var n=e.defaults,r=/^(true|false|\d+)$/;return{restrict:'A',require:'ngModel',link:function(e,a,u,l){var o=n,i='INPUT'===a[0].nodeName,c=i?a.parent():a,s=angular.isDefined(u.trueValue)?u.trueValue:!0;r.test(u.trueValue)&&(s=e.$eval(u.trueValue));var d=angular.isDefined(u.falseValue)?u.falseValue:!1;r.test(u.falseValue)&&(d=e.$eval(u.falseValue));var f='boolean'!=typeof s||'boolean'!=typeof d;f&&(l.$parsers.push(function(e){return e?s:d}),l.$formatters.push(function(e){return angular.equals(e,s)}),e.$watch(u.ngModel,function(e,t){l.$render()})),l.$render=function(){var e=angular.equals(l.$modelValue,s);t(function(){i&&(a[0].checked=e),c.toggleClass(o.activeClass,e)})},a.bind(o.toggleEvent,function(){e.$apply(function(){i||l.$setViewValue(!c.hasClass('active')),f||l.$render()})})}}}]).directive('bsRadioGroup',function(){return{restrict:'A',require:'ngModel',compile:function(e,t){e.attr('data-toggle','buttons'),e.removeAttr('ng-model');var n=e[0].querySelectorAll('input[type="radio"]');angular.forEach(n,function(e){angular.element(e).attr('bs-radio',''),angular.element(e).attr('ng-model',t.ngModel)})}}}).directive('bsRadio',['$button','$$rAF',function(e,t){var n=e.defaults,r=/^(true|false|\d+)$/;return{restrict:'A',require:'ngModel',link:function(e,a,u,l){var o,i=n,c='INPUT'===a[0].nodeName,s=c?a.parent():a;u.$observe('value',function(t){o='boolean'!=typeof t&&r.test(t)?e.$eval(t):t,l.$render()}),l.$render=function(){var e=angular.equals(l.$modelValue,o);t(function(){c&&(a[0].checked=e),s.toggleClass(i.activeClass,e)})},a.bind(i.toggleEvent,function(){e.$apply(function(){l.$setViewValue(o),l.$render()})})}}}]);
  //# sourceMappingURL=button.min.js.map
  