import{r as s,h as l}from"./p-9add63ef.js";import{o as i}from"./p-4773325d.js";const e=":host{display:block}";const t=e;const n=class{constructor(l){s(this,l);this.order=undefined;this.loading=undefined}renderOrderStatus(){var s,i;if(((s=this===null||this===void 0?void 0:this.order)===null||s===void 0?void 0:s.status)==="processing"){return l("sc-tag",{type:"warning"},wp.i18n.__("On Hold","surecart"))}return l("sc-order-status-badge",{status:(i=this.order)===null||i===void 0?void 0:i.status})}render(){var s,i;if(!!this.loading){return l("sc-dashboard-module",null,l("sc-skeleton",{slot:"heading",style:{width:"120px",display:"inline-block"}}),l("sc-skeleton",{slot:"end",style:{width:"60px",display:"inline-block"}}),l("sc-card",null,l("sc-line-item",null,l("sc-skeleton",{style:{width:"50px",height:"50px","--border-radius":"0"},slot:"image"}),l("sc-skeleton",{slot:"title",style:{width:"120px",display:"inline-block"}}),l("sc-skeleton",{slot:"description",style:{width:"60px",display:"inline-block"}}),l("sc-skeleton",{style:{width:"120px",display:"inline-block"},slot:"price"}),l("sc-skeleton",{style:{width:"60px",display:"inline-block"},slot:"price-description"})),l("sc-divider",null),l("sc-line-item",null,l("sc-skeleton",{slot:"title",style:{width:"120px",display:"inline-block"}}),l("sc-skeleton",{style:{width:"120px",display:"inline-block"},slot:"price"})),l("sc-divider",null),l("sc-line-item",null,l("sc-skeleton",{slot:"title",style:{width:"120px",display:"inline-block"}}),l("sc-skeleton",{style:{width:"120px",display:"inline-block"},slot:"price"}))))}if(!((s=this.order)===null||s===void 0?void 0:s.number))return;return l("sc-dashboard-module",{class:"order"},l("span",{slot:"heading"},wp.i18n.sprintf(wp.i18n.__("Order #%s","surecart"),(i=this.order)===null||i===void 0?void 0:i.number)),l("span",{slot:"end"},this.renderOrderStatus()),l("sc-card",null,l("sc-order-confirmation-line-items",null),l("sc-order-confirmation-totals",null)))}};i(n,["order","loading"],false);n.style=t;export{n as sc_order_confirmation_details};
//# sourceMappingURL=p-c86b58a5.entry.js.map