import{h}from"@stencil/core";import{state as checkoutState}from"../../../../store/checkout/index";export class ScCartLoader{constructor(){this.template=void 0}render(){var t;if(!document.querySelector("sc-checkout"))return"paid"===(null===(t=null==checkoutState?void 0:checkoutState.checkout)||void 0===t?void 0:t.status)?(checkoutState.checkout=null,null):h("div",{innerHTML:this.template||""})}static get is(){return"sc-cart-loader"}static get originalStyleUrls(){return{$:["sc-cart-loader.scss"]}}static get styleUrls(){return{$:["sc-cart-loader.css"]}}static get properties(){return{template:{type:"string",mutable:!1,complexType:{original:"string",resolved:"string",references:{}},required:!1,optional:!1,docs:{tags:[],text:"The cart template to inject when opened."},attribute:"template",reflect:!1}}}}