PageSourceSearch

https://revixgo.com.br/app/8426.65242bd5de9027e5.js

js revixgo.com.br collected 2026-10-02 01:22:17 UTC 17,419 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8426],{92844(C,j,s){s.d(j,{O:()=>f});var f=function(v){return v.NOT_REQUIRED="NOT_REQUIRED",v.OBTAINED="OBTAINED",v.REQUIRED="REQUIRED",v.UNKNOWN="UNKNOWN",v}(f||{})},8426(C,j,s){s.d(j,{OrcamentoTotalAnoPageModule:()=>I});var f=s(72200),v=s(89417),h=s(57343),S=s(38132),b=s(10467),e=s(73664),O=s(18700),N=s(89160),x=s(31127),B=s(58885),M=s(49544),R=s(56941);const w=(c,l,g)=>({"bg-emerald-50 border-emerald-100":c,"bg-amber-50 border-amber-100":l,"bg-red-50 border-red-100":g}),P=(c,l,g)=>({"bg-emerald-100":c,"bg-amber-100":l,"bg-red-100":g}),D=(c,l,g)=>({"text-emerald-700":c,"text-amber-700":l,"text-red-700":g}),a=(c,l)=>({"text-emerald-600":c,"text-red-600":l});function A(c,l){if(1&c&&(e.j41(0,"ion-item",44)(1,"div",45),e.EFF(2),e.k0s(),e.j41(3,"div",46),e.EFF(4),e.nI1(5,"currencyBR"),e.k0s()()),2&c){const g=e.XpG().$implicit;e.R7$(2),e.JRh(g.mesExt),e.R7$(),e.Y8G("ngClass",e.l_i(5,a,g.saldo>=0,g.saldo<0)),e.R7$(),e.SpI(" ",e.bMT(5,3,g.saldo)," ")}}function U(c,l){if(1&c&&(e.qex(0),e.DNE(1,A,6,8,"ion-item",43),e.bVm()),2&c){const g=l.$implicit;e.R7$(),e.Y8G("ngIf",""!==g.mesExt)}}let o=(()=>{var c;class l{constructor(t,r,i,n,u,d,F){this.storage=t,this.loadingController=r,this.orcamentoService=i,this.saldoService=n,this.adsService=u,this.router=d,this.alertController=F,this.idGrupo="",this.idUsuario="",this.idPlano="",this.idioma="",this.acessoWeb=!1,this.itemOrcamento=[],this.anoAtual=(new Date).getFullYear(),this.mesAtual=(new Date).getMonth()+1,this.anoSelec=this.anoAtual.toString(),this.statusProjecao="ATENCAO",this.statusTitulo="",this.statusMensagem="",this.statusEmoji="\u{1f4ca}",this.itemSaldo={vlr_saldo:"",vlr_saldoDebito:"",vlr_saldoCredito:"",dtInicial:"",dtFim:""},this.vlrSaldoReal="",this.itemMes=[{ano:"",mes:"",saldo:0,saldoAnterior:0,mesExt:"",divide:""}],this.valorMask="R$ 0,00",this.valorNumber=0,this.saldoFinalProjetado=0,this.lblTitulo="",this.lblSubTitulo="",this.lblPeriodo="",this.lblPojSaldo="",this.lblSaldoReal="",this.lblAno="",this.lblMes="",this.lblSaldoOrc="";let E=this.storage.getLocalUser();this.idGrupo=E.idGrupo,this.idUsuario=E.idUsuario,this.idPlano=E.idPlano,this.idioma="POR",this.acessoWeb=null==E.acessoWeb?1!==Number(this.idPlano):E.acessoWeb,this.acessoWeb||this.voltarLogin(),this.atualizaIdioma()}atualizaIdioma(){"POR"==this.idioma&&(this.lblTitulo="Proje\xe7\xe3o saldo",this.lblSubTitulo="Saldo projetado de seu or\xe7amento",this.lblPeriodo="Per\xedodo",this.lblPojSaldo="projetar com base no saldo atual",this.lblSaldoReal="Saldo Real: R$",this.lblAno="Ano",this.lblMes="m\xeas",this.lblSaldoOrc="saldo or\xe7ado")}voltarLogin(){var t=this;return(0,b.A)(function*(){var i;yield(yield t.alertController.create({header:"Acesso Web",message:"Seu acesso Web promocional expirou. Para continuar, adquira o Plano Ouro.",backdropDismiss:!1,buttons:[{text:"Ir para Login",handler:(i=(0,b.A)(function*(){yield t.router.navigate(["login"])}),function(){return i.apply(this,arguments)})}]})).present()})()}ngOnInit(){"DEPENDENTE"===this.storage.getLocalUser().perfil&&this.router.navigate(["/home-dependente"])}ionViewDidEnter(){var t=this;return(0,b.A)(function*(){t.presentLoading("carrega"),1===Number(t.idPlano)&&t.adsService.showInterstitialRandom(.25).catch(r=>console.warn("Inter falhou",r))})()}carregaTela(){var t=this;return(0,b.A)(function*(){return t.itemMes=[],new Promise((r,i)=>{var n;
1t.orcamentoService.listaOrcamentoSaldoTodosAnos(t.idGrupo,t.anoSelec.toString()).subscribe({next:(n=(0,b.A)(function*(u){try{t.itemOrcamento=u;let d=0,F="",E="";for(let T=0;T<t.itemOrcamento.length;T++){E=t.itemOrcamento[T].ano!=F?"sim":"nao";let V={ano:t.itemOrcamento[T].ano,mes:t.itemOrcamento[T].mes,saldo:Number(t.itemOrcamento[T].vlrTotal)+d,saldoAnterior:d,mesExt:t.nomeMes(Number(t.itemOrcamento[T].mes)),divide:E};d=Number(t.itemOrcamento[T].vlrTotal)+d,F=t.itemOrcamento[T].ano,t.itemMes.push(V)}r()}catch(d){i(d)}}),function(d){return n.apply(this,arguments)}),error:n=>{i(n)}})})})()}nomeMes(t){if("POR"==this.idioma)switch(t){case 1:return"janeiro";case 2:return"fevereiro";case 3:return"mar\xe7o";case 4:return"abril";case 5:return"maio";case 6:return"junho";case 7:return"julho";case 8:return"agosto";case 9:return"setembro";case 10:return"outubro";case 11:return"novembro";case 12:return"dezembro"}return""}presentLoading(t){var r=this;return(0,b.A)(function*(){const i=yield r.loadingController.create({message:"Carregando aguarde..."});if(yield i.present(),"carrega"==t)try{yield r.retornaSaldoAtual(),yield r.carregaTela(),yield r.calculoBaseSaldoReal()}catch(n){console.error("Erro ao carregar dados:",n)}finally{yield i.dismiss()}else if("calculoReal"==t)try{yield r.calculoBaseSaldoReal()}catch(n){console.error("Erro ao carregar dados:",n)}finally{yield i.dismiss()}else if("calculaOrcado"==t)try{yield r.calculaValorOrcado()}catch(n){console.error("Erro ao carregar dados:",n)}finally{yield i.dismiss()}})()}parseFloatValue(t){return parseFloat(t)}chkSaldoReal(t){this.presentLoading(t.detail.checked?"calculoReal":"calculaOrcado")}calculoBaseSaldoReal(){var t=this;return(0,b.A)(function*(){t.itemMes=[];let i=Number(t.vlrSaldoReal),n="";for(let d=0;d<t.itemOrcamento.length;d++){let F={ano:t.itemOrcamento[d].ano,mes:t.itemOrcamento[d].mes,saldo:Number(t.itemOrcamento[d].vlrTotal)+i,saldoAnterior:i,mesExt:t.nomeMes(Number(t.itemOrcamento[d].mes)),divide:""};i=Number(t.itemOrcamento[d].vlrTotal)+i,n=t.itemOrcamento[d].ano,t.itemMes.push(F)}t.processarResumoProjecao()})()}processarResumoProjecao(){this.itemMes&&0!==this.itemMes.length?(this.saldoFinalProjetado=Number(this.itemMes[this.itemMes.length-1].saldo||0),this.saldoFinalProjetado>0?(this.statusProjecao="POSITIVO",this.statusTitulo="Proje\xe7\xe3o positiva",this.statusMensagem="Mesmo considerando os lan\xe7amentos futuros, seu saldo projetado permanece positivo.",this.statusEmoji="\u{1f680}"):0===this.saldoFinalProjetado?(this.statusProjecao="ATENCAO",this.statusTitulo="Proje\xe7\xe3o no limite",this.statusMensagem="A proje\xe7\xe3o indica que o saldo pode chegar muito pr\xf3ximo de zero.",this.statusEmoji="\u26a0\ufe0f"):(this.statusProjecao="NEGATIVO",this.statusTitulo="Proje\xe7\xe3o negativa",this.statusMensagem="Aten\xe7\xe3o: com este saldo de partida, a proje\xe7\xe3o indica saldo negativo nos pr\xf3ximos meses.",this.statusEmoji="\u{1f525}")):this.saldoFinalProjetado=0}calculaValorOrcado(){var t=this;return(0,b.A)(function*(){t.itemMes=[];let r=0,i="";for(let u=0;u<t.itemOrcamento.length;u++){let d={ano:t.itemOrcamento[u].ano,mes:t.itemOrcamento[u].mes,saldo:Number(t.itemOrcamento[u].vlrTotal)+r,saldoAnterior:r,mesExt:t.nomeMes(Number(t.itemOrcamento[u].mes)),divide:""};
1r=Number(t.itemOrcamento[u].vlrTotal)+r,i=t.itemOrcamento[u].ano,t.itemMes.push(d)}})()}retornaSaldoAtual(){var t=this;return(0,b.A)(function*(){return new Promise((r,i)=>{var n;t.saldoService.listaSaldoGrupoTodasContas(t.idGrupo,t.mesAtual,t.anoAtual).subscribe({next:(n=(0,b.A)(function*(u){try{t.itemSaldo=u,t.vlrSaldoReal=parseFloat(t.itemSaldo.vlr_saldo).toFixed(2),r()}catch(d){i(d)}}),function(d){return n.apply(this,arguments)}),error:n=>{i(n)}})})})()}onValorInput(t){const r=t.target,i=(r.value??"").toString().replace(/\D/g,""),n=i?parseInt(i,10):0;this.valorNumber=n/100,this.valorMask=this.valorNumber.toLocaleString("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:2,maximumFractionDigits:2}),r.value=this.valorMask}static#e=c=()=>(this.\u0275fac=function(r){return new(r||l)(e.rXU(O.n),e.rXU(h.Xi),e.rXU(N.O),e.rXU(x.L),e.rXU(B.g),e.rXU(M.Ix),e.rXU(h.hG))},this.\u0275cmp=e.VBU({type:l,selectors:[["app-orcamento-total-ano"]],standalone:!1,decls:83,vars:35,consts:[[1,"ion-no-border"],[1,"bg-stone-800","px-4","py-2","flex","items-center","justify-between"],["slot","start"],[2,"color","white"],[1,"ml-2"],["src","assets/revix/logoRG1.jpg","alt","User avatar"],[1,"text-base","font-semibold","text-gray-50"],["slot","end"],[1,"text-white"],[1,"bg-light",3,"fullscreen"],[1,"pb-24"],["collapse","condense"],["size","large"],[1,"px-4","pt-4"],[1,"flex","items-center","gap-3"],[1,"bg-amber-400","rounded-full","w-12","h-12","flex","items-center","justify-center"],["name","pulse",1,"text-3xl","text-graphite"],[1,"text-lg","font-semibold","text-darkblue"],[1,"text-xs","text-gray-400"],[1,"bg-white","rounded-3xl","shadow-md","border","border-zinc-100","p-4"],[1,"flex","items-start","gap-3"],[1,"w-11","h-11","rounded-2xl","bg-amber-100","flex","items-center","justify-center","text-xl"],[1,"flex-1"],[1,"text-sm","font-bold","text-stone-800"],[1,"text-xs","text-zinc-500","mt-1"],[1,"mt-4"],[1,"text-[11px]","font-semibold","text-zinc-500","mb-1"],[1,"flex","items-center","gap-2","rounded-2xl","bg-zinc-100","px-3","py-2"],[1,"text-sm","font-bold","text-zinc-500"],["type","number","inputmode","decimal","placeholder","0,00",1,"text-stone-900","font-bold",3,"ngModelChange","ngModel"],["type","button",1,"w-full","mt-4","rounded-2xl","bg-stone-900","text-white","font-bold","py-3","shadow-md","flex","items-center","justify-center","gap-2",3,"click"],["name","refresh-outline",1,"text-lg"],[1,"grid","grid-cols-2","gap-2","mt-4"],[1,"rounded-2xl","bg-zinc-50","p-3"],[1,"text-[11px]","text-zinc-500"],[1,"rounded-2xl","p-3",3,"ngClass"],[1,"text-sm","font-bold",3,"ngClass"],[1,"rounded-3xl","p-4","shadow-sm","border",3,"ngClass"],[1,"w-10","h-10","rounded-2xl","flex","items-center","justify-center","text-xl",3,"ngClass"],[1,"rounded-2xl","shadow-lg","mt-6","px-4","py-2","bg-white"],[1,"rounded-xl","bg-darkblue","text-light","font-bold"],[1,"flex","flex-row","justify-between","font-bold","text-sm","p-2","mt-2","border-b"],[4,"ngFor","ngForOf"],["class","flex flex-row justify-between px-0",4,"ngIf"],[1,"flex","flex-row","justify-between","px-0"],[1,"w-36","font-semibold","text-graphite"],[1,"ml-auto","text-right","font-semibold",3,"ngClass"]],template:function(r,i){1&r&&(e.j41(0,"ion-header",0)(1,"ion-toolbar")(2,"div",1)(3,"ion-buttons",2),e.nrm(4,"ion-back-button",3),e.j41(5,"div")(6,"ion-avatar",4),e.nrm(7,"img",5),e.k0s()()(),e.j41(8,"ion-title")(9,"div",6),e.EFF(10,"Revix Go"),e.k0s()(),e.j41(11,"ion-buttons",7),e.nrm(12,"ion-menu-button",8),e.k0s()()()(),e.j41(13,"ion-content",9)(14,"div",10)(15,"ion-header",11)(16,"ion-toolbar")(17,"ion-title",12),e.EFF(18,"orcamentoTotalAno"),e.k0s()()(),e.j41(19,"div",13)(20,"div",13)(21,"div",14)(22,"div",15),e.nrm(23,"ion-icon",16),e.k0s(),e.j41(24,"div")(25,"div",17),e.EFF(26),e.k0s(),e.j41(27,"div",18),e.EFF(28),e.k0s()()()(),e.nrm(29,"br"),e.j41(30,"div",13)(31,"div",19)(32,"div",20)(33,"div",21),e.EFF(34," \u{1f9ee} "),e.k0s(),e.j41(35,"div",22)(36,"div",23),e.EFF(37," Simule seu saldo futuro "),e.k0s(),e.j41(38,"div",24),e.EFF(39," Ajuste o saldo de partida para visualizar o impacto da sua proje\xe7\xe3o nos pr\xf3ximos meses. "),e.k0s()()(),e.j41(40,"div",25)(41,"div",26),e.EFF(42," Saldo de partida "),e.k0s(),e.j41(43,"div",27)(44,"span",28),e.EFF(45,"R$"),e.k0s(),e.j41(46,"ion-input",29),e.mxI("ngModelChange",function(u){return e.DH7(i.vlrSaldoReal,u)||(i.vlrSaldoReal=u),u}),e.k0s()()(),e.j41(47,"button",30),e.bIt("click",function(){return i.calculoBaseSaldoReal()}),e.nrm(48,"ion-icon",31),e.EFF(49," Recalcular proje\xe7\xe3o "),e.k0s(),e.j41(50,"div",32)(51,"div",33)(52,"div",34),e.EFF(53," Saldo inicial "),e.k0s(),e.j41(54,"div",23),e.
1EFF(55),e.nI1(56,"currencyBR"),e.k0s()(),e.j41(57,"div",35)(58,"div",34),e.EFF(59," Saldo final "),e.k0s(),e.j41(60,"div",36),e.EFF(61),e.nI1(62,"currencyBR"),e.k0s()()()()(),e.j41(63,"div",13)(64,"div",37)(65,"div",20)(66,"div",38),e.EFF(67),e.k0s(),e.j41(68,"div",22)(69,"div",36),e.EFF(70),e.k0s(),e.j41(71,"div",24),e.EFF(72),e.k0s()()()()(),e.j41(73,"ion-card",39)(74,"ion-item-divider",40),e.EFF(75),e.k0s(),e.j41(76,"div",41)(77,"span"),e.EFF(78),e.k0s(),e.j41(79,"span"),e.EFF(80),e.k0s()(),e.j41(81,"ion-list"),e.DNE(82,U,2,1,"ng-container",42),e.k0s()()()()()),2&r&&(e.R7$(13),e.Y8G("fullscreen",!0),e.R7$(13),e.JRh(i.lblTitulo),e.R7$(2),e.JRh(i.lblSubTitulo),e.R7$(18),e.R50("ngModel",i.vlrSaldoReal),e.R7$(9),e.SpI(" ",e.bMT(56,19,i.vlrSaldoReal)," "),e.R7$(2),e.Y8G("ngClass",i.saldoFinalProjetado>=0?"bg-emerald-50":"bg-red-50"),e.R7$(3),e.Y8G("ngClass",i.saldoFinalProjetado>=0?"text-emerald-600":"text-red-600"),e.R7$(),e.SpI(" ",e.bMT(62,21,i.saldoFinalProjetado)," "),e.R7$(3),e.Y8G("ngClass",e.sMw(23,w,"POSITIVO"===i.statusProjecao,"ATENCAO"===i.statusProjecao,"NEGATIVO"===i.statusProjecao)),e.R7$(2),e.Y8G("ngClass",e.sMw(27,P,"POSITIVO"===i.statusProjecao,"ATENCAO"===i.statusProjecao,"NEGATIVO"===i.statusProjecao)),e.R7$(),e.SpI(" ",i.statusEmoji," "),e.R7$(2),e.Y8G("ngClass",e.sMw(31,D,"POSITIVO"===i.statusProjecao,"ATENCAO"===i.statusProjecao,"NEGATIVO"===i.statusProjecao)),e.R7$(),e.SpI(" ",i.statusTitulo," "),e.R7$(2),e.SpI(" ",i.statusMensagem," "),e.R7$(3),e.Lme(" ",i.lblAno,": ",i.anoSelec," "),e.R7$(3),e.JRh(i.lblMes),e.R7$(2),e.JRh(i.lblSaldoOrc),e.R7$(2),e.Y8G("ngForOf",i.itemMes))},dependencies:[f.YU,f.Sq,f.bT,v.BC,v.vS,h.mC,h.QW,h.b_,h.W9,h.eU,h.iq,h.$w,h.uz,h.Dg,h.nf,h.MC,h.BC,h.ai,h.su,h.el,R._],styles:[".valor-positivo[_ngcontent-%COMP%]{color:#00f}.valor-negativo[_ngcontent-%COMP%]{color:red}"]}))}return c(),l})();var p=s(2615);const m=[{path:"",component:o}];let y=(()=>{var c;class l{static#e=c=()=>(this.\u0275fac=function(r){return new(r||l)},this.\u0275mod=e.$C({type:l}),this.\u0275inj=p.G2t({imports:[S.iI.forChild(m),S.iI]}))}return c(),l})();var L=s(56384);let I=(()=>{var c;class l{static#e=c=()=>(this.\u0275fac=function(r){return new(r||l)},this.\u0275mod=e.$C({type:l}),this.\u0275inj=p.G2t({imports:[f.MD,v.YN,h.bv,y,L.U]}))}return c(),l})()},58885(C,j,s){s.d(j,{g:()=>D});var f=s(10467),v=s(15083),b=function(a){return a.TOP_CENTER="TOP_CENTER",a.CENTER="CENTER",a.BOTTOM_CENTER="BOTTOM_CENTER",a}(b||{}),e=function(a){return a.BANNER="BANNER",a.FULL_BANNER="FULL_BANNER",a.LARGE_BANNER="LARGE_BANNER",a.MEDIUM_RECTANGLE="MEDIUM_RECTANGLE",a.LEADERBOARD="LEADERBOARD",a.ADAPTIVE_BANNER="ADAPTIVE_BANNER",a.SMART_BANNER="SMART_BANNER",a}(e||{}),O=function(a){return a.Loaded="interstitialAdLoaded",a.FailedToLoad="interstitialAdFailedToLoad",a.Showed="interstitialAdShowed",a.FailedToShow="interstitialAdFailedToShow",a.Dismissed="interstitialAdDismissed",a}(O||{});s(92844);const R=(0,v.F3)("AdMob",{web:()=>s.e(86).then(s.bind(s,20086)).then(a=>new a.AdMobWeb)}),w=(0,v.F3)("App",{web:()=>s.e(9303).then(s.bind(s,39303)).then(a=>new a.AppWeb)});var P=s(2615);let D=(()=>{var a;class A{constructor(){this.initialized=!1,this.enabled=!1,this.interstitialReady=!1,this.lastInterstitialShownAt=0,this.interstitialCooldownMs=12e4,this.defaultInterstitialChance=.35,this.bannerAdId="ca-app-pub-4788483379724677/6999720550",this.interstitialAdId="ca-app-pub-4788483379724677/5797989957",this.bannerWanted=!1,this.bannerVisible=!1,this.ensuringBanner=!1}init(o,p){var m=this;return(0,f.A)(function*(){if(o)return void(m.enabled=!1);if(!v.Ii.isNativePlatform())return void(m.enabled=!1);if(m.enabled=!0,m.initialized)return;m.currentUserEmail=p;const y="[email protected]"===p;yield R.initialize({testingDevices:y?["0183ED88BD0C58EE22FB6E5BBC406CC1"]:[],initializeForTesting:y}),w.addListener("appStateChange",function(){var L=(0,f.A)(function*(I){I.isActive&&(yield m.ensureBanner(!0))});return function(I){return L.apply(this,arguments)}}()),R.addListener(O.Dismissed,(0,f.A)(function*(){m.interstitialReady=!1,yield m.prepareInterstitial(),yield m.ensureBanner(!0)})),R.addListener(O.Showed,()=>{}),R.addListener(O.FailedToShow,(0,f.A)(function*(){yield m.prepareInterstitial()})),m.initialized=!0,yield m.prepareInterstitial()})()}showBanner(){var o=this;return(0,f.A)(function*(){!o.enabled||!o.initialized||(o.bannerWanted=!0,yield o.ensureBanner())})()}hideBanner(){var o=this;return(0,f.A)(function*(){if(o.enabled&&o.initialized){o.bannerWanted=!1,o.bannerVisible=!1;try{yield R.hideBanner()}catch{}}})()}prepareInterstitial(){var o=this;return(0,f.A)(function*(){if(!o.enabled||!o.initialized)return;const p="[email protected]"===o.currentUserEmail;try{const m={adId:o.interstitialAdId,isTesting:p};yield R.prepareInterstitial(m),o.interstitialReady=!0}catch{o.interstitialReady=!1}})()}showInterstitialRandom(){var o=this;return(0,f.A)(function*(p=o.defaultInterstitialChance){if(!o.enabled||!o.initialized)return;const m=Date.now();if(!(m-o.lastInterstitialShownAt<o.interstitialCooldownMs||Math.random()>p)){if(!o.interstitialReady)return void(yield o.prepareInterstitial());try{yield R.showInterstitial(),o.lastInterstitialShownAt=m,o.interstitialReady=!1}catch{o.interstitialReady=!1,yield o.prepareInterstitial()}}}).apply(this,arguments)}showInterstitialIfAllowed(){var o=this;return(0,f.A)(function*(){return o.showInterstitialRandom(1)})()}ensureBanner(){var o=this;return(0,f.A)(function*(p=!1){if(!o.enabled||!o.initialized||!o.bannerWanted&&!p||o.ensuringBanner||o.bannerVisible&&!p)return;const m="[email protected]"===o.currentUserEmail;o.ensuringBanner=!0;try{try{yield R.removeBanner()}catch{}yield R.showBanner({adId:o.bannerAdId,adSize:e.BANNER,position:b.BOTTOM_CENTER,isTesting:m}),o.bannerVisible=!0}catch{o.bannerVisible=!1}finally{o.ensuringBanner=!1}}).apply(this,arguments)}static#e=a=()=>(this.\u0275fac=function(p){return new(p||A)},this.\u0275prov=P.jDH({token:A,factory:A.\u0275fac,providedIn:"root"}))}return a(),A})()}}]);

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.