FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
surecart
/
dist
/
components
/
components
Edit File: sc-cart-form-submit.js
import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{f as formBusy}from"./getters3.js";import{d as defineCustomElement$4}from"./sc-button2.js";import{d as defineCustomElement$3}from"./sc-icon2.js";import{d as defineCustomElement$2}from"./sc-spinner2.js";const scCartFormSubmitCss="sc-order-submit{display:block;width:auto}",ScCartFormSubmitStyle0=scCartFormSubmitCss,ScCartFormSubmit$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),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 style(){return ScCartFormSubmitStyle0}},[4,"sc-cart-form-submit",{type:[513],size:[513],full:[4],icon:[1]}]);function defineCustomElement$1(){"undefined"!=typeof customElements&&["sc-cart-form-submit","sc-button","sc-icon","sc-spinner"].forEach((e=>{switch(e){case"sc-cart-form-submit":customElements.get(e)||customElements.define(e,ScCartFormSubmit$1);break;case"sc-button":customElements.get(e)||defineCustomElement$4();break;case"sc-icon":customElements.get(e)||defineCustomElement$3();break;case"sc-spinner":customElements.get(e)||defineCustomElement$2()}}))}const ScCartFormSubmit=ScCartFormSubmit$1,defineCustomElement=defineCustomElement$1;export{ScCartFormSubmit,defineCustomElement};
Save
Back