PageSourceSearch

https://cumulusinc.ca/_next/static/chunks/pages/invoice/[idInvoice]-50b5d0be1b3948f3.js

js cumulusinc.ca collected 2026-09-29 16:53:03 UTC 6,678 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9640],{55189:function(e,l,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/invoice/[idInvoice]",function(){return t(53008)}])},53008:function(e,l,t){"use strict";t.r(l),t.d(l,{__N_SSP:function(){return f}});var s=t(85893),i=t(41664),n=t.n(i),a=t(29260),d=t.n(a),o=t(85405),r=t(30120),c=t(9008),x=t.n(c),m=t(71033),u=(t(67294),[{id:"on-receipt",name:"On receipt"},{id:"net-15",name:"Net 15"},{id:"net-30",name:"Net 30"},{id:"custom",name:"Custom"}]),f=!0;l.default=function(e){var l,t,i,a,c,f,v,h,p=e.invoice,j=e.website,N=(0,o.$O)(j.secondaryColor),y={button:{backgroundColor:j.secondaryColor,color:N},textAccent:{color:j.secondaryColor}},b=(p.subtotal*(1+p.tax)+(p.includeFees?p.fee:0)).toFixed(2);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(x(),{children:[(0,s.jsxs)("title",{children:["paid"===(null===p||void 0===p?void 0:p.status)?"Receipt for ":""," Invoice #",String(null===p||void 0===p?void 0:p.number).padStart(3,"0")," - ",null===j||void 0===j||null===(l=j.Business)||void 0===l?void 0:l.name]}),(0,s.jsx)("meta",{name:"description",content:("paid"===(null===p||void 0===p?void 0:p.status)?"Receipt for ":"")+"Invoice #"+String(null===p||void 0===p?void 0:p.number).padStart(3,"0")}),(0,s.jsx)("link",{rel:"icon",href:(null===j||void 0===j||null===(t=j.favicon)||void 0===t?void 0:t.url)||""}),(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"})]}),(0,s.jsx)("div",{className:"flex bg-gray-50 h-screen w-screen items-start p-4",children:(0,s.jsxs)("div",{className:"mx-auto w-full max-w-screen-md bg-white rounded-lg shadow p-4 md:p-10 flex justify-center flex-col",children:[(0,s.jsxs)("div",{className:"flex justify-between",children:["public"===(null===j||void 0===j?void 0:j.status)&&(0,s.jsx)(n(),{href:"/",children:(0,s.jsx)("a",{className:"link",style:{color:"#111827"!==N?j.secondaryColor:N},children:"Home"})}),(0,s.jsx)(n(),{href:"/invoice/print/".concat(null===p||void 0===p?void 0:p._id),children:(0,s.jsxs)("a",{className:"link ml-auto",target:"_blank",style:{color:"#111827"!==N?j.secondaryColor:N},children:[(0,s.jsx)(m.Z,{className:"w-5 h-5 inline-block "})," Print"]})})]}),(0,s.jsxs)("h4",{className:"text-body-lg md:text-h4 w-full text-center mt-10",children:["paid"===p.status&&"Receipt for "," Invoice #",String(p.number).padStart(3,"0")]}),(0,s.jsx)("div",{className:"relative mt-10 h-40 w-full max-w-xs mx-auto",children:(0,o.QW)(null===j||void 0===j?void 0:j.logo)?(0,s.jsx)(d(),{sizes:"200vw",quality:90,src:(0,o.QW)(null===j||void 0===j?void 0:j.logo),layout:"fill",objectFit:"contain",alt:null===j||void 0===j||null===(i=j.Business)||void 0===i?void 0:i.name}):(0,s.jsx)("h4",{className:"text-center",children:null===j||void 0===j?void 0:j.Business.name})}),(null===j||void 0===j||null===(a=j.Business)||void 0===a||null===(c=a.settings)||void 0===c?void 0:c.businessNumber)&&(0,s.jsx)("p",{className:"text-body md:text-xl w-full font-normal text-center mt-2 text-gray-600",children:null===j||void 0===j||null===(f=j.Business)||void 0===f||null===(v=f.settings)||void 0===v?void 0:v.businessNumber}),(0,s.jsxs)("div",{className:"text-h3 md:text-h2 font-bold w-full text-center mt-8",style:{color:"#111827"!==N?j.secondaryColor:N},children:["$",b]}),(0,s.jsxs)("div",{className:"text-body md:text-xl w-full font-normal text-center mt-2 text-gray-600",children:["paid"!==p.status?"Please pay by":"Was due on",(0,s.jsx)("span",{className:"text-gray-900 ml-1",children:r.ou.fromISO(p.dueDate).toFormat("DD")})]}),"custom"!==p.paymentTerms&&(0,s.jsx)("div",{className:"text-center w-full mt-2",children:null===(h=u.find((function(e){return e.id===p.paymentTerms})))||void 0===h?void 0:h.name}),(0,s.jsx)("div",{className:"flex flex-col w-full px-0 sm:px-10 md:px-20 mt-10 divide-y divide-gray-200",children:p.services.map((function(e,l){return(0,s.jsxs)("div",{className:"flex flex-1 py-2 px-3 items-center flex-wrap",children:[(0,s.jsxs)("div",{className:"flex-1 font-medium",children:[(0,s.jsx)("span",{children:e.name?e.name:"Item"}),(0,s.jsxs)("p",{className:"text-gray-500 text-normal text-sm",children:["$",e.price.toFixed(2)," x $",e.quantity]})]}),(0,s.jsxs)("div",{className:"flex-1 text-right font-normal text-gray-500",children:["$",((null===e||void 0===e?void 0:e.total)||e.price*e.quantity).toFixed(2)]})]},l)}))}),(0,s.jsxs)("div",{className:"flex flex-col w-full px-0 sm:px-10 md:px-20",children:[(0,s.jsxs)("div",{className:"flex flex-1 py-1 px-3 pt-8 items-center border-t border-gray-200 flex-wrap",children:[(0,s.jsx)("div",{className:"flex-1 font-medium",children:"Subtotal"}),(0,s.jsxs)("div",{className:"flex-1 text-right font-normal",children:["$",p.subtotal.toFixed(2)]})]}),(0,s.jsxs)("div",{className:"flex flex-1 py-1 px-3 items-center flex-wrap",children:[(0,s.jsx)("div",{className:"flex-1 font-medium",children:"Tax"}),(0,s.jsxs)("div",{className:"flex-1 text-right font-normal",children:[(100*p.tax).toFixed(2),"%"]})]}),p.includeFees&&(0,s.jsxs)("div",{className:"flex flex-1 py-1 px-3 items-center flex-wrap",children:[(0,s.jsx)("div",{className:"flex-1 font-medium",children:"CC fees"}),(0,s.jsxs)("div",{className:"flex-1 text-right font-normal",children:["$",p.fee.toFixed(2)]})]}),(0,s.jsxs)("div",{className:"flex flex-1 py-1 px-3 items-center flex-wrap",children:[(0,s.jsx)("div",{className:"flex-1 text-body-lg md:text-h4 font-bold",children:"Total"}),(0,s.jsxs)("div",{className:"flex-1 text-right text-body-lg md:text-h4 font-bold",children:["$",b]}
1)]}),(0,s.jsx)("hr",{})]}),(0,s.jsxs)("div",{className:"space-y-4 flex flex-col",children:[p.additionalNotes&&(0,s.jsxs)("div",{className:"flex flex-col w-full px-0 sm:px-10 md:px-20",children:[(0,s.jsx)("label",{className:"px-3 font-medium",children:"Additional notes"}),(0,s.jsx)("div",{className:"px-3 text-gray-500",children:p.additionalNotes})]}),"paid"!==p.status?p.enableCreditCardPayment?(0,s.jsx)(n(),{href:"/checkout/".concat(p._id),children:(0,s.jsx)("a",{style:y.button,className:"button primary w-full max-w-sm mx-auto mt-20 mb-12 md:lg",children:"Pay with Credit Card"})}):p.paymentInstructions&&(0,s.jsxs)("div",{className:"flex flex-col w-full px-0 sm:px-10 md:px-20",children:[(0,s.jsx)("label",{className:"px-3 font-medium",children:"Payment instructions"}),(0,s.jsx)("div",{className:"px-3 text-gray-500",children:p.paymentInstructions})]}):(0,s.jsxs)("div",{className:"text-body-lg md:text-h4 font-bold w-full text-center mt-8",style:{color:j.secondaryColor},children:["Invoice paid on ",r.ou.fromISO(p.paidAt).toFormat("DD"),"!"]})]})]})})]})}}},function(e){e.O(0,[3891,120,5405,9774,2888,179],(function(){return l=55189,e(e.s=l);var l}));var l=e.O();_N_E=l}]);

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.