import{b as e,d as c}from"./app-DTeOhhdM.js";const g=({title:n="Receipt",receiptNumber:r="N/A",date:m="N/A",party:s={},salesPerson:d=null,children:h,summary:l=null,showSignatures:a=!0,titleColor:j="text-blue-700",additionalInfo:o={}})=>e.jsx("div",{className:"hidden print:block font-sans",children:e.jsxs("div",{className:"max-w-4xl mx-auto  rounded-xl p-8 shadow-sm",children:[e.jsxs("div",{className:"text-center mb-2",children:[e.jsxs("h1",{className:"text-3xl inline-block font-bold text-gray-900 uppercase tracking-wide print:font-prose-antique mb-3 relative",children:[c.name,c.slogan&&e.jsx("span",{className:"text-[9px] text-gray-600 absolute right-0 -bottom-6",children:c.slogan})]}),e.jsx("p",{className:"text-sm text-gray-600",children:c.address}),e.jsxs("p",{className:"text-sm text-gray-600",children:[c.phone?`Phone: ${c.phone} |`:"","Email: ",c.email]})]}),e.jsx("h2",{className:`text-xl  text-center  font-semibold ${j} uppercase w-full `,children:n}),e.jsx("hr",{className:"border-t-2 border-dashed border-gray-300 mb-6"}),e.jsxs("div",{className:"flex  justify-between  gap-5 items-start mb-6",children:[e.jsx("div",{className:"col-span-6 ",children:(s==null?void 0:s.name)&&e.jsxs("div",{className:"space-y-1 text-gray-700",children:[e.jsxs("p",{children:[e.jsx("strong",{children:"Name:"})," ",(s==null?void 0:s.name)??"N/A"]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Phone:"})," ",(s==null?void 0:s.number)??"N/A"]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Address:"})," ",(s==null?void 0:s.address)??"N/A"]}),(s==null?void 0:s.code)&&e.jsxs("p",{children:[e.jsx("strong",{children:"ID:"})," ",(s==null?void 0:s.code)??"N/A"]})]})}),e.jsxs("div",{className:"text-sm text-gray-700 text-right space-y-1 ",children:[e.jsxs("p",{children:[e.jsx("strong",{children:"Date:"})," ",m]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Receipt No:"})," ",r]}),Object.entries(o).map(([i,x],t)=>e.jsxs("p",{children:[e.jsxs("strong",{children:[i,":"]})," ",x]},t)),(s==null?void 0:s.user_type)&&e.jsxs("p",{children:[e.jsx("strong",{children:"Type:"})," ",s.user_type]})]})]}),e.jsx("div",{className:"mb-6",children:h}),e.jsxs("div",{className:"grid gap-4  grid-cols-12  text-sm mb-6",children:[d&&e.jsxs("div",{className:"col-span-6",children:[e.jsx("h3",{className:"text-base font-semibold text-gray-800 mb-2 border-b border-gray-300 pb-1",children:"Sales Person"}),e.jsxs("div",{className:"space-y-1 text-gray-700",children:[e.jsxs("p",{children:[e.jsx("strong",{children:"Name:"})," ",(d==null?void 0:d.name)??"N/A"]}),(d==null?void 0:d.code)&&e.jsxs("p",{children:[e.jsx("strong",{children:"Code:"})," ",(d==null?void 0:d.code)??"N/A"]}),(d==null?void 0:d.number)&&e.jsxs("p",{children:[e.jsx("strong",{children:"Phone:"})," ",d.number]}),(d==null?void 0:d.email)&&e.jsxs("p",{children:[e.jsx("strong",{children:"Email:"})," ",d.email]})]})]}),l&&e.jsxs("div",{className:"col-span-6",children:[e.jsx("h3",{className:"text-base font-semibold text-gray-800 mb-2 border-b border-gray-300 pb-1",children:"Payment Summary"}),e.jsx("div",{className:"space-y-1 text-gray-700",children:Object.entries(l).map(([i,x],t)=>e.jsxs("p",{children:[e.jsxs("strong",{children:[i,":"]})," ",x]},t))})]})]}),a&&e.jsxs("div",{className:"grid grid-cols-2 gap-8 pt-10 mt-8 border-t border-gray-200",children:[e.jsxs("div",{className:"text-center text-sm text-gray-700",children:[e.jsxs("p",{className:"font-semibold mb-6",children:[s!=null&&s.user_type?s.user_type:"Party"," ","Signature"]}),e.jsx("div",{className:"w-40 mx-auto border-t border-gray-400"})]}),e.jsxs("div",{className:"text-center text-sm text-gray-700",children:[e.jsx("p",{className:"font-semibold mb-6",children:"Authorized By"}),e.jsx("div",{className:"w-40 mx-auto border-t border-gray-400"})]})]})]})});export{g as R};
