import{r as i,h as t,H as s}from"./p-e97fde0a.js";import{f as e}from"./p-ff10bfbf.js";import"./p-95325ec5.js";import"./p-03631502.js";import"./p-9dbc54d6.js";const a="sc-cart-submit{position:relative;width:100%}sc-cart-submit a.wp-block-button__link{position:relative;text-decoration:none;width:100%;display:block;box-sizing:border-box;text-align:center}sc-cart-submit sc-spinner::part(base){--indicator-color:currentColor;--spinner-size:12px;position:absolute;top:calc(50% - var(--spinner-size) + var(--spinner-size) / 4);left:calc(50% - var(--spinner-size) + var(--spinner-size) / 4)}sc-cart-submit [data-text],sc-cart-submit [data-loader]{transition:opacity var(--sc-transition-fast) ease-in-out, visibility var(--sc-transition-fast) ease-in-out}sc-cart-submit [data-loader]{opacity:0;visibility:hidden}sc-cart-submit.is-disabled{pointer-events:none}sc-cart-submit.is-busy [data-text]{opacity:0;visibility:hidden}sc-cart-submit.is-busy [data-loader]{opacity:1;visibility:visible}";const r=a;const o=class{constructor(t){i(this,t);this.busy=undefined}render(){return t(s,{key:"affd83b8029488b9c6e0b7bef95ed68342e41644",class:{"is-busy":e()||this.busy,"is-disabled":e()||this.busy},onClick:()=>{this.busy=true;return true}},t("slot",{key:"fa74d83d564f24ba76bb3efbbe940e09df8d16d3"}))}};o.style=r;export{o as sc_cart_submit};
//# sourceMappingURL=p-ce0fbcda.entry.js.map