{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "receipt",
  "type": "registry:ui",
  "addGlobalCss": false,
  "registryDependencies": [],
  "dependencies": [
    "motion"
  ],
  "devDependencies": [],
  "files": [
    {
      "path": "receipt-icon.tsx",
      "content": "\"use client\";\n\nimport { cn } from \"@/lib/utils\";\nimport type { Variants } from \"motion/react\";\nimport {\n LazyMotion,\n domMin,\n m,\n useAnimation,\n useReducedMotion,\n} from \"motion/react\";\nimport {\n forwardRef,\n useCallback,\n useImperativeHandle,\n useRef,\n type HTMLAttributes,\n} from \"react\";\nexport interface ReceiptIconHandle {\n startAnimation: () => void;\n stopAnimation: () => void;\n}\n\ninterface ReceiptIconProps extends Omit<\n HTMLAttributes<HTMLDivElement>,\n | \"color\"\n | \"onDrag\"\n | \"onDragStart\"\n | \"onDragEnd\"\n | \"onAnimationStart\"\n | \"onAnimationEnd\"\n | \"onAnimationIteration\"\n> {\n size?: number;\n duration?: number;\n isAnimated?: boolean;\n color?: string;\n}\n\nconst ReceiptIcon = forwardRef<ReceiptIconHandle, ReceiptIconProps>(\n (\n  {\n   onMouseEnter,\n   onMouseLeave,\n   className,\n   size = 24,\n   duration = 1,\n   isAnimated = true,\n   color,\n   ...props\n  },\n  ref,\n ) => {\n  const controls = useAnimation();\n  const reduced = useReducedMotion();\n  const isControlled = useRef(false);\n\n  useImperativeHandle(ref, () => {\n   isControlled.current = true;\n   return {\n    startAnimation: () =>\n     reduced ? controls.start(\"normal\") : controls.start(\"animate\"),\n    stopAnimation: () => controls.start(\"normal\"),\n   };\n  });\n\n  const handleEnter = useCallback(\n   (e?: React.MouseEvent<HTMLDivElement>) => {\n    if (!isAnimated || reduced) return;\n    if (!isControlled.current) controls.start(\"animate\");\n    else onMouseEnter?.(e as any);\n   },\n   [controls, reduced, isAnimated, onMouseEnter],\n  );\n\n  const handleLeave = useCallback(\n   (e?: React.MouseEvent<HTMLDivElement>) => {\n    if (!isControlled.current) controls.start(\"normal\");\n    else onMouseLeave?.(e as any);\n   },\n   [controls, onMouseLeave],\n  );\n\n  const paperVariants: Variants = {\n   normal: { rotate: 0, y: 0 },\n   animate: {\n    rotate: [0, -4, 3, 0],\n    y: [0, -1, 0, 0],\n    transition: {\n     duration: 0.7 * duration,\n     ease: \"easeInOut\",\n     times: [0, 0.35, 0.7, 1],\n    },\n   },\n  };\n\n  const symbolVariants: Variants = {\n   normal: { scale: 1 },\n   animate: {\n    scale: [1, 1.25, 1],\n    transition: {\n     duration: 0.5 * duration,\n     ease: \"easeInOut\",\n     delay: 0.1 * duration,\n    },\n   },\n  };\n\n  return (\n   <LazyMotion features={domMin} strict>\n    <m.div\n     className={cn(\"inline-flex items-center justify-center\", className)}\n     onMouseEnter={handleEnter}\n     onMouseLeave={handleLeave}\n     {...props}\n     style={{ color, ...props.style }}\n    >\n     <m.svg\n      xmlns=\"http://www.w3.org/2000/svg\"\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke=\"currentColor\"\n      strokeWidth=\"2\"\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      animate={controls}\n      initial=\"normal\"\n     >\n      <m.g\n       variants={paperVariants}\n       style={{ transformBox: \"view-box\", originX: \"12px\", originY: \"12px\" }}\n      >\n       <path d=\"M8.06024 2.72546L7.88823 2.86189C7.70302 3.00878 7.61041 3.08223 7.51824 3.12852C7.19917 3.28874 6.81809 3.26781 6.51881 3.07364C6.43236 3.01754 6.3485 2.93441 6.18079 2.76813C5.78074 2.37152 5.58072 2.17321 5.42995 2.10043C4.89043 1.83999 4.24264 2.10601 4.04689 2.6684C3.99219 2.82556 3.99219 3.10601 3.99219 3.66691V20.698C3.99219 20.9548 3.99219 21.0832 4.00377 21.158C4.11773 21.8938 4.97843 22.2473 5.58378 21.8069C5.64532 21.7621 5.73693 21.6713 5.92007 21.4897C6.03528 21.3755 6.09297 21.3183 6.14757 21.2735C6.65461 20.8578 7.37571 20.8182 7.92595 21.1759C7.98522 21.2144 8.04886 21.2649 8.17614 21.3658L8.31228 21.4738C8.54263 21.6565 8.65783 21.7479 8.77324 21.8104C9.22131 22.053 9.76307 22.053 10.2111 21.8104C10.3265 21.7479 10.4417 21.6565 10.6721 21.4738L10.7422 21.4182C11.0392 21.1827 11.1877 21.0649 11.3406 20.9918C11.7523 20.7949 12.2321 20.7949 12.6438 20.9918C12.7967 21.0649 12.9452 21.1827 13.2422 21.4182L13.3123 21.4738C13.5426 21.6565 13.6578 21.7479 13.7732 21.8104C14.2213 22.053 14.7631 22.053 15.2111 21.8104C15.3265 21.7479 15.4417 21.6565 15.6721 21.4738L15.8082 21.3658C15.9355 21.2649 15.9992 21.2144 16.0584 21.1759C16.6087 20.8182 17.3298 20.8578 17.8368 21.2735C17.8914 21.3183 17.9491 21.3755 18.0643 21.4897C18.2475 21.6713 18.3391 21.7621 18.4006 21.8069C19.0059 22.2473 19.8666 21.8938 19.9806 21.158C19.9922 21.0832 19.9922 20.9548 19.9922 20.698V3.66691C19.9922 3.10601 19.9922 2.82556 19.9375 2.6684C19.7417 2.10601 19.0939 1.83999 18.5544 2.10043C18.4037 2.17321 18.2036 2.37152 17.8036 2.76813C17.6359 2.93441 17.552 3.01754 17.4656 3.07364C17.1663 3.26781 16.7852 3.28874 16.4661 3.12852C16.374 3.08223 16.2814 3.00878 16.0961 2.86189L15.9241 2.72546C15.4536 2.35223 15.2183 2.16562 14.9617 2.08178C14.6568 1.98214 14.3276 1.98214 14.0227 2.08178C13.7661 2.16562 13.5308 2.35224 13.0602 2.72546L12.9922 2.77943C12.635 3.06273 12.4564 3.20438 12.2583 3.2586C12.0842 3.30627 11.9002 3.30627 11.7261 3.2586C11.528 3.20438 11.3494 3.06273 10.9922 2.77943L10.9241 2.72546C10.4536 2.35223 10.2183 2.16562 9.96172 2.08178C9.65676 1.98214 9.32761 1.98214 9.02266 2.08178C8.76609 2.16562 8.53081 2.35223 8.06024 2.72546Z\" />\n       <m.path\n        d=\"M11.9922 8.5H13.4922C14.3206 8.5 14.9922 9.17157 14.9922 10M11.9922 8.5H10.4922C9.66376 8.5 8.99219 9.17157 8.99219 10V10.5C8.99219 11.3284 9.66376 12 10.4922 12H13.4922C14.3206 12 14.9922 12.6716 14.9922 13.5V14C14.9922 14.8284 14.3206 15.5 13.4922 15.5H11.9922M11.9922 8.5V7M11.9922 15.5H10.4922C9.66376 15.5 8.99219 14.8284 8.99219 14M11.9922 15.5V17\"\n        variants={symbolVariants}\n        style={{ transformBox: \"view-box\", originX: \"12px\", originY: \"10px\" }}\n       />\n      </m.g>\n     </m.svg>\n    </m.div>\n   </LazyMotion>\n  );\n },\n);\n\nReceiptIcon.displayName = \"ReceiptIcon\";\nexport { ReceiptIcon };\n",
      "type": "registry:ui"
    }
  ]
}