-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcode-code-tabs-module-es2015.2f7351779761d3d179cf.js
2 lines (2 loc) · 34.8 KB
/
code-code-tabs-module-es2015.2f7351779761d3d179cf.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{g5Zp:function(t,e,a){"use strict";a.r(e);var i=a("ofXK"),n=a("6CTB"),s=a("fXoL"),o=a("R1ws"),r=a("FKr1");const c=[1,"mat-card"],l=["*",[["mat-card-footer"]]],d=["*","mat-card-footer"];let b=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(o.a,8))},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-card"]],hostBindings:function(t,e,a){1&t&&(s.Bb(1),s.Ub(c)),2&t&&s.Fb("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:d,decls:2,vars:0,template:function(t,e){1&t&&(s.lc(l),s.kc(0),s.kc(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}@media(-ms-high-contrast: active){.mat-card{outline:solid 1px}}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}/*# sourceMappingURL=card.css.map */\n"],encapsulation:2,changeDetection:0}),t})(),h=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},imports:[[r.b],r.b]}),t})();var m=a("GU7r"),u=a("+rOU"),p=a("u47x"),g=a("XNiG"),_=a("quSY"),f=a("VRyK"),x=a("xgIS"),y=a("LRne"),v=a("PqYM"),C=a("R0Ic"),w=a("JX91"),k=a("/uUt"),P=a("1G5W"),I=a("8LU1"),T=a("nLfN"),L=a("FtGj"),D=a("cH1L"),O=a("vxfF");const S=[1,"mat-ink-bar"];function A(t,e){1&t&&s.kc(0)}const R=["*"],j=[1,"mat-tab-body"];function F(t,e){}const E=function(t){return{animationDuration:t}},M=function(t,e){return{value:t,params:e}},B=["tabBodyWrapper"],H=["tabHeader"],W=[1,"mat-tab-group"];function z(t,e){}function V(t,e){if(1&t&&s.Ec(0,z,0,0,"ng-template",9),2&t){const t=s.hc().$implicit;s.mc("cdkPortalOutlet",t.templateLabel)}}function K(t,e){if(1&t&&s.Gc(0),2&t){const t=s.hc().$implicit;s.Hc(t.textLabel)}}function $(t,e){if(1&t){const t=s.Wb();s.Vb(0,"div",6),s.dc("click",(function(a){s.vc(t);const i=e.$implicit,n=e.index,o=s.hc(),r=s.sc(1);return o._handleClick(i,r,n)})),s.Vb(1,"div",7),s.Ec(2,V,1,1,"ng-template",8),s.Ec(3,K,1,1,"ng-template",8),s.Tb(),s.Tb()}if(2&t){const t=e.$implicit,a=e.index,i=s.hc();s.Fb("mat-tab-label-active",i.selectedIndex==a),s.mc("id",i._getTabLabelId(a))("disabled",t.disabled)("matRippleDisabled",t.disabled||i.disableRipple),s.Cb("tabIndex",i._getTabIndex(t,a))("aria-posinset",a+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(a))("aria-selected",i.selectedIndex==a)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),s.Ab(2),s.mc("ngIf",t.templateLabel),s.Ab(1),s.mc("ngIf",!t.templateLabel)}}function U(t,e){if(1&t){const t=s.Wb();s.Vb(0,"mat-tab-body",10),s.dc("_onCentered",(function(e){return s.vc(t),s.hc()._removeTabBodyWrapperHeight()})),s.dc("_onCentering",(function(e){return s.vc(t),s.hc()._setTabBodyWrapperHeight(e)})),s.Tb()}if(2&t){const t=e.$implicit,a=e.index,i=s.hc();s.Fb("mat-tab-body-active",i.selectedIndex==a),s.mc("id",i._getTabContentId(a))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",i.animationDuration),s.Cb("aria-labelledby",i._getTabLabelId(a))}}const Q=["tabListContainer"],N=["tabList"],G=["nextPaginator"],J=["previousPaginator"],q=[1,"mat-tab-header"],Y=new s.p("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let X=(()=>{class t{constructor(t,e,a,i){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=a,this._animationMode=i}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),a=this._elementRef.nativeElement;a.style.left=e.left,a.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.k),s.Pb(s.y),s.Pb(Y),s.Pb(o.a,8))},t.\u0275dir=s.Kb({type:t,selectors:[["mat-ink-bar"]],hostBindings:function(t,e,a){1&t&&(s.Bb(1),s.Ub(S)),2&t&&s.Fb("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})(),Z=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.L))},t.\u0275dir=s.Kb({type:t,selectors:[["","matTabContent",""]]}),t})(),tt=(()=>{class t extends u.b{}return t.\u0275fac=function(e){return et(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s.xb]}),t})();const et=s.Xb(tt);class at{}const it=Object(r.h)(at);let nt=(()=>{class t extends it{constructor(t){super(),this._viewContainerRef=t,this.textLabel="",this._contentPortal=null,this._stateChanges=new g.a,this.position=null,this.origin=null,this.isActive=!1}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new u.i(this._explicitContent||this._implicitContent,this._viewContainerRef)}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.O))},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,a){var i;1&t&&(s.Hb(a,tt,!0),s.zc(a,Z,!0,s.L)),2&t&&(s.rc(i=s.ec())&&(e.templateLabel=i.first),s.rc(i=s.ec())&&(e._explicitContent=i.first))},viewQuery:function(t,e){var a;1&t&&s.Ac(s.L,!0),2&t&&s.rc(a=s.ec())&&(e._implicitContent=a.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[s.xb,s.yb()],ngContentSelectors:R,decls:1,vars:0,template:function(t,e){1&t&&(s.lc(),s.Ec(0,A,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})();const st={translateTab:Object(C.j)("translateTab",[Object(C.g)("center, void, left-origin-center, right-origin-center",Object(C.h)({transform:"none"})),Object(C.g)("left",Object(C.h)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Object(C.g)("right",Object(C.h)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Object(C.i)("* => left, * => right, left => center, right => center",Object(C.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Object(C.i)("void => left-origin-center",[Object(C.h)({transform:"translate3d(-100%, 0, 0)"}),Object(C.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Object(C.i)("void => right-origin-center",[Object(C.h)({transform:"translate3d(100%, 0, 0)"}),Object(C.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let ot=(()=>{class t extends u.c{constructor(t,e,a){super(t,e),this._host=a,this._centeringSub=_.a.EMPTY,this._leavingSub=_.a.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Object(w.a)(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.j),s.Pb(s.O),s.Pb(Object(s.T)(()=>ct)))},t.\u0275dir=s.Kb({type:t,selectors:[["","matTabBodyHost",""]],features:[s.xb]}),t})(),rt=(()=>{class t{constructor(t,e,a){this._elementRef=t,this._dir=e,this._dirChangeSubscription=_.a.EMPTY,this._translateTabComplete=new g.a,this._onCentering=new s.m,this._beforeCentering=new s.m,this._afterLeavingCenter=new s.m,this._onCentered=new s.m(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),a.markForCheck()})),this._translateTabComplete.pipe(Object(k.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin())}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(){const t=this._getLayoutDirection();return"ltr"==t&&this.origin<=0||"rtl"==t&&this.origin>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.k),s.Pb(D.b,8),s.Pb(s.h))},t.\u0275dir=s.Kb({type:t,selectors:[["do-not-use-abstract-mat-tab-body-base"]],inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),ct=(()=>{class t extends rt{constructor(t,e,a){super(t,e,a)}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.k),s.Pb(D.b,8),s.Pb(s.h))},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var a;1&t&&s.Lc(u.f,!0),2&t&&s.rc(a=s.ec())&&(e._portalHost=a.first)},hostBindings:function(t,e,a){1&t&&s.Ub(j)},features:[s.xb],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(s.Vb(0,"div",0,1),s.dc("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)})),s.dc("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),s.Ec(2,F,0,0,"ng-template",2),s.Tb()),2&t&&s.mc("@translateTab",s.qc(3,M,e._position,s.pc(1,E,e.animationDuration)))},directives:[ot],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}/*# sourceMappingURL=tab-body.css.map */\n"],encapsulation:2,data:{animation:[st.translateTab]},changeDetection:0}),t})(),lt=0;class dt{}const bt=new s.p("MAT_TABS_CONFIG");class ht{constructor(t){this._elementRef=t}}const mt=Object(r.f)(Object(r.g)(ht),"primary");let ut=(()=>{class t extends mt{constructor(t,e,a,i){super(t),this._changeDetectorRef=e,this._animationMode=i,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=_.a.EMPTY,this._tabLabelSubscription=_.a.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new s.m,this.focusChange=new s.m,this.animationDone=new s.m,this.selectedTabChange=new s.m(!0),this._groupId=lt++,this.animationDuration=a&&a.animationDuration?a.animationDuration:"500ms"}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=Object(I.b)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=Object(I.e)(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;e||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(()=>{this._tabs.forEach((e,a)=>e.isActive=a===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,a)=>{e.position=a-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e<t.length;e++)if(t[e].isActive){this._indexToSelect=this._selectedIndex=e;break}}this._subscribeToTabLabels(),this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new dt;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Object(f.a)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,a){t.disabled||(this.selectedIndex=e.focusIndex=a)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.k),s.Pb(s.h),s.Pb(bt,8),s.Pb(o.a,8))},t.\u0275dir=s.Kb({type:t,selectors:[["do-not-use-abstract-mat-tab-group-base"]],inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[s.xb]}),t})(),pt=(()=>{class t extends ut{constructor(t,e,a,i){super(t,e,a,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.k),s.Pb(s.h),s.Pb(bt,8),s.Pb(o.a,8))},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,a){var i;1&t&&s.Hb(a,nt,!1),2&t&&s.rc(i=s.ec())&&(e._tabs=i)},viewQuery:function(t,e){var a;1&t&&(s.Lc(B,!0),s.Lc(H,!0)),2&t&&(s.rc(a=s.ec())&&(e._tabBodyWrapper=a.first),s.rc(a=s.ec())&&(e._tabHeader=a.first))},hostBindings:function(t,e,a){1&t&&(s.Bb(2),s.Ub(W)),2&t&&(s.Fb("mat-tab-group-dynamic-height",e.dynamicHeight),s.Fb("mat-tab-group-inverted-header","below"===e.headerPosition))},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s.xb],decls:6,vars:5,consts:[[3,"selectedIndex","disableRipple","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(s.Vb(0,"mat-tab-header",0,1),s.dc("indexFocused",(function(t){return e._focusChanged(t)})),s.dc("selectFocusedIndex",(function(t){return e.selectedIndex=t})),s.Ec(2,$,4,13,"div",2),s.Tb(),s.Vb(3,"div",3,4),s.Ec(5,U,1,7,"mat-tab-body",5),s.Tb()),2&t&&(s.mc("selectedIndex",e.selectedIndex)("disableRipple",e.disableRipple),s.Ab(2),s.mc("ngForOf",e._tabs),s.Ab(1),s.Fb("_mat-animation-noopable","NoopAnimations"===e._animationMode),s.Ab(2),s.mc("ngForOf",e._tabs))},directives:function(){return[Pt,i.j,ft,r.c,p.b,i.k,u.c,ct]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}@media(-ms-high-contrast: active){.mat-tab-label:focus{outline:dotted 2px}}.mat-tab-label.mat-tab-disabled{cursor:default}@media(-ms-high-contrast: active){.mat-tab-label.mat-tab-disabled{opacity:.5}}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}@media(-ms-high-contrast: active){.mat-tab-label{opacity:1}}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}/*# sourceMappingURL=tab-group.css.map */\n"],encapsulation:2,changeDetection:0}),t})();class gt{}const _t=Object(r.h)(gt);let ft=(()=>{class t extends _t{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.k))},t.\u0275dir=s.Kb({type:t,selectors:[["","matTabLabelWrapper",""]],hostBindings:function(t,e,a){1&t&&s.Bb(2),2&t&&(s.Cb("aria-disabled",!!e.disabled),s.Fb("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[s.xb]}),t})();const xt=Object(T.e)({passive:!0}),yt=60,vt=650,Ct=100;let wt=(()=>{class t{constructor(t,e,a,i,n,o,r){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=a,this._dir=i,this._ngZone=n,this._platform=o,this._animationMode=r,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new g.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new g.a,this._selectedIndex=0,this.selectFocusedIndex=new s.m,this.indexFocused=new s.m,n.runOutsideAngular(()=>{Object(x.a)(t.nativeElement,"mouseleave").pipe(Object(P.a)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=Object(I.e)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItemIndex(t))}ngAfterViewInit(){Object(x.a)(this._previousPaginator.nativeElement,"touchstart",xt).pipe(Object(P.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Object(x.a)(this._nextPaginator.nativeElement,"touchstart",xt).pipe(Object(P.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Object(y.a)(null),e=this._viewportRuler.change(150),a=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new p.c(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(a):a(),Object(f.a)(t,e,this._items.changes).pipe(Object(P.a)(this._destroyed)).subscribe(()=>{a(),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Object(P.a)(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Object(L.o)(t))switch(t.keyCode){case L.f:this._keyManager.setFirstItemActive(),t.preventDefault();break;case L.c:this._keyManager.setLastItemActive(),t.preventDefault();break;case L.d:case L.j:this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t);break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,a=this._getLayoutDirection();e.scrollLeft="ltr"==a?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){const t=this.scrollDistance,e=this._platform,a="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(a)}px)`,e&&(e.TRIDENT||e.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){const e=this._items?this._items.toArray()[t]:null;if(!e)return;const a=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:n}=e.elementRef.nativeElement;let s,o;"ltr"==this._getLayoutDirection()?o=(s=i)+n:s=(o=this._tabList.nativeElement.offsetWidth-i)-n;const r=this.scrollDistance,c=this.scrollDistance+a;s<r?this.scrollDistance-=r-s+yt:o>c&&(this.scrollDistance+=o-c+yt)}_checkPaginationEnabled(){const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}_checkScrollingControls(){this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck()}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t){this._stopInterval(),Object(v.a)(vt,Ct).pipe(Object(P.a)(Object(f.a)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:a}=this._scrollHeader(t);(0===a||a>=e)&&this._stopInterval()})}_scrollTo(t){const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.k),s.Pb(s.h),s.Pb(O.e),s.Pb(D.b,8),s.Pb(s.y),s.Pb(T.a),s.Pb(o.a,8))},t.\u0275dir=s.Kb({type:t,selectors:[["do-not-use-abstract-mat-paginated-tab-header"]]}),t})(),kt=(()=>{class t extends wt{constructor(t,e,a,i,n,s,o){super(t,e,a,i,n,s,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(I.b)(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.k),s.Pb(s.h),s.Pb(O.e),s.Pb(D.b,8),s.Pb(s.y),s.Pb(T.a),s.Pb(o.a,8))},t.\u0275dir=s.Kb({type:t,selectors:[["do-not-use-abstract-mat-tab-header-base"]],inputs:{disableRipple:"disableRipple"},features:[s.xb]}),t})(),Pt=(()=>{class t extends kt{constructor(t,e,a,i,n,s,o){super(t,e,a,i,n,s,o)}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.k),s.Pb(s.h),s.Pb(O.e),s.Pb(D.b,8),s.Pb(s.y),s.Pb(T.a),s.Pb(o.a,8))},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,a){var i;1&t&&s.Hb(a,ft,!1),2&t&&s.rc(i=s.ec())&&(e._items=i)},viewQuery:function(t,e){var a;1&t&&(s.Ac(X,!0),s.Ac(Q,!0),s.Ac(N,!0),s.Lc(G,!0),s.Lc(J,!0)),2&t&&(s.rc(a=s.ec())&&(e._inkBar=a.first),s.rc(a=s.ec())&&(e._tabListContainer=a.first),s.rc(a=s.ec())&&(e._tabList=a.first),s.rc(a=s.ec())&&(e._nextPaginator=a.first),s.rc(a=s.ec())&&(e._previousPaginator=a.first))},hostBindings:function(t,e,a){1&t&&(s.Bb(2),s.Ub(q)),2&t&&(s.Fb("mat-tab-header-pagination-controls-enabled",e._showPaginationControls),s.Fb("mat-tab-header-rtl","rtl"==e._getLayoutDirection()))},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.xb],ngContentSelectors:R,decls:13,vars:5,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(s.lc(),s.Vb(0,"div",0,1),s.dc("click",(function(t){return e._handlePaginatorClick("before")})),s.dc("mousedown",(function(t){return e._handlePaginatorPress("before")})),s.dc("touchend",(function(t){return e._stopInterval()})),s.Qb(2,"div",2),s.Tb(),s.Vb(3,"div",3,4),s.dc("keydown",(function(t){return e._handleKeydown(t)})),s.Vb(5,"div",5,6),s.dc("cdkObserveContent",(function(t){return e._onContentChanges()})),s.Vb(7,"div",7),s.kc(8),s.Tb(),s.Qb(9,"mat-ink-bar"),s.Tb(),s.Tb(),s.Vb(10,"div",8,9),s.dc("mousedown",(function(t){return e._handlePaginatorPress("after")})),s.dc("click",(function(t){return e._handlePaginatorClick("after")})),s.dc("touchend",(function(t){return e._stopInterval()})),s.Qb(12,"div",2),s.Tb()),2&t&&(s.Fb("mat-tab-header-pagination-disabled",e._disableScrollBefore),s.mc("matRippleDisabled",e._disableScrollBefore||e.disableRipple),s.Ab(5),s.Fb("_mat-animation-noopable","NoopAnimations"===e._animationMode),s.Ab(5),s.Fb("mat-tab-header-pagination-disabled",e._disableScrollAfter),s.mc("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[r.c,m.a,X],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}@media(-ms-high-contrast: active){.mat-ink-bar{outline:solid 2px;height:0}}.mat-tab-labels{display:flex}[mat-align-tabs=center] .mat-tab-labels{justify-content:center}[mat-align-tabs=end] .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}@media(-ms-high-contrast: active){.mat-tab-label:focus{outline:dotted 2px}}.mat-tab-label.mat-tab-disabled{cursor:default}@media(-ms-high-contrast: active){.mat-tab-label.mat-tab-disabled{opacity:.5}}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}@media(-ms-high-contrast: active){.mat-tab-label{opacity:1}}@media(max-width: 599px){.mat-tab-label{min-width:72px}}/*# sourceMappingURL=tab-header.css.map */\n'],encapsulation:2,changeDetection:0}),t})(),It=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},imports:[[i.c,r.b,u.h,r.d,m.c,p.a],r.b]}),t})();const Tt=["content"];function Lt(t,e){if(1&t&&(s.Vb(0,"span"),s.Gc(1),s.Tb()),2&t){const t=s.hc().$implicit;s.Db(t.class),s.Ab(1),s.Hc(t.header)}}function Dt(t,e){if(1&t&&(s.Vb(0,"mat-tab",4),s.Ec(1,Lt,2,4,"ng-template",5),s.Qb(2,"aio-code",6),s.Tb()),2&t){const t=e.$implicit;s.Ab(2),s.Db(t.class),s.mc("language",t.language)("linenums",t.linenums)("path",t.path)("region",t.region)("header",t.header)}}const Ot=["*"];let St=(()=>{class t{ngOnInit(){this.tabs=[];const t=Array.from(this.content.nativeElement.querySelectorAll("code-pane"));for(const e of t)this.tabs.push(this.getTabInfo(e))}ngAfterViewInit(){this.codeComponents.toArray().forEach((t,e)=>{t.code=this.tabs[e].code})}getTabInfo(t){return{class:t.getAttribute("class")||"",code:t.innerHTML,path:t.getAttribute("path")||"",region:t.getAttribute("region")||"",header:t.getAttribute("header")||void 0,language:t.getAttribute("language")||void 0,linenums:t.getAttribute("linenums")||this.linenums}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["code-tabs"]],viewQuery:function(t,e){var a;1&t&&(s.Ac(Tt,!0),s.Lc(n.a,!0)),2&t&&(s.rc(a=s.ec())&&(e.content=a.first),s.rc(a=s.ec())&&(e.codeComponents=a))},inputs:{linenums:"linenums"},ngContentSelectors:Ot,decls:6,vars:2,consts:[[2,"display","none"],["content",""],[1,"code-tab-group",3,"disableRipple"],["style","overflow-y: hidden;",4,"ngFor","ngForOf"],[2,"overflow-y","hidden"],["mat-tab-label",""],[3,"language","linenums","path","region","header"]],template:function(t,e){1&t&&(s.lc(),s.Vb(0,"div",0,1),s.kc(2),s.Tb(),s.Vb(3,"mat-card"),s.Vb(4,"mat-tab-group",2),s.Ec(5,Dt,3,8,"mat-tab",3),s.Tb(),s.Tb()),2&t&&(s.Ab(4),s.mc("disableRipple",!0),s.Ab(1),s.mc("ngForOf",e.tabs))},directives:[b,pt,i.j,nt,tt,n.a],encapsulation:2}),t})();var At=a("V90o");a.d(e,"CodeTabsModule",(function(){return Rt}));let Rt=(()=>{class t{constructor(){this.customElementComponent=St}}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},imports:[[i.c,h,It,At.a]]}),t})()}}]);
//# sourceMappingURL=code-code-tabs-module-es2015.2f7351779761d3d179cf.js.map