{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "multi-file-drop",
  "title": "Multi File Drop",
  "description": "Files drop into a prompt box as chips, then a cursor presses send.",
  "dependencies": ["remotion", "@remotion/google-fonts"],
  "registryDependencies": ["@remocn/gsh"],
  "files": [
    {
      "path": "registry/remocn/multi-file-drop/index.tsx",
      "content": "\"use client\";\n\nimport { loadFont as loadHanken } from \"@remotion/google-fonts/HankenGrotesk\";\nimport { loadFont as loadJetBrains } from \"@remotion/google-fonts/JetBrainsMono\";\nimport {\n  AbsoluteFill,\n  Easing,\n  Img,\n  interpolate,\n  random,\n  spring,\n  staticFile,\n  useCurrentFrame,\n  useVideoConfig,\n} from \"remotion\";\nimport type { GradientParams } from \"@/lib/remocn/gsh/gradient-engine\";\nimport { GshGround } from \"@/lib/remocn/gsh/gsh-ground\";\nimport type { GshPresetId } from \"@/lib/remocn/gsh/presets\";\n\nconst hanken = loadHanken(\"normal\", {\n  weights: [\"300\", \"400\"],\n  subsets: [\"latin\"],\n});\nconst mono = loadJetBrains(\"normal\", {\n  weights: [\"400\"],\n  subsets: [\"latin\"],\n});\n\nconst ENTER = Easing.bezier(0.32, 0.72, 0, 1);\nconst EXIT = Easing.bezier(0.55, 0, 1, 0.45);\nconst MOVE = Easing.bezier(0.65, 0, 0.35, 1);\nconst SWAY = Easing.bezier(0.45, 0, 0.55, 1);\nconst HEAVY = { mass: 1, damping: 26, stiffness: 120 };\nconst CARD = { mass: 0.8, damping: 18, stiffness: 160 };\nconst CHIP = { mass: 0.5, damping: 12, stiffness: 200 };\nconst MORPH = { damping: 200 };\n\nconst B = {\n  head: -12,\n  card: -8,\n  fly: 4,\n  hover: 26,\n  drop: 38,\n  deal: 40,\n  dealStep: 2,\n  land: 10,\n  resolve: [62, 74, 84, 92],\n  cursorOut: 52,\n  ready: 100,\n  send: 112,\n  leave: 122,\n  end: 144,\n};\n\nexport const MULTI_FILE_DROP_DURATION = B.end;\n\nconst ramp = (f: number, start: number, dur: number, easing = ENTER) =>\n  interpolate(f, [start, start + dur], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing,\n  });\n\nconst mix = (a: number, b: number, t: number) => a + (b - a) * t;\n\nexport type DropFileKind = \"image\" | \"sketch\" | \"doc\" | \"sheet\";\nexport interface DropFile {\n  name: string;\n  kind: DropFileKind;\n  src?: string;\n  size?: string;\n}\n\nconst DEFAULT_FILES: DropFile[] = [\n  { name: \"wireframe.png\", kind: \"sketch\" },\n  {\n    name: \"hero.jpg\",\n    kind: \"image\",\n    src: staticFile(\"templates/launch-anything/desk.jpg\"),\n  },\n  { name: \"brief.pdf\", kind: \"doc\", size: \"412 KB\" },\n  { name: \"pricing.csv\", kind: \"sheet\", size: \"18 KB\" },\n];\n\nconst FAN = [\n  { x: -96, y: 18, r: -12 },\n  { x: -34, y: -8, r: -4 },\n  { x: 30, y: -2, r: 5 },\n  { x: 92, y: 20, r: 12 },\n];\n\nfunction Progress({\n  size,\n  color,\n  value,\n}: {\n  size: number;\n  color: string;\n  value: number;\n}) {\n  return (\n    <svg\n      viewBox=\"0 0 24 24\"\n      width={size}\n      height={size}\n      style={{ transform: \"rotate(-90deg)\" }}\n      aria-hidden\n    >\n      <circle\n        cx={12}\n        cy={12}\n        r={9}\n        fill=\"none\"\n        stroke={color}\n        strokeOpacity={0.25}\n        strokeWidth={2}\n      />\n      <circle\n        cx={12}\n        cy={12}\n        r={9}\n        fill=\"none\"\n        stroke={color}\n        strokeWidth={2}\n        strokeLinecap=\"round\"\n        strokeDasharray={`${Math.max(0.01, value) * 56.55} 60`}\n      />\n    </svg>\n  );\n}\n\nfunction FileFace({\n  file,\n  w,\n  h,\n  idx,\n}: {\n  file: DropFile;\n  w: number;\n  h: number;\n  idx: number;\n}) {\n  const m = Math.min(w, h);\n  if (file.kind === \"image\") {\n    return (\n      <Img\n        src={file.src ?? staticFile(\"templates/launch-anything/desk.jpg\")}\n        alt=\"\"\n        style={{\n          position: \"absolute\",\n          inset: 0,\n          width: \"100%\",\n          height: \"100%\",\n          objectFit: \"cover\",\n        }}\n      />\n    );\n  }\n  if (file.kind === \"sketch\") {\n    const j = (k: string) => (random(`mfd-sk-${idx}-${k}`) - 0.5) * 3;\n    const ln = (a: number, b: number, c: number, d: number, k: string) =>\n      `M ${a + j(`${k}1`)} ${b + j(`${k}2`)} L ${c + j(`${k}3`)} ${d + j(`${k}4`)}`;\n    const paths = [\n      ln(10, 12, 90, 13, \"a\"),\n      ln(90, 13, 89, 88, \"b\"),\n      ln(89, 88, 11, 87, \"c\"),\n      ln(11, 87, 10, 12, \"d\"),\n      ln(18, 24, 50, 24, \"e\"),\n      ln(18, 34, 82, 34, \"f\"),\n      ln(82, 34, 82, 62, \"g\"),\n      ln(82, 62, 18, 62, \"h\"),\n      ln(18, 62, 18, 34, \"i\"),\n      ln(18, 34, 82, 62, \"k\"),\n      ln(18, 72, 60, 72, \"l\"),\n      ln(18, 79, 44, 79, \"n\"),\n    ];\n    return (\n      <div\n        style={{\n          position: \"absolute\",\n          inset: 0,\n          background: \"linear-gradient(180deg, #f2f0ea 0%, #e6e3dc 100%)\",\n        }}\n      >\n        <svg\n          viewBox=\"0 0 100 100\"\n          preserveAspectRatio=\"none\"\n          style={{\n            position: \"absolute\",\n            inset: \"6%\",\n            width: \"88%\",\n            height: \"88%\",\n          }}\n          aria-hidden\n        >\n          {paths.map((d) => (\n            <path\n              key={d}\n              d={d}\n              fill=\"none\"\n              stroke=\"#33322e\"\n              strokeWidth={1.5}\n              vectorEffect=\"non-scaling-stroke\"\n              strokeLinecap=\"round\"\n            />\n          ))}\n        </svg>\n      </div>\n    );\n  }\n  const sheet = file.kind === \"sheet\";\n  const tag = sheet ? \"#1f9d63\" : \"#e5484d\";\n  const ext = file.name.split(\".\").pop()?.toUpperCase() ?? \"\";\n  return (\n    <div\n      style={{\n        position: \"absolute\",\n        inset: 0,\n        background: \"#ffffff\",\n        fontFamily: hanken.fontFamily,\n      }}\n    >\n      <div\n        style={{\n          position: \"absolute\",\n          left: \"11%\",\n          top: \"11%\",\n          width: m * 0.3,\n          height: m * 0.3,\n          borderRadius: m * 0.07,\n          background: tag,\n          display: \"flex\",\n          alignItems: \"center\",\n          justifyContent: \"center\",\n        }}\n      >\n        <svg viewBox=\"0 0 24 24\" width={m * 0.19} height={m * 0.19} aria-hidden>\n          <g\n            fill=\"none\"\n            stroke=\"#ffffff\"\n            strokeWidth={1.8}\n            strokeLinecap=\"round\"\n            strokeLinejoin=\"round\"\n          >\n            {sheet ? (\n              <path d=\"M4.5 4.5h15v15h-15zM4.5 9.5h15M4.5 14.5h15M10 9.5v10\" />\n            ) : (\n              <>\n                <path d=\"M6 2.8h7.6L18.5 7.7v13.5H6z\" />\n                <path d=\"M13.3 2.8v5.2h5.2M9 13h6M9 16.5h4\" />\n              </>\n            )}\n          </g>\n        </svg>\n      </div>\n      <div\n        style={{\n          position: \"absolute\",\n          left: \"11%\",\n          right: \"6%\",\n          bottom: \"9%\",\n          lineHeight: 1.25,\n          whiteSpace: \"nowrap\",\n          overflow: \"hidden\",\n          textOverflow: \"ellipsis\",\n        }}\n      >\n        <div style={{ fontSize: m * 0.16, color: \"#20232c\" }}>{file.name}</div>\n        <div\n          style={{\n            fontSize: m * 0.145,\n            color: \"rgba(32,35,44,0.55)\",\n            fontVariantNumeric: \"tabular-nums\",\n          }}\n        >\n          {file.size ? `${ext} · ${file.size}` : ext}\n        </div>\n      </div>\n    </div>\n  );\n}\n\nfunction Cursor({ size }: { size: number }) {\n  return (\n    <svg\n      viewBox=\"0 0 24 24\"\n      width={size}\n      height={size}\n      style={{\n        display: \"block\",\n        filter: \"drop-shadow(0 3px 5px rgba(0,0,0,0.35))\",\n      }}\n      aria-hidden\n    >\n      <path\n        d=\"M5 3.2v15.6l4.3-4.1 2.7 6.1 2.6-1.1-2.7-6h6z\"\n        fill=\"#0d0f10\"\n        stroke=\"#fff\"\n        strokeWidth={1.4}\n        strokeLinejoin=\"round\"\n      />\n    </svg>\n  );\n}\n\nexport interface MultiFileDropProps {\n  theme?: \"dark\" | \"light\";\n  accent?: string;\n  heading?: string;\n  prompt?: string;\n  files?: DropFile[];\n  resolveOrder?: number[];\n  ground?: GshPresetId;\n  groundParams?: Partial<GradientParams>;\n}\n\nexport function MultiFileDrop({\n  theme = \"dark\",\n  accent = \"#3B5BFD\",\n  heading = \"What are we launching?\",\n  prompt = \"Build a launch page for v2 with a hero video, a pricing table and a waitlist.\",\n  files = DEFAULT_FILES,\n  resolveOrder = [0, 2, 1, 3],\n  ground,\n  groundParams,\n}: MultiFileDropProps) {\n  const frame = useCurrentFrame();\n  const { width, height, fps } = useVideoConfig();\n  const dark = theme === \"dark\";\n  const portrait = height > width * 1.2;\n  const stageW = portrait ? 1080 : 1280;\n  const stageH = portrait ? 1920 : 720;\n  const sc = width / stageW;\n  const u = portrait ? 2 : 1.1;\n\n  const ink = dark ? \"#eef0fa\" : \"#141722\";\n  const soft = dark ? \"rgba(226,230,248,0.72)\" : \"rgba(20,23,34,0.7)\";\n  const muted = dark ? \"rgba(226,230,248,0.46)\" : \"rgba(20,23,34,0.46)\";\n  const hair = dark ? \"rgba(255,255,255,0.1)\" : \"rgba(20,24,48,0.1)\";\n  const slotBg = dark ? \"rgba(255,255,255,0.05)\" : \"#f1f2f6\";\n  const surface = dark\n    ? \"linear-gradient(180deg, rgba(25,28,40,0.9) 0%, rgba(13,15,24,0.94) 100%)\"\n    : \"linear-gradient(180deg, #ffffff 0%, #fafbfd 100%)\";\n  const ring = dark ? \"rgba(255,255,255,0.09)\" : \"rgba(20,24,48,0.07)\";\n  const shadow = dark\n    ? \"inset 0 1px 0 rgba(255,255,255,0.05), 0 30px 70px rgba(2,4,24,0.55)\"\n    : \"0 1px 2px rgba(40,40,110,0.06), 0 24px 60px rgba(40,40,110,0.14)\";\n\n  const n = Math.min(4, files.length);\n  const list = files.slice(0, n);\n  const order = resolveOrder.filter((k) => k < n);\n  const resolveAt = (i: number) => {\n    const k = order.indexOf(i);\n    return B.resolve[k >= 0 ? k : i] ?? B.resolve[B.resolve.length - 1];\n  };\n\n  const pad = 22 * u;\n  const fontSize = 24 * u;\n  const lh = fontSize * 1.42;\n  const textH = lh * 2;\n  const footH = 40 * u;\n  const slot = 100 * u;\n  const slotGap = 12 * u;\n  const cardW = portrait ? 960 : 900;\n  const cardX = (stageW - cardW) / 2;\n  const headSize = portrait ? 84 : 48;\n  const headH = headSize * 1.2;\n  const headGap = portrait ? 64 : 30;\n\n  const grow = spring({\n    frame: frame - B.deal,\n    fps,\n    config: MORPH,\n    durationInFrames: 16,\n  });\n  const baseH = pad + textH + 18 * u + footH + pad;\n  const cardH = baseH + grow * (slot + 16 * u);\n  const groupH = headH + headGap + baseH + slot + 16 * u;\n  const groupTop = (stageH - groupH) / 2 + (portrait ? 150 : 14);\n  const cardTop =\n    groupTop + headH + headGap + (1 - grow) * (slot + 16 * u) * 0.5;\n\n  const headIn = ramp(frame, B.head, 15);\n  const cardIn = spring({ frame: frame - B.card, fps, config: HEAVY });\n\n  const fanW = 168 * u;\n  const fanH = 128 * u;\n  const hoverX = portrait ? cardX + cardW * 0.56 : cardX + cardW - fanW * 0.85;\n  const hoverY = cardTop + (portrait ? baseH + fanH * 0.12 : baseH * 0.08);\n  const startX = stageW + fanW * 0.9;\n  const startY = portrait ? stageH + fanH * 0.4 : -fanH * 0.6;\n  const ctrlX = mix(startX, hoverX, 0.35);\n  const ctrlY = portrait ? hoverY + 240 : hoverY - 120;\n  const bez = (t: number, a: number, c: number, b: number) =>\n    (1 - t) * (1 - t) * a + 2 * (1 - t) * t * c + t * t * b;\n  const flyAt = (f: number) =>\n    spring({ frame: f - B.fly, fps, config: CARD, durationInFrames: 24 });\n  const fp = flyAt(frame);\n  const fpPrev = flyAt(frame - 1);\n  const hoverAmt = ramp(frame, B.hover - 4, 10) * (1 - ramp(frame, B.drop, 4));\n  const fanCx =\n    bez(fp, startX, ctrlX, hoverX) +\n    Math.sin((frame - B.hover) / 7) * 4 * u * hoverAmt;\n  const fanCy =\n    bez(fp, startY, ctrlY, hoverY) +\n    Math.cos((frame - B.hover) / 9) * 4 * u * hoverAmt +\n    10 * u * ramp(frame, B.drop - 3, 4, EXIT);\n  const fanSpeed = Math.hypot(\n    fanCx - bez(fpPrev, startX, ctrlX, hoverX),\n    fanCy - bez(fpPrev, startY, ctrlY, hoverY),\n  );\n  const fanSpread =\n    mix(0.35, 1, ramp(frame, B.fly + 6, 18)) *\n    (1 - 0.25 * ramp(frame, B.drop - 3, 4, EXIT));\n  const fanTilt = mix(14, 0, fp);\n  const dropZone =\n    ramp(frame, B.hover - 8, 10) * (1 - ramp(frame, B.deal, 8, EXIT));\n\n  const slotX = (i: number) => cardX + pad + i * (slot + slotGap) + slot / 2;\n  const slotY = cardTop + pad + slot / 2;\n\n  const curDX = fanW * 0.42;\n  const curDY = fanH * 0.38;\n  const sendX = cardX + cardW - pad - 19 * u;\n  const sendY = cardTop + cardH - pad - footH / 2;\n  const curGo = spring({\n    frame: frame - B.cursorOut,\n    fps,\n    config: HEAVY,\n    durationInFrames: 36,\n  });\n  const curLeave = spring({ frame: frame - B.leave, fps, config: HEAVY });\n  const curX = mix(fanCx + curDX, sendX + 6 * u, curGo) + curLeave * 70 * u;\n  const curY =\n    mix(fanCy + curDY, sendY + 8 * u, curGo) +\n    curLeave * 46 * u -\n    Math.sin(Math.PI * Math.min(1, curLeave)) * 10 * u;\n  const sendPress = Math.max(\n    0,\n    spring({ frame: frame - B.send + 2, fps, config: CHIP }) -\n      spring({ frame: frame - B.send - 2, fps, config: CHIP }),\n  );\n  const sent = ramp(frame, B.send + 1, 8);\n  const badge =\n    spring({ frame: frame - B.fly - 8, fps, config: CHIP }) *\n    (1 - ramp(frame, B.drop - 2, 5, EXIT));\n  const curPress =\n    Math.max(\n      0,\n      spring({ frame: frame - B.drop + 3, fps, config: CHIP }) -\n        spring({ frame: frame - B.drop - 1, fps, config: CHIP }),\n    ) + sendPress;\n\n  const resolvedCount = list.filter((_, i) => frame >= resolveAt(i) + 2).length;\n  const ready = ramp(frame, B.ready, 8);\n  const readyPop = spring({ frame: frame - B.ready, fps, config: CHIP });\n  const push = 1 + 0.035 * ramp(frame, B.deal, B.end - B.deal, SWAY);\n  const settle = spring({ frame: frame + 6, fps, config: HEAVY });\n  const rotX = mix(14, 3, settle) - 2 * ramp(frame, B.deal, 40, MOVE);\n\n  const resolvedGround: GshPresetId =\n    ground ?? (dark ? \"cobalt-rise\" : \"paper-crease\");\n  const resolvedParams = groundParams;\n\n  return (\n    <AbsoluteFill style={{ fontFamily: hanken.fontFamily, overflow: \"hidden\" }}>\n      <GshGround\n        preset={resolvedGround}\n        params={resolvedParams}\n        timeOffset={3}\n        timeScale={0.5}\n        style={portrait ? { transform: \"scaleY(-1)\" } : undefined}\n      />\n      <div\n        style={{\n          position: \"absolute\",\n          left: 0,\n          top: 0,\n          width: stageW,\n          height: stageH,\n          transform: `scale(${sc})`,\n          transformOrigin: \"0 0\",\n          perspective: 2200,\n        }}\n      >\n        <div\n          style={{\n            position: \"absolute\",\n            inset: 0,\n            transformStyle: \"preserve-3d\",\n            transformOrigin: `${stageW / 2}px ${cardTop + cardH / 2}px`,\n            transform: `scale(${push}) rotateX(${rotX}deg)`,\n          }}\n        >\n          <div\n            style={{\n              position: \"absolute\",\n              left: 0,\n              right: 0,\n              top: groupTop,\n              height: headH,\n              overflow: \"hidden\",\n              textAlign: \"center\",\n            }}\n          >\n            <div\n              style={{\n                fontSize: headSize,\n                lineHeight: 1.2,\n                fontWeight: 300,\n                letterSpacing: \"-0.035em\",\n                color: ink,\n                transform: `translateY(${mix(100, 0, headIn)}%)`,\n              }}\n            >\n              {heading}\n            </div>\n          </div>\n\n          <div\n            style={{\n              position: \"absolute\",\n              left: cardX,\n              top: cardTop,\n              width: cardW,\n              height: cardH,\n              borderRadius: 20 * u,\n              background: surface,\n              boxShadow: `0 0 0 1px ${dropZone > 0 ? `color-mix(in oklab, ${accent} ${Math.round(dropZone * 85)}%, ${ring})` : ring}, 0 0 0 ${4 * u * dropZone}px color-mix(in oklab, ${accent} ${Math.round(dropZone * 20)}%, transparent), ${shadow}`,\n              opacity: cardIn,\n              transform: `translateY(${mix(40 * u, 0, cardIn)}px)`,\n            }}\n          >\n            <div\n              style={{\n                position: \"absolute\",\n                inset: 0,\n                borderRadius: 20 * u,\n                background: `color-mix(in oklab, ${accent} ${Math.round(dropZone * (dark ? 14 : 8))}%, transparent)`,\n              }}\n            />\n            {list.map((f, i) => (\n              <div\n                key={f.name}\n                style={{\n                  position: \"absolute\",\n                  left: pad + i * (slot + slotGap),\n                  top: pad,\n                  width: slot,\n                  height: slot,\n                  borderRadius: 12 * u,\n                  background: slotBg,\n                  border: `1px dashed ${hair}`,\n                  opacity:\n                    grow * (1 - ramp(frame, B.deal + i * B.dealStep + 6, 4)),\n                }}\n              />\n            ))}\n            <div\n              style={{\n                position: \"absolute\",\n                left: pad,\n                right: pad,\n                top: pad + grow * (slot + 16 * u),\n                height: textH,\n                fontSize,\n                lineHeight: `${lh}px`,\n                color: ink,\n                overflow: \"hidden\",\n              }}\n            >\n              {prompt}\n            </div>\n            <div\n              style={{\n                position: \"absolute\",\n                left: pad,\n                right: pad,\n                bottom: pad,\n                height: footH,\n                display: \"flex\",\n                alignItems: \"center\",\n                gap: 10 * u,\n                fontSize: 17 * u,\n                color: soft,\n              }}\n            >\n              <div\n                style={{\n                  height: footH,\n                  padding: `0 ${14 * u}px`,\n                  borderRadius: 99,\n                  border: `1px solid ${hair}`,\n                  display: \"flex\",\n                  alignItems: \"center\",\n                  gap: 8 * u,\n                }}\n              >\n                <svg\n                  viewBox=\"0 0 24 24\"\n                  width={18 * u}\n                  height={18 * u}\n                  aria-hidden\n                >\n                  <path\n                    d=\"M16.5 7.5 9.4 14.6a1.8 1.8 0 0 0 2.6 2.6l7.4-7.4a3.6 3.6 0 0 0-5.1-5.1l-7.6 7.6a5.4 5.4 0 0 0 7.6 7.6l5.2-5.2\"\n                    fill=\"none\"\n                    stroke={soft}\n                    strokeWidth={1.5}\n                    strokeLinecap=\"round\"\n                    strokeLinejoin=\"round\"\n                  />\n                </svg>\n                <span style={{ fontVariantNumeric: \"tabular-nums\" }}>\n                  {frame < B.deal\n                    ? \"Attach\"\n                    : resolvedCount < n\n                      ? `Uploading ${resolvedCount}/${n}`\n                      : `${n} files · 3.4 MB`}\n                </span>\n              </div>\n              <div style={{ marginLeft: \"auto\" }}>Build</div>\n              <svg\n                viewBox=\"0 0 24 24\"\n                width={16 * u}\n                height={16 * u}\n                aria-hidden\n              >\n                <path\n                  d=\"m7 10 5 5 5-5\"\n                  fill=\"none\"\n                  stroke={soft}\n                  strokeWidth={1.5}\n                  strokeLinecap=\"round\"\n                  strokeLinejoin=\"round\"\n                />\n              </svg>\n              <svg\n                viewBox=\"0 0 24 24\"\n                width={20 * u}\n                height={20 * u}\n                aria-hidden\n                style={{ marginLeft: 6 * u }}\n              >\n                <g\n                  fill=\"none\"\n                  stroke={soft}\n                  strokeWidth={1.5}\n                  strokeLinecap=\"round\"\n                >\n                  <rect x={9} y={3.5} width={6} height={11} rx={3} />\n                  <path d=\"M6 11.5a6 6 0 0 0 12 0M12 17.5v3\" />\n                </g>\n              </svg>\n              <div\n                style={{\n                  width: 38 * u,\n                  height: 38 * u,\n                  borderRadius: 11 * u,\n                  marginLeft: 4 * u,\n                  background:\n                    ready > 0\n                      ? accent\n                      : dark\n                        ? \"rgba(255,255,255,0.1)\"\n                        : \"rgba(20,24,48,0.08)\",\n                  transform: `scale(${(1 + 0.06 * Math.sin(Math.PI * Math.min(1, readyPop)) * ready) * (1 - 0.04 * sendPress)})`,\n                  boxShadow:\n                    ready > 0\n                      ? \"inset 0 1px 0 rgba(255,255,255,0.22), 0 1px 2px rgba(4,6,30,0.3)\"\n                      : undefined,\n                  display: \"flex\",\n                  alignItems: \"center\",\n                  justifyContent: \"center\",\n                }}\n              >\n                <svg\n                  viewBox=\"0 0 24 24\"\n                  width={18 * u}\n                  height={18 * u}\n                  aria-hidden\n                >\n                  <path\n                    d=\"M12 19V5M6 11l6-6 6 6\"\n                    fill=\"none\"\n                    stroke={ready > 0 ? \"#fff\" : muted}\n                    strokeWidth={2}\n                    strokeLinecap=\"round\"\n                    strokeLinejoin=\"round\"\n                    opacity={1 - sent}\n                    transform={`translate(0 ${-4 * sent})`}\n                  />\n                  <rect\n                    x={7.5}\n                    y={7.5}\n                    width={9}\n                    height={9}\n                    rx={2}\n                    fill=\"#fff\"\n                    opacity={sent}\n                    transform={`translate(12 12) scale(${mix(0.4, 1, sent)}) translate(-12 -12)`}\n                  />\n                </svg>\n              </div>\n            </div>\n          </div>\n\n          {list.map((f, i) => {\n            const k = n - 1 - i;\n            const fan = FAN[i] ?? FAN[0];\n            const dealT = B.deal + k * B.dealStep;\n            const go = spring({ frame: frame - dealT, fps, config: CARD });\n            const goPrev = spring({\n              frame: frame - dealT - 1,\n              fps,\n              config: CARD,\n            });\n            const fx = fanCx + fan.x * u * fanSpread;\n            const fy = fanCy + fan.y * u * fanSpread;\n            const x = mix(fx, slotX(i), go);\n            const y = mix(fy, slotY, go);\n            const px = mix(fx, slotX(i), goPrev);\n            const py = mix(fy, slotY, goPrev);\n            const vel = frame > dealT ? Math.hypot(x - px, y - py) : fanSpeed;\n            const w = mix(fanW, slot, go);\n            const h = mix(fanH, slot, go);\n            const r = mix(fan.r * fanSpread + fanTilt, 0, go);\n            const landed = ramp(frame, dealT + B.land - 4, 6);\n            const rs = resolveAt(i);\n            const done = ramp(frame, rs, 6);\n            const pop = spring({ frame: frame - rs, fps, config: CHIP });\n            const punch =\n              1 + 0.07 * Math.sin(Math.PI * Math.min(1, pop)) * done;\n            const loading = landed * (1 - done);\n            const progress = interpolate(\n              frame,\n              [dealT + B.land - 4, rs],\n              [0.06, 1],\n              {\n                extrapolateLeft: \"clamp\",\n                extrapolateRight: \"clamp\",\n                easing: MOVE,\n              },\n            );\n            const lift = 1 - go;\n            return (\n              <div\n                key={f.name}\n                style={{\n                  position: \"absolute\",\n                  left: x - w / 2,\n                  top: y - h / 2,\n                  width: w,\n                  height: h,\n                  transform: `rotate(${r}deg) scale(${punch})`,\n                  borderRadius: mix(14, 12, go) * u,\n                  overflow: \"hidden\",\n                  outline: `1px solid ${dark ? \"rgba(255,255,255,0.1)\" : \"rgba(0,0,0,0.1)\"}`,\n                  outlineOffset: -1,\n                  background: slotBg,\n                  boxShadow: `0 ${mix(2, 22, lift) * u}px ${mix(6, 40, lift) * u}px rgba(4,6,30,${dark ? 0.5 : 0.2})`,\n                  opacity: ramp(frame, B.fly, 4),\n                  filter:\n                    vel > 8 ? `blur(${Math.min(5, vel * 0.05)}px)` : undefined,\n                  zIndex: 10 + i,\n                }}\n              >\n                <div\n                  style={{\n                    position: \"absolute\",\n                    inset: 0,\n                    opacity: 1 - 0.78 * loading,\n                    filter:\n                      loading > 0.01\n                        ? `blur(${loading * 6}px) saturate(${1 - loading * 0.6})`\n                        : undefined,\n                    transform: `scale(${1 + 0.08 * loading})`,\n                  }}\n                >\n                  <FileFace file={f} w={w} h={h} idx={i} />\n                </div>\n                <div\n                  style={{\n                    position: \"absolute\",\n                    inset: 0,\n                    display: \"flex\",\n                    alignItems: \"center\",\n                    justifyContent: \"center\",\n                    opacity: loading,\n                  }}\n                >\n                  <Progress\n                    size={30 * u}\n                    color={dark ? \"#ffffff\" : \"#1a1f33\"}\n                    value={progress}\n                  />\n                </div>\n              </div>\n            );\n          })}\n\n          <div\n            style={{\n              position: \"absolute\",\n              left: curX,\n              top: curY,\n              transform: `scale(${1 - 0.04 * curPress})`,\n              transformOrigin: \"4px 3px\",\n              opacity: ramp(frame, B.fly + 2, 6),\n              zIndex: 30,\n            }}\n          >\n            <Cursor size={30 * u} />\n            <div\n              style={{\n                position: \"absolute\",\n                left: 20 * u,\n                top: 22 * u,\n                minWidth: 26 * u,\n                height: 26 * u,\n                padding: `0 ${7 * u}px`,\n                borderRadius: 99,\n                background: accent,\n                border: `${1.5 * u}px solid ${dark ? \"#0d0f18\" : \"#ffffff\"}`,\n                color: \"#fff\",\n                fontFamily: mono.fontFamily,\n                fontSize: 16 * u,\n                lineHeight: 1,\n                display: \"flex\",\n                alignItems: \"center\",\n                justifyContent: \"center\",\n                boxShadow: \"0 4px 10px rgba(4,6,30,0.35)\",\n                transform: `scale(${badge})`,\n              }}\n            >\n              {n}\n            </div>\n          </div>\n        </div>\n      </div>\n    </AbsoluteFill>\n  );\n}\n\nexport default MultiFileDrop;\n",
      "type": "registry:component",
      "target": "components/remocn/multi-file-drop.tsx"
    }
  ],
  "type": "registry:component"
}
