"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[75],{581:function(e,t,i){i.d(t,{o:function(){return s}});var n=i(1346),s=function(e,t,i){void 0===i&&(i=!0);var s="Function"===e.constructor.name?e.prototype:e,l=s.componentWillLoad;s.componentWillLoad=function(){var e,s=this,o=(0,n.a)(this),r={promise:new Promise((function(t){e=t})),resolve:e},d=new CustomEvent("openWormhole",{bubbles:!0,composed:!0,detail:{consumer:this,fields:t,updater:function(e,t){(e in o?o:s)[e]=t},onOpen:r}});o.dispatchEvent(d);var c=function(){if(l)return l.call(s)};return i?r.promise.then((function(){return c()})):c()}}},75:function(e,t,i){i.r(t),i.d(t,{sc_order_confirmation_details:function(){return r}});var n=i(3029),s=i(2901),l=i(1346),o=i(581),r=function(){return(0,s.A)((function e(t){(0,n.A)(this,e),(0,l.r)(this,t),this.order=void 0,this.loading=void 0}),[{key:"renderOrderStatus",value:function(){var e,t;return"processing"===(null===(e=null==this?void 0:this.order)||void 0===e?void 0:e.status)?(0,l.h)("sc-tag",{type:"warning"},wp.i18n.__("On Hold","surecart")):(0,l.h)("sc-order-status-badge",{status:null===(t=this.order)||void 0===t?void 0:t.status})}},{key:"render",value:function(){var e,t;return this.loading?(0,l.h)("sc-dashboard-module",null,(0,l.h)("sc-skeleton",{slot:"heading",style:{width:"120px",display:"inline-block"}}),(0,l.h)("sc-skeleton",{slot:"end",style:{width:"60px",display:"inline-block"}}),(0,l.h)("sc-card",null,(0,l.h)("sc-line-item",null,(0,l.h)("sc-skeleton",{style:{width:"50px",height:"50px","--border-radius":"0"},slot:"image"}),(0,l.h)("sc-skeleton",{slot:"title",style:{width:"120px",display:"inline-block"}}),(0,l.h)("sc-skeleton",{slot:"description",style:{width:"60px",display:"inline-block"}}),(0,l.h)("sc-skeleton",{style:{width:"120px",display:"inline-block"},slot:"price"}),(0,l.h)("sc-skeleton",{style:{width:"60px",display:"inline-block"},slot:"price-description"})),(0,l.h)("sc-divider",null),(0,l.h)("sc-line-item",null,(0,l.h)("sc-skeleton",{slot:"title",style:{width:"120px",display:"inline-block"}}),(0,l.h)("sc-skeleton",{style:{width:"120px",display:"inline-block"},slot:"price"})),(0,l.h)("sc-divider",null),(0,l.h)("sc-line-item",null,(0,l.h)("sc-skeleton",{slot:"title",style:{width:"120px",display:"inline-block"}}),(0,l.h)("sc-skeleton",{style:{width:"120px",display:"inline-block"},slot:"price"})))):(null===(e=this.order)||void 0===e?void 0:e.number)?(0,l.h)("sc-dashboard-module",{class:"order"},(0,l.h)("span",{slot:"heading"},wp.i18n.sprintf(wp.i18n.__("Order #%s","surecart"),null===(t=this.order)||void 0===t?void 0:t.number)),(0,l.h)("span",{slot:"end"},this.renderOrderStatus()),(0,l.h)("sc-card",null,(0,l.h)("sc-order-confirmation-line-items",null),(0,l.h)("sc-order-confirmation-totals",null))):void 0}}])}();(0,o.o)(r,["order","loading"],!1),r.style=":host{display:block}"}}]);