{"version":3,"file":"is-icon-name.cjs","names":[],"sources":["../../src/icons/is-icon-name.ts"],"sourcesContent":["import type { IconName } from \"./generated/icon-name\";\nimport { iconNames } from \"./generated/icon-names\";\n\nconst known: ReadonlySet<string> = new Set(iconNames);\n\n/**\n * Narrow an arbitrary string to a known icon slug.\n *\n * Use it at the edge where untrusted names arrive — an API response, a CMS field,\n * a URL parameter — so the rest of the code works with `IconName` and a bad value\n * is handled once, where you can decide what to show instead.\n *\n * Note that this imports the full slug list (~6 KB brotli). `<Icon>` alone does\n * not, so only reach for this when you genuinely need to validate.\n *\n * @example\n * const slug = isIconName(row.icon) ? row.icon : \"circle-help\";\n *\n * @param value - Any string.\n * @returns `true` when `value` is a slug lucide ships, alias included.\n */\nexport function isIconName(value: string): value is IconName {\n    return known.has(value);\n}\n"],"mappings":"8CAGA,IAAM,EAA6B,IAAI,IAAI,EAAA,SAAS,EAkBpD,SAAgB,EAAW,EAAkC,CACzD,OAAO,EAAM,IAAI,CAAK,CAC1B"}