{"version":3,"file":"index.Bn4vdmv0.js","sources":["../../../node_modules/@radix-ui/react-id/dist/index.mjs"],"sourcesContent":["// packages/react/id/src/id.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useReactId = React[\"useId\".toString()] || (() => void 0);\nvar count = 0;\nfunction useId(deterministicId) {\n const [id, setId] = React.useState(useReactId());\n useLayoutEffect(() => {\n if (!deterministicId) setId((reactId) => reactId ?? String(count++));\n }, [deterministicId]);\n return deterministicId || (id ? `radix-${id}` : \"\");\n}\nexport {\n useId\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useReactId","React","count","useId","deterministicId","id","setId","React.useState","useLayoutEffect","reactId"],"mappings":"gZAGA,IAAIA,EAAaC,EAAM,QAAwB,IAAA,IAC3CC,EAAQ,EACZ,SAASC,EAAMC,EAAiB,CAC9B,KAAM,CAACC,EAAIC,CAAK,EAAIC,EAAAA,SAAeP,EAAY,CAAA,EAC/CQ,OAAAA,EAAgB,IAAM,CACEF,EAAOG,GAAYA,GAAW,OAAOP,GAAO,CAAC,CACvE,EAAK,CAACE,CAAe,CAAC,EACOC,EAAK,SAASA,CAAE,GAAK,EAClD","x_google_ignoreList":[0]}