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,a,t,o,c,n,s,l,f;return d("sc-card",{key:"c1a547159f611ebb0036be1cae0e516d69af3dfa"},d("sc-flex",{key:"6af0f5ad82a2a49534627b3f22e471b9a15b2e09",alignItems:"center",justifyContent:"flex-start",style:{gap:"0.5em"}},d("sc-payment-method",{key:"967b33a85f1280debb62be93b4c40c377b6bc561",paymentMethod:this.paymentMethod}),d("div",{key:"769e4c0b5352ea3a925cb808fd066aea97aa433d"},!!((i=(e=this.paymentMethod)===null||e===void 0?void 0:e.card)===null||i===void 0?void 0:i.exp_month)&&d("span",{key:"80305bc8a62bdf5e55a1880caa8585e3f77d9986"},wp.i18n.sprintf(wp.i18n.__("Exp. %d/%d","surecart"),(t=(a=this.paymentMethod)===null||a===void 0?void 0:a.card)===null||t===void 0?void 0:t.exp_month,(c=(o=this.paymentMethod)===null||o===void 0?void 0:o.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)),d("sc-button",{key:"a885d5f8e08cfbf6c7d9a015c2c970436dff9f27",type:"text",circle:true,onClick:this.editHandler},d("sc-icon",{key:"2512d4c3b4b8310b424d151f2bf74d16a414725d",name:"edit-2"}))))}};export{i as sc_payment_method_details};
//# sourceMappingURL=p-8beb4cc1.entry.js.map