1import{a as _e,b as X,h as Ne}from"./chunk-F2XTFB6A.js";import{$a as Ce,Ab as Y,C as Me,Fb as Se,Hb as g,Ia as F,Kb as N,Wb as Re,ab as be,ac as W,cb as De,gc as f}from"./chunk-5HXFPEER.js";import{$ as h,C as d,Db as oe,E as c,F as q,Fb as B,Gb as re,Ka as te,Na as R,P as G,Pc as ge,R as K,Yb as se,Zb as ae,_ as J,_b as le,a as E,dc as ce,f as M,g as C,ha as ee,ia as x,jc as de,k as Z,l as Q,la as T,lc as y,m as I,ma as v,mc as pe,nb as ie,nc as ue,pb as A,pc as fe,qb as l,qc as me,qd as we,rc as he,s as u,sb as j,t as U,ta as D,ua as S,ud as z,xb as ne,xc as ve,yb as P,yc as ye,z as b,zb as _,zc as ze}from"./chunk-ZUWCBCQQ.js";import{f as V}from"./chunk-JNGVGNCT.js";var Ee=["*"];function Ie(i,O){if(i&1){let e=ce();ae(0,"div",0),de("@slideMotion.done",function(s){D(e);let n=y();return S(n.onAnimationEvent(s))})("mouseenter",function(){D(e);let s=y();return S(s.setMouseState(!0))})("mouseleave",function(){D(e);let s=y();return S(s.setMouseState(!1))}),ue(1),le()}if(i&2){let e=y();ye(e.nzOverlayStyle),ze(e.nzOverlayClassName),ve("ant-dropdown-rtl",e.dir==="rtl"),se("@slideMotion",void 0)("@.disabled",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation)}}var xe="dropDown",Te=[f.bottomLeft,f.bottomRight,f.topRight,f.topLeft],pt=(()=>{var t;let i,O=[],e=[];return t=class{nzConfigService;renderer;viewContainerRef;platform;_nzModuleName=xe;elementRef=v(R);overlay=v(N);portal;overlayRef=null;destroy$=new M;positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown");inputVisible$=new C(!1);nzTrigger$=new C("hover");overlayClose$=new M;nzDropdownMenu=null;nzTrigger="hover";nzMatchWidthElement=null;nzBackdrop=I(this,O,!1);nzClickHide=(I(this,e),!0);nzDisabled=!1;nzVisible=!1;nzOverlayClassName="";nzOverlayStyle={};nzPlacement="bottomLeft";nzVisibleChange=new B;setDropdownMenuValue(n,o){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(n,o)}constructor(n,o,r,m){this.nzConfigService=n,this.renderer=o,this.viewContainerRef=r,this.platform=m}ngAfterViewInit(){if(this.nzDropdownMenu){let n=this.elementRef.nativeElement,o=d(b(n,"mouseenter").pipe(u(()=>!0)),b(n,"mouseleave").pipe(u(()=>!1))),r=this.nzDropdownMenu.mouseState$,m=d(r,o),$=b(n,"click").pipe(u(()=>!this.nzVisible)),k=this.nzTrigger$.pipe(J(a=>a==="hover"?m:a==="click"?$:Z)),w=this.nzDropdownMenu.descendantMenuItemClick$.pipe(c(()=>this.nzClickHide),u(()=>!1)),$e=d(k,w,this.overlayClose$).pipe(c(()=>!this.nzDisabled)),ke=d(this.inputVisible$,$e);U([ke,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe(u(([a,L])=>a||L),q(150),G(),c(()=>this.platform.isBrowser),h(this.destroy$)).subscribe(a=>{let H=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:n).getBoundingClientRect().width;if(this.nzVisible!==a&&this.nzVisibleChange.emit(a),this.nzVisible=a,a){if(!this.overlayRef)this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:H,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&this.nzTrigger==="click",scrollStrategy:this.overlay.scrollStrategies.reposition()}),d(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe(c(p=>!this.elementRef.nativeElement.contains(p.target))),this.overlayRef.keydownEvents().pipe(c(p=>p.keyCode===27&&!Se(p)))).pipe(h(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)});else{let p=this.overlayRef.getConfig();p.minWidth=H}this.positionStrategy.withPositions([f[this.nzPlacement],...Te]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new Y(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)}else this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe(h(this.destroy$)).subscribe(a=>{a.toState==="void"&&(this.overlayRef&&this.overlayRef.dispose(),this.overlayRef=null)})}}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}ngOnChanges(n){let{nzVisible:o,nzDisabled:r,nzOverlayClassName:m,nzOverlayStyle:$,nzTrigger:k}=n;if(k&&this.nzTrigger$.next(this.nzTrigger),o&&this.inputVisible$.next(this.nzVisible),r){let w=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(w,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(w,"disabled")}m&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),$&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}},(()=>{let n=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;i=[be()],Q(null,null,i,{kind:"field",name:"nzBackdrop",static:!1,private:!1,access:{has:o=>"nzBackdrop"in o,get:o=>o.nzBackdrop,set:(o,r)=>{o.nzBackdrop=r}},metadata:n},O,e),n&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:n})})(),V(t,"\u0275fac",function(o){return new(o||t)(l(Ce),l(A),l(j),l(De))}),V(t,"\u0275dir",_({type:t,selectors:[["","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-trigger"],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:[2,"nzBackdrop","nzBackdrop",z],nzClickHide:[2,"nzClickHide","nzClickHide",z],nzDisabled:[2,"nzDisabled","nzDisabled",z],nzVisible:[2,"nzVisible","nzVisible",z],nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],features:[te]})),t})(),Oe=(()=>
1{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=P({type:i});static \u0275inj=x({})}return i})(),ut=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=_({type:i,selectors:[["a","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-link"]})}return i})(),ft=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=_({type:i,selectors:[["","nz-button","","nz-dropdown",""]]})}return i})(),mt=(()=>{class i{cdr;elementRef;renderer;viewContainerRef;directionality;mouseState$=new C(!1);nzMenuService=v(X);isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$;descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$;animationStateChange$=new B;nzOverlayClassName="";nzOverlayStyle={};templateRef;dir="ltr";destroy$=new M;onAnimationEvent(e){this.animationStateChange$.emit(e)}setMouseState(e){this.mouseState$.next(e)}setValue(e,t){this[e]=t,this.cdr.markForCheck()}noAnimation=v(W,{host:!0,optional:!0});constructor(e,t,s,n,o){this.cdr=e,this.elementRef=t,this.renderer=s,this.viewContainerRef=n,this.directionality=o}ngOnInit(){this.directionality.change?.pipe(h(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static \u0275fac=function(t){return new(t||i)(l(we),l(R),l(A),l(j),l(Me))};static \u0275cmp=ne({type:i,selectors:[["nz-dropdown-menu"]],viewQuery:function(t,s){if(t&1&&fe(ie,7),t&2){let n;me(n=he())&&(s.templateRef=n.first)}},exportAs:["nzDropdownMenu"],features:[ge([X,{provide:_e,useValue:!0}])],ngContentSelectors:Ee,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"mouseenter","mouseleave","nzNoAnimation"]],template:function(t,s){t&1&&(pe(),oe(0,Ie,2,9,"ng-template"))},dependencies:[W],encapsulation:2,data:{animation:[Re]},changeDetection:0})}return i})(),ht=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=P({type:i});static \u0275inj=x({imports:[Oe,Ne]})}return i})(),Ae=[new g({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new g({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new g({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new g({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})],vt=(()=>{class i{ngZone;overlay;overlayRef=null;closeSubscription=E.EMPTY;constructor(e,t){this.ngZone=e,this.overlay=t}create(e,t){this.close(!0);let{x:s,y:n}=e;e instanceof MouseEvent&&e.preventDefault();let o=this.overlay.position().flexibleConnectedTo({x:s,y:n}).withPositions(Ae).withTransformOriginOn(".ant-dropdown");return this.overlayRef=this.overlay.create({positionStrategy:o,disposeOnNavigation:!0,scrollStrategy:this.overlay.scrollStrategies.close()}),this.closeSubscription=new E,this.closeSubscription.add(t.descendantMenuItemClick$.subscribe(()=>this.close())),this.closeSubscription.add(d(F(document,"click").pipe(c(r=>!!this.overlayRef&&!this.overlayRef.overlayElement.contains(r.target)),c(r=>r.button!==2)),F(document,"keydown").pipe(c(r=>r.key==="Escape"))).pipe(K()).subscribe(()=>this.ngZone.run(()=>this.close()))),this.overlayRef.attach(new Y(t.templateRef,t.viewContainerRef))}close(e=!1){this.overlayRef&&(this.overlayRef.detach(),e&&this.overlayRef.dispose(),this.overlayRef=null,this.closeSubscription.unsubscribe())}static \u0275fac=function(t){return new(t||i)(T(re),T(N))};static \u0275prov=ee({token:i,factory:i.\u0275fac,providedIn:Oe})}return i})();export{pt as a,ut as b,ft as c,mt as d,ht as e,vt as f};
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.