1import {a as ae,i as ie}from'./chunk-8q0V7R9W.js';import {FlatpickrDirective as m}from'./chunk-Bwf6keo1.js';import'./chunk-D7Q8bVu-.js';import'./chunk-Cz-LDYSE.js';import'./chunk-CJZk9g-5.js';import {J as Je,b,u as p,as as hi,k,a as Cu,aw as X,aI as Ce,bo as eM,ba as s,bb as r$1,bc as Eo,c1 as ci,e as eC,az as gi,aA as et,aE as oi,aF as ai,c0 as Sn,aG as kn,ay as Ii,M as Ft,d as ds,Q as D_,$ as $_,p as pu,w as wm,aJ as fT,G as Gm,X as Dm,f as pw,a3 as Iu,a0 as q_,aX as __,h as P_,aK as hT,Z as gy,O as O_}from'./main-MURRLOR2.js';import {ValidateDirective as h}from'./chunk-BDndEpQ1.js';import'./chunk-CmGRpkHB.js';import'./chunk-Bq0WOqvV.js';var Q=()=>[],K=class C{constructor(s){this.datePipe=s;}datePipe;dataList=Je([]);isFetched=Je(false);commonApiService=b(p);formBuilder=b(hi);systemReportApiService=b(ae);commonService=b(k);flatpickrOptions=Cu(()=>({enableTime:false,dateFormat:this.commonService.getDataFormat(),allowInput:true}));form=this.formBuilder.group({workflowId:new X(null,Ce.required),startDate:new X(null,Ce.required),endDate:new X(null,Ce.required)});workflows=eM({loader:async()=>(await this.commonApiService.getWorkflowsAsync()).filter(n=>n.isWorkflow)});
1async onFormSubmit(){if(this.form.invalid){this.form.markAllAsTouched();return}let s$1=this.commonService.convertToDate(this.form.value.startDate?.toString()??""),n=this.commonService.convertToDate(this.form.value.endDate?.toString()??""),e=s(r$1({},this.form.value),{startDate:this.datePipe.transform(s$1,"yyyy-MM-dd"),endDate:this.datePipe.transform(n,"yyyy-MM-dd")}),h=await this.systemReportApiService.getStagePerformanceReport(e);this.dataList.set(h??[]),this.isFetched.set(true);}static \u0275fac=function(n){return new(n||C)(Eo(ci))};static \u0275cmp=eC({type:C,selectors:[["cf-stage-performance-report"]],features:[O_([ci])],decls:36,vars:35,consts:[[3,"dataList","isFetched"],[1,"system-container",3,"formGroup"],[1,"grid-item"],["for","",1,"cf-form-label"],[1,"error-message"],["cfValidate","","bindLabel","displayName","bindValue","id",3,"placeholder","items","clearable","formControl"],[1,"inpt-group"],["autocomplete","off","cfFlatpickr","","cfValidate","","type","text",1,"date-pick","form-control","fnt-12",3,"flatpickrOptions","placeholder","formControl"],["alt","","src","assets/images/form-creation/date.svg"],["type","button",1,"button-primary",3,"click"]],template:function(n,e){n&1&&(ds(0,"cf-system-report-view",0)(1,"div",1)(2,"div",2)(3,"label",3),D_(4),$_(5,"translate"),ds(6,"span",4),D_(7,"*"),pu()(),wm(8,"ng-select",5),$_(9,"translate"),fT(),pu(),ds(10,"div",2)(11,"label",3),D_(12),$_(13,"translate"),ds(14,"span",4),D_(15,"*"),pu()(),ds(16,"div",6),wm(17,"input",7),$_(18,"translate"),fT(),wm(19,"img",8),pu()(),ds(20,"div",2)(21,"label",3),D_(22),$_(23,"translate"),ds(24,"span",4),D_(25,"*"),pu()(),ds(26,"div",6),wm(27,"input",7),$_(28,"translate"),fT(),wm(29,"img",8),pu()(),ds(30,"div",2)(31,"label",3),D_(32,"\xA0"),pu(),ds(33,"button",9),Gm("click",function(){return e.onFormSubmit()}),D_(34),$_(35,"translate"),pu()()()()),n&2&&(Dm("dataList",e.dataList())("isFetched",e.isFetched()),pw(),Dm("formGroup",e.form),pw(3),Iu("",q_(5,20,"Workflow")," "),pw(4),Dm("placeholder",__(q_(9,22,"Select")))("items",e.workflows.value()??P_(34,Q))("clearable",false)("formControl",e.form.controls.workflowId),hT(),pw(4),Iu("",q_(13,24,"Submitted_Date_From")," "),pw(5),Dm("placeholder",__(q_(18,26,"Select_Date")))("flatpickrOptions",e.flatpickrOptions())("formControl",e.form.controls.startDate),hT(),pw(5),Iu("",q_(23,28,"Submitted_Date_To")," "),pw(5),Dm("placeholder",__(q_(28,30,"Select_Date")))("flatpickrOptions",e.flatpickrOptions())("formControl",e.form.controls.endDate),hT(),pw(7),gy(q_(35,32,"Get_Report")));},dependencies:[gi,et,oi,ai,Sn,kn,Ii,ie,h,m,Ft],styles:[".system-container[_ngcontent-%COMP%]{display:flex;gap:8px}.system-container[_ngcontent-%COMP%] .grid-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;width:100%}.inpt-group[_ngcontent-%COMP%]{position:relative}.inpt-group[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{padding-left:26px}.inpt-group[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;top:6px;left:6px}"]})};export{K as StagePerformanceReportComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.