import{r as e,h as d}from"./p-e97fde0a.js";const c=class{constructor(d){e(this,d);this.paymentMethod=undefined;this.editHandler=undefined}render(){var e,c,i,t,o,n,s,a,l,v;return d("sc-card",{key:"ade0bcc70772764c638b29235a85603dedc7b1d6"},d("sc-flex",{key:"ceeac22b7781f8f3c70a079b6e7139c6b10ee1a4",alignItems:"center",justifyContent:"flex-start",style:{gap:"0.5em"}},d("sc-payment-method",{key:"bd9fca18eafc3ecad630908e6210fc1896d57c61",paymentMethod:this.paymentMethod}),d("div",{key:"13ba6337ebe96c1cbdc6c4a8baec9b81421c959d"},!!((c=(e=this.paymentMethod)===null||e===void 0?void 0:e.card)===null||c===void 0?void 0:c.exp_month)&&d("span",{key:"d04ec0f9d49320f0bc9532859c039ae6c45dcfc9"},wp.i18n.sprintf(wp.i18n.__("Exp. %d/%d","surecart"),(t=(i=this.paymentMethod)===null||i===void 0?void 0:i.card)===null||t===void 0?void 0:t.exp_month,(n=(o=this.paymentMethod)===null||o===void 0?void 0:o.card)===null||n===void 0?void 0:n.exp_year)),!!((a=(s=this.paymentMethod)===null||s===void 0?void 0:s.paypal_account)===null||a===void 0?void 0:a.email)&&((v=(l=this.paymentMethod)===null||l===void 0?void 0:l.paypal_account)===null||v===void 0?void 0:v.email)),d("sc-button",{key:"0f920f310318785b2c147f1e140055f20159f119",type:"text",circle:true,onClick:this.editHandler},d("sc-icon",{key:"6e8610037e40b71b855122965b61a607d6db8782",name:"edit-2"}))))}};export{c as sc_payment_method_details};
//# sourceMappingURL=p-e4536e4b.entry.js.map