PageSourceSearch

https://paysio.com/assets/settings-paysio-balance-BM1B2NrA.js

js paysio.com collected 2026-10-04 03:56:28 UTC 22,671 bytes, 1 lines download raw bytes

1import{u as Be,a as Me,b as Oe,V as Ie,j as e,L as V,B as R,f as le,c as k,W as de}from"./index-C9VyRByS.js";import{r as g,m as ce,aB as P,aC as B,l as me,B as Q,R as Ue,C as ue,as as $e,S as Ee,J as Ye}from"./icons-Dk9ia89R.js";import{u as G}from"./useQuery-DwXbu02t.js";import{b as ze,t as xe,D as He,a as Ve,i as Qe,c as pe}from"./workspace-queries-BwGSHjQO.js";import{B as S}from"./badge-DDXsmDR6.js";import{u as Ge}from"./sandbox-BB7rpX9h.js";import{f as u}from"./utils-BrMmMMMC.js";import{g as fe,a as he}from"./transaction-status-DR5Q9gCn.js";import{r as Ze,L as ye,a as ge,b as qe,c as be,d as v}from"./list-view-Bo1lHrNw.js";import{r as Ke}from"./entity-rows-ClKpcigG.js";import{P as We}from"./page-header-BapO8lcs.js";import{C as M}from"./CardBrandIcon-DZrnkIrt.js";import{A as Je}from"./add-money-popup-CWMTxJIC.js";import{S as Xe}from"./send-money-popup-BiJzcE-5.js";import{F as et}from"./CountryFlag-XUuu8iqv.js";import{D as tt}from"./DualSeriesChart-B0k7w0so.js";import"./queryOptions-C9woPjwX.js";import"./kbd-BLyrb5u9.js";import"./command-menu-host-DogwMDAn.js";import"./sidebar-nav-B9fLWvsz.js";import"./list-selection-gEcAN2ZM.js";import"./dropdown-menu-Br7A3ifT.js";import"./index-DuU_63WQ.js";import"./index-4ZCr8EaA.js";import"./index-SqWoeikz.js";import"./index-CNSOSpc_.js";import"./hover-intent-BVJL3ioV.js";import"./GatewayIcon-DS6IcOT6.js";import"./aptpay-DVOe_hDw.js";import"./nmi-BjDQzXct.js";import"./paysio-BD4LuS7Z.js";import"./tooltip-dthSM347.js";import"./index-BfqoL0OZ.js";import"./date-tz-BzwnfJlN.js";import"./detail-ui-DRBKVlan.js";import"./collapsible-Dx-K7pN4.js";import"./index-BXVX2Q8H.js";import"./amount-keypad-CnNVX9j2.js";import"./bank-auth-frame-BiiwBaiK.js";import"./select-DRVFTakE.js";import"./index-Bhv3eNQI.js";import"./input-CPdsLOuT.js";import"./label-xeDYeu0z.js";import"./VaultCardFields-Cq6Wmr0t.js";import"./card-expiry-sBXz-M3Y.js";import"./BillingAddressFields-DGcYqp-7.js";import"./AddressFields-DDPXzadc.js";import"./StackedInput-D2JVAj3w.js";import"./CountrySelect-D9NJHVzv.js";import"./menu-search-GHxHEUjo.js";import"./popover-Drh3O9Ct.js";import"./postal-code-DCojCwoN.js";const st={USD:"US",CAD:"CA"},at=10;function nt(a){return a?`#${String(a).padStart(5,"0")}`:""}function rt(a){switch(a){case"fulfilled":return"default";case"partially_fulfilled":return"secondary";case"unfulfilled":return"warning";default:return"secondary"}}function it(a){switch(a){case"fulfilled":return"Fulfilled";case"partially_fulfilled":return"Partial";case"unfulfilled":return"Unfulfilled";default:return""}}function ot(a){return a.purpose==="refund"?"Refund":a.transactionType==="ACH"||a.transactionType==="RTP"?"Bank transfer":"Card payout"}function lt(a){const i=a.lastIndexOf(".");return i===-1?[a,""]:[a.slice(0,i),a.slice(i)]}function dt(a,i=700){const[d,x]=g.useState(a),c=g.useRef(a);return c.current=d,g.useEffect(()=>{const h=c.current;if(h===a)return;let r=0;const m=performance.now(),y=p=>{const o=Math.min((p-m)/i,1),j=1-Math.pow(1-o,3);x(Math.round(h+(a-h)*j)),o<1&&(r=requestAnimationFrame(y))};return r=requestAnimationFrame(y),()=>cancelAnimationFrame(r)},[a,i]),d}const ct=new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"short",day:"numeric"}),mt=new Intl.DateTimeFormat("en-US",{timeZone:"UTC",weekday:"short",month:"short",day:"numeric"}),ut=new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"short",day:"numeric",year:"numeric"});function O(a){const[i,d,x]=a.split("-").map(Number);return new Date(Date.UTC(i,(d||1)-1,x||1))}function xt(a,i){const d=O(a);return d.setUTCDate(d.getUTCDate()+i),d.toISOString().slice(0,10)}function pt(a){return g.useMemo(()=>{const i=new Intl.DateTimeFormat("en-US",{timeZone:a,year:"numeric",month:"2-digit",day:"2-digit"}),d=m=>{const y=i.formatToParts(new Date(m)),p=o=>{var j;return((j=y.find(f=>f.type===o))==null?void 0:j.value)??""};return`${p("year")}-${p("month")}-${p("day")}`},x=d(new Date),c=xt(x,-1),h=m=>m===x?"Today":m===c?"Yesterday":m.slice(0,4)===x.slice(0,4)?mt.format(O(m)):ut.format(O(m)),r=new Intl.DateTimeFormat("en-US",{timeZone:a,hour:"numeric",minute:"2-digit"});return{keyOf:d,today:x,label:h,formatTime:m=>r.format(new Date(m))}},[a])}function je(a,i){return a===0?u(0,i):`${a>0?"+":"-"}${u(Math.abs(a),i)}`}function ft({slices:a,total:i,currency:d,unsettled:x}){const c=a.filter(r=>r.value>0),h=c.reduce((r,m)=>r+m.value,0);return e.jsxs("div",{className:"flex h-full flex-col rounded-2xl border border-border bg-card p-5 shadow-[0_1px_3px_rgba(0,0,0,0.08)] dark:border-border/25",children:[e.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[e.jsx("p",{className:"text-[13px] font-medium text-muted-foreground",children:"Where your money is"}),e.jsx("p",{className:"text-[13px] font-semibold tabular-nums text-foreground",children:u(i,d)})]}),e.jsx("div",{className:"mt-3.5 flex h-2.5 w-full gap-[3px] overflow-hidden rounded-full bg-foreground
1/[0.06]",children:h>0&&c.map(r=>e.jsx("div",{className:k("h-full min-w-[6px] rounded-full transition-[flex-grow] duration-700 ease-out",r.colorClass),style:{flexGrow:r.value,flexBasis:0},title:`${r.label}: ${u(r.value,d)}`},r.key))}),e.jsx("ul",{className:"mt-4 space-y-2.5",children:a.map(r=>e.jsxs("li",{className:"grid grid-cols-[10px_minmax(0,1fr)_auto] items-start gap-x-2.5",children:[e.jsx("span",{className:k("mt-[5px] size-2 rounded-full",r.value>0?r.colorClass:"bg-foreground/15")}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-[13px] font-medium text-foreground",children:r.label}),e.jsx("p",{className:"mt-0.5 text-[12px] leading-snug text-muted-foreground",children:r.hint})]}),e.jsx("p",{className:k("text-[13px] font-medium tabular-nums",r.value>0?"text-foreground":"text-muted-foreground/60"),children:u(r.value,d)})]},r.key))}),x>0&&e.jsxs("div",{className:"mt-3 grid grid-cols-[10px_minmax(0,1fr)_auto] items-start gap-x-2.5 border-t border-border-subtle pt-3",children:[e.jsx("span",{className:"mt-[5px] size-2 rounded-full border border-dashed border-muted-foreground/70"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-[13px] font-medium text-foreground",children:"Not settled yet"}),e.jsx("p",{className:"mt-0.5 text-[12px] leading-snug text-muted-foreground",children:"Payments still settling. Not in your balance until they do."})]}),e.jsx("p",{className:"text-[13px] font-medium tabular-nums text-muted-foreground",children:u(x,d)})]})]})}const ht=[{days:7,label:"7D"},{days:30,label:"30D"},{days:90,label:"90D"}];function yt({history:a,pending:i,failed:d,refreshing:x,days:c,onDaysChange:h,currency:r,dayLabel:m}){const[y,p]=g.useState(null),o=a==null?void 0:a.series,j=g.useMemo(()=>(o??[]).map(l=>({date:l.date,primary:l.balance,secondary:l.moneyIn})),[o]),f=y?(o==null?void 0:o.find(l=>l.date===y))??null:null,w=o==null?void 0:o[o.length-1],I=!!o&&o.every(l=>l.moneyIn===0&&l.moneyOut===0),N=f?f.balance:(w==null?void 0:w.balance)??0,n=f?m(f.date):null,U=!n||n==="Today"?"Today":`End of ${n==="Yesterday"?"yesterday":n}`,$=f?f.moneyIn:(a==null?void 0:a.totals.moneyIn)??0,A=f?f.moneyOut:(a==null?void 0:a.totals.moneyOut)??0;return e.jsxs("div",{className:"flex h-full min-h-[272px] flex-col overflow-hidden rounded-2xl border border-border bg-card shadow-[0_1px_3px_rgba(0,0,0,0.08)] dark:border-border/25",children:[e.jsxs("div",{className:"px-5 pt-5",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("p",{className:"text-[13px] font-medium text-muted-foreground",children:"Balance history"}),e.jsx("div",{className:"flex items-center gap-1",role:"tablist","aria-label":"Range",children:ht.map(l=>e.jsx("button",{type:"button",role:"tab","aria-selected":l.days===c,onClick:()=>h(l.days),className:k("h-6 rounded-full border px-2.5 text-[11px] font-medium leading-none transition-colors",l.days===c?"border-border bg-tertiary text-foreground":"border-transparent text-muted-foreground hover:bg-foreground
1/[0.06] hover:text-foreground"),children:l.label},l.days))})]}),e.jsxs("div",{className:"mt-2 flex flex-wrap items-end justify-between gap-x-6 gap-y-3",children:[e.jsx("div",{className:"min-w-0",children:i?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"h-[26px] w-40 skeleton rounded-md bg-muted"}),e.jsx("div",{className:"mt-1.5 h-3 w-16 skeleton rounded bg-muted"})]}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-[26px] font-semibold leading-none tracking-[-0.03em] tabular-nums text-foreground",children:u(N,r)}),e.jsx("p",{className:"mt-1.5 text-[11px] text-muted-foreground",children:U})]})}),!i&&!d&&e.jsxs("div",{className:"flex items-end gap-5",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[11px] text-muted-foreground",children:"Money in"}),e.jsx("p",{className:"mt-1 text-[13px] font-semibold tabular-nums text-emerald-600 dark:text-emerald-400",children:je($,r)})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[11px] text-muted-foreground",children:"Money out"}),e.jsx("p",{className:"mt-1 text-[13px] font-semibold tabular-nums text-foreground",children:je(-A,r)})]})]})]})]}),e.jsx("div",{className:k("relative mt-1 min-h-[150px] flex-1 transition-opacity",x&&"opacity-60"),children:i?e.jsx("div",{className:"absolute inset-x-5 bottom-10 top-4 skeleton rounded-xl bg-muted"}):d?e.jsx("div",{className:"flex h-full items-center justify-center px-6 text-center text-[12px] text-muted-foreground",children:"Couldn't load your balance history. Reload the page to try again."}):I&&N===0?e.jsxs("div",{className:"flex h-full items-center justify-center px-6 text-center text-[12px] text-muted-foreground",children:["Nothing has moved in the last ",c," days. Your balance will draw here once it does."]}):e.jsx(tt,{data:j,primaryLabel:"Balance",secondaryLabel:"Money in",formatPrimary:l=>u(l,r),formatSecondary:l=>u(l,r),formatAxisDate:l=>ct.format(O(l)),formatTooltipDate:m,emptyMessage:"No balance history yet",edgeFades:!1,onHoverPoint:l=>p((l==null?void 0:l.date)??null)})})]})}const gt=[{id:"all",label:"All activity"},{id:"in",label:"Money in"},{id:"out",label:"Money out"},{id:"reconciliation",label:"Reconciliations"}],Ne={all:{title:"No activity yet",description:""},in:{title:"Nothing here yet",description:"Debit pulls and incoming transfers on this account will show up here."},out:{title:"Nothing here yet",description:"Payouts and refunds sent from this balance will show up here."},reconciliation:{title:"No reconciliations",description:"When we match your balance with the bank and find a difference, the correction shows up here."}},bt=[],ve="grid-cols-[72px_104px_1fr] lg:grid-cols-[84px_120px_130px_minmax(0,1fr)_minmax(0,1fr)_88px]";function gs(){var ie,oe;const{activeWorkspace:a,authFetch:i}=Be(),{isSandboxMode:d}=Ge(),x=Me(),{workspaceSlug:c}=Oe({strict:!1}),h=Ie(),r=(a==null?void 0:a.id)??"",m=(a==null?void 0:a.timezone)||"UTC",y=pt(m),p=G({...ze(i,r,d),retry:!1}),[o,j]=g.useState("all"),f=G({...xe(i,r,d,pe(o)),placeholderData:de}),[w,I]=g.useState(He),N=G({...Ve(i,r,d,w),enabled:!!r&&p.isSuccess,placeholderData:de}),n=p.data??null,U=((ie=f.data)==null?void 0:ie.transactions)??bt,$=p.isError,A=p.isPending||p.isSuccess&&f.isPending;g.useEffect(()=>{if(!(!p.isSuccess||!r))for(const s of["in","out","reconciliation"])h.prefetchQuery(xe(i,r,d,pe(s)))},[p.isSuccess,r,d,h,i]);const[l,Z]=g.useState(!1),[ke,q]=g.useState(!1);g.useEffect(()=>{Ze("balances","Balances",`/${c}/balances`)},[c]);const K=g.useCallback(()=>{r&&Qe(h,r)},[h,r]),b=(n==null?void 0:n.currency)||"USD",we=dt((n==null?void 0:n.available)??0),W=st[b],[Te,Ce]=lt(u(we,b)),J=(n==null?void 0:n.available)??0,E=(n==null?void 0:n.inTransit)??0,Y=((oe=n==null?void 0:n.inTransitByRail)==null?void 0:oe.card)??0,z=n!=null&&n.inTransitByRail?n.inTransitByRail.bank:E,H=(n==null?void 0:n.pendingOut)??0,_=(n==null?void 0:n.linkHolds)??0,X=(n==null?void 0:n.pendingPayouts)??Math.max(0,H-_),ee=Math.max(0,J)+E+H,te=(n==null?void 0:n.ledgerBalance)??ee,se=Math.max(0,te-ee),Se=Y>0&&z>0?`${u(Y,b)} from cards (a few hours) and ${u(z,b)} from bank payments (a few business days).`:Y>0?"Settled card payments on their way. Usually a few hours.":z>0?"Settled bank payments on their way. Usually a few business days.":"Settled payments on their way to your balance.",ae=`/${c}/payout-links`,De=X>0&&_>0?e.jsxs(e.Fragment,{children:[u(X,b)," for payouts on their way, ",u(_,b)," for"," ",e.jsx(V,{to:ae,className:"underline decoration-border underline-offset-2 hover:text-foreground",children:"unclaimed payout links"}),"."]}):_>0?e.jsxs(e.Fragment,{children:["Held for"," ",e.jsx(V,{to:ae,className:"underline decoration-border underline-offset-2 hover:text-foreground",children:"unclaimed payout links"}),"."]}):"Set aside for payouts on their way and unclaimed payout links.",Ae=[{key:"available",label:"Available",value:Math.max(0,J),colorClass:"bg-emerald-500",hint:"Ready to send or pay out now."},{key:"clearing",label:"Clearing",value:E,colorClass:"bg-emerald-500/35",hint:Se},{key:"reserved",label:"Reserved",value:H,colorClass:"bg-orange-400",hint:De},...se>0?[{key:"hold",label:"On hold",value:se,colorClass:"bg-foreground
1/35",hint:"Not released by the bank yet."}]:[]],T=n==null?void 0:n.payoutLimit,_e=(T==null?void 0:T.limitCents)!=null,Fe=U.filter(s=>s.processorType==="aptpay"),Le=o==="reconciliation"?[]:((n==null?void 0:n.entries)||[]).filter(s=>(s.entryType==="fee_release"||s.entryType==="usage_fee"&&!s.sourceId)&&(o==="all"||(s.amount>=0?"in":"out")===o)),ne=[...Fe,...Le].sort((s,t)=>new Date(t.createdAt).getTime()-new Date(s.createdAt).getTime()).slice(0,at),F=[];for(const s of ne){const t=y.keyOf(s.createdAt),D=F[F.length-1];D&&D.key===t?D.rows.push(s):F.push({key:t,rows:[s]})}const Re=e.jsxs("div",{className:"mt-6 flex flex-wrap gap-2",children:[e.jsxs(R,{onClick:()=>Z(!0),className:"h-9 gap-1.5 px-4 text-[13px]",children:[e.jsx($e,{className:"size-4"}),"Add money"]}),e.jsxs(R,{variant:"outline",onClick:()=>q(!0),className:"h-9 gap-1.5 px-4 text-[13px]",children:[e.jsx(Ee,{className:"size-4"}),"Send money"]}),e.jsxs(R,{variant:"outline",onClick:()=>x({to:`/${c}/payout-links/new`}),className:"h-9 gap-1.5 px-4 text-[13px]",children:[e.jsx(Ye,{className:"size-4"}),"Create payout link"]})]});function re(s){const t=s.amount<0;return e.jsxs(be,{columns:ve,className:"lg:gap-x-5",children:[e.jsx(v,{muted:!0,children:"Balance"}),e.jsx(v,{bold:!0,mono:!0,className:t?"text-orange-600":void 0,children:e.jsxs("span",{className:"flex items-center gap-1",children:[t?e.jsx(B,{className:"size-3.5 shrink-0 text-orange-500"}):e.jsx(P,{className:"size-3.5 shrink-0 text-emerald-600"}),e.jsxs("span",{className:"truncate",children:[t?"-":"+",u(Math.abs(s.amount),s.currency)]})]})}),e.jsx("div",{className:"hidden items-center lg:flex",children:e.jsx(S,{variant:"secondary",className:"py-1 text-[11px]",children:s.badge})}),e.jsxs("span",{className:"hidden items-center gap-2 truncate lg:flex",children:[e.jsx("span",{className:"flex size-[30px] shrink-0 items-center justify-center rounded-full bg-foreground
1/[0.06] text-muted-foreground",children:e.jsx(Q,{className:"size-4"})}),e.jsx("span",{className:"truncate text-[13px] text-muted-foreground",children:s.source})]}),e.jsx(v,{children:s.description}),e.jsx(v,{muted:!0,align:"right",className:"hidden lg:block",children:y.formatTime(s.createdAt)})]},s.key)}function Pe(s){if("entryType"in s){const L=s.entryType==="fee_release";return re({key:`ledger-${s.id}`,amount:s.amount,currency:s.currency,badge:"Fees",source:"Paysio fees",description:s.note||(L?"Fees released back to your balance":"Service fee"),createdAt:s.createdAt})}if(s.kind==="reconciliation"){const L=s.direction==="out";return re({key:`recon-${s.id}`,amount:L?-s.amount:s.amount,currency:s.currency,badge:"Reconciled",source:"External balance",description:s.note||(L?"External balance removed":"External balance added"),createdAt:s.createdAt})}const t=s,D=t.customerFirstName||t.customerLastName?`${t.customerFirstName||""} ${t.customerLastName||""}`.trim():t.billingFirstName||t.billingLastName?`${t.billingFirstName||""} ${t.billingLastName||""}`.trim():t.customerEmail||t.billingEmail||"Unknown",C=t.direction==="out";return e.jsxs(be,{to:`/${c}/transactions/${t.id}`,columns:ve,className:"lg:gap-x-5",children:[e.jsx(v,{muted:!0,mono:!0,children:t.orderNumber?nt(t.orderNumber):""}),e.jsx(v,{bold:!0,mono:!0,className:C?"text-orange-600":void 0,children:e.jsxs("span",{className:"flex items-center gap-1",children:[C?e.jsx(B,{className:"size-3.5 shrink-0 text-orange-500"}):e.jsx(P,{className:"size-3.5 shrink-0 text-emerald-600"}),e.jsxs("span",{className:"truncate",children:[C?"-":"",u(Ke(t),t.currency)]})]})}),e.jsx("div",{className:"hidden items-center lg:flex",children:C?e.jsx(S,{variant:he(t.status),className:"py-1 text-[11px]",children:fe(t.status)}):t.cancelledAt?e.jsx(S,{variant:"destructive",className:"py-1 text-[11px]",children:"Cancelled"}):t.fundsClearing?e.jsx(S,{variant:"secondary",className:"py-1 text-[11px]",title:"Settled. The money reaches your balance within 1–3 business days.",children:"Clearing"}):t.fulfillmentStatus?e.jsx(S,{variant:rt(t.fulfillmentStatus),className:"py-1 text-[11px]",children:it(t.fulfillmentStatus)}):e.jsx(S,{variant:he(t.status,t.processorType),className:"py-1 text-[11px]",children:fe(t.status,t.processorType)})}),e.jsx("span",{className:"hidden items-center gap-2 truncate lg:flex",children:C&&t.transactionType==="CARD"&&t.cardLastFour?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"inline-flex shrink-0 items-center",children:e.jsx(M,{brand:t.cardType,bin:t.cardBin,walletType:t.walletType,bankName:t.bankName,size:30,chip:!1})}),e.jsx("span",{className:"truncate text-[13px] text-muted-foreground",children:t.cardLastFour})]}):C?e.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1.5 text-[13px] text-muted-foreground",children:[e.jsx(M,{brand:"bank",bankName:t.bankName,size:30}),e.jsx("span",{className:"truncate",children:t.cardLastFour||ot(t)})]}):t.transactionType==="ACH"?e.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1.5 text-[13px] text-muted-foreground",children:[e.jsx(M,{brand:"bank",bankName:t.bankName,size:30}),e.jsx("span",{className:"truncate",children:t.cardLastFour?`Bank •••• ${t.cardLastFour}`:"Bank"})]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"inline-flex shrink-0 items-center",children:e.jsx(M,{brand:t.cardType,bin:t.cardBin,walletType:t.walletType,bankName:t.bankName,size:30,chip:!1})}),t.cardLastFour&&e.jsx("span",{className:"truncate text-[13px] text-muted-foreground",children:t.cardLastFour})]})}),e.jsx(v,{children:D}),e.jsx(v,{muted:!0,align:"right",className:"hidden lg:block",children:y.formatTime(t.createdAt)})]},t.id)}return e.jsxs("section",{className:"flex h-full flex-col",children:[e.jsx(We,{title:"Balances",icon:e.jsx(ce,{})}),e.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",children:!A&&$?e.jsx(ye,{icons:e.jsx(ge,{icons:[e.jsx(P,{}),e.jsx(B,{}),e.jsx(me,{}),e.jsx(Q,{})]}),title:"Not connected",description:`Connect ${le("Debit & Payouts")} to hold a balance, accept debit pulls and send payouts.`,actions:e.jsx(R,{size:"sm",className:"h-7 px-2.5 text-[12px]",onClick:()=>x({to:`/${c}/onboard`}),children:"Connect"})}):e.jsx("div",{className:"px-4 pb-14 pt-6 md:px-6",children:A?e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"h-4 w-32 skeleton rounded bg-muted"}),e.jsx("div",{className:"h-12 w-72 skeleton rounded-[10px] bg-muted"}
1),e.jsx("div",{className:"flex gap-2",children:[100,116,148].map(s=>e.jsx("div",{className:"h-9 skeleton rounded-full bg-muted",style:{width:s}},s))})]}),e.jsxs("div",{className:"grid gap-4 xl:grid-cols-[minmax(0,1.65fr)_minmax(0,1fr)]",children:[e.jsx("div",{className:"h-[272px] skeleton rounded-2xl bg-muted"}),e.jsx("div",{className:"h-[272px] skeleton rounded-2xl bg-muted"})]}),e.jsx("div",{className:"space-y-1",children:[1,2,3,4,5].map(s=>e.jsx("div",{className:"h-11 skeleton rounded-lg bg-muted"},s))})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-[15px] font-semibold text-foreground",children:"Available balance"}),e.jsxs("div",{className:"mt-2.5 flex flex-wrap items-baseline gap-x-2.5 gap-y-1",children:[e.jsxs("span",{className:"text-[40px] font-semibold leading-none tracking-[-0.055em] tabular-nums sm:text-[48px]",children:[Te,e.jsx("span",{className:"text-muted-foreground/40",children:Ce})]}),e.jsxs("span",{className:"flex items-center gap-1.5 text-[14px] font-medium text-muted-foreground",children:[W&&e.jsx("span",{className:"inline-flex size-4 overflow-hidden rounded-full ring-1 ring-border",children:e.jsx(et,{code:W,boxSize:16,title:b})}),b]})]}),_e&&T&&e.jsxs("p",{className:"mt-2.5 text-[12px] text-muted-foreground",children:["You can send up to ",u(T.remainingCents??0,b)," more today."," ","Your daily limit is ",u(T.limitCents??0,b),"."]}),Re]}),e.jsxs("div",{className:"mt-10 grid items-stretch gap-4 xl:grid-cols-[minmax(0,1.65fr)_minmax(0,1fr)]",children:[e.jsx(yt,{history:N.data,pending:N.isPending,failed:N.isError&&!N.data,refreshing:N.isPlaceholderData,days:w,onDaysChange:I,currency:b,dayLabel:y.label}),e.jsx(ft,{slices:Ae,total:te,currency:b,unsettled:(n==null?void 0:n.pendingIn)??0})]}),e.jsxs("div",{className:"mt-10",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("p",{className:"text-[15px] font-semibold text-foreground",children:"Recent activity"}),e.jsx(V,{to:`/${c}/transactions${o==="all"?"":`?direction=${o}`}`,className:"rounded-full px-2.5 py-1 text-[12px] font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:"View all"})]}),e.jsx(qe,{presets:gt,presetId:o,onPresetSelect:s=>j(s),className:"h-11 px-0"}),ne.length===0&&!f.isPlaceholderData?e.jsx(ye,{icons:e.jsx(ge,{icons:o==="reconciliation"?[e.jsx(Ue,{}),e.jsx(Q,{}),e.jsx(ue,{}),e.jsx(ce,{})]:[e.jsx(P,{}),e.jsx(B,{}),e.jsx(me,{}),e.jsx(ue,{})]}
1),title:Ne[o].title,description:Ne[o].description||`Money moving in and out of your ${le("Debit & Payouts")} account lands here.`}):e.jsx("div",{className:k("-mx-3 transition-opacity",f.isPlaceholderData&&"opacity-60"),children:F.map((s,t)=>e.jsxs("div",{children:[e.jsx("p",{className:k("px-3 pb-1 text-[12px] font-medium text-muted-foreground",t===0?"pt-2":"pt-5"),children:y.label(s.key)}),s.rows.map(Pe)]},s.key))})]})]})})}),e.jsx(Je,{open:l,onOpenChange:s=>{Z(s),s||K()},workspaceSlug:c}),e.jsx(Xe,{open:ke,onOpenChange:s=>{q(s),s||K()}})]})}export{gs as SettingsPaysioBalancePage};

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.