-
Notifications
You must be signed in to change notification settings - Fork 5
/
1440.135dd27701929c1b.js
1 lines (1 loc) · 38.9 KB
/
1440.135dd27701929c1b.js
1
"use strict";(self.webpackChunkmaterial_angular_io=self.webpackChunkmaterial_angular_io||[]).push([[1440],{1440:(Fe,B,a)=>{a.r(B),a.d(B,{CdkMenuContextExample:()=>we,CdkMenuInlineExample:()=>Pe,CdkMenuMenubarExample:()=>Ee,CdkMenuNestedContextExample:()=>Ze,CdkMenuStandaloneMenuExample:()=>Ae,CdkMenuStandaloneStatefulMenuExample:()=>Se});var e=a(5879),h=a(748),u=a(6028),b=a(3075),j=a(6776),G=a(2068),k=a(7734),d=a(9352),I=a(6743),A=a(4014),S=a(7449),Q=a(5222),Y=a(4521),E=a(8337),g=a(2079),P=a(7354),_=a(9016),U=a(4917);function W(n,s){function t(){return!t.pred.apply(t.thisArg,arguments)}return t.pred=n,t.thisArg=s,t}var H=a(4372),N=a(4699),$=a(8484),w=a(4300),Z=a(2495),y=a(9388),V=a(2831);let M=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkMenuGroup",""]],hostAttrs:["role","group",1,"cdk-menu-group"],exportAs:["cdkMenuGroup"],standalone:!0,features:[e._Bn([{provide:E.A8,useClass:E.A8}])]}),n})();const C=new e.OlP("cdk-menu"),m=new e.OlP("cdk-menu-stack"),ee={provide:m,deps:[[new e.FiY,new e.tp0,new e.tBr(m)]],useFactory:n=>n||new T},te=n=>({provide:m,deps:[[new e.FiY,new e.tp0,new e.tBr(m)]],useFactory:s=>s||T.inline(n)});let ne=0,T=(()=>{class n{constructor(){this.id=""+ne++,this._elements=[],this._close=new g.xQ,this._empty=new g.xQ,this._hasFocus=new g.xQ,this.closed=this._close,this.hasFocus=this._hasFocus.pipe((0,b.O)(!1),(0,j.b)(0),(0,G.x)()),this.emptied=this._empty,this._inlineMenuOrientation=null}static inline(t){const i=new n;return i._inlineMenuOrientation=t,i}push(t){this._elements.push(t)}close(t,i){const{focusNextOnEmpty:o,focusParentTrigger:r}={...i};if(this._elements.indexOf(t)>=0){let c;do{c=this._elements.pop(),this._close.next({item:c,focusParentTrigger:r})}while(c!==t);this.isEmpty()&&this._empty.next(o)}}closeSubMenuOf(t){let i=!1;if(this._elements.indexOf(t)>=0)for(i=this.peek()!==t;this.peek()!==t;)this._close.next({item:this._elements.pop()});return i}closeAll(t){const{focusNextOnEmpty:i,focusParentTrigger:o}={...t};if(!this.isEmpty()){for(;!this.isEmpty();){const r=this._elements.pop();r&&this._close.next({item:r,focusParentTrigger:o})}this._empty.next(i)}}isEmpty(){return!this._elements.length}length(){return this._elements.length}peek(){return this._elements[this._elements.length-1]}hasInlineMenu(){return null!=this._inlineMenuOrientation}inlineMenuOrientation(){return this._inlineMenuOrientation}setHasFocus(t){this._hasFocus.next(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n})();const v=new e.OlP("cdk-menu-trigger");let z=(()=>{class n{constructor(){this.injector=(0,e.f3M)(e.zs3),this.viewContainerRef=(0,e.f3M)(e.s_b),this.menuStack=(0,e.f3M)(m),this.opened=new e.vpe,this.closed=new e.vpe,this.overlayRef=null,this.destroyed=new g.xQ,this.stopOutsideClicksListener=(0,P.T)(this.closed,this.destroyed)}ngOnDestroy(){this._destroyOverlay(),this.destroyed.next(),this.destroyed.complete()}isOpen(){return!!this.overlayRef?.hasAttached()}registerChildMenu(t){this.childMenu=t}getMenuContentPortal(){return this.menuTemplateRef&&(!this._menuPortal||this.menuTemplateRef!==this._menuPortal?.templateRef)&&(this._menuPortal=new $.UE(this.menuTemplateRef,this.viewContainerRef,this.menuData,this._getChildMenuInjector())),this._menuPortal}isElementInsideMenuStack(t){for(let i=t;i;i=i?.parentElement??null)if(i.getAttribute("data-cdk-menu-stack-id")===this.menuStack.id)return!0;return!1}_destroyOverlay(){this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}_getChildMenuInjector(){return this._childMenuInjector=this._childMenuInjector||e.zs3.create({providers:[{provide:v,useValue:this},{provide:m,useValue:this.menuStack}],parent:this.injector}),this._childMenuInjector}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,hostVars:2,hostBindings:function(t,i){2&t&&e.uIk("aria-controls",null==i.childMenu?null:i.childMenu.id)("data-cdk-menu-stack-id",i.menuStack.id)}}),n})();const O=new e.OlP("cdk-menu-aim");let x=(()=>{class n extends z{constructor(){super(),this._elementRef=(0,e.f3M)(e.SBq),this._overlay=(0,e.f3M)(h.aV),this._ngZone=(0,e.f3M)(e.R0b),this._directionality=(0,e.f3M)(y.Is,{optional:!0}),this._inputModalityDetector=(0,e.f3M)(w.QL),this._parentMenu=(0,e.f3M)(C,{optional:!0}),this._menuAim=(0,e.f3M)(O,{optional:!0}),this._setRole(),this._registerCloseHandler(),this._subscribeToMenuStackClosed(),this._subscribeToMouseEnter(),this._subscribeToMenuStackHasFocus(),this._setType()}toggle(){this.isOpen()?this.close():this.open()}open(){!this.isOpen()&&null!=this.menuTemplateRef&&(this.opened.next(),this.overlayRef=this.overlayRef||this._overlay.create(this._getOverlayConfig()),this.overlayRef.attach(this.getMenuContentPortal()),this._subscribeToOutsideClicks())}close(){this.isOpen()&&(this.closed.next(),this.overlayRef.detach()),this._closeSiblingTriggers()}getMenu(){return this.childMenu}_toggleOnKeydown(t){const i="vertical"===this._parentMenu?.orientation;switch(t.keyCode){case u.L_:case u.K5:(0,u.Vb)(t)||(this.toggle(),this.childMenu?.focusFirstItem("keyboard"));break;case u.SV:(0,u.Vb)(t)||this._parentMenu&&i&&"rtl"!==this._directionality?.value&&(t.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case u.oh:(0,u.Vb)(t)||this._parentMenu&&i&&"rtl"===this._directionality?.value&&(t.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case u.JH:case u.LH:(0,u.Vb)(t)||i||(t.preventDefault(),this.open(),t.keyCode===u.JH?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusLastItem("keyboard"))}}_handleClick(){"keyboard"!==this._inputModalityDetector.mostRecentModality&&(this.toggle(),this.childMenu?.focusFirstItem("mouse"))}_setHasFocus(t){this._parentMenu||this.menuStack.setHasFocus(t)}_subscribeToMouseEnter(){this._ngZone.runOutsideAngular(()=>{(0,_.R)(this._elementRef.nativeElement,"mouseenter").pipe((0,k.h)(()=>!this.menuStack.isEmpty()&&!this.isOpen()),(0,d.R)(this.destroyed)).subscribe(()=>{const t=()=>this._ngZone.run(()=>{this._closeSiblingTriggers(),this.open()});this._menuAim?this._menuAim.toggle(t):t()})})}_closeSiblingTriggers(){this._parentMenu?!this.menuStack.closeSubMenuOf(this._parentMenu)&&this.menuStack.peek()!==this._parentMenu&&this.menuStack.closeAll():this.menuStack.closeAll()}_getOverlayConfig(){return new h.X_({positionStrategy:this._getOverlayPositionStrategy(),scrollStrategy:this._overlay.scrollStrategies.reposition(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this._elementRef).withLockedPosition().withGrowAfterOpen().withPositions(this._getOverlayPositions())}_getOverlayPositions(){return this.menuPosition??(this._parentMenu&&"horizontal"!==this._parentMenu.orientation?h.cR:h.Yy)}_registerCloseHandler(){this._parentMenu||this.menuStack.closed.pipe((0,d.R)(this.destroyed)).subscribe(({item:t})=>{t===this.childMenu&&this.close()})}_subscribeToOutsideClicks(){this.overlayRef&&this.overlayRef.outsidePointerEvents().pipe((0,d.R)(this.stopOutsideClicksListener)).subscribe(t=>{const i=(0,V.sA)(t),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&(this.isElementInsideMenuStack(i)?this._closeSiblingTriggers():this.menuStack.closeAll())})}_subscribeToMenuStackHasFocus(){this._parentMenu||this.menuStack.hasFocus.pipe((0,d.R)(this.destroyed)).subscribe(t=>{t||this.menuStack.closeAll()})}_subscribeToMenuStackClosed(){this._parentMenu||this.menuStack.closed.subscribe(({focusParentTrigger:t})=>{t&&!this.menuStack.length()&&this._elementRef.nativeElement.focus()})}_setRole(){this._parentMenu||this._elementRef.nativeElement.setAttribute("role","button")}_setType(){const t=this._elementRef.nativeElement;"BUTTON"===t.nodeName&&!t.getAttribute("type")&&t.setAttribute("type","button")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkMenuTriggerFor",""]],hostAttrs:[1,"cdk-menu-trigger"],hostVars:2,hostBindings:function(t,i){1&t&&e.NdJ("focusin",function(){return i._setHasFocus(!0)})("focusout",function(){return i._setHasFocus(!1)})("keydown",function(r){return i._toggleOnKeydown(r)})("click",function(){return i._handleClick()}),2&t&&e.uIk("aria-haspopup",i.menuTemplateRef?"menu":null)("aria-expanded",null==i.menuTemplateRef?null:i.isOpen())},inputs:{menuTemplateRef:["cdkMenuTriggerFor","menuTemplateRef"],menuPosition:["cdkMenuPosition","menuPosition"],menuData:["cdkMenuTriggerData","menuData"]},outputs:{opened:"cdkMenuOpened",closed:"cdkMenuClosed"},exportAs:["cdkMenuTriggerFor"],standalone:!0,features:[e._Bn([{provide:v,useExisting:n},ee]),e.qOj]}),n})(),l=(()=>{class n{get disabled(){return this._disabled}set disabled(t){this._disabled=(0,Z.Ig)(t)}get hasMenu(){return null!=this._menuTrigger?.menuTemplateRef}constructor(){this._dir=(0,e.f3M)(y.Is,{optional:!0}),this._inputModalityDetector=(0,e.f3M)(w.QL),this._elementRef=(0,e.f3M)(e.SBq),this._ngZone=(0,e.f3M)(e.R0b),this._menuAim=(0,e.f3M)(O,{optional:!0}),this._menuStack=(0,e.f3M)(m),this._parentMenu=(0,e.f3M)(C,{optional:!0}),this._menuTrigger=(0,e.f3M)(x,{optional:!0,self:!0}),this._disabled=!1,this.triggered=new e.vpe,this._tabindex=-1,this.closeOnSpacebarTrigger=!0,this.destroyed=new g.xQ,this._setupMouseEnter(),this._setType(),this._isStandaloneItem()&&(this._tabindex=0)}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}trigger(t){const{keepOpen:i}={...t};!this.disabled&&!this.hasMenu&&(this.triggered.next(),i||this._menuStack.closeAll({focusParentTrigger:!0}))}isMenuOpen(){return!!this._menuTrigger?.isOpen()}getMenu(){return this._menuTrigger?.getMenu()}getMenuTrigger(){return this._menuTrigger}getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}_resetTabIndex(){this._isStandaloneItem()||(this._tabindex=-1)}_setTabIndex(t){this.disabled||(!t||!this._menuStack.isEmpty())&&(this._tabindex=0)}_onKeydown(t){switch(t.keyCode){case u.L_:case u.K5:(0,u.Vb)(t)||this.trigger({keepOpen:t.keyCode===u.L_&&!this.closeOnSpacebarTrigger});break;case u.SV:(0,u.Vb)(t)||this._parentMenu&&this._isParentVertical()&&("rtl"!==this._dir?.value?this._forwardArrowPressed(t):this._backArrowPressed(t));break;case u.oh:(0,u.Vb)(t)||this._parentMenu&&this._isParentVertical()&&("rtl"!==this._dir?.value?this._backArrowPressed(t):this._forwardArrowPressed(t))}}_handleClick(){"keyboard"!==this._inputModalityDetector.mostRecentModality&&this.trigger()}_isStandaloneItem(){return!this._parentMenu}_backArrowPressed(t){const i=this._parentMenu;(this._menuStack.hasInlineMenu()||this._menuStack.length()>1)&&(t.preventDefault(),this._menuStack.close(i,{focusNextOnEmpty:"horizontal"===this._menuStack.inlineMenuOrientation()?1:2,focusParentTrigger:!0}))}_forwardArrowPressed(t){!this.hasMenu&&"horizontal"===this._menuStack.inlineMenuOrientation()&&(t.preventDefault(),this._menuStack.closeAll({focusNextOnEmpty:0,focusParentTrigger:!0}))}_setupMouseEnter(){if(!this._isStandaloneItem()){const t=()=>this._ngZone.run(()=>this._menuStack.closeSubMenuOf(this._parentMenu));this._ngZone.runOutsideAngular(()=>(0,_.R)(this._elementRef.nativeElement,"mouseenter").pipe((0,k.h)(()=>!this._menuStack.isEmpty()&&!this.hasMenu),(0,d.R)(this.destroyed)).subscribe(()=>{this._menuAim?this._menuAim.toggle(t):t()}))}}_isParentVertical(){return"vertical"===this._parentMenu?.orientation}_setType(){const t=this._elementRef.nativeElement;"BUTTON"===t.nodeName&&!t.getAttribute("type")&&t.setAttribute("type","button")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkMenuItem",""]],hostAttrs:["role","menuitem",1,"cdk-menu-item"],hostVars:2,hostBindings:function(t,i){1&t&&e.NdJ("blur",function(){return i._resetTabIndex()})("focus",function(){return i._setTabIndex()})("click",function(){return i._handleClick()})("keydown",function(r){return i._onKeydown(r)}),2&t&&(e.Ikx("tabindex",i._tabindex),e.uIk("aria-disabled",i.disabled||null))},inputs:{disabled:["cdkMenuItemDisabled","disabled"],typeaheadLabel:["cdkMenuitemTypeaheadLabel","typeaheadLabel"]},outputs:{triggered:"cdkMenuItemTriggered"},exportAs:["cdkMenuItem"],standalone:!0}),n})();class de{constructor(s){this._items=s,this.entered=this._getItemPointerEntries(),this.exited=this._getItemPointerExits(),this._destroyed=new g.xQ,this.entered.subscribe(t=>this.activeElement=t),this.exited.subscribe(()=>{this.previousElement=this.activeElement,this.activeElement=void 0})}destroy(){this._destroyed.next(),this._destroyed.complete()}_getItemPointerEntries(){return(0,U.P)(()=>this._items.changes.pipe((0,b.O)(this._items),(0,I.zg)(s=>s.map(t=>(0,_.R)(t._elementRef.nativeElement,"mouseenter").pipe((0,A.h)(t),(0,d.R)(this._items.changes)))),(0,S.J)()))}_getItemPointerExits(){return(0,U.P)(()=>this._items.changes.pipe((0,b.O)(this._items),(0,I.zg)(s=>s.map(t=>(0,_.R)(t._elementRef.nativeElement,"mouseout").pipe((0,A.h)(t),(0,d.R)(this._items.changes)))),(0,S.J)()))}}let le=0,L=(()=>{class n extends M{constructor(){super(...arguments),this.nativeElement=(0,e.f3M)(e.SBq).nativeElement,this.ngZone=(0,e.f3M)(e.R0b),this.menuStack=(0,e.f3M)(m),this.menuAim=(0,e.f3M)(O,{optional:!0,self:!0}),this.dir=(0,e.f3M)(y.Is,{optional:!0}),this.id="cdk-menu-"+le++,this.orientation="vertical",this.isInline=!1,this.destroyed=new g.xQ,this._menuStackHasFocus=!1}ngAfterContentInit(){this.isInline||this.menuStack.push(this),this._setKeyManager(),this._subscribeToMenuStackHasFocus(),this._subscribeToMenuOpen(),this._subscribeToMenuStackClosed(),this._setUpPointerTracker()}ngOnDestroy(){this.keyManager?.destroy(),this.destroyed.next(),this.destroyed.complete(),this.pointerTracker?.destroy()}focusFirstItem(t="program"){this.keyManager.setFocusOrigin(t),this.keyManager.setFirstItemActive()}focusLastItem(t="program"){this.keyManager.setFocusOrigin(t),this.keyManager.setLastItemActive()}_getTabIndex(){return this.isInline?this._menuStackHasFocus?-1:0:null}closeOpenMenu(t,i){const{focusParentTrigger:o}={...i},r=this.keyManager,c=this.triggerItem;t===c?.getMenuTrigger()?.getMenu()&&(c?.getMenuTrigger()?.close(),o&&(c?r.setActiveItem(c):r.setFirstItemActive()))}_setKeyManager(){this.keyManager=new w.Em(this.items).withWrap().withTypeAhead().withHomeAndEnd(),"horizontal"===this.orientation?this.keyManager.withHorizontalOrientation(this.dir?.value||"ltr"):this.keyManager.withVerticalOrientation()}_subscribeToMenuOpen(){const t=(0,P.T)(this.items.changes,this.destroyed);this.items.changes.pipe((0,b.O)(this.items),(0,I.zg)(i=>i.filter(o=>o.hasMenu).map(o=>o.getMenuTrigger().opened.pipe((0,A.h)(o),(0,d.R)(t)))),(0,S.J)(),(0,Q.w)(i=>(this.triggerItem=i,i.getMenuTrigger().closed)),(0,d.R)(this.destroyed)).subscribe(()=>this.triggerItem=void 0)}_subscribeToMenuStackClosed(){this.menuStack.closed.pipe((0,d.R)(this.destroyed)).subscribe(({item:t,focusParentTrigger:i})=>this.closeOpenMenu(t,{focusParentTrigger:i}))}_subscribeToMenuStackHasFocus(){this.isInline&&this.menuStack.hasFocus.pipe((0,d.R)(this.destroyed)).subscribe(t=>{this._menuStackHasFocus=t})}_setUpPointerTracker(){this.menuAim&&(this.ngZone.runOutsideAngular(()=>{this.pointerTracker=new de(this.items)}),this.menuAim.initialize(this,this.pointerTracker))}}return n.\u0275fac=function(){let s;return function(i){return(s||(s=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,contentQueries:function(t,i,o){if(1&t&&e.Suo(o,l,5),2&t){let r;e.iGM(r=e.CRH())&&(i.items=r)}},hostAttrs:["role","menu"],hostVars:4,hostBindings:function(t,i){1&t&&e.NdJ("focus",function(){return i.focusFirstItem()})("focusin",function(){return i.menuStack.setHasFocus(!0)})("focusout",function(){return i.menuStack.setHasFocus(!1)}),2&t&&(e.Ikx("tabindex",i._getTabIndex())("id",i.id),e.uIk("aria-orientation",i.orientation)("data-cdk-menu-stack-id",i.menuStack.id))},inputs:{id:"id"},features:[e.qOj]}),n})(),p=(()=>{class n extends L{constructor(){super(),this._parentTrigger=(0,e.f3M)(v,{optional:!0}),this.closed=new e.vpe,this.orientation="vertical",this.isInline=!this._parentTrigger,this.destroyed.subscribe(this.closed),this._parentTrigger?.registerChildMenu(this)}ngAfterContentInit(){super.ngAfterContentInit(),this._subscribeToMenuStackEmptied()}ngOnDestroy(){super.ngOnDestroy(),this.closed.complete()}_handleKeyEvent(t){const i=this.keyManager;switch(t.keyCode){case u.oh:case u.SV:(0,u.Vb)(t)||(t.preventDefault(),i.setFocusOrigin("keyboard"),i.onKeydown(t));break;case u.hY:(0,u.Vb)(t)||(t.preventDefault(),this.menuStack.close(this,{focusNextOnEmpty:2,focusParentTrigger:!0}));break;case u.Mf:(0,u.Vb)(t,"altKey","metaKey","ctrlKey")||this.menuStack.closeAll({focusParentTrigger:!0});break;default:i.onKeydown(t)}}_toggleMenuFocus(t){const i=this.keyManager;switch(t){case 0:i.setFocusOrigin("keyboard"),i.setNextItemActive();break;case 1:i.setFocusOrigin("keyboard"),i.setPreviousItemActive();break;case 2:i.activeItem&&(i.setFocusOrigin("keyboard"),i.setActiveItem(i.activeItem))}}_subscribeToMenuStackEmptied(){this.menuStack.emptied.pipe((0,d.R)(this.destroyed)).subscribe(t=>this._toggleMenuFocus(t))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkMenu",""]],hostAttrs:["role","menu",1,"cdk-menu"],hostVars:2,hostBindings:function(t,i){1&t&&e.NdJ("keydown",function(r){return i._handleKeyEvent(r)}),2&t&&e.ekj("cdk-menu-inline",i.isInline)},outputs:{closed:"closed"},exportAs:["cdkMenu"],standalone:!0,features:[e._Bn([{provide:M,useExisting:n},{provide:C,useExisting:n},te("vertical")]),e.qOj]}),n})(),J=(()=>{class n extends L{constructor(){super(...arguments),this.orientation="horizontal",this.isInline=!0}ngAfterContentInit(){super.ngAfterContentInit(),this._subscribeToMenuStackEmptied()}_handleKeyEvent(t){const i=this.keyManager;switch(t.keyCode){case u.LH:case u.JH:case u.oh:case u.SV:if(!(0,u.Vb)(t)&&(t.keyCode===u.oh||t.keyCode===u.SV)){t.preventDefault();const r=i.activeItem?.isMenuOpen();i.activeItem?.getMenuTrigger()?.close(),i.setFocusOrigin("keyboard"),i.onKeydown(t),r&&i.activeItem?.getMenuTrigger()?.open()}break;case u.hY:(0,u.Vb)(t)||(t.preventDefault(),i.activeItem?.getMenuTrigger()?.close());break;case u.Mf:(0,u.Vb)(t,"altKey","metaKey","ctrlKey")||i.activeItem?.getMenuTrigger()?.close();break;default:i.onKeydown(t)}}_toggleOpenMenu(t){const i=this.keyManager;switch(t){case 0:i.setFocusOrigin("keyboard"),i.setNextItemActive(),i.activeItem?.getMenuTrigger()?.open();break;case 1:i.setFocusOrigin("keyboard"),i.setPreviousItemActive(),i.activeItem?.getMenuTrigger()?.open();break;case 2:i.activeItem&&(i.setFocusOrigin("keyboard"),i.setActiveItem(i.activeItem))}}_subscribeToMenuStackEmptied(){this.menuStack?.emptied.pipe((0,d.R)(this.destroyed)).subscribe(t=>this._toggleOpenMenu(t))}}return n.\u0275fac=function(){let s;return function(i){return(s||(s=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","cdkMenuBar",""]],hostAttrs:["role","menubar",1,"cdk-menu-bar"],hostBindings:function(t,i){1&t&&e.NdJ("keydown",function(r){return i._handleKeyEvent(r)})},exportAs:["cdkMenuBar"],standalone:!0,features:[e._Bn([{provide:M,useExisting:n},{provide:C,useExisting:n},{provide:m,useFactory:()=>T.inline("horizontal")}]),e.qOj]}),n})(),f=(()=>{class n extends l{constructor(){super(...arguments),this._checked=!1,this.closeOnSpacebarTrigger=!1}get checked(){return this._checked}set checked(t){this._checked=(0,Z.Ig)(t)}}return n.\u0275fac=function(){let s;return function(i){return(s||(s=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,hostVars:2,hostBindings:function(t,i){2&t&&e.uIk("aria-checked",!!i.checked)("aria-disabled",i.disabled||null)},inputs:{checked:["cdkMenuItemChecked","checked"]},features:[e.qOj]}),n})(),me=0,F=(()=>{class n extends f{constructor(){super(),this._selectionDispatcher=(0,e.f3M)(E.A8),this._id=""+me++,this._registerDispatcherListener()}ngOnDestroy(){super.ngOnDestroy(),this._removeDispatcherListener()}trigger(t){super.trigger(t),this.disabled||this._selectionDispatcher.notify(this._id,"")}_registerDispatcherListener(){this._removeDispatcherListener=this._selectionDispatcher.listen(t=>{this.checked=this._id===t})}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkMenuItemRadio",""]],hostAttrs:["role","menuitemradio"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("cdk-menu-item-radio",!0)},exportAs:["cdkMenuItemRadio"],standalone:!0,features:[e._Bn([{provide:f,useExisting:n},{provide:l,useExisting:f}]),e.qOj]}),n})(),R=(()=>{class n extends f{trigger(t){super.trigger(t),this.disabled||(this.checked=!this.checked)}}return n.\u0275fac=function(){let s;return function(i){return(s||(s=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","cdkMenuItemCheckbox",""]],hostAttrs:["role","menuitemcheckbox"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("cdk-menu-item-checkbox",!0)},exportAs:["cdkMenuItemCheckbox"],standalone:!0,features:[e._Bn([{provide:f,useExisting:n},{provide:l,useExisting:f}]),e.qOj]}),n})();const ge=h.Yy.map(n=>{const s="start"===n.overlayX?2:-2,t="top"===n.overlayY?2:-2;return{...n,offsetX:s,offsetY:t}});let he=(()=>{class n{update(t){n._openContextMenuTrigger!==t&&(n._openContextMenuTrigger?.close(),n._openContextMenuTrigger=t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),D=(()=>{class n extends z{get disabled(){return this._disabled}set disabled(t){this._disabled=(0,Z.Ig)(t)}constructor(){super(),this._overlay=(0,e.f3M)(h.aV),this._directionality=(0,e.f3M)(y.Is,{optional:!0}),this._contextMenuTracker=(0,e.f3M)(he),this._disabled=!1,this._setMenuStackCloseListener()}open(t){this._open(t,!1)}close(){this.menuStack.closeAll()}_openOnContextMenu(t){this.disabled||(t.preventDefault(),t.stopPropagation(),this._contextMenuTracker.update(this),this._open({x:t.clientX,y:t.clientY},!0),this.childMenu?.focusFirstItem(2===t.button?"mouse":0===t.button?"keyboard":"program"))}_getOverlayConfig(t){return new h.X_({positionStrategy:this._getOverlayPositionStrategy(t),scrollStrategy:this._overlay.scrollStrategies.reposition(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(t){return this._overlay.position().flexibleConnectedTo(t).withLockedPosition().withGrowAfterOpen().withPositions(this.menuPosition??ge)}_setMenuStackCloseListener(){this.menuStack.closed.pipe((0,d.R)(this.destroyed)).subscribe(({item:t})=>{t===this.childMenu&&this.isOpen()&&(this.closed.next(),this.overlayRef.detach())})}_subscribeToOutsideClicks(t){if(this.overlayRef){let i=this.overlayRef.outsidePointerEvents();if(t){const[o,r]=function X(n,s,t){return[(0,k.h)(s,t)(new N.y((0,H.s)(n))),(0,k.h)(W(s,t))(new N.y((0,H.s)(n)))]}(i,({type:c})=>"auxclick"===c);i=(0,P.T)(r,o.pipe((0,Y.T)(1)))}i.pipe((0,d.R)(this.stopOutsideClicksListener)).subscribe(o=>{this.isElementInsideMenuStack((0,V.sA)(o))||this.menuStack.closeAll()})}}_open(t,i){this.disabled||(this.isOpen()?(this.menuStack.closeSubMenuOf(this.childMenu),this.overlayRef.getConfig().positionStrategy.setOrigin(t),this.overlayRef.updatePosition()):(this.opened.next(),this.overlayRef?(this.overlayRef.getConfig().positionStrategy.setOrigin(t),this.overlayRef.updatePosition()):this.overlayRef=this._overlay.create(this._getOverlayConfig(t)),this.overlayRef.attach(this.getMenuContentPortal()),this._subscribeToOutsideClicks(i)))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkContextMenuTriggerFor",""]],hostVars:1,hostBindings:function(t,i){1&t&&e.NdJ("contextmenu",function(r){return i._openOnContextMenu(r)}),2&t&&e.uIk("data-cdk-menu-stack-id",null)},inputs:{menuTemplateRef:["cdkContextMenuTriggerFor","menuTemplateRef"],menuPosition:["cdkContextMenuPosition","menuPosition"],menuData:["cdkContextMenuTriggerData","menuData"],disabled:["cdkContextMenuDisabled","disabled"]},outputs:{opened:"cdkContextMenuOpened",closed:"cdkContextMenuClosed"},exportAs:["cdkContextMenuTriggerFor"],standalone:!0,features:[e._Bn([{provide:v,useExisting:n},{provide:m,useClass:T}]),e.qOj]}),n})();var pe=a(6814);function Me(n,s){1&n&&(e.TgZ(0,"div",2)(1,"button",3),e._uU(2,"Refresh"),e.qZA(),e.TgZ(3,"button",3),e._uU(4,"Settings"),e.qZA(),e.TgZ(5,"button",3),e._uU(6,"Help"),e.qZA(),e.TgZ(7,"button",3),e._uU(8,"Sign out"),e.qZA()())}function fe(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"button",7),e.NdJ("cdkMenuItemTriggered",function(){const r=e.CHM(t).$implicit,c=e.oxw(2);return e.KtG(c.selectedSize=r)}),e._uU(1),e.qZA()}if(2&n){const t=s.$implicit,i=e.oxw(2);e.Q6J("cdkMenuItemChecked",t===i.selectedSize),e.xp6(1),e.hij(" ",t," ")}}function ke(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",2)(1,"button",3),e.NdJ("cdkMenuItemTriggered",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.bold=!o.bold)}),e._uU(2," Bold "),e.qZA(),e.TgZ(3,"button",3),e.NdJ("cdkMenuItemTriggered",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.italic=!o.italic)}),e._uU(4," Italic "),e.qZA(),e._UZ(5,"hr"),e.TgZ(6,"div",4),e.YNc(7,fe,2,2,"button",5),e.qZA(),e._UZ(8,"hr"),e.TgZ(9,"button",6),e.NdJ("cdkMenuItemTriggered",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.reset())}),e._uU(10,"Reset"),e.qZA()()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("cdkMenuItemChecked",t.bold),e.xp6(2),e.Q6J("cdkMenuItemChecked",t.italic),e.xp6(4),e.Q6J("ngForOf",t.sizes)}}function _e(n,s){if(1&n&&(e.TgZ(0,"div",7)(1,"button",8),e._uU(2,"Share"),e.qZA(),e._UZ(3,"hr"),e.TgZ(4,"button",9),e._uU(5," New "),e.TgZ(6,"span"),e._uU(7,"\u27a4"),e.qZA()(),e.TgZ(8,"button",8),e._uU(9,"Open"),e.qZA(),e.TgZ(10,"button",8),e._uU(11,"Make a Copy"),e.qZA(),e._UZ(12,"hr"),e.TgZ(13,"button",9),e._uU(14," Download "),e.TgZ(15,"span"),e._uU(16,"\u27a4"),e.qZA()()()),2&n){e.oxw();const t=e.MAs(14),i=e.MAs(16);e.xp6(4),e.Q6J("cdkMenuTriggerFor",t),e.xp6(9),e.Q6J("cdkMenuTriggerFor",i)}}function xe(n,s){1&n&&(e.TgZ(0,"div",7)(1,"button",8),e._uU(2,"Undo"),e.qZA(),e.TgZ(3,"button",8),e._uU(4,"Redo"),e.qZA(),e._UZ(5,"hr"),e.TgZ(6,"button",8),e._uU(7,"Cut"),e.qZA(),e.TgZ(8,"button",8),e._uU(9,"Copy"),e.qZA(),e.TgZ(10,"button",8),e._uU(11,"Paste"),e.qZA()())}function be(n,s){1&n&&(e.TgZ(0,"div",7)(1,"div",10)(2,"button",11),e._uU(3,"Bold"),e.qZA(),e.TgZ(4,"button",12),e._uU(5,"Italic"),e.qZA()(),e._UZ(6,"hr"),e.TgZ(7,"div",10)(8,"button",13),e._uU(9,"Small"),e.qZA(),e.TgZ(10,"button",14),e._uU(11,"Normal"),e.qZA(),e.TgZ(12,"button",13),e._uU(13,"Big"),e.qZA()()())}function ye(n,s){1&n&&(e.TgZ(0,"div",7)(1,"button",8),e._uU(2,"Document"),e.qZA(),e.TgZ(3,"button",8),e._uU(4,"From template"),e.qZA(),e._UZ(5,"hr"),e.TgZ(6,"button",8),e._uU(7,"Spreadsheet"),e.qZA(),e.TgZ(8,"button",8),e._uU(9,"Presentation"),e.qZA(),e.TgZ(10,"button",8),e._uU(11,"Form"),e.qZA()())}function Ce(n,s){1&n&&(e.TgZ(0,"div",7)(1,"button",8),e._uU(2,"Microsoft Word"),e.qZA(),e.TgZ(3,"button",8),e._uU(4,"PDF"),e.qZA(),e.TgZ(5,"button",8),e._uU(6,"Plain text"),e.qZA()())}function Te(n,s){1&n&&(e.TgZ(0,"div",2)(1,"button",3),e._uU(2,"Cut"),e.qZA(),e.TgZ(3,"button",3),e._uU(4,"Copy"),e.qZA(),e.TgZ(5,"button",3),e._uU(6,"Link"),e.qZA()())}function Oe(n,s){1&n&&(e.TgZ(0,"div",3)(1,"button",4),e._uU(2,"Save"),e.qZA(),e.TgZ(3,"button",4),e._uU(4,"Exit"),e.qZA()())}function Ie(n,s){1&n&&(e.TgZ(0,"div",3)(1,"button",4),e._uU(2,"Cut"),e.qZA(),e.TgZ(3,"button",4),e._uU(4,"Copy"),e.qZA(),e.TgZ(5,"button",4),e._uU(6,"Paste"),e.qZA()())}let Ae=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cdk-menu-standalone-menu-example"]],standalone:!0,features:[e.jDz],decls:4,vars:1,consts:[[1,"example-standalone-trigger",3,"cdkMenuTriggerFor"],["menu",""],["cdkMenu","",1,"example-menu"],["cdkMenuItem","",1,"example-menu-item"]],template:function(t,i){if(1&t&&(e.TgZ(0,"button",0),e._uU(1,"Click me!"),e.qZA(),e.YNc(2,Me,9,0,"ng-template",null,1,e.W1O)),2&t){const o=e.MAs(3);e.Q6J("cdkMenuTriggerFor",o)}},dependencies:[x,p,l],styles:[".example-menu[_ngcontent-%COMP%] {\n display: inline-flex;\n flex-direction: column;\n min-width: 180px;\n max-width: 280px;\n background-color: rgba(255, 255, 255);\n padding: 6px 0;\n}\n\n.example-menu-item[_ngcontent-%COMP%], .example-standalone-trigger[_ngcontent-%COMP%] {\n background-color: transparent;\n cursor: pointer;\n border: none;\n\n user-select: none;\n min-width: 64px;\n line-height: 36px;\n padding: 0 16px;\n\n display: flex;\n align-items: center;\n flex-direction: row;\n flex: 1;\n}\n\n.example-menu-item[_ngcontent-%COMP%]:hover {\n background-color: rgb(208, 208, 208);\n}\n\n.example-menu-item[_ngcontent-%COMP%]:active {\n background-color: rgb(170, 170, 170);\n}\n\n.example-standalone-item[_ngcontent-%COMP%] {\n background-color: rgb(239, 239, 239);\n}\n.example-standalone-item[_ngcontent-%COMP%]:hover {\n background-color: rgb(208, 208, 208);\n}\n.example-standalone-item[aria-expanded='true'][_ngcontent-%COMP%] {\n background-color: rgb(208, 208, 208);\n}"]}),n})(),Se=(()=>{class n{constructor(){this.bold=!1,this.italic=!1,this.sizes=["Small","Normal","Large"],this.selectedSize="Normal"}reset(){this.bold=!1,this.italic=!1,this.selectedSize="Normal"}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cdk-menu-standalone-stateful-menu-example"]],standalone:!0,features:[e.jDz],decls:4,vars:1,consts:[[1,"example-standalone-item",3,"cdkMenuTriggerFor"],["menu",""],["cdkMenu","",1,"example-menu"],["cdkMenuItemCheckbox","",1,"example-menu-item",3,"cdkMenuItemChecked","cdkMenuItemTriggered"],["cdkMenuGroup",""],["cdkMenuItemRadio","","class","example-menu-item",3,"cdkMenuItemChecked","cdkMenuItemTriggered",4,"ngFor","ngForOf"],["cdkMenuItem","",1,"example-menu-item",3,"cdkMenuItemTriggered"],["cdkMenuItemRadio","",1,"example-menu-item",3,"cdkMenuItemChecked","cdkMenuItemTriggered"]],template:function(t,i){if(1&t&&(e.TgZ(0,"button",0),e._uU(1,"Click me!"),e.qZA(),e.YNc(2,ke,11,3,"ng-template",null,1,e.W1O)),2&t){const o=e.MAs(3);e.Q6J("cdkMenuTriggerFor",o)}},dependencies:[x,p,R,M,pe.ax,F,l],styles:[".example-menu[_ngcontent-%COMP%] {\n display: inline-flex;\n flex-direction: column;\n min-width: 180px;\n max-width: 280px;\n background-color: rgb(255, 255, 255);\n padding: 6px 0;\n}\n\n.example-menu[_ngcontent-%COMP%] .example-menu-item[_ngcontent-%COMP%] {\n width: 100%;\n}\n\nhr[_ngcontent-%COMP%] {\n width: 100%;\n color: rgba(0, 0, 0, 0.12);\n}\n\n.example-menu-item[_ngcontent-%COMP%], .example-standalone-item[_ngcontent-%COMP%] {\n background-color: transparent;\n cursor: pointer;\n border: none;\n\n user-select: none;\n min-width: 64px;\n line-height: 36px;\n padding: 0 16px;\n\n display: flex;\n align-items: center;\n flex-direction: row;\n flex: 1;\n}\n\n.example-menu-item[_ngcontent-%COMP%]:hover {\n background-color: rgb(208, 208, 208);\n}\n\n.example-menu-item[_ngcontent-%COMP%]:active {\n background-color: rgb(170, 170, 170);\n}\n\n.example-standalone-item[_ngcontent-%COMP%] {\n background-color: rgb(239, 239, 239);\n}\n.example-standalone-item[_ngcontent-%COMP%]:hover {\n background-color: rgb(208, 208, 208);\n}\n.example-standalone-item[aria-expanded='true'][_ngcontent-%COMP%] {\n background-color: rgb(208, 208, 208);\n}\n\n.example-menu-item[role='menuitemradio'][aria-checked='true'][_ngcontent-%COMP%] {\n background-color: rgb(225, 225, 225);\n}\n.example-menu-item[role='menuitemcheckbox'][aria-checked='true'][_ngcontent-%COMP%] {\n background-color: rgb(225, 225, 225);\n}"]}),n})(),Ee=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cdk-menu-menubar-example"]],exportAs:["cdkMenuMenubarExample"],standalone:!0,features:[e.jDz],decls:17,vars:3,consts:[["cdkMenuBar",""],["cdkMenuItem","",1,"example-menu-bar-item",3,"cdkMenuTriggerFor"],["file",""],["edit",""],["format",""],["new_doc",""],["download",""],["cdkMenu","",1,"example-menu"],["cdkMenuItem","",1,"example-menu-item"],["cdkMenuItem","",1,"example-menu-item",3,"cdkMenuTriggerFor"],["cdkMenuGroup","",1,"example-menu-group"],["cdkMenuItemCheckbox","","cdkMenuItemChecked","",1,"example-menu-item"],["cdkMenuItemCheckbox","",1,"example-menu-item"],["cdkMenuItemRadio","",1,"example-menu-item"],["cdkMenuItemRadio","","cdkMenuItemChecked","",1,"example-menu-item"]],template:function(t,i){if(1&t&&(e.TgZ(0,"div",0)(1,"button",1),e._uU(2,"File"),e.qZA(),e.TgZ(3,"button",1),e._uU(4,"Edit"),e.qZA(),e.TgZ(5,"button",1),e._uU(6,"Format"),e.qZA()(),e.YNc(7,_e,17,2,"ng-template",null,2,e.W1O),e.YNc(9,xe,12,0,"ng-template",null,3,e.W1O),e.YNc(11,be,14,0,"ng-template",null,4,e.W1O),e.YNc(13,ye,12,0,"ng-template",null,5,e.W1O),e.YNc(15,Ce,7,0,"ng-template",null,6,e.W1O)),2&t){const o=e.MAs(8),r=e.MAs(10),c=e.MAs(12);e.xp6(1),e.Q6J("cdkMenuTriggerFor",o),e.xp6(2),e.Q6J("cdkMenuTriggerFor",r),e.xp6(2),e.Q6J("cdkMenuTriggerFor",c)}},dependencies:[J,l,x,p,M,R,F],styles:[".example-menu-bar-item[_ngcontent-%COMP%] {\n cursor: pointer;\n border: none;\n\n user-select: none;\n min-width: 34px;\n line-height: 26px;\n padding: 0 16px;\n}\n\n.example-menu-bar-item[_ngcontent-%COMP%]:hover {\n background-color: rgb(208, 208, 208);\n}\n\n.example-menu[_ngcontent-%COMP%] {\n display: inline-flex;\n flex-direction: column;\n min-width: 180px;\n max-width: 280px;\n background-color: rgb(255, 255, 255);\n padding: 6px 0;\n}\n\n.example-menu[_ngcontent-%COMP%] hr[_ngcontent-%COMP%] {\n width: 100%;\n color: rgba(0, 0, 0, 0.12);\n}\n\n.example-menu[_ngcontent-%COMP%] .example-menu-group[_ngcontent-%COMP%] {\n display: inline-flex;\n flex-direction: column;\n}\n\n.example-menu[_ngcontent-%COMP%] .example-menu-item[_ngcontent-%COMP%] {\n background-color: transparent;\n cursor: pointer;\n border: none;\n\n user-select: none;\n min-width: 64px;\n line-height: 36px;\n padding: 0 16px;\n\n display: flex;\n align-items: center;\n flex-direction: row;\n flex: 1;\n}\n\n.example-menu-item[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: row;\n flex: 1;\n justify-content: flex-end;\n}\n\n.example-menu[_ngcontent-%COMP%] .example-menu-item[_ngcontent-%COMP%]:hover {\n background-color: rgb(208, 208, 208);\n}\n\n.example-menu[_ngcontent-%COMP%] .example-menu-item[role='menuitemradio'][aria-checked='true'][_ngcontent-%COMP%] {\n background-color: rgb(225, 225, 225);\n}\n.example-menu[_ngcontent-%COMP%] .example-menu-item[role='menuitemcheckbox'][aria-checked='true'][_ngcontent-%COMP%] {\n background-color: rgb(225, 225, 225);\n}\n.example-menu[_ngcontent-%COMP%] .example-menu-item[_ngcontent-%COMP%]:active {\n background-color: rgb(170, 170, 170);\n}\n\n.example-menu-bar-item[aria-expanded='true'][_ngcontent-%COMP%], .example-menu-item[aria-expanded='true'][_ngcontent-%COMP%] {\n background-color: rgb(208, 208, 208) !important;\n}"]}),n})(),Pe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cdk-menu-inline-example"]],exportAs:["cdkMenuInlineExample"],standalone:!0,features:[e.jDz],decls:13,vars:0,consts:[["cdkMenu","",1,"example-menu"],["cdkMenuItem","",1,"example-menu-item"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"button",1),e._uU(2,"Inbox"),e.qZA(),e.TgZ(3,"button",1),e._uU(4,"Snoozed"),e.qZA(),e.TgZ(5,"button",1),e._uU(6,"Important"),e.qZA(),e.TgZ(7,"button",1),e._uU(8,"Sent"),e.qZA(),e.TgZ(9,"button",1),e._uU(10,"Drafts"),e.qZA(),e.TgZ(11,"button",1),e._uU(12,"All Mail"),e.qZA()())},dependencies:[p,l],styles:[".example-menu[_ngcontent-%COMP%] {\n display: inline-flex;\n flex-direction: column;\n min-width: 180px;\n max-width: 280px;\n background-color: rgb(255, 255, 255);\n padding: 6px 0;\n}\n\n.example-menu-item[_ngcontent-%COMP%] {\n background-color: transparent;\n cursor: pointer;\n border: none;\n\n user-select: none;\n min-width: 64px;\n line-height: 36px;\n padding: 0 16px;\n\n display: flex;\n align-items: center;\n flex-direction: row;\n flex: 1;\n}\n\n.example-menu-item[_ngcontent-%COMP%]:hover {\n background-color: rgb(208, 208, 208);\n}\n\n.example-menu-item[_ngcontent-%COMP%]:active {\n background-color: rgb(170, 170, 170);\n}"]}),n})(),we=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cdk-menu-context-example"]],exportAs:["cdkMenuContextExample"],standalone:!0,features:[e.jDz],decls:4,vars:1,consts:[[3,"cdkContextMenuTriggerFor"],["context_menu",""],["cdkMenu","",1,"example-menu"],["cdkMenuItem","",1,"example-menu-item"]],template:function(t,i){if(1&t&&(e.TgZ(0,"div",0),e._uU(1," Did you ever hear the tragedy of Darth Plagueis The Wise? I thought not. It's not a story the Jedi would tell you. It's a Sith legend. Darth Plagueis was a Dark Lord of the Sith, so powerful and so wise he could use the Force to influence the midichlorians to create life\u2026 He had such a knowledge of the dark side that he could even keep the ones he cared about from dying. The dark side of the Force is a pathway to many abilities some consider to be unnatural. He became so powerful\u2026 the only thing he was afraid of was losing his power, which eventually, of course, he did. Unfortunately, he taught his apprentice everything he knew, then his apprentice killed him in his sleep. Ironic. He could save others from death, but not himself.\n"),e.qZA(),e.YNc(2,Te,7,0,"ng-template",null,1,e.W1O)),2&t){const o=e.MAs(3);e.Q6J("cdkContextMenuTriggerFor",o)}},dependencies:[D,p,l],styles:[".example-menu[_ngcontent-%COMP%] {\n display: inline-flex;\n flex-direction: column;\n min-width: 180px;\n max-width: 280px;\n background-color: rgb(255, 255, 255);\n padding: 6px 0;\n}\n\n.example-menu-item[_ngcontent-%COMP%] {\n background-color: transparent;\n cursor: pointer;\n border: none;\n\n user-select: none;\n min-width: 64px;\n line-height: 36px;\n padding: 0 16px;\n\n display: flex;\n align-items: center;\n flex-direction: row;\n flex: 1;\n}\n\n.example-menu-item[_ngcontent-%COMP%]:hover {\n background-color: rgb(208, 208, 208);\n}\n\n.example-menu-item[_ngcontent-%COMP%]:active {\n background-color: rgb(170, 170, 170);\n}"]}),n})(),Ze=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cdk-menu-nested-context-example"]],exportAs:["cdkMenuNestedContextExample"],standalone:!0,features:[e.jDz],decls:8,vars:2,consts:[[1,"example-context-area",3,"cdkContextMenuTriggerFor"],["outer",""],["inner",""],["cdkMenu","",1,"example-menu"],["cdkMenuItem","",1,"example-menu-item"]],template:function(t,i){if(1&t&&(e.TgZ(0,"div",0),e._uU(1," Outer context menu "),e.TgZ(2,"div",0),e._uU(3,"Inner context menu"),e.qZA()(),e.YNc(4,Oe,5,0,"ng-template",null,1,e.W1O),e.YNc(6,Ie,7,0,"ng-template",null,2,e.W1O)),2&t){const o=e.MAs(5),r=e.MAs(7);e.Q6J("cdkContextMenuTriggerFor",o),e.xp6(2),e.Q6J("cdkContextMenuTriggerFor",r)}},dependencies:[D,p,l],styles:[".example-context-area[_ngcontent-%COMP%] {\n display: inline-grid;\n border: 2px dashed black;\n}\n\n.example-context-area[_ngcontent-%COMP%] .example-context-area[_ngcontent-%COMP%] {\n margin: 100px;\n width: 200px;\n height: 100px;\n}\n\n.example-menu[_ngcontent-%COMP%] {\n display: inline-flex;\n flex-direction: column;\n min-width: 180px;\n max-width: 280px;\n background-color: rgb(255, 255, 255);\n padding: 6px 0;\n}\n\n.example-menu-item[_ngcontent-%COMP%] {\n background-color: transparent;\n cursor: pointer;\n border: none;\n\n user-select: none;\n min-width: 64px;\n line-height: 36px;\n padding: 0 16px;\n\n display: flex;\n align-items: center;\n flex-direction: row;\n flex: 1;\n}\n\n.example-menu-item[_ngcontent-%COMP%]:hover {\n background-color: rgb(208, 208, 208);\n}\n\n.example-menu-item[_ngcontent-%COMP%]:active {\n background-color: rgb(170, 170, 170);\n}"]}),n})()}}]);