{:uriI"�file:///Users/zschweitzer/git/forever-style-guide/app/assets/javascripts/forever_style_guide/popover.js?type=application/javascript&id=56028e4dc582caa10c4527658f78978d8160c64f58fb33ac072d455917a9eb42:ET:load_pathI"F/Users/zschweitzer/git/forever-style-guide/app/assets/javascripts;T:
filenameI"e/Users/zschweitzer/git/forever-style-guide/app/assets/javascripts/forever_style_guide/popover.js;T:	nameI" forever_style_guide/popover;T:logical_pathI"#forever_style_guide/popover.js;T:content_typeI"application/javascript;T:sourceI"$(function () {
  $('[data-toggle="popover"]').popover();
});

$.fn.popover.Constructor.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {
  return  placement == 'bottom' ?       { top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 } :
          placement == 'top' ?          { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } :
          placement == 'left' ?         { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :
          placement == 'bottomleft' ?   { top: pos.top + pos.height, left: (pos.left - actualWidth+ pos.width)  } :
          placement == 'bottomright' ?  { top: pos.top + pos.height, left: pos.left } :
          /* placement == 'right' */    { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }
};

$.fn.popover.Constructor.prototype.replaceArrow = function (delta, dimension, isHorizontal) {
  var $arrow   = this.arrow();
  var arrowWidth  = $arrow[0].offsetWidth;
  var arrowHeight = $arrow[0].offsetHeight;

  var $tip = this.tip();
  var tipWidth = $tip[0].offsetWidth;
  var tipHeight = $tip[0].offsetHeight;

  var $button = this.$element;
  var buttonWidth = $button[0].offsetWidth;
  var buttonHeight = $button[0].offsetHeight;

  switch(this.options.placement) {
    case "bottomleft":
      var centerOfButton = tipWidth - buttonWidth / 2;
      this.arrow().css('left', centerOfButton + "px");
      break;
    case "bottomright":
      var centerOfButton = buttonWidth / 2;
      this.arrow().css('left', centerOfButton + "px");
      break;
    default:
      this.arrow()
        .css(isHorizontal ? 'left' : 'top', 50 * (1 - delta / dimension) + '%')
        .css(isHorizontal ? 'top' : 'left', '')
  }
};
;T:
metadata{:dependencieso:Set:
@hash{I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"sfile-digest:///Users/zschweitzer/git/forever-style-guide/app/assets/javascripts/forever_style_guide/popover.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TT:
linkso;;{�:
included[I"�file:///Users/zschweitzer/git/forever-style-guide/app/assets/javascripts/forever_style_guide/popover.js?type=application/javascript&pipeline=self&id=bd3bcb5d81d3b294e8ad9c64a03e9e2fe8ef30bdf80069f86324e3ba0ce3ddc5;T:charsetI"
utf-8;F:digest"%T(��(l�0�8B.���
X9�G���͢;:lengthi:dependencies_digest"%�.����s�$�K�۸����c�xo�A%cƇi�':idI"E56028e4dc582caa10c4527658f78978d8160c64f58fb33ac072d455917a9eb42;F:
mtimel+�-9V