web.7605.08ef7e332626f3b7.js Maven / Gradle / Ivy
"use strict";(self.webpackChunkflink=self.webpackChunkflink||[]).push([[7605,6470],{46470:(U,C,o)=>{o.d(C,{E:()=>S});var i=o(7963),p=o(94650);let S=(()=>{class z{transform(m){if((0,i.k)(m)||isNaN(m)||m<0)return"-";const Z=["B","KB","MB","GB","TB","PB","EB"],s=(t,g)=>{const f=Math.pow(1024,g);return t{o.r(C),o.d(C,{JobManagerMetricsComponent:()=>P});var i=o(36895),p=o(77579),S=o(39646),z=o(70262),_=o(82722),m=o(68675),Z=o(54004),s=o(46470),t=o(94650);let g=(()=>{class c{transform(a){const r=parseInt(a,10);return isNaN(r)?null:r}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275pipe=t.Yjl({name:"parseInt",type:c,pure:!0,standalone:!0}),c})();var f=o(51971),T=o(73679),O=o(21102),u=o(73055),M=o(6675),e=o(37570),n=o(94138),l=o(22679);function d(c,A){if(1&c&&(t.ynx(0),t._uU(1),t.ALo(2,"humanizeBytes"),t.ALo(3,"parseInt"),t.BQk()),2&c){const a=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,1,t.lcZ(3,3,a.jmConfig["jobmanager.memory.jvm-overhead.min"]))," ")}}function h(c,A){if(1&c&&(t._uU(0),t._UZ(1,"br"),t._uU(2)),2&c){const a=t.oxw(2);t.hij(" Min: ",a.jmConfig["jobmanager.memory.jvm-overhead.min"]||"-"," "),t.xp6(2),t.hij(" Max: ",a.jmConfig["jobmanager.memory.jvm-overhead.max"]||"-"," ")}}const v=function(){return["220px","160px","200px",null]};function y(c,A){if(1&c&&(t.TgZ(0,"nz-table",9)(1,"thead")(2,"tr")(3,"th",10),t._uU(4,"Flink Memory Model"),t.qZA(),t.TgZ(5,"th",11),t._uU(6," Effective Configuration "),t._UZ(7,"i",12),t.qZA(),t.TgZ(8,"th",11),t._uU(9,"Metric"),t.qZA()()(),t.TgZ(10,"tbody")(11,"tr")(12,"td",13),t._UZ(13,"img",14),t.qZA(),t.TgZ(14,"td",11),t._uU(15,"JVM Heap"),t.qZA(),t.TgZ(16,"td"),t._uU(17),t.ALo(18,"humanizeBytes"),t.ALo(19,"parseInt"),t.qZA(),t.TgZ(20,"td"),t._UZ(21,"nz-progress",15),t.ALo(22,"number"),t._uU(23),t.ALo(24,"humanizeBytes"),t.ALo(25,"humanizeBytes"),t._UZ(26,"i",16),t.qZA()(),t.TgZ(27,"tr")(28,"td",11),t._uU(29,"Off-Heap Memory"),t.qZA(),t.TgZ(30,"td"),t._uU(31),t.ALo(32,"humanizeBytes"),t.ALo(33,"parseInt"),t.qZA(),t.TgZ(34,"td"),t._UZ(35,"i",17),t.qZA()(),t.TgZ(36,"tr")(37,"td",11),t._uU(38,"JVM Metaspace"),t.qZA(),t.TgZ(39,"td"),t._uU(40),t.ALo(41,"humanizeBytes"),t.ALo(42,"parseInt"),t.qZA(),t.TgZ(43,"td"),t._UZ(44,"nz-progress",15),t.ALo(45,"number"),t._uU(46),t.ALo(47,"humanizeBytes"),t.ALo(48,"humanizeBytes"),t.qZA()(),t.TgZ(49,"tr")(50,"td",11),t._uU(51,"JVM Overhead"),t.qZA(),t.TgZ(52,"td"),t.YNc(53,d,4,5,"ng-container",18),t.YNc(54,h,3,2,"ng-template",null,19,t.W1O),t.qZA(),t.TgZ(56,"td"),t._UZ(57,"i",17),t.qZA()()()()),2&c){const a=t.MAs(55),r=t.oxw();t.Q6J("nzWidthConfig",t.DdM(38,v)),t.xp6(17),t.Oqu(t.lcZ(18,12,t.lcZ(19,14,r.jmConfig["jobmanager.memory.heap.size"]))),t.xp6(4),t.Q6J("nzPercent",+t.xi3(22,16,r.metrics["Status.JVM.Memory.Heap.Used"]/r.metrics["Status.JVM.Memory.Heap.Max"]*100,"1.0-2")),t.xp6(2),t.AsE(" ",t.lcZ(24,19,r.metrics["Status.JVM.Memory.Heap.Used"])," / ",t.lcZ(25,21,r.metrics["Status.JVM.Memory.Heap.Max"])," "),t.xp6(8),t.Oqu(t.lcZ(32,23,t.lcZ(33,25,r.jmConfig["jobmanager.memory.off-heap.size"]))),t.xp6(9),t.Oqu(t.lcZ(41,27,t.lcZ(42,29,r.jmConfig["jobmanager.memory.jvm-metaspace.size"]))),t.xp6(4),t.Q6J("nzPercent",+t.xi3(45,31,r.metrics["Status.JVM.Memory.Metaspace.Used"]/r.metrics["Status.JVM.Memory.Metaspace.Max"]*100,"1.0-2")),t.xp6(2),t.AsE(" ",t.lcZ(47,34,r.metrics["Status.JVM.Memory.Metaspace.Used"])," / ",t.lcZ(48,36,r.metrics["Status.JVM.Memory.Metaspace.Max"])," "),t.xp6(7),t.Q6J("ngIf",r.jmConfig["jobmanager.memory.jvm-overhead.min"]===r.jmConfig["jobmanager.memory.jvm-overhead.max"])("ngIfElse",a)}}function b(c,A){if(1&c&&(t.TgZ(0,"tr")(1,"td")(2,"strong"),t._uU(3),t.qZA()(),t.TgZ(4,"td"),t._uU(5),t.qZA(),t.TgZ(6,"td"),t._uU(7),t.qZA()()),2&c){const a=A.$implicit;t.xp6(3),t.Oqu(a.name),t.xp6(2),t.Oqu(a.count||"-"),t.xp6(2),t.Oqu(a.time||"-")}}let P=(()=>{class c{constructor(a,r,E){this.jobManagerService=a,this.statusService=r,this.cdr=E,this.metrics={},this.jmConfig={},this.listOfGCName=[],this.listOfGCMetric=[],this.destroy$=new p.x}ngOnInit(){this.jobManagerService.loadConfig().pipe((0,z.K)(()=>(0,S.of)([])),(0,_.R)(this.destroy$)).subscribe(a=>{for(const r of a)this.jmConfig[r.key]=r.value;this.cdr.markForCheck()}),this.statusService.refresh$.pipe((0,m.O)(!0),(0,_.R)(this.destroy$)).subscribe(()=>{this.jobManagerService.loadMetricsName().pipe((0,Z.U)(a=>a.filter(r=>-1!==r.indexOf("Status.JVM.GarbageCollector")))).subscribe(a=>{this.listOfGCName=a,this.cdr.markForCheck()}),this.jobManagerService.loadMetrics(["Status.JVM.Memory.Heap.Used","Status.JVM.Memory.Heap.Max","Status.JVM.Memory.Metaspace.Used","Status.JVM.Memory.Metaspace.Max","Status.JVM.Memory.Heap.Committed","Status.JVM.Memory.Heap.Used","Status.JVM.Memory.Heap.Max","Status.JVM.Memory.NonHeap.Committed","Status.JVM.Memory.NonHeap.Used","Status.JVM.Memory.NonHeap.Max","Status.JVM.Memory.Direct.Count","Status.JVM.Memory.Direct.MemoryUsed","Status.JVM.Memory.Direct.TotalCapacity","Status.JVM.Memory.Mapped.Count","Status.JVM.Memory.Mapped.MemoryUsed","Status.JVM.Memory.Mapped.TotalCapacity",...this.listOfGCName]).subscribe(a=>{this.metrics=a,this.listOfGCMetric=Array.from(new Set(this.listOfGCName.map(r=>r.replace("Status.JVM.GarbageCollector.","").replace(".Count","").replace(".TimeMsPerSecond","").replace(".Time","")))).map(r=>({name:r,count:this.metrics[`Status.JVM.GarbageCollector.${r}.Count`],time:this.metrics[`Status.JVM.GarbageCollector.${r}.Time`]})),this.cdr.markForCheck()})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(a){return new(a||c)(t.Y36(n.x),t.Y36(l.B),t.Y36(t.sBO))},c.\u0275cmp=t.Xpm({type:c,selectors:[["flink-job-manager-metrics"]],standalone:!0,features:[t.jDz],decls:94,vars:54,consts:[["nzBordered","","class","flink-memory-model","nzTemplateMode","","nzSize","small",3,"nzWidthConfig",4,"ngIf"],["nzTitle","Advanced","nzSize","small"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan"],["nzBordered","","nzTitle","JVM (Heap/Non-Heap) Memory",3,"nzTemplateMode","nzFrontPagination","nzShowPagination","nzSize"],["nzBordered","","nzTitle","Outside JVM Memory",3,"nzTemplateMode","nzFrontPagination","nzShowPagination","nzSize"],["nz-row","",1,"top-margin"],["nzBordered","","nzTitle","Garbage Collection",3,"nzTemplateMode","nzFrontPagination","nzShowPagination","nzSize"],[4,"ngFor","ngForOf"],["nzBordered","","nzTemplateMode","","nzSize","small",1,"flink-memory-model",3,"nzWidthConfig"],["colspan","2",1,"table-header"],[1,"table-header"],["nz-icon","","nz-tooltip","","nzTooltipTitle","This column shows the values that are actually used by Flink. These may differ from the configured values; Flink may adjust them to fit the actual setup, and automatically derives values that were not explicitly configured.","nzType","info-circle",1,"header-icon"],["rowspan","8",1,"table-header"],["src","assets/images/process_mem_model.svg"],["nzSize","small","nzStrokeLinecap","square","nzStatus","normal",3,"nzPercent"],["nz-icon","","nz-tooltip","","nzTooltipTitle","The maximum heap displayed might differ from the configured values depending on the used GC algorithm for this process.","nzType","info-circle"],["nz-icon","","nz-tooltip","","nzTooltipTitle","Metrics related to this configuration parameter cannot be monitored. Flink does not have full control over these memory pools","nzType","info-circle"],[4,"ngIf","ngIfElse"],["minMaxTemplate",""]],template:function(a,r){1&a&&(t.YNc(0,y,58,39,"nz-table",0),t.TgZ(1,"nz-card",1)(2,"div",2)(3,"div",3)(4,"nz-table",4)(5,"thead")(6,"tr")(7,"th"),t._uU(8,"Type"),t.qZA(),t.TgZ(9,"th"),t._uU(10,"Committed"),t.qZA(),t.TgZ(11,"th"),t._uU(12,"Used"),t.qZA(),t.TgZ(13,"th"),t._uU(14,"Maximum"),t.qZA()()(),t.TgZ(15,"tbody")(16,"tr")(17,"td")(18,"strong"),t._uU(19,"Heap"),t.qZA()(),t.TgZ(20,"td"),t._uU(21),t.ALo(22,"humanizeBytes"),t.qZA(),t.TgZ(23,"td"),t._uU(24),t.ALo(25,"humanizeBytes"),t.qZA(),t.TgZ(26,"td"),t._uU(27),t.ALo(28,"humanizeBytes"),t.qZA()(),t.TgZ(29,"tr")(30,"td")(31,"strong"),t._uU(32,"Non-Heap"),t.qZA()(),t.TgZ(33,"td"),t._uU(34),t.ALo(35,"humanizeBytes"),t.qZA(),t.TgZ(36,"td"),t._uU(37),t.ALo(38,"humanizeBytes"),t.qZA(),t.TgZ(39,"td"),t._uU(40),t.ALo(41,"humanizeBytes"),t.qZA()()()()(),t.TgZ(42,"div",3)(43,"nz-table",5)(44,"thead")(45,"tr")(46,"th"),t._uU(47,"Type"),t.qZA(),t.TgZ(48,"th"),t._uU(49,"Count"),t.qZA(),t.TgZ(50,"th"),t._uU(51,"Used"),t.qZA(),t.TgZ(52,"th"),t._uU(53,"Capacity"),t.qZA()()(),t.TgZ(54,"tbody")(55,"tr")(56,"td")(57,"strong"),t._uU(58,"Direct"),t.qZA()(),t.TgZ(59,"td"),t._uU(60),t.ALo(61,"number"),t.qZA(),t.TgZ(62,"td"),t._uU(63),t.ALo(64,"humanizeBytes"),t.qZA(),t.TgZ(65,"td"),t._uU(66),t.ALo(67,"humanizeBytes"),t.qZA()(),t.TgZ(68,"tr")(69,"td")(70,"strong"),t._uU(71,"Mapped"),t.qZA()(),t.TgZ(72,"td"),t._uU(73),t.ALo(74,"number"),t.qZA(),t.TgZ(75,"td"),t._uU(76),t.ALo(77,"humanizeBytes"),t.qZA(),t.TgZ(78,"td"),t._uU(79),t.ALo(80,"humanizeBytes"),t.qZA()()()()()(),t.TgZ(81,"div",6)(82,"div",3)(83,"nz-table",7)(84,"thead")(85,"tr")(86,"th"),t._uU(87,"Collector"),t.qZA(),t.TgZ(88,"th"),t._uU(89,"Count"),t.qZA(),t.TgZ(90,"th"),t._uU(91,"Time"),t.qZA()()(),t.TgZ(92,"tbody"),t.YNc(93,b,8,3,"tr",8),t.qZA()()()()()),2&a&&(t.Q6J("ngIf",r.metrics),t.xp6(2),t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(1),t.Q6J("nzTemplateMode",!0)("nzFrontPagination",!1)("nzShowPagination",!1)("nzSize","small"),t.xp6(17),t.Oqu(t.lcZ(22,30,r.metrics["Status.JVM.Memory.Heap.Committed"])),t.xp6(3),t.Oqu(t.lcZ(25,32,r.metrics["Status.JVM.Memory.Heap.Used"])),t.xp6(3),t.Oqu(t.lcZ(28,34,r.metrics["Status.JVM.Memory.Heap.Max"])),t.xp6(7),t.Oqu(t.lcZ(35,36,r.metrics["Status.JVM.Memory.NonHeap.Committed"])),t.xp6(3),t.Oqu(t.lcZ(38,38,r.metrics["Status.JVM.Memory.NonHeap.Used"])),t.xp6(3),t.Oqu(t.lcZ(41,40,r.metrics["Status.JVM.Memory.NonHeap.Max"])),t.xp6(2),t.Q6J("nzSpan",12),t.xp6(1),t.Q6J("nzTemplateMode",!0)("nzFrontPagination",!1)("nzShowPagination",!1)("nzSize","small"),t.xp6(17),t.Oqu(t.lcZ(61,42,r.metrics["Status.JVM.Memory.Direct.Count"])),t.xp6(3),t.Oqu(t.lcZ(64,44,r.metrics["Status.JVM.Memory.Direct.MemoryUsed"])),t.xp6(3),t.Oqu(t.lcZ(67,46,r.metrics["Status.JVM.Memory.Direct.TotalCapacity"])),t.xp6(7),t.Oqu(t.lcZ(74,48,r.metrics["Status.JVM.Memory.Mapped.Count"])),t.xp6(3),t.Oqu(t.lcZ(77,50,r.metrics["Status.JVM.Memory.Mapped.MemoryUsed"])),t.xp6(3),t.Oqu(t.lcZ(80,52,r.metrics["Status.JVM.Memory.Mapped.TotalCapacity"])),t.xp6(3),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("nzTemplateMode",!0)("nzFrontPagination",!1)("nzShowPagination",!1)("nzSize","small"),t.xp6(10),t.Q6J("ngForOf",r.listOfGCMetric))},dependencies:[M.HQ,M.N8,M.Uo,M._C,M.Om,M.p0,M.$Z,i.O5,g,s.E,e.cg,e.SY,u.W,u.M,i.JJ,O.PV,O.Ls,f.vh,f.bd,T.Jb,T.t3,T.SK,i.sg],styles:["[_nghost-%COMP%]{display:flex;flex:1;flex-direction:column;overflow:auto;padding:16px}[_nghost-%COMP%] .ant-table-cell{font-size:12px}[_nghost-%COMP%] .header-icon[_ngcontent-%COMP%]{position:relative;top:1px}[_nghost-%COMP%] nz-progress[_ngcontent-%COMP%]{display:block;width:90%}[_nghost-%COMP%] nz-progress[_ngcontent-%COMP%] .ant-progress-inner{border-radius:0}[_nghost-%COMP%] .flink-memory-model[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%] .flink-memory-model[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%]{font-weight:500}[_nghost-%COMP%] .flink-memory-model[_ngcontent-%COMP%] .ant-table-small tr:hover td, [_nghost-%COMP%] .flink-memory-model[_ngcontent-%COMP%] .ant-table-small tr:hover th{background:transparent}[_nghost-%COMP%] .top-margin[_ngcontent-%COMP%]{margin-top:16px}"],changeDetection:0}),c})()},94138:(U,C,o)=>{o.d(C,{x:()=>_});var i=o(80529),p=o(54004),S=o(94650),z=o(70946);let _=(()=>{class m{constructor(s,t){this.httpClient=s,this.configService=t}loadConfig(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/config`)}loadEnvironment(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/environment`)}loadLogs(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/log`,{responseType:"text",headers:(new i.WM).append("Cache-Control","no-cache")})}loadStdout(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/stdout`,{responseType:"text",headers:(new i.WM).append("Cache-Control","no-cache")})}loadLogList(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/logs`).pipe((0,p.U)(s=>s.logs))}loadLog(s){const t=`${this.configService.BASE_URL}/jobmanager/logs/${s}`;return this.httpClient.get(t,{responseType:"text",headers:(new i.WM).append("Cache-Control","no-cache")}).pipe((0,p.U)(g=>({data:g,url:t})))}loadThreadDump(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/thread-dump`).pipe((0,p.U)(s=>s.threadInfos.map(t=>t.stringifiedThreadInfo).join("")))}loadMetricsName(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/metrics`).pipe((0,p.U)(s=>s.map(t=>t.id)))}loadMetrics(s){const t=s.join(",");return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/metrics`,{params:{get:t}}).pipe((0,p.U)(g=>{const f={};return g.forEach(T=>{f[T.id]=parseFloat(T.value)}),f}))}loadHistoryServerConfig(s){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${s}/jobmanager/config`)}loadHistoryServerEnvironment(s){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${s}/jobmanager/environment`)}loadHistoryServerJobManagerLogUrl(s){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${s}/jobmanager/log-url`).pipe((0,p.U)(t=>t.url))}loadProfilingList(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/profiler`)}createProfilingInstance(s,t){return this.httpClient.post(`${this.configService.BASE_URL}/jobmanager/profiler`,{mode:s,duration:t})}loadProfilingResult(s){const t=`${this.configService.BASE_URL}/jobmanager/profiler/${s}`;return this.httpClient.get(t,{responseType:"text",headers:(new i.WM).append("Cache-Control","no-cache")}).pipe((0,p.U)(g=>({data:g,url:t})))}}return m.\u0275fac=function(s){return new(s||m)(S.LFG(i.eN),S.LFG(z.E))},m.\u0275prov=S.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},7963:(U,C,o)=>{function i(p){return null==p}o.d(C,{k:()=>i})},73679:(U,C,o)=>{o.d(C,{Jb:()=>O,SK:()=>f,t3:()=>T});var i=o(94650),p=o(4707),S=o(77579),z=o(82722),_=o(33303),m=o(62289),Z=o(83353),s=o(40445),t=o(3187),g=o(36895);let f=(()=>{class u{constructor(e,n,l,d,h,v,y){this.elementRef=e,this.renderer=n,this.mediaMatcher=l,this.ngZone=d,this.platform=h,this.breakpointService=v,this.directionality=y,this.nzAlign=null,this.nzJustify=null,this.nzGutter=null,this.actualGutter$=new p.t(1),this.dir="ltr",this.destroy$=new S.x}getGutter(){const e=[null,null],n=this.nzGutter||0;return(Array.isArray(n)?n:[n,null]).forEach((d,h)=>{"object"==typeof d&&null!==d?(e[h]=null,Object.keys(_.WV).map(v=>{const y=v;this.mediaMatcher.matchMedia(_.WV[y]).matches&&d[y]&&(e[h]=d[y])})):e[h]=Number(d)||null}),e}setGutterStyle(){const[e,n]=this.getGutter();this.actualGutter$.next([e,n]);const l=(d,h)=>{null!==h&&this.renderer.setStyle(this.elementRef.nativeElement,d,`-${h/2}px`)};l("margin-left",e),l("margin-right",e),l("margin-top",n),l("margin-bottom",n)}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe((0,z.R)(this.destroy$)).subscribe(n=>{this.dir=n}),this.setGutterStyle()}ngOnChanges(e){e.nzGutter&&this.setGutterStyle()}ngAfterViewInit(){this.platform.isBrowser&&this.breakpointService.subscribe(_.WV).pipe((0,z.R)(this.destroy$)).subscribe(()=>{this.setGutterStyle()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return u.\u0275fac=function(e){return new(e||u)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(m.vx),i.Y36(i.R0b),i.Y36(Z.t4),i.Y36(_.r3),i.Y36(s.Is,8))},u.\u0275dir=i.lG2({type:u,selectors:[["","nz-row",""],["nz-row"],["nz-form-item"]],hostAttrs:[1,"ant-row"],hostVars:20,hostBindings:function(e,n){2&e&&i.ekj("ant-row-top","top"===n.nzAlign)("ant-row-middle","middle"===n.nzAlign)("ant-row-bottom","bottom"===n.nzAlign)("ant-row-start","start"===n.nzJustify)("ant-row-end","end"===n.nzJustify)("ant-row-center","center"===n.nzJustify)("ant-row-space-around","space-around"===n.nzJustify)("ant-row-space-between","space-between"===n.nzJustify)("ant-row-space-evenly","space-evenly"===n.nzJustify)("ant-row-rtl","rtl"===n.dir)},inputs:{nzAlign:"nzAlign",nzJustify:"nzJustify",nzGutter:"nzGutter"},exportAs:["nzRow"],features:[i.TTD]}),u})(),T=(()=>{class u{constructor(e,n,l,d){this.elementRef=e,this.nzRowDirective=n,this.renderer=l,this.directionality=d,this.classMap={},this.destroy$=new S.x,this.hostFlexStyle=null,this.dir="ltr",this.nzFlex=null,this.nzSpan=null,this.nzOrder=null,this.nzOffset=null,this.nzPush=null,this.nzPull=null,this.nzXs=null,this.nzSm=null,this.nzMd=null,this.nzLg=null,this.nzXl=null,this.nzXXl=null}setHostClassMap(){const e={"ant-col":!0,[`ant-col-${this.nzSpan}`]:(0,t.DX)(this.nzSpan),[`ant-col-order-${this.nzOrder}`]:(0,t.DX)(this.nzOrder),[`ant-col-offset-${this.nzOffset}`]:(0,t.DX)(this.nzOffset),[`ant-col-pull-${this.nzPull}`]:(0,t.DX)(this.nzPull),[`ant-col-push-${this.nzPush}`]:(0,t.DX)(this.nzPush),"ant-col-rtl":"rtl"===this.dir,...this.generateClass()};for(const n in this.classMap)this.classMap.hasOwnProperty(n)&&this.renderer.removeClass(this.elementRef.nativeElement,n);this.classMap={...e};for(const n in this.classMap)this.classMap.hasOwnProperty(n)&&this.classMap[n]&&this.renderer.addClass(this.elementRef.nativeElement,n)}setHostFlexStyle(){this.hostFlexStyle=this.parseFlex(this.nzFlex)}parseFlex(e){return"number"==typeof e?`${e} ${e} auto`:"string"==typeof e&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}generateClass(){const n={};return["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"].forEach(l=>{const d=l.replace("nz","").toLowerCase();if((0,t.DX)(this[l]))if("number"==typeof this[l]||"string"==typeof this[l])n[`ant-col-${d}-${this[l]}`]=!0;else{const h=this[l];["span","pull","push","offset","order"].forEach(y=>{n[`ant-col-${d}${"span"===y?"-":`-${y}-`}${h[y]}`]=h&&(0,t.DX)(h[y])})}}),n}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe((0,z.R)(this.destroy$)).subscribe(n=>{this.dir=n,this.setHostClassMap()}),this.setHostClassMap(),this.setHostFlexStyle()}ngOnChanges(e){this.setHostClassMap();const{nzFlex:n}=e;n&&this.setHostFlexStyle()}ngAfterViewInit(){this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe((0,z.R)(this.destroy$)).subscribe(([e,n])=>{const l=(d,h)=>{null!==h&&this.renderer.setStyle(this.elementRef.nativeElement,d,h/2+"px")};l("padding-left",e),l("padding-right",e),l("padding-top",n),l("padding-bottom",n)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return u.\u0275fac=function(e){return new(e||u)(i.Y36(i.SBq),i.Y36(f,9),i.Y36(i.Qsj),i.Y36(s.Is,8))},u.\u0275dir=i.lG2({type:u,selectors:[["","nz-col",""],["nz-col"],["nz-form-control"],["nz-form-label"]],hostVars:2,hostBindings:function(e,n){2&e&&i.Udp("flex",n.hostFlexStyle)},inputs:{nzFlex:"nzFlex",nzSpan:"nzSpan",nzOrder:"nzOrder",nzOffset:"nzOffset",nzPush:"nzPush",nzPull:"nzPull",nzXs:"nzXs",nzSm:"nzSm",nzMd:"nzMd",nzLg:"nzLg",nzXl:"nzXl",nzXXl:"nzXXl"},exportAs:["nzCol"],features:[i.TTD]}),u})(),O=(()=>{class u{}return u.\u0275fac=function(e){return new(e||u)},u.\u0275mod=i.oAB({type:u}),u.\u0275inj=i.cJS({imports:[s.vT,g.ez,m.xu,Z.ud]}),u})()}}]);
© 2015 - 2025 Weber Informatics LLC | Privacy Policy