{"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/plugins/createBootstrap/index.ts"],"sourcesContent":["import {type Plugin, ref, type Ref} from 'vue'\nimport type {\n  BootstrapVueOptions,\n  BvnComponentProps,\n  BvnComponents,\n} from '../../types/BootstrapVueOptions'\n\nimport '../../styles/styles.scss'\n\nimport {rtlPlugin} from '../rtl'\nimport {registryPlugin} from '../registry'\nimport {orchestratorPlugin} from '../orchestrator'\nimport {defaultsKey} from '../../utils/keys'\n\n// Main app plugin\nexport const createBootstrap = (pluginData: Readonly<BootstrapVueOptions> = {}): Plugin => ({\n  install(app) {\n    if ((pluginData.registries ?? true) === true) {\n      app.use(registryPlugin, pluginData)\n    }\n    if ((pluginData.rtl ?? true) === true || typeof pluginData.rtl === 'object') {\n      app.use(rtlPlugin, pluginData)\n    }\n    if ((pluginData.orchestrator ?? true) === true) {\n      app.use(orchestratorPlugin)\n    }\n    // Provide global defaults for components\n    const val = pluginData?.components ?? {}\n    app.provide(defaultsKey, ref(val) as Ref<Partial<BvnComponentProps>>)\n  },\n})\n\ndeclare module 'vue' {\n  // eslint-disable-next-line @typescript-eslint/no-empty-object-type\n  interface GlobalComponents extends BvnComponents {}\n}\n"],"mappings":";;;;;;AAeA,IAAa,mBAAmB,aAA4C,EAAE,MAAc,EAC1F,QAAQ,KAAK;AACX,MAAK,WAAW,cAAc,UAAU,KACtC,KAAI,IAAI,gBAAgB,WAAW;AAErC,MAAK,WAAW,OAAO,UAAU,QAAQ,OAAO,WAAW,QAAQ,SACjE,KAAI,IAAI,WAAW,WAAW;AAEhC,MAAK,WAAW,gBAAgB,UAAU,KACxC,KAAI,IAAI,mBAAmB;CAG7B,MAAM,MAAM,YAAY,cAAc,EAAE;AACxC,KAAI,QAAQ,aAAa,IAAI,IAAI,CAAoC;GAExE"}