import{h,Host}from"@stencil/core";import{__}from"@wordpress/i18n";const status={unshipped:__("Not Shipped","surecart"),shipped:__("Shipped","surecart"),partially_shipped:__("Partially Shipped","surecart"),delivered:__("Delivered","surecart")},type={unshipped:"default",shipped:"info",partially_shipped:"warning",delivered:"success"};export class ScOrderShipmentBadge{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-order-shipment-badge"}static get encapsulation(){return"shadow"}static get originalStyleUrls(){return{$:["sc-order-shipment-badge.css"]}}static get styleUrls(){return{$:["sc-order-shipment-badge.css"]}}static get properties(){return{status:{type:"string",mutable:!1,complexType:{original:"OrderShipmentStatus",resolved:'"delivered" | "partially_shipped" | "shipped" | "unshippable" | "unshipped"',references:{OrderShipmentStatus:{location:"import",path:"../../../types",id:"src/types.ts::OrderShipmentStatus"}}},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"}}}}