1"use strict";(self["webpackChunkpwa_connect_pwa"]=self["webpackChunkpwa_connect_pwa"]||[]).push([[2512],{12249:function(t,s,a){a.d(s,{A:function(){return o}});var e=function(){var t=this,s=t._self._c;return s("div",{staticClass:"icon-container",style:t.iconStyle},["monitorhub"===t.icon?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"}},[s("path",{attrs:{d:"M20.7134 4.90258C16.8371 1.02632 10.8317 0.589564 6.47498 3.59229L10.1547 7.272C12.4368 6.1801 15.2539 6.57319 17.1429 8.46218C19.5341 10.8534 19.5341 14.7406 17.1429 17.1319C14.7516 19.5231 10.8644 19.5231 8.47316 17.1319C6.58417 15.2429 6.19109 12.4258 7.28299 10.1437L3.60328 6.46399C0.60055 10.8207 1.03731 16.8261 4.91356 20.7024C8.78981 24.5786 16.3567 25.07 20.7243 20.7024C25.0919 16.3348 25.0919 9.25927 20.7243 4.89166H20.7134V4.90258Z",fill:"#35CCA3"}}),s("path",{attrs:{d:"M6.47498 3.59235L2.88262 0L0 2.88262L3.59236 6.47498C3.97452 5.91811 4.41128 5.39399 4.90264 4.90263C5.39399 4.41128 5.91811 3.97452 6.47498 3.59235Z",fill:"#35CCA3"}}),s("path",{attrs:{d:"M8.47309 17.1429C10.8644 19.5341 14.7515 19.5341 17.1428 17.1429C19.5341 14.7516 19.5341 10.8644 17.1428 8.47315C15.2538 6.58416 12.4367 6.19107 10.1546 7.28298L6.47491 3.60327C5.91804 3.98544 5.39392 4.4222 4.90257 4.91355C4.41121 5.40491 3.97445 5.92902 3.59229 6.48589L7.272 10.1656C6.18009 12.4477 6.57318 15.2648 8.46217 17.1538H8.47309V17.1429Z",fill:"#1E293B"}})]):t._e(),"connecthub"===t.icon?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"}},[s("path",{attrs:{d:"M10.3669 8H15.9897V2.36693C15.9897 1.05427 14.9251 0 13.6227 0H2.36692C1.0646 0 0 1.0646 0 2.36693V13.6227C0 14.9354 1.0646 15.9897 2.36692 15.9897H7.98966V10.3566C7.98966 9.04394 9.05426 7.98967 10.3566 7.98967L10.3669 8Z",fill:"#35CCA3"}}),s("path",{attrs:{d:"M21.6227 8H15.9999V13.6331C15.9999 14.9457 14.9353 16 13.633 16H8.01025V21.6331C8.01025 22.9457 9.07485 24 10.3772 24H21.633C22.9353 24 23.9999 22.9354 23.9999 21.6331V10.3773C23.9999 9.0646 22.9353 8.01033 21.633 8.01033L21.6227 8Z",fill:"#35CCA3"}}),s("path",{attrs:{d:"M15.9999 13.6331V8H10.3772C9.07485 8 8.01025 9.0646 8.01025 10.3669V16H13.633C14.9353 16 15.9999 14.9354 15.9999 13.6331Z",fill:"#1E293B"}})]):t._e(),"xmlhub"===t.icon?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"}},[s("path",{attrs:{d:"M3.60166 12.0001C3.60166 7.36963 7.35845 3.61768 11.9949 3.61768V12.0001H3.59131H3.60166Z",fill:"#35CCA3"}}),s("path",{attrs:{d:"M2.06986 12H3.60155C3.60155 16.6305 7.35834 20.3824 11.9948 20.3824C16.6313 20.3824 20.3881 16.6305 20.3881 12C20.3881 7.36952 16.6313 3.61757 11.9948 3.61757V2.06718C11.9948 0.930233 12.9159 0 14.0647 0H20.4502C22.4166 0 24 1.59173 24 3.55556V20.4445C24 22.4083 22.4062 24 20.4502 24H3.54981C1.58344 24 0 22.4083 0 20.4445V17.54V17.2713V14.0569C0 12.9199 0.921087 11.9897 2.06986 11.9897V12Z",fill:"#35CCA3"}}),s("path",{attrs:{d:"M20.3881 12.0001C20.3881 16.6306 16.6313 20.3825 11.9948 20.3825C7.35836 20.3825 3.60156 16.6306 3.60156 12.0001H12.0052V3.61768C16.6417 3.61768 20.3985 7.36962 20.3985 12.0001H20.3881Z",fill:"#1E293B"}})]):t._e(),"taskhub"===t.icon?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"}},[s("path",{attrs:{d:"M4.2931 6.37581C4.2931 6.2827 4.2931 6.19995 4.31379 6.11719H1.72758C0.77586 6.11719 0 6.89304 0 7.84477V17.1448C0 18.0965 0.77586 18.8724 1.72758 18.8724H4.31379C4.31379 18.7896 4.2931 18.6965 4.2931 18.6137V6.37581Z",fill:"#35CCA3"}}),s("path",{attrs:{d:"M11.0793 4.85511C11.0793 4.59649 11.1207 4.33788 11.1828 4.0896H6.56898C5.40002 4.0896 4.43795 4.96891 4.30347 6.10684H6.12415C7.07588 6.10684 7.85174 6.8827 7.85174 7.83442V17.1344C7.85174 18.0861 7.07588 18.862 6.12415 18.862H4.30347C4.43795 19.9999 5.40002 20.8792 6.56898 20.8792H11.1828C11.1207 20.6413 11.0793 20.3827 11.0793 20.1137V4.84475V4.85511Z",fill:"#35CCA3"}}),s("path",{attrs:{d:"M7.86218 17.1448V7.84477C7.86218 6.89304 7.08632 6.11719 6.13459 6.11
1719H4.3139C4.3139 6.19995 4.29321 6.29305 4.29321 6.37581V18.6137C4.29321 18.7068 4.29321 18.7896 4.3139 18.8724H6.13459C7.08632 18.8724 7.86218 18.0965 7.86218 17.1448Z",fill:"#1E293B"}}),s("path",{attrs:{d:"M21.1553 2.01035H13.9242C12.6208 2.01035 11.5242 2.88968 11.1829 4.08968H12.3725C13.6346 4.08968 14.6484 5.11381 14.6484 6.36554V18.6035C14.6484 19.8655 13.6242 20.8793 12.3725 20.8793H11.1829C11.5139 22.0793 12.6104 22.9586 13.9242 22.9586H21.1553C22.7277 22.9586 24.0001 21.6862 24.0001 20.1138V4.84483C24.0001 3.27241 22.7277 2 21.1553 2V2.01035Z",fill:"#35CCA3"}}),s("path",{attrs:{d:"M14.6483 18.6137V6.37572C14.6483 5.11365 13.6242 4.09985 12.3724 4.09985H11.1828C11.1207 4.33778 11.0793 4.59642 11.0793 4.86539V20.1343C11.0793 20.393 11.1207 20.6516 11.1828 20.8999H12.3724C13.6345 20.8999 14.6483 19.8757 14.6483 18.624V18.6137Z",fill:"#1E293B"}})]):t._e(),"general"===t.icon?s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"}},[s("path",{attrs:{d:"M1 9.77334C1 8.83068 1.44308 7.94283 2.19635 7.37609L10.1963 1.35703C11.2645 0.553376 12.7355 0.553377 13.8037 1.35703L21.8037 7.37609C22.5569 7.94284 23 8.83068 23 9.77335V21C23 22.6569 21.6569 24 20 24H4C2.34315 24 1 22.6569 1 21V9.77334Z",fill:"#35CCA3"}}),s("path",{attrs:{d:"M8 15C8 13.8954 8.89543 13 10 13H14C15.1046 13 16 13.8954 16 15V24H8V15Z",fill:"#1E293B"}})]):t._e(),"checkup360"===t.icon?s("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{d:"M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z",fill:"#2FB490"}}),s("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.5031 12V12C19.5031 16.1439 16.1439 19.5031 12 19.5031V19.5031C7.85614 19.5031 4.49688 16.1439 4.49688 12V12C4.49688 7.85615 7.85614 4.49689 12 4.49689V4.49689C13.99 4.49689 15.8984 5.28739 17.3055 6.6945C18.7126 8.10161 19.5031 10.0101 19.5031 12V12Z",stroke:"#1E293B","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"}}),s("path",{attrs:{d:"M4.49688 12H7.73572L9.41559 9.48813L11.6482 14.5119L13.3189 12H1
15.5515",stroke:"#1E293B","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"}})]):t._e()])},i=[],l={props:{size:{type:String,default:"24"},icon:{type:String,required:!0}},computed:{iconStyle(){return{width:this.size+"px",height:this.size+"px"}}}},r=l,c=a(81656),n=(0,c.A)(r,e,i,!1,null,"727cd0f7",null),o=n.exports},84006:function(t,s,a){a.d(s,{A:function(){return d}});var e=function(){var t=this,s=t._self._c;return s("div",{staticClass:"status-badge",class:[t.variant,{hoverable:t.hoverable,clickable:t.clickable}]},[t.loading?s("LoadingCircle"):t._e(),t._t("default")],2)},i=[],l=a(40793),r={components:{LoadingCircle:l.A},props:{variant:{type:String,required:!1,default:"neutral"},loading:{type:Boolean,required:!1,default:!1},hoverable:{type:Boolean,required:!1,default:!1},clickable:{type:Boolean,required:!1,default:!1}}},c=r,n=a(81656),o=(0,n.A)(c,e,i,!1,null,"7287fe38",null),d=o.exports},22512:function(t,s,a){a.r(s),a.d(s,{default:function(){return nt}});var e=function(){var t=this,s=t._self._c;return t.showPage?s("div",{staticClass:"main-container"},[t.reportLoading?s("div",{staticClass:"d-flex justify-content-center align-items-center h-100 w-100"},[s("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",gap:"12px"}},[s("LoadingCircle",{attrs:{width:34,height:34}}),s("h4",{staticClass:"h4-hub loading-text text-center",staticStyle:{color:"#64748BFF"}},[t._v(t._s(t.text))])],1)]):[s("div",{staticClass:"header"},[s("div",{staticClass:"product-container"},[s("div",{staticClass:"product-logo"},[s("ProductLogo",{attrs:{icon:"checkup360",size:"36"}}),t._m(0)],1)])]),s("div",{staticClass:"reports-container"},[s("div",{staticClass:"body-report"},[s("PGDAsReport",{staticClass:"first",attrs:{"simples-data-off":t.simplesDataOff,data:t.simplesData}}),s("div",{staticClass:"second column"},[s("DCTFWEBReport",{attrs:{"dctfweb-data-off":t.dctfwebDataOff,data:t.dctfwebData}}),s("InstallmentsReport",{attrs:{data:t.instsData}}),s("MailBoxReport",{attrs:{"mail-box-off":t.mailBoxOff,data:t.mailboxesData,"client-side":!0}})],1),s("div",{staticClass:"third column"},[s("FiscalReport",{attrs:{"fiscal-off":t.fiscalOff,data:t.fiscalReport}}),s("CertificatesReport",{attrs:{"certs-off":t.certficatesOff,data:t.certificatesData}})],1)],1)])]],2):t._e()},i=[function(){var t=this,s=t._self._c;return s("p",{staticClass:"text-link"},[t._v("checkup"),s("span",{staticClass:"number"}
1,[t._v("360")])])}],l=(a(44114),a(98992),a(54520),a(81454),a(58335),a(40793)),r=a(12249),c=function(){var t=this,s=t._self._c;return s("div",{staticClass:"report-container"},[s("div",{staticClass:"report"},[t._m(0),s("div",{staticClass:"messages-list"},[t.certsOff?[s("EmptyCollectionRow",[s("Icon",{attrs:{icon:"help-center",color:"secondary"}}),s("p",{staticClass:"p mb-0 text-color-secondary"},[t._v("Sem dados para reportar")])],1)]:[t._l(t.data.list,function(a,e){return[a.name?s("div",{key:e,staticClass:"status-container"},[s("p",{staticClass:"type"},[t._v(t._s(a.name))]),s("div",{staticClass:"d-flex",staticStyle:{gap:"8px"}},[t.data.lastProcess?s("StatusBadge",{staticStyle:{padding:"6px 8px"},attrs:{variant:"neutral"}},[t._v(t._s(t.formatLastProcess(t.data.lastProcess)))]):t._e(),a.pending?s("StatusBadge",{attrs:{variant:"status-warning"}},[t._v("Pendências")]):s("StatusBadge",{attrs:{variant:"status-success"}},[t._v("Regular")])],1)]):t._e()]})]],2)])])},n=[function(){var t=this,s=t._self._c;return s("div",{staticClass:"header"},[s("p",{staticClass:"title"},[t._v("Certidões")])])}],o=a(84006),d=function(){var t=this,s=t._self._c;return s("div",{staticClass:"empty-row"},[t._t("default")],2)},u=[],p=a(81656),h={},f=(0,p.A)(h,d,u,!1,null,"35e199b0",null),v=f.exports,m=a(80816),C={components:{StatusBadge:o.A,EmptyCollectionRow:v,Icon:m.A},props:{certsOff:{type:Boolean},data:{type:Object}},data:()=>({}),methods:{formatLastProcess(t){return t.replaceAll("-","/")}}},g=C,_=(0,p.A)(g,c,n,!1,null,"5aa48266",null),b=_.exports,y=function(){var t=this,s=t._self._c;return s("div",{staticClass:"report-container"},[s("div",{staticClass:"report"},[t._m(0),s("div",{staticClass:"body"},[t.dctfwebDataOff?[s("EmptyCollectionRow",[s("Icon",{attrs:{icon:"help-center",color:"secondary"}}),s("p",{staticClass:"p mb-0 text-color-secondary"},[t._v("Sem dados para reportar")])],1)]:[t.data.lastDeclaration?s("div",{staticClass:"declaration-container"},[s("p",{staticClass:"dec-text"},[t._v("Ãltima declaração")]),s("p",{staticClass:"dec-date"},[t._v(t._s(t.data.lastDeclaration))])]):t._e(),s("div",{staticClass:"payments-container"},[s("div",{staticClass:"status-container"},[s("p",{staticClass:"st-text"},[t._v("Pagamento")]),s("StatusBadge",{attrs:{variant:t.data.status.color}},[t._v(t._s(t.data.status.info))])],1),t.data.list.length>0?s("div",{staticClass:"pendings-list"},t._l(t.data.list,function(a,e){return s("div",{key:e,staticClass:"pending-item"},[s("div",{staticClass:"pending-info"},[s("div",{staticClass:"dot"}),s("p",{staticClass:"month"},[t._v(t._s(a.paymentNumber)+"/"+t._s(a.yearCollection))])]),s("p",{staticClass:"pending-value"},[t._v("R$ "+t._s(a.value))])])}),0):t._e()])]],2)])])},w=[function(){var t=this,s=t._self._c;return s("div",{staticClass:"header"},[s("p",{staticClass:"title"},[t._v("DCTFWeb")])])}],P={components:{StatusBadge:o.A,EmptyCollectionRow:v,Icon:m.A},props:{dctfwebDataOff:{type:Boolean},data:{type:Object}},data:()=>({lastProcess:""}),mounted(){this.populateDate()},methods:{populateDate(){this.lastProcess=this.data.lastProcess.replaceAll("-","/")}}},R=P,A=(0,p.A)(R,y,w,!1,null,"96ba516e",null),S=A.exports,D=function(){var t=this,s=t._self._c;return s("div",{staticClass:"report-container"},[s("div",{staticClass:"report"},[t._m(0),s("div",{staticClass:"messages-list"},[t.fiscalOff?[s("EmptyCollectionRow",[s("Icon",{attrs:{icon:"help-center",color:"secondary"}}),s("p",{staticClass:"p mb-0 text-color-secondary"},[t._v("Sem dados para reportar")])],1)]:t._l(t.data.list,function(a,e){return s("div",{key:e,staticClass:"status-container"},[s("p",{staticClass:"type"},[t._v(t._s(a.name))]),a.regular?s("StatusBadge",{attrs:{variant:"status-success"}},[t._v("Regular")]):s("StatusBadge",{attrs:{variant:"status-warning"}},[t._v("Pendências")])],1)})],2)])])},B=[function(){var t=this,s=t._self._c;return s("div",{staticClass:"header"},[s("p",{staticClass:"title"},[t._v("Relatório Fiscal")])])}],x={components:{StatusBadge:o.A,EmptyCollectionRow:v,Icon:m.A},props:{fiscalOff:{type:Boolean},data:{type:Object}},data:()=>({lastProcess:null}),mounted(){this.populateDate()},methods:{populateDate(){this.lastProcess=this.data.lastProcess?this.data.lastProcess.replaceAll("-","/"):null}}},I=x,F=(0,p.A)(I,D,B,!1,null,"8b59d958",null),O=F.exports,E=function(){var t=this,s=t._self._c;return s("div",{staticClass:"report-container"},[s("div",{staticClass:"report"},[t._m(0),s("div",{staticClass:"installments-container"},[t.noInstallments?[s("EmptyCollectionRow",[s("Icon",{attrs:{icon:"help-center",color:"secondary"}}),s("p",{staticClass:"p mb-0 text-color-secondary"},[t._v("Sem dados para reportar")])],1)]:[t.data.simples.lastProcess?s("div",{staticClass:"instalments-with-status"},[s("div",{staticClass:"inst-header"},[s("p",{staticClass:"title"},[t._v("Simples Nacional")]),s("StatusBadge",{attrs:{variant:"slate"}},[t._v(t._s(t.formatLastProcess(t.data.simples.lastProcess)))])],1),s("div",{staticClass:"status-list"},t._l(t.data.simples.list,function(a,e){return s("div",{key:e,staticClass:"status-container"},[s("p",{staticClass:"type"},[t._v(t._s(a.name.toUpperCase()))]),0===a.amount?s("StatusBadge",{attrs:{variant:"status-success"}},[t._v("Em dia")]):s("StatusBadge",{attrs:{variant:"status-warning"}},[t._v(t._s(a.amount)+" pendências")])],1)}),0)]):t._e(),t.data.pgfn.lastProcess?s("div",{staticClass:"instalments-with-processes"},[s("div",{staticClass:"inst-header"},[s("p",{staticClass:"title"},[t._v("PGFN")]),s("StatusBadge",{attrs:{variant:"slate"}},[t._v(t._s(t.formatLastProcess(t.data.pgfn.lastProcess)))])],1),s("div",{staticClass:"inst-list"},t._l(t.data.pgfn.list,function(a,e){return s("div",{key:e,staticClass:"process-container"},[s("div",{staticClass:"process-status"},[s("p",{staticClass:"process"},[t._v("Processo "+t._s(a.refCode))]),s("StatusBadge",{attrs:{variant:a.status.color}}
1,[t._v(t._s(a.status.info))])],1),s("p",{staticClass:"description"},[t._v("Parcela atual: "),s("strong",[t._v(t._s(a.currentParcels)+" "),a.amountParcels?[t._v("de "+t._s(a.amountParcels))]:t._e()],2)])])}),0)]):t._e(),t.data.receita.lastProcess?s("div",{staticClass:"instalments-with-processes"},[s("div",{staticClass:"inst-header"},[s("p",{staticClass:"title"},[t._v("Receita")]),s("StatusBadge",{attrs:{variant:"slate"}},[t._v(t._s(t.formatLastProcess(t.data.receita.lastProcess)))])],1),s("div",{staticClass:"inst-list"},t._l(t.data.receita.list,function(a,e){return s("div",{key:e,staticClass:"process-container"},[s("div",{staticClass:"process-status"},[s("p",{staticClass:"process"},[t._v("Processo "+t._s(a.refCode))]),s("StatusBadge",{attrs:{variant:a.status.color}},[t._v(t._s(a.status.info))])],1),t._l(a.types,function(a,e){return s("p",{key:e,staticClass:"description"},[t._v(" "+t._s(a.name)+" - Parcela atual: "),s("strong",[t._v(t._s(a.currentParcels))])])})],2)}),0)]):t._e(),t.data.especial.lastProcess?s("div",{staticClass:"instalments-with-processes"},[s("div",{staticClass:"inst-header"},[s("p",{staticClass:"title"},[t._v("Especiais")]),s("StatusBadge",{attrs:{variant:"slate"}},[t._v(t._s(t.formatLastProcess(t.data.especial.lastProcess)))])],1),s("div",{staticClass:"inst-list"},t._l(t.data.especial.list,function(a,e){return s("div",{key:e,staticClass:"process-container"},[s("div",{staticClass:"process-status"},[s("p",{staticClass:"process"},[t._v("Processo "+t._s(a.refCode))]),s("StatusBadge",{attrs:{variant:a.status.color}},[t._v(t._s(a.status.info))])],1),s("p",{staticClass:"description"},[t._v("Parcela atual: "),s("strong",[t._v(t._s(a.currentParcels)+" "),a.amountParcels?[t._v("de "+t._s(a.amountParcels))]:t._e()],2)])])}),0)]):t._e()]],2)])])},k=[function(){var t=this,s=t._self._c;return s("div",{staticClass:"header"},[s("p",{staticClass:"title"},[t._v("Parcelamentos")])])}],L={components:{StatusBadge:o.A,EmptyCollectionRow:v,Icon:m.A},props:{data:{type:Object}},data:()=>({noInstallments:!1}),mounted(){this.checkInstallments()},methods:{checkInstallments(){this.data.simples.lastProcess||this.data.pgfn.lastProcess||this.data.receita.lastProcess||this.data.especial.lastProcess||(this.noInstallments=!0)},formatLastProcess(t){return t.replaceAll("-","/")}}},$=L,M=(0,p.A)($,E,k,!1,null,"281820e4",null),V=M.exports,T=function(){var t=this,s=t._self._c;return s("div",{staticClass:"report-container"},[s("div",{staticClass:"report"},[t._m(0),s("div",{staticClass:"messages-list"},[t.mailBoxOff?[s("EmptyCollectionRow",[s("Icon",{attrs:{icon:"help-center",color:"secondary"}}),s("p",{staticClass:"p mb-0 text-color-secondary"},[t._v("Sem dados para reportar")])],1)]:[t.clientSide?t._e():s("div",{staticClass:"status-container"},[s("p",{staticClass:"type"},[t._v("Mensagens")]),t.data.pendingsQuantity>0?s("StatusBadge",{attrs:{variant:"status-warning"}},[t._v(t._s(t.data.pendingsQuantity)+" não lidas")]):s("StatusBadge",{attrs:{variant:"status-success"}},[t._v("Regular")])],1),s("div",{staticClass:"status-container"},[s("p",{staticClass:"type"},[t._v("Malha Fiscal")]),t.mail["Malha Fiscal"]?s("StatusBadge",{attrs:{variant:"status-warning"}},[t._v(t._s(t.mail["Malha Fiscal"])+" pendências")]):s("StatusBadge",{attrs:{variant:"status-success"}},[t._v("Regular")])],1),s("div",{staticClass:"status-container"},[s("p",{staticClass:"type"},[t._v("Termo de Exclusão")]),t.mail["Termo de Exclusão"]?s("StatusBadge",{attrs:{variant:"status-warning"}},[t._v(t._s(t.mail["Termo de Exclusão"])+" pendências")]):s("StatusBadge",{attrs:{variant:"status-success"}},[t._v("Regular")])],1),s("div",{staticClass:"status-container"},[s("p",{staticClass:"type"},[t._v("PRONAMPE")]),t.mail["PRONAMPE"]?s("StatusBadge",{attrs:{variant:"status-warning"}},[t._v(t._s(t.mail["PRONAMPE"])+" pendências")]):s("StatusBadge",{attrs:{variant:"status-success"}},[t._v("Regular")])],1),s("div",{staticClass:"status-container"},[s("p",{staticClass:"type"},[t._v("Termo de Intimação")]),t.mail["Termo de Intimação"]?s("StatusBadge",{attrs:{variant:"status-warning"}},[t._v(t._s(t.mail["Termo de Intimação"])+" pendências")]):s("StatusBadge",{attrs:{variant:"status-success"}},[t._v("Regular")])],1)]],2)])])},H=[function(){var t=this,s=t._self._c;return s("div",{staticClass:"header"},[s("p",{staticClass:"title"},[t._v("Mensagens e-CAC")])])}],Z={components:{StatusBadge:o.A,EmptyCollectionRow:v,Icon:m.A},props:{mailBoxOff:{type:Boolean},data:{type:Object},clientSide:{type:Boolean}},data:()=>({mail:{}}),mounted(){this.mail=this.data.mails},methods:{formatLastProcess(t){return t.replaceAll("-","/")}}},z=Z,G=(0,p.A)(z,T,H,!1,null,"3e922d7a",null),j=G.exports,N=function(){var t=this,s=t._self._c;return s("div",{staticClass:"report-container"},[s("div",{staticClass:"report"},[t._m(0),s("div",{staticClass:"body"},[t.simplesDataOff?[s("EmptyCollectionRow",[s("Icon",{attrs:{icon:"help-center",color:"secondary"}}),s("p",{staticClass:"p mb-0 text-color-secondary"},[t._v("Sem dados para reportar")])],1)]:[s("div",{staticClass:"declaration-container"},[s("p",{staticClass:"dec-text"},[t._v("Ãltima declaração")]),s("p",{staticClass:"dec-date"},[t._v(t._s(t.data.lastDeclaration))])]),s("div",{staticClass:"status-container"},[s("p",{staticClass:"st-text"},[t._v("Pagamento")]),t.data.paymentPending?s("StatusBadge",{attrs:{variant:"status-warning"}},[t._v("Pendências")]):s("StatusBadge",{attrs:{variant:"status-success"}},[t._v("Em dia")])],1),t._m(1),s("div",{staticClass:"sub-limit-container"},[s("p",{staticClass:"sub-text"},[t._v("Receita")]),s("div",{staticClass:"progressive-bar-container"},[s("SelectSublimit",{staticStyle:{"margin-bottom":"16px"},attrs:{items:t.sublimitTypesOptions,placeholder:"Selecione"},on:{input:t.calculateLimitsPorcentage},model:{value:t.sublimitType,callback:function(s){t.sublimitType=s},expression:"sublimitType"}}),s("div",{staticClass:"bar-container"},[t._m(2),s("div",{staticClass:"bar-body"},[s("div",{staticClass:"bar-content",style:{width:t.currentPorcentage+"%",backgroundColor:t.barColor}})]),s("div",{staticClass:"porcentage-container",style:{width:t.legendSize+"%"}},[s("p",{staticClass:"porcentage"}
1,[t._v(t._s(t.currentPorcentage)+"%")])])])],1)]),t._m(3),s("div",{staticClass:"billing-body"},[t._m(4),s("div",{staticClass:"revenues-list"},[t.data.RPA?s("div",{staticClass:"rev-container"},[s("div",{staticClass:"types-and-values"},[s("p",{staticClass:"type"},[t._v("RPA")]),s("p",{staticClass:"values"},[t._v("R$ "+t._s(t.data.RPA))])]),s("p",{staticClass:"description"},[t._v("Receita do perÃodo anterior")])]):t._e(),t.data.RBAA?s("div",{staticClass:"rev-container"},[s("div",{staticClass:"types-and-values"},[s("p",{staticClass:"type"},[t._v("RBAA")]),s("p",{staticClass:"values"},[t._v("R$ "+t._s(t.data.RBAA))])]),s("p",{staticClass:"description"},[t._v("Receita bruta do ano anterior")])]):t._e(),t.data.RBA?s("div",{staticClass:"rev-container"},[s("div",{staticClass:"types-and-values"},[s("p",{staticClass:"type"},[t._v("RBA")]),s("p",{staticClass:"values"},[t._v("R$ "+t._s(t.data.RBA))])]),s("p",{staticClass:"description"},[t._v("Receita bruta do ano atual")])]):t._e(),t.data.RBT12?s("div",{staticClass:"rev-container"},[s("div",{staticClass:"types-and-values"},[s("p",{staticClass:"type"},[t._v("RBT12")]),s("p",{staticClass:"values"},[t._v("R$ "+t._s(t.data.RBT12))])]),s("p",{staticClass:"description"},[t._v("Receita bruta dos últimos 12 meses")])]):t._e()]),t.data.annualGrowth?[t._m(5),s("div",{staticClass:"growth-container"},[s("div",{staticClass:"year-and-value"},[s("p",{staticClass:"year"},[t._v(t._s(t.lastYear))]),s("p",{staticClass:"value"},[t._v("R$ "+t._s(t.data.RBAA))])]),s("div",{staticClass:"year-and-value"},[s("p",{staticClass:"year"},[t._v(t._s(t.currentYear))]),s("p",{staticClass:"value"},[t._v("R$ "+t._s(t.data.RBA))])]),s("div",{staticClass:"result-growth"},[s("p",{staticClass:"text-growth"},[t._v("Resultado")]),t.data.annualGrowth>1?s("div",{staticClass:"value-container"},[s("p",{staticClass:"value"},[t._v(t._s(t.data.annualGrowth)+" %")])]):s("div",{staticClass:"value-container negative"},[s("p",{staticClass:"value"},[t._v(t._s(t.data.annualGrowth)+" %")])])])])]:t._e(),t.rpaCalcs&&t.rpaCalcs.montlyGrowth?[t._m(6),s("div",{staticClass:"growth-container"},[s("div",{staticClass:"year-and-value"},[s("p",{staticClass:"year"},[t._v(t._s(t.rpaCalcs.secondLatest.period))]),s("p",{staticClass:"value"},[t._v("R$ "+t._s(t.rpaCalcs.secondLatest.value))])]),s("div",{staticClass:"year-and-value"},[s("p",{staticClass:"year"},[t._v(t._s(t.rpaCalcs.lastest.period))]),s("p",{staticClass:"value"},[t._v("R$ "+t._s(t.rpaCalcs.lastest.value))])]),s("div",{staticClass:"result-growth"},[s("p",{staticClass:"text-growth"},[t._v("Resultado")]),t.rpaCalcs.montlyGrowth>1?s("div",{staticClass:"value-container"},[s("p",{staticClass:"value"},[t._v(t._s(t.rpaCalcs.montlyGrowth)+" %")])]):s("div",{staticClass:"value-container negative"},[s("p",{staticClass:"value"},[t._v(t._s(t.rpaCalcs.montlyGrowth)+" %")])])])])]:t._e()],2)]],2)])])},q=[function(){var t=this,s=t._self._c;return s("div",{staticClass:"header"},[s("p",{staticClass:"title"},[t._v("PGDAS")])])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"sub-limit-header"},[s("p",{staticClass:"header-text"},[t._v("Sublimite e Limite")])])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"bar-legend"},[s("div",{staticClass:"legend-info",staticStyle:{width:"70%"}},[s("p",{staticClass:"info"},[t._v("R$ 3.6 mi")]),s("div",{staticClass:"line"})]),s("div",{staticClass:"legend-info",staticStyle:{width:"29.5%"}},[s("p",{staticClass:"info"},[t._v("R$4.8 mi")]),s("div",{staticClass:"line"})])])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"billing-header"},[s("p",{staticClass:"header-text"},[t._v("Análise de Faturamento")])])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"body-titles"},[s("p",{staticClass:"title"},[t._v("Receitas")])])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"body-titles"},[s("p",{staticClass:"title"},[t._v("Crescimento Anual")])])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"body-titles"},[s("p",{staticClass:"title"},[t._v("Crescimento Mensal")])])}],Q=function(){var t=this,s=t._self._c;return s("div",{staticClass:"d-flex flex-column"},[t.label?[s("label",{staticClass:"menu-sm text-color-subtle",style:{color:t.colorLabel,alignSelf:t.align}},[t._v(t._s(t.label))])]:t._e(),s("div",{staticClass:"dropdown",attrs:{tabindex:"0"}},[s("button",{staticClass:"task-dropdown-button text-secondary w-100",attrs:{type:"button"},on:{click:t.toggleDropdown}},[s("div",{staticClass:"inner-cont d-flex w-100"},[s("span",{staticClass:"val-name"},[t._v(t._s(t.displayValue))]),s("span",{staticClass:"val-number"},[t._v(t._s(t.displaySecondVal))])]),s("i",{staticClass:"fa-solid fa-chevron-down"})]),s("Transition",{attrs:{name:"popup"}},[t.isOpen?s("div",{staticClass:"dropdown-menu",class:{"w-100":t.enableSearch}},[t.enableSearch?s("input",{directives:[{name:"model",rawName:"v-model",value:t.searchQuery,expression:"searchQuery"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Filtrar..."},domProps:{value:t.searchQuery},on:{input:function(s){s.target.composing||(t.searchQuery=s.target.value)}}}):t._e(),t._l(t.filteredItems,function(a){return s("div",{key:a.id,staticClass:"dropdown-item",on:{click:function(s){t.updateSelection(a.id),t.toggleDropdown()}}},[s("span",{staticClass:"menu-sm"},[t._v(t._s(t.truncateName(a.name)))])])})],2):t._e()])],1)],2)},Y=[],W=(a(72577),{props:{items:{type:Array,required:!0},value:{required:!0},enableSearch:{type:Boolean,required:!1,default:!1},placeholder:{type:String,required:!1,default:"Selecione uma opção"},label:{type:String,required:!1,default:null},colorLabel:{type:String,default:null},align:{type:String,default:""},displayLength:{type:Number,required:!1,default:60}},data(){return{isOpen:!1,searchQuery:"",selectedItem:null,hoveredItem:null}},computed:{displayValue(){return this.selectedItem&&this.selectedItem.name?this.selectedItem.name.length>this.displayLength?this.selectedItem.name.slice(0,this.displayLength-3)+"...":this.selectedItem.name:this.placeholder},displaySecondVal(){return this.selectedItem&&this.selectedItem.value?this.selectedItem.value.length>this.displayLength?this.selectedItem.value.slice(0,this.displayLength-3)+"...":"R$ "+this.selectedItem.value:""},filteredItems(){return this.enableSearch?this.items.filter(t=>t.name.toLowerCase().includes(this.searchQuery.toLowerCase())):this.items}},methods:{mirrorSelection(t){return this.items.find(s=>s.id===t)},updateSelection(t){this.selectedItem=this.mirrorSelection(t),this.$emit("input",t)},toggleDropdown(){this.isOpen=!this.isOpen},truncateName(t){const s=43;return t.length>s?`${t.slice(0,s-3)}...`:t},close(t){this.$el.contains(t.target)||(this.isOpen=!1)}},watch:{value(t){this.selectedItem=this.mirrorSelection(t)??null}},created(){this.selectedItem=this.mirrorSelection(this.value)??null},mounted(){document.addEventListener("click",this.close)},beforeDestroy(){document.removeEventListener("click",this.close)}}),J=W,U=(0,p.A)(J,Q,Y,!1,null,"7a6b8aea",null),X=U.exports,K=a(95093),tt
1=a.n(K),st={components:{StatusBadge:o.A,SelectSublimit:X,EmptyCollectionRow:v,Icon:m.A},props:{simplesDataOff:{type:Boolean},data:{type:Object}},data:()=>({sublimitType:"RBA",sublimitTypesOptions:[{id:"RBA",name:"RBA",value:0},{id:"RBAA",name:"RBAA"},{id:"RBT12",name:"RBT12"}],currentPorcentage:0,barColor:"#2FB490FF",currentYear:"",lastYear:"",lastProcessFormated:null,rpaCalcs:null,changedData:{}}),computed:{legendSize(){return this.currentPorcentage<=1?"4%":this.currentPorcentage}},mounted(){this.populateDate()},methods:{populateDate(){this.sublimitTypesOptions[0].value=this.data.RBA,this.sublimitTypesOptions[1].value=this.data.RBAA,this.sublimitTypesOptions[2].value=this.data.RBT12,this.currentPorcentage=this.data.currentLimitPercentage,this.currentPorcentage>=70&&(this.barColor="#E8BB34FF",this.currentPorcentage>=100&&(this.barColor="#EF4444FF")),this.currentYear=tt()(this.data.lastDesclaration).year(),this.lastYear=tt()(this.data.lastDesclaration).subtract(1,"years").year(),this.lastProcessFormated=this.data.lastProcess?this.data.lastProcess.replaceAll("-","/"):null,this.rpaCalcs=this.data.RPACalculation?this.data.RPACalculation:null},calculateLimitsPorcentage(){const t=this.data[this.sublimitType],s=parseInt(t.replace(/\./g,"").replace(",","")),a=48e7,e=100*s/a;this.currentPorcentage=e.toFixed(2)},checkResponsivity(){this.windowWidth=window.outerWidth,this.windowWidth<1100?console.log("inside"):console.log("outside")}}},at=st,et=(0,p.A)(at,N,q,!1,null,"fe5dd324",null),it=et.exports,lt={components:{PGDAsReport:it,DCTFWEBReport:S,InstallmentsReport:V,MailBoxReport:j,FiscalReport:O,CertificatesReport:b,ProductLogo:r.A,LoadingCircle:l.A},data:()=>({showPage:!1,uid:"",customer:{},tabs:["monnitorhub","XMLhub",{label:"taskhub",isSoon:!0,soonSubject:"fgts"}],currentTabIndex:0,reportLoading:!0,simplesData:{lastDeclaration:null,lastProccess:null,paymentPending:null,RBA:null,RBAA:null,RBT12:null,RPA:null,currentLimitPercentage:null,percentageCurrent:null,percentagePositive:!1,annualGrowth:null,RPACalculation:{lastest:null,secondLatest:null,montlyGrowth:null},historic:[]},instsData:{simples:{list:[],lastProcess:null},pgfn:{list:[],lastProcess:null},receita:{list:[],lastProcess:null},especial:{list:[],lastProcess:null}},dctfwebData:{status:{color:"status-success",info:"Em dia"},lastProcess:"",list:[]},mailboxesData:{mails:{},pendingsQuantity:0,lastProcess:null},fiscalReport:{list:[],lastProcess:""},FRLastProccess:"",certificatesData:{list:[],lastProccess:""},declarationsData:{},simplesDataOff:!1,dctfwebDataOff:!1,mailBoxOff:!1,fiscalOff:!1,certficatesOff:!1,declarationsOff:!1,loadingMessage:"",text:"Buscando informações em nossos servidores",currentSecond:0,intervalId:null,tabletOff:!1}),mounted(){this.getCheckupData(),this.updateTime(),this.intervalId=setInterval(this.updateTime,1e3)},methods:{generateReport(){this.$refs.html2Pdf.generatePdf()},async getCheckupData(){const t=await this.getCustomer();
1t&&(await this.getSimplesColletions(),await this.getInstallments(),await this.getDctfwebColletions(),await this.getMailboxes(),await this.getCertifcates())},updateTime(){this.currentSecond++,0===this.currentSecond&&(this.text="Buscando informações em nossos servidores"),3===this.currentSecond&&(this.text="Analisando saúde fiscal"),6===this.currentSecond&&(this.text="Montando visão estratégica"),this.currentSecond>=8&&(clearInterval(this.intervalId),this.reportLoading=!1)},checkProfile(){const t=this.$cookie.get("profile");if(!t)return this.$toast.warning("Perfil não encontrado"),void this.doLogout();const s=this.CryptoJS.AES.decrypt(t,"Secret Passphrase").toString(this.CryptoJS.enc.Utf8);if(!s)throw new Error("Falha ao converter dados descriptografados para texto");const a=JSON.parse(s);return a||(this.$toast.warning("Usuário não está logado"),void this.doLogout())},async getCustomer(){const t=this.checkProfile();if(t.cid&&t.customerId){this.uid=t.cid;const s=t.customerId,a=await this.$firebase.database().ref(`customers/${this.uid}/${s}`).once("value"),e=a.val();if(e)return this.customer=e,this.showPage=!0,!0}},async getSimplesColletions(){const t=await this.$firebase.database().ref(`simplesCollections/${this.uid}/${this.customer.customerId}`).once("value"),s=t.val();if(!s||!s.historic)return void(this.simplesDataOff=!0);const a=await this.$firebase.database().ref(`historics/infos/sublimite/${this.uid}/${this.customer.customerId}`).once("value"),e=a.val();e&&Object.assign(s,e),await this.getHistoricSimples(s)},async getHistoricSimples(t){await this.$firebase.database().ref(`historics/processes/simplesCollections/${this.uid}/${this.customer.customerId}`).on("value",s=>{const a=s.val();if(!a)return{};this.simplesData.historic=a,this.organizeSimplesData(t,a)})},organizeSimplesData(t,s){const a=Object.keys(s).pop(),e=Object.keys(s[a]),i=Math.max(...e.map(Number));this.simplesData.paymentPending=t.status&&"Pendências"===t.status.info,this.simplesData.lastProcess=t.lastProcess,this.simplesData.lastDeclaration=`${i}/${a}`,this.simplesData.RBA=t.RBA?t.RBA:null,this.simplesData.RBAA=t.RBAA?t.RBAA:null,this.simplesData.RBT12=t.RBT12?t.RBT12:null,this.simplesData.RPA=t.RPA?t.RPA:null,this.calculateLimitsPorcentage(t.RBA),this.calculateAnnualGrowth(t),t.billings&&this.calculateRPA(t)},calculateLimitsPorcentage(t){const s=parseInt(t.replace(/\./g,"").replace(",","")),a=48e7,e=100*s/a;this.simplesData.currentLimitPercentage=e.toFixed(2)},calculateAnnualGrowth(t){if(!t.RBAA||!t.RBA||!t.lastProcess)return void(this.simplesData.annualGrowth=0);if("0,00"===t.RBAA||"0,00"===t.RBA)return void(this.simplesData.annualGrowth=0);const s=t.lastProcess,[a,e,i]=s.split("-"),l=new Date(`${i}-${e}-${a}`),r=l.getMonth()+1,c=parseFloat(t.RBA.replace(/\./g,"").replace(",",""))/r+1,n=parseFloat(t.RBAA.replace(/\./g,"").replace(",",""))/12;if(!n)return void(this.simplesData.annualGrowth=0);const o=(c-n)/n*100,d=o.toFixed(2);this.simplesData.annualGrowth=d},calculateRPA(t){const s=Object.keys(t.billings).map(s=>({period:s,...t.billings[s]}));if(s.length<2)return;const a=s[s.length-1],e=s[s.length-2];if(a.RPA&&e.RPA){const t=parseFloat(a.RPA.replace(/\./g,"").replace(",","")),s=parseFloat(e.RPA.replace(/\./g,"").replace(",","")),i=(t-s)/s*100,l=i.toFixed(2);this.simplesData.RPACalculation.lastest={value:a.RPA,period:this.formatDate(a.period)},this.simplesData.RPACalculation.secondLatest={value:e.RPA,period:this.formatDate(e.period)},this.simplesData.RPACalculation.montlyGrowth=l}},formatDate(t){const s=t.slice(0,4),a=t.slice(4),e=tt()(new Date(s,a-1)).format("MM/YYYY");return e},async getInstallments(){const t=["simplesInstallments","pgfnInstallments","receitaInstallments","especialInstallments"],s={};for(let a=0;a<t.length;a++){const e=await this.$firebase.database().ref(`${t[a]}/${this.uid}/${this.customer.customerId}`).once("value"),i=e.val();if(i)if("simplesInstallments"!==t[a])if("pgfnInstallments"!==t[a])if("receitaInstallments"!==t[a])if("especialInstallments"!==t[a]);else{if(!i.references){s[t[a]]=!1;continue}this.processEspecial(i)}else{if(!i.references){s[t[a]]=!1;continue}this.processReceita(i)}else{if(!i.references){s[t[a]]=!1;continue}this.processPGFN(i)}else{if(!i.historic){s[t[a]]=!1;continue}this.processSimples(i)}else s[t[a]]=!1}},processSimples(t){this.instsData.simples.lastProcess=t.lastProcess;const s=t.historic,a=[];for(const e in s){const i=Object.keys(s[e]).map(t=>s[e][t]),l=i.filter(s=>t.lastProcess===s.dtFinished),r={name:e,amount:l.length};a.push(r)}this.instsData.simples.list=a},processPGFN(t){this.instsData.pgfn.lastProcess=t.lastProcess;const s=t.references,a=[];for(const e in s){const t=s[e].historic?Object.keys(s[e].historic).length:0,i={};i.refCode=e,i.amountParcels=s[e].amountInstallments,i.currentParcels=t,i.status=s[e].status,a.push(i)}this.instsData.pgfn.list=a},processReceita(t){this.instsData.receita.lastProcess=t.lastProcess;const s=t.references,a=[];for(const e in s){const t={};if(s[e].historic){const a=s[e].historic;t.types=[];for(const s in a){const e={};e.name=s,e.currentParcels=Object.keys(a[s]).length,t.types.push(e)}}t.refCode=e,t.status=s[e].status,a.push(t)}this.instsData.receita.list=a},processEspecial(t){this.instsData.especial.lastProcess=t.lastProcess;const s=t.references,a=[];for(const e in s){const t=s[e].historic?Object.keys(s[e].historic).length:0,i={};i.refCode=e,i.amountParcels=s[e].amountInstallments,i.currentParcels=t,i.status=s[e].status,a.push(i)}this.instsData.especial.list=a},async getDctfwebColletions(){const t=await this.$firebase.database().ref(`dctfwebCollections/${this.uid}/${this.customer.customerId}`).once("value"),s=t.val();s&&s.historic&&"status-danger"!==s.status.color?(this.dctfwebData.status=s.status,await this.getHistoricDctfweb(s)):this.dctfwebDataOff=!0},async getHistoricDctfweb(t){await this.$firebase.database().ref(`historics/processes/dctfwebCollections/${this.uid}/${this.customer.customerId}`).on("value",s=>{const a=s.val();if(!a)return{};this.checkdctfwebStatus(t,a)})},checkdctfwebStatus(t,s){if(this.dctfwebData.lastProcess=t.lastProcess,!s)return;if(this.dctfwebData.lastDeclaration=t.lastDeclaration,"status-success"===t.status.color)return this.dctfwebData.status.color=t.status.color,void(this.dctfwebData.status.info=t.status.info);const a=Object.values(s),e=[];for(const i in a){const s=Object.keys(a[i]).map(t=>a[i][t]);for(let a=0;a<s.length;a++){const i=s[a],l=!t.loading||"Verificando Erro"!==t.status.info,r=!i.paied,c=!i.type.includes("sem movimento")&&!i.type.includes("zerada")&&"0,00"!==i.value;!i.receiptsGuides&&c&&l&&r&&e.push(i)}}this.dctfwebData.list=e,e.length>0?(this.dctfwebData.status.color="status-warning",this.dctfwebData.status.info="Pendências"):(this.dctfwebData.status.color="status-success",this.dctfwebData.status.info="Em dia")}
1,verifySemMovimento(t){if(!t.historic)return!1;let s=!1;for(const a of Object.values(t.historic))for(const t of Object.values(a))if(t.type&&t.type.includes("Original sem movimento")&&(s=!0),t.value&&parseFloat(t.value.replace(",","."))>0)return!1;return s},verifyPending(t){if(t.historic){const s=Object.keys(t.historic).map(s=>t.historic[s]);for(let t=0;t<s.length;t++){const a=Object.keys(s[t]).map(a=>s[t][a]);for(let t=0;t<a.length;t++)if(a[t].type&&"Original sem movimento"!==a[t].type&&"0,00"!==a[t].value&&!a[t].receiptsGuides&&!a[t].paied)return!0}}return!1},async getMailboxes(){const t=await this.$firebase.database().ref(`mailboxes/${this.uid}/${this.customer.customerId}`).once("value"),s=t.val();s?await this.getHistoric(s):this.mailBoxOff=!0},async getHistoric(t){await this.$firebase.database().ref(`historics/processes/mailboxes/${this.uid}/${this.customer.customerId}`).on("value",s=>{const a=s.val();return a?(this.mailboxesData.historic=a,this.processMails(t,a),a):{}})},processMails(t,s){this.mailboxesData.lastProcess=t.lastProcess;const a={};let e=0;const i=s,l=Object.keys(i).map(t=>i[t]);for(let r=0;r<l.length;r++){const t=this.checkMails(l[r]);t&&(e+=1,a[t]?a[t]++:a[t]=1)}this.mailboxesData.pendingsQuantity=e,this.mailboxesData.mails=a},checkMails(t){return"Termo(s) de Intimação"!==t.subject||t.opened?t.content?.toLowerCase().includes("exclusão")&&!t.opened?"Termo de Exclusão":t.content?.includes("Malha Fiscal")&&!t.opened?"Malha Fiscal":t.content?.includes("pronampe")&&!t.opened?"PRONAMPE":void 0:"Termo de Intimação"},async getCertifcates(){const t=await this.$firebase.database().ref(`certificates/${this.uid}/${this.customer.customerId}`).once("value"),s=t.val();if(!s||!s.registered)return this.certficatesOff=!0,void(this.fiscalOff=!0);this.processFiscalReport(s),this.processCertificates(s)},processFiscalReport(t){this.fiscalReport.lastProcess=t.lastProcess;const s=t.registered["relatorio-fiscal"];if(s.historic){const t=Object.keys(s.historic),a=s.historic[t[t.length-1]];if(a.report){const t=a.report;for(const s in t){const a={};a.name=this.getFiscalReportsNames(s),a.regular=t[s],this.fiscalReport.list.push(a)}return void this.organizeReportList()}}if(s||(this.fiscalOff=!0),s.status&&"Constam Débitos"===s.status.info){const t={};t.name=this.getFiscalReportsNames(s.referenceCode),t.regular=!1,this.fiscalReport.list.push(t)}if(s.status&&"status-success"===s.status.color){const t={};t.name=this.getFiscalReportsNames(s.referenceCode),t.regular=!0,this.fiscalReport.list.push(t)}this.organizeReportList()},getFiscalReportsNames(t){const s={general:"Diagnóstico fiscal","relatorio-fiscal":"Diagnóstico fiscal",efd:"EFD",dctf:"DCTF",dctfweb:"DCTFWeb",dirf:"DIRF",ecf:"ECF",pgdas:"PGDAS",dasn:"DASN",exigibilidadegeral:"Exigibilidade Geral",exigibilidadesn:"Exigibilidade SN",exigibilidadesida:"Exigibilidade SIDA"};if(s[t])return s[t]},organizeReportList(){if(this.fiscalReport.list.length>0){const t=this.fiscalReport.list.findIndex(t=>"Diagnóstico fiscal"===t.name),s=this.fiscalReport.list.findIndex(t=>"PGDAS"===t.name);if(t>-1){const[s]=this.fiscalReport.list.splice(t,1);this.fiscalReport.list.unshift(s)}if(s>-1){const[t]=this.fiscalReport.list.splice(s,1);this.fiscalReport.list.splice(1,0,t)}}else this.fiscalOff=!0},processCertificates(t){this.certificatesData.lastProcess=t.lastProcess;const s=t.registered,a={};for(const e in s)"relatorio-fiscal"!==e&&(a[e]||(a[e]={}),s[e].status&&"Constam Débitos"===s[e].status.info?(a[e].lastProcess=s[e].lastProcess,a[e].pending=!0,a[e].name=this.getCertName(e)):(a[e].lastProcess=s[e].lastProcess,a[e].pending=!1,a[e].name=this.getCertName(e)));this.certificatesData.list=Object.keys(a).map(t=>a[t])},getCertName(t){const s={"fed-federal":"Certidão Federal","fed-trabalhista":"Direito Trabalhistas","fed-fgts":"FGTS","est-am-faz":"AM - SEFAZ","est-ba-faz":"BA - SEFAZ","est-ce-faz":"CE - SEFAZ","est-df-faz":"DF - SEFAZ","est-es-faz":"ES - SEFAZ","est-go-faz":"GO - SEFAZ","est-mt-faz":"MT - SEFAZ","est-ms-faz":"MS - SEFAZ","est-mg-faz":"MG - SEFAZ","est-pa-faz":"PA - SEFAZ","est-pr-faz":"PR - SEFAZ","est-pr-trib-quarta":"PR - Processos CÃvicos","est-pe-faz":"PE - SEFAZ","est-rj-faz":"RJ - SEFAZ","est-rs-faz":"RS - SEFAZ","est-rn-faz":"RN - SEFAZ","est-sp-faz":"SP - SEFAZ","est-sc-faz":"SC - SEFAZ","est-sp-proc":"SP - Procuradoria","est-se-fazc":"SE - Procuradoria","est-to-faz":"TO - SEFAZ"};if(s[t])return s[t]},async getDeclarations(){const t=["dctf","defis","dirf"],s={dctf:!0,defis:!0,dirf:!0};for(let a=0;a<t.length;a++){const e=await this.$firebase.database().ref(`declarations/data/${t[a]}/${this.uid}/${this.customer.customerId}`).once("value"),i=e.val();i?(this.declarationsData[t[a]]={},this.declarationsData[t[a]].status=i.status&&"status-danger"!==i.status.color?i.status:null,this.declarationsData[t[a]].lastDeclaration=i.lastDeclaration?i.lastDeclaration:null,this.declarationsData[t[a]].status||(s[t[a]]=!1)):s[t[a]]=!1}s.dctf||s.defis||s.dirf||(this.declarationsOff=!0)},closeModal(){this.showModal=!1,this.$emit("close")}}},rt=lt,ct=(0,p.A)(rt,e,i,!1,null,"776960eb",null),nt=ct.exports}}]);
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.