@whoz-oss/coday-factory-cockpit 0.0.0-workstream-forge.28 → 0.0.0-workstream-forge.30

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.
@@ -1,11 +1,11 @@
1
- import {h,F as y,aW as ff,bZ as Y,aP as ro,aV as q,cu as qb,aE as xc,aa as M,bg as Q,cv as je$1,cp as F,cw as Le$1,cx as Xe$1,c7 as Xt,aZ as at,c8 as q$1,cy as wt,cz as Ft,bL as Ur,a_ as $$1,bA as QS,bU as ao,aY as wt$1,ba as Zb,bb as Yv,aU as ke,aG as um,A as Ae,a$ as Wi,aI as qr,f as fa,b1 as jg,E as Ed,bK as qg,r as rr,D as Dt,B as pe,C as ce,bX as di,aC as Pe$1,J as Jr,aS as ue,aH as tt,b0 as ha,c as Yg,cA as Aw,cB as pt,cC as vM,cD as zv,aR as P,b3 as sf,aT as ti,b4 as Ny,cd as be,aQ as k,b_ as Gl,cE as rM,b2 as Xg,aM as uC,aN as lC,g as Ye$1,cF as oM,cG as EM,cH as At}from'./main-Q2L26FCS.js';function ze(i,a){}var g=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;scrollStrategy;closeOnNavigation=true;closeOnDestroy=true;closeOnOverlayDetachments=true;disableAnimations=false;providers;container;templateContext;bindings};var K=(()=>{class i extends pt{_elementRef=h(ue);_focusTrapFactory=h(vM);_config;_interactivityChecker=h(zv);_ngZone=h(P);_focusMonitor=h(sf);_renderer=h(ti);_changeDetectorRef=h(Ny);_injector=h(Y);_platform=h(be);_document=h(k);_portalOutlet;_focusTrapped=new q;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=h(g,{optional:true})||new g,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck();}_removeAriaLabelledBy(e){let t=this._ariaLabelledByQueue.indexOf(e);t>-1&&(this._ariaLabelledByQueue.splice(t,1),this._changeDetectorRef.markForCheck());}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus();}_captureInitialFocus(){this._trapFocus();}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=true,this._restoreFocus();}attachComponentPortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}attachDomPortal=e=>{this._portalOutlet.hasAttached();let t=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),t};_recaptureFocus(){this._containsFocus()||this._trapFocus();}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let n=()=>{o(),l(),e.removeAttribute("tabindex");},o=this._renderer.listen(e,"blur",n),l=this._renderer.listen(e,"mousedown",n);})),e.focus(t);}_focusByCssSelector(e,t){let n=this._elementRef.nativeElement.querySelector(e);n&&this._forceFocus(n,t);}_trapFocus(e){this._isDestroyed||Gl(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case false:case "dialog":this._containsFocus()||t.focus(e);break;case true:case "first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next();},{injector:this._injector});}_restoreFocus(){let e=this._config.restoreFocus,t=null;if(typeof e=="string"?t=this._document.querySelector(e):typeof e=="boolean"?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&typeof t.focus=="function"){let n=rM(),o=this._elementRef.nativeElement;(!n||n===this._document.body||n===o||o.contains(n))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus());}this._focusTrap&&this._focusTrap.destroy();}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e);}_containsFocus(){let e=this._elementRef.nativeElement,t=rM();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=rM()));}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=Ae({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(t,n){if(t&1&&Xg(Wi,7),t&2){let o;uC(o=lC())&&(n._portalOutlet=o.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,n){t&2&&rr("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null);},features:[qr],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){t&1&&jg(0,ze,0,0,"ng-template",0);},dependencies:[Wi],styles:[`.cdk-dialog-container {
1
+ import {h,F as y,aT as ff,bZ as Y,aM as ro,aS as q,cu as qb,aB as xc,aa as M,bd as Q,cv as je$1,cp as F,cw as Le$1,cx as Xe$1,c7 as Xt,aW as at,c8 as q$1,cy as wt,cz as Ft,bK as Ur,aX as $$1,bz as QS,bU as ao,aV as wt$1,b7 as Zb,b8 as Yv,aR as Re$1,aD as um,x as xe,aY as Wi,aF as qr,f as fa,a_ as jg,E as Ed,bJ as qg,r as rr,D as Dt,B as pe,C as ce,bX as di,az as Pe$1,J as Jr,aP as ue,aE as et,aZ as ha,c as Yg,cA as Aw,cB as pt,cC as vM,cD as zv,aO as P,b0 as sf,aQ as ti,b1 as Ny,cd as be,aN as k,b_ as Gl,cE as rM,a$ as Xg,aJ as uC,aK as lC,g as Ze$1,cF as oM,cG as EM,cH as At}from'./main-PVZZD6Y4.js';function ze(i,a){}var g=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;scrollStrategy;closeOnNavigation=true;closeOnDestroy=true;closeOnOverlayDetachments=true;disableAnimations=false;providers;container;templateContext;bindings};var K=(()=>{class i extends pt{_elementRef=h(ue);_focusTrapFactory=h(vM);_config;_interactivityChecker=h(zv);_ngZone=h(P);_focusMonitor=h(sf);_renderer=h(ti);_changeDetectorRef=h(Ny);_injector=h(Y);_platform=h(be);_document=h(k);_portalOutlet;_focusTrapped=new q;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=h(g,{optional:true})||new g,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck();}_removeAriaLabelledBy(e){let t=this._ariaLabelledByQueue.indexOf(e);t>-1&&(this._ariaLabelledByQueue.splice(t,1),this._changeDetectorRef.markForCheck());}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus();}_captureInitialFocus(){this._trapFocus();}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=true,this._restoreFocus();}attachComponentPortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}attachDomPortal=e=>{this._portalOutlet.hasAttached();let t=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),t};_recaptureFocus(){this._containsFocus()||this._trapFocus();}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let n=()=>{o(),l(),e.removeAttribute("tabindex");},o=this._renderer.listen(e,"blur",n),l=this._renderer.listen(e,"mousedown",n);})),e.focus(t);}_focusByCssSelector(e,t){let n=this._elementRef.nativeElement.querySelector(e);n&&this._forceFocus(n,t);}_trapFocus(e){this._isDestroyed||Gl(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case false:case "dialog":this._containsFocus()||t.focus(e);break;case true:case "first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next();},{injector:this._injector});}_restoreFocus(){let e=this._config.restoreFocus,t=null;if(typeof e=="string"?t=this._document.querySelector(e):typeof e=="boolean"?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&typeof t.focus=="function"){let n=rM(),o=this._elementRef.nativeElement;(!n||n===this._document.body||n===o||o.contains(n))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus());}this._focusTrap&&this._focusTrap.destroy();}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e);}_containsFocus(){let e=this._elementRef.nativeElement,t=rM();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=rM()));}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=xe({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(t,n){if(t&1&&Xg(Wi,7),t&2){let o;uC(o=lC())&&(n._portalOutlet=o.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,n){t&2&&rr("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null);},features:[qr],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){t&1&&jg(0,ze,0,0,"ng-template",0);},dependencies:[Wi],styles:[`.cdk-dialog-container {
2
2
  display: block;
3
3
  width: 100%;
4
4
  height: 100%;
5
5
  min-height: inherit;
6
6
  max-height: inherit;
7
7
  }
8
- `],encapsulation:2,changeDetection:1})}return i})(),T=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new q;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(a,e){this.overlayRef=a,this.config=e,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!Yv(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}));}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.();}),this._detachSubscription=a.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==false&&this.close();});}close(a,e){if(this._canClose(a)){let t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null;}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}_canClose(a){let e=this.config;return !!this.containerInstance&&(!e.closePredicate||e.closePredicate(a,e,this.componentInstance))}},He=new y("DialogScrollStrategy",{providedIn:"root",factory:()=>{let i=h(Y);return ()=>Le$1(i)}}),Ge=new y("DialogData"),We=new y("DefaultDialogConfig");function Qe(i){let a=Ye$1(i),e=new ke;return {valueSignal:a,get value(){return a()},change:e,ngOnDestroy(){e.complete();}}}var X=(()=>{class i{_injector=h(Y);_defaultOptions=h(We,{optional:true});_parentDialog=h(i,{optional:true,skipSelf:true});_overlayContainer=h(Xe$1);_idGenerator=h(ff);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new q;_afterOpenedAtThisLevel=new q;_ariaHiddenElements=new Map;_scrollStrategy=h(He);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=qb(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(xc(void 0)));open(e,t){let n=this._defaultOptions||new g;t=M(M({},n),t),t.id=t.id||this._idGenerator.getId("cdk-dialog-"),t.id&&this.getDialogById(t.id);let o=this._getOverlayConfig(t),l=Xt(this._injector,o),r=new T(l,t),d=this._attachContainer(l,r,t);if(r.containerInstance=d,!this.openDialogs.length){let H=this._overlayContainer.getContainerElement();d._focusTrapped?d._focusTrapped.pipe(at(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(H);}):this._hideNonDialogContentFromAssistiveTechnology(H);}return this._attachDialogContent(e,r,d,t),this.openDialogs.push(r),r.closed.subscribe(()=>this._removeOpenDialog(r,true)),this.afterOpened.next(r),r}closeAll(){$(this.openDialogs,e=>e.close());}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){$(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===false&&this._removeOpenDialog(e,false);}),$(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(e){let t=new q$1({positionStrategy:e.positionStrategy||je$1().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,n){let o=n.injector||n.viewContainerRef?.injector,l=[{provide:g,useValue:n},{provide:T,useValue:t},{provide:wt,useValue:e}],r;n.container?typeof n.container=="function"?r=n.container:(r=n.container.type,l.push(...n.container.providers(n))):r=K;let d=new Ft(r,n.viewContainerRef,Y.create({parent:o||this._injector,providers:l}));return e.attach(d).instance}_attachDialogContent(e,t,n,o){if(e instanceof Ur){let l=this._createInjector(o,t,n,void 0),r={$implicit:o.data,dialogRef:t};o.templateContext&&(r=M(M({},r),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),n.attachTemplatePortal(new $$1(e,null,r,l));}else {let l=this._createInjector(o,t,n,this._injector),r=n.attachComponentPortal(new Ft(e,o.viewContainerRef,l,null,o.bindings));t.componentRef=r,t.componentInstance=r.instance;}}_createInjector(e,t,n,o){let l=e.injector||e.viewContainerRef?.injector,r=[{provide:Ge,useValue:e.data},{provide:T,useValue:t}];return e.providers&&(typeof e.providers=="function"?r.push(...e.providers(t,e,n)):r.push(...e.providers)),e.direction&&(!l||!l.get(QS,null,{optional:true}))&&r.push({provide:QS,useValue:Qe(e.direction)}),Y.create({parent:l||o,providers:r})}_removeOpenDialog(e,t){let n=this.openDialogs.indexOf(e);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,l)=>{o?l.setAttribute("aria-hidden",o):l.removeAttribute("aria-hidden");}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()));}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let t=e.parentElement.children;for(let n=t.length-1;n>-1;n--){let o=t[n];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&!o.hasAttribute("popover")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"));}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(t){return new(t||i)};static \u0275prov=F({token:i,factory:i.\u0275fac})}return i})();function $(i,a){let e=i.length;for(;e--;)a(i[e]);}var Fe=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=pe({type:i});static \u0275inj=ce({providers:[X],imports:[di,Pe$1,EM,Pe$1]})}return i})();function qe(i,a){}var z=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;delayFocusTrap=true;scrollStrategy;closeOnNavigation=true;enterAnimationDuration;exitAnimationDuration;bindings},J="mdc-dialog--open",Le="mdc-dialog--opening",Re="mdc-dialog--closing",Ue=150,Ye=75,Ze=(()=>{class i extends K{_animationStateChanged=new ke;_animationsEnabled=!ro();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Me(this._config.enterAnimationDuration)??Ue:0;_exitAnimationDuration=this._animationsEnabled?Me(this._config.exitAnimationDuration)??Ye:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation();}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Pe,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Le,J)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(J),Promise.resolve().then(()=>this._finishDialogOpen()));}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(J),this._animationsEnabled?(this._hostElement.style.setProperty(Pe,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Re)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose());}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck();}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration);};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration});};_clearAnimationClasses(){this._hostElement.classList.remove(Le,Re);}_waitForAnimationToComplete(e,t){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(t,e);}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e();});}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus();}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e});}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer);}attachComponentPortal(e){let t=super.attachComponentPortal(e);return t.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),t}static \u0275fac=(()=>{let e;return function(n){return (e||(e=um(i)))(n||i)}})();static \u0275cmp=Ae({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(t,n){t&2&&(qg("id",n._config.id),rr("aria-modal",n._config.ariaModal)("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Dt("_mat-animation-noopable",!n._animationsEnabled)("mat-mdc-dialog-container-with-actions",n._actionSectionCount>0));},features:[qr],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(t,n){t&1&&(fa(0,"div",0)(1,"div",1),jg(2,qe,0,0,"ng-template",2),Ed()());},dependencies:[Wi],styles:[`.mat-mdc-dialog-container {
8
+ `],encapsulation:2,changeDetection:1})}return i})(),T=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new q;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(a,e){this.overlayRef=a,this.config=e,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!Yv(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}));}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.();}),this._detachSubscription=a.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==false&&this.close();});}close(a,e){if(this._canClose(a)){let t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null;}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}_canClose(a){let e=this.config;return !!this.containerInstance&&(!e.closePredicate||e.closePredicate(a,e,this.componentInstance))}},He=new y("DialogScrollStrategy",{providedIn:"root",factory:()=>{let i=h(Y);return ()=>Le$1(i)}}),Ge=new y("DialogData"),We=new y("DefaultDialogConfig");function Qe(i){let a=Ze$1(i),e=new Re$1;return {valueSignal:a,get value(){return a()},change:e,ngOnDestroy(){e.complete();}}}var X=(()=>{class i{_injector=h(Y);_defaultOptions=h(We,{optional:true});_parentDialog=h(i,{optional:true,skipSelf:true});_overlayContainer=h(Xe$1);_idGenerator=h(ff);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new q;_afterOpenedAtThisLevel=new q;_ariaHiddenElements=new Map;_scrollStrategy=h(He);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=qb(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(xc(void 0)));open(e,t){let n=this._defaultOptions||new g;t=M(M({},n),t),t.id=t.id||this._idGenerator.getId("cdk-dialog-"),t.id&&this.getDialogById(t.id);let o=this._getOverlayConfig(t),l=Xt(this._injector,o),r=new T(l,t),d=this._attachContainer(l,r,t);if(r.containerInstance=d,!this.openDialogs.length){let H=this._overlayContainer.getContainerElement();d._focusTrapped?d._focusTrapped.pipe(at(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(H);}):this._hideNonDialogContentFromAssistiveTechnology(H);}return this._attachDialogContent(e,r,d,t),this.openDialogs.push(r),r.closed.subscribe(()=>this._removeOpenDialog(r,true)),this.afterOpened.next(r),r}closeAll(){$(this.openDialogs,e=>e.close());}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){$(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===false&&this._removeOpenDialog(e,false);}),$(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(e){let t=new q$1({positionStrategy:e.positionStrategy||je$1().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,n){let o=n.injector||n.viewContainerRef?.injector,l=[{provide:g,useValue:n},{provide:T,useValue:t},{provide:wt,useValue:e}],r;n.container?typeof n.container=="function"?r=n.container:(r=n.container.type,l.push(...n.container.providers(n))):r=K;let d=new Ft(r,n.viewContainerRef,Y.create({parent:o||this._injector,providers:l}));return e.attach(d).instance}_attachDialogContent(e,t,n,o){if(e instanceof Ur){let l=this._createInjector(o,t,n,void 0),r={$implicit:o.data,dialogRef:t};o.templateContext&&(r=M(M({},r),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),n.attachTemplatePortal(new $$1(e,null,r,l));}else {let l=this._createInjector(o,t,n,this._injector),r=n.attachComponentPortal(new Ft(e,o.viewContainerRef,l,null,o.bindings));t.componentRef=r,t.componentInstance=r.instance;}}_createInjector(e,t,n,o){let l=e.injector||e.viewContainerRef?.injector,r=[{provide:Ge,useValue:e.data},{provide:T,useValue:t}];return e.providers&&(typeof e.providers=="function"?r.push(...e.providers(t,e,n)):r.push(...e.providers)),e.direction&&(!l||!l.get(QS,null,{optional:true}))&&r.push({provide:QS,useValue:Qe(e.direction)}),Y.create({parent:l||o,providers:r})}_removeOpenDialog(e,t){let n=this.openDialogs.indexOf(e);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,l)=>{o?l.setAttribute("aria-hidden",o):l.removeAttribute("aria-hidden");}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()));}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let t=e.parentElement.children;for(let n=t.length-1;n>-1;n--){let o=t[n];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&!o.hasAttribute("popover")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"));}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(t){return new(t||i)};static \u0275prov=F({token:i,factory:i.\u0275fac})}return i})();function $(i,a){let e=i.length;for(;e--;)a(i[e]);}var Fe=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=pe({type:i});static \u0275inj=ce({providers:[X],imports:[di,Pe$1,EM,Pe$1]})}return i})();function qe(i,a){}var z=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;delayFocusTrap=true;scrollStrategy;closeOnNavigation=true;enterAnimationDuration;exitAnimationDuration;bindings},J="mdc-dialog--open",Le="mdc-dialog--opening",Re="mdc-dialog--closing",Ue=150,Ye=75,Ze=(()=>{class i extends K{_animationStateChanged=new Re$1;_animationsEnabled=!ro();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Me(this._config.enterAnimationDuration)??Ue:0;_exitAnimationDuration=this._animationsEnabled?Me(this._config.exitAnimationDuration)??Ye:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation();}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Pe,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Le,J)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(J),Promise.resolve().then(()=>this._finishDialogOpen()));}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(J),this._animationsEnabled?(this._hostElement.style.setProperty(Pe,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Re)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose());}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck();}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration);};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration});};_clearAnimationClasses(){this._hostElement.classList.remove(Le,Re);}_waitForAnimationToComplete(e,t){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(t,e);}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e();});}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus();}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e});}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer);}attachComponentPortal(e){let t=super.attachComponentPortal(e);return t.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),t}static \u0275fac=(()=>{let e;return function(n){return (e||(e=um(i)))(n||i)}})();static \u0275cmp=xe({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(t,n){t&2&&(qg("id",n._config.id),rr("aria-modal",n._config.ariaModal)("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Dt("_mat-animation-noopable",!n._animationsEnabled)("mat-mdc-dialog-container-with-actions",n._actionSectionCount>0));},features:[qr],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(t,n){t&1&&(fa(0,"div",0)(1,"div",1),jg(2,qe,0,0,"ng-template",2),Ed()());},dependencies:[Wi],styles:[`.mat-mdc-dialog-container {
9
9
  width: 100%;
10
10
  height: 100%;
11
11
  display: block;
@@ -194,4 +194,4 @@ import {h,F as y,aW as ff,bZ as Y,aP as ro,aV as q,cu as qb,aE as xc,aa as M,bg
194
194
  .mat-mdc-dialog-component-host {
195
195
  display: contents;
196
196
  }
197
- `],encapsulation:2,changeDetection:1})}return i})(),Pe="--mat-dialog-transition-duration";function Me(i){return i==null?null:typeof i=="number"?i:i.endsWith("ms")?oM(i.substring(0,i.length-2)):i.endsWith("s")?oM(i.substring(0,i.length-1))*1e3:i==="0"?0:null}var V=(function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i})(V||{}),O=class{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new ao(1);_beforeClosed=new ao(1);_result;_closeFallbackTimeout;_state=V.OPEN;_closeInteractionType;constructor(a,e,t){this._ref=a,this._config=e,this._containerInstance=t,this.disableClose=e.disableClose,this.id=a.id,a.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(wt$1(n=>n.state==="opened"),at(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),t._animationStateChanged.pipe(wt$1(n=>n.state==="closed"),at(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose();}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose();}),Zb(this.backdropClick(),this.keydownEvents().pipe(wt$1(n=>n.keyCode===27&&!this.disableClose&&!Yv(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),Be(this,n.type==="keydown"?"keyboard":"mouse"));});}close(a){let e=this._config.closePredicate;e&&!e(a,this._config,this.componentInstance)||(this._result=a,this._containerInstance._animationStateChanged.pipe(wt$1(t=>t.state==="closing"),at(1)).subscribe(t=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100);}),this._state=V.CLOSING,this._containerInstance._startExitAnimation());}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=V.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null;}};function Be(i,a,e){return i._closeInteractionType=a,i.close(e)}var $e=new y("MatMdcDialogData"),Ke=new y("mat-mdc-dialog-default-options"),Xe=new y("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let i=h(Y);return ()=>Le$1(i)}}),ee=(()=>{class i{_defaultOptions=h(Ke,{optional:true});_scrollStrategy=h(Xe);_parentDialog=h(i,{optional:true,skipSelf:true});_idGenerator=h(ff);_injector=h(Y);_dialog=h(X);_animationsDisabled=ro();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new q;_afterOpenedAtThisLevel=new q;dialogConfigClass=z;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=qb(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(xc(void 0)));constructor(){this._dialogRefConstructor=O,this._dialogContainerType=Ze,this._dialogDataToken=$e;}open(e,t){let n;t=M(M({},this._defaultOptions||new z),t),t.id=t.id||this._idGenerator.getId("mat-mdc-dialog-"),t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,Q(M({},t),{positionStrategy:je$1(this._injector).centerHorizontally().centerVertically(),disableClose:true,closePredicate:void 0,closeOnDestroy:false,closeOnOverlayDetachments:false,disableAnimations:this._animationsDisabled||t.enterAnimationDuration?.toLocaleString()==="0"||t.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:t},{provide:g,useValue:t}]},templateContext:()=>({dialogRef:n}),providers:(l,r,d)=>(n=new this._dialogRefConstructor(l,t,d),n.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:d},{provide:this._dialogDataToken,useValue:r.data},{provide:this._dialogRefConstructor,useValue:n}])}));return n.componentRef=o.componentRef,n.componentInstance=o.componentInstance,this.openDialogs.push(n),this.afterOpened.next(n),n.afterClosed().subscribe(()=>{let l=this.openDialogs.indexOf(n);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||this._getAfterAllClosed().next());}),n}closeAll(){this._closeDialogs(this.openDialogs);}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete();}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close();}static \u0275fac=function(t){return new(t||i)};static \u0275prov=F({token:i,factory:i.\u0275fac})}return i})(),jt=(()=>{class i{dialogRef=h(O,{optional:true});_elementRef=h(ue);_dialog=h(ee);ariaLabel;type="button";dialogResult;_matDialogClose;ngOnInit(){this.dialogRef||(this.dialogRef=Ne(this._elementRef,this._dialog.openDialogs));}ngOnChanges(e){let t=e._matDialogClose;t&&(this.dialogResult=t.currentValue);}_onButtonClick(e){this._elementRef.nativeElement.getAttribute("aria-disabled")!=="true"&&Be(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult);}static \u0275fac=function(t){return new(t||i)};static \u0275dir=tt({type:i,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,n){t&1&&Yg("click",function(l){return n._onButtonClick(l)}),t&2&&rr("aria-label",n.ariaLabel||null)("type",n.type);},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[ha]})}return i})(),je=(()=>{class i{_dialogRef=h(O,{optional:true});_elementRef=h(ue);_dialog=h(ee);ngOnInit(){this._dialogRef||(this._dialogRef=Ne(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd();});}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove();});}static \u0275fac=function(t){return new(t||i)};static \u0275dir=tt({type:i})}return i})(),Nt=(()=>{class i extends je{id=h(ff).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id);}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id);}static \u0275fac=(()=>{let e;return function(n){return (e||(e=um(i)))(n||i)}})();static \u0275dir=tt({type:i,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(t,n){t&2&&qg("id",n.id);},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[qr]})}return i})(),Vt=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=tt({type:i,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[Aw([At])]})}return i})(),zt=(()=>{class i extends je{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1);}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1);}static \u0275fac=(()=>{let e;return function(n){return (e||(e=um(i)))(n||i)}})();static \u0275dir=tt({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(t,n){t&2&&Dt("mat-mdc-dialog-actions-align-start",n.align==="start")("mat-mdc-dialog-actions-align-center",n.align==="center")("mat-mdc-dialog-actions-align-end",n.align==="end");},inputs:{align:"align"},features:[qr]})}return i})();function Ne(i,a){let e=i.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}var Ht=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=pe({type:i});static \u0275inj=ce({providers:[ee],imports:[Fe,di,Pe$1,Jr]})}return i})();export{$e as $,Ht as H,Nt as N,Vt as V,ee as e,jt as j,zt as z};
197
+ `],encapsulation:2,changeDetection:1})}return i})(),Pe="--mat-dialog-transition-duration";function Me(i){return i==null?null:typeof i=="number"?i:i.endsWith("ms")?oM(i.substring(0,i.length-2)):i.endsWith("s")?oM(i.substring(0,i.length-1))*1e3:i==="0"?0:null}var V=(function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i})(V||{}),O=class{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new ao(1);_beforeClosed=new ao(1);_result;_closeFallbackTimeout;_state=V.OPEN;_closeInteractionType;constructor(a,e,t){this._ref=a,this._config=e,this._containerInstance=t,this.disableClose=e.disableClose,this.id=a.id,a.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(wt$1(n=>n.state==="opened"),at(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),t._animationStateChanged.pipe(wt$1(n=>n.state==="closed"),at(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose();}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose();}),Zb(this.backdropClick(),this.keydownEvents().pipe(wt$1(n=>n.keyCode===27&&!this.disableClose&&!Yv(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),Be(this,n.type==="keydown"?"keyboard":"mouse"));});}close(a){let e=this._config.closePredicate;e&&!e(a,this._config,this.componentInstance)||(this._result=a,this._containerInstance._animationStateChanged.pipe(wt$1(t=>t.state==="closing"),at(1)).subscribe(t=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100);}),this._state=V.CLOSING,this._containerInstance._startExitAnimation());}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=V.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null;}};function Be(i,a,e){return i._closeInteractionType=a,i.close(e)}var $e=new y("MatMdcDialogData"),Ke=new y("mat-mdc-dialog-default-options"),Xe=new y("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let i=h(Y);return ()=>Le$1(i)}}),ee=(()=>{class i{_defaultOptions=h(Ke,{optional:true});_scrollStrategy=h(Xe);_parentDialog=h(i,{optional:true,skipSelf:true});_idGenerator=h(ff);_injector=h(Y);_dialog=h(X);_animationsDisabled=ro();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new q;_afterOpenedAtThisLevel=new q;dialogConfigClass=z;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=qb(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(xc(void 0)));constructor(){this._dialogRefConstructor=O,this._dialogContainerType=Ze,this._dialogDataToken=$e;}open(e,t){let n;t=M(M({},this._defaultOptions||new z),t),t.id=t.id||this._idGenerator.getId("mat-mdc-dialog-"),t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,Q(M({},t),{positionStrategy:je$1(this._injector).centerHorizontally().centerVertically(),disableClose:true,closePredicate:void 0,closeOnDestroy:false,closeOnOverlayDetachments:false,disableAnimations:this._animationsDisabled||t.enterAnimationDuration?.toLocaleString()==="0"||t.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:t},{provide:g,useValue:t}]},templateContext:()=>({dialogRef:n}),providers:(l,r,d)=>(n=new this._dialogRefConstructor(l,t,d),n.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:d},{provide:this._dialogDataToken,useValue:r.data},{provide:this._dialogRefConstructor,useValue:n}])}));return n.componentRef=o.componentRef,n.componentInstance=o.componentInstance,this.openDialogs.push(n),this.afterOpened.next(n),n.afterClosed().subscribe(()=>{let l=this.openDialogs.indexOf(n);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||this._getAfterAllClosed().next());}),n}closeAll(){this._closeDialogs(this.openDialogs);}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete();}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close();}static \u0275fac=function(t){return new(t||i)};static \u0275prov=F({token:i,factory:i.\u0275fac})}return i})(),jt=(()=>{class i{dialogRef=h(O,{optional:true});_elementRef=h(ue);_dialog=h(ee);ariaLabel;type="button";dialogResult;_matDialogClose;ngOnInit(){this.dialogRef||(this.dialogRef=Ne(this._elementRef,this._dialog.openDialogs));}ngOnChanges(e){let t=e._matDialogClose;t&&(this.dialogResult=t.currentValue);}_onButtonClick(e){this._elementRef.nativeElement.getAttribute("aria-disabled")!=="true"&&Be(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult);}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,n){t&1&&Yg("click",function(l){return n._onButtonClick(l)}),t&2&&rr("aria-label",n.ariaLabel||null)("type",n.type);},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[ha]})}return i})(),je=(()=>{class i{_dialogRef=h(O,{optional:true});_elementRef=h(ue);_dialog=h(ee);ngOnInit(){this._dialogRef||(this._dialogRef=Ne(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd();});}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove();});}static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i})}return i})(),Nt=(()=>{class i extends je{id=h(ff).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id);}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id);}static \u0275fac=(()=>{let e;return function(n){return (e||(e=um(i)))(n||i)}})();static \u0275dir=et({type:i,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(t,n){t&2&&qg("id",n.id);},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[qr]})}return i})(),Vt=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=et({type:i,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[Aw([At])]})}return i})(),zt=(()=>{class i extends je{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1);}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1);}static \u0275fac=(()=>{let e;return function(n){return (e||(e=um(i)))(n||i)}})();static \u0275dir=et({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(t,n){t&2&&Dt("mat-mdc-dialog-actions-align-start",n.align==="start")("mat-mdc-dialog-actions-align-center",n.align==="center")("mat-mdc-dialog-actions-align-end",n.align==="end");},inputs:{align:"align"},features:[qr]})}return i})();function Ne(i,a){let e=i.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}var Ht=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=pe({type:i});static \u0275inj=ce({providers:[ee],imports:[Fe,di,Pe$1,Jr]})}return i})();export{$e as $,Ht as H,Nt as N,Vt as V,ee as e,jt as j,zt as z};
@@ -1,4 +1,4 @@
1
- import {y}from'./chunk-BYZCY_yB.js';import {h,S as St,p as pb,A as Ae,N as Nt$1,I as IW,_ as _W,a as A8,x as x8,o as ot,f as fa,k as kC,E as Ed,z as zg,G as GC,q as qw,Q as Qo,u as uy,K as KC,Z as Zw,b as xy,Y as YV,n as nT,r as rr,$ as $g,l as ly,e as eC,c as Yg,d as rn,g as Ye,V as Vs,i as bt$1,j as nS,s as st,m as nt,t as py,v as ni,P as PC,D as Dt,w as $C,y as ri,B as pe,C as ce$1,J as Jr,F as y$1,H as or,L as nt$1,M as $t$1,O as vt,R as sC,T as jC,U as YC,W as ZC,X as ii,a0 as Vp,a1 as Hp,a2 as Cd,a3 as Om}from'./main-Q2L26FCS.js';import {I}from'./chunk-DZbBIzAF.js';import {e as ee$1}from'./chunk-Bu7fcbUT.js';import {_}from'./chunk-yvUmK3gv.js';var wt=["*"];var Mt=new y$1("MAT_CARD_CONFIG"),_t=(()=>{class e{appearance;constructor(){let t=h(Mt,{optional:true});this.appearance=t?.appearance||"raised";}static \u0275fac=function(s){return new(s||e)};static \u0275cmp=Ae({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(s,d){s&2&&Dt("mat-mdc-card-outlined",d.appearance==="outlined")("mdc-card--outlined",d.appearance==="outlined")("mat-mdc-card-filled",d.appearance==="filled")("mdc-card--filled",d.appearance==="filled");},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:wt,decls:1,vars:0,template:function(s,d){s&1&&(or(),nt$1(0));},styles:[`.mat-mdc-card {
1
+ import {y}from'./chunk-C1g4gRKi.js';import {h,S as St,p as pb,x as xe,N as Nt$1,I as IW,_ as _W,A as A8,a as x8,o as ot,f as fa,k as kC,E as Ed,z as zg,G as GC,q as qw,Q as Qo,u as uy,K as KC,Z as Zw,b as xy,Y as YV,n as nT,r as rr,$ as $g,l as ly,e as eC,c as Yg,d as rn,g as Ze,V as Vs,i as bt$1,j as nS,s as st,m as nt,t as py,v as ni,P as PC,D as Dt,w as $C,y as ri,B as pe,C as ce$1,J as Jr,F as y$1,H as or,L as tt,M as $t$1,O as vt,R as sC,T as jC,U as YC,W as ZC,X as ii,a0 as Vp,a1 as Hp,a2 as Cd,a3 as Om}from'./main-PVZZD6Y4.js';import {I}from'./chunk-BmB8Pq_E.js';import {e as ee$1}from'./chunk-7ksf-Ij9.js';import {_}from'./chunk-CjDsKAlC.js';var wt=["*"];var Mt=new y$1("MAT_CARD_CONFIG"),_t=(()=>{class e{appearance;constructor(){let t=h(Mt,{optional:true});this.appearance=t?.appearance||"raised";}static \u0275fac=function(s){return new(s||e)};static \u0275cmp=xe({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(s,d){s&2&&Dt("mat-mdc-card-outlined",d.appearance==="outlined")("mdc-card--outlined",d.appearance==="outlined")("mat-mdc-card-filled",d.appearance==="filled")("mdc-card--filled",d.appearance==="filled");},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:wt,decls:1,vars:0,template:function(s,d){s&1&&(or(),tt(0));},styles:[`.mat-mdc-card {
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  box-sizing: border-box;
@@ -168,4 +168,4 @@ import {y}from'./chunk-BYZCY_yB.js';import {h,S as St,p as pb,A as Ae,N as Nt$1,
168
168
  .mat-mdc-card-actions-align-end {
169
169
  justify-content: flex-end;
170
170
  }
171
- `],encapsulation:2})}return e})();var yt=(()=>{class e{static \u0275fac=function(s){return new(s||e)};static \u0275mod=pe({type:e});static \u0275inj=ce$1({imports:[Jr]})}return e})();var Pt=(e,n)=>n.key;function Ot(e,n){if(e&1&&zg(0,"li",2),e&2){let t=n.$implicit,s=sC();ii(s.dotClass(t)),$g("matTooltip",s.dotLabel(t)),rr("aria-label",s.dotLabel(t));}}var $=class e{phases=xy.required();ariaLabel=nT(()=>{let n=this.phases();return n.length===0?"No steps":`Steps: ${n.map(t=>this.dotLabel(t)).join(", ")}`});dotClass(n){switch(n.status){case "done":return "dot--done";case "failed":return "dot--failed";case "blocked":return "dot--blocked";case "indeterminate":return "dot--indeterminate";case "cancelled":return "dot--cancelled";case "running":return "dot--running";case "waiting_human":return "dot--waiting-human";case "pending":return "dot--pending"}}dotLabel(n){let t={done:"completed",failed:"failed",blocked:"blocked",indeterminate:"indeterminate",cancelled:"cancelled",running:"running",waiting_human:"waiting for human",pending:"waiting"};return `${n.label??n.key}: ${t[n.status]}`}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=Ae({type:e,selectors:[["sf-step-dots"]],inputs:{phases:[1,"phases"]},decls:3,vars:1,consts:[["role","list",1,"dots"],["tabindex","0","matTooltipShowDelay","200","role","listitem",1,"dot",3,"class","matTooltip"],["tabindex","0","matTooltipShowDelay","200","role","listitem",1,"dot",3,"matTooltip"]],template:function(t,s){t&1&&(fa(0,"ol",0),qw(1,Ot,1,4,"li",1,Pt),Ed()),t&2&&(rr("aria-label",s.ariaLabel()),Qo(),Zw(s.phases()));},dependencies:[$t$1,vt],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.dots[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:7px}.dot[_ngcontent-%COMP%]{width:12px;height:12px;border-radius:50%;flex-shrink:0;cursor:default;outline-offset:2px}.dot[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--sf-primary)}.dot--done[_ngcontent-%COMP%]{background:var(--sf-success)}.dot--failed[_ngcontent-%COMP%]{background:var(--sf-error)}.dot--blocked[_ngcontent-%COMP%]{box-sizing:border-box;border:2px solid var(--sf-tertiary);background:transparent}.dot--indeterminate[_ngcontent-%COMP%]{background:var(--sf-error);opacity:.55}.dot--cancelled[_ngcontent-%COMP%]{background:var(--sf-outline-strong)}.dot--running[_ngcontent-%COMP%]{background:var(--sf-secondary);animation:_ngcontent-%COMP%_sf-dot-pulse 1.8s ease-in-out infinite}.dot--waiting-human[_ngcontent-%COMP%]{background:var(--sf-tertiary)}.dot--pending[_ngcontent-%COMP%]{background:var(--sf-outline)}@keyframes _ngcontent-%COMP%_sf-dot-pulse{0%,to{box-shadow:0 0 #5fd4e000}50%{box-shadow:0 0 0 4px #5fd4e038}}@media(prefers-reduced-motion:reduce){.dot--running[_ngcontent-%COMP%]{animation:none}}']})};var bt=e=>["/sessions",e];function Tt(e,n){e&1&&(fa(0,"sf-status-chip",4),kC(1,"destroyed"),Ed());}function It(e,n){e&1&&(fa(0,"sf-status-chip",16),kC(1,"failed"),Ed());}function Rt(e,n){e&1&&(fa(0,"sf-status-chip",17),kC(1,"blocked"),Ed());}function At(e,n){e&1&&(fa(0,"sf-status-chip",18),kC(1,"waiting for human"),Ed());}function Ft(e,n){e&1&&(fa(0,"sf-status-chip",19),kC(1,"running"),Ed());}function Lt(e,n){e&1&&(fa(0,"sf-status-chip",20),kC(1,"completed"),Ed());}function zt(e,n){e&1&&(fa(0,"sf-status-chip",21),kC(1,"waiting"),Ed());}function Wt(e,n){if(e&1&&ni(0,It,2,0,"sf-status-chip",16)(1,Rt,2,0,"sf-status-chip",17)(2,At,2,0,"sf-status-chip",18)(3,Ft,2,0,"sf-status-chip",19)(4,Lt,2,0,"sf-status-chip",20)(5,zt,2,0,"sf-status-chip",21),e&2){let t;sC();let s=jC(0);ri((t=s.run?.cardState)==="failed"?0:t==="blocked"?1:t==="waiting_human"?2:t==="running"?3:t==="succeeded"?4:5);}}function jt(e,n){if(e&1&&(fa(0,"sf-status-chip",6),kC(1),Ed()),e&2){sC();let t=jC(0);Qo(),uy(t.workflowType);}}function Nt(e,n){if(e&1&&(fa(0,"span"),kC(1,"\u203A"),Ed(),fa(2,"span",9),kC(3),Ed()),e&2){sC();let t=jC(0);Qo(3),uy(t.branch);}}function Ut(e,n){if(e&1&&(fa(0,"span"),kC(1,"\xB7"),Ed(),fa(2,"span"),kC(3,"ticket "),fa(4,"span",9),kC(5),Ed()()),e&2){sC();let t=jC(0);Qo(5),uy(t.ticket);}}function Bt(e,n){if(e&1&&(fa(0,"p",12),kC(1," Created on "),fa(2,"time",22),kC(3),GC(4,"date"),GC(5,"date"),Ed()()),e&2){sC();let t=jC(0);Qo(2),$g("dateTime",t.createdAt),Qo(),ly("",YC(4,3,t.createdAt,"MMM d, yyyy")," at ",YC(5,6,t.createdAt,"HH:mm"));}}function Vt(e,n){if(e&1&&(fa(0,"div",30)(1,"sf-status-chip",31),kC(2),Ed()()),e&2){let t=sC(2);Qo(2),Cd(" Waiting for reply",t.currentPhase?" \xB7 "+t.currentPhase:""," ");}}function $t(e,n){if(e&1&&(fa(0,"div",30)(1,"sf-status-chip",32),kC(2),Ed()()),e&2){let t=sC(2);Qo(2),Cd(" running",t.currentPhase?" \xB7 "+t.currentPhase:""," ");}}function Ht(e,n){if(e&1&&ni(0,Vt,3,1,"div",30)(1,$t,3,1,"div",30),e&2){let t=sC();ri(t.waitingHuman?0:1);}}function Gt(e,n){if(e&1&&(fa(0,"section",13),ni(1,Ht,2,1),fa(2,"div",23)(3,"div",24),zg(4,"sf-step-dots",25),Ed(),fa(5,"div",26)(6,"sf-metric",27),kC(7),GC(8,"usd"),Ed(),fa(9,"sf-metric",28),kC(10),GC(11,"duration"),Ed(),fa(12,"sf-metric",29),kC(13),GC(14,"tokens"),Ed()()()()),e&2){let t=n;Qo(),ri(t.status==="running"?1:-1),Qo(3),$g("phases",t.phases),Qo(2),$g("unknownCostCount",t.unknownCostCount??0),Qo(),uy(KC(8,6,t.costUsd,4,t.unknownCostCount)),Qo(3),uy(ZC(11,10,t.durationSec)),Qo(3),uy(ZC(14,12,t.tokens));}}function Xt(e,n){if(e&1&&(fa(0,"p",14),kC(1," Final cost \xB7 workflows "),fa(2,"b"),kC(3),GC(4,"usd"),Ed()()),e&2){sC();let t=jC(0);Qo(3),uy(ZC(4,1,t.finalCostUsd));}}function qt(e,n){if(e&1&&(fa(0,"a",33)(1,"mat-icon"),kC(2,"open_in_new"),Ed(),kC(3," View supervisor case "),Ed()),e&2){let t=sC(2);$g("href",t.supervisorCaseUrl(),Om);}}function Kt(e,n){e&1&&(fa(0,"mat-icon",42),kC(1,"autorenew"),Ed());}function Jt(e,n){if(e&1){let t=eC();fa(0,"button",41),Yg("click",function(){Vp(t);let d=sC(2);return Hp(d.askSupervisor())}),ni(1,Kt,2,0,"mat-icon",42),kC(2," Ask supervisor "),Ed();}if(e&2){let t=sC(2);$g("disabled",t.supervisorState()==="loading"),Qo(),ri(t.supervisorState()==="loading"?1:-1);}}function Qt(e,n){e&1&&(fa(0,"button",35),kC(1," Ask supervisor "),Ed());}function Yt(e,n){if(e&1){let t=eC();fa(0,"button",43),Yg("click",function(){Vp(t);let d=sC(2);return Hp(d.action.emit("stop"))}),kC(1,"Stop"),Ed();}}function Zt(e,n){if(e&1&&(fa(0,"a",37),kC(1,"Conversation"),Ed()),e&2){let t=sC(2);$g("href",t.conversationLink,Om);}}function te(e,n){e&1&&(fa(0,"button",38),kC(1," Conversation "),Ed());}function ee(e,n){if(e&1&&(fa(0,"p",40)(1,"mat-icon",44),kC(2,"error_outline"),Ed(),kC(3),Ed()),e&2){let t=sC(2);Qo(3),Cd(" ",t.supervisorError()," ");}}function ne(e,n){if(e&1){let t=eC();fa(0,"footer",15),ni(1,qt,4,1,"a",33)(2,Jt,3,2,"button",34)(3,Qt,2,0,"button",35),ni(4,Yt,2,0,"button",36),ni(5,Zt,2,1,"a",37)(6,te,2,0,"button",38),fa(7,"button",39),Yg("click",function(){Vp(t);let d=sC();return Hp(d.action.emit("remove"))}),kC(8,"Remove"),Ed()(),ni(9,ee,4,1,"p",40);}if(e&2){let t=sC(),s=jC(0);Qo(),ri(t.supervisorState()==="done"&&t.supervisorCaseUrl()?1:s.namespaceId?2:3),Qo(3),ri(t.canStop?4:-1),Qo(),ri(t.conversationLink?5:6),Qo(4),ri(t.supervisorState()==="error"&&t.supervisorError()?9:-1);}}function ae(e,n){if(e&1){let t=eC();fa(0,"footer",15)(1,"button",43),Yg("click",function(){Vp(t);let d=sC();return Hp(d.action.emit("restore"))}),kC(2,"Restore"),Ed()();}}var H=class e{run=xy.required();action=YV();store=h(St);agentOsBaseUrl=h(rn);supervisorState=Ye("idle");supervisorError=Ye(null);supervisorCaseUrl=Ye(null);constructor(){Vs(()=>{if(this.supervisorState()!=="idle")return;let n=this.store.restoreSupervisorCase(this.run());n&&(this.supervisorCaseUrl.set(n.agentOsUrl),this.supervisorState.set("done"));});}get canStop(){let n=this.run();return n.status!=="working"||!n.id?false:!!this.store.session(n.id)?.activeAttemptId}get conversationLink(){let n=this.run(),t=n.controllerCaseId;return t?bt$1(t,n.namespaceId,this.agentOsBaseUrl):null}askSupervisor(){if(this.supervisorState()==="loading"||this.supervisorState()==="done")return;let n=this.run();if(!n.namespaceId){this.supervisorError.set("Unknown namespace -- cannot open a supervisor case."),this.supervisorState.set("error");return}this.supervisorState.set("loading"),this.supervisorError.set(null);let t=window.open("","_blank");t&&(t.opener=null),this.store.openSupervisorCase(n).subscribe({next:s=>{this.supervisorCaseUrl.set(s.agentOsUrl),this.supervisorState.set("done"),t&&!t.closed&&(t.location.href=s.agentOsUrl);},error:s=>{t&&!t.closed&&t.close(),this.supervisorState.set("error"),this.supervisorError.set(`Failed to create supervisor case: ${s.message}`);}});}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=Ae({type:e,selectors:[["sf-run-card"]],inputs:{run:[1,"run"]},outputs:{action:"action"},decls:26,vars:22,consts:[["appearance","outlined","role","region",1,"card"],[1,"head"],[1,"name"],[3,"routerLink"],["tone","neutral","dot",""],[1,"sf-spacer"],["tone","cyan","icon","polyline"],[1,"meta"],["aria-hidden","true",1,"branch-icon"],[1,"sf-workflow"],[1,"service-link",3,"routerLink"],[1,"dot"],[1,"created-at"],["aria-label","Run summary",1,"run"],[1,"final-cost"],[1,"actions"],["tone","red","icon","close"],["tone","amber","icon","block"],["tone","amber","icon","person_alert"],["tone","blue","icon","progress_activity","spin",""],["tone","green","icon","check"],["tone","neutral","icon","pause"],[3,"dateTime"],[1,"run-details"],[1,"run-steps"],[3,"phases"],["aria-label","Run metrics",1,"run-metrics"],["icon","paid","label","Run cost",3,"unknownCostCount"],["icon","timer","label","Duration"],["icon","link","label","Tokens"],[1,"run-notice"],["tone","amber","size","sm","icon","person_alert"],["tone","blue","size","sm","icon","progress_activity","spin",""],["mat-flat-button","","target","_blank","rel","noopener","title","Open supervisor case",1,"sf-primary",3,"href"],["mat-flat-button","",1,"sf-primary","supervisor-btn",3,"disabled"],["mat-flat-button","","disabled","","title","Unknown namespace \u2014 cannot open a supervisor case",1,"sf-primary"],["mat-stroked-button","",1,"sf-secondary"],["mat-button","","target","_blank","rel","noopener",1,"sf-ghost",3,"href"],["mat-button","","disabled","","title","AgentOS controller case unavailable (no agent step executed for this workflow yet)",1,"sf-ghost"],["mat-stroked-button","",1,"sf-danger",3,"click"],["role","alert",1,"supervisor-error"],["mat-flat-button","",1,"sf-primary","supervisor-btn",3,"click","disabled"],[1,"spin-icon"],["mat-stroked-button","",1,"sf-secondary",3,"click"],[1,"supervisor-error__icon"]],template:function(t,s){if(t&1&&(py(0),fa(1,"mat-card",0)(2,"header",1)(3,"h3",2)(4,"a",3),kC(5),Ed()(),ni(6,Tt,2,0,"sf-status-chip",4)(7,Wt,6,1),zg(8,"span",5),ni(9,jt,2,1,"sf-status-chip",6),Ed(),fa(10,"div",7)(11,"mat-icon",8),kC(12,"account_tree"),Ed(),fa(13,"span",9),kC(14),Ed(),ni(15,Nt,4,1),ni(16,Ut,6,1),zg(17,"span",5),fa(18,"a",10),zg(19,"span",11),kC(20,"Factory trace"),Ed()(),ni(21,Bt,6,9,"p",12),ni(22,Gt,15,14,"section",13)(23,Xt,5,3,"p",14),ni(24,ne,10,4)(25,ae,3,0,"footer",15),Ed()),t&2){let d,l=PC(s.run());Qo(),Dt("card--working",l.status==="working")("card--destroyed",l.status==="destroyed"),rr("aria-label","Run "+l.title)("data-run-id",l.id),Qo(3),$g("routerLink",$C(18,bt,l.id)),Qo(),uy(l.title),Qo(),ri(l.status==="destroyed"?6:7),Qo(3),ri(l.workflowType?9:-1),Qo(5),uy(l.project),Qo(),ri(l.branch?15:-1),Qo(),ri(l.ticket?16:-1),Qo(2),$g("routerLink",$C(20,bt,l.id)),Qo(3),ri(l.createdAt?21:-1),Qo(),ri((d=l.run)?22:l.status==="destroyed"?23:-1,d),Qo(2),ri(l.status!=="destroyed"?24:25);}},dependencies:[Nt$1,yt,_t,IW,_W,A8,x8,_,y,$,nS,ot,st,nt],styles:[".card[_ngcontent-%COMP%]{padding:20px 22px;display:flex;flex-direction:column;gap:14px}.card--working[_ngcontent-%COMP%]{border-color:var(--sf-outline-active);box-shadow:0 10px 40px -18px #7aa2f773}.card--destroyed[_ngcontent-%COMP%]{opacity:.8}.head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.name[_ngcontent-%COMP%]{margin:0;font-family:var(--sf-mono);font-size:19px;font-weight:700;color:var(--sf-primary)}.name[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}.name[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.meta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-family:var(--sf-mono);font-size:13px;color:var(--sf-text-muted)}.branch-icon[_ngcontent-%COMP%]{width:16px;height:16px;font-size:16px;color:var(--sf-secondary)}.service-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 11px;border-radius:999px;border:1px solid var(--sf-outline);font-family:var(--sf-font);font-size:12.5px;font-weight:600;color:var(--sf-text-2);text-decoration:none}.service-link[_ngcontent-%COMP%] .dot[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background:var(--sf-secondary)}.service-link[_ngcontent-%COMP%]:hover{border-color:var(--sf-outline-strong);color:var(--sf-text)}.service-link--disabled[_ngcontent-%COMP%]{opacity:.45;cursor:default;pointer-events:none}.service-link--disabled[_ngcontent-%COMP%] .dot[_ngcontent-%COMP%]{background:var(--sf-text-muted)}.created-at[_ngcontent-%COMP%]{margin:0;font-size:12px;color:var(--sf-text-muted);font-family:var(--sf-mono);letter-spacing:.01em}.run[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:12px;background:var(--sf-chrome);border:1px solid var(--sf-outline)}.run-notice[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:0}.run-details[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}.run-steps[_ngcontent-%COMP%]{min-width:0}.run-metrics[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:0 0 auto}.goal[_ngcontent-%COMP%]{margin:0;font-size:14px;color:#d5d9e4}.final-cost[_ngcontent-%COMP%]{margin:0;font-family:var(--sf-mono);font-size:13px;color:var(--sf-text-muted)}.final-cost[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{color:var(--sf-text)}.actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding-top:2px}.supervisor-btn[_ngcontent-%COMP%]{display:inline-flex!important;align-items:center;gap:4px}.spin-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;animation:_ngcontent-%COMP%_sf-spin 1s linear infinite}@keyframes _ngcontent-%COMP%_sf-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(max-width:760px){.card[_ngcontent-%COMP%]{padding:16px}.meta[_ngcontent-%COMP%], .actions[_ngcontent-%COMP%]{flex-wrap:wrap}.run-details[_ngcontent-%COMP%]{align-items:flex-start;flex-direction:column;gap:10px}.run-metrics[_ngcontent-%COMP%]{justify-content:flex-start;flex-wrap:wrap}}.supervisor-error[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;margin:4px 0 0;padding:6px 10px;border-radius:6px;background:color-mix(in srgb,var(--sf-danger, #e53e3e) 12%,transparent);color:var(--sf-danger, #e53e3e);font-size:13px}.supervisor-error__icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;flex-shrink:0}"]})};var ie=(e,n)=>n.id;function re(e,n){if(e&1){let t=eC();fa(0,"div",9)(1,"sf-run-card",11),Yg("action",function(d){let l=Vp(t).$implicit,kt=sC();return Hp(kt.onRunAction(l.id,d))}),Ed()();}if(e&2){let t=n.$implicit;Qo(),$g("run",t);}}function oe(e,n){e&1&&(fa(0,"p",10),kC(1,"No run in this workstream."),Ed());}var G=class e{workstream=xy.required();action=YV();runCount=nT(()=>this.workstream().runs.length);totalCost=nT(()=>this.workstream().runs.reduce((n,t)=>n+(t.run?.costUsd??t.costUsd??0),0));unknownCostCount=nT(()=>this.workstream().runs.reduce((n,t)=>n+(t.run?.unknownCostCount??0),0));onRunAction(n,t){this.action.emit({runId:n,action:t});}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=Ae({type:e,selectors:[["sf-workstream-card"]],inputs:{workstream:[1,"workstream"]},outputs:{action:"action"},decls:17,vars:15,consts:[["role","region",1,"workstream"],[1,"workstream-head"],[1,"workstream-identity"],[1,"title"],[1,"namespace-id","sf-mono",3,"title"],["aria-label","Workstream totals",1,"workstream-totals"],[1,"count"],[1,"cost"],["role","list",1,"runs"],["role","listitem",1,"run-item"],[1,"empty","sf-muted"],[3,"action","run"]],template:function(t,s){if(t&1&&(fa(0,"section",0)(1,"header",1)(2,"div",2)(3,"h2",3),kC(4),Ed(),fa(5,"code",4),kC(6),Ed()(),fa(7,"div",5)(8,"span",6),kC(9),Ed(),fa(10,"span",7),kC(11),GC(12,"usd"),Ed()()(),fa(13,"div",8),qw(14,re,2,1,"div",9,ie,false,oe,2,0,"p",10),Ed()()),t&2){let d=s.workstream();rr("aria-label","Workstream "+d.title)("data-namespace-id",d.namespaceId),Qo(4),uy(d.title),Qo(),$g("title","Namespace ID: "+d.namespaceId),Qo(),uy(d.namespaceId),Qo(2),rr("aria-label",s.runCount()+" runs"),Qo(),ly(" ",s.runCount()," run",s.runCount()===1?"":"s"," "),Qo(),rr("aria-label","Workstream cost"),Qo(),uy(KC(12,11,s.totalCost(),2,s.unknownCostCount())),Qo(3),Zw(d.runs);}},dependencies:[H,ot],styles:[".workstream[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;padding:16px 18px;border:1px solid var(--sf-outline);border-left:4px solid var(--sf-primary);border-radius:16px;background:var(--sf-panel, transparent)}.workstream-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:20px}.workstream-identity[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}.workstream-totals[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:0 0 auto}.title[_ngcontent-%COMP%]{margin:0;font-family:var(--sf-font);font-size:30px;font-weight:800;letter-spacing:-.02em;color:var(--sf-text-primary)}.title[_ngcontent-%COMP%]:first-letter{text-transform:uppercase}.namespace-id[_ngcontent-%COMP%]{font-size:12px;color:var(--sf-text-muted);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.count[_ngcontent-%COMP%]{font-size:13px;color:var(--sf-text-muted)}.cost[_ngcontent-%COMP%]{font-family:var(--sf-mono);font-size:15px;font-weight:700;color:var(--sf-secondary)}.runs[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.run-item[_ngcontent-%COMP%]{display:block}.empty[_ngcontent-%COMP%]{margin:0;padding:12px}@media(max-width:620px){.workstream[_ngcontent-%COMP%]{padding:14px}.workstream-head[_ngcontent-%COMP%]{align-items:flex-start;flex-direction:column;gap:10px}.workstream-totals[_ngcontent-%COMP%]{justify-content:space-between;width:100%}}"]})};var se=(e,n)=>n.namespaceId;function de(e,n){if(e&1){let t=eC();fa(0,"sf-workstream-card",17),Yg("action",function(d){Vp(t);let l=sC();return Hp(l.onAction(d))}),Ed();}if(e&2){let t=n.$implicit;$g("workstream",t);}}function ce(e,n){e&1&&(fa(0,"p",16),kC(1,"No active workflows."),Ed());}var ht=class e{store=h(St);dialog=h(ee$1);constructor(){h(pb).crumbs.set([{label:"Workstreams",link:"/workstreams"}]);}onAction(n){let{runId:t,action:s}=n;switch(s){case "stop":this.store.stop(t);return;case "remove":this.confirmRemove(t);return;case "restore":this.store.restore(t);return;case "ask":case "conversation":return}}confirmRemove(n){let t={title:"Remove run",message:"Are you sure you want to remove this run? The action is recoverable via the destroyed runs toggle.",confirmLabel:"Remove",destructive:true};this.dialog.open(I,{data:t,width:"440px"}).afterClosed().subscribe(s=>{s===true&&this.store.remove(n);});}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=Ae({type:e,selectors:[["sf-workstreams-page"]],decls:40,vars:12,consts:[[1,"page"],[1,"page-head"],[1,"titles"],[1,"sf-muted"],["mat-flat-button","","routerLink","/launch","data-workstreams-launch","true",1,"sf-primary"],["aria-label","Key metrics",1,"kpis"],[1,"kpi","sf-panel"],[1,"sf-overline"],[1,"kpi-value"],[1,"kpi-sub"],[1,"ok-dot"],[1,"kpi-value","kpi-value--cyan"],[1,"kpi","sf-panel","kpi--total"],[1,"kpi-value","kpi-value--violet"],["aria-label","Workstreams",1,"cards"],[3,"workstream"],[1,"empty","sf-panel","sf-muted"],[3,"action","workstream"]],template:function(t,s){if(t&1&&(fa(0,"div",0)(1,"header",1)(2,"div",2)(3,"h1"),kC(4,"Workstreams"),Ed(),fa(5,"p",3),kC(6,"Runs grouped by namespace, derived from the real workflows exposed by factory-service."),Ed()(),fa(7,"a",4)(8,"mat-icon"),kC(9,"play_arrow"),Ed(),kC(10," Launch a run "),Ed()(),fa(11,"section",5)(12,"article",6)(13,"h2",7),kC(14,"Active workflows"),Ed(),fa(15,"span",8),kC(16),Ed(),fa(17,"span",9),zg(18,"span",10),kC(19,"real runs in progress"),Ed()(),fa(20,"article",6)(21,"h2",7),kC(22,"Workflow cost"),Ed(),fa(23,"span",11),kC(24),GC(25,"usd"),Ed(),fa(26,"span",9),kC(27,"cumulative real cost"),Ed()(),fa(28,"article",12)(29,"h2",7),kC(30,"Total"),Ed(),fa(31,"span",13),kC(32),GC(33,"usd"),Ed(),fa(34,"span",9),kC(35,"real cost of active workflows"),Ed()()(),fa(36,"section",14),qw(37,de,1,1,"sf-workstream-card",15,se,false,ce,2,0,"p",16),Ed()()),t&2){let d=s.store.costs();Qo(16),uy(d.active),Qo(8),uy(KC(25,4,d.workflowsUsd,2,d.unknownCostCount)),Qo(8),uy(KC(33,8,d.totalUsd,2,d.unknownCostCount)),Qo(5),Zw(s.store.workstreams());}},dependencies:[Nt$1,IW,_W,A8,x8,G,ot],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px;max-width:1400px}.page-head[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:12px}.titles[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:4px}h1[_ngcontent-%COMP%]{margin:0;font-size:28px;font-weight:800;letter-spacing:-.01em}.titles[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.kpis[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.kpi[_ngcontent-%COMP%]{padding:18px 20px;display:flex;flex-direction:column;gap:8px;border-radius:14px}.kpi--total[_ngcontent-%COMP%]{background:#151027;border-color:#3b2d63}.kpi--total[_ngcontent-%COMP%] .sf-overline[_ngcontent-%COMP%], .kpi--total[_ngcontent-%COMP%] .kpi-sub[_ngcontent-%COMP%]{color:#b9a4e6}.kpi-value[_ngcontent-%COMP%]{font-family:var(--sf-mono);font-size:30px;font-weight:600}.kpi-value--cyan[_ngcontent-%COMP%]{color:var(--sf-secondary)}.kpi-value--violet[_ngcontent-%COMP%]{color:var(--sf-primary);font-weight:700}.kpi-sub[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--sf-text-muted)}.ok-dot[_ngcontent-%COMP%]{width:7px;height:7px;flex-shrink:0;border-radius:50%;background:var(--sf-success);display:inline-block}.cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.empty[_ngcontent-%COMP%]{padding:24px;text-align:center;margin:0}"]})};export{ht as WorkstreamsPageComponent};
171
+ `],encapsulation:2})}return e})();var yt=(()=>{class e{static \u0275fac=function(s){return new(s||e)};static \u0275mod=pe({type:e});static \u0275inj=ce$1({imports:[Jr]})}return e})();var Pt=(e,n)=>n.key;function Ot(e,n){if(e&1&&zg(0,"li",2),e&2){let t=n.$implicit,s=sC();ii(s.dotClass(t)),$g("matTooltip",s.dotLabel(t)),rr("aria-label",s.dotLabel(t));}}var $=class e{phases=xy.required();ariaLabel=nT(()=>{let n=this.phases();return n.length===0?"No steps":`Steps: ${n.map(t=>this.dotLabel(t)).join(", ")}`});dotClass(n){switch(n.status){case "done":return "dot--done";case "failed":return "dot--failed";case "blocked":return "dot--blocked";case "indeterminate":return "dot--indeterminate";case "cancelled":return "dot--cancelled";case "running":return "dot--running";case "waiting_human":return "dot--waiting-human";case "pending":return "dot--pending"}}dotLabel(n){let t={done:"completed",failed:"failed",blocked:"blocked",indeterminate:"indeterminate",cancelled:"cancelled",running:"running",waiting_human:"waiting for human",pending:"waiting"};return `${n.label??n.key}: ${t[n.status]}`}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=xe({type:e,selectors:[["sf-step-dots"]],inputs:{phases:[1,"phases"]},decls:3,vars:1,consts:[["role","list",1,"dots"],["tabindex","0","matTooltipShowDelay","200","role","listitem",1,"dot",3,"class","matTooltip"],["tabindex","0","matTooltipShowDelay","200","role","listitem",1,"dot",3,"matTooltip"]],template:function(t,s){t&1&&(fa(0,"ol",0),qw(1,Ot,1,4,"li",1,Pt),Ed()),t&2&&(rr("aria-label",s.ariaLabel()),Qo(),Zw(s.phases()));},dependencies:[$t$1,vt],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.dots[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:7px}.dot[_ngcontent-%COMP%]{width:12px;height:12px;border-radius:50%;flex-shrink:0;cursor:default;outline-offset:2px}.dot[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--sf-primary)}.dot--done[_ngcontent-%COMP%]{background:var(--sf-success)}.dot--failed[_ngcontent-%COMP%]{background:var(--sf-error)}.dot--blocked[_ngcontent-%COMP%]{box-sizing:border-box;border:2px solid var(--sf-tertiary);background:transparent}.dot--indeterminate[_ngcontent-%COMP%]{background:var(--sf-error);opacity:.55}.dot--cancelled[_ngcontent-%COMP%]{background:var(--sf-outline-strong)}.dot--running[_ngcontent-%COMP%]{background:var(--sf-secondary);animation:_ngcontent-%COMP%_sf-dot-pulse 1.8s ease-in-out infinite}.dot--waiting-human[_ngcontent-%COMP%]{background:var(--sf-tertiary)}.dot--pending[_ngcontent-%COMP%]{background:var(--sf-outline)}@keyframes _ngcontent-%COMP%_sf-dot-pulse{0%,to{box-shadow:0 0 #5fd4e000}50%{box-shadow:0 0 0 4px #5fd4e038}}@media(prefers-reduced-motion:reduce){.dot--running[_ngcontent-%COMP%]{animation:none}}']})};var bt=e=>["/sessions",e];function Tt(e,n){e&1&&(fa(0,"sf-status-chip",4),kC(1,"destroyed"),Ed());}function It(e,n){e&1&&(fa(0,"sf-status-chip",16),kC(1,"failed"),Ed());}function Rt(e,n){e&1&&(fa(0,"sf-status-chip",17),kC(1,"blocked"),Ed());}function At(e,n){e&1&&(fa(0,"sf-status-chip",18),kC(1,"waiting for human"),Ed());}function Ft(e,n){e&1&&(fa(0,"sf-status-chip",19),kC(1,"running"),Ed());}function Lt(e,n){e&1&&(fa(0,"sf-status-chip",20),kC(1,"completed"),Ed());}function zt(e,n){e&1&&(fa(0,"sf-status-chip",21),kC(1,"waiting"),Ed());}function Wt(e,n){if(e&1&&ni(0,It,2,0,"sf-status-chip",16)(1,Rt,2,0,"sf-status-chip",17)(2,At,2,0,"sf-status-chip",18)(3,Ft,2,0,"sf-status-chip",19)(4,Lt,2,0,"sf-status-chip",20)(5,zt,2,0,"sf-status-chip",21),e&2){let t;sC();let s=jC(0);ri((t=s.run?.cardState)==="failed"?0:t==="blocked"?1:t==="waiting_human"?2:t==="running"?3:t==="succeeded"?4:5);}}function jt(e,n){if(e&1&&(fa(0,"sf-status-chip",6),kC(1),Ed()),e&2){sC();let t=jC(0);Qo(),uy(t.workflowType);}}function Nt(e,n){if(e&1&&(fa(0,"span"),kC(1,"\u203A"),Ed(),fa(2,"span",9),kC(3),Ed()),e&2){sC();let t=jC(0);Qo(3),uy(t.branch);}}function Ut(e,n){if(e&1&&(fa(0,"span"),kC(1,"\xB7"),Ed(),fa(2,"span"),kC(3,"ticket "),fa(4,"span",9),kC(5),Ed()()),e&2){sC();let t=jC(0);Qo(5),uy(t.ticket);}}function Bt(e,n){if(e&1&&(fa(0,"p",12),kC(1," Created on "),fa(2,"time",22),kC(3),GC(4,"date"),GC(5,"date"),Ed()()),e&2){sC();let t=jC(0);Qo(2),$g("dateTime",t.createdAt),Qo(),ly("",YC(4,3,t.createdAt,"MMM d, yyyy")," at ",YC(5,6,t.createdAt,"HH:mm"));}}function Vt(e,n){if(e&1&&(fa(0,"div",30)(1,"sf-status-chip",31),kC(2),Ed()()),e&2){let t=sC(2);Qo(2),Cd(" Waiting for reply",t.currentPhase?" \xB7 "+t.currentPhase:""," ");}}function $t(e,n){if(e&1&&(fa(0,"div",30)(1,"sf-status-chip",32),kC(2),Ed()()),e&2){let t=sC(2);Qo(2),Cd(" running",t.currentPhase?" \xB7 "+t.currentPhase:""," ");}}function Ht(e,n){if(e&1&&ni(0,Vt,3,1,"div",30)(1,$t,3,1,"div",30),e&2){let t=sC();ri(t.waitingHuman?0:1);}}function Gt(e,n){if(e&1&&(fa(0,"section",13),ni(1,Ht,2,1),fa(2,"div",23)(3,"div",24),zg(4,"sf-step-dots",25),Ed(),fa(5,"div",26)(6,"sf-metric",27),kC(7),GC(8,"usd"),Ed(),fa(9,"sf-metric",28),kC(10),GC(11,"duration"),Ed(),fa(12,"sf-metric",29),kC(13),GC(14,"tokens"),Ed()()()()),e&2){let t=n;Qo(),ri(t.status==="running"?1:-1),Qo(3),$g("phases",t.phases),Qo(2),$g("unknownCostCount",t.unknownCostCount??0),Qo(),uy(KC(8,6,t.costUsd,4,t.unknownCostCount)),Qo(3),uy(ZC(11,10,t.durationSec)),Qo(3),uy(ZC(14,12,t.tokens));}}function Xt(e,n){if(e&1&&(fa(0,"p",14),kC(1," Final cost \xB7 workflows "),fa(2,"b"),kC(3),GC(4,"usd"),Ed()()),e&2){sC();let t=jC(0);Qo(3),uy(ZC(4,1,t.finalCostUsd));}}function qt(e,n){if(e&1&&(fa(0,"a",33)(1,"mat-icon"),kC(2,"open_in_new"),Ed(),kC(3," View supervisor case "),Ed()),e&2){let t=sC(2);$g("href",t.supervisorCaseUrl(),Om);}}function Kt(e,n){e&1&&(fa(0,"mat-icon",42),kC(1,"autorenew"),Ed());}function Jt(e,n){if(e&1){let t=eC();fa(0,"button",41),Yg("click",function(){Vp(t);let d=sC(2);return Hp(d.askSupervisor())}),ni(1,Kt,2,0,"mat-icon",42),kC(2," Ask supervisor "),Ed();}if(e&2){let t=sC(2);$g("disabled",t.supervisorState()==="loading"),Qo(),ri(t.supervisorState()==="loading"?1:-1);}}function Qt(e,n){e&1&&(fa(0,"button",35),kC(1," Ask supervisor "),Ed());}function Yt(e,n){if(e&1){let t=eC();fa(0,"button",43),Yg("click",function(){Vp(t);let d=sC(2);return Hp(d.action.emit("stop"))}),kC(1,"Stop"),Ed();}}function Zt(e,n){if(e&1&&(fa(0,"a",37),kC(1,"Conversation"),Ed()),e&2){let t=sC(2);$g("href",t.conversationLink,Om);}}function te(e,n){e&1&&(fa(0,"button",38),kC(1," Conversation "),Ed());}function ee(e,n){if(e&1&&(fa(0,"p",40)(1,"mat-icon",44),kC(2,"error_outline"),Ed(),kC(3),Ed()),e&2){let t=sC(2);Qo(3),Cd(" ",t.supervisorError()," ");}}function ne(e,n){if(e&1){let t=eC();fa(0,"footer",15),ni(1,qt,4,1,"a",33)(2,Jt,3,2,"button",34)(3,Qt,2,0,"button",35),ni(4,Yt,2,0,"button",36),ni(5,Zt,2,1,"a",37)(6,te,2,0,"button",38),fa(7,"button",39),Yg("click",function(){Vp(t);let d=sC();return Hp(d.action.emit("remove"))}),kC(8,"Remove"),Ed()(),ni(9,ee,4,1,"p",40);}if(e&2){let t=sC(),s=jC(0);Qo(),ri(t.supervisorState()==="done"&&t.supervisorCaseUrl()?1:s.namespaceId?2:3),Qo(3),ri(t.canStop?4:-1),Qo(),ri(t.conversationLink?5:6),Qo(4),ri(t.supervisorState()==="error"&&t.supervisorError()?9:-1);}}function ae(e,n){if(e&1){let t=eC();fa(0,"footer",15)(1,"button",43),Yg("click",function(){Vp(t);let d=sC();return Hp(d.action.emit("restore"))}),kC(2,"Restore"),Ed()();}}var H=class e{run=xy.required();action=YV();store=h(St);agentOsBaseUrl=h(rn);supervisorState=Ze("idle");supervisorError=Ze(null);supervisorCaseUrl=Ze(null);constructor(){Vs(()=>{if(this.supervisorState()!=="idle")return;let n=this.store.restoreSupervisorCase(this.run());n&&(this.supervisorCaseUrl.set(n.agentOsUrl),this.supervisorState.set("done"));});}get canStop(){let n=this.run();return n.status!=="working"||!n.id?false:!!this.store.session(n.id)?.activeAttemptId}get conversationLink(){let n=this.run(),t=n.controllerCaseId;return t?bt$1(t,n.namespaceId,this.agentOsBaseUrl):null}askSupervisor(){if(this.supervisorState()==="loading"||this.supervisorState()==="done")return;let n=this.run();if(!n.namespaceId){this.supervisorError.set("Unknown namespace -- cannot open a supervisor case."),this.supervisorState.set("error");return}this.supervisorState.set("loading"),this.supervisorError.set(null);let t=window.open("","_blank");t&&(t.opener=null),this.store.openSupervisorCase(n).subscribe({next:s=>{this.supervisorCaseUrl.set(s.agentOsUrl),this.supervisorState.set("done"),t&&!t.closed&&(t.location.href=s.agentOsUrl);},error:s=>{t&&!t.closed&&t.close(),this.supervisorState.set("error"),this.supervisorError.set(`Failed to create supervisor case: ${s.message}`);}});}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=xe({type:e,selectors:[["sf-run-card"]],inputs:{run:[1,"run"]},outputs:{action:"action"},decls:26,vars:22,consts:[["appearance","outlined","role","region",1,"card"],[1,"head"],[1,"name"],[3,"routerLink"],["tone","neutral","dot",""],[1,"sf-spacer"],["tone","cyan","icon","polyline"],[1,"meta"],["aria-hidden","true",1,"branch-icon"],[1,"sf-workflow"],[1,"service-link",3,"routerLink"],[1,"dot"],[1,"created-at"],["aria-label","Run summary",1,"run"],[1,"final-cost"],[1,"actions"],["tone","red","icon","close"],["tone","amber","icon","block"],["tone","amber","icon","person_alert"],["tone","blue","icon","progress_activity","spin",""],["tone","green","icon","check"],["tone","neutral","icon","pause"],[3,"dateTime"],[1,"run-details"],[1,"run-steps"],[3,"phases"],["aria-label","Run metrics",1,"run-metrics"],["icon","paid","label","Run cost",3,"unknownCostCount"],["icon","timer","label","Duration"],["icon","link","label","Tokens"],[1,"run-notice"],["tone","amber","size","sm","icon","person_alert"],["tone","blue","size","sm","icon","progress_activity","spin",""],["mat-flat-button","","target","_blank","rel","noopener","title","Open supervisor case",1,"sf-primary",3,"href"],["mat-flat-button","",1,"sf-primary","supervisor-btn",3,"disabled"],["mat-flat-button","","disabled","","title","Unknown namespace \u2014 cannot open a supervisor case",1,"sf-primary"],["mat-stroked-button","",1,"sf-secondary"],["mat-button","","target","_blank","rel","noopener",1,"sf-ghost",3,"href"],["mat-button","","disabled","","title","AgentOS controller case unavailable (no agent step executed for this workflow yet)",1,"sf-ghost"],["mat-stroked-button","",1,"sf-danger",3,"click"],["role","alert",1,"supervisor-error"],["mat-flat-button","",1,"sf-primary","supervisor-btn",3,"click","disabled"],[1,"spin-icon"],["mat-stroked-button","",1,"sf-secondary",3,"click"],[1,"supervisor-error__icon"]],template:function(t,s){if(t&1&&(py(0),fa(1,"mat-card",0)(2,"header",1)(3,"h3",2)(4,"a",3),kC(5),Ed()(),ni(6,Tt,2,0,"sf-status-chip",4)(7,Wt,6,1),zg(8,"span",5),ni(9,jt,2,1,"sf-status-chip",6),Ed(),fa(10,"div",7)(11,"mat-icon",8),kC(12,"account_tree"),Ed(),fa(13,"span",9),kC(14),Ed(),ni(15,Nt,4,1),ni(16,Ut,6,1),zg(17,"span",5),fa(18,"a",10),zg(19,"span",11),kC(20,"Factory trace"),Ed()(),ni(21,Bt,6,9,"p",12),ni(22,Gt,15,14,"section",13)(23,Xt,5,3,"p",14),ni(24,ne,10,4)(25,ae,3,0,"footer",15),Ed()),t&2){let d,l=PC(s.run());Qo(),Dt("card--working",l.status==="working")("card--destroyed",l.status==="destroyed"),rr("aria-label","Run "+l.title)("data-run-id",l.id),Qo(3),$g("routerLink",$C(18,bt,l.id)),Qo(),uy(l.title),Qo(),ri(l.status==="destroyed"?6:7),Qo(3),ri(l.workflowType?9:-1),Qo(5),uy(l.project),Qo(),ri(l.branch?15:-1),Qo(),ri(l.ticket?16:-1),Qo(2),$g("routerLink",$C(20,bt,l.id)),Qo(3),ri(l.createdAt?21:-1),Qo(),ri((d=l.run)?22:l.status==="destroyed"?23:-1,d),Qo(2),ri(l.status!=="destroyed"?24:25);}},dependencies:[Nt$1,yt,_t,IW,_W,A8,x8,_,y,$,nS,ot,st,nt],styles:[".card[_ngcontent-%COMP%]{padding:20px 22px;display:flex;flex-direction:column;gap:14px}.card--working[_ngcontent-%COMP%]{border-color:var(--sf-outline-active);box-shadow:0 10px 40px -18px #7aa2f773}.card--destroyed[_ngcontent-%COMP%]{opacity:.8}.head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.name[_ngcontent-%COMP%]{margin:0;font-family:var(--sf-mono);font-size:19px;font-weight:700;color:var(--sf-primary)}.name[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}.name[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.meta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-family:var(--sf-mono);font-size:13px;color:var(--sf-text-muted)}.branch-icon[_ngcontent-%COMP%]{width:16px;height:16px;font-size:16px;color:var(--sf-secondary)}.service-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 11px;border-radius:999px;border:1px solid var(--sf-outline);font-family:var(--sf-font);font-size:12.5px;font-weight:600;color:var(--sf-text-2);text-decoration:none}.service-link[_ngcontent-%COMP%] .dot[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background:var(--sf-secondary)}.service-link[_ngcontent-%COMP%]:hover{border-color:var(--sf-outline-strong);color:var(--sf-text)}.service-link--disabled[_ngcontent-%COMP%]{opacity:.45;cursor:default;pointer-events:none}.service-link--disabled[_ngcontent-%COMP%] .dot[_ngcontent-%COMP%]{background:var(--sf-text-muted)}.created-at[_ngcontent-%COMP%]{margin:0;font-size:12px;color:var(--sf-text-muted);font-family:var(--sf-mono);letter-spacing:.01em}.run[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:12px;background:var(--sf-chrome);border:1px solid var(--sf-outline)}.run-notice[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:0}.run-details[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}.run-steps[_ngcontent-%COMP%]{min-width:0}.run-metrics[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:0 0 auto}.goal[_ngcontent-%COMP%]{margin:0;font-size:14px;color:#d5d9e4}.final-cost[_ngcontent-%COMP%]{margin:0;font-family:var(--sf-mono);font-size:13px;color:var(--sf-text-muted)}.final-cost[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{color:var(--sf-text)}.actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding-top:2px}.supervisor-btn[_ngcontent-%COMP%]{display:inline-flex!important;align-items:center;gap:4px}.spin-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;animation:_ngcontent-%COMP%_sf-spin 1s linear infinite}@keyframes _ngcontent-%COMP%_sf-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(max-width:760px){.card[_ngcontent-%COMP%]{padding:16px}.meta[_ngcontent-%COMP%], .actions[_ngcontent-%COMP%]{flex-wrap:wrap}.run-details[_ngcontent-%COMP%]{align-items:flex-start;flex-direction:column;gap:10px}.run-metrics[_ngcontent-%COMP%]{justify-content:flex-start;flex-wrap:wrap}}.supervisor-error[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;margin:4px 0 0;padding:6px 10px;border-radius:6px;background:color-mix(in srgb,var(--sf-danger, #e53e3e) 12%,transparent);color:var(--sf-danger, #e53e3e);font-size:13px}.supervisor-error__icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;flex-shrink:0}"]})};var ie=(e,n)=>n.id;function re(e,n){if(e&1){let t=eC();fa(0,"div",9)(1,"sf-run-card",11),Yg("action",function(d){let l=Vp(t).$implicit,kt=sC();return Hp(kt.onRunAction(l.id,d))}),Ed()();}if(e&2){let t=n.$implicit;Qo(),$g("run",t);}}function oe(e,n){e&1&&(fa(0,"p",10),kC(1,"No run in this workstream."),Ed());}var G=class e{workstream=xy.required();action=YV();runCount=nT(()=>this.workstream().runs.length);totalCost=nT(()=>this.workstream().runs.reduce((n,t)=>n+(t.run?.costUsd??t.costUsd??0),0));unknownCostCount=nT(()=>this.workstream().runs.reduce((n,t)=>n+(t.run?.unknownCostCount??0),0));onRunAction(n,t){this.action.emit({runId:n,action:t});}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=xe({type:e,selectors:[["sf-workstream-card"]],inputs:{workstream:[1,"workstream"]},outputs:{action:"action"},decls:17,vars:15,consts:[["role","region",1,"workstream"],[1,"workstream-head"],[1,"workstream-identity"],[1,"title"],[1,"namespace-id","sf-mono",3,"title"],["aria-label","Workstream totals",1,"workstream-totals"],[1,"count"],[1,"cost"],["role","list",1,"runs"],["role","listitem",1,"run-item"],[1,"empty","sf-muted"],[3,"action","run"]],template:function(t,s){if(t&1&&(fa(0,"section",0)(1,"header",1)(2,"div",2)(3,"h2",3),kC(4),Ed(),fa(5,"code",4),kC(6),Ed()(),fa(7,"div",5)(8,"span",6),kC(9),Ed(),fa(10,"span",7),kC(11),GC(12,"usd"),Ed()()(),fa(13,"div",8),qw(14,re,2,1,"div",9,ie,false,oe,2,0,"p",10),Ed()()),t&2){let d=s.workstream();rr("aria-label","Workstream "+d.title)("data-namespace-id",d.namespaceId),Qo(4),uy(d.title),Qo(),$g("title","Namespace ID: "+d.namespaceId),Qo(),uy(d.namespaceId),Qo(2),rr("aria-label",s.runCount()+" runs"),Qo(),ly(" ",s.runCount()," run",s.runCount()===1?"":"s"," "),Qo(),rr("aria-label","Workstream cost"),Qo(),uy(KC(12,11,s.totalCost(),2,s.unknownCostCount())),Qo(3),Zw(d.runs);}},dependencies:[H,ot],styles:[".workstream[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;padding:16px 18px;border:1px solid var(--sf-outline);border-left:4px solid var(--sf-primary);border-radius:16px;background:var(--sf-panel, transparent)}.workstream-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:20px}.workstream-identity[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}.workstream-totals[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:0 0 auto}.title[_ngcontent-%COMP%]{margin:0;font-family:var(--sf-font);font-size:30px;font-weight:800;letter-spacing:-.02em;color:var(--sf-text-primary)}.title[_ngcontent-%COMP%]:first-letter{text-transform:uppercase}.namespace-id[_ngcontent-%COMP%]{font-size:12px;color:var(--sf-text-muted);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.count[_ngcontent-%COMP%]{font-size:13px;color:var(--sf-text-muted)}.cost[_ngcontent-%COMP%]{font-family:var(--sf-mono);font-size:15px;font-weight:700;color:var(--sf-secondary)}.runs[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.run-item[_ngcontent-%COMP%]{display:block}.empty[_ngcontent-%COMP%]{margin:0;padding:12px}@media(max-width:620px){.workstream[_ngcontent-%COMP%]{padding:14px}.workstream-head[_ngcontent-%COMP%]{align-items:flex-start;flex-direction:column;gap:10px}.workstream-totals[_ngcontent-%COMP%]{justify-content:space-between;width:100%}}"]})};var se=(e,n)=>n.namespaceId;function de(e,n){if(e&1){let t=eC();fa(0,"sf-workstream-card",17),Yg("action",function(d){Vp(t);let l=sC();return Hp(l.onAction(d))}),Ed();}if(e&2){let t=n.$implicit;$g("workstream",t);}}function ce(e,n){e&1&&(fa(0,"p",16),kC(1,"No active workflows."),Ed());}var ht=class e{store=h(St);dialog=h(ee$1);constructor(){h(pb).crumbs.set([{label:"Workstreams",link:"/workstreams"}]);}onAction(n){let{runId:t,action:s}=n;switch(s){case "stop":this.store.stop(t);return;case "remove":this.confirmRemove(t);return;case "restore":this.store.restore(t);return;case "ask":case "conversation":return}}confirmRemove(n){let t={title:"Remove run",message:"Are you sure you want to remove this run? The action is recoverable via the destroyed runs toggle.",confirmLabel:"Remove",destructive:true};this.dialog.open(I,{data:t,width:"440px"}).afterClosed().subscribe(s=>{s===true&&this.store.remove(n);});}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=xe({type:e,selectors:[["sf-workstreams-page"]],decls:40,vars:12,consts:[[1,"page"],[1,"page-head"],[1,"titles"],[1,"sf-muted"],["mat-flat-button","","routerLink","/launch","data-workstreams-launch","true",1,"sf-primary"],["aria-label","Key metrics",1,"kpis"],[1,"kpi","sf-panel"],[1,"sf-overline"],[1,"kpi-value"],[1,"kpi-sub"],[1,"ok-dot"],[1,"kpi-value","kpi-value--cyan"],[1,"kpi","sf-panel","kpi--total"],[1,"kpi-value","kpi-value--violet"],["aria-label","Workstreams",1,"cards"],[3,"workstream"],[1,"empty","sf-panel","sf-muted"],[3,"action","workstream"]],template:function(t,s){if(t&1&&(fa(0,"div",0)(1,"header",1)(2,"div",2)(3,"h1"),kC(4,"Workstreams"),Ed(),fa(5,"p",3),kC(6,"Runs grouped by namespace, derived from the real workflows exposed by factory-service."),Ed()(),fa(7,"a",4)(8,"mat-icon"),kC(9,"play_arrow"),Ed(),kC(10," Launch a run "),Ed()(),fa(11,"section",5)(12,"article",6)(13,"h2",7),kC(14,"Active workflows"),Ed(),fa(15,"span",8),kC(16),Ed(),fa(17,"span",9),zg(18,"span",10),kC(19,"real runs in progress"),Ed()(),fa(20,"article",6)(21,"h2",7),kC(22,"Workflow cost"),Ed(),fa(23,"span",11),kC(24),GC(25,"usd"),Ed(),fa(26,"span",9),kC(27,"cumulative real cost"),Ed()(),fa(28,"article",12)(29,"h2",7),kC(30,"Total"),Ed(),fa(31,"span",13),kC(32),GC(33,"usd"),Ed(),fa(34,"span",9),kC(35,"real cost of active workflows"),Ed()()(),fa(36,"section",14),qw(37,de,1,1,"sf-workstream-card",15,se,false,ce,2,0,"p",16),Ed()()),t&2){let d=s.store.costs();Qo(16),uy(d.active),Qo(8),uy(KC(25,4,d.workflowsUsd,2,d.unknownCostCount)),Qo(8),uy(KC(33,8,d.totalUsd,2,d.unknownCostCount)),Qo(5),Zw(s.store.workstreams());}},dependencies:[Nt$1,IW,_W,A8,x8,G,ot],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px;max-width:1400px}.page-head[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:12px}.titles[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:4px}h1[_ngcontent-%COMP%]{margin:0;font-size:28px;font-weight:800;letter-spacing:-.01em}.titles[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.kpis[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.kpi[_ngcontent-%COMP%]{padding:18px 20px;display:flex;flex-direction:column;gap:8px;border-radius:14px}.kpi--total[_ngcontent-%COMP%]{background:#151027;border-color:#3b2d63}.kpi--total[_ngcontent-%COMP%] .sf-overline[_ngcontent-%COMP%], .kpi--total[_ngcontent-%COMP%] .kpi-sub[_ngcontent-%COMP%]{color:#b9a4e6}.kpi-value[_ngcontent-%COMP%]{font-family:var(--sf-mono);font-size:30px;font-weight:600}.kpi-value--cyan[_ngcontent-%COMP%]{color:var(--sf-secondary)}.kpi-value--violet[_ngcontent-%COMP%]{color:var(--sf-primary);font-weight:700}.kpi-sub[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--sf-text-muted)}.ok-dot[_ngcontent-%COMP%]{width:7px;height:7px;flex-shrink:0;border-radius:50%;background:var(--sf-success);display:inline-block}.cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.empty[_ngcontent-%COMP%]{padding:24px;text-align:center;margin:0}"]})};export{ht as WorkstreamsPageComponent};