import{r as i,h as o}from"./p-dfbe004d.js";import{g as s,c as t}from"./p-10aa7556.js";import{u as r}from"./p-57d82274.js";import"./p-35c4916d.js";import"./p-1c2e2695.js";const n=class{constructor(o){i(this,o),this.mode="live"}render(){var i,n,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===(n=null===(i=null==a?void 0:a.line_items)||void 0===i?void 0:i.pagination)||void 0===n?void 0:n.count)||(null===(d=null===(l=null==r?void 0:r.state)||void 0===l?void 0:l.cart)||void 0===d?void 0:d.open)?this.template:""})}};n.style=":host{position:absolute;z-index:var(--sc-cart-z-index, 999999);font-family:var(--sc-font-sans)}";export{n as sc_cart_loader}