1import{a as nt}from"./chunk-UZBMYHRA.js";import{a as z}from"./chunk-ULWP3D4J.js";import{u as q}from"./chunk-RDTI5BBQ.js";import"./chunk-5PY5P3XS.js";import"./chunk-5B3DLXXI.js";import{g as H}from"./chunk-AZSGBKAS.js";import"./chunk-X53ZHNRC.js";import"./chunk-MGS7BXLG.js";import"./chunk-IVT7OBYK.js";import"./chunk-EZTSNBRI.js";import"./chunk-F3NU7FOJ.js";import"./chunk-5C7GYTWJ.js";import"./chunk-5F5T27GM.js";import"./chunk-GFG5VGUB.js";import"./chunk-FRI4G7S5.js";import"./chunk-SBCHSFB3.js";import"./chunk-YWMBFIJF.js";import"./chunk-XXVYWIW7.js";import"./chunk-XD2AOBJP.js";import"./chunk-XTFCV42F.js";import"./chunk-ALCBBWEC.js";import"./chunk-WGC5FAQL.js";import"./chunk-BPY474N2.js";import"./chunk-7DG6YWUG.js";import"./chunk-J2HAQKAQ.js";import"./chunk-ZJHJS3PX.js";import"./chunk-MP7WW3DY.js";import"./chunk-7NGZH4SF.js";import"./chunk-YJEFAHES.js";import"./chunk-VMENOLGN.js";import{a as V}from"./chunk-5A5NWFZT.js";import"./chunk-PEF5JTP7.js";import"./chunk-RAYZVCFA.js";import"./chunk-LRUUD2D5.js";import"./chunk-W3PMK37F.js";import"./chunk-HJMVAJEV.js";import"./chunk-MXORPPCJ.js";import"./chunk-6CKUJXMY.js";import{a as $}from"./chunk-OSTK3FMC.js";import"./chunk-OSQPX4AF.js";import"./chunk-6BIQPLYS.js";import"./chunk-JV7QCYJQ.js";import"./chunk-JL5JR3XJ.js";import"./chunk-NPGABXPR.js";import"./chunk-ZTKCJ7FE.js";import"./chunk-6D6FUOH4.js";import{a as G}from"./chunk-7JLPCUYI.js";import"./chunk-KQWBMCYF.js";import"./chunk-DS727TUG.js";import"./chunk-RA7IB6UO.js";import{K as B}from"./chunk-K62QFE3E.js";import"./chunk-LNV7YIED.js";import"./chunk-IJ37FRTJ.js";import{fa as U,h as F,i as j,j as R}from"./chunk-VPGOOYEY.js";import"./chunk-IA4EG4IX.js";import"./chunk-2NUVDZHT.js";import{C as f,g as N,q as O}from"./chunk-3M4HWUOS.js";import{$c as I,Dc as i,Ea as x,Ec as l,Fa as u,Na as v,Oa as w,Pb as m,Ub as b,Uc as P,_b as g,ac as y,bc as A,bd as L,cc as S,dc as o,de as D,ec as n,fc as M,h as et,ie as T,jc as E,mc as k,oc as _,va as C,xb as a,yb as p}from"./chunk-WVT7OCFG.js";var Q=et(nt());var W=()=>["aclData$","update"];function ot(t,d){if(t&1){let e=E();o(0,"tr",12)(1,"td"),i(2,"\xA0"),n(),o(3,"td"),i(4),I(5,"date"),n(),o(6,"td",9),i(7),n(),o(8,"td"),i(9),n(),o(10,"td"),i(11),n(),o(12,"td"),i(13),n(),o(14,"td"),i(15),n(),o(16,"td"),i(17),n(),o(18,"td"),i(19),n(),o(20,"td",13)(21,"button",14),k("click",function(){let c=v(e).$implicit,s=_(3);return w(s.downloadReport(c.id,c.node_name))}),M(22,"i",15),i(23," Download"),n()()()}if(t&2){let e=d.$implicit;a(4),l(L(5,9,e.created_at,"medium")),a(3),l(e.abuse_id?e.abuse_id:"NA"),a(2),l(e.node_name?e.node_name:"NA"),a(2),l(e.public_ip),a(2),l(e.private_ip),a(2),l(e.complaint_type),a(2),l(e.comment),a(2),l(e.complaint_status?e.complaint_status:"-"),a(),b("pbacParams",P(12,W))}}function it(t,d){if(t&1&&(o(0,"tbody"),A(1,ot,24,13,"tr",12,y),n()),t&2){let e=_(2);a(),S(e.abuseData)}}function at(t,d){if(t&1&&m(0,it,3,0,"tbody"),t&2){let e=_();g(e.loading?-1:0)}}function rt(t,d){t&1&&(o(0,"tbody")(1,"tr",16)(2,"td",17),i(3,"Currently no complaints are available. "),n()()())}function ct(t,d){if(t&1&&m(0,rt,4,0,"tbody"),t&2){let e=_();g(e.loading?-1:0)}}function lt(t,d){t&1&&(o(0,"div",11)(1,"div",18),M(2,"span",19)(3,"span",19)(4,"span",19)(5,"span",19),n()())}var J={component:"AbuseLogsComponent",feature:F.ABUSE_LOGS},X=(()=>{class t{constructor(e,r,c,s){this.nodesApi=e,this._ser=r,this.toastr=c,this.http=s,this.data={msg:"How to check abuse logs?",link:R.ABUSE_LOGS},this.abuseData=[],this.loading=!0}ngOnInit(){this._ser.getPermissions(),this.getAbuseLogsData()}getAbuseLogsData(){this.nodesApi.getApi("abuse-detail/").subscribe(e=>{this.loading=!1,this.abuseData=e.data})}downloadReport(e,r){let c=O.apiUrl+O.API_URL+"download-abuse-attachment/"+e+"/",s={responseType:"blob"};return this.http.get(c,s).subscribe(h=>{if(this.loading=!1,h.type=="text/html")this.toastr.apiError("The attachment couldn't be downloaded. Please try again or contact support.",{endpoint:"download-abuse-attachment/",method:"GET",component:J.component,feature:J.feature,responseData:h});else{let Z=new Blob([h],{type:"image/pdf"}),tt=r+"_report.pdf";(0,Q.saveAs)(Z,tt)}},h=>{this.loading=!1,this.toastr.error("There was some error in processing your request. Please try again later.")})}static{this.\u0275fac=function(r){return new(r||t)(p(B),p(j),p(U),p(N))}}static{this.\u0275cmp=x({type:t,selectors:[["app-abuse-logs"]],decls:35,vars:5,consts:[[1,"bg-white","m-3","p-3"],[1,"pb-3"],[1,"row"],[1,"col-11"],[3,"data"],[1,"pt-3"],[1,"table-shadow"],["cellspacing","0","width","100%",1,"mb-0"],[1,"thead-light"],[1,"text-center"],["appPbac","",3,"pbacParams"],[1,"text-center","py-5","position-relative"],[1,"table-row"],["appPbac","",1,"p-1",3,"pbacParams"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-download"],[1,"n
1o-data"],["colspan","9"],[1,"loading-animate"],[1,"loader-span"]],template:function(r,c){r&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4"),i(5,"Abuse Logs "),M(6,"app-help-icon",4),n()()(),o(7,"div",5)(8,"div",6)(9,"table",7)(10,"thead",8)(11,"tr")(12,"th"),i(13,"\xA0"),n(),o(14,"th"),i(15,"Date"),n(),o(16,"th",9),i(17,"Abuse ID"),n(),o(18,"th"),i(19,"Node name"),n(),o(20,"th"),i(21,"Public IP"),n(),o(22,"th"),i(23,"Private IP"),n(),o(24,"th"),i(25,"Abuse Type"),n(),o(26,"th"),i(27,"Description"),n(),o(28,"th"),i(29,"Status"),n(),o(30,"th",10),i(31,"Report Download"),n()()(),m(32,at,1,1)(33,ct,1,1),n(),m(34,lt,6,0,"div",11),n()()()()),r&2&&(a(6),b("data",c.data),a(24),b("pbacParams",P(4,W)),a(2),g(c.abuseData.length>0?32:33),a(2),g(c.loading?34:-1))},dependencies:[G,$,D],styles:['.search[_ngcontent-%COMP%]{font-family:FontAwesome,Arial;font-style:normal;font-weight:400;text-decoration:inherit}.scrollbar[_ngcontent-%COMP%]{max-height:233px;position:relative;overflow:auto}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(1), table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-child(1){width:1%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2), table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-child(2){width:7%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(3), table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-child(3){width:12%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(4), table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-child(4){width:13%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(5), table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-child(5){width:10%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(6), table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-child(6){width:12%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(7), table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-child(7){width:12%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(8), table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-child(8){width:12%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(9), table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-child(9){width:9%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(10), table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-child(10){width:10%}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{word-break:break-all}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus::-webkit-input-placeholder{color:transparent!important}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus::-moz-placeholder{color:transparent!important}table[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{vertical-align:top;width:20px;min-width:20px}table[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{display:block;position:relative;width:auto;height:auto;margin-top:5px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}table[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}table[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:15px;width:15px;border:1px solid rgba(0,0,0,.54);background-color:#fff;border-radius:2px}table[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{content:"";position:absolute;display:none;left:5px;top:2px;width:3px;height:7px;border:solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}table[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]:hover input[_ngcontent-%COMP%] ~ .checkmark[_ngcontent-%COMP%]{background-color:#ccc}table[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]{background-color:#2196f3;border:1px solid #2196f3}table[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after{display:block}']})}}return t})();var dt=[{path:"",component:X,pathMatch:"full"}],Y=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=u({type:t})}static{this.\u0275inj=C({imports:[f.forChild(dt),f]})}}return t})();var Lt=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=u({type:t})}static{this.\u0275inj=C({imports:[T,Y,H,V,z,q]})}}return t})();export{Lt as AbuseLogsModule};
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.