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