-
Notifications
You must be signed in to change notification settings - Fork 11
/
chunk-FFM3AGJ6.js
1 lines (1 loc) · 26 KB
/
chunk-FFM3AGJ6.js
1
import{Ea as ke,Ga as _e,Ha as O,Kb as p,N as we,Ob as Re,eb as Z,fb as Ne,gb as $e,hb as Pe,ob as Ae,r as Oe,sb as Ee,u as ye,ub as pe,v as ce,wb as me,xb as he,ya as Te}from"./chunk-BYER7FCH.js";import{$ as a,$b as q,B as J,Ba as $,Cb as V,D as K,E as Me,Ea as j,Fa as B,Fb as f,Hb as h,Ib as ie,Jb as D,Jc as Se,M as ge,Ma as P,O as X,Pa as A,Qb as w,Vb as C,Vc as Q,Wb as b,Xb as E,Yb as se,Z as Y,Zb as oe,_ as De,_c as M,bc as re,cc as T,ec as z,f as c,fc as H,g,ga as x,gc as k,ha as ve,ja as ee,kc as R,la as Ce,lc as le,ma as u,mb as m,mc as S,nb as d,nc as I,oc as G,pc as ae,qc as ue,r as W,ra as y,s as L,sa as be,t as ze,ta as ne,tb as te,wd as Ie,xc as U,yc as _,yd as de}from"./chunk-U274QCT3.js";var We=["nz-menu-item",""],Le=["*"],Ve=["nz-submenu-inline-child",""];function qe(s,i){}var Ge=["nz-submenu-none-inline-child",""];function Ue(s,i){}var Ze=["nz-submenu-title",""];function Je(s,i){if(s&1&&E(0,"span",0),s&2){let r=z();h("nzType",r.nzIcon)}}function Ke(s,i){if(s&1&&(se(0),C(1,"span",4),ae(2),b(),oe()),s&2){let r=z();m(2),ue(r.nzTitle)}}function Xe(s,i){s&1&&E(0,"span",5)}function Ye(s,i){s&1&&E(0,"span",6)}function xe(s,i){if(s&1&&(C(0,"span",2),f(1,Xe,1,0,"span",5)(2,Ye,1,0,"span",6),b()),s&2){let r,n=z();m(),w((r=n.dir)==="rtl"?1:2)}}function en(s,i){s&1&&E(0,"span",3)}var nn=["nz-submenu",""],tn=[[["","title",""]],"*"],sn=["[title]","*"];function on(s,i){s&1&&k(0)}function rn(s,i){if(s&1&&E(0,"div",3),s&2){let r=z(),n=G(6);h("mode",r.mode)("nzOpen",r.nzOpen)("@.disabled",!!(r.noAnimation!=null&&r.noAnimation.nzNoAnimation))("nzNoAnimation",r.noAnimation==null?null:r.noAnimation.nzNoAnimation)("menuClass",r.nzMenuClassName)("templateOutlet",n)}}function ln(s,i){if(s&1){let r=q();C(0,"div",6),T("subMenuMouseState",function(t){j(r);let e=z(2);return B(e.setMouseEnterState(t))}),b()}if(s&2){let r=z(2),n=G(6);h("theme",r.theme)("mode",r.mode)("nzOpen",r.nzOpen)("position",r.position)("nzDisabled",r.nzDisabled)("isMenuInsideDropDown",r.isMenuInsideDropDown)("templateOutlet",n)("menuClass",r.nzMenuClassName)("@.disabled",!!(r.noAnimation!=null&&r.noAnimation.nzNoAnimation))("nzNoAnimation",r.noAnimation==null?null:r.noAnimation.nzNoAnimation)}}function an(s,i){if(s&1){let r=q();f(0,ln,1,10,"ng-template",5),T("positionChange",function(t){j(r);let e=z();return B(e.onPositionChange(t))})}if(s&2){let r=z(),n=G(1);h("cdkConnectedOverlayPositions",r.overlayPositions)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayWidth",r.triggerWidth)("cdkConnectedOverlayOpen",r.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function un(s,i){s&1&&k(0,1)}var dn=["titleElement"],cn=["nz-menu-group",""],pn=["*",[["","title",""]]],mn=["*","[title]"];function hn(s,i){if(s&1&&(se(0),ae(1),oe()),s&2){let r=z();m(),ue(r.nzTitle)}}function fn(s,i){s&1&&k(0,1)}var v=new ee("NzIsInDropDownMenuToken"),je=new ee("NzMenuServiceLocalToken"),N=(()=>{let i=class i{constructor(){this.descendantMenuItemClick$=new c,this.childMenuItemClick$=new c,this.theme$=new g("light"),this.mode$=new g("vertical"),this.inlineIndent$=new g(24),this.isChildSubMenuOpen$=new g(!1)}onDescendantMenuItemClick(n){this.descendantMenuItemClick$.next(n)}onChildMenuItemClick(n){this.childMenuItemClick$.next(n)}setMode(n){this.mode$.next(n)}setTheme(n){this.theme$.next(n)}setInlineIndent(n){this.inlineIndent$.next(n)}};i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=x({token:i,factory:i.\u0275fac});let s=i;return s})(),fe=(()=>{let i=class i{onChildMenuItemClick(n){this.childMenuItemClick$.next(n)}setOpenStateWithoutDebounce(n){this.isCurrentSubMenuOpen$.next(n)}setMouseEnterTitleOrOverlayState(n){this.isMouseEnterTitleOrOverlay$.next(n)}constructor(n){this.nzMenuService=n,this.mode$=this.nzMenuService.mode$.pipe(W(o=>o==="inline"?"inline":o==="vertical"||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isMenuInsideDropDown=u(v),this.isCurrentSubMenuOpen$=new g(!1),this.isChildSubMenuOpen$=new g(!1),this.isMouseEnterTitleOrOverlay$=new c,this.childMenuItemClick$=new c,this.destroy$=new c,this.nzHostSubmenuService=u(i,{optional:!0,skipSelf:!0}),this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);let t=this.childMenuItemClick$.pipe(ze(()=>this.mode$),K(o=>o!=="inline"||this.isMenuInsideDropDown),ge(!1)),e=J(this.isMouseEnterTitleOrOverlay$,t);L([this.isChildSubMenuOpen$,e]).pipe(W(([o,F])=>o||F),Me(150),X(),a(this.destroy$)).pipe(X()).subscribe(o=>{this.setOpenStateWithoutDebounce(o),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(o):this.nzMenuService.isChildSubMenuOpen$.next(o)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};i.\u0275fac=function(t){return new(t||i)(Ce(N))},i.\u0275prov=x({token:i,factory:i.\u0275fac});let s=i;return s})(),Be=(()=>{let i=class i{clickMenuItem(n){this.nzDisabled?(n.preventDefault(),n.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(n){this.nzSelected=n,this.selected$.next(n)}updateRouterActive(){!this.listOfRouterLink||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{let n=this.hasActiveLinks();this.nzSelected!==n&&(this.nzSelected=n,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.routerLink&&n(this.routerLink)||this.listOfRouterLink.some(n)}isLinkActive(n){return t=>n.isActive(t.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}constructor(n,t){this.nzMenuService=n,this.cdr=t,this.destroy$=new c,this.nzSubmenuService=u(fe,{optional:!0}),this.directionality=u(O),this.routerLink=u(ce,{optional:!0}),this.router=u(ye,{optional:!0}),this.isMenuInsideDropDown=u(v),this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new c,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,this.router&&this.router.events.pipe(a(this.destroy$),K(e=>e instanceof Oe)).subscribe(()=>{this.updateRouterActive()})}ngOnInit(){L([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe(a(this.destroy$)).subscribe(([n,t])=>{this.inlinePaddingLeft=n==="inline"?this.level*t:null}),this.dir=this.directionality.value,this.directionality.change?.pipe(a(this.destroy$)).subscribe(n=>{this.dir=n})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe(a(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(n){n.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};i.\u0275fac=function(t){return new(t||i)(d(N),d(Q))},i.\u0275cmp=y({type:i,selectors:[["","nz-menu-item",""]],contentQueries:function(t,e,l){if(t&1&&R(l,ce,5),t&2){let o;S(o=I())&&(e.listOfRouterLink=o)}},hostVars:20,hostBindings:function(t,e){t&1&&T("click",function(o){return e.clickMenuItem(o)}),t&2&&(ie("padding-left",e.dir==="rtl"?null:e.nzPaddingLeft||e.inlinePaddingLeft,"px")("padding-right",e.dir==="rtl"?e.nzPaddingLeft||e.inlinePaddingLeft:null,"px"),D("ant-dropdown-menu-item",e.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",e.isMenuInsideDropDown&&e.nzSelected)("ant-dropdown-menu-item-danger",e.isMenuInsideDropDown&&e.nzDanger)("ant-dropdown-menu-item-disabled",e.isMenuInsideDropDown&&e.nzDisabled)("ant-menu-item",!e.isMenuInsideDropDown)("ant-menu-item-selected",!e.isMenuInsideDropDown&&e.nzSelected)("ant-menu-item-danger",!e.isMenuInsideDropDown&&e.nzDanger)("ant-menu-item-disabled",!e.isMenuInsideDropDown&&e.nzDisabled))},inputs:{nzPaddingLeft:[2,"nzPaddingLeft","nzPaddingLeft",we],nzDisabled:[2,"nzDisabled","nzDisabled",M],nzSelected:[2,"nzSelected","nzSelected",M],nzDanger:[2,"nzDanger","nzDanger",M],nzMatchRouterExact:[2,"nzMatchRouterExact","nzMatchRouterExact",M],nzMatchRouter:[2,"nzMatchRouter","nzMatchRouter",M]},exportAs:["nzMenuItem"],standalone:!0,features:[V,$,_],attrs:We,ngContentSelectors:Le,decls:2,vars:0,consts:[[1,"ant-menu-title-content"]],template:function(t,e){t&1&&(H(),C(0,"span",0),k(1),b())},encapsulation:2,changeDetection:0});let s=i;return s})(),zn=(()=>{let i=class i{constructor(n,t,e){this.elementRef=n,this.renderer=t,this.directionality=e,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new c}calcMotionState(){this.nzOpen?this.expandState="expanded":this.expandState="collapsed"}ngOnInit(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe(a(this.destroy$)).subscribe(n=>{this.dir=n})}ngOnChanges(n){let{mode:t,nzOpen:e,menuClass:l}=n;(t||e)&&this.calcMotionState(),l&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(o=>!!o).forEach(o=>{this.renderer.removeClass(this.elementRef.nativeElement,o)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(o=>!!o).forEach(o=>{this.renderer.addClass(this.elementRef.nativeElement,o)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};i.\u0275fac=function(t){return new(t||i)(d(A),d(te),d(O))},i.\u0275cmp=y({type:i,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(t,e){t&2&&(re("@collapseMotion",e.expandState),D("ant-menu-rtl",e.dir==="rtl"))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],standalone:!0,features:[$,_],attrs:Ve,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(t,e){t&1&&f(0,qe,0,0,"ng-template",0),t&2&&h("ngTemplateOutlet",e.templateOutlet)},dependencies:[de],encapsulation:2,data:{animation:[Pe]},changeDetection:0});let s=i;return s})(),Mn=(()=>{let i=class i{constructor(n){this.directionality=n,this.menuClass="",this.theme="light",this.templateOutlet=null,this.isMenuInsideDropDown=!1,this.mode="vertical",this.position="right",this.nzDisabled=!1,this.nzOpen=!1,this.subMenuMouseState=new P,this.expandState="collapsed",this.dir="ltr",this.destroy$=new c}setMouseState(n){this.nzDisabled||this.subMenuMouseState.next(n)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}calcMotionState(){this.nzOpen?this.mode==="horizontal"?this.expandState="bottom":this.mode==="vertical"&&(this.expandState="active"):this.expandState="collapsed"}ngOnInit(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe(a(this.destroy$)).subscribe(n=>{this.dir=n})}ngOnChanges(n){let{mode:t,nzOpen:e}=n;(t||e)&&this.calcMotionState()}};i.\u0275fac=function(t){return new(t||i)(d(O))},i.\u0275cmp=y({type:i,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(t,e){t&1&&T("mouseenter",function(){return e.setMouseState(!0)})("mouseleave",function(){return e.setMouseState(!1)}),t&2&&(re("@slideMotion",e.expandState)("@zoomBigMotion",e.expandState),D("ant-menu-light",e.theme==="light")("ant-menu-dark",e.theme==="dark")("ant-menu-submenu-placement-bottom",e.mode==="horizontal")("ant-menu-submenu-placement-right",e.mode==="vertical"&&e.position==="right")("ant-menu-submenu-placement-left",e.mode==="vertical"&&e.position==="left")("ant-menu-submenu-rtl",e.dir==="rtl"))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],standalone:!0,features:[$,_],attrs:Ge,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(t,e){t&1&&(C(0,"div",0),f(1,Ue,0,0,"ng-template",1),b()),t&2&&(D("ant-dropdown-menu",e.isMenuInsideDropDown)("ant-menu",!e.isMenuInsideDropDown)("ant-dropdown-menu-vertical",e.isMenuInsideDropDown)("ant-menu-vertical",!e.isMenuInsideDropDown)("ant-dropdown-menu-sub",e.isMenuInsideDropDown)("ant-menu-sub",!e.isMenuInsideDropDown)("ant-menu-rtl",e.dir==="rtl"),h("ngClass",e.menuClass),m(),h("ngTemplateOutlet",e.templateOutlet))},dependencies:[Ie,de],encapsulation:2,data:{animation:[Ee,Ae]},changeDetection:0});let s=i;return s})(),He=(()=>{let i=class i{constructor(n,t){this.cdr=n,this.directionality=t,this.nzIcon=null,this.nzTitle=null,this.isMenuInsideDropDown=!1,this.nzDisabled=!1,this.paddingLeft=null,this.mode="vertical",this.toggleSubMenu=new P,this.subMenuMouseState=new P,this.dir="ltr",this.destroy$=new c}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(a(this.destroy$)).subscribe(n=>{this.dir=n,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(n){this.nzDisabled||this.subMenuMouseState.next(n)}clickTitle(){this.mode==="inline"&&!this.nzDisabled&&this.toggleSubMenu.emit()}};i.\u0275fac=function(t){return new(t||i)(d(Q),d(O))},i.\u0275cmp=y({type:i,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(t,e){t&1&&T("click",function(){return e.clickTitle()})("mouseenter",function(){return e.setMouseState(!0)})("mouseleave",function(){return e.setMouseState(!1)}),t&2&&(ie("padding-left",e.dir==="rtl"?null:e.paddingLeft,"px")("padding-right",e.dir==="rtl"?e.paddingLeft:null,"px"),D("ant-dropdown-menu-submenu-title",e.isMenuInsideDropDown)("ant-menu-submenu-title",!e.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],standalone:!0,features:[_],attrs:Ze,ngContentSelectors:Le,decls:5,vars:3,consts:[["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet"],[1,"ant-dropdown-menu-submenu-expand-icon"],[1,"ant-menu-submenu-arrow"],[1,"ant-menu-title-content"],["nz-icon","","nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nz-icon","","nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"]],template:function(t,e){t&1&&(H(),f(0,Je,1,1,"span",0)(1,Ke,3,1,"ng-container",1),k(2),f(3,xe,3,1,"span",2)(4,en,1,0,"span",3)),t&2&&(w(e.nzIcon?0:-1),m(),h("nzStringTemplateOutlet",e.nzTitle),m(2),w(e.isMenuInsideDropDown?3:4))},dependencies:[_e,ke,he,me],encapsulation:2,changeDetection:0});let s=i;return s})(),Fe=[p.rightTop,p.right,p.rightBottom,p.leftTop,p.left,p.leftBottom],gn=[p.bottomLeft,p.bottomRight,p.topRight,p.topLeft],Qe=(()=>{let i=class i{setOpenStateWithoutDebounce(n){this.nzSubmenuService.setOpenStateWithoutDebounce(n)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(n){this.isActive=n,this.mode!=="inline"&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(n)}setTriggerWidth(){this.mode==="horizontal"&&this.platform.isBrowser&&this.cdkOverlayOrigin&&this.nzPlacement==="bottomLeft"&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(n){let t=Re(n);t==="rightTop"||t==="rightBottom"||t==="right"?this.position="right":(t==="leftTop"||t==="leftBottom"||t==="left")&&(this.position="left")}constructor(n,t,e,l){this.nzMenuService=n,this.cdr=t,this.nzSubmenuService=e,this.platform=l,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzPlacement="bottomLeft",this.nzOpenChange=new P,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new c,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=Fe,this.isSelected=!1,this.isActive=!1,this.dir="ltr",this.isMenuInsideDropDown=u(v),this.noAnimation=u(pe,{optional:!0,host:!0}),this.directionality=u(O)}ngOnInit(){this.nzMenuService.theme$.pipe(a(this.destroy$)).subscribe(n=>{this.theme=n,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe(a(this.destroy$)).subscribe(n=>{this.mode=n,n==="horizontal"?this.overlayPositions=[p[this.nzPlacement],...gn]:n==="vertical"&&(this.overlayPositions=Fe),this.cdr.markForCheck()}),L([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe(a(this.destroy$)).subscribe(([n,t])=>{this.inlinePaddingLeft=n==="inline"?this.level*t:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe(a(this.destroy$)).subscribe(n=>{this.isActive=n,n!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=n,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,this.directionality.change?.pipe(a(this.destroy$)).subscribe(n=>{this.dir=n,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();let n=this.listOfNzMenuItemDirective,t=n.changes,e=J(t,...n.map(l=>l.selected$));t.pipe(Y(n),De(()=>e),Y(!0),W(()=>n.some(l=>l.nzSelected)),a(this.destroy$)).subscribe(l=>{this.isSelected=l,this.cdr.markForCheck()})}ngOnChanges(n){let{nzOpen:t}=n;t&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};i.\u0275fac=function(t){return new(t||i)(d(N),d(Q),d(fe),d(Te))},i.\u0275cmp=y({type:i,selectors:[["","nz-submenu",""]],contentQueries:function(t,e,l){if(t&1&&(R(l,i,5),R(l,Be,5)),t&2){let o;S(o=I())&&(e.listOfNzSubMenuComponent=o),S(o=I())&&(e.listOfNzMenuItemDirective=o)}},viewQuery:function(t,e){if(t&1&&le(Z,7,A),t&2){let l;S(l=I())&&(e.cdkOverlayOrigin=l.first)}},hostVars:34,hostBindings:function(t,e){t&2&&D("ant-dropdown-menu-submenu",e.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",e.isMenuInsideDropDown&&e.nzDisabled)("ant-dropdown-menu-submenu-open",e.isMenuInsideDropDown&&e.nzOpen)("ant-dropdown-menu-submenu-selected",e.isMenuInsideDropDown&&e.isSelected)("ant-dropdown-menu-submenu-vertical",e.isMenuInsideDropDown&&e.mode==="vertical")("ant-dropdown-menu-submenu-horizontal",e.isMenuInsideDropDown&&e.mode==="horizontal")("ant-dropdown-menu-submenu-inline",e.isMenuInsideDropDown&&e.mode==="inline")("ant-dropdown-menu-submenu-active",e.isMenuInsideDropDown&&e.isActive)("ant-menu-submenu",!e.isMenuInsideDropDown)("ant-menu-submenu-disabled",!e.isMenuInsideDropDown&&e.nzDisabled)("ant-menu-submenu-open",!e.isMenuInsideDropDown&&e.nzOpen)("ant-menu-submenu-selected",!e.isMenuInsideDropDown&&e.isSelected)("ant-menu-submenu-vertical",!e.isMenuInsideDropDown&&e.mode==="vertical")("ant-menu-submenu-horizontal",!e.isMenuInsideDropDown&&e.mode==="horizontal")("ant-menu-submenu-inline",!e.isMenuInsideDropDown&&e.mode==="inline")("ant-menu-submenu-active",!e.isMenuInsideDropDown&&e.isActive)("ant-menu-submenu-rtl",e.dir==="rtl")},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:[2,"nzOpen","nzOpen",M],nzDisabled:[2,"nzDisabled","nzDisabled",M],nzPlacement:"nzPlacement"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],standalone:!0,features:[U([fe]),V,$,_],attrs:nn,ngContentSelectors:sn,decls:7,vars:8,consts:[["origin","cdkOverlayOrigin"],["subMenuTemplate",""],["nz-submenu-title","","cdkOverlayOrigin","",3,"subMenuMouseState","toggleSubMenu","nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn"],["cdkConnectedOverlay","",3,"positionChange","cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn"],["nz-submenu-none-inline-child","",3,"subMenuMouseState","theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","templateOutlet","menuClass","nzNoAnimation"]],template:function(t,e){if(t&1){let l=q();H(tn),C(0,"div",2,0),T("subMenuMouseState",function(F){return j(l),B(e.setMouseEnterState(F))})("toggleSubMenu",function(){return j(l),B(e.toggleSubMenu())}),f(2,on,1,0),b(),f(3,rn,1,6,"div",3)(4,an,1,5,null,4)(5,un,1,0,"ng-template",null,1,Se)}t&2&&(h("nzIcon",e.nzIcon)("nzTitle",e.nzTitle)("mode",e.mode)("nzDisabled",e.nzDisabled)("isMenuInsideDropDown",e.isMenuInsideDropDown)("paddingLeft",e.nzPaddingLeft||e.inlinePaddingLeft),m(2),w(e.nzTitle?-1:2),m(),w(e.mode==="inline"?3:4))},dependencies:[He,zn,pe,Mn,$e,Ne,Z],encapsulation:2,changeDetection:0});let s=i;return s})();function Dn(){let s=u(N,{skipSelf:!0,optional:!0}),i=u(je);return s??i}function vn(){return u(v,{skipSelf:!0,optional:!0})??!1}var xn=(()=>{let i=class i{setInlineCollapsed(n){this.nzInlineCollapsed=n,this.inlineCollapsed$.next(n)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(n=>n.nzOpen),this.listOfNzSubMenuComponent.forEach(n=>n.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(n=>n.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}constructor(n,t){this.nzMenuService=n,this.cdr=t,this.isMenuInsideDropDown=u(v),this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInlineCollapsed=!1,this.nzSelectable=!this.isMenuInsideDropDown,this.nzClick=new P,this.actualMode="vertical",this.dir="ltr",this.inlineCollapsed$=new g(this.nzInlineCollapsed),this.mode$=new g(this.nzMode),this.destroy$=new c,this.listOfOpenedNzSubMenuComponent=[],this.directionality=u(O)}ngOnInit(){L([this.inlineCollapsed$,this.mode$]).pipe(a(this.destroy$)).subscribe(([n,t])=>{this.actualMode=n?"vertical":t,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe(a(this.destroy$)).subscribe(n=>{this.nzClick.emit(n),this.nzSelectable&&!n.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach(t=>t.setSelectedState(t===n))}),this.dir=this.directionality.value,this.directionality.change?.pipe(a(this.destroy$)).subscribe(n=>{this.dir=n,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe(a(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(n){let{nzInlineCollapsed:t,nzInlineIndent:e,nzTheme:l,nzMode:o}=n;t&&this.inlineCollapsed$.next(this.nzInlineCollapsed),e&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),l&&this.nzMenuService.setTheme(this.nzTheme),o&&(this.mode$.next(this.nzMode),!n.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(F=>F.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};i.\u0275fac=function(t){return new(t||i)(d(N),d(Q))},i.\u0275dir=ne({type:i,selectors:[["","nz-menu",""]],contentQueries:function(t,e,l){if(t&1&&(R(l,Be,5),R(l,Qe,5)),t&2){let o;S(o=I())&&(e.listOfNzMenuItemDirective=o),S(o=I())&&(e.listOfNzSubMenuComponent=o)}},hostVars:34,hostBindings:function(t,e){t&2&&D("ant-dropdown-menu",e.isMenuInsideDropDown)("ant-dropdown-menu-root",e.isMenuInsideDropDown)("ant-dropdown-menu-light",e.isMenuInsideDropDown&&e.nzTheme==="light")("ant-dropdown-menu-dark",e.isMenuInsideDropDown&&e.nzTheme==="dark")("ant-dropdown-menu-vertical",e.isMenuInsideDropDown&&e.actualMode==="vertical")("ant-dropdown-menu-horizontal",e.isMenuInsideDropDown&&e.actualMode==="horizontal")("ant-dropdown-menu-inline",e.isMenuInsideDropDown&&e.actualMode==="inline")("ant-dropdown-menu-inline-collapsed",e.isMenuInsideDropDown&&e.nzInlineCollapsed)("ant-menu",!e.isMenuInsideDropDown)("ant-menu-root",!e.isMenuInsideDropDown)("ant-menu-light",!e.isMenuInsideDropDown&&e.nzTheme==="light")("ant-menu-dark",!e.isMenuInsideDropDown&&e.nzTheme==="dark")("ant-menu-vertical",!e.isMenuInsideDropDown&&e.actualMode==="vertical")("ant-menu-horizontal",!e.isMenuInsideDropDown&&e.actualMode==="horizontal")("ant-menu-inline",!e.isMenuInsideDropDown&&e.actualMode==="inline")("ant-menu-inline-collapsed",!e.isMenuInsideDropDown&&e.nzInlineCollapsed)("ant-menu-rtl",e.dir==="rtl")},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:[2,"nzInlineCollapsed","nzInlineCollapsed",M],nzSelectable:[2,"nzSelectable","nzSelectable",M]},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],standalone:!0,features:[U([{provide:je,useClass:N},{provide:N,useFactory:Dn},{provide:v,useFactory:vn}]),V,$]});let s=i;return s})();function Cn(){return u(v,{optional:!0,skipSelf:!0})??!1}var bn=(()=>{let i=class i{constructor(n,t){this.elementRef=n,this.renderer=t,this.isMenuInsideDropDown=u(v);let e=this.isMenuInsideDropDown?"ant-dropdown-menu-item-group":"ant-menu-item-group";this.renderer.addClass(n.nativeElement,e)}ngAfterViewInit(){let n=this.titleElement.nativeElement.nextElementSibling;if(n){let t=this.isMenuInsideDropDown?"ant-dropdown-menu-item-group-list":"ant-menu-item-group-list";this.renderer.addClass(n,t)}}};i.\u0275fac=function(t){return new(t||i)(d(A),d(te))},i.\u0275cmp=y({type:i,selectors:[["","nz-menu-group",""]],viewQuery:function(t,e){if(t&1&&le(dn,5),t&2){let l;S(l=I())&&(e.titleElement=l.first)}},inputs:{nzTitle:"nzTitle"},exportAs:["nzMenuGroup"],standalone:!0,features:[U([{provide:v,useFactory:Cn}]),_],attrs:cn,ngContentSelectors:mn,decls:5,vars:6,consts:[["titleElement",""],[4,"nzStringTemplateOutlet"]],template:function(t,e){t&1&&(H(pn),C(0,"div",null,0),f(2,hn,2,1,"ng-container",1)(3,fn,1,0),b(),k(4)),t&2&&(D("ant-menu-item-group-title",!e.isMenuInsideDropDown)("ant-dropdown-menu-item-group-title",e.isMenuInsideDropDown),m(2),h("nzStringTemplateOutlet",e.nzTitle),m(),w(e.nzTitle?-1:3))},dependencies:[he,me],encapsulation:2,changeDetection:0});let s=i;return s})(),et=(()=>{let i=class i{constructor(n){this.elementRef=n}};i.\u0275fac=function(t){return new(t||i)(d(A))},i.\u0275dir=ne({type:i,selectors:[["","nz-menu-divider",""]],hostAttrs:[1,"ant-dropdown-menu-item-divider"],exportAs:["nzMenuDivider"],standalone:!0});let s=i;return s})(),nt=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=be({type:i}),i.\u0275inj=ve({imports:[Qe,bn,He]});let s=i;return s})();export{v as a,N as b,Be as c,Qe as d,xn as e,bn as f,et as g,nt as h};