1import{b as Et,c as It}from"./chunk-3DOPPFZZ.js";import{a as pt}from"./chunk-BFPYKIIC.js";import{a as ct}from"./chunk-4CVZBQNN.js";import{b as ut}from"./chunk-4D5SN44G.js";import"./chunk-6Q5DDO7R.js";import"./chunk-U22BTVEZ.js";import{Ec as gt,Gb as st,Gc as bt,Hc as ht,Ia as rt,Kb as dt,Mb as mt,Xc as _t,Zc as St,b as Q,d as X,id as ft,jc as xt,k as Z,kh as yt,m as tt,ve as Ct,xb as lt,ye as Lt}from"./chunk-X5J6QTCG.js";import{$ as P,$a as b,Ad as A,Fa as r,Ib as t,Jb as u,Ka as F,Kb as f,Lb as G,Ma as Y,Na as k,Oe as nt,Qb as L,Rb as y,Sa as D,Sb as E,U as T,Xa as v,_ as z,ba as H,bb as h,cc as $,d as U,dc as J,fa as x,fi as at,ga as g,gb as c,hb as e,hd as K,ib as i,jb as _,lc as M,nb as O,nc as R,ob as W,pj as ot,qb as w,qc as j,sb as C,tb as p,vd as et,yd as it}from"./chunk-SMW7PHYX.js";import"./chunk-BMIYOSOG.js";var V=(()=>{let d=class d{constructor(a){this.webAPI=a,this.baseUrl="admin/job-log"}searchJobLogs(a){return this.webAPI.getData(`${this.baseUrl}`,this.buildQueryParams(a))}getJobLogDetails(a){return this.webAPI.getData(`${this.baseUrl}/${a}`)}getFilterOptions(){return this.webAPI.getData(`${this.baseUrl}/filter-options`)}buildQueryParams(a){let l=new K;return a.searchTerm?.trim()&&(l=l.set("searchTerm",a.searchTerm.trim())),a.startDate&&(l=l.set("startDate",a.startDate.toISOString())),a.endDate&&(l=l.set("endDate",a.endDate.toISOString())),a.jobId&&(l=l.set("jobId",a.jobId.toString())),a.jobStatusId&&(l=l.set("jobStatusId",a.jobStatusId.toString())),a.clubId&&(l=l.set("clubId",a.clubId.toString())),a.triggeredByClubUserId&&(l=l.set("triggeredByClubUserId",a.triggeredByClubUserId.toString())),a.jobLogId&&(l=l.set("jobLogId",a.jobLogId.toString())),a.hasFailures!==null&&a.hasFailures!==void 0&&(l=l.set("hasFailures",a.hasFailures.toString())),l=l.set("page",a.page.toString()),l=l.set("pageSize",Math.min(a.pageSize,100).toString()),l=l.set("sortColumn",a.sortColumn||"StartDate"),l=l.set("sortDirection",a.sortDirection||"desc"),l}};d.\u0275fac=function(l){return new(l||d)(H(at))},d.\u0275prov=z({token:d,factory:d.\u0275fac,providedIn:"root"});let o=d;return o}
1)();function q(){return{startDate:nt(),page:1,pageSize:25,sortColumn:"StartDate",sortDirection:"desc"}}var vt=[{label:"Failed or completed with errors",value:!0},{label:"Clean runs only",value:!1}];var N=o=>["/admin/error-logs",o],Tt=()=>["/admin/api-logs"],Jt=o=>({jobLogId:o});function Mt(o,d){if(o&1&&(t(0,` 2 `),e(1,"div",30),t(2,` 3 `),e(3,"app-inline-alert",31),t(4),i(),t(5,` 4 `),i(),t(6,` 5 `)),o&2){let n=p();r(4),f(` 6 `,n.error,` 7 `)}}function Rt(o,d){o&1&&(t(0,` 8 `),e(1,"tr"),t(2,` 9 `),e(3,"th",32),t(4,` 10 `),e(5,"div",33),t(6,` 11 ID 12 `),_(7,"p-sortIcon",34),t(8,` 13 `),i(),t(9,` 14 `),i(),t(10,` 15 `),t(11,` 16 `),e(12,"th"),t(13,"Job"),i(),t(14,` 17 `),e(15,"th"),t(16,"Status"),i(),t(17,` 18 `),e(18,"th",35),t(19,` 19 `),e(20,"div",33),t(21,` 20 Started 21 `),_(22,"p-sortIcon",36),t(23,` 22 `),i(),t(24,` 23 `),i(),t(25,` 24 `),e(26,"th"),t(27,"Duration"),i(),t(28,` 25 `),e(29,"th",37),t(30,` 26 `),e(31,"div",33),t(32,` 27 Processed 28 `),_(33,"p-sortIcon",38),t(34,` 29 `),i(),t(35,` 30 `),i(),t(36,` 31 `),e(37,"th",39),t(38,` 32 `),e(39,"div",33),t(40,` 33 Failed 34 `),_(41,"p-sortIcon",40),t(42,` 35 `),i(),t(43,` 36 `),i(),t(44,` 37 `),e(45,"th",41),t(46,"Summary"),i(),t(47,` 38 `),e(48,"th"),t(49,"Actions"),i(),t(50,` 39 `),i(),t(51,` 40 `)),o&2&&(r(3),v("aria-label","Sort by Job Log ID"),r(15),v("aria-label","Sort by Started"),r(11),v("aria-label","Sort by Processed"),r(8),v("aria-label","Sort by Failed"))}function Pt(o,d){if(o&1&&(t(0,` 41 `),e(1,"div",48),t(2,` 42 `),_(3,"i",49),t(4),i(),t(5,` 43 `)),o&2){let n=p().$implicit;r(4),f("",n.triggeredByName,` 44 `)}}function Ft(o,d){if(o&1&&(t(0,` 45 `),e(1,"span",50),t(2),i(),t(3,` 46 `)),o&2){let n=p().$implicit;r(2),u(n.itemsFailed)}}function kt(o,d){if(o&1&&(t(0,` 47 `),e(1,"span",43),t(2),i(),t(3,` 48 `)),o&2){let n=p().$implicit;r(2),u(n.itemsFailed??"\u2014")}}function Vt(o,d){if(o&1&&(t(0,` 49 `),e(1,"a",51),t(2,` 50 `),_(3,"i",52),t(4),i(),t(5,` 51 `)),o&2){let n=p().$implicit;r(),c("routerLink",J(3,N,n.errorId)),v("aria-label","View error "+n.errorId),r(3),f("Error #",n.errorId,` 52 `)}}function Ot(o,d){if(o&1){let n=w();t(0,` 53 `),e(1,"tr"),t(2,` 54 `),e(3,"td"),t(4,` 55 `),e(5,"button",42),C("click",function(){let l=x(n).$implicit,s=p();return g(s.openDetail(l.jobLogId))}),t(6),i(),t(7,` 56 `),i(),t(8,` 57 `),e(9,"td"),t(10,` 58 `),e(11,"span",43),t(12),i(),t(13,` 59 `),b(14,Pt,6,1),i(),t(15,` 60 `),e(16,"td"),t(17,` 61 `),_(18,"app-pill",44),t(19,` 62 `),i(),t(20,` 63 `),e(21,"td"),t(22,` 64 `),e(23,"div",45),t(24),M(25,"utcDate"),i(),t(26,` 65 `),e(27,"div",45),t(28),M(29,"utcDate"),i(),t(30,` 66 `),i(),t(31,` 67 `),e(32,"td"),t(33,` 68 `),e(34,"span",43),t(35),i(),t(36,` 69 `),i(),t(37,` 70 `),e(38,"td"),t(39,` 71 `),e(40,"span",43),t(41),i(),t(42,` 72 `),i(),t(43,` 73 `),e(44,"td"),t(45,` 74 `),b(46,Ft,4,1)(47,kt,4,1),i(),t(48,` 75 `),e(49,"td",41),t(50,` 76 `),e(51,"span",46),t(52),i(),t(53,` 77 `),b(54,Vt,6,5),i(),t(55,` 78 `),e(56,"td"),t(57,` 79 `),e(58,"button",47),C("click",function(){let l=x(n).$implicit,s=p();return g(s.openDetail(l.jobLogId))}),t(59,` 80 Details 81 `),i(),t(60,` 82 `),i(),t(61,` 83 `),i(),t(62,` 84 `)}if(o&2){let n=d.$implicit,a=p();r(5),v("aria-label","View details for job run "+n.jobLogId),r(),f(` 85 #`,n.jobLogId,` 86 `),r(6),u(n.jobName||"Job "+n.jobId),r(2),h(n.triggeredByName?14:-1),r(4),c("text",n.jobStatusName)("status",a.statusPill(n.jobStatusId))("nowrap",!0),r(6),u(R(25,15,n.startDate,"MM/dd
86/yyyy")),r(4),u(R(29,18,n.startDate,"hh:mm:ss a")),r(7),u(a.formatDuration(n.durationSeconds)),r(6),u(n.itemsProcessed??"\u2014"),r(5),h(n.itemsFailed?46:47),r(6),u(n.summary||"\u2014"),r(2),h(n.errorId?54:-1),r(4),v("aria-label","View details for job run "+n.jobLogId)}}function Wt(o,d){o&1&&(t(0,` 87 `),e(1,"tr"),t(2,` 88 `),e(3,"td",53),t(4,` 89 `),e(5,"div",54),t(6,` 90 `),e(7,"app-inline-alert",55),t(8,` 91 No job runs found matching your search criteria 92 `),i(),t(9,` 93 `),i(),t(10,` 94 `),i(),t(11,` 95 `),i(),t(12,` 96 `)),o&2&&(r(7),c("isInline",!0))}function At(o,d){o&1&&(t(0,` 97 `),e(1,"app-loader"),t(2,"Loading job run..."),i(),t(3,` 98 `))}function Bt(o,d){if(o&1&&(t(0,` 99 `),e(1,"app-inline-alert",31),t(2),i(),t(3,` 100 `)),o&2){let n=p();r(2),f(` 101 `,n.detailError,` 102 `)}}function qt(o,d){if(o&1&&(t(0,` 103 `),e(1,"div",67),t(2),i(),t(3,` 104 `)),o&2){let n=p(2);r(2),u(n.detail.summary)}}function Nt(o,d){if(o&1){let n=w();t(0,` 105 `),e(1,"a",68),C("click",function(){x(n);let l=p(2);return g(l.closeDetail())}),t(2,` 106 `),_(3,"i",52),t(4),i(),t(5,` 107 `)}if(o&2){let n=p(2);r(),c("routerLink",J(2,N,n.detail.errorId)),r(3),f("Error #",n.detail.errorId,` 108 `)}}function Ut(o,d){if(o&1&&(t(0,` 109 `),e(1,"app-inline-alert",72),t(2),i(),t(3,` 110 `)),o&2){let n=p(3);r(),c("isInline",!0),r(),G(` 111 Showing the first `,n.detail.details.length," of ",n.detail.detailCount,` detail rows. 112 `)}}function zt(o,d){o&1&&(t(0,` 113 `),e(1,"tr"),t(2,` 114 `),e(3,"th"),t(4,"Club"),i(),t(5,` 115 `),e(6,"th"),t(7,"Status"),i(),t(8,` 116 `),e(9,"th"),t(10,"Processed"),i(),t(11,` 117 `),e(12,"th"),t(13,"Succeeded"),i(),t(14,` 118 `),e(15,"th"),t(16,"Failed"),i(),t(17,` 119 `),e(18,"th"),t(19,"Message"),i(),t(20,` 120 `),e(21,"th"),t(22,"Error"),i(),t(23,` 121 `),i(),t(24,` 122 `))}function Ht(o,d){if(o&1){let n=w();t(0,` 123 `),e(1,"a",73),C("click",function(){x(n);let l=p(4);return g(l.closeDetail())}),t(2),i(),t(3,` 124 `)}if(o&2){let n=p().$implicit;r(),c("routerLink",J(2,N,n.errorId)),r(),f("#",n.errorId)}}function Yt(o,d){o&1&&(t(0,` 125 `),e(1,"span",43),t(2,"\u2014"),i(),t(3,` 126 `))}function Gt(o,d){if(o&1&&(t(0,` 127 `),e(1,"tr"),t(2,` 128 `),e(3,"td"),t(4,` 129 `),e(5,"span",43),t(6),i(),t(7,` 130 `),i(),t(8,` 131 `),e(9,"td"),t(10,` 132 `),_(11,"app-pill",44),t(12,` 133 `),i(),t(13,` 134 `),e(14,"td")(15,"span",43),t(16),i()(),t(17,` 135 `),e(18,"td")(19,"span",43),t(20),i()(),t(21,` 136 `),e(22,"td")(23,"span",43),t(24),i()(),t(25,` 137 `),e(26,"td")(27,"span",46),t(28),i()(),t(29,` 138 `),e(30,"td"),t(31,` 139 `),b(32,Ht,4,4)(33,Yt,4,0),i(),t(34,` 140 `),i(),t(35,` 141 `)),o&2){let n=d.$implicit,a=p(3);r(6),u(n.clubName||(n.clubId?"Club "+n.clubId:"\u2014")),r(5),c("text",n.jobStatusName)("status",a.statusPill(n.jobStatusId))("nowrap",!0),r(5),u(n.itemsProcessed??"\u2014"),r(4),u(n.itemsSucceeded??"\u2014"),r(4),u(n.itemsFailed??"\u2014"),r(4),u(n.message||"\u2014"),r(4),h(n.errorId?32:33)}}function $t(o,d){if(o&1&&(t(0,` 142 `),e(1,"div",69),t(2),i(),t(3,` 143 `),b(4,Ut,4,3),e(5,"div",70),t(6,` 144 `),e(7,"p-table",71),t(8,` 145 `),D(9,zt,25,0,"ng-template",null,0,j),t(11,` 146 `),D(12,Gt,36,9,"ng-template",null,1,j),t(14,` 147 `),i(),t(15,` 148 `),i(),t(16,` 149 `)),o&2){let n=p(2);r(2),f("Per-club detail (",n.detail.details.length,")"),r(2),h(n.detail.detailCount>n.detail.details.length?4:-1),r(3),c("value",n.detail.details)}}function Kt(o,d){if(o&1){let n=w();t(0,` 150 `),e(1,"div",74),t(2,` 151 `),e(3,"div",64),t(4,"Result"),i(),t(5,` 152 `),e(6,"button",75),C("click",function(){x(n);let l=p(2);return g(l.copyValue(l.detail.resultJson))}),t(7,` 153 `),_(8,"i",76),t(9,`Copy 154 `),i(),t(10,` 155 `),i(),t(11,` 156 `),e(12,"pre",77),t(13),i(),t(14,` 157 `)}if(o&2){let n=p(2);r(13),u(n.formatPayload(n.detail.resultJson))}}
157function Qt(o,d){o&1&&(t(0,` 158 `),e(1,"app-inline-alert",55),t(2,` 159 This job did not report any structured detail for the run. 160 `),i(),t(3,` 161 `)),o&2&&(r(),c("isInline",!0))}function Xt(o,d){if(o&1){let n=w();t(0,` 162 `),e(1,"div",56),t(2,` 163 `),e(3,"div",57),t(4,` 164 `),e(5,"div",58),t(6,` 165 `),_(7,"app-pill",59),t(8,` 166 `),e(9,"span",60),t(10),M(11,"utcDate"),e(12,"span",61),t(13),M(14,"utcDate"),i(),t(15),i(),t(16,` 167 `),i(),t(17,` 168 `),e(18,"div",62),t(19),i(),t(20,` 169 `),b(21,qt,4,1),i(),t(22,` 170 `),i(),t(23,` 171 172 `),e(24,"div",56),t(25,` 173 `),e(26,"div",63),t(27,` 174 `),e(28,"div",64),t(29,"Processed"),i(),t(30,` 175 `),e(31,"div",43),t(32),i(),t(33,` 176 `),i(),t(34,` 177 `),e(35,"div",63),t(36,` 178 `),e(37,"div",64),t(38,"Succeeded"),i(),t(39,` 179 `),e(40,"div",43),t(41),i(),t(42,` 180 `),i(),t(43,` 181 `),e(44,"div",63),t(45,` 182 `),e(46,"div",64),t(47,"Failed"),i(),t(48,` 183 `),e(49,"div",43),t(50),i(),t(51,` 184 `),i(),t(52,` 185 `),e(53,"div",63),t(54,` 186 `),e(55,"div",64),t(56,"Triggered By"),i(),t(57,` 187 `),e(58,"div",46),t(59),i(),t(60,` 188 `),i(),t(61,` 189 `),i(),t(62,` 190 191 `),e(63,"div",56),t(64,` 192 `),e(65,"div",57),t(66,` 193 `),e(67,"div",64),t(68,"Linked Records"),i(),t(69,` 194 `),e(70,"div",43),t(71,` 195 `),e(72,"a",65),C("click",function(){x(n);let l=p();return g(l.closeDetail())}),t(73,` 196 `),_(74,"i",66),t(75,`View the API calls from this run 197 `),i(),t(76,` 198 `),b(77,Nt,6,4),i(),t(78,` 199 `),i(),t(79,` 200 `),i(),t(80,` 201 202 `),b(81,$t,17,3),b(82,Kt,15,1),b(83,Qt,4,1)}if(o&2){let n=p();r(7),c("text",n.detail.jobStatusName)("status",n.statusPill(n.detail.jobStatusId))("nowrap",!0),r(3),f(` 203 `,R(11,18,n.detail.startDate,"EEEE, MMMM d, y"),` 204 `),r(3),u(R(14,21,n.detail.startDate,"h:mm:ss a")),r(2),f(` UTC 205 \xB7 `,n.formatDuration(n.detail.durationSeconds),` 206 `),r(4),u(n.detail.jobName||"Job "+n.detail.jobId),r(2),h(n.detail.summary?21:-1),r(11),u(n.detail.itemsProcessed??"\u2014"),r(9),u(n.detail.itemsSucceeded??"\u2014"),r(9),u(n.detail.itemsFailed??"\u2014"),r(9),u(n.detail.triggeredByName||"Scheduler"),r(13),c("routerLink",$(24,Tt))("queryParams",J(25,Jt,n.detail.jobLogId)),r(5),h(n.detail.errorId?77:-1),r(4),h(n.detail.details!=null&&n.detail.details.length?81:-1),r(),h(n.detail.resultJson?82:-1),r(),h(!(n.detail.details!=null&&n.detail.details.length)&&!n.detail.resultJson?83:-1)}}var wt=(()=>{let d=class d{constructor(a,l,s){this.jobLogService=a,this.siteDataService=l,this.route=s,this.unsubscribe$=new U,this.jobLogs=[],this.totalRecords=0,this.loading=!1,this.error="",this.searchRequest=q(),this.jobOptions=[],this.statusOptions=[],this.clubOptions=[],this.outcomeOptions=vt,this.first=0,this.rowsPerPageOptions=[10,25,50,100],this.showDetailModal=!1,this.detail=null,this.detailLoading=!1,this.detailError="",this.statusPill=Et,this.formatDuration=It}ngOnInit(){this.loadFilterOptions(),this.route.queryParams.pipe(T(this.unsubscribe$)).subscribe({next:a=>{(a.jobId||a.jobLogId||a.clubId||a.hasFailures)&&(this.searchRequest.startDate=void 0),a.jobId&&(this.searchRequest.jobId=+a.jobId),a.jobLogId&&(this.searchRequest.jobLogId=+a.jobLogId),a.clubId&&(this.searchRequest.clubId=+a.clubId),a.hasFailures&&(this.searchRequest.hasFailures=a.hasFailures==="true"),this.loadJobLogs()},error:()=>{this.error="Unable to read the search parameters from the URL.",this.siteDataService.hideSiteLoader()}})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}loadJobLogs(){this.loading=!0,this.error="",this.jobLogService.searchJobLogs(this.searchRequest).pipe(T(this.unsubscribe$)).subscribe({next:a=>{this.jobLogs=a.data,this.totalRecords=a.totalCount,this.loading=!1,this.siteDataService.hideSiteLoader()},error:a=>{this.error=a?.status===404?"The job log endpoint was not found (HTTP 404). The server may be running an older build.":`Failed to load job logs${a?.status?` (HTTP ${a.status})`:""}
206. Please try again.`,this.loading=!1,this.siteDataService.hideSiteLoader()}})}loadJobLogsLazy(a){this.searchRequest.page=Math.floor(a.first/a.rows)+1,this.searchRequest.pageSize=a.rows,a.sortField&&(this.searchRequest.sortColumn=a.sortField,this.searchRequest.sortDirection=a.sortOrder===1?"asc":"desc"),this.loadJobLogs()}run(){this.resetToFirstPage(),this.loadJobLogs()}clearFilters(){this.searchRequest=q(),this.resetToFirstPage(),this.loadJobLogs()}openDetail(a){this.showDetailModal=!0,this.detail=null,this.detailError="",this.detailLoading=!0,this.jobLogService.getJobLogDetails(a).pipe(T(this.unsubscribe$)).subscribe({next:l=>{this.detail=l,this.detailLoading=!1},error:l=>{this.detailError=`Failed to load this job run${l?.status?` (HTTP ${l.status})`:""}. Please try again.`,this.detailLoading=!1}})}closeDetail(){this.showDetailModal=!1,this.detail=null,this.detailError=""}formatPayload(a){if(!a)return"";let l=a.trim();if(!l.startsWith("{")&&!l.startsWith("["))return a;try{return JSON.stringify(JSON.parse(l),null,2)}catch(s){return a}}copyValue(a){a&&navigator.clipboard.writeText(a).then(()=>this.siteDataService.showSiteSuccessAlert("Copied to clipboard."),()=>this.siteDataService.showSiteErrorAlert("Unable to copy to clipboard."))}loadFilterOptions(){this.jobLogService.getFilterOptions().pipe(T(this.unsubscribe$)).subscribe({next:a=>{this.jobOptions=a.jobs||[],this.statusOptions=a.statuses||[],this.clubOptions=a.clubs||[]},error:()=>{this.error="Failed to load the search filter options."}})}resetToFirstPage(){this.searchRequest.page=1,this.first=0}};d.\u0275fac=function(l){return new(l||d)(F(V),F(ot),F(et))},d.\u0275cmp=Y({type:d,selectors:[["app-job-log-list"]],standalone:!1,decls:131,vars:43,consts:[["header",""],["body",""],["emptymessage",""],["role","main"],["secondaryBtnText","Job Performance","secondaryBtnUrl","/admin/job-performance","secondaryBtnIcon","fa-regular fa-chart-line mr-1",3,"pageTitle"],[3,"keydown.enter","adminFilterReset","adminFilterSearch","showAdvanced","showLabels"],["primary",""],[1,"col","pr-0"],["type","text","id","searchTerm","pInputText","","placeholder","Search run summaries...",1,"full-width",3,"ngModelChange","ngModel"],["for","searchTerm",1,"sr-only"],["advanced",""],[1,"row","align-bottom"],[1,"col-md-4"],[1,"form-group"],["id","startDate","dateFormat","mm/dd/yy","placeholder","MM/DD/YYYY","appendTo","body",3,"ngModelChange","ngModel","maxDate"],["id","endDate","dateFormat","mm/dd/yy","placeholder","MM/DD/YYYY","appendTo","body",3,"ngModelChange","ngModel","minDate"],["for","jobId"],["inputId","jobId","styleClass","full-width","placeholder","Any","appendTo","body",3,"ngModelChange","options","ngModel","filter","showClear"],["for","jobStatusId"],["inputId","jobStatusId","styleClass","full-width","placeholder","Any","appendTo","body",3,"ngModelChange","options","ngModel","showClear"],["for","hasFailures"],["inputId","hasFailures","styleClass","full-width","placeholder","Any","appendTo","body",3,"ngModelChange","options","ngModel","showClear"],["for","clubId"],["inputId","clubId","styleClass","full-width","placeholder","Any","appendTo","body",3,"ngModelChange","options","ngModel","filter","showClear"],[1,"d-block","text-muted"],["for","jobLogId"],["type","number","id","jobLogId","pInputText","","placeholder","e.g. 48213",1,"full-width",3,"ngModelChange","ngModel"],[1,"table-responsive"],["currentPageReportTemplate","Showing {first} to {last} of {totalRecords} runs","dataKey","jobLogId",1,"table","table-striped","table-sm",3,"onLazyLoad","value","lazy","paginator","rows","totalRecords","loading","showCurrentPageReport","rowsPerPageOptions","sortMode","sortField","sortOrder","first"],["styleClass","largeWidthDialog",3,"visibleChange","onHide","header","visible","modal","dismissableMask"],[1,"mb-3"],["alertType","error"],["pSortableColumn","JobLogID"],[1,"d-flex","align-items-center"],["field","JobLogID"],["pSortableColumn","StartDate"],["field","StartDate"],["pSortableColumn","ItemsProcessed"],["field","ItemsProcessed"],["pSortableColumn","ItemsFailed"],["field","ItemsFailed"],[2,"width","35%"],["type","button",1,"btn","btn-naked","btn-sm","px-0",3,"click"],[1,"text-small"],[3,"text","status","nowrap"],[1,"text-smallest"],[1,"text-small","text-break"],["type","button",1,"btn","btn-sm",3,"click"],[1,"text-smallest","text-muted"],[1,"fa-regular","fa-user","mr-1"],[1,"text-small","fw-800","text-danger"],[1,"d-inline-block","text-small","ml-2",3,"routerLink"],[1,"fa-regular","fa-triangle-exclamation","mr-1"],["colspan","9",1,"text-center","py-4"],[1,"empty-state"],[3,"isInline"],[1,"row","mb-3"],[1,"col-12"],[1,"d-flex","align-items-center","flex-wrap"],[1,"mr-2",3,"text","status","nowrap"],[1,"text-small","text-muted"],[1,"n
206owrap"],[1,"text-h4","mt-2","mb-0"],[1,"col-6","col-md-3"],[1,"text-h5","mb-0"],[3,"click","routerLink","queryParams"],[1,"fa-regular","fa-arrow-right-arrow-left","mr-1"],[1,"text-small","mt-1"],[1,"d-block",3,"click","routerLink"],[1,"text-h5"],[1,"table-responsive","mb-3"],["dataKey","jobLogDetailId",1,"table","table-striped","table-sm",3,"value"],[1,"mb-2",3,"isInline"],[3,"click","routerLink"],[1,"d-flex","justify-content-between","align-items-center"],["type","button","aria-label","Copy the run result payload to clipboard",1,"btn","btn-sm","btn-naked",3,"click"],[1,"fa-regular","fa-copy","mr-1"],[1,"payload-container"]],template:function(l,s){if(l&1){let I=w();e(0,"main",3),t(1,` 207 `),_(2,"app-admin-header",4),t(3,` 208 209 `),t(4,` 210 `),e(5,"app-admin-filter",5),C("keydown.enter",function(){return s.run()})("adminFilterReset",function(){return s.clearFilters()})("adminFilterSearch",function(){return s.run()}),t(6,` 211 `),O(7,6),t(8,` 212 `),e(9,"div",7),t(10,` 213 `),e(11,"input",8),E("ngModelChange",function(m){return x(I),y(s.searchRequest.searchTerm,m)||(s.searchRequest.searchTerm=m),g(m)}),i(),t(12,` 214 `),e(13,"label",9),t(14,"Search Run Summaries"),i(),t(15,` 215 `),i(),t(16,` 216 `),W(),t(17,` 217 `),O(18,10),t(19,` 218 `),e(20,"div",11),t(21,` 219 `),e(22,"div",12),t(23,` 220 `),e(24,"div",13),t(25,` 221 `),e(26,"label"),t(27,"Date Range"),i(),t(28,` 222 `),e(29,"p-inputgroup"),t(30,` 223 `),e(31,"p-datepicker",14),E("ngModelChange",function(m){return x(I),y(s.searchRequest.startDate,m)||(s.searchRequest.startDate=m),g(m)}),t(32,` 224 `),i(),t(33,` 225 `),e(34,"p-inputgroup-addon"),t(35,"to"),i(),t(36,` 226 `),e(37,"p-datepicker",15),E("ngModelChange",function(m){return x(I),y(s.searchRequest.endDate,m)||(s.searchRequest.endDate=m),g(m)}),t(38,` 227 `),i(),t(39,` 228 `),i(),t(40,` 229 `),i(),t(41,` 230 `),i(),t(42,` 231 `),e(43,"div",12),t(44,` 232 `),e(45,"div",13),t(46,` 233 `),e(47,"label",16),t(48,"Job"),i(),t(49,` 234 `),e(50,"p-select",17),E("ngModelChange",function(m){return x(I),y(s.searchRequest.jobId,m)||(s.searchRequest.jobId=m),g(m)}),i(),t(51,` 235 `),i(),t(52,` 236 `),i(),t(53,` 237 `),e(54,"div",12),t(55,` 238 `),e(56,"div",13),t(57,` 239 `),e(58,"label",18),t(59,"Status"),i(),t(60,` 240 `),e(61,"p-select",19),E("ngModelChange",function(m){return x(I),y(s.searchRequest.jobStatusId,m)||(s.searchRequest.jobStatusId=m),g(m)}),i(),t(62,` 241 `),i(),t(63,` 242 `),i(),t(64,` 243 `),i(),t(65,` 244 `),e(66,"div",11),t(67,` 245 `),e(68,"div",12),t(69,` 246 `),e(70,"div",13),t(71,` 247 `),e(72,"label",20),t(73,"Outcome"),i(),t(74,` 248 `),e(75,"p-select",21),E("ngModelChange",function(m){return x(I),y(s.searchRequest.hasFailures,m)||(s.searchRequest.hasFailures=m),g(m)}),i(),t(76,` 249 `),i(),t(77,` 250 `),i(),t(78,` 251 `),e(79,"div",12),t(80,` 252 `),e(81,"div",13),t(82,` 253 `),e(83,"label",22),t(84,"Club"),i(),t(85,` 254 `),e(86,"p-select",23),E("ngModelChange",function(m){return x(I),y(s.searchRequest.clubId,m)||(s.searchRequest.clubId=m),g(m)}),i(),t(87,` 255 `),e(88,"small",24),t(89,"Matches runs that recorded a detail row for the club."),i(),t(90,` 256 `),i(),t(91,` 257 `),i(),t(92,` 258 `),e(93,"div",12),t(94,` 259 `),e(95,"div",13),t(96,` 260 `),e(97,"label",25),t(98,"Job Log ID"),i(),t(99,` 261 `),e(100,"input",26),E("ngModelChange",function(m){return x(I),y(s.searchRequest.jobLogId,m)||(s.searchRequest.jobLogId=m),g(m)}),i(),t(101,` 262 `),i(),t(102,` 263 `),i(),t(103,` 264 `),i(),t(104,` 265 `),W(),t(105,` 266 `),i(),t(106,` 267 268 `),b(107,Mt,7,1),e(108,"div",27),t(109,` 269 `),e(110,"p-table",28),C("onLazyLoad",function(m){return s.loadJobLogsLazy(m)}),t(111,` 270 `),D(112,Rt,52,4,"ng-template",null,0,j),t(114,` 271 272 `),D(115,Ot,63,21,"ng-template",null,1,j),t(117,` 273 274 `),D(118,Wt,13,1,"ng-template",null,2,j),t(120,` 275 `),i(),t(121,` 276 `),i(),t(122,` 277`),i(),t(123,` 278 279`),t(124,` 280`),e(125,"p-dialog",29),E("visibleChange",function(m){return x(I),y(s.showDetailModal,m)||(s.showDetailModal=m),g(m)}),C("onHide",function(){return s.closeDetail()}),t(126,` 281 282 `),b(127,At,4,0),b(128,Bt,4,1),b(129,Xt,84,27),i(),t(130,` 283`)}l&2&&(r(2),c("pageTitle","Job Logs"),r(3),c("showAdvanced",!0)("showLabels",!1),r(6),L("ngModel",s.searchRequest.searchTerm),r(20),L("ngModel",s.searchRequest.startDate),c("maxDate",s.searchRequest.endD
283ate),r(6),L("ngModel",s.searchRequest.endDate),c("minDate",s.searchRequest.startDate),r(13),c("options",s.jobOptions),L("ngModel",s.searchRequest.jobId),c("filter",!0)("showClear",!0),r(11),c("options",s.statusOptions),L("ngModel",s.searchRequest.jobStatusId),c("showClear",!0),r(14),c("options",s.outcomeOptions),L("ngModel",s.searchRequest.hasFailures),c("showClear",!0),r(11),c("options",s.clubOptions),L("ngModel",s.searchRequest.clubId),c("filter",!0)("showClear",!0),r(14),L("ngModel",s.searchRequest.jobLogId),r(7),h(s.error?107:-1),r(3),c("value",s.jobLogs)("lazy",!0)("paginator",!0)("rows",s.searchRequest.pageSize)("totalRecords",s.totalRecords)("loading",s.loading)("showCurrentPageReport",!0)("rowsPerPageOptions",s.rowsPerPageOptions)("sortMode","single")("sortField",s.searchRequest.sortColumn)("sortOrder",s.searchRequest.sortDirection==="asc"?1:-1)("first",s.first),r(15),c("header",s.detail?"Job Run #"+s.detail.jobLogId:"Job Run"),L("visible",s.showDetailModal),c("modal",!0)("dismissableMask",!0),r(2),h(s.detailLoading?127:-1),r(),h(s.detailError?128:-1),r(),h(s.detail&&!s.detailLoading?129:-1))},dependencies:[Q,tt,X,Z,rt,it,dt,mt,Ct,Lt,_t,St,gt,bt,ht,xt,st,lt,ft],encapsulation:2});let o=d;return o}
283)();var Zt=[{path:"",component:wt,canActivate:[ct,pt,ut],data:{admin:!0,metaTitle:"Job Logs"}}],Dt=(()=>{let d=class d{};d.\u0275fac=function(l){return new(l||d)},d.\u0275mod=k({type:d}),d.\u0275inj=P({imports:[A.forChild(Zt),A]});let o=d;return o})();var Ne=(()=>{let d=class d{};d.\u0275fac=function(l){return new(l||d)},d.\u0275mod=k({type:d}),d.\u0275inj=P({providers:[V],imports:[yt,Dt]});let o=d;return o})();export{Ne as JobLogModule};
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.