import{r as d,h as e}from"./p-e97fde0a.js";const i=class{constructor(e){d(this,e);this.paymentMethod=undefined;this.editHandler=undefined}render(){var d,i,t,o,a,c,n,s,l,f;return e("sc-card",{key:"5dc361c39a660ab59c6f5a57ff7280b7d3e313d6"},e("sc-flex",{key:"6d18af97690354eb468ef4d209023c9eb00e629d",alignItems:"center",justifyContent:"flex-start",style:{gap:"0.5em"}},e("sc-payment-method",{key:"3be96857587dadcf87cbf76ca05c50109c6f0377",paymentMethod:this.paymentMethod}),e("div",{key:"2575064f372d62298a6dea715eb139d586889474"},!!((i=(d=this.paymentMethod)===null||d===void 0?void 0:d.card)===null||i===void 0?void 0:i.exp_month)&&e("span",{key:"4d36dfe7f7ee73a54f11e02c186f1d82803709c8"},wp.i18n.sprintf(wp.i18n.__("Exp. %d/%d","surecart"),(o=(t=this.paymentMethod)===null||t===void 0?void 0:t.card)===null||o===void 0?void 0:o.exp_month,(c=(a=this.paymentMethod)===null||a===void 0?void 0:a.card)===null||c===void 0?void 0:c.exp_year)),!!((s=(n=this.paymentMethod)===null||n===void 0?void 0:n.paypal_account)===null||s===void 0?void 0:s.email)&&((f=(l=this.paymentMethod)===null||l===void 0?void 0:l.paypal_account)===null||f===void 0?void 0:f.email)),e("sc-button",{key:"9149047b8abd55a9e54758d967793591dda1dca5",type:"text",circle:true,onClick:this.editHandler},e("sc-icon",{key:"18983d7beafbb993bd4bac441d195f13980dedf4",name:"edit-2"}))))}};export{i as sc_payment_method_details};
//# sourceMappingURL=p-77febaf7.entry.js.map