import{h}from"@stencil/core";import{__}from"@wordpress/i18n";import{formBusy}from"../../../../store/form/getters";import{state as checkoutState}from"../../../../store/checkout/index";export class ScLineItemInvoiceNumber{render(){var e;const t=null==checkoutState?void 0:checkoutState.checkout,i=(null===(e=null==t?void 0:t.invoice)||void 0===e?void 0:e.order_number)||null;return i?formBusy()&&!(null==t?void 0:t.invoice)?h("sc-line-item",null,h("sc-skeleton",{slot:"title",style:{width:"120px",display:"inline-block"}}),h("sc-skeleton",{slot:"price",style:{width:"50px",display:"inline-block","--border-radius":"6px"}})):h("sc-line-item",null,h("span",{slot:"description"},h("slot",{name:"title"},__("Invoice Number","surecart"))),h("span",{slot:"price-description"},"#",i)):null}static get is(){return"sc-line-item-invoice-number"}static get encapsulation(){return"shadow"}static get originalStyleUrls(){return{$:["sc-line-item-invoice-number.scss"]}}static get styleUrls(){return{$:["sc-line-item-invoice-number.css"]}}}