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,a,o,n,s,l,f;return d("sc-card",{key:"b5d0e89c2c1b63da34e7e9b27770736858d127d8"},d("sc-flex",{key:"3fa0fc0144e1a350f610c6e253e087adb2ced643",alignItems:"center",justifyContent:"flex-start",style:{gap:"0.5em"}},d("sc-payment-method",{key:"814b1a6937fad99f378e6cd442f80dad9e6c5b87",paymentMethod:this.paymentMethod}),d("div",{key:"74ab8594a08a13c71bc25c7f99f649741bbac05c"},!!((i=(e=this.paymentMethod)===null||e===void 0?void 0:e.card)===null||i===void 0?void 0:i.exp_month)&&d("span",{key:"b5165cab446ebf73e96dedb4787c21c7de3a33f6"},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,(o=(a=this.paymentMethod)===null||a===void 0?void 0:a.card)===null||o===void 0?void 0:o.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)),d("sc-button",{key:"d05dfc9fa2595b531bb997f7675bac158414b86d",type:"text",circle:true,onClick:this.editHandler},d("sc-icon",{key:"93e847f9991dfecfff87bfd50ebdaab04049c764",name:"edit-2"}))))}};export{i as sc_payment_method_details};
//# sourceMappingURL=p-d01ecdf0.entry.js.map