/**

* angular-strap
* @version v2.1.6 - 2015-01-11
* @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.helpers.dimensions”,[]).factory(“dimensions”,[“$document”,“$window”,function(){var t=(angular.element,{}),e=t.nodeName=function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()};t.css=function(t,e,o){var n;return n=t.currentStyle?t.currentStyle:window.getComputedStyle?window.getComputedStyle(t):t.style,o===!0?parseFloat(n)||0:n},t.offset=function(t){var e=t.getBoundingClientRect(),o=t.ownerDocument;return{width:e.width||t.offsetWidth,height:e.height||t.offsetHeight,top:e.top+(window.pageYOffset||o.documentElement.scrollTop)-(o.documentElement.clientTop||0),left:e.left+(window.pageXOffset||o.documentElement.scrollLeft)-(o.documentElement.clientLeft||0)}},t.position=function(n){var s,i,r={top:0,left:0};return“fixed”===t.css(n,“position”)?i=n.getBoundingClientRect():(s=o(n),i=t.offset(n),e(s,“html”)||(r=t.offset(s)),r.top+=t.css(s,“borderTopWidth”,!0),r.left+=t.css(s,“borderLeftWidth”,!0)),{width:n.offsetWidth,height:n.offsetHeight,top:i.top-r.top-t.css(n,“marginTop”,!0),left:i.left-r.left-t.css(n,“marginLeft”,!0)}};var o=function(o){var n=o.ownerDocument,s=o.offsetParent||n;if(e(s,“#document”))return n.documentElement;for(;s&&!e(s,“html”)&&“static”===t.css(s,“position”);)s=s.offsetParent;return s||n.documentElement};return t.height=function(e,o){var n=e.offsetHeight;return o?n+=t.css(e,“marginTop”,!0)+t.css(e,“marginBottom”,!0):n-=t.css(e,“paddingTop”,!0)+t.css(e,“paddingBottom”,!0)+t.css(e,“borderTopWidth”,!0)+t.css(e,“borderBottomWidth”,!0),n},t.width=function(e,o){var n=e.offsetWidth;return o?n+=t.css(e,“marginLeft”,!0)+t.css(e,“marginRight”,!0):n-=t.css(e,“paddingLeft”,!0)+t.css(e,“paddingRight”,!0)+t.css(e,“borderLeftWidth”,!0)+t.css(e,“borderRightWidth”,!0),n},t}]); //# sourceMappingURL=dimensions.min.js.map