export class ScConsumer{constructor(){this.setContext=async e=>(this.context=e,this.promise),this.renderer=void 0,this.context=void 0,this.promise=void 0,this.resolvePromise=void 0,this.promise=new Promise((e=>{this.resolvePromise=e}))}componentWillLoad(){this.mountEmitter.emit(this.setContext)}disconnectedCallback(){this.resolvePromise()}render(){return this.context?this.renderer(this.context):null}static get is(){return"sc-consumer"}static get properties(){return{renderer:{type:"any",mutable:!1,complexType:{original:"any",resolved:"any",references:{}},required:!1,optional:!1,docs:{tags:[],text:""},attribute:"renderer",reflect:!1}}}static get states(){return{context:{},promise:{},resolvePromise:{}}}static get events(){return[{method:"mountEmitter",name:"mountConsumer",bubbles:!0,cancelable:!0,composed:!0,docs:{tags:[],text:""},complexType:{original:"any",resolved:"any",references:{}}}]}}