-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchunk-HWIUC453.js
1 lines (1 loc) · 4.22 KB
/
chunk-HWIUC453.js
1
import{a as M,b as R,c as B,i as P,j as _,l as I}from"./chunk-LJRBPGSW.js";import{h as k}from"./chunk-JYBRZQRP.js";import{Aa as u,Da as b,Ea as X,Fa as Y,Ga as x,Ha as w,I as f,Ka as T,La as C,Ua as D,Va as N,W as c,ca as l,da as p,la as m,ma as d,na as v,ra as h,va as g,wa as y}from"./chunk-UJIEDWPF.js";function L(o,O){if(o&1&&(x(0),D(1),w()),o&2){let t=C();l(),N(t.content)}}var H=(()=>{class o{constructor(){this.arrowLeft="",this.arrowRight="",this.arrowTop="",this.arrowBottom="",this.transform="",this.effect="dark"}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275cmp=m({type:o,selectors:[["nel-tooltip"]],standalone:!1,decls:3,vars:14,consts:[[4,"stringTemplate"],[1,"el-popper__arrow"]],template:function(e,i){e&1&&(b(0,"div"),h(1,L,2,1,"ng-container",0),Y(2,"div",1),X()),e&2&&(u("el-popper is-",i.effect,""),l(),g("stringTemplate",i.content),l(),y("left",i.arrowLeft)("right",i.arrowRight)("top",i.arrowTop)("bottom",i.arrowBottom)("transform",i.transform))},dependencies:[M],encapsulation:2,data:{animation:[k]},changeDetection:0})}}return o})();var J=(()=>{class o{set nelDisabled(t){this.disabled=t,t&&this.hide()}constructor(t,e,i){this.overlay=t,this.overlayPositionBuilder=e,this.elementRef=i,this.nelPlacement="bottom",this.nelEffect="dark",this.disabled=!1}ngOnInit(){}onMouseenter(){this.disabled||this.show()}onMouseleave(){this.hide()}show(){let t={originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetX:0,offsetY:0},e="",i="",n="",a="",r="";switch(this.nelPlacement){case"top-start":t.originX="start",t.originY="top",t.overlayX="start",t.overlayY="bottom",t.offsetY=-10,e="0",r="translate(30px, 5px)";break;case"top":t.originX="center",t.originY="top",t.overlayX="center",t.overlayY="bottom",t.offsetY=-10,e="50%",r="translate(-50%, 5px)";break;case"top-end":t.originX="end",t.originY="top",t.overlayX="end",t.overlayY="bottom",t.offsetY=-10,e="50%",r="translate(30px, 5px)";break;case"bottom-start":t.originX="start",t.originY="bottom",t.overlayX="start",t.overlayY="top",t.offsetY=10,e="0",n="-10px",r="translate(30px, 5px)";break;case"bottom":t.originX="center",t.originY="bottom",t.overlayX="center",t.overlayY="top",t.offsetY=10,e="50%",n="-10px",r="translate(-50%, 5px)";break;case"bottom-end":t.originX="end",t.originY="bottom",t.overlayX="end",t.overlayY="top",t.offsetY=10,e="50%",n="-10px",r="translate(30px, 5px)";break;case"left-start":t.originX="start",t.originY="top",t.overlayX="end",t.overlayY="top",t.offsetX=-10,i="0",n="0",r="translate(5px, 15px)";break;case"left":t.originX="start",t.originY="center",t.overlayX="end",t.overlayY="center",t.offsetX=-10,i="0",n="50%",r="translate(5px, -50%)";break;case"left-end":t.originX="start",t.originY="bottom",t.overlayX="end",t.overlayY="bottom",t.offsetX=-10,i="0",a="0",r="translate(5px, -15px)";break;case"right-start":t.originX="end",t.originY="top",t.overlayX="start",t.overlayY="top",t.offsetX=10,e="0",n="0",r="translate(-5px, 15px)";break;case"right":t.originX="end",t.originY="center",t.overlayX="start",t.overlayY="center",t.offsetX=10,e="0",n="50%",r="translate(-5px, -50%)";break;case"right-end":t.originX="end",t.originY="bottom",t.overlayX="start",t.overlayY="bottom",t.offsetX=10,e="0",a="0",r="translate(-5px, -15px)";break}let j=this.overlayPositionBuilder.flexibleConnectedTo(this.elementRef).withPositions([t]);if(this.overlayRef=this.overlay.create({positionStrategy:j}),this.overlayRef){let s=this.overlayRef.attach(new B(H));this.nelContent&&(s.instance.content=this.nelContent,s.instance.effect=this.nelEffect,s.instance.arrowLeft=e,s.instance.arrowRight=i,s.instance.arrowTop=n,s.instance.arrowBottom=a,s.instance.transform=r)}}hide(){this.overlayRef?.detach()}static{this.\u0275fac=function(e){return new(e||o)(p(_),p(P),p(c))}}static{this.\u0275dir=v({type:o,selectors:[["","nel-tooltip",""]],hostBindings:function(e,i){e&1&&T("mouseenter",function(a){return i.onMouseenter(a.target)})("mouseleave",function(a){return i.onMouseleave(a.target)})},inputs:{nelContent:"nelContent",nelPlacement:"nelPlacement",nelEffect:"nelEffect",nelDisabled:"nelDisabled"},standalone:!1})}}return o})();var tt=(()=>{class o{static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275mod=d({type:o})}static{this.\u0275inj=f({imports:[I,R]})}}return o})();export{J as a,tt as b};