import{r as i,h as o}from"./p-b891c2f1.js";import{g as s,a as t}from"./p-60f049de.js";import{u as n}from"./p-1db12eef.js";const r=class{constructor(o){i(this,o),this.mode="live"}render(){var i,r,l,d;if(document.querySelector("sc-checkout"))return null;const a=s(this.formId,this.mode);return"paid"===(null==a?void 0:a.status)?(t(this.formId,this.mode),null):o("div",{innerHTML:(null===(r=null===(i=null==a?void 0:a.line_items)||void 0===i?void 0:i.pagination)||void 0===r?void 0:r.count)||(null===(d=null===(l=null==n?void 0:n.state)||void 0===l?void 0:l.cart)||void 0===d?void 0:d.open)?this.template:""})}};r.style=":host{position:relative;z-index:var(--sc-cart-z-index, 999999);font-family:var(--sc-font-sans)}";export{r as sc_cart_loader}