{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "prequel-megaphone",
  "type": "registry:ui",
  "title": "Megaphone",
  "description": "A megaphone that swings while its sound arc pulses.",
  "dependencies": [
    "motion"
  ],
  "registryDependencies": [
    "https://prequeluianimate.terravidhal.me/r/icon-core.json"
  ],
  "meta": {
    "style": "outline",
    "category": "Notifications",
    "roles": [
      "primary",
      "primary",
      "primary"
    ],
    "closed": [
      true,
      false,
      false
    ],
    "palette": {
      "primary": "oklch(0.68 0.17 50)",
      "primaryDark": "oklch(0.83 0.13 50)",
      "accent": "oklch(0.62 0.18 25)",
      "accentDark": "oklch(0.78 0.14 25)"
    },
    "emoji": {
      "primary": "oklch(0.68 0.2 27)",
      "secondary": "oklch(0.54 0.19 25)",
      "accent": "oklch(0.82 0.16 85)"
    },
    "styles": [
      "outline",
      "solid",
      "duotone",
      "color",
      "emoji"
    ]
  },
  "files": [
    {
      "path": "components/prequelui/icons/prequel-megaphone.tsx",
      "target": "components/prequelui/icons/prequel-megaphone.tsx",
      "type": "registry:ui",
      "content": "\"use client\";\n\nimport { motion, type SVGMotionProps } from \"motion/react\";\nimport {\n  useAnimatedIconContext,\n  useIconVariants,\n  type IconAnimationSet,\n} from \"./core\";\nimport {\n  useIconPaint,\n  type IconPaletteBundle,\n  type IconVariant,\n} from \"./style\";\n\nexport type IconProps = Omit<SVGMotionProps<SVGSVGElement>, \"ref\"> & {\n  size?: number;\n  variant?: IconVariant;\n};\n\nconst palette: IconPaletteBundle = {\n  \"color\": {\n    \"primary\": \"oklch(0.68 0.17 50)\",\n    \"primaryDark\": \"oklch(0.83 0.13 50)\",\n    \"accent\": \"oklch(0.62 0.18 25)\",\n    \"accentDark\": \"oklch(0.78 0.14 25)\"\n  },\n  \"emoji\": {\n    \"primary\": \"oklch(0.68 0.2 27)\",\n    \"secondary\": \"oklch(0.54 0.19 25)\",\n    \"accent\": \"oklch(0.82 0.16 85)\"\n  }\n};\n\nexport const animations = {\n  \"hover\": {\n    \"group\": {\n      \"initial\": {\n        \"rotate\": 0\n      },\n      \"animate\": {\n        \"rotate\": [\n          0,\n          -6,\n          5,\n          -3,\n          0\n        ],\n        \"transition\": {\n          \"duration\": 0.6,\n          \"ease\": \"easeInOut\"\n        }\n      }\n    },\n    \"p0\": {},\n    \"p1\": {\n      \"initial\": {\n        \"opacity\": 1,\n        \"scale\": 1\n      },\n      \"animate\": {\n        \"opacity\": [\n          1,\n          0.55,\n          1\n        ],\n        \"scale\": [\n          1,\n          1.06,\n          1\n        ],\n        \"transition\": {\n          \"duration\": 0.55,\n          \"ease\": \"easeInOut\"\n        }\n      }\n    },\n    \"p2\": {}\n  },\n  \"tap\": {\n    \"group\": {\n      \"initial\": {\n        \"rotate\": 0\n      },\n      \"animate\": {\n        \"rotate\": [\n          0,\n          -14,\n          12,\n          -8,\n          4,\n          0\n        ],\n        \"transition\": {\n          \"duration\": 0.95,\n          \"ease\": \"easeInOut\"\n        }\n      }\n    },\n    \"p0\": {},\n    \"p1\": {\n      \"initial\": {\n        \"opacity\": 1,\n        \"scale\": 1\n      },\n      \"animate\": {\n        \"opacity\": [\n          1,\n          0.4,\n          1\n        ],\n        \"scale\": [\n          1,\n          1.14,\n          1\n        ],\n        \"transition\": {\n          \"duration\": 0.55,\n          \"ease\": [\n            0.22,\n            1,\n            0.36,\n            1\n          ]\n        }\n      }\n    },\n    \"p2\": {}\n  },\n  \"loop\": {\n    \"group\": {\n      \"initial\": {\n        \"rotate\": 0\n      },\n      \"animate\": {\n        \"rotate\": [\n          0,\n          -4,\n          4,\n          0\n        ],\n        \"transition\": {\n          \"duration\": 1.6,\n          \"ease\": \"easeInOut\"\n        }\n      }\n    },\n    \"p0\": {},\n    \"p1\": {\n      \"initial\": {\n        \"opacity\": 1,\n        \"scale\": 1\n      },\n      \"animate\": {\n        \"opacity\": [\n          1,\n          0.55,\n          1\n        ],\n        \"scale\": [\n          1,\n          1.05,\n          1\n        ],\n        \"transition\": {\n          \"duration\": 1.5,\n          \"ease\": \"easeInOut\"\n        }\n      }\n    },\n    \"p2\": {}\n  }\n} satisfies IconAnimationSet;\n\nexport function PrequelMegaphoneIcon({ size = 28, variant: variantProp, ...props }: IconProps) {\n  const context = useAnimatedIconContext();\n  const variants = useIconVariants(animations);\n  const controls = context?.controls;\n  const {\n    variant,\n    weight,\n    part: paintPart,\n    halo: paintHalo,\n    flash: paintFlash,\n    sticker: paintSticker,\n    highlight: paintHighlight,\n  } = useIconPaint(palette, variantProp);\n\n  // Generated icons use a subset of these painters; marking them keeps the\n  // file buildable in projects that enable noUnusedLocals.\n  void paintPart;\n  void paintHalo;\n  void paintFlash;\n  void paintSticker;\n  void paintHighlight;\n\n  return (\n    <motion.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      aria-hidden=\"true\"\n      data-icon-style={variant}\n      data-icon-weight={weight}\n      variants={variants.group}\n      initial=\"initial\"\n      animate={controls}\n      {...props}\n    >\n\n      {(variant === \"duotone\" || variant === \"emoji\") && (\n        <motion.path\n          key={`${variant}-halo1`}\n          className=\"pi-halo\"\n          data-paint=\"halo\"\n          d={\"M15 8a4 4 0 0 1 0 8\"}\n          style={paintHalo(\"primary\")}\n          variants={variants.p1}\n          initial=\"initial\"\n          animate={controls}\n        />\n      )}\n      {(variant === \"duotone\" || variant === \"emoji\") && (\n        <motion.path\n          key={`${variant}-halo2`}\n          className=\"pi-halo\"\n          data-paint=\"halo\"\n          d={\"M7 15v4a2 2 0 0 0 4 0v-2\"}\n          style={paintHalo(\"primary\")}\n          variants={variants.p2}\n          initial=\"initial\"\n          animate={controls}\n        />\n      )}\n      <motion.path\n        key={`${variant}-p0`}\n        className=\"pi-part\"\n        d={\"M4 10v4l3 1 8 5V4L7 9l-3 1Z\"}\n        style={paintPart(\"primary\", true, false, false)}\n        variants={variants.p0}\n        initial=\"initial\"\n        animate={controls}\n      />\n      <motion.path\n        key={`${variant}-p1`}\n        className=\"pi-part\"\n        d={\"M15 8a4 4 0 0 1 0 8\"}\n        style={paintPart(\"primary\", false, false, false)}\n        variants={variants.p1}\n        initial=\"initial\"\n        animate={controls}\n      />\n      <motion.path\n        key={`${variant}-p2`}\n        className=\"pi-part\"\n        d={\"M7 15v4a2 2 0 0 0 4 0v-2\"}\n        style={paintPart(\"primary\", false, false, false)}\n        variants={variants.p2}\n        initial=\"initial\"\n        animate={controls}\n      />\n\n      {variant === \"emoji\" && (\n        <ellipse\n          className=\"pi-highlight\"\n          cx={7.3}\n          cy={8.48}\n          rx={1.76}\n          ry={0.92}\n          transform=\"rotate(-24 7.3 8.48)\"\n          style={paintHighlight()}\n        />\n      )}\n    </motion.svg>\n  );\n}\n"
    }
  ]
}
