1import{J as p,Ra as m,ha as d,r as h}from"./chunk-LZGEQQYD.js";var v=(()=>{let n=class n{constructor(s){this.el=s,this.clickAndClose=!0,this.hoverAction=!1,this.isOpen=!1}mouseenter(s){s.stopPropagation(),this.openStatus(s)}mouseleave(s){s.stopPropagation(),this.openStatus(s)}openStatus(s){this.el.nativeElement.contains(s.target)?(this.clickAndClose?this.isOpen=!this.isOpen:this.isOpen=!0,this.classChange(this.isOpen)):(this.isOpen=!1,this.classChange(this.isOpen))}classChange(s){var o,i;let e=this.el.nativeElement,t=this.el.nativeElement.querySelector(".nav-tool-list");s===!0?((o=e==null?void 0:e.classList)==null||o.add("show"),(i=t==null?void 0:t.classList)==null||i.add("show")):(e.classList.remove("show"),t.classList.remove("show"))}onMouseOver(s){s.stopPropagation(),this.hoverAction&&this.openStatus(s)}onMouseOut(s){s.stopPropagation(),this.hoverAction&&(this.isOpen=!1,this.classChange(this.isOpen))}openDirection(s){var r,a,c,u;let e=this.el.nativeElement.querySelector(".dropdown-box"),t=document.body.clientHeight/2,o=this.el.nativeElement.lastChild.clientHeight,i=s.clientY;e.classList.contains("bottom")||e.classList.contains("top")||(t<o?i<t-o?(r=e==null?void 0:e.classList)==null||r.add("bottom"):(a=e==null?void 0:e.classList)==null||a.add("top"):i<t?(c=e==null?void 0:e.classList)==null||c.add("bottom"):(u=e==null?void 0:e.classList)==null||u.add("top"))}};n.\u0275fac=function(e){return new(e||n)(d(p))},n.\u0275dir=h({type:n,selectors:[["","app-dropdown-list",""]],hostBindings:function(e,t){e&1&&m("mouseenter",function(i){return t.mouseenter(i)})("mouseleave",function(i){return t.mouseleave(i)})("mouseover",function(i){return t.onMouseOver(i)})("mouseout",function(i){return t.onMouseOut(i)})},inputs:{clickAndClose:"clickAndClose",hoverAction:"hoverAction"},standalone:!0});let l=n;return l})();export{v as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.