module.exports=[703130,a=>{"use strict";var b=a.i(187924),c=a.i(497895);a.s(["Card",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card",className:(0,c.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",a),...d})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-6",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-muted-foreground text-sm",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-title",className:(0,c.cn)("leading-none font-semibold",a),...d})}])},925786,a=>{"use strict";var b=a.i(187924),c=a.i(238246),d=a.i(572131),e=a.i(50944),f=a.i(703130),g=a.i(340695),h=a.i(133951),i=a.i(725944),j=a.i(700006);a.s(["default",0,function(){let a=(0,e.useParams)().id,k=(0,d.useMemo)(()=>(0,i.getApiService)(),[]),{error:l}=(0,h.useToast)(),[m,n]=(0,d.useState)(null),[o,p]=(0,d.useState)([]),[q,r]=(0,d.useState)(!0);(0,d.useEffect)(()=>{(async()=>{r(!0);let[b,c]=await Promise.all([k.getAccountTransfer(a),k.listAccounts({pageSize:200})]);b.success&&b.data?n(b.data):l("Failed to load transfer",b.error),c.success&&c.data&&p(c.data.results||[]),r(!1)})()},[k,a,l]);let s=o.reduce((a,b)=>(a[b.id]=b.name,a),{});return(0,b.jsxs)("div",{className:"flex-1 space-y-6",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-3xl font-bold text-foreground",children:"Transfer Details"}),(0,b.jsx)("p",{className:"text-muted-foreground mt-2",children:"View account transfer information"})]}),(0,b.jsx)(c.default,{href:"/accounts/transfers",children:(0,b.jsx)(g.Button,{variant:"outline",children:"Back"})})]}),(0,b.jsxs)(f.Card,{className:"bg-card border-border",children:[(0,b.jsx)(f.CardHeader,{children:(0,b.jsx)(f.CardTitle,{children:"Transfer"})}),(0,b.jsx)(f.CardContent,{children:q?(0,b.jsx)("p",{className:"text-muted-foreground",children:"Loading transfer..."}):m?(0,b.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-sm",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-muted-foreground",children:"Date"}),(0,b.jsx)("p",{className:"font-medium text-foreground",children:m.transferDate})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-muted-foreground",children:"Amount"}),(0,b.jsxs)("p",{className:"font-medium text-foreground",children:[j.config.locale.currencySymbol,m.amount.toLocaleString()]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-muted-foreground",children:"From Account"}),(0,b.jsx)("p",{className:"font-medium text-foreground",children:s[m.fromAccountId]||m.fromAccountId})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-muted-foreground",children:"To Account"}),(0,b.jsx)("p",{className:"font-medium text-foreground",children:s[m.toAccountId]||m.toAccountId})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-muted-foreground",children:"Reference"}),(0,b.jsx)("p",{className:"font-medium text-foreground",children:m.referenceNumber||"-"})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-muted-foreground",children:"Notes"}),(0,b.jsx)("p",{className:"font-medium text-foreground",children:m.notes||"-"})]})]}):(0,b.jsx)("p",{className:"text-muted-foreground",children:"Transfer not found."})})]})]})}])}];

//# sourceMappingURL=_0n0_djs._.js.map