import{h,Host}from"@stencil/core";import{__}from"@wordpress/i18n";const status={unshipped:__("Not Shipped","surecart"),shipped:__("Shipped","surecart"),delivered:__("Delivered","surecart")},type={unshipped:"default",shipped:"info",delivered:"success"};export class ScOrderStatusBadge{constructor(){this.status=void 0,this.size="medium",this.pill=!1,this.clearable=!1}render(){return"unshippable"===this.status?h(Host,{style:{display:"none"}}):h("sc-tag",{type:null==type?void 0:type[null==this?void 0:this.status],pill:this.pill},(null==status?void 0:status[this.status])||this.status)}static get is(){return"sc-fulfillment-shipping-status-badge"}static get encapsulation(){return"shadow"}static get originalStyleUrls(){return{$:["sc-fulfillment-shipping-status-badge.css"]}}static get styleUrls(){return{$:["sc-fulfillment-shipping-status-badge.css"]}}static get properties(){return{status:{type:"string",mutable:!1,complexType:{original:"FulfillmentStatus",resolved:'"delivered" | "shipped" | "unshippable" | "unshipped"',references:{FulfillmentStatus:{location:"import",path:"../../../types",id:"src/types.ts::FulfillmentStatus"}}},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"}}}}