import{F as y,P as t,T as e,A as i,a as N,W as c,B as s,b as g,H as p,c as r,V as l,d as R}from"./index-49b1559f.js";async function S(w,o){var f,z;const h=((f=o==null?void 0:o.enquiryData)==null?void 0:f.pqitems)||[];console.log("Print ENquiry Data",o),console.log("Print ENquiry Data",(z=o==null?void 0:o.enquiryData)==null?void 0:z.pqitems);const T=new y({sections:[{properties:{page:{margin:{top:720,right:720,bottom:720,left:720}}},children:[new t({children:[new e({text:"Subject: ",bold:!0,size:22}),new e({text:h.map(n=>{var d;return((d=n==null?void 0:n.item)==null?void 0:d.name)||""}).join(", "),size:22})],alignment:i.LEFT,spacing:{after:200}}),new t({children:[new e({text:"Dear Sir",bold:!0,size:22})],alignment:i.LEFT,spacing:{after:200}}),new t({children:[new e({text:"We have an ",size:22}),new e({text:"urgent requirement",bold:!0,size:22}),new e({text:" for the following items, details of which are provided below for your offer and compliance:",size:22})],alignment:i.LEFT,spacing:{after:300}}),new N({width:{size:100,type:c.PERCENTAGE},borders:{top:{style:s.SINGLE,size:2,color:"000000"},bottom:{style:s.SINGLE,size:2,color:"000000"},left:{style:s.SINGLE,size:2,color:"000000"},right:{style:s.SINGLE,size:2,color:"000000"},insideHorizontal:{style:s.SINGLE,size:1,color:"000000"},insideVertical:{style:s.SINGLE,size:1,color:"000000"}},rows:[new g({height:{value:600,rule:p.EXACT},tableHeader:!0,children:[new r({width:{size:10,type:c.PERCENTAGE},verticalAlign:l.CENTER,margins:{top:100,bottom:100,left:100,right:100},children:[new t({children:[new e({text:`Sl.
No.`,bold:!0,size:20})],alignment:i.CENTER})]}),new r({width:{size:25,type:c.PERCENTAGE},verticalAlign:l.CENTER,margins:{top:100,bottom:100,left:100,right:100},children:[new t({children:[new e({text:"Description",bold:!0,size:20})],alignment:i.CENTER})]}),new r({width:{size:50,type:c.PERCENTAGE},verticalAlign:l.CENTER,margins:{top:100,bottom:100,left:100,right:100},children:[new t({children:[new e({text:"Size/Specification",bold:!0,size:20})],alignment:i.CENTER})]}),new r({width:{size:15,type:c.PERCENTAGE},verticalAlign:l.CENTER,margins:{top:100,bottom:100,left:100,right:100},children:[new t({children:[new e({text:`Qty
(UOM)`,bold:!0,size:20})],alignment:i.CENTER})]})]}),...h.length>0?h.map((n,d)=>{var b,E,x,m;return new g({height:{value:500,rule:p.ATLEAST},children:[new r({verticalAlign:l.CENTER,margins:{top:100,bottom:100,left:100,right:100},children:[new t({children:[new e({text:(d+1).toString(),size:20})],alignment:i.CENTER})]}),new r({verticalAlign:l.CENTER,margins:{top:100,bottom:100,left:100,right:100},children:[new t({children:[new e({text:((b=n==null?void 0:n.item)==null?void 0:b.name)||"",size:20})],alignment:i.CENTER})]}),new r({verticalAlign:l.TOP,margins:{top:100,bottom:100,left:100,right:100},children:[new t({children:[new e({text:(n==null?void 0:n.deno)||(n==null?void 0:n.description)||"",size:20})],alignment:i.LEFT})]}),new r({verticalAlign:l.CENTER,margins:{top:100,bottom:100,left:100,right:100},children:[new t({children:[new e({text:`${((E=n==null?void 0:n.quantity)==null?void 0:E.toString())||""} ${((m=(x=n==null?void 0:n.item)==null?void 0:x.baseunit)==null?void 0:m.name)||""}`,size:20})],alignment:i.CENTER})]})]})}):[new g({height:{value:12e3,rule:p.ATLEAST},children:[new r({columnSpan:4,verticalAlign:l.TOP,children:[new t({children:[new e({text:"",size:20})]})]})]})]]}),new t({children:[new e({text:"Detailed Technical Specifications sheet is attached for your perusal and strict compliance.) ",size:22})],spacing:{before:300,after:200}}),new t({children:[new e({text:"Your ",size:22}),new e({text:"commercial & technical offer",bold:!0,size:22}),new e({text:" should be submitted in line with the following:",size:22})],spacing:{before:300,after:200}}),new t({children:[new e({text:"Products must ",size:22}),new e({text:"strictly conform",bold:!0,size:22}),new e({text:" to the attached technical specifications.",size:22})],bullet:{level:0},spacing:{after:100}}),new t({children:[new e({text:"Any ",size:22}),new e({text:"deviations",bold:!0,size:22}),new e({text:" (if unavoidable) must be clearly highlighted, justified, and mentioned in the compliance sheet.",size:22})],bullet:{level:0},spacing:{after:100}}),new t({children:[new e({text:"The ",size:22}),new e({text:"Technical Compliance Sheet",bold:!0,size:22}),new e({text:" must be duly ",size:22}),new e({text:"signed & stamped",bold:!0,size:22}),new e({text:" and forwarded along with your offer.",size:22})],bullet:{level:0},spacing:{after:200}}),new t({children:[new e({text:"Please forward your offer along with the following documents for onward submission to the end customer:",size:22})],spacing:{after:200}}),new t({children:[new e({text:"(a)   OEM Authorization",bold:!0,size:22}),new e({text:" – On your letterhead, as per the enclosed format.",size:22})],spacing:{after:100}}),new t({children:[new e({text:"(b)   MII (Make in India) Certificate",bold:!0,size:22}),new e({text:" – On your letterhead, as per the enclosed format.",size:22})],spacing:{after:100}}),new t({children:[new e({text:"(c)   Technical Compliance Sheet",bold:!0,size:22}),new e({text:" – Signed & sealed against attached specifications.",size:22})],spacing:{after:100}}),new t({children:[new e({text:"d) Experience Proof",bold:!0,size:22}),new e({text:" – Copies of POs/Work Orders for similar supplies made to Defence/PSUs/Central or State Govt. /Public Limited Cos. in the past ",size:22}),new e({text:"1 year",bold:!0,size:22}),new e({text:".",size:22})],spacing:{after:100}}),new t({children:[new e({text:"(e) Type Test Certificates & Product Data Sheets",bold:!0,size:22}),new e({text:" – For the items being offered.",size:22})],spacing:{after:300}}),new t({children:[new e({text:"Since this requirement is ",size:22}),new e({text:"time-sensitive",bold:!0,size:22}),new e({text:", we request your complete response ",size:22}),new e({text:"by return mail at the earliest",bold:!0,size:22}),new e({text:".",size:22})],spacing:{after:300}}),new t({children:[new e({text:"We look forward to receiving your most competitive offer along with the requisite documents.",size:22})],spacing:{after:400}}),new t({children:[new e({text:"Best Regards,",bold:!0,size:22})],spacing:{after:600}}),new t({children:[new e({text:"Manager Operation",size:22})],spacing:{after:100}}),new t({children:[new e({text:w.name,size:22})],spacing:{after:100}}),new t({children:[new e({text:`Mobile: ${w.mobile}`,size:22})],spacing:{after:100}}),new t({children:[new e({text:"Email: ",size:22}),new e({text:w.email,size:22,color:"0000FF",underline:{}})]})]}]}),C=await R.toBlob(T),u=URL.createObjectURL(C),a=document.createElement("a");a.href=u,a.download=`Purchase_Enquiry_${new Date().getTime()}.docx`,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(u)}export{S as g};
