PageSourceSearch

https://www.americanlandrecords.com/_next/static/chunks/pages/dashboard/city-tax/reporting-a886b1aad1ea0420.js

js americanlandrecords.com collected 2026-10-05 19:55:07 UTC 126,355 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8802],{26604:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/city-tax/reporting",function(){return n(7784)}])},37467:function(e,t,n){"use strict";n.d(t,{x:function(){return a}});var l=n(26527);class r{async listCityTaxes(e,t,n){let{billNumbers:r,ownerNames:a,assessmentTypes:i,billTypes:s,...o}=t,c=new URLSearchParams(o);for(var d in i)c.append("assessmentTypes",i[d]);for(var d in r)c.append("billNumbers",r[d]);for(var d in a)c.append("ownerNames",a[d]);for(var d in s)c.append("billTypes",s[d]);return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/list?")+c,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")},signal:n}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async types(e){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/types"),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async create(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax"),{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async deleteMany(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/delete-many"),{method:"DELETE",body:JSON.stringify({taxIds:t}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async restoreMany(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/restore-many"),{method:"POST",body:JSON.stringify({taxIds:t}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async getHistory(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/").concat(t,"/history"),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async get(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/").concat(t),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async update(e,t,n){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/").concat(t),{method:"PUT",body:JSON.stringify(n),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async calculate(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/calculate"),{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async calculateMany(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/calculate-many-post"),{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async updateTaxBillType(e,t,n){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/bill-types/").concat(t),{method:"PUT",body:JSON.stringify(n),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async createTaxBillType(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/bill-types"),{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async deleteTaxBillType(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/bill-types/").concat(t),{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async refund(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/refund"),{method:"PUT",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async listPenalties(e,t,n){let{taxPenaltyTypes:r,...a}=t,i=new URLSearchParams(a);for(var s in r)i.append("taxPenaltyTypes",r[s]);return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/penalties?")+i,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")},signal:n}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async getPenalty(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/penalties/").concat(t),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async addPenalty(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/penalties"),{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async updatePenalty(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/penalties/").concat(t.id),{method:"PUT",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async deleteManyPenalties(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/penalties/delete-many"),{method:"DELETE",body:JSON.stringify({penaltyIds:t}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async lockManyPenalties(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/penalties/lock"),{method:"PUT",body:JSON.stringify({penaltyIds:t}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}
1async listRates(e,t,n){let{taxAssessmentTypes:r,taxRateTypes:a,...i}=t,s=new URLSearchParams(i);for(var o in a)s.append("taxRateTypes",a[o]);for(var o in r)s.append("taxAssessmentTypes",r[o]);return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/rates?")+s,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")},signal:n}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async getRate(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/rates/").concat(t),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async updateRate(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/rates/").concat(t.id),{method:"PUT",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async updateTaxRateType(e,t,n){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/rate-types/").concat(t),{method:"PUT",body:JSON.stringify(n),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async createTaxRateType(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/rate-types"),{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async deleteTaxRateType(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/rate-types/").concat(t),{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async updateTaxAssessmentType(e,t,n){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/assessment-types/").concat(t),{method:"PUT",body:JSON.stringify({type:n}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async createTaxAssessmentType(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/assessment-types"),{method:"POST",body:JSON.stringify({type:t}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async deleteTaxAssessmentType(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/assessment-types/").concat(t),{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async addRate(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/rates"),{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async deleteManyRates(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/rates/delete-many"),{method:"DELETE",body:JSON.stringify({rateIds:t}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async lockManyRates(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/rates/lock"),{method:"PUT",body:JSON.stringify({rateIds:t}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async bulkCheckout(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/bulk-checkout"),{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async bulkFile(e,t){return new Promise((n,r)=>{var a=new FileReader;a.readAsDataURL(t.file),a.onload=function(){n(fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/bulk-payment"),{method:"PUT",body:JSON.stringify({...t,file:a.result.split(",")[1]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(e.status>=400&&e.status<600)throw Error("Bad response from server");return e}))}})}async printMail(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/print-mail"),{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async exportUnpaid(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/export-unpaid"),{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async release(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/release"),{method:"PUT",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async purchase(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/purchase"),{method:"PUT",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async loadCheckout(e,t){let{taxIds:n,...r}=t,a=new URLSearchParams(r);for(var i in n)a.append("taxIds",n[i]);return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/checkout?")+a,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async satisfy(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/satisfy"),{method:"PUT",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async bankrupt(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/bankrupt"),{method:"PUT",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async codeLien(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/code-lien"),{method:"PUT",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async exonerate(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/exonerate"),{method:"PUT",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async getSettings(e){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/sett
1ings"),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async updateSettings(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/settings"),{method:"PUT",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async getMailLayout(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/mail-layout/").concat(t),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async previewMailLayout(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/mail-layout/preview"),{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async checkout(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/checkout"),{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async refundsReport(e,t,n){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/reporting/refunds?")+new URLSearchParams(t),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")},signal:n}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async paidBillsReport(e,t,n){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/reporting/paid-bills?")+new URLSearchParams(t),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")},signal:n}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async unpaidBillsReport(e,t,n){let r=Object.fromEntries(Object.entries(t).filter(e=>{let[t,n]=e;return null!=n}));return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/reporting/unpaid-bills?")+new URLSearchParams(r),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")},signal:n}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async depositReport(e,t,n){let{types:r,...a}=Object.fromEntries(Object.entries(t).filter(e=>{let[t,n]=e;return null!=n})),i=new URLSearchParams(a);return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/reporting/deposit?")+i,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")},signal:n}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async listPurchasers(e,t,n){let{...r}=t,a=new URLSearchParams(r);return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/purchaser/list?")+a,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")},signal:n}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async listPurchaseRequests(e,t,n){let{purchasers:r,...a}=t,i=new URLSearchParams(a);for(var s in r)i.append("purchasers",r[s]);return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/purchaser-requests/list?")+i,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")},signal:n}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async addPurchaser(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/purchasers"),{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async deletePurchaser(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/purchasers/").concat(t),{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async updatePurchaser(e,t,n){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/purchasers/").concat(t),{method:"PUT",body:JSON.stringify(n),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async requestPurchase(e,t,n){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/request-purchase"),{method:"POST",body:JSON.stringify({ids:t,year:n}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async taxSale(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/tax-sale"),{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async acceptSale(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/accept-tax-sale"),{method:"POST",body:JSON.stringify({requests:t.requests.requests}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async deleteManyPurchasers(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/purchasers/delete-many"),{method:"DELETE",body:JSON.stringify({ids:t}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async registerTaxSale(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/register-tax-sale"),{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async getPurchaseRequests(e){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/request-purchase"),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async updatePurchaseRequests(e,t){return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/request-purchase"),{method:"PUT",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async getImage(e,t){let n=new URLSearchParams(t);return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax?")+n,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")}}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async delinquentBillsReport(e,t,n){let{types:r,taxAssessmentTypes:a,...i}=Object.fromEntries(Object.entries(t).filter(e=>{let[t,n]=e;return null!=n})),s=new URLSearchParams(i);for(var o in r)s.append("types",r[o]);for(var o in a)s.append("taxAssessmentTypes",a[o]);return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/reporting/delinquent-bills?")+s,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")},signal:n}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async taxRollReport(e,t,n){let{billTypes:r,assTypes:a,...i}=t,s=new URLSearchParams(i);for(var o in r)s.append("billTypes",r[o]);for(var o in a)s.append("assTypes",a[o]);return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/reporting/tax-roll?")+s,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")},signal:n}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async settlementsReport(e,t,n){let{types:r,...a}=t,i=new URLSearchParams(a);for(var s in r)i.append("types",r[s]);return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/reporting/settlement?")+i,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")},signal:n}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async authorityTotalsReport(e,t,n){let{types:r,...a}=t,i=new URLSearchParams(a);for(var s in r)i.append("types",r[s]);return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/reporting/authority-totals?")+i,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")},signal:n}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}async districtTotalsReport(e,t,n){let{types:r,...a}=Object.fromEntries(Object.entries(t).filter(e=>{let[t,n]=e;return null!=n})),i=new URLSearchParams(a);if(r)for(var s in r)i.append("types",r[s]);return fetch("".concat((0,l.A)(),"/").concat(e,"/city-tax/reporting/district-totals?")+i,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+window.localStorage.getItem("accessToken")},signal:n}).then(e=>{if(401==e.status)throw Error("401 Authentication Required");return e})}}let a=new r},90700:function(e,t,n){"use strict";n.d(t,{D:function(){return c}});var l=n(85893),r=n(67294),a=n(11163),i=n(45697),s=n.n(i),o=n(19170);let c=e=>{let{children:t}=e,{user:n}=(0,o.a)(),i=(0,a.useRouter)(),[s,c]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{var e,t;i.isReady&&((null==n?void 0:null===(t=n.county)||void 0===t?void 0:null===(e=t.subscriptions)||void 0===e?void 0:e.some(e=>12===e.moduleTypeId))?c(!0):i.push({pathname:"/401",query:{returnUrl:i.asPath}}))},[i.isReady]),s)?(0,l.jsx)(l.Fragment,{children:t}):null};c.propTypes={children:s().node}},67412:function(e,t,n){"use strict";var l=n(64836);t.Z=void 0;
1var r=l(n(33651)),a=n(85893);t.Z=(0,r.default)((0,a.jsx)("path",{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.42 0 2.13.54 2.39 1.4.12.4.45.7.87.7h.3c.66 0 1.13-.65.9-1.27-.42-1.18-1.4-2.16-2.96-2.54V4.5c0-.83-.67-1.5-1.5-1.5S10 3.67 10 4.5v.66c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-1.65 0-2.5-.59-2.83-1.43-.15-.39-.49-.67-.9-.67h-.28c-.67 0-1.14.68-.89 1.3.57 1.39 1.9 2.21 3.4 2.53v.67c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-.65c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4"}),"AttachMoneyRounded")},7784:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eq}});var l=n(85893),r=n(9008),a=n.n(r),i=n(83490),s=n(36505),o=n(37734),c=n(38575),d=n(90700),h=n(1722),u=n(97354),x=n(67294),y=n(6792),p=n(47752),g=n(52635),j=n(98426),m=n(68573),f=n(46070),b=n(40492),w=n(56912),Z=n(14312),v=n(97182),D=n(60762),T=n(71919),C=n(96788),S=n(21038),A=n(51015),R=n(37467),B=n(69129),P=n(86025),E=n(13617),k=n(30055),I=n(17389),G=n(24697),N=n(3425),F=n(90755),O=n(44446),z=n(19170);let L=e=>{let t=new Date(1753,1,1),n=new Date(9999,12,31),{filters:r,onChange:a,initialFilters:s,setDateRange:o}=e,[c,d]=(0,x.useState)(new Date(s.startDate)),[h,u]=(0,x.useState)(new Date(s.endDate)),[y,p]=(0,x.useState)(r),[g]=(0,G.Nr)(y,600);(0,x.useEffect)(()=>{o({startDate:new Date(c).toDateString(),endDate:new Date(h).toDateString()})},[c,h]),(0,x.useEffect)(()=>{a(g)},[g]);let j=(0,x.useCallback)(()=>{p(e=>({...e}))},[p,s]);return(0,z.a)(j),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Z,{sx:{justifyContent:"right",display:"flex",flexGrow:1},children:(0,l.jsx)(S.Z,{title:"Reset filters",children:(0,l.jsx)(A.Z,{startIcon:(0,l.jsx)(N.h,{fontSize:"small"}),variant:"outlined",color:"primary",onClick:()=>{null==p||p({...s,endDate:(0,O.g)(new Date(new Date().getFullYear(),new Date().getMonth(),new Date().getDate(),23,59,59,998)),startDate:(0,O.g)(new Date(new Date().getFullYear(),new Date().getMonth(),new Date().getDate(),0,0,0,0))}),d(new Date),u(new Date)},name:"reset",children:"Reset"})})}),(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:2},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Date"}),(0,l.jsx)(I.M,{label:"From",minDate:t,maxDate:n,value:c,OpenPickerButtonProps:{tabIndex:-1},onChange:e=>{if(d(e),e instanceof Date&&!isNaN(e)&&e>=t&&e<=n){let t={...y,startDate:(0,O.g)(new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0))};t.endDate&&new Date(e)>new Date(t.endDate)&&(t.endDate=(0,O.g)(new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,998)),u(e)),null==p||p(t);return}""!==y.startDate&&(null==p||p({...y,startDate:""}))},slotProps:{textField:{size:"small",fullWidth:!0,error:!(0,F.t)(new Date(y.startDate)),helperText:!(0,F.t)(new Date(y.startDate))&&"Date is required"}}}),(0,l.jsx)(I.M,{label:"To",minDate:t,maxDate:n,OpenPickerButtonProps:{tabIndex:-1},onChange:e=>{if(u(e),e instanceof Date&&!isNaN(e)&&e>=t&&e<=n){let t={...y,endDate:(0,O.g)(new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,998))};t.startDate&&new Date(e)<new Date(t.startDate)&&(t.startDate=(0,O.g)(new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)),d(e)),null==p||p(t);return}""!==y.endDate&&(null==p||p({...y,endDate:""}))},value:h,slotProps:{textField:{size:"small",fullWidth:!0,error:!(0,F.t)(new Date(y.endDate)),helperText:!(0,F.t)(new Date(y.endDate))&&"Date is required"}}})]})]})};var q=n(86501),M=n(36926),H=n(34325),Y=n(44685);let U=e=>{let{value:t,reports:r,setValue:a,rootRef:s,dateRange:o,setDateRange:c,scrollToTopPage:d}=e,h={depositReportRecords:[]},[u,y]=(0,x.useState)({taxRateTypes:[],taxBillTypes:[]}),p={startDate:(0,O.g)(new Date(new Date(o.startDate).getFullYear(),new Date(o.startDate).getMonth(),new Date(o.startDate).getDate(),0,0,0,0)),endDate:(0,O.g)(new Date(new Date(o.endDate).getFullYear(),new Date(o.endDate).getMonth(),new Date(o.endDate).getDate(),23,59,59,998)),types:[],taxRateType:null},[k,I]=(0,x.useState)(p),{user:G}=(0,z.a)(),[N,U]=(0,x.useState)(""),W=(0,P.s)(),[$,J]=(0,x.useState)(!1),[_,V]=(0,x.useState)(!1),[K,X]=(0,x.useState)(h),[Q,ee]=(0,x.useState)(!1),[et,en]=(0,x.useState)(null),el=(0,g.Z)(e=>e.breakpoints.up("md"),{noSsr:!0}),[er,ea]=(0,x.useState)(el),ei=(0,x.useCallback)(async()=>{let e=new AbortController;try{null==et||et.abort(),en(e),J(!0);let t=await R.x.depositReport(null==G?void 0:G.selectedCountyId,k,e.signal),n=await t.json();if(!e.signal.aborted&&W){if(t.ok&&n){X(n),J(!1),U(n.report),null==e||e.abort();return}let l=n&&n.error||t.status;throw Error(l)}}catch(t){"Error: 401 Authentication Required"==t&&(await Promise.resolve().then(n.t.bind(n,11163,23))).default.reload(window.location.pathname),null==e||e.abort(),B.s.errors.includes(t.toString())||(J(!1),X(h),console.error(t),q.ZP.error("Error loading records!"))}},[W,k,et,G]),es=e=>{I(e)},eo=async()=>{try{V(!0);let e=await R.x.types(null==G?void 0:G.selectedCountyId),t=await e.json();if(W){if(e.ok&&t){V(!1),y(t);return}let n=t&&t.error||e.status;throw Error(n)}}catch(e){"Error: 401 Authentication Required"==e&&(await Promise.resolve().then(n.t.bind(n,11163,23))).default.reload(window.location.pathname),V(!1),console.error(e),q.ZP.error("Error loading search types!")}};return(0,x.useEffect)(()=>{(0,F.t)(new Date(k.startDate))&&(0,F.t)(new Date(k.endDate))?ei():X(h),d()},[k]),(0,x.useEffect)(()=>()=>{null==et||et.abort()},[et]),(0,x.useEffect)(()=>{eo()},[G]),(0,l.jsxs)(i.Z,{sx:{backgroundColor:"background.default",display:"flex",flexGrow:1},children:[(0,l.jsx)(Y.g,{containerRef:s,onClose:()=>{ea(!1)},onChange:es,open:er,children:(0,l.jsx)(L,{taxTypeOptions:u,loadingTypes:_,filters:k,initialFilters:p,setDateRange:c,onChange:es,setFilters:I,user:G})}),(0,l.jsx)(H._,{open:er,children:(0,l.jsxs)(j.Z,{maxWidth:"lg",children:[(0,l.jsx)(m.ZP,{container:!0,children:(0,l.jsx)(m.ZP,{item:!0,md:4,xs:12,children:(0,l.jsx)(f.Z,{fullWidth:!0,value:t,disableClearable:!0,onChange:(e,t)=>
1{a(t)},options:r,renderInput:e=>(0,l.jsx)(b.Z,{...e,label:"Report"})})})}),(0,l.jsx)(w.Z,{sx:{mb:3,mt:3}}),(0,l.jsxs)(i.Z,{sx:{position:"relative"},children:[(0,l.jsx)(Z.Z,{sx:{zIndex:9999,position:"absolute"},open:$,children:(0,l.jsx)(v.Z,{})}),(0,l.jsx)(D.Z,{children:(0,l.jsx)(T.Z,{children:(0,l.jsx)(i.Z,{sx:{mb:4},children:(0,l.jsxs)(m.ZP,{container:!0,justifyContent:"space-between",spacing:3,children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(C.Z,{variant:"h4",children:"Deposit Report"})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(i.Z,{children:(0,l.jsxs)(m.ZP,{container:!0,spacing:3,children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(S.Z,{title:"Reset filters",children:(0,l.jsx)(A.Z,{endIcon:(0,l.jsx)(M.w,{fontSize:"small"}),onClick:()=>{ea(e=>!e)},variant:"outlined",children:"Filters"})})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(A.Z,{variant:"contained",disabled:$||!N,color:"primary",name:"preview",onClick:()=>{ee(!0)},children:"Preview"})})]})})})]})})})})]})]})}),Q&&(0,l.jsx)(E.j,{editable:!0,setLoading:J,loading:$,onClose:()=>ee(!1),county:null==G?void 0:G.county,documentName:"DepositBillsReport",reportBase64:N})]})};var W=n(30834),$=n(25026),J=n(76592),_=n(70360),V=n(46577),K=n(8863),X=n(19827),Q=n(81413);let ee=e=>{var t,n,r,a;let{filters:s,loading:o,data:c}=e,{user:d}=(0,z.a)();return(0,l.jsxs)(i.Z,{sx:{minWidth:800,minHeight:1200},children:[(0,l.jsxs)(m.ZP,{container:!0,spacing:3,justifyContent:"space-between",sx:{mb:4},children:[(0,l.jsxs)(m.ZP,{item:!0,children:[(0,l.jsx)(C.Z,{variant:"h5",children:"Paid Bills Report"}),(0,l.jsx)(C.Z,{variant:"subheader",children:"City Tax"})]}),(0,l.jsxs)(m.ZP,{item:!0,children:[(0,l.jsxs)(C.Z,{variant:"body2",align:"left",children:["City Of ",null==d?void 0:null===(t=d.county)||void 0===t?void 0:t.clerkCity,"'s Office"]}),(0,l.jsx)(C.Z,{variant:"body2",align:"left",children:(null==d?void 0:null===(n=d.county)||void 0===n?void 0:n.clerkAddress)+" "+(null==d?void 0:null===(r=d.county)||void 0===r?void 0:r.clerkCity)+", KY "+(null==d?void 0:null===(a=d.county)||void 0===a?void 0:a.clerkZip)}),(0,l.jsxs)(C.Z,{variant:"body2",align:"left",children:["Today's Date: ",new Date().toLocaleDateString()]}),(0,l.jsx)(C.Z,{variant:"body2",align:"left",children:s.startDate&&s.endDate&&new Date(s.startDate).toLocaleDateString()+"-"+new Date(s.endDate).toLocaleDateString()})]})]}),(0,l.jsx)($.Z,{sx:{overflow:"initial"},children:(0,l.jsx)(W.L,{children:(0,l.jsxs)(J.Z,{children:[(0,l.jsx)(_.Z,{children:(0,l.jsxs)(V.Z,{children:[(0,l.jsx)(K.Z,{children:"Date Paid"}),(0,l.jsx)(K.Z,{align:"right",children:"Year"}),(0,l.jsx)(K.Z,{align:"right",children:"Bill Number"}),(0,l.jsx)(K.Z,{children:"Tax Payer"}),(0,l.jsx)(K.Z,{children:"Description"}),(0,l.jsx)(K.Z,{align:"right",children:"Paid Amount"}),(0,l.jsx)(K.Z,{children:"Paid"}),(0,l.jsx)(K.Z,{})]})}),(0,l.jsxs)(X.Z,{children:[!o&&0===c.paidBillsReportRecords.length&&(0,l.jsx)(V.Z,{sx:{height:"100px"},children:(0,l.jsx)(K.Z,{colSpan:7,children:(0,l.jsx)(m.ZP,{container:!0,justifyContent:"center",children:(0,l.jsx)(m.ZP,{item:!0,children:"No records to display."})})})}),c.paidBillsReportRecords.map((e,t)=>(0,l.jsxs)(V.Z,{children:[(0,l.jsx)(K.Z,{children:new Date(e.datePaid).toLocaleString()}),(0,l.jsx)(K.Z,{align:"right",children:e.year}),(0,l.jsx)(K.Z,{align:"right",children:e.billNumber}),(0,l.jsx)(K.Z,{children:(0,l.jsx)(m.ZP,{container:!0,children:e.owners.map((e,t)=>(0,l.jsx)(m.ZP,{item:!0,xs:12,children:e.fullName},t))})}),(0,l.jsx)(K.Z,{children:e.propertyDescription}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(e.amountPaid)}),(0,l.jsx)(K.Z,{children:e.paid}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(e.runningTotal)})]},t)),c.paidBillsReportRecords.length>0&&(0,l.jsxs)(V.Z,{children:[(0,l.jsx)(K.Z,{}),(0,l.jsx)(K.Z,{}),(0,l.jsx)(K.Z,{}),(0,l.jsx)(K.Z,{}),(0,l.jsx)(K.Z,{}),(0,l.jsx)(K.Z,{}),(0,l.jsx)(K.Z,{align:"right",children:"TOTAL:"}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(c.paidBillsTotalAmount)})]})]})]})})})]})};var et=n(88208);et.Zx.register({family:"Canterbury",src:"/static/font/Canterbury.ttf"});let en=et.mM.create({page:{backgroundColor:"#FFFFFF",padding:40},h5:{fontWeight:600},subHeader:{fontSize:12,fontFamily:"Helvetica",fontWeight:400},headerSmall:{fontSize:8,fontFamily:"Helvetica"},body2:{fontSize:10},header:{flexDirection:"row",justifyContent:"space-between"},tableRow:{borderBottomWidth:1,borderColor:"#3b3b3b",borderStyle:"solid",flexDirection:"row"},tableRowHeader:{flexDirection:"row"},tableCell1:{padding:6,width:"34%"},tableCellN:{padding:6,width:"33%"},tableCellBill:{padding:6,width:"12.5%"}}),el=e=>{let{data:t,county:n,filters:r}=e;return(0,l.jsx)(et.BB,{children:(0,l.jsxs)(et.T3,{style:en.page,size:"LETTER",children:[(0,l.jsxs)(et.G7,{style:[en.header,{marginBottom:24}],children:[(0,l.jsxs)(et.G7,{children:[(0,l.jsx)(et.xv,{style:en.h5,children:"Paid Bills Report"}),(0,l.jsx)(et.xv,{style:[en.subHeader,{marginTop:4}],children:"City Taxes"})]}),(0,l.jsxs)(et.G7,{style:[{alignItems:"flex-start",display:"flex"}],children:[(0,l.jsxs)(et.xv,{style:en.body2,children:["City Of ",n.clerkCity,"'s Office"]}),(0,l.jsx)(et.xv,{style:[en.body2,{marginTop:4}],children:n.clerkAddress+" "+n.clerkCity+", KY "+n.clerkZip}),(0,l.jsxs)(et.xv,{style:[en.body2,{marginTop:4}],children:["Today's Date: ",new Date().toLocaleDateString()]}),(0,l.jsxs)(et.xv,{style:[en.body2,{marginTop:4}],children:[new Date(r.startDate).toLocaleDateString()," -"," ",new Date(r.endDate).toLocaleDateString()]})]})]}),(0,l.jsxs)(et.G7,{style:en.table,children:[(0,l.jsx)(et.G7,{style:{backgroundColor:"#f3f4f6"},children:(0,l.jsx)(et.G7,{style:[en.tableRowHeader,{display:"flex"}],children:(0,l.jsxs)(et.G7,{style:en.tableRow,children:[(0,l.jsx)(et.G7,{style:en.tableCellBill,children:(0,l.jsx)(et.xv,{style:[en.headerSmall,en.alignRight,{fontFamily:"Helvetica-Bold",textAlign:"left"}],children:"DATE PAID"})}),(0,l.jsx)(et.G7,{style:en.tableCellBill,children:(0,l.jsx)(et.xv,{style:[en.headerSmall,en.alignRight,en.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"right"}],children:"YEAR"})}),(0,l.jsx)(et.G7,{style:en.tableCellBill,children:(0,l.jsx)(et.xv,{style:[en.headerSmall,en.alignRight,{fontFamily:"Helvetica-Bold",textAlign:"right"}],children:"BILL NUMBER"})}),(0,l.jsx)(et.G7,{style:en.tableCellBill,children:(0,l.jsx)(et.xv,{style:[en.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"right"}],children:"TAX PAYER"})}),(0,l.jsx)(et.G7,{style:en.tableCellBill,children:(0,l.jsx)(et.xv,{style:[en.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"left"}],children:"DESCRIPTION"})}),(0,l.jsx)(et.G7,{style:en.tableCellBill,children:(0,l.jsx)(et.xv,{style:[en.headerSmall,en.alignRight,en.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"right"}],children:"PAID AMOUNT"})}),(0,l.jsx)(et.G7,{style:en.tableCellBill,children:(0,l.jsx)(et.xv,{style:[en.headerSmall,en.alignRight,en.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"left"}],children:"PAID"})}),(0,l.jsx)(et.G7,{style:en.tableCellBill,children:(0,l.jsx)(et.xv,{style:[en.headerSmall,en.alignRight,en.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"left"}]})})]})})}
1),(0,l.jsxs)(et.G7,{style:en.tableBody,children:[0===t.paidBillsReportRecords.length&&(0,l.jsx)(et.G7,{style:[en.tableRow,{alignItems:"center",display:"flex"}],children:(0,l.jsx)(et.G7,{style:{alignItems:"center",width:"100%",height:60,display:"flex",flexDirection:"row",justifyContent:"center"},children:(0,l.jsx)(et.xv,{style:en.body2,children:"No Records to Display"})})}),t.paidBillsReportRecords.map((e,t)=>(0,l.jsxs)(et.G7,{style:[en.tableRow,{alignItems:"center",display:"flex"}],children:[(0,l.jsx)(et.G7,{style:en.tableCellBill,children:(0,l.jsx)(et.xv,{style:[en.body2,{textAlign:"left"}],children:new Date(e.datePaid).toLocaleString()})}),(0,l.jsx)(et.G7,{style:en.tableCellBill,children:(0,l.jsx)(et.xv,{style:[en.body2,{textAlign:"right"}],children:e.year})}),(0,l.jsx)(et.G7,{style:en.tableCellBill,children:(0,l.jsx)(et.xv,{style:[en.body2,{textAlign:"right"}],children:e.billNumber})}),(0,l.jsx)(et.G7,{style:en.tableCellBill,children:e.owners.map((e,t)=>(0,l.jsx)(et.G7,{style:{width:"100%",paddingTop:t>0?2:0},children:(0,l.jsx)(et.xv,{style:[en.body2],children:e.fullName})},t))}),(0,l.jsx)(et.G7,{style:en.tableCellBill,children:(0,l.jsx)(et.xv,{style:[en.body2,{textAlign:"left"}],children:e.propertyDescription})}),(0,l.jsx)(et.G7,{style:en.tableCellBill,children:(0,l.jsx)(et.xv,{style:[en.body2,{textAlign:"right"}],children:(0,Q.$)(e.amountPaid)})}),(0,l.jsx)(et.G7,{style:en.tableCellBill,children:(0,l.jsx)(et.xv,{style:[en.body2,{textAlign:"left"}],children:e.paid})}),(0,l.jsx)(et.G7,{style:en.tableCellBill,children:(0,l.jsx)(et.xv,{style:[en.body2,{textAlign:"left"}],children:(0,Q.$)(e.runningTotal)})})]},t)),t.paidBillsReportRecords.length>0&&(0,l.jsxs)(et.G7,{style:[en.tableRow,{alignItems:"center",display:"flex"}],children:[(0,l.jsx)(et.G7,{style:en.tableCellBill}),(0,l.jsx)(et.G7,{style:en.tableCellBill}),(0,l.jsx)(et.G7,{style:en.tableCellBill}),(0,l.jsx)(et.G7,{style:en.tableCellBill}),(0,l.jsx)(et.G7,{style:en.tableCellBill}),(0,l.jsx)(et.G7,{style:en.tableCellBill}),(0,l.jsx)(et.G7,{style:en.tableCellBill,children:(0,l.jsx)(et.xv,{style:[en.body2,{textAlign:"left"}],children:"Total:"})}),(0,l.jsx)(et.G7,{style:en.tableCellBill,children:(0,l.jsx)(et.xv,{style:[en.body2,{textAlign:"left"}],children:(0,Q.$)(t.paidBillsTotalAmount)})})]})]})]})]})})},er=e=>{let t=new Date(1753,1,1),n=new Date(9999,12,31),{filters:r,onChange:a,initialFilters:s,setDateRange:o,user:c}=e,[d,h]=(0,x.useState)(new Date(s.startDate)),[u,y]=(0,x.useState)(new Date(s.endDate)),[p,g]=(0,x.useState)(r),[j]=(0,G.Nr)(p,600);(0,x.useEffect)(()=>{a(j)},[j]),(0,x.useEffect)(()=>{o({startDate:new Date(d).toDateString(),endDate:new Date(u).toDateString()})},[d,u]);let m=(0,x.useCallback)(()=>{g(e=>({...e}))},[g,s]);return(0,z.a)(m),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Z,{sx:{justifyContent:"right",display:"flex",flexGrow:1},children:(0,l.jsx)(S.Z,{title:"Reset filters",children:(0,l.jsx)(A.Z,{startIcon:(0,l.jsx)(N.h,{fontSize:"small"}),variant:"outlined",color:"primary",onClick:()=>{null==g||g({...s,endDate:(0,O.g)(new Date(new Date().getFullYear(),new Date().getMonth(),new Date().getDate(),23,59,59,998)),startDate:(0,O.g)(new Date(new Date().getFullYear(),new Date().getMonth(),new Date().getDate(),0,0,0,0))}),h(new Date),y(new Date)},name:"reset",children:"Reset"})})}),(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:2},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Date"}),(0,l.jsx)(I.M,{label:"From",minDate:t,maxDate:n,value:d?new Date(d):null,OpenPickerButtonProps:{tabIndex:-1},onChange:e=>{if(h(e),e instanceof Date&&!isNaN(e)&&e>=t&&e<=n){let t={...p,startDate:(0,O.g)(new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0))};t.endDate&&new Date(e)>new Date(t.endDate)&&(t.endDate=(0,O.g)(new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,998)),y(e)),null==g||g(t);return}""!==p.startDate&&(null==g||g({...p,startDate:""}))},slotProps:{textField:{size:"small",fullWidth:!0,error:!(0,F.t)(new Date(p.startDate)),helperText:!(0,F.t)(new Date(p.startDate))&&"date is required"}}}),(0,l.jsx)(I.M,{label:"To",minDate:t,maxDate:n,OpenPickerButtonProps:{tabIndex:-1},onChange:e=>{if(y(e),e instanceof Date&&!isNaN(e)&&e>=t&&e<=n){let t={...p,endDate:(0,O.g)(new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,998))};t.startDate&&new Date(e)<new Date(t.startDate)&&(t.startDate=(0,O.g)(new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)),h(e)),null==g||g(t);return}""!==p.endDate&&(null==g||g({...p,endDate:""}))},value:u?new Date(u):null,slotProps:{textField:{size:"small",fullWidth:!0,error:!(0,F.t)(new Date(p.endDate)),helperText:!(0,F.t)(new Date(p.endDate))&&"date is required"}}})]})]})},ea=e=>{let{value:t,reports:r,setValue:a,rootRef:s,dateRange:o,setDateRange:c,scrollToTopPage:d}=e,h={paidBillsReportRecords:[]},u={startDate:(0,O.g)(new Date(new Date(o.startDate).getFullYear(),new Date(o.startDate).getMonth(),new Date(o.startDate).getDate(),0,0,0,0)),endDate:(0,O.g)(new Date(new Date(o.endDate).getFullYear(),new Date(o.endDate).getMonth(),new Date(o.endDate).getDate(),23,59,59,998))},[y,p]=(0,x.useState)(u),{user:k}=(0,z.a)(),I=(0,P.s)(),[G,N]=(0,x.useState)(!1),[L,U]=(0,x.useState)(!1),[$,J]=(0,x.useState)(h),[_,V]=(0,x.useState)(!1),[K,X]=(0,x.useState)(null),Q=(0,g.Z)(e=>e.breakpoints.up("md"),{noSsr:!0}),[et,en]=(0,x.useState)(Q),ea=(0,x.useCallback)(async()=>{let e=new AbortController;try{null==K||K.abort(),X(e),N(!0);let t=await R.x.paidBillsReport(null==k?void 0:k.selectedCountyId,y,e.signal),n=await t.json();if(!e.signal.aborted&&I){if(t.ok&&n){J(n),N(!1),null==e||e.abort();return}let l=n&&n.error||t.status;throw Error(l)}}catch(t){"Error: 401 Authentication Required"==t&&(await Promise.resolve().then(n.t.bind(n,11163,23))).default.reload(window.location.pathname),null==e||e.abort(),N(!1),B.s.errors.includes(t.toString())||(J(h),console.error(t),q.ZP.error("Error loading records!"))}},[I,y,K,k]),ei=e=>{p(e)};return(0,x.useEffect)(()=>{(0,F.t)(new Date(y.startDate))&&(0,F.t)(new Date(y.endDate))?ea():J(h),d()},[y]),(0,x.useEffect)(()=>()=>{null==K||K.abort()},[K]),(0,l.jsxs)(i.Z,{sx:{backgroundColor:"background.default",display:"flex",flexGrow:1},children:[(0,l.jsx)(Y.g,{containerRef:s,onClose:()=>{en(!1)},onChange:ei,open:et,children:(0,l.jsx)(er,{loadingTypes:L,filters:y,setDateRange:c,initialFilters:u,onChange:ei,setFilters:p,user:k})}),(0,l.jsx)(H._,{open:et,children:(0,l.jsxs)(j.Z,{maxWidth:"lg",children:[(0,l.jsx)(m.ZP,{container:!0,children:(0,l.jsx)(m.ZP,{item:!0,md:4,xs:12,children:(0,l.jsx)(f.Z,{fullWidth:!0,value:t,disableClearable:!0,onChange:(e,t)=>
1{a(t)},options:r,renderInput:e=>(0,l.jsx)(b.Z,{...e,label:"Report"})})})}),(0,l.jsx)(w.Z,{sx:{mb:3,mt:3}}),(0,l.jsxs)(i.Z,{sx:{position:"relative"},children:[(0,l.jsx)(Z.Z,{sx:{zIndex:9999,position:"absolute"},open:G,children:(0,l.jsx)(v.Z,{})}),(0,l.jsx)(D.Z,{children:(0,l.jsx)(T.Z,{children:(0,l.jsx)(i.Z,{sx:{mb:4},children:(0,l.jsxs)(m.ZP,{container:!0,justifyContent:"space-between",spacing:3,children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(C.Z,{variant:"h4",children:"Paid Bills Report"})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(i.Z,{children:(0,l.jsxs)(m.ZP,{container:!0,spacing:3,children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(S.Z,{title:"Reset filters",children:(0,l.jsx)(A.Z,{endIcon:(0,l.jsx)(M.w,{fontSize:"small"}),onClick:()=>{en(e=>!e)},variant:"outlined",children:"Filters"})})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(A.Z,{variant:"contained",disabled:G,color:"primary",name:"preview",onClick:()=>{V(!0)},children:"Preview"})})]})})})]})})})}),(0,l.jsx)(i.Z,{sx:{mt:3},children:(0,l.jsx)(D.Z,{children:(0,l.jsx)(T.Z,{children:(0,l.jsx)(W.L,{children:(0,l.jsx)(i.Z,{sx:{minWidth:800,p:6,minHeight:1200},children:(0,l.jsx)(ee,{data:$,filters:y,loading:G})})})})})})]})]})}),_&&(0,l.jsx)(E.j,{editable:!0,setLoading:N,loading:G,onClose:()=>V(!1),county:null==k?void 0:k.county,documentName:"PaidBillsReport",children:(0,l.jsx)(el,{county:null==k?void 0:k.county,filters:y,data:$})})]})},ei=e=>{var t,n,r,a;let{filters:s,loading:o,data:c}=e,{user:d}=(0,z.a)();return(0,l.jsxs)(i.Z,{sx:{minWidth:800,minHeight:1200},children:[(0,l.jsxs)(m.ZP,{container:!0,spacing:3,justifyContent:"space-between",sx:{mb:4},children:[(0,l.jsxs)(m.ZP,{item:!0,children:[(0,l.jsx)(C.Z,{variant:"h5",children:"Refund Report"}),(0,l.jsx)(C.Z,{variant:"subheader",children:"City Tax"})]}),(0,l.jsxs)(m.ZP,{item:!0,children:[(0,l.jsxs)(C.Z,{variant:"body2",align:"left",children:["City Of ",null==d?void 0:null===(t=d.county)||void 0===t?void 0:t.clerkCity,"'s Office"]}),(0,l.jsx)(C.Z,{variant:"body2",align:"left",children:(null==d?void 0:null===(n=d.county)||void 0===n?void 0:n.clerkAddress)+" "+(null==d?void 0:null===(r=d.county)||void 0===r?void 0:r.clerkCity)+", KY "+(null==d?void 0:null===(a=d.county)||void 0===a?void 0:a.clerkZip)}),(0,l.jsxs)(C.Z,{variant:"body2",align:"left",children:["Today's Date: ",new Date().toLocaleDateString()]}),(0,l.jsx)(C.Z,{variant:"body2",align:"left",children:s.startDate&&s.endDate&&new Date(s.startDate).toLocaleDateString()+"-"+new Date(s.endDate).toLocaleDateString()})]})]}),(0,l.jsx)($.Z,{sx:{overflow:"initial"},children:(0,l.jsx)(W.L,{children:(0,l.jsxs)(J.Z,{children:[(0,l.jsx)(_.Z,{children:(0,l.jsxs)(V.Z,{children:[(0,l.jsx)(K.Z,{children:"Refund Date"}),(0,l.jsx)(K.Z,{align:"right",children:"Year"}),(0,l.jsx)(K.Z,{align:"right",children:"Bill Number"}),(0,l.jsx)(K.Z,{children:"Tax Payer"}),(0,l.jsx)(K.Z,{children:"Description"}),(0,l.jsx)(K.Z,{align:"right",children:"Amount Refunded"}),(0,l.jsx)(K.Z,{children:"Refunded By"}),(0,l.jsx)(K.Z,{})]})}),(0,l.jsxs)(X.Z,{children:[!o&&0===c.refundsReportRecords.length&&(0,l.jsx)(V.Z,{sx:{height:"100px"},children:(0,l.jsx)(K.Z,{colSpan:8,children:(0,l.jsx)(m.ZP,{container:!0,justifyContent:"center",children:(0,l.jsx)(m.ZP,{item:!0,children:"No records to display."})})})}),c.refundsReportRecords.map((e,t)=>(0,l.jsxs)(V.Z,{children:[(0,l.jsx)(K.Z,{children:new Date(e.dateRefunded).toLocaleString()}),(0,l.jsx)(K.Z,{align:"right",children:e.year}),(0,l.jsx)(K.Z,{align:"right",children:e.billNumber}),(0,l.jsx)(K.Z,{children:(0,l.jsx)(m.ZP,{container:!0,children:e.owners.map((e,t)=>(0,l.jsx)(m.ZP,{item:!0,xs:12,children:e.fullName},t))})}),(0,l.jsx)(K.Z,{children:e.propertyDescription}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(e.amountRefunded)}),(0,l.jsx)(K.Z,{children:e.refundedBy}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(e.runningTotal)})]},t)),c.refundsReportRecords.length>0&&(0,l.jsxs)(V.Z,{children:[(0,l.jsx)(K.Z,{}),(0,l.jsx)(K.Z,{}),(0,l.jsx)(K.Z,{}),(0,l.jsx)(K.Z,{}),(0,l.jsx)(K.Z,{}),(0,l.jsx)(K.Z,{}),(0,l.jsx)(K.Z,{align:"right",children:"TOTAL REFUNDED:"}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(c.refundsTotalAmount)})]})]})]})})})]})};et.Zx.register({family:"Canterbury",src:"/static/font/Canterbury.ttf"});let es=et.mM.create({page:{backgroundColor:"#FFFFFF",padding:40},h5:{fontWeight:600},subHeader:{fontSize:12,fontFamily:"Helvetica",fontWeight:400},headerSmall:{fontSize:8,fontFamily:"Helvetica"},body2:{fontSize:10},header:{flexDirection:"row",justifyContent:"space-between"},tableRow:{borderBottomWidth:1,borderColor:"#3b3b3b",borderStyle:"solid",flexDirection:"row"},tableRowHeader:{flexDirection:"row"},tableCellBill:{padding:6,width:"12.5%"}}),eo=e=>{let{data:t,county:n,filters:r}=e;return(0,l.jsx)(et.BB,{children:(0,l.jsxs)(et.T3,{style:es.page,size:"LETTER",children:[(0,l.jsxs)(et.G7,{style:[es.header,{marginBottom:24}],children:[(0,l.jsxs)(et.G7,{children:[(0,l.jsx)(et.xv,{style:es.h5,children:"Refund Report"}),(0,l.jsx)(et.xv,{style:[es.subHeader,{marginTop:4}],children:"City Taxes"})]}),(0,l.jsxs)(et.G7,{style:[{alignItems:"flex-start",display:"flex"}],children:[(0,l.jsxs)(et.xv,{style:es.body2,children:["City Of ",n.clerkCity,"'s Office"]}),(0,l.jsx)(et.xv,{style:[es.body2,{marginTop:4}],children:n.clerkAddress+" "+n.clerkCity+", KY "+n.clerkZip}),(0,l.jsxs)(et.xv,{style:[es.body2,{marginTop:4}],children:["Today's Date: ",new Date().toLocaleDateString()]}),(0,l.jsxs)(et.xv,{style:[es.body2,{marginTop:4}],children:[new Date(r.startDate).toLocaleDateString()," -"," ",new Date(r.endDate).toLocaleDateString()]})]})]}),(0,l.jsxs)(et.G7,{style:es.table,children:[(0,l.jsx)(et.G7,{style:{backgroundColor:"#f3f4f6"},children:(0,l.jsx)(et.G7,{style:[es.tableRowHeader,{display:"flex"}],children:(0,l.jsxs)(et.G7,{style:es.tableRow,children:[(0,l.jsx)(et.G7,{style:es.tableCellBill,children:(0,l.jsx)(et.xv,{style:[es.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"left"}],children:"REFUND DATE"})}),(0,l.jsx)(et.G7,{style:es.tableCellBill,children:(0,l.jsx)(et.xv,{style:[es.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"right"}],children:"YEAR"})}),(0,l.jsx)(et.G7,{style:es.tableCellBill,children:(0,l.jsx)(et.xv,{style:[es.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"right"}],children:"BILL NUMBER"})}),(0,l.jsx)(et.G7,{style:es.tableCellBill,children:(0,l.jsx)(et.xv,{style:[es.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"left"}],children:"TAX PAYER"})}),(0,l.jsx)(et.G7,{style:es.tableCellBill,children:(0,l.jsx)(et.xv,{style:[es.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"left"}],children:"DESCRIPTION"})}),(0,l.jsx)(et.G7,{style:es.tableCellBill,children:(0,l.jsx)(et.xv,{style:[es.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"right"}],children:"AMOUNT REFUNDED"})}),(0,l.jsx)(et.G7,{style:es.tableCellBill,children:(0,l.jsx)(et.xv,{style:[es.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"left"}],children:"REFUNDED BY"})}),(0,l.jsx)(et.G7,{style:es.tableCellBill,children:(0,l.jsx)(et.xv,{style:[es.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"right"}]})})]})})}
1),(0,l.jsxs)(et.G7,{style:es.tableBody,children:[0===t.refundsReportRecords.length&&(0,l.jsx)(et.G7,{style:[es.tableRow,{alignItems:"center",display:"flex"}],children:(0,l.jsx)(et.G7,{style:{alignItems:"center",width:"100%",height:60,display:"flex",flexDirection:"row",justifyContent:"center"},children:(0,l.jsx)(et.xv,{style:es.body2,children:"No Records to Display"})})}),t.refundsReportRecords.map((e,t)=>(0,l.jsxs)(et.G7,{style:[es.tableRow,{alignItems:"center",display:"flex"}],children:[(0,l.jsx)(et.G7,{style:es.tableCellBill,children:(0,l.jsx)(et.xv,{style:[es.body2,{textAlign:"left"}],children:new Date(e.dateRefunded).toLocaleString()})}),(0,l.jsx)(et.G7,{style:es.tableCellBill,children:(0,l.jsx)(et.xv,{style:[es.body2,{textAlign:"right"}],children:e.year})}),(0,l.jsx)(et.G7,{style:es.tableCellBill,children:(0,l.jsx)(et.xv,{style:[es.body2,{textAlign:"right"}],children:e.billNumber})}),(0,l.jsx)(et.G7,{style:es.tableCellBill,children:e.owners.map((e,t)=>(0,l.jsx)(et.G7,{style:{width:"100%",paddingTop:t>0?2:0},children:(0,l.jsx)(et.xv,{style:[es.body2],children:e.fullName})},t))}),(0,l.jsx)(et.G7,{style:es.tableCellBill,children:(0,l.jsx)(et.xv,{style:[es.body2,{textAlign:"left"}],children:e.propertyDescription})}),(0,l.jsx)(et.G7,{style:es.tableCellBill,children:(0,l.jsx)(et.xv,{style:[es.body2,{textAlign:"right"}],children:(0,Q.$)(e.amountRefunded)})}),(0,l.jsx)(et.G7,{style:es.tableCellBill,children:(0,l.jsx)(et.xv,{style:[es.body2,{textAlign:"left"}],children:e.refundedBy})}),(0,l.jsx)(et.G7,{style:es.tableCellBill,children:(0,l.jsx)(et.xv,{style:[es.body2,{textAlign:"right"}],children:(0,Q.$)(e.runningTotal)})})]},t)),t.refundsReportRecords.length>0&&(0,l.jsxs)(et.G7,{style:[es.tableRow,{alignItems:"center",display:"flex"}],children:[(0,l.jsx)(et.G7,{style:es.tableCellBill}),(0,l.jsx)(et.G7,{style:es.tableCellBill}),(0,l.jsx)(et.G7,{style:es.tableCellBill}),(0,l.jsx)(et.G7,{style:es.tableCellBill}),(0,l.jsx)(et.G7,{style:es.tableCellBill}),(0,l.jsx)(et.G7,{style:es.tableCellBill}),(0,l.jsx)(et.G7,{style:es.tableCellBill,children:(0,l.jsx)(et.xv,{style:[es.body2,{textAlign:"right"}],children:"Total Refunded:"})}),(0,l.jsx)(et.G7,{style:es.tableCellBill,children:(0,l.jsx)(et.xv,{style:[es.body2,{textAlign:"right"}],children:(0,Q.$)(t.refundsTotalAmount)})})]})]})]})]})})},ec=e=>{let t=new Date(1753,1,1),n=new Date(9999,12,31),{filters:r,onChange:a,initialFilters:s,setDateRange:o}=e,[c,d]=(0,x.useState)(new Date(s.startDate)),[h,u]=(0,x.useState)(new Date(s.endDate)),[y,p]=(0,x.useState)(r),[g]=(0,G.Nr)(y,600);(0,x.useEffect)(()=>{a(g)},[g]),(0,x.useEffect)(()=>{o({startDate:new Date(c).toDateString(),endDate:new Date(h).toDateString()})},[c,h]);let j=(0,x.useCallback)(()=>{p(e=>({...e}))},[p,s]);return(0,z.a)(j),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Z,{sx:{justifyContent:"right",display:"flex",flexGrow:1},children:(0,l.jsx)(S.Z,{title:"Reset filters",children:(0,l.jsx)(A.Z,{startIcon:(0,l.jsx)(N.h,{fontSize:"small"}),variant:"outlined",color:"primary",onClick:()=>{null==p||p({...s,endDate:(0,O.g)(new Date(new Date().getFullYear(),new Date().getMonth(),new Date().getDate(),23,59,59,998)),startDate:(0,O.g)(new Date(new Date().getFullYear(),new Date().getMonth(),new Date().getDate(),0,0,0,0))}),d(new Date),u(new Date)},name:"reset",children:"Reset"})})}),(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:2},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Refund Date"}),(0,l.jsx)(I.M,{label:"From",minDate:t,maxDate:n,value:c?new Date(c):null,OpenPickerButtonProps:{tabIndex:-1},onChange:e=>{if(d(e),e instanceof Date&&!isNaN(e)&&e>=t&&e<=n){let t={...y,startDate:(0,O.g)(new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0))};t.endDate&&new Date(e)>new Date(t.endDate)&&(t.endDate=(0,O.g)(new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,998)),u(e)),null==p||p(t);return}""!==y.startDate&&(null==p||p({...y,startDate:""}))},slotProps:{textField:{size:"small",fullWidth:!0,error:!(0,F.t)(new Date(y.startDate)),helperText:!(0,F.t)(new Date(y.startDate))&&"date is required"}}}),(0,l.jsx)(I.M,{label:"To",minDate:t,maxDate:n,OpenPickerButtonProps:{tabIndex:-1},onChange:e=>{if(u(e),e instanceof Date&&!isNaN(e)&&e>=t&&e<=n){let t={...y,endDate:(0,O.g)(new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,998))};t.startDate&&new Date(e)<new Date(t.startDate)&&(t.startDate=(0,O.g)(new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)),d(e)),null==p||p(t);return}""!==y.endDate&&(null==p||p({...y,endDate:""}))}
1,value:h?new Date(h):null,slotProps:{textField:{size:"small",fullWidth:!0,error:!(0,F.t)(new Date(y.endDate)),helperText:!(0,F.t)(new Date(y.endDate))&&"date is required"}}})]})]})},ed=e=>{let{value:t,reports:r,setValue:a,rootRef:s,dateRange:o,setDateRange:c,scrollToTopPage:d}=e,h={refundsReportRecords:[]},u={startDate:(0,O.g)(new Date(new Date(o.startDate).getFullYear(),new Date(o.startDate).getMonth(),new Date(o.startDate).getDate(),0,0,0,0)),endDate:(0,O.g)(new Date(new Date(o.endDate).getFullYear(),new Date(o.endDate).getMonth(),new Date(o.endDate).getDate(),23,59,59,998))},[y,p]=(0,x.useState)(u),{user:k}=(0,z.a)(),I=(0,P.s)(),[G,N]=(0,x.useState)(!1),[L,U]=(0,x.useState)(h),[$,J]=(0,x.useState)(!1),[_,V]=(0,x.useState)(null),K=(0,g.Z)(e=>e.breakpoints.up("md"),{noSsr:!0}),[X,Q]=(0,x.useState)(K),ee=(0,x.useCallback)(async()=>{let e=new AbortController;try{null==_||_.abort(),V(e),N(!0);let t=await R.x.refundsReport(null==k?void 0:k.selectedCountyId,y,e.signal),n=await t.json();if(!e.signal.aborted&&I){if(t.ok&&n){U(n),N(!1),null==e||e.abort();return}let l=n&&n.error||t.status;throw Error(l)}}catch(t){"Error: 401 Authentication Required"==t&&(await Promise.resolve().then(n.t.bind(n,11163,23))).default.reload(window.location.pathname),null==e||e.abort(),N(!1),B.s.errors.includes(t.toString())||(U(h),console.error(t),q.ZP.error("Error loading records!"))}},[I,y,_,k]),et=e=>{p(e)};return(0,x.useEffect)(()=>{(0,F.t)(new Date(y.startDate))&&(0,F.t)(new Date(y.endDate))?ee():U(h),d()},[y]),(0,x.useEffect)(()=>()=>{null==_||_.abort()},[_]),(0,l.jsxs)(i.Z,{sx:{backgroundColor:"background.default",display:"flex",flexGrow:1},children:[(0,l.jsx)(Y.g,{containerRef:s,onClose:()=>{Q(!1)},onChange:et,open:X,children:(0,l.jsx)(ec,{filters:y,setDateRange:c,initialFilters:u,onChange:et,setFilters:p,user:k})}),(0,l.jsx)(H._,{open:X,children:(0,l.jsxs)(j.Z,{maxWidth:"lg",children:[(0,l.jsx)(m.ZP,{container:!0,children:(0,l.jsx)(m.ZP,{item:!0,md:4,xs:12,children:(0,l.jsx)(f.Z,{fullWidth:!0,value:t,disableClearable:!0,onChange:(e,t)=>
1{a(t)},options:r,renderInput:e=>(0,l.jsx)(b.Z,{...e,label:"Report"})})})}),(0,l.jsx)(w.Z,{sx:{mb:3,mt:3}}),(0,l.jsxs)(i.Z,{sx:{position:"relative"},children:[(0,l.jsx)(Z.Z,{sx:{zIndex:9999,position:"absolute"},open:G,children:(0,l.jsx)(v.Z,{})}),(0,l.jsx)(D.Z,{children:(0,l.jsx)(T.Z,{children:(0,l.jsx)(i.Z,{sx:{mb:4},children:(0,l.jsxs)(m.ZP,{container:!0,justifyContent:"space-between",spacing:3,children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(C.Z,{variant:"h4",children:"Refund Report"})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(i.Z,{children:(0,l.jsxs)(m.ZP,{container:!0,spacing:3,children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(S.Z,{title:"Reset filters",children:(0,l.jsx)(A.Z,{endIcon:(0,l.jsx)(M.w,{fontSize:"small"}),onClick:()=>{Q(e=>!e)},variant:"outlined",children:"Filters"})})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(A.Z,{variant:"contained",disabled:G,color:"primary",name:"preview",onClick:()=>{J(!0)},children:"Preview"})})]})})})]})})})}),(0,l.jsx)(i.Z,{sx:{mt:3},children:(0,l.jsx)(D.Z,{children:(0,l.jsx)(T.Z,{children:(0,l.jsx)(W.L,{children:(0,l.jsx)(i.Z,{sx:{minWidth:800,p:6,minHeight:1200},children:(0,l.jsx)(ei,{data:L,filters:y,loading:G})})})})})})]})]})}),$&&(0,l.jsx)(E.j,{editable:!0,setLoading:N,loading:G,onClose:()=>J(!1),county:null==k?void 0:k.county,documentName:"RefundReport",children:(0,l.jsx)(eo,{county:null==k?void 0:k.county,filters:y,data:L})})]})};var eh=n(7248);et.Zx.register({family:"Canterbury",src:"/static/font/Canterbury.ttf"});let eu=et.mM.create({page:{backgroundColor:"#FFFFFF",padding:40},h5:{fontWeight:"bold",marginBottom:4},subHeader:{fontSize:12,fontFamily:"Helvetica"},body2:{fontSize:10,fontFamily:"Helvetica"},header:{flexDirection:"row",justifyContent:"space-between",marginBottom:24},headerSmall:{fontSize:8,fontFamily:"Helvetica"},tableRow:{borderBottomWidth:1,borderColor:"#3b3b3b",flexDirection:"row",paddingVertical:6},tableCell:{width:"10%",textAlign:"right",paddingRight:3},tableCellIndex:{paddingRight:6,width:"5%",justifyContent:"center",alignItems:"center",display:"flex"},tableCellYear:{paddingRight:3,width:"8%",textAlign:"left",alignItems:"center",display:"flex"},tableCellBillNumber:{paddingRight:3,width:"10%",textAlign:"left",alignItems:"left",display:"flex"},tableCellOwner:{paddingRight:3,width:"30%",textAlign:"left",alignItems:"center",display:"flex"},tableCellDescription:{paddingRight:3,width:"40%",textAlign:"left",alignItems:"center",display:"flex"},tableCellTotalDue:{paddingRight:3,width:"10%",textAlign:"right",alignItems:"center",display:"flex"},tableCellTotals:{padding:6,width:"25%"}}),ex=e=>{var t;let{data:n,county:r,filters:a,taxTypeOptions:i}=e;return(0,l.jsx)(et.BB,{children:(0,l.jsxs)(et.T3,{style:eu.page,size:"LETTER",children:[(0,l.jsxs)(et.G7,{style:[eu.header,{marginBottom:24}],fixed:!0,children:[(0,l.jsxs)(et.G7,{children:[(0,l.jsx)(et.xv,{style:eu.h5,children:"Unpaid Bills Report"}),(0,l.jsx)(et.xv,{style:[eu.subHeader,{marginTop:4}],children:"City Taxes"}),(0,l.jsx)(et.xv,{style:[eu.subHeader,{marginTop:4}],children:a.taxBillTypeId&&i&&i.taxBillTypes&&"Bill Type: ".concat(null===(t=i.taxBillTypes.find(e=>e.id===a.taxBillTypeId))||void 0===t?void 0:t.type)})]}),(0,l.jsxs)(et.G7,{style:[{alignItems:"flex-start",display:"flex"}],children:[(0,l.jsxs)(et.xv,{style:eu.body2,children:["City Of ",r.clerkCity,"'s Office"]}),(0,l.jsx)(et.xv,{style:[eu.body2,{marginTop:4}],children:r.clerkAddress+" "+r.clerkCity+", KY "+r.clerkZip}),(0,l.jsxs)(et.xv,{style:[eu.body2,{marginTop:4}],children:["Today's Date: ",new Date().toLocaleDateString()]}),(0,l.jsx)(et.xv,{style:[eu.body2,{marginTop:4}],children:a.startDate&&a.endDate&&new Date(a.startDate).toLocaleDateString()+"-"+new Date(a.endDate).toLocaleDateString()})]})]}),(0,l.jsxs)(et.G7,{style:{flexDirection:"column"},children:[(0,l.jsxs)(et.G7,{style:[eu.tableRow,{backgroundColor:"#f3f4f6",alignItems:"center",display:"flex"}],fixed:!0,children:[(0,l.jsx)(et.G7,{style:eu.tableCellIndex,children:(0,l.jsx)(et.xv,{style:[eu.headerSmall]})}),(0,l.jsx)(et.xv,{style:[eu.headerSmall,eu.tableCellYear,{fontFamily:"Helvetica-Bold",textAlign:"left"}],children:"YEAR"}),(0,l.jsxs)(et.G7,{style:eu.tableCellBillNumber,children:[(0,l.jsx)(et.xv,{style:[eu.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"left"}],children:"BILL"}),(0,l.jsx)(et.xv,{style:[eu.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"left"}],children:"NUMBER"})]}),(0,l.jsx)(et.xv,{style:[eu.headerSmall,eu.tableCellOwner,{fontFamily:"Helvetica-Bold",textAlign:"left"}],children:"OWNER"}),(0,l.jsx)(et.xv,{style:[eu.headerSmall,eu.tableCellDescription,{fontFamily:"Helvetica-Bold",textAlign:"left"}],children:"DESCRIPTION"}),(0,l.jsx)(et.xv,{style:[eu.headerSmall,eu.tableCellTotalDue,{fontFamily:"Helvetica-Bold",textAlign:"right"}],children:"TOTAL DUE"})]}),0===n.unpaidBills.length?(0,l.jsx)(et.G7,{style:{alignItems:"center",padding:20},children:(0,l.jsx)(et.xv,{style:eu.body2,children:"No Records to Display"})}):n.unpaidBills.map((e,t)=>(0,l.jsxs)(et.G7,{style:eu.tableRow,children:[(0,l.jsx)(et.G7,{style:eu.tableCellIndex,children:(0,l.jsx)(et.xv,{style:[eu.body2],children:t+1})}),(0,l.jsx)(et.xv,{style:[eu.body2,eu.tableCellYear,{textAlign:"left"}],children:e.year}),(0,l.jsx)(et.xv,{style:[eu.body2,eu.tableCellBillNumber,{textAlign:"left"}],children:e.billNumber}),(0,l.jsx)(et.xv,{style:[eu.body2,eu.tableCellOwner,{textAlign:"left"}],children:e.owners.map((t,n)=>(0,l.jsxs)(et.xv,{children:[t.fullName,n<e.owners.length-1?", ":""]},n))}),(0,l.jsx)(et.xv,{style:[eu.body2,eu.tableCellDescription],children:e.propertyDescription}),(0,l.jsx)(et.xv,{style:[eu.body2,eu.tableCellTotalDue],children:(0,Q.$)(e.calculation.totalDue)})]},t))]}),n.unpaidBills.length>0&&(0,l.jsxs)(et.G7,{style:[eu.tableRow,{alignItems:"center"}],children:[(0,l.jsx)(et.G7,{style:eu.tableCellTotals}),(0,l.jsx)(et.G7,{style:eu.tableCellTotals}),(0,l.jsx)(et.G7,{style:eu.tableCellTotals}),(0,l.jsx)(et.G7,{style:eu.tableCellTotals,children:(0,l.jsx)(et.xv,{style:[eu.body2,{textAlign:"right"}],children:"TOTAL:"})}),(0,l.jsx)(et.G7,{style:eu.tableCellTotals,children:(0,l.jsx)(et.xv,{style:[eu.body2,{textAlign:"right"}],children:(0,Q.$)(n.unpaidBills.reduce((e,t)=>
1e+t.calculation.totalDue,0))})})]})]})})};var ey=n(65806),ep=n(29437),eg=n(95611),ej=n(67412);let em=e=>{let{filters:t,onChange:n,initialFilters:r,taxTypeOptions:a,user:s}=e,[o,c]=(0,x.useState)(r.startYear||""),[d,h]=(0,x.useState)(r.endYear||""),[u,y]=(0,x.useState)(t),[p]=(0,G.Nr)(u,600),g=(0,x.useRef)(null),j=(0,x.useRef)(null);(0,x.useEffect)(()=>{n(p)},[p]);let w=e=>{var t,n,l,a,i;e.preventDefault(),(null===(t=g.current)||void 0===t?void 0:t.value)==u.greaterThan||(null===(n=e.relatedTarget)||void 0===n?void 0:n.name)=="reset"||isNaN(null===(l=g.current)||void 0===l?void 0:l.value)||null==y||y({...u,greaterThan:(null===(a=g.current)||void 0===a?void 0:a.value)==""?r.greaterThan:null===(i=g.current)||void 0===i?void 0:i.value})},Z=e=>{var t,n,l,a,i;e.preventDefault(),(null===(t=j.current)||void 0===t?void 0:t.value)==u.lessThan||(null===(n=e.relatedTarget)||void 0===n?void 0:n.name)=="reset"||isNaN(null===(l=j.current)||void 0===l?void 0:l.value)||null==y||y({...u,lessThan:(null===(a=j.current)||void 0===a?void 0:a.value)==""?r.lessThan:null===(i=j.current)||void 0===i?void 0:i.value})},v=(0,x.useCallback)(()=>{y(e=>({...e,taxBillTypeId:r.taxBillTypeId}))},[y,r]);return(0,z.a)(v),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Z,{sx:{justifyContent:"right",display:"flex",flexGrow:1},children:(0,l.jsx)(S.Z,{title:"Reset filters",children:(0,l.jsx)(A.Z,{startIcon:(0,l.jsx)(N.h,{fontSize:"small"}),variant:"outlined",color:"primary",onClick:()=>{y(r),c(r.startYear||""),h(r.endYear||""),g.current.value="",j.current.value="",y(e=>({...e,taxBillTypeId:null}))},name:"reset",children:"Reset"})})}),(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:2},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Year"}),(0,l.jsx)(b.Z,{autoFocus:!0,error:!u.startYear,size:"small",label:"Start Year",value:o,onChange:e=>{let t=e.target.value;c(t),isNaN(t)||y(e=>({...e,startYear:t}))},fullWidth:!0}),(0,l.jsx)(b.Z,{error:!u.endYear,size:"small",label:"End Year",value:d,onChange:e=>{let t=e.target.value;h(t),isNaN(t)||y(e=>({...e,endYear:t}))},fullWidth:!0})]}),(0,l.jsxs)(m.ZP,{container:!0,justifyContent:"space-between",sx:{mt:3},children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(C.Z,{color:"textSecondary",variant:"subtitle2",children:"Amount"})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(ey.Z,{control:(0,l.jsx)(ep.Z,{color:"secondary",tabIndex:-1,checked:u.amountInclusive,onChange:e=>{null==y||y({...u,amountInclusive:e.target.checked})}}),label:"Inclusive"})})]}),(0,l.jsxs)(k.Z,{spacing:2,children:[(0,l.jsx)(i.Z,{component:"form",onSubmit:w,children:(0,l.jsx)(b.Z,{size:"small",label:"Greater Than",name:"greaterThan",fullWidth:!0,onKeyUp:w,onBlur:w,InputProps:{startAdornment:(0,l.jsx)(eg.Z,{position:"start",children:(0,l.jsx)(ej.Z,{})})},inputProps:{ref:g}})}),(0,l.jsx)(i.Z,{component:"form",onSubmit:Z,children:(0,l.jsx)(b.Z,{size:"small",label:"Less Than",name:"lessThan",fullWidth:!0,onKeyUp:Z,onBlur:Z,InputProps:{startAdornment:(0,l.jsx)(eg.Z,{position:"start",children:(0,l.jsx)(ej.Z,{})})},inputProps:{ref:j}})})]}),(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:2},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Details"}),(0,l.jsx)(f.Z,{name:"taxBillTypeId",options:a.taxBillTypes.map(e=>e.id),getOptionLabel:e=>{var t,n;return null!==(n=null===(t=a.taxBillTypes.find(t=>t.id==e))||void 0===t?void 0:t.type)&&void 0!==n?n:""},value:t.taxBillTypeId,onChange:(e,t)=>
1{null==y||y(e=>({...e,taxBillTypeId:t}))},autoSelect:!0,autoHighlight:!0,renderInput:e=>(0,l.jsx)(b.Z,{...e,size:"small",fullWidth:!0,label:"Bill Type"})})]})]})},ef={taxBillTypeId:null,amountInclusive:!0,greaterThan:null,lessThan:null,startYear:"",endYear:""},eb=e=>{var t,n,r,a;let{filters:s,loading:o,data:c}=e,{user:d}=(0,z.a)();return(0,l.jsxs)(i.Z,{sx:{minWidth:800,minHeight:1200},children:[(0,l.jsxs)(m.ZP,{container:!0,spacing:3,justifyContent:"space-between",sx:{mb:4},children:[(0,l.jsxs)(m.ZP,{item:!0,children:[(0,l.jsx)(C.Z,{variant:"h5",children:"Unpaid Bills Report"}),(0,l.jsx)(C.Z,{variant:"subheader",children:"City Tax"})]}),(0,l.jsxs)(m.ZP,{item:!0,children:[(0,l.jsxs)(C.Z,{variant:"body2",align:"left",children:["City Of ",null==d?void 0:null===(t=d.county)||void 0===t?void 0:t.clerkCity,"'s Office"]}),(0,l.jsx)(C.Z,{variant:"body2",align:"left",children:(null==d?void 0:null===(n=d.county)||void 0===n?void 0:n.clerkAddress)+" "+(null==d?void 0:null===(r=d.county)||void 0===r?void 0:r.clerkCity)+", KY "+(null==d?void 0:null===(a=d.county)||void 0===a?void 0:a.clerkZip)}),(0,l.jsxs)(C.Z,{variant:"body2",align:"left",children:["Today's Date: ",new Date().toLocaleDateString()]}),(0,l.jsx)(C.Z,{variant:"body2",align:"left",children:s.startDate&&s.endDate&&new Date(s.startDate).toLocaleDateString()+"-"+new Date(s.endDate).toLocaleDateString()})]})]}),(0,l.jsx)($.Z,{sx:{overflow:"initial"},children:(0,l.jsx)(W.L,{children:(0,l.jsxs)(J.Z,{children:[(0,l.jsx)(_.Z,{children:(0,l.jsxs)(V.Z,{children:[(0,l.jsx)(K.Z,{}),(0,l.jsx)(K.Z,{align:"right",children:"Year"}),(0,l.jsx)(K.Z,{align:"right",children:"Bill Number"}),(0,l.jsx)(K.Z,{children:"Owner"}),(0,l.jsx)(K.Z,{children:"Description"}),(0,l.jsx)(K.Z,{align:"right",children:"Total Due"})]})}),(0,l.jsxs)(X.Z,{children:[!o&&c&&c.unpaidBills&&0===c.unpaidBills.length&&(0,l.jsx)(V.Z,{sx:{height:"100px"},children:(0,l.jsx)(K.Z,{colSpan:7,children:(0,l.jsx)(m.ZP,{container:!0,justifyContent:"center",children:(0,l.jsx)(m.ZP,{item:!0,children:"No records to display."})})})}),!o&&c&&c.unpaidBills&&c.unpaidBills.length>0&&(0,l.jsxs)(l.Fragment,{children:[c.unpaidBills.slice(0,100).map((e,t)=>(0,l.jsxs)(V.Z,{children:[(0,l.jsx)(K.Z,{children:t+1}),(0,l.jsx)(K.Z,{align:"right",children:e.year}),(0,l.jsx)(K.Z,{align:"right",children:e.billNumber}),(0,l.jsx)(K.Z,{children:(0,l.jsx)(m.ZP,{container:!0,children:e.owners.map((e,t)=>(0,l.jsx)(m.ZP,{item:!0,xs:12,children:e.fullName},t))})}),(0,l.jsx)(K.Z,{children:e.propertyDescription}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(e.calculation.totalDue)})]},t)),(0,l.jsxs)(V.Z,{children:[(0,l.jsx)(K.Z,{colSpan:5,align:"right",children:"TOTAL:"}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(c.unpaidBills.reduce((e,t)=>e+t.calculation.totalDue,0))})]})]})]})]})})})]})},ew=e=>{let{value:t,reports:r,setValue:a,rootRef:s,dateRange:o,setDateRange:c,scrollToTopPage:d}=e,h={unpaidBills:[]},[u,y]=(0,x.useState)({...ef}),{user:p}=(0,z.a)(),k=(0,P.s)(),[I,G]=(0,x.useState)(!1),[N,F]=(0,x.useState)(!1),[O,L]=(0,x.useState)(h),[U,$]=(0,x.useState)(!1),[J,_]=(0,x.useState)(null),V=(0,g.Z)(e=>e.breakpoints.up("md"),{noSsr:!0}),[K,X]=(0,x.useState)({taxBillTypes:[]}),[Q,ee]=(0,x.useState)(V),et=(0,x.useCallback)(async()=>{let e=new AbortController;try{null==J||J.abort(),_(e),G(!0);let t=await R.x.unpaidBillsReport(null==p?void 0:p.selectedCountyId,u,e.signal),n=await t.json();if(!e.signal.aborted&&k){if(t.ok&&n){L(n),G(!1),null==e||e.abort();return}let l=n&&n.error||t.status;throw Error(l)}}catch(t){"Error: 401 Authentication Required"==t&&(await Promise.resolve().then(n.t.bind(n,11163,23))).default.reload(window.location.pathname),null==e||e.abort(),G(!1),B.s.errors.includes(t.toString())||(L(h),console.error(t),q.ZP.error("Error loading records!"))}},[k,u,J,p]),en=async()=>{try{F(!0);let e=await R.x.types(null==p?void 0:p.selectedCountyId),t=await e.json();if(k){if(e.ok&&t){F(!1),X(t);return}let n=t&&t.error||e.status;throw Error(n)}}catch(e){"Error: 401 Authentication Required"==e&&(await Promise.resolve().then(n.t.bind(n,11163,23))).default.reload(window.location.pathname),F(!1),console.error(e),q.ZP.error("Error loading search types!")}},el=e=>{y(e)};return(0,x.useEffect)(()=>{u.startYear&&u.endYear?et():L(h),d()},[u]),(0,x.useEffect)(()=>()=>{null==J||J.abort()},[J]),(0,x.useEffect)(()=>{en()},[p]),(0,l.jsxs)(i.Z,{sx:{backgroundColor:"background.default",display:"flex",flexGrow:1},children:[(0,l.jsx)(Y.g,{containerRef:s,onClose:()=>{ee(!1)},onChange:el,open:Q,children:(0,l.jsx)(em,{initialFilters:{...ef,...o},taxTypeOptions:K,loadingTypes:N,filters:u,onChange:el,setFilters:y,setDateRange:c,user:p})}),(0,l.jsx)(H._,{open:Q,children:(0,l.jsxs)(j.Z,{maxWidth:"lg",children:[(0,l.jsx)(m.ZP,{container:!0,children:(0,l.jsx)(m.ZP,{item:!0,md:4,xs:12,children:(0,l.jsx)(f.Z,{fullWidth:!0,value:t,disableClearable:!0,onChange:(e,t)=>
1{a(t)},options:r,renderInput:e=>(0,l.jsx)(b.Z,{...e,label:"Report"})})})}),(0,l.jsx)(w.Z,{sx:{mb:3,mt:3}}),(0,l.jsxs)(i.Z,{sx:{position:"relative"},children:[(0,l.jsx)(Z.Z,{sx:{zIndex:9999,position:"absolute"},open:I,children:(0,l.jsx)(v.Z,{})}),(0,l.jsx)(D.Z,{children:(0,l.jsx)(T.Z,{children:(0,l.jsx)(i.Z,{sx:{mb:4},children:(0,l.jsxs)(m.ZP,{container:!0,justifyContent:"space-between",spacing:3,children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(C.Z,{variant:"h4",children:"Unpaid Bills Report"})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(i.Z,{children:(0,l.jsxs)(m.ZP,{container:!0,spacing:3,children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(S.Z,{title:"Reset filters",children:(0,l.jsx)(A.Z,{endIcon:(0,l.jsx)(M.w,{fontSize:"small"}),onClick:()=>{ee(e=>!e)},variant:"outlined",children:"Filters"})})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(A.Z,{variant:"contained",disabled:I,color:"primary",name:"preview",onClick:()=>{$(!0)},children:"Preview"})})]})})})]})})})}),(0,l.jsx)(i.Z,{sx:{mt:3},children:(0,l.jsx)(D.Z,{children:(0,l.jsx)(T.Z,{children:(0,l.jsx)(W.L,{children:(0,l.jsx)(i.Z,{sx:{minWidth:800,p:6,minHeight:1200},children:(0,l.jsx)(eb,{data:O,filters:u,loading:I,taxTypeOptions:K.taxBillTypes})})})})})})]})]})}),U&&(0,l.jsx)(E.j,{editable:!0,setLoading:G,loading:I,onClose:()=>$(!1),county:null==p?void 0:p.county,documentName:"BillsReport",children:(0,l.jsx)(ex,{taxTypeOptions:K&&K.taxBillTypes,county:null==p?void 0:p.county,filters:u,data:O})})]})};var eZ=n(92878),ev=n(31121),eD=n(81873);let eT=e=>{let t=new Date(1753,1,1),n=new Date(9999,12,31),{filters:r,onChange:a,initialFilters:s,taxTypeOptions:o,user:c}=e,d=(0,x.useRef)(null),[h,u]=(0,x.useState)(r),[y]=(0,G.Nr)(h,600),[p,g]=(0,x.useState)(r.startDate?new Date(r.startDate):null),[j,m]=(0,x.useState)(r.endDate?new Date(r.endDate):null);(0,x.useEffect)(()=>{a(y)},[y]);let w=e=>{var t,n,l;e.preventDefault(),(null===(t=d.current)||void 0===t?void 0:t.value)!=h.year&&(null===(n=e.relatedTarget)||void 0===n?void 0:n.name)!="reset"&&(null==u||u({...h,year:null===(l=d.current)||void 0===l?void 0:l.value}))},Z=()=>{null==u||u({...s}),g(null),m(null);var e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set,t=new Event("input",{bubbles:!0});d.current&&(e.call(d.current,""),d.current.dispatchEvent(t))},v=(0,x.useCallback)(()=>{Z()},[s]);return(0,z.a)(v),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Z,{sx:{justifyContent:"right",display:"flex",flexGrow:1},children:(0,l.jsx)(S.Z,{title:"Reset filters",children:(0,l.jsx)(A.Z,{startIcon:(0,l.jsx)(N.h,{fontSize:"small"}),variant:"outlined",color:"primary",onClick:Z,name:"reset",children:"Reset"})})}),(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:2},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Search Mode"}),(0,l.jsx)(i.Z,{sx:{position:"relative"},children:(0,l.jsxs)(eZ.Z,{row:!0,name:"searchMode",value:h.searchMode,sx:{px:1.5,justifyContent:"space-between"},onChange:e=>{u({...h,searchMode:e.target.value})},children:[(0,l.jsx)(ey.Z,{value:"year",control:(0,l.jsx)(ev.Z,{}),label:"Year"}),(0,l.jsx)(ey.Z,{value:"dueDate",control:(0,l.jsx)(ev.Z,{}),label:"Due Date"})]})})]}),"year"===h.searchMode&&(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:2},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Year"}),(0,l.jsx)(i.Z,{component:"form",onSubmit:w,children:(0,l.jsx)(b.Z,{size:"small",label:"Year",name:"year",fullWidth:!0,inputProps:{ref:d},onKeyUp:w,onBlur:w,error:!r.year&&"year"===h.searchMode})})]}),"dueDate"===h.searchMode&&(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:2},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Due Date"}),(0,l.jsx)(I.M,{label:"From",minDate:t,maxDate:n,value:p?new Date(p):null,OpenPickerButtonProps:{tabIndex:-1},onChange:e=>{if(g(e),e instanceof Date&&!isNaN(e)&&e>=t&&e<=n){let t={...h,startDate:(0,O.g)(new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0))};t.endDate&&new Date(e)>new Date(t.endDate)&&(t.endDate=(0,O.g)(new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)),m(e)),u(t);return}""!==h.startDate&&(null==u||u({...h,startDate:""}))},slotProps:{textField:{size:"small",fullWidth:!0,error:"dueDate"===h.searchMode&&!(0,F.t)(new Date(h.startDate)),helperText:"dueDate"===h.searchMode&&!(0,F.t)(new Date(h.startDate))&&"Date is required"}}}),(0,l.jsx)(I.M,{label:"To",minDate:t,maxDate:n,value:j?new Date(j):null,OpenPickerButtonProps:{tabIndex:-1},onChange:e=>{if(m(e),e instanceof Date&&!isNaN(e)&&e>=t&&e<=n){let t={...h,endDate:(0,O.g)(new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999))};t.startDate&&new Date(e)<new Date(t.startDate)&&(t.startDate=(0,O.g)(new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)),g(e)),u(t);return}""!==h.endDate&&(null==u||u({...h,endDate:""}))},slotProps:{textField:{size:"small",fullWidth:!0,error:"dueDate"===h.searchMode&&!(0,F.t)(new Date(h.endDate)),helperText:"dueDate"===h.searchMode&&!(0,F.t)(new Date(h.endDate))&&"Date is required"}}})]})}),(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:2},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Bill Type"}),(0,l.jsx)(i.Z,{sx:{position:"relative",mt:2},children:(0,l.jsx)(f.Z,{multiple:!0,value:o.taxBillTypes.filter(e=>h.billTypes.includes(e.id)).map(e=>e.type),options:o.taxBillTypes.map(e=>e.type),onChange:(e,t)=>
1{null==u||u({...h,billTypes:o.taxBillTypes.filter(e=>t.includes(e.type)).map(e=>e.id)})},autoSelect:!0,autoHighlight:!0,renderTags:(e,t)=>e.map((e,n)=>{let{key:r,...a}=t({index:n});return(0,l.jsx)(eD.Z,{variant:"outlined",label:e,...a},r)}),renderInput:e=>(0,l.jsx)(b.Z,{...e,size:"small",label:"Bill Types"})})})]}),(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:3},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Paid"}),(0,l.jsx)(i.Z,{sx:{position:"relative"},children:(0,l.jsxs)(eZ.Z,{row:!0,name:"paid",value:h.paid,sx:{px:1.5,justifyContent:"space-between"},onChange:e=>{u({...h,paid:e.target.value})},children:[(0,l.jsx)(ey.Z,{value:"paid",control:(0,l.jsx)(ev.Z,{}),label:"Paid"}),(0,l.jsx)(ey.Z,{value:"unpaid",control:(0,l.jsx)(ev.Z,{}),label:"Unpaid"}),(0,l.jsx)(ey.Z,{value:"all",control:(0,l.jsx)(ev.Z,{}),label:"All"})]})})]}),(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:3},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Minimum"}),(0,l.jsx)(i.Z,{sx:{position:"relative"},children:(0,l.jsxs)(eZ.Z,{row:!0,name:"minimum",value:h.minimum,sx:{px:1.5,justifyContent:"space-between"},onChange:e=>{u({...h,minimum:e.target.value})},children:[(0,l.jsx)(ey.Z,{value:"minimum",control:(0,l.jsx)(ev.Z,{}),label:"Minimum"}),(0,l.jsx)(ey.Z,{value:"not-minimum",control:(0,l.jsx)(ev.Z,{}),label:"Not Minimum"}),(0,l.jsx)(ey.Z,{value:"all",control:(0,l.jsx)(ev.Z,{}),label:"All"})]})})]}),(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:2},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Assessment Type"}),(0,l.jsx)(i.Z,{sx:{position:"relative",mt:2},children:(0,l.jsx)(f.Z,{multiple:!0,value:o.taxAssessmentTypes.filter(e=>h.assTypes.includes(e.id)).map(e=>e.type),options:o.taxAssessmentTypes.map(e=>e.type),onChange:(e,t)=>
1{null==u||u({...h,assTypes:o.taxAssessmentTypes.filter(e=>t.includes(e.type)).map(e=>e.id)})},autoSelect:!0,autoHighlight:!0,renderTags:(e,t)=>e.map((e,n)=>{let{key:r,...a}=t({index:n});return(0,l.jsx)(eD.Z,{variant:"outlined",label:e,...a},r)}),renderInput:e=>(0,l.jsx)(b.Z,{...e,size:"small",label:"Assessment Types"})})})]})]})},eC=e=>{let{value:t,reports:r,setValue:a,rootRef:s,dateRange:o,setDateRange:c,scrollToTopPage:d}=e,h={taxRollReportRecords:[]},[u,y]=(0,x.useState)({taxBillTypes:[],taxAssessmentTypes:[]}),p={year:"",billTypes:[],paid:"all",minimum:"all",assTypes:[],searchMode:"year",startDate:"",endDate:""},[k,I]=(0,x.useState)(p),{user:G}=(0,z.a)(),[N,F]=(0,x.useState)(""),O=(0,P.s)(),[L,U]=(0,x.useState)(!1),[W,$]=(0,x.useState)(!1),[J,_]=(0,x.useState)(h),[V,K]=(0,x.useState)(!1),[X,Q]=(0,x.useState)(null),ee=(0,g.Z)(e=>e.breakpoints.up("md"),{noSsr:!0}),[et,en]=(0,x.useState)(ee),el=(0,x.useCallback)(async()=>{let e=new AbortController;try{null==X||X.abort(),Q(e),U(!0);let t=await R.x.taxRollReport(null==G?void 0:G.selectedCountyId,k,e.signal),n=await t.json();if(!e.signal.aborted&&O){if(t.ok&&n){_(n),U(!1),F(n.report),null==e||e.abort();return}let l=n&&n.error||t.status;throw Error(l)}}catch(t){"Error: 401 Authentication Required"==t&&(await Promise.resolve().then(n.t.bind(n,11163,23))).default.reload(window.location.pathname),null==e||e.abort(),B.s.errors.includes(t.toString())||(U(!1),_(h),console.error(t),q.ZP.error("Error loading records!"))}},[O,k,X,G]),er=async()=>{try{$(!0);let e=await R.x.types(null==G?void 0:G.selectedCountyId),t=await e.json();if(O){if(e.ok&&t){$(!1),y(t);return}let n=t&&t.error||e.status;throw Error(n)}}catch(e){"Error: 401 Authentication Required"==e&&(await Promise.resolve().then(n.t.bind(n,11163,23))).default.reload(window.location.pathname),$(!1),console.error(e),q.ZP.error("Error loading search types!")}};return(0,x.useEffect)(()=>{let e="year"===k.searchMode,t="dueDate"===k.searchMode,n=k.year,l=k.startDate&&k.endDate;e&&n||t&&l?el():_(h),d()},[k,G]),(0,x.useEffect)(()=>()=>{null==X||X.abort()},[X]),(0,x.useEffect)(()=>{er()},[G]),(0,l.jsxs)(i.Z,{sx:{backgroundColor:"background.default",display:"flex",flexGrow:1},children:[(0,l.jsx)(Y.g,{containerRef:s,onClose:()=>{en(!1)},open:et,children:(0,l.jsx)(eT,{taxTypeOptions:u,loadingTypes:W,filters:k,initialFilters:p,onChange:e=>{I(e)},setFilters:I,user:G})}),(0,l.jsx)(H._,{open:et,children:(0,l.jsxs)(j.Z,{maxWidth:"lg",children:[(0,l.jsx)(m.ZP,{container:!0,children:(0,l.jsx)(m.ZP,{item:!0,md:4,xs:12,children:(0,l.jsx)(f.Z,{fullWidth:!0,value:t,disableClearable:!0,onChange:(e,t)=>
1{a(t)},options:r,renderInput:e=>(0,l.jsx)(b.Z,{...e,label:"Report"})})})}),(0,l.jsx)(w.Z,{sx:{mb:3,mt:3}}),(0,l.jsxs)(i.Z,{sx:{position:"relative"},children:[(0,l.jsx)(Z.Z,{sx:{zIndex:9999,position:"absolute"},open:L,children:(0,l.jsx)(v.Z,{})}),(0,l.jsx)(D.Z,{children:(0,l.jsx)(T.Z,{children:(0,l.jsx)(i.Z,{sx:{mb:4},children:(0,l.jsxs)(m.ZP,{container:!0,justifyContent:"space-between",spacing:3,children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(C.Z,{variant:"h4",children:"Tax Roll"})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(i.Z,{children:(0,l.jsxs)(m.ZP,{container:!0,spacing:3,children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(S.Z,{title:"Reset filters",children:(0,l.jsx)(A.Z,{endIcon:(0,l.jsx)(M.w,{fontSize:"small"}),onClick:()=>{en(e=>!e)},variant:"outlined",children:"Filters"})})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(A.Z,{variant:"contained",disabled:L||!N,color:"primary",name:"preview",onClick:()=>{K(!0)},children:"Preview"})})]})})})]})})})})]})]})}),V&&(0,l.jsx)(E.j,{editable:!0,setLoading:U,loading:L,onClose:()=>K(!1),county:null==G?void 0:G.county,documentName:"CertificatesReport",reportBase64:N})]})},eS=e=>{var t,n,r,a;let{filters:s,loading:o,data:c,taxTypeOptions:d}=e,{user:h}=(0,z.a)();return(0,l.jsxs)(i.Z,{sx:{minWidth:800,minHeight:1200},children:[(0,l.jsxs)(m.ZP,{container:!0,spacing:3,justifyContent:"space-between",sx:{mb:4},children:[(0,l.jsxs)(m.ZP,{item:!0,children:[(0,l.jsx)(C.Z,{variant:"h5",children:"Delinquent Bills Report"}),(0,l.jsx)(C.Z,{variant:"subheader",children:"City Tax"}),(0,l.jsx)(C.Z,{varient:"subheader",children:s.taxRateType&&"District: ".concat(d.taxRateTypes.find(e=>e.id==s.taxRateType).type)})]}),(0,l.jsxs)(m.ZP,{item:!0,children:[(0,l.jsxs)(C.Z,{variant:"body2",align:"left",children:[null==h?void 0:null===(t=h.county)||void 0===t?void 0:t.countyName," City's Office"]}),(0,l.jsx)(C.Z,{variant:"body2",align:"left",children:(null==h?void 0:null===(n=h.county)||void 0===n?void 0:n.clerkAddress)+" "+(null==h?void 0:null===(r=h.county)||void 0===r?void 0:r.clerkCity)+", KY "+(null==h?void 0:null===(a=h.county)||void 0===a?void 0:a.clerkZip)}),(0,l.jsxs)(C.Z,{variant:"body2",align:"left",children:["Today's Date: ",new Date().toLocaleDateString()]}),(0,l.jsx)(C.Z,{variant:"body2",align:"left",children:s.startDate&&s.endDate&&new Date(s.startDate).toLocaleDateString()+"-"+new Date(s.endDate).toLocaleDateString()})]})]}),(0,l.jsx)($.Z,{sx:{overflow:"initial"},children:(0,l.jsx)(W.L,{children:(0,l.jsxs)(J.Z,{children:[(0,l.jsx)(_.Z,{children:(0,l.jsxs)(V.Z,{children:[(0,l.jsx)(K.Z,{align:"left",children:"Bill Number"}),(0,l.jsx)(K.Z,{align:"center",children:"Tax Payer"}),(0,l.jsx)(K.Z,{align:"right",children:"District"}),(0,l.jsx)(K.Z,{children:"Assessment Type"}),(0,l.jsx)(K.Z,{align:"right",children:"Value"}),(0,l.jsx)(K.Z,{align:"right",children:"Face"}),(0,l.jsx)(K.Z,{align:"right",children:"Penalty"}),(0,l.jsx)(K.Z,{align:"right",children:"Total Due"})]})}),(0,l.jsxs)(X.Z,{children:[!o&&0===c.delinquentBillsReportRecords.length&&(0,l.jsx)(V.Z,{sx:{height:"100px"},children:(0,l.jsx)(K.Z,{colSpan:8,children:(0,l.jsx)(m.ZP,{container:!0,justifyContent:"center",children:(0,l.jsx)(m.ZP,{item:!0,children:"No records to display."})})})}),c.delinquentBillsReportRecords.slice(0,100).map((e,t)=>(0,l.jsxs)(V.Z,{children:[(0,l.jsx)(K.Z,{align:"left",children:e.billNumber}),(0,l.jsx)(K.Z,{align:"center",children:e.owners.map((e,t)=>(0,l.jsx)(m.ZP,{item:!0,xs:12,children:e.fullName},t))}),(0,l.jsx)(K.Z,{align:"right",children:e.district}),(0,l.jsx)(K.Z,{children:e.calculation.assessmentsGroupedByValueType.map((e,t)=>(0,l.jsx)(m.ZP,{item:!0,xs:12,children:e.taxAssessmentType},t))}),(0,l.jsx)(K.Z,{align:"right",children:e.calculation.assessmentsGroupedByValueType.map((e,t)=>(0,l.jsx)(m.ZP,{item:!0,xs:12,children:e.assessedValue},t))}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(e.calculation.face)}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(e.calculation.penalty)}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(e.calculation.totalDue)})]},t))]})]})})})]})},eA=e=>{let{filters:t,onChange:n,initialFilters:r,taxTypeOptions:a,user:s}
1=e,o=(0,x.useRef)(null),[c,d]=(0,x.useState)(t),[h]=(0,G.Nr)(c,600);(0,x.useEffect)(()=>{n(h)},[h]);let u=e=>{var t,n,l;e.preventDefault(),(null===(t=o.current)||void 0===t?void 0:t.value)!=c.year&&(null===(n=e.relatedTarget)||void 0===n?void 0:n.name)!="reset"&&(null==d||d({...c,year:null===(l=o.current)||void 0===l?void 0:l.value}))},y=(0,x.useCallback)(()=>{d(e=>({...e,types:r.types,taxAssessmentTypes:r.taxAssessmentTypes}))},[d,r]);return(0,z.a)(y),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Z,{sx:{justifyContent:"right",display:"flex",flexGrow:1},children:(0,l.jsx)(S.Z,{title:"Reset filters",children:(0,l.jsx)(A.Z,{startIcon:(0,l.jsx)(N.h,{fontSize:"small"}),variant:"outlined",color:"primary",onClick:()=>{null==d||d({...r});var e,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set,n=new Event("input",{bubbles:!0});t.call(o.current,""),null===(e=o.current)||void 0===e||e.dispatchEvent(n)},name:"reset",children:"Reset"})})}),(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:2},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Year"}),(0,l.jsx)(i.Z,{component:"form",onSubmit:u,children:(0,l.jsx)(b.Z,{size:"small",label:"Year",name:"year",fullWidth:!0,inputProps:{ref:o},onKeyUp:u,onBlur:u,error:!t.year})})]}),(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:2},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Bill Type"}),(0,l.jsx)(i.Z,{sx:{position:"relative",mt:2},children:(0,l.jsx)(f.Z,{multiple:!0,value:a.taxBillTypes.filter(e=>c.types.includes(e.id)).map(e=>e.type),options:a.taxBillTypes.map(e=>e.type),onChange:(e,t)=>
1{null==d||d({...c,types:a.taxBillTypes.filter(e=>t.includes(e.type)).map(e=>e.id)})},autoSelect:!0,autoHighlight:!0,renderTags:(e,t)=>e.map((e,n)=>{let{key:r,...a}=t({index:n});return(0,l.jsx)(eD.Z,{variant:"outlined",label:e,...a},r)}),renderInput:e=>(0,l.jsx)(b.Z,{...e,size:"small",label:"Bill Types"})})})]}),(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:2},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Assessment Type"}),(0,l.jsx)(i.Z,{sx:{position:"relative",mt:2},children:(0,l.jsx)(f.Z,{multiple:!0,value:a.taxAssessmentTypes.filter(e=>c.taxAssessmentTypes.includes(e.id)).map(e=>e.type),options:a.taxAssessmentTypes.map(e=>e.type),onChange:(e,t)=>{null==d||d({...c,taxAssessmentTypes:a.taxAssessmentTypes.filter(e=>t.includes(e.type)).map(e=>e.id)})},autoSelect:!0,autoHighlight:!0,renderTags:(e,t)=>e.map((e,n)=>{let{key:r,...a}=t({index:n});return(0,l.jsx)(eD.Z,{variant:"outlined",label:e,...a},r)}),renderInput:e=>(0,l.jsx)(b.Z,{...e,size:"small",label:"Assessment Types"})})})]})]})},eR=e=>{let{value:t,reports:r,setValue:a,rootRef:s,scrollToTopPage:o}=e,c={delinquentBillsReportRecords:[]},[d,h]=(0,x.useState)({taxBillTypes:[],taxAssessmentTypes:[]}),u={year:"",types:[],taxRateType:null,taxAssessmentTypes:[]},[y,p]=(0,x.useState)(u),{user:k}=(0,z.a)(),[I,G]=(0,x.useState)(""),N=(0,P.s)(),[F,O]=(0,x.useState)(!1),[L,U]=(0,x.useState)(!1),[$,J]=(0,x.useState)(c),[_,V]=(0,x.useState)(!1),[K,X]=(0,x.useState)(null),Q=(0,g.Z)(e=>e.breakpoints.up("md"),{noSsr:!0}),[ee,et]=(0,x.useState)(Q),en=(0,x.useCallback)(async()=>{let e=new AbortController;try{null==K||K.abort(),X(e),O(!0);let t=await R.x.delinquentBillsReport(null==k?void 0:k.selectedCountyId,y,e.signal),n=await t.json();if(!e.signal.aborted&&N){if(t.ok&&n){J(n),O(!1),G(n.report),null==e||e.abort();return}let l=n&&n.error||t.status;throw Error(l)}}catch(t){"Error: 401 Authentication Required"==t&&(await Promise.resolve().then(n.t.bind(n,11163,23))).default.reload(window.location.pathname),null==e||e.abort(),B.s.errors.includes(t.toString())||(O(!1),J(c),console.error(t),q.ZP.error("Error loading records!"))}},[N,y,K,k]),el=async()=>{try{U(!0);let e=await R.x.types(null==k?void 0:k.selectedCountyId),t=await e.json();if(N){if(e.ok&&t){U(!1),h(t);return}let n=t&&t.error||e.status;throw Error(n)}}catch(e){"Error: 401 Authentication Required"==e&&(await Promise.resolve().then(n.t.bind(n,11163,23))).default.reload(window.location.pathname),U(!1),console.error(e),q.ZP.error("Error loading search types!")}};return(0,x.useEffect)(()=>{y.year?en():J(c),o()},[y]),(0,x.useEffect)(()=>()=>{null==K||K.abort()},[K]),(0,x.useEffect)(()=>{el()},[k]),(0,l.jsxs)(i.Z,{sx:{backgroundColor:"background.default",display:"flex",flexGrow:1},children:[(0,l.jsx)(Y.g,{containerRef:s,onClose:()=>{et(!1)},open:ee,children:(0,l.jsx)(eA,{taxTypeOptions:d,loadingTypes:L,filters:y,initialFilters:u,onChange:e=>{p(e)},setFilters:p,user:k})}),(0,l.jsx)(H._,{open:ee,children:(0,l.jsxs)(j.Z,{maxWidth:"lg",children:[(0,l.jsx)(m.ZP,{container:!0,children:(0,l.jsx)(m.ZP,{item:!0,md:4,xs:12,children:(0,l.jsx)(f.Z,{fullWidth:!0,value:t,disableClearable:!0,onChange:(e,t)=>
1{a(t)},options:r,renderInput:e=>(0,l.jsx)(b.Z,{...e,label:"Report"})})})}),(0,l.jsx)(w.Z,{sx:{mb:3,mt:3}}),(0,l.jsxs)(i.Z,{sx:{position:"relative"},children:[(0,l.jsx)(Z.Z,{sx:{zIndex:9999,position:"absolute"},open:F,children:(0,l.jsx)(v.Z,{})}),(0,l.jsx)(D.Z,{children:(0,l.jsx)(T.Z,{children:(0,l.jsx)(i.Z,{sx:{mb:4},children:(0,l.jsxs)(m.ZP,{container:!0,justifyContent:"space-between",spacing:3,children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(C.Z,{variant:"h4",children:"Delinquent Bills Report"})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(i.Z,{children:(0,l.jsxs)(m.ZP,{container:!0,spacing:3,children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(S.Z,{title:"Reset filters",children:(0,l.jsx)(A.Z,{endIcon:(0,l.jsx)(M.w,{fontSize:"small"}),onClick:()=>{et(e=>!e)},variant:"outlined",children:"Filters"})})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(A.Z,{variant:"contained",disabled:F||!I,color:"primary",name:"preview",onClick:()=>{V(!0)},children:"Preview"})})]})})})]})})})}),(0,l.jsx)(i.Z,{sx:{mt:3},children:(0,l.jsx)(D.Z,{children:(0,l.jsx)(T.Z,{children:(0,l.jsx)(W.L,{children:(0,l.jsx)(i.Z,{sx:{minWidth:800,p:6,minHeight:1200},children:(0,l.jsx)(eS,{taxTypeOptions:d,data:$,filters:y,loading:F})})})})})})]})]})}),_&&(0,l.jsx)(E.j,{editable:!0,setLoading:O,loading:F,onClose:()=>V(!1),county:null==k?void 0:k.county,documentName:"DelinquentBillsReport",reportBase64:I})]})},eB=e=>{var t,n,r,a;let{filters:s,data:o,types:c,loading:d}=e,{user:h}=(0,z.a)();return(0,l.jsxs)(i.Z,{sx:{minWidth:800,minHeight:1200},children:[(0,l.jsxs)(m.ZP,{container:!0,spacing:3,justifyContent:"space-between",sx:{mb:4},children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsxs)(m.ZP,{children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(C.Z,{variant:"h5",children:"City Tax Settlement Report"})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(C.Z,{variant:"subheader",children:s.types.length>0&&s.types.map((e,t)=>c.find(t=>t.id==e).type).join(", ")+(s.types.length>0?" Bills":"")})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(C.Z,{variant:"subheader",children:s.year<9999&&s.year>1753&&"Tax Year: ".concat(s.year)})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(C.Z,{variant:"subheader",children:o.authority&&o.authority+" Net Receipts"})})]})}),(0,l.jsxs)(m.ZP,{item:!0,children:[(0,l.jsxs)(C.Z,{variant:"body2",align:"left",children:[null==h?void 0:null===(t=h.county)||void 0===t?void 0:t.countyName," County City's Office"]}),(0,l.jsx)(C.Z,{variant:"body2",align:"left",children:(null==h?void 0:null===(n=h.county)||void 0===n?void 0:n.clerkAddress)+" "+(null==h?void 0:null===(r=h.county)||void 0===r?void 0:r.clerkCity)+", KY "+(null==h?void 0:null===(a=h.county)||void 0===a?void 0:a.clerkZip)}),(0,l.jsxs)(C.Z,{variant:"body2",align:"left",children:["Today's Date: ",new Date().toLocaleDateString()]})]})]}),(0,l.jsx)($.Z,{sx:{overflow:"initial"},children:(0,l.jsx)(W.L,{children:(0,l.jsxs)(J.Z,{children:[(0,l.jsx)(_.Z,{children:(0,l.jsxs)(V.Z,{children:[(0,l.jsx)(K.Z,{align:"left",children:"Authority"}),(0,l.jsx)(K.Z,{align:"left",children:"Assessment"}),(0,l.jsx)(K.Z,{align:"right",children:"Original"}),(0,l.jsx)(K.Z,{align:"right",children:"Additional"}),(0,l.jsx)(K.Z,{align:"right",children:"Exonerations"}),(0,l.jsx)(K.Z,{align:"right",children:"Net Charges"}),(0,l.jsx)(K.Z,{align:"right",children:"Collections"}),(0,l.jsx)(K.Z,{align:"right",children:"Delinquent"})]})}),(0,l.jsxs)(X.Z,{children:[o.reportRecords.length>0&&o.reportRecords.map((e,t)=>(0,l.jsxs)(x.Fragment,{children:[(0,l.jsxs)(V.Z,{children:[(0,l.jsx)(K.Z,{sx:{borderBottom:"0px solid"},align:"left",children:e.authority}),(0,l.jsx)(K.Z,{sx:{borderBottom:"0px solid"},align:"left"}),(0,l.jsx)(K.Z,{sx:{borderBottom:"0px solid"},align:"right"}),(0,l.jsx)(K.Z,{sx:{borderBottom:"0px solid"},align:"right"}),(0,l.jsx)(K.Z,{sx:{borderBottom:"0px solid"},align:"right"}),(0,l.jsx)(K.Z,{sx:{borderBottom:"0px solid"},align:"right"}),(0,l.jsx)(K.Z,{sx:{borderBottom:"0px solid"},align:"right"}),(0,l.jsx)(K.Z,{sx:{borderBottom:"0px solid"},align:"right"})]}),e.records.map((e,t)=>(0,l.jsxs)(V.Z,{children:[(0,l.jsx)(K.Z,{sx:{borderBottom:"0px solid"},align:"left"}),(0,l.jsxs)(K.Z,{sx:{borderBottom:"0px solid"},align:"left",children:[(0,l.jsx)(i.Z,{children:e.assessmentType}),(0,l.jsx)(i.Z,{sx:{color:"text.secondary"},children:(0,Q.$)(e.originalAssessedValue)})]}),(0,l.jsx)(K.Z,{sx:{borderBottom:"0px solid"},align:"right",children:(0,Q.$)(e.originalAssessment)}),(0,l.jsx)(K.Z,{sx:{borderBottom:"0px solid"},align:"right",children:(0,Q.$)(e.originalAdditional)}),(0,l.jsx)(K.Z,{sx:{borderBottom:"0px solid"},align:"right",children:(0,Q.$)(e.exoneration)}),(0,l.jsx)(K.Z,{sx:{borderBottom:"0px solid"},align:"right",children:(0,Q.$)(e.net)}),(0,l.jsx)(K.Z,{sx:{borderBottom:"0px solid"},align:"right",children:"".concat((0,Q.$)(e.collections)," (").concat(e.collectionPercentage,"%)")}),(0,l.jsx)(K.Z,{sx:{borderBottom:"0px solid"},align:"right",children:(0,Q.$)(e.total)})]},t)),(0,l.jsxs)(V.Z,{children:[(0,l.jsx)(K.Z,{align:"left",children:"TOTAL ".concat(e.authority)}),(0,l.jsx)(K.Z,{align:"left"}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(e.originalAssessment)}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(e.originalAdditional)}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(e.exoneration)}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(e.net)}),(0,l.jsx)(K.Z,{align:"right",children:"".concat((0,Q.$)(e.collections)," (").concat(e.collectionPercentage,"%)")}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(e.total)})]})]},t)),0!==o.total&&(0,l.jsxs)(V.Z,{children:[(0,l.jsx)(K.Z,{align:"left",children:"TOTAL DISTRICT"}),(0,l.jsx)(K.Z,{align:"left"}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(o.originalAssessment)}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(o.originalAdditional)}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(o.exoneration)}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(o.net)}),(0,l.jsx)(K.Z,{align:"right",children:"".concat((0,Q.$)(o.collections)," (").concat(o.collectionPercentage,"%)")}),(0,l.jsx)(K.Z,{align:"right",children:(0,Q.$)(o.total)})]}),!d&&0===o.reportRecords.length&&(0,l.jsx)(V.Z,{sx:{height:"100px"},children:(0,l.jsx)(K.Z,{colSpan:8,children:(0,l.jsx)(m.ZP,{container:!0,justifyContent:"center",children:(0,l.jsx)(m.ZP,{item:!0,children:"No Records to Display"})})})})]})]})})})]})},eP={year:"",types:[]};et.Zx.register({family:"Canterbury",src:"/static/font/Canterbury.ttf"});let eE=et.mM.create({page:{backgroundColor:"#FFFFFF",padding:20},h5:{fontWeight:600},justifySpaceBetween:{justifyContent:"space-between"},bottomBorder:{borderBottom:1},subHeader:{fontSize:12,fontFamily:"Helvetica",fontWeight:400},subHeaderBold:{fontSize:10,fontFamily:"Helvetica"},headerSmall:{fontSize:8,fontFamily:"Helvetica"},body2:{fontSize:8},header:{flexDirection:"row",justifyContent:"space-between"},tableRow:{borderBottomWidth:1,borderColor:"#3b3b3b",borderStyle:"solid",flexDirection:"row"},tableRowNoBorder:{borderBottomWidth:0,borderColor:"#3b3b3b",borderStyle:"solid",flexDirection:"row"},flexRow:{flexDirection:"row"},tableRowHeader:{flexDirection:"row"},tableCell1:{padding:6,width:"30%"},tableCell2:{padding:6,width:"20%"},tableCellN:{padding:6,width:"33.3%"},tableCellNNoBorder:{padding:6,width:"33.3%",border:"0px solid"},tableCellSmallNoBorder:{padding:6,width:"5%",border:"0px solid"},tableCellMediumNoBorder:{padding:6,width:"7%",border:"0px solid"},assessmentCellNoBorder:{padding:6,width:"16%",border:"0px solid"},tableCellLargeNoBorder:{padding:6,width:"15%",border:"0px solid"},tableCellSmall:{padding:6,width:"5%"},tableCellMedium:{padding:6,width:"7%"},assessmentCell:{padding:6,width:"16%"},tableCellLarge:{padding:6,width:"15%"},tableCellBill:{padding:6,width:"14.28%"}}),ek=e=>{let{data:t,county:n,filters:r,loading:a,types:i}=e;return(0,l.jsx)(et.BB,{children:(0,l.jsxs)(et.T3,{size:"LETTER",orientation:"landscape",style:eE.page,children:[(0,l.jsxs)(et.G7,{style:[eE.header,{marginBottom:24}],children:[(0,l.jsxs)(et.G7,{children:[(0,l.jsx)(et.xv,{style:eE.h5,children:"City Tax Settlement Report"}),(0,l.jsx)(et.xv,{style:[eE.subHeader,{marginTop:4}],children:r.types.length>0&&r.types.map((e,t)=>i.find(t=>
1t.id==e).type).join(", ")+(r.types.length>0?" Bills":"")}),(0,l.jsx)(et.xv,{style:eE.subHeader,children:r.year&&"Tax Year: ".concat(r.year)})]}),(0,l.jsxs)(et.G7,{style:[{alignItems:"flex-start",display:"flex"}],children:[(0,l.jsxs)(et.xv,{style:eE.body2,children:[n.countyName," County City's Office"]}),(0,l.jsx)(et.xv,{style:[eE.body2,{marginTop:4}],children:n.clerkAddress+" "+n.clerkCity+", KY "+n.clerkZip}),(0,l.jsxs)(et.xv,{style:[eE.body2,{marginTop:4}],children:["Today's Date: ",new Date().toLocaleDateString()]})]})]}),(0,l.jsxs)(et.G7,{style:eE.table,children:[(0,l.jsx)(et.G7,{fixed:!0,style:{backgroundColor:"#f3f4f6"},children:(0,l.jsx)(et.G7,{style:[eE.tableHeader],children:(0,l.jsxs)(et.G7,{style:[eE.tableRowHeader,{alignItems:"center",display:"flex"}],children:[(0,l.jsx)(et.G7,{style:eE.tableCellLarge,children:(0,l.jsx)(et.xv,{style:[eE.headerSmall,eE.alignLeft,{fontFamily:"Helvetica-Bold",textAlign:"left"}],children:"AUTHORITY"})}),(0,l.jsx)(et.G7,{style:eE.assessmentCell,children:(0,l.jsx)(et.xv,{style:[eE.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"left"}],children:"ASSESSMENT"})}),(0,l.jsx)(et.G7,{style:eE.tableCellLargeNoBorder,children:(0,l.jsx)(et.xv,{style:[eE.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"right"}],children:"ORIGINAL"})}),(0,l.jsx)(et.G7,{style:eE.tableCellMedium,children:(0,l.jsx)(et.xv,{style:[eE.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"right"}],children:"ADDITIONAL"})}),(0,l.jsx)(et.G7,{style:eE.tableCellMedium,children:(0,l.jsx)(et.xv,{style:[eE.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"right"}],children:"EXONERATIONS"})}),(0,l.jsx)(et.G7,{style:eE.tableCellLarge,children:(0,l.jsx)(et.xv,{style:[eE.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"right"}],children:"NET CHARGES"})}),(0,l.jsx)(et.G7,{style:eE.tableCellLarge,children:(0,l.jsx)(et.xv,{style:[eE.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"right"}],children:"COLLECTIONS"})}),(0,l.jsx)(et.G7,{style:eE.tableCellLarge,children:(0,l.jsx)(et.xv,{style:[eE.headerSmall,{fontFamily:"Helvetica-Bold",textAlign:"right"}],children:"DELINQUENT"})})]})})}),(0,l.jsxs)(et.G7,{style:eE.tableBody,children:[t.reportRecords.map((e,t)=>(0,l.jsxs)(et.G7,{wrap:!1,children:[(0,l.jsxs)(et.G7,{wrap:!1,style:[eE.tableRowNoBorder,{alignItems:"center",display:"flex"}],children:[(0,l.jsx)(et.G7,{style:eE.tableCellLargeNoBorder,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"left"}],children:e.authority})}),(0,l.jsx)(et.G7,{style:eE.tableCellLargeNoBorder,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"left"}]})}),(0,l.jsx)(et.G7,{style:eE.tableCellLargeNoBorder,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}]})}),(0,l.jsx)(et.G7,{style:eE.tableCellMediumNoBorder,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}]})}),(0,l.jsx)(et.G7,{style:eE.tableCellMediumNoBorder,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}]})}),(0,l.jsx)(et.G7,{style:eE.tableCellLargeNoBorder,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}]})}),(0,l.jsx)(et.G7,{style:eE.tableCellLargeNoBorder,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}]})}),(0,l.jsx)(et.G7,{style:eE.tableCellLargeNoBorder,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}]})})]}),e.records.map((e,n)=>(0,l.jsxs)(et.G7,{wrap:!1,style:[eE.tableRowNoBorder,{alignItems:"center",display:"flex"}],children:[(0,l.jsx)(et.G7,{style:eE.tableCellLargeNoBorder,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"left"}],children:"\xa0"})}),(0,l.jsxs)(et.G7,{style:eE.assessmentCellNoBorder,children:[(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"left"}],children:e.assessmentType}),(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"left"}],children:(0,Q.$)(e.originalAssessedValue)})]}),(0,l.jsx)(et.G7,{style:eE.tableCellLargeNoBorder,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}],children:(0,Q.$)(e.originalAssessment)})}),(0,l.jsx)(et.G7,{style:eE.tableCellMediumNoBorder,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}],children:(0,Q.$)(e.originalAdditional)})}),(0,l.jsx)(et.G7,{style:eE.tableCellMediumNoBorder,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}],children:(0,Q.$)(e.exoneration)})}),(0,l.jsx)(et.G7,{style:eE.tableCellLargeNoBorder,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}],children:(0,Q.$)(e.net)})}),(0,l.jsx)(et.G7,{style:eE.tableCellLargeNoBorder,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}],children:(0,Q.$)(e.collections)})}),(0,l.jsx)(et.G7,{style:eE.tableCellLargeNoBorder,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}],children:(0,Q.$)(e.total)})})]},t)),(0,l.jsxs)(et.G7,{wrap:!1,style:[eE.tableRow,{alignItems:"center",display:"flex"}],children:[(0,l.jsx)(et.G7,{style:eE.tableCellLarge,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"left"}],children:"TOTAL ".concat(e.authority)})}),(0,l.jsx)(et.G7,{style:eE.assessmentCell,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"left"}],children:"\xa0"})}),(0,l.jsx)(et.G7,{style:eE.tableCellLargeNoBorder,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}],children:(0,Q.$)(e.originalAssessment)})}),(0,l.jsx)(et.G7,{style:eE.tableCellMedium,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}],children:(0,Q.$)(e.originalAdditional)})}),(0,l.jsx)(et.G7,{style:eE.tableCellMedium,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}],children:(0,Q.$)(e.exoneration)})}),(0,l.jsx)(et.G7,{style:eE.tableCellLarge,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}],children:(0,Q.$)(e.net)})}),(0,l.jsx)(et.G7,{style:eE.tableCellLarge,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}],children:(0,Q.$)(e.collections)})}),(0,l.jsx)(et.G7,{style:eE.tableCellLarge,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}],children:(0,Q.$)(e.total)})})]})]},t)),(0,l.jsxs)(et.G7,{wrap:!1,style:[eE.tableRow,{alignItems:"center",display:"flex"}],children:[(0,l.jsx)(et.G7,{style:eE.tableCellLarge,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"left"}],children:"TOTAL DISTRICT"})}),(0,l.jsx)(et.G7,{style:eE.assessmentCell,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"left"}],children:"\xa0"})}),(0,l.jsx)(et.G7,{style:eE.tableCellLargeNoBorder,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}],children:(0,Q.$)(t.originalAssessment)})}),(0,l.jsx)(et.G7,{style:eE.tableCellMedium,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}],children:(0,Q.$)(t.originalAdditional)})}),(0,l.jsx)(et.G7,{style:eE.tableCellMedium,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}],children:(0,Q.$)(t.exoneration)})}),(0,l.jsx)(et.G7,{style:eE.tableCellLarge,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}],children:(0,Q.$)(t.net)})}),(0,l.jsx)(et.G7,{style:eE.tableCellLarge,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}],children:(0,Q.$)(t.collections)})}),(0,l.jsx)(et.G7,{style:eE.tableCellLarge,children:(0,l.jsx)(et.xv,{style:[eE.body2,{textAlign:"right"}],children:(0,Q.$)(t.total)})})]})]})]})]})})},eI=e=>{let{filters:t,onChange:n,initialFilters:r,setDateRange:a,types:s,user:o}=e,[c,d]=(0,x.useState)(t),h=(0,x.useRef)(null),[u]=(0,G.Nr)(c,600);(0,x.useEffect)(()=>{n(u)},[u]);let y=e=>{var t,n,l;e.preventDefault(),(null===(t=h.current)||void 0===t?void 0:t.value)!=c.year&&(null===(n=e.relatedTarget)||void 0===n?void 0:n.name)!="reset"&&(null==d||d({...c,year:null===(l=h.current)||void 0===l?void 0:l.value}))},p=(0,x.useCallback)(()=>{d(e=>({...e,types:r.types}))},[d,r]);return(0,z.a)(p),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Z,{sx:{justifyContent:"right",display:"flex",flexGrow:1},children:(0,l.jsx)(S.Z,{title:"Reset filters",children:(0,l.jsx)(A.Z,{startIcon:(0,l.jsx)(N.h,{fontSize:"small"}),variant:"outlined",color:"primary",onClick:()=>{null==d||d({...r});var e,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set,n=new Event("input",{bubbles:!0});t.call(h.current,""),null===(e=h.current)||void 0===e||e.dispatchEvent(n)},name:"reset",children:"Reset"})})}),(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:2},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Details"}),(0,l.jsx)(i.Z,{component:"form",onSubmit:y,children:(0,l.jsx)(b.Z,{size:"small",label:"Year",name:"year",fullWidth:!0,inputProps:{ref:h},onKeyUp:y,onBlur:y})}),(0,l.jsx)(i.Z,{sx:{position:"relative",mt:2},children:(0,l.jsx)(f.Z,{multiple:!0,value:s.filter(e=>c.types.includes(e.id)).map(e=>e.type),options:s.map(e=>e.type),onChange:(e,t)=>
1{null==d||d({...c,types:s.filter(e=>t.includes(e.type)).map(e=>e.id)})},autoSelect:!0,autoHighlight:!0,renderTags:(e,t)=>e.map((e,n)=>{let{key:r,...a}=t({index:n});return(0,l.jsx)(eD.Z,{variant:"outlined",label:e,...a},r)}),renderInput:e=>(0,l.jsx)(b.Z,{...e,size:"small",label:"Bill Types"})})})]})]})},eG=e=>{let{value:t,reports:r,setValue:a,rootRef:s,setDateRange:o,dateRange:c,scrollToTopPage:d}=e,[h,u]=(0,x.useState)([]),[y,p]=(0,x.useState)(eP),{user:k}=(0,z.a)(),I=(0,P.s)(),[G,N]=(0,x.useState)(!1),[F,O]=(0,x.useState)(!1),[L,U]=(0,x.useState)({reportRecords:[],total:0,originalAssessment:0,originalAdditional:0,net:0,collections:0}),[$,J]=(0,x.useState)(!1),[_,V]=(0,x.useState)(null),K=(0,g.Z)(e=>e.breakpoints.up("md"),{noSsr:!0}),[X,Q]=(0,x.useState)(K),ee=(0,x.useCallback)(async()=>{let e=new AbortController;try{null==_||_.abort(),V(e),N(!0);let t=await R.x.settlementsReport(null==k?void 0:k.selectedCountyId,y,e.signal),n=await t.json();if(!e.signal.aborted&&I){if(t.ok&&n){U(n),N(!1),null==e||e.abort();return}let l=n&&n.error||t.status;throw Error(l)}}catch(t){"Error: 401 Authentication Required"==t&&(await Promise.resolve().then(n.t.bind(n,11163,23))).default.reload(window.location.pathname),null==e||e.abort(),B.s.errors.includes(t.toString())||(N(!1),U({reportRecords:[],total:0}),console.error(t),q.ZP.error("Error loading records!"))}},[I,y,_,k]),et=(0,x.useCallback)(async()=>{try{O(!0);let e=await R.x.types(null==k?void 0:k.selectedCountyId),t=await e.json();if(I){if(e.ok&&t){O(!1),u(t.taxBillTypes);return}let n=t&&t.error||e.status;throw Error(n)}}catch(e){"Error: 401 Authentication Required"==e&&(await Promise.resolve().then(n.t.bind(n,11163,23))).default.reload(window.location.pathname),B.s.errors.includes(e.toString())||(O(!1),console.error(e),q.ZP.error("Error loading types!"))}},[I,k]),en=e=>{p(e)};return(0,x.useEffect)(()=>{y.year>1753&&y.year<9999?ee():U({reportRecords:[],total:0}),d()},[y]),(0,x.useEffect)(()=>()=>{null==_||_.abort()},[_]),(0,x.useEffect)(()=>{et()},[k]),(0,l.jsxs)(i.Z,{sx:{backgroundColor:"background.default",display:"flex",flexGrow:1},children:[(0,l.jsx)(Y.g,{containerRef:s,onClose:()=>{Q(!1)},onChange:en,open:X,children:(0,l.jsx)(eI,{filters:y,types:h,setDateRange:o,initialFilters:eP,onChange:en,setFilters:p,user:k})}),(0,l.jsx)(H._,{open:X,children:(0,l.jsxs)(j.Z,{maxWidth:"lg",children:[(0,l.jsx)(m.ZP,{container:!0,children:(0,l.jsx)(m.ZP,{item:!0,md:4,xs:12,children:(0,l.jsx)(f.Z,{fullWidth:!0,value:t,disableClearable:!0,onChange:(e,t)=>
1{a(t)},options:r,renderInput:e=>(0,l.jsx)(b.Z,{...e,label:"Report"})})})}),(0,l.jsx)(w.Z,{sx:{mb:3,mt:3}}),(0,l.jsxs)(i.Z,{sx:{position:"relative"},children:[(0,l.jsx)(Z.Z,{sx:{zIndex:9999,position:"absolute"},open:G||F,children:(0,l.jsx)(v.Z,{})}),(0,l.jsx)(D.Z,{children:(0,l.jsx)(T.Z,{children:(0,l.jsx)(i.Z,{sx:{mb:4},children:(0,l.jsxs)(m.ZP,{container:!0,justifyContent:"space-between",spacing:3,children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(C.Z,{variant:"h4",children:"Settlement Report"})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(i.Z,{children:(0,l.jsxs)(m.ZP,{container:!0,spacing:3,children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(S.Z,{title:"Reset filters",children:(0,l.jsx)(A.Z,{endIcon:(0,l.jsx)(M.w,{fontSize:"small"}),onClick:()=>{Q(e=>!e)},variant:"outlined",children:"Filters"})})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(A.Z,{variant:"contained",disabled:G||F,color:"primary",name:"preview",onClick:()=>{J(!0)},children:"Preview"})})]})})})]})})})}),(0,l.jsx)(i.Z,{sx:{mt:3},children:(0,l.jsx)(D.Z,{children:(0,l.jsx)(T.Z,{children:(0,l.jsx)(W.L,{children:(0,l.jsx)(i.Z,{sx:{minWidth:800,p:6,minHeight:1200},children:(0,l.jsx)(eB,{data:L,filters:y,loading:G||F,types:h})})})})})})]})]})}),$&&(0,l.jsx)(E.j,{editable:!0,setLoading:N,loading:G||F,onClose:()=>J(!1),county:null==k?void 0:k.county,documentName:"SettlementReport",children:(0,l.jsx)(ek,{county:null==k?void 0:k.county,filters:y,data:L,types:h})})]})},eN=e=>{let{filters:t,onChange:n,initialFilters:r,taxTypeOptions:a,user:s}=e,o=(0,x.useRef)(null),[c,d]=(0,x.useState)(t),[h]=(0,G.Nr)(c,600);(0,x.useEffect)(()=>{n(h)},[h]);let u=e=>{var t,n,l;e.preventDefault(),(null===(t=o.current)||void 0===t?void 0:t.value)!=c.year&&(null===(n=e.relatedTarget)||void 0===n?void 0:n.name)!="reset"&&(null==d||d({...c,year:null===(l=o.current)||void 0===l?void 0:l.value}))},y=()=>{null==d||d({...r});var e,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set,n=new Event("input",{bubbles:!0});t.call(o.current,""),null===(e=o.current)||void 0===e||e.dispatchEvent(n)};return(0,x.useEffect)(()=>{y()},[s]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Z,{sx:{justifyContent:"right",display:"flex",flexGrow:1},children:(0,l.jsx)(S.Z,{title:"Reset filters",children:(0,l.jsx)(A.Z,{startIcon:(0,l.jsx)(N.h,{fontSize:"small"}),variant:"outlined",color:"primary",onClick:y,name:"reset",children:"Reset"})})}),(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:2},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Year"}),(0,l.jsx)(i.Z,{component:"form",onSubmit:u,children:(0,l.jsx)(b.Z,{size:"small",label:"Year",name:"year",fullWidth:!0,inputProps:{ref:o},onKeyUp:u,onBlur:u,error:!t.year})})]}),(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:2},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Bill Type"}),(0,l.jsx)(i.Z,{sx:{position:"relative",mt:2},children:(0,l.jsx)(f.Z,{multiple:!0,value:a.filter(e=>c.types.includes(e.id)).map(e=>e.type),options:a.map(e=>e.type),onChange:(e,t)=>
1{null==d||d({...c,types:a.filter(e=>t.includes(e.type)).map(e=>e.id)})},autoSelect:!0,autoHighlight:!0,renderTags:(e,t)=>e.map((e,n)=>{let{key:r,...a}=t({index:n});return(0,l.jsx)(eD.Z,{variant:"outlined",label:e,...a},r)}),renderInput:e=>(0,l.jsx)(b.Z,{...e,size:"small",label:"Bill Types"})})})]})]})};n(15845);let eF=e=>{let{value:t,reports:r,setValue:a,rootRef:s,setDateRange:o,dateRange:c,scrollToTopPage:d}=e,[h,u]=(0,x.useState)([]),y={year:"",types:[]},[p,k]=(0,x.useState)(y),{user:I}=(0,z.a)(),G=(0,P.s)(),[N,F]=(0,x.useState)(!1),[O,L]=(0,x.useState)(!1),[U,W]=(0,x.useState)(!1),[$,J]=(0,x.useState)(""),[_,V]=(0,x.useState)(null),K=(0,g.Z)(e=>e.breakpoints.up("md"),{noSsr:!0}),[X,Q]=(0,x.useState)(K),ee=(0,x.useCallback)(async()=>{let e=new AbortController;try{null==_||_.abort(),V(e),F(!0);let t=await R.x.authorityTotalsReport(null==I?void 0:I.selectedCountyId,p,e.signal),n=await t.json();if(!e.signal.aborted&&G){if(t.ok&&n){J(n.base64),F(!1),null==e||e.abort();return}let l=n&&n.error||t.status;throw Error(l)}}catch(t){"Error: 401 Authentication Required"==t&&(await Promise.resolve().then(n.t.bind(n,11163,23))).default.reload(window.location.pathname),null==e||e.abort(),B.s.errors.includes(t.toString())||(F(!1),console.error(t),q.ZP.error("Error loading records!"))}},[G,p,_,I]),et=(0,x.useCallback)(async()=>
1{try{L(!0);let e=await R.x.types(null==I?void 0:I.selectedCountyId),t=await e.json();if(G){if(e.ok&&t){L(!1),u(t.taxBillTypes);return}let n=t&&t.error||e.status;throw Error(n)}}catch(e){"Error: 401 Authentication Required"==e&&(await Promise.resolve().then(n.t.bind(n,11163,23))).default.reload(window.location.pathname),B.s.errors.includes(e.toString())||(L(!1),console.error(e),q.ZP.error("Error loading types!"))}},[G,I]),en=e=>{k(e)};return(0,x.useEffect)(()=>{p.year>1753&&p.year<9999&&ee(),d()},[p]),(0,x.useEffect)(()=>()=>{null==_||_.abort()},[_]),(0,x.useEffect)(()=>{et()},[I]),(0,l.jsxs)(i.Z,{sx:{backgroundColor:"background.default",display:"flex",flexGrow:1},children:[(0,l.jsx)(Y.g,{containerRef:s,onClose:()=>{Q(!1)},onChange:en,open:X,children:(0,l.jsx)(eN,{taxTypeOptions:h,loadingTypes:O,filters:p,initialFilters:y,onChange:en,setFilters:k,user:I})}),(0,l.jsx)(H._,{open:X,children:(0,l.jsxs)(j.Z,{maxWidth:"lg",children:[(0,l.jsx)(m.ZP,{container:!0,children:(0,l.jsx)(m.ZP,{item:!0,md:4,xs:12,children:(0,l.jsx)(f.Z,{fullWidth:!0,value:t,disableClearable:!0,onChange:(e,t)=>
1{a(t)},options:r,renderInput:e=>(0,l.jsx)(b.Z,{...e,label:"Report"})})})}),(0,l.jsx)(w.Z,{sx:{mb:3,mt:3}}),(0,l.jsxs)(i.Z,{sx:{position:"relative"},children:[(0,l.jsx)(Z.Z,{sx:{zIndex:9999,position:"absolute"},open:N||O,children:(0,l.jsx)(v.Z,{})}),(0,l.jsx)(D.Z,{children:(0,l.jsx)(T.Z,{children:(0,l.jsx)(i.Z,{sx:{mb:4},children:(0,l.jsxs)(m.ZP,{container:!0,justifyContent:"space-between",spacing:3,children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(C.Z,{variant:"h4",children:"Authority Totals Report"})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(i.Z,{children:(0,l.jsxs)(m.ZP,{container:!0,spacing:3,children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(S.Z,{title:"Reset filters",children:(0,l.jsx)(A.Z,{endIcon:(0,l.jsx)(M.w,{fontSize:"small"}),onClick:()=>{Q(e=>!e)},variant:"outlined",children:"Filters"})})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(A.Z,{variant:"contained",disabled:N||O||!$,color:"primary",name:"preview",onClick:()=>{W(!0)},children:"Preview"})})]})})})]})})})})]})]})}),U&&(0,l.jsx)(E.j,{editable:!0,setLoading:F,loading:N,onClose:()=>W(!1),county:null==I?void 0:I.county,documentName:"AuthorityTotalsReport",reportBase64:$})]})},eO=e=>{let{filters:t,onChange:n,initialFilters:r,taxTypeOptions:a,user:s}=e,o=(0,x.useRef)(null),[c,d]=(0,x.useState)(t),[h]=(0,G.Nr)(c,600);(0,x.useEffect)(()=>{n(h)},[h]);let u=e=>{var t,n,l;e.preventDefault(),(null===(t=o.current)||void 0===t?void 0:t.value)!=c.year&&(null===(n=e.relatedTarget)||void 0===n?void 0:n.name)!="reset"&&(null==d||d({...c,year:null===(l=o.current)||void 0===l?void 0:l.value}))},y=()=>{null==d||d({...r});var e,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set,n=new Event("input",{bubbles:!0});t.call(o.current,""),null===(e=o.current)||void 0===e||e.dispatchEvent(n)};return(0,x.useEffect)(()=>{y()},[s]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Z,{sx:{justifyContent:"right",display:"flex",flexGrow:1},children:(0,l.jsx)(S.Z,{title:"Reset filters",children:(0,l.jsx)(A.Z,{startIcon:(0,l.jsx)(N.h,{fontSize:"small"}),variant:"outlined",color:"primary",onClick:y,name:"reset",children:"Reset"})})}),(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:2},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Year"}),(0,l.jsx)(i.Z,{component:"form",onSubmit:u,children:(0,l.jsx)(b.Z,{size:"small",label:"Year",name:"year",fullWidth:!0,inputProps:{ref:o},onKeyUp:u,onBlur:u,error:!t.year})})]}),(0,l.jsxs)(k.Z,{spacing:2,sx:{mt:2},children:[(0,l.jsx)(C.Z,{color:"textSecondary",sx:{mt:3},variant:"subtitle2",children:"Bill Type"}),(0,l.jsx)(i.Z,{sx:{position:"relative",mt:2},children:(0,l.jsx)(f.Z,{multiple:!0,value:a.filter(e=>c.types.includes(e.id)).map(e=>e.type),options:a.map(e=>e.type),onChange:(e,t)=>
1{null==d||d({...c,types:a.filter(e=>t.includes(e.type)).map(e=>e.id)})},autoSelect:!0,autoHighlight:!0,renderTags:(e,t)=>e.map((e,n)=>{let{key:r,...a}=t({index:n});return(0,l.jsx)(eD.Z,{variant:"outlined",label:e,...a},r)}),renderInput:e=>(0,l.jsx)(b.Z,{...e,size:"small",label:"Bill Types"})})})]})]})},ez=e=>{let{value:t,reports:r,setValue:a,rootRef:s,scrollToTopPage:o}=e,[c,d]=(0,x.useState)([]),h={year:"",types:[]},[u,y]=(0,x.useState)(h),{user:p}=(0,z.a)(),k=(0,P.s)(),[I,G]=(0,x.useState)(!1),[N,F]=(0,x.useState)(!1),[O,L]=(0,x.useState)(!1),[U,W]=(0,x.useState)(""),[$,J]=(0,x.useState)(null),_=(0,g.Z)(e=>e.breakpoints.up("md"),{noSsr:!0}),[V,K]=(0,x.useState)(_),X=(0,x.useCallback)(async()=>{let e=new AbortController;try{null==$||$.abort(),J(e),G(!0);let t=await R.x.districtTotalsReport(null==p?void 0:p.selectedCountyId,u,e.signal),n=await t.json();if(!e.signal.aborted&&k){if(t.ok&&n){W(n.base64),G(!1),null==e||e.abort();return}let l=n&&n.error||t.status;throw Error(l)}}catch(t){"Error: 401 Authentication Required"==t&&(await Promise.resolve().then(n.t.bind(n,11163,23))).default.reload(window.location.pathname),null==e||e.abort(),B.s.errors.includes(t.toString())||(G(!1),console.error(t),q.ZP.error("Error loading records!"))}},[k,u,$,p]),Q=(0,x.useCallback)(async()=>{try{F(!0);let e=await R.x.types(null==p?void 0:p.selectedCountyId),t=await e.json();if(k){if(e.ok&&t){F(!1),d(t.taxBillTypes);return}let n=t&&t.error||e.status;throw Error(n)}}catch(e){"Error: 401 Authentication Required"==e&&(await Promise.resolve().then(n.t.bind(n,11163,23))).default.reload(window.location.pathname),B.s.errors.includes(e.toString())||(F(!1),console.error(e),q.ZP.error("Error loading types!"))}},[k,p]),ee=e=>y(e);return(0,x.useEffect)(()=>{u.year>1753&&u.year<9999?X():W(""),o()},[u]),(0,x.useEffect)(()=>()=>{null==$||$.abort()},[$]),(0,x.useEffect)(()=>{Q()},[p]),(0,l.jsxs)(i.Z,{sx:{backgroundColor:"background.default",display:"flex",flexGrow:1},children:[(0,l.jsx)(Y.g,{containerRef:s,onClose:()=>K(!1),onChange:ee,open:V,children:(0,l.jsx)(eO,{taxTypeOptions:c,loadingTypes:N,filters:u,initialFilters:h,onChange:ee,setFilters:y,user:p})}),(0,l.jsx)(H._,{open:V,children:(0,l.jsxs)(j.Z,{maxWidth:"lg",children:[(0,l.jsx)(m.ZP,{container:!0,children:(0,l.jsx)(m.ZP,{item:!0,md:4,xs:12,children:(0,l.jsx)(f.Z,{fullWidth:!0,value:t,disableClearable:!0,onChange:(e,t)=>
1a(t),options:r,renderInput:e=>(0,l.jsx)(b.Z,{...e,label:"Report"})})})}),(0,l.jsx)(w.Z,{sx:{mb:3,mt:3}}),(0,l.jsxs)(i.Z,{sx:{position:"relative"},children:[(0,l.jsx)(Z.Z,{sx:{zIndex:9999,position:"absolute"},open:I,children:(0,l.jsx)(v.Z,{})}),(0,l.jsx)(D.Z,{children:(0,l.jsx)(T.Z,{children:(0,l.jsx)(i.Z,{sx:{mb:4},children:(0,l.jsxs)(m.ZP,{container:!0,justifyContent:"space-between",spacing:3,children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(C.Z,{variant:"h4",children:"District Totals"})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(i.Z,{children:(0,l.jsxs)(m.ZP,{container:!0,spacing:3,children:[(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(S.Z,{title:"Reset filters",children:(0,l.jsx)(A.Z,{endIcon:(0,l.jsx)(M.w,{fontSize:"small"}),onClick:()=>K(e=>!e),variant:"outlined",children:"Filters"})})}),(0,l.jsx)(m.ZP,{item:!0,children:(0,l.jsx)(A.Z,{variant:"contained",disabled:I||N||!U,color:"primary",name:"preview",onClick:()=>L(!0),children:"Preview"})})]})})})]})})})})]})]})}),O&&(0,l.jsx)(E.j,{editable:!0,setLoading:G,loading:I,onClose:()=>L(!1),county:null==p?void 0:p.county,documentName:"CityTaxDistrictTotalsReport",reportBase64:U})]})},eL=e=>{let t=(0,x.useRef)(null),n=(0,x.useRef)(null),r=[{label:"Authority Totals",value:"authorityTotals"},{label:"Delinquent Bills",value:"delinquentBills"},{label:"Deposit",value:"deposit"},{label:"District Totals",value:"districtTotals"},{label:"Income",value:"income"},{label:"Paid",value:"paidBills"},{label:"Payout",value:"payout"},{label:"Reconciliation",value:"reconciliation"},{label:"Refunds",value:"refunds"},{label:"Settlement",value:"settlement"},{label:"Tax Roll",value:"taxRoll"},{label:"Unpaid",value:"unpaidBills"}],[s,o]=(0,x.useState)(r[0]),[c,d]=(0,x.useState)({startDate:new Date().toDateString(),endDate:new Date().toDateString()}),g=async()=>{setTimeout(()=>{n.current.getScrollElement().scrollTo({top:0,behavior:"smooth"})})};return(0,l.jsxs)(h.n,{ref:n,children:[(0,l.jsx)(a(),{children:(0,l.jsxs)("title",{children:["City Tax : Reporting | ","American Land Records"]})}),(0,l.jsxs)(i.Z,{ref:t,component:"main",sx:{backgroundColor:"background.default",display:"flex",flexGrow:1},children:[null!=s&&"authorityTotals"===s.value&&(0,l.jsx)(eF,{value:s,reports:r,setValue:o,setDateRange:d,dateRange:c,rootRef:t,scrollToTopPage:g}),null!=s&&"delinquentBills"===s.value&&(0,l.jsx)(eR,{value:s,reports:r,setValue:o,rootRef:t,scrollToTopPage:g}),null!=s&&"deposit"===s.value&&(0,l.jsx)(U,{value:s,reports:r,setValue:o,dateRange:c,setDateRange:d,rootRef:t,scrollToTopPage:g}),null!=s&&"districtTotals"===s.value&&(0,l.jsx)(ez,{value:s,reports:r,setValue:o,rootRef:t,scrollToTopPage:g}),null!=s&&"income"===s.value&&(0,l.jsx)(y.k,{value:s,reports:r,setValue:o,moduleType:12,rootRef:t,dateRange:c,setDateRange:d,scrollToTopPage:g}),null!=s&&"paidBills"===s.value&&(0,l.jsx)(ea,{value:s,reports:r,setValue:o,rootRef:t,dateRange:c,setDateRange:d,scrollToTopPage:g}),null!=s&&"payout"===s.value&&(0,l.jsx)(p.L,{value:s,reports:r,setValue:o,moduleType:12,dateRange:c,setDateRange:d,rootRef:t,scrollToTopPage:g}),null!=s&&"reconciliation"===s.value&&(0,l.jsx)(eh.m,{value:s,reports:r,setValue:o,moduleType:12,rootRef:t,dateRange:c,setDateRange:d,scrollToTopPage:g}),null!=s&&"refunds"===s.value&&(0,l.jsx)(ed,{value:s,reports:r,setValue:o,rootRef:t,dateRange:c,setDateRange:d,scrollToTopPage:g}),null!=s&&"settlement"===s.value&&(0,l.jsx)(eG,{value:s,reports:r,setValue:o,setDateRange:d,dateRange:c,rootRef:t,scrollToTopPage:g}),null!=s&&"taxRoll"===s.value&&(0,l.jsx)(eC,{value:s,reports:r,setValue:o,dateRange:c,setDateRange:d,rootRef:t,scrollToTopPage:g}),null!=s&&"unpaidBills"===s.value&&(0,l.jsx)(ew,{value:s,reports:r,setValue:o,rootRef:t,dateRange:c,setDateRange:d,scrollToTopPage:g})]}),(0,l.jsx)(u.F,{window:n})]})};eL.getLayout=e=>(0,l.jsx)(o.a,{children:(0,l.jsx)(s.C,{moduleType:12,children:(0,l.jsx)(d.D,{children:(0,l.jsx)(c.c,{children:e})})})});var eq=eL}},function(e){e.O(0,[4648,5241,8913,6633,5646,5063,7491,9844,1281,5275,6156,193,7958,4984,1672,5261,7389,1845,137,8491,2432,7068,1807,8575,7065,2325,8587,3980,2888,9774,179],function(){return e(e.s=26604)}),_N_E=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.