1import{b as ce,c as se,d as me,f as ue,g as pe,i as fe,j as _e,l as ge,m as Ce,o as he,q as xe}from"./chunk-IRVXRWZD.js";import{d as ee,e as te,g as ne}from"./chunk-OASEBQL4.js";import{a as de}from"./chunk-M2SDBECC.js";import{b as re}from"./chunk-H3ZOHFO7.js";import"./chunk-CIKJJUSN.js";import"./chunk-RRZRS5BZ.js";import"./chunk-LY7WOQZN.js";import"./chunk-Q4V6AKYI.js";import"./chunk-T3PLPHIG.js";import{c as R}from"./chunk-2JW6ZMWV.js";import"./chunk-NIP74ZKI.js";import"./chunk-QNUNLKYK.js";import{c as ae,r as le}from"./chunk-RE4JJFV5.js";import{f as G}from"./chunk-COEKBYWO.js";import"./chunk-E2K2LIS4.js";import{a as ie}from"./chunk-KJKRX6VS.js";import"./chunk-2CRWMDGS.js";import"./chunk-4WMDX4SQ.js";import"./chunk-IQLKO45Z.js";import"./chunk-V6KBZVCY.js";import"./chunk-6FQQM4CE.js";import"./chunk-VTTO24NQ.js";import"./chunk-Y5VOXWTF.js";import{n as q,q as X}from"./chunk-YWHNFDXQ.js";import{l as oe}from"./chunk-FCTHY2PU.js";import"./chunk-DPVJW3LI.js";import"./chunk-GW33KQPR.js";import{T as Y,U as Z,x as W}from"./chunk-TUEKBDZZ.js";import"./chunk-RLPOKPIS.js";import"./chunk-TPES7EAS.js";import{G as K,b as V,c as z,h as U,m as j}from"./chunk-QXJM3TTT.js";import{D as L,F,r as $,x as Q}from"./chunk-TMOIAHHX.js";import{Fa as f,Fb as I,Ib as a,Jb as u,Kb as x,Lb as w,Mb as H,Rb as B,Sb as D,Tb as k,Wa as s,Xa as m,ab as _,bb as o,cb as i,db as P,dc as A,ga as l,hb as g,ib as C,kb as E,mc as b,o as S,oc as M,p as y,qb as O,sa as h,tb as c,za as N}from"./chunk-DJNWGYMM.js";import{ea as v,f as J}from"./chunk-VOZAGDK7.js";import"./chunk-E5QWB6YB.js";var ve=t=>({width:t});function Se(t,d){t&1&&(o(0,"div",5),a(1,"No records to review for the July 22 run."),i())}function ye(t,d){if(t&1&&(o(0,"span",15),a(1),i()),t&2){let e=c(2);l(),w("",e.visibleRows.length," of ",e.rows.length," shown")}}function Pe(t,d){t&1&&(o(0,"div",16),a(1,"Nothing matches the current search/filter."),i())}function we(t,d){t&1&&(o(0,"th",33),a(1,"Person"),i())}function Re(t,d){if(t&1&&(o(0,"td",34)(1,"div"),a(2),i(),o(3,"div",35),a(4),i()()),t&2){let e=d.$implicit;l(2),w("",e.firstName," ",e.lastName),l(2),u(e.email)}}function Oe(t,d){t&1&&(o(0,"th",33),a(1,"Paid By"),i())}function Ee(t,d){if(t&1&&(o(0,"div",35),a(1),i()),t&2){let e=c().$implicit;l(),x("Club: ",e.clubName)}}function Ie(t,d){if(t&1&&(o(0,"div",35),a(1),i()),t&2){let e=c().$implicit;l(),x("Site: ",e.payerSite)}}function Be(t,d){if(t&1&&(o(0,"td",34)(1,"div")(2,"span",36),a(3),i(),a(4),i(),s(5,Ee,2,1,"div",35),s(6,Ie,2,1,"div",35),i()),t&2){let e=d.$implicit,n=c(2);l(2),I("club",e.payer==="club"),l(),u(e.payer),l(),x(" ",n.payerName(e)," "),l(),m(e.payer==="team"&&e.clubName?5:-1),l(),m(e.payerSite?6:-1)}}function De(t,d){t&1&&(o(0,"th",33),a(1,"BG Status"),i())}function ke(t,d){if(t&1&&(o(0,"td",34),a(1),i()),t&2){let e=d.$implicit;l(),u(e.status)}}function Te(t,d){t&1&&(o(0,"th",33),a(1,"NCSI Order"),i())}function Je(t,d){if(t&1&&(o(0,"td",37),a(1),i()),t&2){let e=d.$implicit;l(),u(e.orderID)}}function Ne(t,d){t&1&&(o(0,"th",38),a(1,"Card Charge"),i())}function He(t,d){if(t&1&&(o(0,"div",35),a(1),b(2,"currency"),i()),t&2){let e=c().$implicit;l(),w("",M(2,2,e.refundedAmount,"USD")," already refunded (",e.refundedCount,")")}}function Ae(t,d){if(t&1&&(o(0,"td",39)(1,"div"),a(2),b(3,"currency"),i(),o(4,"div",40),a(5),i(),s(6,He,3,5,"div",35),i()),t&2){let e=d.$implicit;l(2),H("",M(3,5,e.chargeAmount,"USD")," for ",e.bgCheckCount||"?"," ",e.bgCheckCount===1?"person":"people"),l(3),u(e.chargeID),l(),m(e.refundedCount>0?6:-1)}}function $e(t,d){t&1&&(o(0,"th",38),a(1,"Refund"),i())}function Qe(t,d){t&1&&(o(0,"span",35),a(1,"\u2014"),i())}function Le(t,d){if(t&1&&(a(0),b(1,"currency")),t&2){let e=c(3);x(" ",M(1,1,e.perPersonRefund,"USD")," ")}}function Fe(t,d){if(t&1&&(o(0,"td",39),s(1,Qe,2,0,"span",35)(2,Le,2,4),i()),t&2){let e=d.$implicit;l(),m(e.refunded?1:2)}}function Ve(t,d){t&1&&(o(0,"th",38),a(1,"Action"),i())}function ze(t,d){if(t&1&&(o(0,"div",42)(1,"mat-icon"),a(2,"check_circle"),i(),o(3,"span",43),a(4),b(5,"currency"),i()(),o(6,"div",35),a(7),b(8,"date"),i()),t&2){let e=c().$implicit;l(4),x("Refunded ",M(5,3,e.refund==null?null:e.refund.amount,"USD")),l(3),w("",M(8,6,e.refund==null?null:e.refund.refundedOn,"MMM d, h:mm a")," \xB7 ",e.refund==null?null:e.refund.refundID)}}function Ue(t,d){if(t&1){let e=E();o(0,"button",44),O("click",function(){S(e);let r=c().$implicit,p=c(2);return y(p.confirmRefund(r))}),o(1,"mat-icon"),a(2,"currency_exchange"),i(),o(3,"span",43),a(4),i()()}if(t&2){let e=c().$implicit,n=c(2);_("disabled",n.busyKey!==null),l(4),u(n.busyKey===e.cpKey?"Refunding\u2026":"Refund & Cancel")}}function je(t,d){if(t&1&&(o(0,"td",39),s(1,ze,9,9)(2,Ue,5,2,"button",41),i()),t&2){let e=d.$implicit;l(),m(e.refunded?1:2)}}function Ke(t,d){t&1&&P(0,"tr",45)}function We(t,d){if(t&1&&P(0,"tr",46),t&2){let e=d.$implicit;I("refunded-row",e.refunded)}}function Ge(t,d){if(t&1){let e=E();o(0,"section",6)(1,"div",7)(2,"div",8)(3,"span",9),a(4,"People"),i(),o(5,"span",10),a(6),i()(),o(7,"div",8)(8,"span",9),a(9,"Refunded"),i(),o(10,"span",10),a(11),i()(),o(12,"div",8)(13,"span",9),a(14,"Charges Involved"),i(),o(15,"span",10),a(16),i()()(),o(17,"div",11)(18,"input",12),k("ngModelChange",function(r){S(e);let p=c();return D(p.search,r)||(p.search=r),y(r)}),O("ngModelChange",function(){S(e);let r=c();return y(r.applyFilter())}),i(),o(19,"label",13)(20,"input",14),k("ngModelChange",function(r){S(e);let p=c();return D(p.hideRefunded,r)||(p.hideRefunded=r),y(r)}),O("ngModelChange",function(){S(e);let r=c();return y(r.applyFilter())}),i(),a(21," Hide refunded "),i(),s(22,ye,2,2,"span",15),i(),s(23,Pe,2,0,"div",16),o(24,"div",17)(25,"table",18),g(26,19),f(27,we,2,0,"th",20)(28,Re,5,3,"td",21),C(),g(29,22),f(30,Oe,2,0,"th",20)(31,Be,7,6,"td",21),C(),g(32,23),f(33,De,2,0,"th",20)(34,ke,2,1,"td",21),C(),g(35,24),f(36,Te,2,0,"th",20)(37,Je,2,1,"td",25),C(),g(38,26),f(39,Ne,2,0,"th",27)(40,Ae,7,8,"td",28),C(),g(41,29),f(42,$e,2,0,"th",27)(43,Fe,3,1,"td",28),C(),g(44,30),f(45,Ve,2,0,"th",27)(46,je,3,1,"td",28),C(),f(47,Ke,1,0,"tr",31)(48,We,1,2,"tr",32),i()()()}if(t&2){let e=c();l(6),u(e.rows.length),l(5),u(e.refundedTotal),l(5),u(e.chargeCount),l(2),B("ngModel",e.search),l(2),B("ngModel",e.hideRefunded),l(2),m(e.search||e.hideRefunded?22:-1),l(),m(e.visibleRows.length===0?23:-1),l(),_("hidden",e.visibleRows.length===0),l(),_("dataSource",e.visibleRows),l(22),_("matHeaderRowDef",e.columns),l(),_("matRowDefColumns",e.columns)}}var T="loader-jul22-bg-refunds",xt=(()=>{class t{api;notify;ngxLoader;dialog;_fuseConfigService;breakpointObserver;loading=!1;hasLoaded=!1;fuseConfig;isMobile=!1;rows=[];visibleRows=[];perPersonRefund=0;chargeCount=0;refundedTotal=0;columns=["person","payer","status","order","charge","refund","actions"];busyKey=null;search="";hideRefunded=!1;_unsubscribeAll=new J;constructor(e,n,r,p,be,Me){this.api=e,this.notify=n,this.ngxLoader=r,this.dialog=p,this._fuseConfigService=be,this.breakpointObserver=Me}ngOnInit(){this.load(),this._fuseConfigService.config.pipe(v(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(v(this._unsubscribeAll)).subscribe(e=>{this.isMobile=e.matches==!0}
1)}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}load(){this.loading=!0,this.hasLoaded=!1,this.ngxLoader.startLoader(T),this.api.get("Compliance/jul22RefundReview",!0).pipe(v(this._unsubscribeAll)).subscribe({next:e=>{this.rows=e?.rows||[],this.perPersonRefund=e?.perPersonRefund||0,this.chargeCount=new Set(this.rows.map(n=>n.paymentID)).size,this.applyFilter(),this.hasLoaded=!0,this.loading=!1,this.ngxLoader.stopLoader(T)},error:e=>{this.loading=!1,this.ngxLoader.stopLoader(T),this.notify.openAlertModal(e?.error?e.error:"An error has occurred",R.ERROR)}})}payerName(e){return(e.payer==="team"?e.teamName:e.clubName)||e.teamName||e.clubName||"\u2014"}applyFilter(){let e=this.search.trim().toLowerCase();this.refundedTotal=this.rows.filter(n=>n.refunded).length,this.visibleRows=this.rows.filter(n=>!(this.hideRefunded&&n.refunded)).filter(n=>!e||[n.firstName+" "+n.lastName,n.email,n.teamName,n.clubName,n.payerSite,n.site,n.orderID,n.chargeID,n.status,n.refund?.refundID].filter(Boolean).some(r=>String(r).toLowerCase().includes(e)))}confirmRefund(e){let n=this.dialog.open(ae,{disableClose:!1});
1n.componentInstance.title="Refund & Cancel Background Check",n.componentInstance.isRed=!0,n.componentInstance.confirmLabel="Refund & Cancel",n.componentInstance.cancelLabel="Keep It",n.componentInstance.confirmMessage=`Refund <b>$${this.perPersonRefund.toFixed(2)}</b> to the ${e.payer} <b>${this.payerName(e)}</b> and remove <b>${e.firstName} ${e.lastName}</b>'s background check record?<br><br>An email will also be sent to USA Softball asking them to cancel the NCSI order.`,n.afterClosed().pipe(v(this._unsubscribeAll)).subscribe(r=>{r&&this.refund(e)})}refund(e){this.busyKey=e.cpKey,this.api.post(`Compliance/jul22RefundCancel/${e.cpKey}`,{},!0).pipe(v(this._unsubscribeAll)).subscribe({next:n=>{this.busyKey=null,e.refunded=!0,e.refund={refundID:n?.refundID,amount:n?.refundAmount||0,refundedOn:new Date().toISOString()},this.rows.filter(r=>r.paymentID===e.paymentID).forEach(r=>{r.refundedCount=(r.refundedCount||0)+1,r.refundedAmount=(r.refundedAmount||0)+(n?.refundAmount||0)}),this.rows=[...this.rows.filter(r=>r.refunded),...this.rows.filter(r=>!r.refunded)],this.applyFilter(),n?.emailSent===!1?this.notify.openAlertModal(`$${(n.refundAmount||0).toFixed(2)} was refunded and the record was removed, but the cancellation email to USA Softball could NOT be sent. Please email Jesse about ${e.firstName} ${e.lastName} (order ${e.orderID}) yourself.`,R.WARNING):this.notify.openAlertModal(`$${(n?.refundAmount||0).toFixed(2)} was refunded to the ${e.payer}'s card and USA Softball was emailed to cancel the NCSI order for ${e.firstName} ${e.lastName}.`,R.INFO)},error:n=>{this.busyKey=null,this.notify.openAlertModal(n?.error?n.error:"The refund could not be completed.",R.ERROR)}})}static \u0275fac=function(n){return new(n||t)(h(ie),h(le),h(ee),h(G),h(oe),h(W))};static \u0275cmp=N({type:t,selectors:[["jul22-bg-refunds"]],decls:15,vars:12,consts:[["id","HQPage","fusePerfectScrollbar","",1,"page-layout","simple","fullwidth"],["title","Jul 22 BG Check Refunds","matIcon","currency_exchange",3,"hideBanner"],[1,"content","p-24",2,"min-height","800px",3,"ngStyle"],[3,"loaderId","fgsSize"],[1,"intro"],[1,"mt-24","p-16","info-message"],[1,"results-panel"],[1,"kpi-row"],[1,"kpi-card"],[1,"kpi-label"],[1,"kpi-value"],[1,"filter-bar"],["type","text","name","search","placeholder","Search name, email, team, club, site, order, charge id\u2026",1,"search-input",3,"ngModelChange","ngModel"],[1,"toggle-label"],["type","checkbox","name","hideRefunded",3,"ngModelChange","ngModel"],[1,"filter-note"],[1,"p-16","info-message"],[1,"table-shell",3,"hidden"],["mat-table","",1,"rows-table",3,"dataSource"],["matColumnDef","person"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","payer"],["matColumnDef","status"],["matColumnDef","order"],["mat-cell","","class","mono",4,"matCellDef"],["matColumnDef","charge"],["mat-header-cell","","class","right",4,"matHeaderCellDef"],["mat-cell","","class","right",4,"matCellDef"],["matColumnDef","refund"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"refunded-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[1,"muted"],[1,"payer-badge"],["mat-cell","",1,"mono"],["mat-header-cell","",1,"right"],["mat-cell","",1,"right"],[1,"muted","mono"],["mat-flat-button","",1,"refund-btn",3,"disabled"],[1,"refunded-marker"],[1,"ml-4"],["mat-flat-button","",1,"refund-btn",3,"click","disabled"],["mat-header-row",""],["mat-row",""]],template:function(n,r){n&1&&(o(0,"div",0),P(1,"page-header",1),o(2,"div",2),P(3,"ngx-ui-loader",3),o(4,"p",4),a(5," Background checks charged to a team or club card during the automated run on "),o(6,"b"),a(7,"July 22, 2026"),i(),a(8,". For anyone who should not have been renewed, click "),o(9,"b"),a(10,"Refund & Cancel"),i(),a(11),b(12,"currency"),i(),s(13,Se,2,0,"div",5),s(14,Ge,49,11,"section",6),i()()),n&2&&(l(),_("hideBanner",!0),l(),_("ngStyle",A(10,ve,r.fuseConfig.pageWidth&&!r.isMobile?r.fuseConfig.pageWidth+"%":"100%")),l(),_("loaderId","loader-jul22-bg-refunds")("fgsSize",75),l(8),x(": their ",M(12,7,r.perPersonRefund,"USD")," share of the charge is refunded to the card, the background check record is removed, and USA Softball is emailed to cancel the NCSI order. "),l(2),m(r.hasLoaded&&r.rows.length===0?13:-1),l(),m(r.rows.length>0?14:-1))},dependencies:[F,$,K,z,V,U,j,ne,te,de,re,X,q,Z,Y,xe,ce,me,_e,ue,se,ge,pe,fe,Ce,he,L,Q],styles:["#HQPage[_ngcontent-%COMP%] .intro[_ngcontent-%COMP%]{max-width:900px;color:#4b5f77;font-size:14px;line-height:1.5;margin:4px 0 16px}#HQPage[_ngcontent-%COMP%] .filter-bar[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:0 0 12px}#HQPage[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{border:1px solid #d9e0ea;border-radius:8px;padding:8px 12px;font-size:14px;color:#0a2540;background:#fff;min-width:340px}#HQPage[_ngcontent-%COMP%] .toggle-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;font-size:13px;color:#4b5f77;cursor:pointer;-webkit-user-select:none;user-select:none}#HQPage[_ngcontent-%COMP%] .filter-note[_ngcontent-%COMP%]{font-size:12px;color:#8190a5}#HQPage[_ngcontent-%COMP%] .info-message[_ngcontent-%COMP%]{background:#f5f7fa;border:1px solid #d9e0ea;border-radius:8px;color:#4b5f77}#HQPage[_ngcontent-%COMP%] .results-panel[_ngcontent-%COMP%]{margin-top:24px}#HQPage[_ngcontent-%COMP%] .kpi-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:20px}#HQPage[_ngcontent-%COMP%] .kpi-card[_ngcontent-%COMP%]{border:1px solid #d9e0ea;border-radius:10px;background:#fff;padding:12px 20px;display:flex;flex-direction:column;min-width:160px}#HQPage[_ngcontent-%COMP%] .kpi-label[_ngcontent-%COMP%]{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#8190a5}#HQPage[_ngcontent-%COMP%] .kpi-value[_ngcontent-%COMP%]{font-size:26px;font-weight:700;color:#0a2540}#HQPage[_ngcontent-%COMP%] .table-shell[_ngcontent-%COMP%]{border:1px solid #e3e8ef;border-radius:10px;overflow:hidden}#HQPage[_ngcontent-%COMP%] table.mat-mdc-table[_ngcontent-%COMP%]{width:100%;background:#fff}#HQPage[_ngcontent-%COMP%] table.mat-mdc-table[_ngcontent-%COMP%] th.mat-mdc-header-cell[_ngcontent-%COMP%]{background:#0a2540;color:#fff;font-weight:600}#HQPage[_ngcontent-%COMP%] table.mat-mdc-table[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{text-align:right}#HQPage[_ngcontent-%COMP%] table.mat-mdc-table[_ngcontent-%COMP%] .muted[_ngcontent-%COMP%]{font-size:12px;color:#8190a5}#HQPage[_ngcontent-%COMP%] table.mat-mdc-table[_ngcontent-%COMP%] .mono[_ngcontent-%COMP%]{font-family:monospace;font-size:12px}#HQPage[_ngcontent-%COMP%] .payer-badge[_ngcontent-%COMP%]{display:inline-block;padding:1px 8px;border-radius:10px;font-size:11px;font-weight:600;text-transform:uppercase;background:#e0ecff;color:#1d4ed8}#HQPage[_ngcontent-%COMP%] .payer-badge.club[_ngcontent-%COMP%]{background:#fef3c7;color:#b45309}#HQPage[_ngcontent-%COMP%] .refund-btn[_ngcontent-%COMP%]{background:#b91c1c;color:#fff}#HQPage[_ngcontent-%COMP%] tr.refunded-row[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]{background:#f0fdf4}#HQPage[_ngcontent-%COMP%] .refunded-marker[_ngcontent-%COMP%]{display:inline-flex;align-items:center;color:#16a34a;font-weight:600}#HQPage[_ngcontent-%COMP%] .refunded-marker[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}"]})}return t})();export{xt as Jul22BgRefundsComponent};
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.