{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icon-target",
  "title": "Target",
  "description": "Animated Lucide target icon — three rings draw in from outside, then the bullseye hits: inner dot pops and the board shudders.",
  "dependencies": ["remotion"],
  "registryDependencies": ["@remocn/icons-core"],
  "files": [
    {
      "path": "registry/remocn-icons/icon-target/index.tsx",
      "content": "\"use client\";\n\nimport { Easing, interpolate } from \"remotion\";\nimport {\n  drawnPathProps,\n  type IconAnimationProps,\n  useIconAnimation,\n} from \"@/lib/remocn-icons\";\n\nconst RING_OUTER = \"M12 2a10 10 0 1 0 0 20 10 10 0 1 0 0-20Z\";\nconst RING_MID = \"M12 6a6 6 0 1 0 0 12 6 6 0 1 0 0-12Z\";\nconst RING_INNER = \"M12 10a2 2 0 1 0 0 4 2 2 0 1 0 0-4Z\";\n\nconst CENTER = 12;\n\nconst TIMINGS = {\n  drawDurationInFrames: 18,\n  actionDelayInFrames: 2,\n  actionDurationInFrames: 24,\n  loop: false,\n} as const;\n\nexport function TargetIcon({\n  animation = \"both\",\n  loop,\n  speed,\n  size = 48,\n  color = \"currentColor\",\n  strokeWidth = 2,\n  className,\n}: IconAnimationProps) {\n  const { drawProgress, scaleIn, actionProgress, actionFrame } =\n    useIconAnimation({ animation, loop, speed }, TIMINGS);\n\n  const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);\n  const acting = animation !== \"draw\" && actionFrame >= 0;\n\n  const outerDraw = interpolate(linearDraw, [0, 0.55], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n  const midDraw = interpolate(linearDraw, [0.28, 0.83], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n  const innerDraw = interpolate(linearDraw, [0.55, 1], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n\n  const pop = acting\n    ? interpolate(actionProgress, [0, 0.25, 0.6], [1, 1.5, 1], {\n        extrapolateLeft: \"clamp\",\n        extrapolateRight: \"clamp\",\n        easing: Easing.inOut(Easing.quad),\n      })\n    : 1;\n  const shake = acting\n    ? interpolate(\n        actionProgress,\n        [0.6, 0.68, 0.78, 0.88, 1],\n        [0, 0.6, -0.6, 0.3, 0],\n        {\n          extrapolateLeft: \"clamp\",\n          extrapolateRight: \"clamp\",\n        },\n      )\n    : 0;\n\n  const outer = drawnPathProps(RING_OUTER, acting ? 1 : outerDraw);\n  const mid = drawnPathProps(RING_MID, acting ? 1 : midDraw);\n  const inner = drawnPathProps(RING_INNER, acting ? 1 : innerDraw);\n\n  const scale = 0.85 + 0.15 * scaleIn;\n  const popTransform = `translate(${CENTER * (1 - pop)} ${CENTER * (1 - pop)}) scale(${pop})`;\n\n  return (\n    <svg\n      className={className}\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke={color}\n      strokeWidth={strokeWidth}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      style={{\n        overflow: \"visible\",\n        transformOrigin: \"center\",\n        transform: `scale(${scale})`,\n      }}\n    >\n      <g transform={`translate(${shake} 0)`}>\n        <path\n          d={RING_OUTER}\n          strokeDasharray={outer.strokeDasharray}\n          strokeDashoffset={outer.strokeDashoffset}\n        />\n        <path\n          d={RING_MID}\n          strokeDasharray={mid.strokeDasharray}\n          strokeDashoffset={mid.strokeDashoffset}\n        />\n        <g transform={popTransform}>\n          <path\n            d={RING_INNER}\n            strokeDasharray={inner.strokeDasharray}\n            strokeDashoffset={inner.strokeDashoffset}\n          />\n        </g>\n      </g>\n    </svg>\n  );\n}\n\nexport function TargetIconStatic({\n  size = 48,\n  color = \"currentColor\",\n  strokeWidth = 2,\n  className,\n}: {\n  size?: number;\n  color?: string;\n  strokeWidth?: number;\n  className?: string;\n}) {\n  return (\n    <svg\n      className={className}\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke={color}\n      strokeWidth={strokeWidth}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n    >\n      <circle cx=\"12\" cy=\"12\" r=\"10\" />\n      <circle cx=\"12\" cy=\"12\" r=\"6\" />\n      <circle cx=\"12\" cy=\"12\" r=\"2\" />\n    </svg>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/icon-target.tsx"
    }
  ],
  "type": "registry:component"
}
