{"version":3,"file":"useId-BKZFSYm8.mjs","names":[],"sources":["../src/composables/useId.ts"],"sourcesContent":["import {withBvnPrefix} from '../utils/keys'\nimport {computed, type ComputedRef, type MaybeRefOrGetter, toValue, useId as vueUseId} from 'vue'\n\nexport const useId = (\n  id?: MaybeRefOrGetter<string | undefined>,\n  suffix?: string\n): ComputedRef<string> => {\n  const genId = vueUseId()\n  return computed(() => toValue(id) || withBvnPrefix(genId || '', suffix))\n}\n"],"mappings":";;;AAGA,IAAa,WACX,IACA,WACwB;CACxB,MAAM,QAAQ,OAAU;AACxB,QAAO,eAAe,QAAQ,GAAG,IAAI,cAAc,SAAS,IAAI,OAAO,CAAC"}