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,o,c,n,s,a,l,f;return d("sc-card",{key:"826c059459a12c5b39811ff01079ad3024a53500"},d("sc-flex",{key:"ff0a03bf78a9fb6a446cb50952d989225953b58f",alignItems:"center",justifyContent:"flex-start",style:{gap:"0.5em"}},d("sc-payment-method",{key:"7e72e44534372a80eebcb3c95549de197c72d9a8",paymentMethod:this.paymentMethod}),d("div",{key:"67371eea77408f2d09387095407f07a2b3bb955a"},!!((i=(e=this.paymentMethod)===null||e===void 0?void 0:e.card)===null||i===void 0?void 0:i.exp_month)&&d("span",{key:"6f8b0735d4e37fdd4c88f0125077e5eb78749e32"},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,(n=(c=this.paymentMethod)===null||c===void 0?void 0:c.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)&&((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:"42897688c5d69d5939647b5113bf17387bc95efb",type:"text",circle:true,onClick:this.editHandler},d("sc-icon",{key:"799ce0fc86eda6652cbf9cda7761f80b0544c0e5",name:"edit-2"}))))}};export{i as sc_payment_method_details};
//# sourceMappingURL=p-6dc8637d.entry.js.map