import{r as s,c as t}from"./p-b891c2f1.js";const i=class{constructor(i){s(this,i),this.mountEmitter=t(this,"mountConsumer",7),this.setContext=async s=>(this.context=s,this.promise),this.promise=new Promise((s=>{this.resolvePromise=s}))}componentWillLoad(){this.mountEmitter.emit(this.setContext)}disconnectedCallback(){this.resolvePromise()}render(){return this.context?this.renderer(this.context):null}};export{i as sc_consumer}