'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-9c866aeb.js');
const consumer = require('./consumer-3f5ce850.js');

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

const ScCartFormSubmit = class {
  constructor(hostRef) {
    index.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 (index.h("sc-button", { submit: true, type: this.type, size: this.size, full: this.full, loading: this.busy, disabled: this.busy }, !!this.icon && index.h("sc-icon", { name: this.icon, slot: "prefix" }), index.h("slot", null)));
  }
};
consumer.openWormhole(ScCartFormSubmit, ['busy'], false);
ScCartFormSubmit.style = scCartFormSubmitCss;

exports.sc_cart_form_submit = ScCartFormSubmit;
