-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path37-es2015.0435d65a51bcb90109b9.js
1 lines (1 loc) · 43.3 KB
/
37-es2015.0435d65a51bcb90109b9.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{CqXF:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("7o/Q");function c(e){return t=>t.lift(new s(e))}class s{constructor(e){this.value=e}call(e,t){return t.subscribe(new o(e,this.value))}}class o extends i.a{constructor(e,t){super(e),this.value=t}_next(e){this.destination.next(this.value)}}},kqgp:function(e,t,n){"use strict";n.r(t),n.d(t,"CdkMenuContextExample",function(){return ce}),n.d(t,"CdkMenuExamplesModule",function(){return se}),n.d(t,"CdkMenuInlineExample",function(){return ne}),n.d(t,"CdkMenuMenubarExample",function(){return te}),n.d(t,"CdkMenuStandaloneMenuExample",function(){return G}),n.d(t,"CdkMenuStandaloneStatefulMenuExample",function(){return J});var i=n("fXoL"),c=n("rDax"),s=n("u47x"),o=n("FtGj"),r=n("XNiG"),a=n("xgIS"),l=n("VRyK"),u=n("NXyV"),d=n("pLZG"),b=n("1G5W"),h=n("JX91"),m=n("5+tZ"),g=n("CqXF"),p=n("bHdf"),_=n("IzEk"),O=n("eIep"),v=n("0EQZ"),k=n("8LU1"),M=n("+rOU"),j=n("cH1L");const f=new i.x("cdk-menu");class x{constructor(){this._elements=[],this._close=new r.a,this._empty=new r.a,this.closed=this._close,this.emptied=this._empty}push(e){this._elements.push(e)}close(e,t){if(this._elements.indexOf(e)>=0){let n;do{n=this._elements.pop(),this._close.next(n)}while(n!==e);this.isEmpty()&&this._empty.next(t)}}closeSubMenuOf(e){let t=!1;if(this._elements.indexOf(e)>=0)for(t=this.peek()!==e;this.peek()!==e;)this._close.next(this._elements.pop());return t}closeAll(e){if(!this.isEmpty()){for(;!this.isEmpty();){const e=this._elements.pop();e&&this._close.next(e)}this._empty.next(e)}}isEmpty(){return!this._elements.length}length(){return this._elements.length}peek(){return this._elements[this._elements.length-1]}}class y extends x{push(e){}}const P=new i.x("cdk-menu-aim");function C(e){for(;null==e?void 0:e.parentElement;){const t="true"===e.getAttribute("aria-expanded")&&e.classList.contains("cdk-menu-trigger"),n=e.classList.contains("cdk-menu")&&!e.classList.contains("cdk-menu-inline");if(t||n)return!0;e=e.parentElement}return!1}let S=(()=>{class e{constructor(e,t,n,c,s,o,a){this._elementRef=e,this._viewContainerRef=t,this._overlay=n,this._ngZone=c,this._parentMenu=s,this._menuAim=o,this._directionality=a,this.opened=new i.s,this.closed=new i.s,this._menuStack=new x,this._overlayRef=null,this._destroyed=new r.a,this._stopOutsideClicksListener=Object(l.a)(this.closed,this._destroyed),this._registerCloseHandler(),this._subscribeToMouseEnter()}get menuPanel(){return this._menuPanel}set menuPanel(e){this._menuPanel=e,this._menuPanel&&(this._menuPanel._menuStack=this._getMenuStack())}toggle(){this.hasMenu()&&(this.isMenuOpen()?this.closeMenu():this.openMenu())}openMenu(){this.isMenuOpen()||(this.opened.next(),this._overlayRef=this._overlayRef||this._overlay.create(this._getOverlayConfig()),this._overlayRef.attach(this._getPortal()),this._subscribeToOutsideClicks())}closeMenu(){this.isMenuOpen()&&(this.closed.next(),this._overlayRef.detach()),this._closeSiblingTriggers()}hasMenu(){return!!this.menuPanel}isMenuOpen(){return!!this._overlayRef&&this._overlayRef.hasAttached()}getMenu(){var e;return null===(e=this.menuPanel)||void 0===e?void 0:e._menu}_subscribeToMouseEnter(){const e=()=>this._ngZone.run(()=>{this._closeSiblingTriggers(),this.openMenu()});this._ngZone.runOutsideAngular(()=>{Object(a.a)(this._elementRef.nativeElement,"mouseenter").pipe(Object(d.a)(()=>{var e;return!(null===(e=this._getMenuStack())||void 0===e?void 0:e.isEmpty())&&!this.isMenuOpen()}),Object(b.a)(this._destroyed)).subscribe(()=>{this._menuAim?this._menuAim.toggle(e):e()})})}_toggleOnKeydown(e){var t,n,i,c,s,r,a,l,u,d,b,h;const m=e.keyCode;switch(m){case o.o:case o.g:e.preventDefault(),this.toggle(),null===(n=null===(t=this.menuPanel)||void 0===t?void 0:t._menu)||void 0===n||n.focusFirstItem("keyboard");break;case o.n:this._parentMenu&&this._isParentVertical()&&(e.preventDefault(),"rtl"===(null===(i=this._directionality)||void 0===i?void 0:i.value)?this._getMenuStack().close(this._parentMenu,2):(this.openMenu(),null===(s=null===(c=this.menuPanel)||void 0===c?void 0:c._menu)||void 0===s||s.focusFirstItem("keyboard")));break;case o.j:this._parentMenu&&this._isParentVertical()&&(e.preventDefault(),"rtl"===(null===(r=this._directionality)||void 0===r?void 0:r.value)?(this.openMenu(),null===(l=null===(a=this.menuPanel)||void 0===a?void 0:a._menu)||void 0===l||l.focusFirstItem("keyboard")):this._getMenuStack().close(this._parentMenu,2));break;case o.e:case o.q:this._isParentVertical()||(e.preventDefault(),this.openMenu(),m===o.e?null===(d=null===(u=this.menuPanel)||void 0===u?void 0:u._menu)||void 0===d||d.focusFirstItem("keyboard"):null===(h=null===(b=this.menuPanel)||void 0===b?void 0:b._menu)||void 0===h||h.focusLastItem("keyboard"))}}_closeSiblingTriggers(){if(this._parentMenu){const e=this._getMenuStack();!e.closeSubMenuOf(this._parentMenu)&&e.peek()!==this._parentMenu&&e.closeAll()}else this._getMenuStack().closeAll()}_getOverlayConfig(){return new c.d({positionStrategy:this._getOverlayPositionStrategy(),scrollStrategy:this._overlay.scrollStrategies.block(),direction:this._directionality})}_getOverlayPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this._elementRef).withPositions(this._getOverlayPositions())}_getOverlayPositions(){return this._parentMenu&&"horizontal"!==this._parentMenu.orientation?[{originX:"end",originY:"top",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom"},{originX:"start",originY:"top",overlayX:"end",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom"}]:[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}]}_getPortal(){var e,t;const n=(null===(e=this.menuPanel)||void 0===e?void 0:e._templateRef)!==(null===(t=this._panelContent)||void 0===t?void 0:t.templateRef);return!this.menuPanel||this._panelContent&&!n||(this._panelContent=new M.i(this.menuPanel._templateRef,this._viewContainerRef)),this._panelContent}_isParentVertical(){var e;return"vertical"===(null===(e=this._parentMenu)||void 0===e?void 0:e.orientation)}_registerCloseHandler(){this._parentMenu||this._menuStack.closed.pipe(Object(b.a)(this._destroyed)).subscribe(e=>{var t;e===(null===(t=this._menuPanel)||void 0===t?void 0:t._menu)&&this.closeMenu()})}_getMenuStack(){var e;return(null===(e=this._parentMenu)||void 0===e?void 0:e._menuStack)||this._menuStack}ngOnDestroy(){this._destroyOverlay(),this._resetPanelMenuStack(),this._destroyed.next(),this._destroyed.complete()}_resetPanelMenuStack(){this._menuPanel&&(this._menuPanel._menuStack=null)}_subscribeToOutsideClicks(){this._overlayRef&&this._overlayRef.outsidePointerEvents().pipe(Object(b.a)(this._stopOutsideClicksListener)).subscribe(e=>{C(e.target)||this._getMenuStack().closeAll()})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}}return e.\u0275fac=function(t){return new(t||e)(i.Yb(i.p),i.Yb(i.ab),i.Yb(c.c),i.Yb(i.I),i.Yb(f,8),i.Yb(P,8),i.Yb(j.c,8))},e.\u0275dir=i.Tb({type:e,selectors:[["","cdkMenuTriggerFor",""]],hostAttrs:["aria-haspopup","menu",1,"cdk-menu-trigger"],hostVars:1,hostBindings:function(e,t){1&e&&i.lc("keydown",function(e){return t._toggleOnKeydown(e)})("click",function(){return t.toggle()}),2&e&&i.Nb("aria-expanded",t.isMenuOpen())},inputs:{menuPanel:["cdkMenuTriggerFor","menuPanel"]},outputs:{opened:"cdkMenuOpened",closed:"cdkMenuClosed"},exportAs:["cdkMenuTriggerFor"]}),e})(),w=(()=>{class e{constructor(e,t,n,c,s,o){this._elementRef=e,this._ngZone=t,this._parentMenu=n,this._menuAim=c,this._dir=s,this._menuTrigger=o,this._disabled=!1,this.triggered=new i.s,this._tabindex=-1,this._destroyed=new r.a,this._setupMouseEnter(),this._isStandaloneItem()&&(this._tabindex=0)}get disabled(){return this._disabled}set disabled(e){this._disabled=Object(k.c)(e)}focus(){this._elementRef.nativeElement.focus()}_resetTabIndex(){this._isStandaloneItem()||(this._tabindex=-1)}_setTabIndex(e){var t;this.disabled||e&&(null===(t=this._getMenuStack())||void 0===t?void 0:t.isEmpty())||(this._tabindex=0)}_isStandaloneItem(){return!this._parentMenu}trigger(){var e;this.disabled||this.hasMenu()||(this.triggered.next(),null===(e=this._getMenuStack())||void 0===e||e.closeAll())}hasMenu(){var e;return!!(null===(e=this._menuTrigger)||void 0===e?void 0:e.hasMenu())}isMenuOpen(){var e;return!!(null===(e=this._menuTrigger)||void 0===e?void 0:e.isMenuOpen())}getMenu(){var e;return null===(e=this._menuTrigger)||void 0===e?void 0:e.getMenu()}getMenuTrigger(){return this._menuTrigger}getLabel(){var e;const t=this._elementRef.nativeElement.cloneNode(!0);return function(e){var t;for(const n of Array.from(e.querySelectorAll("mat-icon, .material-icons")))null===(t=n.parentNode)||void 0===t||t.removeChild(n)}(t),(null===(e=t.textContent)||void 0===e?void 0:e.trim())||""}_onKeydown(e){var t,n,i,c,s,r;switch(e.keyCode){case o.o:case o.g:e.preventDefault(),this.trigger();break;case o.n:this._parentMenu&&this._isParentVertical()&&!this.hasMenu()&&(e.preventDefault(),"rtl"===(null===(t=this._dir)||void 0===t?void 0:t.value)?null===(n=this._getMenuStack())||void 0===n||n.close(this._parentMenu,1):null===(i=this._getMenuStack())||void 0===i||i.closeAll(0));break;case o.j:this._parentMenu&&this._isParentVertical()&&!this.hasMenu()&&(e.preventDefault(),"rtl"===(null===(c=this._dir)||void 0===c?void 0:c.value)?null===(s=this._getMenuStack())||void 0===s||s.closeAll(0):null===(r=this._getMenuStack())||void 0===r||r.close(this._parentMenu,1))}}_setupMouseEnter(){if(!this._isStandaloneItem()){const e=()=>this._ngZone.run(()=>{var e;return null===(e=this._getMenuStack())||void 0===e?void 0:e.closeSubMenuOf(this._parentMenu)});this._ngZone.runOutsideAngular(()=>Object(a.a)(this._elementRef.nativeElement,"mouseenter").pipe(Object(d.a)(()=>{var e;return!(null===(e=this._getMenuStack())||void 0===e?void 0:e.isEmpty())&&!this.hasMenu()}),Object(b.a)(this._destroyed)).subscribe(()=>{this._menuAim?this._menuAim.toggle(e):e()}))}}_isParentVertical(){var e;return"vertical"===(null===(e=this._parentMenu)||void 0===e?void 0:e.orientation)}_getMenuStack(){var e;return null===(e=this._parentMenu)||void 0===e?void 0:e._menuStack}ngOnDestroy(){this._destroyed.next()}}return e.\u0275fac=function(t){return new(t||e)(i.Yb(i.p),i.Yb(i.I),i.Yb(f,8),i.Yb(P,8),i.Yb(j.c,8),i.Yb(S,10))},e.\u0275dir=i.Tb({type:e,selectors:[["","cdkMenuItem",""]],hostAttrs:["type","button","role","menuitem",1,"cdk-menu-item"],hostVars:2,hostBindings:function(e,t){1&e&&i.lc("blur",function(){return t._resetTabIndex()})("mouseout",function(){return t._resetTabIndex()})("focus",function(){return t._setTabIndex()})("mouseenter",function(e){return t._setTabIndex(e)})("click",function(){return t.trigger()})("keydown",function(e){return t._onKeydown(e)}),2&e&&(i.hc("tabindex",t._tabindex),i.Nb("aria-disabled",t.disabled||null))},inputs:{disabled:"disabled"},outputs:{triggered:"cdkMenuItemTriggered"},exportAs:["cdkMenuItem"]}),e})(),I=0,T=(()=>{class e extends w{constructor(){super(...arguments),this.toggled=new i.s,this._checked=!1,this.name="cdk-selectable-item-"+I++,this.id="cdk-selectable-item-"+I++}get checked(){return this._checked}set checked(e){this._checked=Object(k.c)(e)}trigger(){this.disabled||this.toggled.next(this)}}return e.\u0275fac=function(t){return A(t||e)},e.\u0275dir=i.Tb({type:e,inputs:{name:"name",id:"id",checked:"checked"},outputs:{toggled:"cdkMenuItemToggled"},features:[i.Jb]}),e})();const A=i.gc(T);let R=(()=>{class e{constructor(){this.change=new i.s,this._selectableChanges=new i.s}ngAfterContentInit(){this._registerMenuSelectionListeners()}_registerMenuSelectionListeners(){this._selectableItems.forEach(e=>this._registerClickListener(e)),this._selectableItems.changes.subscribe(e=>{this._selectableChanges.next(),e.forEach(e=>this._registerClickListener(e))})}_registerClickListener(e){e.toggled.pipe(Object(b.a)(this._selectableChanges)).subscribe(()=>this.change.next(e))}ngOnDestroy(){this._selectableChanges.next(),this._selectableChanges.complete()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Tb({type:e,selectors:[["","cdkMenuGroup",""]],contentQueries:function(e,t,n){if(1&e&&i.Rb(n,T,!0),2&e){let e;i.Bc(e=i.mc())&&(t._selectableItems=e)}},hostAttrs:["role","group",1,"cdk-menu-group"],outputs:{change:"change"},exportAs:["cdkMenuGroup"],features:[i.Lb([{provide:v.d,useClass:v.d}])]}),e})(),E=(()=>{class e{constructor(e){this._templateRef=e}_registerMenu(e){var t;this._menu=e,this._menu._menuStack=this._menuStack,null===(t=this._menuStack)||void 0===t||t.push(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Yb(i.V))},e.\u0275dir=i.Tb({type:e,selectors:[["ng-template","cdkMenuPanel",""]],exportAs:["cdkMenuPanel"]}),e})();class Y{constructor(e){this._items=e,this.entered=this._getItemPointerEntries(),this.exited=this._getItemPointerExits(),this._destroyed=new r.a,this.entered.subscribe(e=>this.activeElement=e),this.exited.subscribe(()=>{this.previousElement=this.activeElement,this.activeElement=void 0})}_getItemPointerEntries(){return Object(u.a)(()=>this._items.changes.pipe(Object(h.a)(this._items),Object(m.a)(e=>e.map(e=>Object(a.a)(e._elementRef.nativeElement,"mouseenter").pipe(Object(g.a)(e),Object(b.a)(this._items.changes)))),Object(p.a)()))}_getItemPointerExits(){return Object(u.a)(()=>this._items.changes.pipe(Object(h.a)(this._items),Object(m.a)(e=>e.map(e=>Object(a.a)(e._elementRef.nativeElement,"mouseout").pipe(Object(g.a)(e),Object(b.a)(this._items.changes)))),Object(p.a)()))}destroy(){this._destroyed.next(),this._destroyed.complete()}}let F=(()=>{class e extends R{constructor(e,t,n,c,s){super(),this._ngZone=e,this._elementRef=t,this._menuAim=n,this._dir=c,this._menuPanel=s,this.orientation="vertical",this.closed=new i.s,this._menuStack=new y}ngOnInit(){this._registerWithParentPanel()}ngAfterContentInit(){var e;super.ngAfterContentInit(),this._completeChangeEmitter(),this._setKeyManager(),this._subscribeToMenuOpen(),this._subscribeToMenuStack(),this._subscribeToMouseManager(),null===(e=this._menuAim)||void 0===e||e.initialize(this,this._pointerTracker)}focusFirstItem(e="program"){this._keyManager.setFocusOrigin(e),this._keyManager.setFirstItemActive()}focusLastItem(e="program"){this._keyManager.setFocusOrigin(e),this._keyManager.setLastItemActive()}_handleKeyEvent(e){const t=this._keyManager;switch(e.keyCode){case o.j:case o.n:this._isHorizontal()&&(e.preventDefault(),t.setFocusOrigin("keyboard"),t.onKeydown(e));break;case o.q:case o.e:this._isHorizontal()||(e.preventDefault(),t.setFocusOrigin("keyboard"),t.onKeydown(e));break;case o.h:Object(o.t)(e)||(e.preventDefault(),this._menuStack.close(this,2));break;case o.p:this._menuStack.closeAll();break;default:t.onKeydown(e)}}_registerWithParentPanel(){var e;null===(e=this._getMenuPanel())||void 0===e||e._registerMenu(this)}_getMenuPanel(){return this._menuPanel||this._explicitPanel}_completeChangeEmitter(){this._hasNestedGroups()?this.change.complete():this._nestedGroups.changes.pipe(Object(_.a)(1)).subscribe(()=>this.change.complete())}_hasNestedGroups(){return this._nestedGroups.length>0&&!(this._nestedGroups.first instanceof e)}_setKeyManager(){var e;this._keyManager=new s.g(this._allItems).withWrap().withTypeAhead().withHomeAndEnd(),this._isHorizontal()?this._keyManager.withHorizontalOrientation((null===(e=this._dir)||void 0===e?void 0:e.value)||"ltr"):this._keyManager.withVerticalOrientation()}_subscribeToMouseManager(){this._ngZone.runOutsideAngular(()=>{this._pointerTracker=new Y(this._allItems),this._pointerTracker.entered.pipe(Object(b.a)(this.closed)).subscribe(e=>this._keyManager.setActiveItem(e))})}_subscribeToMenuStack(){this._menuStack.closed.pipe(Object(b.a)(this.closed)).subscribe(e=>this._closeOpenMenu(e)),this._menuStack.emptied.pipe(Object(b.a)(this.closed)).subscribe(e=>this._toggleMenuFocus(e))}_closeOpenMenu(e){var t,n,i;const c=this._keyManager,s=this._openItem;e===(null===(t=null==s?void 0:s.getMenuTrigger())||void 0===t?void 0:t.getMenu())&&(null===(n=s.getMenuTrigger())||void 0===n||n.closeMenu(),c.setActiveItem((null===(i=this._pointerTracker)||void 0===i?void 0:i.activeElement)||s))}_toggleMenuFocus(e){const t=this._keyManager;switch(e){case 0:t.setFocusOrigin("keyboard"),t.setNextItemActive();break;case 1:t.setFocusOrigin("keyboard"),t.setPreviousItemActive();break;case 2:t.activeItem&&(t.setFocusOrigin("keyboard"),t.setActiveItem(t.activeItem))}}_subscribeToMenuOpen(){const e=Object(l.a)(this._allItems.changes,this.closed);this._allItems.changes.pipe(Object(h.a)(this._allItems),Object(m.a)(t=>t.filter(e=>e.hasMenu()).map(t=>t.getMenuTrigger().opened.pipe(Object(g.a)(t),Object(b.a)(e)))),Object(p.a)(),Object(O.a)(e=>(this._openItem=e,e.getMenuTrigger().closed)),Object(b.a)(this.closed)).subscribe(()=>this._openItem=void 0)}_isHorizontal(){return"horizontal"===this.orientation}_isInline(){return this._menuStack instanceof y}ngOnDestroy(){var e;this._emitClosedEvent(),null===(e=this._pointerTracker)||void 0===e||e.destroy()}_emitClosedEvent(){this.closed.next(),this.closed.complete()}}return e.\u0275fac=function(t){return new(t||e)(i.Yb(i.I),i.Yb(i.p),i.Yb(P,10),i.Yb(j.c,8),i.Yb(E,8))},e.\u0275dir=i.Tb({type:e,selectors:[["","cdkMenu",""]],contentQueries:function(e,t,n){if(1&e&&(i.Rb(n,R,!0),i.Rb(n,w,!0)),2&e){let e;i.Bc(e=i.mc())&&(t._nestedGroups=e),i.Bc(e=i.mc())&&(t._allItems=e)}},hostAttrs:["role","menu",1,"cdk-menu"],hostVars:4,hostBindings:function(e,t){1&e&&i.lc("focus",function(){return t.focusFirstItem()})("keydown",function(e){return t._handleKeyEvent(e)}),2&e&&(i.hc("tabindex",t._isInline()?0:null),i.Nb("aria-orientation",t.orientation),i.Qb("cdk-menu-inline",t._isInline()))},inputs:{orientation:["cdkMenuOrientation","orientation"],_explicitPanel:["cdkMenuPanel","_explicitPanel"]},outputs:{closed:"closed"},exportAs:["cdkMenu"],features:[i.Lb([{provide:R,useExisting:e},{provide:f,useExisting:e}]),i.Jb]}),e})(),D=(()=>{class e extends R{constructor(e,t,n,i,c){super(),this._menuStack=e,this._ngZone=t,this._elementRef=n,this._menuAim=i,this._dir=c,this.orientation="horizontal",this._destroyed=new r.a}ngAfterContentInit(){var e;super.ngAfterContentInit(),this._setKeyManager(),this._subscribeToMenuOpen(),this._subscribeToMenuStack(),this._subscribeToMouseManager(),null===(e=this._menuAim)||void 0===e||e.initialize(this,this._pointerTracker)}focusFirstItem(e="program"){this._keyManager.setFocusOrigin(e),this._keyManager.setFirstItemActive()}focusLastItem(e="program"){this._keyManager.setFocusOrigin(e),this._keyManager.setLastItemActive()}_handleKeyEvent(e){var t,n,i,c,s,r,a,l,u;const d=this._keyManager;switch(e.keyCode){case o.q:case o.e:case o.j:case o.n:const b=e.keyCode===o.j||e.keyCode===o.n;if(this._isHorizontal()&&b||!this._isHorizontal()&&!b){e.preventDefault();const o=null===(t=d.activeItem)||void 0===t?void 0:t.isMenuOpen();null===(i=null===(n=d.activeItem)||void 0===n?void 0:n.getMenuTrigger())||void 0===i||i.closeMenu(),d.setFocusOrigin("keyboard"),d.onKeydown(e),o&&(null===(s=null===(c=d.activeItem)||void 0===c?void 0:c.getMenuTrigger())||void 0===s||s.openMenu())}break;case o.h:e.preventDefault(),null===(a=null===(r=d.activeItem)||void 0===r?void 0:r.getMenuTrigger())||void 0===a||a.closeMenu();break;case o.p:null===(u=null===(l=d.activeItem)||void 0===l?void 0:l.getMenuTrigger())||void 0===u||u.closeMenu();break;default:d.onKeydown(e)}}_setKeyManager(){var e;this._keyManager=new s.g(this._allItems).withWrap().withTypeAhead().withHomeAndEnd(),this._isHorizontal()?this._keyManager.withHorizontalOrientation((null===(e=this._dir)||void 0===e?void 0:e.value)||"ltr"):this._keyManager.withVerticalOrientation()}_subscribeToMouseManager(){this._ngZone.runOutsideAngular(()=>{this._pointerTracker=new Y(this._allItems),this._pointerTracker.entered.pipe(Object(b.a)(this._destroyed)).subscribe(e=>{this._hasOpenSubmenu()&&this._keyManager.setActiveItem(e)})})}_subscribeToMenuStack(){this._menuStack.closed.pipe(Object(b.a)(this._destroyed)).subscribe(e=>this._closeOpenMenu(e)),this._menuStack.emptied.pipe(Object(b.a)(this._destroyed)).subscribe(e=>this._toggleOpenMenu(e))}_closeOpenMenu(e){var t,n,i;const c=this._openItem,s=this._keyManager;e===(null===(t=null==c?void 0:c.getMenuTrigger())||void 0===t?void 0:t.getMenu())&&(null===(n=c.getMenuTrigger())||void 0===n||n.closeMenu(),s.setActiveItem((null===(i=this._pointerTracker)||void 0===i?void 0:i.activeElement)||c))}_toggleOpenMenu(e){var t,n,i,c;const s=this._keyManager;switch(e){case 0:s.setFocusOrigin("keyboard"),s.setNextItemActive(),null===(n=null===(t=s.activeItem)||void 0===t?void 0:t.getMenuTrigger())||void 0===n||n.openMenu();break;case 1:s.setFocusOrigin("keyboard"),s.setPreviousItemActive(),null===(c=null===(i=s.activeItem)||void 0===i?void 0:i.getMenuTrigger())||void 0===c||c.openMenu();break;case 2:s.activeItem&&(s.setFocusOrigin("keyboard"),s.setActiveItem(s.activeItem))}}_isHorizontal(){return"horizontal"===this.orientation}_subscribeToMenuOpen(){const e=Object(l.a)(this._allItems.changes,this._destroyed);this._allItems.changes.pipe(Object(h.a)(this._allItems),Object(m.a)(t=>t.filter(e=>e.hasMenu()).map(t=>t.getMenuTrigger().opened.pipe(Object(g.a)(t),Object(b.a)(e)))),Object(p.a)(),Object(O.a)(e=>(this._openItem=e,e.getMenuTrigger().closed)),Object(b.a)(this._destroyed)).subscribe(()=>this._openItem=void 0)}_hasOpenSubmenu(){return!!this._openItem}ngOnDestroy(){var e;super.ngOnDestroy(),this._destroyed.next(),this._destroyed.complete(),null===(e=this._pointerTracker)||void 0===e||e.destroy()}}return e.\u0275fac=function(t){return new(t||e)(i.Yb(x),i.Yb(i.I),i.Yb(i.p),i.Yb(P,10),i.Yb(j.c,8))},e.\u0275dir=i.Tb({type:e,selectors:[["","cdkMenuBar",""]],contentQueries:function(e,t,n){if(1&e&&i.Rb(n,w,!0),2&e){let e;i.Bc(e=i.mc())&&(t._allItems=e)}},hostAttrs:["role","menubar","tabindex","0",1,"cdk-menu-bar"],hostVars:1,hostBindings:function(e,t){1&e&&i.lc("focus",function(){return t.focusFirstItem()})("keydown",function(e){return t._handleKeyEvent(e)}),2&e&&i.Nb("aria-orientation",t.orientation)},inputs:{orientation:["cdkMenuBarOrientation","orientation"]},exportAs:["cdkMenuBar"],features:[i.Lb([{provide:R,useExisting:e},{provide:f,useExisting:e},{provide:x,useClass:x}]),i.Jb]}),e})(),L=(()=>{class e extends T{constructor(e,t,n,i,c,s,o){super(t,n,i,c,s,o),this._selectionDispatcher=e,this._registerDispatcherListener()}_registerDispatcherListener(){this._removeDispatcherListener=this._selectionDispatcher.listen((e,t)=>this.checked=this.id===e&&this.name===t)}trigger(){super.trigger(),this.disabled||this._selectionDispatcher.notify(this.id,this.name)}ngOnDestroy(){super.ngOnDestroy(),this._removeDispatcherListener()}}return e.\u0275fac=function(t){return new(t||e)(i.Yb(v.d),i.Yb(i.p),i.Yb(i.I),i.Yb(f,8),i.Yb(P,8),i.Yb(j.c,8),i.Yb(S,10))},e.\u0275dir=i.Tb({type:e,selectors:[["","cdkMenuItemRadio",""]],hostAttrs:["type","button","role","menuitemradio"],hostVars:3,hostBindings:function(e,t){2&e&&(i.hc("tabindex",t._tabindex),i.Nb("aria-checked",t.checked||null)("aria-disabled",t.disabled||null))},exportAs:["cdkMenuItemRadio"],features:[i.Lb([{provide:T,useExisting:e},{provide:w,useExisting:T}]),i.Jb]}),e})(),X=(()=>{class e extends T{trigger(){super.trigger(),this.disabled||(this.checked=!this.checked)}}return e.\u0275fac=function(t){return z(t||e)},e.\u0275dir=i.Tb({type:e,selectors:[["","cdkMenuItemCheckbox",""]],hostAttrs:["type","button","role","menuitemcheckbox"],hostVars:3,hostBindings:function(e,t){2&e&&(i.hc("tabindex",t._tabindex),i.Nb("aria-checked",t.checked||null)("aria-disabled",t.disabled||null))},exportAs:["cdkMenuItemCheckbox"],features:[i.Lb([{provide:T,useExisting:e},{provide:w,useExisting:T}]),i.Jb]}),e})();const z=i.gc(X);let V=(()=>{class e{update(t){var n;e._openContextMenuTrigger!==t&&(null===(n=e._openContextMenuTrigger)||void 0===n||n.close(),e._openContextMenuTrigger=t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Ub)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const H=new i.x("cdk-context-menu-default-options"),N={offsetX:2,offsetY:2};let Z=(()=>{class e{constructor(e,t,n,c,s){this._viewContainerRef=e,this._overlay=t,this._contextMenuTracker=n,this._options=c,this._directionality=s,this.opened=new i.s,this.closed=new i.s,this._disabled=!1,this._overlayRef=null,this._destroyed=new r.a,this._menuStack=new x,this._stopOutsideClicksListener=Object(l.a)(this.closed,this._destroyed),this._setMenuStackListener()}get menuPanel(){return this._menuPanel}set menuPanel(e){this._menuPanel=e,this._menuPanel&&(this._menuPanel._menuStack=this._menuStack)}get disabled(){return this._disabled}set disabled(e){this._disabled=Object(k.c)(e)}open(e){this.disabled||(this.isOpen()?(this._menuStack.closeSubMenuOf(this._menuPanel._menu),this._overlayRef.getConfig().positionStrategy.setOrigin(e),this._overlayRef.updatePosition()):(this.opened.next(),this._overlayRef?(this._overlayRef.getConfig().positionStrategy.setOrigin(e),this._overlayRef.updatePosition()):this._overlayRef=this._overlay.create(this._getOverlayConfig(e)),this._overlayRef.attach(this._getMenuContent()),this._subscribeToOutsideClicks()))}close(){this._menuStack.closeAll()}_openOnContextMenu(e){var t,n,i;this.disabled||(e.preventDefault(),e.stopPropagation(),this._contextMenuTracker.update(this),this.open({x:e.clientX,y:e.clientY}),2===e.button?null===(t=this._menuPanel._menu)||void 0===t||t.focusFirstItem("mouse"):0===e.button?null===(n=this._menuPanel._menu)||void 0===n||n.focusFirstItem("keyboard"):null===(i=this._menuPanel._menu)||void 0===i||i.focusFirstItem("program"))}isOpen(){var e;return!!(null===(e=this._overlayRef)||void 0===e?void 0:e.hasAttached())}_getOverlayConfig(e){return new c.d({positionStrategy:this._getOverlayPositionStrategy(e),scrollStrategy:this._overlay.scrollStrategies.block(),direction:this._directionality})}_getOverlayPositionStrategy(e){return this._overlay.position().flexibleConnectedTo(e).withDefaultOffsetX(this._options.offsetX).withDefaultOffsetY(this._options.offsetY).withPositions(this._getOverlayPositions())}_getOverlayPositions(){return[{originX:"end",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"end",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom"},{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom"}]}_getMenuContent(){var e;const t=this.menuPanel._templateRef!==(null===(e=this._panelContent)||void 0===e?void 0:e.templateRef);return!this.menuPanel||this._panelContent&&!t||(this._panelContent=new M.i(this.menuPanel._templateRef,this._viewContainerRef)),this._panelContent}_setMenuStackListener(){this._menuStack.closed.pipe(Object(b.a)(this._destroyed)).subscribe(e=>{e===this._menuPanel._menu&&this.isOpen()&&(this.closed.next(),this._overlayRef.detach())})}_subscribeToOutsideClicks(){this._overlayRef&&this._overlayRef.outsidePointerEvents().pipe(Object(b.a)(this._stopOutsideClicksListener)).subscribe(e=>{C(e.target)||this._menuStack.closeAll()})}ngOnDestroy(){this._destroyOverlay(),this._resetPanelMenuStack(),this._destroyed.next(),this._destroyed.complete()}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}_resetPanelMenuStack(){this._menuPanel&&(this._menuPanel._menuStack=null)}}return e.\u0275fac=function(t){return new(t||e)(i.Yb(i.ab),i.Yb(c.c),i.Yb(V),i.Yb(H),i.Yb(j.c,8))},e.\u0275dir=i.Tb({type:e,selectors:[["","cdkContextMenuTriggerFor",""]],hostBindings:function(e,t){1&e&&i.lc("contextmenu",function(e){return t._openOnContextMenu(e)})},inputs:{menuPanel:["cdkContextMenuTriggerFor","menuPanel"],disabled:["cdkContextMenuDisabled","disabled"]},outputs:{opened:"cdkContextMenuOpened",closed:"cdkContextMenuClosed"},exportAs:["cdkContextMenuTriggerFor"],features:[i.Lb([{provide:H,useValue:N}])]}),e})(),B=(()=>{class e{}return e.\u0275mod=i.Wb({type:e}),e.\u0275inj=i.Vb({factory:function(t){return new(t||e)},imports:[[c.f]]}),e})();function K(e,t){if(1&e&&(Object(i.ec)(0,"div",3),Object(i.ec)(1,"button",4),Object(i.Sc)(2,"Refresh"),Object(i.dc)(),Object(i.ec)(3,"button",4),Object(i.Sc)(4,"Settings"),Object(i.dc)(),Object(i.ec)(5,"button",4),Object(i.Sc)(6,"Help"),Object(i.dc)(),Object(i.ec)(7,"button",4),Object(i.Sc)(8,"Sign out"),Object(i.dc)(),Object(i.dc)()),2&e){Object(i.pc)();const e=Object(i.Cc)(3);Object(i.vc)("cdkMenuPanel",e)}}let G=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(i.Sb)({type:e,selectors:[["cdk-menu-standalone-menu-example"]],decls:4,vars:1,consts:[["cdkMenuItem","",1,"example-standalone-item",3,"cdkMenuTriggerFor"],["cdkMenuPanel",""],["menu","cdkMenuPanel"],["cdkMenu","",1,"example-menu",3,"cdkMenuPanel"],["cdkMenuItem","",1,"example-menu-item"]],template:function(e,t){if(1&e&&(Object(i.ec)(0,"button",0),Object(i.Sc)(1,"Click me!"),Object(i.dc)(),Object(i.Qc)(2,K,9,1,"ng-template",1,2,i.Rc)),2&e){const e=Object(i.Cc)(3);Object(i.vc)("cdkMenuTriggerFor",e)}},directives:[w,S,E,F],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-item[_ngcontent-%COMP%] {\n background-color: transparent;\n cursor: pointer;\n outline: none;\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}"]}),e})();function Q(e,t){if(1&e){const e=Object(i.fc)();Object(i.ec)(0,"div",3),Object(i.ec)(1,"button",4),Object(i.lc)("cdkMenuItemToggled",function(){Object(i.Gc)(e);const t=Object(i.pc)();return t.bold=!t.bold}),Object(i.Sc)(2," Bold "),Object(i.dc)(),Object(i.ec)(3,"button",4),Object(i.lc)("cdkMenuItemToggled",function(){Object(i.Gc)(e);const t=Object(i.pc)();return t.italic=!t.italic}),Object(i.Sc)(4," Italic "),Object(i.dc)(),Object(i.Zb)(5,"hr"),Object(i.ec)(6,"div",5),Object(i.lc)("change",function(t){return Object(i.Gc)(e),Object(i.pc)().onSizeChange(t)}),Object(i.ec)(7,"button",6),Object(i.Sc)(8,"Small"),Object(i.dc)(),Object(i.ec)(9,"button",6),Object(i.Sc)(10," Normal "),Object(i.dc)(),Object(i.ec)(11,"button",6),Object(i.Sc)(12,"Large"),Object(i.dc)(),Object(i.dc)(),Object(i.dc)()}if(2&e){const e=Object(i.pc)(),t=Object(i.Cc)(3);Object(i.vc)("cdkMenuPanel",t),Object(i.Mb)(1),Object(i.vc)("checked",e.bold),Object(i.Mb)(2),Object(i.vc)("checked",e.italic),Object(i.Mb)(4),Object(i.vc)("checked","Small"===e.size),Object(i.Mb)(2),Object(i.vc)("checked","Normal"===e.size),Object(i.Mb)(2),Object(i.vc)("checked","Large"===e.size)}}let J=(()=>{class e{constructor(){this.bold=!0,this.italic=!1,this.size="Normal"}onSizeChange(e){var t;this.size=null===(t=e._elementRef.nativeElement.textContent)||void 0===t?void 0:t.trim()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(i.Sb)({type:e,selectors:[["cdk-menu-standalone-stateful-menu-example"]],decls:4,vars:1,consts:[["cdkMenuItem","",1,"example-standalone-item",3,"cdkMenuTriggerFor"],["cdkMenuPanel",""],["menu","cdkMenuPanel"],["cdkMenu","",1,"example-menu",3,"cdkMenuPanel"],["cdkMenuItemCheckbox","",1,"example-menu-item",3,"checked","cdkMenuItemToggled"],["cdkMenuGroup","",3,"change"],["cdkMenuItemRadio","",1,"example-menu-item",3,"checked"]],template:function(e,t){if(1&e&&(Object(i.ec)(0,"button",0),Object(i.Sc)(1,"Click me!"),Object(i.dc)(),Object(i.Qc)(2,Q,13,6,"ng-template",1,2,i.Rc)),2&e){const e=Object(i.Cc)(3);Object(i.vc)("cdkMenuTriggerFor",e)}},directives:[w,S,E,F,X,R,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 outline: none;\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}"]}),e})();function W(e,t){if(1&e&&(Object(i.ec)(0,"div",8),Object(i.ec)(1,"button",9),Object(i.Sc)(2,"Share"),Object(i.dc)(),Object(i.Zb)(3,"hr"),Object(i.ec)(4,"button",10),Object(i.Sc)(5," New "),Object(i.ec)(6,"span"),Object(i.Sc)(7,"\u27a4"),Object(i.dc)(),Object(i.dc)(),Object(i.ec)(8,"button",9),Object(i.Sc)(9,"Open"),Object(i.dc)(),Object(i.ec)(10,"button",9),Object(i.Sc)(11,"Make a Copy"),Object(i.dc)(),Object(i.Zb)(12,"hr"),Object(i.ec)(13,"button",10),Object(i.Sc)(14," Download "),Object(i.ec)(15,"span"),Object(i.Sc)(16,"\u27a4"),Object(i.dc)(),Object(i.dc)(),Object(i.dc)()),2&e){Object(i.pc)();const e=Object(i.Cc)(8),t=Object(i.Cc)(14),n=Object(i.Cc)(16);Object(i.vc)("cdkMenuPanel",e),Object(i.Mb)(4),Object(i.vc)("cdkMenuTriggerFor",t),Object(i.Mb)(9),Object(i.vc)("cdkMenuTriggerFor",n)}}function q(e,t){if(1&e&&(Object(i.ec)(0,"div",8),Object(i.ec)(1,"button",9),Object(i.Sc)(2,"Undo"),Object(i.dc)(),Object(i.ec)(3,"button",9),Object(i.Sc)(4,"Redo"),Object(i.dc)(),Object(i.Zb)(5,"hr"),Object(i.ec)(6,"button",9),Object(i.Sc)(7,"Cut"),Object(i.dc)(),Object(i.ec)(8,"button",9),Object(i.Sc)(9,"Copy"),Object(i.dc)(),Object(i.ec)(10,"button",9),Object(i.Sc)(11,"Paste"),Object(i.dc)(),Object(i.dc)()),2&e){Object(i.pc)();const e=Object(i.Cc)(10);Object(i.vc)("cdkMenuPanel",e)}}function U(e,t){if(1&e&&(Object(i.ec)(0,"div",8),Object(i.ec)(1,"div",11),Object(i.ec)(2,"button",12),Object(i.Sc)(3,"Bold"),Object(i.dc)(),Object(i.ec)(4,"button",13),Object(i.Sc)(5,"Italic"),Object(i.dc)(),Object(i.dc)(),Object(i.Zb)(6,"hr"),Object(i.ec)(7,"div",11),Object(i.ec)(8,"button",14),Object(i.Sc)(9,"Small"),Object(i.dc)(),Object(i.ec)(10,"button",15),Object(i.Sc)(11,"Normal"),Object(i.dc)(),Object(i.ec)(12,"button",16),Object(i.Sc)(13,"Big"),Object(i.dc)(),Object(i.dc)(),Object(i.dc)()),2&e){Object(i.pc)();const e=Object(i.Cc)(12);Object(i.vc)("cdkMenuPanel",e)}}function $(e,t){if(1&e&&(Object(i.ec)(0,"div",8),Object(i.ec)(1,"button",9),Object(i.Sc)(2,"Document"),Object(i.dc)(),Object(i.ec)(3,"button",9),Object(i.Sc)(4,"From template"),Object(i.dc)(),Object(i.Zb)(5,"hr"),Object(i.ec)(6,"button",9),Object(i.Sc)(7,"Spreadsheet"),Object(i.dc)(),Object(i.ec)(8,"button",9),Object(i.Sc)(9,"Presentation"),Object(i.dc)(),Object(i.ec)(10,"button",9),Object(i.Sc)(11,"Form"),Object(i.dc)(),Object(i.dc)()),2&e){Object(i.pc)();const e=Object(i.Cc)(14);Object(i.vc)("cdkMenuPanel",e)}}function ee(e,t){if(1&e&&(Object(i.ec)(0,"div",8),Object(i.ec)(1,"button",9),Object(i.Sc)(2,"Microsoft Word"),Object(i.dc)(),Object(i.ec)(3,"button",9),Object(i.Sc)(4,"PDF"),Object(i.dc)(),Object(i.ec)(5,"button",9),Object(i.Sc)(6,"Plain text"),Object(i.dc)(),Object(i.dc)()),2&e){Object(i.pc)();const e=Object(i.Cc)(16);Object(i.vc)("cdkMenuPanel",e)}}let te=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(i.Sb)({type:e,selectors:[["cdk-menu-menubar-example"]],exportAs:["cdkMenuMenubarExample"],decls:17,vars:3,consts:[["cdkMenuBar",""],["cdkMenuItem","",1,"example-menu-bar-item",3,"cdkMenuTriggerFor"],["cdkMenuPanel",""],["file","cdkMenuPanel"],["edit","cdkMenuPanel"],["format","cdkMenuPanel"],["new","cdkMenuPanel"],["download","cdkMenuPanel"],["cdkMenu","",1,"example-menu",3,"cdkMenuPanel"],["cdkMenuItem","",1,"example-menu-item"],["cdkMenuItem","",1,"example-menu-item",3,"cdkMenuTriggerFor"],["cdkMenuGroup","",1,"example-menu-group"],["checked","","id","bf","cdkMenuItemCheckbox","",1,"example-menu-item"],["id","if","cdkMenuItemCheckbox","",1,"example-menu-item"],["id","small","cdkMenuItemRadio","",1,"example-menu-item"],["checked","","id","normal","cdkMenuItemRadio","",1,"example-menu-item"],["id","large","cdkMenuItemRadio","",1,"example-menu-item"]],template:function(e,t){if(1&e&&(Object(i.ec)(0,"div",0),Object(i.ec)(1,"button",1),Object(i.Sc)(2,"File"),Object(i.dc)(),Object(i.ec)(3,"button",1),Object(i.Sc)(4,"Edit"),Object(i.dc)(),Object(i.ec)(5,"button",1),Object(i.Sc)(6,"Format"),Object(i.dc)(),Object(i.dc)(),Object(i.Qc)(7,W,17,3,"ng-template",2,3,i.Rc),Object(i.Qc)(9,q,12,1,"ng-template",2,4,i.Rc),Object(i.Qc)(11,U,14,1,"ng-template",2,5,i.Rc),Object(i.Qc)(13,$,12,1,"ng-template",2,6,i.Rc),Object(i.Qc)(15,ee,7,1,"ng-template",2,7,i.Rc)),2&e){const e=Object(i.Cc)(8),t=Object(i.Cc)(10),n=Object(i.Cc)(12);Object(i.Mb)(1),Object(i.vc)("cdkMenuTriggerFor",e),Object(i.Mb)(2),Object(i.vc)("cdkMenuTriggerFor",t),Object(i.Mb)(2),Object(i.vc)("cdkMenuTriggerFor",n)}},directives:[D,w,S,E,F,R,X,L],styles:[".example-menu-bar-item[_ngcontent-%COMP%] {\n cursor: pointer;\n outline: none;\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 outline: none;\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}"]}),e})(),ne=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(i.Sb)({type:e,selectors:[["cdk-menu-inline-example"]],exportAs:["cdkMenuInlineExample"],decls:13,vars:0,consts:[["cdkMenu","",1,"example-menu"],["cdkMenuItem","",1,"example-menu-item"]],template:function(e,t){1&e&&(Object(i.ec)(0,"div",0),Object(i.ec)(1,"button",1),Object(i.Sc)(2,"Inbox"),Object(i.dc)(),Object(i.ec)(3,"button",1),Object(i.Sc)(4,"Snoozed"),Object(i.dc)(),Object(i.ec)(5,"button",1),Object(i.Sc)(6,"Important"),Object(i.dc)(),Object(i.ec)(7,"button",1),Object(i.Sc)(8,"Sent"),Object(i.dc)(),Object(i.ec)(9,"button",1),Object(i.Sc)(10,"Drafts"),Object(i.dc)(),Object(i.ec)(11,"button",1),Object(i.Sc)(12,"All Mail"),Object(i.dc)(),Object(i.dc)())},directives:[F,w],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 outline: none;\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}"]}),e})();function ie(e,t){if(1&e&&(Object(i.ec)(0,"div",3),Object(i.ec)(1,"button",4),Object(i.Sc)(2,"Cut"),Object(i.dc)(),Object(i.ec)(3,"button",4),Object(i.Sc)(4,"Copy"),Object(i.dc)(),Object(i.ec)(5,"button",4),Object(i.Sc)(6,"Link"),Object(i.dc)(),Object(i.dc)()),2&e){Object(i.pc)();const e=Object(i.Cc)(3);Object(i.vc)("cdkMenuPanel",e)}}let ce=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(i.Sb)({type:e,selectors:[["cdk-menu-context-example"]],exportAs:["cdkMenuContextExample"],decls:4,vars:1,consts:[[3,"cdkContextMenuTriggerFor"],["cdkMenuPanel",""],["context_menu","cdkMenuPanel"],["cdkMenu","",1,"example-menu",3,"cdkMenuPanel"],["cdkMenuItem","",1,"example-menu-item"]],template:function(e,t){if(1&e&&(Object(i.ec)(0,"div",0),Object(i.Sc)(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"),Object(i.dc)(),Object(i.Qc)(2,ie,7,1,"ng-template",1,2,i.Rc)),2&e){const e=Object(i.Cc)(3);Object(i.vc)("cdkContextMenuTriggerFor",e)}},directives:[Z,E,F,w],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 outline: none;\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}"]}),e})(),se=(()=>{class e{}return e.\u0275mod=Object(i.Wb)({type:e}),e.\u0275inj=Object(i.Vb)({factory:function(t){return new(t||e)},imports:[[B]]}),e})()}}]);