{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "briefcase-business",
  "type": "registry:ui",
  "registryDependencies": [],
  "dependencies": ["motion"],
  "devDependencies": [],
  "files": [
    {
      "path": "briefcase-business.tsx",
      "content": "\"use client\";\n\nimport type { Variants } from \"motion/react\";\nimport { motion, useAnimation } from \"motion/react\";\nimport type { HTMLAttributes } from \"react\";\nimport { forwardRef, useCallback, useImperativeHandle, useRef } from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nexport interface BriefcaseBusinessIconHandle {\n  startAnimation: () => void;\n  stopAnimation: () => void;\n}\n\ninterface BriefcaseBusinessIconProps extends HTMLAttributes<HTMLDivElement> {\n  size?: number;\n}\n\nconst SWAY_VARIANTS: Variants = {\n  normal: {\n    rotate: 0,\n    transition: {\n      duration: 0.3,\n      ease: \"easeOut\",\n    },\n  },\n  animate: {\n    rotate: [0, 4, -3, 2, 0],\n    transition: {\n      duration: 0.9,\n      ease: \"easeInOut\",\n      times: [0, 0.25, 0.5, 0.75, 1],\n    },\n  },\n};\n\nconst BriefcaseBusinessIcon = forwardRef<\n  BriefcaseBusinessIconHandle,\n  BriefcaseBusinessIconProps\n>(({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {\n  const controls = useAnimation();\n  const isControlledRef = useRef(false);\n\n  useImperativeHandle(ref, () => {\n    isControlledRef.current = true;\n    return {\n      startAnimation: () => controls.start(\"animate\"),\n      stopAnimation: () => controls.start(\"normal\"),\n    };\n  });\n\n  const handleMouseEnter = useCallback(\n    (e: React.MouseEvent<HTMLDivElement>) => {\n      if (isControlledRef.current) {\n        onMouseEnter?.(e);\n      } else {\n        controls.start(\"animate\");\n      }\n    },\n    [controls, onMouseEnter]\n  );\n\n  const handleMouseLeave = useCallback(\n    (e: React.MouseEvent<HTMLDivElement>) => {\n      if (isControlledRef.current) {\n        onMouseLeave?.(e);\n      } else {\n        controls.start(\"normal\");\n      }\n    },\n    [controls, onMouseLeave]\n  );\n\n  return (\n    <div\n      className={cn(className)}\n      onMouseEnter={handleMouseEnter}\n      onMouseLeave={handleMouseLeave}\n      {...props}\n    >\n      <motion.svg\n        animate={controls}\n        fill=\"none\"\n        height={size}\n        initial=\"normal\"\n        stroke=\"currentColor\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        strokeWidth=\"2\"\n        style={{ transformOrigin: \"12px 4px\" }}\n        variants={SWAY_VARIANTS}\n        viewBox=\"0 0 24 24\"\n        width={size}\n        xmlns=\"http://www.w3.org/2000/svg\"\n      >\n        <path d=\"M12 12h.01\" />\n        <path d=\"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2\" />\n        <path d=\"M22 13a18.15 18.15 0 0 1-20 0\" />\n        <rect height=\"14\" rx=\"2\" width=\"20\" x=\"2\" y=\"6\" />\n      </motion.svg>\n    </div>\n  );\n});\n\nBriefcaseBusinessIcon.displayName = \"BriefcaseBusinessIcon\";\n\nexport { BriefcaseBusinessIcon };\n",
      "type": "registry:ui"
    }
  ]
}
