import{r as i,h as t,H as s}from"./p-9add63ef.js";import{f as a}from"./p-b51de06c.js";import"./p-31faf2b8.js";import"./p-2b28ea49.js";import"./p-dd24e53c.js";const e="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=e;const o=class{constructor(t){i(this,t);this.busy=undefined}render(){return t(s,{key:"affd83b8029488b9c6e0b7bef95ed68342e41644",class:{"is-busy":a()||this.busy,"is-disabled":a()||this.busy},onClick:()=>{this.busy=true;return true}},t("slot",{key:"fa74d83d564f24ba76bb3efbbe940e09df8d16d3"}))}};o.style=r;export{o as sc_cart_submit};
//# sourceMappingURL=p-decd3a56.entry.js.map