import{h}from"@stencil/core";import{formBusy}from"../../../../store/form/getters";export class ScCartFormSubmit{constructor(){this.type="primary",this.size="medium",this.full=!0,this.icon=void 0}render(){return h("sc-button",{key:"0271855c9ef605213b047fa5efd8ba751c680004",submit:!0,type:this.type,size:this.size,full:this.full,loading:formBusy(),disabled:formBusy()},!!this.icon&&h("sc-icon",{key:"e59ce21998399b6a77636b0a32e53f92f67eaf0f",name:this.icon,slot:"prefix"}),h("slot",{key:"1575bba984f73e6e4ab160599871b073caf4d0e6"}))}static get is(){return"sc-cart-form-submit"}static get originalStyleUrls(){return{$:["sc-cart-form-submit.scss"]}}static get styleUrls(){return{$:["sc-cart-form-submit.css"]}}static get properties(){return{type:{type:"string",mutable:!1,complexType:{original:"'default' | 'primary' | 'success' | 'info' | 'warning' | 'danger' | 'text' | 'link'",resolved:'"danger" | "default" | "info" | "link" | "primary" | "success" | "text" | "warning"',references:{}},required:!1,optional:!1,docs:{tags:[],text:"The button type."},attribute:"type",reflect:!0,defaultValue:"'primary'"},size:{type:"string",mutable:!1,complexType:{original:"'small' | 'medium' | 'large'",resolved:'"large" | "medium" | "small"',references:{}},required:!1,optional:!1,docs:{tags:[],text:"The button's size."},attribute:"size",reflect:!0,defaultValue:"'medium'"},full:{type:"boolean",mutable:!1,complexType:{original:"boolean",resolved:"boolean",references:{}},required:!1,optional:!1,docs:{tags:[],text:"Show a full-width button."},attribute:"full",reflect:!1,defaultValue:"true"},icon:{type:"string",mutable:!1,complexType:{original:"string",resolved:"string",references:{}},required:!1,optional:!1,docs:{tags:[],text:"Icon to show."},attribute:"icon",reflect:!1}}}}