1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[94],{"3zeS":function(e,t,n){e.exports={container:"contrato_container__1IQnr",contentContainer:"contrato_contentContainer__3Pd_s",warningContainer:"contrato_warningContainer__1gv-V",alertContainer:"contrato_alertContainer__EWj0f",topAlertsContainer:"contrato_topAlertsContainer__2byE0",topAlertItem:"contrato_topAlertItem__38c05",filterContainer:"contrato_filterContainer__-W4Rl",searchAllInput:"contrato_searchAllInput__2znCM",contratoListContainer:"contrato_contratoListContainer__sEJZx",accordionToggle:"contrato_accordionToggle__3_XjK",accordionCard:"contrato_accordionCard__h-kX1",cardHeader:"contrato_cardHeader__2S4E2",containerIconCardHeader:"contrato_containerIconCardHeader__1zUgt",cardTitle:"contrato_cardTitle__2x_2w",rowInfoContract:"contrato_rowInfoContract__30SWV",infoContract:"contrato_infoContract__2WXfK",titleRow:"contrato_titleRow__Ds-qU",titleRowContent:"contrato_titleRowContent__3viD3",datatableContainer:"contrato_datatableContainer__VwNlH",tabsContainer:"contrato_tabsContainer__lcKV_",buttonsContainer:"contrato_buttonsContainer__3O7Kp",buttonsTitleRow:"contrato_buttonsTitleRow__3MgHj",sectionEnvolvidosContainer:"contrato_sectionEnvolvidosContainer__14Kn6",usersInfoContainer:"contrato_usersInfoContainer__1UHMo",sectionDocumentosContainer:"contrato_sectionDocumentosContainer__30g3J",documentItemContainer:"contrato_documentItemContainer__25aYq",documentItemButtonContainer:"contrato_documentItemButtonContainer__15RPy",documentItemIconContainer:"contrato_documentItemIconContainer__3e33f",vistoriaContainer:"contrato_vistoriaContainer__3TBP4",vistoriaItemsContainer:"contrato_vistoriaItemsContainer__3OX8Z",documentItemContent:"contrato_documentItemContent__Bq0gP",bannerAvisoAntecipacao:"contrato_bannerAvisoAntecipacao__1gAeP",bannerAvisoAntecipacaoContent:"contrato_bannerAvisoAntecipacaoContent__LG_ij",sucessoContainer:"contrato_sucessoContainer__p4gZu",label:"contrato_label__8ygm9",sectionValorAntecipacao:"contrato_sectionValorAntecipacao__26J29",inputContainer:"contrato_inputContainer__e8ByW",divisorAntecipacaoPendente:"contrato_divisorAntecipacaoPendente__2x8_s",secaoAntecipacaoPendente:"contrato_secaoAntecipacaoPendente__2Miz9",gridInfosAntecipacaoPendente:"contrato_gridInfosAntecipacaoPendente__ah1rI",infosAntecipacaoPendente:"contrato_infosAntecipacaoPendente__2Ghwj",boxBlue:"contrato_boxBlue__17ryS",boxYellow:"contrato_boxYellow__bRPhW",boxInfo:"contrato_boxInfo__1cwHO",painelContrato:"contrato_painelContrato__pHkAS"}},"9P9J":function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var r=n("q1tI"),o=n("KFoM"),a=n("HcfF"),i=n("i8i4"),l=n("bO7i"),c=n("rW7i"),s=n("E0qH"),u=n("fNrw"),d=n("V4hi"),p=n("J2fa");var v={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Object(p.b)(o)&&Object(d.a)(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Object(p.b)(r)&&Object(d.a)(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},f=n("mDVL"),b=n("7LKL"),j=n("lDWV"),h=n("CSm3"),m=n("HWy5"),y=[c.a,s.a,u.a,v,f.a,b.a,j.a,h.a,m.a],x=Object(l.a)({defaultModifiers:y}),O=n("Ug0v"),g=n.n(O),_=[],w=function(){},S=function(){return Promise.resolve(null)},C=[];function A(e){var t=e.placement,n=void 0===t?"bottom":t,l=e.strategy,c=void 0===l?"absolute":l,s=e.modifiers,u=void 0===s?C:s,d=e.referenceElement,p=e.onFirstUpdate,v=e.innerRef,f=e.children,b=r.useContext(o.b),j=r.useState(null),h=j[0],m=j[1],y=r.useState(null),O=y[0],A=y[1];r.useEffect((function(){Object(a.c)(v,h)}),[v,h]);var k=r.useMemo((function(){return{placement:n,strategy:c,onFirstUpdate:p,modifiers:[].concat(u,[{name:"arrow",enabled:null!=O,options:{element:O}}])}}),[n,c,p,u,O]),N=function(e,t,n){void 0===n&&(n={});var o=r.useRef(null),l={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||_}
1,c=r.useState({styles:{popper:{position:l.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=c[0],u=c[1],d=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);i.flushSync((function(){u({styles:Object(a.a)(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:Object(a.a)(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),p=r.useMemo((function(){var e={onFirstUpdate:l.onFirstUpdate,placement:l.placement,strategy:l.strategy,modifiers:[].concat(l.modifiers,[d,{name:"applyStyles",enabled:!1}])};return g()(o.current,e)?o.current||e:(o.current=e,e)}),[l.onFirstUpdate,l.placement,l.strategy,l.modifiers,d]),v=r.useRef();return Object(a.e)((function(){v.current&&v.current.setOptions(p)}),[p]),Object(a.e)((function(){if(null!=e&&null!=t){var r=(n.createPopper||x)(e,t,p);return v.current=r,function(){r.destroy(),v.current=null}}}),[e,t,n.createPopper]),{state:v.current?v.current.state:null,styles:s.styles,attributes:s.attributes,update:v.current?v.current.update:null,forceUpdate:v.current?v.current.forceUpdate:null}}(d||b,h,k),E=N.state,F=N.styles,I=N.forceUpdate,T=N.update,D=r.useMemo((function(){return{ref:m,style:F.popper,placement:E?E.placement:n,hasPopperEscaped:E&&E.modifiersData.hide?E.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:E&&E.modifiersData.hide?E.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:F.arrow,ref:A},forceUpdate:I||w,update:T||S}}),[m,A,n,E,F,T,I]);return Object(a.d)(f)(D)}},DitX:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contrato/painel/extrato-mensal",function(){return n("aQup")}])},HcfF:function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return c}));var r=n("q1tI"),o=function(e){return Array.isArray(e)?e[0]:e},a=function(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},i=function(e,t){if("function"===typeof e)return a(e,t);null!=e&&(e.current=t)},l=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},c="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect},KFoM:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var r=n("q1tI"),o=r.createContext(),a=r.createContext();function i(e){var t=e.children,n=r.useState(null),i=n[0],l=n[1],c=r.useRef(!1);r.useEffect((function(){return function(){c.current=!0}}),[]);var s=r.useCallback((function(e){c.current||l(e)}),[]);return r.createElement(o.Provider,{value:i},r.createElement(a.Provider,{value:s},t))}},TSYQ:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},TUci:function(e,t,n){"use strict";var r=n("wx14"),o=n("zLVn"),a=n("eC2I"),i=n.n(a),l=n("q1tI"),c=n.n(l),s=n("y8DL"),u=n("ZCiN"),d=n("vUet"),p=n("7xGa"),v=n("XQC9"),f=n("U1MP"),b=n("YdCC"),j=n("dbZe"),h=["bsPrefix","show","closeLabel","className","children","variant","onClose","dismissible","transition"],m=Object(f.a)("h4");m.displayName="DivStyledAsH4";var y=Object(b.a)("alert-heading",{Component:m}),x=Object(b.a)("alert-link",{Component:j.a}),O={show:!0,transition:p.a,closeLabel:"Close alert"},g=c.a.forwardRef((function(e,t){var n=Object(s.a)(e,{show:"onClose"}),a=n.bsPrefix,l=n.show,f=n.closeLabel,b=n.className,j=n.children,m=n.variant,y=n.onClose,x=n.dismissible,O=n.transition,g=Object(o.a)(n,h),_=Object(d.a)(a,"alert"),w=Object(u.a)((function(e){y&&y(!1,e)})),S=!0===O?p.a:O,C=c.a.createElement("div",Object(r.a)({role:"alert"},S?void 0:g,{ref:t,className:i()(b,_,m&&_+"-"+m,x&&_+"-dismissible")}),x&&c.a.createElement(v.a,{onClick:w,label:f}),j);return S?c.a.createElement(S,Object(r.a)({unmountOnExit:!0},g,{ref:void 0,in:l}),C):l?C:null}));g.displayName="Alert",g.defaultProps=O,g.Link=x,g.Heading=y,t.a=g},Ug0v:function(e,t){var n="undefined"!==typeof Element,r="function"===typeof Map,o="function"===typeof Set,a="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,t){if(e===t)return!0;
1if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var l,c,s,u;if(Array.isArray(e)){if((l=e.length)!=t.length)return!1;for(c=l;0!==c--;)if(!i(e[c],t[c]))return!1;return!0}if(r&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!i(c.value[1],t.get(c.value[0])))return!1;return!0}if(o&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((l=e.length)!=t.length)return!1;for(c=l;0!==c--;)if(e[c]!==t[c])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((l=(s=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(c=l;0!==c--;)if(!Object.prototype.hasOwnProperty.call(t,s[c]))return!1;if(n&&e instanceof Element)return!1;for(c=l;0!==c--;)if(("_owner"!==s[c]&&"__v"!==s[c]&&"__o"!==s[c]||!e.$$typeof)&&!i(e[s[c]],t[s[c]]))return!1;return!0}return e!==e&&t!==t}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},aQup:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return U}));var r=n("cpVT"),o=n("nKUr"),a=(n("z7pX"),n("vJKn")),i=n.n(a),l=n("rg98"),c=n("q1tI"),s=n("g4pe"),u=n.n(s),d=n("/MKj"),p=n("TUci"),v=n("IP2g"),f=n("2U2a"),b=n("s/Ur"),j=n("20a2"),h=(n("+0BD"),n("tTGf")),m=(n("LvDl"),n("wd/R")),y=n.n(m),x=n("Le6n"),O=n("gvZk"),g=n("EcpT"),_=n("sRYs"),w=n.n(_),S=function(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)},C=function(e,t){if((null===e||void 0===e?void 0:e.key)===t.key){if("1"===(null===e||void 0===e?void 0:e.order))return{icon:g.g,color:"#6F8EAA"};if("-1"===(null===e||void 0===e?void 0:e.order))return{icon:g.f,color:"#6F8EAA"}}return{icon:g.e,color:"#BED0E0"}},A=function(e){var t=e.columns,n=e.data,r=e.selectedRow,a=e.onRowClick,i=e.onSort,l=e.sortConfig;return Object(o.jsxs)("table",{className:w.a.tableInterna,children:[Object(o.jsx)("thead",{children:Object(o.jsx)("tr",{children:t.map((function(e){return Object(o.jsx)("th",{onClick:function(){return e.sortable&&i(e.key)},style:e.headerStyle||{},children:Object(o.jsxs)("div",{children:[e.sortable&&Object(o.jsx)(v.a,{icon:C(l,e).icon,style:{color:C(l,e).color}}),e.label]})},e.key)}))})}),Object(o.jsx)("tbody",{children:n.map((function(e){return Object(o.jsx)("tr",{style:e.id===(null===r||void 0===r?void 0:r.id)?{background:"#E7F5FF"}:{cursor:"pointer"},onClick:function(){return a(e)},children:t.map((function(t){return Object(o.jsx)("td",{style:t.cellStyle||{},children:t.render?t.render(S(e,t.key),e):S(e,t.key)},t.key)}))},e.id)}))})]})},k=n("hw50"),N=n("3zeS"),E=n.n(N),F=function(){var e=Object(l.a)(i.a.mark((function e(t){var n,r,o,a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.billing,e.next=3,Object(O.k)(o.id);case 3:return a=e.sent,e.abrupt("return",null!==(n=null===a||void 0===a||null===(r=a.data)||void 0===r?void 0:r.data)&&void 0!==n?n:[]);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),I=n("OKMn"),T=n("5PhN"),D=n("bm5c"),P=n("rRSy");function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var M="DD/MM/YYYY HH:mm:ss";function U(){var e=Object(j.useRouter)(),t=Object(b.useMediaQuery)({query:"(max-width: 641px)"}),n=Object(d.d)((function(e){return e.user})).user,a=Object(c.useState)(!1),s=a[0],m=a[1],g=Object(c.useState)(null),_=g[0],S=g[1],C=Object(c.useState)("recebidos"),N=C[0],R=C[1],U=Object(c.useState)(null),V=U[0],Y=U[1],L=Object(c.useState)(!1),q=L[0],W=L[1],H=Object(c.useState)(null),z=H[0],K=H[1],$=Object(c.useState)([]),G=$[0],J=$[1],X=Object(c.useState)(""),Z=X[0],Q=X[1],ee=Object(c.useState)(""),te=ee[0],ne=ee[1],re=Object(c.useState)("Todos"),oe=re[0],ae=re[1],ie=Object(c.useState)("Per\xedodo"),le=ie[0],ce=ie[1],se=Object(c.useState)(""),ue=se[0],de=se[1],pe=Object(c.useState)(""),ve=pe[0],fe=pe[1],be=Object(c.useState)(""),je=be[0],he=be[1],me=Object(c.useState)(""),ye=me[0],xe=me[1],Oe=Object(c.useState)(""),ge=Oe[0],_e=Oe[1],we=Object(c.useState)(""),Se=we[0],Ce=we[1],Ae=Object(c.useState)([]),ke=Ae[0],Ne=Ae[1],Ee=Object(c.useState)(0),Fe=Ee[0],Ie=Ee[1],Te=Object(c.useState)(0),De=Te[0],Pe=Te[1],Re=Object(c.useState)(10),Be=Re[0],Me=Re[1],Ue=Object(c.useState)(null),Ve=Ue[0],Ye=Ue[1],Le=Object(c.useState)([]),qe=Le[0],We=Le[1],He=Object(c.useState)(0),ze=He[0],Ke=He[1],$e=Object(c.useState)(0),Ge=$e[0],Je=$e[1],Xe=Object(c.useState)(10),Ze
1=Xe[0],Qe=Xe[1],et=Object(c.useState)(0),tt=et[0],nt=et[1],rt=Object(c.useState)(0),ot=rt[0],at=rt[1],it=Object(c.useState)(0),lt=it[0],ct=it[1],st=Object(c.useState)(0),ut=st[0],dt=st[1],pt=Object(c.useState)(0),vt=pt[0],ft=pt[1],bt=Object(c.useState)([]),jt=(bt[0],bt[1]),ht=Object(c.useState)([]),mt=(ht[0],ht[1]),yt=Object(c.useRef)(null),xt=Object(c.useRef)(null),Ot=Object(c.useRef)(0),gt=Object(c.useRef)(0);Object(c.useEffect)((function(){if(e.isReady)if(n){var t,r,o;if(m(!0),null!==(t=e.query)&&void 0!==t&&t.period)"current_month"===(null===(o=e.query)||void 0===o?void 0:o.period)&&ce("M\xeas vigente");if(null!==(r=e.query)&&void 0!==r&&r.filter){var a="anticipation"==e.query.filter?"Antecipa\xe7\xe3o":"guaranteed_rent"==e.query.filter?"Aluguel garantido":"rent"==e.query.filter?"Aluguel":"Todos";return void ae(a)}}else window.location.assign("https://mellro.com/imovel/buscar?login=true")}),[e,n]),Object(c.useEffect)((function(){var e=setTimeout((function(){Q(te)}),1e3);return function(){clearTimeout(e)}}),[te]),Object(c.useEffect)((function(){var e=setTimeout((function(){he(ve)}),2e3);return function(){clearTimeout(e)}}),[ve]),Object(c.useEffect)((function(){var e=setTimeout((function(){_e(ye)}),2e3);return function(){clearTimeout(e)}}),[ye]),Object(c.useEffect)((function(){n&&(Ct(),At())}),[Z,oe,le,ue,je,ge,n]);var _t=function(){return 1===N||"recebidos"===N||"recebido"===N?"recebido":2===N||"futuros"===N||"futuro"===N?"futuro":"recebido"};Object(c.useEffect)((function(){(function(){var n=Object(l.a)(i.a.mark((function n(){var r,o;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r="recebido"===_t()?ke:qe,n.next=3,Object(P.default)({extratos:r,isMobile:t,router:e,activeTab:_t()});case 3:o=n.sent,jt((null===o||void 0===o?void 0:o.headers)||[]),mt((null===o||void 0===o?void 0:o.rows)||[]);case 6:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}})()()}),[ke,qe,N,t,e]);var wt=function(e){"1"===(null===Ve||void 0===Ve?void 0:Ve.order)?(Ye({key:e,order:"-1"}),Ct(null,null,Object(r.a)({},e,"-1"))):"-1"===(null===Ve||void 0===Ve?void 0:Ve.order)?(Ye(""),Ct(null,null,null)):(Ye({key:e,order:"1"}),Ct(null,null,Object(r.a)({},e,"1")))},St=function(e){"1"===(null===tt||void 0===tt?void 0:tt.order)?(nt({key:e,order:"-1"}),At(null,null,Object(r.a)({},e,"-1"))):"-1"===(null===tt||void 0===tt?void 0:tt.order)?(nt(""),At(null,null,null)):(nt({key:e,order:"1"}),At(null,null,Object(r.a)({},e,"1")))},Ct=function(){var e=Object(l.a)(i.a.mark((function e(){var t,r,o,a,c,s,u,d,p,v,f,b,j,h,x,g,_,w=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=w.length>0&&void 0!==w[0]?w[0]:null,r=w.length>1&&void 0!==w[1]?w[1]:null,o=w.length>2&&void 0!==w[2]?w[2]:null,m(!0),Ot.current+=1,a=Ot.current,c={landlord_id:n.id,received_by_landlord:!0,$sort:o,$limit:null!=t?t:Be,$skip:null!=r?r:De},""!=te&&(c.searchAll=te),""!=oe?"Antecipa\xe7\xe3o"==oe?c=B(B({},c),{},{anticipated:!0}):"Aluguel garantido"==oe?(delete c.received_by_landlord,c=B(B({},c),{},{receipts:{rent:{paid_for_insurer:!0}}})):"Aluguel"==oe?c=B(B({},c),{},{receipts:{rent:{paid_for_insurer:!1}},type:["monthly","warranty_refund"]}):"Todos"==oe?c.type_ne="agreement":c.type=Nt(oe):delete c.type,"Per\xedodo"==le&&(""!=(null===je||void 0===je?void 0:je.trim())&&(c=B(B({},c),{},{transfered_landlord:B(B({},c.transfered_landlord),{},{transfered_on_gte:je})})),""!=(null===ge||void 0===ge?void 0:ge.trim())&&(c=B(B({},c),{},{transfered_landlord:B(B({},c.transfered_landlord),{},{transfered_on_lte:ge})}))),"M\xeas vigente"===le&&(c=B(B({},c),{},{transfered_landlord:{transfered_on_gte:y()().startOf("month").toISOString(),transfered_on_lte:y()().endOf("month").toISOString()}})),"30 dias"===le&&(c=B(B({},c),{},{transfered_landlord:{transfered_on_gte:y()().subtract(30,"days").startOf("day").toISOString(),transfered_on_lte:y()().endOf("day").toISOString()}})),"60 dias"===le&&(c=B(B({},c),{},{transfered_landlord:{transfered_on_gte:y()().subtract(60,"days").startOf("day").toISOString(),transfered_on_lte:y()().endOf("day").toISOString()}})),"90 dias"===le&&(c=B(B({},c),{},{transfered_landlord:{transfered_on_gte:y()().subtract(90,"days").startOf("day").toISOString(),transfered_on_lte:y()().endOf("day").toISOString()}})),e.prev=14,e.next=17,Object(O.d)(B(B({},c),{},{onlyValues:!0,uniqueContracts:!0}));case 17:if(s=e.sent,a===Ot.current){e.next=20;break}return e.abrupt("return",[]);case 20:if(200!=(null===s||void 0===s?void 0:s.status)){e.next=33;break}return _=s.data.data||[],e.next=24,Promise.all(null===_||void 0===_?void 0:_.map(function(){var e=Object(l.a)(i.a.mark((function e(t){var r,o,a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,F({billing:t});case 3:r=e.sent,o=r.find((function(e){var t;return(null===(t=e.user)||void 0===t?void 0:t.id)===n.id})),a=o.deposit_date,o?(t.split_value=isNaN(o.value)?"--":o.value,t.receipt_url=(null===o||void 0===o?void 0:o.receipt_url)||null,t.deposit_date=a&&y()(a,M).isValid()?y()(a,M).format(M):null):(t.split_value="
10.00",t.deposit_date=null),e.next=14;break;case 9:e.prev=9,e.t0=e.catch(0),console.warn("getSplitValue failed for billing ".concat(t.id),e.t0),t.split_value="--",t.deposit_date=null;case 14:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}()));case 24:return at(null===(u=parseFloat(null===s||void 0===s||null===(d=s.data)||void 0===d?void 0:d.onlyValues))||void 0===u?void 0:u.toFixed(2)),ct(null!==(p=null===s||void 0===s||null===(v=s.data)||void 0===v?void 0:v.uniqueContracts)&&void 0!==p?p:0),Ne(_),Ie(null!==(f=null===s||void 0===s||null===(b=s.data)||void 0===b?void 0:b.total)&&void 0!==f?f:0),Pe(null!==(j=null===s||void 0===s||null===(h=s.data)||void 0===h?void 0:h.skip)&&void 0!==j?j:0),Me(null!==(x=null===s||void 0===s||null===(g=s.data)||void 0===g?void 0:g.limit)&&void 0!==x?x:10),e.abrupt("return",_);case 33:return e.abrupt("return",[]);case 34:e.next=39;break;case 36:e.prev=36,e.t0=e.catch(14),console.error("Error fetching recebidos:",e.t0);case 39:return e.prev=39,m(!1),e.finish(39);case 42:case"end":return e.stop()}}),e,null,[[14,36,39,42]])})));return function(){return e.apply(this,arguments)}}(),At=function(){var e=Object(l.a)(i.a.mark((function e(){var t,r,o,a,c,s,u,d,p,v,f=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=f.length>0&&void 0!==f[0]?f[0]:null,r=f.length>1&&void 0!==f[1]?f[1]:null,o=f.length>2&&void 0!==f[2]?f[2]:null,m(!0),gt.current+=1,a=gt.current,c={due_date_gte:y()().add(1,"days").startOf("day").toISOString(),landlord_id:n.id,is_paid:!1,$sort:o,$limit:null!=t?t:Ze,$skip:null!=r?r:Ge},""!=te&&(c.searchAll=te),""!=oe?"Antecipa\xe7\xe3o"==oe?c=B(B({},c),{},{anticipated:!0}):"Aluguel garantido"==oe?c=B(B({},c),{},{receipts:{rent:{paid_for_insurer:!0}}}):"Aluguel"==oe?c=B(B({},c),{},{receipts:{rent:{paid_for_insurer:!1}},type:["monthly","warranty_refund"]}):"Todos"==oe?c.type_ne="agreement":c.type=Nt(oe):c.type_ne="agreement",ue&&(c=B(B({},c),{},"M\xeas vigente"===ue?{due_date_gte:y()().startOf("day").toISOString(),due_date_lte:y()().endOf("month").toISOString()}:{due_date_gte:y()().startOf("day").toISOString(),due_date_lte:y()().add(ue,"days").startOf("day").toISOString()})),e.prev=10,e.next=13,Object(O.d)(B(B({},c),{},{onlyValues:!0,uniqueContracts:!0}));case 13:if(s=e.sent,a===gt.current){e.next=16;break}return e.abrupt("return",[]);case 16:if(200!=(null===s||void 0===s?void 0:s.status)){e.next=28;break}return e.next=19,Promise.all(s.data.data.map(function(){var e=Object(l.a)(i.a.mark((function e(t){var r,o;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,F({billing:t});case 3:r=e.sent,o=r.find((function(e){var t;return(null===(t=e.user)||void 0===t?void 0:t.id)===n.id})),t.split_value=o?isNaN(o.value)?"--":o.value:"0.00",e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.warn("getSplitValue failed for billing ".concat(t.id),e.t0),t.split_value="--";case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}()));case 19:return dt(null===(u=parseFloat(null===s||void 0===s||null===(d=s.data)||void 0===d?void 0:d.onlyValues))||void 0===u?void 0:u.toFixed(2)),ft(null!==(p=null===s||void 0===s||null===(v=s.data)||void 0===v?void 0:v.uniqueContracts)&&void 0!==p?p:0),We(s.data.data),Ke(s.data.total),Je(s.data.skip),Qe(s.data.limit),e.abrupt("return",s.data.data);case 28:return e.abrupt("return",[]);case 29:e.next=34;break;case 31:e.prev=31,e.t0=e.catch(10),console.error("Error fetching futuros:",e.t0);case 34:return e.prev=34,m(!1),e.finish(34);case 37:case"end":return e.stop()}}),e,null,[[10,31,34,37]])})));return function(){return e.apply(this,arguments)}}(),kt=function(e){return"termination"==e?"Rescis\xe3o":"agreement"==e?"Acordo":"Aluguel"},Nt=function(e){return"Rescis\xe3o"===e?"termination":"Acordo"===e?"agreement":"monthly"},Et=function(e,t){var n=e.deposit_date;return n?t?y()(n,M).format(M):y()(n,M).format("DD/MM/YYYY"):"--"},Ft=function(e){var t=e.deposit_date;return t?y()(t,M).format("HH:mm:ss"):"--"},It=function(e){var t=e.split_value;return t?isNaN(t)?"--":Object(k.D)(t):Object(k.D)("0.00")},Tt=function(t){return function(n){var r,o;
1if(null===n||void 0===n||null===(r=n.stopPropagation)||void 0===r||r.call(n),q&&z===(null===n||void 0===n?void 0:n.currentTarget))return W(!1),void K(null);var a=[{icon:h.od,label:"Ir para detalhes",onClick:function(){Object(D.d)("ver_detalhes_pagamento",B(B({},Object(D.c)(e.pathname)),{},{action:"clique_botao",label:"ver_detalhes"})),e.push("/contrato/painel/pagamento/".concat(null===t||void 0===t?void 0:t.id,"?contractId=").concat(null===t||void 0===t?void 0:t.contract_id,"&annId=").concat(null===t||void 0===t?void 0:t.property_announcement_id))}}];null!==t&&void 0!==t&&t.receipt_url&&a.push({icon:f.W,label:"Visualizar comprovante",onClick:function(){Object(D.d)("ver_comprovante_pagamento",B(B({},Object(D.c)(e.pathname)),{},{action:"clique_botao",label:"ver_comprovante"})),window.open(t.receipt_url,"_blank")}}),J(a),K(null!==(o=null===n||void 0===n?void 0:n.currentTarget)&&void 0!==o?o:null),W(!0)}},Dt=[{key:"type",label:"Tipo",sortable:!0,headerStyle:{width:"135px"},cellStyle:{},render:function(e,t){var n,r;return Object(o.jsxs)("div",{className:w.a.contractTagTable,children:[Object(o.jsx)("p",{style:{color:"#6F8EAA"},children:kt(e)}),(null===t||void 0===t||null===(n=t.receipts)||void 0===n||null===(r=n.rent)||void 0===r?void 0:r.paid_for_insurer)&&Object(o.jsx)("div",{className:w.a.tags,style:{margin:0},children:Object(o.jsx)("div",{className:w.a.tag,style:{background:"#FFE38C",color:"#3F6281"},children:"Garantido"})}),null!==t&&void 0!==t&&t.anticipated?Object(o.jsx)("div",{className:w.a.tags,style:{margin:0},children:Object(o.jsx)("div",{className:w.a.tag,style:{background:"#B5F8A4",color:"#3F6281"},children:"Antecipado"})}):null]})}},{key:"contract.entity.friendly_code",label:"Contrato",sortable:!1,headerStyle:{width:"135px"},cellStyle:{},render:function(t,n){var r,a;return Object(o.jsx)("div",{className:w.a.contractTagTable,children:Object(o.jsx)("p",{style:{color:"#339AF0",cursor:"pointer"},onClick:function(){return e.push("/contrato/painel/".concat(null===n||void 0===n?void 0:n.contract_id))},children:null===n||void 0===n||null===(r=n.contract)||void 0===r||null===(a=r.entity)||void 0===a?void 0:a.friendly_code})})}},{key:"contract.entity.property.street",label:"Im\xf3vel",sortable:!1,headerStyle:{paddingLeft:24,width:"451px"},cellStyle:{},render:function(t,n){var r,a,i,l,c,s,u,d,p,v,f,b,j,h,m,y,x,O,g,_,S,C,A,k,N,E,F,I;return Object(o.jsx)("div",{className:w.a.contractTagTable,children:Object(o.jsxs)("p",{style:{color:"#339AF0",cursor:"pointer"},onClick:function(){return e.push("/area/responsavel/imovel/".concat(null===n||void 0===n?void 0:n.property_announcement_id))},children:[null===n||void 0===n||null===(r=n.contract)||void 0===r||null===(a=r.entity)||void 0===a||null===(i=a.property)||void 0===i||null===(l=i.address)||void 0===l?void 0:l.street,", ",null===n||void 0===n||null===(c=n.contract)||void 0===c||null===(s=c.entity)||void 0===s||null===(u=s.property)||void 0===u||null===(d=u.address)||void 0===d?void 0:d.number," ",null!==n&&void 0!==n&&null!==(p=n.contract)&&void 0!==p&&null!==(v=p.entity)&&void 0!==v&&null!==(f=v.property)&&void 0!==f&&null!==(b=f.address)&&void 0!==b&&b.complement?"- ".concat(null===n||void 0===n||null===(j=n.contract)||void 0===j||null===(h=j.entity)||void 0===h||null===(m=h.property)||void 0===m||null===(y=m.address)||void 0===y?void 0:y.complement):""," - ",null===n||void 0===n||null===(x=n.contract)||void 0===x||null===(O=x.entity)||void 0===O||null===(g=O.property)||void 0===g||null===(_=g.address)||void 0===_?void 0:_.neighbourhood," - ",null===n||void 0===n||null===(S=n.contract)||void 0===S||null===(C=S.entity)||void 0===C||null===(A=C.property)||void 0===A||null===(k=A.address)||void 0===k?void 0:k.city,"/",null===n||void 0===n||null===(N=n.contract)||void 0===N||null===(E=N.entity)||void 0===E||null===(F=E.property)||void 0===F||null===(I=F.address)||void 0===I?void 0:I.state]})})}},{key:"receipts.rent.value",label:"Valor",sortable:!0,headerStyle:{paddingLeft:24,width:"137px"},cellStyle:{},render:function(e,t){return Object(o.jsx)("div",{className:w.a.contractTagTable,children:Object(o.jsx)("p",{style:{color:"#6F8EAA"},children:It(t)})})}},{key:"transfered_landlord.transfered_on",label:"Transferido",sortable:!0,headerStyle:{textAlign:"right",width:"137px"},render:function(e,t){return Object(o.jsx)("div",{className:w.a.contractDateTable,children:Object(o.jsx)("p",{children:Et(t,!0)})})}},{key:"actions",label:"A\xe7\xf5es",sortable:!1,headerStyle:{width:"56px",textAlign:"right"},cellStyle:{textAlign:"right"},render:function(e,t){return Object(o.jsx)(I.j,{customStyles:{width:32,height:32},icon:h.Yb,type:T.d.option,onClick:Tt(t)})}}],Pt=[{key:"type",label:"Tipo",sortable:!0,headerStyle:{width:"135px"},cellStyle:{},render:function(e,t){return Object(o.jsxs)("div",{className:w.a.contractTagTable,children:[Object(o.jsx)("p",{style:{color:"#6F8EAA"},children:kt(e)}),null!==t&&void 0!==t&&t.anticipated?Object(o.jsx)("div",{className:w.a.tags,style:{margin:0},children:Object(o.jsx)("div",{className:w.a.tag,style:{background:"#B5F8A4",color:"#3F6281"},children:"Antecipado"})}):null]})}},{key:"contract.entity.friendly_code",label:"Contrato",sortable:!1,headerStyle:{width:"135px"},cellStyle:{},render:function(t,n){var r,a;return Object(o.jsx)("div",{className:w.a.contractTagTable,children:Object(o.jsx)("p",{style:{color:"#339AF0",cursor:"pointer"},onClick:function(){return e.push("/contrato/painel/".concat(null===n||void 0===n?void 0:n.contract_id))},children:null===n||void 0===n||null===(r=n.contract)||void 0===r||null===(a=r.entity)||void 0===a?void 0:a.friendly_code})})}},{key:"contract.entity.property.street",label:"Im\xf3vel",sortable:!1,headerStyle:{paddingLeft:24,width:"451px"},cellStyle:{},render:function(t,n){var r,a,i,l,c,s,u,d,p,v,f,b,j,h,m,y,x,O,g,_,S,C,A,k,N,E,F,I;return Object(o.jsx)("div",{className:w.a.contractTagTable,children:Object(o.jsxs)("p",{style:{color:"#339AF0",cursor:"pointer"},onClick:function(){return e.push("/area/responsavel/imovel/".concat(null===n||void 0===n?void 0:n.property_announcement_id))},children:[null===n||void 0===n||null===(r=n.contract)||void 0===r||null===(a=r.entity)||void 0===a||null===(i=a.property)||void 0===i||null===(l=i.address)||void 0===l?void 0:l.street,", ",null===n||void 0===n||null===(c=n.contract)||void 0===c||null===(s=c.entity)||void 0===s||null===(u=s.property)||void 0===u||null===(d=u.address)||void 0===d?void 0:d.number," ",null!==n&&void 0!==n&&null!==(p=n.contract)&&void 0!==p&&null!==(v=p.entity)&&void 0!==v&&null!==(f=v.property)&&void 0!==f&&null!==(b=f.address)&&void 0!==b&&b.complement?"- ".concat(null===n||void 0===n||null===(j=n.contract)||void 0===j||null===(h=j.entity)||void 0===h||null===(m=h.property)||void 0===m||null===(y=m.address)||void 0===y?void 0:y.complement):""," - ",null===n||void 0===n||null===(x=n.contract)||void 0===x||null===(O=x.entity)||void 0===O||null===(g=O.property)||void 0===g||null===(_=g.address)||void 0===_?void 0:_.neighbourhood," - ",null===n||void 0===n||null===(S=n.contract)||void 0===S||null===(C=S.entity)||void 0===C||null===(A=C.property)||void 0===A||null===(k=A.address)||void 0===k?void 0:k.city,"/",null===n||void 0===n||null===(N=n.contract)||void 0===N||null===(E=N.entity)||void 0===E||null===(F=E.property)||void 0===F||null===(I=F.address)||void 0===I?void 0:I.state]})})}},{key:"receipts.rent.value",label:"Valor",sortable:!0,headerStyle:{paddingLeft:24,width:"137px"},cellStyle:{},render:function(e,t){return Object(o.jsx)("div",{className:w.a.contractTagTable,children:Object(o.jsx)("p",{style:{color:"#6F8EAA"},children:It(t)})})}},{key:"due_date",label:"Vencimento",sortable:!0,headerStyle:{textAlign:"right",width:"137px"},render:function(e){return Object(o.jsx)("div",{className:w.a.contractDateTable,children:Object(o.jsx)("p",{children:y()(e).format("DD/MM/YYYY")})})}},{key:"boleto.pdf_url",label:"Cobran\xe7a",sortable:!1,headerStyle:{textAlign:"right",width:"137px"},render:function(e){return Object(o.jsx)(o.Fragment,{children:e&&Object(o.jsxs)("div",{className:w.a.contractDateTable,style:{display:"flex",alignItems:"center",color:"#339AF0",gap:4,cursor:"pointer"},onClick:function(){return window.open(e)},children:[Object(o.jsx)(v.a,{icon:f.W}),"Baixar"]})})}}],Rt=[{label:"Recebidos",value:"recebidos",counter:null!==Fe&&void 0!==Fe?Fe:0,showCounter:!0},{label:"Previstos",value:"futuros",counter:null!==ze&&void 0!==ze?ze:0,showCounter:!0}];return Object(o.jsxs)("div",{className:w.a.containerExtratos,children:[Object(o.jsxs)(u.a,{children:[Object(o.jsx)("title",{children:"Mellro - Extrato mensal"}),Object(o.jsx)("meta",{NAME:"robots",CONTENT:"noindex,nofollow"})]}),Object(o.jsx)(I.C,{onClickBackButton:function(){return e.push("/contrato")}}),Object(o.jsxs)("div",{className:"".concat(E.a.container," ").concat(E.a.painelContrato),style:{minHeight:"100vh"},children:[Object(o.jsx)(I.w,{title:"Extrato mensal",subtitle:"A seguir voc\xea visualiza todas as entradas de valores e suas datas de repasse dos dados banc\xe1rios registrados.",leftImage:"/grafismos/grafismo-1.png",breadcrumbs:[{text:"Home",href:"/"},{text:"Contratos",href:"/contrato"},{text:"Painel do contrato",href:"/contrato",ellipsis:!0},{text:"Extrato mensal",href:"#"}]}),Object(o.jsxs)("div",{className:E.a.contentContainer,style:{maxWidth:1136},children:[_&&Object(o.jsx)(p.a,{style:{marginBottom:"24px"},variant:null===_||void 0===_?void 0:_.type,dismissible:!0,onClose:function(){return S(null)},children:null===_||void 0===_?void 0:_.text}),"recebido"==_t()&&Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)("div",{className:w.a.filtro,style:{gap:t?16:8,width:"100%",alignItems:t?"center":"end"},children:[Object(o.jsxs)("div",{className:w.a.inputSearchContainerNew,style:{width:"100%",marginRight:t?0:24},children:[Object(o.jsx)(v.a,{icon:h.rd,className:w.a.iconInputSearch}),Object(o.jsx)("input",{className:w.a.inputSearch,type:"text",value:te,onChange:function(e){var t=e.target;return ne(t.value.replace(".",""))},placeholder:"Pesquise contrato, endere\xe7o ou valores"})]}),Object(o.jsxs)("div",{className:w.a.displayBox,style:{gap:t?16:32},children:[Object(o.jsxs)("div",{children:[Object(o.jsx)("label",{className:w.a.labelStyle,children:"Tipos de pagamento"}),Object(o.jsxs)("div",{className:w.a.selectBox,children:[Object(o.jsx)("select",{className:w.a.select,value:oe,onChange:function(e){return ae(e.currentTarget.value)},style:{color:"#6F8EAA",width:"100%"},children:["Todos","Aluguel","Aluguel garantido","Antecipa\xe7\xe3o","Rescis\xe3o"].map((function(e){return Object(o.jsx)("option",{value:e,children:e},e)}))}),Object(o.jsx)(v.a,{icon:h.hb})]})]}),Object(o.jsxs)("div",{children:[Object(o.jsx)("label",{className:w.a.labelStyle,children:"Per\xedodo"}
1),Object(o.jsxs)("div",{className:w.a.selectBox,children:[Object(o.jsx)("select",{className:w.a.select,value:le,onChange:function(e){return ce(e.currentTarget.value)},style:{color:"#6F8EAA",width:"100%"},children:["Per\xedodo","M\xeas vigente","30 dias","60 dias","90 dias"].map((function(e){return Object(o.jsx)("option",{value:e,children:e},e)}))}),Object(o.jsx)(v.a,{icon:h.hb})]})]})]}),"Per\xedodo"==le&&Object(o.jsxs)("div",{className:w.a.displayBox,style:{gap:t?16:8},children:[Object(o.jsxs)("div",{className:w.a.inputSearchContainerNew,style:{maxWidth:176},children:[Object(o.jsx)(v.a,{icon:f.p,className:w.a.iconInputSearch,onClick:function(){var e,t;null===(e=yt.current)||void 0===e||e.focus(),null===(t=yt.current)||void 0===t||t.showPicker()}}),Object(o.jsx)("input",{ref:yt,className:w.a.inputSearch,id:"dateInputInicial",type:"date",value:ve,onChange:function(e){var t=e.target;return fe(t.value)},placeholder:"De"})]}),Object(o.jsxs)("div",{className:w.a.inputSearchContainerNew,style:{maxWidth:176},children:[Object(o.jsx)(v.a,{icon:f.p,className:w.a.iconInputSearch,onClick:function(){var e,t;null===(e=xt.current)||void 0===e||e.focus(),null===(t=xt.current)||void 0===t||t.showPicker()}}),Object(o.jsx)("input",{ref:xt,className:w.a.inputSearch,id:"dateInputFinal",type:"date",value:ye,onChange:function(e){var t=e.target;return xe(t.value)},placeholder:"At\xe9"})]})]})]}),Object(o.jsxs)("div",{className:w.a.containerAssetsExtrato,children:[Object(o.jsxs)("div",{children:[Object(o.jsx)("p",{children:"Receita total"}),s?Object(o.jsx)("span",{className:w.a.assetValueSkeleton}):Object(o.jsxs)("span",{children:["R$",Object(o.jsx)("b",{children:Object(k.G)(ot)})]})]}),Object(o.jsxs)("div",{style:{maxWidth:181,flex:1},children:[Object(o.jsx)("p",{children:"Contratos"}),s?Object(o.jsx)("span",{className:"".concat(w.a.assetValueSkeleton," ").concat(w.a.assetValueSkeletonSmall)}):Object(o.jsx)("span",{children:Object(o.jsx)("b",{style:{color:"#87A1B8"},children:lt})})]}),Object(o.jsxs)("div",{style:{maxWidth:181,flex:1},children:[Object(o.jsx)("p",{children:"Transa\xe7\xf5es"}),s?Object(o.jsx)("span",{className:"".concat(w.a.assetValueSkeleton," ").concat(w.a.assetValueSkeletonSmall)}):Object(o.jsx)("span",{children:Object(o.jsx)("b",{style:{color:"#87A1B8"},children:Fe})})]})]})]}),"futuro"==_t()&&Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)("div",{className:w.a.filtro,style:{gap:t?16:32,width:"100%",alignItems:t?"center":"end"},children:[Object(o.jsxs)("div",{className:w.a.inputSearchContainerNew,style:{maxWidth:"none",width:"100%"},children:[Object(o.jsx)(v.a,{icon:h.rd,className:w.a.iconInputSearch}),Object(o.jsx)("input",{className:w.a.inputSearch,type:"text",value:te,onChange:function(e){var t=e.target;return ne(t.value.replace(".",""))},placeholder:"Pesquise contrato, endere\xe7o ou valores"})]}),Object(o.jsxs)("div",{className:w.a.displayBox,style:{gap:t?16:32},children:[Object(o.jsxs)("div",{children:[Object(o.jsx)("label",{className:w.a.labelStyle,children:"Tipos de pagamento"}),Object(o.jsxs)("div",{className:w.a.selectBox,children:[Object(o.jsx)("select",{className:w.a.select,value:oe,onChange:function(e){return ae(e.currentTarget.value)},style:{color:"#6F8EAA",width:"100%"},children:["Todos","Aluguel","Antecipa\xe7\xe3o","Rescis\xe3o"].map((function(e){return Object(o.jsx)("option",{value:e,children:e},e)}))}),Object(o.jsx)(v.a,{icon:h.hb})]})]}),Object(o.jsxs)("div",{children:[Object(o.jsx)("label",{className:w.a.labelStyle,children:"Per\xedodo"}),Object(o.jsxs)("div",{className:w.a.selectBox,children:[Object(o.jsxs)("select",{className:w.a.select,value:ue,onChange:function(e){return de(e.currentTarget.value)},style:{color:"#6F8EAA",width:"100%"},children:[Object(o.jsx)("option",{value:"",children:"Per\xedodo"}),Object(o.jsx)("option",{value:"M\xeas vigente",children:"M\xeas vigente"}),Object(o.jsx)("option",{value:30,children:"30 dias"}),Object(o.jsx)("option",{value:60,children:"60 dias"}),Object(o.jsx)("option",{value:90,children:"90 dias"})]}),Object(o.jsx)(v.a,{icon:h.hb})]})]})]})]}),Object(o.jsxs)("div",{className:w.a.containerAssetsExtrato,children:[Object(o.jsxs)("div",{children:[Object(o.jsx)("p",{children:"Total agendado"}),s?Object(o.jsx)("span",{className:w.a.assetValueSkeleton}):Object(o.jsxs)("span",{children:["R$",Object(o.jsx)("b",{style:{color:"#3F6281"},children:Object(k.G)(ut)})]})]}),Object(o.jsxs)("div",{style:{maxWidth:181,flex:1},children:[Object(o.jsx)("p",{children:"Contratos"}),s?Object(o.jsx)("span",{className:"".concat(w.a.assetValueSkeleton," ").concat(w.a.assetValueSkeletonSmall)}):Object(o.jsx)("span",{children:Object(o.jsx)("b",{style:{color:"#87A1B8"},children:vt})})]}),Object(o.jsxs)("div",{style:{maxWidth:181,flex:1},children:[Object(o.jsx)("p",{children:"Transa\xe7\xf5es"}),s?Object(o.jsx)("span",{className:"".concat(w.a.assetValueSkeleton," ").concat(w.a.assetValueSkeletonSmall)}):Object(o.jsx)("span",{children:Object(o.jsx)("b",{style:{color:"#87A1B8"},children:ze})})]})]})]})]}),Object(o.jsxs)("div",{className:E.a.contentContainer,style:{maxWidth:1136,gap:0},children:[t&&"futuro"===_t()&&Object(o.jsxs)("div",{style:{marginBottom:32,display:"flex",gap:"16px",width:"100%"},children:[Object(o.jsx)("div",{style:{maxWidth:150,width:"100%"},children:Object(o.jsxs)("div",{className:w.a.selectBox,children:[Object(o.jsxs)("select",{className:w.a.select,value:Se,onChange:function(e){
1St(tt),Ce(e.currentTarget.value)},style:{background:"#FFF",color:""==Se?"#BED0E0":"#6F8EAA"},children:[Object(o.jsx)("option",{value:"",disabled:!0,selected:!0,hidden:!0,children:"Ordenar por"}),["Crescente","Decrescente"].map((function(e){return Object(o.jsx)("option",{value:e,children:e},e)}))]}),Object(o.jsx)(v.a,{icon:h.hb})]})}),Object(o.jsx)("div",{style:{maxWidth:128,width:"100%"},children:Object(o.jsxs)("div",{className:w.a.selectBox,children:[Object(o.jsxs)("select",{className:w.a.select,value:tt,onChange:function(e){St(tt),nt(e.currentTarget.value)},style:{background:"#FFF",color:""==tt?"#BED0E0":"#6F8EAA"},children:[Object(o.jsx)("option",{value:"",disabled:!0,selected:!0,hidden:!0,children:"Nenhum"}),[{label:"Tipo",key:"type"},{label:"Valor",key:"receipts.rent.value"},{label:"Vencimento",key:"due_date"}].map((function(e){var t=e.label,n=e.key;return Object(o.jsx)("option",{value:n,children:t},n)}))]}),Object(o.jsx)(v.a,{icon:h.hb})]})})]}),t&&"recebido"===_t()&&Object(o.jsxs)("div",{style:{marginBottom:32,display:"flex",gap:"16px",width:"100%"},children:[Object(o.jsx)("div",{style:{maxWidth:150,width:"100%"},children:Object(o.jsxs)("div",{className:w.a.selectBox,children:[Object(o.jsxs)("select",{className:w.a.select,value:Se,onChange:function(e){wt(Ve),Ce(e.currentTarget.value)},style:{background:"#FFF",color:""==Se?"#BED0E0":"#6F8EAA"},children:[Object(o.jsx)("option",{value:"",disabled:!0,selected:!0,hidden:!0,children:"Ordenar por"}),["Crescente","Decrescente"].map((function(e){return Object(o.jsx)("option",{value:e,children:e},e)}))]}),Object(o.jsx)(v.a,{icon:h.hb})]})}),Object(o.jsx)("div",{style:{maxWidth:128,width:"100%"},children:Object(o.jsxs)("div",{className:w.a.selectBox,children:[Object(o.jsxs)("select",{className:w.a.select,value:Ve,onChange:function(e){wt(Ve),Ye(e.currentTarget.value)},style:{background:"#FFF",color:""==Ve?"#BED0E0":"#6F8EAA"},children:[Object(o.jsx)("option",{value:"",disabled:!0,selected:!0,hidden:!0,children:"Nenhum"}),[{label:"Tipo",key:"type"},{label:"Valor",key:"receipts.rent.value"},{label:"Transferido",key:"transfered_landlord.transfered_on"}].map((function(e){var t=e.label,n=e.key;return Object(o.jsx)("option",{value:n,children:t},n)}))]}),Object(o.jsx)(v.a,{icon:h.hb})]})})]}),Object(o.jsx)(I.M,{noArrows:!0,tabs:Rt,activeTab:"recebido"===N?"recebidos":"futuro"===N?"futuros":N,onChange:R,style:{marginLeft:8},loading:s}),Object(o.jsxs)("div",{style:{width:"100%",maxWidth:1136},children:[s&&Object(o.jsx)(I.o,{headers:("recebido"===_t()?Dt:Pt).map((function(e){var t;return{text:e.label,width:parseInt(null===(t=e.headerStyle)||void 0===t?void 0:t.width)||void 0}})),rows:"recebido"===_t()?Be:Ze}),!s&&"recebido"===_t()&&Object(o.jsxs)("section",{style:{minHeight:"520px"},children:[Object(o.jsxs)("div",{children:[t?Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("div",{className:w.a.containerCardsInterna,children:null===ke||void 0===ke?void 0:ke.map((function(t){var n,r,a,i,l,c,s,u,d,p,v,f,b,j,m,y,x,O,g,_,S,C,A,N;return Object(o.jsxs)("div",{className:w.a.cardInterna,style:{cursor:"pointer"},onClick:Tt(t),children:[Object(o.jsxs)("div",{style:{display:"flex",alignItems:"center",width:"100%"},children:[Object(o.jsxs)("span",{style:{color:"#6F8EAA",fontSize:16,marginRight:24},children:[kt(null===t||void 0===t?void 0:t.type),null!==t&&void 0!==t&&t.anticipated?Object(o.jsx)("div",{className:w.a.tags,style:{margin:0},children:Object(o.jsx)("div",{className:w.a.tag,style:{background:"#B5F8A4",color:"#3F6281"},children:"Antecipado"})}):null]}),(null===t||void 0===t||null===(n=t.receipts)||void 0===n||null===(r=n.rent)||void 0===r?void 0:r.paid_for_insurer)&&Object(o.jsx)("div",{className:w.a.tags,style:{margin:0,marginRight:24},children:Object(o.jsx)("div",{className:w.a.tag,style:{background:"#FFE38C",color:"#3F6281"},children:"Garantido"})}),null!==t&&void 0!==t&&t.anticipated?Object(o.jsx)("div",{className:w.a.tags,style:{margin:0},children:Object(o.jsx)("div",{className:w.a.tag,style:{background:"#B5F8A4",color:"#3F6281"},children:"Antecipado"})}):null,Object(o.jsx)("span",{style:{color:"#339AF0",fontSize:16,cursor:"pointer"},onClick:function(n){n.stopPropagation(),e.push("/area/responsavel/imovel/".concat(null===t||void 0===t?void 0:t.property_announcement_id))},children:null===t||void 0===t||null===(a=t.contract)||void 0===a||null===(i=a.entity)||void 0===i?void 0:i.friendly_code}),Object(o.jsx)(I.j,{customStyles:{width:32,height:32,marginLeft:"auto"},icon:h.Yb,type:T.d.option,onClick:function(e){e.stopPropagation(),Tt(t)(e)}})]}),Object(o.jsxs)("p",{style:{color:"#339AF0",cursor:"pointer"},onClick:function(n){var r,o;n.stopPropagation(),e.push(Object(k.eb)(null===t||void 0===t||null===(r=t.contract)||void 0===r||null===(o=r.entity)||void 0===o?void 0:o.property))},children:[null===t||void 0===t||null===(l=t.contract)||void 0===l||null===(c=l.entity)||void 0===c||null===(s=c.property)||void 0===s||null===(u=s.address)||void 0===u?void 0:u.street,", ",null===t||void 0===t||null===(d=t.contract)||void 0===d||null===(p=d.entity)||void 0===p||null===(v=p.property)||void 0===v||null===(f=v.address)||void 0===f?void 0:f.number," - ",null===t||void 0===t||null===(b=t.contract)||void 0===b||null===(j=b.entity)||void 0===j||null===(m=j.property)||void 0===m||null===(y=m.address)||void 0===y?void 0:y.neighbourhood," - ",null===t||void 0===t||null===(x=t.contract)||void 0===x||null===(O=x.entity)||void 0===O||null===(g=O.property)||void 0===g||null===(_=g.address)||void 0===_?void 0:_.city,"/",null===t||void 0===t||null===(S=t.contract)||void 0===S||null===(C=S.entity)||void 0===C||null===(A=C.property)||void 0===A||null===(N=A.address)||void 0===N?void 0:N.state]}),Object(o.jsxs)("div",{className:w.a.contractDateTable,children:[Object(o.jsx)("p",{style:{fontSize:16,fontWeight:"700",color:"#6F8EAA",marginRight:24,marginBottom:0},children:It(t)}),Object(o.jsxs)("div",{className:"d-flex align-items-center",children:[Object(o.jsx)("p",{style:{margin:0,marginRight:8},children:Et(t)}),Object(o.jsx)("p",{style:{margin:0},children:Ft(t)})]})]})]})}))})}):Object(o.jsx)("div",{className:w.a.tableInternaWrapper,children:Object(o.jsx)(A,{columns:Dt,data:ke,selectedRow:V,onRowClick:function(e){return Y(e)},onSort:wt,sortConfig:Ve})}),Number(De)+Number(null===ke||void 0===ke?void 0:ke.length)>=Fe?Object(o.jsx)(x.b,{style:{borderRadius:"0 0 6px 6px",border:"1px solid #BED0E0",borderTop:"none"},text:"N\xe3o encontramos nenhum im\xf3vel."}):null]}
1),Object(o.jsx)(I.G,{total:Fe,skip:De,limit:Be,setSkip:Pe,setLimit:Me,onChange:function(e){var t=e.skip,n=e.limit;return Ct(n,t,null)},style:{marginTop:16}})]}),!s&&"futuro"===_t()&&Object(o.jsxs)("section",{style:{minHeight:"520px"},children:[Object(o.jsxs)("div",{children:[t?Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("div",{className:w.a.containerCardsInterna,children:null===qe||void 0===qe?void 0:qe.map((function(t){var n,r,a,i,l,c,s,u,d,p,b,j,h,m,x,O,g,_,S,C,A,N,E,F,I,T;return Object(o.jsxs)("div",{className:w.a.cardInterna,children:[Object(o.jsx)("div",{children:Object(o.jsxs)("span",{style:{color:"#6F8EAA",fontSize:16,marginRight:24,display:"flex",gap:10},children:[kt(null===t||void 0===t?void 0:t.type),null!==t&&void 0!==t&&t.anticipated?Object(o.jsx)("div",{className:w.a.tags,style:{margin:0},children:Object(o.jsx)("div",{className:w.a.tag,style:{background:"#B5F8A4",color:"#3F6281"},children:"Antecipado"})}):null,Object(o.jsx)("span",{style:{color:"#339AF0",fontSize:16,cursor:"pointer"},onClick:function(){return e.push("/area/responsavel/imovel/".concat(null===t||void 0===t?void 0:t.property_announcement_id))},children:null===t||void 0===t||null===(n=t.contract)||void 0===n||null===(r=n.entity)||void 0===r?void 0:r.friendly_code})]})}),Object(o.jsxs)("p",{style:{color:"#339AF0",cursor:"pointer"},onClick:function(){var n,r;return e.push(Object(k.eb)(null===t||void 0===t||null===(n=t.contract)||void 0===n||null===(r=n.entity)||void 0===r?void 0:r.property))},children:[null===t||void 0===t||null===(a=t.contract)||void 0===a||null===(i=a.entity)||void 0===i||null===(l=i.property)||void 0===l||null===(c=l.address)||void 0===c?void 0:c.street,", ",null===t||void 0===t||null===(s=t.contract)||void 0===s||null===(u=s.entity)||void 0===u||null===(d=u.property)||void 0===d||null===(p=d.address)||void 0===p?void 0:p.number," - ",null===t||void 0===t||null===(b=t.contract)||void 0===b||null===(j=b.entity)||void 0===j||null===(h=j.property)||void 0===h||null===(m=h.address)||void 0===m?void 0:m.neighbourhood," - ",null===t||void 0===t||null===(x=t.contract)||void 0===x||null===(O=x.entity)||void 0===O||null===(g=O.property)||void 0===g||null===(_=g.address)||void 0===_?void 0:_.city,"/",null===t||void 0===t||null===(S=t.contract)||void 0===S||null===(C=S.entity)||void 0===C||null===(A=C.property)||void 0===A||null===(N=A.address)||void 0===N?void 0:N.state]}),Object(o.jsxs)("div",{className:w.a.contractDateTable,children:[Object(o.jsx)("p",{style:{fontSize:16,fontWeight:"700",color:"#6F8EAA",marginRight:24,marginBottom:0},children:Object(k.D)(null!==(E=null===t||void 0===t||null===(F=t.receipts)||void 0===F||null===(I=F.rent)||void 0===I?void 0:I.value)&&void 0!==E?E:0)}),Object(o.jsxs)("div",{className:"d-flex align-items-center",children:[Object(o.jsx)("p",{style:{margin:0,marginRight:8},children:y()(null===t||void 0===t?void 0:t.due_date).format("DD/MM/YYYY")}),(null===t||void 0===t||null===(T=t.boleto)||void 0===T?void 0:T.pdf_url)&&Object(o.jsxs)("div",{className:w.a.contractDateTable,style:{display:"flex",alignItems:"center",color:"#339AF0",gap:4,cursor:"pointer",marginLeft:24},onClick:function(){var e;return window.open(null===t||void 0===t||null===(e=t.boleto)||void 0===e?void 0:e.pdf_url)},children:[Object(o.jsx)(v.a,{icon:f.W}),"Baixar"]})]})]})]})}))})}):Object(o.jsx)("div",{className:w.a.tableInternaWrapper,children:Object(o.jsx)(A,{columns:Pt,data:qe,selectedRow:V,onRowClick:function(e){return Y(e)},onSort:St,sortConfig:tt})}),Number(Ge)+Number(null===qe||void 0===qe?void 0:qe.length)>=ze?Object(o.jsx)(x.b,{style:{borderRadius:"0 0 6px 6px",border:"1px solid #BED0E0",borderTop:"none"},text:"N\xe3o encontramos nenhum im\xf3vel."}):null]}),Object(o.jsx)(I.G,{total:ze,skip:Ge,limit:Ze,setSkip:Je,setLimit:Qe,onChange:function(e){var t=e.skip,n=e.limit;return At(n,t,null)},style:{marginTop:16}})]})]})]}),Object(o.jsx)(I.a,{variant:"gray",showLock:!0,style:{marginTop:"auto",marginBottom:-56}})]}),Object(o.jsx)(I.r,{options:G,isOpen:q,onClose:function(){return W(!1)},anchorEl:z,titleDrawer:"Mais a\xe7\xf5es"})]})}},dbZe:function(e,t,n){"use strict";var r=n("wx14"),o=n("zLVn"),a=n("q1tI"),i=n.n(a),l=n("Qg85"),c=["as","disabled","onKeyDown"];function s(e){return!e||"#"===e.trim()}var u=i.a.forwardRef((function(e,t){var n=e.as,a=void 0===n?"a":n,u=e.disabled,d=e.onKeyDown,p=Object(o.a)(e,c),v=function(e){var t=p.href,n=p.onClick;(u||s(t))&&e.preventDefault(),u?e.stopPropagation():n&&n(e)};return s(p.href)&&(p.role=p.role||"button",p.href=p.href||"#"),u&&(p.tabIndex=-1,p["aria-disabled"]=!0),i.a.createElement(a,Object(r.a)({ref:t},p,{onClick:v,onKeyDown:Object(l.a)((function(e){" "===e.key&&(e.preventDefault(),v(e))}),d)}))}));u.displayName="SafeAnchor",t.a=u},g4pe:function(e,t,n){e.exports=n("8Kt/")},gvZk:function(e,t,n){"use strict";n.d(t,"d",(function(){return l})),n.d(t,"j",(function(){return c})),n.d(t,"g",(function(){return s})),n.d(t,"r",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"p",(function(){return v})),n.d(t,"l",(function(){return f})),n.d(t,"i",(function(){return b})),n.d(t,"k",(function(){return j})),n.d(t,"h",(function(){return h})),n.d(t,"q",(function(){return m})),n.d(t,"a",(function(){return y}
1)),n.d(t,"c",(function(){return x})),n.d(t,"m",(function(){return O})),n.d(t,"o",(function(){return g})),n.d(t,"n",(function(){return _})),n.d(t,"b",(function(){return w}));var r=n("vDqi"),o=n.n(r),a=n("MdfC"),i=n("hw50"),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.a.get("".concat(a.a.baseUrl,"/billings"),{params:Object(i.jc)(e),headers:{Authorization:"Bearer ".concat(null!==t&&void 0!==t?t:localStorage.getItem("access_token"))}})},c=function(e){var t=e.cpf,n=e.telefone,r=e.$limit,i=void 0===r?10:r,l=e.$skip,c=void 0===l?0:l;return o.a.get("".concat(a.a.baseUrl,"/billings/segunda-via"),{params:{cpf:t,telefone:n,$limit:i,$skip:c}})},s=function(e){return o.a.get("".concat(a.a.baseUrl,"/billings/").concat(e))},u=function(e,t){return o.a.patch("".concat(a.a.baseUrl,"/billings/").concat(e,"/encargos"),t)},d=function(e){return o.a.get("".concat(a.a.baseUrl,"/boleto/get-boleto-by-billing/").concat(e))},p=function(e){var t={method:"get",baseURL:e},n={response:function(e){return e},error:function(e){if(400===e.response.status)return e.response.request.responseURL;throw e}},r=o.a.interceptors.response.use(n.request,n.error);return o.a.request(t).finally((function(){o.a.interceptors.response.eject(r)}))},v=function(e,t){return o.a.patch("".concat(a.a.baseUrl,"/repayment/").concat(e),t)},f=function(e){return o.a.get("".concat(a.a.baseUrl,"/repayment"),{params:Object(i.jc)(e)})},b=function(e){return o.a.get("".concat(a.a.baseUrl,"/repayment/").concat(e))},j=function(e){return o.a.get("".concat(a.a.baseUrl,"/payment/asaas/transfers/get-split-data/").concat(e))},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.a.get("".concat(a.a.baseUrl,"/readjustment-indices"),{params:Object(i.jc)(e),headers:{Authorization:"Bearer ".concat(null!==t&&void 0!==t?t:localStorage.getItem("access_token"))}})},m=function(e){return o.a.get("".concat(a.a.baseUrl,"/anticipations/simulate"),{params:Object(i.jc)(e)})},y=function(e){return o.a.post("".concat(a.a.baseUrl,"/anticipations"),e)},x=function(e){return o.a.get("".concat(a.a.baseUrl,"/anticipations/").concat(e))},O=function(e){return o.a.get("".concat(a.a.baseUrl,"/anticipations"),{params:Object(i.jc)(e)})},g=function(e){return o.a.delete("".concat(a.a.baseUrl,"/anticipations/").concat(e))},_=function(e){return o.a.get("".concat(a.a.baseUrl,"/billings/query-payments-by-pwa"),{params:Object(i.jc)(e)})},w=function(e){return o.a.get("".concat(a.a.baseUrl,"/anticipations/get-anticipation-signature-by-id?anticipation_id=").concat(e))}},rJga:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("q1tI"),o=n("2W6z"),a=n.n(o),i=n("KFoM"),l=n("HcfF");function c(e){var t=e.children,n=e.innerRef,o=r.useContext(i.c),c=r.useCallback((function(e){Object(l.c)(n,e),Object(l.b)(o,e)}),[n,o]);return r.useEffect((function(){return function(){return Object(l.c)(n,null)}}),[]),r.useEffect((function(){a()(Boolean(o),"`Reference` should not be used outside of a `Manager` component.")}),[o]),Object(l.d)(t)({ref:c})}},rRSy:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return h}));var r=n("vJKn"),o=n.n(r),a=n("rg98"),i=n("q1tI"),l=n.n(i),c=n("wd/R"),s=n.n(c),u=n("hw50"),d=n("5PhN"),p=n("tTGf");function v(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var b=function(e,t){var n,r,o=[];t&&null!==e&&void 0!==e&&null!==(n=e.receipts)&&void 0!==n&&null!==(r=n.rent)&&void 0!==r&&r.paid_for_insurer&&o.push(l.a.createElement("span",{key:"garantido",style:{background:"#FFE38C",color:"#3F6281",padding:"2px 8px",borderRadius:4,fontSize:12,whiteSpace:"nowrap"}},"Garantido")),null!==e&&void 0!==e&&e.anticipated&&o.push(l.a.createElement("span",{key:"antecipado",style:{background:"#B5F8A4",color:"#3F6281",padding:"2px 8px",borderRadius:4,fontSize:12,whiteSpace:"nowrap"}},"Antecipado"));var a="termination"===(null===e||void 0===e?void 0:e.type)?"Rescis\xe3o":"agreement"===(null===e||void 0===e?void 0:e.type)?"Acordo":"Aluguel";return l.a.createElement.apply(l.a,["div",{style:{display:"flex",flexWrap:"wrap",gap:4,alignItems:"center"}},l.a.createElement("span",{style:{color:"#6F8EAA"}},a)].concat(o))},j=function(e){var t,n,r,o=null===e||void 0===e||null===(t=e.contract)||void 0===t||null===(n=t.entity)||void 0===n||null===(r=n.property)||void 0===r?void 0:r.address;if(!o)return"";var a=o.complement?" - ".concat(o.complement):"";return"".concat(o.street,", ").concat(o.number).concat(a," - ").concat(o.neighbourhood," - ").concat(o.city,"/").concat(o.state)};function h(e){return m.apply(this,arguments)}function m(){return(m=Object(a.a)(o.a.mark((function e(t){var n,r,a,i,l,c,f,h,m,y,x;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.extratos,r=t.isMobile,a=t.router,i=t.activeTab,l=[],c=[],n){e.next=5;break}return e.abrupt("return",{headers:l,rows:c});case 5:f="recebido"===i,h="futuro"===i,l.push({text:"Tipo",width:135}),l.push({text:"Contrato",width:135}),l.push({text:"Im\xf3vel",width:451}),l.push({text:"Valor",width:137}),f&&l.push({text:"Transferido",width:137}),h&&(l.push({text:"Vencimento",width:137}),l.push({text:"Cobran\xe7a",width:137})),m=v(n),e.prev=14,x=function(){var e,t,n,o=y.value,i=[],l=null!==(e=null===o||void 0===o||null===(t=o.contract)||void 0===t||null===(n=t.entity)||void 0===n?void 0:n.friendly_code)&&void 0!==e?e:"--",v=j(o),m=Object(u.D)((null===o||void 0===o?void 0:o.split_value)||"0.00"),x=null===o||void 0===o?void 0:o.property_announcement_id,O=null===o||void 0===o?void 0:o.contract_id,g=b(o,f);if(!r){if(i.push({type:d.f.custom,content:g}),i.push({type:d.f.text,text:l,customStyle:{color:"#339AF0"},onClick:function(){return a.push("/contrato/painel/".concat(O))}}),i.push({type:d.f.text,text:v,tooltip:!0,customStyle:{color:"#339AF0"},onClick:function(){return a.push("/area/responsavel/imovel/".concat(x))}}),i.push({type:d.f.text,text:m,customStyle:{color:"#6F8EAA"}}),f){var _,w=null===o||void 0===o||null===(_=o.transfered_landlord)||void 0===_?void 0:_.transfered_on,S=w?s()(w).format("DD/MM/YYYY"):"--",C=w?s()(w).format("HH:mm:ss"):"--";i.push({type:d.f.text,text:"".concat(S," ").concat(C)})}if(h){var A=null===o||void 0===o?void 0:o.due_date,k=s()(A).format("DD/MM/YYYY"),N=s()(A).format("HH:mm:ss");i.push({type:d.f.text,text:"".concat(k," ").concat(N)}),i.push({type:d.f.actions,buttons:[{icon:p.vc,onClick:function(){var e;return window.open(null===o||void 0===o||null===(e=o.boleto)||void 0===e?void 0:e.pdf_url)}}]})}return c.push(i),"continue"}if(i.push({type:d.f.custom,content:g,mobileLineNumber:1}),i.push({type:d.f.text,text:l,customStyle:{color:"#339AF0"},onClick:function(){return a.push("/contrato/painel/".concat(O))},mobileLineNumber:1,mobileFontSize:d.h.boldMedio}),i.push({type:d.f.text,text:v,tooltip:!0,customStyle:{color:"#339AF0"},onClick:function(){return a.push("/area/responsavel/imovel/".concat(x))},mobileLineNumber:2}),i.push({type:d.f.text,text:m,customStyle:{color:"#6F8EAA",fontWeight:"700"},mobileLineNumber:3}),f){var E,F=null===o||void 0===o||null===(E=o.transfered_landlord)||void 0===E?void 0:E.transfered_on,I=F?s()(F).format("DD/MM/YYYY"):"--",T=F?s()(F
1).format("HH:mm:ss"):"--";i.push({type:d.f.text,text:I,mobileLineNumber:3}),i.push({type:d.f.text,text:T,mobileLineNumber:3})}if(h){var D=null===o||void 0===o?void 0:o.due_date;i.push({type:d.f.text,text:s()(D).format("DD/MM/YYYY"),mobileLineNumber:3}),i.push({type:d.f.actions,mobileLineNumber:3,mobileButtons:[{icon:p.vc,onClick:function(){var e;return window.open(null===o||void 0===o||null===(e=o.boleto)||void 0===e?void 0:e.pdf_url)}}]})}c.push(i)},m.s();case 17:if((y=m.n()).done){e.next=23;break}if("continue"!==x()){e.next=21;break}return e.abrupt("continue",21);case 21:e.next=17;break;case 23:e.next=28;break;case 25:e.prev=25,e.t0=e.catch(14),m.e(e.t0);case 28:return e.prev=28,m.f(),e.finish(28);case 31:return e.abrupt("return",{headers:l,rows:c});case 32:case"end":return e.stop()}}),e,null,[[14,25,28,31]])})))).apply(this,arguments)}}},[["DitX",0,1,5,7,6,12,16,13,17,21,43,2,3,4,8,9,10,11,14,15]]]);
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.