import{r as e,h as o,H as i}from"./p-e97fde0a.js";import"./p-9960b1ec.js";import{s as c}from"./p-86fd1a31.js";import{a as d}from"./p-fd1598d9.js";import{t as a,p as s}from"./p-0d462000.js";import"./p-7d44e2d5.js";import"./p-03631502.js";import"./p-13f5e4e1.js";import"./p-3f6362a4.js";import"./p-ec182234.js";import"./p-9dbc54d6.js";import"./p-93127aa7.js";import"./p-830ab1a3.js";import"./p-401e165e.js";import"./p-dd3464cd.js";import"./p-d3366af3.js";import"./p-1f60f497.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,f,p;const b=(e=c.checkout)===null||e===void 0?void 0:e.manual_payment_method;return o(i,{key:"265d1e33c0e48a3e133ca523e56cbb121df5f947"},o("slot",{key:"baf81adf55e3cf252f2623341cbeb62bf7a86093"}),d()&&o("sc-block-ui",{key:"b188f69bcd10d23797e099f1c74298b8b013cc5d",style:{"z-index":"30","--sc-block-ui-position":"fixed"}}),o("sc-dialog",{key:"306d16fc510dc1abdd79fd0c728cf050cd9902c7",open:c.loading==="complete",style:{"--body-spacing":"var(--sc-spacing-xxx-large)"},noHeader:true,onScRequestClose:e=>e.preventDefault()},o("div",{key:"9e0235e66e4bd2e73991925ee83a1fe661f8525f",class:"confirm__icon"},o("div",{key:"c7b15fae542b50bc70a1be8b93b3faaf50c85f08",class:"confirm__icon-container"},o("sc-icon",{key:"ab4201d117a356cb9292fdbaf1ee458ed40a5c4e",name:"check"}))),o("sc-dashboard-module",{key:"24536ea537ede8ed42d03144f547c668d66ea539",heading:((s=(a=c===null||c===void 0?void 0:c.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:"a44463227785e00dbea056caf0c7f385c834d922",slot:"description"},((n=(t=c===null||c===void 0?void 0:c.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:"55a3d0104c8b4337fde61a72cca6c389461210cb",type:"info",open:true,style:{"text-align":"left"}},o("span",{key:"e3246f0d7e29e169cc8499253a0bf877f6cf2880",slot:"title"},b===null||b===void 0?void 0:b.name),o("div",{key:"e9f627a6faf27ada7246f85cc12920405c074f10",innerHTML:b===null||b===void 0?void 0:b.instructions})),o("sc-button",{key:"bb6d5b94b6c96a91a6d2db06b181843e173834f7",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},((p=(f=c===null||c===void 0?void 0:c.text)===null||f===void 0?void 0:f.success)===null||p===void 0?void 0:p.button)||wp.i18n.__("Continue","surecart"),o("sc-icon",{key:"f9fe742c68227ba107d62029af64f3b4a5b7f860",name:"arrow-right",slot:"suffix"})))))}};r.style=n;export{r as sc_upsell};
//# sourceMappingURL=p-31743ac6.entry.js.map