import{r as e,h as d}from"./p-9add63ef.js";const i=class{constructor(d){e(this,d);this.paymentMethod=undefined;this.editHandler=undefined}render(){var e,i,t,c,o,n,s,l,a,f;return d("sc-card",{key:"5d651c5f39fcf7583819c5008810687b261e9a64"},d("sc-flex",{key:"571408bd4eac6c7d792f1b113bf832d17490668c",alignItems:"center",justifyContent:"flex-start",style:{gap:"0.5em"}},d("sc-payment-method",{key:"ef3a232e7e5dcf40a404313398d4c44d520175e1",paymentMethod:this.paymentMethod}),d("div",{key:"eb0c177db20b0988164a5dacf50577660aafe3e8"},!!((i=(e=this.paymentMethod)===null||e===void 0?void 0:e.card)===null||i===void 0?void 0:i.exp_month)&&d("span",{key:"cdd01ce0114e75bc8ef29a040b7f9ad390743e63"},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,(n=(o=this.paymentMethod)===null||o===void 0?void 0:o.card)===null||n===void 0?void 0:n.exp_year)),!!((l=(s=this.paymentMethod)===null||s===void 0?void 0:s.paypal_account)===null||l===void 0?void 0:l.email)&&((f=(a=this.paymentMethod)===null||a===void 0?void 0:a.paypal_account)===null||f===void 0?void 0:f.email)),d("sc-button",{key:"114b809f9b8dc27bb95fe69310775b721d13857e",type:"text",circle:true,onClick:this.editHandler},d("sc-icon",{key:"65519fc51b08cd60eb9264ef07f2ce1b45b2a69d",name:"edit-2"}))))}};export{i as sc_payment_method_details};
//# sourceMappingURL=p-0fa71614.entry.js.map