1"use strict";(self.webpackChunkevoportal=self.webpackChunkevoportal||[]).push([[438],{20438:(It,P,l)=>{l.r(P),l.d(P,{EvoOngoingMonitoringModule:()=>Mt});var v=l(69808),s=l(22327),m=l(64447),Y=l(93310),w=l(18505),t=l(5e3),_=l(49727),T=l(42378),D=l(18392),C=l(69614),j=l(81276),k=l(71764);let S=(()=>{class o extends s.Cfb{constructor(){super(new s.d8C),this.rangeTime$=new s.Cfb(0)}setRangeTime(e){this.rangeTime$.setValue(e)}get rangeTime(){return this.rangeTime$.value}updateValue(e){const n=(0,j.p$)(this.value);Object.assign(n,e),this.setValue(n)}reset(){this.setValue(new s.d8C)}getSearchRangeTime(){const e=k();switch(this.rangeTime){case 0:return{createdAtEnd:this.formatData(e),createdAtStart:this.formatData(e.subtract(1,"w"))};case 1:return{createdAtEnd:this.formatData(e),createdAtStart:this.formatData(e.subtract(1,"M"))};case 2:return{createdAtEnd:this.formatData(e),createdAtStart:this.formatData(e.subtract(3,"M"))};default:return{createdAtEnd:"",createdAtStart:""}}}formatData(e){return e.format("YYYY-MM-DDTHH:mm:ssZ")}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac}),o})();var f=l(70655),N=l(62843),d=l(54004),A=l(70262),X=l(40520);class E{constructor(a,e,n){this.http=a,this.filterPaneService=e,this.publicService=n}getList(a,e){return this.http.get(`${s.oHM}/alerttotal?${e}`).pipe((0,d.U)(i=>i),(0,A.K)(i=>(0,N._)(i)))}getSirenTypeList(a,e){const n=location.pathname.split("/");return this.http.get(`${s.oHM}/alerttype?${e}&participantID=${n[n.length-2]}&riskRoleType=${n[n.length-1]}`).pipe((0,d.U)(p=>p),(0,A.K)(p=>(0,N._)(p)))}getSirenTypeDetailList(a,e){const n=location.pathname.replace(/\$/g," ").split("/");return this.http.get(`${s.oHM}/alertrecords?${e}&participantID=${n[n.length-4]}&riskRoleType=${n[n.length-3]}&target=${n[n.length-2]}&alertType=${n[n.length-1]}`).pipe((0,d.U)(g=>g),(0,A.K)(g=>(0,N._)(g)))}getOne(a){return this.http.get(`${s.oHM}/rop/${a}`,{withCredentials:!0}).pipe((0,d.U)(n=>n),(0,A.K)(n=>(0,N._)(n)))}read(a){return this.http.post(`${s.oHM}/alertrecords/read`,a)}create(a){return this.http.post(`${s.oHM}/rop`,a)}update(a,e){return this.http.put(`${s.oHM}/rop/${a}`,e).pipe((0,d.U)(i=>i),(0,A.K)(i=>(0,N._)(i)))}getBusinessAreas(){return this.http.get(`${s.oHM}/camel/public/businessArea`).pipe((0,d.U)(e=>Object.keys(e).map(n=>({label:n,value:n})).sort(s.qhz)))}freeze(a){const{ropID:e,nodeID:n}=a.baseInfo,{version:i}=a;return this.http.put(`${s.oHM}/rop/${e}/freeze`,{nodeID:n,version:i})}unfreeze(a){const{ropID:e,nodeID:n}=a.baseInfo,{version:i}=a;return this.http.put(`${s.oHM}/rop/${e}/unfreeze`,{nodeID:n,version:i})}initFilter(){const a=[{name:"participantID",label:"GENERAL.FIELD.PARTICIPANT",type:"fixed",value:"",applied:!1,controlType:s.yuL.newAsyncSelection,level:s.VKc.participant},{name:"riskRoleType",label:"RISK_MANAGEMENT.FIELD.ROLE_TYPE",type:"fixed",value:"",applied:!1,controlType:s.yuL.selection,options:s.gwL}];this.publicService.addNodeIDFilter("fixed",a),this.filterPaneService.cacheDataWithSetFilter(a)}initFilterForSirenType(){const a=[];this.publicService.addNodeIDFilter("fixed",a),this.filterPaneService.cacheDataWithSetFilter(a)}initFilterForSirenTypeDetail(){const a=[{name:"evonetOrderNumber",label:"GENERAL.FIELD.EVONET_NUMBER_ORDER",type:"fixed",value:"",applied:!1,controlType:s.yuL.input}];this.publicService.addNodeIDFilter("fixed",a),this.filterPaneService.cacheDataWithSetFilter(a)}}E.\u0275fac=function(a){return new(a||E)(t.LFG(X.eN),t.LFG(s.tg5),t.LFG(s.OT))},E.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac}),(0,f.gn)([(0,s.vCv)(),(0,s.hKV)()],E.prototype,"getList",null),(0,f.gn)([(0,s.vCv)(),(0,s.hKV)()],E.prototype,"getSirenTypeList",null),(0,f.gn)([(0,s.vCv)(),(0,s.hKV)()],E.prototype,"getSirenTypeDetailList",null);var x=l(63640),y=l(86220),F=l(63102),u=l(78054),R=l(93075),G=l(36709),z=l(36011);l(54283);const q=["tplEvoTable"],tt=["tplButton"];function et(o,a){if(1&o&&t._UZ(0,"nz-option",9),2&o){const e=a.$implicit;t.Q6J("nzLabel",e.label)("nzValue",e.value)}}function nt(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"div",6)(1,"nz-select",7),t.NdJ("ngModelChange",function(i){return t.CHM(e),t.oxw().handleRangeTimeChange(i)}),t.ynx(2),t.YNc(3,et,1,2,"nz-option",8),t.BQk(),t.qZA()()}if(2&o){const e=t.oxw();
1t.xp6(1),t.Q6J("nzAllowClear",!1)("ngModel",e.rangeTime),t.xp6(2),t.Q6J("ngForOf",e.rangeTimeOptions)}}function it(o,a){if(1&o&&t._UZ(0,"app-st-custom-buttons",10),2&o){const e=a.$implicit,n=t.oxw();t.Q6J("buttons",n.customButtons)("rowData",e)}}let H=(()=>{class o extends s.RQ8{constructor(e,n,i,r,c,p,h,g,I,L,O){super(e,n,r,i,c,g),this.msg=e,this.i18n=n,this.router=i,this.route=r,this.settings=c,this.aclService=p,this.publicService=h,this.cacheService=g,this.dataService=I,this.monitoringService=L,this.modal=O,this.data=[],this.columns=[],this.customButtons=[],this.rangeTime=this.dataService.rangeTime,this.rangeTimeOptions=s.oEA}ngOnInit(){this.initColumns(),this.monitoringService.initFilter()}initColumns(){const e=this.aclService.canAbility("api.post.evonet.read");this.columns=[{title:{text:"GENERAL.FIELD.PARTICIPANT_ID",i18n:"GENERAL.FIELD.PARTICIPANT_ID"},index:"participantID",width:"200px",fixed:"left"},{title:{text:"RISK_MANAGEMENT.FIELD.ROLE_TYPE",i18n:"RISK_MANAGEMENT.FIELD.ROLE_TYPE"},index:"roleType",width:"150px",format:n=>s.Q1Z[n.roleType]},{title:{text:"RISK_MANAGEMENT.FIELD.UNREAD_RECORDS",i18n:"RISK_MANAGEMENT.FIELD.UNREAD_RECORDS"},index:"unReadRecord",width:"150px"},{type:"link",title:{text:"RISK_MANAGEMENT.FIELD.TOTAL_RECORDS",i18n:"RISK_MANAGEMENT.FIELD.TOTAL_RECORDS"},index:"records",width:"150px",click:this.goDetail.bind(this)},{title:{text:"GENERAL.FIELD.OPERATION",i18n:"GENERAL.FIELD.OPERATION"},width:"100px",fixed:"right",index:"operation",className:"text-center",render:this.tplButton,iif:()=>e}],this.customButtons=[{text:s.ojf.READ,iconfont:"icon-read",click:this.readDialog.bind(this),iif:n=>(0,Y.e9)(n.unReadRecord)&&n.unReadRecord>0},{text:s.ojf.UNREAD,iconfont:"icon-unread",click:()=>{},iif:n=>0===n.unReadRecord}]}handleRangeTimeChange(e){this.dataService.setRangeTime(e),this.queryTableDataWithParams()}readDialog({allIDs:e=[]}){const n=e.filter(i=>"read"!==i.status).map(i=>i.id);this.modal.confirm({nzTitle:this.i18n.fanyi("GENERAL.NOTIFICATION.CLEAR_THE_UNREAD_RECORDS"),nzClassName:"module-confirm-wrap",nzOkText:this.i18n.fanyi("BTN.CONFIRM"),nzOnOk:()=>this.monitoringService.read({allIDs:n}).pipe((0,w.b)(()=>{var i,r;return null===(r=null===(i=this.tplEvoTable)||void 0===i?void 0:i.st)||void 0===r?void 0:r.reload()})).toPromise()})}goDetail(e){const{participantID:n,roleType:i}=e;this.router.navigate([`../siren-type-list/${n}/${i}`],{relativeTo:this.route})}queryTableDataWithParams(){this.loading||(this.loading=!0,this.dealWithCustomParams(),this.monitoringService.getList(this.params).subscribe(this.renderList.bind(this),this.getListError.bind(this)))}dealWithCustomParams(){const e=this.dataService.getSearchRangeTime();this.params=Object.assign(Object.assign({},this.params),e)}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(_.dD),t.Y36(m.Oi),t.Y36(T.F0),t.Y36(T.gz),t.Y36(m.gb),t.Y36(D._8),t.Y36(s.OT),t.Y36(C.Q),t.Y36(S),t.Y36(E),t.Y36(x.Sf))},o.\u0275cmp=t.Xpm({type:o,selectors:[["evo-ongoing-monitoring-list"]],viewQuery:function(e,n){if(1&e&&(t.Gf(q,7),t.Gf(tt,7)),2&e){let i;t.iGM(i=t.CRH())&&(n.tplEvoTable=i.first),t.iGM(i=t.CRH())&&(n.tplButton=i.first)}},features:[t.qOj],decls:8,vars:11,consts:[[3,"iconfont"],[3,"showCreateBtn","showExportBtn","customButton"],["custom",""],[3,"data","columns","ps","pi","page","total","loading","change"],["tplEvoTable",""],["tplButton",""],[1,"range-time-custom"],[3,"nzAllowClear","ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf"],[3,"nzLabel","nzValue"],[3,"buttons","rowData"]],template:function(e,n){if(1&e&&(t._UZ(0,"app-content-header",0),t.TgZ(1,"evo-action-pane",1),t.YNc(2,nt,4,3,"ng-template",null,2,t.W1O),t.qZA(),t.TgZ(4,"evo-table",3,4),t.NdJ("change",function(r){return n.onChange(r)}),t.YNc(6,it,1,2,"ng-template",null,5,t.W1O),t.qZA()),2&e){const i=t.MAs(3);t.Q6J("iconfont","icon-back-grey"),t.xp6(1),t.Q6J("showCreateBtn",!1)("showExportBtn",!1)("customButton",i),t.xp6(3),t.Q6J("data",n.data)("columns",n.columns)("ps",n.ps)("pi",n.pi)("page",n.stPage)("total",n.total)("loading",n.loading)}},directives:[y.e,F.V,u.Vq,R.JJ,R.On,v.sg,u.Ip,G.h,z.c],styles:[".range-time-custom[_ngcontent-%COMP%]{width:280px;margin-left:20px}.range-time-custom[_ngcontent-%COMP%] > nz-select[_ngcontent-%COMP%]{width:100%}"]}),o})();const K=[{title:{text:"GENERAL.FIELD.EVONET_NUMBER_ORDER",i18n:"GENERAL.FIELD.EVONET_NUMBER_ORDER"},index:"evonetOrderNumber",width:"200px",fixed:"left"},{title:{text:"GENERAL.FIELD.TIME",i18n:"GENERAL.FIELD.TIME"},index:"createTime",width:"150px",type:"date",dateFormat:"yyyy-MM-dd HH:mm"}],B=[...K,{title:{text:"GENERAL.FIELD.MERCHANT_ID",i18n:"GENERAL.FIELD.MERCHANT_ID"},index:"targetID",width:"200px"},{title:{text:"GENERAL.FIELD.MERCHANT_NAME",i18n:"GENERAL.FIELD.MERCHANT_NAME"},index:"storeName",width:"180px"},{title:{text:"RISK_MANAGEMENT.FIELD.MCC",i18n:"RISK_MANAGEMENT.FIELD.MCC"},index:"mcc",width:"150px"},{title:{text:"CONFIGURATIONS.CURRENCY.FIELD.CURRENCY",i18n:"CONFIGURATIONS.CURRENCY.FIELD.CURRENCY"},index:"transCurrency",width:"200px"},{title:{text:"RISK_MANAGEMENT.FIELD.TRANS_TYPE",i18n:"RISK_MANAGEMENT.FIELD.TRANS_TYPE"},index:"transType",width:"180px"},{title:{text:"GENERAL.FIELD.TRANS_AMOUNT",i18n:"GENERAL.FIELD.TRANS_AMOUNT"},index:"transAmount",width:"150px"}],$=[...K,{title:{text:"RISK_MANAGEMENT.FIELD.USER_REFERENCE",i18n:"RISK_MANAGEMENT.FIELD.USER_REFERENCE"},index:"extUserID",width:"150px"},{title:{text:"CONFIGURATIONS.CURRENCY.FIELD.CURRENCY",i18n:"CONFIGURATIONS.CURRENCY.FIELD.CURRENCY"},index:"transCurrency",width:"150px"}],M=[...$,{title:{text:"RISK_MANAGEMENT.FIELD.TRANS_TYPE",i18n:"RISK_MANAGEMENT.FIELD.TRANS_TYPE"},index:"transType",width:"150px"},{title:{text:"GENERAL.FIELD.TRANS_AMOUNT",i18n:"GENERAL.FIELD.TRANS_AMOUNT"},index:"transAmount",width:"150px"}],U=[...M,{title:{text:"GENERAL.FIELD.THRESHOLD_TYPE",i18n:"GENERAL.FIELD.THRESHOLD_TYPE"},index:"thresholdType",width:"150px"},{title:{text:"RISK_MANAGEMENT.FIELD.THRESHOLD",i18n:"RISK_MANAGEMENT.FIELD.THRESHOLD"},index:"threshold",width:"150px"},{title:{text:"RISK_MANAGEMENT.FIELD.LIMIT_TYPE",i18n:"RISK_MANAGEMENT.FIELD.LIMIT_TYPE"},index:"params.limitType",width:"100px"}],Q=[...U],J=[...U],b=[...U],V={"User Over Amount Limit":{columns:Q,title:"Over Limit Amount (User)"},"Participant Over Amount Limit":{columns:J,title:"Over Limit Amount (Participant)"},"Merchant Over Amount Limit":{columns:b,title:"Over Limit Amount (Merchant)"},"User Large Amount":{columns:[...M,{title:{text:"RISK_MANAGEMENT.FIELD.AMOUNT_THRESHOLD",i18n:"RISK_MANAGEMENT.FIELD.AMOUNT_THRESHOLD"},index:"params.amountThreshold",width:"150px"}],title:"Large Amount (User)"},"User Continuous Trans":{columns:[...M,{title:{text:"RISK_MANAGEMENT.FIELD.PERIOD",i18n:"RISK_MANAGEMENT.FIELD.PERIOD"},index:"params.period",width:"150px"},{title:{text:"GENERAL.FIELD.THRESHOLD_TYPE",i18n:"GENERAL.FIELD.THRESHOLD_TYPE"},index:"params.thresholdType",width:"150px"},{title:{text:"RISK_MANAGEMENT.FIELD.AMOUNT_THRESHOLD",i18n:"RISK_MANAGEMENT.FIELD.AMOUNT_THRESHOLD"},index:"params.amountThreshold",width:"150px"},{title:{text:"RISK_MANAGEMENT.FIELD.ACTION",i18n:"RISK_MANAGEMENT.FIELD.ACTION"},index:"params.action",width:"100px"}],title:"Continuous Trans (User)"},"Participant Continuous Trans":{columns:[...M,{title:{text:"RISK_MANAGEMENT.FIELD.PERIOD",i18n:"RISK_MANAGEMENT.FIELD.PERIOD"},index:"params.period",width:"150px"},{title:{text:"GENERAL.FIELD.THRESHOLD_TYPE",i18n:"GENERAL.FIELD.THRESHOLD_TYPE"},index:"params.thresholdType",width:"150px"},{title:{text:"RISK_MANAGEMENT.FIELD.AMOUNT_THRESHOLD",i18n:"RISK_MANAGEMENT.FIELD.AMOUNT_THRESHOLD"},index:"params.amountThreshold",width:"150px"},{title:{text:"RISK_MANAGEMENT.FIELD.ACTION",i18n:"RISK_MANAGEMENT.FIELD.ACTION"},index:"params.action",width:"100px"}],title:"Continuous Trans (Participant)"},"Merchant High Refund Rate":{columns:[...$,{title:{text:"RISK_MANAGEMENT.FIELD.TRANS_TYPE",i18n:"RISK_MANAGEMENT.FIELD.TRANS_TYPE"},index:"transType",width:"150px"},{title:{text:"GENERAL.FIELD.TRANS_AMOUNT",i18n:"GENERAL.FIELD.TRANS_AMOUNT"},index:"transAmount",width:"150px"},{title:{text:"RISK_MANAGEMENT.FIELD.THRESHOLD",i18n:"RISK_MANAGEMENT.FIELD.THRESHOLD"},index:"params.threshold",width:"150px"}],title:"High Refund Rate"},"Banned Merchant":{columns:[...B],title:"Banned-MCC Merchant"},"User Blacklist":{columns:[...M],title:"Blacklist (User)"},"Merchant Blacklist":{columns:[...B.filter(o=>"evonetOrderNumber"!==o.index)],title:"Blacklist (Merchant)"},"User Over Count Limit":{columns:Q,title:"Over Limit Count (User)"},"Participant Over Count Limit":{columns:J,title:"Over Limit Count (Participant)"},"Merchant Over Count Limit":{columns:b,title:"Over Limit Count (Merchant)"},"Merchant Unusual TransactionTime":{columns:b,title:"Merchant Unusual Transaction Time (Merchant)"}},Et=["tplEvoTable"];function gt(o,a){if(1&o&&t._UZ(0,"nz-option",8),2&o){const e=a.$implicit;t.Q6J("nzLabel",e.label)("nzValue",e.value)}}function Tt(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"div",5)(1,"nz-select",6),t.NdJ("ngModelChange",function(i){return t.CHM(e),t.oxw().handleRangeTimeChange(i)}),t.ynx(2),t.YNc(3,gt,1,2,"nz-option",7),t.BQk(),t.qZA()()}if(2&o){const e=t.oxw();
1t.xp6(1),t.Q6J("nzAllowClear",!1)("ngModel",e.rangeTime),t.xp6(2),t.Q6J("ngForOf",e.rangeTimeOptions)}}let Z=(()=>{class o extends s.RQ8{constructor(e,n,i,r,c,p,h,g,I,L,O){super(e,n,r,i,c,g),this.msg=e,this.i18n=n,this.router=i,this.route=r,this.settings=c,this.aclService=p,this.publicService=h,this.cacheService=g,this.dataService=I,this.monitoringService=L,this.modal=O,this.data=[],this.columns=[],this.customButtons=[],this.rangeTime=this.dataService.rangeTime,this.rangeTimeOptions=s.oEA}ngOnInit(){var e;this.alertType=this.route.snapshot.params.alertType,this.alertType=null===(e=this.alertType)||void 0===e?void 0:e.replace(/\$/g," "),this.initColumns(),this.monitoringService.initFilterForSirenTypeDetail()}handleRangeTimeChange(e){this.dataService.setRangeTime(e),this.queryTableDataWithParams()}initColumns(){this.columns=[...V[this.alertType].columns]}goDetail(e){const{ropID:n}=e.baseInfo||{};this.router.navigate([`../${n}`],{relativeTo:this.route})}queryTableDataWithParams(){this.loading||(this.loading=!0,this.dealWithCustomParams(),this.monitoringService.getSirenTypeDetailList(this.params).subscribe(this.renderList.bind(this),this.getListError.bind(this)))}dealWithCustomParams(){const e=this.dataService.getSearchRangeTime();this.params=Object.assign(Object.assign({},this.params),e)}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(_.dD),t.Y36(m.Oi),t.Y36(T.F0),t.Y36(T.gz),t.Y36(m.gb),t.Y36(D._8),t.Y36(s.OT),t.Y36(C.Q),t.Y36(S),t.Y36(E),t.Y36(x.Sf))},o.\u0275cmp=t.Xpm({type:o,selectors:[["evo-siren-type-detail-list"]],viewQuery:function(e,n){if(1&e&&t.Gf(Et,7),2&e){let i;t.iGM(i=t.CRH())&&(n.tplEvoTable=i.first)}},features:[t.qOj],decls:6,vars:11,consts:[[3,"iconfont"],[3,"showCreateBtn","showExportBtn","customButton"],["custom",""],[3,"data","columns","ps","pi","page","total","loading","change"],["tplEvoTable",""],[1,"range-time-custom"],[3,"nzAllowClear","ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf"],[3,"nzLabel","nzValue"]],template:function(e,n){if(1&e&&(t._UZ(0,"app-content-header",0),t.TgZ(1,"evo-action-pane",1),t.YNc(2,Tt,4,3,"ng-template",null,2,t.W1O),t.qZA(),t.TgZ(4,"evo-table",3,4),t.NdJ("change",function(r){return n.onChange(r)}),t.qZA()),2&e){const i=t.MAs(3);t.Q6J("iconfont","icon-back-grey"),t.xp6(1),t.Q6J("showCreateBtn",!1)("showExportBtn",!1)("customButton",i),t.xp6(3),t.Q6J("data",n.data)("columns",n.columns)("ps",n.ps)("pi",n.pi)("page",n.stPage)("total",n.total)("loading",n.loading)}},directives:[y.e,F.V,u.Vq,R.JJ,R.On,v.sg,u.Ip,G.h],styles:[".range-time-custom[_ngcontent-%COMP%]{width:280px;margin-left:20px}.range-time-custom[_ngcontent-%COMP%] > nz-select[_ngcontent-%COMP%]{width:100%}"]}),o})();const ht=["tplEvoTable"],mt=["tplButton"];function dt(o,a){if(1&o&&t._UZ(0,"nz-option",9),2&o){const e=a.$implicit;t.Q6J("nzLabel",e.label)("nzValue",e.value)}}function ut(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"div",6)(1,"nz-select",7),t.NdJ("ngModelChange",function(i){return t.CHM(e),t.oxw().handleRangeTimeChange(i)}),t.ynx(2),t.YNc(3,dt,1,2,"nz-option",8),t.BQk(),t.qZA()()}if(2&o){const e=t.oxw();
1t.xp6(1),t.Q6J("nzAllowClear",!1)("ngModel",e.rangeTime),t.xp6(2),t.Q6J("ngForOf",e.rangeTimeOptions)}}function Rt(o,a){if(1&o&&t._UZ(0,"app-st-custom-buttons",10),2&o){const e=a.$implicit,n=t.oxw();t.Q6J("buttons",n.customButtons)("rowData",e)}}const Nt=[{path:"",redirectTo:"list",pathMatch:"full"},{path:"list",component:H,canActivate:[s.X5x,s.JQ4],data:{titleI18n:"MENU.RISK.MONITORINGS",reuse:!0}},{path:"siren-type-list/:participantID/:riskRoleType",component:(()=>{class o extends s.RQ8{constructor(e,n,i,r,c,p,h,g,I,L,O){super(e,n,r,i,c,g),this.msg=e,this.i18n=n,this.router=i,this.route=r,this.settings=c,this.aclService=p,this.publicService=h,this.cacheService=g,this.dataService=I,this.monitoringService=L,this.modal=O,this.data=[],this.columns=[],this.customButtons=[],this.rangeTime=this.dataService.rangeTime,this.rangeTimeOptions=s.oEA}ngOnInit(){this.initColumns(),this.monitoringService.initFilterForSirenType()}readDialog({allIDs:e=[]}){const n=e.filter(i=>"read"!==i.status).map(i=>i.id);this.modal.confirm({nzTitle:this.i18n.fanyi("GENERAL.NOTIFICATION.CLEAR_THE_UNREAD_RECORDS"),nzClassName:"module-confirm-wrap",nzOkText:this.i18n.fanyi("BTN.CONFIRM"),nzOnOk:()=>this.monitoringService.read({allIDs:n}).pipe((0,w.b)(()=>{var i,r;return null===(r=null===(i=this.tplEvoTable)||void 0===i?void 0:i.st)||void 0===r?void 0:r.reload()})).toPromise()})}initColumns(){const e=this.aclService.canAbility("api.post.evonet.read");this.columns=[{title:{text:"RISK_MANAGEMENT.FIELD.SIREN_TYPE",i18n:"RISK_MANAGEMENT.FIELD.SIREN_TYPE"},index:"alertType",width:"200px",fixed:"left",format:(n,i)=>{const r=V[n.alertType];return(null==r?void 0:r.title)||"-"}},{title:{text:"RISK_MANAGEMENT.FIELD.UNREAD_RECORDS",i18n:"RISK_MANAGEMENT.FIELD.UNREAD_RECORDS"},index:"unReadRecord",width:"150px"},{type:"link",title:{text:"RISK_MANAGEMENT.FIELD.TOTAL_RECORDS",i18n:"RISK_MANAGEMENT.FIELD.TOTAL_RECORDS"},index:"records",width:"150px",click:this.goDetail.bind(this)},{title:{text:"GENERAL.FIELD.OPERATION",i18n:"GENERAL.FIELD.OPERATION"},width:"100px",fixed:"right",index:"operation",className:"text-center",render:this.tplButton,iif:()=>e}],this.customButtons=[{text:s.ojf.READ,iconfont:"icon-read",click:this.readDialog.bind(this),iif:n=>(0,Y.e9)(n.unReadRecord)&&n.unReadRecord>0},{text:s.ojf.UNREAD,iconfont:"icon-unread",click:()=>{},iif:n=>0===n.unReadRecord}]}handleRangeTimeChange(e){this.dataService.setRangeTime(e),this.queryTableDataWithParams()}goDetail(e){const{participantID:n,roleType:i,target:r,alertType:c}=e,p=`${n}/${i}/${r}/${c}`.replace(/\ /g,"$");this.router.navigate([`../../../siren-type-detail-list/${p}`],{relativeTo:this.route})}queryTableDataWithParams(){this.loading||(this.loading=!0,this.dealWithCustomParams(),this.monitoringService.getSirenTypeList(this.params).subscribe(this.renderList.bind(this),this.getListError.bind(this)))}dealWithCustomParams(){const e=this.dataService.getSearchRangeTime();this.params=Object.assign(Object.assign({},this.params),e)}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(_.dD),t.Y36(m.Oi),t.Y36(T.F0),t.Y36(T.gz),t.Y36(m.gb),t.Y36(D._8),t.Y36(s.OT),t.Y36(C.Q),t.Y36(S),t.Y36(E),t.Y36(x.Sf))},o.\u0275cmp=t.Xpm({type:o,selectors:[["evo-siren-type-list"]],viewQuery:function(e,n){if(1&e&&(t.Gf(ht,7),t.Gf(mt,7)),2&e){let i;t.iGM(i=t.CRH())&&(n.tplEvoTable=i.first),t.iGM(i=t.CRH())&&(n.tplButton=i.first)}},features:[t.qOj],decls:8,vars:11,consts:[[3,"iconfont"],[3,"showCreateBtn","showExportBtn","customButton"],["custom",""],[3,"data","columns","ps","pi","page","total","loading","change"],["tplEvoTable",""],["tplButton",""],[1,"range-time-custom"],[3,"nzAllowClear","ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf"],[3,"nzLabel","nzValue"],[3,"buttons","rowData"]],template:function(e,n){if(1&e&&(t._UZ(0,"app-content-header",0),t.TgZ(1,"evo-action-pane",1),t.YNc(2,ut,4,3,"ng-template",null,2,t.W1O),t.qZA(),t.TgZ(4,"evo-table",3,4),t.NdJ("change",function(r){return n.onChange(r)}),t.YNc(6,Rt,1,2,"ng-template",null,5,t.W1O),t.qZA()),2&e){const i=t.MAs(3);t.Q6J("iconfont","icon-back-grey"),t.xp6(1),t.Q6J("showCreateBtn",!1)("showExportBtn",!1)("customButton",i),t.xp6(3),t.Q6J("data",n.data)("columns",n.columns)("ps",n.ps)("pi",n.pi)("page",n.stPage)("total",n.total)("loading",n.loading)}},directives:[y.e,F.V,u.Vq,R.JJ,R.On,v.sg,u.Ip,G.h,z.c],styles:[".range-time-custom[_ngcontent-%COMP%]{width:280px;margin-left:20px}.range-time-custom[_ngcontent-%COMP%] > nz-select[_ngcontent-%COMP%]{width:100%}"]}),o})(),canActivate:[s.X5x,s.JQ4],data:{breadcrumb:"MENU.RISK.SIREN_TYPE_LIST",titleI18
1n:"MENU.RISK.SIREN_TYPE_LIST",reuse:!0}},{path:"siren-type-detail-list/:participantID/:riskRoleType/:target/:alertType",component:Z,canActivate:[s.X5x,s.JQ4],data:{breadcrumb:"MENU.RISK.SIREN_TYPE_DETAIL_LIST",titleI18n:"MENU.RISK.SIREN_TYPE_DETAIL_LIST",parentTitleI18n:"MENU.RISK.SIREN_TYPE_LIST",useHistoryBack:!0}}];let At=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[T.Bz.forChild(Nt)],T.Bz]}),o})(),Mt=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({providers:[E,S],imports:[[s.m81,v.ez,At]]}),o})()}}]);
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.