"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[903],{903:function(t,e,n){n.r(e),n.d(e,{sc_provider:function(){return a}});var s=n(467),r=n(3029),c=n(2901),u=n(9280),i=n.n(u),o=n(1346),a=function(){return(0,c.A)((function t(e){(0,r.A)(this,t),(0,o.r)(this,e),this.mountEmitter=(0,o.c)(this,"mountConsumer",7),this.STENCIL_CONTEXT=void 0,this.consumers=[]}),[{key:"watchContext",value:function(t){this.consumers.forEach((function(e){return e(t)}))}},{key:"mountConsumer",value:(t=(0,s.A)(i().mark((function t(e){var n,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.stopPropagation(),this.consumers=this.consumers.slice().concat([e.detail]),t.next=4,e.detail(this.STENCIL_CONTEXT);case 4:n=this.consumers.indexOf(e.detail),s=this.consumers.slice(0,n).concat(this.consumers.slice(n+1,this.consumers.length)),this.consumers=s;case 7:case"end":return t.stop()}}),t,this)}))),function(_x){return t.apply(this,arguments)})},{key:"disconnectedCallback",value:function(){var t=this;this.consumers.map((function(e){return t.mountEmitter.emit(e)}))}},{key:"render",value:function(){return(0,o.h)("slot",{key:"955b9395739aec78543c20c13e993b6dad2735b6"})}}],[{key:"watchers",get:function(){return{STENCIL_CONTEXT:["watchContext"]}}}]);var t}()}}]);