"use strict";(self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[]).push([[7793],{7793:function(s,t,e){e.r(t),e.d(t,{sc_provider:function(){return n}});var c=e(6892);const n=class{constructor(s){(0,c.r)(this,s),this.mountEmitter=(0,c.c)(this,"mountConsumer",7),this.STENCIL_CONTEXT=void 0,this.consumers=[]}watchContext(s){this.consumers.forEach((t=>t(s)))}async mountConsumer(s){s.stopPropagation(),this.consumers=this.consumers.slice().concat([s.detail]),await s.detail(this.STENCIL_CONTEXT);const t=this.consumers.indexOf(s.detail),e=this.consumers.slice(0,t).concat(this.consumers.slice(t+1,this.consumers.length));this.consumers=e}disconnectedCallback(){this.consumers.map((s=>this.mountEmitter.emit(s)))}render(){return(0,c.h)("slot",{key:"955b9395739aec78543c20c13e993b6dad2735b6"})}static get watchers(){return{STENCIL_CONTEXT:["watchContext"]}}}}}]);