PageSourceSearch

https://web.pgmanager.in/static/js/1348.bb786266.chunk.js

js pgmanager.in collected 2026-10-02 01:57:07 UTC 13,650 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkpg_manager=self.webpackChunkpg_manager||[]).push([[1348],{77956:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(20890),a=n(50225),s=n(80184);const i=(0,a.Z)("div")((e=>{let{theme:t}=e;return{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",padding:"2rem","& .ant-empty-img-1":{fill:"light"===t.palette.mode?"#aeb8c2":"#262626"},"& .ant-empty-img-2":{fill:"light"===t.palette.mode?"#f5f5f7":"#595959"},"& .ant-empty-img-3":{fill:"light"===t.palette.mode?"#dce0e6":"#434343"},"& .ant-empty-img-4":{fill:"light"===t.palette.mode?"#fff":"#1c1c1c"},"& .ant-empty-img-5":{fillOpacity:"light"===t.palette.mode?"0.8":"0.08",fill:"light"===t.palette.mode?"#f5f5f5":"#fff"}}}));function l(){return(0,s.jsxs)(i,{children:[(0,s.jsx)("svg",{width:"120",height:"100",viewBox:"0 0 184 152","aria-hidden":!0,focusable:"false",children:(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,s.jsxs)("g",{transform:"translate(24 31.67)",children:[(0,s.jsx)("ellipse",{className:"ant-empty-img-5",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),(0,s.jsx)("path",{className:"ant-empty-img-1",d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),(0,s.jsx)("path",{className:"ant-empty-img-2",d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),(0,s.jsx)("path",{className:"ant-empty-img-3",d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})]}),(0,s.jsx)("path",{className:"ant-empty-img-3",d:"M 21 3 C 11.654545 3 4 10.654545 4 20 C 4 29.345455 11.654545 37 21 37 C 24.701287 37 28.127393 35.786719 30.927734 33.755859 L 44.085938 46.914062 L 46.914062 44.085938 L 33.875 31.046875 C 36.43682 28.068316 38 24.210207 38 20 C 38 10.654545 30.345455 3 21 3 z M 21 5 C 29.254545 5 36 11.745455 36 20 C 36 28.254545 29.254545 35 21 35 C 12.745455 35 6 28.254545 6 20 C 6 11.745455 12.745455 5 21 5 z"}),(0,s.jsxs)("g",{className:"ant-empty-img-4",transform:"translate(149.65 15.383)",children:[(0,s.jsx)("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),(0,s.jsx)("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"})]})]})}),(0,s.jsx)(r.Z,{variant:"h6",fontWeight:700,color:"secondary",children:"OOPS!"}),(0,s.jsx)(r.Z,{gutterBottom:!0,variant:"body2",sx:{mb:1},children:"We haven't found any data"})]})}},65454:(e,t,n)=>{n.d(t,{Z:()=>D});var r=n(91098),a=n(13208),s=n(35527),i=n(53767),l=n(25028),o=n(49900),d=n(57064),c=n(44392),u=n(57928),m=n(78638),h=n(24518),p=n(93727),f=n(68096),y=n(58406),x=n(23786),g=n(30829),v=n(61889),b=n(48550),j=n(72791),I=n(15719),Z=n(28030),R=n(71652),C=n(60222),M=n(63118),w=n(80184);const E=(0,I.Z)((0,Z.Z)(new Date,1)),P=new Date,k=e=>{let{loadData:t,startDate:n,endDate:I,downloadFile:Z,filterByOptions:k}=e;const D=Array.isArray(k)&&k.length>0,F=(0,j.useMemo)((()=>({from:n||E,to:I||P,...D?{filterBy:k[0].value}:{}}
1)),[n,I,k,D]),[S,T]=(0,j.useState)(F),[N,B]=(0,j.useState)(!1),z=(0,j.useRef)(null);(0,j.useEffect)((()=>{"function"===typeof t&&t(F)}),[F,t]);const L=e=>{var t;null!==z&&void 0!==z&&z.current&&null!==z&&void 0!==z&&null!==(t=z.current)&&void 0!==t&&t.contains(e.target)||B(!1)},W=()=>{B((e=>!e))};function G(e){W(),"function"===typeof Z&&setTimeout(Z,200)}return(0,w.jsxs)(v.ZP,{item:!0,container:!0,xs:12,justifyContent:"space-between",spacing:1,alignItems:"center",children:[(0,w.jsxs)(v.ZP,{item:!0,container:!0,xs:12,sm:8,md:8,xl:8,spacing:2,children:[(0,w.jsx)(v.ZP,{item:!0,xs:D?12:6,sm:D?4:6,md:D?4:6,lg:D?4:5,xl:3,children:(0,w.jsx)(R._,{dateAdapter:M.H,children:(0,w.jsx)(C.M,{required:!0,label:"Start date",format:"dd-MMM-yyyy",clearable:!1,value:S.from,maxDate:S.to,onChange:e=>T((t=>({...t,from:e}))),openTo:"day",views:["year","month","day"],textField:e=>(0,w.jsx)(b.Z,{value:S.from,...e,margin:"normal",sx:{width:"100%"}}),slotProps:{actionBar:{actions:["today"]},textField:{fullWidth:!0}}})})}),(0,w.jsx)(v.ZP,{item:!0,xs:D?12:6,sm:D?4:6,md:D?4:6,lg:D?4:5,xl:3,children:(0,w.jsx)(R._,{dateAdapter:M.H,children:(0,w.jsx)(C.M,{required:!0,label:"End date",format:"dd-MMM-yyyy",clearable:!1,value:S.to,minDate:S.from,disableFuture:!0,onChange:e=>T((t=>({...t,to:e}))),openTo:"day",views:["year","month","day"],textField:e=>(0,w.jsx)(b.Z,{value:S.to,...e,margin:"normal",sx:{width:"100%"}}),slotProps:{actionBar:{actions:["today"]},textField:{fullWidth:!0}}})})}),D?(0,w.jsx)(v.ZP,{item:!0,xs:12,sm:4,md:4,lg:4,xl:3,children:(0,w.jsxs)(f.Z,{fullWidth:!0,children:[(0,w.jsx)(g.Z,{id:"filter-by-label",children:"FilterBy"}),(0,w.jsx)(y.Z,{label:"FilterBy",labelId:"filter-by-label",onChange:e=>T((t=>({...t,filterBy:e.target.value}))),value:S.filterBy,children:k.map((e=>{let{label:t,value:n}=e;return(0,w.jsx)(x.Z,{value:n,children:t},n)}))})]})}):null]}),(0,w.jsx)(v.ZP,{item:!0,xs:12,sm:4,md:4,xl:4,textAlign:"right",children:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(u.Z,{variant:"contained",ref:z,color:"tertiary",sx:{position:"relative"},children:[(0,w.jsx)(h.Z,{sx:{borderRadius:1},startIcon:(0,w.jsx)(p.Z,{}),variant:"tonal",onClick:function(){"function"===typeof t&&t(S)},children:"Refresh"}),(0,w.jsx)(h.Z,{size:"small","aria-expanded":N?"true":void 0,"aria-haspopup":"menu",onClick:W,sx:{borderTopRightRadius:"2px !important",borderBottomRightRadius:"2px !important"},children:(0,w.jsx)(m.Z,{})})]}),(0,w.jsx)(r.Z,{sx:{zIndex:1},open:N,anchorEl:z.current,role:void 0,transition:!0,disablePortal:!0,children:e=>{let{TransitionProps:t,placement:n}=e;return(0,w.jsx)(a.Z,{...t,style:{transformOrigin:"bottom"===n?"center top":"center bottom"},children:(0,w.jsx)(s.Z,{children:(0,w.jsx)(i.d,{onClickAway:L,children:(0,w.jsx)(l.Z,{id:"split-button-menu",autoFocusItem:!0,children:(0,w.jsxs)(x.Z,{onClick:G,children:[(0,w.jsx)(d.Z,{children:(0,w.jsx)(c.Z,{})}),(0,w.jsx)(o.Z,{children:"Download Report"})]})})})})})}})]})})]})},D=(0,j.memo)(k)},99021:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(61889),a=n(68870),s=n(34265),i=n(33788),l=n(52093),o=n(72791),d=n(77956),c=n(80184);const u=e=>{let{rows:t=[],columns:n=[],options:u={},tableBackgroundColor:m="inherit"}=e;const{pageSize:h=25}=u,[p,f]=(0,o.useState)(h);return(0,c.jsx)(r.ZP,{item:!0,xs:12,sm:12,md:12,lg:12,xl:12,sx:{mt:3,mb:{xs:10,md:2}},children:(0,c.jsx)(a.Z,{sx:{height:"500px",width:"100%",background:m},children:(0,c.jsx)(l._$,{rows:(null===t||void 0===t?void 0:t.length)>0?t.map((e=>({...e,rowId:(new Date).getTime()*Math.random()}))):[],columns:n,pageSize:p,slots:{noRowsOverlay:d.Z,toolbar:function(){return(0,c.jsx)(s.D,{sx:{justifyContent:"right"},children:(0,c.jsx)(i.T,{})})}},onPageSizeChange:e=>f(e),pageSizeOptions:[10,25,50,100],getRowId:e=>e.rowId,disableSelectionOnClick:!0,disableColumnSelector:!0,disableDensitySelector:!0,disableRowSelectionOnClick:!0,slotProps:{toolbar:{showQuickFilter:!0,quickFilterProps:{debounceMs:500}}}})})})},m=(0,o.memo)(u)},51348:(e,t,n)=>{n.r(t),n.d(t,{default:()=>y});var r=n(61889),a=n(81918),s=n(68870),i=n(72791),l=n(16386),o=n(35552),d=n(26211),c=n(20883),u=n(94930),m=n(65454),h=n(99021),p=n(80184);const f=e=>{let{children:t}=e;return(0,p.jsx)(s.Z,{sx:{my:1,width:"100%"},children:t})},y=e=>{let{pageRef:t}=e;c.k.info("[SecurityDepositReportPage] mounting...");const[n,s]=(0,i.useState)(null),[y,x]=(0,i.useState)([]),{enqueueSnackbar:g}=(0,o.Ds)(),v=(0,i.useCallback)((e=>s(e)),[]),b=(0,i.useCallback)((e=>{const n=new AbortController,r={from:(0,l.Z)(e.from,"dd-MM-yyyy"),to:(0,l.Z)(e.to,"dd-MM-yyyy")};return(0,u.DC)(r,{signal:n.signal,pageRef:t}).then((e=>{let{response:t,error:n}=e;if("canceled"!==(null===n||void 0===n?void 0:n.message))return n?(x([]),g(null===n||void 0===n?void 0:n.message,{variant:"error"})):void x(Array.isArray(t)?t:[])})),n}),[g,t]);(0,i.useEffect)((()=>
1{if(!n)return;const e=b(n);return()=>e.abort()}),[n,b]);const j=(0,i.useMemo)((()=>[{field:"name",headerName:"Name",minWidth:150},{field:"mobile",headerName:"Mobile Number",minWidth:150},{field:"block",headerName:"Block",minWidth:100},{field:"bedInfo",headerName:"Bed",minWidth:140},{field:"paymentDate",headerName:"Payment Date",minWidth:160},{field:"paymentMode",headerName:"Payment Mode",minWidth:150},{field:"amountToBePaid",headerName:"Amount To Be Paid",minWidth:180},{field:"amountPaid",headerName:"Amount Paid",minWidth:140},{field:"amountDue",headerName:"Amount Due",minWidth:140},{field:"discount",headerName:"Discount",minWidth:120},{field:"tax",headerName:"Tax",minWidth:100},{field:"status",headerName:"Status",minWidth:130,renderCell:e=>{let{value:t}=e;return(0,p.jsx)(f,{children:(0,p.jsx)(a.Z,{color:"PAID"===t?"success":"error",label:(t||"Unknown").toLowerCase(),size:"small",sx:{textTransform:"capitalize"}})})}},{field:"createdBy",headerName:"Created By",minWidth:140}]),[]),I=(0,i.useCallback)((()=>{if(!n)return;const e={from:(0,l.Z)(n.from,"dd-MM-yyyy"),to:(0,l.Z)(n.to,"dd-MM-yyyy")};(0,u.G$)(e,{pageRef:t}).then((e=>{let{response:t,error:n}=e;if("canceled"!==(null===n||void 0===n?void 0:n.message))return n?g(null===n||void 0===n?void 0:n.message,{variant:"error"}):void(0,d.AG)(t,`Security_Deposit_Report_${(new Date).toISOString().replace(/:/,".")}.csv`)}))}),[n,g,t]);return(0,p.jsxs)(r.ZP,{container:!0,p:1,children:[(0,p.jsx)(m.Z,{loadData:v,downloadFile:I}),(0,p.jsx)(h.Z,{rows:y,columns:j})]})}},94930:(e,t,n)=>{n.d(t,{BI:()=>o,BV:()=>m,Cn:()=>d,DC:()=>i,G$:()=>l,G8:()=>v,J3:()=>c,MV:()=>x,Mj:()=>f,Nw:()=>Z,Pb:()=>b,QC:()=>p,QM:()=>j,St:()=>y,ZO:()=>I,Zg:()=>R,aF:()=>h,aR:()=>s,ag:()=>g,hh:()=>M,jS:()=>a,mz:()=>u,w5:()=>C});var r=n(6895);async function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.GET({url:":businessId:/reports/payment",params:e},t)}async function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.FILE({url:":businessId:/reports/payment",params:e},t)}async function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.GET({url:":businessId:/reports/advance",params:e},t)}async function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.FILE({url:":businessId:/reports/advance",params:e},t)}async function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.GET({url:":businessId:/reports/checkout",params:e},t)}async function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.FILE({url:":businessId:/reports/checkout",params:e},t)}async function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.GET({url:":businessId:/reports/expense",params:e},t)}async function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.FILE({url:":businessId:/reports/expense",params:e},t)}async function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.GET({url:":businessId:/reports/sms",params:e},t)}async function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.FILE({url:":businessId:/reports/sms",params:e},t)}async function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.GET({url:":businessId:/reports/food",params:e},t)}async function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.FILE({url:":businessId:/reports/food",params:e},t)}async function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.GET({url:":businessId:/reports/booking",params:e},t)}async function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.FILE({url:":businessId:/reports/booking",params:e},t)}async function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.GET({url:":businessId:/reports/payout",params:e},t)}async function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.FILE({url:":businessId:/reports/payout",params:e},t)}async function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.GET({url:":businessId:/tax/dashboard",params:e},t)}async function j(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.FILE({url:":businessId:/tax/invoices",params:e,configs:{headers:{accept:"*/*"}}},t)}async function I(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.GET({url:":businessId:/reports/inmate",params:e},t)}async function Z(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.GET({url:":businessId:/reports/availability",params:e},t)}async function R(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.R.FILE({url:`:businessId:/reports/${e}`,configs:{headers:{accept:"*/*"}},params:t},n)}async function C(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.GET({url:":businessId:/reports/partialPayment",params:e},t)}async function M(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.R.FILE({url:":businessId:/reports/partialPayment",params:e},t)}}}]);
2//# sourceMappingURL=1348.bb786266.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.