All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web.5147.f0ab6d97c9e5fb1b.js Maven / Gradle / Ivy

"use strict";(self.webpackChunkflink=self.webpackChunkflink||[]).push([[5147],{47932:(O,r,t)=>{t.d(r,{R:()=>f});var c=t(4707),v=t(11365),i=t(54004),p=t(39300),g=t(94650);let f=(()=>{class l{constructor(){this.metricsCacheMap=new Map,this.jobDetail$=new c.t(1),this.selectedVertex$=new c.t(1)}jobWithVertexChanges(){return this.selectedVertex$.pipe((0,v.M)(this.jobDetail$),(0,i.U)(s=>{const[C,d]=s;return{vertex:C,job:d}}),(0,p.h)(s=>!!s.vertex))}jobDetailChanges(){return this.jobDetail$.asObservable()}setJobDetail(s){this.jobDetail$.next(s)}selectedVertexChanges(){return this.selectedVertex$.asObservable()}setSelectedVertex(s){this.selectedVertex$.next(s)}}return l.\u0275fac=function(s){return new(s||l)},l.\u0275prov=g.Yz7({token:l,factory:l.\u0275fac}),l})()},5147:(O,r,t)=>{t.r(r),t.d(r,{JOB_ROUTES:()=>x});var c=t(47932),v=t(36895),i=t(19132),p=t(77579),g=t(39300),f=t(82722),l=t(81940),e=t(94650);function s(n,h){if(1&n){const o=e.EpF();e.ynx(0),e.TgZ(1,"flink-job-list",2),e.NdJ("navigate",function(a){e.CHM(o);const J=e.oxw();return e.KtG(J.navigateToJob(a))}),e.qZA(),e.BQk()}if(2&n){const o=e.oxw();e.xp6(1),e.Q6J("completed",o.isCompleted)("title",o.cardTitle)}}function C(n,h){1&n&&e._UZ(0,"router-outlet")}let d=(()=>{class n{constructor(o,m,a){this.activatedRoute=o,this.router=m,this.cdr=a,this.isCompleted=!1,this.destroy$=new p.x}get cardTitle(){return this.isCompleted?"Completed Jobs":"Running Jobs"}ngOnInit(){this.updateJobIdSelected(),this.router.events.pipe((0,g.h)(o=>o instanceof i.m2),(0,f.R)(this.destroy$)).subscribe(()=>{this.updateJobIdSelected()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}navigateToJob(o){this.router.navigate([o.jid],{relativeTo:this.activatedRoute}).then()}updateJobIdSelected(){const o=this.router.parseUrl(this.router.url).root.children.primary.segments;this.jobIdSelected=o[2]?.toString(),this.isCompleted="completed"===o[1].path,this.cdr.markForCheck()}}return n.\u0275fac=function(o){return new(o||n)(e.Y36(i.gz),e.Y36(i.F0),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["flink-job"]],standalone:!0,features:[e.jDz],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["jobTemplate",""],[3,"completed","title","navigate"]],template:function(o,m){if(1&o&&(e.YNc(0,s,2,2,"ng-container",0),e.YNc(1,C,1,0,"ng-template",null,1,e.W1O)),2&o){const a=e.MAs(2);e.Q6J("ngIf",!m.jobIdSelected)("ngIfElse",a)}},dependencies:[v.O5,l.Q,i.lC],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column nowrap;height:100%}"],changeDetection:0}),n})();const x=[{path:"",providers:[c.R],children:[{path:"running",component:d,children:[{path:":jid",loadChildren:()=>Promise.all([t.e(6),t.e(2541),t.e(3598),t.e(6718)]).then(t.bind(t,6718)).then(n=>n.RUNNING_JOB_ROUTES)}]},{path:"completed",component:d,children:[{path:":jid",loadChildren:()=>Promise.all([t.e(6),t.e(2541),t.e(5336),t.e(3598),t.e(8592),t.e(248)]).then(t.bind(t,70248)).then(n=>n.COMPLETED_JOB_ROUES)}]}]}]}}]);




© 2015 - 2025 Weber Informatics LLC | Privacy Policy