PageSourceSearch

https://www.buildersclubnorth.com/static/js/8678.a4c9a53d.chunk.js

js buildersclubnorth.com collected 2026-10-08 04:17:17 UTC 24,547 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkbcn2020=self.webpackChunkbcn2020||[]).push([[8678,2600,5641,40],{60040:(e,t,o)=>{o.r(t),o.d(t,{ProcessingContainer:()=>ne});var a=o(72791),r=o(52174),s=o(11135),n=o(77257),i=o(87080),d=o(73521),l=o(37066),c=o(63733),m=o(90493),p=o(15021),u=o(80007),h=o(82460),g=o(51637),y=o(50427),x=o(17508),j=o(71797),Z=o(6227),b=o(38247),v=o(44580),w=o(80184);const P=e=>{const t=(0,r.Z)(e=>(0,s.Z)({root:{},report:{display:"grid",gridTemplateColumns:"1fr 1fr"},updated:{gridColumn:"1 / 3",fontSize:"smaller",color:e.palette.grey[600]},sponsor:{fontWeight:"bold"},reportTitle:{fontWeight:"bold",textAlign:"right"},status:{textAlign:"right"},submitted:{color:u.Z[500]},pending:{color:h.Z[700]},processed:{color:g.Z[800]},posted:{color:y.Z[700]}}))();return(0,w.jsxs)("div",{className:t.root,children:[e.isLoading?(0,w.jsx)("div",{style:{height:"500px"},children:(0,w.jsx)(Z.a,{message:"Getting reports"})}):void 0,(0,w.jsx)(m.Z,{children:void 0===e.reports?(0,w.jsx)("div",{}):e.isLoading||0!==e.reports.length?e.reports.map(o=>(0,w.jsxs)(p.ZP,{onClick:()=>e.onReportClicked(o),button:!0,selected:e.currentReportId===o.id,className:t.report,children:[(0,w.jsx)("div",{className:t.sponsor,children:"".concat(o.sponsorName," 
1(").concat(o.sponsorIdentifier,")")}),(0,w.jsx)("div",{className:t.reportTitle,children:"".concat((0,j.$)(o.month,o.year,o.batch))}),(0,w.jsx)("div",{children:"$".concat((0,x.uf)(o.awardedPointCost.toFixed(2))," for ").concat((0,x.uf)(o.awardedPoints)," points")}),(0,w.jsx)("div",{className:(0,c.Z)(t.status,{[t.pending]:"Pending"===o.status,[t.submitted]:"Submitted"===o.status,[t.processed]:"Processed"===o.status,[t.posted]:"Posted"===o.status}),children:o.status}),(0,w.jsxs)("div",{style:{gridColumn:"1/3"},children:["Updated ",(0,w.jsx)(v.t,{date:o.updatedOn})]})]},o.id)):(0,w.jsx)(b.P,{message:"No reports found"})})]})};var f=o(25787),S=o(9150),C=o(34489);const R=e=>{const t=(0,r.Z)(e=>(0,s.Z)({root:{},link:{textDecoration:"none",fontWeight:"bold",fontSize:"1.5rem",color:e.palette.grey[800]}}))(),o=e.companyInfo,a=o.identifier,n=o.name,i=o.id;return(0,w.jsx)("div",{className:t.root,children:(0,w.jsx)(S.rU,{className:t.link,target:"_blank",to:"".concat(C.H.app.admin.companyDetails,"/").concat(i,"/overview"),children:"".concat(n," (").concat(a,")")})})};var N=o(20890),k=o(48550),I=o(81579),M=o(79836),T=o(53382),F=o(53994),A=o(56890),z=o(35855),B=o(87516);const L=e=>{const t=(0,r.Z)(e=>(0,s.Z)({root:{padding:e.spacing(2),"& td:first-child":{paddingLeft:0}},bold:{"& td":{fontWeight:"bold"}},manualAdjustment:{"& td":{color:"olive",fontWeight:"bold"}},blankRow:{"& td":{borderBottom:0,height:"1rem"}},balance:{color:e.palette.grey[500]},posBalance:{color:e.palette.success.main},negBalance:{color:e.palette.error.main}}))();return(0,w.jsx)(B.R,{title:"Summary",children:(0,w.jsxs)(M.Z,{size:"small",children:[(0,w.jsx)(A.Z,{children:(0,w.jsxs)(z.Z,{children:[(0,w.jsx)(F.Z,{}),(0,w.jsx)(F.Z,{align:"right",children:"Cost"}),(0,w.jsx)(F.Z,{align:"right",children:"Points"}),(0,w.jsx)(F.Z,{align:"right",children:"Points Escrow"}),(0,w.jsx)(F.Z,{align:"right",children:"Admin Fee"})]})}),(0,w.jsxs)(T.Z,{children:[(0,w.jsxs)(z.Z,{children:[(0,w.jsx)(F.Z,{children:"Sponsor Minimum"}),(0,w.jsx)(F.Z,{align:"right",children:(0,x.lb)(e.summary.minimumMonthlyPurchaseDollars)}),(0,w.jsx)(F.Z,{align:"right",children:(0,x.uf)(e.summary.minimumMonthlyPurchasePoints?Math.ceil(e.summary.minimumMonthlyPurchasePoints):"---")}),(0,w.jsx)(F.Z,{align:"right"}),(0,w.jsx)(F.Z,{})]}),(0,w.jsxs)(z.Z,{children:[(0,w.jsx)(F.Z,{children:"Paid for Points"}),(0,w.jsx)(F.Z,{align:"right",children:(0,x.lb)(e.summary.awardedPointCost)}),(0,w.jsx)(F.Z,{align:"right",children:(0,x.uf)(e.summary.awardedPoints)}),(0,w.jsx)(F.Z,{align:"right",children:(0,x.lb)(e.summary.pointsEscrow)}),(0,w.jsx)(F.Z,{align:"right",children:(0,x.lb)(e.summary.adminFee)})]}),(0,w.jsxs)(z.Z,{children:[(0,w.jsx)(F.Z,{children:"Sponsor Mktg Points"}),(0,w.jsx)(F.Z,{align:"right",children:(0,x.lb)(e.summary.sponsorPointCost)}),(0,w.jsx)(F.Z,{align:"right",children:(0,x.uf)(e.summary.sponsorPoints)}),(0,w.jsx)(F.Z,{}),(0,w.jsx)(F.Z,{})]}),0!==e.summary.manualAdjustment?(0,w.jsxs)(z.Z,{className:t.manualAdjustment,children:[(0,w.jsx)(F.Z,{children:"Manual Adjustment"}),(0,w.jsx)(F.Z,{align:"right",children:(0,x.lb)(e.summary.manualAdjustment)}),(0,w.jsx)(F.Z,{align:"right",children:"---"}),(0,w.jsx)(F.Z,{}),(0,w.jsx)(F.Z,{})]}):void 0,(0,w.jsxs)(z.Z,{className:t.bold,children:[(0,w.jsx)(F.Z,{children:"Total Due"}),(0,w.jsx)(F.Z,{align:"right",children:(0,x.lb)(e.summary.amountDueDollars)}),(0,w.jsx)(F.Z,{align:"right",children:(0,x.uf)(Math.ceil(e.summary.amountDuePoints))}),(0,w.jsx)(F.Z,{}),(0,w.jsx)(F.Z,{})]}),(0,w.jsxs)(z.Z,{className:t.bold,children:[(0,w.jsx)(F.Z,{children:"Total Payments"}),(0,w.jsx)(F.Z,{align:"right",children:(0,x.lb)(e.summary.totalPaidDollars)}),(0,w.jsx)(F.Z,{align:"right",children:(0,x.uf)(Math.ceil(e.summary.totalPaidPoints))}),(0,w.jsx)(F.Z,{}),(0,w.jsx)(F.Z,{})]}),(0,w.jsxs)(z.Z,{className:t.bold,children:[(0,w.jsx)(F.Z,{children:"Balance Due"}),(0,w.jsx)(F.Z,{className:(0,c.Z)(t.balance,{[t.posBalance]:e.summary.balancePoints<0,[t.negBalance]:e.summary.balancePoints>0}),align:"right",children:(0,x.lb)(e.summary.balanceDollars)}),(0,w.jsx)(F.Z,{className:(0,c.Z)(t.balance,{[t.posBalance]:e.summary.balancePoints<0,[t.negBalance]:e.summary.balancePoints>0}),align:"right",children:(0,x.uf)(Math.round(e.summary.balancePoints))}),(0,w.jsx)(F.Z,{}),(0,w.jsx)(F.Z,{})]}),(0,w.jsxs)(z.Z,{className:t.blankRow,children:[(0,w.jsx)(F.Z,{}),(0,w.jsx)(F.Z,{}),(0,w.jsx)(F.Z,{}),(0,w.jsx)(F.Z,{}),(0,w.jsx)(F.Z,{})]}),(0,w.jsxs)(z.Z,{className:t.bold,children:[(0,w.jsx)(F.Z,{children:"Adjust Sponsor Point Balance"}),(0,w.jsx)(F.Z,{}),(0,w.jsx)(F.Z,{align:"right",children:(0,x.uf)(Math.round(e.summary.adjustSponsorPointBalanceDollars))}),(0,w.jsx)(F.Z,{}),(0,w.jsx)(F.Z,{})]})]})]})})};var E=o(24518),D=o(85523),W=o(94454),H=o(46915),U=o(29439),V=o(13400),Y=o(52898),O=o(23786),$=o(71715),G=o(49877),q=o(42419),Q=o(72194);const _=e=>{const t=(0,r.Z)(e=>(0,s.Z)({root:{padding:e.spacing(2,2,6,2),position:"relative"},subCard:{padding:e.spacing(2),margin:e.spacing(2)},divider:{margin:e.spacing(4,0)},addButton:{position:"absolute",bottom:20,right:20},title:{display:"inline-block",marginBottom:"1em"}}))(),o=a.useState(void 0),n=(0,U.Z)(o,2),i=n[0],d=n[1],l=e=>{d(e.currentTarget)},c=()=>{d(void 0)}
1,m=(0,w.jsxs)($.Z,{anchorEl:i,anchorOrigin:{vertical:"top",horizontal:"right"},id:"table-menu",keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"right"},open:Boolean(i),onClose:c,children:[(0,w.jsx)(O.Z,{onClick:()=>{if(i){const t=i.getAttribute("data-payment-id");t&&((async t=>{const o=e.payments.find(e=>e.id===t);Q.Y.showModal({type:"AddEditMonthlyReportPaymentModal",persisted:!0,props:{paymentId:t,monthlyReportId:e.monthlyReportId,companyInfo:e.sponsorInfo,payment:o,mode:"Edit",addPayment:e.addPayment,updatePayment:e.updatePayment,costPerPoint:e.sponsorCostPerPoint}})})(t),d(void 0))}},children:"Edit"}),(0,w.jsx)(O.Z,{onClick:async()=>{if(i){const t=i.getAttribute("data-payment-id");if(!t)throw Error("Could not find payment id");c(),window.confirm("Are you sure you want to delete this payment?")&&e.removePayment(e.monthlyReportId,t)}},children:"Remove"})]});return(0,w.jsxs)(B.R,{bottomMargin:10,title:"Payments",children:[m,0===e.payments.length?(0,w.jsx)(b.P,{message:"No payments found"}):(0,w.jsxs)(M.Z,{size:"small",children:[(0,w.jsx)(A.Z,{children:(0,w.jsxs)(z.Z,{children:[(0,w.jsx)(F.Z,{children:"Date"}),(0,w.jsx)(F.Z,{children:"Type"}),(0,w.jsx)(F.Z,{children:"Check #"}),(0,w.jsx)(F.Z,{align:"right",children:"Points"}),(0,w.jsx)(F.Z,{align:"right",children:"Amount"}),(0,w.jsx)(F.Z,{})]})}),(0,w.jsx)(T.Z,{children:e.payments.map(t=>(0,w.jsxs)(z.Z,{children:[(0,w.jsx)(F.Z,{children:(0,w.jsx)(v.t,{date:t.date})}),(0,w.jsx)(F.Z,{children:t.paymentType}),(0,w.jsx)(F.Z,{children:t.checkNumber}),"Points"===t.paymentType?(0,w.jsx)(F.Z,{align:"right",children:(0,x.uf)(t.points)}):(0,w.jsx)(F.Z,{}),(0,w.jsxs)(F.Z,{align:"right",children:["$",(0,x.uf)(t.amount.toFixed(2))]}),(0,w.jsx)(F.Z,{padding:"checkbox",children:e.canEditPayments?(0,w.jsx)(V.Z,{"data-payment-id":t.id,size:"small",onClick:l,children:(0,w.jsx)(Y.Z,{})}):void 0})]},t.id))})]}),e.canEditPayments?(0,w.jsx)(G.Z,{onClick:()=>{Q.Y.showModal({type:"AddEditMonthlyReportPaymentModal",persisted:!0,props:{companyInfo:e.sponsorInfo,monthlyReportId:e.monthlyReportId,mode:"Add",addPayment:e.addPayment,updatePayment:e.updatePayment,costPerPoint:e.sponsorCostPerPoint}})},size:"small",color:"primary",className:t.addButton,children:(0,w.jsx)(q.Z,{})}):void 0]})};var J=o(58062);const K=e=>{const t=(0,r.Z)(t=>(0,s.Z)({root:{display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"auto auto 1fr",gridGap:t.spacing(2),padding:t.spacing(2),height:"100%",margin:t.spacing(1),opacity:e.isLoading?.3:1,pointerEvents:e.isLoading?"none":"all"},allCols:{gridColumn:"1 / 4"},rightAligned:{textAlign:"right"},content:{height:"100%",overflowY:e.isNestedInCompanyDetails?"unset":"auto"},paymentHost:{display:"grid",gridTemplateColumns:"1fr",gridRow:"2 / 4",gridGap:t.spacing(2),margin:t.spacing(2)},deleteButton:{marginTop:t.spacing(2)},reportTitle:{fontWeight:"bold"},title:{gridColumn:"1 / 3"},button:{margin:t.spacing(0,1)},adminFields:{display:"flex",alignItems:"center",justifyContent:"space-between"}}))(),o=!!e.reportSummary.sponsorMinimumMonthlyPurchase&&("Pending"===e.reportSummary.status||"Submitted"===e.reportSummary.status),a="Processed"===e.reportSummary.status&&e.reportCanBeUnprocessed||("Submitted"===e.reportSummary.status||"Pending"===e.reportSummary.status)&&e.reportCanBeProcessed,n="Pending"===e.reportSummary.status||"Submitted"===e.reportSummary.status,i=(0,f.Z)(e=>({root:{color:e.palette.getContrastText(h.Z[500]),backgroundColor:h.Z[500],"&:hover":{backgroundColor:h.Z[700]}}}))(E.Z),d=async()=>{window.confirm("Are you sure you want to delete this report?")&&e.deleteReport(e.reportSummary.id)},l=()=>!!e.readyToPost||e.reportSummary.balanceDollars<=0&&window.confirm("Is this report ready to be processed?"),m=e.reportSummary,p=m.year,u=m.month,g=m.batch;return(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("div",{className:t.root,children:[(0,w.jsxs)("div",{className:t.title,children:[!e.hideCompanyName&&(0,w.jsx)(R,{companyInfo:e.reportSummary.sponsorInfo}),(0,w.jsx)(N.Z,{className:t.reportTitle,color:"primary",children:(0,j.$)(u,p,g)}),(0,w.jsx)("div",{children:"Status: ".concat(e.reportSummary.status)})]}),(0,w.jsxs)("div",{children:[(0,w.jsx)(E.Z,{className:t.button,color:"inherit",variant:"contained",onClick:()=>{e.showReport&&e.refreshReport(),e.setShowReport(!e.showReport)},children:e.showReport?"Back to Payment Info":e.canEditPayments?"Edit Report":"View Report"}),(0,w.jsx)(E.Z,{className:t.button,color:"inherit",variant:"contained",onClick:async()=>{await(0,J.C)(e.reportSummary.id)},children:"Print"})]}
1),(0,w.jsx)("div",{className:(0,c.Z)(t.allCols,t.content),children:e.showReport?(0,w.jsx)(H.EditorContainerDefaultExport,{overflowY:e.isNestedInCompanyDetails?"unset":"auto",audience:"admin",monthlyReportId:e.reportSummary.id,companyId:e.reportSummary.sponsorInfo.id}):(0,w.jsxs)("div",{className:t.paymentHost,children:[(0,w.jsx)(_,{sponsorCostPerPoint:e.sponsorCostPerPoint,pointBalance:e.reportSummary.balancePoints,removePayment:e.removePayment,canEditPayments:e.canEditPayments,monthlyReportId:e.reportSummary.id,sponsorInfo:e.reportSummary.sponsorInfo,addPayment:e.addPayment,updatePayment:e.updatePayment,payments:e.reportSummary.payments}),(0,w.jsx)(L,{summary:e.reportSummary}),(0,w.jsxs)("div",{className:t.adminFields,children:[e.reportSummary.sponsorMinimumMonthlyPurchase?(0,w.jsx)(D.Z,{disabled:!o,control:(0,w.jsx)(W.Z,{checked:e.ignoreMinimum,onChange:t=>e.setIgnoreMinimum(t.target.checked)}),label:"Ignore minimum"}):void 0,(0,w.jsx)(k.Z,{margin:"dense",variant:"outlined",disabled:!n,label:"Manual Adjustment",value:e.manualAdjustment,InputProps:{inputComponent:I.U,inputProps:{allowNegative:!0,prefix:"$",decimalScale:2}},onChange:t=>e.updateManualAdjustment(t.target.value)}),(0,w.jsx)(D.Z,{disabled:!a,control:(0,w.jsx)(W.Z,{checked:e.readyToPost,onChange:t=>e.setReadyToPost(t.target.checked)}),label:"This report is ready to be posted"}),(()=>{const t=parseFloat(e.manualAdjustment);return(0,w.jsx)(E.Z,{onClick:async()=>{const o=await l();e.updateAdminFields(o?"Processed":"Submitted",t,e.ignoreMinimum)},disabled:!(a||o||n),variant:"contained",children:"Save"})})()]}),(0,w.jsx)("div",{children:(0,w.jsx)(i,{onClick:d,variant:"contained",color:"primary",className:t.deleteButton,children:"Delete Report"})})]})})]})})};var X=o(22889),ee=o(61419),te=o(68096),oe=o(17133);const ae=e=>{const t=(0,r.Z)(e=>(0,s.Z)({root:{},radios:{padding:e.spacing(0,2),width:"100%"},sortBy:{marginTop:-16},search:{},formLabel:{fontSize:".9rem"},titleBar:{display:"flex",justifyContent:"space-between",alignItems:"center"},mainLabel:{display:"inline-block",transform:"translateY(5px)",marginRight:e.spacing(1),fontSize:".9rem",color:"gray"}}))();return(0,w.jsxs)("div",{className:t.root,children:[(0,w.jsx)(te.Z,{component:"fieldset",className:t.radios,children:(0,w.jsxs)(X.Z,{name:"report-status",value:e.selectedFilterType,row:!0,onChange:t=>{e.setSelectedFilterType(t.target.value)},children:[(0,w.jsx)(oe.Z,{className:t.mainLabel,children:"Status:"}),(0,w.jsx)(D.Z,{classes:{label:t.formLabel},value:"Submitted",control:(0,w.jsx)(ee.Z,{size:"small"}),label:"Submitted"}),(0,w.jsx)(D.Z,{classes:{label:t.formLabel},value:"Pending",control:(0,w.jsx)(ee.Z,{}),label:"Pending"}),(0,w.jsx)(D.Z,{classes:{label:t.formLabel},value:"Processed",control:(0,w.jsx)(ee.Z,{}),label:"Processed"})]})}),(0,w.jsx)(te.Z,{component:"fieldset",className:(0,c.Z)(t.radios,t.sortBy),children:(0,w.jsxs)(X.Z,{name:"report-status",value:e.selectedSortField,row:!0,onChange:t=>{e.setSelectedSortField(t.target.value)},children:[(0,w.jsx)(oe.Z,{className:t.mainLabel,children:"Sort By:"}),(0,w.jsx)(D.Z,{classes:{label:t.formLabel},value:"SponsorName",control:(0,w.jsx)(ee.Z,{size:"small"}),label:"Name"}),(0,w.jsx)(D.Z,{classes:{label:t.formLabel},value:"UpdatedDesc",control:(0,w.jsx)(ee.Z,{size:"small"}),label:"Updated (desc)"}),(0,w.jsx)(D.Z,{classes:{label:t.formLabel},value:"UpdatedAsc",control:(0,w.jsx)(ee.Z,{size:"small"}),label:"Updated (asc)"})]})})]})};var re=o(54270),se=o(58003);const ne=e=>{const t=(0,r.Z)(t=>(0,s.Z)({processingContainerContent:{display:"grid",gridTemplateColumns:e.hideSidebar?"1fr":"2fr 5fr",gridTemplateRows:e.hideSidebar?"unset":"auto 1fr",height:"100%"},reportHost:{gridColumn:e.hideSidebar?"unset":"2 / 3",gridRow:e.hideSidebar?"unset":"1 / 4"},reportList:{gridColumn:e.hideSidebar?"unset":1,gridRow:e.hideSidebar?"unset":2,height:"100%",overflowY:"auto"},hint:{margin:t.spacing(2),color:t.palette.text.secondary,fontSize:"1.5em"}}))(),o=(0,se.s0)();a.useEffect(()=>{void 0===e.hideSidebar&&i.w.loadMonthlyReportsForProcessing(),l.P.loadConfig()},[e.hideSidebar]),a.useEffect(()=>{e.match.params.monthlyReportId&&i.w.loadReportSummary(e.match.params.monthlyReportId)},[e.match.params.monthlyReportId]);const c=async e=>{const t=i.w.reportSummary.id;await i.w.updateAdminFields(t,e,i.w.manualAdjustment,i.w.ignoreMinimum),i.w.reportSummary&&d.a.loadFullReport(i.w.reportSummary.id)},m=async e=>{i.w.setIgnoreMinimum(e);const t=i.w.readyToPost?"Processed":"Submitted",o=i.w.reportSummary.id;await i.w.updateAdminFields(o,t,i.w.manualAdjustment,e),d.a.loadFullReport(i.w.reportSummary.id)},p=async t=>{await i.w.deleteReport(t),e.history.push("".concat(C.H.app.admin.root,"/processReports"))},u=t=>{t?e.history.push("".concat(window.location.pathname,"?showReport")):e.history.push(window.location.pathname)},h=()=>
1{if(i.w.reportSummary){const t=window.location.search.indexOf("showReport")>=0;return(0,w.jsx)(K,{canEditPayments:void 0!==i.w.reportSummary&&"Posted"!==i.w.reportSummary.status&&"Processed"!==i.w.reportSummary.status,showReport:t,isNestedInCompanyDetails:e.isNestedInCompanyDetails,setShowReport:u,deleteReport:p,manualAdjustment:i.w.manualAdjustment,updateManualAdjustment:i.w.setManualAdjustment,sponsorCostPerPoint:l.P.sponsorCostPerPoint,updatePayment:i.w.updatePayment,readyToPost:i.w.readyToPost,setReadyToPost:i.w.setReadyToPost,isLoading:i.w.isLoadingReportDetails,refreshReport:i.w.refreshSummary,reportCanBeProcessed:i.w.reportCanBeProcessed,reportCanBeUnprocessed:i.w.reportCanBeUnprocessed,addPayment:e=>i.w.addPayment(e),removePayment:i.w.deletePayment,reportSummary:i.w.reportSummary,updateAdminFields:c,ignoreMinimum:i.w.ignoreMinimum,setIgnoreMinimum:m,hideCompanyName:e.hideSidebar})}return(0,w.jsx)("div",{className:t.hint,children:e.hideSidebar?"Loading...":"Click on a report to the left to view details"})};return(0,w.jsx)(n.Qj,{render:()=>{var a,r;return(0,w.jsxs)("div",{className:t.processingContainerContent,children:[(0,w.jsx)(re.q,{children:(0,w.jsx)("title",{children:"Administrator - Process Monthly Reports"})}),void 0===e.hideSidebar&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(ae,{isLoading:i.w.isLoadingProcessingReports,reportCount:null!==(a=null===(r=i.w.processingReports)||void 0===r?void 0:r.length)&&void 0!==a?a:0,setSelectedFilterType:i.w.setFilterType,selectedFilterType:i.w.filterType,setSelectedSortField:i.w.setSortField,selectedSortField:i.w.sortField}),(0,w.jsx)("div",{className:t.reportList,children:(0,w.jsx)(P,{isLoading:i.w.isLoadingProcessingReports,currentReportId:e.match.params.monthlyReportId,onReportClicked:e=>o("".concat(C.H.app.admin.root,"/processReports/").concat(e.id,"/").concat(e.companyId)),reports:i.w.processingReports})})]}),(0,w.jsx)("div",{className:t.reportHost,children:h()})]})}})}},82600:(e,t,o)=>{o.d(t,{T:()=>l});o(72791);var a=o(52174),r=o(54270),s=o(70801),n=o(89164),i=o(63733),d=o(80184);const l=e=>{var t;const o=void 0===e.isLoaded||e.isLoaded,l=(0,a.Z)(t=>{var a;return{pageRoot:{paddingBottom:t.spacing(4),height:"100%",overflowY:null!==(a=e.overflowY)&&void 0!==a?a:"auto",paddingTop:e.hasToolbar?"calc(".concat(t.spacing(5)," - 2px)"):"unset"},watermark:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:-1e3,opacity:o?0:.3,background:"url(/images/watermark-logo.png)",backgroundRepeat:"no-repeat",backgroundPosition:"center",pointerEvents:"none"},linearProgress:{width:100,marginTop:20},loading:{pointerEvents:"none"},content:{transition:t.transitions.create(["opacity"],{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.standard})},hiddenLoader:{opacity:0}
1,topPadding:{minHeight:t.spacing(2)}}})();return(0,d.jsxs)("div",{id:"page-root","data-page-name":null!==(t=e.nameForDebugging)&&void 0!==t?t:"",className:l.pageRoot,children:[(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r.q,{children:(0,d.jsx)("title",{children:e.title})}),(0,d.jsx)(s.V,{title:e.title})]}),(()=>{if(!e.disableTopPadding)return(0,d.jsx)("div",{className:l.topPadding})})(),(0,d.jsx)("div",{className:l.watermark}),(0,d.jsx)("div",{className:(0,i.Z)(l.content,{[l.loading]:e.isLoading}),children:o&&(()=>{var t;return e.disableContainer?e.render():(0,d.jsx)(n.Z,{maxWidth:null!==(t=e.maxWidth)&&void 0!==t?t:"lg",children:e.render()})})()})]})}},70801:(e,t,o)=>{o.d(t,{V:()=>i});o(72791);var a=o(52174),r=o(54164),s=o(20890),n=o(80184);const i=e=>{const t=document.getElementById("mobile-title-portal"),o=(0,a.Z)(e=>({root:{margin:e.spacing(0,0,1,0)}}))();return t?(()=>{if(!t)throw Error("no add portal");return r.createPortal((0,n.jsx)("div",{children:e.title}),t)})():(0,n.jsx)(s.Z,{variant:"body1",component:"span",className:o.root,children:e.title})}},87516:(e,t,o)=>{o.d(t,{R:()=>d});o(72791);var a=o(52174),r=o(57621),s=o(20890),n=o(63733),i=o(80184);const d=e=>{const t=e.bottomMargin||2,o=(0,a.Z)(e=>({root:{marginLeft:e.spacing(2)},card:{padding:e.spacing(2,2,t,2),position:"relative"},title:{display:"inline-block",marginBottom:"1em"},disabled:{opacity:.5,pointerEvents:"none"},collapseButton:{position:"absolute",top:10,right:10}}))();return(0,i.jsx)("div",{className:o.root,children:(0,i.jsxs)(r.Z,{elevation:2,className:(0,n.Z)(o.card,{[o.disabled]:e.loading}),children:[(0,i.jsx)(s.Z,{className:o.title,variant:"caption",children:e.title}),e.children]})})}},88044:(e,t,o)=>{o.d(t,{n:()=>a});const a="https://bcn-pdf-api.azurewebsites.net/pdf/download"},57621:(e,t,o)=>{o.d(t,{Z:()=>x});var a=o(87462),r=o(63366),s=o(72791),n=o(63733),i=o(94419),d=o(66934),l=o(61020),c=o(35527),m=o(75878),p=o(21217);function u(e){return(0,p.ZP)("MuiCard",e)}(0,m.Z)("MuiCard",["root"]);var h=o(80184);const g=["className","raised"],y=(0,d.ZP)(c.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),x=s.forwardRef(function(e,t){const o=(0,l.i)({props:e,name:"MuiCard"}),s=o.className,d=o.raised,c=void 0!==d&&d,m=(0,r.Z)(o,g),p=(0,a.Z)({},o,{raised:c}),x=(e=>{const t=e.classes;return(0,i.Z)({root:["root"]},u,t)})(p);return(0,h.jsx)(y,(0,a.Z)({className:(0,n.Z)(x.root,s),elevation:c?8:void 0,ref:t,ownerState:p},m))})},49877:(e,t,o)=>{o.d(t,{Z:()=>b});var a=o(63366),r=o(87462),s=o(72791),n=o(63733),i=o(94419),d=o(95080),l=o(14036),c=o(61020),m=o(75878),p=o(21217);function u(e){return(0,p.ZP)("MuiFab",e)}const h=(0,m.Z)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]);var g=o(66934),y=o(15070),x=o(80184);const j=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],Z=(0,g.ZP)(d.Z,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>(0,y.Z)(e)||"classes"===e,overridesResolver:(e,t)=>{const o=e.ownerState;return[t.root,t[o.variant],t["size".concat((0,l.Z)(o.size))],"inherit"===o.color&&t.colorInherit,t[(0,l.Z)(o.size)],t[o.color]]}})(e=>{let t=e.theme,o=e.ownerState;var a,s;return(0,r.Z)({},t.typography.button,{minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.text.primary:null==(a=(s=t.palette).getContrastText)?void 0:a.call(s,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},["&.".concat(h.focusVisible)]:{boxShadow:(t.vars||t).shadows[6]}},"small"===o.size&&{width:40,height:40},"medium"===o.size&&{width:48,height:48}
1,"extended"===o.variant&&{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},"extended"===o.variant&&"small"===o.size&&{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"extended"===o.variant&&"medium"===o.size&&{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40},"inherit"===o.color&&{color:"inherit"})},e=>{let t=e.theme,o=e.ownerState;return(0,r.Z)({},"inherit"!==o.color&&"default"!==o.color&&null!=(t.vars||t).palette[o.color]&&{color:(t.vars||t).palette[o.color].contrastText,backgroundColor:(t.vars||t).palette[o.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[o.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[o.color].main}}})},e=>{let t=e.theme;return{["&.".concat(h.disabled)]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}}),b=s.forwardRef(function(e,t){const o=(0,c.i)({props:e,name:"MuiFab"}),s=o.children,d=o.className,m=o.color,p=void 0===m?"default":m,h=o.component,g=void 0===h?"button":h,y=o.disabled,b=void 0!==y&&y,v=o.disableFocusRipple,w=void 0!==v&&v,P=o.focusVisibleClassName,f=o.size,S=void 0===f?"large":f,C=o.variant,R=void 0===C?"circular":C,N=(0,a.Z)(o,j),k=(0,r.Z)({},o,{color:p,component:g,disabled:b,disableFocusRipple:w,size:S,variant:R}),I=(e=>{const t=e.color,o=e.variant,a=e.classes,s=e.size,n={root:["root",o,"size".concat((0,l.Z)(s)),"inherit"===t?"colorInherit":t]},d=(0,i.Z)(n,u,a);return(0,r.Z)({},a,d)})(k);return(0,x.jsx)(Z,(0,r.Z)({className:(0,n.Z)(I.root,d),component:g,disabled:b,focusRipple:!w,focusVisibleClassName:(0,n.Z)(I.focusVisible,P),ownerState:k,ref:t},N,{classes:I,children:s}))})}}]);
2//# sourceMappingURL=8678.a4c9a53d.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.