"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[2948],{2948:function(t,e,s){s.r(e),s.d(e,{sc_invoice_status_badge:function(){return u}});var r=s(3029),a=s(2901),i=s(1346),u=function(){return(0,a.A)((function t(e){(0,r.A)(this,t),(0,i.r)(this,e),this.status=void 0,this.size="medium",this.pill=!1,this.clearable=!1}),[{key:"getType",value:function(){switch(this.status){case"paid":return"success";case"open":return"info";case"draft":return"default"}}},{key:"getText",value:function(){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}}},{key:"render",value:function(){return(0,i.h)("sc-tag",{key:"1da67f3cea4eaf4332f3e89b89c7d43d04a96dde",type:this.getType(),pill:this.pill},this.getText())}}])}();u.style=":host{display:inline-block}"}}]);