Repository navigation
Expand file tree
/
Copy pathsrc_app_custom-elements_code_code-tabs_module_ts.70b93bcb32d88df6.js
More file actions
2 lines (2 loc) · 36.7 KB
/
Copy pathsrc_app_custom-elements_code_code-tabs_module_ts.70b93bcb32d88df6.js
File metadata and controls
2 lines (2 loc) · 36.7 KB
1
2
"use strict";(self.webpackChunkangular_cn=self.webpackChunkangular_cn||[]).push([["src_app_custom-elements_code_code-tabs_module_ts"],{5423:(Vt,R,d)=>{d.r(R),d.d(R,{CodeTabsModule:()=>$t});var _=d(4364),X=d(6155),S=d(5466),t=d(2316),h=d(8848),b=d(8920);const U=["*",[["mat-card-footer"]]],K=["*","mat-card-footer"];let it=(()=>{class a{constructor(e){this._animationMode=e}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(h.Qb,8))},a.\u0275cmp=t.Xpm({type:a,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,n){2&e&&t.ekj("_mat-animation-noopable","NoopAnimations"===n._animationMode)},exportAs:["matCard"],ngContentSelectors:K,decls:2,vars:0,template:function(e,n){1&e&&(t.F$t(U),t.Hsn(0),t.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}),a})(),ot=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[[b.BQ],b.BQ]}),a})();var M=d(1606),I=d(851),v=d(912),C=d(8187),T=d(1289),w=d(7159),D=d(2027),rt=d(7599),st=d(6200),m=d(7175),A=d(7993),dt=d(2249),u=d(4094),p=d(657),g=d(6145),B=d(84),f=d(772),y=d(5537);function lt(a,o){1&a&&t.Hsn(0)}const L=["*"];function ct(a,o){}const bt=function(a){return{animationDuration:a}},mt=function(a,o){return{value:a,params:o}},ht=["tabBodyWrapper"],ut=["tabHeader"];function pt(a,o){}function gt(a,o){if(1&a&&t.YNc(0,pt,0,0,"ng-template",9),2&a){const e=t.oxw().$implicit;t.Q6J("cdkPortalOutlet",e.templateLabel)}}function ft(a,o){if(1&a&&t._uU(0),2&a){const e=t.oxw().$implicit;t.Oqu(e.textLabel)}}function _t(a,o){if(1&a){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){const i=t.CHM(e),r=i.$implicit,s=i.index,l=t.oxw(),c=t.MAs(1);return l._handleClick(r,c,s)})("cdkFocusChange",function(i){const s=t.CHM(e).index;return t.oxw()._tabFocusChanged(i,s)}),t.TgZ(1,"div",7),t.YNc(2,gt,1,1,"ng-template",8),t.YNc(3,ft,1,1,"ng-template",8),t.qZA(),t.qZA()}if(2&a){const e=o.$implicit,n=o.index,i=t.oxw();t.ekj("mat-tab-label-active",i.selectedIndex==n),t.Q6J("id",i._getTabLabelId(n))("disabled",e.disabled)("matRippleDisabled",e.disabled||i.disableRipple),t.uIk("tabIndex",i._getTabIndex(e,n))("aria-posinset",n+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(n))("aria-selected",i.selectedIndex==n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),t.xp6(2),t.Q6J("ngIf",e.templateLabel),t.xp6(1),t.Q6J("ngIf",!e.templateLabel)}}function vt(a,o){if(1&a){const e=t.EpF();t.TgZ(0,"mat-tab-body",10),t.NdJ("_onCentered",function(){return t.CHM(e),t.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(i){return t.CHM(e),t.oxw()._setTabBodyWrapperHeight(i)}),t.qZA()}if(2&a){const e=o.$implicit,n=o.index,i=t.oxw();t.ekj("mat-tab-body-active",i.selectedIndex===n),t.Q6J("id",i._getTabContentId(n))("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",i.animationDuration),t.uIk("tabindex",null!=i.contentTabIndex&&i.selectedIndex===n?i.contentTabIndex:null)("aria-labelledby",i._getTabLabelId(n))}}const H=["tabListContainer"],P=["tabList"],G=["nextPaginator"],F=["previousPaginator"],Tt=new t.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return o=>({left:o?(o.offsetLeft||0)+"px":"0",width:o?(o.offsetWidth||0)+"px":"0"})}});let x=(()=>{class a{constructor(e,n,i,r){this._elementRef=e,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r}alignToElement(e){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(e))}):this._setStyles(e)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(e){const n=this._inkBarPositioner(e),i=this._elementRef.nativeElement;i.style.left=n.left,i.style.width=n.width}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(Tt),t.Y36(h.Qb,8))},a.\u0275dir=t.lG2({type:a,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,n){2&e&&t.ekj("_mat-animation-noopable","NoopAnimations"===n._animationMode)}}),a})();const Y=new t.OlP("MatTabContent"),O=new t.OlP("MatTabLabel"),E=new t.OlP("MAT_TAB");let Ct=(()=>{class a extends v.ig{constructor(e,n,i){super(e,n),this._closestTab=i}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(E,8))},a.\u0275dir=t.lG2({type:a,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[t._Bn([{provide:O,useExisting:a}]),t.qOj]}),a})();const xt=(0,b.Id)(class{}),N=new t.OlP("MAT_TAB_GROUP");let Q=(()=>{class a extends xt{constructor(e,n){super(),this._viewContainerRef=e,this._closestTabGroup=n,this.textLabel="",this._contentPortal=null,this._stateChanges=new C.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new v.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(t.s_b),t.Y36(N,8))},a.\u0275cmp=t.Xpm({type:a,selectors:[["mat-tab"]],contentQueries:function(e,n,i){if(1&e&&(t.Suo(i,O,5),t.Suo(i,Y,7,t.Rgc)),2&e){let r;t.iGM(r=t.CRH())&&(n.templateLabel=r.first),t.iGM(r=t.CRH())&&(n._explicitContent=r.first)}},viewQuery:function(e,n){if(1&e&&t.Gf(t.Rgc,7),2&e){let i;t.iGM(i=t.CRH())&&(n._implicitContent=i.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[t._Bn([{provide:E,useExisting:a}]),t.qOj,t.TTD],ngContentSelectors:L,decls:1,vars:0,template:function(e,n){1&e&&(t.F$t(),t.YNc(0,lt,1,0,"ng-template"))},encapsulation:2}),a})();const kt={translateTab:(0,m.X$)("translateTab",[(0,m.SB)("center, void, left-origin-center, right-origin-center",(0,m.oB)({transform:"none"})),(0,m.SB)("left",(0,m.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,m.SB)("right",(0,m.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,m.eR)("* => left, * => right, left => center, right => center",(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,m.eR)("void => left-origin-center",[(0,m.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,m.eR)("void => right-origin-center",[(0,m.oB)({transform:"translate3d(100%, 0, 0)"}),(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let It=(()=>{class a extends v.Pl{constructor(e,n,i,r){super(e,n,r),this._host=i,this._centeringSub=T.w0.EMPTY,this._leavingSub=T.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,A.O)(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!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 a.\u0275fac=function(e){return new(e||a)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36((0,t.Gpc)(()=>Z)),t.Y36(_.K0))},a.\u0275dir=t.lG2({type:a,selectors:[["","matTabBodyHost",""]],features:[t.qOj]}),a})(),wt=(()=>{class a{constructor(e,n,i){this._elementRef=e,this._dir=n,this._dirChangeSubscription=T.w0.EMPTY,this._translateTabComplete=new C.x,this._onCentering=new t.vpe,this._beforeCentering=new t.vpe,this._afterLeavingCenter=new t.vpe,this._onCentered=new t.vpe(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(r=>{this._computePositionAnimationState(r),i.markForCheck()})),this._translateTabComplete.pipe((0,dt.x)((r,s)=>r.fromState===s.fromState&&r.toState===s.toState)).subscribe(r=>{this._isCenterPosition(r.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(r.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const n=this._isCenterPosition(e.toState);this._beforeCentering.emit(n),n&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const n=this._getLayoutDirection();return"ltr"==n&&e<=0||"rtl"==n&&e>0?"left-origin-center":"right-origin-center"}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(t.SBq),t.Y36(f.Is,8),t.Y36(t.sBO))},a.\u0275dir=t.lG2({type:a,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),a})(),Z=(()=>{class a extends wt{constructor(e,n,i){super(e,n,i)}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(t.SBq),t.Y36(f.Is,8),t.Y36(t.sBO))},a.\u0275cmp=t.Xpm({type:a,selectors:[["mat-tab-body"]],viewQuery:function(e,n){if(1&e&&t.Gf(v.Pl,5),2&e){let i;t.iGM(i=t.CRH())&&(n._portalHost=i.first)}},hostAttrs:[1,"mat-tab-body"],features:[t.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,n){1&e&&(t.TgZ(0,"div",0,1),t.NdJ("@translateTab.start",function(r){return n._onTranslateTabStarted(r)})("@translateTab.done",function(r){return n._translateTabComplete.next(r)}),t.YNc(2,ct,0,0,"ng-template",2),t.qZA()),2&e&&t.Q6J("@translateTab",t.WLB(3,mt,n._position,t.VKq(1,bt,n.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:[kt.translateTab]}}),a})();const j=new t.OlP("MAT_TABS_CONFIG");let Dt=0;class At{}const Bt=(0,b.pj)((0,b.Kr)(class{constructor(a){this._elementRef=a}}),"primary");let Lt=(()=>{class a extends Bt{constructor(e,n,i,r){var s;super(e),this._changeDetectorRef=n,this._animationMode=r,this._tabs=new t.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=T.w0.EMPTY,this._tabLabelSubscription=T.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new t.vpe,this.focusChange=new t.vpe,this.animationDone=new t.vpe,this.selectedTabChange=new t.vpe(!0),this._groupId=Dt++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,this.dynamicHeight=!(!i||null==i.dynamicHeight)&&i.dynamicHeight,this.contentTabIndex=null!==(s=null==i?void 0:i.contentTabIndex)&&void 0!==s?s:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=(0,p.Ig)(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=(0,p.su)(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=(0,p.su)(e,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const n=this._elementRef.nativeElement;n.classList.remove(`mat-background-${this.backgroundColor}`),e&&n.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const n=null==this._selectedIndex;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));const i=this._tabBodyWrapper.nativeElement;i.style.minHeight=i.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((i,r)=>i.isActive=r===e),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,i)=>{n.position=i-e,null!=this._selectedIndex&&0==n.position&&!n.origin&&(n.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const n=this._tabs.toArray();for(let i=0;i<n.length;i++)if(n[i].isActive){this._indexToSelect=this._selectedIndex=i;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,A.O)(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(e){const n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const n=new At;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,w.T)(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,n,i){e.disabled||(this.selectedIndex=n.focusIndex=i)}_getTabIndex(e,n){return e.disabled?null:this.selectedIndex===n?0:-1}_tabFocusChanged(e,n){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=n)}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(j,8),t.Y36(h.Qb,8))},a.\u0275dir=t.lG2({type:a,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",contentTabIndex:"contentTabIndex",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[t.qOj]}),a})(),Rt=(()=>{class a extends Lt{constructor(e,n,i,r){super(e,n,i,r)}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(j,8),t.Y36(h.Qb,8))},a.\u0275cmp=t.Xpm({type:a,selectors:[["mat-tab-group"]],contentQueries:function(e,n,i){if(1&e&&t.Suo(i,Q,5),2&e){let r;t.iGM(r=t.CRH())&&(n._allTabs=r)}},viewQuery:function(e,n){if(1&e&&(t.Gf(ht,5),t.Gf(ut,5)),2&e){let i;t.iGM(i=t.CRH())&&(n._tabBodyWrapper=i.first),t.iGM(i=t.CRH())&&(n._tabHeader=i.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,n){2&e&&t.ekj("mat-tab-group-dynamic-height",n.dynamicHeight)("mat-tab-group-inverted-header","below"===n.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[t._Bn([{provide:N,useExisting:a}]),t.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(e,n){1&e&&(t.TgZ(0,"mat-tab-header",0,1),t.NdJ("indexFocused",function(r){return n._focusChanged(r)})("selectFocusedIndex",function(r){return n.selectedIndex=r}),t.YNc(2,_t,4,14,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.YNc(5,vt,1,9,"mat-tab-body",5),t.qZA()),2&e&&(t.Q6J("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),t.xp6(2),t.Q6J("ngForOf",n._tabs),t.xp6(1),t.ekj("_mat-animation-noopable","NoopAnimations"===n._animationMode),t.xp6(2),t.Q6J("ngForOf",n._tabs))},directives:function(){return[Ft,_.sg,W,b.wG,M.kH,_.O5,v.Pl,Z]},styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.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;outline:0;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}),a})();const St=(0,b.Id)(class{});let W=(()=>{class a extends St{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(t.SBq))},a.\u0275dir=t.lG2({type:a,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,n){2&e&&(t.uIk("aria-disabled",!!n.disabled),t.ekj("mat-tab-disabled",n.disabled))},inputs:{disabled:"disabled"},features:[t.qOj]}),a})();const J=(0,g.i$)({passive:!0});let q=(()=>{class a{constructor(e,n,i,r,s,l,c){this._elementRef=e,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=s,this._platform=l,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new C.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new C.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new t.vpe,this.indexFocused=new t.vpe,s.runOutsideAngular(()=>{(0,D.R)(e.nativeElement,"mouseleave").pipe((0,u.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=(0,p.su)(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){(0,D.R)(this._previousPaginator.nativeElement,"touchstart",J).pipe((0,u.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,D.R)(this._nextPaginator.nativeElement,"touchstart",J).pipe((0,u.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:(0,rt.of)("ltr"),n=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new M.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,u.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(i)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,u.R)(this._destroyed)).subscribe(r=>{this.indexFocused.emit(r),this._setTabFocus(r)})}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(e){if(!(0,B.Vb)(e))switch(e.keyCode){case B.K5:case B.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",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(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const n=this._items?this._items.toArray()[e]:null;return!!n&&!n.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const n=this._tabListContainer.nativeElement;n.scrollLeft="ltr"==this._getLayoutDirection()?0:n.scrollWidth-n.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,n="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const n=this._items?this._items.toArray()[e]:null;if(!n)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:s}=n.elementRef.nativeElement;let l,c;"ltr"==this._getLayoutDirection()?(l=r,c=l+s):(c=this._tabList.nativeElement.offsetWidth-r,l=c-s);const k=this.scrollDistance,V=this.scrollDistance+i;l<k?this.scrollDistance-=k-l+60:c>V&&(this.scrollDistance+=c-V+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_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 e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&null!=n.button&&0!==n.button||(this._stopInterval(),(0,st.H)(650,100).pipe((0,u.R)((0,w.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:i,distance:r}=this._scrollHeader(e);(0===r||r>=i)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(y.rL),t.Y36(f.Is,8),t.Y36(t.R0b),t.Y36(g.t4),t.Y36(h.Qb,8))},a.\u0275dir=t.lG2({type:a,inputs:{disablePagination:"disablePagination"}}),a})(),Gt=(()=>{class a extends q{constructor(e,n,i,r,s,l,c){super(e,n,i,r,s,l,c),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=(0,p.Ig)(e)}_itemSelected(e){e.preventDefault()}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(y.rL),t.Y36(f.Is,8),t.Y36(t.R0b),t.Y36(g.t4),t.Y36(h.Qb,8))},a.\u0275dir=t.lG2({type:a,inputs:{disableRipple:"disableRipple"},features:[t.qOj]}),a})(),Ft=(()=>{class a extends Gt{constructor(e,n,i,r,s,l,c){super(e,n,i,r,s,l,c)}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(y.rL),t.Y36(f.Is,8),t.Y36(t.R0b),t.Y36(g.t4),t.Y36(h.Qb,8))},a.\u0275cmp=t.Xpm({type:a,selectors:[["mat-tab-header"]],contentQueries:function(e,n,i){if(1&e&&t.Suo(i,W,4),2&e){let r;t.iGM(r=t.CRH())&&(n._items=r)}},viewQuery:function(e,n){if(1&e&&(t.Gf(x,7),t.Gf(H,7),t.Gf(P,7),t.Gf(G,5),t.Gf(F,5)),2&e){let i;t.iGM(i=t.CRH())&&(n._inkBar=i.first),t.iGM(i=t.CRH())&&(n._tabListContainer=i.first),t.iGM(i=t.CRH())&&(n._tabList=i.first),t.iGM(i=t.CRH())&&(n._nextPaginator=i.first),t.iGM(i=t.CRH())&&(n._previousPaginator=i.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,n){2&e&&t.ekj("mat-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-tab-header-rtl","rtl"==n._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[t.qOj],ngContentSelectors:L,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(e,n){1&e&&(t.F$t(),t.TgZ(0,"div",0,1),t.NdJ("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(r){return n._handlePaginatorPress("before",r)})("touchend",function(){return n._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(r){return n._handleKeydown(r)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return n._onContentChanges()}),t.TgZ(7,"div",7),t.Hsn(8),t.qZA(),t._UZ(9,"mat-ink-bar"),t.qZA(),t.qZA(),t.TgZ(10,"div",8,9),t.NdJ("mousedown",function(r){return n._handlePaginatorPress("after",r)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),t._UZ(12,"div",2),t.qZA()),2&e&&(t.ekj("mat-tab-header-pagination-disabled",n._disableScrollBefore),t.Q6J("matRippleDisabled",n._disableScrollBefore||n.disableRipple),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===n._animationMode),t.xp6(5),t.ekj("mat-tab-header-pagination-disabled",n._disableScrollAfter),t.Q6J("matRippleDisabled",n._disableScrollAfter||n.disableRipple))},directives:[b.wG,I.wD,x],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;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}),a})(),Qt=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[[_.ez,b.BQ,v.eL,b.si,I.Q8,M.rt],b.BQ]}),a})();const Zt=["content"];function jt(a,o){if(1&a&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&a){const e=t.oxw().$implicit;t.Tol(e.class),t.xp6(1),t.Oqu(e.header)}}function Wt(a,o){if(1&a&&(t.TgZ(0,"mat-tab",4),t.YNc(1,jt,2,4,"ng-template",5),t._UZ(2,"aio-code",6),t.qZA()),2&a){const e=o.$implicit;t.xp6(2),t.Tol(e.class),t.Q6J("language",e.language)("linenums",e.linenums)("path",e.path)("region",e.region)("header",e.header)}}const Jt=["*"];let zt=(()=>{class a{ngOnInit(){this.tabs=[];const e=this.content.nativeElement,n=Array.from(e.querySelectorAll("code-pane"));for(const i of n)this.tabs.push(this.getTabInfo(i));e.textContent=""}ngAfterViewInit(){this.codeComponents.toArray().forEach((e,n)=>{e.code=this.tabs[n].code})}getTabInfo(e){return{class:e.getAttribute("class")||"",code:(0,X.Iv)(e),path:e.getAttribute("path")||"",region:e.getAttribute("region")||"",header:e.getAttribute("header")||void 0,language:e.getAttribute("language")||void 0,linenums:e.getAttribute("linenums")||this.linenums}}}return a.\u0275fac=function(e){return new(e||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["code-tabs"]],viewQuery:function(e,n){if(1&e&&(t.Gf(Zt,7),t.Gf(S.Q,5)),2&e){let i;t.iGM(i=t.CRH())&&(n.content=i.first),t.iGM(i=t.CRH())&&(n.codeComponents=i)}},inputs:{linenums:"linenums"},ngContentSelectors:Jt,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(e,n){1&e&&(t.F$t(),t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA(),t.TgZ(3,"mat-card"),t.TgZ(4,"mat-tab-group",2),t.YNc(5,Wt,3,8,"mat-tab",3),t.qZA(),t.qZA()),2&e&&(t.xp6(4),t.Q6J("disableRipple",!0),t.xp6(1),t.Q6J("ngForOf",n.tabs))},directives:[it,Rt,_.sg,Q,Ct,S.Q],encapsulation:2}),a})();var qt=d(9835);let $t=(()=>{class a{constructor(){this.customElementComponent=zt}}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[[_.ez,ot,Qt,qt.r]]}),a})()}}]);
//# sourceMappingURL=src_app_custom-elements_code_code-tabs_module_ts.70b93bcb32d88df6.js.map