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A;AAEjB,IAAM,QAAQ,MAAA,CAAO,MAAA,CAAO,WAAW,EAAE,IAAA,EAAM,WAAW","file":"chunk-LMPPAQKP.cjs","sourcesContent":["import { forwardRef } from \"react\";\nimport { cn } from \"../../utils/cn\";\nimport type { BrandMarkProps } from \"./Brand.types\";\n\nconst sizeClasses: Record<Exclude<NonNullable<BrandMarkProps[\"size\"]>, number>, string> = {\n  sm: \"h-6 w-6 rounded-md text-[11px]\",\n  md: \"h-8 w-8 rounded-lg text-sm\",\n  lg: \"h-11 w-11 rounded-xl text-lg\",\n};\n\n/**\n * The square logo tile — a glyph centred in a rounded, coloured square.\n *\n * `Brand` has always taken its mark as a caller-supplied `logo` node, which is\n * exactly why every page that wanted one rebuilt the same square: fixed size,\n * rounded, grid-centred, bold, white, and `shrink-0` so a flex row never\n * squashes it. Four surfaces carried that block inline.\n *\n * ## It ships no brand colour, deliberately\n *\n * The default is a neutral zinc tile. A component library inventing your brand\n * gradient would be wrong, and would be the first thing every consumer had to\n * override — so the FILL is `className`'s job and only the geometry lives here.\n * That is also what the duplicated code actually had in common: each copy\n * already pulled its gradient from a token class and hand-rolled the box.\n */\nexport const BrandMark = forwardRef<HTMLSpanElement, BrandMarkProps>(\n  ({ glyph, size = \"md\", className, style, ...props }, ref) => {\n    const numeric = typeof size === \"number\";\n\n    return (\n      <span\n        ref={ref}\n        data-react-fancy-brand-mark=\"\"\n        aria-hidden={props[\"aria-label\"] ? undefined : true}\n        className={cn(\n          \"grid shrink-0 place-items-center font-bold leading-none text-white select-none\",\n          numeric ? \"rounded-lg\" : sizeClasses[size],\n          // Overridable default: a mark with no `className` still reads as a\n          // mark rather than as an invisible box.\n          \"bg-zinc-900 dark:bg-zinc-100 dark:text-zinc-900\",\n          className,\n        )}\n        style={numeric ? { height: size, width: size, fontSize: Math.round(size * 0.5), ...style } : style}\n        {...props}\n      >\n        {glyph}\n      </span>\n    );\n  },\n);\n\nBrandMark.displayName = \"BrandMark\";\n","import { forwardRef } from \"react\";\nimport { cn } from \"../../utils/cn\";\nimport { BrandMark } from \"./BrandMark\";\nimport type { BrandProps } from \"./Brand.types\";\n\nconst gapClasses: Record<NonNullable<BrandProps[\"size\"]>, string> = {\n  sm: \"gap-2\",\n  md: \"gap-3\",\n  lg: \"gap-4\",\n};\n\nconst nameClasses: Record<NonNullable<BrandProps[\"size\"]>, string> = {\n  sm: \"text-sm\",\n  md: \"text-base\",\n  lg: \"text-xl\",\n};\n\nconst taglineClasses: Record<NonNullable<BrandProps[\"size\"]>, string> = {\n  sm: \"text-xs\",\n  md: \"text-sm\",\n  lg: \"text-base\",\n};\n\nconst BrandRoot = forwardRef<HTMLDivElement, BrandProps>(\n  ({ logo, name, tagline, size = \"md\", className }, ref) => {\n    return (\n      <div\n        ref={ref}\n        data-react-fancy-brand=\"\"\n        className={cn(\"flex items-center\", gapClasses[size], className)}\n      >\n        {logo && <div className=\"shrink-0\">{logo}</div>}\n        {(name || tagline) && (\n          <div className=\"flex min-w-0 flex-col\">\n            {name && (\n              <span\n                className={cn(\n                  \"truncate font-bold text-zinc-900 dark:text-zinc-100\",\n                  nameClasses[size],\n                )}\n              >\n                {name}\n              </span>\n            )}\n            {tagline && (\n              <span\n                className={cn(\n                  \"truncate text-zinc-500 dark:text-zinc-400\",\n                  taglineClasses[size],\n                )}\n              >\n                {tagline}\n              </span>\n            )}\n          </div>\n        )}\n      </div>\n    );\n  },\n);\n\nBrandRoot.displayName = \"Brand\";\n\nexport const Brand = Object.assign(BrandRoot, { Mark: BrandMark });\n"]}