PageSourceSearch

https://setutip.ai/_next/static/chunks/pages/bureau/[bureauById]-28eaecd8e63352b7.js

js setutip.ai collected 2026-10-05 15:50:07 UTC 26,049 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1785],{238:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/bureau/[bureauById]",function(){return r(79547)}])},79547:function(e,s,r){"use strict";r.r(s),r.d(s,{default:function(){return S}});var n=r(85893),t=r(25983),a=r(67294),l=r(39070),o=r(19603),d=r(86571);function OverviewById(e){var s,r,t,i,c,u,m,x,h,p,v,b,N,y,j,g,L,f,S,w,O,T,C,H,D,A,R,B;let{reportId:I}=e,[E,k]=(0,a.useState)();console.log("reportId",I),(0,a.useEffect)(()=>{void 0!=I&&(0,d.HT)((0,o.DG)(I)).then(e=>{let{data:s}=e;k(s)})},[I]);let _=E&&(null===(s=E[0])||void 0===s?void 0:s.score),P=Number(E&&(null===(r=E[0])||void 0===r?void 0:r.score))+Number(14);return(0,n.jsxs)("div",{className:" flex flex-col   ",children:[(0,n.jsxs)("div",{className:" flex   gap-x-40 ",children:[_&&(0,n.jsx)(l.ZP,{value:_,minValue:300,maxValue:900,segments:4,width:300,height:200,segmentColors:["#bf616a","#d08770","#ebcb8b","#a3be8c","#b48ead"],currentValueText:"Bureau Score ".concat(_||"N/A")})," ",(0,n.jsx)(l.ZP,{value:P,minValue:300,maxValue:900,segments:4,width:300,height:200,segmentColors:["#bf616a","#d08770","#ebcb8b","#a3be8c","#b48ead"],currentValueText:"SetuTip Score ".concat(P||"N/A")})]}),E&&(0,n.jsx)("div",{className:"overflow-auto",children:(0,n.jsxs)("table",{className:" bg-white border border-gray-200 rounded-md shadow-md ",children:[(0,n.jsxs)("thead",{children:[(0,n.jsxs)("tr",{className:"bg-darkBlue text-white text-sm border",children:[(0,n.jsx)("th",{className:"py-3 px-4 border",children:"Name"}),(0,n.jsx)("th",{className:"py-3 px-4 border",children:"Age"}),(0,n.jsx)("th",{className:"py-3 px-4 border",children:"Bureau Score"}),(0,n.jsx)("th",{colSpan:2,className:"py-3 px-4 border",children:"Total Loans"}),(0,n.jsx)("th",{colSpan:2,className:"py-3 px-4 border",children:"Business Loans"}),(0,n.jsx)("th",{colSpan:2,className:"py-3 px-4 border",children:"Property Loans"}),(0,n.jsx)("th",{colSpan:2,className:"py-3 px-4 border",children:"Vehicle Loans"}),(0,n.jsx)("th",{colSpan:2,className:"py-3 px-4 border",children:"Others"}),(0,n.jsx)("th",{colSpan:2,className:"py-3 px-4 border",children:"Credit Card"})]}),(0,n.jsxs)("tr",{className:" text-white text-sm",children:[(0,n.jsx)("th",{className:"py-2 px-4 border-x border-black"}),(0,n.jsx)("th",{className:"py-2 px-4 border-x border-black"}),(0,n.jsx)("th",{className:"py-2 px-4 border-x border-black"}),(0,n.jsx)("th",{className:"py-2 px-4 border bg-green",children:"Live"}),(0,n.jsx)("th",{className:"py-2 px-4 border bg-csGreen",children:"Closed"}),(0,n.jsx)("th",{className:"py-2 px-4 border bg-green",children:"Live"}),(0,n.jsx)("th",{className:"py-2 px-4 border bg-csGreen",children:"Closed"}),(0,n.jsx)("th",{className:"py-2 px-4 border bg-green",children:"Live"}),(0,n.jsx)("th",{className:"py-2 px-4 border bg-csGreen",children:"Closed"}),(0,n.jsx)("th",{className:"py-2 px-4 border bg-green",children:"Live"}),(0,n.jsx)("th",{className:"py-2 px-4 border bg-csGreen",children:"Closed"}),(0,n.jsx)("th",{className:"py-2 px-4 border bg-green",children:"Live"}),(0,n.jsx)("th",{className:"py-2 px-4 border bg-csGreen",children:"Closed"}),(0,n.jsx)("th",{className:"py-2 px-4 border bg-green",children:"Live"}),(0,n.jsx)("th",{className:"py-2 px-4 border bg-csGreen",children:"Closed"})]})]}),(0,n.jsx)("tbody",{children:(0,n.jsxs)("tr",{className:"text-gray-800 text-sm",children:[(0,n.jsx)("td",{className:"py-3 px-4 border-x border-b",children:(null===(t=E[0])||void 0===t?void 0:t.name)||"N/A"}),(0,n.jsx)("td",{className:"py-3 px-4 border-x border-b",children:(null===(i=E[0])||void 0===i?void 0:i.age)||"N/A"}),(0,n.jsx)("td",{className:"py-3 px-4 border-x border-b",children:_||"N/A"}),(0,n.jsx)("td",{className:"py-3 px-4 border",children:(null===(u=E[0])||void 0===u?void 0:null===(c=u.totalLoans)||void 0===c?void 0:c.active)||0}),(0,n.jsx)("td",{className:"py-3 px-4 border",children:(null===(x=E[0])||void 0===x?void 0:null===(m=x.totalLoans)||void 0===m?void 0:m.closed)||0}),(0,n.jsx)("td",{className:"py-3 px-4 border",children:(null===(p=E[0])||void 0===p?void 0:null===(h=p.businessLoans)||void 0===h?void 0:h.active)||0}),(0,n.jsx)("td",{className:"py-3 px-4 border",children:(null===(b=E[0])||void 0===b?void 0:null===(v=b.businessLoans)||void 0===v?void 0:v.closed)||0}),(0,n.jsx)("td",{className:"py-3 px-4 border",children:(null===(y=E[0])||void 0===y?void 0:null===(N=y.propertyLoans)||void 0===N?void 0:N.active)||0}),(0,n.jsx)("td",{className:"py-3 px-4 border",children:(null===(g=E[0])||void 0===g?void 0:null===(j=g.propertyLoans)||void 0===j?void 0:j.closed)||0}),(0,n.jsx)("td",{className:"py-3 px-4 border",children:(null===(f=E[0])||void 0===f?void 0:null===(L=f.vehicleLoans)||void 0===L?void 0:L.active)||0}),(0,n.jsx)("td",{className:"py-3 px-4 border",children:(null===(w=E[0])||void 0===w?void 0:null===(S=w.vehicleLoans)||void 0===S?void 0:S.closed)||0}),(0,n.jsx)("td",{className:"py-3 px-4 border",children:(null===(T=E[0])||void 0===T?void 0:null===(O=T.others)||void 0===O?void 0:O.active)||0}),(0,n.jsx)("td",{className:"py-3 px-4 border",children:(null===(H=E[0])||void 0===H?void 0:null===(C=H.others)||void 0===C?void 0:C.closed)||0}),(0,n.jsx)("td",{className:"py-3 px-4 border",children:(null===(A=E[0])||void 0===A?void 0:null===(D=A.creditCards)||void 0===D?void 0:D.active)||0}),(0,n.jsx)("td",{className:"py-3 px-4 border",children:(null===(B=E[0])||void 0===B?void 0:null===(R=B.creditCards)||void 0===R?void 0:R.closed)||0})]})})]})})]})}var i=r(11163),c=r(20047);function RepaymentSummaryTable(e){let s,{tableData:r,firstLoanTaken:t}=e,a="py-4 border-r border-white text-center px-4";return s=t||(null==r?void 0:r.firstLoanTakenOn),(0,n.jsxs)("table",{className:"rounded-xl w-full border-collapse mb-8  shadow-lg overflow-hidden",children:[(0,n.jsx)("thead",{className:"bg-darkBlue text-white font-regular",children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:a,children:"Total Business Loans Taken till Date"}),(0,n.jsx)("td",{className:a,children:" 30 DPD Observed (Times)"}
1),(0,n.jsx)("td",{className:a,children:"Highest Loan Taken (Amount)"}),(0,n.jsx)("td",{className:a,children:"Total Current Outstanding"}),(0,n.jsx)("td",{className:a,children:"Total Amount of Loan Taken in last 6 Months"}),(0,n.jsx)("td",{className:a,children:"First Loan Taken On"}),(0,n.jsx)("td",{className:a,children:"Most Recent Loan Taken On"})]})}),(0,n.jsx)("tbody",{children:(0,n.jsxs)("tr",{className:"text-center py-8",children:[(0,n.jsx)("td",{className:"py-6",children:(null==r?void 0:r.total)||"0"}),(0,n.jsx)("td",{children:(null==r?void 0:r.dpdObserved)||"0"}),(0,n.jsx)("td",{children:(0,c.$3)(null==r?void 0:r.highestLoanAmount)||"0"}),(0,n.jsx)("td",{children:(0,c.$3)(null==r?void 0:r.totalCurrentOutStanding)||"0"}),(0,n.jsx)("td",{children:(0,c.$3)(null==r?void 0:r.totalLoanInLast6Months)||"0"}),(0,n.jsx)("td",{children:s||"NA"}),(0,n.jsx)("td",{children:(null==r?void 0:r.mostRecentLoan)||"NA"})]})})]})}function LoanRepaymentSummary(e){let{reportId:s}=e,[r,t]=(0,a.useState)(),[l,i]=(0,a.useState)([]),[c,u]=(0,a.useState)(""),[m,x]=(0,a.useState)(""),[h,p]=(0,a.useState)("");return(0,a.useEffect)(()=>{(0,d.HT)((0,o.n2)(s)).then(e=>{var s,r,n,a,l,o,d,c,m,h,v,b,N,y,j,g;let{data:L}=e;i(L),t(L.loanDetails);let f=null==L?void 0:null===(s=L.loanDetails)||void 0===s?void 0:s.filter(e=>"BusinessLoan"===e.typeLoan);f.sort((e,s)=>{if(e.openingDate!==s.openingDate)return e.openingDate-s.openingDate}),u(null===(r=f[0])||void 0===r?void 0:r.openingDate);let S=null===(n=f[0])||void 0===n?void 0:n.openingDate,w=null===(a=f[f.length-1])||void 0===a?void 0:a.openingDate;L.BusinessLoans.firstLoanTakenOn=S,L.BusinessLoans.mostRecentLoan=w;let O=null==L?void 0:null===(l=L.loanDetails)||void 0===l?void 0:l.filter(e=>"PropertyLoan"===e.typeLoan);O.sort((e,s)=>{if(e.openingDate!==s.openingDate)return e.openingDate-s.openingDate}),x(null===(o=O[0])||void 0===o?void 0:o.openingDate);let T=null===(d=O[0])||void 0===d?void 0:d.openingDate,C=null===(c=O[O.length-1])||void 0===c?void 0:c.openingDate;L.PropertyLoans.firstLoanTakenOn=(null==L?void 0:null===(m=L.PropertyLoans)||void 0===m?void 0:m.firstLoanTakenOn)?T:null==L?void 0:null===(h=L.PropertyLoans)||void 0===h?void 0:h.firstLoanTakenOn,L.PropertyLoans.mostRecentLoan=(null==L?void 0:null===(v=L.PropertyLoans)||void 0===v?void 0:v.mostRecentLoan)?C:null==L?void 0:null===(b=L.PropertyLoans)||void 0===b?void 0:b.mostRecentLoan;let H=null==L?void 0:null===(N=L.loanDetails)||void 0===N?void 0:N.filter(e=>"VehicleLoan"===e.typeLoan);H.sort((e,s)=>{if(e.openingDate!==s.openingDate)return e.openingDate-s.openingDate}),p(null===(y=H[0])||void 0===y?void 0:y.openingDate);let D=null===(j=H[0])||void 0===j?void 0:j.openingDate,A=null===(g=H[H.length-1])||void 0===g?void 0:g.openingDate;L.VehicleLoans.firstLoanTakenOn=D,L.VehicleLoans.mostRecentLoan=A})},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"shadow-2xl rounded-md",children:(0,n.jsxs)("p",{className:"text-darkBlue font-semibold text-2xl  p-6",children:["Loan Repayment Summary -"," ",(0,n.jsx)("span",{className:"text-steelBlue",children:"Business Loans"})]})}),(0,n.jsx)(RepaymentSummaryTable,{tableData:l.BusinessLoans,firstLoanTaken:c}),(0,n.jsx)("div",{className:"shadow-2xl rounded-md",children:(0,n.jsxs)("p",{className:"text-darkBlue font-semibold text-2xl  p-6",children:["Loan Repayment Summary -"," ",(0,n.jsx)("span",{className:"text-steelBlue",children:"Property Loans"})]})}),(0,n.jsx)(RepaymentSummaryTable,{tableData:l.PropertyLoans,firstLoanTaken:""}),(0,n.jsxs)("div",{className:"shadow-2xl rounded-md",children:[(0,n.jsxs)("p",{className:"text-darkBlue font-semibold text-2xl  p-6",children:["Loan Repayment Summary -"," ",(0,n.jsx)("span",{className:"text-steelBlue",children:"Vehicle Loans"})]}),(0,n.jsx)(RepaymentSummaryTable,{tableData:l.VehicleLoans,firstLoanTaken:""})]})]})}let u=[{Header:"Loan No.",accessor:"loanNumber",Cell:e=>e.row.index+1,minWidth:120},{Header:"Loan Type",accessor:"loanType",minWidth:120},{Header:"Lender",accessor:"lenderName",minWidth:120},{Header:"Loan Amount",accessor:"loanAmount",Cell:e=>e.value?(0,c.$3)(e.value):0,minWidth:120},{Header:"Overdue Amount",accessor:"overdueAmount",Cell:e=>e.value?(0,c.$3)(e.value):0,minWidth:120},{Header:"Current Balance",accessor:"currentBalance",Cell:e=>e.value?(0,c.$3)(e.value):0,minWidth:120},{Header:"EMI as per Bureau",accessor:"emiAsPerBureau",minWidth:120},{Header:"Opening Date",accessor:"openingDate",minWidth:120},{Header:"Closing Date",accessor:"closingDate",minWidth:120,Cell:e=>e.value?e.value:"NA"},{Header:"Reporting Date",accessor:"reportingDate",minWidth:120},{Header:"Ownership Type",accessor:"ownerShipType",minWidth:120}],m=[{Header:"Member Name",accessor:"memberName"},{Header:"Date",accessor:"date"},{Header:"Purpose",accessor:"loanDescription"},{Header:"Amount",accessor:"amount"}],x=[{Header:"ALL",accessor:"ALL"},{Header:"BUSINESS LOANS",accessor:"BUSINESS_LOANS"},{Header:"PROPERTY LOANS",accessor:"PROPERTY_LOANS"},{Header:"VEHICLE LOANS",accessor:"VEHICLE_LOANS"},{Header:"OTHER LOANS",accessor:"OTHER_LOANS"},{Header:"CREDIT CARD",accessor:"CREDIT_CARD"}],h=["ALL","BUSINESS LOANS","PROPERTY LOANS","VEHICLE LOANS","OTHER LOANS","CREDIT CARD"],p=[{Header:"A/c Holder’s Name",accessor:"name",minWidth:140},{Header:"Type of Loan",accessor:"loanType",minWidth:140},{Header:"Lender Name",accessor:"lenderName",minWidth:140},{Header:"Loan Amount as per Bureau",accessor:"loanAmount",minWidth:140},{Header:"Current Balance",accessor:"currentBalance",minWidth:140},{Header:"EMI as per Bureau",accessor:"emiAsPerBureau",minWidth:140},{Header:"EMI Considered by the System",accessor:"emiBySystem",minWidth:150},{Header:"Opening Date",accessor:"openingDate",minWidth:120},{Header:"Closing Date",accessor:"closingDate",minWidth:120},{Header:"Reporting Date",accessor:"reportingDate",minWidth:120},{Header:"Ownership Type",accessor:"ownerShipType",minWidth:140},{Header:"Month on Book",accessor:"monthOnBook",minWidth:140},{Header:"Remarks as per Bureau",accessor:"bureauComments",minWidth:140}
1,{Header:"Bank Details",accessor:"bankDetails",minWidth:100},{Header:"Duplicate",accessor:"isDuplicate",minWidth:100,Cell:e=>(0,n.jsx)("div",{children:e.value?"Yes":"No"})},{Header:"Closing in 6 months",accessor:"closingIn6Months",minWidth:140,Cell:e=>(0,n.jsx)("div",{children:e.value?"Yes":"No"})},{Header:"EMI Obligated",accessor:"emiObligated",minWidth:120,Cell:e=>(0,n.jsx)("div",{children:e.value?"Yes":"No"})}];var v=r(86684);function LoanRepaymentHistory(e){let{reportId:s}=e,[r,t]=(0,a.useState)(),l=[...u,{Header:"Delinquency Trend(Last 6 Months)",accessor:"deliquencyTrend",Cell:e=>{var s;let{original:r}=e.row;return(0,n.jsx)("div",{className:"text-left px-4",children:null==r?void 0:null===(s=r.deliquencyTrend)||void 0===s?void 0:s.map((e,s)=>{if(s<=5)return(0,n.jsx)("div",{className:"inline-block p-1 text-xs mr-1 \n                            ".concat((null==r?void 0:r.isDelinquate)?"!bg-red":getHeatmapColorCode(e)),children:e||"XXX"},"delinquency-index-".concat(s))})})},minWidth:300}],getHeatmapColorCode=e=>""===e?"bg-grayText":0<parseInt(e)&&29>=parseInt(e)?"bg-warning":parseInt(e)>29?"bg-red":"bg-green";return(0,a.useEffect)(()=>{(0,d.HT)((0,o.n2)(s)).then(e=>{let{data:s}=e;t(s.loanDetails)})},[]),(0,n.jsx)("div",{className:"w-[80vw]",children:(0,n.jsx)(v.Z,{data:r||[],columns:l,headerVariant:"dark"})})}var b=r(19042),N=r(78633),y=r(38735);function DelinquencyHistory(e){let{reportId:s}=e,[r,t]=(0,a.useState)(!1),[l,i]=(0,a.useState)(),[c,u]=(0,a.useState)([]),getHeatmapColorCode=e=>""===e?"bg-grayText":0<parseInt(e)&&29>=parseInt(e)?"bg-warning":parseInt(e)>29?"bg-red":"bg-green",getTooltipHtml=(e,s)=>{let{openingDate:r,closingDate:n,reportingDate:t,overdueAmount:a,loanStatus:l}=e;return"\n      <div>Opening Date: ".concat(r,"</div>\n      <div>Closing Date: ").concat(n,"</div>\n      <div>Reporting Date: ").concat(t,"</div>\n      <div>Overdue Amount: ").concat(a,"</div>\n      <div>Loan Status: ").concat(l,"</div>\n      <div>Loan Month: ").concat(s.Month,"/").concat(s.Year,"</div>\n      ")};return(0,a.useEffect)(()=>{(0,d.HT)((0,o.n2)(s)).then(e=>{let{data:s}=e;u(s),i(s.loanDetails),t(!0),y.Z.rebuild()})},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"shadow-md  mt-2 rounded-md overflow-hidden",children:[(0,n.jsxs)("div",{className:"flex bg-darkBlue text-white text-center ",children:[(0,n.jsx)("div",{className:"w-1/12 border-r border-white py-4  ",children:"Status"}),(0,n.jsx)("div",{className:"w-1/12 border-r border-white py-4",children:"Loan Type"}),(0,n.jsx)("div",{className:"w-10/12 py-4",children:"Heat Map"})]}),(0,n.jsxs)("div",{className:"shadow-md rounded-md overflow-auto",style:{height:"60vh"},children:[l?l.map((e,s)=>{var r,t;return(0,n.jsxs)("div",{className:"flex text-center",children:[(0,n.jsx)("div",{className:"w-1/12 border-r border-outlineGray py-4",children:e.loanStatus}),(0,n.jsx)("p",{className:"w-1/12 border-r border-outlineGray py-4 !capitalize px-4",children:null===(r=e.loanType)||void 0===r?void 0:r.toLowerCase()}),(0,n.jsx)("div",{className:"w-10/12 border-r border-outlineGray py-4 text-left px-4 cursor-pointer",children:null==e?void 0:null===(t=e.account_deliquency_History)||void 0===t?void 0:t.map((r,t)=>{if(t<=35)return(0,n.jsx)("div",{className:"inline-block p-1 text-xs mr-1 w-8 text-center \n                    ".concat((null==e?void 0:e.isDelinquate)?"!bg-red":getHeatmapColorCode(r.Days_Past_Due)),"data-tip":getTooltipHtml(e,r),children:r.Days_Past_Due||"XXX"},"delinquency-index-".concat(s,"-").concat(t))})})]},"heatmap-row-".concat(s))}):(0,n.jsx)("p",{className:"text-center my-8 text-xl",children:"No Data Available"}),(0,n.jsxs)("div",{className:"flex bg-steelBlue/[0.3]",children:[(0,n.jsxs)("div",{className:"w-2/12 border-r border-white py-4 flex justify-center items-center",children:["Months : Latest to Old"," ",(0,n.jsx)(b.T7S,{className:"ml-4"})]}),(0,n.jsx)("div",{className:"w-10/12 py-4 px-8 flex justify-between",children:Array(36).fill("").map((e,s)=>(0,n.jsx)("div",{children:s+1},"arr-".concat(s)))})]})]})]}),(0,n.jsxs)("div",{className:"flex bg-darkBlue rounded-lg my-8 ",children:[(0,n.jsxs)("div",{className:"border-r-2 border-white px-12 py-6 w-1/4",children:[(0,n.jsx)("p",{className:"text-grayText",children:"Stress Observed in last 3 Months"}),(0,n.jsxs)("p",{className:"".concat((null==c?void 0:c.stressObservedInLast3Months)?"text-red":"text-green"," text-xl font-semibold mt-4 flex items-center"),children:[(0,n.jsx)(N.Tli,{className:"mr-2"}),(null==c?void 0:c.stressObservedInLast3Months)?"Yes":"NO"]})]}),(0,n.jsxs)("div",{className:"border-r-2 border-white px-12 py-6 w-1/4",children:[(0,n.jsx)("p",{className:"text-grayText",children:"Stress Observed in last 4-12 Months"}),(0,n.jsxs)("p",{className:"".concat((null==c?void 0:c.stressObservedInLast4to12Months)?"text-red":"text-green"," text-xl font-semibold mt-4 flex items-center"),children:[(0,n.jsx)(N.Tli,{className:"mr-2"}),(null==c?void 0:c.stressObservedInLast4to12Months)?"Yes":"NO"]})]}),(0,n.jsxs)("div",{className:"border-r-2 border-white px-12 py-6 w-1/4",children:[(0,n.jsx)("p",{className:"text-grayText",children:"Stress Observed in Business Loans"}),(0,n.jsxs)("p",{className:"".concat((null==c?void 0:c.stressObservedInBussinessLoans)?"text-red":"text-green"," text-xl font-semibold mt-4 flex items-center"),children:[(0,n.jsx)(N.Tli,{className:"mr-2"}),(null==c?void 0:c.stressObservedInBussinessLoans)?"Yes":"NO"]})]}),(0,n.jsxs)("div",{className:" px-12 py-6",children:[(0,n.jsx)("p",{className:"text-grayText",children:"Stress Observed in Property Loans"}),(0,n.jsxs)("p",{className:"".concat((null==c?void 0:c.stressObservedInPropertyLoans)?"text-red":"text-green"," text-xl font-semibold mt-4 flex items-center"),children:[(0,n.jsx)(N.Tli,{className:"mr-2"}),(null==c?void 0:c.stressObservedInPropertyLoans)?"Yes":"NO"]})]}
1),r?(0,n.jsx)(y.Z,{html:!0,effect:"solid",backgroundColor:"white",textColor:"black",className:"bg-red",border:!0,borderColor:"gray"}):null]})]})}var j=r(2152),g=r(40964);function CreditInqueries(e){let{reportId:s}=e,[r,t]=(0,a.useState)([]),[l,i]=(0,a.useState)("ALL"),[c,u]=(0,a.useState)([]),[p,v]=(0,a.useState)([]),[b,N]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{(0,d.HT)((0,o.XF)(s,l)).then(e=>{let{data:s}=e;if(s){v(s),u(s);let e={ALL:0,BUSINESS_LOANS:0,PROPERTY_LOANS:0,VEHICLE_LOANS:0,OTHER_LOANS:0,CREDIT_CARD:0};s.map((s,r)=>{"OTHER LOANS"==s.purpose?(e.OTHER_LOANS=e.OTHER_LOANS+1,e.ALL=e.ALL+1):"BUSINESS LOANS"==s.purpose?(e.BUSINESS_LOANS=e.BUSINESS_LOANS+1,e.ALL=e.ALL+1):"PROPERTY LOANS"==s.purpose?(e.PROPERTY_LOANS=e.PROPERTY_LOANS+1,e.ALL=e.ALL+1):"VEHICLE LOANS"==s.purpose?(e.VEHICLE_LOANS=e.VEHICLE_LOANS+1,e.ALL=e.ALL+1):"CREDIT CARD"==s.purpose&&(e.CREDIT_CARD=e.CREDIT_CARD+1,e.ALL=e.ALL+1)}),t([{...e}])}}).catch(e=>{console.error(e)})},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"text-darkBlue font-semibold text-2xl  my-6",children:"Inquiries in"}),(0,n.jsx)(j.Z,{data:r,columns:x,headerVariant:"dark"}),(0,n.jsxs)("div",{className:"shadow-2xl rounded-md",children:[(0,n.jsx)("p",{className:"text-darkBlue font-semibold text-2xl my-4 p-6",children:"Credit Inquiries"}),(0,n.jsx)("div",{className:"flex border-2 border-steelBlue rounded-md mb-8 mx-4 w-fit cursor-pointer",children:h.map((e,s)=>(0,n.jsx)("div",{className:"py-4 px-6 text-grayText\n                ".concat(s!==h.length-1&&"border-r-2 border-steelBlue"," \n                ").concat(l===e&&"bg-steelBlue !text-white"),onClick:()=>{if("ALL"==e)u(p),i(e);else{let s=p.filter((s,r)=>{if(s.purpose===e)return s});i(e),u(s)}},children:e},e))}),(0,n.jsx)(g.Z,{data:c,columns:m,headerVariant:"dark"}),b?(0,n.jsx)(y.Z,{html:!0,effect:"solid",backgroundColor:"white",textColor:"black",className:"bg-red",border:!0,borderColor:"gray"}):null]})]})}var L=r(19151),f=r(52960);function CurrentObligations(e){let{reportId:s}=e,[r,t]=(0,a.useState)([]),l=[{Header:"S. No.",accessor:"",Cell:e=>{let{row:s}=e;return(0,n.jsx)("div",{children:(0,n.jsx)("span",{children:(null==s?void 0:s.index)+1})})},minWidth:80},...p];(0,a.useEffect)(()=>{(0,d.HT)((0,o.iu)(s)).then(e=>{0!=e.data.length&&t(e.data.currentObligations)}).catch(e=>{console.error(e)})},[]);let i=0;for(let e in r)r[e].emiObligated&&r[e].emiBySystem&&"0"!=r[e].currentBalance&&(i+=parseInt(r[e].emiBySystem));return(0,n.jsxs)(n.Fragment,{children:[r&&(0,n.jsxs)("div",{className:"w-[80vw] p-4",children:[(0,n.jsx)(f.Z,{data:r,columns:l,headerVariant:"dark"}),(0,n.jsxs)("div",{className:"float-right mr-20 mt-2",children:["Total EMI Obligated:"," ",(0,n.jsxs)("span",{className:"text-blue-600/100",children:["₹ ",i]})]})]}),!r&&(0,n.jsxs)("div",{className:"p-10",children:[(0,n.jsx)("div",{className:"flex justify-center  text-2xl font-semibold text-blue-600 ",children:"There Is Some Issue From Our Side"}),(0,n.jsx)("div",{className:" flex justify-center ",children:(0,n.jsx)(L.jDz,{size:150,color:"grey"})})]})]})}function BureauByReportId(){let[e,s]=(0,a.useState)("Overview"),[r,t]=(0,a.useState)(),{query:l}=(0,i.useRouter)();return(0,a.useEffect)(()=>{(null==l?void 0:l.bureauById)!=void 0&&t(null==l?void 0:l.bureauById)},[l]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"w-full",children:[(0,n.jsx)("div",{className:"flex justify-evenly overflow-auto bg-gray-100 border border-gray-300   w-[84vw] p-4 shadow-md py-6 flex-nowrap min-w-0",children:["Overview","Loan Repayment History","Delinquency History","Loan Repayment Summary","Credit Inquiries","Current Obligations"].map(r=>(0,n.jsx)("div",{onClick:()=>s(r),className:"".concat("New Report"!==r?" font-medium text-sm ".concat(e===r?"underline text-blue-500":"text-gray-500"," hover:text-blue-500 transition-all whitespace-nowrap"):"bg-darkBlue text-white text-base border-4 border-darkBlue rounded-md whitespace-nowrap"),children:r},r))}),(0,n.jsxs)("div",{className:"p-2 mx-3   ",children:["Overview"===e&&(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)("h2",{className:"text-xl font-semibold text-amber-700",children:"Overview"}),(0,n.jsx)(OverviewById,{reportId:r})]}),"Loan Repayment History"===e&&(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"text-xl font-semibold",children:"Loan Repayment History"}),(0,n.jsx)(LoanRepaymentHistory,{reportId:r})]}),"Delinquency History"===e&&(0,n.jsxs)("div",{className:"p-2",children:[(0,n.jsx)("h2",{className:"text-xl font-semibold",children:"Delinquency History"}),(0,n.jsx)(DelinquencyHistory,{reportId:r})]}),"Loan Repayment Summary"===e&&(0,n.jsx)("div",{children:(0,n.jsx)(LoanRepaymentSummary,{reportId:r})}),"Credit Inquiries"===e&&(0,n.jsx)("div",{children:(0,n.jsx)(CreditInqueries,{reportId:r})}),"Current Obligations"===e&&(0,n.jsx)("div",{children:(0,n.jsx)(CurrentObligations,{reportId:r})})]})]})})}var S=(0,r(87932).Z)(()=>(0,n.jsx)(t.Z,{component:(0,n.jsx)(BureauByReportId,{})}))},2152:function(e,s,r){"use strict";r.d(s,{Z:function(){return Table}});var n=r(85893);r(67294);var t=r(79521);
1function Table(e){let{columns:s,data:r,headerVariant:a="light",className:l,headerClass:o,onRowClick:d}=e,{getTableProps:i,getTableBodyProps:c,headerGroups:u,rows:m,prepareRow:x}=(0,t.useTable)({columns:s,data:r},t.useSortBy),rowClickHandler=e=>{d&&d(e)};return(0,n.jsx)("div",{className:"overflow-x-auto",children:(0,n.jsxs)("table",{...i(),className:"".concat(l," w-full hidden md:inline-table  shadow-md rounded-xl overflow-hidden text-sm"),children:[(0,n.jsx)("thead",{className:"".concat(o," ").concat("dark"===a&&"bg-darkBlue text-white ","\n                      ").concat("light"===a&&"bg-white text-darkBlue border-b-2 border-outlineGray border-opacity-20","\n                    "),children:u.map((e,s)=>(0,n.jsx)("tr",{...e.getHeaderGroupProps(),className:"border-b border-white",children:e.headers.map(e=>(0,n.jsx)("th",{className:"font-normal py-4 border-r border-white \n                    ".concat(1===s&&"bg-white "," \n                    ").concat(e.render("Header")&&1===s&&"bg-opacity-40"),children:e.render("Header")}))}))}),(0,n.jsx)("tbody",{...c(),className:"text-center bg-white",children:m.map(e=>(x(e),(0,n.jsx)("tr",{...e.getRowProps(),className:"border-b-2 border-r border-t-2 border-l border-outlineGray border-opacity-20 rounded-br-3xl ".concat(d?"cursor-pointer":null),onClick:()=>rowClickHandler(e.original),children:e.cells.map(e=>(0,n.jsx)("td",{className:"py-4 text-xs",...e.getCellProps({style:{minWidth:e.column.minWidth,width:e.column.width}}),children:e.render("Cell")}))})))}),0===m.length&&(0,n.jsx)("tbody",{children:(0,n.jsx)("tr",{children:(0,n.jsx)("td",{className:"py-4 text-center bg-white font-semibold",colSpan:s.length,children:"No Rows Found"})})})]})})}r(22071)},87932:function(e,s,r){"use strict";var n=r(85893),t=r(11163),a=r(67294),l=r(86571),o=r(19603),d=r(3409),i=r(67642),c=r(55678),u=r(83454);s.Z=e=>{let AuthenticatedComponent=s=>{let{push:r,pathname:m}=(0,t.useRouter)(),x=(0,a.useRef)(null),h=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{let e=(0,d.a)(sessionStorage.getItem("accessToken")),s=null==e?void 0:e._id;return(0,l.HT)((0,o.aw)(s)).then(e=>{let{data:n}=e;if(!n._id){r("/signUp");return}x.current||(x.current=(0,i.io)(u.env.NEXT_PUBLIC_SOCKET_ENV,{query:{userId:s}}),x.current.on("connect",()=>{console.log("Socket connected with userId:",s)}),x.current.on("gst-verified",e=>{}),x.current.on("Not Verified",e=>{c.Am.error("GST Not Verified")}),x.current.on("webhookcalled",e=>{c.Am.success("GST Data Received")}),h.current=!0)}).catch(()=>{r("/signUp")}),()=>{x.current&&(x.current.off("gst-verified"),x.current.off("Bank-categariesed"),x.current.off("webhookcalled"),x.current.disconnect())}},[r,m]),(0,n.jsx)(e,{...s})};return AuthenticatedComponent.displayName="WithAuth(".concat(e.displayName||e.name||"Component",")"),AuthenticatedComponent}}},function(e){e.O(0,[8127,8391,4838,2510,3219,6957,4738,4321,7066,8498,3253,9521,7642,2059,5983,9774,2888,179],function(){return e(e.s=238)}),_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.