1"use strict";(self.webpackChunkwebapp=self.webpackChunkwebapp||[]).push([[472],{87472:(Ye,y,a)=>{a.r(y),a.d(y,{LogsModule:()=>be});var H=a(88796),K=a(21729),v=a(55471),M=a(27302),p=a(26585),Z=a(53308),f=a(86399),e=a(94650),W=a(74485),C=a(89653);let P=(()=>{class o{constructor(n,t){this.environmentService=n,this.store=t}canActivate(){const{id_environment:n}=M.FI.Store.getValueSync(this.store,p.dk.Selectors.router.getURLParams);return n!==Z.Y.xU&&n!==Z.Y.rX?this.environmentService.redirectToSection("logs"):((0,f.Gp)(this.store),!0)}}return o.\u0275fac=function(n){return new(n||o)(e.LFG(W.L),e.LFG(C.yh))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac}),o})();const j=[P];var A=a(36806),$=a(73906),u=a(45318),m=a(54004),r=a(1576),d=a(36895),S=a(3868),R=a(4859),V=a(98739),ee=a(73162),D=a(10266),L=a(65412),F=a(46323),b=a(4200),I=a(55829),G=a(24006),ne=a(3238),E=a(99602),te=a(44850),x=a(59549),oe=a(44144),_e=a(84385);function ie(o,_){if(1&o&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&o){const n=_.$implicit;e.Q6J("value",n.code),e.xp6(1),e.hij(" ",n.code," ")}}function se(o,_){if(1&o&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&o){const n=_.$implicit;e.Q6J("value",n),e.xp6(1),e.hij(" ",n," ")}}const ae=function(){return["far","times-circle"]};let Y=(()=>{class o{constructor(n,t,i){this.data=n,this.dialogRef=t,this.store=i,this.logsCodes=b.B,this.methods=b._Y}ngOnInit(){this.data.filters&&(this.filters={...this.data.filters,dt_from:this.data.filters.dt_from?new Date(1e3*this.data.filters.dt_from).toISOString():void 0,dt_to:this.data.filters.dt_to?new Date(1e3*this.data.filters.dt_to).toISOString():void 0}),this.app$=this.store.select(p.dk.Selectors.router.getApp),this.maxDate=new Date,this.minDate=new Date,this.minDate.setDate(this.minDate.getDate()-15)}close(){this.dialogRef.close()}dateToChange(n){n&&n.value&&n.value.setHours(23,59,59,999)}onResetFilters(){this.filters={}}saveFilter(){(0,F.clearEmptyObjectProperties)(this.filters),this.dialogRef.close(this.filters)}}return o.\u0275fac=function(n){return new(n||o)(e.Y36(L.WI),e.Y36(L.so),e.Y36(C.yh))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-logs-filters-modal"]],decls:60,vars:26,consts:function(){let _,n,t,i,s,l,c,g,N,T,X,Q,z;return _="Filters",n="Reset filters",t="RID",i="Code",s="Request URL",l="Method",c="Token",g="API key",N="User ID",T="Date range",X="From",Q="To",z="Show results",[["fxLayout","row","fxLayoutAlign","space-between center",1,"dialog-header",3,"ngClass"],["mat-dialog-title",""],_,["fxLayout","row","fxLayoutAlign","space-between center"],["mat-button","",1,"reset-filters",3,"click"],n,["mat-button","",1,"ghost-btn","no-hover"],["fxLayout","column","fxLayoutAlign","center center",1,"dialog-close",3,"click"],[3,"icon"],[1,"with-buttons","with-padding",3,"ngClass"],[1,"outline-form"],["appearance","outline"],t,["matInput","",3,"ngModel","ngModelChange"],i,[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],s,l,c,g,N,["fxLayout","row","fxLayoutGap","8px",1,"property"],T,[3,"rangePicker","max","min"],["matStartDate","","placeholder",X,"readonly","",3,"ngModel","ngModelChange","click"],["matEndDate","","placeholder",Q,"readonly","",3,"ngModel","ngModelChange","click","dateChange"],["matSuffix","",3,"for"],["picker",""],["fxLayout","row","fxLayoutAlign","center center",1,"dialog-buttons",3,"ngClass"],["mat-raised-button","","color","primary",3,"click"],z,[3,"value"]]},template:function(n,t){if(1&n){const i=e.EpF();e.TgZ(0,"div",0),e.ALo(1,"async"),e.TgZ(2,"h2",1),e.SDv(3,2),e.qZA(),e.TgZ(4,"div",3)(5,"button",4),e.NdJ("click",function(){return t.onResetFilters()}),e.SDv(6,5),e.qZA(),e.TgZ(7,"button",6)(8,"div",7),e.NdJ("click",function(){return t.close()}),e._UZ(9,"fa-icon",8),e.TgZ(10,"div"),e._uU(11,"[esc]"),e.qZA()()()()(),e.TgZ(12,"mat-dialog-content",9),e.ALo(13,"async"),e.TgZ(14,"div",10)(15,"mat-form-field",11)(16,"mat-label"),e.SDv(17,12),e.qZA(),e.TgZ(18,"input",13),e.NdJ("ngModelChange",function(l){return t.filters.pid=l}),e.qZA()(),e._UZ(19,"mat-divider"),e.TgZ(20,"mat-form-field",11)(21,"mat-label"),e.SDv(22,14),e.qZA(),e.TgZ(23,"mat-select",15),e.NdJ("ngModelChange",function(l){return t.filters.code=l}),e.YNc(24,ie,2,2,"mat-option",16),e.qZA()(),e.TgZ(25,"mat-form-field",11)(26,"mat-label"),e.SDv(27,17),e.qZA(),e.TgZ(28,"input",13),e.NdJ("ngModelChange",function(l){return t.filters.request_url=l}),e.qZA()(),e.TgZ(29,"mat-form-field",11)(30,"mat-label"),e.SDv(31,18),e.qZA(),e.TgZ(32,"mat-select",15),e.NdJ("ngModelChange",function(l){return t.filters.method=l}),e.YNc(33,se,2,2,"mat-option",16),e.qZA()(),e.TgZ(34,"mat-form-field",11)(35,"mat-label"),e.SDv(36,19),e.qZA(),e.TgZ(37,"input",13),e.NdJ("ngModelChange",function(l){return t.filters.used_token=l}),e.qZA()(),e.TgZ(38,"mat-form-field",11)(39,"mat-label"),e.SDv(40,20),e.qZA(),e.TgZ(41,"input",13),e.NdJ("ngModelChange",function(l){return t.filters.api_key=l}),e.qZA()(),e.TgZ(42,"mat-form-field",11)(43,"mat-label"),e.SDv(44,21),e.qZA(),e.TgZ(45,"input",13),e.NdJ("ngModelChange",function(l){return t.filters.id_user=l}),e.qZA()(),e.TgZ(46,"div",22)(47,"mat-form-field",11)(48,"mat-label"),e.SDv(49,23),e.qZA(),e.TgZ(50,"mat-date-range-input",24)(51,"input",25),e.NdJ("ngModelChange",function(l){return t.filters.dt_from=l})("click",function(){e.CHM(i);const l=e.MAs(55);return e.KtG(l.open())}),e.qZA(),e.TgZ(52,"input",26),e.NdJ("ngModelChange",function(l){return t.filters.dt_to=l})("click",function(){e.CHM(i);const l=e.MAs(55);return e.KtG(l.open())})("dateChange",function(l){return t.dateToChange(l)}),e.qZA()(),e._UZ(53,"mat-datepicker-toggle",27)(54,"mat-date-range-picker",null,28),e.qZA()()()(),e.TgZ(56,"div",29),e.ALo(57,"async"),e.TgZ(58,"button",30),e.NdJ("click",function(){return t.saveFilter()}),e.SDv(59,31),e.qZA()()}if(2&n){const i=e.MAs(55);e.Q6J("ngClass",e.lcZ(1,19,t.app$)),e.xp6(9),e.Q6J("icon",e.DdM(25,ae)),e.xp6(3),e.Q6J("ngClass",e.lcZ(13,21,t.app$)),e.xp6(6),e.Q6J("ngModel",t.filters.pid),e.xp6(
15),e.Q6J("ngModel",t.filters.code),e.xp6(1),e.Q6J("ngForOf",t.logsCodes),e.xp6(4),e.Q6J("ngModel",t.filters.request_url),e.xp6(4),e.Q6J("ngModel",t.filters.method),e.xp6(1),e.Q6J("ngForOf",t.methods),e.xp6(4),e.Q6J("ngModel",t.filters.used_token),e.xp6(4),e.Q6J("ngModel",t.filters.api_key),e.xp6(4),e.Q6J("ngModel",t.filters.id_user),e.xp6(5),e.Q6J("rangePicker",i)("max",t.maxDate)("min",t.minDate),e.xp6(1),e.Q6J("ngModel",t.filters.dt_from),e.xp6(1),e.Q6J("ngModel",t.filters.dt_to),e.xp6(1),e.Q6J("for",i),e.xp6(3),e.Q6J("ngClass",e.lcZ(57,23,t.app$))}},dependencies:[d.mk,d.sg,r.xw,r.SQ,r.Wh,I.oO,G.Fj,G.JJ,G.On,S.BN,ne.ey,R.lW,E.nW,E.wx,E.zY,E.By,E._g,L.uh,L.xY,te.d,x.KE,x.hX,x.R9,oe.Nt,_e.gD,d.Ov],changeDetection:0}),o})();function le(o,_){if(1&o){const n=e.EpF();e.TgZ(0,"div",6)(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"fa-icon",7),e.NdJ("click",function(i){e.CHM(n);const s=e.oxw();return e.KtG(s.deleteDates(i))}),e.qZA()()}if(2&o){const n=e.oxw();e.xp6(2),e.Oqu(n.formatDateRange())}}function re(o,_){if(1&o){const n=e.EpF();e.TgZ(0,"div",6)(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"fa-icon",7),e.NdJ("click",function(i){e.CHM(n);const s=e.oxw();return e.KtG(s.deleteFilter("pid",i))}),e.qZA()()}if(2&o){const n=e.oxw();e.xp6(2),e.Oqu(n.filters.pid)}}function de(o,_){if(1&o){const n=e.EpF();e.TgZ(0,"div",6)(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"fa-icon",7),e.NdJ("click",function(i){e.CHM(n);const s=e.oxw();return e.KtG(s.deleteFilter("code",i))}),e.qZA()()}if(2&o){const n=e.oxw();e.xp6(2),e.Oqu(n.filters.code)}}function ge(o,_){if(1&o){const n=e.EpF();e.TgZ(0,"div",6)(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"fa-icon",7),e.NdJ("click",function(i){e.CHM(n);const s=e.oxw();return e.KtG(s.deleteFilter("request_url",i))}),e.qZA()()}if(2&o){const n=e.oxw();e.xp6(2),e.Oqu(n.filters.request_url)}}function Oe(o,_){if(1&o){const n=e.EpF();e.TgZ(0,"div",6)(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"fa-icon",7),e.NdJ("click",function(i){e.CHM(n);const s=e.oxw();return e.KtG(s.deleteFilter("method",i))}),e.qZA()()}if(2&o){const n=e.oxw();e.xp6(2),e.Oqu(n.filters.method)}}function Te(o,_){if(1&o){const n=e.EpF();e.TgZ(0,"div",6)(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"fa-icon",7),e.NdJ("click",function(i){e.CHM(n);const s=e.oxw();return e.KtG(s.deleteFilter("used_token",i))}),e.qZA()()}if(2&o){const n=e.oxw();e.xp6(2),e.Oqu(n.filters.used_token)}}function ce(o,_){if(1&o){const n=e.EpF();e.TgZ(0,"div",6)(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"fa-icon",7),e.NdJ("click",function(i){e.CHM(n);const s=e.oxw();return e.KtG(s.deleteFilter("id_user",i))}),e.qZA()()}if(2&o){const n=e.oxw();e.xp6(2),e.Oqu(n.filters.id_user)}}function pe(o,_){if(1&o){const n=e.EpF();e.TgZ(0,"div",6)(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"fa-icon",7),e.NdJ("click",function(i){e.CHM(n);const s=e.oxw();return e.KtG(s.deleteFilter("api_key",i))}),e.qZA()()}if(2&o){const n=e.oxw();e.xp6(2),e.Oqu(n.filters.api_key)}}let J=(()=>{class o{constructor(n,t){this.dialog=n,this.localeId=t,this.filtersChanged=new e.vpe}openModal(){this.dialog.open(Y,{data:{filters:this.filters},width:"440px"}).afterClosed().subscribe(t=>{if(t){let i={...t,dt_from:t.dt_from?Math.trunc(new Date(t.dt_from).getTime()/1e3):void 0,dt_to:t.dt_to?Math.trunc(new Date(t.dt_to).getTime()/1e3):void 0};this.filtersChanged.emit(i)}})}deleteDates(n){n.stopPropagation(),this.filters.dt_from=this.filters.dt_to=void 0,this.filtersChanged.emit(this.filters)}deleteFilter(n,t){t.stopPropagation(),this.filters[n]=void 0,this.filtersChanged.emit(this.filters)}formatDateRange(){const n=this.localeId.split("-")[0],t=new Date(1e3*this.filters.dt_from),i=new Date(1e3*this.filters.dt_to);return t.setHours(0,0,0,0),i.setHours(0,0,0,0),this.filters.dt_from&&this.filters.dt_to&&t.getTime()===i.getTime()?t.toLocaleDateString(n):`${this.filters.dt_from?t.toLocaleDateString(n):""}-${this.filters.dt_to?i.toLocaleDateString(n):""}`}}return o.\u0275fac=function(n){return new(n||o)(e.Y36(L.uw),e.Y36(e.soG))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-logs-filters"]],inputs:{filters:"filters"},outputs:{filtersChanged:"filtersChanged"},decls:13,vars:8,consts:function(){let _;return _="Filters",[[1,"filter-search",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"scroll-content"],["icon","sliders-h",1,"sliders"],[1,"filters-name"],_,["class","search-keyword","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"search-keyword"],["icon","times",3,"click"]]},template:function(n,t){1&n&&(e.TgZ(0,"div",0),e.NdJ("click",function(){return t.openModal()}),e.TgZ(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"div",3),e.SDv(4,4),e.qZA(),e.YNc(5,le,4,1,"div",5),e.YNc(6,re,4,1,"div",5),e.YNc(7,de,4,1,"div",5),e.YNc(8,ge,4,1,"div",5),e.YNc(9,Oe,4,1,"div",5),e.YNc(10,Te,4,1,"div",5),e.YNc(11,ce,4,1,"div",5),e.YNc(12,pe,4,1,"div",5),e.qZA()()),2&n&&(e.xp6(5),e.Q6J("ngIf",t.filters.dt_from||t.filters.dt_to),e.xp6(1),e.Q6J("ngIf",t.filters.pid),e.xp6(1),e.Q6J("ngIf",t.filters.code),e.xp6(1),e.Q6J("ngIf",t.filters.request_url),e.xp6(1),e.Q6J("ngIf",t.filters.method),e.xp6(1),e.Q6J("ngIf",t.filters.used_token),e.xp6(1),e.Q6J("ngIf",t.filters.id_user),e.xp6(1),e.Q6J("ngIf",t.filters.api_key))},dependencies:[d.O5,r.xw,r.Wh,S.BN],changeDetection:0}),o})();var w=a(79746),U=a(33065),Le=a(17009),Ee=a(64425);const Ne=function(o,_,n){return{success:o,warning:_,error:n}};let k=(()=>{class o{constructor(){}parseInt(n){return Math.floor(n)}}return o.\u0275fac=function(n){return new(n||o)}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["app-response-code"]],inputs:{code:"code"},decls:2,vars:6,consts:[[3,"ngClass"]],template:function(n,t){1&n&&(e.TgZ(0,"div",0),e._uU(1),e.qZA()),2&n&&(e.Q6J("ngClass",e.kEZ(2,Ne,2===t.parseInt(t.code/100),4===t.parseInt(t.code/100),5===t.parseInt(t.code/100))),e.xp6(1),e.hij(" ",t.code,"\n"))},dependencies:[d.mk,I.oO],styles:["div[_ngcontent-%COMP%]{width:34px;height:18px;border-radius:6px;font-size:11px;line-height:18px;color:#fff;font-family:PoppinsRegular,sans-serif;text-align:center;background-color:#dde4ec}.warning[_ngcontent-%COMP%]{background:#edb549}"],changeDetection:0}),o})();const Se=["copyError"];function Me(o,_){1&o&&(e.ynx(0),e._UZ(1,"fa-icon",20),e.TgZ(2,"span"),e.SDv(3,21),e.qZA(),e.BQk())}function fe(o,_){1&o&&(e.ynx(0),e._UZ(1,"fa-icon",22),e.TgZ(2,"span"),e.SDv(3,23),e.qZA(),e.BQk())}function Ce(o,_){if(1&o&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&o){const n=e.oxw();e.xp6(1),e.Oqu(n.log.entry)}}function Pe(o,_){1&o&&(e.TgZ(0,"span",24),e._UZ(1,"fa-icon",25),e.qZA())}function Ae(o,_){1&o&&e._UZ(0,"fa-icon",26)}function ue(o,_){1&o&&e._UZ(0,"fa-icon",27)}function me(o,_){if(1&o&&(e.TgZ(0,"span",46),e._uU(1),e.qZA()),2&o){const n=e.oxw(3);e.xp6(1),e.Oqu(n.log.$extra[1].content.message)}}function Re(o,_){if(1&o){const n=e.EpF();e.ynx(0),e.TgZ(1,"button",44),e.NdJ("click",function(i){return i.stopPropagation()})("copied",function(i){e.CHM(n);const s=e.oxw(2);return e.KtG(s.onCopiedToClipboard(i))}),e._UZ(2,"fa-icon",12),e.qZA(),e.YNc(3,me,2,1,"span",45),e.BQk()}if(2&o){const n=e.oxw(2);e.xp6(1),e.Q6J("cdkCopyToClipboard",n.toString(n.log.$extra[1])),e.xp6(2),e.Q6J("ngIf",n.log.$extra[1].content&&n.log.$extra[1].content.message)}}function Ie(o,_){if(1&o&&(e.TgZ(0,"span",34),e._uU(1),e.ALo(2,"date"),e.ALo(3,"date"),e.qZA()),2&o){const n=e.oxw(2);e.xp6(1),e.AsE("",e.xi3(2,2,1e3*n.log.$extra[1].dt_at,"dd MMM yy"),"\xa0-\xa0",e.xi3(3,5,1e3*n.log.$extra[1].dt_at,"HH:mm:ss"),"")}}function Ge(o,_){if(1&o&&e._UZ(0,"markdown",35),2&o){const n=e.oxw(2);e.Q6J("data",n.toMarkdown(n.log.$extra[1]))}}function xe(o,_){1&o&&(e.TgZ(0,"div",47),e._UZ(1,"fa-icon",48),e.TgZ(2,"span"),e.SDv(3,49),e.qZA()())}function he(o,_){if(1&o){const n=e.EpF();e.TgZ(0,"div",28),e._UZ(1,"div"),e.TgZ(2,"div",29)(3,"div",30)(4,"div",31)(5,"p"),e.SDv(6,32),e.qZA(),e.TgZ(7,"button",33),e.NdJ("click",function(i){return i.stopPropagation()})("copied",function(i){e.CHM(n);const s=e.oxw();return e.KtG(s.onCopiedToClipboard(i))}),e._UZ(8,"fa-icon",12),e.qZA()(),e.TgZ(9,"span",34),e._uU(10),e.ALo(11,"date"),e.ALo(12,"date"),e.qZA()(),e._UZ(13,"markdown",35),e.qZA(),e.TgZ(14,"div",36)(15,"fa-icon",37),e.NdJ("click",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.expandedChanged.emit(i.log))}),e.qZA()(),e.TgZ(16,"div",38)(17,"div",30)(18,"div",31)(19,"p"),e.SDv(20,39),e.qZA(),e._UZ(21,"app-response-code",4),e.YNc(22,Re,4,2,"ng-container",40),e.qZA(),e.YNc(23,Ie,4,8,"span",41),e.qZA(),e.YNc(24,Ge,1,1,"markdown",42),e.YNc(25,xe,4,0,"ng-template",null,43,e.W1O),e.qZA()()}if(2&o){const n=e.MAs(26),t=e.oxw();e.xp6(7),e.Q6J("cdkCopyToClipboard",t.toString(t.log.$extra[0])),e.xp6(3),e.AsE("",e.xi3(11,9,1e3*t.log.$extra[0].dt_at,"dd MMM yy"),"\xa0-\xa0",e.xi3(12,12,1e3*t.log.$extra[0].dt_at,"HH:mm:ss"),""),e.xp6(3),e.Q6J("data",t.toMarkdown(t.log.$extra[0])),e.xp6(8),e.Q6J("code",t.log.code),e.xp6(1),e.Q6J("ngIf",t.log.$extra[1]),e.xp6(1),e.Q6J("ngIf",t.log.$extra[1]),e.xp6(1),e.Q6J("ngIf",t.log.$extra[1])("ngIfElse",n)}}let q=(()=>{class o{constructor(n){this._snackbar=n,this.expanded=!1,this.expandedChanged=new e.vpe}onCopiedToClipboard(n){n?this._snackbar.openFromComponent(U.sS,w.SNACKBAR_DEFAULT_CONFIG):this._snackbar.openFromComponent(U.y8,{data:this.copyError.nativeElement.textContent||"An error has occurred. Try again later.",...w.SNACKBAR_DEFAULT_CONFIG})}parseInt(n){return Math.floor(n)}toMarkdown(n,t="json"){return(0,F.toMarkdown)(n,t)}toString(n){return JSON.stringify(n)}}return o.\u0275fac=function(n){return new(n||o)(e.Y36(Le.ux))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-logs-item"]],viewQuery:function(n,t){if(1&n&&e.Gf(Se,7),2&n){let i;e.iGM(i=e.CRH())&&(t.copyError=i.first)}},inputs:{expanded:"expanded",log:"log"},outputs:{expandedChanged:"expandedChanged"},decls:32,vars:20,consts:function(){let _,n,t,i,s,l,c,g,N;return _="Copy",n="An error has occurred. Try again later.",t="Request",i="Webhook",s="REQUEST",l="Copy",c="RESPONSE",g="Copy",N="There's no response.",[["fxLayout","row","fxLayoutAlign","start center",1,"row-item",3,"click"],["fxFlex","11","fxLayout","column"],[1,"sub-text"],["fxFlex","10"],[3,"code"],["fxFlex","10",1,"entry",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxFlex","","fxLayout","row"],["class","icon-warning",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-button","","matTooltip",_,3,"cdkCopyToClipboard","click","copied"],["
1icon","copy"],["fxFlex","9","fxLayout","row","fxLayoutAlign","space-between center"],["class","chevron","icon","chevron-down",4,"ngIf"],["class","chevron","icon","chevron-up",4,"ngIf"],["class","expanded-container","fxLayout","row",4,"ngIf"],["fxHide",""],["copyError",""],n,["icon","cloud-download-alt"],t,["icon","cloud-upload-alt"],i,[1,"icon-warning"],["icon","exclamation-triangle"],["icon","chevron-down",1,"chevron"],["icon","chevron-up",1,"chevron"],["fxLayout","row",1,"expanded-container"],["fxFlex","48","fxLayout","column",1,"request-container"],["fxFlex","none","fxLayout","row","fxLayoutAlign","space-between center",1,"expanded-header"],["fxLayout","row","fxLayoutAlign","center center"],s,["mat-button","","matTooltip",l,3,"cdkCopyToClipboard","click","copied"],[1,"expanded-date"],["fxFlex","",3,"data"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","",1,"centered-item"],["icon","caret-up",3,"click"],["fxFlex","48","fxLayout","column",1,"response-container"],c,[4,"ngIf"],["class","expanded-date",4,"ngIf"],["fxFlex","",3,"data",4,"ngIf","ngIfElse"],["noResponse",""],["mat-button","","matTooltip",g,3,"cdkCopyToClipboard","click","copied"],["class","response-message",4,"ngIf"],[1,"response-message"],["fxLayout","column","fxLayoutAlign","center center","fxLayoutGap","4px",1,"no-response"],["icon","times"],N]},template:function(n,t){1&n&&(e.TgZ(0,"div",0),e.NdJ("click",function(){return t.expandedChanged.emit(t.log)}),e.TgZ(1,"div",1)(2,"span"),e._uU(3),e.ALo(4,"date"),e.qZA(),e.TgZ(5,"span",2),e._uU(6),e.ALo(7,"date"),e.qZA()(),e.TgZ(8,"div",3),e._UZ(9,"app-response-code",4),e.qZA(),e.TgZ(10,"div",5),e.YNc(11,Me,4,0,"ng-container",6),e.YNc(12,fe,4,0,"ng-container",6),e.YNc(13,Ce,2,1,"span",7),e.qZA(),e.TgZ(14,"div",8),e.YNc(15,Pe,2,0,"span",9),e.TgZ(16,"span"),e._uU(17),e.qZA()(),e.TgZ(18,"div",10)(19,"span"),e._uU(20),e.qZA(),e.TgZ(21,"button",11),e.NdJ("click",function(s){return s.stopPropagation()})("copied",function(s){return t.onCopiedToClipboard(s)}),e._UZ(22,"fa-icon",12),e.qZA()(),e.TgZ(23,"div",13)(24,"span"),e._uU(25),e.qZA(),e.YNc(26,Ae,1,0,"fa-icon",14),e.YNc(27,ue,1,0,"fa-icon",15),e.qZA()(),e.YNc(28,he,27,15,"div",16),e.TgZ(29,"span",17,18),e.SDv(31,19),e.qZA()),2&n&&(e.xp6(3),e.Oqu(e.xi3(4,14,1e3*t.log.dt_start_at,"dd MMM yy")),e.xp6(3),e.Oqu(e.xi3(7,17,1e3*t.log.dt_start_at,"HH:mm:ss")),e.xp6(3),e.Q6J("code",t.log.code),e.xp6(1),e.Q6J("ngSwitch",t.log.entry),e.xp6(1),e.Q6J("ngSwitchCase","request"),e.xp6(1),e.Q6J("ngSwitchCase","webhook"),e.xp6(3),e.Q6J("ngIf",t.log.warnings.length>0),e.xp6(2),e.Oqu(t.log.description),e.xp6(3),e.Oqu(t.log.pid),e.xp6(1),e.Q6J("cdkCopyToClipboard",t.log.pid),e.xp6(4),e.Oqu(t.log.elapse),e.xp6(1),e.Q6J("ngIf",!t.expanded),e.xp6(1),e.Q6J("ngIf",t.expanded),e.xp6(1),e.Q6J("ngIf",t.expanded&&t.log.$extra))},dependencies:[v.lF,d.O5,d.RF,d.n9,d.ED,r.xw,r.SQ,r.Wh,r.yH,I.b8,S.BN,Ee.i3,R.lW,D.gM,k,d.uU],styles:[".expanded-container[_ngcontent-%COMP%]{padding:20px;height:300px;box-sizing:content-box!important}.expanded-container[_ngcontent-%COMP%] app-response-code[_ngcontent-%COMP%]{margin-left:14px;margin-right:6px}.expanded-container[_ngcontent-%COMP%] .centered-item[_ngcontent-%COMP%]{min-width:21px}.expanded-container[_ngcontent-%COMP%] .centered-item[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:12px;cursor:pointer}.expanded-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{margin-bottom:0}.expanded-container[_ngcontent-%COMP%] .expanded-header[_ngcontent-%COMP%]{padding:0 20px;height:40px}.expanded-container[_ngcontent-%COMP%] .expanded-header[_ngcontent-%COMP%] .expanded-date[_ngcontent-%COMP%]{font-size:11px}.expanded-container[_ngcontent-%COMP%] .expanded-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:12px;text-transform:uppercase}.expanded-container[_ngcontent-%COMP%] .expanded-header[_ngcontent-%COMP%] .response-message[_ngcontent-%COMP%]{font-size:11px}.expanded-container[_ngcontent-%COMP%] markdown[_ngcontent-%COMP%] :not(pre)>code[class*=language-], .expanded-container[_ngcontent-%COMP%] markdown[_ngcontent-%COMP%] pre{font-size:12px!important;max-height:252px;height:100%;overflow:auto!important;margin-top:0;margin-bottom:0;border-radius:0}.expanded-container[_ngcontent-%COMP%] markdown[_ngcontent-%COMP%] :not(pre)>code[class*=language-]::-webkit-scrollbar, .expanded-container[_ngcontent-%COMP%] markdown[_ngcontent-%COMP%] pre::-webkit-scrollbar{display:none}
1.expanded-container[_ngcontent-%COMP%] .no-response[_ngcontent-%COMP%]{padding:12px;font-size:14px;max-height:252px;height:100%;opacity:.5}.expanded-container[_ngcontent-%COMP%] .no-response[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:30px}.row-item[_ngcontent-%COMP%]{height:50px;padding-left:32px;font-size:14px}.row-item[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{margin-right:15px}.row-item[_ngcontent-%COMP%] .entry[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{margin-right:12px}.row-item[_ngcontent-%COMP%] .entry[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-transform:capitalize}.row-item[_ngcontent-%COMP%] .icon-warning[_ngcontent-%COMP%]{color:#edb548;margin-right:12px}.row-item[_ngcontent-%COMP%] .sub-text[_ngcontent-%COMP%]{font-size:11px;line-height:16px}"],changeDetection:0}),o})();function ye(o,_){1&o&&e._UZ(0,"mat-progress-bar",21)}function ve(o,_){if(1&o){const n=e.EpF();e.TgZ(0,"app-logs-item",22),e.NdJ("expandedChanged",function(){const s=e.CHM(n).$implicit,l=e.oxw();return e.KtG(l.expandLog(s))}),e.qZA()}if(2&o){const n=_.$implicit,t=e.oxw();e.Q6J("expanded",t.expandedLogs[n.id_log_uuid])("log",n)}}let B=(()=>{class o{constructor(){this.expandedChanged=new e.vpe,this.filtersChanged=new e.vpe,this.pageChanged=new e.vpe,this.refresh=new e.vpe}expandLog(n){this.expandedChanged.emit(n)}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-logs-list"]],inputs:{count:"count",expandedLogs:"expandedLogs",filters:"filters",isLoading:"isLoading",logs:"logs",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{expandedChanged:"expandedChanged",filtersChanged:"filtersChanged",pageChanged:"pageChanged",refresh:"refresh"},decls:24,vars:8,consts:function(){let _,n,t,i,s,l,c;return _="Refresh",n="DATE",t="Status",i="Type",s="URL",l="RID",c="ELAPSE",[[1,"section-content"],["fxLayout","row","fxLayoutAlign","center center",1,"header-component"],["fxFlex","",1,"logs-filters-container",3,"filters","filtersChanged"],["mat-icon-button","","matTooltip",_,3,"click"],["icon","sync"],[3,"length","pageSize","hidePageSize","pageIndex","disabled","page"],["fxLayout","column","fxLayoutAlign","start stretch",1,"scrollable-content"],["fxLayout","row","fxLayoutAlign","start center",1,"list-header"],["fxFlex","11"],n,["fxFlex","10"],t,i,["fxFlex",""],s,l,["fxFlex","9"],c,["fxFlex","","mode","indeterminate",4,"ngIf"],[1,"table"],[3,"expanded","log","expandedChanged",4,"ngFor","ngForOf"],["fxFlex","","mode","indeterminate"],[3,"expanded","log","expandedChanged"]]},template:function(n,t){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-logs-filters",2),e.NdJ("filtersChanged",function(s){return t.filtersChanged.emit(s)}),e.qZA(),e.TgZ(3,"button",3),e.NdJ("click",function(){return t.refresh.emit()}),e._UZ(4,"fa-icon",4),e.qZA(),e.TgZ(5,"mat-paginator",5),e.NdJ("page",function(s){return t.pageChanged.emit(s)}),e.qZA()(),e.TgZ(6,"div",6)(7,"div",7)(8,"div",8),e.SDv(9,9),e.qZA(),e.TgZ(10,"div",10),e.SDv(11,11),e.qZA(),e.TgZ(12,"div",10),e.SDv(13,12),e.qZA(),e.TgZ(14,"div",13),e.SDv(15,14),e.qZA(),e.TgZ(16,"div",13),e.SDv(17,15),e.qZA(),e.TgZ(18,"div",16),e.SDv(19,17),e.qZA()(),e.TgZ(20,"div"),e.YNc(21,ye,1,0,"mat-progress-bar",18),e.qZA(),e.TgZ(22,"div",19),e.YNc(23,ve,1,2,"app-logs-item",20),e.qZA()()()),2&n&&(e.xp6(2),e.Q6J("filters",t.filters),e.xp6(3),e.Q6J("length",t.count)("pageSize",t.pageSize)("hidePageSize",!0)("pageIndex",t.pageIndex)("disabled",t.isLoading),e.xp6(16),e.Q6J("ngIf",t.isLoading),e.xp6(2),e.Q6J("ngForOf",t.logs))},dependencies:[d.sg,d.O5,r.xw,r.Wh,r.yH,S.BN,R.lW,V.NW,ee.pW,D.gM,J,q],styles:[".chevron[_ngcontent-%COMP%]{font-size:12px;line-height:14px;min-width:10px;max-width:30px;margin-right:26px}.header-component[_ngcontent-%COMP%]{height:64px;padding-left:12px}[_nghost-%COMP%]{flex-direction:column;overflow:hidden;height:100%}.scrollable-content[_ngcontent-%COMP%]{overflow:auto;height:calc(100vh - 164px)}"],changeDetection:0}),o})(),h=(()=>{class o{constructor(n,t){this.store=n,this.router=t,this.expandedLogs={}}ngOnInit(){this.filters$=this.store.select(p.dk.Selectors.router.getQueryParams).pipe((0,m.U)(({filters:n})=>
1(0,$.logsFiltersParse)(n))),this.isLoadingLogs$=this.store.select(u.qB.Selectors.logs.isLoadingLogs),this.logs$=this.store.select(u.qB.Selectors.logs.getLogsList),this.logsCount$=this.store.select(u.qB.Selectors.logs.getLogsCount),this.pageSize$=this.store.select(p.dk.Selectors.router.getQueryParams).pipe((0,m.U)(({size:n})=>n||M.gT.PAGINATION.DEFAULT_PAGE_SIZE)),this.pageIndex$=this.store.select(p.dk.Selectors.router.getQueryParams).pipe((0,m.U)(({page:n})=>n||M.gT.PAGINATION.DEFAULT_INITIAL_PAGE))}onExpandedChanged(n){n.$extra||(0,f.tx)(this.store,n.id_log_uuid),this.expandedLogs[n.id_log_uuid]?delete this.expandedLogs[n.id_log_uuid]:this.expandedLogs[n.id_log_uuid]=!0}onFiltersChanged(n){this.router.navigate([],{queryParams:{filters:(0,$.logsFiltersStringify)(n)}}),this.expandedLogs={}}onPageChanged(n){this.router.navigate([],{queryParams:{page:n.pageIndex},queryParamsHandling:"merge"}),this.expandedLogs={}}refreshLogs(){(0,f.Gp)(this.store),this.expandedLogs={}}}return o.\u0275fac=function(n){return new(n||o)(e.Y36(C.yh),e.Y36(A.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-logs"]],decls:13,vars:19,consts:function(){let _,n;return _="HTTP Logs",n="Logs of the last 15 days.",[["fxLayout","column","fxLayoutAlign","start none",1,"section-container","lib-payments"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","start center","fxLayoutAlign.xs","center start","fxFlex","none",1,"section-topbar"],[1,"section-title"],_,[1,"note"],n,[3,"count","expandedLogs","logs","filters","isLoading","pageIndex","pageSize","expandedChanged","filtersChanged","pageChanged","refresh"]]},template:function(n,t){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"h1",2),e.SDv(3,3),e.qZA(),e.TgZ(4,"span",4),e.SDv(5,5),e.qZA()(),e.TgZ(6,"app-logs-list",6),e.NdJ("expandedChanged",function(s){return t.onExpandedChanged(s)})("filtersChanged",function(s){return t.onFiltersChanged(s)})("pageChanged",function(s){return t.onPageChanged(s)})("refresh",function(){return t.refreshLogs()}),e.ALo(7,"async"),e.ALo(8,"async"),e.ALo(9,"async"),e.ALo(10,"async"),e.ALo(11,"async"),e.ALo(12,"async"),e.qZA()()),2&n&&(e.xp6(6),e.Q6J("count",e.lcZ(7,7,t.logsCount$))("expandedLogs",t.expandedLogs)("logs",e.lcZ(8,9,t.logs$))("filters",e.lcZ(9,11,t.filters$))("isLoading",e.lcZ(10,13,t.isLoadingLogs$))("pageIndex",e.lcZ(11,15,t.pageIndex$))("pageSize",e.lcZ(12,17,t.pageSize$)))},dependencies:[r.xw,r.Wh,r.yH,B,d.Ov],styles:[".note[_ngcontent-%COMP%]{font-size:14px;line-height:25px;margin-left:20px}@media only screen and (max-width: 600px){.note[_ngcontent-%COMP%]{font-size:11px;margin-left:0;margin-top:-20px}}"],changeDetection:0}),o})();const De=[{path:":id_environment",component:h,canActivate:[P],runGuardsAndResolvers:"paramsOrQueryParamsChange"},{path:"",component:h,canActivate:[P]}];let Fe=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[A.Bz.forChild(De),A.Bz]}),o})(),be=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({providers:[...j],imports:[v.JP.forRoot(),Fe,K.m,H.J]}),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.