(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,970065,e=>{"use strict";var r=e.i(843476),t=e.i(647163);e.s(["Card",0,function({className:e,...s}){return(0,r.jsx)("div",{"data-slot":"card",className:(0,t.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...s})},"CardContent",0,function({className:e,...s}){return(0,r.jsx)("div",{"data-slot":"card-content",className:(0,t.cn)("px-6",e),...s})},"CardDescription",0,function({className:e,...s}){return(0,r.jsx)("div",{"data-slot":"card-description",className:(0,t.cn)("text-muted-foreground text-sm",e),...s})},"CardHeader",0,function({className:e,...s}){return(0,r.jsx)("div",{"data-slot":"card-header",className:(0,t.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",e),...s})},"CardTitle",0,function({className:e,...s}){return(0,r.jsx)("div",{"data-slot":"card-title",className:(0,t.cn)("leading-none font-semibold",e),...s})}])},113464,e=>{"use strict";var r=e.i(843476),t=e.i(522016),s=e.i(271645),a=e.i(618566),d=e.i(970065),n=e.i(167881),c=e.i(270598),o=e.i(272944),i=e.i(551956);e.s(["default",0,function(){let e=(0,a.useParams)().id,l=(0,s.useMemo)(()=>(0,o.getApiService)(),[]),{error:u}=(0,c.useToast)(),[m,x]=(0,s.useState)(null),[f,h]=(0,s.useState)([]),[j,g]=(0,s.useState)(!0);(0,s.useEffect)(()=>{(async()=>{g(!0);let[r,t]=await Promise.all([l.getAccountTransfer(e),l.listAccounts({pageSize:200})]);r.success&&r.data?x(r.data):u("Failed to load transfer",r.error),t.success&&t.data&&h(t.data.results||[]),g(!1)})()},[l,e,u]);let p=f.reduce((e,r)=>(e[r.id]=r.name,e),{});return(0,r.jsxs)("div",{className:"flex-1 space-y-6",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-3xl font-bold text-foreground",children:"Transfer Details"}),(0,r.jsx)("p",{className:"text-muted-foreground mt-2",children:"View account transfer information"})]}),(0,r.jsx)(t.default,{href:"/accounts/transfers",children:(0,r.jsx)(n.Button,{variant:"outline",children:"Back"})})]}),(0,r.jsxs)(d.Card,{className:"bg-card border-border",children:[(0,r.jsx)(d.CardHeader,{children:(0,r.jsx)(d.CardTitle,{children:"Transfer"})}),(0,r.jsx)(d.CardContent,{children:j?(0,r.jsx)("p",{className:"text-muted-foreground",children:"Loading transfer..."}):m?(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-sm",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-muted-foreground",children:"Date"}),(0,r.jsx)("p",{className:"font-medium text-foreground",children:m.transferDate})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-muted-foreground",children:"Amount"}),(0,r.jsxs)("p",{className:"font-medium text-foreground",children:[i.config.locale.currencySymbol,m.amount.toLocaleString()]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-muted-foreground",children:"From Account"}),(0,r.jsx)("p",{className:"font-medium text-foreground",children:p[m.fromAccountId]||m.fromAccountId})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-muted-foreground",children:"To Account"}),(0,r.jsx)("p",{className:"font-medium text-foreground",children:p[m.toAccountId]||m.toAccountId})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-muted-foreground",children:"Reference"}),(0,r.jsx)("p",{className:"font-medium text-foreground",children:m.referenceNumber||"-"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-muted-foreground",children:"Notes"}),(0,r.jsx)("p",{className:"font-medium text-foreground",children:m.notes||"-"})]})]}):(0,r.jsx)("p",{className:"text-muted-foreground",children:"Transfer not found."})})]})]})}])}]);