import{r as e,h as o,H as i}from"./p-9add63ef.js";import"./p-15daaf77.js";import{s as d}from"./p-71d77b7d.js";import{a as c}from"./p-1365bb41.js";import{t as a,p as s}from"./p-0d4dd694.js";import"./p-38b12af4.js";import"./p-2b28ea49.js";import"./p-07a2074d.js";import"./p-3f6362a4.js";import"./p-ec182234.js";import"./p-dd24e53c.js";import"./p-fb28f84f.js";import"./p-830ab1a3.js";import"./p-401e165e.js";import"./p-8dccb656.js";import"./p-259c3935.js";import"./p-d3366af3.js";import"./p-78468e45.js";const t=":host{display:block}.confirm__icon{margin-bottom:var(--sc-spacing-medium);display:flex;justify-content:center}.confirm__icon-container{background:var(--sc-color-primary-500);width:55px;height:55px;border-radius:999999px;display:flex;align-items:center;justify-content:center;font-size:26px;line-height:1;color:white}";const n=t;const r=class{constructor(o){e(this,o)}componentWillLoad(){a();s()}render(){var e,a,s,t,n,r,l,p,b;const f=(e=d.checkout)===null||e===void 0?void 0:e.manual_payment_method;return o(i,{key:"1feeb596433d726d63270185da07147edbe176bf"},o("slot",{key:"608c578c002d6110330b5a35abfd02f881312597"}),c()&&o("sc-block-ui",{key:"1ccc19bf67f8d75ef28458dca3b822efb7de139b",style:{"z-index":"30","--sc-block-ui-position":"fixed"}}),o("sc-dialog",{key:"e981a4d81227e05733867672e963823c31085e37",open:d.loading==="complete",style:{"--body-spacing":"var(--sc-spacing-xxx-large)"},noHeader:true,onScRequestClose:e=>e.preventDefault()},o("div",{key:"4bf2098a19b643fc4def3dbcdb2af8ce4c3d5f86",class:"confirm__icon"},o("div",{key:"63bae6940fafb5174ba5c4d7598b3bb2e283ca73",class:"confirm__icon-container"},o("sc-icon",{key:"10cfc2b97369c5a86b0424c8bc518dee044bd967",name:"check"}))),o("sc-dashboard-module",{key:"2637af85cdcb7d8b8ba1c049e336a6dcaa000fb5",heading:((s=(a=d===null||d===void 0?void 0:d.text)===null||a===void 0?void 0:a.success)===null||s===void 0?void 0:s.title)||wp.i18n.__("Thank you!","surecart"),style:{"--sc-dashboard-module-spacing":"var(--sc-spacing-x-large)",textAlign:"center"}},o("span",{key:"f96732f4eb36344e38ac05cafa9bde7a5edd8a71",slot:"description"},((n=(t=d===null||d===void 0?void 0:d.text)===null||t===void 0?void 0:t.success)===null||n===void 0?void 0:n.description)||wp.i18n.__("Your purchase was successful. A receipt is on its way to your inbox.","surecart")),!!(f===null||f===void 0?void 0:f.name)&&!!(f===null||f===void 0?void 0:f.instructions)&&o("sc-alert",{key:"16d04726310a1497245adff3532f26706a2d6d8e",type:"info",open:true,style:{"text-align":"left"}},o("span",{key:"7755e292059e830e38a856d848cab863b2129595",slot:"title"},f===null||f===void 0?void 0:f.name),o("div",{key:"983d1b8c3e79d6c387473b84217e3b2886fb7cbf",innerHTML:f===null||f===void 0?void 0:f.instructions})),o("sc-button",{key:"bb2eb1b40154a8cf0b20fa499ce50d35094eff31",href:(l=(r=window===null||window===void 0?void 0:window.scData)===null||r===void 0?void 0:r.pages)===null||l===void 0?void 0:l.dashboard,size:"large",type:"primary",autofocus:true},((b=(p=d===null||d===void 0?void 0:d.text)===null||p===void 0?void 0:p.success)===null||b===void 0?void 0:b.button)||wp.i18n.__("Continue","surecart"),o("sc-icon",{key:"8ec97a67c191a466cd7396a439174686effa5bc5",name:"arrow-right",slot:"suffix"})))))}};r.style=n;export{r as sc_upsell};
//# sourceMappingURL=p-360715e4.entry.js.map