{"version":3,"names":["createUniqueId","useBaseUiId","idOverride"],"sources":["base-ui-id.ts"],"sourcesContent":["import { createUniqueId } from \"solid-js\";\n\n/**\n * Returns a stable, component-unique ID.\n *\n * If the caller passes an override, it wins. Otherwise we generate an ID once\n * for the owning component via Solid's `createUniqueId()`.\n *\n * Note: `createUniqueId()` MUST be called during component setup (not inside\n * an effect) so the generated id is tied to the component's owned scope and\n * stable for its lifetime. We only call it when there is no override — no\n * point in burning a slot when the consumer already has an ID.\n */\nexport function useBaseUiId(idOverride?: string): string {\n\treturn idOverride ?? createUniqueId();\n}\n"],"mappings":"AAAA,SAASA,cAAc,QAAQ,UAAU;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,WAAWA,CAACC,UAAmB,EAAU;EACxD,OAAOA,UAAU,IAAIF,cAAc,CAAC,CAAC;AACtC","ignoreList":[]}