PageSourceSearch

https://preview-9130-ng-zorro-antd.surge.sh/chunk-5UTYQDE2.js

js preview-9130-ng-zorro-antd.surge.sh collected 2026-10-03 14:56:45 UTC 9,539 bytes, 1 lines download raw bytes

1import{a as Se,b as Y,h as _e}from"./chunk-UQJ7W5RK.js";import{Fb as g,Ib as N,Na as Ce,Oa as Me,Pc as Ne,Tb as Re,Ua as be,Zb as F,cb as B,gb as De,nc as m,p as we,va as P}from"./chunk-KK7CC6GQ.js";import{$ as K,Aa as R,Ab as A,Ac as he,Bc as ve,C as d,Cc as ye,E as c,F as Q,Ja as T,Jb as ne,Ka as te,Kb as j,Lb as _,Oa as v,P as U,Pb as oe,R as q,Sc as ze,Wb as re,Yb as se,Zb as ae,_b as le,a as E,aa as h,f as C,g as M,ha as J,ia as I,ic as ce,id as ge,jc as de,k as H,l as Z,m as V,ma as x,md as z,na as f,oc as pe,rc as ue,s as u,t as G,tc as y,ub as ie,uc as fe,vc as me,wa as ee,xb as S,yb as r,z as b,za as D}from"./chunk-PXCXDVYP.js";var Ve=["*"];function Ie(t,O){if(t&1){let e=pe();ce(0,"div",0),ue("@slideMotion.done",function(n){D(e);let o=y();return R(o.onAnimationEvent(n))})("mouseenter",function(){D(e);let n=y();return R(n.setMouseState(!0))})("mouseleave",function(){D(e);let n=y();return R(n.setMouseState(!1))}),me(1),de()}if(t&2){let e=y();ae(e.nzOverlayStyle),le(e.nzOverlayClassName),se("ant-dropdown-rtl",e.dir==="rtl"),re("@slideMotion",void 0)("@.disabled",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation)}}var xe="dropDown",Te=[m.bottomLeft,m.bottomRight,m.topRight,m.topLeft],ut=(()=>{let t,O=[],e=[];return class W{static{let n=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[Me()],Z(null,null,t,{kind:"field",name:"nzBackdrop",static:!1,private:!1,access:{has:o=>"nzBackdrop"in o,get:o=>o.nzBackdrop,set:(o,s)=>{o.nzBackdrop=s}},metadata:n},O,e),n&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:n})}nzConfigService;renderer;viewContainerRef;platform;_nzModuleName=xe;elementRef=f(v);overlay=f(N);portal;overlayRef=null;destroy$=new C;positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown");inputVisible$=new M(!1);nzTrigger$=new M("hover");overlayClose$=new C;nzDropdownMenu=null;nzTrigger="hover";nzMatchWidthElement=null;nzBackdrop=V(this,O,!1);nzClickHide=(V(this,e),!0);nzDisabled=!1;nzVisible=!1;nzOverlayClassName="";nzOverlayStyle={};nzPlacement="bottomLeft";nzVisibleChange=new T;setDropdownMenuValue(n,o){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(n,o)}constructor(n,o,s,a){this.nzConfigService=n,this.renderer=o,this.viewContainerRef=s,this.platform=a}ngAfterViewInit(){if(this.nzDropdownMenu){let n=this.elementRef.nativeElement,o=d(b(n,"mouseenter").pipe(u(()=>!0)),b(n,"mouseleave").pipe(u(()=>!1))),s=this.nzDropdownMenu.mouseState$,a=d(s,o),$=b(n,"click").pipe(u(()=>!this.nzVisible)),k=this.nzTrigger$.pipe(K(l=>l==="hover"?a:l==="click"?$:H)),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);G([ke,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe(u(([l,X])=>l||X),Q(150),U(),c(()=>this.platform.isBrowser),h(this.destroy$)).subscribe(l=>{let L=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:n).getBoundingClientRect().width;if(this.nzVisible!==l&&this.nzVisibleChange.emit(l),this.nzVisible=l,l){if(!this.overlayRef)this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:L,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&&!De(p)))).pipe(h(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)});else{let p=this.overlayRef.getConfig();p.minWidth=L}this.positionStrategy.withPositions([m[this.nzPlacement],...Te]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new B(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)}else this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe(h(this.destroy$)).subscribe(l=>{l.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:s,nzOverlayClassName:a,nzOverlayStyle:$,nzTrigger:k}=n;if(k&&this.nzTrigger$.next(this.nzTrigger),o&&this.inputVisible$.next(this.nzVisible),s){let w=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(w,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(w,"disabled")}a&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),$&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}static \u0275fac=function(o){return new(o||W)(r(Ce),r(S),r(A),r(be))};static \u0275dir=_({type:W,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:[ee]})}})(),Oe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=j({type:t});static \u0275inj=I({})}return t})(),ft=(()=>{class t{static \u0275fac=function(i){return new(i||t)};
1static \u0275dir=_({type:t,selectors:[["a","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-link"]})}return t})(),mt=(()=>{class t{renderer;elementRef;nzButtonGroupComponent=f(Ne,{host:!0,optional:!0});constructor(e,i){this.renderer=e,this.elementRef=i}ngAfterViewInit(){let e=this.renderer.parentNode(this.elementRef.nativeElement);this.nzButtonGroupComponent&&e&&this.renderer.addClass(e,"ant-dropdown-button")}static \u0275fac=function(i){return new(i||t)(r(S),r(v))};static \u0275dir=_({type:t,selectors:[["","nz-button","","nz-dropdown",""]]})}return t})(),ht=(()=>{class t{cdr;elementRef;renderer;viewContainerRef;directionality;mouseState$=new M(!1);nzMenuService=f(Y);isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$;descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$;animationStateChange$=new T;nzOverlayClassName="";nzOverlayStyle={};templateRef;dir="ltr";destroy$=new C;onAnimationEvent(e){this.animationStateChange$.emit(e)}setMouseState(e){this.mouseState$.next(e)}setValue(e,i){this[e]=i,this.cdr.markForCheck()}noAnimation=f(F,{host:!0,optional:!0});constructor(e,i,n,o,s){this.cdr=e,this.elementRef=i,this.renderer=n,this.viewContainerRef=o,this.directionality=s}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(i){return new(i||t)(r(ge),r(v),r(S),r(A),r(we))};static \u0275cmp=ne({type:t,selectors:[["nz-dropdown-menu"]],viewQuery:function(i,n){if(i&1&&he(ie,7),i&2){let o;ve(o=ye())&&(n.templateRef=o.first)}},exportAs:["nzDropdownMenu"],features:[ze([Y,{provide:Se,useValue:!0}])],ngContentSelectors:Ve,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"mouseenter","mouseleave","nzNoAnimation"]],template:function(i,n){i&1&&(fe(),oe(0,Ie,2,9,"ng-template"))},dependencies:[F],encapsulation:2,data:{animation:[Re]},changeDetection:0})}return t})(),vt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=j({type:t});static \u0275inj=I({imports:[Oe,_e]})}return t})(),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"})],yt=(()=>{class t{ngZone;overlay;overlayRef=null;closeSubscription=E.EMPTY;constructor(e,i){this.ngZone=e,this.overlay=i}create(e,i){this.close(!0);let{x:n,y:o}=e;e instanceof MouseEvent&&e.preventDefault();let s=this.overlay.position().flexibleConnectedTo({x:n,y:o}).withPositions(Ae).withTransformOriginOn(".ant-dropdown");return this.overlayRef=this.overlay.create({positionStrategy:s,disposeOnNavigation:!0,scrollStrategy:this.overlay.scrollStrategies.close()}),this.closeSubscription=new E,this.closeSubscription.add(i.descendantMenuItemClick$.subscribe(()=>this.close())),this.closeSubscription.add(d(P(document,"click").pipe(c(a=>!!this.overlayRef&&!this.overlayRef.overlayElement.contains(a.target)),c(a=>a.button!==2)),P(document,"keydown").pipe(c(a=>a.key==="Escape"))).pipe(q()).subscribe(()=>this.ngZone.run(()=>this.close()))),this.overlayRef.attach(new B(i.templateRef,i.viewContainerRef))}close(e=!1){this.overlayRef&&(this.overlayRef.detach(),e&&this.overlayRef.dispose(),this.overlayRef=null,this.closeSubscription.unsubscribe())}static \u0275fac=function(i){return new(i||t)(x(te),x(N))};static \u0275prov=J({token:t,factory:t.\u0275fac,providedIn:Oe})}return t})();export{ut as a,ft as b,mt as c,ht as d,vt as e,yt 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.