"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[6034],{6034:function(t,e,r){r.r(e),r.d(e,{sc_consumer:function(){return a}});var n=r(467),i=r(3029),s=r(2901),o=r(9280),u=r.n(o),c=r(1346),a=function(){return(0,s.A)((function t(e){var r=this;(0,i.A)(this,t),(0,c.r)(this,e),this.mountEmitter=(0,c.c)(this,"mountConsumer",7),this.setContext=function(){var t=(0,n.A)(u().mark((function t(e){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r.context=e,t.abrupt("return",r.promise);case 2:case"end":return t.stop()}}),t)})));return function(_x){return t.apply(this,arguments)}}(),this.renderer=void 0,this.context=void 0,this.promise=void 0,this.resolvePromise=void 0,this.promise=new Promise((function(t){r.resolvePromise=t}))}),[{key:"componentWillLoad",value:function(){this.mountEmitter.emit(this.setContext)}},{key:"disconnectedCallback",value:function(){this.resolvePromise()}},{key:"render",value:function(){return this.context?this.renderer(this.context):null}}])}()}}]);