inferyx-codegate 1.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- codegate/__init__.py +8 -0
- codegate/__main__.py +3 -0
- codegate/api/__init__.py +0 -0
- codegate/api/admin.py +457 -0
- codegate/api/deps.py +36 -0
- codegate/api/devproxy.py +132 -0
- codegate/api/public.py +371 -0
- codegate/app.py +115 -0
- codegate/auth/__init__.py +0 -0
- codegate/auth/csrf.py +43 -0
- codegate/auth/native.py +111 -0
- codegate/auth/passwords.py +88 -0
- codegate/auth/saml.py +222 -0
- codegate/auth/sessions.py +121 -0
- codegate/cli/__init__.py +0 -0
- codegate/cli/auth_cmd.py +168 -0
- codegate/cli/backup_cmd.py +114 -0
- codegate/cli/common.py +103 -0
- codegate/cli/doctor_cmd.py +136 -0
- codegate/cli/main.py +526 -0
- codegate/cli/nginx_setup.py +220 -0
- codegate/cli/setup_cmd.py +401 -0
- codegate/cli/ssh_setup.py +114 -0
- codegate/cli/upgrade_cmd.py +209 -0
- codegate/config.py +161 -0
- codegate/db.py +297 -0
- codegate/errors.py +122 -0
- codegate/jobs.py +133 -0
- codegate/pages.py +177 -0
- codegate/resources/__init__.py +20 -0
- codegate/resources/docker/Dockerfile +36 -0
- codegate/resources/nginx/codegate.conf.tmpl +51 -0
- codegate/resources/nginx/map.conf +5 -0
- codegate/resources/nginx/site.conf.tmpl +9 -0
- codegate/resources/nginx/user.conf.tmpl +19 -0
- codegate/resources/systemd/codegate-backup.service.tmpl +7 -0
- codegate/resources/systemd/codegate-backup.timer +10 -0
- codegate/resources/systemd/codegate.service.tmpl +20 -0
- codegate/static/admin/3rdpartylicenses.txt +614 -0
- codegate/static/admin/chunk-0r_p7pcB.js +672 -0
- codegate/static/admin/chunk-BoGqYCjO.js +1260 -0
- codegate/static/admin/chunk-BqiJ460N.js +1269 -0
- codegate/static/admin/chunk-BtoaIoDj.js +449 -0
- codegate/static/admin/chunk-CB4E-q63.js +255 -0
- codegate/static/admin/chunk-CMN75K3s.js +181 -0
- codegate/static/admin/chunk-CW_CPa20.js +106 -0
- codegate/static/admin/chunk-CcgsCK7w.js +393 -0
- codegate/static/admin/chunk-Cjwyuum6.js +375 -0
- codegate/static/admin/chunk-D6j6hnz3.js +1 -0
- codegate/static/admin/chunk-D9RytJgO.js +1 -0
- codegate/static/admin/chunk-DA6TldFU.js +35 -0
- codegate/static/admin/chunk-DFGdyoNb.js +1 -0
- codegate/static/admin/chunk-DXvCZ3pT.js +1 -0
- codegate/static/admin/chunk-DstgVdtz.js +27 -0
- codegate/static/admin/chunk-kPDFCwHP.js +102 -0
- codegate/static/admin/chunk-yikJ2ObQ.js +1 -0
- codegate/static/admin/favicon.ico +0 -0
- codegate/static/admin/index.html +14 -0
- codegate/static/admin/main-LWBML7JF.js +2347 -0
- codegate/static/admin/media/material-icons-JLIDJUWE.woff +0 -0
- codegate/static/admin/media/material-icons-LEZCGFVT.woff2 +0 -0
- codegate/static/admin/styles-YWRWGLKG.css +1 -0
- codegate/system/__init__.py +27 -0
- codegate/system/base.py +165 -0
- codegate/system/devdocker.py +90 -0
- codegate/system/fake.py +199 -0
- codegate/system/real.py +493 -0
- codegate/system/shell.py +40 -0
- codegate/users.py +262 -0
- codegate/workspace.py +355 -0
- inferyx_codegate-1.1.0.dist-info/METADATA +217 -0
- inferyx_codegate-1.1.0.dist-info/RECORD +74 -0
- inferyx_codegate-1.1.0.dist-info/WHEEL +4 -0
- inferyx_codegate-1.1.0.dist-info/entry_points.txt +2 -0
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
import{n as j,t as L}from"./chunk-CB4E-q63.js";import{o as ba,s as ve}from"./chunk-0r_p7pcB.js";import{$n as eC,$r as yC,An as Yo,Ar as oe,Bn as ab,Br as sb,Bt as Lr,Cn as Wn$1,Dn as Xs,Dt as Hw,E as Ai,Ft as Ko,Gr as wS,Gt as Nt$1,Hn as ae,Ir as qr,Jn as cW,Kn as bS,Ln as _T,Mr as po,N as L$1,Nr as q,Nt as Ke,O as Bi,On as Y,Or as ob,Ot as Ib,Pt as Km,Qn as db,Qt as P,Rn as _s,Rr as rb,Rt as Lg,Sn as Wg,Sr as m,St as Gn$1,Tn as X8,Tr as me,Tt as He,Un as ao,Ut as Mr,Vn as ad,Vt as Lw,Wt as Mw,Xn as ct,Xr as xe,Xt as Ou,Yn as cb,Yt as Og,Zn as dS,Zt as Oy,at as Ar,b as Ut,bn as Wd,cn as Qy,cr as ge,dn as Rg,dr as ib,dt as Cb,ei as yI,et as z,fn as T,gn as Ve,gr as jn$1,h as on$1,hn as Uw,hr as jg,i as In,ii as zw,in as QT,ir as g,jn as Ys,kn as Ye,kr as od,kt as Ip,lr as hn,lt as Bv,mn as Ug,mt as Dc,n as Fn$1,ni as zd,nr as fo,on as Qg,or as gI,ot as Aw,pn as Te,q as me$1,qn as bn,qr as wp,qt as Nw,r as He$1,ri as zo,rn as Pr,rt as $r,sn as Qo,sr as gT,st as B,t as $t,tn as Pg,tr as fe,u as an$1,ur as i8,ut as CS,v as zt,vr as jw,wt as Gy,x as ue,xn as Wf,xt as Gg,y as pt,yr as ke,yt as F3,zn as aW,zr as s8}from"./main-LWBML7JF.js";import{a as l,i,n as f,o as s,r as g$1,t as c}from"./chunk-D6j6hnz3.js";import{n as ke$1,t as ie}from"./chunk-BtoaIoDj.js";import"./chunk-DA6TldFU.js";import{n as Pe,t as Be}from"./chunk-DstgVdtz.js";import{c as Ve$1,d as Xt,h as vn$1,n as Bt$1,o as Qr,r as Ce,s as Qt,t as Be$1,u as Xr}from"./chunk-BoGqYCjO.js";import{n as _t,t as Vt}from"./chunk-CW_CPa20.js";var gn=new g(`MatTabContent`);var fn=(()=>{class a{template=m(Mr);static ɵfac=function(e){return new(e||a)};static ɵdir=xe({type:a,selectors:[[``,`matTabContent`,``]],features:[db([{provide:gn,useExisting:a}])]})}return a})();var vn=new g(`MatTabLabel`);var on=new g(`MAT_TAB`);var yn=(()=>{class a extends Ai{_closestTab=m(on,{optional:!0});static ɵfac=(()=>{let t;return function(n){return(t||(t=Km(a)))(n||a)}})();static ɵdir=xe({type:a,selectors:[[``,`mat-tab-label`,``],[``,`matTabLabel`,``]],features:[db([{provide:vn,useExisting:a}]),Lr]})}return a})();var rn=new g(`MAT_TAB_GROUP`);var Rt=(()=>{class a{_viewContainerRef=m(Pr);_closestTabGroup=m(rn,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel=``;ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new B;position=null;origin=null;isActive=!1;constructor(){m(Nt$1).load(Gy)}ngOnChanges(t){(Object.hasOwn(t,`textLabel`)||Object.hasOwn(t,`disabled`))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new z(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&t._closestTab===this&&(this._templateLabel=t)}static ɵfac=function(e){return new(e||a)};static ɵcmp=(function(){let t=[`*`];function e(n,l){n&1&&Ye(0)}return Te({type:a,selectors:[[`mat-tab`]],contentQueries:function(l,v,w){if(l&1&&Wg(w,yn,5)(w,fn,7,Mr),l&2){let P;Hw(P=Uw())&&(v.templateLabel=P.first),Hw(P=Uw())&&(v._explicitContent=P.first)}},viewQuery:function(l,v){if(l&1&&Gg(Mr,7),l&2){let w;Hw(w=Uw())&&(v._implicitContent=w.first)}},hostAttrs:[`hidden`,``],hostVars:1,hostBindings:function(l,v){l&2&&Wn$1(`id`,null)},inputs:{disabled:[2,`disabled`,`disabled`,Ke],textLabel:[0,`label`,`textLabel`],ariaLabel:[0,`aria-label`,`ariaLabel`],ariaLabelledby:[0,`aria-labelledby`,`ariaLabelledby`],labelClass:`labelClass`,bodyClass:`bodyClass`,id:`id`},exportAs:[`matTab`],features:[db([{provide:on,useExisting:a}]),Xs],ngContentSelectors:t,decls:1,vars:0,template:function(l,v){l&1&&(Gn$1(),Og(0,e,1,0,`ng-template`))},encapsulation:2,changeDetection:1})})()}return a})();var Et=`mdc-tab-indicator--active`;var en=`mdc-tab-indicator--no-transition`;var Lt=class{_items;_currentItem;constructor(s){this._items=s}hide(){this._items.forEach(s=>s.deactivateInkBar()),this._currentItem=void 0}alignToElement(s){let t=this._items.find(n=>n.elementRef.nativeElement===s),e=this._currentItem;if(t!==e&&(e?.deactivateInkBar(),t)){let n=e?.elementRef.nativeElement.getBoundingClientRect?.();t.activateInkBar(n),this._currentItem=t}}};var xn=(()=>{class a{_elementRef=m(oe);_inkBarElement=null;_inkBarContentElement=null;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){this._fitToContent!==t&&(this._fitToContent=t,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){let e=this._elementRef.nativeElement;if(!t||!e.getBoundingClientRect||!this._inkBarContentElement){e.classList.add(Et);return}let n=e.getBoundingClientRect(),l=t.width/n.width,v=t.left-n.left;e.classList.add(en),this._inkBarContentElement.style.setProperty(`transform`,`translateX(${v}px) scaleX(${l})`),e.getBoundingClientRect(),e.classList.remove(en),e.classList.add(Et),this._inkBarContentElement.style.setProperty(`transform`,``)}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(Et)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let t=this._elementRef.nativeElement.ownerDocument||document,e=this._inkBarElement=t.createElement(`span`),n=this._inkBarContentElement=t.createElement(`span`);e.className=`mdc-tab-indicator`,n.className=`mdc-tab-indicator__content mdc-tab-indicator__content--underline`,e.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;(this._fitToContent?this._elementRef.nativeElement.querySelector(`.mdc-tab__content`):this._elementRef.nativeElement).appendChild(this._inkBarElement)}static ɵfac=function(e){return new(e||a)};static ɵdir=xe({type:a,inputs:{fitInkBarToContent:[2,`fitInkBarToContent`,`fitInkBarToContent`,Ke]}})}return a})();var sn=(()=>{class a extends xn{elementRef=m(oe);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static ɵfac=(()=>{let t;return function(n){return(t||(t=Km(a)))(n||a)}})();static ɵdir=xe({type:a,selectors:[[``,`matTabLabelWrapper`,``]],hostVars:3,hostBindings:function(e,n){e&2&&(Wn$1(`aria-disabled`,!!n.disabled),ct(`mat-mdc-tab-disabled`,n.disabled))},inputs:{disabled:[2,`disabled`,`disabled`,Ke]},features:[Lr]})}return a})();var nn={passive:!0};var Cn=650;var kn=100;function Pt(a){let s=a+``;return/^[0-9]+(?:\.[0-9]+)?$/.test(s)?`${a}ms`:/^[0-9]+(?:\.[0-9]+)?(?:ms|s)$/.test(s)?s:``}var wn=(()=>{class a{_elementRef=m(oe);_changeDetectorRef=m(eC);_viewportRuler=m(L$1);_dir=m(gT,{optional:!0});_ngZone=m(P);_platform=m(ge);_sharedResizeObserver=m(Bt$1);_injector=m(Y);_renderer=m(Ar);_animationsDisabled=qr();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new B;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged=!1;_keyManager;_currentTextContent;_stopScrolling=new B;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let e=isNaN(t)?0:t;this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}_selectedIndex=0;selectFocusedIndex=new me;indexFocused=new me;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,`mouseleave`,()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,`touchstart`,()=>this._handlePaginatorPress(`before`),nn),this._renderer.listen(this._nextPaginator.nativeElement,`touchstart`,()=>this._handlePaginatorPress(`after`),nn))}ngAfterContentInit(){let t=this._dir?this._dir.change:Ve(`ltr`),e=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(bn(32),po(this._destroyed)),n=this._viewportRuler.change(150).pipe(po(this._destroyed)),l=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new zd(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),Ou(l,{injector:this._injector}),Bv(t,n,e,this._items.changes,this._itemsResized()).pipe(po(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),l()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(v=>{this.indexFocused.emit(v),this._setTabFocus(v)})}_itemsResized(){return typeof ResizeObserver!=`function`?hn:this._items.changes.pipe(Dc(this._items),Wf(t=>new T(e=>this._ngZone.runOutsideAngular(()=>{let n=new ResizeObserver(l=>e.next(l));return t.forEach(l=>n.observe(l.elementRef.nativeElement)),()=>{n.disconnect()}}))),fo(1),He(t=>t.some(e=>e.contentRect.width>0&&e.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._eventCleanups.forEach(t=>t()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Oy(t))switch(t.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let e=this._items.get(this.focusIndex);e&&!e.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t))}break;default:this._keyManager?.onKeydown(t)}}_onContentChanges(){let 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){return this._items?!!this._items.toArray()[t]:!0}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();let e=this._tabListContainer.nativeElement;this._getLayoutDirection()==`ltr`?e.scrollLeft=0:e.scrollLeft=e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value===`rtl`?`rtl`:`ltr`}_updateTabScrollPosition(){if(this.disablePagination)return;let t=this.scrollDistance,e=this._getLayoutDirection()===`ltr`?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}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){let e=this._tabListContainer.nativeElement.offsetWidth,n=(t==`before`?-1:1)*e/3;return this._scrollTo(this._scrollDistance+n)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;let e=this._items?this._items.toArray()[t]:null;if(!e)return;let n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:l,offsetWidth:v}=e.elementRef.nativeElement,w,P;this._getLayoutDirection()==`ltr`?(w=l,P=w+v):(P=this._tabListInner.nativeElement.offsetWidth-l,w=P-v);let L=this.scrollDistance,h=this.scrollDistance+n;w<L?this.scrollDistance-=L-w:P>h&&(this.scrollDistance+=Math.min(P-h,w-L))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let n=this._tabListInner.nativeElement.scrollWidth-this._elementRef.nativeElement.offsetWidth>=5;n||(this.scrollDistance=0),n!==this._showPaginationControls&&(this._showPaginationControls=n,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){let t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&e.button!=null&&e.button!==0||(this._stopInterval(),ao(Cn,kn).pipe(po(Bv(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:n,distance:l}=this._scrollHeader(t);(l===0||l>=n)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}static ɵfac=function(e){return new(e||a)};static ɵdir=xe({type:a,inputs:{disablePagination:[2,`disablePagination`,`disablePagination`,Ke],selectedIndex:[2,`selectedIndex`,`selectedIndex`,Cb]},outputs:{selectFocusedIndex:`selectFocusedIndex`,indexFocused:`indexFocused`}})}return a})();var Tn=(()=>{class a extends wn{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new Lt(this._items),super.ngAfterContentInit()}_itemSelected(t){t.preventDefault()}static ɵfac=(()=>{let t;return function(n){return(t||(t=Km(a)))(n||a)}})();static ɵcmp=(function(){let t=[`tabListContainer`],e=[`tabList`],n=[`tabListInner`],l=[`nextPaginator`],v=[`previousPaginator`];return Te({type:a,selectors:[[`mat-tab-header`]],contentQueries:function(L,h,u){if(L&1&&Wg(u,sn,4),L&2){let f;Hw(f=Uw())&&(h._items=f)}},viewQuery:function(L,h){if(L&1&&Gg(t,7)(e,7)(n,7)(l,5)(v,5),L&2){let u;Hw(u=Uw())&&(h._tabListContainer=u.first),Hw(u=Uw())&&(h._tabList=u.first),Hw(u=Uw())&&(h._tabListInner=u.first),Hw(u=Uw())&&(h._nextPaginator=u.first),Hw(u=Uw())&&(h._previousPaginator=u.first)}},hostAttrs:[1,`mat-mdc-tab-header`],hostVars:4,hostBindings:function(L,h){L&2&&ct(`mat-mdc-tab-header-pagination-controls-enabled`,h._showPaginationControls)(`mat-mdc-tab-header-rtl`,h._getLayoutDirection()==`rtl`)},inputs:{ariaLabel:[0,`aria-label`,`ariaLabel`],ariaLabelledby:[0,`aria-labelledby`,`ariaLabelledby`],disableRipple:[2,`disableRipple`,`disableRipple`,Ke]},features:[Lr],ngContentSelectors:[`*`],decls:13,vars:10,consts:[[`previousPaginator`,``],[`tabListContainer`,``],[`tabList`,``],[`tabListInner`,``],[`nextPaginator`,``],[`mat-ripple`,``,1,`mat-mdc-tab-header-pagination`,`mat-mdc-tab-header-pagination-before`,3,`click`,`mousedown`,`touchend`,`matRippleDisabled`],[1,`mat-mdc-tab-header-pagination-chevron`],[1,`mat-mdc-tab-label-container`,3,`keydown`],[`role`,`tablist`,1,`mat-mdc-tab-list`,3,`cdkObserveContent`],[1,`mat-mdc-tab-labels`],[`mat-ripple`,``,1,`mat-mdc-tab-header-pagination`,`mat-mdc-tab-header-pagination-after`,3,`mousedown`,`click`,`touchend`,`matRippleDisabled`]],template:function(L,h){L&1&&(Gn$1(),Ys(0,`div`,5,0),Ug(`click`,function(){return h._handlePaginatorClick(`before`)})(`mousedown`,function(f){return h._handlePaginatorPress(`before`,f)})(`touchend`,function(){return h._stopInterval()}),jg(2,`div`,6),od(),Ys(3,`div`,7,1),Ug(`keydown`,function(f){return h._handleKeydown(f)}),Ys(5,`div`,8,2),Ug(`cdkObserveContent`,function(){return h._onContentChanges()}),Ys(7,`div`,9,3),Ye(9),od()()(),Ys(10,`div`,10,4),Ug(`mousedown`,function(f){return h._handlePaginatorPress(`after`,f)})(`click`,function(){return h._handlePaginatorClick(`after`)})(`touchend`,function(){return h._stopInterval()}),jg(12,`div`,6),od()),L&2&&(ct(`mat-mdc-tab-header-pagination-disabled`,h._disableScrollBefore),Lg(`matRippleDisabled`,h._disableScrollBefore||h.disableRipple),zo(3),ct(`_mat-animation-noopable`,h._animationsDisabled),zo(2),Wn$1(`aria-label`,h.ariaLabel||null)(`aria-labelledby`,h.ariaLabelledby||null),zo(5),ct(`mat-mdc-tab-header-pagination-disabled`,h._disableScrollAfter),Lg(`matRippleDisabled`,h._disableScrollAfter||h.disableRipple))},dependencies:[F3,X8],styles:[`.mat-mdc-tab-header {
|
|
2
|
+
display: flex;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
position: relative;
|
|
5
|
+
flex-shrink: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.mdc-tab-indicator .mdc-tab-indicator__content {
|
|
9
|
+
transition-duration: var(--%NS%mat-tab-header-animation-duration, 250ms);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.mat-mdc-tab-header-pagination {
|
|
13
|
+
-webkit-user-select: none;
|
|
14
|
+
user-select: none;
|
|
15
|
+
position: relative;
|
|
16
|
+
display: none;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
min-width: 32px;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
z-index: 2;
|
|
22
|
+
-webkit-tap-highlight-color: transparent;
|
|
23
|
+
touch-action: none;
|
|
24
|
+
box-sizing: content-box;
|
|
25
|
+
outline: 0;
|
|
26
|
+
}
|
|
27
|
+
.mat-mdc-tab-header-pagination::-moz-focus-inner {
|
|
28
|
+
border: 0;
|
|
29
|
+
}
|
|
30
|
+
.mat-mdc-tab-header-pagination .mat-ripple-element {
|
|
31
|
+
opacity: 0.12;
|
|
32
|
+
background-color: var(--%NS%mat-tab-inactive-ripple-color, var(--%NS%mat-sys-on-surface));
|
|
33
|
+
}
|
|
34
|
+
.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination {
|
|
35
|
+
display: flex;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.mat-mdc-tab-header-pagination-before,
|
|
39
|
+
.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after {
|
|
40
|
+
padding-left: 4px;
|
|
41
|
+
}
|
|
42
|
+
.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,
|
|
43
|
+
.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron {
|
|
44
|
+
transform: rotate(-135deg);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,
|
|
48
|
+
.mat-mdc-tab-header-pagination-after {
|
|
49
|
+
padding-right: 4px;
|
|
50
|
+
}
|
|
51
|
+
.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,
|
|
52
|
+
.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron {
|
|
53
|
+
transform: rotate(45deg);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.mat-mdc-tab-header-pagination-chevron {
|
|
57
|
+
border-style: solid;
|
|
58
|
+
border-width: 2px 2px 0 0;
|
|
59
|
+
height: 8px;
|
|
60
|
+
width: 8px;
|
|
61
|
+
border-color: var(--%NS%mat-tab-pagination-icon-color, var(--%NS%mat-sys-on-surface));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.mat-mdc-tab-header-pagination-disabled {
|
|
65
|
+
box-shadow: none;
|
|
66
|
+
cursor: default;
|
|
67
|
+
pointer-events: none;
|
|
68
|
+
}
|
|
69
|
+
.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron {
|
|
70
|
+
opacity: 0.4;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.mat-mdc-tab-list {
|
|
74
|
+
flex-grow: 1;
|
|
75
|
+
position: relative;
|
|
76
|
+
transition: transform 500ms cubic-bezier(0.35, 0, 0.25, 1);
|
|
77
|
+
}
|
|
78
|
+
._mat-animation-noopable .mat-mdc-tab-list {
|
|
79
|
+
transition: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.mat-mdc-tab-label-container {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-grow: 1;
|
|
85
|
+
overflow: hidden;
|
|
86
|
+
z-index: 1;
|
|
87
|
+
border-bottom-style: solid;
|
|
88
|
+
border-bottom-width: var(--%NS%mat-tab-divider-height, 1px);
|
|
89
|
+
border-bottom-color: var(--%NS%mat-tab-divider-color, var(--%NS%mat-sys-surface-variant));
|
|
90
|
+
}
|
|
91
|
+
.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container {
|
|
92
|
+
border-bottom: none;
|
|
93
|
+
border-top-style: solid;
|
|
94
|
+
border-top-width: var(--%NS%mat-tab-divider-height, 1px);
|
|
95
|
+
border-top-color: var(--%NS%mat-tab-divider-color, var(--%NS%mat-sys-surface-variant));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.mat-mdc-tab-labels {
|
|
99
|
+
display: flex;
|
|
100
|
+
flex: 1 0 auto;
|
|
101
|
+
}
|
|
102
|
+
[mat-align-tabs=center] > .mat-mdc-tab-header .mat-mdc-tab-labels {
|
|
103
|
+
justify-content: center;
|
|
104
|
+
}
|
|
105
|
+
[mat-align-tabs=end] > .mat-mdc-tab-header .mat-mdc-tab-labels {
|
|
106
|
+
justify-content: flex-end;
|
|
107
|
+
}
|
|
108
|
+
.cdk-drop-list .mat-mdc-tab-labels, .mat-mdc-tab-labels.cdk-drop-list {
|
|
109
|
+
min-height: var(--%NS%mat-tab-container-height, 48px);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.mat-mdc-tab::before {
|
|
113
|
+
margin: 5px;
|
|
114
|
+
}
|
|
115
|
+
@media (forced-colors: active) {
|
|
116
|
+
.mat-mdc-tab[aria-disabled=true] {
|
|
117
|
+
color: GrayText;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
`],encapsulation:2,changeDetection:1})})()}return a})();var Sn=new g(`MAT_TABS_CONFIG`);var an=(()=>{class a extends Bi{_host=m(Bt);_ngZone=m(P);_centeringSub=q.EMPTY;_leavingSub=q.EMPTY;ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Dc(this._host._isCenterPosition())).subscribe(t=>{this._host._content&&t&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static ɵfac=(()=>{let t;return function(n){return(t||(t=Km(a)))(n||a)}})();static ɵdir=xe({type:a,selectors:[[``,`matTabBodyHost`,``]],features:[Lr]})}return a})();var Bt=(()=>{class a{_elementRef=m(oe);_dir=m(gT,{optional:!0});_ngZone=m(P);_injector=m(Y);_renderer=m(Ar);_diAnimationsDisabled=qr();_eventCleanups;_initialized=!1;_fallbackTimer;_positionIndex;_dirChangeSubscription=q.EMPTY;_position;_previousPosition;_onCentering=new me;_beforeCentering=new me;_afterLeavingCenter=new me;_onCentered=new me(!0);_portalHost;_contentElement;_content;animationDuration=`500ms`;preserveContent=!1;set position(t){this._positionIndex=t,this._computePositionAnimationState()}constructor(){if(this._dir){let t=m(eC);this._dirChangeSubscription=this._dir.change.subscribe(e=>{this._computePositionAnimationState(e),t.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position===`center`&&(this._setActiveClass(!0),Ou(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(t=>t()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let t=this._elementRef.nativeElement,e=n=>{n.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove(`mat-tab-body-animating`),n.type===`transitionend`&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(t,`transitionstart`,n=>{n.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add(`mat-tab-body-animating`),this._transitionStarted())}),this._renderer.listen(t,`transitionend`,e),this._renderer.listen(t,`transitioncancel`,e)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);let t=this._position===`center`;this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){this._position===`center`?this._onCentered.emit():this._previousPosition===`center`&&this._afterLeavingCenter.emit()}_setActiveClass(t){this._elementRef.nativeElement.classList.toggle(`mat-mdc-tab-body-active`,t)}_getLayoutDirection(){return this._dir&&this._dir.value===`rtl`?`rtl`:`ltr`}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(t=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=t==`ltr`?`left`:`right`:this._positionIndex>0?this._position=t==`ltr`?`right`:`left`:this._position=`center`,this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position===`center`||this._previousPosition===`center`)&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),Ou(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration===`0ms`||this.animationDuration===`0s`}static ɵfac=function(e){return new(e||a)};static ɵcmp=(function(){let t=[`content`];function e(n,l){}return Te({type:a,selectors:[[`mat-tab-body`]],viewQuery:function(l,v){if(l&1&&Gg(an,5)(t,5),l&2){let w;Hw(w=Uw())&&(v._portalHost=w.first),Hw(w=Uw())&&(v._contentElement=w.first)}},hostAttrs:[1,`mat-mdc-tab-body`],hostVars:1,hostBindings:function(l,v){l&2&&Wn$1(`inert`,v._position===`center`?null:``)},inputs:{_content:[0,`content`,`_content`],animationDuration:`animationDuration`,preserveContent:`preserveContent`,position:`position`},outputs:{_onCentering:`_onCentering`,_beforeCentering:`_beforeCentering`,_onCentered:`_onCentered`},decls:3,vars:6,consts:[[`content`,``],[`cdkScrollable`,``,1,`mat-mdc-tab-body-content`],[`matTabBodyHost`,``]],template:function(l,v){l&1&&(Ys(0,`div`,1,0),Rg(2,e,0,0,`ng-template`,2),od()),l&2&&ct(`mat-tab-body-content-left`,v._position===`left`)(`mat-tab-body-content-right`,v._position===`right`)(`mat-tab-body-content-can-animate`,v._position===`center`||v._previousPosition===`center`)},dependencies:[an,me$1],styles:[`.mat-mdc-tab-body {
|
|
121
|
+
top: 0;
|
|
122
|
+
left: 0;
|
|
123
|
+
right: 0;
|
|
124
|
+
bottom: 0;
|
|
125
|
+
position: absolute;
|
|
126
|
+
display: block;
|
|
127
|
+
overflow: hidden;
|
|
128
|
+
outline: 0;
|
|
129
|
+
flex-basis: 100%;
|
|
130
|
+
}
|
|
131
|
+
.mat-mdc-tab-body.mat-mdc-tab-body-active {
|
|
132
|
+
position: relative;
|
|
133
|
+
overflow-x: hidden;
|
|
134
|
+
overflow-y: auto;
|
|
135
|
+
z-index: 1;
|
|
136
|
+
flex-grow: 1;
|
|
137
|
+
}
|
|
138
|
+
.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active {
|
|
139
|
+
overflow-y: hidden;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.mat-mdc-tab-body-content {
|
|
143
|
+
height: 100%;
|
|
144
|
+
overflow: auto;
|
|
145
|
+
transform: none;
|
|
146
|
+
visibility: hidden;
|
|
147
|
+
}
|
|
148
|
+
.mat-tab-body-animating > .mat-mdc-tab-body-content, .mat-mdc-tab-body-active > .mat-mdc-tab-body-content {
|
|
149
|
+
visibility: visible;
|
|
150
|
+
}
|
|
151
|
+
.mat-tab-body-animating > .mat-mdc-tab-body-content {
|
|
152
|
+
min-height: 1px;
|
|
153
|
+
}
|
|
154
|
+
.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content {
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.mat-tab-body-content-can-animate {
|
|
159
|
+
transition: transform var(--%NS%mat-tab-body-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1);
|
|
160
|
+
}
|
|
161
|
+
.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate {
|
|
162
|
+
transition: none;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.mat-tab-body-content-left {
|
|
166
|
+
transform: translate3d(-100%, 0, 0);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.mat-tab-body-content-right {
|
|
170
|
+
transform: translate3d(100%, 0, 0);
|
|
171
|
+
}
|
|
172
|
+
`],encapsulation:2,changeDetection:1})})()}return a})();var ln=(()=>{class a{_elementRef=m(oe);_changeDetectorRef=m(eC);_ngZone=m(P);_tabsSubscription=q.EMPTY;_tabLabelSubscription=q.EMPTY;_tabBodySubscription=q.EMPTY;_diAnimationsDisabled=qr();_bodyAnimationDuration;_headerAnimationDuration;_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new jn$1;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(t){this._fitInkBarToContent=t,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=isNaN(t)?null:t}_selectedIndex=null;headerPosition=`above`;get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=t,t&&typeof t==`object`?(this._bodyAnimationDuration=Pt(t.body),this._headerAnimationDuration=Pt(t.header)):this._headerAnimationDuration=this._bodyAnimationDuration=Pt(t)}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(t){this._contentTabIndex=isNaN(t)?null:t}_contentTabIndex=null;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(t){let e=this._elementRef.nativeElement.classList;e.remove(`mat-tabs-with-background`,`mat-background-${this.backgroundColor}`),t&&e.add(`mat-tabs-with-background`,`mat-background-${t}`),this._backgroundColor=t}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new me;focusChange=new me;animationDone=new me;selectedTabChange=new me(!0);_groupId;_isServer=!m(ge).isBrowser;constructor(){let t=m(Sn,{optional:!0});this._groupId=m(Wd).getId(`mat-tab-group-`),this.animationDuration=t&&t.animationDuration?t.animationDuration:`500ms`,this.disablePagination=t&&t.disablePagination!=null?t.disablePagination:!1,this.dynamicHeight=t&&t.dynamicHeight!=null?t.dynamicHeight:!1,t?.contentTabIndex!=null&&(this.contentTabIndex=t.contentTabIndex),this.preserveContent=!!t?.preserveContent,this.fitInkBarToContent=t&&t.fitInkBarToContent!=null?t.fitInkBarToContent:!1,this.stretchTabs=t&&t.stretchTabs!=null?t.stretchTabs:!0,this.alignTabs=t&&t.alignTabs!=null?t.alignTabs:null}ngAfterContentChecked(){let t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){let e=this._selectedIndex==null;if(!e){this.selectedTabChange.emit(this._createChangeEvent(t));let n=this._tabBodyWrapper.nativeElement;n.style.minHeight=n.clientHeight+`px`}Promise.resolve().then(()=>{this._tabs.forEach((n,l)=>n.isActive=l===t),e||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight=``)})}this._tabs.forEach((e,n)=>{e.position=n-t,this._selectedIndex!=null&&e.position==0&&!e.origin&&(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let t=this._clampTabIndex(this._indexToSelect);if(t===this._selectedIndex){let e=this._tabs.toArray(),n;for(let l=0;l<e.length;l++)if(e[l].isActive){this._indexToSelect=this._selectedIndex=l,this._lastFocusedTabIndex=null,n=e[l];break}!n&&e[t]&&Promise.resolve().then(()=>{e[t].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(t))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Dc(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(e=>e._closestTabGroup===this||!e._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(t){let e=this._tabHeader;e&&(e.focusIndex=t)}_focusChanged(t){this._lastFocusedTabIndex=t,this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){let e=new Nt;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Bv(...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,e){return t.id||`${this._groupId}-label-${e}`}_getTabContentId(t){return`${this._groupId}-content-${t}`}_setTabBodyWrapperHeight(t){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=t;return}let e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+`px`,this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+`px`)}_removeTabBodyWrapperHeight(){let t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height=``,this._ngZone.run(()=>this.animationDone.emit())}_handleClick(t,e,n){e.focusIndex=n,t.disabled||(this.selectedIndex=n)}_getTabIndex(t){return t===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(t,e){t&&t!==`mouse`&&t!==`touch`&&(this._tabHeader.focusIndex=e)}_bodyCentered(t){t&&this._tabBodies?.forEach((e,n)=>e._setActiveClass(n===this._selectedIndex))}_bodyAnimationsDisabled(){return this._diAnimationsDisabled||this._bodyAnimationDuration===`0`||this._bodyAnimationDuration===`0ms`}static ɵfac=function(e){return new(e||a)};static ɵcmp=(function(){let t=[`tabBodyWrapper`],e=[`tabHeader`],n=[`*`];function l(u,f){}function v(u,f){if(u&1&&Rg(0,l,0,0,`ng-template`,12),u&2){let m=jw().$implicit;Lg(`cdkPortalOutlet`,m.templateLabel)}}function w(u,f){if(u&1&&dS(0),u&2){let m=jw().$implicit;rb(m.textLabel)}}function P(u,f){if(u&1){let m=Lw();Ys(0,`div`,7,2),Ug(`click`,function(){let y=Ip(m),B=y.$implicit,vt=y.$index,bn=jw(),pn=zw(1);return wp(bn._handleClick(B,pn,vt))})(`cdkFocusChange`,function(y){let B=Ip(m).$index,vt=jw();return wp(vt._tabFocusChanged(y,B))}),jg(2,`span`,8)(3,`div`,9),Ys(4,`span`,10)(5,`span`,11),Yo(6,v,1,1,null,12)(7,w,1,1),od()()()}if(u&2){let m=f.$implicit,x=f.$index,y=zw(1),B=jw();Qo(m.labelClass),ct(`mdc-tab--active`,B.selectedIndex===x),Lg(`id`,B._getTabLabelId(m,x))(`disabled`,m.disabled)(`fitInkBarToContent`,B.fitInkBarToContent),Wn$1(`tabIndex`,B._getTabIndex(x))(`aria-posinset`,x+1)(`aria-setsize`,B._tabs.length)(`aria-controls`,B._getTabContentId(x))(`aria-selected`,B.selectedIndex===x)(`aria-label`,m.ariaLabel||null)(`aria-labelledby`,!m.ariaLabel&&m.ariaLabelledby?m.ariaLabelledby:null),zo(3),Lg(`matRippleTrigger`,y)(`matRippleDisabled`,m.disabled||B.disableRipple),zo(3),Ko(m.templateLabel?6:7)}}function L(u,f){u&1&&Ye(0)}function h(u,f){if(u&1){let m=Lw();Ys(0,`mat-tab-body`,13),Ug(`_onCentered`,function(){Ip(m);let y=jw();return wp(y._removeTabBodyWrapperHeight())})(`_onCentering`,function(y){Ip(m);let B=jw();return wp(B._setTabBodyWrapperHeight(y))})(`_beforeCentering`,function(y){Ip(m);let B=jw();return wp(B._bodyCentered(y))}),od()}if(u&2){let m=f.$implicit,x=f.$index,y=jw();Qo(m.bodyClass),Lg(`id`,y._getTabContentId(x))(`content`,m.content)(`position`,m.position)(`animationDuration`,y._bodyAnimationDuration)(`preserveContent`,y.preserveContent),Wn$1(`tabindex`,y.contentTabIndex!=null&&y.selectedIndex===x?y.contentTabIndex:null)(`aria-labelledby`,y._getTabLabelId(m,x))(`aria-hidden`,y.selectedIndex!==x)}}return Te({type:a,selectors:[[`mat-tab-group`]],contentQueries:function(f,m,x){if(f&1&&Wg(x,Rt,5),f&2){let y;Hw(y=Uw())&&(m._allTabs=y)}},viewQuery:function(f,m){if(f&1&&Gg(t,5)(e,5)(Bt,5),f&2){let x;Hw(x=Uw())&&(m._tabBodyWrapper=x.first),Hw(x=Uw())&&(m._tabHeader=x.first),Hw(x=Uw())&&(m._tabBodies=x)}},hostAttrs:[1,`mat-mdc-tab-group`],hostVars:13,hostBindings:function(f,m){f&2&&(Wn$1(`mat-align-tabs`,m.alignTabs),Qo(`mat-`+(m.color||`primary`)),Qg(`--%NS%mat-tab-body-animation-duration`,m._bodyAnimationDuration)(`--%NS%mat-tab-header-animation-duration`,m._headerAnimationDuration),ct(`mat-mdc-tab-group-dynamic-height`,m.dynamicHeight)(`mat-mdc-tab-group-inverted-header`,m.headerPosition===`below`)(`mat-mdc-tab-group-stretch-tabs`,m.stretchTabs))},inputs:{color:`color`,fitInkBarToContent:[2,`fitInkBarToContent`,`fitInkBarToContent`,Ke],stretchTabs:[2,`mat-stretch-tabs`,`stretchTabs`,Ke],alignTabs:[0,`mat-align-tabs`,`alignTabs`],dynamicHeight:[2,`dynamicHeight`,`dynamicHeight`,Ke],selectedIndex:[2,`selectedIndex`,`selectedIndex`,Cb],headerPosition:`headerPosition`,animationDuration:`animationDuration`,contentTabIndex:[2,`contentTabIndex`,`contentTabIndex`,Cb],disablePagination:[2,`disablePagination`,`disablePagination`,Ke],disableRipple:[2,`disableRipple`,`disableRipple`,Ke],preserveContent:[2,`preserveContent`,`preserveContent`,Ke],backgroundColor:`backgroundColor`,ariaLabel:[0,`aria-label`,`ariaLabel`],ariaLabelledby:[0,`aria-labelledby`,`ariaLabelledby`]},outputs:{selectedIndexChange:`selectedIndexChange`,focusChange:`focusChange`,animationDone:`animationDone`,selectedTabChange:`selectedTabChange`},exportAs:[`matTabGroup`],features:[db([{provide:rn,useExisting:a}])],ngContentSelectors:n,decls:9,vars:8,consts:[[`tabHeader`,``],[`tabBodyWrapper`,``],[`tabNode`,``],[3,`indexFocused`,`selectFocusedIndex`,`selectedIndex`,`disableRipple`,`disablePagination`,`aria-label`,`aria-labelledby`],[`role`,`tab`,`matTabLabelWrapper`,``,`cdkMonitorElementFocus`,``,1,`mdc-tab`,`mat-mdc-tab`,`mat-focus-indicator`,3,`id`,`mdc-tab--active`,`class`,`disabled`,`fitInkBarToContent`],[1,`mat-mdc-tab-body-wrapper`],[`role`,`tabpanel`,3,`id`,`class`,`content`,`position`,`animationDuration`,`preserveContent`],[`role`,`tab`,`matTabLabelWrapper`,``,`cdkMonitorElementFocus`,``,1,`mdc-tab`,`mat-mdc-tab`,`mat-focus-indicator`,3,`click`,`cdkFocusChange`,`id`,`disabled`,`fitInkBarToContent`],[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,`_onCentered`,`_onCentering`,`_beforeCentering`,`id`,`content`,`position`,`animationDuration`,`preserveContent`]],template:function(f,m){f&1&&(Gn$1(),Ys(0,`mat-tab-header`,3,0),Ug(`indexFocused`,function(y){return m._focusChanged(y)})(`selectFocusedIndex`,function(y){return m.selectedIndex=y}),Mw(2,P,8,17,`div`,4,Nw),od(),Yo(4,L,1,0),Ys(5,`div`,5,1),Mw(7,h,1,10,`mat-tab-body`,6,Nw),od()),f&2&&(Lg(`selectedIndex`,m.selectedIndex||0)(`disableRipple`,m.disableRipple)(`disablePagination`,m.disablePagination),Pg(`aria-label`,m.ariaLabel)(`aria-labelledby`,m.ariaLabelledby),zo(2),Aw(m._tabs),zo(2),Ko(m._isServer?4:-1),zo(),ct(`_mat-animation-noopable`,m._bodyAnimationsDisabled()),zo(2),Aw(m._tabs))},dependencies:[Tn,sn,_T,F3,Bi,Bt],styles:[`.mdc-tab {
|
|
173
|
+
min-width: 90px;
|
|
174
|
+
padding: 0 24px;
|
|
175
|
+
display: flex;
|
|
176
|
+
flex: 1 0 auto;
|
|
177
|
+
justify-content: center;
|
|
178
|
+
box-sizing: border-box;
|
|
179
|
+
border: none;
|
|
180
|
+
outline: none;
|
|
181
|
+
text-align: center;
|
|
182
|
+
white-space: nowrap;
|
|
183
|
+
cursor: pointer;
|
|
184
|
+
z-index: 1;
|
|
185
|
+
touch-action: manipulation;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.mdc-tab__content {
|
|
189
|
+
display: flex;
|
|
190
|
+
align-items: center;
|
|
191
|
+
justify-content: center;
|
|
192
|
+
height: inherit;
|
|
193
|
+
pointer-events: none;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.mdc-tab__text-label {
|
|
197
|
+
transition: 150ms color linear;
|
|
198
|
+
display: inline-block;
|
|
199
|
+
line-height: 1;
|
|
200
|
+
z-index: 2;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.mdc-tab--active .mdc-tab__text-label {
|
|
204
|
+
transition-delay: 100ms;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
._mat-animation-noopable .mdc-tab__text-label {
|
|
208
|
+
transition: none;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.mdc-tab-indicator {
|
|
212
|
+
display: flex;
|
|
213
|
+
position: absolute;
|
|
214
|
+
top: 0;
|
|
215
|
+
left: 0;
|
|
216
|
+
justify-content: center;
|
|
217
|
+
width: 100%;
|
|
218
|
+
height: 100%;
|
|
219
|
+
pointer-events: none;
|
|
220
|
+
z-index: 1;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.mdc-tab-indicator__content {
|
|
224
|
+
transition: var(--%NS%mat-tab-header-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);
|
|
225
|
+
transform-origin: left;
|
|
226
|
+
opacity: 0;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.mdc-tab-indicator__content--underline {
|
|
230
|
+
align-self: flex-end;
|
|
231
|
+
box-sizing: border-box;
|
|
232
|
+
width: 100%;
|
|
233
|
+
border-top-style: solid;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.mdc-tab-indicator--active .mdc-tab-indicator__content {
|
|
237
|
+
opacity: 1;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
._mat-animation-noopable .mdc-tab-indicator__content, .mdc-tab-indicator--no-transition .mdc-tab-indicator__content {
|
|
241
|
+
transition: none;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.mat-mdc-tab-ripple.mat-mdc-tab-ripple {
|
|
245
|
+
position: absolute;
|
|
246
|
+
top: 0;
|
|
247
|
+
left: 0;
|
|
248
|
+
bottom: 0;
|
|
249
|
+
right: 0;
|
|
250
|
+
pointer-events: none;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.mat-mdc-tab {
|
|
254
|
+
-webkit-tap-highlight-color: transparent;
|
|
255
|
+
-webkit-font-smoothing: antialiased;
|
|
256
|
+
-moz-osx-font-smoothing: grayscale;
|
|
257
|
+
text-decoration: none;
|
|
258
|
+
background: none;
|
|
259
|
+
height: var(--%NS%mat-tab-container-height, 48px);
|
|
260
|
+
font-family: var(--%NS%mat-tab-label-text-font, var(--%NS%mat-sys-title-small-font));
|
|
261
|
+
font-size: var(--%NS%mat-tab-label-text-size, var(--%NS%mat-sys-title-small-size));
|
|
262
|
+
letter-spacing: var(--%NS%mat-tab-label-text-tracking, var(--%NS%mat-sys-title-small-tracking));
|
|
263
|
+
line-height: var(--%NS%mat-tab-label-text-line-height, var(--%NS%mat-sys-title-small-line-height));
|
|
264
|
+
font-weight: var(--%NS%mat-tab-label-text-weight, var(--%NS%mat-sys-title-small-weight));
|
|
265
|
+
}
|
|
266
|
+
.mat-mdc-tab.mdc-tab {
|
|
267
|
+
flex-grow: 0;
|
|
268
|
+
}
|
|
269
|
+
.mat-mdc-tab .mdc-tab-indicator__content--underline {
|
|
270
|
+
border-color: var(--%NS%mat-tab-active-indicator-color, var(--%NS%mat-sys-primary));
|
|
271
|
+
border-top-width: var(--%NS%mat-tab-active-indicator-height, 2px);
|
|
272
|
+
border-radius: var(--%NS%mat-tab-active-indicator-shape, 0);
|
|
273
|
+
}
|
|
274
|
+
.mat-mdc-tab:hover .mdc-tab__text-label {
|
|
275
|
+
color: var(--%NS%mat-tab-inactive-hover-label-text-color, var(--%NS%mat-sys-on-surface));
|
|
276
|
+
}
|
|
277
|
+
.mat-mdc-tab:focus .mdc-tab__text-label {
|
|
278
|
+
color: var(--%NS%mat-tab-inactive-focus-label-text-color, var(--%NS%mat-sys-on-surface));
|
|
279
|
+
}
|
|
280
|
+
.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label {
|
|
281
|
+
color: var(--%NS%mat-tab-active-label-text-color, var(--%NS%mat-sys-on-surface));
|
|
282
|
+
}
|
|
283
|
+
.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,
|
|
284
|
+
.mat-mdc-tab.mdc-tab--active .mat-ripple-element {
|
|
285
|
+
background-color: var(--%NS%mat-tab-active-ripple-color, var(--%NS%mat-sys-on-surface));
|
|
286
|
+
}
|
|
287
|
+
.mat-mdc-tab.mdc-tab--%NS%active:hover .mdc-tab__text-label {
|
|
288
|
+
color: var(--%NS%mat-tab-active-hover-label-text-color, var(--%NS%mat-sys-on-surface));
|
|
289
|
+
}
|
|
290
|
+
.mat-mdc-tab.mdc-tab--%NS%active:hover .mdc-tab-indicator__content--underline {
|
|
291
|
+
border-color: var(--%NS%mat-tab-active-hover-indicator-color, var(--%NS%mat-sys-primary));
|
|
292
|
+
}
|
|
293
|
+
.mat-mdc-tab.mdc-tab--%NS%active:focus .mdc-tab__text-label {
|
|
294
|
+
color: var(--%NS%mat-tab-active-focus-label-text-color, var(--%NS%mat-sys-on-surface));
|
|
295
|
+
}
|
|
296
|
+
.mat-mdc-tab.mdc-tab--%NS%active:focus .mdc-tab-indicator__content--underline {
|
|
297
|
+
border-color: var(--%NS%mat-tab-active-focus-indicator-color, var(--%NS%mat-sys-primary));
|
|
298
|
+
}
|
|
299
|
+
.mat-mdc-tab.mat-mdc-tab-disabled {
|
|
300
|
+
opacity: 0.4;
|
|
301
|
+
pointer-events: none;
|
|
302
|
+
}
|
|
303
|
+
.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content {
|
|
304
|
+
pointer-events: none;
|
|
305
|
+
}
|
|
306
|
+
.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,
|
|
307
|
+
.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element {
|
|
308
|
+
background-color: var(--%NS%mat-tab-disabled-ripple-color, var(--%NS%mat-sys-on-surface-variant));
|
|
309
|
+
}
|
|
310
|
+
.mat-mdc-tab .mdc-tab__ripple::before {
|
|
311
|
+
content: "";
|
|
312
|
+
display: block;
|
|
313
|
+
position: absolute;
|
|
314
|
+
top: 0;
|
|
315
|
+
left: 0;
|
|
316
|
+
right: 0;
|
|
317
|
+
bottom: 0;
|
|
318
|
+
opacity: 0;
|
|
319
|
+
pointer-events: none;
|
|
320
|
+
background-color: var(--%NS%mat-tab-inactive-ripple-color, var(--%NS%mat-sys-on-surface));
|
|
321
|
+
}
|
|
322
|
+
.mat-mdc-tab .mdc-tab__text-label {
|
|
323
|
+
color: var(--%NS%mat-tab-inactive-label-text-color, var(--%NS%mat-sys-on-surface));
|
|
324
|
+
display: inline-flex;
|
|
325
|
+
align-items: center;
|
|
326
|
+
}
|
|
327
|
+
.mat-mdc-tab .mdc-tab__content {
|
|
328
|
+
position: relative;
|
|
329
|
+
pointer-events: auto;
|
|
330
|
+
}
|
|
331
|
+
.mat-mdc-tab:hover .mdc-tab__ripple::before {
|
|
332
|
+
opacity: 0.04;
|
|
333
|
+
}
|
|
334
|
+
.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before, .mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before {
|
|
335
|
+
opacity: 0.12;
|
|
336
|
+
}
|
|
337
|
+
.mat-mdc-tab .mat-ripple-element {
|
|
338
|
+
opacity: 0.12;
|
|
339
|
+
background-color: var(--%NS%mat-tab-inactive-ripple-color, var(--%NS%mat-sys-on-surface));
|
|
340
|
+
}
|
|
341
|
+
.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs > .mat-mdc-tab-header .mat-mdc-tab {
|
|
342
|
+
flex-grow: 1;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.mat-mdc-tab-group {
|
|
346
|
+
display: flex;
|
|
347
|
+
flex-direction: column;
|
|
348
|
+
max-width: 100%;
|
|
349
|
+
}
|
|
350
|
+
.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 {
|
|
351
|
+
background-color: var(--%NS%mat-tab-background-color);
|
|
352
|
+
}
|
|
353
|
+
.mat-mdc-tab-group.mat-tabs-with-background.mat-primary > .mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label {
|
|
354
|
+
color: var(--%NS%mat-tab-foreground-color);
|
|
355
|
+
}
|
|
356
|
+
.mat-mdc-tab-group.mat-tabs-with-background.mat-primary > .mat-mdc-tab-header .mdc-tab-indicator__content--underline {
|
|
357
|
+
border-color: var(--%NS%mat-tab-foreground-color);
|
|
358
|
+
}
|
|
359
|
+
.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 {
|
|
360
|
+
color: var(--%NS%mat-tab-foreground-color);
|
|
361
|
+
}
|
|
362
|
+
.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 {
|
|
363
|
+
border-color: var(--%NS%mat-tab-foreground-color);
|
|
364
|
+
}
|
|
365
|
+
.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,
|
|
366
|
+
.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header .mat-focus-indicator::before, .mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,
|
|
367
|
+
.mat-mdc-tab-group.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mat-focus-indicator::before {
|
|
368
|
+
border-color: var(--%NS%mat-tab-foreground-color);
|
|
369
|
+
}
|
|
370
|
+
.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 {
|
|
371
|
+
background-color: var(--%NS%mat-tab-foreground-color);
|
|
372
|
+
}
|
|
373
|
+
.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 {
|
|
374
|
+
color: var(--%NS%mat-tab-foreground-color);
|
|
375
|
+
}
|
|
376
|
+
.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header {
|
|
377
|
+
flex-direction: column-reverse;
|
|
378
|
+
}
|
|
379
|
+
.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline {
|
|
380
|
+
align-self: flex-start;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.mat-mdc-tab-body-wrapper {
|
|
384
|
+
position: relative;
|
|
385
|
+
overflow: hidden;
|
|
386
|
+
display: flex;
|
|
387
|
+
transition: height 500ms cubic-bezier(0.35, 0, 0.25, 1);
|
|
388
|
+
}
|
|
389
|
+
.mat-mdc-tab-body-wrapper._mat-animation-noopable {
|
|
390
|
+
transition: none !important;
|
|
391
|
+
animation: none !important;
|
|
392
|
+
}
|
|
393
|
+
`],encapsulation:2,changeDetection:1})})()}return a})();var Nt=class{index;tab};var dn=(()=>{class a{static ɵfac=function(e){return new(e||a)};static ɵmod=fe({type:a});static ɵinj=ae({imports:[$r]})}return a})();var Mn=(a,s)=>s.key;var cn=(a,s)=>s.id;function Dn(a,s){if(a&1&&dS(0),a&2){let t=jw();ad(` · uid `,t.uid,` `)}}function En(a,s){a&1&&(Ys(0,`span`,10),dS(1,`expired`),od())}function Pn(a,s){a&1&&(Ys(0,`span`,11),dS(1,`admin`),od())}function Ln(a,s){if(a&1&&(Ys(0,`span`,9),dS(1),od()),a&2){let t=jw(2);Qo(t.cs()),zo(),ad(`workspace: `,t.cs())}}function Bn(a,s){a&1&&(Ys(0,`span`,10),dS(1,`disk limit exceeded`),od())}function Nn(a,s){a&1&&(Ys(0,`span`,13),dS(1,`existing linux user`),od())}function Rn(a,s){if(a&1){let t=Lw();Ys(0,`button`,32),Ug(`click`,function(){Ip(t);let n=jw(2);return wp(n.approve())}),Ys(1,`mat-icon`),dS(2,`check`),od(),dS(3,` Approve`),od(),Ys(4,`button`,17),Ug(`click`,function(){Ip(t);let n=jw(2);return wp(n.reject())}),dS(5,`Reject`),od()}}function An(a,s){if(a&1){let t=Lw();Ys(0,`button`,17),Ug(`click`,function(){Ip(t);let n=jw(2);return wp(n.disable())}),Ys(1,`mat-icon`),dS(2,`block`),od(),dS(3,` Disable`),od()}}function Vn(a,s){if(a&1){let t=Lw();Ys(0,`button`,32),Ug(`click`,function(){Ip(t);let n=jw(2);return wp(n.enable())}),Ys(1,`mat-icon`),dS(2,`check_circle`),od(),dS(3,` Enable`),od()}}function Fn(a,s){a&1&&jg(0,`mat-progress-bar`,19)}function On(a,s){a&1&&(Ys(0,`p`,6),dS(1,`This account has no workspace (admin portal only). Enable “Has workspace” in Permissions to create one.`),od())}function Wn(a,s){if(a&1){let t=Lw();Ys(0,`button`,32),Ug(`click`,function(){Ip(t);let n=jw(3);return wp(n.act(`provision`))}),dS(1,`Create workspace`),od()}}function Hn(a,s){if(a&1&&(Ys(0,`p`,6),dS(1,`Workspace not created yet.`),od(),Yo(2,Wn,2,0,`button`,16)),a&2){let t=jw();zo(2),Ko(t.status===`active`?2:-1)}}function Un(a,s){if(a&1){let t=Lw();Ys(0,`button`,17),Ug(`click`,function(){Ip(t);let n=jw(3);return wp(n.act(`stop`))}),Ys(1,`mat-icon`),dS(2,`stop`),od(),dS(3,` Stop`),od(),Ys(4,`button`,17),Ug(`click`,function(){Ip(t);let n=jw(3);return wp(n.act(`restart`))}),Ys(5,`mat-icon`),dS(6,`restart_alt`),od(),dS(7,` Restart`),od()}}function zn(a,s){if(a&1){let t=Lw();Ys(0,`button`,32),Ug(`click`,function(){Ip(t);let n=jw(3);return wp(n.act(`start`))}),Ys(1,`mat-icon`),dS(2,`play_arrow`),od(),dS(3,` Start`),od()}}function jn(a,s){if(a&1){let t=Lw();Ys(0,`div`,56)(1,`div`)(2,`span`,6),dS(3,`CPU`),od(),Ys(4,`b`),dS(5),od(),Ys(6,`span`,6),dS(7),od()(),Ys(8,`div`)(9,`span`,6),dS(10,`Memory`),od(),Ys(11,`b`),dS(12),od(),Ys(13,`div`),jg(14,`div`),od(),Ys(15,`span`,6),dS(16),od()(),Ys(17,`div`)(18,`span`,6),dS(19,`Disk`),od(),Ys(20,`b`),dS(21),od(),Ys(22,`div`),jg(23,`div`),od(),Ys(24,`span`,6),dS(25),od()(),Ys(26,`div`)(27,`span`,6),dS(28,`Last active`),od(),Ys(29,`b`),dS(30),od(),Ys(31,`span`,6),dS(32),od()()(),Ys(33,`div`,57),Yo(34,Un,8,0)(35,zn,4,0,`button`,16),Ys(36,`button`,58),Ug(`click`,function(){Ip(t);let n=jw(2);return wp(n.rebuild())}),Ys(37,`mat-icon`),dS(38,`build`),od(),dS(39,` Rebuild`),od()(),Ys(40,`div`,44)(41,`span`),dS(42,`Editor URL`),od(),Ys(43,`b`,7),dS(44),od()(),Ys(45,`div`,44)(46,`span`),dS(47,`Linux user / home`),od(),Ys(48,`b`,7),dS(49),od()(),Ys(50,`div`,44)(51,`span`),dS(52,`Internal port`),od(),Ys(53,`b`,7),dS(54),od()(),Ys(55,`div`,44)(56,`span`),dS(57,`Image`),od(),Ys(58,`b`,7),dS(59),od()(),Ys(60,`p`,6),dS(61),od()}if(a&2){let t=jw(),e=jw();zo(5),ad(``,t.usage?.cpu_pct??0,`%`),zo(2),ad(`of `,t.cpu,` core(s)`),zo(5),rb(e.gb(t.usage?.mem_mb)),zo(),Qo(e.barClass(e.pct(t.usage?.mem_mb||0,t.mem_mb))),zo(),Qg(`width`,e.pct(t.usage?.mem_mb||0,t.mem_mb),`%`),zo(2),ad(`of `,e.gb(t.mem_mb)),zo(5),rb(e.gb(t.usage?.disk_mb)),zo(),Qo(e.barClass(e.pct(t.usage?.disk_mb||0,t.disk_gb*1024))),zo(),Qg(`width`,e.pct(t.usage?.disk_mb||0,t.disk_gb*1024),`%`),zo(2),ad(`of `,t.disk_gb,` GB`),zo(5),rb(e.ago(t.usage?.last_active)),zo(2),ad(`usage updated `,e.ago(t.usage?.updated_at)),zo(2),Ko(e.cs()===`running`?34:35),zo(10),ob(``,e.origin,``,t.editor_url),zo(5),ib(``,t.username,` (uid `,t.uid,`) · /home/`,t.username),zo(5),ad(`127.0.0.1:`,t.port),zo(5),rb(t.image||`default`),zo(2),ad(`Admins can’t open a user’s VS Code. Only `,t.email,` can, after signing in.`)}}function Qn(a,s){if(a&1&&(Ys(0,`mat-option`,26),dS(1),od()),a&2){let t=s.$implicit,e=jw(2);Lg(`value`,t.key),zo(),sb(``,t.key,` — `,t.value.cpu,` CPU · `,e.gb(t.value.mem_mb),` · `,t.value.disk_gb,` GB`)}}function Gn(a,s){if(a&1&&dS(0),a&2){let t=jw(),e=jw();ad(` set · changed `,e.ago(t.password_changed_at),` `)}}function $n(a,s){a&1&&dS(0,` not set (AWS SSO only) `)}function qn(a,s){a&1&&(Ys(0,`div`,44),jg(1,`span`),Ys(2,`b`)(3,`span`,59),dS(4,`must change at next login`),od()()())}function Zn(a,s){if(a&1){let t=Lw();Ys(0,`div`,44)(1,`span`),dS(2,`Status`),od(),Ys(3,`b`)(4,`span`,10),dS(5,`locked (too many failed logins)`),od(),Ys(6,`button`,60),Ug(`click`,function(){Ip(t);let n=jw(2);return wp(n.unlock())}),Ys(7,`mat-icon`),dS(8,`lock_open`),od(),dS(9,` Unlock`),od()()()}}function Kn(a,s){if(a&1){let t=Lw();Ys(0,`button`,18),Ug(`click`,function(){Ip(t);let n=jw(2);return wp(n.removePw())}),dS(1,`Remove password (SSO only)`),od()}}function Yn(a,s){if(a&1){let t=Lw();Ys(0,`div`,53)(1,`mat-icon`),dS(2,`computer`),od(),Ys(3,`div`,5)(4,`b`,7),dS(5),od(),Ys(6,`span`,6),dS(7),od(),Ys(8,`div`,6),dS(9),od()(),Ys(10,`button`,17),Ug(`click`,function(){let n=Ip(t).$implicit,l=jw(2);return wp(l.kill(n.id))}),dS(11,`End`),od()()}if(a&2){let t=s.$implicit,e=jw(2);zo(5),rb(t.ip),zo(2),rb(t.user_agent.slice(0,80)),zo(2),ib(`login `,e.dt(t.created_at),` · active `,e.ago(t.last_seen),` · expires `,e.dt(t.expires_at))}}function Xn(a,s){a&1&&(Ys(0,`p`,6),dS(1,`No active sessions.`),od())}function Jn(a,s){if(a&1&&(Ys(0,`div`,55)(1,`span`,9),dS(2),od(),Ys(3,`span`,6),dS(4),od()()),a&2){let t=s.$implicit,e=jw(2);zo(),Qo(t.success?`none`:`error`),zo(),rb(t.action),zo(2),ob(``,e.dt(t.ts),` · by `,t.actor)}}function ta(a,s){a&1&&(Ys(0,`p`,6),dS(1,`No activity.`),od())}function ea(a,s){if(a&1){let t=Lw();Ys(0,`div`,3)(1,`div`,4),dS(2),od(),Ys(3,`div`,5)(4,`h1`),dS(5),od(),Ys(6,`div`,6),dS(7),Ys(8,`span`,7),dS(9),od(),Yo(10,Dn,1,1),dS(11),od(),Ys(12,`div`,8)(13,`span`,9),dS(14),od(),Yo(15,En,2,0,`span`,10),Yo(16,Pn,2,0,`span`,11),Yo(17,Ln,2,3,`span`,12),Yo(18,Bn,2,0,`span`,10),Yo(19,Nn,2,0,`span`,13),od()(),Ys(20,`div`,14),Yo(21,Rn,6,0),Yo(22,An,4,0,`button`,15),Yo(23,Vn,4,0,`button`,16),Ys(24,`button`,17),Ug(`click`,function(){Ip(t);let n=jw();return wp(n.logout())}),Ys(25,`mat-icon`),dS(26,`logout`),od(),dS(27,` Force logout`),od(),Ys(28,`button`,18),Ug(`click`,function(){Ip(t);let n=jw();return wp(n.remove())}),Ys(29,`mat-icon`),dS(30,`delete`),od(),dS(31,` Delete`),od()()(),Yo(32,Fn,1,0,`mat-progress-bar`,19),Ys(33,`mat-tab-group`,20)(34,`mat-tab`,21)(35,`div`,22),Yo(36,On,2,0,`p`,6)(37,Hn,3,1)(38,jn,62,25),od()(),Ys(39,`mat-tab`,23)(40,`div`,22)(41,`div`,24)(42,`mat-form-field`)(43,`mat-label`),dS(44,`Plan`),od(),Ys(45,`mat-select`,25),gI(),cb(`ngModelChange`,function(n){Ip(t);let l=jw();return bS(l.f.plan,n)||(l.f.plan=n),wp(n)}),Ug(`selectionChange`,function(){Ip(t);let n=jw();return wp(n.pickPlan())}),Mw(46,Qn,2,5,`mat-option`,26,Mn),wS(48,`keyvalue`),Ys(49,`mat-option`,27),dS(50,`custom`),od()()(),Ys(51,`mat-form-field`)(52,`mat-label`),dS(53,`CPU cores`),od(),Ys(54,`input`,28),gI(),cb(`ngModelChange`,function(n){Ip(t);let l=jw();return bS(l.f.cpu,n)||(l.f.cpu=n),wp(n)}),Ug(`input`,function(){Ip(t);let n=jw();return wp(n.f.plan=`custom`)}),od()(),Ys(55,`mat-form-field`)(56,`mat-label`),dS(57,`RAM (MB)`),od(),Ys(58,`input`,29),gI(),cb(`ngModelChange`,function(n){Ip(t);let l=jw();return bS(l.f.mem_mb,n)||(l.f.mem_mb=n),wp(n)}),Ug(`input`,function(){Ip(t);let n=jw();return wp(n.f.plan=`custom`)}),od()(),Ys(59,`mat-form-field`)(60,`mat-label`),dS(61,`Disk (GB)`),od(),Ys(62,`input`,30),gI(),cb(`ngModelChange`,function(n){Ip(t);let l=jw();return bS(l.f.disk_gb,n)||(l.f.disk_gb=n),wp(n)}),Ug(`input`,function(){Ip(t);let n=jw();return wp(n.f.plan=`custom`)}),od()(),Ys(63,`mat-form-field`)(64,`mat-label`),dS(65,`Max processes`),od(),Ys(66,`input`,31),gI(),cb(`ngModelChange`,function(n){Ip(t);let l=jw();return bS(l.f.pids,n)||(l.f.pids=n),wp(n)}),Ug(`input`,function(){Ip(t);let n=jw();return wp(n.f.plan=`custom`)}),od()()(),Ys(67,`p`,6),dS(68,`CPU/RAM/processes apply live (no restart). Disk updates the quota.`),od(),Ys(69,`button`,32),Ug(`click`,function(){Ip(t);let n=jw();return wp(n.saveResources())}),Ys(70,`mat-icon`),dS(71,`save`),od(),dS(72,` Save resources`),od()()(),Ys(73,`mat-tab`,33)(74,`div`,22)(75,`div`,34)(76,`mat-slide-toggle`,35),gI(),cb(`ngModelChange`,function(n){Ip(t);let l=jw();return bS(l.f.is_admin,n)||(l.f.is_admin=n),wp(n)}),dS(77,`Admin (can use this admin portal)`),od(),Ys(78,`mat-slide-toggle`,35),gI(),cb(`ngModelChange`,function(n){Ip(t);let l=jw();return bS(l.f.has_workspace,n)||(l.f.has_workspace=n),wp(n)}),dS(79,`Has workspace (VS Code)`),od(),Ys(80,`mat-slide-toggle`,36),gI(),cb(`ngModelChange`,function(n){Ip(t);let l=jw();return bS(l.f.internet,n)||(l.f.internet=n),wp(n)}),dS(81,`Internet access from workspace`),od(),Ys(82,`mat-slide-toggle`,36),gI(),cb(`ngModelChange`,function(n){Ip(t);let l=jw();return bS(l.f.sudo,n)||(l.f.sudo=n),wp(n)}),dS(83,`sudo inside workspace `),Ys(84,`span`,6),dS(85,`(recreates container)`),od()(),Ys(86,`mat-slide-toggle`,36),gI(),cb(`ngModelChange`,function(n){Ip(t);let l=jw();return bS(l.f.shared_folder,n)||(l.f.shared_folder=n),wp(n)}),dS(87,`Shared folder /shared `),Ys(88,`span`,6),dS(89,`(recreates container)`),od()()(),Ys(90,`div`,37)(91,`mat-form-field`)(92,`mat-label`),dS(93,`Display name`),od(),Ys(94,`input`,38),gI(),cb(`ngModelChange`,function(n){Ip(t);let l=jw();return bS(l.f.display_name,n)||(l.f.display_name=n),wp(n)}),od()(),Ys(95,`mat-form-field`)(96,`mat-label`),dS(97,`Access expires`),od(),Ys(98,`input`,39),gI(),cb(`ngModelChange`,function(n){Ip(t);let l=jw();return bS(l.f.expiry,n)||(l.f.expiry=n),wp(n)}),od(),Ys(99,`mat-hint`),dS(100,`Empty = never`),od()(),Ys(101,`mat-form-field`)(102,`mat-label`),dS(103,`Custom image (optional)`),od(),Ys(104,`input`,40),gI(),cb(`ngModelChange`,function(n){Ip(t);let l=jw();return bS(l.f.image,n)||(l.f.image=n),wp(n)}),od()()(),Ys(105,`mat-form-field`,41)(106,`mat-label`),dS(107,`Notes`),od(),Ys(108,`textarea`,42),gI(),cb(`ngModelChange`,function(n){Ip(t);let l=jw();return bS(l.f.notes,n)||(l.f.notes=n),wp(n)}),od()(),Ys(109,`button`,32),Ug(`click`,function(){Ip(t);let n=jw();return wp(n.savePermissions())}),Ys(110,`mat-icon`),dS(111,`save`),od(),dS(112,` Save permissions`),od()()(),Ys(113,`mat-tab`,43)(114,`div`,22)(115,`div`,44)(116,`span`),dS(117,`Password login`),od(),Ys(118,`b`),Yo(119,Gn,1,1)(120,$n,1,0),od()(),Yo(121,qn,5,0,`div`,44),Yo(122,Zn,10,0,`div`,44),Ys(123,`h3`,45),dS(124),od(),Ys(125,`div`,24)(126,`mat-form-field`)(127,`mat-label`),dS(128,`New password`),od(),Ys(129,`input`,46),gI(),cb(`ngModelChange`,function(n){Ip(t);let l=jw();return bS(l.pw.value,n)||(l.pw.value=n),wp(n)}),od(),Ys(130,`button`,47),Ug(`click`,function(){Ip(t);let n=jw();return wp(n.pw.show=!n.pw.show)}),Ys(131,`mat-icon`),dS(132),od()()(),Ys(133,`div`,48)(134,`button`,49),Ug(`click`,function(){Ip(t);let n=jw();return n.pw.value=n.genPassword(16),wp(n.pw.show=!0)}),Ys(135,`mat-icon`),dS(136,`casino`),od(),dS(137,` Generate`),od()()(),Ys(138,`mat-slide-toggle`,35),gI(),cb(`ngModelChange`,function(n){Ip(t);let l=jw();return bS(l.pw.mustChange,n)||(l.pw.mustChange=n),wp(n)}),dS(139,`Must change at next login`),od(),Ys(140,`p`,6),dS(141,`Saving ends all of this user's sessions. Only a salted hash is stored.`),od(),Ys(142,`div`,48)(143,`button`,50),Ug(`click`,function(){Ip(t);let n=jw();return wp(n.setPw())}),Ys(144,`mat-icon`),dS(145,`key`),od(),dS(146,` Save password`),od(),Yo(147,Kn,2,0,`button`,51),od()()(),Ys(148,`mat-tab`,52)(149,`div`,22),Mw(150,Yn,12,5,`div`,53,cn,!1,Xn,2,0,`p`,6),od()(),Ys(153,`mat-tab`,54)(154,`div`,22),Mw(155,Jn,5,5,`div`,55,cn,!1,ta,2,0,`p`,6),od()()()}if(a&2){let t=s,e=jw();zo(2),rb((t.display_name||t.username)[0].toUpperCase()),zo(3),rb(t.display_name||t.username),zo(2),ad(``,t.email,` · `),zo(2),rb(t.username),zo(),Ko(t.uid?10:-1),zo(),ob(` · joined `,e.ago(t.created_at),` · last login `,e.ago(t.last_login)),zo(2),Qo(t.status),zo(),rb(t.status),zo(),Ko(t.expired?15:-1),zo(),Ko(t.is_admin?16:-1),zo(),Ko(t.has_workspace?17:-1),zo(),Ko(t.over_quota?18:-1),zo(),Ko(t.linked_existing?19:-1),zo(2),Ko(t.status===`pending`?21:-1),zo(),Ko(t.status===`active`?22:-1),zo(),Ko(t.status===`disabled`?23:-1),zo(9),Ko(e.busy()?32:-1),zo(4),Ko(t.has_workspace?t.provisioned?38:37:36),zo(3),Lg(`disabled`,!t.has_workspace),zo(6),ab(`ngModel`,e.f.plan),yI(),zo(),Aw(CS(48,51,e.plans())),zo(8),ab(`ngModel`,e.f.cpu),yI(),zo(4),ab(`ngModel`,e.f.mem_mb),yI(),zo(4),ab(`ngModel`,e.f.disk_gb),yI(),zo(4),ab(`ngModel`,e.f.pids),yI(),zo(10),ab(`ngModel`,e.f.is_admin),yI(),zo(2),ab(`ngModel`,e.f.has_workspace),yI(),zo(2),ab(`ngModel`,e.f.internet),Lg(`disabled`,!e.f.has_workspace),yI(),zo(2),ab(`ngModel`,e.f.sudo),Lg(`disabled`,!e.f.has_workspace),yI(),zo(4),ab(`ngModel`,e.f.shared_folder),Lg(`disabled`,!e.f.has_workspace),yI(),zo(8),ab(`ngModel`,e.f.display_name),yI(),zo(4),ab(`ngModel`,e.f.expiry),yI(),zo(6),ab(`ngModel`,e.f.image),yI(),zo(4),ab(`ngModel`,e.f.notes),yI(),zo(11),Ko(t.has_password?119:120),zo(2),Ko(t.must_change_password?121:-1),zo(),Ko(t.locked?122:-1),zo(2),rb(t.has_password?`Reset password`:`Set password`),zo(5),Lg(`type`,e.pw.show?`text`:`password`),ab(`ngModel`,e.pw.value),yI(),zo(3),rb(e.pw.show?`visibility_off`:`visibility`),zo(6),ab(`ngModel`,e.pw.mustChange),yI(),zo(5),Lg(`disabled`,!e.pw.value),zo(4),Ko(t.has_password?147:-1),zo(),Lg(`label`,`Sessions (`+(t.sessions?.length||0)+`)`),zo(2),Aw(t.sessions),zo(5),Aw(e.activity())}}function na(a,s){a&1&&(Ys(0,`div`,2),dS(1,`User not found.`),od())}var mn=class a{api=m(Qy);notify=m(pt);dialog=m(ve);router=m(ue);username=Ib.required();gb=i;pct=g$1;barClass=l;ago=s;dt=f;genPassword=c;pw={value:``,show:!1,mustChange:!0};origin=location.origin;u=ke(null);plans=ke({});activity=ke([]);busy=ke(!1);notFound=ke(!1);cs=ke(`none`);f={};timer=setInterval(()=>this.refresh(!0),2e4);constructor(){this.api.settings().subscribe(s=>this.plans.set(s.plans)),_s(()=>{this.username(),this.refresh()})}ngOnDestroy(){clearInterval(this.timer)}refresh(s=!1){this.api.user(this.username()).subscribe({next:t=>{this.u.set(t),this.cs.set(t.container_status||`none`),s||this.fill(t),this.loadActivity(t)},error:t=>{t.status===404&&this.notFound.set(!0)}})}fill(s){this.f={plan:s.plan,cpu:s.cpu,mem_mb:s.mem_mb,disk_gb:s.disk_gb,pids:s.pids,is_admin:s.is_admin,has_workspace:s.has_workspace,internet:s.internet,sudo:s.sudo,shared_folder:s.shared_folder,display_name:s.display_name,image:s.image,notes:s.notes,expiry:s.expires_at?s.expires_at.slice(0,10):``}}loadActivity(s){this.api.audit(30,0,void 0,s.email).subscribe(t=>this.activity.set(t.items))}pickPlan(){let s=this.plans()[this.f.plan];s&&Object.assign(this.f,{cpu:s.cpu,mem_mb:s.mem_mb,disk_gb:s.disk_gb,pids:s.pids})}run(s,t,e){this.busy.set(!0),s.subscribe({next:n=>{this.busy.set(!1),this.notify.ok(t(n)),e?e(n):this.refresh()},error:()=>{this.busy.set(!1),this.refresh()}})}saveResources(){let s=this.f.plan!==`custom`?{plan:this.f.plan}:{cpu:+this.f.cpu,mem_mb:+this.f.mem_mb,disk_gb:+this.f.disk_gb,pids:+this.f.pids};this.run(this.api.updateUser(this.username(),s),t=>`Saved`+(t.result?.actions.length?`: `+t.result.actions.join(`, `):``))}savePermissions(){let s=this.f,t={is_admin:s.is_admin,has_workspace:s.has_workspace,internet:s.internet,sudo:s.sudo,shared_folder:s.shared_folder,display_name:s.display_name,image:s.image||``,notes:s.notes};s.expiry?t.expires_at=s.expiry+`T23:59:59`:t.clear_expiry=!0,this.run(this.api.updateUser(this.username(),t),e=>`Saved`+(e.result?.actions.length?`: `+e.result.actions.join(`, `):``))}act(s){this.run(this.api.container(this.username(),s),t=>`Workspace: ${t.container_status}`)}rebuild(){ba(this.dialog,{title:`Rebuild workspace?`,message:`The container is recreated from the image. Files in the home folder are kept; open VS Code tabs reconnect.`,ok:`Rebuild`}).subscribe(s=>s&&this.act(`rebuild`))}approve(){this.run(this.api.approve(this.username()),()=>`Approved – workspace created`)}reject(){ba(this.dialog,{title:`Reject?`,message:`The request is removed.`,ok:`Reject`,danger:!0}).subscribe(s=>s&&this.run(this.api.reject(this.username()),()=>`Rejected`,()=>this.router.navigate([`/pending`])))}enable(){this.run(this.api.enable(this.username()),()=>`Enabled`)}disable(){ba(this.dialog,{title:`Disable user?`,message:`Sessions end and the workspace stops immediately.`,ok:`Disable`,danger:!0}).subscribe(s=>s&&this.run(this.api.disable(this.username()),()=>`Disabled`))}logout(){ba(this.dialog,{title:`Force logout?`,message:`All sessions of this user end.`,ok:`Logout`,checkbox:`Also disconnect open VS Code tabs (restarts the workspace)`,checked:!0}).subscribe(s=>s&&this.run(this.api.forceLogout(this.username(),s.checked),t=>`${t.sessions_ended} session(s) ended`))}setPw(){this.run(this.api.setPassword(this.username(),this.pw.value,this.pw.mustChange),()=>`Password saved; sessions ended`,()=>{this.pw={value:``,show:!1,mustChange:!0},this.refresh()})}removePw(){ba(this.dialog,{title:`Remove password?`,message:`The user can then sign in only with AWS SSO. Their sessions end.`,ok:`Remove`,danger:!0}).subscribe(s=>s&&this.run(this.api.removePassword(this.username()),()=>`Password removed`))}unlock(){this.run(this.api.unlock(this.username()),()=>`Unlocked`)}kill(s){this.run(this.api.killSession(s),()=>`Session ended`)}remove(){let s=this.u();ba(this.dialog,{title:`Delete ${s.username}?`,message:`Removes the account, container, nginx route and port.`,ok:`Delete`,danger:!0,checkbox:`Also archive and delete /home/`+s.username+` (and the Linux user)`,checked:!1}).subscribe(t=>t&&this.run(this.api.deleteUser(s.username,!t.checked),e=>`Deleted`+(e.archive?` (archived to ${e.archive})`:``)+(e.errors?.length?` \u2013 warnings: ${e.errors.join(`; `)}`:``),()=>this.router.navigate([`/users`])))}static ɵfac=function(t){return new(t||a)};static ɵcmp=Te({type:a,selectors:[[`ng-component`]],inputs:{username:[1,`username`]},decls:7,vars:1,consts:[[1,`page`],[`mat-button`,``,`routerLink`,`/users`],[1,`card`,`empty`],[1,`card`,`head`],[1,`avatar`],[1,`spacer`],[1,`muted`],[1,`mono`],[1,`row`,2,`margin-top`,`6px`],[1,`chip`],[1,`chip`,`error`],[1,`chip`,`admin`],[1,`chip`,3,`class`],[`matTooltip`,`Linked to an existing Linux user`,1,`chip`,`none`],[1,`row`,`actions`],[`mat-stroked-button`,``],[`mat-flat-button`,``],[`mat-stroked-button`,``,3,`click`],[`mat-stroked-button`,``,1,`del`,3,`click`],[`mode`,`indeterminate`],[`animationDuration`,`0`,`mat-stretch-tabs`,`false`,1,`card`,`tabs`],[`label`,`Workspace`],[1,`tab`],[`label`,`Resources`,3,`disabled`],[1,`form-grid`],[3,`ngModelChange`,`selectionChange`,`ngModel`],[3,`value`],[`value`,`custom`],[`matInput`,``,`type`,`number`,`step`,`0.25`,`min`,`0.25`,3,`ngModelChange`,`input`,`ngModel`],[`matInput`,``,`type`,`number`,`step`,`256`,`min`,`256`,3,`ngModelChange`,`input`,`ngModel`],[`matInput`,``,`type`,`number`,`min`,`1`,3,`ngModelChange`,`input`,`ngModel`],[`matInput`,``,`type`,`number`,`min`,`64`,3,`ngModelChange`,`input`,`ngModel`],[`mat-flat-button`,``,3,`click`],[`label`,`Permissions`],[1,`toggles`],[3,`ngModelChange`,`ngModel`],[3,`ngModelChange`,`ngModel`,`disabled`],[1,`form-grid`,2,`margin-top`,`16px`],[`matInput`,``,3,`ngModelChange`,`ngModel`],[`matInput`,``,`type`,`date`,3,`ngModelChange`,`ngModel`],[`matInput`,``,`placeholder`,`default`,3,`ngModelChange`,`ngModel`],[1,`full`],[`matInput`,``,`rows`,`2`,3,`ngModelChange`,`ngModel`],[`label`,`Login`],[1,`kv`],[2,`font-size`,`14px`,`margin`,`18px 0 8px`],[`matInput`,``,`autocomplete`,`new-password`,`maxlength`,`256`,3,`ngModelChange`,`type`,`ngModel`],[`mat-icon-button`,``,`matSuffix`,``,`type`,`button`,3,`click`],[1,`row`],[`mat-stroked-button`,``,`type`,`button`,3,`click`],[`mat-flat-button`,``,3,`click`,`disabled`],[`mat-stroked-button`,``,1,`del`],[3,`label`],[1,`sess`],[`label`,`Activity`],[1,`act`],[1,`grid`,`stats`],[1,`row`,2,`margin`,`16px 0`],[`mat-stroked-button`,``,`matTooltip`,`Recreate container from the image. Home folder is kept.`,3,`click`],[1,`chip`,`pending`],[`mat-button`,``,3,`click`]],template:function(t,e){if(t&1&&(Ys(0,`div`,0)(1,`a`,1)(2,`mat-icon`),dS(3,`arrow_back`),od(),dS(4,` Users`),od(),Yo(5,ea,158,53)(6,na,2,0,`div`,2),od()),t&2){let n;zo(5),Ko((n=e.u())?5:e.notFound()?6:-1,n)}},dependencies:[Fn$1,He$1,an$1,In,zt,$t,on$1,Ut,dn,Rt,ln,cW,aW,QT,s8,i8,Xt,Qt,Ve$1,Be$1,vn$1,Pe,Be,Xr,Qr,Ce,ke$1,ie,j,L,Vt,_t,yC],styles:[`.head[_ngcontent-%COMP%]{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:8px 0 12px}.head[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;font-size:20px}.avatar[_ngcontent-%COMP%]{width:52px;height:52px;border-radius:50%;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center;font-weight:700;font-size:22px}.del[_ngcontent-%COMP%]{color:#dc2626}.tabs[_ngcontent-%COMP%]{padding:0 8px 8px}.tab[_ngcontent-%COMP%]{padding:18px 8px}.stats[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.stats[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid #eef2f7;border-radius:10px}.stats[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{font-size:20px}.kv[_ngcontent-%COMP%]{display:flex;gap:12px;padding:5px 0;font-size:13px}.kv[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:170px;color:#6b7280}.toggles[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.sess[_ngcontent-%COMP%], .act[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #f1f5f9;font-size:13px}`]})};export{mn as UserDetail};
|