PageSourceSearch

https://rutiinihakkeri.fi/_next/static/chunks/pages/invoice/print/[idInvoice]-a9e62008ddd57a21.js

js rutiinihakkeri.fi collected 2026-09-29 02:25:30 UTC 29,113 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2065],{78548:function(e,o,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/invoice/print/[idInvoice]",function(){return t(81297)}])},81297:function(e,o,t){"use strict";t.r(o),t.d(o,{__N_SSP:function(){return N},default:function(){return W}});var r=t(34727),n=t(97582),a=t(85893),i=t(67294),l=t(54710),s=t(85405),d=t(9008),c=t.n(d),m=t(30120),p=t(16494),y=t(41664),u=t.n(y),x=t(53536),b=t(71033),S=t(65783),f=t(61715),h=t(14251),g=t(52875),A=t(24831),w={fontSize:"12px",lineHeight:"1",color:"#374151",marginBottom:"4px"};function B(e){var o=e.address;if(!o)return null;var t=(0,h.Z)({},w);o.line2||(t.marginBottom="8px");var r=o.country||"";return r=2===r.length?r.toUpperCase():(0,A.k)(r,{lowerCaseTail:!0,capitalizeWords:!0}),(0,a.jsxs)(l.G7,{style:{display:"flex",flexDirection:"column",width:"100%",marginTop:"8px"},children:[o.line1&&(0,a.jsx)(l.xv,{style:t,children:o.line1}),o.line2&&(0,a.jsx)(l.xv,{style:(0,g.Z)((0,h.Z)({},w),{marginBottom:"8px"}),children:o.line2}),(0,a.jsxs)(l.xv,{style:w,children:[o.city&&o.city,o.state?(o.city&&", ")+o.state:"",r?(o.state&&" - ")+r:""]}),o.postalCode&&(0,a.jsx)(l.xv,{style:w,children:o.postalCode})]})}var D=t(23226),v=t(89774),j=t(57333),L=[{code:"USD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:1},{code:"EUR",symbol:"\u20ac",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:2},{code:"BRL",symbol:"R$",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:3},{code:"JPY",symbol:"\xa5",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:0,order:3},{code:"GBP",symbol:"\xa3",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:4},{code:"AUD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:5},{code:"CAD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:6},{code:"CHF",symbol:"\u20a3",thousandsSeparator:"'",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:7},{code:"CNY",symbol:"\xa5",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:8},{code:"SEK",symbol:"kr",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:9},{code:"MXN",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:10},{code:"NZD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:11},{code:"SGD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:12},{code:"HKD",symbol:"HK$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:13},{code:"NOK",symbol:"kr",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:14},{code:"KRW",symbol:"\u20a9",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:0,order:15},{code:"TRY",symbol:"\u20ba",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:16},{code:"INR",symbol:"\u20b9",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:17},{code:"RUB",symbol:"\u20bd",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:18},{code:"ZAR",symbol:"R",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:20},{code:"DKK",symbol:"kr.",thousandsSeparator:!1,decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:21},{code:"PLN",symbol:"z\u0142",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:22},{code:"TWD",symbol:"NT$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:23},{code:"THB",symbol:"\u0e3f",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:24}
1,{code:"MYR",symbol:"RM",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:25},{code:"KWD",symbol:"\u062f.\u0643.\u200f",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:3,order:26},{code:"BHD",symbol:"\u062f.\u0628.\u200f",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:3,order:27},{code:"OMR",symbol:"\ufdfc",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:3,order:28},{code:"JOD",symbol:"\u062f.\u0627.\u200f",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:3,order:29},{code:"GIP",symbol:"\xa3",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:30},{code:"KYD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:31},{code:"AED",symbol:"\u062f.\u0625",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"ANG",symbol:"\u0192",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"AZN",symbol:"\u20bc",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"BAM",symbol:"\u041a\u041c",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"BBD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"BGN",symbol:"\u043b\u0432.",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"BND",symbol:"$",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:0,order:99},{code:"BOB",symbol:"Bs",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"BWP",symbol:"P",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"BYN",symbol:"\u0440.",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"BZD",symbol:"BZ$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"DOP",symbol:"RD$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"ERN",symbol:"Nfk",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"FJD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"GEL",symbol:"GEL",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"GHS",symbol:"\u20b5",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"GTQ",symbol:"Q",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"HRK",symbol:"kn",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"HTG",symbol:"G",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99}
1,{code:"ILS",symbol:"\u20aa",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"ISK",symbol:"kr.",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:0,order:99},{code:"LKR",symbol:"\u20a8",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:0,order:99},{code:"LSL",symbol:"M",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"LYD",symbol:"\u062f.\u0644.\u200f",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:3,order:99},{code:"MAD",symbol:"\u062f.\u0645.\u200f",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"MDL",symbol:"lei",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"MKD",symbol:"\u0434\u0435\u043d.",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"MOP",symbol:"MOP$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"MVR",symbol:"MVR",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:1,order:99},{code:"MZN",symbol:"MT",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:0,order:99},{code:"NAD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"NIO",symbol:"C$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"NPR",symbol:"\u20a8",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"PGK",symbol:"K",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"PHP",symbol:"\u20b1",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"PKR",symbol:"\u20a8",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"QAR",symbol:"\ufdfc",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"RON",symbol:"L",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"RSD",symbol:"\u0414\u0438\u043d.",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"SAR",symbol:"\ufdfc",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"SBD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"SCR",symbol:"\u20a8",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"SOS",symbol:"S",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"SRD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"SVC",symbol:"\u20a1",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"SZL",symbol:"E",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"TJS",symbol:"TJS",thousandsSeparator:" ",decimalSeparator:";",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"TMT",symbol:"m",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:0,order:99},{code:"TND",symbol:"\u062f.\u062a.\u200f",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:3,order:99}
1,{code:"TOP",symbol:"T$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"TTD",symbol:"TT$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"UAH",symbol:"\u20b4",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"UYU",symbol:"$U",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"WST",symbol:"WS$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"XCD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99},{code:"YER",symbol:"\ufdfc",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2,order:99},{code:"ZMW",symbol:"ZK",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2,order:99}];function O(e){var o=e.className,t=e.type,r=e.value,n=e.currency,l=e.onChange,d=e.onRender,c=(0,i.useState)(null),m=c[0],p=c[1],y=!(0,s.$K)(null===m||void 0===m?void 0:m.symbolOnLeft)||(null===m||void 0===m?void 0:m.symbolOnLeft),u=function(){var e=(null===m||void 0===m?void 0:m.symbol)||"$";return(null===m||void 0===m?void 0:m.spaceBetweenAmountAndSymbol)?"".concat(y?"":" ").concat(e).concat(y?" ":""):e};return(0,i.useEffect)((function(){var e,o=(e=n||"usd",L.find((function(o){return o.code===e.toUpperCase()})));p(o)}),[n]),(0,a.jsx)(j.default,{displayType:t||"text",className:o,value:r||0,isNumericString:"string"===typeof r,thousandSeparator:(0,s.$K)(null===m||void 0===m?void 0:m.thousandsSeparator)?m.thousandsSeparator:",",decimalSeparator:(0,s.$K)(null===m||void 0===m?void 0:m.decimalSeparator)?m.decimalSeparator:".",decimalScale:(null===m||void 0===m?void 0:m.decimalDigits)||2,prefix:y?u():"",suffix:y?"":u(),allowNegative:!1,allowLeadingZeros:!1,allowEmptyFormatting:!1,onChange:l,renderText:d})}l.mM.create({section:{margin:10,padding:10,flexGrow:1}});var N=!0;function W(e){var o,t=e.invoice,i=e.website,d=e.office,y=e.apiUrl,h=(0,v.$G)("page_invoice").t;(0,s.$O)(i.secondaryColor);l.Zx.register({family:"Inter",fonts:[{src:(0,s.sd)("fonts/Inter-Light.ttf"),fontWeight:300},{src:(0,s.sd)("fonts/Inter-Regular.ttf")},{src:(0,s.sd)("fonts/Inter-Medium.ttf"),fontWeight:500},{src:(0,s.sd)("fonts/Inter-SemiBold.ttf"),fontWeight:600},{src:(0,s.sd)("fonts/Inter-Bold.ttf"),fontWeight:700}]}),l.Zx.register({family:"Noto Naskh Arabic",fonts:[{src:(0,s.sd)("fonts/NotoNaskhArabic-Regular.ttf")},{src:(0,s.sd)("fonts/NotoNaskhArabic-Medium.ttf"),fontWeight:500},{src:(0,s.sd)("fonts/NotoNaskhArabic-SemiBold.ttf"),fontWeight:600},{src:(0,s.sd)("fonts/NotoNaskhArabic-Bold.ttf"),fontWeight:700}]}),l.Zx.registerHyphenationCallback((function(e){return[e]})),l.Zx.register({family:"Helvetica"});var g=(t.subtotal.toFixed(4)*(1+t.tax)+(t.includeFees?t.fee:0)).toFixed(4),A=new D.Z(y),w=(0,f.Lm)(),j=function(){var e,o,r,n,c,p,y,u,x,b,S,f,A;return(0,a.jsx)(l.BB,{title:"".concat("paid"===t.status?h("receiptFor"):h("invoice")," #").concat(String(t.number).padStart(3,"0")),children:(0,a.jsxs)(l.T3,{size:"Letter",style:{display:"flex",flexDirection:"column",maxWidth:w,paddingBottom:"24px",fontFamily:["Inter","Noto Naskh Arabic"]},wrap:!0,children:[(0,a.jsxs)(l.G7,{style:{display:"flex",flexWrap:"nowrap",flexDirection:"row",alignItems:"center",padding:"32px",borderBottomWidth:"1px",borderBottomColor:"#E5E7EB"},fixed:!0,children:[(0,a.jsxs)(l.G7,{style:{display:"flex",flexDirection:"column",width:"100%"},children:[(0,a.jsx)(l.xv,{style:{fontSize:"28px",lineHeight:"1rem",fontWeight:"bold",marginBottom:"8px"},children:"paid"!==t.status?h("invoice"):h("receipt")}),(0,a.jsxs)(l.xv,{style:{fontSize:"14px",lineHeight:"1rem",fontWeight:"semibold"},children:["#",String(t.number).padStart(3,"0")]})]}),(0,a.jsx)(l.G7,{style:{display:"flex",flexDirection:"column",width:"100%"},children:(0,s.QW)(null===i||void 0===i?void 0:i.logo)&&(0,a.jsx)(l.Ee,{sizes:"200vw",quality:90,src:(0,s.QW)(null===i||void 0===i?void 0:i.logo),style:{height:"56px",maxWidth:"200px",objectFit:"contain",marginLeft:"auto",marginRight:0},allowDangerousPaths:"true",alt:null===(e=i.Business)||void 0===e?void 0:e.name})})]}),(0,a.jsx)(l.G7,{style:{display:"flex",flexWrap:"nowrap",flexDirection:"row",paddingHorizontal:"24px"},children:(0,a.jsx)(l.G7,{style:{display:"flex",flexWrap:"nowrap",flexDirection:"row",borderBottomWidth:"1px",borderBottomColor:"#E5E7EB"},children:(0,a.jsxs)(l.G7,{style:{display:"flex",flexWrap:"nowrap",flexDirection:"row",paddingVertical:"16px"},children:[(0,a.jsxs)(l.G7,{style:{display:"flex",flexDirection:"column",width:"100%",paddingRight:"10px"},children:[(0,a.jsx)(l.xv,{style:{fontSize:"12px",lineHeight:"1rem",fontWeight:"semibold",color:"#6B7280",marginBottom:"14px"},children:h("issued")}),(0,a.jsx)(l.xv,{style:{fontSize:"14px",lineHeight:"1rem",fontWeight:"bold",color:"#111827"},children:m.ou.fromISO(t.date).toFormat("DD")})]}),(0,a.jsxs)(l.G7,{style:{display:"flex",flexDirection:"column",width:"100%",paddingLeft:"10px"},children:[(0,a.jsx)(l.xv,{style:{fontSize:"12px",lineHeight:"1rem",fontWeight:"semibold",color:"#6B7280",marginBottom:"14px"},children:h("due")}),(0,a.jsx)(l.xv,{style:{fontSize:"14px",lineHeight:"1rem",fontWeight:"bold",color:"#111827"},children:m.ou.fromISO(t.dueDate).toFormat("DD")})]})]})})}),(0,a.jsx)(l.G7,{style:{display:"flex",flexWrap:"nowrap",flexDirection:"row",paddingHorizontal:"24px"},children:(0,a.jsxs)(l.G7,{style:{display:"flex",flexWrap:"nowrap",flexDirection:"row",borderBottomWidth:"1px",borderBottomColor:"#E5E7EB"},children:[(0,a.jsxs)(l.G7,{style:{display:"flex",flexDirection:"column",width:"100%",paddingVertical:"16px",paddingRight:"10px"},children:[(0,a.jsx)(l.xv,{style:{fontSize:"12px",lineHeight:"1rem",fontWeight:"semibold",color:"#6B7280",marginBottom:"14px"},children:h("from")}),(0,a.jsx)(l.xv,{style:{fontSize:"14px",lineHeight:"1rem",fontWeight:"bold",color:"#111827"},children:null===(o=i.Business)||void 0===o?void 0:o.name}),(null===(r=i.Business)||void 0===r||null===(n=r.settings)||void 0===n?void 0:n.businessNumber)&&(0,a.jsx)(l.xv,{style:{fontSize:"12px",lineHeight:"1rem",color:"#374151",marginTop:"8px"},children:null===(c=i.Business)||void 0===c||null===(p=c.settings)||void 0===p?void 0:p.businessNumber}),(null===d||void 0===d?void 0:d.address)&&(0,a.jsx)(B,{address:d.address})]}),(0,a.jsxs)(l.G7,{style:{display:"flex",flexDirection:"column",width:"100%",paddingVertical:"16px",paddingLeft:"10px"},children:[(0,a.jsx)(l.xv,{style:{fontSize:"12px",lineHeight:"1rem",fontWeight:"semibold",color:"#6B7280",marginBottom:"14px"},children:h("to")}),(0,a.jsx)(l.xv,{style:{fontSize:"14px",lineHeight:"1rem",fontWeight:"bold",color:"#111827"},children:(null===(y=t.Customer)||void 0===y?void 0:y.company)?null===(u=t.Customer)||void 0===u?void 0:u.company:"".concat(null===(x=t.Customer)||void 0===x?void 0:x.firstName," ").concat(null===(b=t.Customer)||void 0===b?void 0:b.lastName)}),(null===(S=i.Business)||void 0===S||null===(f=S.settings)||void 0===f?void 0:f.businessNumber)&&(0,a.jsx)(l.xv,{style:{fontSize:"12px",lineHeight:"1rem",color:"#374151",marginTop:"8px"}}),(null===(A=t.Customer)||void 0===A?void 0:A.address)&&(0,a.jsx)(B,{address:t.Customer.address})]})]})}),(0,a.jsx)(l.G7,{style:{display:"flex",flexWrap:"nowrap",flexDirection:"row",paddingHorizontal:"24px"},children:(0,a.jsx)(l.G7,{style:{display:"flex",flexWrap:"nowrap",flexDirection:"row",borderBottomWidth:"1px",borderBottomColor:"#E5E7EB"},children:(0,a.jsxs)(l.G7,{style:{display:"flex",flexDirection:"column",width:"100%",paddingVertical:"16px"},children:[(0,a.jsx)(l.xv,{style:{fontSize:"14px",lineHeight:"1rem",fontWeight:"bold",color:"#111827",marginBottom:"8px",textTransform:"capitalize"},children:h("item".concat(t.services.length>
11?"s":""))}),t.services.map((function(e,o){var r,n;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(l.G7,{style:{display:"flex",flexWrap:"wrap",flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:"16px",width:"100%",gap:"20px",backgroundColor:"#F9FAFB",borderRadius:"8px",marginTop:"8px"},children:[(0,a.jsxs)(l.G7,{style:{flex:"1",minWidth:"45%",display:"flex",flexDirection:"column"},children:[(0,a.jsx)(l.xv,{style:{fontSize:"14px",lineHeight:"1rem",fontWeight:"bold",marginBottom:"4"},children:e.name}),(0,a.jsx)(l.xv,{style:{fontSize:"10px",lineHeight:"1rem",color:"#6B7280"},children:e.description})]}),(0,a.jsxs)(l.G7,{style:{flex:"1",minWidth:"45%",display:"flex",flexWrap:"noWrap",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[(0,a.jsxs)(l.G7,{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},children:[(0,a.jsx)(l.G7,{children:(0,a.jsx)(O,{value:null===e||void 0===e||null===(r=e.price)||void 0===r?void 0:r.toFixed(4),currency:t.currency,onRender:function(e){return(0,a.jsxs)(l.xv,{style:{fontSize:"10px",lineHeight:"1rem",color:"#374151"},children:[e,"\xa0"]})}})}),e.type&&(0,a.jsxs)(l.xv,{style:{fontSize:"10px",lineHeight:"1rem",color:"#374151"},children:[h("per")," ",h(e.type)]})]}),(0,a.jsxs)(l.G7,{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},children:[(0,a.jsxs)(l.xv,{style:{fontSize:"10px",lineHeight:"1rem",color:"#374151"},children:["x\xa0",e.quantity,"\xa0"]}),e.type&&(0,a.jsx)(l.xv,{style:{fontSize:"10px",lineHeight:"1rem",color:"#374151"},children:h("".concat(e.type).concat(e.quantity>1?"s":""))})]}),(0,a.jsx)(l.G7,{children:(0,a.jsx)(O,{value:null===(n=(null===e||void 0===e?void 0:e.total)||(null===e||void 0===e?void 0:e.price)*e.quantity)||void 0===n?void 0:n.toFixed(4),currency:t.currency,onRender:function(e){return(0,a.jsx)(l.xv,{style:{fontSize:"14px",lineHeight:"1rem",fontWeight:"bold"},children:e})}})})]})]},"service-".concat(o))})}))]})})}),(0,a.jsx)(l.G7,{style:{display:"flex",flexWrap:"nowrap",flexDirection:"row",paddingHorizontal:"24px"},wrap:!1,children:(0,a.jsx)(l.G7,{style:[{display:"flex",flexWrap:"nowrap",flexDirection:"row"},("paid"!==t.status&&!t.enableCreditCardPayment&&t.paymentInstructions||t.additionalNotes)&&{borderBottomWidth:"1px",borderBottomColor:"#E5E7EB"}],children:(0,a.jsxs)(l.G7,{style:{display:"flex",flexDirection:"column",width:"100%",paddingVertical:"8px"},children:[(0,a.jsxs)(l.G7,{style:{display:"flex",flexWrap:"nowrap",flexDirection:"row",justifyContent:"space-between",paddingVertical:"8px"},children:[(0,a.jsx)(l.xv,{style:{fontSize:"12px",lineHeight:"1rem",color:"#6B7280"},children:h("subtotal")}),(0,a.jsx)(l.G7,{children:(0,a.jsx)(O,{value:t.subtotal.toFixed(4),currency:t.currency,onRender:function(e){return(0,a.jsx)(l.xv,{style:{fontSize:"12px",lineHeight:"1rem",fontWeight:"medium",textAlign:"right"},children:e})}})})]}),(0,a.jsxs)(l.G7,{style:{display:"flex",flexWrap:"nowrap",flexDirection:"row",justifyContent:"space-between",paddingVertical:"8px"},children:[(0,a.jsxs)(l.xv,{style:{fontSize:"12px",lineHeight:"1rem",color:"#6B7280"},children:[(100*t.tax).toFixed(3),"% ",h("tax")]}),(0,a.jsx)(l.G7,{children:(0,a.jsx)(O,{value:(t.subtotal.toFixed(4)*t.tax).toFixed(4),currency:t.currency,onRender:function(e){return(0,a.jsx)(l.xv,{style:{fontSize:"12px",lineHeight:"1rem",fontWeight:"medium",textAlign:"right"},children:e})}})})]}),t.includeFees&&(0,a.jsxs)(l.G7,{style:{display:"flex",flexWrap:"nowrap",flexDirection:"row",justifyContent:"space-between",paddingVertical:"8px"},children:[(0,a.jsx)(l.xv,{style:{fontSize:"12px",lineHeight:"1rem",color:"#6B7280"},children:h("creditFee")}),(0,a.jsx)(l.G7,{children:(0,a.jsx)(O,{value:t.fee.toFixed(4),currency:t.currency,onRender:function(e){return(0,a.jsx)(l.xv,{style:{fontSize:"12px",lineHeight:"1rem",fontWeight:"medium",textAlign:"right"},children:e})}})})]}),(0,a.jsxs)(l.G7,{style:{display:"flex",flexWrap:"nowrap",flexDirection:"row",justifyContent:"space-between",paddingVertical:"8px"},children:[(0,a.jsx)(l.xv,{style:{fontSize:"14px",lineHeight:"1rem",fontWeight:"semibold"},children:h("total")}),(0,a.jsx)(l.G7,{children:(0,a.jsx)(O,{value:g,currency:t.currency,onRender:function(e){return(0,a.jsx)(l.xv,{style:{fontSize:"14px",lineHeight:"1rem",fontWeight:"semibold",textAlign:"right"},children:e})}})})]})]})})}),("paid"!==t.status&&!t.enableCreditCardPayment&&t.paymentInstructions||t.additionalNotes)&&(0,a.jsx)(l.G7,{style:{display:"flex",flexWrap:"nowrap",flexDirection:"row",paddingHorizontal:"24px"},wrap:!1,children:(0,a.jsx)(l.G7,{style:{display:"flex",flexWrap:"nowrap",flexDirection:"row"},children:(0,a.jsxs)(l.G7,{style:{display:"flex",flexDirection:"column",width:"100%",paddingVertical:"16px"},children:["paid"!==t.status&&!t.enableCreditCardPayment&&t.paymentInstructions&&(0,a.jsxs)(l.G7,{style:{display:"flex",flexDirection:"column",width:"100%"},children:[(0,a.jsx)(l.xv,{style:{fontSize:"14px",lineHeight:"1rem",fontWeight:"bold",color:"#111827",marginBottom:"12px"},children:h("paymentInstructions")}),(0,a.jsx)(l.xv,{style:{fontSize:"10px",lineHeight:"1rem",color:"#6B7280"},children:t.paymentInstructions})]}),t.additionalNotes&&(0,a.jsxs)(l.G7,{style:{display:"flex",flexDirection:"column",width:"100%"},children:[(0,a.jsx)(l.xv,{style:{fontSize:"14px",lineHeight:"1rem",fontWeight:"bold",color:"#111827",marginBottom:"12px"},children:h("notes")}),(0,a.jsx)(l.xv,{style:{fontSize:"10px",lineHeight:"1rem",color:"#6B7280"},children:t.additionalNotes})]})]})})})]})})};function L(){return N.apply(this,arguments)}function N(){return(N=(0,r.Z)((function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,A.post("/invoice/register-download",{idInvoice:t._id})];case 1:return e.sent(),[2]}}))}))).apply(this,arguments)}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(c(),{children:[(0,a.jsxs)("title",{children:["paid"===t.status?h("receiptFor")+" ":""," ",h("invoice")," #",String(t.number).padStart(3,"0")," - ",i.Business.name]}),(0,a.jsx)("meta",{name:"description",content:("paid"===t.status?h("receiptFor")+" ":" ")+h("invoice")+" #"+String(t.number).padStart(3,"0")}),(0,a.jsx)("link",{rel:"icon",href:(null===i||void 0===i||null===(o=i.favicon)||void 0===o?void 0:o.url)||""}),(0,a.jsx)("meta",{name:"robots",content:"noindex,nofollow"})]}),(0,a.jsxs)("div",{className:"flex flex-col w-screen h-screen",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-6 py-2 px-4 lg:py-4 lg:px-6 lg:bg-gray-50 border-b border-gray-200",children:[(0,a.jsxs)("h6",{className:"text-h6 font-black text-gray-900",children:[h("invoice")," #",String(t.number).padStart(3,"0")]}),(0,a.jsx)("div",{className:"flex items-center gap-3",children:(0,a.jsx)(l.z6,{document:(0,a.jsx)(j,{}),children:function(e){e.blob;var o=e.url,r=e.loading;e.error;return r?(0,a.jsx)(p.Z,{}):o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("a",{href:o||"",download:"".concat(h("invoice")," #").concat(String(t.number).padStart(3,"0"),".pdf"),className:"button secondary !rounded-4xl lg:!rounded-md !p-2 lg:!py-3 lg:!px-4",onClick:L,children:[(0,a.jsx)("span",{className:"hidden lg:inline-block mr-2",children:h("download")}),(0,a.jsx)(x.Z,{className:"w-5 h-5"})]}),(0,a.jsxs)("button",{onClick:function(){L(),document.getElementById("pdf").contentWindow.print()},className:"button secondary !rounded-4xl lg:!rounded-md !p-2 lg:!py-3 lg:!px-4",children:[(0,a.jsx)("span",{className:"hidden lg:inline-block mr-2",children:h("print")}),(0,a.jsx)(b.Z,{className:"w-5 h-5"})]})]}):(0,a.jsx)(p.Z,{})}})})]}),(0,a.jsx)(l.Z$,{id:"pdf",className:"flex-1 w-full bg-gray-50",showToolbar:!1,children:(0,a.jsx)(j,{})}),"paid"!==t.status&&t.enableCreditCardPayment&&(0,a.jsx)("div",{className:"py-2 px-4 lg:py-4 lg:px-6 lg:bg-gray-50 border-t border-gray-200 text-right",children:(0,a.jsx)(u(),{href:"/checkout/".concat(t._id),children:(0,a.jsxs)("a",{className:"button primary",children:[(0,a.jsx)("span",{className:"mr-2",children:h("payCredit")}),(0,a.jsx)(S.Z,{className:"w-5 h-5"})]})})})]})]})}},42480:function(){}},function(e){e.O(0,[1111,2191,7439,3891,120,7333,8419,5405,9774,2888,179],(function(){return o=78548,e(e.s=o);var o}));var o=e.O();_N_E=o}]);

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.