PageSourceSearch

https://landlord-home.ephome.org/_next/static/chunks/pages/landlord/manage-w9-form-0d0180c1f13196bf.js

js ephome.org collected 2026-10-09 03:23:20 UTC 10,082 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7785],{59331:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/landlord/manage-w9-form",function(){return t(89530)}])},6012:function(e,n,t){"use strict";t.d(n,{BR:function(){return d},ET:function(){return p},Ji:function(){return u},Wh:function(){return m},Wu:function(){return h},j$:function(){return c},nl:function(){return f},uM:function(){return x},yp:function(){return o}});var r=t(20743),i=t(85843),a=t.n(i);function s(e){Object.keys(e).forEach(n=>{null===e[n]&&delete e[n]}),e.w9name||(e.w9name="#".concat(e.id)),e.tin=e.ein?"ein":"w9SSN"}let o=async(e,n,t,i,a,o)=>{let{data:l}=await r.o.get("/LandLord/W9/get-all",{params:{searchTerm:o,pageSize:e,sortBy:t,pageNumber:n,sortOrder:i,allRecords:a}});return(null==l?void 0:l.data)&&l.data.forEach(e=>{s(e)}),l},l=async(e,n)=>{let{data:t}=await e.get("LandLord/W9/get-one?w9Id=".concat(n));return(null==t?void 0:t.data)&&s(t.data),(null==t?void 0:t.data)||null},d=async e=>{let{id:n}=e;return l(r.o,n)},u=async()=>{let{data:e}=await r.o.get("LandLord/W9/get-w9-basic-details");return(null==e?void 0:e.data)&&(s(e.data),e.data.id=-1,e.data.isAssignedToUnitAndLocked=!1,e.data.taxClassification=Number(e.data.taxClassification)||1,delete e.data.w9name),(null==e?void 0:e.data)||null},c=async e=>{let{data:n}=await r.o.post("LandLord/W9/add-edit-w9-form",{...e,id:e.id>0?e.id:void 0,businessTypeId:0,ein:String(e.ein),taxId:String(e.taxId),taxClassification:String(e.taxClassification),taxFilersName:e.name,w9SignatureDate:a()(e.w9SignatureDate).toISOString()}),t=n.id||e.id;return{...n,_id:t}},x=async(e,n)=>{let{data:t}=await r.o.get("Common/PdfGeneration/fill-w9formpdf/",{params:{rftaId:e,w9formDetailsid:n},responseType:"blob"});return t},m=async e=>{let{data:n}=await r.o.post("LandLord/W9/save-w9-with-mapping",{...e,id:e.id>0?e.id:void 0,businessTypeId:0,ein:String(e.ein),taxId:String(e.taxId),taxClassification:String(e.taxClassification),taxFilersName:e.name,w9SignatureDate:a()(e.w9SignatureDate).toISOString()}),t=n.id||e.id;return{...n,_id:t}},f=async e=>{let{data:n}=await r.o.post("LandLord/W9/AddW9ByPropertyId",{...e,id:e.id>0?e.id:void 0,businessTypeId:0,ein:String(e.ein),taxId:String(e.taxId),taxClassification:String(e.taxClassification),w9SignatureDate:a()(e.w9SignatureDate).toISOString()}),t=n.id||e.id;return{...n,_id:t}},p=async(e,n,t,i,a,s)=>{let{data:o}=await r.o.get("LandLord/w9/get-all-w9-new",{params:{pageSize:e,pageNumber:n,sortOrder:t,allRecords:i,pSearchKeyWord:a,sortBy:s}});return o},h=async e=>{let{data:n}=await r.o.get("LandLord/w9/get-w9-by-id?id=".concat(e));return n}},64227:function(e,n,t){"use strict";t.d(n,{$V:function(){return f},Am:function(){return m},Dx:function(){return c},E2:function(){return u},G_:function(){return h},Np:function(){return p},R5:function(){return x},nG:function(){return d}});var r=t(43686),i=t(92114),a=t(73921),s=t(6012);let o="w9forms",l="w9form",d=e=>{let{pageSize:n,pageNumber:t,sortOrder:i,allRecords:a,searchTerm:l,onError:d,sortBy:u,onSuccess:c}=e;return(0,r.a)([o,n,t,i,a,u,l],()=>(0,s.yp)(n,t,u||"w9name",i,a,l),{onSuccess(e){c(e)},onError:()=>{d()}})},u=e=>(0,r.a)([l,e.id],()=>(0,s.BR)(e),{enabled:!!e.id}),c=()=>(0,r.a)(["w9form-BasicDetails"],()=>(0,s.Ji)()),x=(e,n)=>{let t=(0,i.NL)();return(0,a.D)({mutationFn:async e=>{let{w9FormData:n}=e;return await (0,s.j$)(n)},onSuccess:async n=>{let{_id:r}=n;await t.invalidateQueries([o]),await t.invalidateQueries([l,r]),e({w9FormId:r})},onError:async()=>{n()}})},m=(e,n)=>{let t=(0,i.NL)();return(0,a.D)({mutationFn:async e=>{let{w9FormData:n}=e;return await (0,s.Wh)(n)},onSuccess:async n=>{let{_id:r}=n;await t.invalidateQueries([o]),await t.invalidateQueries([l,r]),e({w9FormId:r})},onError:async()=>{n()}})},f=(e,n)=>{let t=(0,i.NL)();return(0,a.D)({mutationFn:async e=>{let{w9FormData:n}=e;return await (0,s.nl)(n)},onSuccess:async n=>{let{_id:r}=n;await t.invalidateQueries([o]),await t.invalidateQueries([l,r]),e({w9FormId:r})},onError:async e=>{n(e)}})},p=e=>{let{pageSize:n,pageNumber:t,sortOrder:i,allRecords:a,searchTerm:o,sortBy:l}=e;return(0,r.a)(["w9all",n,t,i,a,o,l],()=>(0,s.ET)(n,t,i,a,o,l))}
1,h=e=>(0,r.a)(["getonew9",e],()=>(0,s.Wu)(e),{enabled:void 0!==e,onError:e=>console.log(e)})},85874:function(e,n,t){"use strict";var r=t(3247),i=t(15311),a=t(73536),s=t(23262),o=t(81217),l=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 u(){let e=(0,r._)(["\n  display: flex;\n"]);return u=function(){return e},e}function c(){let e=(0,r._)(["\n  flex: 1;\n  margin-top: 40px;\n  margin-bottom: 80px;\n"]);return c=function(){return e},e}let x=(0,l.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,l.ZP)(o.Z)(u()),f=(0,l.ZP)("div")(c());n.Z=e=>{let{children:n,navigation:t}=e,{isMobile:r}=(0,a.Z)(),l=(0,i.jsxs)(m,{style:{width:"100%"},children:[(0,i.jsx)(o.Z,{display:{xs:"none",mobile:"block"},minWidth:"300px",width:{xs:"20%",mobil:"100%"},children:t&&(0,i.jsx)(f,{children:t})}),(0,i.jsx)(x,{style:{height:"auto",width:"80%"},children:n})]});return(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(s.d,{children:l}):(0,i.jsx)(s.Z4,{children:l})})}},89530:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return k},default:function(){return B}});var r=t(15311),i=t(33659),a=t(64289),s=t(62025),o=t(23262),l=t(3247),d=t(70238),u=t(67914),c=t(88207),x=t(88928),m=t(36809),f=t(13028),p=t(57017),h=t(84819),w=t(80185),g=t(54001),y=t(64344),j=t(28500),S=t(5762);t(20132);var v=t(17723),N=t(47735),L=t(38382),_=t(33483),D=t(67130),b=t(85874),Z=t(64227),P=t(72155),E=t(38239),O=t(37637),A=function(e){let{control:n,filterName:t,defaultValue:i,filterOptions:a}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(v.Qr,{name:t,control:n,defaultValue:i,render:e=>{var n;let{field:{...t}}=e;return(0,r.jsxs)(P.RG,{customlabel:"LANDLORD:SELECT_PROPERTY_NAME",...t,children:[(0,r.jsx)(O.Z,{value:" ",children:"Select Landlord Account"}),null==a?void 0:null===(n=a.data)||void 0===n?void 0:n.map(e=>(0,r.jsxs)(O.Z,{value:e.propertyCode,children:[e.propertyName," - ",e.propertyCode]},e.propertyId))]})}})})};function I(){let e=(0,l._)(["\n  color: black;\n"]);return I=function(){return e},e}let C=(0,h.ZP)(w.Z)(I());var R=()=>{let e=(0,S.useRouter)(),{data:n}=(0,i.v$)(),{data:t,isLoading:s,isSuccess:o}=(0,E.Lc)(),{control:l,watch:h,setValue:w,getValues:O}=(0,v.cI)({defaultValues:{sortOrder:"ASC",sortBy:"TaxFilersName",search:" "},resolver:(0,p.F)(d.fW)}),{data:I,isLoading:R,isError:W,isSuccess:T,currentPage:F,pageSize:k,setPageSize:B,allRecords:Q,setAllRecordsTrue:G,setCurrentPage:V,numberOfItemsOnPage:M}=(0,f.y)({useQuery:Z.Np,search:h("search"),sortOrder:h("sortOrder"),sortBy:h("sortBy")}),U=((null==I?void 0:I.data)||[]).map(e=>({actions:null,businessName:e.businessName,id:e.llW9id,propertyName:e.propertyName})),$=n=>{e.push({pathname:m.default.LANDLORD_DASHBOARD_W9_ADD.ROUTE,query:{id:n}})};return s?(0,r.jsx)(a.Z,{}):(0,r.jsxs)(b.Z,{navigation:(0,r.jsx)(c.X,{}),children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(L.Z,{onClick:()=>{e.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:" W9 Form"})}),(0,r.jsx)("div",{style:{margin:"1rem 0px 1rem 0px"},children:(0,r.jsx)(_.Z,{})})]}),o?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.ZP,{item:!0,children:(0,r.jsxs)(g.ZP,{container:!0,alignItems:"center",flexDirection:{xs:"column",md:"row"},spacing:2,marginBottom:4,children:[(0,r.jsx)(g.ZP,{item:!0,xs:12,md:6,children:(0,r.jsx)(A,{control:l,endpoint:"units",filterName:"search",watch:h,defaultValue:" ",filterOptions:t})}),(null==n?void 0:n.isImpersonatedUser)!==!0&&(0,r.jsx)(g.ZP,{item:!0,xs:12,md:4,children:(0,r.jsx)(P.MG,{size:"medium",sx:{minWidth:"225px"},onClick:()=>e.push(m.default.LANDLORD_DASHBOARD_W9_ADD.ROUTE),children:(0,r.jsx)(j.Z,{i18nKey:"LANDLORD:CREATE_NEW_W9"})})})]})}),W&&(0,r.jsx)("div",{children:(0,r.jsx)(j.Z,{i18nKey:"LANDLORD:CLIENTS_NOT_FOUND"})}),R&&(0,r.jsx)(g.ZP,{item:!0,flexGrow:1,children:(0,r.jsx)(g.ZP,{container:!0,justifyContent:"center",alignItems:"center",height:"100%",children:(0,r.jsx)(y.Z,{})})}),T&&(0,r.jsxs)(g.ZP,{item:!0,flexGrow:1,marginBottom:"20px",children:[(0,r.jsx)(D.Z,{columns:[{id:"actions",label:"Actions",align:"center",render:e=>{let{id:n}=e;return(0,r.jsx)(g.ZP,{container:!0,justifyContent:"center",children:(0,r.jsx)(N.Qh,{onClick:()=>$(n),children:(0,r.jsx)(u.dY,{})})})}},{id:"propertyName",label:"Property Name",align:"left",render:e=>{let{value:n}=e;return n}}
1,{id:"businessName",label:"Business Name",align:"left",render:e=>{let{value:n}=e;return n}}],rows:U,control:l,watch:h,setValue:w,getValues:O})," "]}),(0,r.jsx)(g.ZP,{item:!0,justifySelf:"flex-end",height:"70px",children:(0,r.jsx)(x.Z,{allRecords:Q,currentPage:F,isLoading:R,isSuccess:T,numberOfItemsOnPage:M,pageSize:k,setAllRecordsTrue:G,setCurrentPage:V,setPageSize:B,totalPages:null==I?void 0:I.totalPages,totalRows:null==I?void 0:I.totalRows})})]}):(0,r.jsxs)(C,{children:["There are no properties associated with this account. Please add the property before you create W-9 details."," "]})]})},W=t(5724),T=t(33326),F=t.n(T),k=!0,B=()=>{let{isLoading:e,isError:n}=(0,i.v$)();(0,s.u)();let{t}=(0,W.Z)(),l=t("LANDLORD:DASHBOARD_MANAGE_W9FORM");return e?(0,r.jsx)(a.Z,{}):n?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(F(),{children:(0,r.jsx)("title",{children:l})}),(0,r.jsx)(o.Nm,{children:(0,r.jsx)(R,{})})]})}}},function(e){e.O(0,[6637,8753,9912,7017,8830,4598,608,2042,2888,9774,179],function(){return e(e.s=59331)}),_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.