PageSourceSearch

https://portal.chip-in.asia/build/routes/_app/collect/balances/route-2PESPJ3G.js

js chip-in.asia collected 2026-09-24 08:54:46 UTC 4,753 bytes, 1 lines download raw bytes

1import{a as g}from"/build/_shared/chunk-3LGYZLCD.js";import{c as h}from"/build/_shared/chunk-PAB2VTEZ.js";import{a as l}from"/build/_shared/chunk-3NEINLPQ.js";import"/build/_shared/chunk-3RKN6HFN.js";import{a as x}from"/build/_shared/chunk-YNXIJMD2.js";import{a as i}from"/build/_shared/chunk-NGZY4SNM.js";import"/build/_shared/chunk-UIBGULCG.js";import"/build/_shared/chunk-AIRXGVP3.js";import"/build/_shared/chunk-WSSHVIMB.js";import"/build/_shared/chunk-WMIPC762.js";import"/build/_shared/chunk-BJ4RFIBQ.js";import"/build/_shared/chunk-YTWJGXMQ.js";import"/build/_shared/chunk-EGXYMZPM.js";import"/build/_shared/chunk-RWX2RI66.js";import{cb as u,db as y,gb as f}from"/build/_shared/chunk-EOJS7VXF.js";import"/build/_shared/chunk-LHPP46I3.js";import{D as b}from"/build/_shared/chunk-I7IIOYZ4.js";import"/build/_shared/chunk-L327ZUMW.js";import"/build/_shared/chunk-7YZTNJBA.js";import"/build/_shared/chunk-TY43B2WU.js";import"/build/_shared/chunk-RSV5R2LB.js";import{A as m}from"/build/_shared/chunk-X4AHNLAR.js";import{d as s}from"/build/_shared/chunk-DTKMK5PW.js";var d="Asia/Kuala_Lumpur",p=e=>e==null?(0,i.default)().tz(d).format("YYYY-MM-DD"):typeof e=="string"&&/^\d{4}-\d{2}-\d{2}/.test(e)?e.slice(0,10):(0,i.default)(e).tz(d).format("YYYY-MM-DD"),T=e=>{if(!e||e.some(n=>!n?.date))return[];let o=p();return e.filter(n=>p(n.date??new Date("0001-01-01"))===o&&n.status!=="on_hold")},D=e=>{if(!e)return[];let o=(0,i.default)().tz(d).add(1,"day").format("YYYY-MM-DD");return e.filter(n=>p(n.date??new Date("0001-01-01"))===o&&n.status!=="on_hold")},v=e=>e&&T(e)?.reduce((n,a)=>n+(a?.total_net_amount??0),0)||0,N=e=>e&&D(e)?.reduce((n,a)=>n+(a?.total_net_amount??0),0)||0,S=e=>e&&e.filter(o=>o?.status==="on_hold").reduce((o,n)=>o+(n?.total_net_amount??0),0)||0,A=e=>e?T(e).some(n=>n?.status==="completed"):!1;var r=s(m()),w=({title:e,tooltip:o})=>(0,r.jsxs)(u,{children:[(0,r.jsx)(y,{asChild:!0,children:(0,r.jsxs)("p",{className:"flex gap-4 items-center justify-center",children:[e,(0,r.jsx)(b,{size:18})]})}),(0,r.jsx)(f,{children:(0,r.jsx)("p",{children:o})})]});var t=s(m()),U=()=>[{title:"CHIP Collect | Balances"}],_={breadcrumb:{label:"Balances",link:"/collect/balances"}};function Y(){let{data:e}=h(),o=e?.data??[],n=N(o),a=A(o),c=v(o),M=S(o);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x,{title:"Balances"}),(0,t.jsxs)("div",{className:"space-y-6 sm:space-y-8 pb-8",children:[(0,t.jsx)("section",{className:"gap-x-12 sm:grid sm:grid-cols-5",children:(0,t.jsx)("div",{className:"col-span-3",children:(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("div",{className:"flex justify-between h-7 sm:h-8",children:(0,t.jsx)("div",{className:"space-y-1.5",children:(0,t.jsx)("h1",{className:"font-semibold text-base sm:text-lg",children:"Available Balance"})})}),(0,t.jsxs)("ol",{className:"border-t",children:[(0,t.jsxs)("li",{className:"flex justify-between items-center border-b py-2",children:[(0,t.jsx)("p",{children:"Upcoming Settlements"}),(0,t.jsx)(l,{value:n,format:{style:"currency",currency:"MYR"}})]}),(0,t.jsxs)("li",{className:"flex justify-between items-center border-b py-2",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("p",{children:a?"Settlement Completed Today":"Settlement Expected to Arrive Today"}),(0,t.jsx)("p",{className:"text-xs pt-2 text-warning",children:"Finalized totals, consolidated across Send, Advance, and other modules, will be available by 6:00 AM MYT daily."})]}),(0,t.jsx)(l,{value:c,format:{style:"currency",currency:"MYR"}})]}),(0,t.jsxs)("li",{className:"flex justify-between items-center border-b py-2",children:[(0,t.jsx)(w,{title:"Funds on Hold",tooltip:"Funds on hold due to suspicious transactions"}),(0,t.jsx)(l,{value:M,format:{style:"currency",currency:"MYR"}})]})]})]})})}),(0,t.jsx)(g,{}),(0,t.jsx)("section",{className:"gap-x-12 sm:grid sm:grid-cols-5",children:(0,t.jsx)("div",{className:"col-span-3",children:(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("div",{className:"flex justify-between h-7 sm:h-8",children:(0,t.jsx)("div",{className:"space-y-1.5",children:(0,t.jsx)("h1",{className:"font-semibold text-base sm:text-lg",children:"Daily Settlement"})})}),(0,t.jsxs)("ol",{className:"border-t",children:[(0,t.jsxs)("li",{className:"flex justify-between items-center border-b py-2",children:[(0,t.jsx)("p",{children:a?"Settlement Completed Today":"Settlement Expected to Arrive Today"}),(0,t.jsx)(l,{value:c,format:{style:"currency",currency:"MYR"}})]}),(0,t.jsxs)("li",{className:"flex justify-between items-center border-b-0 py-2 font-medium",children:[(0,t.jsx)("p",{children:"Total Settlement"}),(0,t.jsx)(l,{value:c,format:{style:"currency",currency:"MYR"}})]})]})]})})})]})]})}export{Y as default,_ as handle,U as meta};

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.