"use strict";(self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[]).push([[936],{936:function(t,e,s){s.r(e),s.d(e,{sc_consumer:function(){return o}});var i=s(6892);const o=class{constructor(t){(0,i.r)(this,t),this.mountEmitter=(0,i.c)(this,"mountConsumer",7),this.setContext=async t=>(this.context=t,this.promise),this.renderer=void 0,this.context=void 0,this.promise=void 0,this.resolvePromise=void 0,this.promise=new Promise((t=>{this.resolvePromise=t}))}componentWillLoad(){this.mountEmitter.emit(this.setContext)}disconnectedCallback(){this.resolvePromise()}render(){return this.context?this.renderer(this.context):null}}}}]);