'use strict';

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

const index = require('./index-cd6fab62.js');
const consumer = require('./consumer-1372755b.js');

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

const ScCartSubmit = 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", { href: this.checkoutLink, type: this.type, size: this.size, full: this.full, loading: this.busy, disabled: this.busy, onClick: () => {
        this.busy = true;
        return true;
      } }, !!this.icon && index.h("sc-icon", { name: this.icon, slot: "prefix" }), index.h("slot", null)));
  }
};
consumer.openWormhole(ScCartSubmit, ['busy', 'checkoutLink'], false);
ScCartSubmit.style = scCartSubmitCss;

exports.sc_cart_submit = ScCartSubmit;
