UNPKG

bootstrap-vue-next

Version:

BootstrapVueNext is an early and lovely component library for Vue 3 & Nuxt 3 based on Bootstrap 5 and Typescript.

3 lines (2 loc) 668 B
"use strict";exports.findProvides=function(e,n){return(n.ctx===e.instance.$?function(e,n){const r=new Set,o=n=>{for(const t of n){if(!t)continue;if(t===e||t.el&&e.el&&t.el===e.el)return!0;let n;if(r.add(t),t.suspense?n=o([t.ssContent]):Array.isArray(t.children)?n=o(t.children):t.component?.vnode&&(n=o([t.component?.subTree])),n)return n;r.delete(t)}return!1};if(!o([n.subTree]))return console.error("Could not find original vnode, will not inherit provides"),n;const t=Array.from(r).reverse();for(const i of t)if(i.component)return i.component;return n}(n,e.instance.$)?.provides:n.ctx?.provides)??e.instance.$.provides}; //# sourceMappingURL=utils-CWuL--vJ.js.map