PageSourceSearch

https://www.jaano.ai/assets/pdfgen-D5VoMHKf.js

js jaano.ai collected 2026-10-05 12:06:42 UTC 7,123 bytes, 3 lines download raw bytes

1import{E as te,a as oe}from"./jspdf.plugin.autotable-Cevp0Z8-.js";import"./main-GjrWZzpG.js";import"./react-core-BF8cVBpG.js";import"./framer-vendor-GOmNIWbc.js";const v={name:"Token AI Labs Pvt. Ltd.",cin:"CIN: U62099MH2024PTC433961",address:"415 Krushal Commercial Complex, GM Road, Chembur, Mumbai, India-400089. [email protected]"},x=[0,43,92],w=[0,102,178],y=[255,255,255],D=[0,0,0],k=[240,240,240];function ne(r){if(r===0)return"Zero";const l=["","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen"],o=["","","Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety"],i=s=>s<20?l[s]:s<100?o[Math.floor(s/10)]+(s%10?"-"+l[s%10]:""):s<1e3?l[Math.floor(s/100)]+" Hundred"+(s%100?" "+i(s%100):""):s<1e5?i(Math.floor(s/1e3))+" Thousand"+(s%1e3?" "+i(s%1e3):""):s<1e7?i(Math.floor(s/1e5))+" Lakh"+(s%1e5?" "+i(s%1e5):""):i(Math.floor(s/1e7))+" Crore"+(s%1e7?" "+i(s%1e7):""),n=Math.floor(Math.abs(r)),d=Math.round((Math.abs(r)-n)*100);let c=i(n);return d>0&&(c+=" Point "+i(d)),c}function ie(r){return r?(typeof r=="number"&&r>0?new Date(r*1e3):new Date(r)).toLocaleDateString("en-GB"):new Date().toLocaleDateString("en-GB")}function re(r){const l=r.toFixed(2),[o,i]=l.split(".");let n="";const d=o.replace(/^-/,"");if(d.length<=3)n=d;else{n=d.slice(-3);let c=d.slice(0,-3);for(;c.length>2;)n=c.slice(-2)+","+n,c=c.slice(0,-2);c.length>0&&(n=c+","+n)}return o.startsWith("-")&&(n="-"+n),n+"."+i}function m(r,l){const o=parseFloat(r)||0;return l==="INR"?"Rs. "+re(o)+"/-":"$"+o.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})+"/-"}function se(r,l){const o=(r||"").toLowerCase(),i=l&&l!=="week"&&parseInt(l)||1,n=i===1?"Monthly":i===3?"Quarterly":i===6?"Semi-annual":i===12?"Annual":`${i}-month`;return o.includes("voice agent")||o.includes("voice_agent")||o.includes("ignite")||o.includes("accelerate")||o.includes("dominate")||o.includes("enterprise")&&(o.includes("voice")||o.includes("agent"))?o.includes("starter")?`${n} fee for voice AI agent – Starter tier`:o.includes("growth")?`${n} fee for voice AI agent – Growth tier`:o.includes("enterprise")?`${n} enterprise fee for voice AI agent services`:`${n} subscription fee for voice AI agent services`:o.includes("starter")?"Weekly fee for chatbot evaluation and testing":o.includes("standard")?`${n} subscription fee for chatbot integration and analytics`:o.includes("enterprise")?`${n} enterprise fee for chatbot integration and analytics`:o==="growth"?`${n} subscription fee for the Growth plan`:o==="scale"?`${n} subscription fee for the Scale plan`:`${n} subscription fee for chatbot services`}function le(r,l,o){const i=r&&r>0?new Date(r*1e3):new Date,n=new Date(i);if((l||"").toLowerCase().includes("starter")||o==="week")n.setDate(n.getDate()+7);else{const c=parseInt(o)||1;n.setMonth(n.getMonth()+c)}return`${i.toLocaleDateString("en-GB")}
2- ${n.toLocaleDateString("en-GB")}`}const he=(r,l,o,i,n,d,c,s,F,O,R,z,H)=>{const p=R==="preview",e=new te("p","mm","a4"),g=e.internal.pageSize.getWidth(),P=e.internal.pageSize.getHeight(),a=15;let t=10;e.setFontSize(7),e.setTextColor(...w),e.text(v.cin,a,t),t+=6,e.setFontSize(28),e.setFont("Helvetica","bold"),e.setTextColor(...D),e.text("INVOICE",a,t+8),e.setFontSize(16),e.setFont("Helvetica","bold"),e.setTextColor(...x);const $="TOKEN",Y=e.getTextWidth($),I="AI";e.setTextColor(...w);const U=e.getTextWidth(I);e.setFontSize(7),e.setTextColor(150,150,150);const L="LABS",K=e.getTextWidth(L),E=g-a-K,A=E-U-1.5,X=A-Y-.3;e.setFontSize(16),e.setFont("Helvetica","bold"),e.setTextColor(...x),e.text($,X,t+2),e.setTextColor(...w),e.text(I,A,t+2),e.setFontSize(7),e.setTextColor(150,150,150),e.text(L,E,t-1),t+=16,e.setFontSize(9),e.setFont("Helvetica","bold"),e.setTextColor(...x),!p&&z&&(e.text(`Invoice Number: ${z}`,g-a,t,{align:"right"}),t+=5),e.text(`Invoice Date: ${ie(F)}`,g-a,t,{align:"right"}),t=t-(p?0:5),e.setFontSize(10),e.setFont("Helvetica","bold"),e.setTextColor(...D),e.text("BILL TO",a,t),t+=5,e.setFontSize(9),e.setFont("Helvetica","normal"),e.setTextColor(50,50,50);const T=O||{};[T.companyName||n||"Customer",T.address||"",d?`+${d}`:"",n||"",T.gstin?`GSTIN - ${T.gstin}`:"",T.pan?`PAN - ${T.pan}
2`:""].filter(Boolean).forEach(h=>{e.splitTextToSize(h,100).forEach(ee=>{e.text(ee,a,t),t+=4})}),t+=4;const _=(i||"Plan").charAt(0).toUpperCase()+(i||"plan").slice(1),q=m(r,o),Q=le(F,i,H),V=m(r,o);let M=t+30;oe(e,{startY:t,margin:{left:a,right:a},head:[["Plan & Description","Unit Price","Period","Amount"]],body:[[`${_}
3${se(i,H)}`,q,Q,V]],headStyles:{fillColor:x,textColor:y,fontStyle:"bold",fontSize:9,cellPadding:4},bodyStyles:{fontSize:8.5,cellPadding:5,textColor:[30,30,30],lineColor:[200,200,200],lineWidth:.1},columnStyles:{0:{cellWidth:75},1:{cellWidth:35,halign:"center"},2:{cellWidth:40,halign:"center"},3:{cellWidth:30,halign:"center"}},theme:"grid",didDrawPage:h=>{M=h.cursor.y}}),t=M+8;const u=g-a-80,S=80;let f=t;e.setDrawColor(200,200,200),e.setFillColor(...k),e.rect(u,f-3,S,10,"FD"),e.setFontSize(8),e.setFont("Helvetica","normal"),e.setTextColor(80,80,80),e.text("Sub-Total",u+3,f+2),e.text(m(r,o),u+S-3,f+2,{align:"right"}),f+=12,e.setFillColor(...x),e.rect(u,f-3,S,12,"F"),e.setFontSize(10),e.setFont("Helvetica","bold"),e.setTextColor(...y),e.text("Total",u+3,f+3),e.text(m(r,o),u+S-3,f+3,{align:"right"}),f+=15,e.setDrawColor(200,200,200),e.setFillColor(...k);const W=20;e.rect(u,f-3,S,W,"FD"),e.setFontSize(8),e.setFont("Helvetica","normal"),e.setTextColor(80,80,80),e.text("Total in words:",u+3,f+3),e.setFont("Helvetica","bold"),e.setTextColor(50,50,50);const Z=ne(parseFloat(r)||0)+" Only.",j=e.splitTextToSize(Z,S-40);let G=f+3;j.forEach(h=>{e.text(h,u+32,G),G+=4}),t=f+W+10,e.setFontSize(9),e.setFont("Helvetica","bold"),e.setTextColor(...D),e.text("NOTES / TERMS:",a,t),t+=5,e.setFont("Helvetica","normal"),e.setFontSize(8),e.setTextColor(50,50,50);const C=new Date(F&&F>0?F*1e3:Date.now());C.setDate(C.getDate()+30),e.text(`Payment is due by ${C.toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"})}.`,a,t),t+=10,e.setFontSize(9),e.setFont("Helvetica","italic"),e.setTextColor(80,80,80),e.text("This invoice has been digitally generated and does not require a signature.",g/2,t,{align:"center"}),t+=8,t+=4,e.setDrawColor(180,180,180),e.line(a,t,g-a,t),t+=7,e.setFontSize(11),e.setFont("Helvetica","bold"),e.setTextColor(...x),e.text("Thank you for your business",g/2,t,{align:"center"}),t+=8;const N=20,b=P-N;if(e.setFillColor(...x),e.rect(0,b,g,N,"F"),e.setFontSize(13),e.setFont("Helvetica","bold"),e.setTextColor(...y),e.text(v.name,g/2,b+8,{align:"center"}),e.setFontSize(6.5),e.setFont("Helvetica","normal"),e.text(v.address,g/2,b+14,{align:"center"}),p){e.saveGraphicsState(),e.setGState(new e.GState({opacity:.12})),e.setFontSize(70),e.setFont("Helvetica","bold"),e.setTextColor(200,0,0);const h=g/2,B=P/2;e.text("DEMO RECEIPT",h,B,{align:"center",angle:45}),e.restoreGraphicsState()}const J=p?`invoice_preview_${i||"plan"}.pdf`:`invoice_${l||c||"receipt"}.pdf`;e.save(J)};export{he as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.