"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:"aeb9f1ea6677311892ce368d71ca18e571c56914",type:this.getType(),pill:this.pill},this.getText())}}])}();u.style=":host{display:inline-block}"}}]);