{"version":3,"file":"regions.cjs","names":[],"sources":["../../src/br/regions.ts"],"sourcesContent":["import type { LegendItem } from \"./MapLegend\";\nimport type { BrRegion } from \"./locations\";\n\n/**\n * Categorical, distinguishable colors for the five IBGE macro-regions\n * (Tableau-10 family). Swap for your brand palette if needed.\n */\nexport const REGION_COLORS: Record<BrRegion, string> = {\n    Norte: \"#4e79a7\",\n    Nordeste: \"#f28e2b\",\n    \"Centro-Oeste\": \"#59a14f\",\n    Sudeste: \"#e15759\",\n    Sul: \"#b07aa1\",\n};\n\n/** Legend entries (swatch + region name) for a region-colored map. */\nexport function regionLegendItems(): LegendItem[] {\n    return (Object.keys(REGION_COLORS) as BrRegion[]).map((region) => ({\n        color: REGION_COLORS[region],\n        label: region,\n    }));\n}\n"],"mappings":"AAOA,IAAa,EAA0C,CACnD,MAAO,UACP,SAAU,UACV,eAAgB,UAChB,QAAS,UACT,IAAK,SACT,EAGA,SAAgB,GAAkC,CAC9C,OAAQ,OAAO,KAAK,CAAa,CAAC,CAAgB,IAAK,IAAY,CAC/D,MAAO,EAAc,GACrB,MAAO,CACX,EAAE,CACN"}