{"version":3,"file":"useCurrentComponentId.mjs","sources":["../../../../src/composables/useCurrentComponentId.ts"],"sourcesContent":["import { getCurrentInstance } from 'vue'\n\nexport const useCurrentComponentId = () => {\n  const instance = getCurrentInstance()!\n\n  // WebComponents build\n  if (!instance.appContext.app) {\n    return String(instance.uid)\n  }\n\n  // Return ID with app, so it will be unique for each vue app\n  return `${instance.appContext.app._uid}_${instance.uid}`\n}\n"],"names":[],"mappings":";AAEO,MAAM,wBAAwB,MAAM;AACzC,QAAM,WAAW;AAGb,MAAA,CAAC,SAAS,WAAW,KAAK;AACrB,WAAA,OAAO,SAAS,GAAG;AAAA,EAC5B;AAGA,SAAO,GAAG,SAAS,WAAW,IAAI,IAAI,IAAI,SAAS,GAAG;AACxD;"}