{"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/directives/BTooltip/index.ts"],"sourcesContent":["import {type Directive} from 'vue'\nimport {type ElementWithPopper, resolveDirectiveProps} from '../../utils/floatingUi'\nimport {createFloatingDirective} from '../utils'\n\nexport const vBTooltip: Directive<ElementWithPopper> = createFloatingDirective(\n  '$__tooltip',\n  'BTooltip',\n  (text, defaults, binding, el) => ({\n    noninteractive: true,\n    ...(defaults || undefined),\n    ...resolveDirectiveProps(binding, el),\n    title: text.title ?? text.body ?? '',\n    tooltip: true,\n  })\n)\n"],"mappings":";;;;AAIA,IAAa,YAA0C,wBACrD,cACA,aACC,MAAM,UAAU,SAAS,QAAQ;CAChC,gBAAgB;CAChB,GAAI,YAAY,KAAA;CAChB,GAAG,sBAAsB,SAAS,GAAG;CACrC,OAAO,KAAK,SAAS,KAAK,QAAQ;CAClC,SAAS;CACV,EACF"}