import{r as e,h as d}from"./p-e97fde0a.js";const i=class{constructor(d){e(this,d);this.paymentMethod=undefined;this.editHandler=undefined}render(){var e,i,t,c,o,a,f,n,s,l;return d("sc-card",{key:"f3a564ca0054cc2b63c7118a7fd0fe9f7c7d5eef"},d("sc-flex",{key:"9a94202a2bdfebb868cfceec761ffcbc9c0e860e",alignItems:"center",justifyContent:"flex-start",style:{gap:"0.5em"}},d("sc-payment-method",{key:"3910c58eaba789eb67d9258746e917104dcb1bcd",paymentMethod:this.paymentMethod}),d("div",{key:"2865b838d4195d269cd4f57f5021e5a7ae1b242c"},!!((i=(e=this.paymentMethod)===null||e===void 0?void 0:e.card)===null||i===void 0?void 0:i.exp_month)&&d("span",{key:"0157bf9151b997ae06022e761df5b2a30088475f"},wp.i18n.sprintf(wp.i18n.__("Exp. %d/%d","surecart"),(c=(t=this.paymentMethod)===null||t===void 0?void 0:t.card)===null||c===void 0?void 0:c.exp_month,(a=(o=this.paymentMethod)===null||o===void 0?void 0:o.card)===null||a===void 0?void 0:a.exp_year)),!!((n=(f=this.paymentMethod)===null||f===void 0?void 0:f.paypal_account)===null||n===void 0?void 0:n.email)&&((l=(s=this.paymentMethod)===null||s===void 0?void 0:s.paypal_account)===null||l===void 0?void 0:l.email)),d("sc-button",{key:"ac181d36c3fc7fd410ba1f81941e0bc08f7ad64f",type:"text",circle:true,onClick:this.editHandler},d("sc-icon",{key:"43eef4134afe057362bb324ff67811b092ec52f9",name:"edit-2"}))))}};export{i as sc_payment_method_details};
//# sourceMappingURL=p-96faa0ab.entry.js.map