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 ScLineItemInvoiceDueDate{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.due_date_date)||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"},__("Due Date","surecart"))),h("span",{slot:"price-description"},i)):null}static get is(){return"sc-line-item-invoice-due-date"}static get encapsulation(){return"shadow"}static get originalStyleUrls(){return{$:["sc-line-item-invoice-due-date.scss"]}}static get styleUrls(){return{$:["sc-line-item-invoice-due-date.css"]}}}