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) • 758 B
JavaScript
exports.findProvides=function(n,e){var r,o;return(e.ctx===n.instance.$?null==(r=function(n,e){const r=new Set,o=e=>{var t,i;for(const s of e){if(!s)continue;if(s===n||s.el&&n.el&&s.el===n.el)return!0;let e;if(r.add(s),s.suspense?e=o([s.ssContent]):Array.isArray(s.children)?e=o(s.children):(null==(t=s.component)?void 0:t.vnode)&&(e=o([null==(i=s.component)?void 0:i.subTree])),e)return e;r.delete(s)}return!1};if(!o([e.subTree]))return console.error("Could not find original vnode, will not inherit provides"),e;const t=Array.from(r).reverse();for(const i of t)if(i.component)return i.component;return e}(e,n.instance.$))?void 0:r.provides:null==(o=e.ctx)?void 0:o.provides)??n.instance.$.provides};
//# sourceMappingURL=utils-CRLOxOzJ.js.map
;