1"use strict";(self.webpackChunkquickly_hire_demo=self.webpackChunkquickly_hire_demo||[]).push([[2894],{7734:(e,t,n)=>{n.d(t,{A:()=>r.A});var r=n(71264)},12894:(e,t,n)=>{n.r(t),n.d(t,{default:()=>N});var r=n(65043),l=n(32432),s=n(91036),a=n(45958),c=n(6890),d=n(91788),i=n(7734),o=n(70579);const x=function(){return(0,o.jsx)(i.A,{type:"error",children:"Error loading data. Please try again later."})};const h=function(){return(0,o.jsxs)("div",{className:"w-full",children:[(0,o.jsx)("div",{className:"animate-skeleton h-10 w-full rounded-sm mb-2"}),[...Array(5)].map((e,t)=>(0,o.jsx)("div",{className:"animate-skeleton h-14 w-full rounded-sm mb-2"},t))]})};var m=n(3538),g=n(75165),u=n(23844),p=n(90786),f=n(35453),j=n(39528),b=n(8729);const y=[{key:"all",label:"All"},{key:"pending",label:"Pending"},{key:"processing",label:"Processing"},{key:"processed",label:"Processed"},{key:"cancelled",label:"Cancelled"},{key:"expired",label:"Expired"}];const N=function(){const{dispatch:e}=(0,l.PC)(),{getDateWithUserTimezone:t}=(0,b.w1)(),[n,i]=(0,r.useState)([]),[N,A]=(0,r.useState)(!0),[w,v]=(0,r.useState)(!1),[k,C]=(0,r.useState)("all"),[T,P]=(0,r.useState)(!1),[S,I]=(0,r.useState)(!1),E=(0,r.useRef)(1);(0,r.useEffect)(()=>{document.title="Settings > ACH Transfers - Dashboard",window.scrollTo(0,0),e({type:"SET_PAGE_TITLE",payload:"Settings > ACH Transfers"})},[e]);const _=(0,r.useCallback)(async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{t||A(!0),v(!1),E.current=t?E.current+1:1;const n=(0,c.Qg)(d.Cn,"adminAction"),{data:r}=await n({type:"getPendingAchTransfers",status:e,perPage:20,currentPage:E.current});r.success?(i(t?e=>[...e,...r.transfers]:r.transfers),P(r.loadMore)):v(!0)}catch(n){s.oR.error((0,a.u1)(n)),console.error(n),t||v(!0)}finally{A(!1),I(!1)}},[]);return(0,r.useEffect)(()=>{E.current=1,_(k)},[k,_]),w?(0,o.jsx)(x,{}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,o.jsx)("select",{value:k,onChange:e=>C(e.target.value),className:"".concat(j.jp," !w-48"),children:y.map(e=>(0,o.jsx)("option",{value:e.key,children:e.label},e.key))}),(0,o.jsxs)(g.rm,{onClick:()=>{E.current=1,_(k)},disabled:N,children:[(0,o.jsx)(m.pMz,{className:"w-4 h-4 ".concat(N?"animate-spin":"")}),"Refresh"]})]}),N?(0,o.jsx)(h,{}):0===n.length?(0,o.jsxs)("div",{className:"text-center py-12 text-foreground-muted",children:["No ACH transfers found","all"!==k?' with status "'.concat(k,'"'):"","."]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(f.XI,{children:[(0,o.jsxs)(f.nd,{children:[(0,o.jsx)(f.Tl,{children:"Charge ID"}),(0,o.jsx)(f.Tl,{children:"Payment Type"}),(0,o.jsx)(f.Tl,{children:"Status"}),(0,o.jsx)(f.Tl,{children:"Engagement / Payout Change"}),(0,o.jsx)(f.Tl,{children:"Created At"}),(0,o.jsx)(f.Tl,{children:"Processed At"})]}),n.map(e=>{const n=(r=e.chargeId)?"https://dashboard.stripe.com/payments/".concat(r):null;var r;return(0,o.jsxs)(f.Hj,{children:[(0,o.jsxs)(f.nA,{children:[(0,o.jsx)(p.A,{className:"lg:hidden",children:"Charge ID"}),n?(0,o.jsxs)("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 font-mono text-xs text-primary-500 hover:text-primary-600",children:[e.chargeId,(0,o.jsx)(m.$xg,{className:"w-3.5 h-3.5"})]}):(0,o.jsx)("span",{className:"font-mono text-xs",children:e.chargeId||"\u2014"})]}),(0,o.jsxs)(f.nA,{children:[(0,o.jsx)(p.A,{className:"lg:hidden",children:"Payment Type"}),(0,o.jsx)("span",{className:"capitalize",children:e.paymentType||"\u2014"})]}),(0,o.jsxs)(f.nA,{children:[(0,o.jsx)(p.A,{className:"lg:hidden",children:"Status"}),(0,o.jsx)("span",{className:"inline-flex px-1.5 py-1 text-sm font-medium rounded-md ".concat((0,j.tJ)(e.status)," ").concat((0,j.$S)(e.status)),children:e.status||"\u2014"}),e.cancelReason&&(0,o.jsxs)("span",{className:"ml-1.5 text-xs text-foreground-muted",children:["(",e.cancelReason,")"]})]}),(0,o.jsxs)(f.nA,{children:[(0,o.jsx)(p.A,{className:"lg:hidden",children:"Engagement / Payout Change"}),(0,o.jsx)("span",{className:"font-mono text-xs",children:e.engagementId||e.payoutChangeId||"\u2014"})]}),(0,o.jsxs)(f.nA,{children:[(0,o.jsx)(p.A,{className:"lg:hidden",children:"Created At"}),(0,o.jsx)("span",{className:"text-foreground-secondary",children:e.createdAt?t({date:e.createdAt}):"\u2014"})]}),(0,o.jsxs)(f.nA,{children:[(0,o.jsx)(p.A,{className:"lg:hidden",children:"Processed At"}),(0,o.jsx)("span",{className:"text-foreground-secondary",children:e.processedAt?t({date:e.processedAt}):"\u2014"})]})]},e.id)})]}),T&&(0,o.jsx)("div",{className:"mt-8 flex justify-center items-center",children:(0,o.jsx)(g.$n,{onClick:async()=>{I(!0),await _(k,!0)},disabled:S,className:"bg-primary text-white rounded-md px-4 py-2",children:S?(0,o.jsxs)("div",{className:"flex justify-center space-x-2",children:[(0,o.jsx)("div",{children:"Loading"}),(0,o.jsx)(u.mT,{})]}):"Load More"})})]})]})}},35453:(e,t,n)=>{n.d(t,{XI:()=>l,nA:()=>h,nd:()=>s,Tl:()=>c,Hj:()=>d});var r=n(70579);const l=e=>{let{children:t,className:n="",compact:l=!1}=e;return(0,r.jsx)("div",{className:"lg:table w-full ".concat(l?"min-w-0 ":"").concat(n).trim(),children:t})},s=e=>{let{children:t,compact:n=!1}=e;return(0,r.jsx)("div",{className:n?"hidden xl:table-row":"hidden lg:table-row",children:t})},a={left:"text-left",center:"text-center",right:"text-right"},c=e=>{let{children:t,align:n="left",compact:l=!1}=e;return(0,r.jsx)("div",{className:"table-cell ".concat(a[n]," text-sm px-3 py-2 font-semibold border-b border-border ").concat(l?"whitespace-normal min-w-0":"whitespace-nowrap"),children:t})},d=e=>{let{children:t,onClick:n=null,href:l=null,target:s=null,compact:a=!1}=e;const c=n||l,d="flex flex-col gap-3 pb-3 mb-3 ".concat(a?"xl:gap-0 xl:p-0 xl:mb-0 xl:table-row":"lg:gap-0 lg:p-0 lg:mb-0 lg:table-row"," border-b border-border-secondary ").concat(a?"xl:border-b-0":"lg:border-b-0"," ").concat(c?"cursor-pointer hover:bg-surface-tertiary":"");return l?(0,r.jsx)("a",{href:l,target:s,rel:"_blank"===s?"noopener noreferrer":void 0,className:"".concat(d," no-underline text-foreground-secondary!important hover:!text-foreground-secondary!important visited:!text-foreground-secondary!important"),children:t}):(0,r.jsx)("div",{className:d,onClick:n,children:t})},i={left:"items-start",center:"items-center",right:"items-end"},o={left:"lg:text-left",center:"lg:text-center",right:"lg:text-right"},x={left:"xl:text-left",center:"xl:text-center",right:"xl:text-right"},h=e=>{let{children:t,width:n=null,align:l="left",mobileAlign:s=null,className:a="",whitespace:c="nowrap",compact:d=!1}=e;return(0,r.jsx)("div",{className:d?"flex flex-col ".concat(i[null!==s&&void 0!==s?s:l]," ").concat(x[l]," justify-center gap-1 xl:gap-0 xl:table-cell xl:p-3 whitespace-normal min-w-0 xl:border-b xl:align-middle xl:border-border border-border-secondary ").concat(a):"flex flex-col ".concat(i[null!==s&&void 0!==s?s:l]," ").concat(o[l]," justify-center gap-1 lg:gap-0 lg:table-cell lg:p-3 whitespace-").concat(c," lg:border-b lg:align-middle lg:border-border border-border-secondary ").concat(a),style:d?{}:{width:"content"===n?"1%":"full"===n?"100%":"",minWidth:"content"!==n&&"full"!==n?"140px":""},children:t})}},90786:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(70579);const l=function(e){let{children:t,className:n}=e;return(0,r.jsx)("div",{className:"text-sm text-foreground-muted ".concat(n),children:t})}}}]); 2//# sourceMappingURL=2894.97500e74.chunk.js.map
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.