-
Notifications
You must be signed in to change notification settings - Fork 1
/
src_app_custom-elements_code_code-tabs_module_ts.4dc939e7f781dc5e.js
2 lines (2 loc) · 50.9 KB
/
src_app_custom-elements_code_code-tabs_module_ts.4dc939e7f781dc5e.js
1
2
"use strict";(self.webpackChunksite=self.webpackChunksite||[]).push([["src_app_custom-elements_code_code-tabs_module_ts"],{9040:(Vt,A,c)=>{c.r(A),c.d(A,{CodeTabsModule:()=>Kt});var _=c(3267),P=c(6968),t=c(5460),h=c(6929);const z=["*"],Y=new t.UbH("MAT_CARD_CONFIG");let B=(()=>{var n;class o{constructor(e){this.appearance=e?.appearance||"raised"}}return(n=o).\u0275fac=function(e){return new(e||n)(t.GI1(Y,8))},n.\u0275cmp=t.In1({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(e,a){2&e&&t.eAK("mat-mdc-card-outlined","outlined"===a.appearance)("mdc-card--outlined","outlined"===a.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],standalone:!0,features:[t.UHJ],ngContentSelectors:z,decls:1,vars:0,template:function(e,a){1&e&&(t.kPM(),t._Xx(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0}),o})(),K=(()=>{var n;class o{}return(n=o).\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.a4G({type:n}),n.\u0275inj=t.s3X({imports:[h.AN,_.MD,h.AN]}),o})();var u=c(6886),f=c(3441),x=c(9555),V=c(972),T=c(3456),X=c(5272),J=c(576),Z=c(2600),p=c(2676),y=c(4092),v=c(264),k=c(4288),q=c(9480),R=c(7472),I=c(1908),g=c(8788),tt=c(1100),M=c(9248),et=c(9784),at=c(8172),nt=c(2440),it=c(9688),rt=c(1468),l=c(9156);function ot(n,o){1&n&&t._Xx(0)}const w=["*"],dt=["tabListContainer"],ct=["tabList"],st=["tabListInner"],lt=["nextPaginator"],mt=["previousPaginator"];function bt(n,o){}const ht=n=>({animationDuration:n}),_t=(n,o)=>({value:n,params:o}),ut=["tabBodyWrapper"],pt=["tabHeader"];function gt(n,o){}function ft(n,o){if(1&n&&t.yuY(0,gt,0,0,"ng-template",10),2&n){const i=t.GaO().$implicit;t.E7m("cdkPortalOutlet",i.templateLabel)}}function vt(n,o){if(1&n&&t.OEk(0),2&n){const i=t.GaO().$implicit;t.cNF(i.textLabel)}}function Ct(n,o){if(1&n){const i=t.KQA();t.I0R(0,"div",4,5),t.qCj("click",function(){const a=t.usT(i),r=a.$implicit,d=a.$index,s=t.GaO(),m=t.Gew(1);return t.CGJ(s._handleClick(r,m,d))})("cdkFocusChange",function(a){const d=t.usT(i).$index,s=t.GaO();return t.CGJ(s._tabFocusChanged(a,d))}),t.wR5(2,"span",6)(3,"div",7),t.I0R(4,"span",8)(5,"span",9),t.yuY(6,ft,1,1,null,10)(7,vt,1,1),t.C$Y()()()}if(2&n){const i=o.$implicit,e=o.$index,a=t.Gew(1),r=t.GaO();t.eAK("mdc-tab--active",r.selectedIndex===e),t.E7m("id",r._getTabLabelId(e))("ngClass",i.labelClass)("disabled",i.disabled)("fitInkBarToContent",r.fitInkBarToContent),t.e48("tabIndex",r._getTabIndex(e))("aria-posinset",e+1)("aria-setsize",r._tabs.length)("aria-controls",r._getTabContentId(e))("aria-selected",r.selectedIndex===e)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),t.yG2(3),t.E7m("matRippleTrigger",a)("matRippleDisabled",i.disabled||r.disableRipple),t.yG2(3),t.C0Y(6,i.templateLabel?6:7)}}function xt(n,o){1&n&&t._Xx(0)}function Tt(n,o){if(1&n){const i=t.KQA();t.I0R(0,"mat-tab-body",11),t.qCj("_onCentered",function(){t.usT(i);const a=t.GaO();return t.CGJ(a._removeTabBodyWrapperHeight())})("_onCentering",function(a){t.usT(i);const r=t.GaO();return t.CGJ(r._setTabBodyWrapperHeight(a))}),t.C$Y()}if(2&n){const i=o.$implicit,e=o.$index,a=t.GaO();t.eAK("mat-mdc-tab-body-active",a.selectedIndex===e),t.E7m("id",a._getTabContentId(e))("ngClass",i.bodyClass)("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",a.animationDuration)("preserveContent",a.preserveContent),t.e48("tabindex",null!=a.contentTabIndex&&a.selectedIndex===e?a.contentTabIndex:null)("aria-labelledby",a._getTabLabelId(e))("aria-hidden",a.selectedIndex!==e)}}const yt=new t.UbH("MatTabContent");let kt=(()=>{var n;class o{constructor(e){this.template=e}}return(n=o).\u0275fac=function(e){return new(e||n)(t.GI1(t.Yw2))},n.\u0275dir=t.Sc5({type:n,selectors:[["","matTabContent",""]],standalone:!0,features:[t.M5G([{provide:yt,useExisting:n}])]}),o})();const It=new t.UbH("MatTabLabel"),S=new t.UbH("MAT_TAB");let L=(()=>{var n;class o extends u.YT{constructor(e,a,r){super(e,a),this._closestTab=r}}return(n=o).\u0275fac=function(e){return new(e||n)(t.GI1(t.Yw2),t.GI1(t.y8U),t.GI1(S,8))},n.\u0275dir=t.Sc5({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[t.M5G([{provide:It,useExisting:n}]),t.eg9]}),o})();const E=new t.UbH("MAT_TAB_GROUP");let G=(()=>{var n;class o{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}constructor(e,a){this._viewContainerRef=e,this._closestTabGroup=a,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new f.E,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new u.CC(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return(n=o).\u0275fac=function(e){return new(e||n)(t.GI1(t.y8U),t.GI1(E,8))},n.\u0275cmp=t.In1({type:n,selectors:[["mat-tab"]],contentQueries:function(e,a,r){if(1&e&&(t.szK(r,L,5),t.szK(r,kt,7,t.Yw2)),2&e){let d;t.wto(d=t.Gqi())&&(a.templateLabel=d.first),t.wto(d=t.Gqi())&&(a._explicitContent=d.first)}},viewQuery:function(e,a){if(1&e&&t.CC$(t.Yw2,7),2&e){let r;t.wto(r=t.Gqi())&&(a._implicitContent=r.first)}},hostAttrs:["hidden",""],inputs:{disabled:[t.Wk5.HasDecoratorInputTransform,"disabled","disabled",t.cZD],textLabel:[t.Wk5.None,"label","textLabel"],ariaLabel:[t.Wk5.None,"aria-label","ariaLabel"],ariaLabelledby:[t.Wk5.None,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[t.M5G([{provide:S,useExisting:n}]),t.QJr,t.SYr,t.UHJ],ngContentSelectors:w,decls:1,vars:0,template:function(e,a){1&e&&(t.kPM(),t.yuY(0,ot,1,0,"ng-template"))},encapsulation:2}),o})();const D="mdc-tab-indicator--active",H="mdc-tab-indicator--no-transition";class Mt{constructor(o){this._items=o}hide(){this._items.forEach(o=>o.deactivateInkBar())}alignToElement(o){const i=this._items.find(a=>a.elementRef.nativeElement===o),e=this._currentItem;if(i!==e&&(e?.deactivateInkBar(),i)){const a=e?.elementRef.nativeElement.getBoundingClientRect?.();i.activateInkBar(a),this._currentItem=i}}}function wt(n){return class extends n{constructor(...o){super(...o),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(o){const i=(0,q.W6)(o);this._fitToContent!==i&&(this._fitToContent=i,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(o){const i=this.elementRef.nativeElement;if(!o||!i.getBoundingClientRect||!this._inkBarContentElement)return void i.classList.add(D);const e=i.getBoundingClientRect(),a=o.width/e.width,r=o.left-e.left;i.classList.add(H),this._inkBarContentElement.style.setProperty("transform",`translateX(${r}px) scaleX(${a})`),i.getBoundingClientRect(),i.classList.remove(H),i.classList.add(D),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(D)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const o=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=o.createElement("span"),this._inkBarContentElement=o.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const At=wt(class{});let F=(()=>{var n;class o extends At{constructor(e){super(),this.elementRef=e,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return(n=o).\u0275fac=function(e){return new(e||n)(t.GI1(t.GMv))},n.\u0275dir=t.Sc5({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,a){2&e&&(t.e48("aria-disabled",!!a.disabled),t.eAK("mat-mdc-tab-disabled",a.disabled))},inputs:{fitInkBarToContent:"fitInkBarToContent",disabled:[t.Wk5.HasDecoratorInputTransform,"disabled","disabled",t.cZD]},standalone:!0,features:[t.QJr,t.eg9]}),o})();const N=(0,v.W4)({passive:!0});let Rt=(()=>{var n;class o{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const a=isNaN(e)?0:e;this._selectedIndex!=a&&(this._selectedIndexChanged=!0,this._selectedIndex=a,this._keyManager&&this._keyManager.updateActiveItem(a))}constructor(e,a,r,d,s,m,b){this._elementRef=e,this._changeDetectorRef=a,this._viewportRuler=r,this._dir=d,this._ngZone=s,this._platform=m,this._animationMode=b,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new f.E,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new f.E,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new t._w7,this.indexFocused=new t._w7,s.runOutsideAngular(()=>{(0,x.w)(e.nativeElement,"mouseleave").pipe((0,g.a)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,x.w)(this._previousPaginator.nativeElement,"touchstart",N).pipe((0,g.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,x.w)(this._nextPaginator.nativeElement,"touchstart",N).pipe((0,g.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:(0,V.of)("ltr"),a=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new R.IH(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,tt.U)(1)).subscribe(r),(0,T.U)(e,a,this._items.changes,this._itemsResized()).pipe((0,g.a)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(d=>{this.indexFocused.emit(d),this._setTabFocus(d)})}_itemsResized(){return"function"!=typeof ResizeObserver?X.k:this._items.changes.pipe((0,M.W)(this._items),(0,et.G)(e=>new J._(a=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(d=>a.next(d));return e.forEach(d=>r.observe(d.elementRef.nativeElement)),()=>{r.disconnect()}}))),(0,at.s)(1),(0,nt.I)(e=>e.some(a=>a.contentRect.width>0&&a.contentRect.height>0)))}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._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!(0,I.Yp)(e))switch(e.keyCode){case I.wJ:case I.Gi:if(this.focusIndex!==this.selectedIndex){const a=this._items.get(this.focusIndex);a&&!a.disabled&&(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){return!this._items||!!this._items.toArray()[e]}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].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 e=this.scrollDistance,a="ltr"===this._getLayoutDirection()?-e:e;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(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 a=this._items?this._items.toArray()[e]:null;if(!a)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:d,offsetWidth:s}=a.elementRef.nativeElement;let m,b;"ltr"==this._getLayoutDirection()?(m=d,b=m+s):(b=this._tabListInner.nativeElement.offsetWidth-d,m=b-s);const C=this.scrollDistance,W=this.scrollDistance+r;m<C?this.scrollDistance-=C-m:b>W&&(this.scrollDistance+=Math.min(b-W,m-C))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.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._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,a=e?e.elementRef.nativeElement:null;a?this._inkBar.alignToElement(a):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,a){a&&null!=a.button&&0!==a.button||(this._stopInterval(),(0,Z.k)(650,100).pipe((0,g.a)((0,T.U)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:d}=this._scrollHeader(e);(0===d||d>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const a=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(a,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:a,distance:this._scrollDistance}}}return(n=o).\u0275fac=function(e){return new(e||n)(t.GI1(t.GMv),t.GI1(t.kD9),t.GI1(y.S8),t.GI1(k.yG,8),t.GI1(t.WW2),t.GI1(v.WU),t.GI1(t.qwP,8))},n.\u0275dir=t.Sc5({type:n,inputs:{disablePagination:[t.Wk5.HasDecoratorInputTransform,"disablePagination","disablePagination",t.cZD],selectedIndex:[t.Wk5.HasDecoratorInputTransform,"selectedIndex","selectedIndex",t.cJ3]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[t.QJr]}),o})(),St=(()=>{var n;class o extends Rt{constructor(e,a,r,d,s,m,b){super(e,a,r,d,s,m,b),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new Mt(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}}return(n=o).\u0275fac=function(e){return new(e||n)(t.GI1(t.GMv),t.GI1(t.kD9),t.GI1(y.S8),t.GI1(k.yG,8),t.GI1(t.WW2),t.GI1(v.WU),t.GI1(t.qwP,8))},n.\u0275cmp=t.In1({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,a,r){if(1&e&&t.szK(r,F,4),2&e){let d;t.wto(d=t.Gqi())&&(a._items=d)}},viewQuery:function(e,a){if(1&e&&(t.CC$(dt,7),t.CC$(ct,7),t.CC$(st,7),t.CC$(lt,5),t.CC$(mt,5)),2&e){let r;t.wto(r=t.Gqi())&&(a._tabListContainer=r.first),t.wto(r=t.Gqi())&&(a._tabList=r.first),t.wto(r=t.Gqi())&&(a._tabListInner=r.first),t.wto(r=t.Gqi())&&(a._nextPaginator=r.first),t.wto(r=t.Gqi())&&(a._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,a){2&e&&t.eAK("mat-mdc-tab-header-pagination-controls-enabled",a._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==a._getLayoutDirection())},inputs:{disableRipple:[t.Wk5.HasDecoratorInputTransform,"disableRipple","disableRipple",t.cZD]},standalone:!0,features:[t.QJr,t.eg9,t.UHJ],ngContentSelectors:w,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,a){1&e&&(t.kPM(),t.I0R(0,"button",0,1),t.qCj("click",function(){return a._handlePaginatorClick("before")})("mousedown",function(d){return a._handlePaginatorPress("before",d)})("touchend",function(){return a._stopInterval()}),t.wR5(2,"div",2),t.C$Y(),t.I0R(3,"div",3,4),t.qCj("keydown",function(d){return a._handleKeydown(d)}),t.I0R(5,"div",5,6),t.qCj("cdkObserveContent",function(){return a._onContentChanges()}),t.I0R(7,"div",7,8),t._Xx(9),t.C$Y()()(),t.I0R(10,"button",9,10),t.qCj("mousedown",function(d){return a._handlePaginatorPress("after",d)})("click",function(){return a._handlePaginatorClick("after")})("touchend",function(){return a._stopInterval()}),t.wR5(12,"div",2),t.C$Y()),2&e&&(t.eAK("mat-mdc-tab-header-pagination-disabled",a._disableScrollBefore),t.E7m("matRippleDisabled",a._disableScrollBefore||a.disableRipple)("disabled",a._disableScrollBefore||null),t.yG2(3),t.eAK("_mat-animation-noopable","NoopAnimations"===a._animationMode),t.yG2(7),t.eAK("mat-mdc-tab-header-pagination-disabled",a._disableScrollAfter),t.E7m("matRippleDisabled",a._disableScrollAfter||a.disableRipple)("disabled",a._disableScrollAfter||null))},dependencies:[h.UZ,rt.Wk],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-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:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2}),o})();const Lt=new t.UbH("MAT_TABS_CONFIG"),Et={translateTab:(0,l.gV)("translateTab",[(0,l.K2)("center, void, left-origin-center, right-origin-center",(0,l.wb)({transform:"none"})),(0,l.K2)("left",(0,l.wb)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,l.K2)("right",(0,l.wb)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,l.aK)("* => left, * => right, left => center, right => center",(0,l.Cs)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,l.aK)("void => left-origin-center",[(0,l.wb)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,l.Cs)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,l.aK)("void => right-origin-center",[(0,l.wb)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,l.Cs)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Gt=(()=>{var n;class o extends u.IP{constructor(e,a,r,d){super(e,a,d),this._host=r,this._centeringSub=p.wH.EMPTY,this._leavingSub=p.wH.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,M.W)(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return(n=o).\u0275fac=function(e){return new(e||n)(t.GI1(t.ce5),t.GI1(t.y8U),t.GI1((0,t.wd)(()=>O)),t.GI1(_.Ud))},n.\u0275dir=t.Sc5({type:n,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[t.eg9]}),o})(),O=(()=>{var n;class o{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,a,r){this._elementRef=e,this._dir=a,this._dirChangeSubscription=p.wH.EMPTY,this._translateTabComplete=new f.E,this._onCentering=new t._w7,this._beforeCentering=new t._w7,this._afterLeavingCenter=new t._w7,this._onCentered=new t._w7(!0),this.animationDuration="500ms",this.preserveContent=!1,a&&(this._dirChangeSubscription=a.change.subscribe(d=>{this._computePositionAnimationState(d),r.markForCheck()})),this._translateTabComplete.pipe((0,it.a)((d,s)=>d.fromState===s.fromState&&d.toState===s.toState)).subscribe(d=>{this._isCenterPosition(d.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(d.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const a=this._isCenterPosition(e.toState);this._beforeCentering.emit(a),a&&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 a=this._getLayoutDirection();return"ltr"==a&&e<=0||"rtl"==a&&e>0?"left-origin-center":"right-origin-center"}}return(n=o).\u0275fac=function(e){return new(e||n)(t.GI1(t.GMv),t.GI1(k.yG,8),t.GI1(t.kD9))},n.\u0275cmp=t.In1({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,a){if(1&e&&t.CC$(u.IP,5),2&e){let r;t.wto(r=t.Gqi())&&(a._portalHost=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[t.Wk5.None,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[t.UHJ],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,a){1&e&&(t.I0R(0,"div",0,1),t.qCj("@translateTab.start",function(d){return a._onTranslateTabStarted(d)})("@translateTab.done",function(d){return a._translateTabComplete.next(d)}),t.yuY(2,bt,0,0,"ng-template",2),t.C$Y()),2&e&&t.E7m("@translateTab",t.IBC(3,_t,a._position,t.S45(1,ht,a.animationDuration)))},dependencies:[Gt,y.Ci],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Et.translateTab]}}),o})(),Ht=0,Nt=(()=>{var n;class o{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}get animationDuration(){return this._animationDuration}set animationDuration(e){const a=e+"";this._animationDuration=/^\d+$/.test(a)?e+"ms":a}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const a=this._elementRef.nativeElement.classList;a.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&a.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,a,r,d){this._elementRef=e,this._changeDetectorRef=a,this._animationMode=d,this._tabs=new t.VhX,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=p.wH.EMPTY,this._tabLabelSubscription=p.wH.EMPTY,this._fitInkBarToContent=!1,this.stretchTabs=!0,this.dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.disablePagination=!1,this.disableRipple=!1,this.preserveContent=!1,this.selectedIndexChange=new t._w7,this.focusChange=new t._w7,this.animationDone=new t._w7,this.selectedTabChange=new t._w7(!0),this._isServer=!(0,t.uUt)(v.WU).isBrowser,this._groupId=Ht++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,null!=r?.contentTabIndex&&(this.contentTabIndex=r.contentTabIndex),this.preserveContent=!!r?.preserveContent,this.fitInkBarToContent=!(!r||null==r.fitInkBarToContent)&&r.fitInkBarToContent,this.stretchTabs=!r||null==r.stretchTabs||r.stretchTabs}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const a=null==this._selectedIndex;if(!a){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,d)=>r.isActive=d===e),a||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((a,r)=>{a.position=r-e,null!=this._selectedIndex&&0==a.position&&!a.origin&&(a.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const a=this._tabs.toArray();let r;for(let d=0;d<a.length;d++)if(a[d].isActive){this._indexToSelect=this._selectedIndex=d,this._lastFocusedTabIndex=null,r=a[d];break}!r&&a[e]&&Promise.resolve().then(()=>{a[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,M.W)(this._allTabs)).subscribe(e=>{this._tabs.reset(e.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()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const a=this._tabHeader;a&&(a.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const a=new Ot;return a.index=e,this._tabs&&this._tabs.length&&(a.tab=this._tabs.toArray()[e]),a}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,T.U)(...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 a=this._tabBodyWrapper.nativeElement;a.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(a.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,a,r){a.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,a){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=a)}}return(n=o).\u0275fac=function(e){return new(e||n)(t.GI1(t.GMv),t.GI1(t.kD9),t.GI1(Lt,8),t.GI1(t.qwP,8))},n.\u0275cmp=t.In1({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,a,r){if(1&e&&t.szK(r,G,5),2&e){let d;t.wto(d=t.Gqi())&&(a._allTabs=d)}},viewQuery:function(e,a){if(1&e&&(t.CC$(ut,5),t.CC$(pt,5)),2&e){let r;t.wto(r=t.Gqi())&&(a._tabBodyWrapper=r.first),t.wto(r=t.Gqi())&&(a._tabHeader=r.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(e,a){2&e&&(t.m8U("mat-"+(a.color||"primary")),t.m4B("--mat-tab-animation-duration",a.animationDuration),t.eAK("mat-mdc-tab-group-dynamic-height",a.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===a.headerPosition)("mat-mdc-tab-group-stretch-tabs",a.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[t.Wk5.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",t.cZD],stretchTabs:[t.Wk5.HasDecoratorInputTransform,"mat-stretch-tabs","stretchTabs",t.cZD],dynamicHeight:[t.Wk5.HasDecoratorInputTransform,"dynamicHeight","dynamicHeight",t.cZD],selectedIndex:[t.Wk5.HasDecoratorInputTransform,"selectedIndex","selectedIndex",t.cJ3],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[t.Wk5.HasDecoratorInputTransform,"contentTabIndex","contentTabIndex",t.cJ3],disablePagination:[t.Wk5.HasDecoratorInputTransform,"disablePagination","disablePagination",t.cZD],disableRipple:[t.Wk5.HasDecoratorInputTransform,"disableRipple","disableRipple",t.cZD],preserveContent:[t.Wk5.HasDecoratorInputTransform,"preserveContent","preserveContent",t.cZD],backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[t.M5G([{provide:E,useExisting:n}]),t.QJr,t.UHJ],ngContentSelectors:w,decls:9,vars:6,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent"]],template:function(e,a){1&e&&(t.kPM(),t.I0R(0,"mat-tab-header",0,1),t.qCj("indexFocused",function(d){return a._focusChanged(d)})("selectFocusedIndex",function(d){return a.selectedIndex=d}),t.c53(2,Ct,8,16,"div",12,t.oxv),t.C$Y(),t.yuY(4,xt,1,0),t.I0R(5,"div",2,3),t.c53(7,Tt,1,12,"mat-tab-body",13,t.oxv),t.C$Y()),2&e&&(t.E7m("selectedIndex",a.selectedIndex||0)("disableRipple",a.disableRipple)("disablePagination",a.disablePagination),t.yG2(2),t.oho(a._tabs),t.yG2(2),t.C0Y(4,a._isServer?4:-1),t.yG2(),t.eAK("_mat-animation-noopable","NoopAnimations"===a._animationMode),t.yG2(2),t.oho(a._tabs))},dependencies:[St,F,R.Si,_.QF,h.UZ,u.IP,O],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2}),o})();class Ot{}let Wt=(()=>{var n;class o{}return(n=o).\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.a4G({type:n}),n.\u0275inj=t.s3X({imports:[h.AN,h.AN]}),o})();const zt=["content"];function $t(n,o){if(1&n&&(t.I0R(0,"span"),t.OEk(1),t.C$Y()),2&n){const i=t.GaO().$implicit;t.m8U(i.class),t.yG2(),t.cNF(i.header)}}function jt(n,o){if(1&n&&(t.I0R(0,"mat-tab",4),t.yuY(1,$t,2,4,"ng-template",5),t.wR5(2,"aio-code",6),t.C$Y()),2&n){const i=o.$implicit;t.yG2(2),t.m8U(i.class),t.E7m("language",i.language)("linenums",i.linenums)("path",i.path)("region",i.region)("header",i.header)}}const Ut=["*"];let Qt=(()=>{var n;class o{ngOnInit(){this.tabs=[];const e=this.content.nativeElement.querySelectorAll("code-pane");for(let a=0;a<e.length;a++)this.tabs.push(this.getTabInfo(e[a]))}ngAfterViewInit(){this.codeComponents.toArray().forEach((e,a)=>{e.code=this.tabs[a].code})}getTabInfo(e){return{class:e.getAttribute("class"),code:e.innerHTML,language:e.getAttribute("language"),linenums:e.getAttribute("linenums")||this.linenums,path:e.getAttribute("path")||"",region:e.getAttribute("region")||"",header:e.getAttribute("header")}}}return(n=o).\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.In1({type:n,selectors:[["code-tabs"]],viewQuery:function(e,a){if(1&e&&(t.CC$(zt,7),t.CC$(P.S,5)),2&e){let r;t.wto(r=t.Gqi())&&(a.content=r.first),t.wto(r=t.Gqi())&&(a.codeComponents=r)}},inputs:{linenums:"linenums"},ngContentSelectors:Ut,decls:6,vars:1,consts:[[2,"display","none"],["content",""],["disableRipple","",1,"code-tab-group"],["style","overflow-y: hidden;",4,"ngFor","ngForOf"],[2,"overflow-y","hidden"],["mat-tab-label",""],[3,"language","linenums","path","region","header"]],template:function(e,a){1&e&&(t.kPM(),t.I0R(0,"div",0,1),t._Xx(2),t.C$Y(),t.I0R(3,"mat-card")(4,"mat-tab-group",2),t.yuY(5,jt,3,8,"mat-tab",3),t.C$Y()()),2&e&&(t.yG2(5),t.E7m("ngForOf",a.tabs))},dependencies:[_.ay,B,L,G,Nt,P.S],encapsulation:2}),o})();var Yt=c(7996);let Kt=(()=>{var n;class o{constructor(){this.customElementComponent=Qt}}return(n=o).\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.a4G({type:n}),n.\u0275inj=t.s3X({imports:[_.MD,K,Wt,Yt.e]}),o})()}}]);
//# sourceMappingURL=src_app_custom-elements_code_code-tabs_module_ts.4dc939e7f781dc5e.js.map