PageSourceSearch

https://anyserv.eu/_astro/InvoicePdf.18EKqdZK.js

js anyserv.eu collected 2026-10-02 01:02:32 UTC 9,277 bytes, 1 lines download raw bytes

1import{j as e}from"./jsx-runtime.u17CrQMm.js";import{Document as P,Page as I,View as o,Image as v,Text as l,StyleSheet as E,Font as u}from"./react-pdf.browser.oChrVxVZ.js";import{c as O,a as F,b as G}from"./InvoiceApp.DnplZP1s.js";const H="https://cdnjs.cloudflare.com/ajax/libs/ink/3.1.10/fonts/Roboto/roboto-regular-webfont.ttf",q="https://cdnjs.cloudflare.com/ajax/libs/ink/3.1.10/fonts/Roboto/roboto-bold-webfont.ttf";try{u.register({family:"Roboto",fonts:[{src:H,fontWeight:400},{src:q,fontWeight:700}]}),u.registerHyphenationCallback(n=>[n])}catch{}const r={black:"#111111",gray:"#666666",lightGray:"#f5f5f5",medGray:"#dddddd",red:"#b91c1c"},t=E.create({page:{fontFamily:"Roboto",fontSize:10,color:r.black,padding:56,lineHeight:1.35},headerRow:{flexDirection:"row",marginBottom:22,gap:24},logoBox:{width:130},logoImg:{width:130,maxHeight:90,objectFit:"contain"},logoPlaceholder:{width:130,height:90},headerBlock:{flex:1},lbl:{fontSize:7,fontWeight:700,color:r.gray,letterSpacing:.4,marginBottom:4},addr:{fontSize:10,color:r.black,lineHeight:1.55},metaBar:{flexDirection:"row",backgroundColor:r.lightGray,marginBottom:20,borderRadius:4},metaCell:{flex:1,padding:10},metaVal:{fontSize:10,fontWeight:700,color:r.black,marginTop:3},shipBlock:{marginBottom:14},poRow:{flexDirection:"row",gap:20,marginBottom:12},poBlock:{flex:1},h2:{fontSize:12,fontWeight:700,color:r.black,marginBottom:8},tableHeader:{flexDirection:"row",borderBottomWidth:1.5,borderBottomColor:r.black,paddingBottom:5,marginBottom:0},tableRow:{flexDirection:"row",borderBottomWidth:.5,borderBottomColor:r.medGray,paddingTop:5,paddingBottom:5},tableRowLast:{flexDirection:"row",borderBottomWidth:1.5,borderBottomColor:r.black,paddingTop:5,paddingBottom:5},th:{fontSize:7.5,fontWeight:700,color:r.black},td:{fontSize:10,color:r.black},tdBold:{fontSize:10,fontWeight:700,color:r.black},colDesc:{flex:3,paddingRight:4},colQty:{width:42,textAlign:"right",paddingHorizontal:2},colPrice:{width:52,textAlign:"right",paddingHorizontal:2},colVat:{width:40,textAlign:"right",paddingHorizontal:2},colNet:{width:58,textAlign:"right",paddingHorizontal:2},colGross:{width:62,textAlign:"right",paddingLeft:2},tableWrapper:{marginBottom:16},footer:{flexDirection:"row",gap:28,marginTop:16},notesBlock:{flex:1},notesLbl:{fontSize:7,fontWeight:700,color:r.gray,letterSpacing:.4,marginBottom:4},notesText:{fontSize:9,color:"#444444",lineHeight:1.55},totalsBlock:{width:220},totRow:{flexDirection:"row",marginBottom:3},totLbl:{flex:1,fontSize:10,color:r.gray},totVal:{fontSize:10,color:r.black,textAlign:"right"},totValRed:{fontSize:10,color:r.red,textAlign:"right"},grandRow:{flexDirection:"row",borderTopWidth:1,borderTopColor:r.medGray,marginTop:4,paddingTop:6},grandLbl:{flex:1,fontSize:13,fontWeight:700,color:r.black},grandVal:{fontSize:13,fontWeight:700,color:r.black,textAlign:"right"}});function c(n,b){try{return new Intl.NumberFormat("en-US",{style:"currency",currency:b,minimumFractionDigits:2,maximumFractionDigits:2}).format(n)}catch{return`${n.toFixed(2)} ${b}`}}const j={en:{fromLbl:"FROM:",toLabel:"BILL TO:",noLbl:"Invoice No.",dateLbl:"Date",dueLbl:"Due Date",currLbl:"Currency",itemsTitle:"Line Items",descCol:"Description",qtyCol:"Qty",priceCol:"Unit Price",vatCol:"Tax %",netCol:"Net",grossCol:"Gross",notesLbl:"NOTES",subtotalLbl:"Subtotal (net)",discountLbl:"Discount",netAfterLbl:"Net after discount",vatLbl:"VAT Amount",shippingLbl:"Shipping",grandLbl:"Grand Total",poLbl:"PO / Reference",payTermsLbl:"Payment Terms",shipToLbl:"SHIP TO:"},pl:{fromLbl:"SPRZEDAWCA:",toLabel:"NABYWCA:",noLbl:"Nr faktury",dateLbl:"Data",dueLbl:"Termin",currLbl:"Waluta",itemsTitle:"Pozycje",descCol:"Opis",qtyCol:"Ilość",priceCol:"Cena jedn.",vatCol:"VAT %",netCol:"Netto",grossCol:"Brutto",notesLbl:"UWAGI",subtotalLbl:"Suma netto",discountLbl:"Rabat",netAfterLbl:"Netto po rabacie",vatLbl:"Kwota VAT",shippingLbl:"Wysyłka",grandLbl:"Razem do zapłaty",poLbl:"Nr zamówienia / ref.",payTermsLbl:"Warunki płatności",shipToLbl:"ADRES DOSTAWY:"},de:{fromLbl:"VON:",toLabel:"AN:",noLbl:"Rechnungsnr.",dateLbl:"Datum",dueLbl:"Fällig am",currLbl:"Währung",itemsTitle:"Positionen",descCol:"Beschreibung",qtyCol:"Menge",priceCol:"Einzelpreis",vatCol:"Steuer %",netCol:"Netto",grossCol:"Brutto",notesLbl:"HINWEISE",subtotalLbl:"Zwischensumme (netto)",discountLbl:"Rabatt",netAfterLbl:"Netto nach Rabatt",vatLbl:"MwSt.-Betrag",shippingLbl:"Versand",grandLbl:"Gesamtbetrag",poLbl:"Bestellnr. / Ref.",payTermsLbl:"Zahlungsbedingungen",shipToLbl:"LIEFERADRESSE:"},fr:{fromLbl:"DE :",toLabel:"FACTURÉ À :",noLbl:"N° de facture",dateLbl:"Date",dueLbl:"Échéance",currLbl:"Devise",itemsTitle:"Lignes",descCol:"Description",qtyCol:"Qté",priceCol:"Prix unit.",vatCol:"Taxe %",netCol:"Net",grossCol:"TTC",notesLbl:"NOTES",subtotalLbl:"Sous-total (net)",discountLbl:"Remise",netAfterLbl:"Net après remise",vatLbl:"Montant TVA",shippingLbl:"Livraison",grandLbl:"Total TTC",poLbl:"Bon de commande / réf.",payTermsLbl:"Conditions de paiement",shipToLbl:"LIVRER À :"},es:{fromLbl:"DE:",toLabel:"PARA:",noLbl:"Nº factura",dateLbl:"Fecha",dueLbl:"Vencimiento",currLbl:"Moneda",itemsTitle:"Líneas",descCol:"Descripción",qtyCol:"Cant.",priceCol:"Precio u.",vatCol:"Imp. %",netCol:"Neto",grossCol:"Bruto",notesLbl:"NOTAS",subtotalLbl:"Subtotal (neto)",discountLbl:"Descuento",netAfterLbl:"Neto tras descuento",vatLbl:"Importe IVA",shippingLbl:"Envío",grandLbl:"Total",poLbl:"Pedido / ref.",payTermsLbl:"Condiciones de pago",shipToLbl:"ENVIAR A:"}};function M(n){return j[n]??j.en}function $({data:n,lang:b="en"}){const s=M(b),a=O(n),{from:T,to:C,invoiceNumber:B,issueDate:R,dueDate:w,currency:i,items:h,notes:g,logoSrc:m,po:L,paymentTerms:y,shipTo:x}=n,S=a.discountAmount>1e-6,A=a.ship>1e-6,p=L?.trim(),f=y?.trim(),D=x?.trim();return e.jsx(P,{children:e.jsxs(I,{size:"A4",style:t.page,children:[e.jsxs(o,{style:t.headerRow,children:[e.jsx(o,{style:t.logoBox,children:m?e.jsx(v,{src:m,style:t.logoImg}):e.jsx(o,{style:t.logoPlaceholder})}),e.jsxs(o,{style:t.headerBlock,children:[e.jsx(l,{style:t.lbl,children:s.fromLbl}),e.jsx(l,{style:t.addr,children:T||"-"})]}),e.jsxs(o,{style:t.headerBlock,children:[e.jsx(l,{style:t.lbl,children:s.toLabel}
1),e.jsx(l,{style:t.addr,children:C||"-"})]})]}),D?e.jsxs(o,{style:t.shipBlock,children:[e.jsx(l,{style:t.lbl,children:s.shipToLbl}),e.jsx(l,{style:t.addr,children:x})]}):null,p||f?e.jsxs(o,{style:t.poRow,children:[p?e.jsxs(o,{style:t.poBlock,children:[e.jsx(l,{style:t.lbl,children:s.poLbl}),e.jsx(l,{style:t.addr,children:L})]}):null,f?e.jsxs(o,{style:t.poBlock,children:[e.jsx(l,{style:t.lbl,children:s.payTermsLbl}),e.jsx(l,{style:t.addr,children:y})]}):null]}):null,e.jsxs(o,{style:t.metaBar,children:[e.jsxs(o,{style:t.metaCell,children:[e.jsx(l,{style:t.lbl,children:s.noLbl}),e.jsx(l,{style:t.metaVal,children:B||"-"})]}),e.jsxs(o,{style:t.metaCell,children:[e.jsx(l,{style:t.lbl,children:s.dateLbl}),e.jsx(l,{style:t.metaVal,children:R||"-"})]}),e.jsxs(o,{style:t.metaCell,children:[e.jsx(l,{style:t.lbl,children:s.dueLbl}),e.jsx(l,{style:t.metaVal,children:w||"-"})]}),e.jsxs(o,{style:t.metaCell,children:[e.jsx(l,{style:t.lbl,children:s.currLbl}),e.jsx(l,{style:t.metaVal,children:i})]})]}),e.jsx(l,{style:t.h2,children:s.itemsTitle}),e.jsxs(o,{style:t.tableWrapper,children:[e.jsxs(o,{style:t.tableHeader,children:[e.jsx(l,{style:[t.th,t.colDesc],children:s.descCol}),e.jsx(l,{style:[t.th,t.colQty],children:s.qtyCol}),e.jsx(l,{style:[t.th,t.colPrice],children:s.priceCol}),e.jsx(l,{style:[t.th,t.colVat],children:s.vatCol}),e.jsx(l,{style:[t.th,t.colNet],children:s.netCol}),e.jsx(l,{style:[t.th,t.colGross],children:s.grossCol})]}),h.map((d,k)=>{const N=k===h.length-1,V=F(d),z=G(d),W=N?t.tableRowLast:t.tableRow;return e.jsxs(o,{style:W,children:[e.jsx(l,{style:[t.td,t.colDesc],children:d.description||"-"}),e.jsx(l,{style:[t.td,t.colQty],children:String(d.quantity??"")}),e.jsx(l,{style:[t.td,t.colPrice],children:d.unitPrice.toFixed(2)}),e.jsxs(l,{style:[t.td,t.colVat],children:[d.vatRate,"%"]}),e.jsx(l,{style:[t.td,t.colNet],children:c(V,i)}),e.jsx(l,{style:[t.tdBold,t.colGross],children:c(z,i)})]},d.id)})]}),e.jsxs(o,{style:t.footer,children:[e.jsx(o,{style:t.notesBlock,children:g?e.jsxs(e.Fragment,{children:[e.jsx(l,{style:t.notesLbl,children:s.notesLbl}),e.jsx(l,{style:t.notesText,children:g})]}):null}),e.jsxs(o,{style:t.totalsBlock,children:[e.jsxs(o,{style:t.totRow,
1children:[e.jsx(l,{style:t.totLbl,children:s.subtotalLbl}),e.jsx(l,{style:t.totVal,children:c(a.sumNet,i)})]}),S?e.jsxs(e.Fragment,{children:[e.jsxs(o,{style:t.totRow,children:[e.jsx(l,{style:t.totLbl,children:s.discountLbl}),e.jsx(l,{style:t.totValRed,children:`-${c(a.discountAmount,i)}`})]}),e.jsxs(o,{style:t.totRow,children:[e.jsx(l,{style:t.totLbl,children:s.netAfterLbl}),e.jsx(l,{style:t.totVal,children:c(a.netAfter,i)})]})]}):null,e.jsxs(o,{style:t.totRow,children:[e.jsx(l,{style:t.totLbl,children:s.vatLbl}),e.jsx(l,{style:t.totVal,children:c(a.vatAfter,i)})]}),A?e.jsxs(o,{style:t.totRow,children:[e.jsx(l,{style:t.totLbl,children:s.shippingLbl}),e.jsx(l,{style:t.totVal,children:c(a.ship,i)})]}):null,e.jsxs(o,{style:t.grandRow,children:[e.jsx(l,{style:t.grandLbl,children:s.grandLbl}),e.jsx(l,{style:t.grandVal,children:c(a.grand,i)})]})]})]})]})})}export{$ as InvoicePdf};

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.