{"version":3,"sources":["../src/components/BrandingLogo/BrandingLogo.tsx"],"sourcesContent":["import type { ImgHTMLAttributes } from 'react';\nimport {\n  useBrandingLogo,\n  BrandingLogoVariant,\n} from '../../hooks/useBrandingLogo';\n\nexport interface BrandingLogoProps extends Omit<\n  ImgHTMLAttributes<HTMLImageElement>,\n  'src'\n> {\n  /**\n   * Which branding logo variant to render.\n   * @default 'internal'\n   */\n  variant?: BrandingLogoVariant;\n  /**\n   * URL used when no branding logo is configured for the current institution.\n   * When omitted, the Analytica Ensino logo bundled with the lib is used.\n   */\n  fallback?: string;\n}\n\n/**\n * Renders the institution logo (`<img>`) for the active white-label, reading\n * the URL from branding meta tags and falling back to a consumer-provided URL,\n * or ultimately the Analytica Ensino logo bundled with the lib.\n */\nexport const BrandingLogo = ({\n  variant = 'internal',\n  fallback,\n  alt = 'Logo da Instituição',\n  ...rest\n}: BrandingLogoProps) => {\n  const src = useBrandingLogo({ variant, fallback });\n\n  return <img src={src} alt={alt} {...rest} />;\n};\n"],"mappings":";;;;;AAmCS;AARF,IAAM,eAAe,CAAC;AAAA,EAC3B,UAAU;AAAA,EACV;AAAA,EACA,MAAM;AAAA,EACN,GAAG;AACL,MAAyB;AACvB,QAAM,MAAM,gBAAgB,EAAE,SAAS,SAAS,CAAC;AAEjD,SAAO,oBAAC,SAAI,KAAU,KAAW,GAAG,MAAM;AAC5C;","names":[]}