PageSourceSearch

https://revixgo.com.br/app/2993.4311893203e2bfd5.js

js revixgo.com.br collected 2026-10-02 01:19:45 UTC 11,489 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2993],{92993($,f,c){c.d(f,{ExtratoClubeVantagensPageModule:()=>G});var p=c(72200),b=c(89417),u=c(57343),x=c(38132),t=c(73664),d=c(2615),m=c(3994),h=c(18700),E=c(49544);const v=(n,i,a)=>({"text-emerald-500":n,"text-blue-500":i,"text-red-500":a});function _(n,i){1&n&&(t.qex(0),t.j41(1,"div",14),t.nrm(2,"ion-skeleton-text",15)(3,"ion-skeleton-text",16)(4,"ion-skeleton-text",16),t.k0s(),t.bVm())}function F(n,i){1&n&&(t.j41(0,"div",25)(1,"div",26),t.EFF(2,"\u2b50"),t.k0s(),t.j41(3,"div",27),t.EFF(4," Voc\xea ainda n\xe3o possui pontos neste filtro "),t.k0s(),t.j41(5,"div",28),t.EFF(6," Participe das campanhas dos estabelecimentos parceiros para acumular pontos e desbloquear vantagens. "),t.k0s()())}function j(n,i){if(1&n&&(t.j41(0,"span",42),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&n){const a=t.XpG().$implicit;t.R7$(),t.SpI(" ",t.i5U(2,1,a.pontosResgatados,"1.0-0")," resgatados ")}}function y(n,i){if(1&n&&(t.j41(0,"span",43),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&n){const a=t.XpG().$implicit;t.R7$(),t.SpI(" ",t.i5U(2,1,a.pontosVencidos,"1.0-0")," vencidos ")}}function C(n,i){if(1&n&&(t.qex(0),t.EFF(1),t.bVm()),2&n){const a=t.XpG().$implicit,e=t.XpG(3);t.R7$(),t.SpI(" \xb7 expira em: ",e.formatarData(a.dtExpira)," ")}}function k(n,i){if(1&n&&(t.j41(0,"div",44)(1,"div",45),t.nrm(2,"ion-icon",46),t.j41(3,"div",6)(4,"span",47),t.EFF(5),t.k0s(),t.j41(6,"span",48),t.EFF(7),t.DNE(8,C,2,1,"ng-container",49),t.k0s(),t.j41(9,"ion-badge",50),t.EFF(10),t.k0s()()(),t.j41(11,"div",51)(12,"span",52),t.EFF(13,"Pontos acumulados"),t.k0s(),t.j41(14,"span",53),t.EFF(15),t.nI1(16,"number"),t.k0s()()()),2&n){const a=i.$implicit,e=t.XpG(3);t.R7$(2),t.Y8G("name",e.getIconeStatus(a))("ngClass",t.sMw(12,v,"Ativo"===e.getBadgeStatusText(a),"Resgatado"===e.getBadgeStatusText(a),"Vencido"===e.getBadgeStatusText(a))),t.R7$(3),t.SpI(" Servi\xe7o executado - ",a.descricao," "),t.R7$(2),t.SpI(" Gera\xe7\xe3o: ",e.formatarData(a.dtCadastro)," "),t.R7$(),t.Y8G("ngIf",a.dtExpira),t.R7$(),t.Y8G("color",e.getBadgeStatusColor(a)),t.R7$(),t.SpI(" ",e.getBadgeStatusText(a)," "),t.R7$(4),t.Y8G("ngClass",a.resgatado?"text-blue-600":"text-emerald-600"),t.R7$(),t.SpI(" ",t.i5U(16,9,a.pontos,"1.0-0")," ")}}function V(n,i){if(1&n&&(t.j41(0,"div",29)(1,"div",30)(2,"div",6)(3,"span",31),t.EFF(4,"Estabelecimento"),t.k0s(),t.j41(5,"span",32),t.EFF(6),t.k0s()(),t.j41(7,"div",33)(8,"span",34),t.EFF(9,"Pontos ativos"),t.k0s(),t.j41(10,"div",35),t.EFF(11),t.nI1(12,"number"),t.j41(13,"span",36),t.EFF(14,"pts"),t.k0s()(),t.j41(15,"div",37),t.DNE(16,j,3,4,"span",38)(17,y,3,4,"span",39),t.k0s()()(),t.j41(18,"div",40),t.DNE(19,k,17,16,"div",41),t.k0s()()),2&n){const a=i.$implicit;t.R7$(6),t.SpI(" ",a.oficinaNome," "),t.R7$(5),t.SpI(" ",t.i5U(12,5,a.pontosTotais,"1.0-0")," "),t.R7$(5),t.Y8G("ngIf",a.pontosResgatados>0),t.R7$(),t.Y8G("ngIf",a.pontosVencidos>0),t.R7$(2),t.Y8G("ngForOf",a.extratos)}}function I(n,i){if(1&n){const a=t.RV6();t.j41(0,"div",17)(1,"div",18)(2,"div",19)(3,"span",20),t.EFF(4,"Filtrar lan\xe7amentos"),t.k0s()(),t.j41(5,"div",21)(6,"button",22),t.bIt("click",function(){d.eBV(a);const s=t.XpG();return d.Njj(s.onChangeFiltroStatus("ativas"))}),t.j41(7,"span"),t.EFF(8,"Ativas"),t.k0s()(),t.j41(9,"button",22),t.bIt("click",function(){d.eBV(a);const s=t.XpG();return d.Njj(s.onChangeFiltroStatus("resgatadas"))}),t.j41(10,"span"),t.EFF(11,"Resgatadas"),t.k0s()(),t.j41(12,"button",22),t.bIt("click",function(){d.eBV(a);const s=t.XpG();return d.Njj(s.onChangeFiltroStatus("vencidas"))}),t.j41(13,"span"),t.EFF(14,"Vencidas"),t.k0s()(),t.j41(15,"button",22),t.bIt("click",function(){d.eBV(a);const s=t.XpG();return d.Njj(s.onChangeFiltroStatus("todas"))}),t.j41(16,"span"),t.EFF(17,"Todas"),t.k0s()()()(),t.DNE(18,F,7,0,"div",23)(19,V,20,8,"div",24),t.k0s()}if(2&n){const a=t.XpG();t.R7$(6),t.Y8G("ngClass","ativas"===a.filtroStatus?"bg-emerald-50 border-emerald-400 text-emerald-700":"bg-gray-50 border-gray-200 text-gray-600"),t.R7$(3),t.Y8G("ngClass","resgatadas"===a.filtroStatus?"bg-blue-50 border-blue-400 text-blue-700":"bg-gray-50 border-gray-200 text-gray-600"),t.R7$(3),t.Y8G("ngClass","vencidas"===a.filtroStatus?"bg-red-50 border-red-400 text-red-700":"bg-gray-50 border-gray-200 text-gray-600"),t.R7$(3),t.Y8G("ngClass","todas"===a.filtroStatus?"bg-stone-800 border-stone-800 text-yellow-300":"bg-gray-50 border-gray-200 text-gray-600"),t.R7$(3),t.Y8G("ngIf",!a.loading&&0===a.oficinasFiltradas.length),t.R7$(),t.Y8G("ngForOf",a.oficinasFiltradas)}}const S=[{path:"",component:(()=>{var n;class i{constructor(e,s,r){this.clubeVantagensService=e,this.storage=s,this.router=r,this.loading=!1,this.extratos=[],this.oficinasView=[],this.oficinasFiltradas=[],this.filtroStatus="ativas",this.buscaOficina="",this.idOficina=0;const o=this.storage.getLocalUser();this.idGrupo=Number(o.idGrupo);const g=this.router.getCurrentNavigation()?.extras?.state??history.state;g&&(this.idGrupo=Number(g.id_grupo),this.idOficina=Number(g.id_oficina))}ngOnInit(){}ionViewDidEnter(){0===this.idOficina?this.carregarExtrato():this.carregarExtratoOficina()}carregarExtratoOficina(){this.idGrupo&&(this.loading=!0,this.clubeVantagensService.getExtratoClubePorGrupoOficina(this.idGrupo,this.idOficina).subscribe({next:e=>{this.extratos=e??[],this.oficinasView=this.groupByOficina(this.extratos),this.aplicarFiltros(),this.loading=!1},error:e=>{this.loading=!1}}))}carregarExtrato(){this.idGrupo&&(this.loading=!0,this.clubeVantagensService.getExtratoClubePorGrupo(this.idGrupo).subscribe({next:e=>{this.extratos=e??[],this.oficinasView=this.groupByOficina(this.extratos),this.aplicarFiltros(),this.loading=!1},error:e=>{this.loading=!1}}))}groupByOficina(e){const s=new Map,r=new Date;return e.forEach(o=>{let l=s.get(o.oficinaId);l||(l={oficinaId:o.oficinaId,oficinaNome:o.oficinaNomeFantasia,pontosTotais:0,pontosResgatados:0,pontosVencidos:0,extratos:[]},s.set(o.oficinaId,l)),l.extratos.push(o);const g=o.dtExpira?new Date(o.dtExpira):null,R=!!g&&g<r;o.resgatado?l.pontosResgatados+=o.pontos:R?l.pontosVencidos+=o.pontos:l.pontosTotais+=o.pontos}),Array.from(s.values()).sort((o,l)=>o.oficinaNome.localeCompare(l.oficinaNome,"pt-BR"))}onChangeFiltroStatus(e){this.filtroStatus=e,this.aplicarFiltros()}onChangeBuscaOficina(e){this.buscaOficina=e,this.aplicarFiltros()}aplicarFiltros(){const e=new Date,s=this.buscaOficina.toLowerCase().trim();this.oficinasFiltradas=this.oficinasView.map(r=>({...r,extratos:r.extratos.filter(o=>{if(s&&!r.oficinaNome.toLowerCase().includes(s))return!1;const l=o.dtExpira?new Date(o.dtExpira):null,g=!!l&&l<e;switch(this.filtroStatus){case"ativas":return!o.resgatado&&!g;case"resgatadas":return!0===o.resgatado;case"vencidas":return!o.resgatado&&g;default:return!0}})})).filter(r=>r.extratos.length>0)}getIconeStatus(e){const s=e.dtExpira?new Date(e.dtExpira):null;return e.resgatado?"checkmark-circle-outline":s&&s<new Date?"alert-circle-outline":"star-outline"}getBadgeStatusText(e){const s=e.dtExpira?new Date(e.dtExpira):null;return e.resgatado?"Resgatado":s&&s<new Date?"Vencido":"Ativo"}getBadgeStatusColor(e){const s=e.dtExpira?new Date(e.dtExpira):null;return e.resgatado?"primary":s&&s<new Date?"danger":"success"}formatarData(e){return e?new Date(e).toLocaleDateString("pt-BR"):""}getTotalGeralPontos(){return this.oficinasView.reduce((e,s)=>e+s.pontosTotais,0)}static#t=n=()=>(this.\u0275fac=function(s){return new(s||i)(t.rXU(m.U),t.rXU(h.n),t.rXU(E.Ix))},this.\u0275cmp=t.VBU({type:i,selectors:[["app-extrato-clube-vantagens"]],standalone:!1,decls:21,vars:6,consts:[["conteudo",""],[1,"ion-no-border"],[1,"bg-gradient-to-r","from-stone-800","via-stone-700","to-yellow-500/80","px-4","pt-3","pb-3","flex","items-center","justify-between"],[1,"flex","items-center","space-x-3"],["slot","start"],["defaultHref","/revix/home","text","","color","light"],[1,"flex","flex-col"],[1,"text-xs","text-gray-200/80"],[1,"text-base","font-semibold","text-gray-50"],[1,"flex","flex-col","items-end","text-right"],[1,"text-[11px]","text-gray-100/70"],[1,"text-xl","font-bold","text-yellow-300"],[1,"bg-gray-100"],[4,"ngIf","ngIfElse"],[1,"px-4","pt-4","space-y-3"],["animated","",2,"width","60%","height","20px"],["animated","",2,"width","90%","height","80px"],[1,"px-4","pt-4","pb-24","space-y-4"],[1,"bg-white","rounded-2xl","px-3","py-3","shadow-sm","border","border-gray-100"],[1,"flex","items-center","justify-between","mb-3"],[1,"text-xs","font-medium","text-stone-700"],[1,"flex","gap-2","overflow-x-auto","pb-1","no-scrollbar"],[1,"px-3","py-1.5","rounded-full","text-xs","font-semibold","border","transition-all","flex","items-center","gap-1","min-w-max",3,"click","ngClass"],["class","mt-6 flex flex-col items-center justify-center text-center px-6",4,"ngIf"],["class","bg-white rounded-2xl shadow-sm border border-gray-100",4,"ngFor","ngForOf"],[1,"mt-6","flex","flex-col","items-center","justify-center","text-center","px-6"],[1,"text-4xl","mb-2"],[1,"text-sm","font-semibold","text-stone-700"],[1,"text-xs","text-stone-500","mt-1"],[1,"bg-white","rounded-2xl","shadow-sm","border","border-gray-100"],[1,"px-4","pt-3","pb-2","border-b","border-gray-100","flex","items-center","justify-between"],[1,"text-[11px]","uppercase","tracking-wide","text-gray-400"],[1,"text-sm","font-semibold","text-stone-800"],[1,"text-right"],[1,"text-[11px]","text-gray-400"],[1,"text-lg","font-bold","text-emerald-600"],[1,"text-[11px]","font-medium","text-emerald-700","ml-1"],[1,"flex","gap-2","justify-end","mt-1"],["class","text-[10px] text-blue-600 bg-blue-50 rounded-full px-2 py-0.5",4,"ngIf"],["class","text-[10px] text-red-600 bg-red-50 rounded-full px-2 py-0.5",4,"ngIf"],[1,"divi
1de-y","divide-gray-100"],["class","px-4 py-3 flex items-start justify-between",4,"ngFor","ngForOf"],[1,"text-[10px]","text-blue-600","bg-blue-50","rounded-full","px-2","py-0.5"],[1,"text-[10px]","text-red-600","bg-red-50","rounded-full","px-2","py-0.5"],[1,"px-4","py-3","flex","items-start","justify-between"],[1,"flex","items-start","gap-3"],[1,"mt-1","text-base",3,"name","ngClass"],[1,"text-[13px]","font-semibold","text-stone-800"],[1,"text-[11px]","text-gray-500","mt-0.5"],[4,"ngIf"],[1,"mt-1","text-[10px]","px-2","py-0.5","rounded-full",3,"color"],[1,"ml-3","text-right"],[1,"block","text-xs","text-gray-400"],[1,"text-base","font-bold",3,"ngClass"]],template:function(s,r){if(1&s&&(t.j41(0,"ion-header",1)(1,"ion-toolbar")(2,"div",2)(3,"div",3)(4,"ion-buttons",4),t.nrm(5,"ion-back-button",5),t.k0s(),t.j41(6,"div",6)(7,"span",7),t.EFF(8,"Clube de vantagens"),t.k0s(),t.j41(9,"span",8),t.EFF(10," Seus pontos "),t.k0s()()(),t.j41(11,"div",9)(12,"span",10),t.EFF(13,"Total dispon\xedvel"),t.k0s(),t.j41(14,"span",11),t.EFF(15),t.nI1(16,"number"),t.k0s()()()()(),t.j41(17,"ion-content",12),t.DNE(18,_,5,0,"ng-container",13)(19,I,20,6,"ng-template",null,0,t.C5r),t.k0s()),2&s){const o=t.sdS(20);t.R7$(15),t.SpI(" ",t.i5U(16,3,r.getTotalGeralPontos(),"1.0-0")," pts "),t.R7$(3),t.Y8G("ngIf",r.loading)("ngIfElse",o)}},dependencies:[p.YU,p.Sq,p.bT,u.In,u.QW,u.W9,u.eU,u.iq,u.ds,u.ai,u.el,p.QX],encapsulation:2}))}return n(),i})()}];let w=(()=>{var n;class i{static#t=n=()=>(this.\u0275fac=function(s){return new(s||i)},this.\u0275mod=t.$C({type:i}),this.\u0275inj=d.G2t({imports:[x.iI.forChild(S),x.iI]}))}return n(),i})(),G=(()=>{var n;class i{static#t=n=()=>(this.\u0275fac=function(s){return new(s||i)},this.\u0275mod=t.$C({type:i}),this.\u0275inj=d.G2t({imports:[p.MD,b.YN,u.bv,w]}))}return n(),i})()}}]);

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.