1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a941dc0b-cc5f-5fae-a6e3-370c2e48afe9")}catch(e){}}(); 3import{a as qe,b as et}from"./chunk-D45LHGYV.js";import{a as ai,b as oi,d as si,e as C,f as di,h as ci}from"./chunk-3GEL656B.js";import"./chunk-ISWHD4SX.js";import{a as ni}from"./chunk-4ZA7T7NX.js";import{b as ri}from"./chunk-EPO6VRPR.js";import{a as qt}from"./chunk-PUUDCT3J.js";import{a as ii}from"./chunk-XBQSLVPW.js";import"./chunk-LVOHQPWN.js";import"./chunk-SBKDOINH.js";import"./chunk-FXPIL65P.js";import"./chunk-KIWXDRBT.js";import"./chunk-4BHO44EW.js";import"./chunk-F6E24G4W.js";import"./chunk-GFJXAGOH.js";import"./chunk-5YVXTEFY.js";import"./chunk-Q5I4AHGF.js";import{a as Q,b as p,c as Ht,d as it,e as ti}from"./chunk-O6KFUY4S.js";import"./chunk-FUQCR3AW.js";import"./chunk-3SFNDQHF.js";import"./chunk-3OYOP6UC.js";import"./chunk-V4CGUX4R.js";import{b as Ut}from"./chunk-P2CA35ZS.js";import{e as Bt}from"./chunk-JTQNS436.js";import{a as ei}from"./chunk-5IZPFLGM.js";import"./chunk-PQ2MI5T3.js";import{m as Qe,o as Ye}from"./chunk-3UK5VQOH.js";import{a as kt}from"./chunk-EBI2B4IO.js";import"./chunk-INBQUE6G.js";import"./chunk-7NW2DXMC.js";import"./chunk-VZW7F3WN.js";import{a as $t,b as jt,c as Ge,f as Je,h as mt,j as We,l as Ze,m as Ke,n as Xe}from"./chunk-R6X6GIVP.js";import"./chunk-7F5RVMY2.js";import"./chunk-PMAHGPNS.js";import"./chunk-LGTIPYG5.js";import{a as tt}from"./chunk-52N4NZUP.js";import"./chunk-PJFIGSYN.js";import{a as Rt,c as Nt,e as It}from"./chunk-QOQFJ3L2.js";import"./chunk-7GNJKWPI.js";import"./chunk-LAW5LC3U.js";import"./chunk-ALVTPF3M.js";import"./chunk-3LPNFL6H.js";import{G as He,O as ze}from"./chunk-L2A6TUU4.js";import"./chunk-6SY643VQ.js";import{b as Vt}from"./chunk-UYNYVADX.js";import"./chunk-D7C3MHPO.js";import{Bb as L,Ca as b,Cc as f,Dc as g,E as _t,Ec as wt,Ee as Ae,Ef as lt,F as Kt,Gb as u,Gc as Me,Gi as Ft,Hb as l,Ib as h,Ic as V,Ja as k,Jb as x,Jc as Pe,Ka as U,Lf as Dt,Li as K,Mc as we,Mi as Ne,Nb as ee,Nc as v,Ni as Ie,Nj as X,Ob as ie,Oc as Se,Oi as Be,Pb as ne,Pi as Ve,Q as bt,Qb as Y,Ra as yt,S as fe,Si as Lt,Tb as N,Uc as St,Vi as ke,Wb as O,Wi as Ue,Xf as Z,Yf as I,Yi as $e,Z as xt,Zf as A,Zg as z,Zi as je,_a as _e,_g as q,a as E,ca as ge,cc as be,dc as xe,eb as d,ec as $,gc as Mt,ii as At,jc as y,kc as pt,lb as D,lc as B,mc as Pt,na as Xt,oa as ve,p as he,qe as Te,qh as re,ra as ct,rb as te,rd as Oe,rf as Ee,sd as Ot,si as Et,u as Ct,ua as Ce,uf as Fe,we as Tt,xb as J,xc as ye,xe as De,y as T,yc as W,yi as Re,zb as F,zg as Le}from"./chunk-KFM6X7QG.js";var j=function(i){return i.Active="ACTIVE",i.Standby="STAND_BY",i}(j||{}),pi=new Map([[j.Active,"Active"],[j.Standby,"Standby"]]);var Qt={hierarchy:["System","Audit"],anchorRouterLink:["/system","audit"],elements:{audit:{anchor:"audit-list",synonyms:["Logs"]}}};function ht(i,e,t){return parseInt(i.substr(e,t),16)}function ui(i){return i|=0,i<0?"00":i<16?"0"+i.toString(16):i<256?i.toString(16):"ff"}function ae(i,e,t){return t=t<0?t+6:t>6?t-6:t,ui(255*(t<1?i+(e-i)*t:t<3?e:t<4?i+(e-i)*(4-t):i))}function yi(i){if(/^#[0-9a-f]{3,8}$/i.test(i)){let e,t=i.length;if(t<6){let n=i[1],r=i[2],a=i[3],o=i[4]||"";e="#"+n+n+r+r+a+a+o+o}return(t==7||t>8)&&(e=i),e}}function Mi(i,e,t){let n;if(e==0){let r=ui(t*255);n=r+r+r}else{let r=t<=.5?t*(e+1):t+e-t*e,a=t*2-r;n=ae(a,r,i*6+2)+ae(a,r,i*6)+ae(a,r,i*6-2)}return"#"+n}function ut(i,e,t){let n=[.55,.5,.5,.46,.6,.55,.55],r=n[i*6+.5|0];return t=t<.5?t*r*2:r+(t-.5)*(1-r)*2,Mi(i,e,t)}var Pi=typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{},li={V:"jdenticon_config",n:"config"},wi={};function Si(i,e){let t=typeof i=="object"&&i||wi[li.n]||Pi[li.V]||{},n=t.lightness||{},r=t.saturation||{},a="color"in r?r.color:r,o=r.grayscale,s=t.backColor,m=t.padding;function c(S,M){let P=n[S];return P&&P.length>1||(P=M),function(_){return _=P[0]+_*(P[1]-P[0]),_<0?0:_>1?1:_}}function w(S){let M=t.hues,P;return M&&M.length>0&&(P=M[0|.999*S*M.length]),typeof P=="number"?(P/360%1+1)%1:S}return{W:w,o:typeof a=="number"?a:.5,D:typeof o=="number"?o:0,p:c("color",[.4,.8]),F:c("grayscale",[.3,.9]),G:yi(s),X:typeof i=="number"?i:typeof m=="number"?m:e}}var rt=class{constructor(e,t){this.x=e,this.y=t}},zt=class{constructor(e,t,n,r){this.q=e,this.t=t,this.H=n,this.Y=r}I(e,t,n,r){let a=this.q+this.H,o=this.t+this.H,s=this.Y;return s===1?new rt(a-t-(r||0),this.t+e):s===2?new rt(a-e-(n||0),o-t-(r||0)):s===3?new rt(this.q+t,o-e-(n||0)):new rt(this.q+e,this.t+t)}},Oi=new zt(0,0,0,0),oe=class{constructor(e){this.J=e,this.u=Oi}g(e,t){let n=t?-2:2,r=[];for(let a=t?e.length-2:0;a<e.length&&a>=0;a+=n)r.push(this.u.I(e[a],e[a+1]));this.J.g(r)}h(e,t,n,r){let a=this.u.I(e,t,n,n);this.J.h(a,n,r)}i(e,t,n,r,a){this.g([e,t,e+n,t,e+n,t+r,e,t+r],a)}j(e,t,n,r,a,o){let s=[e+n,t,e+n,t+r,e,t+r,e,t];s.splice((a||0)%4*2,2),this.g(s,o)}K(e,t,n,r,a){this.g([e+n/2,t,e+n,t+r/2,e+n/2,t+r,e,t+r/2],a)}};function Ti(i,e,t,n){i=i%14;let r,a,o,s,m,c;
3i?i==1?(o=0|t*.5,s=0|t*.8,e.j(t-o,0,o,s,2)):i==2?(o=0|t/3,e.i(o,o,t-o,t-o)):i==3?(m=t*.1,c=t<6?1:t<8?2:0|t*.25,m=m>1?0|m:m>.5?1:m,e.i(c,c,t-m-c,t-m-c)):i==4?(a=0|t*.15,o=0|t*.5,e.h(t-o-a,t-o-a,o)):i==5?(m=t*.1,c=m*4,c>3&&(c=0|c),e.i(0,0,t,t),e.g([c,c,t-m,c,c+(t-c-m)/2,t-m],!0)):i==6?e.g([0,0,t,0,t,t*.7,t*.4,t*.4,t*.7,t,0,t]):i==7?e.j(t/2,t/2,t/2,t/2,3):i==8?(e.i(0,0,t,t/2),e.i(0,t/2,t/2,t/2),e.j(t/2,t/2,t/2,t/2,1)):i==9?(m=t*.14,c=t<4?1:t<6?2:0|t*.35,m=t<8?m:0|m,e.i(0,0,t,t),e.i(c,c,t-c-m,t-c-m,!0)):i==10?(m=t*.12,c=m*3,e.i(0,0,t,t),e.h(c,c,t-m-c,!0)):i==11?e.j(t/2,t/2,t/2,t/2,3):i==12?(a=t*.25,e.i(0,0,t,t),e.K(a,a,t-a,t-a,!0)):!n&&(a=t*.4,o=t*1.2,e.h(a,a,o)):(r=t*.42,e.g([0,0,t,0,t,t-r*2,t-r,t,0,t]))}function mi(i,e,t){i=i%4;let n;i?i==1?e.j(0,t/2,t,t/2,0):i==2?e.K(0,0,t,t):(n=t/6,e.h(n,n,t-2*n)):e.j(0,0,t,t,0)}function Di(i,e){return i=e.W(i),[ut(i,e.D,e.F(0)),ut(i,e.o,e.p(.5)),ut(i,e.D,e.F(1)),ut(i,e.o,e.p(1)),ut(i,e.o,e.p(0))]}function Ai(i,e,t){let n=Si(t,.08);n.G&&i.m(n.G);let r=i.k,a=.5+r*n.X|0;r-=a*2;let o=new oe(i),s=0|r/4,m=0|a+r/2-s*2,c=0|a+r/2-s*2;function w(R,H,vt,st,Zt){let bi=ht(e,vt,1),xi=st?ht(e,st,1):0;i.L(M[P[R]]);for(let dt=0;dt<Zt.length;dt++)o.u=new zt(m+Zt[dt][0]*s,c+Zt[dt][1]*s,s,xi++%4),H(bi,o,s,dt);i.M()}let S=ht(e,-7)/268435455,M=Di(S,n),P=[],_;function G(R){if(R.indexOf(_)>=0){for(let H=0;H<R.length;H++)if(P.indexOf(R[H])>=0)return!0}}for(let R=0;R<3;R++)_=ht(e,8+R,1)%M.length,(G([0,4])||G([2,3]))&&(_=1),P.push(_);w(0,mi,2,3,[[1,0],[2,0],[2,3],[1,3],[0,1],[3,1],[3,2],[0,2]]),w(1,mi,4,5,[[0,0],[3,0],[3,3],[0,3]]),w(2,Ti,1,null,[[1,1],[2,1],[2,2],[1,2]]),i.finish()}function Ei(i){var n=0,r=0,a=encodeURI(i)+"%80",o=[],s,m=[],c=1732584193,w=4023233417,S=~c,M=~w,P=3285377520,_=[c,w,S,M,P],G=0,R="";function H(vt,st){return vt<<st|vt>>>32-st}for(;n<a.length;r++)o[r>>2]=o[r>>2]|(a[n]=="%"?parseInt(a.substring(n+1,n+=3),16):a.charCodeAt(n++))<<(3-(r&3))*8;for(s=((r+7>>6)+1)*16,o[s-1]=r*8-8;G<s;G+=16){for(n=0;n<80;n++)r=H(c,5)+P+(n<20?(w&S^~w&M)+1518500249:n<40?(w^S^M)+1859775393:n<60?(w&S^w&M^S&M)+2400959708:(w^S^M)+3395469782)+(m[n]=n<16?o[G+n]|0:H(m[n-3]^m[n-8]^m[n-14]^m[n-16],1)),P=M,M=S,S=H(w,30),w=c,c=r;_[0]=c=_[0]+c|0,_[1]=w=_[1]+w|0,_[2]=S=_[2]+S|0,_[3]=M=_[3]+M|0,_[4]=P=_[4]+P|0}for(n=0;n<40;n++)R+=(_[n>>3]>>>(7-(n&7))*4&15).toString(16);return R}function Fi(i){return/^[0-9a-f]{11,}$/i.test(i)&&i}function Li(i){return Ei(i==null?"":""+i)}var pn=typeof document<"u"&&document.querySelectorAll.bind(document);function nt(i){return(i*10+.5|0)/10}var se=class{constructor(){this.v=""}g(e){let t="";for(let n=0;n<e.length;n++)t+=(n?"L":"M")+nt(e[n].x)+" "+nt(e[n].y);this.v+=t+"Z"}h(e,t,n){let r=n?0:1,a=nt(t/2),o=nt(t),s="a"+a+","+a+" 0 1,"+r+" ";this.v+="M"+nt(e.x)+" "+nt(e.y+t/2)+s+o+",0"+s+-o+",0"}},de=class{constructor(e){this.A,this.B={},this.O=e,this.k=e.k}m(e){let t=/^(#......)(..)?/.exec(e),n=t[2]?ht(t[2],0)/255:1;this.O.m(t[1],n)}L(e){this.A=this.B[e]||(this.B[e]=new se)}M(){}g(e){this.A.g(e)}h(e,t,n){this.A.h(e,t,n)}finish(){let e=this.B;for(let t in e)e.hasOwnProperty(t)&&this.O.P(t,e[t].v)}},Ri={R:"http://www.w3.org/2000/svg",S:"width",T:"height"},ce=class{constructor(e){this.k=e,this.C='<svg xmlns="'+Ri.R+'" width="'+e+'" height="'+e+'" viewBox="0 0 '+e+" "+e+'">'}m(e,t){t&&(this.C+='<rect width="100%" height="100%" fill="'+e+'" opacity="'+t.toFixed(2)+'"/>')}P(e,t){this.C+='<path fill="'+e+'" d="'+t+'"/>'}toString(){return this.C+"</svg>"}};function hi(i,e,t){let n=new ce(e);return Ai(new de(n),Fi(i)||Li(i),t),n.toString()}var at=function(i){return i.Csv="CSV",i.Json="JSON",i.Yaml="YAML",i}(at||{});var Ni=function(i,e,t,n){var r=arguments.length,a=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(i,e,t,n);else for(var s=i.length-1;s>=0;s--)(o=i[s])&&(a=(r<3?o(a):r>3?o(e,t,a):o(e,t))||a);return r>3&&a&&Object.defineProperty(e,t,a),a},Ii=i=>({fileType:i});function Bi(i,e){i&1&&x(0,"mat-progress-bar",1)}var Yt=class pe{constructor(){this.api=b(X),this.cdr=b(St),this.errorHandler=b($e),this.download=b(Ue),this.store$=b(Dt),this.jobMethod=v.required(),this.searchQuery=v(),this.defaultFilters=v(),this.sorting=v(),this.filename=v("data"),this.fileType=v("csv"),this.fileMimeType=v("text/csv"),this.ariaLabel=v(),this.displayFormat=v(),this.addReportNameArgument=v(!1),this.controllerType=v(),this.downloadMethod=v(),this.exportFormat=v(at.Csv),this.customExportParams=v(),this.isLoading=!1,this.isHaLicensed=lt(this.store$.select(Bt))}onExport(){this.isLoading=!0,this.api.job(this.jobMethod(),this.getExportParams(this.getQueryFilters(this.searchQuery()),this.getQueryOptions(this.sorting()))).pipe(ct(e=>{if(this.cdr.markForCheck(),e.state===re.Failed)return this.errorHandler.showErrorModal(e),Ct;if(e.state!==re.Success)return Ct;let t=e.result,n={},r=this.downloadMethod()||this.jobMethod();
3return this.addReportNameArgument()&&(n.report_name=t),this.download.coreDownload({method:r,arguments:[n],fileName:`${this.filename()}.${this.fileType()}`,mimeType:this.fileMimeType()})}),fe(e=>(this.isLoading=!1,this.cdr.markForCheck(),this.errorHandler.showErrorModal(e),Ct)),q(this)).subscribe(()=>{this.isLoading=!1,this.cdr.markForCheck()})}getExportParams(e,t){return[E(E({"query-filters":e,"query-options":t,export_format:this.exportFormat()},this.isHaLicensed()&&this.controllerType()&&{remote_controller:this.controllerType()===j.Standby}),this.customExportParams())]}getQueryFilters(e){return e?e?.filters||this.defaultFilters():[]}getQueryOptions(e){return!e?.propertyName||!e?.direction?{}:{order_by:[`${e.direction===jt.Desc?"-":""}${e.propertyName}`]}}static{this.\u0275fac=function(t){return new(t||pe)}}static{this.\u0275cmp=D({type:pe,selectors:[["ix-export-button"]],inputs:{jobMethod:[1,"jobMethod"],searchQuery:[1,"searchQuery"],defaultFilters:[1,"defaultFilters"],sorting:[1,"sorting"],filename:[1,"filename"],fileType:[1,"f
3ileType"],fileMimeType:[1,"fileMimeType"],ariaLabel:[1,"ariaLabel"],displayFormat:[1,"displayFormat"],addReportNameArgument:[1,"addReportNameArgument"],controllerType:[1,"controllerType"],downloadMethod:[1,"downloadMethod"],exportFormat:[1,"exportFormat"],customExportParams:[1,"customExportParams"]},decls:6,vars:11,consts:[[1,"relative"],["mode","indeterminate"],["mat-button","","color","accent","ixTest","export",3,"click","disabled"]],template:function(t,n){t&1&&(l(0,"div",0),F(1,Bi,1,0,"mat-progress-bar",1),l(2,"button",2),f(3,"translate"),N("click",function(){return n.onExport()}),y(4),f(5,"translate"),h()()),t&2&&(d(),L(n.isLoading?1:-1),d(),u("disabled",n.isLoading),J("aria-label",n.ariaLabel()||g(3,4,"Export")),d(2),B(" ",wt(5,6,"Export As {fileType}",W(9,Ii,n.displayFormat()||n.fileType().toUpperCase()))," "))},dependencies:[je,Tt,A,K,I],styles:[`mat-progress-bar[_ngcontent-%COMP%]{opacity:.6;position:absolute;top:-4px;width:100%;z-index:1}.relative[_ngcontent-%COMP%]{position:relative} 4/*# sourceMappingURL=export-button.component-C7NFZPMF.css.map */`],changeDetection:0})}};Yt=Ni([z()],Yt);var ki=function(i,e,t,n){var r=arguments.length,a=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(i,e,t,n);else for(var s=i.length-1;s>=0;s--)(o=i[s])&&(a=(r<3?o(a):r>3?o(e,t,a):o(e,t))||a);return r>3&&a&&Object.defineProperty(e,t,a),a},Ui=i=>({format:i}),$i=i=>[i],ji=i=>({services:i});function Hi(i,e){if(i&1){let t=Y();l(0,"div",7)(1,"button",11),f(2,"translate"),x(3,"ix-icon",12),h(),l(4,"mat-menu",null,1)(6,"button",13),N("click",function(){k(t);let r=O();return U(r.onFormatChange(r.ExportFormat.Csv))}),y(7," CSV "),h(),l(8,"button",14),N("click",function(){k(t);let r=O();return U(r.onFormatChange(r.ExportFormat.Json))}),y(9," JSON "),h(),l(10,"button",15),N("click",function(){k(t);let r=O();return U(r.onFormatChange(r.ExportFormat.Yaml))}),y(11," YAML "),h()(),x(12,"ix-export-button",16),f(13,"translate"),h()}if(i&2){let t=$(5),n=O();d(),u("matMenuTriggerFor",t),J("aria-label",g(2,20,"Select Export Format")),d(5),Mt("selected",n.exportFormat()===n.ExportFormat.Csv),d(2),Mt("selected",n.exportFormat()===n.ExportFormat.Json),d(2),Mt("selected",n.exportFormat()===n.ExportFormat.Yaml),d(2),u("addReportNameArgument",!0)("searchQuery",n.searchQuery())("sorting",n.dataProvider().sorting)("defaultFilters",n.basicQueryFilters())("controllerType",n.dataProvider().selectedControllerType)("filename",n.exportFilename())("fileType",n.exportFileType())("fileMimeType",n.exportMimeType)("exportFormat",n.exportFormat())("displayFormat",n.exportFormatDisplayLabel())("ariaLabel",wt(13,22,"Export audit logs as {format}",W(25,Ui,n.exportFormatDisplayLabel())))("customExportParams",W(29,ji,W(27,$i,n.serviceControl.value)))}}var Gt=class le{constructor(){this.api=b(X),this.activatedRoute=b(Ee),this.urlOptionsService=b(ti),this.translate=b(Z),this.dataProvider=v.required(),this.isMobileView=v.required(),this.searchQuery=yt({query:"",isBasicQuery:!0}),this.searchProperties=yt([]),this.advancedSearchPlaceholder=this.translate.instant('Event = "Close" AND Username = "admin"'),this.basicSearchPlaceholder=this.translate.instant("Search by Event or Username"),this.serviceControl=new Ut(Q.Middleware),this.serviceOptions$=T(kt(Ht,this.translate)),this.exportFormat=yt(at.Csv),this.viewInitialized$=new he(1),this.userSuggestions$=this.api.call("user.query").pipe(_t(e=>this.mapUsersForSuggestions(e)),xt(1),Xt({refCount:!0,bufferSize:1})),this.apiAndLocalUserSuggestions$=V(()=>Kt([this.userSuggestions$,this.dataProvider().currentPage$.pipe(xt(1),_t(e=>this.mapUsersForSuggestions(e)))]).pipe(_t(([e,t])=>[...e,...t]))),this.basicQueryFilters=V(()=>{let e=this.searchQuery()?.query?.trim()||"";if(!e)return[];let t=this.convertToRegexPattern(e),n=Object.values(p),r=t.replace(/\s+/g,"_").toUpperCase().replace(/_/g,"[_-]"),a=n.filter(o=>{try{return new RegExp(r,"i").test(o)}catch{return!1}});return a.length>0?[["event","~",a[0]]]:[["username","~",t]]}),this.exportFilename=V(()=>`audit_report.${this.exportFormat().toLowerCase()}`),this.exportFileType=V(()=>"tgz"),this.exportMimeType="application/gzip",this.exportFormatDisplayLabel=V(()=>this.exportFormat().toUpperCase()),this.ExportFormat=at,this.initialization$=Kt([this.activatedRoute.params.pipe(xt(1)),this.viewInitialized$]).pipe(Ce(([e])=>{let t=this.urlOptionsService.parseUrlOptions(e.options);this.dataProvider().setPagination({pageSize:t.pagination?.pageSize||50,pageNumber:t.pagination?.pageNumber||1},!0),t.sorting&&this.dataProvider().setSorting(t.sorting,!0),t.searchQuery&&this.searchQuery.set(t.searchQuery),t.service&&this.serviceControl.setValue(t.service),this.dataProvider().service=this.serviceControl.value}),ct(()=>(this.onSearch(this.searchQuery()),T(void 0))),Xt({refCount:!1,bufferSize:1}))}onFormatChange(e){this.exportFormat.set(e)}ngOnInit(){this.dataProvider().sortingOrPaginationUpdate.pipe(q(this)).subscribe(()=>{this.updateUrlOptions()}),this.dataProvider().currentPage$.pipe(bt(Boolean),q(this)).subscribe(e=>{this.setSearchProperties(e)}),this.initialization$.pipe(ct(()=>this.serviceControl.value$.pipe(ge(),ve(1))),q(this)).subscribe(e=>{this.dataProvider().service=e,this.updateUrlOptions(),this.dataProvider().load()}),this.initialization$.pipe(q(this)).subscribe()}updateUrlOptions(){this.urlOptionsService.setUrlOptions("/system/audit",{searchQuery:this.searchQuery(),sorting:this.dataProvider().sorting,pagination:this.dataProvider().pagination,service:this.serviceControl.value})}onSearch(e){e&&(this.searchQuery.set(e),e?.isBasicQuery&&this.dataProvider().setParams([this.basicQueryFilters()]),e&&!e.isBasicQuery&&this.dataProvider().setParams([e.filters]),this.updateUrlOptions(),this.dataProvider().load())}setSearchProperties(e){this.searchProperties.update(()=>[C("audit_id",this.translate.instant("ID"),T([])),di("message_timestamp",this.translate.instant("Timestamp")),C("address",this.translate.instant("Address"),T(e.map(t=>({label:t.address,value:`"${t.address}"`})))),C("username",this.translate.instant("User"),this.apiAndLocalUserSuggestions$()),C("event",this.translate.instant("Event"),T(Object.values(p).map(t=>({label:this.translate.instant(it.get(t)||t),value:`"${this.translate.instant(it.get(t)||t)}"`}))),it),C("event_data.clientAccount",this.translate.instant("SMB - Client Account"),this.apiAndLocalUserSuggestions$()),C("event_data.host",this.translate.instant("SMB - Host")),C("event_data.file.path",this.translate.instant("SMB - File Path")),C("event_data.src_file.path",this.translate.instant("SMB - Source File Path")),C("event_data.dst_file.path",this.translate.instant("SMB - Destination File Path")),C("event_data.file.handle.type",this.translate.instant("SMB - File Handle Type")),C("event_data.file.handle.value",this.translate.instant("SMB - File Handle Value")),C("event_data.unix_token.uid",this.translate.instant("SMB - UNIX Token UID")),C("event_data.unix_token.gid",this.translate.instant("SMB - UNIX Token GID")),C("event_data.unix_token.groups",this.translate.instant("SMB - UNIX Token Groups")),C("event_data.result.type",this.translate.instant("SMB - Result Type")),C("event_data.result.value_raw",this.translate.instant("SMB - Result Raw Value")),C("event_data.result.value_parsed",this.translate.instant("SMB - Result Parsed Value")),C("event_data.vers.major",this.translate.instant("SMB - Vers Major"),T([{label:"0",value:0},{label:"1",value:1}])),C("event_data.vers.minor",this.translate.instant("SMB - Vers Minor"),T([{label:"0",value:0},{label:"1",value:1}])),C("event_data.operations.create",this.translate.instant("SMB - Operation Create")),C("event_data.operations.close",this.translate.instant("SMB - Operation Close")),C("event_data.operations.read",this.translate.instant("SMB - Operation Read")),C("event_data.operations.write",this.translate.instant("SMB - Operation Write")),C("event_data.credentials.credentials",this.translate.instant("Middleware - Credentials"),T(Object.values(qe).map(t=>({label:this.translate.instant(et.get(t)||t),value:`"${this.translate.instant(et.get(t)||t)}"`}))),et),C("event_data.method",this.translate.instant("Middleware - Method"))])}ngAfterViewInit(){this.viewInitialized$.next(),this.viewInitialized$.complete()}mapUsersForSuggestions(e){return e.map(t=>({label:t.username,value:`"${t.username}"`}))}convertToRegexPattern(e){return e.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*")}static{this.\u0275fac=function(t){return new(t||le)}}static{this.\u0275cmp=D({type:le,selectors:[["ix-audit-search"]],inputs:{dataProvider:[1,"dataProvider"],isMobileView:[1,"isMobileView"]},decls:14,vars:17,consts:[["searchInput",""],["formatMenu","matMenu"],[1,"header-card","item-search"],[1,"loader-bar",3,"loading"],[1,"actions-bar"],[1,"top-row"],["ixTest","audit-service",1,"service-select",3,"formControl","label","options","required"],[1,"export-container"],[1,"search-row"],[1,"search-input",3,"runSearch","properties","advancedSearchPlaceholder","basicSearchPlaceholder","query"],["mat-button","","type","button","color","primary","ixTest","search",3,"click"],["mat-icon-button","","ixTest","export-format-selector",3,"matMenuTriggerFor"],["name","mdi-menu-down"],["mat-menu-item","","ixTest","format-csv",3,"click"],["mat-menu-item","","ixTest","format-json",3,"click"],["mat-menu-item","","ixTest","format-yaml",3,"click"],["jobMethod","audit.export","downloadMethod","audit.download_report",3,"addReportNameArgument","searchQuery","sorting","defaultFilters","controllerType","filename","fileType","fileMimeType","exportFormat","displayFormat","ariaLabel","customExportParams"]],template:function(t,n){if(t&1){let r=Y();l(0,"div",2),x(1,"ix-fake-progress-bar",3),f(2,"async"),l(3,"div",4)(4,"div",5),x(5,"ix-select",6),f(6,"translate"),F(7,Hi,14,31,"div",7),h(),l(8,"div",8)(9,"ix-search-input2",9,0),N("runSearch",function(){let o;k(r);let s=$(10);return n.onSearch(s.query()),U((o=s.advancedSearch())==null?null:o.hideDatePicker())}),h(),l(11,"button",10),N("click",function(){let o;k(r);let s=$(10);return n.onSearch(s.query()),U((o=s.advancedSearch())==null?null:o.hideDatePicker())}),y(12),f(13,"translate"),h()()()()}t&2&&(d(),u("loading",!!g(2,11,n.dataProvider().isLoading$)),d(4),u("formControl",n.serviceControl)("label",g(6,13,"Service"))("options",n.serviceOptions$)("required",!0),d(2),L(n.dataProvider().totalRows?7:-1),d(2),u("properties",n.searchProperties())("advancedSearchPlaceholder",n.advancedSearchPlaceholder)("basicSearchPlaceholder",n.basicSearchPlaceholder)("query",n.searchQuery()),d(3),B(" ",g(13,15,"Search")," "))},dependencies:[ze,Tt,Te,Ie,Be,Ne,si,A,Yt,Lt,K,He,Ft,At,Re,Et,Ot,I],styles:[`.actions-bar[_ng
4content-%COMP%]{display:flex;flex-direction:column;gap:12px}.actions-bar[_ngcontent-%COMP%] .top-row[_ngcontent-%COMP%]{align-items:center;display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between}.actions-bar[_ngcontent-%COMP%] .top-row[_ngcontent-%COMP%] .service-select[_ngcontent-%COMP%]{flex-shrink:0;margin-bottom:0;margin-top:0;min-width:130px;padding:0}.actions-bar[_ngcontent-%COMP%] .top-row[_ngcontent-%COMP%] .export-container[_ngcontent-%COMP%]{align-items:center;display:flex}.actions-bar[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{align-items:flex-start;display:flex;gap:12px;width:100%}.actions-bar[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{flex:1;min-width:0}.actions-bar[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex-shrink:0}[_nghost-%COMP%] .mat-mdc-menu-panel .mat-mdc-menu-item.selected{background-color:var(--alt-bg2);font-weight:500}.actions-bar[_ngcontent-%COMP%] .top-row[_ngcontent-%COMP%] .service-select[_ngcontent-%COMP%] .label{font-size:15px!important}.actions-bar[_ngcontent-%COMP%] .top-row[_ngcontent-%COMP%] .service-select[_ngcontent-%COMP%] .label .required{display:none}.actions-bar[_ngcontent-%COMP%] .top-row[_ngcontent-%COMP%] .service-select[_ngcontent-%COMP%] .input-container{background:#0000001a;min-width:130px}.actions-bar[_ngcontent-%COMP%] .top-row[_ngcontent-%COMP%] .service-select[_ngcontent-%COMP%] .input-container .mat-mdc-select-trigger{font-size:15px!important} 5/*# sourceMappingURL=audit-search.component-H35L5DL6.css.map */`],changeDetection:0})}};Gt=ki([z()],Gt);function fi(i,e){let t=i.service;switch(t){case Q.Middleware:return qi(i,e);case Q.Smb:return Yi(i,e);case Q.Sudo:return Qi(i,e);case Q.System:return zi(i,e);default:return tt(t)," - "}}function qi(i,e){let t=i.event;switch(t){case p.MethodCall:return i.event_data?.description||i.event_data?.method;case p.Reboot:return i.event_data?.reason;case p.Logout:case p.Authentication:{let n=i.event_data?.credentials?.credentials,r=e.instant(et.get(n)||n);return i.event_data?.error?e.instant("Failed Authentication: {credentials}",{credentials:n&&r}):e.instant("Credentials: {credentials}",{credentials:n&&r})}default:return tt(t)," - "}}function Qi(i,e){let t=i.event;switch(t){case p.Accept:return e.instant("Command: {command}",{command:i.event_data?.sudo.accept.command});case p.Reject:return e.instant("Command: {command}",{command:i.event_data?.sudo.reject.command});default:return tt(t)," - "}}function zi(i,e){let t=i.event;switch(t){case p.Generic:case p.Escalation:case p.Privileged:case p.Export:case p.Identity:case p.TimeChange:case p.ModuleLoad:case p.Login:return e.instant("Command: {command}",{command:i.event_data?.proctitle??"-"});case p.Credential:return e.instant("Action: {actionName} | User: {user}",{path:i.event_data?.auth_action??"-",user:i.event_data?.username??"-"});case p.Service:return e.instant("Action: {actionName}",{actionName:i.event_data?.service_action??"-"});case p.TtyRecord:return e.instant("User: {userName}",{user:i.event_data?.tty_record?.username??"-"});default:return tt(t),"-"}}function Yi(i,e){let t=i.event;switch(t){case p.Rename:return`${i.event_data?.src_file?.path} -> ${i.event_data?.dst_file?.path}`;case p.Authentication:return e.instant("Account: {account}",{account:i.event_data?.clientAccount});case p.Connect:case p.Disconnect:return e.instant("Host: {host}",{host:i.event_data?.host});case p.Create:case p.Unlink:return e.instant("File: {filename}",{filename:i.event_data?.file?.path});case p.Close:case p.Read:case p.Write:case p.OffloadRead:case p.OffloadWrite:case p.SetAcl:case p.SetAttr:case p.SetQuota:return e.instant("File: {filename}",{filename:`${i.event_data?.file?.handle?.type}/${i.event_data?.file?.handle?.value}`});default:return tt(t)," - "}}var Gi=function(i,e,t,n){var r=arguments.length,a=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(i,e,t,n);else for(var s=i.length-1;s>=0;s--)(o=i[s])&&(a=(r<3?o(a):r>3?o(e,t,a):o(e,t))||a);return r>3&&a&&Object.defineProperty(e,t,a),a};function Ji(i,e){if(i&1&&ne(0,2),i&2){O();let t=$(12);u("ngTemplateOutlet",t)}}function Wi(i,e){if(i&1&&ne(0,2),i&2){O();let t=$(12);u("ngTemplateOutlet",t)}}function Zi(i,e){if(i&1&&(l(0,"div",7),x(1,"div",8),l(2,"span"),y(3),h()()),i&2){let t=e.$implicit,n=O();u("matTooltip",t.username),d(),u("innerHTML",n.getUserAvatarForLog(t),_e),d(2),pt(t.username||"-")}}function Ki(i,e){i&1&&x(0,"ix-icon",10)}function Xi(i,e){i&1&&x(0,"ix-icon",11)}function tn(i,e){if(i&1&&(l(0,"div",9),f(1,"translate"),F(2,Ki,1,0,"ix-icon",10)(3,Xi,1,0,"ix-icon",11),l(4,"span"),y(5),f(6,"translate"),h()()),i&2){let t=e.$implicit,n=O();u("matTooltip",g(1,3,n.getEventDataForLog(t))),d(2),L(t.success?2:3),d(3),pt(g(6,5,n.getEventDataForLog(t)))}}function en(i,e){if(i&1&&(l(0,"div",12),x(1,"thead",13),h()),i&2){let t=O(
5);d(),u("columns",t.columns)("dataProvider",t.dataProvider())}}var Jt=class me{constructor(){this.sanitizer=b(Ae),this.emptyService=b($t),this.translate=b(Z),this.dataProvider=v.required(),this.isMobileView=v.required(),this.searchableElements=Qt,this.toggleShowMobileDetails=we(),this.controllerType=V(()=>this.dataProvider().selectedControllerType),this.columns=Ge([mt({title:this.translate.instant("Service"),propertyName:"service",getValue:e=>{let t=Ht.get(e.service);return t?this.translate.instant(t):e.service||"-"}}),mt({title:this.translate.instant("User"),propertyName:"username"}),ii({title:this.translate.instant("Timestamp"),propertyName:"message_timestamp",getValue:e=>e.message_timestamp*1e3}),mt({title:this.translate.instant("Event"),propertyName:"event",getValue:e=>{let t=it.get(e.event);return t?this.translate.instant(t):e.event||"-"}}),mt({title:this.translate.instant("Event Data"),disableSorting:!0})],{uniqueRowTag:e=>`audit-${e.service}-${e.username}-${e.event}-${e.audit_id}`,ariaLabels:e=>[e.service,e.username,e.event,this.translate.instant("Audit Entry")]})}getEventDataForLog(e){return fi(e,this.translate)}getUserAvatarForLog(e){return this.sanitizer.bypassSecurityTrustHtml(hi(e.username,this.isMobileView()?20:30))}expanded(e){!e||!this.isMobileView()||this.toggleShowMobileDetails.emit(!0)}static{this.\u0275fac=function(t){return new(t||me)}}static{this.\u0275cmp=D({type:me,selectors:[["ix-audit-list"]],inputs:{dataProvider:[1,"dataProvider"],isMobileView:[1,"isMobileView"]},outputs:{toggleShowMobileDetails:"toggleShowMobileDetails"},decls:13,vars:23,consts:[["thead",""],[3,"dataProvider","isMobileView"],[3,"ngTemplateOutlet"],[3,"ixUiSearch","ix-table-empty","emptyConfig"],["ix-table-body","","detailsRowIdentifier","audit_id",3,"expanded","columns","dataProvider","isLoading"],["ix-table-cell","",3,"columnIndex","dataProvider"],[3,"dataProvider","pageSize","currentPage"],[1,"user-avatar",3,"matTooltip"],[3,"innerHTML"],[1,"event-data",3,"matTooltip"],["name","mdi-check-circle"],["name","mdi-close-circle",1,"error-color"],[1,"sticky-header"],["ix-table-head","",1,"audit-header-row",3,"columns","dataProvider"]],template:function(t,n){if(t&1){let r=Y();x(0,"ix-audit-search",1),F(1,Ji,1,1,"ng-container",2),l(2,"ix-table",3),f(3,"async"),f(4,"async"),F(5,Wi,1,1,"ng-container",2),l(6,"tbody",4),f(7,"async"),N("expanded",function(o){return k(r),U(n.expanded(o))}),te(8,Zi,4,3,"ng-template",5)(9,tn,7,7,"ng-template",5),h()(),x(10,"ix-table-pager",6),te(11,en,2,2,"ng-template",null,0,Me)}t&2&&(u("dataProvider",n.dataProvider())("isMobileView",n.isMobileView()),d(),L(n.isMobileView()?-1:1),d(),u("ixUiSearch",n.searchableElements.elements.audit)("ix-table-empty",!g(3,17,n.dataProvider().currentPageCount$))("emptyConfig",n.emptyService.defaultEmptyConfig(g(4,19,n.dataProvider().emptyType$))),d(3),L(n.isMobileView()?5:-1),d(),u("columns",n.columns)("dataProvider",n.dataProvider())("isLoading",!!g(7,21,n.dataProvider().isLoading$)),d(2),u("columnIndex",1)("dataProvider",n.dataProvider()),d(),u("columnIndex",4)("dataProvider",n.dataProvider()),d(),u("dataProvider",n.dataProvider())("pageSize",n.dataProvider().pagination.pageSize)("currentPage",n.dataProvider().pagination.pageNumber))},dependencies:[Ze,We,Je,Xe,Ke,ei,Ve,Oe,Vt,Gt,A,Lt,Ot,I],styles:[`[_nghost-%COMP%] .sticky-header{height:inherit;min-height:48px;top:38px}@media (max-width: 1280px){[_nghost-%COMP%] .sticky-header{position:static}}[_nghost-%COMP%] .sticky-header>thead{align-items:center;display:flex;width:100%}[_nghost-%COMP%] .sticky-header>thead th{align-items:center;display:flex}.event-data[_ngcontent-%COMP%]{align-items:center;display:flex;gap:8px;margin-top:-5px}.event-data[_ngcontent-%COMP%] ix-icon[_ngcontent-%COMP%]{position:relative;top:2px;width:15px}.event-data[_ngcontent-%COMP%] ix-icon.error-color[_ngcontent-%COMP%]{color:var(--red)} 6/*# sourceMappingURL=audit-list.component-RZJMNG3D.css.map */`],changeDetection:0})}};Jt=Gi([z()],Jt);var gi=(()=>{class i{constructor(){this.log=v.required(),this.eventData=V(()=>
6E({success:this.log().success},this.log().event_data)),this.yamlContent=V(()=>ni(ri(this.eventData())))}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=D({type:i,selectors:[["ix-event-data-details-card"]],inputs:{log:[1,"log"]},decls:9,vars:6,consts:[[1,"card"],["mat-card-title",""],[3,"text","jsonText"]],template:function(n,r){n&1&&(l(0,"mat-card",0)(1,"mat-card-header")(2,"h3",1),y(3),f(4,"translate"),h(),x(5,"ix-copy-button",2),h(),l(6,"mat-card-content")(7,"pre"),y(8),h()()()),n&2&&(d(3),B(" ",g(4,4,"Event Data")," "),d(2),u("text",r.yamlContent())("jsonText",r.eventData()),d(3),pt(r.yamlContent()))},dependencies:[ke,Rt,It,Nt,A,I],styles:[`pre[_ngcontent-%COMP%]{font-family:var(--mdc-dialog-subhead-font);line-height:32px;margin:0;white-space:pre-wrap;word-wrap:break-word} 7/*# sourceMappingURL=event-data-details-card.component-NNVBHWV2.css.map */`],changeDetection:0})}}return i})();function nn(i,e){if(i&1&&(l(0,"p"),y(1),f(2,"translate"),f(3,"translate"),f(4,"translate"),h()),i&2){let t=O();d(),Pt("",g(2,2,"Version"),": ",t.log().service_data.vers.major?g(3,4,"Major"):g(4,6,"Minor"))}}var vi=(()=>{class i{constructor(){this.log=v.required()}static{this.\u0275fac=function(n){return new(n||i)}}
7static{this.\u0275cmp=D({type:i,selectors:[["ix-metadata-details-card"]],inputs:{log:[1,"log"]},decls:13,vars:12,consts:[[1,"card"],["mat-card-title",""]],template:function(n,r){if(n&1&&(l(0,"mat-card",0)(1,"mat-card-header")(2,"h3",1),y(3),f(4,"translate"),h()(),l(5,"mat-card-content")(6,"p"),y(7),f(8,"translate"),h(),F(9,nn,5,8,"p"),l(10,"p"),y(11),f(12,"translate"),h()()()),n&2){let a;d(3),B(" ",g(4,6,"Metadata")," "),d(4),Pt("",g(8,8,"Audit ID"),": ",r.log().audit_id||"-"),d(2),L((a=r.log().service_data)!=null&&a.vers?9:-1),d(2),Pt("",g(12,10,"Session"),": ",r.log().session||"-")}},dependencies:[Nt,It,Rt,A,I],styles:[`mat-card-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 6px} 8/*# sourceMappingURL=metadata-details-card.component-WCXYZP66.css.map */`],changeDetection:0})}}return i})();var Ci=(()=>{class i{constructor(){this.log=v.required()}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=D({type:i,selectors:[["ix-log-details-panel"]],inputs:{log:[1,"log"]},decls:4,vars:2,consts:[[1,"cards"],[1,"scroll-window"],[3,"log"]],template:function(n,r){n&1&&(l(0,"div",0)(1,"div",1),x(2,"ix-metadata-detail
8s-card",2)(3,"ix-event-data-details-card",2),h()()),n&2&&(d(2),u("log",r.log()),d(),u("log",r.log()))},dependencies:[gi,vi,A],styles:[`@keyframes _ngcontent-%COMP%_blinker{50%{opacity:.1}}@keyframes _ngcontent-%COMP%_fade-in-animation{0%{opacity:0}to{opacity:1}}@keyframes _ngcontent-%COMP%_pulse-box-shadow-animation{0%,to{box-shadow:none;outline:0}50%{box-shadow:0 0 10px 10px var(--primary-lighter);outline:2px solid var(--primary)}}[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] .cards .card{border:none;border-radius:0;margin:0}[_nghost-%COMP%] .cards .card mat-card-header{align-items:center;border-bottom:1px solid var(--lines);justify-content:space-between;min-height:40px;padding:8px 8px 8px 16px}[_nghost-%COMP%] .cards .card mat-card-header .mat-mdc-button{flex-shrink:0}[_nghost-%COMP%] .cards .card .mat-mdc-card-title{align-items:center;column-gap:5px;display:flex;font-size:1.65rem;margin-bottom:0}@media (max-width: 3132px){[_nghost-%COMP%] .cards .card .mat-mdc-card-title{font-size:1.728em}}[_nghost-%COMP%] .cards .card mat-card-content{margin:0;padding:16px!important}[_nghost-%COMP%] .cards .card mat-card-content>div{padding:0}[_nghost-%COMP%] .cards .card ngx-skeleton-loader{flex:1}[_nghost-%COMP%] .cards .card .details-item{animation-duration:.35s;animation-fill-mode:backwards;animation-name:_ngcontent-%COMP%_fade-in-animation;align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;margin-bottom:4px}[_nghost-%COMP%] .cards .card .details-item:first-child{margin-top:0}[_nghost-%COMP%] .cards .card .details-item .label{font-weight:700;margin-right:5px;white-space:normal}[_nghost-%COMP%] .cards .card .details-item .value{font-weight:400;margin-right:5px;white-space:normal}[_nghost-%COMP%] .cards .card .details-item a{color:var(--primary);cursor:pointer;margin-left:auto;max-width:100%;overflow:hidden;text-decoration:underline;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .cards .card .details-item ngx-skeleton-loader{display:inline-block;flex:0;height:20px;min-width:30px;width:30%}[_nghost-%COMP%] .cards .card .details-item ngx-skeleton-loader .loader{margin-bottom:0}[_nghost-%COMP%] .cards .card mat-card-actions{border-top:1px solid var(--lines);box-sizing:border-box;display:flex;justify-content:flex-end;margin:0;padding:8px 8px 8px 16px}[_nghost-%COMP%] .cards .card mat-card-actions .mdc-button--outlined{border:1px solid var(--alt-fg2);border-radius:0;opacity:.8}[_nghost-%COMP%] .cards .card mat-card-actions .mdc-button--outlined:hover{background-color:var(--hover-bg)!important}@media (max-width: 1278px){.header[_ngcontent-%COMP%]{border-bottom:solid 1px var(--lines);margin:0 16px 16px 0}}.title[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:0;min-height:36px}@media (max-width: 1278px){.title[_ngcontent-%COMP%]{margin-top:0}}.title[_ngcontent-%COMP%] .mobile-prefix[_ngcontent-%COMP%]{display:none}@media (max-width: 1279px){.title[_ngcontent-%COMP%] .mobile-prefix[_ngcontent-%COMP%]{align-items:center;display:flex}}.title[_ngcontent-%COMP%] .prefix[_ngcontent-%COMP%]{display:flex}@media (max-width: 1279px){.title[_ngcontent-%COMP%] .prefix[_ngcontent-%COMP%]{display:none}}.cards[_ngcontent-%COMP%]{height:100%;overflow-y:auto;overscroll-behavior:contain;padding-bottom:30px;width:100%;word-break:break-word}.cards[_ngcontent-%COMP%] .scroll-window[_ngcontent-%COMP%]{columns:18.5185185185vw;gap:8px}@media (max-width: 767px){.cards[_ngcontent-%COMP%] .scroll-window[_ngcontent-%COMP%]{columns:1;padding:0 16px}}@media (min-width: 767px) and (max-width: 1280px){.cards[_ngcontent-%COMP%] .scroll-window[_ngcontent-%COMP%]{columns:33.3333333333vw;padding:0 16px}}.cards[_ngcontent-%COMP%] .scroll-window[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline-block;width:100%}.cards[_ngcontent-%COMP%] .scroll-window[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-bottom:8px} 9/*# sourceMappingURL=log-details-panel.component-FQG3WRP7.css.map */`],changeDetection:0})}}return i})();var Wt=class extends ci{get isLastOffset(){return this.totalRows/Number(this.pagination.pageNumber)<Number(this.pagination.pageSize)}get avoidCountRowsRequest(){return!!this.totalRows&&!this.isLastOffset&&Le(this.lastParams,this.params)}countRows(){if(this.avoidCountRowsRequest)return T(this.totalRows);this.lastParams=this.params,this.params=this.params;let e=[{"query-filters":this.params[0]||[],"query-options":{count:!0}}];return this.api.call(this.method,e)}prepareParams(e){let[t=[]]=e;return[{"query-filters":t,"query-options":E(E({},this.paginationStrategy.getParams(this.pagination,this.totalRows)),this.sortingStrategy.getParams(this.sorting))}]}};var _i=(()=>{class i extends Wt{static{this.instanceCounter=0}constructor(t){super(t,"audit.query"),this.instanceId=++i.instanceCounter,this.service=Q.Middleware}countRows(){if(this.avoidCountRowsRequest)return T(this.totalRows);this.lastParams=this.params;let t=[E({"query-filters":this.params[0]||[],"query-options":{count:!0},services:[this.service]},this.isHaLicensed&&this.selectedControllerType&&{remote_controller:this.selectedControllerType===j.Standby})];return this.api.call(this.method,t)}prepareParams(t){let[n=[]]=t;return[E({"query-filters":n,"query-options":E(E({},this.paginationStrategy.getParams(this.pagination,this.totalRows)),this.sortingStrategy.getParams(this.sorting)),services:[this.service]},this.isHaLicensed&&this.selectedControllerType&&{remote_controller:this.selectedControllerType===j.Standby})]}}return i})();var rn=function(i,e,t,n){var r=arguments.length,a=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(i,e,t,n);else for(var s=i.length-1;s>=0;s--)(o=i[s])&&(a=(r<3?o(a):r>3?o(e,t,a):o(e,t))||a);return r>3&&a&&Object.defineProperty(e,t,a),a},an=()=>["/system/advanced"];function on(i,e){if(i&1&&(x(0,"ix-button-group",1),f(1,"translate"),f(2,"translate")),i&2){let t=O(
9);u("formControl",t.controllerTypeControl)("label",g(1,5,"Controller"))("options",t.controllerTypeOptions$)("inlineFields",!0),J("aria-label",g(2,7,"Controller Type"))}}function sn(i,e){if(i&1&&x(0,"ix-log-details-panel",7),i&2){let t=O();u("log",t.dataProvider.expandedRow)}}var gt=class ue{constructor(){this.api=b(X),this.emptyService=b($t),this.cdr=b(St),this.store$=b(Dt),this.translate=b(Z),this.hasInitialized=!1,this.masterDetailView=Se.required(qt),this.controllerTypeControl=new Ut(j.Active),this.controllerTypeOptions$=T(kt(pi,this.translate)),this.controllerType=lt(this.controllerTypeControl.value$),this.isHaLicensed=lt(this.store$.select(Bt)),this.searchableElements=Qt,Pe(()=>{if(!this.dataProvider)return;let e=this.controllerType(),t=this.isHaLicensed(),n=this.dataProvider.selectedControllerType!==e,r=this.dataProvider.isHaLicensed!==!!t;if(this.dataProvider.selectedControllerType=e,this.dataProvider.isHaLicensed=!!t,!this.hasInitialized){this.hasInitialized=!0;return}(n||r)&&this.dataProvider.load()})}ngOnInit(){this.createDataProvider()}ngOnDestroy(){this.dataProvider.unsubscribe()}createDataProvider(){this.dataProvider=new _i(this.api),this.dataProvider.paginationStrategy=new ai,this.dataProvider.sortingStrategy=new oi,this.dataProvider.setSorting({propertyName:"message_timestamp",direction:jt.Desc,active:1},!0),this.dataProvider.currentPage$.pipe(bt(Boolean),q(this)).subscribe(e=>{this.dataProvider.expandedRow=this.masterDetailView().isMobileView()?null:e[0],this.cdr.markForCheck()})}static{this.\u0275fac=function(t){return new(t||ue)}}static{this.\u0275cmp=D({type:ue,selectors:[["ix-audit"]],viewQuery:function(t,n){t&1&&be(n.masterDetailView,qt,5),t&2&&xe()},decls:13,vars:14,consts:[["masterDetailView","masterDetailViewContext"],[3,"formControl","label","options","inlineFields"],["ixTest","audit-settings","mat-button","","fragment","audit-card",3,"routerLink"],[3,"selectedItem","ixUiSearch"],["master","",3,"toggleShowMobileDetails","dataProvider","isMobileView"],["detail-header",""],["detail",""],[3,"log"]],template:function(t,n){if(t&1){let r=Y();l(0,"ix-page-header"),F(1,on,3,9,"ix-button-group",1),l(2,"a",2),y(3),f(4,"translate"),h()(),l(5,"ix-master-detail-view",3,0)(7,"ix-audit-list",4),N("toggleShowMobileDetails",function(o){k(r);let s=$(6);return U(s.toggleShowMobileDetails(o))}),h(),ee(8,5),y(9),f(10,"translate"),ie(),ee(11,6),F(12,sn,1,1,"ix-log-details-panel",7),ie(),h()}if(t&2){let r=$(6);d(),L(n.isHaLicensed()?1:-1),d(),u("routerLink",ye(13,an)),d(),B(" ",g(4,9,"Audit Settings")," "),d(2),u("selectedItem",n.dataProvider.expandedRow)("ixUiSearch",n.searchableElements.elements.audit),d(2),u("dataProvider",n.dataProvider)("isMobileView",r.isMobileView()),d(2),B(" ",g(10,11,"Log Details")," "),d(3),L(n.dataProvider.expandedRow?12:-1)}},dependencies:[Ye,K,De,Fe,Ci,A,qt,Jt,Qe,Ft,At,Et,Vt,I],styles:[`.container[_ngcontent-%COMP%]{gap:16px}[_nghost-%COMP%] .header-container .title-container .actions-container{gap:0 16px}[_nghost-%COMP%] .header-container .title-container .actions-container p{margin:0}[_nghost-%COMP%] ix-empty-row{height:100%}[_nghost-%COMP%] .user-avatar, [_nghost-%COMP%] .user-avatar>div{align-items:center;display:flex}[_nghost-%COMP%] .user-avatar span, [_nghost-%COMP%] .user-avatar>div span{margin:0 0 0 8px!important}[_nghost-%COMP%] .table-container{flex:2;margin-right:0;max-width:100%}@media (max-width: 600px){[_nghost-%COMP%] .table-container table{width:auto}}[_nghost-%COMP%] .table-container table tbody tr, [_nghost-%COMP%] .table-container .audit-header-row tr{align-items:center;display:grid;grid-gap:8px;grid-template-columns:minmax(auto,.8fr) 1fr 1fr .8fr 1.2fr}@media (max-width: 960px){[_nghost-%COMP%] .table-container table tbody tr, [_nghost-%COMP%] .table-container .audit-header-row tr{grid-template-columns:1fr 1fr 1fr 1fr 1.2fr}[_nghost-%COMP%] .table-container table tbody tr th, [_nghost-%COMP%] .table-container table tbody tr td, [_nghost-%COMP%] .table-container .audit-header-row tr th, [_nghost-%COMP%] .table-container .audit-header-row tr td{padding:0 8px!important}}@media (max-width: 600px){[_nghost-%COMP%] .table-container table tbody tr, [_nghost-%COMP%] .table-container .audit-header-row tr{grid-template-columns:90px 80px 100px 110px 110px}}[_nghost-%COMP%] .table-container .audit-header-row tr{align-items:center;background:var(--bg1);border-bottom:1px solid var(--lines);color:var(--fg2);display:grid;grid-gap:8px;min-height:48px;min-width:fit-content;position:sticky;top:0;width:100%;z-index:1}[_nghost-%COMP%] .table-container .audit-header-row tr>
9div{align-items:center;display:flex;font-weight:700;height:100%;justify-content:flex-start;padding:4px 0}@media (max-width: 767px){[_nghost-%COMP%] .table-container .audit-header-row tr>div{display:none!important}}.item-search[_ngcontent-%COMP%]{margin:0}.details-container[_ngcontent-%COMP%]{flex:1;max-width:100%;padding-bottom:53px;top:53px}.header-card[_ngcontent-%COMP%]{border-radius:0;margin-bottom:16px} 10/*# sourceMappingURL=audit.component-2W7EJQJI.css.map */`],changeDetection:0})}};gt=rn([z()],gt);var Ga=[{path:"",data:{title:"Audit"},component:gt,pathMatch:"full"},{path:":options",data:{title:"Audit"},component:gt,pathMatch:"full"}];export{Ga as auditRoutes}; 11//# sourceMappingURL=chunk-6JOYTBZC.js.map 12 13//# debugId=a941dc0b-cc5f-5fae-a6e3-370c2e48afe9
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.