PageSourceSearch

https://www.renti.co/_next/static/chunks/pages/agency/tenant-update-c761d5f4e154d659.js

js renti.co collected 2026-09-24 11:59:34 UTC 9,589 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9688],{40297:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/agency/tenant-update",function(){return t(99036)}])},56005:function(e,n,t){"use strict";var r=t(85893),i=t(67294),a=t(45697),s=t(90812),o=t(6078);function c(e){var n=e.data,t=e.renderSeparator,a=e.renderItem,c=e.itemKey,d=void 0===c?"_id":c,l=e.itemToKey,u=e.sort,x=e.renderGroup,m=n;return u&&((0,s.Z)(n)?m=m.sort(u):(0,o.Z)(n)),x?Object.keys(m).map((function(e,n){var s=m[e];return x({group:e,index:n,children:s.map((function(e,n){return(0,r.jsxs)(i.Fragment,{children:[t&&n>0&&t(),a({item:e,index:n})]},l?l(e):e[d]||e)}))})})):m.map((function(e,n){return(0,r.jsxs)(i.Fragment,{children:[t&&n>0&&t(),a({item:e,index:n})]},l?l(e):e[d]||e)}))}c.propTypes={renderSeparator:a.func,renderItem:a.func.isRequired,data:(0,a.arrayOf)(a.object).isRequired,itemKey:a.string,itemToKey:a.func};n.Z=c},38922:function(e,n,t){"use strict";t.d(n,{Z:function(){return j}});var r=t(14251),i=t(52875),a=t(44747),s=t(9941),o=t(85893),c=t(45697),d=t(67294),l=t(38504),u=t(56005),x=t(52077),m=t(41041),p=t(74852),h=t(21911),f=t(52069);function g(e){var n=e.onPrev,t=e.onNext,s=e.enablePrev,c=e.enableNext,d=e.showPageCount,u=e.currentPage,g=e.totalPages,Z=(0,a.Z)(e,["onPrev","onNext","enablePrev","enableNext","showPageCount","currentPage","totalPages"]);return 2===(0,f.Z)().version?(0,o.jsxs)(l.Z,(0,i.Z)((0,r.Z)({},Z),{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,o.jsx)(m.Z,{buttonStyle:"primary",iconLeft:"chevron_left",onClick:n,disabled:!s,width:"140px",children:"Back"}),d&&(0,o.jsx)(l.Z,{children:(0,o.jsxs)(h.Z,{type:"body",align:"center",children:[u," / ",g]})}),(0,o.jsx)(m.Z,{buttonStyle:"primary",iconRight:"chevron_right",onClick:t,disabled:!c,width:"140px",children:"Next"})]})):(0,o.jsxs)(l.Z,(0,i.Z)((0,r.Z)({},Z),{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,o.jsx)(x.Z,{iconLeft:"chevron_left",onClick:n,disabled:!s,children:"Back"}),d&&(0,o.jsx)(l.Z,{children:(0,o.jsxs)(p.Z,{align:"center",children:[u," / ",g]})}),(0,o.jsx)(x.Z,{iconRight:"chevron_right",onClick:t,disabled:!c,children:"Next"})]}))}g.propTypes={onPrev:c.func,onNext:c.func,enablePrev:c.bool,enableNext:c.bool,showPageCount:c.bool,currentPage:c.number,totalPages:c.number};var Z=d.memo(g);function y(e){var n=e.data,t=e.count,c=e.renderSeparator,x=e.renderItem,m=e.itemKey,p=void 0===m?"_id":m,h=e.itemToKey,f=e.initialSkip,g=void 0===f?0:f,y=e.itemsPerPage,j=void 0===y?20:y,b=e.onPageChange,v=e.hideDisabledPagination,P=e.showPageCount,w=e.state,_=e.renderHeader,k=e.paginationProps,C=void 0===k?{}:k,N=e.renderFooter,R=(0,a.Z)(e,["data","count","renderSeparator","renderItem","itemKey","itemToKey","initialSkip","itemsPerPage","onPageChange","hideDisabledPagination","showPageCount","state","renderHeader","paginationProps","renderFooter"]),S=(0,d.useState)(g),T=(0,s.Z)(w||S,2),I=T[0],K=T[1];(0,d.useEffect)((function(){b&&b(I)}),[I]);var q=(0,d.useCallback)((function(){return K((function(e){return e+j}))}),[K]),O=(0,d.useCallback)((function(){return K((function(e){return e-j>0?e-j:0}))}),[K]),E=(0,d.useCallback)((function(e){return x((0,i.Z)((0,r.Z)({},e),{skip:I}))}),[x]);return(0,o.jsxs)(l.Z,(0,i.Z)((0,r.Z)({},R),{children:[_&&_(),(0,o.jsx)(u.Z,{data:n,renderItem:E,renderSeparator:c,itemKey:p,itemToKey:h}),N&&N(),(!v||I+j<t||I>0)&&(0,o.jsx)(Z,(0,r.Z)({py:"20px",onNext:q,onPrev:O,enableNext:I+j<t,enablePrev:I>0,showPageCount:P,currentPage:Math.ceil(I/j)+1,totalPages:t>0?Math.ceil(t/j):1},C))]}))}y.propTypes={count:c.number,renderSeparator:c.func,renderItem:c.func.isRequired,data:(0,c.arrayOf)(c.object).isRequired,itemKey:c.string,itemToKey:c.func,itemsPerPage:c.number,initialSkip:c.number,onPageChange:c.func,hideDisabledPagination:c.bool,showPageCount:c.bool,state:c.array,renderHeader:c.func,renderFooter:c.func};var j=y},99036:function(e,n,t){"use strict";t.r(n);var r=t(34727),i=t(69779),a=t(97582),s=t(85893),o=t(67294),c=t(22920),d=t(24844),l=t(98771),u=t(97892),x=t(2369),m=t(38504),p=t(74852),h=t(38922),f=t(59870),g=(t(30594),t(27001),t(21702)),Z=t(83250),y=t(40944),j=t(75666),b=t(2747),v=t(4433);t(13520);function P(){var e,n=(0,d.WX)((function(e){return e.modals.showModal})),t=(0,o.useState)(!1),u=t[0],P=t[1],w=(0,f.Z)(),_=(0,d.Kw)((function(e){return e.me.data})),k=(0,o.useState)({data:[],count:0}),C=k[0],N=k[1],R=(0,o.useState)(!0),S=R[0],T=R[1],I=(0,o.useState)(0),K=I[0],q=I[1],O=function(){var e=(0,r.Z)((function(){var e,n;return(0,a.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,w.getTenantUpdates({query:{skip:K,limit:20}})];case 1:return e=t.sent(),N(0===K?e:function(n){return{data:(0,i.Z)(n.data).c
1oncat((0,i.Z)(e.data)),count:e.count}}),T(!1),[3,3];case 2:return n=t.sent(),c.Am.error(n.message),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,o.useEffect)((function(){O()}),[K]);var E=function(e){return function(){n({name:"TENANT_UPDATE",props:{item:e}})}};return(0,s.jsx)(l.Z,{gabiLayout:!0,maxWidth:"100%",children:(0,s.jsx)(x.Z,{mt:"20px",px:"50px",maxWidth:"100%",children:(0,s.jsxs)(m.Z,{children:[(0,s.jsxs)(m.Z,{children:[(0,s.jsxs)(m.Z,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,s.jsx)(m.Z,{flexBasis:"40%",pr:"20px",children:(0,s.jsx)(p.Z,{tag:"h1",size:"xxxxl",my:"0px",children:"Tenant Updates"})}),!S&&(0,s.jsx)(m.Z,{flexBasis:"60%",children:(0,s.jsxs)(g.Z,{ml:"auto",p:"20px",shadow:"none",border:"none",maxWidth:"470px",children:[(0,s.jsxs)(m.Z,{display:"flex",children:[(0,s.jsx)(p.Z,{weight:"bold",size:"xl",mr:"5px",children:"Agency NPS Score"}),(0,s.jsxs)(m.Z,{position:"relative",children:[(0,s.jsx)(y.Z,{style:{cursor:"pointer"},onMouseOver:function(){return P(!0)},onMouseOut:function(){return P(!1)},name:"info",type:"outlined",color:"mediumOrange"}),(0,s.jsx)(m.Z,{display:u?"block":"none",position:"absolute",top:"0px",left:"35px",zIndex:10,background:"#FFF",p:"10px",shadow:"medium",borderRadius:"8px",width:"350px",children:(0,s.jsxs)(p.Z,{size:"sm",color:"lightGrey",children:["NPS stands for Net Promoter Score. It's a customer satisfaction benchmark that measures how likely your customers are to recommend your business to a friend. NPS ranges from -100 to 100.",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"The industry average for property management is ",(0,s.jsx)("b",{children:"-6"})]})})]})]}),(0,s.jsxs)(p.Z,{mt:"10px",align:"center",mb:"15px",children:['"How likely are you to recommend ',null===_||void 0===_||null===(e=_.agency)||void 0===e?void 0:e.displayName,' to rent with to a friend, family member or colleague?"']}),(0,s.jsx)(p.Z,{align:"center",weight:"bold",size:"xxxl",children:C.nps}),(0,s.jsx)(j.Z,{type:"nps",noMargin:!0,value:C.averageRating})]})})]}),(0,s.jsx)(p.Z,{tag:"h2",size:"xl",my:"10px",children:"Responses"}),(0,s.jsx)(p.Z,{children:"Responses from automatically sent communications to tenants"}),(0,s.jsx)(v.Z,{mt:"20px"})]}),(0,s.jsxs)(m.Z,{mt:"20px",children:[S&&(0,s.jsx)(m.Z,{mt:"30px",children:(0,s.jsx)(b.Z,{})}),(0,s.jsx)(h.Z,{data:C.data,count:C.count,state:[K,q],itemsPerPage:20,showPageCount:!0,hideDisabledPagination:!0,renderItem:function(e){var n=e.item;return(0,s.jsx)(m.Z,{mt:"20px",children:(0,s.jsxs)(g.Z,{p:"20px",shadow:"none",border:"none",display:"flex",alignItems:"center",cursor:"pointer",onClick:E(n),children:[(0,s.jsxs)(m.Z,{flexGrow:1,children:[(0,s.jsxs)(p.Z,{tag:"h3",size:"xl",children:[n.address.line1," ",n.address.line2]}),(0,s.jsxs)(p.Z,{size:"sm",mt:"10px",children:[n.address.line3,n.address.line4&&","," ",n.address.line4]}),(0,s.jsxs)(p.Z,{mt:"20px",display:"flex",alignItems:"center",children:[(0,s.jsx)(y.Z,{name:"group",color:"lightOrange",type:"outlined",mr:"10px"})," ",(0,Z.Z)(n.tenants.map((function(e){return"".concat(e.firstName," ").concat(e.lastName)})))]})]}),(0,s.jsxs)(m.Z,{display:"flex",justifyContent:"center",flexDirection:"column",children:[(0,s.jsxs)(m.Z,{display:"flex",alignItems:"center",children:[n.averageRating<=6&&(0,s.jsx)(y.Z,{mr:"5px",name:"sentiment_very_dissatisfied",color:"mediumRed"}),n.averageRating>6&&n.averageRating<9&&(0,s.jsx)(y.Z,{mr:"5px",name:"sentiment_satisfied_alt",color:"mediumOrange"}),n.averageRating>=9&&(0,s.jsx)(y.Z,{mr:"5px",name:"sentiment_satisfied",color:"mediumGreen"}),(0,s.jsx)(p.Z,{color:"lightGrey",children:"NPS Feedback"})]}),(0,s.jsxs)(m.Z,{display:"flex",alignItems:"center",mt:"10px",mb:"10px",children:[(0,s.jsx)(y.Z,{mr:"5px",name:n.variationRequired?"error":"check_circle",type:"outlined",color:n.variationRequired?"mediumRed":"mediumGreen"}),(0,s.jsx)(p.Z,{color:"lightGrey",children:n.variationRequired?"Tenant Variation Reported":"No Tenant Variation Reported"})]}),(0,s.jsxs)(m.Z,{display:"flex",alignItems:"center",children:[(0,s.jsx)(y.Z,{mr:"5px",name:n.contactUpdatesRequired?"error":"check_circle",type:"outlined",color:n.contactUpdatesRequired?"mediumRed":"mediumGreen"}),(0,s.jsx)(p.Z,{color:"lightGrey",children:n.contactUpdatesRequired?"Contact Detail Updates":"No Contact Detail Updates"})]})]}),(0,s.jsx)(m.Z,{ml:"15px",children:(0,s.jsx)(y.Z,{name:"chevron_right"})})]})})}})]})]})})})}P.getInitialProps=function(){var e=(0,r.Z)((function(e){return(0,a.__generator)(this,(function(n){switch(n.label){case 0:return[4,(0,u.ZP)(e,{requiresAuth:!0})];case 1:return n.sent(),[2]}}))}));return function(n){return e.apply(this,arguments)}}(),n.default=P}},function(e){e.O(0,[8153,1517,4032,8124,9774,2888,179],(function(){return n=40297,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.