import{j as o}from"./router.chunk.YsRm4bSN.js";import{_ as __}from"./wordpress.chunk.BVds2GcU.js";import{P as t,a as r,b as e,c as n}from"./pdf-signature.chunk.IQZSL9sf.js";import{u as s,P as a}from"./pdf-context.chunk.DXMR6h2w.js";import{i,A as d}from"./main.chunk.N-eZ2ybB.js";import{H as p}from"./pdf-html.chunk.CXZoRVhj.js";import{V as c,T as f,k as l,l as m}from"./pdf-core.chunk.D33I_Wdh.js";const g=()=>{const{pdfReceiptTemplate:t}=s(),r=t?.colors?.secondary_text??"#636363";return i(t)&&t.content.tax_information?.is_available?o.jsxs(c,{style:{backgroundColor:"#F9FAFB",borderLeft:4,borderLeftColor:"#338C58",borderLeftStyle:"solid",marginTop:8,marginBottom:8,paddingTop:12,paddingBottom:12,paddingLeft:20,paddingRight:12,borderRadius:4},children:[o.jsx(f,{style:{fontWeight:"bold",color:r},children:__("Tax Information:","growfund")}),o.jsx(c,{style:{marginTop:8},children:o.jsx(p,{resetStyles:!1,stylesheet:{p:{marginBottom:1,marginTop:2,fontSize:12,width:"100%"}},children:t.content.tax_information.details??""})})]}):o.jsx(c,{})},h=({pdfReceiptTemplate:s,children:i,toCurrency:p,appConfig:c})=>{const f="1"===c[d.DonationMode];return o.jsx(a,{pdfReceiptTemplate:s,toCurrency:p,appConfig:c,children:o.jsx(l,{children:o.jsxs(m,{size:"A4",style:{margin:0,fontFamily:"Helvetica",backgroundColor:s?.colors?.background??"#ffffff",color:s?.colors?.primary_text??"#333333",fontSize:12,paddingTop:12,paddingLeft:48,paddingRight:48,paddingBottom:12},children:[o.jsx(t,{heading:__(f?"DONATION RECEIPT":"PLEDGE RECEIPT","growfund")}),o.jsx(r,{}),i,o.jsx(g,{}),f&&o.jsx(e,{}),o.jsx(n,{})]})})})};export{h as P};
