import { r as registerInstance, h } from './index-fd4790f6.js';
import { o as openWormhole } from './consumer-b5087188.js';

const scCartFormSubmitCss = "sc-order-submit{display:block;width:auto}";

const ScCartFormSubmit = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    /** The button type. */
    this.type = 'primary';
    /** The button's size. */
    this.size = 'medium';
    /** Show a full-width button. */
    this.full = true;
  }
  render() {
    return (h("sc-button", { submit: true, type: this.type, size: this.size, full: this.full, loading: this.busy, disabled: this.busy }, !!this.icon && h("sc-icon", { name: this.icon, slot: "prefix" }), h("slot", null)));
  }
};
openWormhole(ScCartFormSubmit, ['busy'], false);
ScCartFormSubmit.style = scCartFormSubmitCss;

export { ScCartFormSubmit as sc_cart_form_submit };
