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{ forwardRef } from \"react\";\nimport { cn } from \"../../utils/cn\";\nimport type { PullQuoteProps } from \"./PullQuote.types\";\n\n/**\n * A pull quote — the oversized line lifted out of body copy, with optional\n * attribution and a rule-bracketed treatment.\n *\n * Twelve gallery styles build one. The reason this is a component rather than a\n * class is the same reason `<Kbd>` renders a real `<kbd>`: of the eight quote\n * elements in those styles, **one** was a `<blockquote>` — five were `<p>` and\n * two were `<div>` — and **none** used `<cite>` for the attribution. They all\n * look right and none of them says what it is.\n *\n * `citeUrl` maps to `<blockquote cite>`, which is the attribute's actual job\n * (the source URL) and is routinely confused with the visible `<cite>` element\n * (the work's title). Keeping them as separate props stops the two collapsing\n * into one another.\n */\nexport const PullQuote = forwardRef<HTMLQuoteElement, PullQuoteProps>(\n  ({ attribution, source, citeUrl, rule = false, className, children, ...props }, ref) => {\n    return (\n      <blockquote\n        ref={ref}\n        cite={citeUrl}\n        data-react-fancy-pull-quote=\"\"\n        className={cn(\n          \"m-0 text-2xl font-medium leading-snug tracking-tight text-zinc-900 dark:text-zinc-100\",\n          rule && \"border-y border-zinc-200 py-6 dark:border-zinc-800\",\n          className,\n        )}\n        {...props}\n      >\n        <p data-react-fancy-pull-quote-text=\"\" className=\"m-0\">\n          {children}\n        </p>\n\n        {(attribution != null || source != null) && (\n          <footer\n            data-react-fancy-pull-quote-attribution=\"\"\n            className=\"mt-3 text-sm font-normal tracking-normal text-zinc-500 dark:text-zinc-400\"\n          >\n            {attribution != null && <cite className=\"not-italic\">{attribution}</cite>}\n            {attribution != null && source != null && <span aria-hidden> · </span>}\n            {source}\n          </footer>\n        )}\n      </blockquote>\n    );\n  },\n);\n\nPullQuote.displayName = \"PullQuote\";\n"]}