-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcode-code-tabs-module-es2015.505e1e0a869946918011.js
2 lines (2 loc) · 35.1 KB
/
code-code-tabs-module-es2015.505e1e0a869946918011.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{g5Zp:function(t,e,i){"use strict";i.r(e);var a=i("ofXK"),n=i("6CTB"),s=i("fXoL"),o=i("R1ws"),r=i("FKr1");const c=["*",[["mat-card-footer"]]],l=["*","mat-card-footer"];let d=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(s.Qb(o.a,8))},t.\u0275cmp=s.Kb({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card"],hostVars:2,hostBindings:function(t,e,i){2&t&&s.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:l,decls:2,vars:0,template:function(t,e){1&t&&(s.lc(c),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}.cdk-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}\n"],encapsulation:2,changeDetection:0}),t})(),b=(()=>{class t{}return t.\u0275mod=s.Ob({type:t}),t.\u0275inj=s.Nb({factory:function(e){return new(e||t)},imports:[[r.b],r.b]}),t})();var h=i("u47x"),m=i("GU7r"),u=i("+rOU"),p=i("XNiG"),g=i("quSY"),_=i("VRyK"),f=i("xgIS"),x=i("LRne"),y=i("PqYM"),v=i("R0Ic"),C=i("JX91"),w=i("/uUt"),k=i("1G5W"),I=i("8LU1"),T=i("nLfN"),L=i("FtGj"),D=i("cH1L"),P=i("vxfF");function O(t,e){1&t&&s.kc(0)}const S=["*"];function A(t,e){}const R=function(t){return{animationDuration:t}},j=function(t,e){return{value:t,params:e}},Q=["tabBodyWrapper"],E=["tabHeader"];function F(t,e){}function M(t,e){if(1&t&&s.Cc(0,F,0,0,"ng-template",9),2&t){const t=s.hc().$implicit;s.mc("cdkPortalOutlet",t.templateLabel)}}function B(t,e){if(1&t&&s.Ec(0),2&t){const t=s.hc().$implicit;s.Fc(t.textLabel)}}function H(t,e){if(1&t){const t=s.Wb();s.Vb(0,"div",6),s.dc("click",(function(i){s.vc(t);const a=e.$implicit,n=e.index,o=s.hc(),r=s.sc(1);return o._handleClick(a,r,n)})),s.Vb(1,"div",7),s.Cc(2,M,1,1,"ng-template",8),s.Cc(3,B,1,1,"ng-template",8),s.Ub(),s.Ub()}if(2&t){const t=e.$implicit,i=e.index,a=s.hc();s.Gb("mat-tab-label-active",a.selectedIndex==i),s.mc("id",a._getTabLabelId(i))("disabled",t.disabled)("matRippleDisabled",t.disabled||a.disableRipple),s.Db("tabIndex",a._getTabIndex(t,i))("aria-posinset",i+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(i))("aria-selected",a.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),s.Cb(2),s.mc("ngIf",t.templateLabel),s.Cb(1),s.mc("ngIf",!t.templateLabel)}}function z(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()}))("_onCentering",(function(e){return s.vc(t),s.hc()._setTabBodyWrapperHeight(e)})),s.Ub()}if(2&t){const t=e.$implicit,i=e.index,a=s.hc();s.Gb("mat-tab-body-active",a.selectedIndex==i),s.mc("id",a._getTabContentId(i))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",a.animationDuration),s.Db("aria-labelledby",a._getTabLabelId(i))}}const W=["tabListContainer"],V=["tabList"],G=["nextPaginator"],U=["previousPaginator"],$=new s.q("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let K=(()=>{class t{constructor(t,e,i,a){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=i,this._animationMode=a}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),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(s.Qb(s.l),s.Qb(s.z),s.Qb($),s.Qb(o.a,8))},t.\u0275dir=s.Lb({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e,i){2&t&&s.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})(),q=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Qb(s.M))},t.\u0275dir=s.Lb({type:t,selectors:[["","matTabContent",""]]}),t})(),N=(()=>{class t extends u.b{}return t.\u0275fac=function(e){return J(e||t)},t.\u0275dir=s.Lb({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s.zb]}),t})();const J=s.Xb(N);class Y{}const X=Object(r.h)(Y),Z=new s.q("MAT_TAB_GROUP");let tt=(()=>{class t extends X{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new p.a,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){t&&(this._templateLabel=t)}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.Qb(s.P),s.Qb(Z,8))},t.\u0275cmp=s.Kb({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){var a;1&t&&(s.Ib(i,N,!0),s.zc(i,q,!0,s.M)),2&t&&(s.rc(a=s.ec())&&(e.templateLabel=a.first),s.rc(a=s.ec())&&(e._explicitContent=a.first))},viewQuery:function(t,e){var i;1&t&&s.Ac(s.M,!0),2&t&&s.rc(i=s.ec())&&(e._implicitContent=i.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[s.zb,s.Ab()],ngContentSelectors:S,decls:1,vars:0,template:function(t,e){1&t&&(s.lc(),s.Cc(0,O,1,0,"ng-template"))},encapsulation:2}),t})();const et={translateTab:Object(v.j)("translateTab",[Object(v.g)("center, void, left-origin-center, right-origin-center",Object(v.h)({transform:"none"})),Object(v.g)("left",Object(v.h)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Object(v.g)("right",Object(v.h)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Object(v.i)("* => left, * => right, left => center, right => center",Object(v.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Object(v.i)("void => left-origin-center",[Object(v.h)({transform:"translate3d(-100%, 0, 0)"}),Object(v.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Object(v.i)("void => right-origin-center",[Object(v.h)({transform:"translate3d(100%, 0, 0)"}),Object(v.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let it=(()=>{class t extends u.c{constructor(t,e,i,a){super(t,e,a),this._host=i,this._centeringSub=g.a.EMPTY,this._leavingSub=g.a.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Object(C.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.Qb(s.j),s.Qb(s.P),s.Qb(Object(s.U)(()=>nt)),s.Qb(a.d))},t.\u0275dir=s.Lb({type:t,selectors:[["","matTabBodyHost",""]],features:[s.zb]}),t})(),at=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dir=e,this._dirChangeSubscription=g.a.EMPTY,this._translateTabComplete=new p.a,this._onCentering=new s.n,this._beforeCentering=new s.n,this._afterLeavingCenter=new s.n,this._onCentered=new s.n(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe(Object(w.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(this.origin))}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(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(s.Qb(s.l),s.Qb(D.b,8),s.Qb(s.h))},t.\u0275dir=s.Lb({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),nt=(()=>{class t extends at{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Qb(s.l),s.Qb(D.b,8),s.Qb(s.h))},t.\u0275cmp=s.Kb({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var i;1&t&&s.Jc(u.f,!0),2&t&&s.rc(i=s.ec())&&(e._portalHost=i.first)},hostAttrs:[1,"mat-tab-body"],features:[s.zb],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)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),s.Cc(2,A,0,0,"ng-template",2),s.Ub()),2&t&&s.mc("@translateTab",s.qc(3,j,e._position,s.pc(1,R,e.animationDuration)))},directives:[it],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[et.translateTab]}}),t})();const st=new s.q("MAT_TABS_CONFIG");let ot=0;class rt{}class ct{constructor(t){this._elementRef=t}}const lt=Object(r.f)(Object(r.g)(ct),"primary");let dt=(()=>{class t extends lt{constructor(t,e,i,a){super(t),this._changeDetectorRef=e,this._animationMode=a,this._tabs=new s.D,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=g.a.EMPTY,this._tabLabelSubscription=g.a.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new s.n,this.focusChange=new s.n,this.animationDone=new s.n,this.selectedTabChange=new s.n(!0),this._groupId=ot++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination}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,i)=>e.isActive=i===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,i)=>{e.position=i-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._subscribeToAllTabChanges(),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._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Object(C.a)(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(t=>!t._closestTabGroup||t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),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 rt;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(_.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,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}}return t.\u0275fac=function(e){return new(e||t)(s.Qb(s.l),s.Qb(s.h),s.Qb(st,8),s.Qb(o.a,8))},t.\u0275dir=s.Lb({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[s.zb]}),t})(),bt=(()=>{class t extends dt{constructor(t,e,i,a){super(t,e,i,a)}}return t.\u0275fac=function(e){return new(e||t)(s.Qb(s.l),s.Qb(s.h),s.Qb(st,8),s.Qb(o.a,8))},t.\u0275cmp=s.Kb({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){var a;1&t&&s.Ib(i,tt,!0),2&t&&s.rc(a=s.ec())&&(e._allTabs=a)},viewQuery:function(t,e){var i;1&t&&(s.Jc(Q,!0),s.Jc(E,!0)),2&t&&(s.rc(i=s.ec())&&(e._tabBodyWrapper=i.first),s.rc(i=s.ec())&&(e._tabHeader=i.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e,i){2&t&&s.Gb("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s.Bb([{provide:Z,useExisting:t}]),s.zb],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","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)}))("selectFocusedIndex",(function(t){return e.selectedIndex=t})),s.Cc(2,H,4,14,"div",2),s.Ub(),s.Vb(3,"div",3,4),s.Cc(5,z,1,8,"mat-tab-body",5),s.Ub()),2&t&&(s.mc("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),s.Cb(2),s.mc("ngForOf",e._tabs),s.Cb(1),s.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode),s.Cb(2),s.mc("ngForOf",e._tabs))},directives:function(){return[ft,a.i,ut,r.c,h.b,a.j,u.c,nt]},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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-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}.cdk-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}\n"],encapsulation:2}),t})();class ht{}const mt=Object(r.h)(ht);let ut=(()=>{class t extends mt{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.Qb(s.l))},t.\u0275dir=s.Lb({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e,i){2&t&&(s.Db("aria-disabled",!!e.disabled),s.Gb("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[s.zb]}),t})();const pt=Object(T.e)({passive:!0});let gt=(()=>{class t{constructor(t,e,i,a,n,o,r){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=i,this._dir=a,this._ngZone=n,this._platform=o,this._animationMode=r,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new p.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new p.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.n,this.indexFocused=new s.n,n.runOutsideAngular(()=>{Object(f.a)(t.nativeElement,"mouseleave").pipe(Object(k.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.updateActiveItem(t))}ngAfterViewInit(){Object(f.a)(this._previousPaginator.nativeElement,"touchstart",pt).pipe(Object(k.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Object(f.a)(this._nextPaginator.nativeElement,"touchstart",pt).pipe(Object(k.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Object(x.a)(null),e=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new h.c(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),Object(_.a)(t,e,this._items.changes).pipe(Object(k.a)(this._destroyed)).subscribe(()=>{i(),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Object(k.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,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e=this._platform,i="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}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){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:a,offsetWidth:n}=e.elementRef.nativeElement;let s,o;"ltr"==this._getLayoutDirection()?(s=a,o=s+n):(o=this._tabList.nativeElement.offsetWidth-a,s=o-n);const r=this.scrollDistance,c=this.scrollDistance+i;s<r?this.scrollDistance-=r-s+60:o>c&&(this.scrollDistance+=o-c+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{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.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(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(y.a)(650,100).pipe(Object(k.a)(Object(_.a)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:i}=this._scrollHeader(t);(0===i||i>=e)&&this._stopInterval()})}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};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.Qb(s.l),s.Qb(s.h),s.Qb(P.d),s.Qb(D.b,8),s.Qb(s.z),s.Qb(T.a),s.Qb(o.a,8))},t.\u0275dir=s.Lb({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),_t=(()=>{class t extends gt{constructor(t,e,i,a,n,s,o){super(t,e,i,a,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.Qb(s.l),s.Qb(s.h),s.Qb(P.d),s.Qb(D.b,8),s.Qb(s.z),s.Qb(T.a),s.Qb(o.a,8))},t.\u0275dir=s.Lb({type:t,inputs:{disableRipple:"disableRipple"},features:[s.zb]}),t})(),ft=(()=>{class t extends _t{constructor(t,e,i,a,n,s,o){super(t,e,i,a,n,s,o)}}return t.\u0275fac=function(e){return new(e||t)(s.Qb(s.l),s.Qb(s.h),s.Qb(P.d),s.Qb(D.b,8),s.Qb(s.z),s.Qb(T.a),s.Qb(o.a,8))},t.\u0275cmp=s.Kb({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){var a;1&t&&s.Ib(i,ut,!1),2&t&&s.rc(a=s.ec())&&(e._items=a)},viewQuery:function(t,e){var i;1&t&&(s.Ac(K,!0),s.Ac(W,!0),s.Ac(V,!0),s.Jc(G,!0),s.Jc(U,!0)),2&t&&(s.rc(i=s.ec())&&(e._inkBar=i.first),s.rc(i=s.ec())&&(e._tabListContainer=i.first),s.rc(i=s.ec())&&(e._tabList=i.first),s.rc(i=s.ec())&&(e._nextPaginator=i.first),s.rc(i=s.ec())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e,i){2&t&&s.Gb("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.zb],ngContentSelectors:S,decls:13,vars:8,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")}))("mousedown",(function(t){return e._handlePaginatorPress("before")}))("touchend",(function(t){return e._stopInterval()})),s.Rb(2,"div",2),s.Ub(),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.Ub(),s.Rb(9,"mat-ink-bar"),s.Ub(),s.Ub(),s.Vb(10,"div",8,9),s.dc("mousedown",(function(t){return e._handlePaginatorPress("after")}))("click",(function(t){return e._handlePaginatorClick("after")}))("touchend",(function(t){return e._stopInterval()})),s.Rb(12,"div",2),s.Ub()),2&t&&(s.Gb("mat-tab-header-pagination-disabled",e._disableScrollBefore),s.mc("matRippleDisabled",e._disableScrollBefore||e.disableRipple),s.Cb(5),s.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode),s.Cb(5),s.Gb("mat-tab-header-pagination-disabled",e._disableScrollAfter),s.mc("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[r.c,m.a,K],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}.cdk-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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-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}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),xt=(()=>{class t{}return t.\u0275mod=s.Ob({type:t}),t.\u0275inj=s.Nb({factory:function(e){return new(e||t)},imports:[[a.c,r.b,u.h,r.d,m.c,h.a],r.b]}),t})();const yt=["content"];function vt(t,e){if(1&t&&(s.Vb(0,"span"),s.Ec(1),s.Ub()),2&t){const t=s.hc().$implicit;s.Eb(t.class),s.Cb(1),s.Fc(t.header)}}function Ct(t,e){if(1&t&&(s.Vb(0,"mat-tab",4),s.Cc(1,vt,2,4,"ng-template",5),s.Rb(2,"aio-code",6),s.Ub()),2&t){const t=e.$implicit;s.Cb(2),s.Eb(t.class),s.mc("language",t.language)("linenums",t.linenums)("path",t.path)("region",t.region)("header",t.header)}}const wt=["*"];let kt=(()=>{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.Kb({type:t,selectors:[["code-tabs"]],viewQuery:function(t,e){var i;1&t&&(s.Ac(yt,!0),s.Jc(n.a,!0)),2&t&&(s.rc(i=s.ec())&&(e.content=i.first),s.rc(i=s.ec())&&(e.codeComponents=i))},inputs:{linenums:"linenums"},ngContentSelectors:wt,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.Ub(),s.Vb(3,"mat-card"),s.Vb(4,"mat-tab-group",2),s.Cc(5,Ct,3,8,"mat-tab",3),s.Ub(),s.Ub()),2&t&&(s.Cb(4),s.mc("disableRipple",!0),s.Cb(1),s.mc("ngForOf",e.tabs))},directives:[d,bt,a.i,tt,N,n.a],encapsulation:2}),t})();var It=i("V90o");i.d(e,"CodeTabsModule",(function(){return Tt}));let Tt=(()=>{class t{constructor(){this.customElementComponent=kt}}return t.\u0275mod=s.Ob({type:t}),t.\u0275inj=s.Nb({factory:function(e){return new(e||t)},imports:[[a.c,b,xt,It.a]]}),t})()}}]);
//# sourceMappingURL=code-code-tabs-module-es2015.505e1e0a869946918011.js.map