{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"thumbwheel-number-picker-with-rolling-digit-drums-and-knurled-wheels","type":"registry:component","title":"Thumbwheel Number Picker with Rolling Digit Drums and Knurled Wheels","description":"Number input styled as a panel thumbwheel switch: knurled wheels roll numerals past their windows and click onto each digit. Free React and HTML to copy.","dependencies":[],"files":[{"path":"components/we-inc/thumbwheel-number-picker-with-rolling-digit-drums-and-knurled-wheels.tsx","type":"registry:component","content":"import { useEffect, useRef, useState } from \"react\";\nimport type { KeyboardEvent as ReactKeyboardEvent, PointerEvent as ReactPointerEvent } from \"react\";\n\n// One entry per wheel, left to right. Add a fourth and the housing does not grow by itself: widen W too.\nconst wheels = [\n  { name: \"Hundreds\", mark: \"x100\" },\n  { name: \"Tens\", mark: \"x10\" },\n  { name: \"Units\", mark: \"x1\" },\n];\nconst field = { label: \"Print run\", unit: \"copies\", name: \"copies\" };\nconst start = [2, 4, 8];\nconst demo = [[3, 1, 5], [0, 7, 2], [1, 9, 6], [2, 4, 8]]; // numbers it rolls to while idle\nconst WHEEL = [236, 96, 28]; // the knurled wheels, as red, green, blue\nconst W = 328, H = 236;\nconst UNIT = 92, LEFT = 26, CY = 112;\n\ntype Api = { nudge: (i: number, by: number) => void; to: (i: number, digit: number) => void; grab: (i: number, y: number) => void; drag: (y: number) => void; drop: () => void };\nconst digitOf = (n: number) => ((Math.round(n) % 10) + 10) % 10;\n\nexport default function ThumbwheelNumberPicker() {\n  const canvas = useRef<HTMLCanvasElement>(null);\n  const [digits, setDigits] = useState(start);\n  const api = useRef<Api | null>(null);\n\n  useEffect(() => {\n    const cv = canvas.current;\n    if (!cv) return;\n    const ctx = cv.getContext(\"2d\");\n    if (!ctx) return;\n    const reduce = window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n    const dpr = Math.min(2, window.devicePixelRatio || 1) * 1.5; // shown one and a half times larger on wide screens\n    cv.width = W * dpr; cv.height = H * dpr;\n    const STEP = (Math.PI * 2) / 10, RD = 58, RW = 62, WIN = 37, SLOT = 56;\n    const BX = 14, BY = 30, BW = 300, BH = 164;\n\n    const rr = (c: CanvasRenderingContext2D, x: number, y: number, w: number, h: number, r: number) => {\n      c.beginPath(); c.moveTo(x + r, y); c.arcTo(x + w, y, x + w, y + h, r); c.arcTo(x + w, y + h, x, y + h, r); c.arcTo(x, y + h, x, y, r); c.arcTo(x, y, x + w, y, r); c.closePath();\n    };\n    let seed = 5;\n    const rand = () => { seed = (seed * 16807) % 2147483647; return seed / 2147483647; };\n\n    // The housing never changes, so it is painted once: moulded black plastic with a fine spark-eroded texture.\n    const still = document.createElement(\"canvas\");\n    still.width = cv.width; still.height = cv.height;\n    const sc = still.getContext(\"2d\");\n    if (sc) {\n      sc.scale(dpr, dpr);\n      sc.save(); sc.shadowColor = \"rgba(40,26,6,0.6)\"; sc.shadowBlur = 5 * dpr; sc.shadowOffsetY = 3 * dpr;\n      rr(sc, BX, BY, BW, BH, 9); sc.fillStyle = \"#000\"; sc.fill(); sc.restore();\n      const body = sc.createLinearGradient(0, BY, 0, BY + BH);\n      body.addColorStop(0, \"#3a3a3d\"); body.addColorStop(0.05, \"#2b2b2e\"); body.addColorStop(0.5, \"#232325\"); body.addColorStop(0.93, \"#19191b\"); body.addColorStop(1, \"#0d0d0e\");\n      rr(sc, BX, BY, BW, BH, 9); sc.fillStyle = body; sc.fill();\n      sc.save(); rr(sc, BX, BY, BW, BH, 9); sc.clip();\n      for (let i = 0; i < 5200; i++) {\n        const v = rand();\n        sc.fillStyle = v > 0.5 ? `rgba(255,255,255,${(v - 0.5) * 0.12})` : `rgba(0,0,0,${(0.5 - v) * 0.3})`;\n        sc.fillRect(BX + rand() * BW, BY + rand() * BH, 0.7, 0.7);\n      }\n      // A wide soft reflection across the top face.\n      const sheen = sc.createLinearGradient(BX, BY, BX + BW * 0.7, BY + BH);\n      sheen.addColorStop(0, \"rgba(255,255,255,0.11)\"); sheen.addColorStop(0.35, \"rgba(255,255,255,0.02)\"); sheen.addColorStop(1, \"rgba(255,255,255,0)\");\n      sc.fillStyle = sheen; sc.fillRect(BX, BY, BW, BH);\n      sc.restore();\n      // Moulded chamfers along the long edges.\n      const cham = sc.createLinearGradient(0, BY, 0, BY + BH);\n      cham.addColorStop(0, \"rgba(255,255,255,0.2)\"); cham.addColorStop(0.036, \"rgba(255,255,255,0.07)\"); cham.addColorStop(0.04, \"rgba(255,255,255,0)\"); cham.addColorStop(0.955, \"rgba(0,0,0,0)\"); cham.addColorStop(0.96, \"rgba(0,0,0,0.4)\"); cham.addColorStop(1, \"rgba(0,0,0,0.6)\");\n      rr(sc, BX, BY, BW, BH, 9); sc.fillStyle = cham; sc.fill();\n      const lip = sc.createLinearGradient(0, BY, 0, BY + BH);\n      lip.addColorStop(0, \"rgba(255,255,255,0.5)\"); lip.addColorStop(0.08, \"rgba(255,255,255,0.1)\"); lip.addColorStop(0.9, \"rgba(0,0,0,0.2)\"); lip.addColorStop(1, \"rgba(0,0,0,0.8)\");\n      rr(sc, BX + 0.6, BY + 0.6, BW - 1.2, BH - 1.2, 8.5); sc.lineWidth = 1.2; sc.strokeStyle = lip; sc.stroke();\n\n      // Part lines where the stacked sections meet, and a slotted screw in each end cap.\n      for (let i = 0; i <= wheels.length; i++) {\n        const x = LEFT + i * UNIT;\n        sc.fillStyle = \"rgba(0,0,0,0.85)\"; sc.fillRect(x - 0.6, BY + 1, 1.2, BH - 2);\n        sc.fillStyle = \"rgba(255,255,255,0.13)\"; sc.fillRect(x + 0.6, BY + 2, 0.7, BH - 4);\n      }\n      for (const [x, turn] of [[BX + 6, 0.5], [BX + BW - 6, 2.1]] as const) for (const y of [BY + 20, BY + BH - 20]) {\n        sc.beginPath(); sc.arc(x, y, 3.4, 0, Math.PI * 2); sc.fillStyle = \"#050505\"; sc.fill();\n        const g = sc.createLinearGradient(x - 3, y - 3, x + 3, y + 3); g.addColorStop(0, \"#b9b6ae\"); g.addColorStop(1, \"#4a4843\");\n        sc.beginPath(); sc.arc(x, y, 2.7, 0, Math.PI * 2); sc.fillStyle = g; sc.fill();\n        sc.strokeStyle = \"#1a1917\"; sc.lineWidth = 0.9; sc.beginPath(); sc.moveTo(x - Math.cos(turn + y) * 2.6, y - Math.sin(turn + y) * 2.6); sc.lineTo(x + Math.cos(turn + y) * 2.6, y + Math.sin(turn + y) * 2.6); sc.stroke();\n      }\n\n      wheels.forEach((w, i) => {\n        const x0 = LEFT + i * UNIT, wx = x0 + 9, dx = x0 + 42;\n        // Recesses: a bright lower lip, a dark upper one, then the hole.\n        const well = (x: number, y: number, ww: number, hh: number, r: number) => {\n          rr(sc, x - 2, y - 1.4, ww + 4, hh + 4.2, r + 2); sc.fillStyle = \"rgba(255,255,255,0.2)\"; sc.fill();\n          rr(sc, x - 2, y - 2.4, ww + 4, hh + 4, r + 2); sc.fillStyle = \"#070707\"; sc.fill();\n          rr(sc, x, y, ww, hh, r); sc.fillStyle = \"#000\"; sc.fill();\n        };\n        well(wx, CY - SLOT, 22, SLOT * 2, 3);\n        well(dx, CY - WIN, 42, WIN * 2, 4);\n        // White index ticks either side of the window, and the multiplier under it.\n        sc.fillStyle = \"rgba(245,242,234,0.92)\";\n        sc.fillRect(dx - 7.5, CY - 0.8, 4, 1.6); sc.fillRect(dx + 45.5, CY - 0.8, 3, 1.6);\n        sc.font = \"600 7.5px ui-monospace, SFMono-Regular, Menlo, monospace\"; sc.textAlign = \"center\"; sc.textBaseline = \"middle\";\n        sc.fillStyle = \"rgba(0,0,0,0.8)\"; sc.fillText(w.mark.toUpperCase(), dx + 21, CY + WIN + 17.2);\n        sc.fillStyle = \"rgba(245,242,234,0.62)\"; sc.fillText(w.mark.toUpperCase(), dx + 21, CY + WIN + 18);\n        // Moulded arrows that say which way the wheel adds.\n        sc.fillStyle = \"rgba(245,242,234,0.5)\";\n        sc.beginPath(); sc.moveTo(wx + 11, CY - SLOT - 12); sc.lineTo(wx + 15, CY - SLOT - 6.5); sc.lineTo(wx + 7, CY - SLOT - 6.5); sc.closePath(); sc.fill();\n        sc.fillRect(wx + 7.5, CY + SLOT + 8, 7, 1.4);\n      });\n    }\n\n    const s = wheels.map((_, i) => ({ a: start[i], v: 0, target: start[i], raw: start[i] }));\n    let held = -1, heldY = 0, moved = 0, light = 0;\n    const font = '700 40px \"Helvetica Neue\", Helvetica, Arial, sans-serif';\n\n    const draw = () => {\n      ctx.setTransform(1, 0, 0, 1, 0, 0);\n      ctx.clearRect(0, 0, cv.width, cv.height);\n      ctx.drawImage(still, 0, 0);\n      ctx.setTransform(dpr, 0, 0, dpr, 0, 0);\n      wheels.forEach((_, i) => {\n        const x0 = LEFT + i * UNIT, wx = x0 + 9, dx = x0 + 42, a = s[i].a;\n\n        // Knurled wheel: a cylinder seen edge on. Teeth bunch up towards the top and bottom, and the upper ones catch the light.\n        ctx.save(); rr(ctx, wx, CY - SLOT, 22, SLOT * 2, 3); ctx.clip();\n        const teeth = 46, dT = (Math.PI * 2) / teeth, spin = a * STEP;\n        const yAt = (t: number) => CY + RW * Math.sin(Math.max(-Math.PI / 2, Math.min(Math.PI / 2, t)));\n        const tone = (k: number, white: number) => `rgb(${Math.min(255, WHEEL[0] * k + white) | 0},${Math.min(255, WHEEL[1] * k + white) | 0},${Math.min(255, WHEEL[2] * k + white) | 0})`;\n        ctx.fillStyle = tone(0.12, 0); ctx.fillRect(wx, CY - SLOT, 22, SLOT * 2);\n        for (let j = 0; j < teeth; j++) {\n          let th = j * dT - spin; th = Math.atan2(Math.sin(th), Math.cos(th));\n          if (Math.abs(th) > Math.PI / 2 + dT) continue;\n          const lit = Math.max(0, Math.cos(th + 0.42 + light * 0.2)), glint = Math.pow(lit, 14);\n          // Each tooth has a face that looks up, a flat crown and a face that looks down into the next groove.\n          ctx.fillStyle = tone(0.5 + 0.62 * lit, glint * 120); ctx.fillRect(wx, yAt(th), 22, yAt(th + dT * 0.22) - yAt(th) + 0.3);\n          ctx.fillStyle = tone(0.4 + 0.5 * lit, glint * 30); ctx.fillRect(wx, yAt(th + dT * 0.22), 22, yAt(th + dT * 0.55) - yAt(th + dT * 0.22) + 0.3);\n          ctx.fillStyle = tone(0.2 + 0.22 * lit, 0); ctx.fillRect(wx, yAt(th + dT * 0.55), 22, yAt(th + dT * 0.74) - yAt(th + dT * 0.55) + 0.3);\n        }\n        // Smooth flanges either side of the knurling.\n        for (const fx of [wx, wx + 18.5]) {\n          const fl = ctx.createLinearGradient(0, CY - SLOT, 0, CY + SLOT);\n          fl.addColorStop(0, tone(0.3, 0)); fl.addColorStop(0.3, tone(1.06, 40)); fl.addColorStop(0.42, tone(0.96, 0)); fl.addColorStop(1, tone(0.3, 0));\n          ctx.fillStyle = fl; ctx.fillRect(fx, CY - SLOT, 3.5, SLOT * 2);\n          ctx.fillStyle = \"rgba(0,0,0,0.4)\"; ctx.fillRect(fx === wx ? fx + 3.5 : fx - 0.6, CY - SLOT, 0.6, SLOT * 2);\n        }\n        const roll = ctx.createLinearGradient(0, CY - SLOT, 0, CY + SLOT);\n        roll.addColorStop(0, \"rgba(0,0,0,0.9)\"); roll.addColorStop(0.14, \"rgba(0,0,0,0.3)\"); roll.addColorStop(0.3, \"rgba(0,0,0,0)\"); roll.addColorStop(0.66, \"rgba(0,0,0,0.12)\"); roll.addColorStop(0.86, \"rgba(0,0,0,0.6)\"); roll.addColorStop(1, \"rgba(0,0,0,0.95)\");\n        ctx.fillStyle = roll; ctx.fillRect(wx, CY - SLOT, 22, SLOT * 2);\n        const edge = ctx.createLinearGradient(wx, 0, wx + 22, 0);\n        edge.addColorStop(0, \"rgba(0,0,0,0.45)\"); edge.addColorStop(0.1, \"rgba(0,0,0,0)\"); edge.addColorStop(0.86, \"rgba(0,0,0,0)\"); edge.addColorStop(1, \"rgba(0,0,0,0.55)\");\n        ctx.fillStyle = edge; ctx.fillRect(wx, CY - SLOT, 22, SLOT * 2);\n        ctx.restore();\n\n        // Digit drum behind its window.\n        ctx.save(); rr(ctx, dx, CY - WIN, 42, WIN * 2, 4); ctx.clip();\n        const drum = ctx.createLinearGradient(0, CY - WIN, 0, CY + WIN);\n        drum.addColorStop(0, \"#020202\"); drum.addColorStop(0.24, \"#1d1d1f\"); drum.addColorStop(0.42, \"#343437\"); drum.addColorStop(0.58, \"#252527\"); drum.addColorStop(0.84, \"#0c0c0d\"); drum.addColorStop(1, \"#000\");\n        ctx.fillStyle = drum; ctx.fillRect(dx, CY - WIN, 42, WIN * 2);\n        ctx.font = font; ctx.textAlign = \"center\"; ctx.textBaseline = \"middle\";\n        const near = Math.round(a);\n        for (let k = near - 2; k <= near + 2; k++) {\n          const th = (k - a) * STEP;\n          if (Math.abs(th) >= Math.PI / 2) continue;\n          const cos = Math.cos(th);\n          ctx.save(); ctx.translate(dx + 21, CY + RD * Math.sin(th) + 2 * cos); ctx.scale(1, cos);\n          ctx.fillStyle = `rgba(246,243,234,${Math.pow(cos, 1.4)})`; ctx.fillText(String(digitOf(k)), 0, 0);\n          ctx.restore();\n          // The seam between two numerals.\n          const ys = CY + RD * Math.sin(th + STEP / 2);\n          if (Math.abs(th + STEP / 2) < Math.PI / 2) { ctx.fillStyle = \"rgba(0,0,0,0.5)\"; ctx.fillRect(dx, ys, 42, 0.8); ctx.fillStyle = \"rgba(255,255,255,0.05)\"; ctx.fillRect(dx, ys + 0.8, 42, 0.6); }\n        }\n        const fall = ctx.createLinearGradient(0, CY - WIN, 0, CY + WIN);\n        fall.addColorStop(0, \"rgba(0,0,0,0.96)\"); fall.addColorStop(0.2, \"rgba(0,0,0,0.45)\"); fall.addColorStop(0.36, \"rgba(0,0,0,0)\"); fall.addColorStop(0.68, \"rgba(0,0,0,0)\"); fall.addColorStop(0.86, \"rgba(0,0,0,0.55)\"); fall.addColorStop(1, \"rgba(0,0,0,0.92)\");\n        ctx.fillStyle = fall; ctx.fillRect(dx, CY - WIN, 42, WIN * 2);\n        // A clear cover over the window: one soft band of reflection that drifts with the light.\n        const gx = dx + 4 + light * 5;\n        ctx.beginPath(); ctx.moveTo(gx, CY - WIN); ctx.lineTo(gx + 19, CY - WIN); ctx.lineTo(gx + 3, CY + WIN); ctx.lineTo(gx - 16, CY + WIN); ctx.closePath();\n        const gloss = ctx.createLinearGradient(0, CY - WIN, 0, CY + WIN);\n        gloss.addColorStop(0, \"rgba(255,255,255,0.2)\"); gloss.addColorStop(0.5, \"rgba(255,255,255,0.05)\"); gloss.addColorStop(1, \"rgba(255,255,255,0)\");\n        ctx.fillStyle = gloss; ctx.fill();\n        ctx.fillStyle = \"rgba(255,255,255,0.22)\"; ctx.fillRect(dx, CY - WIN, 42, 0.8);\n        ctx.restore();\n      });\n    };\n\n    let raf = 0, last = 0, seen = true, touched = -1e9, t0 = 0, step = 0, nextDemo = 0.9;\n    const queue: { at: number; i: number; d: number }[] = [];\n    const publish = () => { const next = s.map((w) => digitOf(w.target)); setDigits((old) => (old.every((d, i) => d === next[i]) ? old : next)); };\n    // Roll to a digit the short way round.\n    const aim = (i: number, d: number) => { const cur = digitOf(s[i].target); let by = d - cur; if (by > 5) by -= 10; if (by < -5) by += 10; s[i].target += by; };\n\n    const frame = (now: number) => {\n      raf = 0;\n      if (!t0) { t0 = now; last = now; }\n      const dt = Math.min(0.033, (now - last) / 1000); last = now;\n      const t = (now - t0) / 1000;\n      if (now - touched > 5000 && held < 0) {\n        light += (Math.sin(t * 0.9) - light) * Math.min(1, dt * 3);\n        if (demo.length && t > nextDemo) { demo[step % demo.length].forEach((d, i) => queue.push({ at: t + i * 0.16, i, d })); step++; nextDemo = t + 1.5; }\n      } else queue.length = 0;\n      for (let q = queue.length - 1; q >= 0; q--) if (t >= queue[q].at) { aim(queue[q].i, queue[q].d); queue.splice(q, 1); publish(); }\n      s.forEach((w, i) => {\n        if (i === held) {\n          // In the hand each wheel clings to a number, then drops into the next.\n          const n = Math.round(w.raw), off = w.raw - n, sticky = n + off - (Math.sin(off * Math.PI * 2) / (Math.PI * 2)) * 0.8;\n          w.v = ((sticky - w.a) / Math.max(dt, 0.001)) * 0.3; w.a += (sticky - w.a) * Math.min(1, dt * 34);\n        } else { w.v += (330 * (w.target - w.a) - 21 * w.v) * dt; w.a += w.v * dt; }\n      });\n      draw();\n      if (seen && !document.hidden) raf = requestAnimationFrame(frame);\n    };\n    const wake = () => { if (!raf && !reduce) { last = performance.now(); raf = requestAnimationFrame(frame); } };\n    const settle = () => { s.forEach((w) => { w.a = w.target; w.v = 0; }); draw(); };\n    const after = () => { publish(); if (reduce) settle(); else wake(); };\n\n    api.current = {\n      nudge: (i, by) => { touched = performance.now(); s[i].target = Math.round(s[i].target) + by; after(); },\n      to: (i, d) => { touched = performance.now(); aim(i, d); after(); },\n      grab: (i, y) => { touched = performance.now(); held = i; heldY = y; moved = 0; s[i].raw = s[i].a; wake(); },\n      drag: (y) => {\n        if (held < 0) return;\n        const w = s[held], dy = y - heldY; heldY = y; moved += Math.abs(dy); touched = performance.now();\n        w.raw -= dy / (RD * STEP); // pushing the wheel up adds\n        w.target = Math.round(w.raw); after();\n      },\n      drop: () => {\n        if (held < 0) return;\n        const w = s[held];\n        w.target = moved < 4 ? Math.round(w.target) + 1 : Math.round(w.raw + w.v * 0.09); // a tap adds one, a flick carries on a little\n        held = -1; touched = performance.now(); after();\n      },\n    };\n    if (reduce) settle(); else wake();\n\n    const io = new IntersectionObserver(([entry]) => { seen = entry.isIntersecting; if (seen) wake(); });\n    io.observe(cv);\n    const onVis = () => { if (!document.hidden) wake(); };\n    document.addEventListener(\"visibilitychange\", onVis);\n    return () => { cancelAnimationFrame(raf); api.current = null; io.disconnect(); document.removeEventListener(\"visibilitychange\", onVis); };\n  }, []);\n\n  const scaleOf = (el: HTMLElement) => el.getBoundingClientRect().height / el.offsetHeight || 1;\n  const onDown = (e: ReactPointerEvent<HTMLDivElement>, i: number) => { e.currentTarget.setPointerCapture(e.pointerId); api.current?.grab(i, e.clientY / scaleOf(e.currentTarget)); };\n  const onMove = (e: ReactPointerEvent<HTMLDivElement>) => { if (e.currentTarget.hasPointerCapture(e.pointerId)) api.current?.drag(e.clientY / scaleOf(e.currentTarget)); };\n  const onKey = (e: ReactKeyboardEvent, i: number) => {\n    if (e.key === \"ArrowUp\" || e.key === \"ArrowRight\") api.current?.nudge(i, 1);\n    else if (e.key === \"ArrowDown\" || e.key === \"ArrowLeft\") api.current?.nudge(i, -1);\n    else if (e.key === \"Home\") api.current?.to(i, 0);\n    else if (e.key === \"End\") api.current?.to(i, 9);\n    else if (/^[0-9]$/.test(e.key)) api.current?.to(i, Number(e.key));\n    else return;\n    e.preventDefault();\n  };\n  const total = digits.reduce((n, d) => n * 10 + d, 0);\n\n  return (\n    <div className=\"flex min-h-[600px] w-full flex-col items-center justify-center bg-[#e6dfd0] bg-[radial-gradient(90%_70%_at_50%_38%,#f3eee3_0%,#e6dfd0_70%)] px-4 py-12 sm:min-h-[700px]\">\n      <p id=\"thumbwheel-picker-label\" className=\"font-mono text-[11px] font-semibold uppercase tracking-[0.24em] text-stone-600 sm:mb-10\">{field.label}</p>\n      <div role=\"group\" aria-labelledby=\"thumbwheel-picker-label\" className=\"relative mt-2 h-[236px] w-[328px] sm:my-12 sm:scale-150\">\n        <div aria-hidden=\"true\" className=\"absolute left-[34px] right-[34px] top-[150px] h-[62px] rounded-[50%] bg-[#4a3410] opacity-50 blur-xl\" />\n        <canvas ref={canvas} aria-hidden=\"true\" className=\"absolute inset-0 h-full w-full\" />\n        {wheels.map((w, i) => (\n          <div\n            key={w.name}\n            role=\"spinbutton\"\n            tabIndex={0}\n            aria-label={w.name}\n            aria-valuemin={0}\n            aria-valuemax={9}\n            aria-valuenow={digits[i]}\n            onPointerDown={(e) => onDown(e, i)}\n            onPointerMove={onMove}\n            onPointerUp={() => api.current?.drop()}\n            onPointerCancel={() => api.current?.drop()}\n            onKeyDown={(e) => onKey(e, i)}\n            style={{ left: LEFT + i * UNIT + 3 }}\n            className=\"absolute top-[36px] h-[152px] w-[86px] cursor-grab touch-none rounded-md outline-none focus-visible:ring-2 focus-visible:ring-[#ec601c] active:cursor-grabbing\"\n          />\n        ))}\n        <input type=\"hidden\" name={field.name} value={total} />\n      </div>\n      <p aria-live=\"polite\" className=\"mt-4 text-center font-mono text-[11px] uppercase tracking-[0.2em] text-stone-600 sm:mt-10\">\n        <span className=\"font-semibold text-stone-900\">{String(total).padStart(wheels.length, \"0\")}</span>\n        <span className=\"mx-2 text-stone-400\">/</span>\n        {field.unit}\n      </p>\n    </div>\n  );\n}\n"}]}
