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 P,m=J(()=>{tS();Mr();P=(()=>{class i{constructor(o,t){this.tooltip=o,this.elementRef=t,this.initialTooltipPosition=this.tooltip._tooltipOptions.tooltipPosition;}setTooltipState(){let t=this.elementRef.nativeElement.getBoundingClientRect();(this.tooltip._tooltipOptions.tooltipPosition===void 0||this.tooltip._tooltipOptions.tooltipPosition==="right"||this.tooltip._tooltipOptions.tooltipPosition!==this.initialTooltipPosition)&&window.innerWidth-t.right<200?this.tooltip._tooltipOptions.tooltipPosition="left":this.tooltip._tooltipOptions.tooltipPosition=this.initialTooltipPosition??"right";}static{this.\u0275fac=function(t){return new(t||i)(wo(j1),wo(yo))};}static{this.\u0275dir=JT({type:i,selectors:[["","pTooltip","","dvlsTooltipPositionAdjustment",""],["","dvlTooltip","","dvlsTooltipPositionAdjustment",""]],hostBindings:function(t,r){t&1&&Py("mouseenter",function(){return r.setTooltipState()});}});}}return i})();});export{P,m};