import{j as s}from"./index-c121b02d.js";import{V as o,a as h,I as b,T as x}from"./quill.snow-3478027f.js";const z=({companyData:i,locationData:r})=>{var f;return s.jsx(o,{children:s.jsxs(o,{style:h.header,children:[s.jsx(o,{style:h.logoContainer,children:((f=i==null?void 0:i.clogo)==null?void 0:f.file)&&s.jsx(b,{style:h.image,src:i.clogo.file,cache:!1})}),s.jsxs(o,{style:h.centerContent,children:[s.jsx(x,{style:h.companyName,children:i==null?void 0:i.name}),s.jsx(x,{style:h.companyInfo,children:i==null?void 0:i.address}),s.jsx(x,{style:h.companyInfo,children:i==null?void 0:i.email}),s.jsx(x,{style:h.companyInfo,children:i==null?void 0:i.mobile}),s.jsxs(x,{style:h.companyDetails,children:["GST No: ",i==null?void 0:i.gstno]})]})]})})},I=({companyData:i,selectedData:r})=>{var f,j,n,u,_;return s.jsx(o,{style:h.footer,children:s.jsxs(o,{style:h.footerTextRow,children:[s.jsxs(x,{style:h.footerLeft,children:["Prepared By: ",((f=r==null?void 0:r.created_by)==null?void 0:f.first_name)||((j=r==null?void 0:r.created_by)==null?void 0:j.username)||"N/A"]}),s.jsxs(x,{style:h.footerRight,children:["Authorized By: ",(r==null?void 0:r.status)==="approved"?(n=r==null?void 0:r.authorized_by)!=null&&n.first_name&&((u=r==null?void 0:r.authorized_by)!=null&&u.last_name)?`${r.authorized_by.first_name} ${r.authorized_by.last_name}`:((_=r==null?void 0:r.authorized_by)==null?void 0:_.username)||"N/A":""]})]})})};export{z as P,I as a};
