angular-docs-cn/aio/dist/code-code-tabs-module-es5.1...

2 lines
40 KiB
JavaScript

!function(){function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return e(t,n)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function n(t,e,i){return(n="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t}(t,e);if(i){var a=Object.getOwnPropertyDescriptor(i,e);return a.get?a.get.call(n):a.value}})(t,e,i||t)}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,i=s(t);if(e){var a=s(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return r(this,n)}}function r(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{g5Zp:function(e,a,r){"use strict";r.r(a),r.d(a,"CodeTabsModule",function(){return Ut});var c,d,u=r("ofXK"),h=r("6CTB"),f=r("fXoL"),m=r("R1ws"),p=r("FKr1"),g=["*",[["mat-card-footer"]]],_=["*","mat-card-footer"],v=((d=function t(e){b(this,t),this._animationMode=e}).\u0275fac=function(t){return new(t||d)(f.Ob(m.a,8))},d.\u0275cmp=f.Ib({type:d,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&f.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:_,decls:2,vars:0,template:function(t,e){1&t&&(f.ic(g),f.hc(0),f.hc(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}),d),y=((c=function t(){b(this,t)}).\u0275mod=f.Mb({type:c}),c.\u0275inj=f.Lb({factory:function(t){return new(t||c)},imports:[[p.b],p.b]}),c),x=r("u47x"),k=r("GU7r"),C=r("+rOU"),w=r("XNiG"),O=r("quSY"),T=r("VRyK"),I=r("xgIS"),S=r("LRne"),P=r("PqYM"),L=r("R0Ic"),j=r("JX91"),D=r("/uUt"),A=r("1G5W"),R=r("8LU1"),E=r("nLfN"),F=r("FtGj"),B=r("cH1L"),M=r("vxfF");function H(t,e){1&t&&f.hc(0)}var z=["*"];function W(t,e){}var G=function(t){return{animationDuration:t}},V=function(t,e){return{value:t,params:e}},J=["tabBodyWrapper"],N=["tabHeader"];function $(t,e){}function Q(t,e){if(1&t&&f.zc(0,$,0,0,"ng-template",9),2&t){var n=f.ec().$implicit;f.jc("cdkPortalOutlet",n.templateLabel)}}function U(t,e){if(1&t&&f.Ac(0),2&t){var n=f.ec().$implicit;f.Bc(n.textLabel)}}function q(t,e){if(1&t){var n=f.Ub();f.Tb(0,"div",6),f.ac("click",function(){f.sc(n);var t=e.$implicit,i=e.index,a=f.ec(),o=f.pc(1);return a._handleClick(t,o,i)})("cdkFocusChange",function(t){f.sc(n);var i=e.index;return f.ec()._tabFocusChanged(t,i)}),f.Tb(1,"div",7),f.zc(2,Q,1,1,"ng-template",8),f.zc(3,U,1,1,"ng-template",8),f.Sb(),f.Sb()}if(2&t){var i=e.$implicit,a=e.index,o=f.ec();f.Gb("mat-tab-label-active",o.selectedIndex==a),f.jc("id",o._getTabLabelId(a))("disabled",i.disabled)("matRippleDisabled",i.disabled||o.disableRipple),f.Db("tabIndex",o._getTabIndex(i,a))("aria-posinset",a+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(a))("aria-selected",o.selectedIndex==a)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),f.Cb(2),f.jc("ngIf",i.templateLabel),f.Cb(1),f.jc("ngIf",!i.templateLabel)}}function Y(t,e){if(1&t){var n=f.Ub();f.Tb(0,"mat-tab-body",10),f.ac("_onCentered",function(){return f.sc(n),f.ec()._removeTabBodyWrapperHeight()})("_onCentering",function(t){return f.sc(n),f.ec()._setTabBodyWrapperHeight(t)}),f.Sb()}if(2&t){var i=e.$implicit,a=e.index,o=f.ec();f.Gb("mat-tab-body-active",o.selectedIndex==a),f.jc("id",o._getTabContentId(a))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",o.animationDuration),f.Db("aria-labelledby",o._getTabLabelId(a))}}var K,X,Z,tt,et,nt,it,at,ot,rt,st,ct,lt,bt=["tabListContainer"],dt=["tabList"],ut=["nextPaginator"],ht=["previousPaginator"],ft=new f.r("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),mt=((K=function(){function t(e,n,i,a){b(this,t),this._elementRef=e,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=a}return l(t,[{key:"alignToElement",value:function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e._setStyles(t)})}):this._setStyles(t)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(t){var e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}]),t}()).\u0275fac=function(t){return new(t||K)(f.Ob(f.l),f.Ob(f.A),f.Ob(ft),f.Ob(m.a,8))},K.\u0275dir=f.Jb({type:K,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&f.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),K),pt=new f.r("MatTabContent"),gt=new f.r("MatTabLabel"),_t=((X=function(t){i(n,t);var e=o(n);function n(){return b(this,n),e.apply(this,arguments)}return n}(C.b)).\u0275fac=function(t){return vt(t||X)},X.\u0275dir=f.Jb({type:X,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[f.Bb([{provide:gt,useExisting:X}]),f.zb]}),X),vt=f.Vb(_t),yt=Object(p.h)(function t(){b(this,t)}),xt=new f.r("MAT_TAB_GROUP"),kt=((Z=function(t){i(n,t);var e=o(n);function n(t,i){var a;return b(this,n),(a=e.call(this))._viewContainerRef=t,a._closestTabGroup=i,a.textLabel="",a._contentPortal=null,a._stateChanges=new w.a,a.position=null,a.origin=null,a.isActive=!1,a}return l(n,[{key:"ngOnChanges",value:function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new C.g(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(t){t&&(this._templateLabel=t)}},{key:"templateLabel",get:function(){return this._templateLabel},set:function(t){this._setTemplateLabelInput(t)}},{key:"content",get:function(){return this._contentPortal}}]),n}(yt)).\u0275fac=function(t){return new(t||Z)(f.Ob(f.R),f.Ob(xt))},Z.\u0275cmp=f.Ib({type:Z,selectors:[["mat-tab"]],contentQueries:function(t,e,n){var i;1&t&&(f.Hb(n,gt,1),f.Hb(n,pt,3,f.N)),2&t&&(f.oc(i=f.bc())&&(e.templateLabel=i.first),f.oc(i=f.bc())&&(e._explicitContent=i.first))},viewQuery:function(t,e){var n;1&t&&f.Ec(f.N,3),2&t&&f.oc(n=f.bc())&&(e._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[f.zb,f.Ab],ngContentSelectors:z,decls:1,vars:0,template:function(t,e){1&t&&(f.ic(),f.zc(0,H,1,0,"ng-template"))},encapsulation:2}),Z),Ct={translateTab:Object(L.j)("translateTab",[Object(L.g)("center, void, left-origin-center, right-origin-center",Object(L.h)({transform:"none"})),Object(L.g)("left",Object(L.h)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Object(L.g)("right",Object(L.h)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Object(L.i)("* => left, * => right, left => center, right => center",Object(L.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Object(L.i)("void => left-origin-center",[Object(L.h)({transform:"translate3d(-100%, 0, 0)"}),Object(L.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Object(L.i)("void => right-origin-center",[Object(L.h)({transform:"translate3d(100%, 0, 0)"}),Object(L.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},wt=((nt=function(t){i(a,t);var e=o(a);function a(t,n,i,o){var r;return b(this,a),(r=e.call(this,t,n,o))._host=i,r._centeringSub=O.a.EMPTY,r._leavingSub=O.a.EMPTY,r}return l(a,[{key:"ngOnInit",value:function(){var t=this;n(s(a.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Object(j.a)(this._host._isCenterPosition(this._host._position))).subscribe(function(e){e&&!t.hasAttached()&&t.attach(t._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){t.detach()})}},{key:"ngOnDestroy",value:function(){n(s(a.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),a}(C.c)).\u0275fac=function(t){return new(t||nt)(f.Ob(f.j),f.Ob(f.R),f.Ob(Object(f.V)(function(){return Tt})),f.Ob(u.d))},nt.\u0275dir=f.Jb({type:nt,selectors:[["","matTabBodyHost",""]],features:[f.zb]}),nt),Ot=((et=function(){function t(e,n,i){var a=this;b(this,t),this._elementRef=e,this._dir=n,this._dirChangeSubscription=O.a.EMPTY,this._translateTabComplete=new w.a,this._onCentering=new f.n,this._beforeCentering=new f.n,this._afterLeavingCenter=new f.n,this._onCentered=new f.n(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(t){a._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe(Object(D.a)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){a._isCenterPosition(t.toState)&&a._isCenterPosition(a._position)&&a._onCentered.emit(),a._isCenterPosition(t.fromState)&&!a._isCenterPosition(a._position)&&a._afterLeavingCenter.emit()})}return l(t,[{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}},{key:"_computePositionAnimationState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(t){var e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}},{key:"position",set:function(t){this._positionIndex=t,this._computePositionAnimationState()}}]),t}()).\u0275fac=function(t){return new(t||et)(f.Ob(f.l),f.Ob(B.b,8),f.Ob(f.h))},et.\u0275dir=f.Jb({type:et,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),et),Tt=((tt=function(t){i(n,t);var e=o(n);function n(t,i,a){return b(this,n),e.call(this,t,i,a)}return n}(Ot)).\u0275fac=function(t){return new(t||tt)(f.Ob(f.l),f.Ob(B.b,8),f.Ob(f.h))},tt.\u0275cmp=f.Ib({type:tt,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var n;1&t&&f.Ec(C.c,1),2&t&&f.oc(n=f.bc())&&(e._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[f.zb],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(f.Tb(0,"div",0,1),f.ac("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),f.zc(2,W,0,0,"ng-template",2),f.Sb()),2&t&&f.jc("@translateTab",f.nc(3,V,e._position,f.mc(1,G,e.animationDuration)))},directives:[wt],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:[Ct.translateTab]}}),tt),It=new f.r("MAT_TABS_CONFIG"),St=0,Pt=function t(){b(this,t)},Lt=Object(p.f)(Object(p.g)(function t(e){b(this,t),this._elementRef=e}),"primary"),jt=((at=function(e){i(a,e);var n=o(a);function a(t,e,i,o){var r;return b(this,a),(r=n.call(this,t))._changeDetectorRef=e,r._animationMode=o,r._tabs=new f.E,r._indexToSelect=0,r._tabBodyWrapperHeight=0,r._tabsSubscription=O.a.EMPTY,r._tabLabelSubscription=O.a.EMPTY,r._selectedIndex=null,r.headerPosition="above",r.selectedIndexChange=new f.n,r.focusChange=new f.n,r.animationDone=new f.n,r.selectedTabChange=new f.n(!0),r._groupId=St++,r.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",r.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,r.dynamicHeight=!(!i||null==i.dynamicHeight)&&i.dynamicHeight,r}return l(a,[{key:"ngAfterContentChecked",value:function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var n=null==this._selectedIndex;n||this.selectedTabChange.emit(this._createChangeEvent(e)),Promise.resolve().then(function(){t._tabs.forEach(function(t,n){return t.isActive=n===e}),n||t.selectedIndexChange.emit(e)})}this._tabs.forEach(function(n,i){n.position=i-e,null==t._selectedIndex||0!=n.position||n.origin||(n.origin=e-t._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var t=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),n=0;n<e.length;n++)if(e[n].isActive){t._indexToSelect=t._selectedIndex=n;break}t._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var t=this;this._allTabs.changes.pipe(Object(j.a)(this._allTabs)).subscribe(function(e){t._tabs.reset(e.filter(function(e){return e._closestTabGroup===t})),t._tabs.notifyOnChanges()})}},{key:"ngOnDestroy",value:function(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}},{key:"realignInkBar",value:function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}},{key:"_focusChanged",value:function(t){this.focusChange.emit(this._createChangeEvent(t))}},{key:"_createChangeEvent",value:function(t){var e=new Pt;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}},{key:"_subscribeToTabLabels",value:function(){var e=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Object(T.a).apply(void 0,t(this._tabs.map(function(t){return t._stateChanges}))).subscribe(function(){return e._changeDetectorRef.markForCheck()})}},{key:"_clampTabIndex",value:function(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}},{key:"_getTabLabelId",value:function(t){return"mat-tab-label-".concat(this._groupId,"-").concat(t)}},{key:"_getTabContentId",value:function(t){return"mat-tab-content-".concat(this._groupId,"-").concat(t)}},{key:"_setTabBodyWrapperHeight",value:function(t){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(t,e,n){t.disabled||(this.selectedIndex=e.focusIndex=n)}},{key:"_getTabIndex",value:function(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}},{key:"_tabFocusChanged",value:function(t,e){t&&(this._tabHeader.focusIndex=e)}},{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=Object(R.b)(t)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=Object(R.e)(t,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t}}]),a}(Lt)).\u0275fac=function(t){return new(t||at)(f.Ob(f.l),f.Ob(f.h),f.Ob(It,8),f.Ob(m.a,8))},at.\u0275dir=f.Jb({type:at,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[f.zb]}),at),Dt=((it=function(t){i(n,t);var e=o(n);function n(t,i,a,o){return b(this,n),e.call(this,t,i,a,o)}return n}(jt)).\u0275fac=function(t){return new(t||it)(f.Ob(f.l),f.Ob(f.h),f.Ob(It,8),f.Ob(m.a,8))},it.\u0275cmp=f.Ib({type:it,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){var i;1&t&&f.Hb(n,kt,1),2&t&&f.oc(i=f.bc())&&(e._allTabs=i)},viewQuery:function(t,e){var n;1&t&&(f.Ec(J,1),f.Ec(N,1)),2&t&&(f.oc(n=f.bc())&&(e._tabBodyWrapper=n.first),f.oc(n=f.bc())&&(e._tabHeader=n.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&f.Gb("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[f.Bb([{provide:xt,useExisting:it}]),f.zb],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",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","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[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&&(f.Tb(0,"mat-tab-header",0,1),f.ac("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),f.zc(2,q,4,14,"div",2),f.Sb(),f.Tb(3,"div",3,4),f.zc(5,Y,1,8,"mat-tab-body",5),f.Sb()),2&t&&(f.jc("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),f.Cb(2),f.jc("ngForOf",e._tabs),f.Cb(1),f.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode),f.Cb(2),f.jc("ngForOf",e._tabs))},directives:function(){return[Mt,u.j,Rt,p.c,x.b,u.k,C.c,Tt]},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;outline-offset:-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}),it),At=Object(p.h)(function t(){b(this,t)}),Rt=((ot=function(t){i(n,t);var e=o(n);function n(t){var i;return b(this,n),(i=e.call(this)).elementRef=t,i}return l(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(At)).\u0275fac=function(t){return new(t||ot)(f.Ob(f.l))},ot.\u0275dir=f.Jb({type:ot,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(f.Db("aria-disabled",!!e.disabled),f.Gb("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[f.zb]}),ot),Et=Object(E.e)({passive:!0}),Ft=((lt=function(){function t(e,n,i,a,o,r,s){var c=this;b(this,t),this._elementRef=e,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=a,this._ngZone=o,this._platform=r,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new w.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new w.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new f.n,this.indexFocused=new f.n,o.runOutsideAngular(function(){Object(I.a)(e.nativeElement,"mouseleave").pipe(Object(A.a)(c._destroyed)).subscribe(function(){c._stopInterval()})})}return l(t,[{key:"ngAfterViewInit",value:function(){var t=this;Object(I.a)(this._previousPaginator.nativeElement,"touchstart",Et).pipe(Object(A.a)(this._destroyed)).subscribe(function(){t._handlePaginatorPress("before")}),Object(I.a)(this._nextPaginator.nativeElement,"touchstart",Et).pipe(Object(A.a)(this._destroyed)).subscribe(function(){t._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var t=this,e=this._dir?this._dir.change:Object(S.a)(null),n=this._viewportRuler.change(150),i=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new x.c(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),Object(T.a)(e,n,this._items.changes).pipe(Object(A.a)(this._destroyed)).subscribe(function(){Promise.resolve().then(i),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())}),this._keyManager.change.pipe(Object(A.a)(this._destroyed)).subscribe(function(e){t.indexFocused.emit(e),t._setTabFocus(e)})}},{key:"ngAfterContentChecked",value:function(){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())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(t){if(!Object(F.o)(t))switch(t.keyCode){case F.d:case F.j:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}},{key:"_onContentChanges",value:function(){var t=this,e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(function(){t.updatePagination(),t._alignInkBarToSelectedTab(),t._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"_isValidIndex",value:function(t){if(!this._items)return!0;var e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}},{key:"_setTabFocus",value:function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();var e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(e),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"_scrollHeader",value:function(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(t){this._stopInterval(),this._scrollHeader(t)}},{key:"_scrollToLabel",value:function(t){if(!this.disablePagination){var e=this._items?this._items.toArray()[t]:null;if(e){var n,i,a=this._tabListContainer.nativeElement.offsetWidth,o=e.elementRef.nativeElement,r=o.offsetLeft,s=o.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=r)+s:n=(i=this._tabList.nativeElement.offsetWidth-r)-s;var c=this.scrollDistance,l=this.scrollDistance+a;n<c?this.scrollDistance-=c-n+60:i>l&&(this.scrollDistance+=i-l+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var 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()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(t,e){var n=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),Object(P.a)(650,100).pipe(Object(A.a)(Object(T.a)(this._stopScrolling,this._destroyed))).subscribe(function(){var e=n._scrollHeader(t),i=e.maxScrollDistance,a=e.distance;(0===a||a>=i)&&n._stopInterval()}))}},{key:"_scrollTo",value:function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){t=Object(R.e)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(t){this._scrollTo(t)}}]),t}()).\u0275fac=function(t){return new(t||lt)(f.Ob(f.l),f.Ob(f.h),f.Ob(M.e),f.Ob(B.b,8),f.Ob(f.A),f.Ob(E.a),f.Ob(m.a,8))},lt.\u0275dir=f.Jb({type:lt,inputs:{disablePagination:"disablePagination"}}),lt),Bt=((ct=function(t){i(n,t);var e=o(n);function n(t,i,a,o,r,s,c){var l;return b(this,n),(l=e.call(this,t,i,a,o,r,s,c))._disableRipple=!1,l}return l(n,[{key:"_itemSelected",value:function(t){t.preventDefault()}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=Object(R.b)(t)}}]),n}(Ft)).\u0275fac=function(t){return new(t||ct)(f.Ob(f.l),f.Ob(f.h),f.Ob(M.e),f.Ob(B.b,8),f.Ob(f.A),f.Ob(E.a),f.Ob(m.a,8))},ct.\u0275dir=f.Jb({type:ct,inputs:{disableRipple:"disableRipple"},features:[f.zb]}),ct),Mt=((st=function(t){i(n,t);var e=o(n);function n(t,i,a,o,r,s,c){return b(this,n),e.call(this,t,i,a,o,r,s,c)}return n}(Bt)).\u0275fac=function(t){return new(t||st)(f.Ob(f.l),f.Ob(f.h),f.Ob(M.e),f.Ob(B.b,8),f.Ob(f.A),f.Ob(E.a),f.Ob(m.a,8))},st.\u0275cmp=f.Ib({type:st,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){var i;1&t&&f.Hb(n,Rt,0),2&t&&f.oc(i=f.bc())&&(e._items=i)},viewQuery:function(t,e){var n;1&t&&(f.Ec(mt,3),f.Ec(bt,3),f.Ec(dt,3),f.Ec(ut,1),f.Ec(ht,1)),2&t&&(f.oc(n=f.bc())&&(e._inkBar=n.first),f.oc(n=f.bc())&&(e._tabListContainer=n.first),f.oc(n=f.bc())&&(e._tabList=n.first),f.oc(n=f.bc())&&(e._nextPaginator=n.first),f.oc(n=f.bc())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&f.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:[f.zb],ngContentSelectors:z,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&&(f.ic(),f.Tb(0,"div",0,1),f.ac("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),f.Pb(2,"div",2),f.Sb(),f.Tb(3,"div",3,4),f.ac("keydown",function(t){return e._handleKeydown(t)}),f.Tb(5,"div",5,6),f.ac("cdkObserveContent",function(){return e._onContentChanges()}),f.Tb(7,"div",7),f.hc(8),f.Sb(),f.Pb(9,"mat-ink-bar"),f.Sb(),f.Sb(),f.Tb(10,"div",8,9),f.ac("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),f.Pb(12,"div",2),f.Sb()),2&t&&(f.Gb("mat-tab-header-pagination-disabled",e._disableScrollBefore),f.jc("matRippleDisabled",e._disableScrollBefore||e.disableRipple),f.Cb(5),f.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode),f.Cb(5),f.Gb("mat-tab-header-pagination-disabled",e._disableScrollAfter),f.jc("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[p.c,k.a,mt],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-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .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;outline-offset:-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}),st),Ht=((rt=function t(){b(this,t)}).\u0275mod=f.Mb({type:rt}),rt.\u0275inj=f.Lb({factory:function(t){return new(t||rt)},imports:[[u.c,p.b,C.f,p.d,k.c,x.a],p.b]}),rt),zt=["content"];function Wt(t,e){if(1&t&&(f.Tb(0,"span"),f.Ac(1),f.Sb()),2&t){var n=f.ec().$implicit;f.Eb(n.class),f.Cb(1),f.Bc(n.header)}}function Gt(t,e){if(1&t&&(f.Tb(0,"mat-tab",4),f.zc(1,Wt,2,4,"ng-template",5),f.Pb(2,"aio-code",6),f.Sb()),2&t){var n=e.$implicit;f.Cb(2),f.Eb(n.class),f.jc("language",n.language)("linenums",n.linenums)("path",n.path)("region",n.region)("header",n.header)}}var Vt,Jt,Nt=["*"],$t=((Vt=function(){function t(){b(this,t)}return l(t,[{key:"ngOnInit",value:function(){this.tabs=[];for(var t=this.content.nativeElement,e=0,n=Array.from(t.querySelectorAll("code-pane"));e<n.length;e++){var i=n[e];this.tabs.push(this.getTabInfo(i))}t.innerHTML=""}},{key:"ngAfterViewInit",value:function(){var t=this;this.codeComponents.toArray().forEach(function(e,n){e.code=t.tabs[n].code})}},{key:"getTabInfo",value:function(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}}}]),t}()).\u0275fac=function(t){return new(t||Vt)},Vt.\u0275cmp=f.Ib({type:Vt,selectors:[["code-tabs"]],viewQuery:function(t,e){var n;1&t&&(f.Ec(zt,3),f.Ec(h.a,1)),2&t&&(f.oc(n=f.bc())&&(e.content=n.first),f.oc(n=f.bc())&&(e.codeComponents=n))},inputs:{linenums:"linenums"},ngContentSelectors:Nt,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&&(f.ic(),f.Tb(0,"div",0,1),f.hc(2),f.Sb(),f.Tb(3,"mat-card"),f.Tb(4,"mat-tab-group",2),f.zc(5,Gt,3,8,"mat-tab",3),f.Sb(),f.Sb()),2&t&&(f.Cb(4),f.jc("disableRipple",!0),f.Cb(1),f.jc("ngForOf",e.tabs))},directives:[v,Dt,u.j,kt,_t,h.a],encapsulation:2}),Vt),Qt=r("V90o"),Ut=((Jt=function t(){b(this,t),this.customElementComponent=$t}).\u0275mod=f.Mb({type:Jt}),Jt.\u0275inj=f.Lb({factory:function(t){return new(t||Jt)},imports:[[u.c,y,Ht,Qt.a]]}),Jt)}}])}();
//# sourceMappingURL=code-code-tabs-module-es5.1a6c55229832dae43d3d.js.map