PageSourceSearch

https://landlord-home.ephome.org/_next/static/chunks/pages/landlord/my-previous-tenants-8dbcedb42cc7dfad.js

js ephome.org collected 2026-10-09 03:23:32 UTC 6,900 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2325],{5391:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/landlord/my-previous-tenants",function(){return t(70216)}])},64851:function(e,n,t){"use strict";t.d(n,{rt:function(){return u},a7:function(){return x},E0:function(){return m},o5:function(){return h}});var r=t(43686),i=t(20743);let a=async(e,n,t,r,a,l)=>{let{data:s}=await i.o.get("LandLord/Clients/GetAllClients",{params:{pageSize:e,pageNumber:n,sortOrder:t,allRecords:r,searchTerm:a,sortBy:l}});return s},l=async(e,n,t,r,a,l)=>{let{data:s}=await i.o.get("LandLord/Clients/GetAllPreviousClients",{params:{pageSize:e,pageNumber:n,sortOrder:t,allRecords:r,searchTerm:a,sortBy:l}});return s},s=async(e,n)=>{let{data:t}=await e.get("LandLord/Clients/GetOne",{params:{tenantId:n}});return t.data},o=async(e,n)=>{let{data:t}=await e.get("LandLord/Clients/GetOnePrevious",{params:{tenantId:n}});return t.data},d=async e=>s(i.o,e),c=async e=>o(i.o,e),u=e=>{let{pageSize:n,pageNumber:t,sortOrder:i,allRecords:l,searchTerm:s,sortBy:o}=e;return(0,r.a)(["clients",n,t,i,l,s,o],()=>a(n,t,i,l,s,o))},x=e=>{let{pageSize:n,pageNumber:t,sortOrder:i,allRecords:a,searchTerm:s,sortBy:o}=e;return(0,r.a)(["previousClients",n,t,i,a,s,o],()=>l(n,t,i,a,s,o))},m=e=>(0,r.a)(["client",e],()=>d(e)),h=e=>(0,r.a)(["previousClient",e],()=>c(e))},86376:function(e,n,t){"use strict";var r=t(15311),i=t(38239);t(20132);var a=t(17723),l=t(37637),s=t(72155);n.Z=function(e){let{control:n,filterName:t,defaultValue:o}=e,{data:d}=(0,i.Lv)();return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a.Qr,{name:t,control:n,defaultValue:o,render:e=>{var n;let{field:{...t}}=e;return(0,r.jsxs)(s.RG,{customlabel:"LANDLORD:SELECT_PROPERTY_NAME",...t,children:[(0,r.jsx)(l.Z,{value:" ",children:"Select Landlord Account"}),null==d?void 0:null===(n=d.data)||void 0===n?void 0:n.map(e=>(0,r.jsxs)(l.Z,{value:e.propertyCode,children:[e.propertyName," - ",e.propertyCode]},e.propertyId))]})}})})}},7762:function(e,n,t){"use strict";var r=t(3247),i=t(15311),a=t(73536),l=t(23262),s=t(81217),o=t(84819);function d(){let e=(0,r._)(["\n  background: ",";\n  //min-height: 690px;\n  width: 100%;\n  //max-width: ",";\n  border-radius: 20px;\n  margin: 30px 10px;\n  padding: 25px;\n  display: flex;\n  flex-direction: column;\n\n  "," {\n    padding: 24px;\n  }\n\n  "," {\n    border-radius: 0px;\n    margin: 0px auto;\n  }\n"]);return d=function(){return e},e}function c(){let e=(0,r._)(["\n  display: flex;\n"]);return c=function(){return e},e}function u(){let e=(0,r._)(["\n  flex: 1;\n  margin-top: 40px;\n  margin-bottom: 80px;\n"]);return u=function(){return e},e}let x=(0,o.ZP)("div")(d(),e=>{let{theme:n}=e;return n.color.white},e=>{let{theme:n}=e;return n.dimensions.content_width_narrow},e=>{let{theme:n}=e;return n.breakpoints.down("md")},e=>{let{theme:n}=e;return n.breakpoints.down("mobile")}),m=(0,o.ZP)(s.Z)(c()),h=(0,o.ZP)("div")(u());n.Z=e=>{let{children:n,navigation:t}=e,{isMobile:r}=(0,a.Z)(),o=(0,i.jsxs)(m,{children:[(0,i.jsx)(s.Z,{display:{xs:"none",mobile:"block"},minWidth:"300px",children:t&&(0,i.jsx)(h,{children:t})}),(0,i.jsx)(x,{style:{height:"auto"},children:n})]});return(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(l.d,{children:o}):(0,i.jsx)(l.Z4,{children:o})})}},70216:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return b},default:function(){return I}});var r=t(15311),i=t(33659),a=t(64289),l=t(62025),s=t(23262),o=t(64851),d=t(70238),c=t(67914),u=t(88207),x=t(88928),m=t(36809),h=t(13028),p=t(57017),f=t(54001),j=t(64344),g=t(28500),v=t(5762);t(20132);var N=t(17723),_=t(47735),Z=t(7762),y=t(33483),P=t(38382),w=t(67130),L=t(86376),E=()=>{var e;let n=(0,v.useRouter)(),{control:t,watch:i,setValue:a,getValues:l}=(0,N.cI)({defaultValues:{sortOrder:"DESC",search:" ",sortBy:"tenantName"},resolver:(0,p.F)(d.r8)}
1),{data:s,isLoading:E,isError:C,isSuccess:O,currentPage:S,pageSize:b,setPageSize:I,allRecords:R,setAllRecordsTrue:A,setCurrentPage:D,numberOfItemsOnPage:T}=(0,h.y)({useQuery:o.a7,search:null===(e=i("search"))||void 0===e?void 0:e.trim(),sortOrder:i("sortOrder"),sortBy:i("sortBy")}),k=((null==s?void 0:s.data)||[]).map(e=>({id:e.tenantID,tenantName:e.tenantName,unitName:e.unitNoName,status:e.isActive?"Active":"Inactive",actions:null}));return(0,r.jsxs)(Z.Z,{navigation:(0,r.jsx)(u.X,{}),children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(P.Z,{onClick:()=>{n.push("/landlord")}}),(0,r.jsx)("div",{style:{display:"flex",justifyContent:"center",fontSize:"24px",color:"#26284e",fontWeight:700,alignItems:"center"},children:(0,r.jsx)("p",{children:(0,r.jsx)(g.Z,{i18nKey:"LANDLORD:MY_PREVIOUS_TENANTS"})})}),(0,r.jsx)("div",{style:{margin:"1rem 0px 1rem 0px"},children:(0,r.jsx)(y.Z,{})})]}),(0,r.jsx)(f.ZP,{item:!0,children:(0,r.jsx)(f.ZP,{container:!0,alignItems:"center",flexDirection:{xs:"column",md:"row"},spacing:2,marginBottom:4,children:(0,r.jsx)(f.ZP,{item:!0,xs:12,md:6,children:(0,r.jsx)(L.Z,{control:t,endpoint:"units",filterName:"search",watch:i,defaultValue:" "})})})}),C&&(0,r.jsx)("div",{children:(0,r.jsx)(g.Z,{i18nKey:"LANDLORD:CLIENTS_NOT_FOUND"})}),E&&(0,r.jsx)(f.ZP,{item:!0,flexGrow:1,children:(0,r.jsx)(f.ZP,{container:!0,justifyContent:"center",alignItems:"center",height:"100%",children:(0,r.jsx)(j.Z,{})})}),O&&(0,r.jsx)(f.ZP,{item:!0,flexGrow:1,marginBottom:"20px",children:(0,r.jsx)(w.Z,{columns:[{id:"actions",label:"Actions",minWidth:150,align:"center",render:e=>{let{id:t}=e;return(0,r.jsx)(f.ZP,{container:!0,justifyContent:"center",children:(0,r.jsx)(_.Qh,{onClick:()=>n.push({pathname:m.default.LANDLORD_VIEW_MY_PREVIOUS_TENANTS.ROUTE,query:{id:t}}),children:(0,r.jsx)(c.ON,{})})})}},{id:"tenantName",label:"Tenant Name",minWidth:135,align:"left",render:e=>{let{value:n}=e;return n}},{id:"unitName",label:"Unit Name",minWidth:135,align:"left",render:e=>{let{value:n}=e;return n}},{id:"status",label:"Status",minWidth:145,align:"left",render:e=>{let{value:n}=e;return(0,r.jsxs)(f.ZP,{alignItems:"center",container:!0,spacing:1,gap:1,children:[(0,r.jsx)(_.ex,{color:"Inactive"==n?"#c92a2a":"#087f5b"}),(0,r.jsx)("span",{children:n})]})}}],rows:k,control:t,watch:i,setValue:a,getValues:l})}),(0,r.jsx)(f.ZP,{item:!0,justifySelf:"flex-end",height:"70px",children:(0,r.jsx)(x.Z,{allRecords:R,currentPage:S,isLoading:E,isSuccess:O,numberOfItemsOnPage:T,pageSize:b,setAllRecordsTrue:A,setCurrentPage:D,setPageSize:I,totalPages:null==s?void 0:s.totalPages,totalRows:null==s?void 0:s.totalRows})})]})},C=t(5724),O=t(33326),S=t.n(O),b=!0,I=()=>{let{isLoading:e,isError:n}=(0,i.v$)();(0,l.u)();let{t}=(0,C.Z)();return e?(0,r.jsx)(a.Z,{}):n?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(S(),{children:(0,r.jsx)("title",{children:t("LANDLORD:MY_PREVIOUS_CLIENTS_HEADER")})}),(0,r.jsx)(s.Nm,{children:(0,r.jsx)(E,{})})]})}}},function(e){e.O(0,[6637,8753,9912,7017,8830,4598,608,2042,2888,9774,179],function(){return e(e.s=5391)}),_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.