{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "auth-otp",
  "type": "registry:component",
  "title": "Auth OTP",
  "description": "A verification screen with single-digit code inputs that auto-advance, accept a pasted code and step back on Backspace, plus a resend countdown, an error shake and a success check.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "auth",
    "auth",
    "otp",
    "verification",
    "2fa",
    "code input",
    "security"
  ],
  "docs": "https://hyperblur.dev/effects/auth-otp",
  "files": [
    {
      "path": "registry/hyperblur/auth-otp.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/auth-otp.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface AuthOtpLink {\n  label: string;\n  href: string;\n}\n\nexport interface AuthOtpProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\" | \"defaultValue\"> {\n  title?: string;\n  destination?: string;\n  length?: number;\n  defaultValue?: string;\n  resendSeconds?: number;\n  maxAttempts?: number;\n  onVerify?: (code: string) => boolean | void | Promise<boolean | void>;\n  onResend?: () => void;\n  changeHref?: string;\n  alternate?: AuthOtpLink | null;\n  successCta?: AuthOtpLink;\n  accent?: string;\n}\n\nconst css = `\n@keyframes hb-kf3-ring {\n  0% { opacity: .55; transform: translate(-50%, -50%) scale(.35); }\n  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }\n}\n@keyframes hb-kf3-shake-a {\n  0%, 100% { transform: translateX(0); }\n  15% { transform: translateX(-9px); }\n  30% { transform: translateX(8px); }\n  45% { transform: translateX(-6px); }\n  60% { transform: translateX(4px); }\n  75% { transform: translateX(-2px); }\n}\n@keyframes hb-kf3-shake-b {\n  0%, 100% { transform: translateX(0); }\n  15% { transform: translateX(-9px); }\n  30% { transform: translateX(8px); }\n  45% { transform: translateX(-6px); }\n  60% { transform: translateX(4px); }\n  75% { transform: translateX(-2px); }\n}\n@keyframes hb-kf3-pop {\n  0% { transform: scale(1); }\n  40% { transform: scale(1.08); }\n  100% { transform: scale(1); }\n}\n@keyframes hb-kf3-in {\n  from { opacity: 0; transform: translate3d(0, 6px, 0); }\n  to { opacity: 1; transform: translate3d(0, 0, 0); }\n}\n@keyframes hb-kf3-draw { to { stroke-dashoffset: 0; } }\n@keyframes hb-kf3-spin { to { transform: rotate(360deg); } }\n@keyframes hb-kf3-badge {\n  0%, 100% { transform: translateY(0); }\n  50% { transform: translateY(-4px); }\n}\n.hb-kf3 {\n  --hb-kf3-accent: #f5a524;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  padding: 72px 16px 72px;\n  overflow: hidden;\n  isolation: isolate;\n  container-type: inline-size;\n  background: #0a0a0a;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-kf3 *, .hb-kf3 *::before, .hb-kf3 *::after { box-sizing: border-box; }\n.hb-kf3::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  background:\n    radial-gradient(ellipse 50% 40% at 50% 26%, color-mix(in srgb, var(--hb-kf3-accent) 16%, transparent), transparent 70%),\n    linear-gradient(180deg, #0a0a0a, #0c0b09 60%, #0a0a0a);\n}\n.hb-kf3-rings { position: absolute; top: 132px; left: 50%; z-index: -1; width: 0; height: 0; pointer-events: none; }\n.hb-kf3-ring {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 560px;\n  height: 560px;\n  border: 1px solid color-mix(in srgb, var(--hb-kf3-accent) 45%, transparent);\n  border-radius: 50%;\n  animation: hb-kf3-ring 6s cubic-bezier(.2, .6, .3, 1) infinite;\n}\n.hb-kf3-ring:nth-child(2) { animation-delay: 2s; }\n.hb-kf3-ring:nth-child(3) { animation-delay: 4s; }\n.hb-kf3-static {\n  position: absolute;\n  top: 0;\n  left: 0;\n  border: 1px dashed rgba(255, 255, 255, .06);\n  border-radius: 50%;\n  transform: translate(-50%, -50%);\n}\n.hb-kf3-inner { display: flex; flex-direction: column; align-items: center; max-width: 520px; margin: 0 auto; text-align: center; }\n.hb-kf3-badge {\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: 76px;\n  height: 76px;\n  margin-bottom: 28px;\n  border: 1px solid rgba(255, 255, 255, .12);\n  border-radius: 24px;\n  background: linear-gradient(160deg, #1c1a16, #0f0e0c);\n  box-shadow: 0 20px 50px -18px color-mix(in srgb, var(--hb-kf3-accent) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, .1);\n  color: var(--hb-kf3-accent);\n  animation: hb-kf3-badge 5s ease-in-out infinite;\n}\n.hb-kf3-badge::after {\n  content: \"\";\n  position: absolute;\n  top: -5px;\n  right: -5px;\n  width: 16px;\n  height: 16px;\n  border: 3px solid #0a0a0a;\n  border-radius: 50%;\n  background: var(--hb-kf3-accent);\n}\n.hb-kf3[data-status=\"success\"] .hb-kf3-badge { color: #4ade80; }\n.hb-kf3[data-status=\"success\"] .hb-kf3-badge::after { background: #4ade80; }\n.hb-kf3-title { margin: 0; font-size: clamp(26px, 5cqw, 36px); font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }\n.hb-kf3-sub { margin: 12px 0 0; color: #8f8f8f; font-size: 15px; line-height: 1.6; }\n.hb-kf3-sub strong { color: #ededed; font-weight: 550; white-space: nowrap; }\n.hb-kf3-a { color: var(--hb-kf3-accent); font-weight: 550; text-decoration: none; border-radius: 4px; }\n.hb-kf3-a:hover { text-decoration: underline; text-underline-offset: 3px; }\n.hb-kf3-a:focus-visible { outline: 2px solid var(--hb-kf3-accent); outline-offset: 2px; }\n.hb-kf3-form { display: flex; flex-direction: column; align-items: center; width: 100%; margin: 36px 0 0; }\n.hb-kf3-cells { display: flex; justify-content: center; gap: clamp(6px, 1.6cqw, 12px); width: 100%; }\n.hb-kf3-cells[data-shake=\"a\"] { animation: hb-kf3-shake-a .45s ease both; }\n.hb-kf3-cells[data-shake=\"b\"] { animation: hb-kf3-shake-b .45s ease both; }\n.hb-kf3-gap { align-self: center; width: 10px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .18); }\n.hb-kf3-cell {\n  flex: 0 1 56px;\n  width: 100%;\n  min-width: 0;\n  height: clamp(54px, 13cqw, 66px);\n  padding: 0;\n  border: 1px solid rgba(255, 255, 255, .1);\n  border-radius: 14px;\n  background: linear-gradient(180deg, #141414, #0f0f0f);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);\n  color: #fff;\n  caret-color: var(--hb-kf3-accent);\n  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n  font-size: clamp(22px, 5cqw, 28px);\n  font-weight: 600;\n  text-align: center;\n  outline: none;\n  transition: border-color .2s ease, box-shadow .2s ease, background .3s ease, color .3s ease;\n}\n.hb-kf3-cell:hover { border-color: rgba(255, 255, 255, .2); }\n.hb-kf3-cell:focus { border-color: var(--hb-kf3-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hb-kf3-accent) 22%, transparent); }\n.hb-kf3-cell[data-filled=\"true\"] { border-color: rgba(255, 255, 255, .24); animation: hb-kf3-pop .2s ease; }\n.hb-kf3-cell[aria-invalid=\"true\"] { border-color: #f87171; color: #fca5a5; }\n.hb-kf3-cell:disabled { opacity: 1; cursor: default; }\n.hb-kf3[data-status=\"success\"] .hb-kf3-cell {\n  border-color: rgba(74, 222, 128, .6);\n  background: linear-gradient(180deg, rgba(74, 222, 128, .14), rgba(74, 222, 128, .05));\n  color: #bbf7d0;\n  transition-delay: calc(var(--hb-kf3-i) * 60ms);\n}\n.hb-kf3-msg { min-height: 20px; margin: 14px 0 0; font-size: 13px; color: #8f8f8f; }\n.hb-kf3-msg[data-tone=\"error\"] { color: #fca5a5; animation: hb-kf3-in .2s ease both; }\n.hb-kf3-msg[data-tone=\"info\"] { color: var(--hb-kf3-accent); animation: hb-kf3-in .2s ease both; }\n.hb-kf3-btn {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  gap: 10px;\n  width: 100%;\n  max-width: 360px;\n  height: 46px;\n  margin-top: 14px;\n  border: 0;\n  border-radius: 12px;\n  background: var(--hb-kf3-accent);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 12px 30px -14px var(--hb-kf3-accent);\n  color: #1a1204;\n  font: inherit;\n  font-size: 14px;\n  font-weight: 650;\n  text-decoration: none;\n  cursor: pointer;\n  transition: filter .2s ease, opacity .2s ease, transform .2s ease;\n}\n.hb-kf3-btn:hover:not(:disabled) { filter: brightness(1.08); }\n.hb-kf3-btn:active:not(:disabled) { transform: translateY(1px); }\n.hb-kf3-btn:disabled { opacity: .45; cursor: not-allowed; }\n.hb-kf3-btn[aria-busy=\"true\"] { opacity: .85; cursor: progress; }\n.hb-kf3-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }\n.hb-kf3-spin { width: 15px; height: 15px; border: 2px solid rgba(26, 18, 4, .3); border-top-color: #1a1204; border-radius: 50%; animation: hb-kf3-spin .7s linear infinite; }\n.hb-kf3-resend { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 22px; color: #8f8f8f; font-size: 13px; }\n.hb-kf3-link {\n  padding: 2px 4px;\n  border: 0;\n  border-radius: 6px;\n  background: transparent;\n  color: #ededed;\n  font: inherit;\n  font-weight: 550;\n  cursor: pointer;\n}\n.hb-kf3-link:hover { color: var(--hb-kf3-accent); }\n.hb-kf3-link:focus-visible { outline: 2px solid var(--hb-kf3-accent); outline-offset: 1px; }\n.hb-kf3-timer {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  padding: 3px 9px;\n  border: 1px solid rgba(255, 255, 255, .08);\n  border-radius: 999px;\n  background: rgba(255, 255, 255, .03);\n  color: #ededed;\n  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n  font-size: 12px;\n  font-variant-numeric: tabular-nums;\n}\n.hb-kf3-timer svg { color: var(--hb-kf3-accent); }\n.hb-kf3-alt { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .07); color: #6f6f6f; font-size: 13px; width: 100%; max-width: 360px; }\n.hb-kf3-done { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 22px; animation: hb-kf3-in .35s .25s ease both; }\n.hb-kf3-done svg circle { stroke-dasharray: 76; stroke-dashoffset: 76; animation: hb-kf3-draw .5s .3s ease forwards; }\n.hb-kf3-done svg path { stroke-dasharray: 20; stroke-dashoffset: 20; animation: hb-kf3-draw .3s .7s ease forwards; }\n.hb-kf3-done strong { font-size: 16px; font-weight: 600; }\n.hb-kf3-done span { color: #8f8f8f; font-size: 13px; }\n.hb-kf3-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n@container (min-width: 720px) {\n  .hb-kf3 { padding: 104px 24px 112px; }\n  .hb-kf3-rings { top: 142px; }\n}\n@container (max-width: 380px) {\n  .hb-kf3-gap { display: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-kf3-ring, .hb-kf3-badge, .hb-kf3-cells[data-shake], .hb-kf3-cell[data-filled=\"true\"], .hb-kf3-msg, .hb-kf3-done, .hb-kf3-done svg circle, .hb-kf3-done svg path { animation: none; }\n  .hb-kf3-done svg circle, .hb-kf3-done svg path { stroke-dashoffset: 0; }\n  .hb-kf3-cell, .hb-kf3-btn { transition: none; }\n  .hb-kf3-spin { animation-duration: 2s; }\n}\n`;\n\nfunction wait(result: unknown) {\n  return result instanceof Promise ? result : new Promise<unknown>((resolve) => setTimeout(() => resolve(result), 800));\n}\n\nfunction toDigits(value: string, length: number) {\n  const clean = value.replace(/\\D/g, \"\").slice(0, length);\n  return Array.from({ length }, (_, i) => clean[i] ?? \"\");\n}\n\nfunction formatTime(seconds: number) {\n  const m = Math.floor(seconds / 60);\n  const s = seconds % 60;\n  return `${m}:${s.toString().padStart(2, \"0\")}`;\n}\n\ntype Status = \"idle\" | \"verifying\" | \"error\" | \"locked\" | \"success\";\n\nexport function AuthOtp({\n  title = \"Check your phone\",\n  destination = \"+1 (415) ••• ••92\",\n  length = 6,\n  defaultValue = \"\",\n  resendSeconds = 30,\n  maxAttempts = 5,\n  onVerify,\n  onResend,\n  changeHref = \"#change-number\",\n  alternate = { label: \"Use an authenticator app\", href: \"#authenticator\" },\n  successCta = { label: \"Continue to Northwind\", href: \"#continue\" },\n  accent = \"#f5a524\",\n  className = \"\",\n  style,\n  ...rest\n}: AuthOtpProps) {\n  const uid = React.useId();\n  const [digits, setDigits] = React.useState(() => toDigits(defaultValue, length));\n  const [status, setStatus] = React.useState<Status>(\"idle\");\n  const [shake, setShake] = React.useState<\"a\" | \"b\" | \"\">(\"\");\n  const [attempts, setAttempts] = React.useState(maxAttempts);\n  const [left, setLeft] = React.useState(resendSeconds);\n  const [notice, setNotice] = React.useState(\"\");\n  const refs = React.useRef<(HTMLInputElement | null)[]>([]);\n  const code = digits.join(\"\");\n  const complete = code.length === length;\n  const busy = status === \"verifying\";\n  const locked = status === \"locked\";\n  const success = status === \"success\";\n\n  React.useEffect(() => {\n    if (left <= 0) return;\n    const id = window.setTimeout(() => setLeft((s) => s - 1), 1000);\n    return () => window.clearTimeout(id);\n  }, [left]);\n\n  function focusAt(index: number) {\n    const target = refs.current[Math.max(0, Math.min(length - 1, index))];\n    if (target) {\n      target.focus();\n      target.select();\n    }\n  }\n\n  async function verify(value: string) {\n    if (busy || success || locked) return;\n    setStatus(\"verifying\");\n    setNotice(\"\");\n    let ok = false;\n    let message = \"\";\n    try {\n      const result = await wait(onVerify ? onVerify(value) : true);\n      ok = result !== false;\n    } catch (error) {\n      message = error instanceof Error ? error.message : \"\";\n    }\n    if (ok) {\n      setStatus(\"success\");\n      return;\n    }\n    const remaining = attempts - 1;\n    setAttempts(remaining);\n    setShake((s) => (s === \"a\" ? \"b\" : \"a\"));\n    setDigits(Array.from({ length }, () => \"\"));\n    if (remaining <= 0) {\n      setStatus(\"locked\");\n      setNotice(\"Too many attempts. Request a new code to try again.\");\n      return;\n    }\n    setStatus(\"error\");\n    setNotice(message || `That code doesn't match. ${remaining} ${remaining === 1 ? \"attempt\" : \"attempts\"} left.`);\n    window.setTimeout(() => focusAt(0), 0);\n  }\n\n  function commit(next: string[], focusIndex: number) {\n    setDigits(next);\n    if (status === \"error\") {\n      setStatus(\"idle\");\n      setNotice(\"\");\n    }\n    if (next.every(Boolean)) {\n      refs.current[focusIndex]?.blur();\n      void verify(next.join(\"\"));\n    } else {\n      focusAt(focusIndex);\n    }\n  }\n\n  function fill(from: number, text: string) {\n    const clean = text.replace(/\\D/g, \"\");\n    if (!clean) return;\n    const next = [...digits];\n    let last = from;\n    for (let k = 0; k < clean.length && from + k < length; k++) {\n      next[from + k] = clean[k];\n      last = from + k;\n    }\n    commit(next, Math.min(last + 1, length - 1));\n  }\n\n  function handleChange(index: number, event: React.ChangeEvent<HTMLInputElement>) {\n    let raw = event.target.value.replace(/\\D/g, \"\");\n    if (raw.length === 2 && digits[index]) raw = raw[0] === digits[index] ? raw[1] : raw[0];\n    if (raw.length > 1) {\n      fill(index, raw);\n      return;\n    }\n    const next = [...digits];\n    next[index] = raw;\n    if (raw) commit(next, Math.min(index + 1, length - 1));\n    else setDigits(next);\n  }\n\n  function handleKeyDown(index: number, event: React.KeyboardEvent<HTMLInputElement>) {\n    if (event.key === \"Backspace\") {\n      event.preventDefault();\n      const next = [...digits];\n      if (next[index]) {\n        next[index] = \"\";\n        setDigits(next);\n      } else if (index > 0) {\n        next[index - 1] = \"\";\n        setDigits(next);\n        focusAt(index - 1);\n      }\n    } else if (event.key === \"Delete\") {\n      event.preventDefault();\n      setDigits((d) => d.map((v, i) => (i === index ? \"\" : v)));\n    } else if (event.key === \"ArrowLeft\") {\n      event.preventDefault();\n      focusAt(index - 1);\n    } else if (event.key === \"ArrowRight\") {\n      event.preventDefault();\n      focusAt(index + 1);\n    } else if (event.key === \"Home\") {\n      event.preventDefault();\n      focusAt(0);\n    } else if (event.key === \"End\") {\n      event.preventDefault();\n      focusAt(length - 1);\n    } else if (/^\\d$/.test(event.key) && digits[index] === event.key) {\n      event.preventDefault();\n      focusAt(index + 1);\n    }\n  }\n\n  function handlePaste(index: number, event: React.ClipboardEvent<HTMLInputElement>) {\n    event.preventDefault();\n    fill(index, event.clipboardData.getData(\"text\"));\n  }\n\n  function handleSubmit(event: React.FormEvent<HTMLFormElement>) {\n    event.preventDefault();\n    if (!complete) {\n      setStatus(\"error\");\n      setNotice(`Enter all ${length} digits of the code.`);\n      setShake((s) => (s === \"a\" ? \"b\" : \"a\"));\n      focusAt(digits.findIndex((d) => !d));\n      return;\n    }\n    void verify(code);\n  }\n\n  function resend() {\n    onResend?.();\n    setLeft(resendSeconds);\n    setAttempts(maxAttempts);\n    setDigits(Array.from({ length }, () => \"\"));\n    setStatus(\"idle\");\n    setNotice(`New code sent to ${destination}.`);\n    focusAt(0);\n  }\n\n  const invalid = status === \"error\" || locked;\n  const tone = invalid ? \"error\" : notice ? \"info\" : undefined;\n  const half = length % 2 === 0 && length >= 6 ? length / 2 : -1;\n  const vars = { \"--hb-kf3-accent\": accent, ...style } as React.CSSProperties;\n\n  return (\n    <section className={`hb-kf3 ${className}`} style={vars} data-status={status} aria-labelledby={`${uid}-title`} {...rest}>\n      <style href=\"hb-auth-otp\" precedence=\"default\">{css}</style>\n      <div className=\"hb-kf3-rings\" aria-hidden=\"true\">\n        <span className=\"hb-kf3-static\" style={{ width: 220, height: 220 }} />\n        <span className=\"hb-kf3-static\" style={{ width: 380, height: 380 }} />\n        <span className=\"hb-kf3-ring\" />\n        <span className=\"hb-kf3-ring\" />\n        <span className=\"hb-kf3-ring\" />\n      </div>\n      <div className=\"hb-kf3-inner\">\n        <div className=\"hb-kf3-badge\" aria-hidden=\"true\">\n          {success ? (\n            <svg width=\"34\" height=\"34\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n              <path d=\"M12 3 4.5 6v5.5c0 4.6 3.2 8.3 7.5 9.5 4.3-1.2 7.5-4.9 7.5-9.5V6L12 3Z\" />\n              <path d=\"m8.5 12 2.5 2.5 4.5-5\" />\n            </svg>\n          ) : (\n            <svg width=\"34\" height=\"34\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n              <rect x=\"6.5\" y=\"2.5\" width=\"11\" height=\"19\" rx=\"2.6\" />\n              <path d=\"M10.5 18.5h3\" />\n              <path d=\"M9.5 9.5h.01M12 9.5h.01M14.5 9.5h.01\" strokeWidth=\"2.4\" />\n            </svg>\n          )}\n        </div>\n        <h2 className=\"hb-kf3-title\" id={`${uid}-title`}>\n          {success ? \"You're verified\" : title}\n        </h2>\n        <p className=\"hb-kf3-sub\">\n          {success ? (\n            \"Thanks for confirming it's you. Your account is secured with two-step verification.\"\n          ) : (\n            <>\n              We sent a {length}-digit code to <strong>{destination}</strong>.{\" \"}\n              <a className=\"hb-kf3-a\" href={changeHref}>\n                Change\n              </a>\n            </>\n          )}\n        </p>\n        <form className=\"hb-kf3-form\" noValidate onSubmit={handleSubmit}>\n          <div\n            className=\"hb-kf3-cells\"\n            role=\"group\"\n            aria-label=\"Verification code\"\n            aria-describedby={notice ? `${uid}-msg` : undefined}\n            data-shake={shake || undefined}\n          >\n            {digits.map((digit, i) => (\n              <React.Fragment key={i}>\n                {i === half ? <span className=\"hb-kf3-gap\" aria-hidden=\"true\" /> : null}\n                <input\n                  ref={(node) => {\n                    refs.current[i] = node;\n                  }}\n                  className=\"hb-kf3-cell\"\n                  type=\"text\"\n                  inputMode=\"numeric\"\n                  pattern=\"[0-9]*\"\n                  autoComplete={i === 0 ? \"one-time-code\" : \"off\"}\n                  aria-label={`Digit ${i + 1} of ${length}`}\n                  aria-invalid={invalid ? true : undefined}\n                  aria-describedby={notice ? `${uid}-msg` : undefined}\n                  data-filled={digit ? \"true\" : undefined}\n                  style={{ \"--hb-kf3-i\": i } as React.CSSProperties}\n                  value={digit}\n                  disabled={busy || success || locked}\n                  onChange={(e) => handleChange(i, e)}\n                  onKeyDown={(e) => handleKeyDown(i, e)}\n                  onPaste={(e) => handlePaste(i, e)}\n                  onFocus={(e) => e.currentTarget.select()}\n                />\n              </React.Fragment>\n            ))}\n          </div>\n          <p className=\"hb-kf3-msg\" id={`${uid}-msg`} data-tone={tone} role={invalid ? \"alert\" : \"status\"}>\n            {notice || (busy ? \"Checking your code\" : \"\")}\n          </p>\n          {success ? (\n            <div className=\"hb-kf3-done\">\n              <svg width=\"44\" height=\"44\" viewBox=\"0 0 28 28\" fill=\"none\" stroke=\"#4ade80\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                <circle cx=\"14\" cy=\"14\" r=\"12\" />\n                <path d=\"m9 14.5 3.3 3.2L19 11\" />\n              </svg>\n              <strong>Code accepted</strong>\n              <span>Redirecting you in a moment.</span>\n              <a className=\"hb-kf3-btn\" href={successCta.href}>\n                {successCta.label}\n              </a>\n            </div>\n          ) : (\n            <button type=\"submit\" className=\"hb-kf3-btn\" disabled={locked} aria-busy={busy || undefined}>\n              {busy ? <span className=\"hb-kf3-spin\" aria-hidden=\"true\" /> : null}\n              {busy ? \"Verifying\" : \"Verify code\"}\n            </button>\n          )}\n        </form>\n        {success ? null : (\n          <div className=\"hb-kf3-resend\">\n            Didn&apos;t get a code?\n            {left > 0 ? (\n              <span className=\"hb-kf3-timer\" aria-live=\"off\">\n                <svg width=\"12\" height=\"12\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" aria-hidden=\"true\">\n                  <circle cx=\"8\" cy=\"8\" r=\"6\" />\n                  <path d=\"M8 5v3l2 1.5\" />\n                </svg>\n                <span className=\"hb-kf3-sr\">Resend available in </span>\n                {formatTime(left)}\n              </span>\n            ) : (\n              <button type=\"button\" className=\"hb-kf3-link\" onClick={resend}>\n                Resend code\n              </button>\n            )}\n          </div>\n        )}\n        {alternate && !success ? (\n          <p className=\"hb-kf3-alt\">\n            No signal?{\" \"}\n            <a className=\"hb-kf3-a\" href={alternate.href}>\n              {alternate.label}\n            </a>\n          </p>\n        ) : null}\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}