{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "bento-13",
  "dependencies": [
    "lucide-react",
    "motion",
    "react-icons"
  ],
  "registryDependencies": [
    "card",
    "utils"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/bento-13.tsx",
      "content": "import { useState } from \"react\";\nimport { cn } from \"@/lib/utils\";\nimport {\n  motion,\n  MotionConfig,\n  useSpring,\n  useTransform,\n  type Variants,\n} from \"motion/react\";\nimport { useEffect } from \"react\";\nimport {\n  Card,\n  CardContent,\n  CardDescription,\n  CardHeader,\n  CardTitle,\n} from \"@/components/ui/card\";\n\nimport { AiOutlineDollarCircle } from \"react-icons/ai\";\nimport { FaLock } from \"react-icons/fa6\";\n\ntype AnimatedNumberProps = {\n  value: number;\n  className?: string;\n  springOptions?: Parameters<typeof useSpring>[1];\n  as?: \"span\" | \"div\" | \"p\";\n  decimals?: number;\n  prefix?: string;\n  suffix?: string;\n};\n\nconst MotionMap = {\n  span: motion.span,\n  div: motion.div,\n  p: motion.p,\n};\n\nexport function AnimatedNumber({\n  value,\n  className,\n  springOptions,\n  as = \"span\",\n  decimals = 0,\n  prefix = \"\",\n  suffix = \"\",\n}: AnimatedNumberProps) {\n  const MotionComponent = MotionMap[as] || motion.span;\n\n  const spring = useSpring(value, {\n    stiffness: 120,\n    damping: 20,\n    ...springOptions,\n  });\n\n  const display = useTransform(spring, (current) => {\n    const formatted = current.toFixed(decimals);\n    const number = Number(formatted).toLocaleString();\n    return `${prefix}${number}${suffix}`;\n  });\n\n  useEffect(() => {\n    spring.set(value);\n  }, [spring, value]);\n\n  return (\n    <MotionComponent className={cn(\"tabular-nums\", className)}>\n      {display}\n    </MotionComponent>\n  );\n}\nconst phoneVariants: Variants = {\n  initial: { y: 100 },\n  hover: {\n    y: 20,\n    transition: {\n      duration: 0.4,\n      ease: [0.65, 0, 0.35, 1],\n      staggerChildren: 0.03,\n      delayChildren: 0.05,\n    },\n  },\n};\n\nconst hiddenItem: Variants = {\n  initial: { opacity: 0, y: 20 },\n  hover: {\n    opacity: 1,\n    y: 0,\n    transition: {\n      duration: 0.45,\n      ease: [0.65, 0, 0.35, 1],\n    },\n  },\n};\n\nconst progressVariants: Variants = {\n  initial: { strokeDashoffset: 230 },\n  hover: {\n    strokeDashoffset: 75.36,\n    transition: {\n      duration: 0.45,\n      ease: [0.65, 0, 0.35, 1],\n    },\n  },\n};\n\nconst barVariants: Variants = {\n  initial: { scaleY: 0.5 },\n  hover: {\n    scaleY: 1,\n    transition: {\n      duration: 0.45,\n      ease: [0.65, 0, 0.35, 1],\n    },\n  },\n};\n\nconst images = [\n  \"https://randomuser.me/api/portraits/men/32.jpg\",\n  \"https://randomuser.me/api/portraits/women/44.jpg\",\n  \"https://randomuser.me/api/portraits/men/78.jpg\",\n  \"https://randomuser.me/api/portraits/women/40.jpg\",\n  \"https://randomuser.me/api/portraits/men/13.jpg\",\n  \"https://randomuser.me/api/portraits/women/17.jpg\",\n];\n\nconst FinancialWellnessCard = () => {\n  const [isHovering, setIsHovering] = useState(false);\n\n  return (\n    <MotionConfig transition={{ duration: 0.45, ease: [0.65, 0, 0.35, 1] }}>\n      <motion.div\n        initial=\"initial\"\n        whileHover=\"hover\"\n        animate=\"initial\"\n        onMouseEnter={() => setIsHovering(true)}\n        onMouseLeave={() => setIsHovering(false)}\n        className=\"relative col-span-1 flex flex-col items-center overflow-hidden rounded-3xl border border-white/5 bg-[#1a1a1a] px-6 pt-8 text-center md:col-span-3\"\n      >\n        <Card className=\"h-full gap-0 overflow-hidden rounded-none border-0 bg-transparent p-0 ring-0\">\n          <CardHeader className=\"gap-0\">\n            <CardTitle className=\"mb-3 text-3xl font-semibold text-white\">\n              Financial Wellness\n            </CardTitle>\n\n            <CardDescription className=\"max-w-[340px] text-center text-lg leading-tight text-[#808080]\">\n              Gain control of your spending with intuitive tracking and\n              categorization.\n            </CardDescription>\n          </CardHeader>\n\n          <motion.div\n            variants={phoneVariants}\n            className=\"mt-10 w-full max-w-[360px] rounded-t-[52px] border-white/10 bg-neutral-800 [mask-image:linear-gradient(to_bottom,black_50%,transparent_100%)] p-5 pb-0 shadow-2xl\"\n          >\n            <CardContent className=\"p-0\">\n              <div className=\"rounded-t-[32px] bg-neutral-900 px-1.5 py-5\">\n                <div className=\"mb-3 flex items-end justify-between px-3\">\n                  <span className=\"text-xs font-medium text-white/70\">\n                    9:30\n                  </span>\n\n                  <div className=\"flex items-center gap-1.5\">\n                    <div className=\"flex h-3 items-end gap-0.5\">\n                      <div className=\"h-1 w-[2px] bg-white/40\"></div>\n                      <div className=\"h-2 w-[2px] bg-white/40\"></div>\n                      <div className=\"h-3 w-[2px] bg-white\"></div>\n                    </div>\n\n                    <svg\n                      className=\"h-4 w-4 text-white\"\n                      fill=\"none\"\n                      viewBox=\"0 0 24 24\"\n                      stroke=\"currentColor\"\n                    >\n                      <path\n                        strokeLinecap=\"round\"\n                        strokeLinejoin=\"round\"\n                        strokeWidth={2}\n                        d=\"M8.111 16.404a5.5 5.5 0 017.778 0M12 20h.01m-7.08-7.071c3.904-3.905 10.236-3.905 14.141 0M1.394 9.393c5.857-5.857 15.355-5.857 21.213 0\"\n                      />\n                    </svg>\n\n                    <div className=\"relative h-2.5 w-5 rounded-sm border border-white/30\">\n                      <div className=\"rounded-px absolute top-0.5 bottom-0.5 left-0.5 w-2 bg-white\"></div>\n                    </div>\n                  </div>\n                </div>\n\n                <div className=\"mb-3 text-center leading-tight\">\n                  <h3 className=\"text-md font-medium text-white\">\n                    Welcome Back!\n                  </h3>\n                  <p className=\"text-xs text-neutral-500\">Hi, Choudary Aoun</p>\n                </div>\n\n                <div className=\"grid grid-cols-2 gap-1.5\">\n                  <div className=\"flex min-h-[160px] flex-col items-start rounded-sm bg-[#1e1e1e] p-2.5\">\n                    <div className=\"flex items-center space-x-4\">\n                      <div className=\"mb-3 flex h-8 w-8 items-center justify-center rounded-lg bg-[#252525]\">\n                        <div className=\"grid grid-cols-2 gap-0.5\">\n                          {[1, 2, 3, 4].map((i) => (\n                            <div\n                              key={i}\n                              className=\"h-1.5 w-1.5 rounded-sm border border-[#8b93ff]\"\n                            />\n                          ))}\n                        </div>\n                      </div>\n\n                      <span className=\"mb-4 text-xs text-neutral-400\">\n                        Projects\n                      </span>\n                    </div>\n\n                    <div className=\"relative flex aspect-square w-full items-center justify-center\">\n                      <svg\n                        className=\"h-full w-full -rotate-90\"\n                        viewBox=\"0 0 100 100\"\n                      >\n                        <circle\n                          cx=\"50\"\n                          cy=\"50\"\n                          r=\"40\"\n                          fill=\"transparent\"\n                          stroke=\"#2a2a2a\"\n                          strokeWidth=\"8\"\n                        />\n\n                        <motion.circle\n                          cx=\"50\"\n                          cy=\"50\"\n                          r=\"40\"\n                          fill=\"transparent\"\n                          stroke=\"#8b93ff\"\n                          strokeWidth=\"8\"\n                          strokeDasharray=\"251.2\"\n                          strokeLinecap=\"round\"\n                          variants={progressVariants}\n                        />\n                      </svg>\n\n                      <div className=\"absolute inset-0 flex flex-col items-center justify-center\">\n                        <span className=\"text-[8px] text-neutral-500\">\n                          Liked By\n                        </span>\n                        <AnimatedNumber\n                          value={isHovering ? 350 : 30}\n                          className=\"text-sm font-bold text-[#8b93ff]\"\n                        />\n                      </div>\n                    </div>\n                  </div>\n\n                  <div className=\"flex min-h-[160px] flex-col items-start rounded-sm bg-[#1e1e1e] p-2.5\">\n                    <div className=\"flex items-center space-x-4\">\n                      <div className=\"mb-3 flex h-8 w-8 items-center justify-center rounded-lg bg-[#252525] text-[#8b93ff]\">\n                        <svg\n                          className=\"h-4 w-4\"\n                          fill=\"none\"\n                          viewBox=\"0 0 24 24\"\n                          stroke=\"currentColor\"\n                        >\n                          <path\n                            strokeLinecap=\"round\"\n                            strokeLinejoin=\"round\"\n                            strokeWidth={2}\n                            d=\"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10\"\n                          />\n                        </svg>\n                      </div>\n\n                      <span className=\"mb-4 text-xs text-neutral-400\">\n                        Analytic\n                      </span>\n                    </div>\n\n                    <div className=\"mt-4 flex h-16 w-full items-end justify-between gap-1\">\n                      {[60, 80, 65, 95, 100, 40, 85, 50, 95, 45, 80, 70].map(\n                        (h, i) => (\n                          <motion.div\n                            key={i}\n                            variants={barVariants}\n                            className=\"flex-1 origin-bottom rounded-2xl bg-[#8b93ff]\"\n                            style={{ height: `${h}%` }}\n                          />\n                        )\n                      )}\n                    </div>\n\n                    <div className=\"mt-3 flex flex-col leading-tight\">\n                      <p className=\"text-[10px] text-neutral-500\">This Week</p>\n                      <p className=\"text-xs font-semibold text-[#8b93ff]\">\n                        63%\n                      </p>\n                    </div>\n                  </div>\n\n                  <motion.div\n                    variants={hiddenItem}\n                    className=\"flex min-h-[140px] flex-col items-start rounded-sm bg-[#3a3a3a] p-2.5\"\n                  >\n                    <div className=\"flex items-center space-x-4\">\n                      <div className=\"mb-3 flex h-8 w-8 items-center justify-center rounded-lg bg-black/20\">\n                        <svg\n                          className=\"h-4 w-4 text-[#8b93ff]\"\n                          fill=\"none\"\n                          viewBox=\"0 0 24 24\"\n                          stroke=\"currentColor\"\n                        >\n                          <path\n                            strokeLinecap=\"round\"\n                            strokeLinejoin=\"round\"\n                            strokeWidth={2}\n                            d=\"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682\"\n                          />\n                        </svg>\n                      </div>\n\n                      <span className=\"mb-4 text-xs font-medium text-white\">\n                        Growth\n                      </span>\n                    </div>\n\n                    <div\n                      className=\"h-12 w-full bg-[#8b93ff] opacity-80\"\n                      style={{\n                        clipPath:\n                          \"polygon(0 100%, 0 45%, 15% 35%, 30% 65%, 45% 15%, 60% 35%, 75% 5%, 90% 25%, 100% 15%, 100% 100%)\",\n                      }}\n                    />\n                  </motion.div>\n\n                  <motion.div\n                    variants={hiddenItem}\n                    className=\"flex min-h-[140px] flex-col items-start rounded-sm bg-[#1e1e1e] p-2.5\"\n                  >\n                    <div className=\"flex items-center space-x-4\">\n                      <div className=\"mb-3 flex h-8 w-8 items-center justify-center rounded-lg bg-[#252525]\">\n                        <div className=\"h-3 w-3 rounded-full border border-neutral-500\"></div>\n                      </div>\n\n                      <span className=\"mb-4 text-xs text-neutral-400\">\n                        Projects\n                      </span>\n                    </div>\n\n                    <p className=\"mt-auto text-[8px] text-neutral-500\">\n                      On Discussed\n                    </p>\n\n                    <p className=\"text-xs font-semibold text-[#8b93ff]\">07</p>\n                  </motion.div>\n                </div>\n              </div>\n            </CardContent>\n          </motion.div>\n        </Card>\n      </motion.div>\n    </MotionConfig>\n  );\n};\n\nconst containerVariants: Variants = {\n  initial: {\n    transition: {\n      staggerChildren: 0.04,\n      staggerDirection: -1,\n    },\n  },\n  hover: {\n    transition: {\n      staggerChildren: 0.06,\n    },\n  },\n};\n\nconst barVariants2: Variants = {\n  initial: {\n    scaleY: 0.6,\n  },\n  hover: {\n    scaleY: 1,\n  },\n};\nconst trophyVariants: Variants = {\n  hover: {\n    rotate: [0, -12, 12, -10, 10, -6, 6, 0],\n    scale: 1.15,\n    transition: {\n      scale: {\n        duration: 0.2,\n        ease: \"easeInOut\",\n      },\n      duration: 0.7,\n      ease: \"easeInOut\",\n    },\n  },\n};\n\nconst InvestmentGrowthCard = () => {\n  const data = [140, 230, 205, 290, 245, 220, 170];\n  const months = [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\"];\n\n  return (\n    <motion.div\n      initial=\"initial\"\n      whileHover=\"hover\"\n      animate=\"initial\"\n      className=\"col-span-1 flex flex-col items-center rounded-3xl border border-white/5 bg-[#1a1a1a] px-6 pt-8 text-center md:col-span-3\"\n    >\n      <Card className=\"h-full w-full gap-0 overflow-hidden rounded-none border-0 bg-transparent p-0 ring-0\">\n        <CardHeader className=\"w-full flex-1 gap-0 text-center\">\n          <CardTitle className=\"mb-2 text-3xl font-semibold text-neutral-100\">\n            Investment Growth\n          </CardTitle>\n\n          <CardDescription className=\"mx-auto mb-8 max-w-[280px] text-center text-lg text-neutral-500\">\n            Explore diverse portfolios and watch your wealth flourish with\n            expert guidance.\n          </CardDescription>\n        </CardHeader>\n        <CardContent className=\"relative mt-5 h-full w-full overflow-hidden rounded-t-2xl bg-[#242424] [mask-image:linear-gradient(to_right,black_80%,transparent_100%)] p-6\">\n          <motion.div className=\"absolute top-0 left-0 size-120 -translate-x-1/2 -translate-y-1/2 rounded-full bg-white opacity-5 blur-2xl\" />\n\n          <div className=\"mb-6 flex items-center justify-between\">\n            <span className=\"text-lg font-medium text-neutral-100\">\n              Leaderboard\n            </span>\n\n            <span className=\"rounded-full bg-white/10 px-2 py-1 text-xs text-neutral-400\">\n              Last 28 days\n            </span>\n          </div>\n\n          <motion.div\n            variants={containerVariants}\n            className=\"flex items-end justify-between gap-2 md:gap-4\"\n          >\n            {data.map((height, i) => (\n              <div key={i} className=\"flex flex-1 flex-col items-center gap-2\">\n                <motion.div\n                  variants={barVariants2}\n                  transition={{ duration: 0.45, ease: [0.65, 0, 0.35, 1] }}\n                  className={`w-full origin-bottom rounded-sm ${\n                    i === 2 || i === 6 || i === 3\n                      ? \"bg-indigo-400\"\n                      : \"bg-indigo-300\"\n                  }`}\n                  style={{ height: `${height}px` }}\n                />\n\n                <span className=\"text-[10px] text-neutral-500 uppercase md:text-xs\">\n                  {months[i]}\n                </span>\n              </div>\n            ))}\n          </motion.div>\n        </CardContent>\n      </Card>\n    </motion.div>\n  );\n};\n\nconst BentoGrid13 = () => {\n  const [value, setValue] = useState(0);\n\n  const itemVariants = {\n    hidden: {},\n    visible: {},\n  };\n\n  const TrophyItemVariants = {\n    hidden: {},\n    visible: {},\n    hoveer: {},\n  };\n\n  return (\n    <div className=\"min-h-screen bg-[#0a0a0a] p-4 font-sans text-white md:p-8\">\n      <motion.div className=\"mx-auto grid max-w-5xl grid-cols-1 gap-4 md:grid-cols-6\">\n        <FinancialWellnessCard />\n\n        <InvestmentGrowthCard />\n\n        <motion.div\n          variants={TrophyItemVariants}\n          whileHover=\"hover\"\n          className=\"col-span-1 flex min-h-[200px] flex-col items-center justify-center rounded-3xl border border-white/5 bg-[#1a1a1a] text-center md:col-span-3\"\n        >\n          <Card className=\"relative h-full w-full gap-0 overflow-hidden rounded-none border-0 bg-transparent p-0 ring-0\">\n            <img\n              src={\"https://assets.watermelon.sh/bento-13-bg.png\"}\n              alt=\"watermelon-logo\"\n              className=\"absolute\"\n            />\n            <CardContent className=\"flex h-[150px] items-center justify-center p-2\">\n              <motion.div\n                variants={trophyVariants}\n                className=\"origin-bottom\"\n                transition={{ duration: 0.2 }}\n              >\n                <img\n                  src=\"https://assets.watermelon.sh/winner-cup.png\"\n                  alt=\"trophy\"\n                  className=\"rotate-22\"\n                />\n              </motion.div>\n            </CardContent>\n            <CardHeader className=\"z-10 w-full flex-1 items-center gap-0 text-center\">\n              <CardTitle className=\"text-2xl font-semibold text-neutral-100\">\n                Financial Planning\n              </CardTitle>\n              <CardDescription className=\"mb-4 text-lg text-neutral-500\">\n                Set goals and receive strategies for a secure future.\n              </CardDescription>\n            </CardHeader>\n          </Card>\n        </motion.div>\n\n        <motion.div\n          variants={itemVariants}\n          className=\"col-span-1 flex flex-col items-center rounded-3xl border border-white/5 bg-[#1a1a1a] p-0 text-center md:col-span-3\"\n        >\n          <Card className=\"flex h-full w-full items-center justify-center gap-0 rounded-none border-0 bg-transparent p-0 ring-0\">\n            <CardContent className=\"flex h-[150px] items-center -space-x-3 p-2\">\n              {images.map((i) => (\n                <motion.div\n                  key={i}\n                  whileHover={{ scale: 1.05, zIndex: 50 }}\n                  className=\"relative size-12 rounded-full border-4 border-indigo-300 bg-indigo-300 p-4 md:size-16\"\n                >\n                  <img\n                    src={i}\n                    alt=\"avatar\"\n                    className=\"absolute inset-0 size-full rounded-full object-cover\"\n                  />\n                </motion.div>\n              ))}\n            </CardContent>\n            <CardHeader className=\"w-full flex-1 items-center gap-0 text-center\">\n              <CardTitle className=\"text-2xl font-semibold text-neutral-100\">\n                Community Support\n              </CardTitle>\n              <CardDescription className=\"mb-4 text-lg text-neutral-500\">\n                Visit and share money to your friends instantly!\n              </CardDescription>\n            </CardHeader>\n          </Card>\n        </motion.div>\n\n        <motion.div\n          variants={itemVariants}\n          initial=\"hidden\"\n          whileInView=\"visible\"\n          viewport={{ once: true }}\n          className=\"col-span-1 flex flex-col items-center rounded-3xl border border-white/5 bg-[#1a1a1a] p-8 text-center md:col-span-2\"\n        >\n          <Card className=\"h-full w-full items-center gap-0 overflow-hidden rounded-none border-0 bg-transparent p-0 ring-0\">\n            <CardContent className=\"mb-6 flex items-center justify-center rounded-xl bg-indigo-400 p-2 shadow-[0_0_20px_rgba(139,147,255,0.3)]\">\n              <AiOutlineDollarCircle className=\"size-12 text-white\" />\n            </CardContent>\n            <CardHeader className=\"w-full flex-1 items-center gap-0 text-center\">\n              <CardTitle className=\"text-3xl font-semibold text-neutral-100\">\n                Expand & Save\n              </CardTitle>\n              <CardDescription className=\"text-lg text-neutral-500\">\n                Collect points and spends on growth.\n              </CardDescription>\n            </CardHeader>\n          </Card>\n        </motion.div>\n\n        <motion.div\n          variants={itemVariants}\n          initial=\"hidden\"\n          whileInView=\"visible\"\n          viewport={{ once: true, amount: 0.5 }}\n          onViewportEnter={() => setValue(250)}\n          className=\"col-span-1 flex flex-col items-center relative justify-center gap-1 rounded-3xl border border-white/5 bg-[#1a1a1a] p-8 text-center md:col-span-2 \"\n        >\n          <FaLock className=\"absolute md:size-50 size-30 text-neutral-950 opacity-60\" />\n          <Card className=\"relative flex h-full w-full items-center justify-center gap-0 overflow-hidden rounded-none border-0 bg-transparent p-0 ring-0\">\n            <CardContent className=\"flex w-full items-center  justify-center text-center borde border-red-500\">\n              <span className=\"flex text-center text-5xl font-bold text-indigo-400 tabular-nums md:text-7xl\">\n                $\n                <AnimatedNumber\n                  value={value}\n                  className=\"text-center text-5xl font-bold text-indigo-400 md:text-7xl\"\n                />\n                K\n              </span>\n            </CardContent>\n            <CardHeader className=\"w-full items-center gap-0 text-center\">\n              <CardTitle className=\"text-xl font-semibold text-neutral-500\">\n                Secure Transaction\n              </CardTitle>\n            </CardHeader>\n          </Card>\n        </motion.div>\n\n        <motion.div\n          variants={itemVariants}\n          className=\"col-span-1 flex flex-col items-center rounded-3xl border border-white/5 bg-[#1a1a1a] p-8 text-center md:col-span-2\"\n        >\n          <Card className=\"h-full w-full items-center gap-0 overflow-hidden rounded-none border-0 bg-transparent p-0 ring-0\">\n            <CardContent className=\"mb-6 flex items-center justify-center rounded-xl bg-[#8b93ff] p-2 shadow-[0_0_20px_rgba(139,147,255,0.3)]\">\n              <svg\n                className=\"size-12 text-white\"\n                fill=\"currentColor\"\n                viewBox=\"0 0 24 24\"\n              >\n                <path d=\"M12 2l2.4 7.2h7.6l-6.1 4.5 2.3 7.3-6.2-4.5-6.2 4.5 2.3-7.3-6.1-4.5h7.6z\" />\n              </svg>\n            </CardContent>\n            <CardHeader className=\"w-full flex-1 items-center gap-0 text-center\">\n              <CardTitle className=\"text-3xl font-semibold text-neutral-100\">\n                Expert Advice\n              </CardTitle>\n              <CardDescription className=\"text-lg text-neutral-500\">\n                Access tailored financial recommendations!\n              </CardDescription>\n            </CardHeader>\n          </Card>\n        </motion.div>\n      </motion.div>\n    </div>\n  );\n};\n\nexport default BentoGrid13;\n",
      "type": "registry:ui",
      "target": "components/ui/bento-13.tsx"
    }
  ],
  "type": "registry:ui"
}
