PageSourceSearch

https://app.msmunify.com/1178.451c4f59c466f23c.js

js msmunify.com collected 2026-10-02 14:57:25 UTC 33,871 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmsm=self.webpackChunkmsm||[]).push([[1178],{84851:(R,E,l)=>{l.d(E,{B:()=>ht});var h=l(73555),g=l(49095),C=l(47057),p=l(67065),D=l(75327),b=l(26342),t=l(94650),T=l(92340),F=l(80529);let M=(()=>{const r=class{constructor(e){this.http=e,this.APIURL=T.NZ.apiurl+"Status/"}add(e){return this.http.post(this.APIURL+"Add",e)}update(e){return this.http.post(this.APIURL+"Update",e)}list(e,o){return this.http.get(this.APIURL+"List?Type="+e+"&InstitutionId="+o)}get(e,o){return this.http.get(this.APIURL+"Get?Type="+e+"&StatusId="+o)}delete(e,o){return this.http.post(this.APIURL+"Delete?Type="+e+"&StatusId="+o,{})}};let i=r;return r.\u0275fac=function(o){return new(o||r)(t.\u0275\u0275inject(F.HttpClient))},r.\u0275prov=t.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),i})();var x=l(26682),S=l(7053),_=l(36895),c=l(24006),I=l(97392),f=l(18455),w=l(46289),v=l(24363),O=l(1319),m=l(17805),u=l(34002),P=l(99818),L=l(29203),A=l(87911),U=l(52073),k=l(42624);function V(i,r){if(1&i&&(t.\u0275\u0275element(0,"dxi-column",24),t.\u0275\u0275pipe(1,"sentenceCase")),2&i){const a=r.$implicit;t.\u0275\u0275property("dataField",a.dataField)("minWidth",100)("caption",t.\u0275\u0275pipeBind1(1,5,a.title))("dataType",a.type)("format",a.format)}}function $(i,r){1&i&&t.\u0275\u0275element(0,"dxi-column",25),2&i&&t.\u0275\u0275property("allowExporting",!1)("minWidth",50)}function B(i,r){if(1&i){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div")(1,"button",26),t.\u0275\u0275listener("click",function(o){const s=t.\u0275\u0275restoreView(a).$implicit,d=t.\u0275\u0275nextContext();return o.stopPropagation(),t.\u0275\u0275resetView(d.delete(s.data.StatusId))}),t.\u0275\u0275elementStart(2,"mat-icon"),t.\u0275\u0275text(3,"close"),t.\u0275\u0275elementEnd()()()}}function j(i,r){if(1&i){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",29),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(a);const o=t.\u0275\u0275nextContext(2),n=t.\u0275\u0275reference(1);return t.\u0275\u0275resetView(o.add(n))}),t.\u0275\u0275elementStart(1,"mat-icon"),t.\u0275\u0275text(2,"add"),t.\u0275\u0275elementEnd()()}}function W(i,r){if(1&i){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275template(1,j,3,0,"button",27),t.\u0275\u0275elementStart(2,"button",28),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(a);const o=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(o.showFilterRow=!o.showFilterRow)}),t.\u0275\u0275elementStart(3,"mat-icon"),t.\u0275\u0275text(4,"filter_list"),t.\u0275\u0275elementEnd()()()}if(2&i){const a=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",1===a.currentUser.RoleId)}}function N(i,r){1&i&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1," Status is required"),t.\u0275\u0275elementEnd())}function K(i,r){1&i&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1," Outcome is required"),t.\u0275\u0275elementEnd())}function z(i,r){1&i&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1," Visible To is required"),t.\u0275\u0275elementEnd())}function J(i,r){if(1&i){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",30)(1,"div",7)(2,"div",31)(3,"mat-form-field")(4,"mat-label"),t.\u0275\u0275text(5,"Status"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"input",32,33),t.\u0275\u0275listener("ngModelChange",function(o){t.\u0275\u0275restoreView(a);const n=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(n.formdata.StatusName=o)}),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(8,N,2,0,"mat-error",34),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(9,"div",31)(10,"mat-form-field")(11,"mat-label"),t.\u0275\u0275text(12,"Outcome"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(13,"mat-select",35,36),t.\u0275\u0275listener("ngModelChange",function(o){t.\u0275\u0275restoreView(a);const n=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(n.formdata.OutCome=o)}),t.\u0275\u0275elementStart(15,"mat-option",37),t.\u0275\u0275text(16," Approved "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(17,"mat-option",38),t.\u0275\u0275text(18," Dropout "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(19,"mat-option",39),t.\u0275\u0275text(20," In Process "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(21,"mat-option",40),t.\u0275\u0275text(22," Refund "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(23,"mat-option",41),t.\u0275\u0275text(24," Rejected "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(25,"mat-option",42),t.\u0275\u0275text(26,"Study Permit Approved"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(27,"mat-option",43),t.\u0275\u0275text(28,"Study Permit Refused"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(29,K,2,0,"mat-error",34),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(30,"div",31)(31,"mat-form-field")(32,"mat-label"),t.\u0275\u0275text(33,"Visible To"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(34,"mat-select",44,45),t.\u0275\u0275listener("ngModelChange",function(o){t.\u0275\u0275restoreView(a);const n=t.\u0275\u0275nextContext();
1return t.\u0275\u0275resetView(n.formdata.VisiblityStatus=o)}),t.\u0275\u0275elementStart(36,"mat-option",46),t.\u0275\u0275text(37," All "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(38,"mat-option",46),t.\u0275\u0275text(39," Agent "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(40,"mat-option",46),t.\u0275\u0275text(41," Institution "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(42,"mat-option",46),t.\u0275\u0275text(43," MSM Team "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(44,z,2,0,"mat-error",34),t.\u0275\u0275elementEnd()()()()}if(2&i){const a=t.\u0275\u0275reference(7),e=t.\u0275\u0275reference(14),o=t.\u0275\u0275reference(35),n=t.\u0275\u0275nextContext();t.\u0275\u0275property("hidden",!n.showForm),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngModel",n.formdata.StatusName),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",a.hasError("required")),t.\u0275\u0275advance(5),t.\u0275\u0275property("ngModel",n.formdata.OutCome),t.\u0275\u0275advance(16),t.\u0275\u0275property("ngIf",e.hasError("required")),t.\u0275\u0275advance(5),t.\u0275\u0275property("ngModel",n.formdata.VisiblityStatus),t.\u0275\u0275advance(2),t.\u0275\u0275property("value",0),t.\u0275\u0275advance(2),t.\u0275\u0275property("value",2),t.\u0275\u0275advance(2),t.\u0275\u0275property("value",3),t.\u0275\u0275advance(2),t.\u0275\u0275property("value",1),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",o.hasError("required"))}}function H(i,r){if(1&i&&(t.\u0275\u0275elementStart(0,"button",47),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&i){const a=t.\u0275\u0275nextContext();t.\u0275\u0275property("disabled",a.flagdisabled)("hidden",!a.showForm),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",a.formdata.StatusId?"Update":"Add"," ")}}const Z=function(i,r){return{"col-md-6 col-sm-12":i,"col-md-12":r}},G=function(){return[5,10,25,50,100]};let Q=(()=>{const r=class{constructor(e,o,n,s,d){this.statusService=e,this.toasterService=n,this.matDialog=d,this.formdata={StatusId:null,StatusName:null,OutCome:null,VisiblityStatus:null},this.institutionId=0,this.type=0,this.flagdisabled=!1,this.isChange=!1,this.columns=[{dataField:"StatusName",title:"Status",type:"",format:""},{dataField:"OutCome",title:"Outcome",type:"",format:""},{dataField:"VisibleTo",title:"Visible To",type:"",format:""}],this.showFilterRow=!1,this.gridMessage="No data",this.onDestroy$=new C.Subject,this.showForm=!1,this.excel_permisson=0,this.institutionId=0|o.InstitutionId,this.type=0|o.Type,this.usedStatus=o.usedStatus,this.currentUser=s.currentUserSubject.getValue(),this.excel_permisson=s.checkPermission(b.vf.Excel_Export)}ngOnInit(){this.list()}submitform(e){e.invalid||(this.flagdisabled=!0,this.formdata.Type=this.type,this.formdata.InstitutionId=this.institutionId,this.formdata.StatusId?this.statusService.update(this.formdata).pipe((0,p.takeUntil)(this.onDestroy$)).subscribe(o=>{o&&(this.toasterService.pop("success","Status updated successfully."),this.isChange=!0,this.flagdisabled=!1,this.resetForm(e),this.list())},o=>{this.flagdisabled=!1}):this.statusService.add(this.formdata).pipe((0,p.takeUntil)(this.onDestroy$)).subscribe(o=>{o&&(this.toasterService.pop("success","Status saved successfully."),this.isChange=!0,this.flagdisabled=!1,this.resetForm(e),this.list())},o=>{this.flagdisabled=!1}))}ngOnDestroy(){this.onDestroy$.next(),this.onDestroy$.complete()}resetForm(e){this.formdata={StatusId:null,StatusName:null,OutCome:null,VisiblityStatus:null},e&&e.resetForm(this.formdata),this.showForm=!1}list(){this.gridMessage="Loading...",this.statusService.list(this.type,this.institutionId).pipe((0,p.takeUntil)(this.onDestroy$)).subscribe(e=>{this.dataList=e,this.gridMessage="No data"})}delete(e){this.matDialog.open(D.i).afterClosed().pipe((0,p.takeUntil)(this.onDestroy$)).subscribe(o=>{if(o){if(this.usedStatus&&this.usedStatus.length>0&&this.usedStatus.findIndex(n=>n===e)>=0)return void this.toasterService.pop("error","Status used in flow.");this.statusService.delete(this.type,e).pipe((0,p.takeUntil)(this.onDestroy$)).subscribe(n=>{this.toasterService.pop("success","Status deleted successfully."),this.isChange=!0,this.resetForm(),this.list()})}})}edit(e){this.statusService.get(this.type,e).pipe((0,p.takeUntil)(this.onDestroy$)).subscribe(o=>
1{this.formdata=o,this.showForm=!0})}add(e){this.resetForm(e),this.showForm=!0}onToolbarPreparing(e){e.toolbarOptions.items.unshift({location:"after",template:"toolbarButton"})}};let i=r;return r.\u0275fac=function(o){return new(o||r)(t.\u0275\u0275directiveInject(M),t.\u0275\u0275directiveInject(g.eJ),t.\u0275\u0275directiveInject(x.MJ),t.\u0275\u0275directiveInject(S.$),t.\u0275\u0275directiveInject(g.on))},r.\u0275cmp=t.\u0275\u0275defineComponent({type:r,selectors:[["app-add-status-dialog"]],decls:29,vars:36,consts:[[1,"new-design",3,"submit"],["form","ngForm"],["mat-dialog-title",""],["type","button","aria-label","Close",1,"close","text-white",3,"mat-dialog-close"],["aria-hidden","true"],["mat-dialog-content",""],[1,"container-fluid"],[1,"row"],[1,"col-md-6","col-sm-12",3,"ngClass"],[3,"dataSource","showBorders","allowColumnResizing","showColumnLines","showRowLines","rowAlternationEnabled","noDataText","columnAutoWidth","allowColumnReordering","onToolbarPreparing","onRowClick"],[3,"visible"],["type","localStorage",3,"enabled","storageKey"],[3,"enabled","pageSize"],[3,"showPageSizeSelector","allowedPageSizes","showInfo"],[3,"visible","allowSearch"],["fileName","institutions",3,"enabled"],["mode","select",3,"enabled","allowSearch"],[3,"dataField","minWidth","caption","dataType","format",4,"ngFor","ngForOf"],["caption","Action","cssClass","action-center","cellTemplate","actionCellTemplate",3,"allowExporting","minWidth",4,"ngIf"],[4,"dxTemplate","dxTemplateOf"],["class","col-md-6 col-sm-12",3,"hidden",4,"ngIf"],["mat-dialog-footer","","align","center"],["type","button",1,"btn","btn-sm","btn-primary","modalclose","mr10",3,"mat-dialog-close"],["type","submit","class","btn btn-sm btn-primary btn-cust",3,"disabled","hidden",4,"ngIf"],[3,"dataField","minWidth","caption","dataType","format"],["caption","Action","cssClass","action-center","cellTemplate","actionCellTemplate",3,"allowExporting","minWidth"],["type","button","mat-icon-button","","data-toggle","tooltip","title","Delete",1,"text-danger",3,"click"],["type","button","class","text-danger","mat-icon-button","","data-toggle","tooltip","title","New",3,"click",4,"ngIf"],["mat-icon-button","","data-toggle","tooltip","title","Apply Filter",1,"text-danger",3,"click"],["type","button","mat-icon-button","","data-toggle","tooltip","title","New",1,"text-danger",3,"click"],[1,"col-md-6","col-sm-12",3,"hidden"],[1,"col-md-12"],["matInput","","placeholder","Status","type","text","name","StatusName","maxlength","100","required","",3,"ngModel","ngModelChange"],["StatusName","ngModel"],[4,"ngIf"],["matInput","","placeholder","Outcome","name","OutCome","required","",3,"ngModel","ngModelChange"],["OutCome","ngModel"],["value","Approved"],["value","Dropout"],["value","InProcess"],["value","Refund"],["value","Rejected"],["value","Study Permit Approved"],["value","Study Permit Refused"],["matInput","","placeholder","Visible To","name","VisiblityStatus","required","",3,"ngModel","ngModelChange"],["VisiblityStatus","ngModel"],[3,"value"],["type","submit",1,"btn","btn-sm","btn-primary","btn-cust",3,"disabled","hidden"]],template:function(o,n){if(1&o){const s=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"form",0,1),t.\u0275\u0275listener("submit",function(){t.\u0275\u0275restoreView(s);const y=t.\u0275\u0275reference(1);return t.\u0275\u0275resetView(n.submitform(y))}),t.\u0275\u0275elementStart(2,"div",2),t.\u0275\u0275text(3," Status "),t.\u0275\u0275elementStart(4,"button",3)(5,"span",4),t.\u0275\u0275text(6,"\xd7"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(7,"div",5)(8,"div",6)(9,"div",7)(10,"div",8)(11,"dx-data-grid",9),t.\u0275\u0275listener("onToolbarPreparing",function(y){return n.onToolbarPreparing(y)})("onRowClick",function(y){return 1===n.currentUser.RoleId?n.edit(y.data.StatusId):null}),t.\u0275\u0275element(12,"dxo-filter-panel",10)(13,"dxo-state-storing",11)(14,"dxo-paging",12)(15,"dxo-pager",13)(16,"dxo-filter-row",10)(17,"dxo-header-filter",14)(18,"dxo-export",15)(19,"dxo-column-chooser",16),t.\u0275\u0275template(20,V,2,7,"dxi-column",17),t.\u0275\u0275template(21,$,1,2,"dxi-column",18),t.\u0275\u0275template(22,B,4,0,"div",19),t.\u0275\u0275template(23,W,5,1,"div",19),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(24,J,45,11,"div",20),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(25,"div",21)(26,"button",22),t.\u0275\u0275text(27,"Close"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(28,H,2,3,"button",23),t.\u0275\u0275elementEnd()()}2&o&&(t.\u0275\u0275advance(4),t.\u0275\u0275property("mat-dialog-close",n.isChange),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction2(32,Z,n.showForm,!n.showForm)),t.\u0275\u0275advance(1),t.\u0275\u0275property("dataSource",n.dataList)("showBorders",!0)("allowColumnResizing",!0)("showColumnLines",!0)("showRowLines",!0)("rowAlternationEnabled",!0)("noDataText",n.gridMessage)("columnAutoWidth",!0)("allowColumnReordering",!0),t.\u0275\u0275advance(1),t.\u0275\u0275property("visible",!0),t.\u0275\u0275advance(1),t.\u0275\u0275propertyInterpolate1("storageKey","add_status_",n.currentUser.RoleId,""),t.\u0275\u0275property("enabled",(null==n.columns?null:n.columns.length)>0),t.\u0275\u0275advance(1),t.\u0275\u0275property("enabled",!0)("pageSize",10),t.\u0275\u0275advance(1),t.\u0275\u0275property("showPageSizeSelector",!0)("allowedPageSizes",t.\u0275\u0275pureFunction0(35,G))("showInfo",!0),t.\u0275\u0275advance(1),t.\u0275\u0275property("visible",n.showFilterRow),t.\u0275\u0275advance(1),t.\u0275\u0275property("visible",!0)("allowSearch",!0),t.\u0275\u0275advance(1),t.\u0275\u0275property("enabled",n.excel_permisson>0),t.\u0275\u0275advance(1),t.\u0275\u0275property("enabled",!0)("allowSearch",!0),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",n.columns),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",1===n.currentUser.RoleId&&(null==n.columns?null:n.columns.length)>0),t.\u0275\u0275advance(1),t.\u0275\u0275property("dxTemplateOf","actionCellTemplate"),t.\u0275\u0275advance(1),t.\u0275\u0275property("dxTemplateOf","toolbarButton"),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",1===n.currentUser.RoleId),t.\u0275\u0275advance(2),t.\u0275\u0275property("mat-dialog-close",n.isChange),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",1===n.currentUser.RoleId))},dependencies:[_.NgClass,_.NgForOf,_.NgIf,c._Y,c.Fj,c.JJ,c.JL,c.Q7,c.nD,c.On,c.F,I.Hw,f.nI,f.v_,f.$V,w.x8,v.CK,g.aO,g.YS,g.Rb,O.e,m.Auv,m.qvW,m.tZE,m.Ak0,m.ecQ,m.I62,m.ilc,m.sXh,m.C9T,u.p6,P.eB,L.k0,A.t,
1U.S,k.U],styles:[".mat-dialog-title{margin-bottom:1.5rem!important}  div.dx-datagrid-headers.dx-datagrid-nowrap{top:25px!important}  .dx-datagrid-header-panel{position:sticky;top:-15px!important;z-index:998}"]}),i})();var Y=l(86475),X=l(97684);let q=(()=>{const r=class{constructor(){this.valueChange=new t.EventEmitter,this.editmode=!1}ngOnInit(){}setEditable(e){this.editmode=e,e||this.valueChange.emit(this.value)}};let i=r;return r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=t.\u0275\u0275defineComponent({type:r,selectors:[["app-click-to-edit"]],inputs:{value:"value",label:"label",placeholder:"placeholder"},outputs:{valueChange:"valueChange"},decls:6,vars:6,consts:[[3,"hidden","click"],[3,"hidden"],["type","text",3,"ngModel","placeholder","ngModelChange","blur"]],template:function(o,n){1&o&&(t.\u0275\u0275elementStart(0,"span",0),t.\u0275\u0275listener("click",function(){return n.setEditable(!0)}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(2,"span",1)(3,"label"),t.\u0275\u0275text(4),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"input",2),t.\u0275\u0275listener("ngModelChange",function(d){return n.value=d})("blur",function(){return n.setEditable(!1)}),t.\u0275\u0275elementEnd()()),2&o&&(t.\u0275\u0275property("hidden",n.editmode),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",n.value," "),t.\u0275\u0275advance(1),t.\u0275\u0275property("hidden",!n.editmode),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(n.label),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngModel",n.value)("placeholder",n.placeholder))},dependencies:[c.Fj,c.JJ,c.On]}),i})();var tt=l(33231),et=l(68669),nt=l(54755);function ot(i,r){1&i&&(t.\u0275\u0275elementStart(0,"mat-option",18),t.\u0275\u0275text(1,"All"),t.\u0275\u0275elementEnd()),2&i&&t.\u0275\u0275property("value",0)}function it(i,r){if(1&i&&(t.\u0275\u0275elementStart(0,"mat-option",18),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&i){const a=r.$implicit;t.\u0275\u0275property("value",a.CountryId),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",a.CountryName,"")}}function at(i,r){if(1&i){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",19),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(a);const o=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(o.update())}),t.\u0275\u0275text(1,"Update"),t.\u0275\u0275elementEnd()}if(2&i){const a=t.\u0275\u0275nextContext();t.\u0275\u0275property("hidden",void 0===a.countryId||1!==a.currentUser.RoleType&&2!==a.currentUser.RoleType)("disabled",a.flagdisabled)}}function rt(i,r){if(1&i){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",30),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(a);const o=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(o.addStatus())}),t.\u0275\u0275elementStart(1,"mat-icon"),t.\u0275\u0275text(2,"edit"),t.\u0275\u0275elementEnd()()}}function lt(i,r){if(1&i&&(t.\u0275\u0275elementStart(0,"div",31),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&i){const a=r.$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",a.text," ")}}function st(i,r){if(1&i){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",20)(1,"div",1)(2,"div",21)(3,"h4",22),t.\u0275\u0275text(4,"Steps"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"div",23),t.\u0275\u0275template(6,rt,3,0,"button",24),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(7,"div",25)(8,"div",26)(9,"div",27,28),t.\u0275\u0275listener("cdkDropListDropped",function(o){t.\u0275\u0275restoreView(a);const n=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(n.drop(o))}),t.\u0275\u0275template(11,lt,2,1,"div",29),t.\u0275\u0275elementEnd()()()()()}if(2&i){const a=t.\u0275\u0275nextContext();t.\u0275\u0275advance(6),t.\u0275\u0275property("ngIf",a.permission>3),t.\u0275\u0275advance(3),t.\u0275\u0275property("cdkDropListData",a.statusList),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",a.statusList)}}function dt(i,r){if(1&i&&(t.\u0275\u0275elementStart(0,"span"),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&i){const a=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",a.FlowTitle," ")}}function ct(i,r){if(1&i){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"app-click-to-edit",40),t.\u0275\u0275listener("valueChange",function(o){t.\u0275\u0275restoreView(a);const n=t.\u0275\u0275nextContext().$implicit;
1return t.\u0275\u0275resetView(n.FlowTitle=o)}),t.\u0275\u0275elementEnd()}if(2&i){const a=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275property("value",a.FlowTitle)}}function pt(i,r){if(1&i){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",44),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(a);const o=t.\u0275\u0275nextContext(2).index,n=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(n.removeFlow(o))}),t.\u0275\u0275elementStart(1,"mat-icon"),t.\u0275\u0275text(2,"close"),t.\u0275\u0275elementEnd()()}}function mt(i,r){if(1&i){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",41),t.\u0275\u0275template(1,pt,3,0,"button",42),t.\u0275\u0275elementStart(2,"button",43),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(a);const o=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(o.addFlow())}),t.\u0275\u0275elementStart(3,"mat-icon"),t.\u0275\u0275text(4,"add"),t.\u0275\u0275elementEnd()()()}if(2&i){const a=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",a.flowListData.length>1)}}function ut(i,r){if(1&i&&(t.\u0275\u0275elementStart(0,"div",45)(1,"span",46),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"span"),t.\u0275\u0275text(4),t.\u0275\u0275elementEnd()()),2&i){const a=r.$implicit,e=r.index,o=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("cdkDragDisabled",1!==o.currentUser.RoleType&&2!==o.currentUser.RoleType||o.permission<2),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1("",e+1,"."),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",a.text," ")}}function gt(i,r){if(1&i){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"td",32)(2,"div",33)(3,"div",21)(4,"h4",34),t.\u0275\u0275template(5,dt,2,1,"span",35),t.\u0275\u0275template(6,ct,1,1,"app-click-to-edit",36),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(7,mt,5,1,"div",37),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(8,"div",25)(9,"div",26)(10,"div",38),t.\u0275\u0275listener("cdkDropListDropped",function(o){t.\u0275\u0275restoreView(a);const n=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(n.drop(o))}),t.\u0275\u0275template(11,ut,5,3,"div",39),t.\u0275\u0275elementEnd()()()()(),t.\u0275\u0275elementContainerEnd()}if(2&i){const a=r.$implicit,e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(5),t.\u0275\u0275property("ngIf",1!=e.currentUser.RoleType&&2!=e.currentUser.RoleType),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(1===e.currentUser.RoleType||2===e.currentUser.RoleType)&&e.permission>1),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(1===e.currentUser.RoleType||2===e.currentUser.RoleType)&&e.permission>1),t.\u0275\u0275advance(3),t.\u0275\u0275property("cdkDropListData",a.data),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",a.data)}}const _t=function(i){return{"main-content":i}};let ht=(()=>{const r=class{constructor(e,o,n,s,d){this.instituteService=e,this.toasterService=o,this.instituteCountryService=n,this.matDialog=s,this.authService=d,this.flagdisabled=!1,this.flowListData=[],this.regionFilter="",this.onDestroy$=new C.Subject,this.currentUser=this.authService.currentUserSubject.getValue()}ngOnInit(){2===this.currentUser.RoleType&&(this.InstitutionId=this.currentUser.RefId,this.permission=this.authService.checkPermission(b.vf.Application_Flow)),this.instituteCountryService.list(this.InstitutionId).pipe((0,p.takeUntil)(this.onDestroy$)).subscribe(e=>{this.countryList=e}
1),this.getStatus()}get(){this.flowListData=[],this.removeUsedStatus(),null!=this.countryId&&this.instituteService.getFlow(this.InstitutionId,this.countryId).pipe((0,p.takeUntil)(this.onDestroy$)).subscribe(e=>{e.length>0?(this.flowListData=e,this.removeUsedStatus()):this.statusList.length>0&&(this.flowListData=[{FlowTitle:"Untitled 1",data:[]}])})}removeUsedStatus(){var e=[];this.flowListData&&this.flowListData.forEach(o=>{o.data.forEach(n=>{e.push(n.value)})}),this.statusList=e.length>0?this.mainStatusList.filter(o=>!e.includes(+o.value)):Object.assign(this.statusList,this.mainStatusList)}getStatus(){this.statusList=[],this.mainStatusList=[],this.instituteService.applicationStatus(this.InstitutionId,0).pipe((0,p.takeUntil)(this.onDestroy$)).subscribe(e=>{this.mainStatusList=e,this.removeUsedStatus()})}drop(e){e.previousContainer===e.container?(0,h.bA)(e.container.data,e.previousIndex,e.currentIndex):(0,h.EA)(e.previousContainer.data,e.container.data,e.previousIndex,e.currentIndex)}addFlow(){this.flowListData.push({FlowTitle:"Untitled "+(this.flowListData.length+1),data:[]})}removeFlow(e){this.statusList=this.statusList.concat(this.flowListData[e].data).sort((o,n)=>o.value>n.value?1:-1),this.flowListData.splice(e,1)}update(){var e=[];this.flagdisabled=!0,this.flowListData.forEach((o,n)=>{o.data.forEach((s,d)=>{e.push({FlowName:n+1,StepId:s.value,StepIndex:d,FlowTitle:o.FlowTitle})})}),e.length<=0&&e.push({FlowName:null,StepId:null,StepIndex:null,FlowTitle:null}),this.instituteService.updateFlow(this.InstitutionId,this.countryId,e).pipe((0,p.takeUntil)(this.onDestroy$)).subscribe(o=>{this.toasterService.pop("success","Application flow updated successfully."),this.flagdisabled=!1},o=>{this.flagdisabled=!1})}addStatus(){var e=[];this.flowListData&&this.flowListData.forEach(o=>{o.data.forEach(n=>{e.push(n.value)})}),this.matDialog.open(Q,{data:{InstitutionId:this.InstitutionId,Type:5,usedStatus:e}}).afterClosed().pipe((0,p.takeUntil)(this.onDestroy$)).subscribe(o=>{o&&this.getStatus()})}ngOnDestroy(){this.onDestroy$.next(),this.onDestroy$.complete()}};let i=r;return r.\u0275fac=function(o){return new(o||r)(t.\u0275\u0275directiveInject(Y.$),t.\u0275\u0275directiveInject(x.MJ),t.\u0275\u0275directiveInject(X.r),t.\u0275\u0275directiveInject(g.on),t.\u0275\u0275directiveInject(S.$))},r.\u0275cmp=t.\u0275\u0275defineComponent({type:r,selectors:[["app-application-flow"]],inputs:{InstitutionId:"InstitutionId",permission:"permission"},decls:25,vars:22,consts:[[3,"ngClass"],[1,"card"],[1,"card-body"],["cdkDropListGroup","",1,"container-fluid"],[1,"row"],[1,"col-md-6"],["matInput","","placeholder","Region","name","countryId",3,"ngModel","selectionChange","ngModelChange"],["CountryId","ngModel"],["name","regionFilter",3,"ngModel","placeholderL
1abel","noEntriesFoundLabel","ngModelChange"],[3,"value",4,"ngIf"],[3,"value",4,"ngFor","ngForOf","ngForTrackByProperty"],[1,"col-md-6","text-right"],["mat-raised-button","","class","btn btn-danger",3,"hidden","disabled","click",4,"ngIf"],[1,"row",3,"hidden"],["class","col-sm-3",4,"ngIf"],[1,"table-responsive"],[1,"table"],[4,"ngFor","ngForOf"],[3,"value"],["mat-raised-button","",1,"btn","btn-danger",3,"hidden","disabled","click"],[1,"col-sm-3"],[1,"card-header","in-flex"],[1,"col-8","pull-left","card-title"],[1,"col-4","pull-right","card-action","text-center","p-0"],["mat-icon-button","","class","btn btn-link btn-info add m-0 steps-edtbtn","data-toggle","tooltip","title","Edit",3,"click",4,"ngIf"],[1,"card-body","card-body-flow"],[1,"flow-container",2,"max-height","calc(50vh)","overflow-y","scroll"],["cdkDropList","",1,"flow-list",3,"cdkDropListData","cdkDropListDropped"],["step","cdkDropList"],["cdkDrag","","class","flow-box",4,"ngFor","ngForOf"],["mat-icon-button","","data-toggle","tooltip","title","Edit",1,"btn","btn-link","btn-info","add","m-0","steps-edtbtn",3,"click"],["cdkDrag","",1,"flow-box"],[1,"py-0",2,"width","250px","max-width","250px"],[1,"card",2,"width","250px","max-width","250px"],[1,"col-8","card-title","pull-left"],[4,"ngIf"],["label","Title","placeholder","Enter Title",3,"value","valueChange",4,"ngIf"],["class","col-4 pull-right card-action text-center","style","display: contents;",4,"ngIf"],["cdkDropList","","id","flowItem.name",1,"flow-list","border","border-primary",3,"cdkDropListData","cdkDropListDropped"],["class","flow-box border border-primary  justify-content-left mat-elevation-z8","cdkDrag","",3,"cdkDragDisabled",4,"ngFor","ngForOf"],["label","Title","placeholder","Enter Title",3,"value","valueChange"],[1,"col-4","pull-right","card-action","text-center",2,"display","contents"],["mat-icon-button","","class","btn btn-link btn-danger cust-btn steps-edtbtn","data-toggle","tooltip","title","Delete",3,"click",4,"ngIf"],["mat-icon-button","","data-toggle","tooltip","title","Add",1,"btn","btn-link","btn-info","add","cust-btn","steps-edtbtn",3,"click"],["mat-icon-button","","data-toggle","tooltip","title","Delete",1,"btn","btn-link","btn-danger","cust-btn","steps-edtbtn",3,"click"],["cdkDrag","",1,"flow-box","border","border-primary","justify-content-left","mat-elevation-z8",3,"cdkDragDisabled"],[1,"text-info"]],template:function(o,n){1&o&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"mat-form-field")(7,"mat-label"),t.\u0275\u0275text(8,"Region"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(9,"mat-select",6,7),t.\u0275\u0275listener("selectionChange",function(){return n.get()})("ngModelChange",function(d){return n.countryId=d}),t.\u0275\u0275elementStart(11,"mat-option")(12,"ngx-mat-select-search",8),t.\u0275\u0275listener("ngModelChange",function(d){return n.regionFilter=d}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(13,ot,2,1,"mat-option",9),t.\u0275\u0275template(14,it,2,2,"mat-option",10),t.\u0275\u0275pipe(15,"stringFilterBy"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(16,"div",11),t.\u0275\u0275template(17,at,2,2,"button",12),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(18,"div",13),t.\u0275\u0275template(19,st,12,3,"div",14),t.\u0275\u0275elementStart(20,"div")(21,"div",15)(22,"table",16)(23,"tr"),t.\u0275\u0275template(24,gt,12,5,"ng-container",17),t.\u0275\u0275elementEnd()()()()()()()()()),2&o&&(t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(20,_t,2===n.currentUser.RoleType)),t.\u0275\u0275advance(9),t.\u0275\u0275property("ngModel",n.countryId),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngModel",n.regionFilter)("placeholderL
1abel","Search...")("noEntriesFoundLabel","Not found"),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==n.countryList?null:n.countryList.length)>0),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind3(15,16,n.countryList,n.regionFilter,"CountryName"))("ngForTrackByProperty","CountryId"),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",n.permission>1),t.\u0275\u0275advance(1),t.\u0275\u0275property("hidden",void 0===n.countryId),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(1===n.currentUser.RoleType||2===n.currentUser.RoleType)&&n.permission>1),t.\u0275\u0275advance(1),t.\u0275\u0275classProp("col-sm-9",(1===n.currentUser.RoleType||2===n.currentUser.RoleType)&&n.permission>1)("col-12",!((1===n.currentUser.RoleType||2===n.currentUser.RoleType)&&n.permission>1)),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngForOf",n.flowListData))},dependencies:[_.NgClass,_.NgForOf,_.NgIf,c.JJ,c.On,q,I.Hw,f.v_,f.$V,w.x8,v.CK,h.Wj,h.Fd,h.Zt,tt.nu,et.e,P.eB,U.S,nt.L],styles:[".flow-container[_ngcontent-%COMP%]{width:400px;max-width:100%;display:inline-block;vertical-align:top}.flow-list[_ngcontent-%COMP%]{border:solid 1px #ccc;min-height:60px;background:white;border-radius:4px;overflow:hidden;display:block}.flow-box[_ngcontent-%COMP%]{padding:10px;border-bottom:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;box-sizing:border-box;cursor:move;background:white;font-size:14px}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.flow-box[_ngcontent-%COMP%]:last-child{border:none}.flow-list.cdk-drop-list-dragging[_ngcontent-%COMP%]   .flow-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.table[_ngcontent-%COMP%]   .add[_ngcontent-%COMP%], .card-deck[_ngcontent-%COMP%]   .add[_ngcontent-%COMP%]{display:none}.table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:last-child   .add[_ngcontent-%COMP%], .card-deck[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]:last-child   .add[_ngcontent-%COMP%]{display:inline}.card-body-flow[_ngcontent-%COMP%]{padding:.9375rem 10px}.steps-edtbtn[_ngcontent-%COMP%]{padding:0rem .75rem!important;margin-top:-10px!important}"]}),i})()},407:(R,E,l)=>{l.d(E,{A:()=>O});var h=l(36895),g=l(24006),C=l(73555),p=l(33231),D=l(28034),b=l(83574),t=l(97392),T=l(46289),F=l(29792),M=l(49095),x=l(1319),S=l(99818),_=l(18455),c=l(29203),I=l(51291),f=l(77987),w=l(86805),v=l(94650);let O=(()=>{const u=class{};let m=u;return u.\u0275fac=function(A){return new(A||u)},u.\u0275mod=v.\u0275\u0275defineNgModule({type:u}),u.\u0275inj=v.\u0275\u0275defineInjector({imports:[h.CommonModule,f.l,g.u5,F.F,t.Ps,T.uw,C._t,p.Co,D.n,b.N,M.yj,x.x,S.yu,_.wp,c.x4,I.h,w.M]}),m})()}}]);

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.