export const __webpack_esm_id__=75813;export const __webpack_esm_ids__=[75813];export const __webpack_esm_modules__={75813(){function e(e){return{restrict:"A",scope:{min:"=",max:"="},link:function(t,i,n){const o={debounce:_.debounce,delay:100,loadDelay:10,compressor:1,min:n.fitTextMin||"inherit",max:n.fitTextMax||"inherit",calcSize:10,lines:1},c=i.parent(),a=i[0],l=a.style,s=window.getComputedStyle(i[0],null),r=i.children().length||o.lines,d="inherit"===o.min?s["font-size"]:o.min,f="inherit"===o.max?s["font-size"]:o.max,p=s["line-height"],u=s.display;let m;function h(){m&&e.cancel(m),m=e(function(){a.offsetHeight*a.offsetWidth!==0&&(l.fontSize=o.calcSize+"px",l.lineHeight="1",l.display="inline-block",l.fontSize=function(){const e=o.calcSize*r/a.offsetWidth/r;return Math.max(Math.min(function(e){const t=parseFloat(getComputedStyle(c[0]).paddingLeft),i=parseFloat(getComputedStyle(c[0]).paddingRight);return(c[0].offsetWidth-(t+i))*e*o.compressor}(e),parseFloat(f)),parseFloat(d))}()+"px",l.lineHeight=p,l.display=u)},o.loadDelay)}t.$watch(function(){return[c[0].offsetWidth,i[0].offsetWidth].join("_")},function(){h()}),$(window).on("resize",o.debounce(function(){t.$apply(h)},o.delay)),t.$on("$destroy",function(){m&&e.cancel(m),$(window).off("resize")})}}}angular.module("graphdb.framework.core.directives.fittext",[]).directive("fitText",e),e.$inject=["$timeout"]}};
//# sourceMappingURL=75813.464238b20ab54a2a48bf.bundle.js.map