{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icon-refresh-cw",
  "title": "Refresh Cw",
  "description": "Animated Lucide refresh-cw icon — the two arcs draw on, arrowheads pop, then the whole mark spins in cycles for sync, retry, or up-to-date messaging. Loops by default.",
  "dependencies": ["remotion"],
  "registryDependencies": ["@remocn/icons-core"],
  "files": [
    {
      "path": "registry/remocn-icons/icon-refresh-cw/index.tsx",
      "content": "\"use client\";\n\nimport { Easing, interpolate, spring, useVideoConfig } from \"remotion\";\nimport {\n  drawnPathProps,\n  type IconAnimationProps,\n  useIconAnimation,\n} from \"@/lib/remocn-icons\";\n\nconst ARC_TOP = \"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8\";\nconst ARROW_TOP = \"M21 3v5h-5\";\nconst ARC_BOTTOM = \"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16\";\nconst ARROW_BOTTOM = \"M8 16H3v5\";\n\nconst SPIN_EASE = Easing.bezier(0.45, 0, 0.25, 1);\n\nconst TIMINGS = {\n  drawDurationInFrames: 14,\n  actionDelayInFrames: 2,\n  actionDurationInFrames: 55,\n  loop: true,\n} as const;\n\nexport function RefreshCwIcon({\n  animation = \"both\",\n  loop,\n  speed,\n  size = 48,\n  color = \"currentColor\",\n  strokeWidth = 2,\n  className,\n}: IconAnimationProps) {\n  const { drawProgress, scaleIn, actionFrame, cycleIndex } = useIconAnimation(\n    { animation, loop, speed },\n    TIMINGS,\n  );\n  const { fps } = useVideoConfig();\n\n  const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);\n\n  const arcProgress = interpolate(linearDraw, [0, 0.857], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.inOut(Easing.quad),\n  });\n  const arrowTopPop = interpolate(linearDraw, [0.6, 0.714], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.back(1.8)),\n  });\n  const arrowBottomPop = interpolate(linearDraw, [0.76, 0.857], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.back(1.8)),\n  });\n\n  const arcTop = drawnPathProps(ARC_TOP, arcProgress);\n  const arcBottom = drawnPathProps(ARC_BOTTOM, arcProgress);\n\n  const resolvedLoop = loop ?? TIMINGS.loop;\n  const rotate = resolvedLoop\n    ? cycleIndex * 360 +\n      interpolate(actionFrame, [0, 44], [0, 360], {\n        extrapolateLeft: \"clamp\",\n        extrapolateRight: \"clamp\",\n        easing: SPIN_EASE,\n      })\n    : 360 *\n      spring({\n        frame: actionFrame,\n        fps,\n        config: { damping: 14, stiffness: 120, mass: 0.9 },\n        durationInFrames: 44,\n      });\n\n  const scale = 0.85 + 0.15 * scaleIn;\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: `rotate(${rotate}deg) scale(${scale})`,\n      }}\n    >\n      <path\n        d={ARC_TOP}\n        strokeDasharray={arcTop.strokeDasharray}\n        strokeDashoffset={arcTop.strokeDashoffset}\n      />\n      <path\n        d={ARC_BOTTOM}\n        strokeDasharray={arcBottom.strokeDasharray}\n        strokeDashoffset={arcBottom.strokeDashoffset}\n      />\n      <g transform={`translate(21 8) scale(${arrowTopPop}) translate(-21 -8)`}>\n        <path d={ARROW_TOP} />\n      </g>\n      <g\n        transform={`translate(3 16) scale(${arrowBottomPop}) translate(-3 -16)`}\n      >\n        <path d={ARROW_BOTTOM} />\n      </g>\n    </svg>\n  );\n}\n\nexport function RefreshCwIconStatic({\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      <path d={ARC_TOP} />\n      <path d={ARROW_TOP} />\n      <path d={ARC_BOTTOM} />\n      <path d={ARROW_BOTTOM} />\n    </svg>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/icon-refresh-cw.tsx"
    }
  ],
  "type": "registry:component"
}
