import{h}from"@stencil/core";import{__}from"@wordpress/i18n";export class ScInvoiceStatusBadge{constructor(){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 __("Paid","surecart");case"open":return __("Open","surecart");case"draft":return __("Draft","surecart");default:return this.status}}render(){return h("sc-tag",{key:"5613b4e3c8417c5cfdb0618757d4ce0376037da9",type:this.getType(),pill:this.pill},this.getText())}static get is(){return"sc-invoice-status-badge"}static get encapsulation(){return"shadow"}static get originalStyleUrls(){return{$:["sc-invoice-status-badge.css"]}}static get styleUrls(){return{$:["sc-invoice-status-badge.css"]}}static get properties(){return{status:{type:"string",mutable:!1,complexType:{original:"InvoiceStatus",resolved:'"draft" | "open" | "paid"',references:{InvoiceStatus:{location:"import",path:"../../../types",id:"src/types.ts::InvoiceStatus"}}},required:!1,optional:!1,docs:{tags:[],text:"The tag's statux type."},attribute:"status",reflect:!1},size:{type:"string",mutable:!1,complexType:{original:"'small' | 'medium' | 'large'",resolved:'"large" | "medium" | "small"',references:{}},required:!1,optional:!1,docs:{tags:[],text:"The tag's size."},attribute:"size",reflect:!0,defaultValue:"'medium'"},pill:{type:"boolean",mutable:!1,complexType:{original:"boolean",resolved:"boolean",references:{}},required:!1,optional:!1,docs:{tags:[],text:"Draws a pill-style tag with rounded edges."},attribute:"pill",reflect:!0,defaultValue:"false"},clearable:{type:"boolean",mutable:!1,complexType:{original:"boolean",resolved:"boolean",references:{}},required:!1,optional:!1,docs:{tags:[],text:"Makes the tag clearable."},attribute:"clearable",reflect:!1,defaultValue:"false"}}}}