import{r as e,h as o,H as i}from"./p-9add63ef.js";import"./p-338ab6f8.js";import{s as d}from"./p-71d77b7d.js";import{a}from"./p-1365bb41.js";import{t as c,p as s}from"./p-efa47a7e.js";import"./p-b3860daf.js";import"./p-2b28ea49.js";import"./p-13f5e4e1.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-445fd8b4.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(){c();s()}render(){var e,c,s,t,n,r,l,p,f;const b=(e=d.checkout)===null||e===void 0?void 0:e.manual_payment_method;return o(i,{key:"825ae2a4f3f84010cac7fd7f3785fd430308db10"},o("slot",{key:"295c692a66a8d5a417f5624293efa4dab1a26af1"}),a()&&o("sc-block-ui",{key:"0d880ea8736b2cecfe0662e993e0a0629e7ed4e0",style:{"z-index":"30","--sc-block-ui-position":"fixed"}}),o("sc-dialog",{key:"8aab41e8939ea2db2cb23becf2039f7f0f6bd70b",open:d.loading==="complete",style:{"--body-spacing":"var(--sc-spacing-xxx-large)"},noHeader:true,onScRequestClose:e=>e.preventDefault()},o("div",{key:"7e201705d4cd9bce69932c7dcd6bae8b44634817",class:"confirm__icon"},o("div",{key:"4e06bdda114d9d4dcb1e3b0e9cf58cea56cc76e2",class:"confirm__icon-container"},o("sc-icon",{key:"70120a9c028272f9ede9d806418b2be14197dd26",name:"check"}))),o("sc-dashboard-module",{key:"3373a97815eacdeb2d1e38d19ef54715a9452b13",heading:((s=(c=d===null||d===void 0?void 0:d.text)===null||c===void 0?void 0:c.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:"cf2c4e4bc3f177cd85acbacd8543b3d7fe2f6900",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")),!!(b===null||b===void 0?void 0:b.name)&&!!(b===null||b===void 0?void 0:b.instructions)&&o("sc-alert",{key:"394b429e4117f3fa12acfa44434758cf0998c29c",type:"info",open:true,style:{"text-align":"left"}},o("span",{key:"ad9f1de6f14eb86f16ee9e5e92b4a38aeac8523d",slot:"title"},b===null||b===void 0?void 0:b.name),o("div",{key:"b112a0497b50ac9cdfa878d8bcf92cc41846f855",innerHTML:b===null||b===void 0?void 0:b.instructions})),o("sc-button",{key:"09b3f6c210b4ca818ab4a99e61067d1876c070be",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},((f=(p=d===null||d===void 0?void 0:d.text)===null||p===void 0?void 0:p.success)===null||f===void 0?void 0:f.button)||wp.i18n.__("Continue","surecart"),o("sc-icon",{key:"905f641e22947da1af52198d8d150dfdce1b183f",name:"arrow-right",slot:"suffix"})))))}};r.style=n;export{r as sc_upsell};
//# sourceMappingURL=p-9974e4bb.entry.js.map