PageSourceSearch

https://boabolsa.com.br/app/6338.69ac6cc2235e24db.js

js boabolsa.com.br collected 2026-10-02 01:19:34 UTC 10,759 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6338],{6338:(R,v,_)=>{_.r(v),_.d(v,{BoasPageModule:()=>V});var m=_(6814),C=_(95),l=_(7311),x=_(462),d=_(5861),M=_(3286),e=_(6689),y=_(2397),b=_(7111),P=_(6406);function w(n,c){1&n&&e._UZ(0,"ion-content",1),2&n&&e.Q6J("fullscreen",!0)}function O(n,c){if(1&n&&(e.TgZ(0,"label"),e._uU(1),e.qZA()),2&n){const a=e.oxw(2);e.xp6(1),e.hij("",a.totalCards," itens encontrados")}}function T(n,c){1&n&&e._UZ(0,"ion-icon",14)}function J(n,c){if(1&n){const a=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(){const s=e.CHM(a).$implicit,o=e.oxw(3);return e.KtG(o.selectTema(s))}),e._uU(1),e.YNc(2,T,1,0,"ion-icon",13),e.qZA()}if(2&n){const a=c.$implicit,t=e.oxw(3);e.xp6(1),e.hij(" ",a," "),e.xp6(1),e.Q6J("ngIf",t.temaSelecionado)}}function Z(n,c){if(1&n&&(e.TgZ(0,"ion-row",10),e.YNc(1,J,3,2,"button",11),e.qZA()),2&n){const a=c.$implicit;e.xp6(1),e.Q6J("ngForOf",a)}}function S(n,c){if(1&n){const a=e.EpF();e.TgZ(0,"ion-icon",18),e.NdJ("click",function(){e.CHM(a);const i=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.toggleFavorite(i))}),e.qZA()}if(2&n){const a=e.oxw().$implicit,t=e.oxw(2);e.Udp("color",t.id_boas_favoritas.includes(a.idCard)?"red":"white")}}function F(n,c){if(1&n){const a=e.EpF();e.TgZ(0,"img",19),e.NdJ("click",function(){e.CHM(a);const i=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.openBoaDetalhe(i))}),e.qZA()}if(2&n){const a=e.oxw().$implicit;e.Q6J("src",a.imagem,e.LSH)}}function N(n,c){if(1&n){const a=e.EpF();e.TgZ(0,"ion-card-content")(1,"ion-card-title",20)(2,"p",21),e.NdJ("click",function(){e.CHM(a);const i=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.openBoaDetalhe(i))}),e._uU(3),e.qZA()(),e.TgZ(4,"p",22),e.NdJ("click",function(){e.CHM(a);const i=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.openBoaDetalhe(i))}),e._uU(5,"Leia mais"),e.qZA()()}if(2&n){const a=e.oxw().$implicit;e.xp6(3),e.Oqu(a.titulo)}}function k(n,c){if(1&n&&(e.TgZ(0,"ion-card",15),e.YNc(1,S,1,2,"ion-icon",16),e.YNc(2,F,1,1,"img",17),e.YNc(3,N,6,1,"ion-card-content",4),e.qZA()),2&n){const a=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!a.isLoading),e.xp6(1),e.Q6J("ngIf",!a.isLoading),e.xp6(1),e.Q6J("ngIf",!a.isLoading)}}function L(n,c){1&n&&e._UZ(0,"ion-spinner",23)}function I(n,c){if(1&n){const a=e.EpF();e.TgZ(0,"button",24),e.NdJ("click",function(){e.CHM(a);const i=e.oxw(2);return e.KtG(i.verMais())}),e.TgZ(1,"span"),e._uU(2," Ver mais "),e.qZA(),e._UZ(3,"ion-icon",25),e.qZA()}}function Y(n,c){if(1&n){const a=e.EpF();e.TgZ(0,"ion-content",1)(1,"ion-refresher",2),e.NdJ("ionRefresh",function(i){e.CHM(a);const s=e.oxw();return e.KtG(s.doRefresh(i))}),e._UZ(2,"ion-refresher-content"),e.qZA(),e.TgZ(3,"div",3),e.YNc(4,O,2,1,"label",4),e.qZA(),e.YNc(5,Z,2,1,"ion-row",5),e.YNc(6,k,4,3,"ion-card",6),e.TgZ(7,"div",7),e.YNc(8,L,1,0,"ion-spinner",8),e.YNc(9,I,4,0,"button",9),e.qZA()()}if(2&n){const a=e.oxw();e.Q6J("fullscreen",!0),e.xp6(4),e.Q6J("ngIf",!a.isLoading),e.xp6(1),e.Q6J("ngForOf",a.temasPorLinha),e.xp6(1),e.Q6J("ngForOf",a.cards),e.xp6(2),e.Q6J("ngIf",a.spinnerVerMais),e.xp6(1),e.Q6J("ngIf",a.btnVerMais)}}const A=[{path:"",component:(()=>{var n;class c{constructor(t,i,s,o,r,p,g){this.loadingController=t,this.alertController=i,this.storageService=s,this.boasService=o,this.utilsService=r,this.modalController=p,this.navController=g,this.isLoading=!0,this.btnVerMais=!1,this.spinnerVerMais=!1,this.pagina=0,this.totalCards=0,this.temas=[],this.temasPorLinha=[],this.maxCharactersPerLine=29,this.cards=[],this.boas_favoritas=[],this.id_boas_favoritas=[],this.temaSelecionado="",this.show_background=!0,this.show_conteudo=!1}ngOnInit(){this.getBoas(null,!0,!1)}alert(t){var i=this;return(0,d.Z)(function*(){i.alertController.create({header:"Ops!",subHeader:t,buttons:["OK"]}).then(s=>{s.present()})})()}organizarTemasPorLinhas(){let t=[],i=0;this.temas.forEach(s=>{i+s.length<=this.maxCharactersPerLine&&t.length<3?(t.push(s),i+=s.length):(this.temasPorLinha.push([...t]),t=[s],i=s.length)}),t.length>0&&this.temasPorLinha.push([...t])}getBoas(t,i,s){var o=this;return(0,d.Z)(function*(){const r=yield o.loadingController.create({message:"Por favor aguarde..."});(0===o.pagina||!0===s)&&(o.show_background=!0,o.show_conteudo=!1,yield r.present()),o.isLoading=i,o.btnVerMais=!1;let p=o.pagina+1;try{const g=yield o.boasService.getBoas(p,"",o.temaSelecionado);let U=JSON.stringify(g),u=JSON.parse(U),B="errors"in u;if(B){let f="";B&&(f=u.errors.error),0===f.length&&(f="Ocorreu um erro inesperado. C\xf3digo 589."),o.show_background=!1,o.show_conteudo=!0,yield r.dismiss(),t&&t.target.complete(),f.toLowerCase().includes("voc\xea acessou de outro celular. favor refazer login")?o.utilsService.logout():yield o.alert(f)}else o.temaSelecionado?(o.temas=[],o.temasPorLinha=[],o.temas.push(o.temaSelecionado),o.organizarTemasPorLinhas()):(o.temas=[],o.temasPorLinha=[],o.temas=u.temas,o.organizarTemasPorLinhas()),o.cards=0==o.pagina?u.cards:o.cards.concat(u.cards),o.totalCards=u.totalCards,yield o.storageService.get("boasfavoritas").then(f=>{if(f.value&&null!=f.value){let H=JSON.parse(f.value);o.boas_favoritas=H,o.id_boas_favoritas=[];for(let h=0;h<o.boas_favoritas.length;h++)o.id_boas_favoritas.push(o.boas_favoritas[h].idCard)}}),r&&(yield r.dismiss()),o.pagina++,o.isLoading=!1,o.spinnerVerMais=!1,o.btnVerMais=o.cards.length<o.totalCards,o.show_background=!1,o.show_conteudo=!0,t&&t.target.complete()}catch(g){r&&(yield r.dismiss()),o.isLoading=!1,o.spinnerVerMais=!1,o.show_background=!1,o.show_conteudo=!0,yield o.alert("Ocorreu um erro inesperado. C\xf3digo 327. "+g.message),t&&t.target.complete()}})()}
1refreshBoasFavoritas(){var t=this;return(0,d.Z)(function*(){yield t.storageService.get("boasfavoritas").then(i=>{if(i.value&&null!=i.value){let o=JSON.parse(i.value);t.boas_favoritas=o,t.id_boas_favoritas=[];for(let r=0;r<t.boas_favoritas.length;r++)t.id_boas_favoritas.push(t.boas_favoritas[r].idCard)}})})()}ionViewDidEnter(){var t=this;return(0,d.Z)(function*(){yield t.refreshBoasFavoritas()})()}toggleFavorite(t){var i=this;return(0,d.Z)(function*(){let s=i.boas_favoritas.findIndex(r=>JSON.stringify(r)===JSON.stringify(t)),o=i.id_boas_favoritas.indexOf(t.idCard);-1!==s?(i.boas_favoritas.splice(s,1),-1!==o&&i.id_boas_favoritas.splice(o,1),yield i.storageService.set("boasfavoritas",JSON.stringify(i.boas_favoritas)),yield i.storageService.get("boasfavoritas").then(r=>{})):(i.boas_favoritas.push(t),i.id_boas_favoritas.push(t.idCard),yield i.storageService.set("boasfavoritas",JSON.stringify(i.boas_favoritas)),yield i.storageService.get("boasfavoritas").then(r=>{}))})()}selectTema(t){this.isLoading=!0,this.btnVerMais=!1,this.spinnerVerMais=!1,this.temaSelecionado=this.temaSelecionado===t?"":t,this.pagina=0,this.getBoas(null,!0,!1)}openBoaDetalhe(t){var i=this;return(0,d.Z)(function*(){const s={component:M.d,componentProps:{boa:t},cssClass:"modal-fullscreen"};var o=yield i.modalController.create(s);o.onDidDismiss().then(r=>{i.refreshBoasFavoritas()}),yield o.present()})()}doRefresh(t){var i=this;return(0,d.Z)(function*(){i.pagina=0,i.temaSelecionado="",yield i.getBoas(t,!0,!0)})()}verMais(){var t=this;return(0,d.Z)(function*(){t.spinnerVerMais=!0,t.getBoas(null,!1,!1)})()}}return(n=c).\u0275fac=function(t){return new(t||n)(e.Y36(l.HT),e.Y36(l.Br),e.Y36(y.V),e.Y36(b.S),e.Y36(P.F),e.Y36(l.IN),e.Y36(l.SH))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-boas"]],decls:2,vars:2,consts:[[3,"fullscreen",4,"ngIf"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"itens-encontrados"],[4,"ngIf"],["class","temas",4,"ngFor","ngForOf"],["class","custom-card",4,"ngFor","ngForOf"],[1,"center-button-mais"],["fill","white","name","circles",4,"ngIf"],["class","btn-ver-mais",3,"click",4,"ngIf"],[1,"temas"],["class","btn-tema",3,"click",4,"ngFor","ngForOf"],[1,"btn-tema",3,"click"],["name","close","class","custom-icon-close",4,"ngIf"],["name","close",1,"custom-icon-close"],[1,"custom-card"],["name","heart","size","large","class","heart-icon",3,"color","click",4,"ngIf"],[3,"src","click",4,"ngIf"],["name","heart","size","large",1,"heart-icon",3,"click"],[3,"src","click"],["no-paddingy",""],[1,"custom-card-title",3,"click"],[1,"btn-leia-mais",3,"click"],["fill","white","name","circles"],[1,"btn-ver-mais",3,"click"],["name","chevron-down-outline"]],template:function(t,i){1&t&&(e.YNc(0,w,1,1,"ion-content",0),e.YNc(1,Y,10,6,"ion-content",0)),2&t&&(e.Q6J("ngIf",i.show_background),e.xp6(1),e.Q6J("ngIf",i.show_conteudo))},dependencies:[m.sg,m.O5,l.PM,l.FN,l.Dq,l.W2,l.gu,l.nJ,l.Wo,l.Nd,l.PQ],styles:['@charset "UTF-8";ion-content[_ngcontent-%COMP%]{background-color:#004793;width:100%;height:100%}ion-content[_ngcontent-%COMP%]::part(background){background:none}.itens-encontrados[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-top:20px;color:#fff;font-size:14px;margin-bottom:20px;font-family:MontserratRegular}.temas[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.btn-tema[_ngcontent-%COMP%]{padding:8px 12px;border-radius:20px;color:#fff;font-weight:700;margin:5px;font-size:14px;display:flex;align-items:center;justify-content:space-between;background-color:#0cf;transition:transform .3s;font-family:MontserratSemiBold}.btn-tema[_ngcontent-%COMP%]:active{transform:scale(.9)}.custom-icon-close[_ngcontent-%COMP%]{color:#fff;font-weight:700;font-size:20px;margin-left:2px}.custom-card[_ngcontent-%COMP%]{border-radius:10px}.card-with-heart[_ngcontent-%COMP%]{position:relative}.heart-icon[_ngcontent-%COMP%]{position:absolute;top:10px;right:10px;color:#fff;cursor:pointer;z-index:1}.title-img[_ngcontent-%COMP%]{position:absolute;bottom:30%;left:15px;color:#fff;width:70%;font-weight:700;font-size:14px;text-transform:uppercase;line-height:1.2}.custom-card-title[_ngcontent-%COMP%]{font-family:MontserratSemiBold,sans-serif;text-transform:uppercase}.btn-leia-mais[_ngcontent-%COMP%]{color:#222;margin-top:10px;font-family:MontserratBold,sans-serif;text-align:center}.center-button-mais[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-top:20px}.btn-ver-mais[_ngcontent-%COMP%]{background-color:#004793;border:none;border-radius:64px;color:#fff;padding:10px 20px;cursor:pointer;font-size:14px;margin-bottom:10px;font-family:MontserratBold}.btn-ver-mais[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{margin-right:5px}ion-spinner[_ngcontent-%COMP%]{--color: #fff}']}),c})()}];let Q=(()=>{var n;class c{}return(n=c).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[x.Bz.forChild(A),x.Bz]}),c})();var z=_(3525);let V=(()=>{var n;class c{}return(n=c).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[b.S,P.F],imports:[m.ez,C.u5,l.Pc,Q,z.BoaDetalhePageModule]}),c})()}}]);

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.