import{j as e}from"./router.chunk.YsRm4bSN.js";import{_ as __,s as sprintf}from"./wordpress.chunk.BVds2GcU.js";import{u as t}from"./pdf-context.chunk.DXMR6h2w.js";import{D as i,b5 as n,bN as o,A as r}from"./main.chunk.N-eZ2ybB.js";import{V as s,T as l}from"./pdf-core.chunk.D33I_Wdh.js";import{f as d}from"./date-utils.chunk.DWRtWTmT.js";const c=({donation:c})=>{const{pdfReceiptTemplate:a,toCurrency:h,appConfig:{[r.Campaign]:m}}=t(),x=a?.colors?.secondary_text??"#636363",g=new Map([["send-ecard",__("e-Card","growfund")],["send-post-mail",__("Post Mail","growfund")],["send-ecard-and-post-mail",__("e-Card and Post Mail","growfund")]]);return e.jsxs(s,{children:[e.jsx(s,{style:{padding:16,paddingTop:12,paddingBottom:12,backgroundColor:"#F7F7F7",borderRadius:6},children:e.jsxs(s,{style:{width:"100%",flexDirection:"row",alignItems:"flex-end",justifyContent:"space-between"},children:[e.jsxs(s,{style:{flexDirection:"column",alignItems:"flex-end"},children:[e.jsx(l,{style:{width:"100%",color:x},children:__("Donation Amount","growfund")}),e.jsx(l,{style:{fontWeight:"bold",fontSize:20,marginTop:8},children:h(c.amount,!1)})]}),e.jsxs(s,{style:{flexDirection:"column",alignItems:"flex-end"},children:[e.jsx(l,{style:{color:x},children:__("Date & Time","growfund")}),e.jsx(l,{style:{marginTop:8},children:d(c.created_at,i.HUMAN_READABLE_FULL_DATE_TIME)})]})]})}),e.jsxs(s,{style:{paddingTop:24,paddingBottom:8},children:[e.jsxs(s,{style:{flexDirection:"row"},children:[e.jsx(s,{style:{width:241},children:e.jsxs(s,{style:{marginBottom:4},children:[e.jsx(l,{style:{color:x},children:__("Donor Name","growfund")}),e.jsx(l,{style:{marginTop:2,fontWeight:"bold"},children:sprintf("%s %s",c.donor.first_name,c.donor.last_name)})]})}),e.jsx(s,{style:{marginLeft:8},children:e.jsxs(s,{style:{marginBottom:4},children:[e.jsx(l,{style:{color:x},children:__("Payment Method","growfund")}),e.jsx(l,{style:{marginTop:2,fontWeight:"bold"},children:c.payment_method.label})]})})]}),e.jsx(s,{style:{flexDirection:"row",marginTop:8},children:e.jsx(s,{style:{width:241},children:e.jsxs(s,{style:{marginBottom:4},children:[e.jsx(l,{style:{color:x},children:__("Transaction ID","growfund")}),e.jsx(l,{style:{marginTop:2,fontWeight:"bold"},children:c.transaction_id??n(2)})]})})}),e.jsxs(s,{style:{flexDirection:"row",marginTop:"8px"},children:[e.jsx(s,{style:{width:241},children:e.jsxs(s,{style:{marginBottom:4},children:[e.jsx(l,{style:{color:x},children:__("Donation To","growfund")}),e.jsx(l,{style:{marginTop:2,fontWeight:"bold"},children:c.campaign.title})]})}),m?.allow_tribute&&e.jsx(s,{style:{marginLeft:"8px"},children:e.jsxs(s,{style:{marginBottom:4},children:[e.jsx(l,{style:{color:x},children:__("Tribute To","growfund")}),e.jsx(l,{style:{marginTop:2,fontWeight:"bold"},children:c.tribute_to??n(2)})]})})]}),m?.allow_tribute&&e.jsxs(s,{children:[e.jsxs(s,{style:{flexDirection:"row",marginTop:"8px"},children:[e.jsx(s,{style:{width:241},children:e.jsxs(s,{style:{marginBottom:4},children:[e.jsx(l,{style:{color:x},children:__("Send Notification To","growfund")}),e.jsx(l,{style:{marginTop:2,fontWeight:"bold"},children:c.tribute_notification_recipient_name??n(2)})]})}),e.jsx(s,{style:{marginLeft:"8px"},children:e.jsxs(s,{style:{marginBottom:4},children:[e.jsx(l,{style:{color:x},children:__("Notification Method","growfund")}),e.jsx(l,{style:{marginTop:2,fontWeight:"bold"},children:g.has(c.tribute_notification_type)?g.get(c.tribute_notification_type):n(2)})]})})]}),e.jsxs(s,{style:{flexDirection:"row",marginTop:"8px"},children:[e.jsx(s,{style:{width:241},children:e.jsxs(s,{style:{marginBottom:4},children:[e.jsx(l,{style:{color:x},children:__("Recipient Email","growfund")}),e.jsx(l,{style:{marginTop:2,fontWeight:"bold"},children:c.tribute_notification_recipient_email??n(2)})]})}),e.jsx(s,{style:{marginLeft:"8px"},children:e.jsxs(s,{style:{marginBottom:4},children:[e.jsx(l,{style:{color:x},children:__("Recipient Address","growfund")}),e.jsx(l,{style:{marginTop:2,fontWeight:"bold"},children:o(c.tribute_notification_recipient_address)||n(2)})]})})]})]})]})]})};export{c as P};
