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