import {J,c as tS,dt as Mr,w as wo,e1 as j1,ca as yo,bW as JT,a3 as Py}from'./main-WUGO6e7n.js';var g,u=J(()=>{tS();Mr();g=(()=>{class i{constructor(t,e){this.tooltip=t,this.elementRef=e,this.elementIsContainedInADiv=!1;}setTooltipState(){let t=this.elementRef.nativeElement,e=t.parentElement;if(!e){this.tooltip._tooltipOptions.disabled=!0;return}let n=window.getComputedStyle(e),s=e.clientWidth-parseInt(n.paddingLeft,10)-parseInt(n.paddingRight,10),a=this.elementIsContainedInADiv?t.scrollWidth:t.offsetWidth,c=t.scrollWidth>t.offsetWidth,f=a>s;c||f?this.tooltip._tooltipOptions.disabled=!1:this.tooltip._tooltipOptions.disabled=!0;}static{this.\u0275fac=function(e){return new(e||i)(wo(j1),wo(yo))};}static{this.\u0275dir=JT({type:i,selectors:[["","pTooltip","","dvlsTextOverflowTooltipDirective",""]],hostBindings:function(e,n){e&1&&Py("mouseenter",function(){return n.setTooltipState()});},inputs:{elementIsContainedInADiv:"elementIsContainedInADiv"}});}}return i})();});export{g,u};