import{r as s,h as l}from"./p-dfbe004d.js";import{_ as i,s as e}from"./p-8415f806.js";import"./p-fd56940f.js";import{o as t}from"./p-d63f2554.js";import"./p-9a7a47e8.js";const o=class{constructor(l){s(this,l)}renderOrderStatus(){var s,e;return"processing"===(null===(s=null==this?void 0:this.order)||void 0===s?void 0:s.status)?l("sc-tag",{type:"warning"},i("On Hold","surecart")):l("sc-order-status-badge",{status:null===(e=this.order)||void 0===e?void 0:e.status})}render(){var s,t;return this.loading?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"})))):(null===(s=this.order)||void 0===s?void 0:s.number)?l("sc-dashboard-module",{class:"order"},l("span",{slot:"heading"},e(i("Order #%s","surecart"),null===(t=this.order)||void 0===t?void 0:t.number)),l("span",{slot:"end"},this.renderOrderStatus()),l("sc-card",null,l("sc-order-confirmation-line-items",null),l("sc-divider",null),l("sc-order-confirmation-totals",null))):void 0}};t(o,["order","loading"],!1),o.style=":host{display:block}";export{o as sc_order_confirmation_details}