import{h}from"@stencil/core";import{__}from"@wordpress/i18n";const status={unfulfilled:__("Unfulfilled","surecart"),fulfilled:__("Fulfilled","surecart"),on_hold:__("On Hold","surecart"),scheduled:__("Scheduled","surecart"),partially_fulfilled:__("Partially Fulfilled","surecart")},type={unfulfilled:"warning",fulfilled:"success",on_hold:"warning",scheduled:"default",partially_fulfilled:"warning"};export class ScOrderFulFillmentBadge{constructor(){this.status=void 0,this.size="medium",this.pill=!1,this.clearable=!1}render(){return h("sc-tag",{key:"2709b10584f5844972134b68ee4b285a4393b1d7",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-fulfillment-badge"}static get encapsulation(){return"shadow"}static get originalStyleUrls(){return{$:["sc-order-fulfillment-badge.css"]}}static get styleUrls(){return{$:["sc-order-fulfillment-badge.css"]}}static get properties(){return{status:{type:"string",mutable:!1,complexType:{original:"OrderFulFillmentStatus",resolved:'"fulfilled" | "on_hold" | "partially_fulfilled" | "scheduled" | "unfulfilled"',references:{OrderFulFillmentStatus:{location:"import",path:"../../../types",id:"src/types.ts::OrderFulFillmentStatus"}}},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"}}}}