1"use strict";(self.webpackChunkbcn2020=self.webpackChunkbcn2020||[]).push([[9090],{49090:(e,a,n)=>{n.r(a),n.d(a,{InvoicesContainer:()=>j});var o=n(29439),t=n(72791),r=n(52174),i=n(11135),l=n(41365),s=n(44580),d=n(17508),c=n(22889),v=n(61419),u=n(85523),p=n(80184);const m=e=>(0,p.jsxs)(c.Z,{value:e.value,row:!0,onChange:a=>e.onChange(a.target.value),children:[(0,p.jsx)(u.Z,{value:"NotPaid",control:(0,p.jsx)(v.Z,{}),label:"Not Paid"}),(0,p.jsx)(u.Z,{value:"Paid",control:(0,p.jsx)(v.Z,{}),label:"Paid"}),(0,p.jsx)(u.Z,{value:"Void",control:(0,p.jsx)(v.Z,{}),label:"Void"}),(0,p.jsx)(u.Z,{value:"All",control:(0,p.jsx)(v.Z,{}),label:"All"})]});var y=n(63733);const b=e=>{const a=(0,r.Z)(e=>(0,i.Z)({root:{},voided:{textDecoration:"line-through",opacity:.7}}))(),n=(e,n)=>(0,p.jsx)("div",{className:(0,y.Z)({[a.voided]:n}),children:e}),o=[{label:"Company",propertyName:"payerName",render:e=>n(e.payerName,e.void)},{label:"Invoice #",propertyName:"invoiceNumber",render:e=>n(e.invoiceNumber,e.void)},{label:"Amount",propertyName:"amount",render:e=>n((0,d.lb)(e.amount),e.void)},{label:"Amount Due",propertyName:"amountDue",render:e=>n((0,d.lb)(e.amountDue),e.void)},{label:"Date Due (* = inferred)",propertyName:"dateDue",render:e=>n((0,p.jsxs)("div",{children:[(0,p.jsx)(s.t,{hideTime:!0,date:e.dateDue}),!e.isExplicitDueDate&&(0,p.jsx)("span",{children:"*"})]}),e.void)},{label:"Created By",propertyName:"createdBy"},{label:"Created On",propertyName:"createdOn",render:e=>(0,p.jsx)(s.t,{date:e.createdOn})}],t=[{label:"Print",execute:e=>(e=>{const a="".concat(window.location.origin,"/identity/reports/events/EventPayerInvoice/").concat(e,"/11/11");window.open(a,"_blank")})(e.id),visibilityPredicate:e=>!e.void}];return(0,p.jsx)(l.y,{columns:o,actions:t,renderLeftToolbarComponent:()=>(0,p.jsx)(m,{value:e.filterType,onChange:e.onFilterTypeChange}),onRowClicked:a=>{e.navigateToEventGroup(a.eventId,a.payerCompanyId)},noDataMessage:e.isLoading?"Loading invoices...":"No invoices found",data:e.invoices,defaultSortColumn:"payerName",showMenu:!0})};var h=n(7585),x=n(34489);const j=e=>{const a=t.useState([]),n=(0,o.Z)(a,2),l=n[0],s=n[1],d=t.useState(!1),c=(0,o.Z)(d,2),v=c[0],u=c[1],m=t.useState("NotPaid"),y=(0,o.Z)(m,2),j=y[0],N=y[1],Z=(0,r.Z)(e=>(0,i.Z)({root:{}}))();return t.useEffect(()=>{(async()=>{u(!0);try{const a=await h.C.admin.events.getEventInvoices(e.match.params.eventId,j);s(a)}finally{u(!1)}})()},[e.match.params.eventId,j]),(0,p.jsx)("div",{className:Z.root,children:(0,p.jsx)(b,{isLoading:v,navigateToEventGroup:(a,n)=>{e.history.push("".concat(x.H.app.admin.root,"/events/").concat(a,"/companies/").concat(n))},filterType:j,onFilterTypeChange:N,invoices:l})})}}}]); 2//# sourceMappingURL=9090.422cf1a3.chunk.js.map
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.