{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "money-transfer-form",
  "title": "Money Transfer Form",
  "description": "A bank transfer flow in three steps: pick the source account, a saved recipient or a new one with live IBAN formatting and a validity check, a big amount field with quick amounts and balance checks, instant vs standard speed with fees, reference and repeat; then a review summary with a press-and-hold send button and an animated success receipt.",
  "dependencies": [
    "motion",
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/money-transfer-form/money-transfer-form.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { AnimatePresence, animate, motion, useMotionValue, useReducedMotion, useTransform } from \"motion/react\";\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nfunction cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n\ninterface Account {\n  id: string;\n  label: string;\n  last4: string;\n  balance: number;\n}\ninterface Payee {\n  id: string;\n  name: string;\n  iban: string;\n  color: string;\n}\n\nexport interface TransferValue {\n  from: string;\n  to: { name: string; iban: string };\n  amount: number;\n  speed: \"instant\" | \"standard\";\n  reference: string;\n  when: \"now\" | \"monthly\";\n}\n\nexport interface MoneyTransferFormProps {\n  accounts?: Account[];\n  payees?: Payee[];\n  currency?: string;\n  /** Return a Promise; the confirm step waits for it. */\n  onSend?: (v: TransferValue) => void | Promise<void>;\n  theme?: \"dark\" | \"light\";\n  className?: string;\n}\n\nconst PALETTES = {\n  dark: { bg: \"#0A0A0A\", text: \"#F5F4F1\", muted: \"rgba(245,244,241,0.62)\", faint: \"rgba(245,244,241,0.36)\", card: \"#121212\", well: \"rgba(255,255,255,0.04)\", border: \"rgba(255,255,255,0.09)\", input: \"#0D0D0D\", track: \"rgba(255,255,255,0.1)\", on: \"#F5F4F1\", onText: \"#0A0A0A\", green: \"#4ADE80\", red: \"#F87171\", ring: \"rgba(245,244,241,0.6)\" },\n  light: { bg: \"#FAFAF8\", text: \"#0A0A0A\", muted: \"rgba(10,10,10,0.62)\", faint: \"rgba(10,10,10,0.4)\", card: \"#FFFFFF\", well: \"rgba(10,10,10,0.035)\", border: \"rgba(10,10,10,0.1)\", input: \"#FAFAF8\", track: \"rgba(10,10,10,0.1)\", on: \"#0A0A0A\", onText: \"#FAFAF8\", green: \"#15803D\", red: \"#DC2626\", ring: \"rgba(10,10,10,0.5)\" },\n};\nconst ACCOUNTS: Account[] = [\n  { id: \"main\", label: \"Main account\", last4: \"4821\", balance: 3482.16 },\n  { id: \"savings\", label: \"Savings\", last4: \"0912\", balance: 12050 },\n];\nconst PAYEES: Payee[] = [\n  { id: \"p1\", name: \"Mara Jensen\", iban: \"DE89 3704 0044 0532 0130 00\", color: \"#F472B6\" },\n  { id: \"p2\", name: \"Altbau Living\", iban: \"DE12 5001 0517 5407 3249 31\", color: \"#60A5FA\" },\n  { id: \"p3\", name: \"Jonas Berg\", iban: \"NL91 ABNA 0417 1643 00\", color: \"#34D399\" },\n  { id: \"p4\", name: \"Kornblume Bakery\", iban: \"DE44 1001 1001 2620 6143 83\", color: \"#FBBF24\" },\n];\nconst FEES = { instant: 0.5, standard: 0 };\nconst fmtIban = (s: string) =>\n  s\n    .replace(/[^a-zA-Z0-9]/g, \"\")\n    .toUpperCase()\n    .slice(0, 34)\n    .replace(/(.{4})/g, \"$1 \")\n    .trim();\nconst ibanOk = (s: string) => {\n  const raw = s.replace(/\\s/g, \"\");\n  return /^[A-Z]{2}\\d{2}[A-Z0-9]{11,30}$/.test(raw);\n};\nconst initials = (n: string) =>\n  n\n    .split(\" \")\n    .map((w) => w[0])\n    .join(\"\")\n    .slice(0, 2);\n\nexport function MoneyTransferForm({ accounts = ACCOUNTS, payees = PAYEES, currency = \"€\", onSend, theme = \"dark\", className }: MoneyTransferFormProps) {\n  const p = PALETTES[theme];\n  const reduce = !!useReducedMotion();\n  const uid = React.useId();\n  const [step, setStep] = React.useState<\"form\" | \"review\" | \"sent\">(\"form\");\n  const [from, setFrom] = React.useState(accounts[0]?.id ?? \"\");\n  const [payee, setPayee] = React.useState<string | null>(null);\n  const [newName, setNewName] = React.useState(\"\");\n  const [newIban, setNewIban] = React.useState(\"\");\n  const [amount, setAmount] = React.useState(\"\");\n  const [speed, setSpeed] = React.useState<\"instant\" | \"standard\">(\"instant\");\n  const [reference, setReference] = React.useState(\"\");\n  const [when, setWhen] = React.useState<\"now\" | \"monthly\">(\"now\");\n  const [touched, setTouched] = React.useState(false);\n  const [sending, setSending] = React.useState(false);\n  const hold = useMotionValue(0);\n  const holdWidth = useTransform(hold, (v) => `${v * 100}%`);\n  const holdAnim = React.useRef<ReturnType<typeof animate> | null>(null);\n\n  const acct = accounts.find((a) => a.id === from) ?? accounts[0];\n  const chosen = payees.find((x) => x.id === payee) ?? null;\n  const isNew = payee === \"new\";\n  const to = chosen ? { name: chosen.name, iban: chosen.iban } : { name: newName.trim(), iban: newIban };\n  const value = Number(amount.replace(\",\", \".\")) || 0;\n  const fee = FEES[speed];\n  const errors = {\n    to: !chosen && !(isNew && to.name.length > 1 && ibanOk(newIban)) ? (isNew ? (to.name.length < 2 ? \"Enter the recipient's name\" : \"Check the IBAN, it looks incomplete\") : \"Choose who to pay\") : null,\n    amount: value <= 0 ? \"Enter an amount\" : value + fee > acct.balance ? `That's more than your ${acct.label.toLowerCase()} balance` : null,\n  };\n  const valid = !errors.to && !errors.amount;\n  const money = (n: number) => `${currency}${n.toLocaleString(\"en-US\", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`;\n\n  const startHold = () => {\n    if (sending) return;\n    holdAnim.current?.stop();\n    holdAnim.current = animate(hold, 1, {\n      duration: reduce ? 0 : 1.1,\n      ease: \"linear\",\n      onComplete: async () => {\n        setSending(true);\n        try {\n          await (onSend ? onSend({ from, to, amount: value, speed, reference: reference.trim(), when }) : new Promise((r) => setTimeout(r, reduce ? 0 : 600)));\n          setStep(\"sent\");\n        } finally {\n          setSending(false);\n          hold.set(0);\n        }\n      },\n    });\n  };\n  const cancelHold = () => {\n    if (sending) return;\n    holdAnim.current?.stop();\n    holdAnim.current = animate(hold, 0, { duration: reduce ? 0 : 0.25 });\n  };\n  const reset = () => {\n    setStep(\"form\");\n    setPayee(null);\n    setAmount(\"\");\n    setReference(\"\");\n    setNewName(\"\");\n    setNewIban(\"\");\n    setTouched(false);\n    setWhen(\"now\");\n  };\n\n  const ring = { [\"--tw-ring-color\" as string]: p.ring, [\"--tw-ring-offset-color\" as string]: p.card } as React.CSSProperties;\n  const focus = \"outline-none focus-visible:ring-2 focus-visible:ring-offset-2\";\n  const label = \"mb-1.5 block text-[12.5px] font-medium\";\n  const input = \"h-10 w-full rounded-lg border px-3 text-[13.5px] outline-none focus-visible:ring-2\";\n  const inputStyle = { borderColor: p.border, background: p.input, color: p.text, ...ring };\n  const seg = (on: boolean) => ({ borderColor: on ? p.text : p.border, background: on ? p.well : \"transparent\", color: p.text, ...ring });\n  const slide = reduce ? {} : { initial: { opacity: 0, x: 24 }, animate: { opacity: 1, x: 0 }, exit: { opacity: 0, x: -24 }, transition: { duration: 0.25, ease: [0.22, 1, 0.36, 1] as const } };\n\n  return (\n    <section className={cn(\"@container w-full\", className)} style={{ background: p.bg, color: p.text }}>\n      <div className=\"mx-auto max-w-xl px-4 py-10\">\n        <div className=\"overflow-hidden rounded-2xl border\" style={{ background: p.card, borderColor: p.border }}>\n          <div className=\"flex items-center justify-between border-b px-5 py-4\" style={{ borderColor: p.border }}>\n            <h2 className=\"m-0 text-[16px] font-semibold\">{step === \"sent\" ? \"Transfer sent\" : step === \"review\" ? \"Review transfer\" : \"Send money\"}</h2>\n            <ol className=\"m-0 flex list-none gap-1.5 p-0\" aria-label=\"Progress\">\n              {([\"form\", \"review\", \"sent\"] as const).map((s, i) => {\n                const idx = [\"form\", \"review\", \"sent\"].indexOf(step);\n                return <li key={s} aria-current={s === step ? \"step\" : undefined} className=\"h-1.5 rounded-full transition-all duration-300\" style={{ width: s === step ? 20 : 6, background: i <= idx ? p.text : p.track }} />;\n              })}\n            </ol>\n          </div>\n\n          <AnimatePresence mode=\"popLayout\" initial={false}>\n            {step === \"form\" && (\n              <motion.form\n                key=\"form\"\n                {...slide}\n                noValidate\n                onSubmit={(e) => {\n                  e.preventDefault();\n                  setTouched(true);\n                  if (valid) setStep(\"review\");\n                }}\n                className=\"flex flex-col gap-5 p-5\"\n              >\n                <fieldset className=\"m-0 border-0 p-0\">\n                  <legend className={label}>From</legend>\n                  <div className=\"grid grid-cols-1 gap-2 @[420px]:grid-cols-2\">\n                    {accounts.map((a) => (\n                      <label key={a.id} className={cn(\"flex cursor-pointer items-center gap-3 rounded-xl border p-3 has-[:focus-visible]:ring-2\")} style={seg(from === a.id)}>\n                        <input type=\"radio\" name={`${uid}-from`} checked={from === a.id} onChange={() => setFrom(a.id)} className=\"sr-only\" />\n                        <span className=\"min-w-0 flex-1\">\n                          <span className=\"block text-[13px] font-medium\">{a.label}</span>\n                          <span className=\"block text-[11.5px]\" style={{ color: p.faint }}>\n                            •• {a.last4}\n                          </span>\n                        </span>\n                        <span className=\"text-[13px] font-medium tabular-nums\">{money(a.balance)}</span>\n                      </label>\n                    ))}\n                  </div>\n                </fieldset>\n\n                <fieldset className=\"m-0 border-0 p-0\">\n                  <legend className={label}>To</legend>\n                  <div className=\"flex gap-2.5 overflow-x-auto pb-1 [scrollbar-width:none]\" role=\"radiogroup\" aria-label=\"Saved recipients\">\n                    {payees.map((x) => (\n                      <button key={x.id} type=\"button\" role=\"radio\" aria-checked={payee === x.id} onClick={() => setPayee(x.id)} className={cn(\"flex w-16 shrink-0 cursor-pointer flex-col items-center gap-1.5 rounded-xl border-0 bg-transparent p-1\", focus)} style={{ color: p.text, ...ring }}>\n                        <span className=\"relative grid h-11 w-11 place-items-center rounded-full text-[13px] font-semibold text-[#0A0A0A] transition-shadow\" style={{ background: x.color, boxShadow: payee === x.id ? `0 0 0 2px ${p.card}, 0 0 0 4px ${p.text}` : \"none\" }}>\n                          {initials(x.name)}\n                        </span>\n                        <span className=\"w-full truncate text-center text-[11px]\" style={{ color: payee === x.id ? p.text : p.muted }}>\n                          {x.name.split(\" \")[0]}\n                        </span>\n                      </button>\n                    ))}\n                    <button type=\"button\" role=\"radio\" aria-checked={isNew} onClick={() => setPayee(\"new\")} className={cn(\"flex w-16 shrink-0 cursor-pointer flex-col items-center gap-1.5 rounded-xl border-0 bg-transparent p-1\", focus)} style={{ color: p.text, ...ring }}>\n                      <span className=\"grid h-11 w-11 place-items-center rounded-full border border-dashed text-[18px]\" style={{ borderColor: isNew ? p.text : p.faint, color: p.muted }}>\n                        +\n                      </span>\n                      <span className=\"text-[11px]\" style={{ color: isNew ? p.text : p.muted }}>\n                        New\n                      </span>\n                    </button>\n                  </div>\n                  <AnimatePresence initial={false} mode=\"popLayout\">\n                    {chosen && (\n                      <motion.p key={chosen.id} initial={reduce ? false : { opacity: 0, y: -4 }} animate={{ opacity: 1, y: 0 }} className=\"m-0 mt-2 font-mono text-[12px]\" style={{ color: p.muted }}>\n                        {chosen.name} · {chosen.iban}\n                      </motion.p>\n                    )}\n                    {isNew && (\n                      <motion.div key=\"new\" initial={reduce ? false : { opacity: 0, height: 0 }} animate={{ opacity: 1, height: \"auto\" }} exit={reduce ? undefined : { opacity: 0, height: 0 }} className=\"overflow-hidden\">\n                        <div className=\"mt-2 grid grid-cols-1 gap-2 pb-0.5 @[420px]:grid-cols-[1fr_1.4fr]\">\n                          <input value={newName} onChange={(e) => setNewName(e.target.value)} placeholder=\"Full name\" aria-label=\"Recipient name\" autoComplete=\"off\" className={input} style={inputStyle} />\n                          <div className=\"relative\">\n                            <input value={newIban} onChange={(e) => setNewIban(fmtIban(e.target.value))} placeholder=\"IBAN\" aria-label=\"IBAN\" inputMode=\"text\" autoComplete=\"off\" spellCheck={false} className={cn(input, \"pr-9 font-mono text-[13px]\")} style={inputStyle} />\n                            {ibanOk(newIban) && (\n                              <motion.span initial={reduce ? false : { scale: 0 }} animate={{ scale: 1 }} className=\"absolute top-1/2 right-3 -translate-y-1/2 text-[13px]\" style={{ color: p.green }} aria-label=\"IBAN looks valid\">\n                                ✓\n                              </motion.span>\n                            )}\n                          </div>\n                        </div>\n                      </motion.div>\n                    )}\n                  </AnimatePresence>\n                  {touched && errors.to && (\n                    <p className=\"m-0 mt-1.5 text-[12px]\" role=\"alert\" style={{ color: p.red }}>\n                      {errors.to}\n                    </p>\n                  )}\n                </fieldset>\n\n                <div>\n                  <label htmlFor={`${uid}-amt`} className={label}>\n                    Amount\n                  </label>\n                  <div className=\"flex items-baseline gap-1 border-b pb-1.5 focus-within:border-current\" style={{ borderColor: touched && errors.amount ? p.red : p.border }}>\n                    <span className=\"text-[28px] font-semibold\" style={{ color: amount ? p.text : p.faint }}>\n                      {currency}\n                    </span>\n                    <input id={`${uid}-amt`} value={amount} onChange={(e) => setAmount(e.target.value.replace(/[^\\d.,]/g, \"\").slice(0, 9))} inputMode=\"decimal\" placeholder=\"0.00\" aria-invalid={!!(touched && errors.amount) || undefined} className=\"w-full min-w-0 border-0 bg-transparent p-0 text-[32px] font-semibold tracking-[-0.02em] tabular-nums outline-none\" style={{ color: p.text }} />\n                  </div>\n                  <div className=\"mt-2 flex flex-wrap items-center gap-1.5\">\n                    {[20, 50, 100, 250].map((n) => (\n                      <button key={n} type=\"button\" onClick={() => setAmount(String(n))} className={cn(\"h-7 cursor-pointer rounded-full border px-2.5 text-[12px] tabular-nums\", focus)} style={{ borderColor: p.border, background: \"transparent\", color: p.muted, ...ring }}>\n                        {currency}\n                        {n}\n                      </button>\n                    ))}\n                    <span className=\"ml-auto text-[11.5px] tabular-nums\" style={{ color: touched && errors.amount ? p.red : p.faint }} role={touched && errors.amount ? \"alert\" : undefined}>\n                      {touched && errors.amount ? errors.amount : `Available ${money(acct.balance)}`}\n                    </span>\n                  </div>\n                </div>\n\n                <fieldset className=\"m-0 border-0 p-0\">\n                  <legend className={label}>Speed</legend>\n                  <div className=\"grid grid-cols-2 gap-2\">\n                    {([\"instant\", \"standard\"] as const).map((s) => (\n                      <label key={s} className=\"cursor-pointer rounded-xl border p-3 has-[:focus-visible]:ring-2\" style={seg(speed === s)}>\n                        <input type=\"radio\" name={`${uid}-speed`} checked={speed === s} onChange={() => setSpeed(s)} className=\"sr-only\" />\n                        <span className=\"flex items-baseline justify-between text-[13px] font-medium\">\n                          {s === \"instant\" ? \"Instant\" : \"Standard\"}\n                          <span className=\"text-[12px] font-normal tabular-nums\" style={{ color: p.muted }}>\n                            {FEES[s] ? money(FEES[s]) : \"Free\"}\n                          </span>\n                        </span>\n                        <span className=\"mt-0.5 block text-[11.5px]\" style={{ color: p.faint }}>\n                          {s === \"instant\" ? \"Arrives in seconds\" : \"Arrives next business day\"}\n                        </span>\n                      </label>\n                    ))}\n                  </div>\n                </fieldset>\n\n                <div className=\"grid grid-cols-1 gap-3 @[420px]:grid-cols-[1.4fr_1fr]\">\n                  <div>\n                    <label htmlFor={`${uid}-ref`} className={label}>\n                      Reference <span style={{ color: p.faint }}>(optional)</span>\n                    </label>\n                    <input id={`${uid}-ref`} value={reference} onChange={(e) => setReference(e.target.value.slice(0, 140))} placeholder=\"e.g. Dinner on Friday\" className={input} style={inputStyle} />\n                  </div>\n                  <div>\n                    <label htmlFor={`${uid}-when`} className={label}>\n                      When\n                    </label>\n                    <select id={`${uid}-when`} value={when} onChange={(e) => setWhen(e.target.value as \"now\" | \"monthly\")} className={cn(input, \"cursor-pointer\")} style={inputStyle}>\n                      <option value=\"now\">Send now</option>\n                      <option value=\"monthly\">Every month</option>\n                    </select>\n                  </div>\n                </div>\n\n                <button type=\"submit\" className={cn(\"h-11 cursor-pointer rounded-xl border-0 text-[14px] font-semibold transition-opacity\", focus, !valid && \"opacity-50\")} style={{ background: p.on, color: p.onText, ...ring }}>\n                  Review {value > 0 ? money(value + fee) : \"\"}\n                </button>\n              </motion.form>\n            )}\n\n            {step === \"review\" && (\n              <motion.div key=\"review\" {...slide} className=\"flex flex-col gap-4 p-5\">\n                <div className=\"flex flex-col items-center py-2 text-center\">\n                  <span className=\"grid h-14 w-14 place-items-center rounded-full text-[17px] font-semibold text-[#0A0A0A]\" style={{ background: chosen?.color ?? p.muted }} aria-hidden=\"true\">\n                    {initials(to.name || \"?\")}\n                  </span>\n                  <p className=\"m-0 mt-3 text-[13px]\" style={{ color: p.muted }}>\n                    You&apos;re sending\n                  </p>\n                  <p className=\"m-0 mt-0.5 text-[34px] font-semibold tracking-[-0.02em] tabular-nums\">{money(value)}</p>\n                  <p className=\"m-0 text-[13px]\" style={{ color: p.muted }}>\n                    to <span style={{ color: p.text }}>{to.name}</span>\n                  </p>\n                </div>\n                <dl className=\"m-0 divide-y rounded-xl border text-[13px]\" style={{ borderColor: p.border }}>\n                  {[\n                    [\"From\", `${acct.label} •• ${acct.last4}`],\n                    [\"IBAN\", to.iban],\n                    [\"Speed\", speed === \"instant\" ? \"Instant · arrives in seconds\" : \"Standard · next business day\"],\n                    [\"Fee\", fee ? money(fee) : \"Free\"],\n                    ...(reference.trim() ? [[\"Reference\", reference.trim()]] : []),\n                    ...(when === \"monthly\" ? [[\"Repeats\", \"Every month on this date\"]] : []),\n                    [\"Total\", money(value + fee)],\n                  ].map(([k, v]) => (\n                    <div key={k} className=\"flex justify-between gap-4 px-4 py-2.5\" style={{ borderColor: p.border }}>\n                      <dt style={{ color: p.faint }}>{k}</dt>\n                      <dd className={cn(\"m-0 text-right\", k === \"IBAN\" && \"font-mono text-[12px]\", k === \"Total\" && \"font-semibold\")}>{v}</dd>\n                    </div>\n                  ))}\n                </dl>\n                <button\n                  type=\"button\"\n                  onPointerDown={startHold}\n                  onPointerUp={cancelHold}\n                  onPointerLeave={cancelHold}\n                  onKeyDown={(e) => (e.key === \"Enter\" || e.key === \" \") && !e.repeat && (e.preventDefault(), startHold())}\n                  onKeyUp={(e) => (e.key === \"Enter\" || e.key === \" \") && cancelHold()}\n                  aria-label={`Hold to send ${money(value + fee)}`}\n                  className={cn(\"relative h-12 cursor-pointer overflow-hidden rounded-xl border-0 text-[14px] font-semibold select-none\", focus)}\n                  style={{ background: p.track, color: p.text, touchAction: \"none\", ...ring }}\n                >\n                  <motion.span className=\"absolute inset-y-0 left-0\" style={{ width: holdWidth, background: p.green }} aria-hidden=\"true\" />\n                  <span className=\"relative flex items-center justify-center gap-2\" style={{ mixBlendMode: \"normal\" }}>\n                    {sending ? (\n                      <>\n                        <motion.span className=\"h-3.5 w-3.5 rounded-full border-2 border-current border-t-transparent\" animate={reduce ? undefined : { rotate: 360 }} transition={{ repeat: Infinity, duration: 0.7, ease: \"linear\" }} aria-hidden=\"true\" />\n                        Sending…\n                      </>\n                    ) : (\n                      `Hold to send ${money(value + fee)}`\n                    )}\n                  </span>\n                </button>\n                <button type=\"button\" onClick={() => setStep(\"form\")} className={cn(\"h-9 cursor-pointer rounded-lg border-0 bg-transparent text-[13px]\", focus)} style={{ color: p.muted, ...ring }}>\n                  ← Edit details\n                </button>\n              </motion.div>\n            )}\n\n            {step === \"sent\" && (\n              <motion.div key=\"sent\" {...slide} role=\"status\" className=\"flex flex-col items-center p-6 text-center\">\n                <svg width=\"72\" height=\"72\" viewBox=\"0 0 72 72\" aria-hidden=\"true\">\n                  <motion.circle cx=\"36\" cy=\"36\" r=\"32\" fill=\"none\" stroke={p.green} strokeWidth=\"3\" initial={reduce ? false : { pathLength: 0 }} animate={{ pathLength: 1 }} transition={{ duration: 0.5 }} />\n                  <motion.path d=\"M23 37l9 9 17-19\" fill=\"none\" stroke={p.green} strokeWidth=\"3.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" initial={reduce ? false : { pathLength: 0 }} animate={{ pathLength: 1 }} transition={{ duration: 0.35, delay: reduce ? 0 : 0.45 }} />\n                </svg>\n                <p className=\"m-0 mt-4 text-[28px] font-semibold tracking-[-0.02em] tabular-nums\">{money(value)}</p>\n                <p className=\"m-0 mt-1 text-[13.5px]\" style={{ color: p.muted }}>\n                  {speed === \"instant\" ? \"is on its way to\" : \"will arrive tomorrow for\"} {to.name}\n                  {when === \"monthly\" ? \", and repeats monthly\" : \"\"}.\n                </p>\n                <div className=\"mt-5 w-full rounded-xl p-3.5 text-left text-[12.5px]\" style={{ background: p.well }}>\n                  <div className=\"flex justify-between\">\n                    <span style={{ color: p.faint }}>New balance</span>\n                    <span className=\"tabular-nums\">{money(acct.balance - value - fee)}</span>\n                  </div>\n                  <div className=\"mt-1.5 flex justify-between\">\n                    <span style={{ color: p.faint }}>Reference</span>\n                    <span className=\"font-mono\">TRX-{String(Math.round(value * 100)).padStart(6, \"0\")}</span>\n                  </div>\n                </div>\n                <div className=\"mt-4 flex w-full gap-2\">\n                  <button type=\"button\" className={cn(\"h-10 flex-1 cursor-pointer rounded-lg border bg-transparent text-[13px] font-medium\", focus)} style={{ borderColor: p.border, color: p.text, ...ring }}>\n                    Share receipt\n                  </button>\n                  <button type=\"button\" onClick={reset} className={cn(\"h-10 flex-1 cursor-pointer rounded-lg border-0 text-[13px] font-medium\", focus)} style={{ background: p.on, color: p.onText, ...ring }}>\n                    New transfer\n                  </button>\n                </div>\n              </motion.div>\n            )}\n          </AnimatePresence>\n        </div>\n      </div>\n    </section>\n  );\n}\n\nexport default MoneyTransferForm;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}