-
Notifications
You must be signed in to change notification settings - Fork 1
/
src_app_custom-elements_code_code-tabs_module_ts-es5.5716c0234cba4316c869.js
2 lines (2 loc) · 41.2 KB
/
src_app_custom-elements_code_code-tabs_module_ts-es5.5716c0234cba4316c869.js
1
2
!function(){function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])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 l(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 c(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(self.webpackChunkangular_cn=self.webpackChunkangular_cn||[]).push([["src_app_custom-elements_code_code-tabs_module_ts"],{9517:function(e,a,r){"use strict";r.r(a),r.d(a,{CodeTabsModule:function(){return Dt}});var l=r(1116),u=r(199),h=r(5366),b=r(6136),f=r(7064),m=["*",[["mat-card-footer"]]],p=["*","mat-card-footer"],g=function(){var t=function t(e){d(this,t),this._animationMode=e};return t.\u0275fac=function(e){return new(e||t)(h.Y36(b.Qb,8))},t.\u0275cmp=h.Xpm({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:p,decls:2,vars:0,template:function(t,e){1&t&&(h.F$t(m),h.Hsn(0),h.Hsn(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:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-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}(),_=function(){var t=function t(){d(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[f.BQ],f.BQ]}),t}(),v=r(7388),y=r(7853),x=r(2151),k=r(5959),C=r(7570),w=r(1906),T=r(7254),I=r(878),S=r(1110),P=r(9713),R=r(6238),A=r(8720),D=r(5416),L=r(9861),B=r(3169),O=r(9235),H=r(4720),E=r(1448);function M(t,e){1&t&&h.Hsn(0)}var Y=["*"];function F(t,e){}var j=function(t){return{animationDuration:t}},G=function(t,e){return{value:t,params:e}},q=["tabBodyWrapper"],Z=["tabHeader"];function Q(t,e){}function W(t,e){if(1&t&&h.YNc(0,Q,0,0,"ng-template",9),2&t){var n=h.oxw().$implicit;h.Q6J("cdkPortalOutlet",n.templateLabel)}}function z(t,e){if(1&t&&h._uU(0),2&t){var n=h.oxw().$implicit;h.Oqu(n.textLabel)}}function J(t,e){if(1&t){var n=h.EpF();h.TgZ(0,"div",6),h.NdJ("click",function(){var t=h.CHM(n),e=t.$implicit,i=t.index,a=h.oxw(),o=h.MAs(1);return a._handleClick(e,o,i)})("cdkFocusChange",function(t){var e=h.CHM(n).index;return h.oxw()._tabFocusChanged(t,e)}),h.TgZ(1,"div",7),h.YNc(2,W,1,1,"ng-template",8),h.YNc(3,z,1,1,"ng-template",8),h.qZA(),h.qZA()}if(2&t){var i=e.$implicit,a=e.index,o=h.oxw();h.ekj("mat-tab-label-active",o.selectedIndex==a),h.Q6J("id",o._getTabLabelId(a))("disabled",i.disabled)("matRippleDisabled",i.disabled||o.disableRipple),h.uIk("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),h.xp6(2),h.Q6J("ngIf",i.templateLabel),h.xp6(1),h.Q6J("ngIf",!i.templateLabel)}}function N(t,e){if(1&t){var n=h.EpF();h.TgZ(0,"mat-tab-body",10),h.NdJ("_onCentered",function(){return h.CHM(n),h.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(t){return h.CHM(n),h.oxw()._setTabBodyWrapperHeight(t)}),h.qZA()}if(2&t){var i=e.$implicit,a=e.index,o=h.oxw();h.ekj("mat-tab-body-active",o.selectedIndex==a),h.Q6J("id",o._getTabContentId(a))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",o.animationDuration),h.uIk("aria-labelledby",o._getTabLabelId(a))}}var $=["tabListContainer"],V=["tabList"],U=["nextPaginator"],X=["previousPaginator"],K=new h.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),tt=function(){var t=function(){function t(e,n,i,a){d(this,t),this._elementRef=e,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=a}return c(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}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36(K),h.Y36(b.Qb,8))},t.\u0275dir=h.lG2({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t}(),et=new h.OlP("MatTabContent"),nt=new h.OlP("MatTabLabel"),it=function(){var t,e=function(t){i(n,t);var e=o(n);function n(){return d(this,n),e.apply(this,arguments)}return n}(x.ig);return e.\u0275fac=function(n){return(t||(t=h.n5z(e)))(n||e)},e.\u0275dir=h.lG2({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[h._Bn([{provide:nt,useExisting:e}]),h.qOj]}),e}(),at=(0,f.Id)(function t(){d(this,t)}),ot=new h.OlP("MAT_TAB_GROUP"),rt=function(){var t=function(t){i(n,t);var e=o(n);function n(t,i){var a;return d(this,n),(a=e.call(this))._viewContainerRef=t,a._closestTabGroup=i,a.textLabel="",a._contentPortal=null,a._stateChanges=new k.xQ,a.position=null,a.origin=null,a.isActive=!1,a}return c(n,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(t){this._setTemplateLabelInput(t)}},{key:"content",get:function(){return this._contentPortal}},{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 x.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(t){t&&(this._templateLabel=t)}}]),n}(at);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.s_b),h.Y36(ot))},t.\u0275cmp=h.Xpm({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){var i;(1&t&&(h.Suo(n,nt,5),h.Suo(n,et,7,h.Rgc)),2&t)&&(h.iGM(i=h.CRH())&&(e.templateLabel=i.first),h.iGM(i=h.CRH())&&(e._explicitContent=i.first))},viewQuery:function(t,e){var n;(1&t&&h.Gf(h.Rgc,7),2&t)&&(h.iGM(n=h.CRH())&&(e._implicitContent=n.first))},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[h.qOj,h.TTD],ngContentSelectors:Y,decls:1,vars:0,template:function(t,e){1&t&&(h.F$t(),h.YNc(0,M,1,0,"ng-template"))},encapsulation:2}),t}(),st={translateTab:(0,P.X$)("translateTab",[(0,P.SB)("center, void, left-origin-center, right-origin-center",(0,P.oB)({transform:"none"})),(0,P.SB)("left",(0,P.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,P.SB)("right",(0,P.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,P.eR)("* => left, * => right, left => center, right => center",(0,P.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,P.eR)("void => left-origin-center",[(0,P.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,P.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,P.eR)("void => right-origin-center",[(0,P.oB)({transform:"translate3d(100%, 0, 0)"}),(0,P.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},lt=function(){var t=function(t){i(a,t);var e=o(a);function a(t,n,i,o){var r;return d(this,a),(r=e.call(this,t,n,o))._host=i,r._centeringSub=C.w.EMPTY,r._leavingSub=C.w.EMPTY,r}return c(a,[{key:"ngOnInit",value:function(){var t=this;n(s(a.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe((0,R.O)(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}(x.Pl);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h._Vd),h.Y36(h.s_b),h.Y36((0,h.Gpc)(function(){return dt})),h.Y36(l.K0))},t.\u0275dir=h.lG2({type:t,selectors:[["","matTabBodyHost",""]],features:[h.qOj]}),t}(),ct=function(){var t=function(){function t(e,n,i){var a=this;d(this,t),this._elementRef=e,this._dir=n,this._dirChangeSubscription=C.w.EMPTY,this._translateTabComplete=new k.xQ,this._onCentering=new h.vpe,this._beforeCentering=new h.vpe,this._afterLeavingCenter=new h.vpe,this._onCentered=new h.vpe(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(t){a._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe((0,A.x)(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 c(t,[{key:"position",set:function(t){this._positionIndex=t,this._computePositionAnimationState()}},{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"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(H.Is,8),h.Y36(h.sBO))},t.\u0275dir=h.lG2({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t}(),dt=function(){var t=function(t){i(n,t);var e=o(n);function n(t,i,a){return d(this,n),e.call(this,t,i,a)}return n}(ct);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(H.Is,8),h.Y36(h.sBO))},t.\u0275cmp=h.Xpm({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var n;(1&t&&h.Gf(x.Pl,5),2&t)&&(h.iGM(n=h.CRH())&&(e._portalHost=n.first))},hostAttrs:[1,"mat-tab-body"],features:[h.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(h.TgZ(0,"div",0,1),h.NdJ("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),h.YNc(2,F,0,0,"ng-template",2),h.qZA()),2&t&&h.Q6J("@translateTab",h.WLB(3,G,e._position,h.VKq(1,j,e.animationDuration)))},directives:[lt],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:[st.translateTab]}}),t}(),ut=new h.OlP("MAT_TABS_CONFIG"),ht=0,bt=function t(){d(this,t)},ft=(0,f.pj)((0,f.Kr)(function t(e){d(this,t),this._elementRef=e}),"primary"),mt=function(){var e=function(e){i(a,e);var n=o(a);function a(t,e,i,o){var r;return d(this,a),(r=n.call(this,t))._changeDetectorRef=e,r._animationMode=o,r._tabs=new h.n_E,r._indexToSelect=0,r._tabBodyWrapperHeight=0,r._tabsSubscription=C.w.EMPTY,r._tabLabelSubscription=C.w.EMPTY,r._selectedIndex=null,r.headerPosition="above",r.selectedIndexChange=new h.vpe,r.focusChange=new h.vpe,r.animationDone=new h.vpe,r.selectedTabChange=new h.vpe(!0),r._groupId=ht++,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 c(a,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=(0,L.Ig)(t)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=(0,L.su)(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-".concat(this.backgroundColor)),t&&e.classList.add("mat-background-".concat(t)),this._backgroundColor=t}},{key:"ngAfterContentChecked",value:function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var n=null==this._selectedIndex;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));var i=this._tabBodyWrapper.nativeElement;i.style.minHeight=i.clientHeight+"px"}Promise.resolve().then(function(){t._tabs.forEach(function(t,n){return t.isActive=n===e}),n||(t.selectedIndexChange.emit(e),t._tabBodyWrapper.nativeElement.style.minHeight="")})}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((0,R.O)(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:"focusTab",value:function(t){var e=this._tabHeader;e&&(e.focusIndex=t)}},{key:"_focusChanged",value:function(t){this.focusChange.emit(this._createChangeEvent(t))}},{key:"_createChangeEvent",value:function(t){var e=new bt;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=w.T.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)}}]),a}(ft);return e.\u0275fac=function(t){return new(t||e)(h.Y36(h.SBq),h.Y36(h.sBO),h.Y36(ut,8),h.Y36(b.Qb,8))},e.\u0275dir=h.lG2({type:e,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[h.qOj]}),e}(),pt=function(){var t=function(t){i(n,t);var e=o(n);function n(t,i,a,o){return d(this,n),e.call(this,t,i,a,o)}return n}(mt);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(h.sBO),h.Y36(ut,8),h.Y36(b.Qb,8))},t.\u0275cmp=h.Xpm({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){var i;(1&t&&h.Suo(n,rt,5),2&t)&&(h.iGM(i=h.CRH())&&(e._allTabs=i))},viewQuery:function(t,e){var n;(1&t&&(h.Gf(q,5),h.Gf(Z,5)),2&t)&&(h.iGM(n=h.CRH())&&(e._tabBodyWrapper=n.first),h.iGM(n=h.CRH())&&(e._tabHeader=n.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&h.ekj("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[h._Bn([{provide:ot,useExisting:t}]),h.qOj],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&&(h.TgZ(0,"mat-tab-header",0,1),h.NdJ("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),h.YNc(2,J,4,14,"div",2),h.qZA(),h.TgZ(3,"div",3,4),h.YNc(5,N,1,8,"mat-tab-body",5),h.qZA()),2&t&&(h.Q6J("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),h.xp6(2),h.Q6J("ngForOf",e._tabs),h.xp6(1),h.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),h.xp6(2),h.Q6J("ngForOf",e._tabs))},directives:function(){return[kt,l.sg,_t,f.wG,v.kH,l.O5,x.Pl,dt]},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}),t}(),gt=(0,f.Id)(function t(){d(this,t)}),_t=function(){var t=function(t){i(n,t);var e=o(n);function n(t){var i;return d(this,n),(i=e.call(this)).elementRef=t,i}return c(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}(gt);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq))},t.\u0275dir=h.lG2({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(h.uIk("aria-disabled",!!e.disabled),h.ekj("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[h.qOj]}),t}(),vt=(0,B.i$)({passive:!0}),yt=function(){var t=function(){function t(e,n,i,a,o,r,s){var l=this;d(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 k.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new k.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new h.vpe,this.indexFocused=new h.vpe,o.runOutsideAngular(function(){(0,T.R)(e.nativeElement,"mouseleave").pipe((0,D.R)(l._destroyed)).subscribe(function(){l._stopInterval()})})}return c(t,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){t=(0,L.su)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}},{key:"ngAfterViewInit",value:function(){var t=this;(0,T.R)(this._previousPaginator.nativeElement,"touchstart",vt).pipe((0,D.R)(this._destroyed)).subscribe(function(){t._handlePaginatorPress("before")}),(0,T.R)(this._nextPaginator.nativeElement,"touchstart",vt).pipe((0,D.R)(this._destroyed)).subscribe(function(){t._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var t=this,e=this._dir?this._dir.change:(0,I.of)("ltr"),n=this._viewportRuler.change(150),i=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new v.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),(0,w.T)(e,n,this._items.changes).pipe((0,D.R)(this._destroyed)).subscribe(function(){t._ngZone.run(function(){return Promise.resolve().then(i)}),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())}),this._keyManager.change.pipe((0,D.R)(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(!(0,O.Vb)(t))switch(t.keyCode){case O.K5:case O.L_: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:"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:"_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:"scrollDistance",get:function(){return this._scrollDistance},set:function(t){this._scrollTo(t)}},{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 l=this.scrollDistance,c=this.scrollDistance+a;n<l?this.scrollDistance-=l-n+60:i>c&&(this.scrollDistance+=i-c+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(),(0,S.H)(650,100).pipe((0,D.R)((0,w.T)(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}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(h.sBO),h.Y36(E.rL),h.Y36(H.Is,8),h.Y36(h.R0b),h.Y36(B.t4),h.Y36(b.Qb,8))},t.\u0275dir=h.lG2({type:t,inputs:{disablePagination:"disablePagination"}}),t}(),xt=function(){var t=function(t){i(n,t);var e=o(n);function n(t,i,a,o,r,s,l){var c;return d(this,n),(c=e.call(this,t,i,a,o,r,s,l))._disableRipple=!1,c}return c(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=(0,L.Ig)(t)}},{key:"_itemSelected",value:function(t){t.preventDefault()}}]),n}(yt);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(h.sBO),h.Y36(E.rL),h.Y36(H.Is,8),h.Y36(h.R0b),h.Y36(B.t4),h.Y36(b.Qb,8))},t.\u0275dir=h.lG2({type:t,inputs:{disableRipple:"disableRipple"},features:[h.qOj]}),t}(),kt=function(){var t=function(t){i(n,t);var e=o(n);function n(t,i,a,o,r,s,l){return d(this,n),e.call(this,t,i,a,o,r,s,l)}return n}(xt);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(h.sBO),h.Y36(E.rL),h.Y36(H.Is,8),h.Y36(h.R0b),h.Y36(B.t4),h.Y36(b.Qb,8))},t.\u0275cmp=h.Xpm({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){var i;(1&t&&h.Suo(n,_t,4),2&t)&&(h.iGM(i=h.CRH())&&(e._items=i))},viewQuery:function(t,e){var n;(1&t&&(h.Gf(tt,7),h.Gf($,7),h.Gf(V,7),h.Gf(U,5),h.Gf(X,5)),2&t)&&(h.iGM(n=h.CRH())&&(e._inkBar=n.first),h.iGM(n=h.CRH())&&(e._tabListContainer=n.first),h.iGM(n=h.CRH())&&(e._tabList=n.first),h.iGM(n=h.CRH())&&(e._nextPaginator=n.first),h.iGM(n=h.CRH())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&h.ekj("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[h.qOj],ngContentSelectors:Y,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&&(h.F$t(),h.TgZ(0,"div",0,1),h.NdJ("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),h._UZ(2,"div",2),h.qZA(),h.TgZ(3,"div",3,4),h.NdJ("keydown",function(t){return e._handleKeydown(t)}),h.TgZ(5,"div",5,6),h.NdJ("cdkObserveContent",function(){return e._onContentChanges()}),h.TgZ(7,"div",7),h.Hsn(8),h.qZA(),h._UZ(9,"mat-ink-bar"),h.qZA(),h.qZA(),h.TgZ(10,"div",8,9),h.NdJ("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),h._UZ(12,"div",2),h.qZA()),2&t&&(h.ekj("mat-tab-header-pagination-disabled",e._disableScrollBefore),h.Q6J("matRippleDisabled",e._disableScrollBefore||e.disableRipple),h.xp6(5),h.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),h.xp6(5),h.ekj("mat-tab-header-pagination-disabled",e._disableScrollAfter),h.Q6J("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[f.wG,y.wD,tt],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}),t}(),Ct=function(){var t=function t(){d(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[l.ez,f.BQ,x.eL,f.si,y.Q8,v.rt],f.BQ]}),t}(),wt=["content"];function Tt(t,e){if(1&t&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&t){var n=h.oxw().$implicit;h.Tol(n.class),h.xp6(1),h.Oqu(n.header)}}function It(t,e){if(1&t&&(h.TgZ(0,"mat-tab",4),h.YNc(1,Tt,2,4,"ng-template",5),h._UZ(2,"aio-code",6),h.qZA()),2&t){var n=e.$implicit;h.xp6(2),h.Tol(n.class),h.Q6J("language",n.language)("linenums",n.linenums)("path",n.path)("region",n.region)("header",n.header)}}var St,Pt=["*"],Rt=function(){var t=function(){function t(){d(this,t)}return c(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}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["code-tabs"]],viewQuery:function(t,e){var n;(1&t&&(h.Gf(wt,7),h.Gf(u.Q,5)),2&t)&&(h.iGM(n=h.CRH())&&(e.content=n.first),h.iGM(n=h.CRH())&&(e.codeComponents=n))},inputs:{linenums:"linenums"},ngContentSelectors:Pt,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&&(h.F$t(),h.TgZ(0,"div",0,1),h.Hsn(2),h.qZA(),h.TgZ(3,"mat-card"),h.TgZ(4,"mat-tab-group",2),h.YNc(5,It,3,8,"mat-tab",3),h.qZA(),h.qZA()),2&t&&(h.xp6(4),h.Q6J("disableRipple",!0),h.xp6(1),h.Q6J("ngForOf",e.tabs))},directives:[g,pt,l.sg,rt,it,u.Q],encapsulation:2}),t}(),At=r(145),Dt=((St=function t(){d(this,t),this.customElementComponent=Rt}).\u0275fac=function(t){return new(t||St)},St.\u0275mod=h.oAB({type:St}),St.\u0275inj=h.cJS({imports:[[l.ez,_,Ct,At.r]]}),St)}}])}();
//# sourceMappingURL=src_app_custom-elements_code_code-tabs_module_ts-es5.5716c0234cba4316c869.js.map