HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/TDijk1/erp-apps.eu/wwwroot/CMSScripts/Vendor/Angular/angular-ellipsis.min.js
angular.module("dibari.angular-ellipsis",[]).directive("ellipsis",["$timeout","$window",function(a,b){return{restrict:"A",scope:{ngBind:"=",ellipsisAppend:"@",ellipsisAppendClick:"&",ellipsisSymbol:"@"},compile:function(c,d,e){return function(c,d,e){function f(){if(c.ngBind){var a=c.ngBind.split(" "),b=0,f="undefined"!=typeof e.ellipsisSymbol?e.ellipsisSymbol:"&hellip;",h="undefined"!=typeof c.ellipsisAppend&&""!==c.ellipsisAppend?f+"<span>"+c.ellipsisAppend+"</span>":f;if(e.isTruncated=!1,d.text(c.ngBind),g(d)){var i=a.length,j=d[0].clientHeight;for(d.text(c.ngBind).html(d.html()+h);i>b;b++)if(a.pop(),d.text(a.join(" ")).html(d.html()+h),d[0].scrollHeight<j||g(d)===!1){e.isTruncated=!0;break}f!=h&&"undefined"!=typeof c.ellipsisAppendClick&&""!==c.ellipsisAppendClick&&d.find("span").bind("click",function(a){c.$apply(c.ellipsisAppendClick)})}}}function g(a){return a[0].scrollHeight>a[0].clientHeight}function h(){a.cancel(e.lastWindowTimeoutEvent),e.lastWindowTimeoutEvent=a(function(){(e.lastWindowResizeWidth!=window.innerWidth||e.lastWindowResizeHeight!=window.innerHeight)&&f(),e.lastWindowResizeWidth=window.innerWidth,e.lastWindowResizeHeight=window.innerHeight},75)}e.lastWindowResizeTime=0,e.lastWindowResizeWidth=0,e.lastWindowResizeHeight=0,e.lastWindowTimeoutEvent=null,e.isTruncated=!1,c.$watch("ngBind",function(){a(function(){f()})}),c.$watch("ellipsisAppend",function(){f()});var i=angular.element(b);i.bind("resize",h),c.$on("$destroy",function(){i.unbind("resize",h)})}}}}]);