{"version":3,"file":"index.mjs","sources":["../../../../src/directives/BColorMode/index.ts"],"sourcesContent":["import type {Directive, DirectiveBinding} from 'vue'\n\nconst setTheme = (el: Readonly<HTMLElement>, value: string): void =>\n  el.setAttribute('data-bs-theme', value)\nexport const vBColorMode: Directive<HTMLElement> = {\n  mounted(el, binding: DirectiveBinding): void {\n    setTheme(el, binding.value)\n  },\n  updated(el, binding: DirectiveBinding): void {\n    setTheme(el, binding.value)\n  },\n}\n"],"names":[],"mappings":"AAEA,MAAM,WAAW,CAAC,IAA2B,UAC3C,GAAG,aAAa,iBAAiB,KAAK;AACjC,MAAM,cAAsC;AAAA,EACjD,QAAQ,IAAI,SAAiC;AAClC,aAAA,IAAI,QAAQ,KAAK;AAAA,EAC5B;AAAA,EACA,QAAQ,IAAI,SAAiC;AAClC,aAAA,IAAI,QAAQ,KAAK;AAAA,EAC5B;AACF;"}