import{j as i}from"./index-d2b25495.js";/* empty css                   */import{V as h,I as f,T as d}from"./react-pdf.browser-2d7aeca0.js";import{P as l}from"./pdf-9a6a61e1.js";const w=({companyData:e})=>{var s;return i.jsxs(h,{style:[l.header,(e==null?void 0:e.header_alignment)===2?{justifyContent:"center"}:{}],fixed:!0,children:[i.jsx(f,{style:[l.image,(e==null?void 0:e.header_alignment)===2?{height:80}:{}],src:((s=e==null?void 0:e.clogo)==null?void 0:s.file)||""}),(e==null?void 0:e.header_alignment)!==2&&i.jsxs(d,{style:l.companyDetails,children:["GST No: ",e==null?void 0:e.gstno]})]})},_=({customerData:e,companyData:s})=>{var x,r,j;return i.jsxs(h,{style:l.section,children:[i.jsx(d,{children:"To,"}),i.jsxs(d,{children:["The ",e==null?void 0:e.name]}),i.jsx(d,{style:{flexWrap:"wrap",width:"100px"},children:e==null?void 0:e.address}),i.jsxs(d,{children:[(x=e==null?void 0:e.country)==null?void 0:x.name,", ",(r=e==null?void 0:e.state)==null?void 0:r.name,","," ",(j=e==null?void 0:e.city)==null?void 0:j.name," - ",e==null?void 0:e.pincode]})]})},b=({companyData:e})=>i.jsxs(h,{style:l.footer,children:[i.jsx(h,{style:l.footerLogo}),i.jsxs(d,{style:l.footerText,children:[e==null?void 0:e.address,", ",e==null?void 0:e.pincode,`
`,"Phone: ",e==null?void 0:e.mobile,";",`
`,"Email: ",e==null?void 0:e.email," ;"]}),i.jsx(d,{style:l.footerPageNumber,render:({pageNumber:s,totalPages:x})=>`Page ${s} of ${x}`})]});export{w as P,_ as T,b as a};
