import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{d as defineCustomElement$1}from"./sc-tag2.js";const scInvoiceStatusBadgeCss=":host{display:inline-block;vertical-align:middle}",ScInvoiceStatusBadgeStyle0=scInvoiceStatusBadgeCss,ScInvoiceStatusBadge=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.status=void 0,this.size="medium",this.pill=!1,this.clearable=!1}getType(){switch(this.status){case"paid":return"success";case"open":return"info";case"draft":return"default"}}getText(){switch(this.status){case"paid":return wp.i18n.__("Paid","surecart");case"open":return wp.i18n.__("Open","surecart");case"draft":return wp.i18n.__("Draft","surecart");default:return this.status}}render(){return h("sc-tag",{key:"57a1cabddddae37d7c2c244ace1f9b0d456d27bc",type:this.getType(),pill:this.pill},this.getText())}static get style(){return ScInvoiceStatusBadgeStyle0}},[1,"sc-invoice-status-badge",{status:[1],size:[513],pill:[516],clearable:[4]}]);function defineCustomElement(){"undefined"!=typeof customElements&&["sc-invoice-status-badge","sc-tag"].forEach((e=>{switch(e){case"sc-invoice-status-badge":customElements.get(e)||customElements.define(e,ScInvoiceStatusBadge);break;case"sc-tag":customElements.get(e)||defineCustomElement$1()}}))}export{ScInvoiceStatusBadge as S,defineCustomElement as d};