FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
surecart
/
dist
/
components
/
cjs
Edit File: sc-order-fulfillment-badge.cjs.entry.js
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const index = require('./index-8acc3c89.js'); const scOrderFulfillmentBadgeCss = ":host{display:inline-block}"; const ScOrderFulfillmentBadgeStyle0 = scOrderFulfillmentBadgeCss; const status = { unfulfilled: wp.i18n.__('Unfulfilled', 'surecart'), fulfilled: wp.i18n.__('Fulfilled', 'surecart'), on_hold: wp.i18n.__('On Hold', 'surecart'), scheduled: wp.i18n.__('Scheduled', 'surecart'), partially_fulfilled: wp.i18n.__('Partially Fulfilled', 'surecart'), }; const type = { unfulfilled: 'warning', fulfilled: 'success', on_hold: 'warning', scheduled: 'default', partially_fulfilled: 'warning', }; const ScOrderFulFillmentBadge = class { constructor(hostRef) { index.registerInstance(this, hostRef); this.status = undefined; this.size = 'medium'; this.pill = false; this.clearable = false; } render() { return (index.h("sc-tag", { key: '839628aa82b3fbe6cad10bb79975736d2a20dc4d', type: type === null || type === void 0 ? void 0 : type[this === null || this === void 0 ? void 0 : this.status], pill: this.pill }, (status === null || status === void 0 ? void 0 : status[this.status]) || this.status)); } }; ScOrderFulFillmentBadge.style = ScOrderFulfillmentBadgeStyle0; exports.sc_order_fulfillment_badge = ScOrderFulFillmentBadge; //# sourceMappingURL=sc-order-fulfillment-badge.cjs.entry.js.map
Save
Back