1"use strict";(self.webpackChunksoulbilingue_frontend=self.webpackChunksoulbilingue_frontend||[]).push([[460],{7460:function(H,w,i){i.r(w),i.d(w,{StudentEngagementModule:function(){return ot}});var A=i(3144),T=i(5671),s=i(9808),P=i(2302),N=i(2709),M=i(7068),e=i(1891),_=i(1990),S=i(5745),Y=i(1314),E=i(9224),v=i(7423);function Z(n,o){if(1&n){var a=e.EpF();e.TgZ(0,"div",6)(1,"mat-card",7)(2,"mat-card-content")(3,"p",8),e._uU(4),e.qZA(),e.TgZ(5,"p",9),e._uU(6),e.qZA(),e.TgZ(7,"p")(8,"b"),e._uU(9,"In\xedcio:"),e.qZA(),e._uU(10),e.ALo(11,"date"),e.qZA(),e.TgZ(12,"p")(13,"b"),e._uU(14,"Fim:"),e.qZA(),e._uU(15),e.ALo(16,"date"),e.qZA(),e.TgZ(17,"p")(18,"b"),e._uU(19,"Ativo:"),e.qZA(),e._uU(20),e.qZA()(),e.TgZ(21,"mat-card-actions",10)(22,"button",11),e.NdJ("click",function(){var c=e.CHM(a).$implicit;return e.oxw().onEngagementDetail(c.id)}),e._uU(23),e.qZA()()()()}if(2&n){var t=o.$implicit;e.xp6(4),e.Oqu(t.title),e.xp6(2),e.Oqu(t.programName),e.xp6(4),e.hij(" ",e.lcZ(11,6,t.dateStart),""),e.xp6(5),e.hij(" ",e.lcZ(16,8,t.dateEnd),""),e.xp6(5),e.hij(" ","S"==t.status?"Sim":"N\xe3o",""),e.xp6(3),e.Oqu("N"==t.status?"Ver Doa\xe7\xf5es":"Participar")}}var R=function(){var n=function(){return(0,A.Z)(function o(a,t,r,l,c){(0,T.Z)(this,o),this.router=a,this.engagementService=t,this.activatedRoute=r,this.studentService=l,this.tokenService=c,this.engagements=[],this.userSession=this.tokenService.getUserSession()},[{key:"ngOnInit",value:function(){var t=this,r=this.tokenService.getUserSession(),c=((new Date).toISOString().split("T"),"?programId=".concat(r.program,"&page=",0,"&size=",20,"&status=","S","&isStudent=",!0));this.studentService.getStudent(this.userSession.id).subscribe(function(g){t.student=g}),this.engagementService.searchEgagement(null,c).subscribe({next:function(C){t.engagements=C.content},error:function(C){}})}},{key:"onEngagementDetail",value:function(t){this.router.navigate(["/admin/student-engagement/share/".concat(t)])}},{key:"onEngagementDonation",value:function(t){this.router.navigate(["/admin/admin-engagement/donations/".concat(t)])}}])}();return n.\u0275fac=function(a){return new(a||n)(e.Y36(P.F0),e.Y36(_.M),e.Y36(P.gz),e.Y36(S.V),e.Y36(Y.B))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-student-list-engagement"]],decls:7,vars:1,consts:[[1,"container-no-margin"],[1,"company-container"],[1,"title-comp","mb-3"],[1,""],[1,"engagements"],["class","engagement-cards",4,"ngFor","ngForOf"],[1,"engagement-cards"],[1,"mat-elevation-z4","engagement-card"],[1,"title"],[1,"title-program"],[1,"d-flex","justify-content-end"],["mat-flat-button","","color","primary",1,"ml-3",3,"click"]],template:function(a,t){1&a&&(e.TgZ(0,"div",0)(1,"section",1)(2,"div",2)(3,"h3",3),e._uU(4,"Engajamentos"),e.qZA()(),e.TgZ(5,"div",4),e.YNc(6,Z,24,10,"div",5),e.qZA()()()),2&a&&(e.xp6(6),e.Q6J("ngForOf",t.engagements))},directives:[s.sg,E.a8,E.dn,E.hq,v.lW],pipes:[s.uU],styles:[".company-container[_ngcontent-%COMP%] .title-comp[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.engagements[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;grid-gap:16px}.engagements[_ngcontent-%COMP%] .engagement-cards[_ngcontent-%COMP%]{width:100%}.engagements[_ngcontent-%COMP%] .engagement-cards[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:18px;font-weight:700}.engagements[_ngcontent-%COMP%] .engagement-cards[_ngcontent-%COMP%] .title-program[_ngcontent-%COMP%]{font-size:16px;font-weight:300}@media (min-width: 576px){.engagements[_ngcontent-%COMP%] .engagement-cards[_ngcontent-%COMP%]{width:100%}}@media (min-width: 768px){.engagements[_ngcontent-%COMP%] .engagement-cards[_ngcontent-%COMP%]{width:48%}}@media (min-width: 992px){.engagements[_ngcontent-%COMP%] .engagement-cards[_ngcontent-%COMP%]{width:32%}}@media (min-width: 1200px){.engagements[_ngcontent-%COMP%] .engagement-cards[_ngcontent-%COMP%]{width:23%}}@media (min-width: 1400px){.engagements[_ngcontent-%COMP%] .engagement-cards[_ngcontent-%COMP%]{width:24%}}"]}),n}(),h=i(2075),F=i(2340),B=i(6087),ee=i(4847),se=i(1059),ce=i(7545),le=i(7221),ue=i(4850),ge=i(6787),de=i(1086),me=i(8631),ie=i(2149),pe=i(5113),fe=i(1165),_e=i(2313),he=i(5476),ve=i(2466),Ce=i(1619),Oe=i(9287),Pe=i(8966),Se=i(7469),Me=i(5245),Ee=i(773),be=i(5899),xe=i(508);function W(){var n,o,a="function"==typeof Symbol?Symbol:{},t=a.iterator||"@@iterator",r=a.toStringTag||"@@toStringTag";function l(O,K,D,Q){var J=Object.create((K&&K.prototype instanceof g?K:g).prototype);return b(J,"_invoke",function(ne,ae,V){var U,p,f,$=0,re=V||[],z=!1,j={p:0,n:0,v:n,a:X,f:X.bind(n,4),d:function(x,L){return U=x,p=0,f=n,j.n=L,c}};function X(I,x){for(p=I,f=x,o=0;!z&&$&&!L&&o<re.length;o++){var L,y=re[o],oe=j.p,q=y[2];I>3?(L=q===x)&&(f=y[(p=y[4])?5:(p=3,3)],y[4]=y[5]=n):y[0]<=oe&&((L=I<2&&oe<y[1])?(p=0,j.v=x,j.n=y[1]):oe<q&&(L=I<3||y[0]>x||x>q)&&(y[4]=I,y[5]=x,j.n=q,p=0))}if(L||I>1)return c;throw z=!0,x}
1return function(I,x,L){if($>1)throw TypeError("Generator is already running");for(z&&1===x&&X(x,L),p=x,f=L;(o=p<2?n:f)||!z;){U||(p?p<3?(p>1&&(j.n=-1),X(p,f)):j.n=f:j.v=f);try{if($=2,U){if(p||(I="next"),o=U[I]){if(!(o=o.call(U,f)))throw TypeError("iterator result is not an object");if(!o.done)return o;f=o.value,p<2&&(p=0)}else 1===p&&(o=U.return)&&o.call(U),p<2&&(f=TypeError("The iterator does not provide a '"+I+"' method"),p=1);U=n}else if((o=(z=j.n<0)?f:ne.call(ae,j))!==c)break}catch(y){U=n,p=1,f=y}finally{$=1}}return{value:o,done:z}}}(O,D,Q),!0),J}var c={};function g(){}function C(){}function d(){}o=Object.getPrototypeOf;var m=[][t]?o(o([][t]())):(b(o={},t,function(){return this}),o),u=d.prototype=g.prototype=Object.create(m);function G(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,d):(O.__proto__=d,b(O,r,"GeneratorFunction")),O.prototype=Object.create(u),O}return C.prototype=d,b(u,"constructor",d),b(d,"constructor",C),C.displayName="GeneratorFunction",b(d,r,"GeneratorFunction"),b(u),b(u,r,"Generator"),b(u,t,function(){return this}),b(u,"toString",function(){return"[object Generator]"}),(W=function(){return{w:l,m:G}})()}function b(n,o,a,t){var r=Object.defineProperty;try{r({},"",{})}catch(l){r=0}(b=function(c,g,C,d){function m(u,G){b(c,u,function(O){return this._invoke(u,G,O)})}g?r?r(c,g,{value:C,enumerable:!d,configurable:!d,writable:!d}):c[g]=C:(m("next",0),m("throw",1),m("return",2))})(n,o,a,t)}var te=function(n,o,a,t){return new(a||(a=Promise))(function(l,c){function g(m){try{d(t.next(m))}catch(u){c(u)}}function C(m){try{d(t.throw(m))}catch(u){c(u)}}function d(m){m.done?l(m.value):function r(l){return l instanceof a?l:new a(function(c){c(l)})}(m.value).then(g,C)}d((t=t.apply(n,o||[])).next())})};function ye(n,o){if(1&n&&e._UZ(0,"img",50),2&n){var a=e.oxw();e.Q6J("src",a.imgUrl,e.LSH)}}function Ae(n,o){1&n&&e._UZ(0,"img",51)}function Te(n,o){if(1&n){var a=e.EpF();e.TgZ(0,"button",52),e.NdJ("click",function(){return e.CHM(a),e.oxw().share()}),e._uU(1," Copiar link ou Compartilhar "),e.TgZ(2,"mat-icon"),e._uU(3,"share"),e.qZA()()}}function Ze(n,o){1&n&&(e.TgZ(0,"div",53),e._UZ(1,"mat-spinner",54),e.qZA())}function Re(n,o){if(1&n&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&n){var a=e.oxw();e.xp6(1),e.hij(" ",null==a.distributionPoints?null:a.distributionPoints.engaged," ")}}function De(n,o){1&n&&(e.TgZ(0,"div",53),e._UZ(1,"mat-spinner",54),e.qZA())}function Ue(n,o){if(1&n&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&n){var a=e.oxw();e.xp6(1),e.hij(" ",null==a.distributionPoints?null:a.distributionPoints.donations," ")}}function Ie(n,o){1&n&&(e.TgZ(0,"div",53),e._UZ(1,"mat-spinner",54),e.qZA())}function we(n,o){if(1&n&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&n){var a=e.oxw();e.xp6(1),e.hij(" ",null==a.distributionPoints?null:a.distributionPoints.points," ")}}function je(n,o){if(1&n&&(e.TgZ(0,"div",55)(1,"div",56),e._uU(2),e.qZA(),e.TgZ(3,"div",57),e._uU(4,"restante(s)"),e.qZA()()),2&n){var a=e.oxw();e.xp6(2),e.hij("",a.daysRemaining," dia(s)")}}function Le(n,o){1&n&&(e.TgZ(0,"div",55)(1,"div",56),e._uU(2,"Finalizado"),e.qZA()())}function Ne(n,o){1&n&&(e.TgZ(0,"div",29),e._UZ(1,"mat-progress-bar",58),e.qZA())}function Ye(n,o){1&n&&(e.TgZ(0,"mat-header-cell",59),e._uU(1," Quem engajou "),e.qZA())}function Fe(n,o){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&n){var a=o.$implicit;e.xp6(1),e.hij(" ",a.name," ")}}function Be(n,o){1&n&&(e.TgZ(0,"mat-header-cell",60),e._uU(1," Data "),e.qZA())}function Ge(n,o){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.ALo(2,"date"),e.qZA()),2&n){var a=o.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,a.dateRegister)," ")}}function We(n,o){1&n&&(e.TgZ(0,"mat-header-cell",59),e._uU(1," Status "),e.qZA())}function Ke(n,o){if(1&n&&(e.TgZ(0,"mat-cell",61),e._uU(1),e.qZA()),2&n){var a=o.$implicit,t=e.oxw();e.Q6J("ngClass",t.getStatusColorClass(a.status)),e.xp6(1),e.hij(" ","PG"===a.status?"Pago":"EP"===a.status?"Expirado":"Aguardando"," ")}}function Qe(n,o){1&n&&(e.TgZ(0,"mat-header-cell",60),e._uU(1," Valor "),e.qZA())}function ke(n,o){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&n){var a=o.$implicit;e.xp6(1),e.hij("R$ ",a.value," ")}}function ze(n,o){1&n&&(e.TgZ(0,"mat-header-cell",62),e._uU(1," Cupons "),e.qZA())}function Je(n,o){if(1&n&&(e.TgZ(0,"mat-cell",63),e._uU(1),e.qZA()),2&n){var a=o.$implicit;e.xp6(1),e.hij(" ",a.luckyNumbers.length," ")}}function He(n,o){1&n&&e._UZ(0,"mat-header-row")}function Ve(n,o){if(1&n){var a=e.EpF();e.TgZ(0,"mat-row",64),e.NdJ("click",function(){var l=e.CHM(a).$implicit;return e.oxw().openModal(l)}),e.qZA()}}function $e(n,o){1&n&&(e.TgZ(0,"tr",65)(1,"td",66),e._uU(2,"Nenhum registro encontrado "),e.qZA()())}var qe=[{path:"share/:engagementId",component:function(){var n=function(){return(0,A.Z)(function o(a,t,r,l,c,g,C,d,m,u,G,O,K){var D=this;(0,T.Z)(this,o),this.breakpointObserver=a,this.tokenService=t,this.userService=r,this.domSanitizer=l,this.englishLevelService=c,this.translateService=g,this.donationService=C,this.studentService=d,this.clipboard=m,this.activatedRoute=u,this.engagementService=G,this.dialog=O,this.alertService=K,this.displayedColumns=["name","dateRegister","status","value","luckyNumber"],this.dataSource=new h.by([]),this.resultsLength=0,this.isLoadingResults=!0,this.isRateLimitReached=!1,this.mobileDevice=!1,this.isAdmin=!1,this.existsPhoto=!1,this.submittedEngagement=!1,this.searchObject={dateBegin:null,dateEnd:null,engagementId:null,luckyNumber:null,programId:null,sort:{direction:null,propertie:null},status:null,userId:null},this.currentDate=new Date,this.distributionPointsFlag=!1,this.distributionPoints={donations:0,engaged:0,points:0},this.breakpointObserver.observe(["(max-width: 992px)"]).subscribe(function(Q){D.mobileDevice=Q.matches,D.displayedColumns=D.mobileDevice?["name","status","value"]:["name","dateRegister","status","value","luckyNumber"]}),this.urlBase=F.N.backendUrl+"/api/admin/archives/",this.userSession=this.tokenService.getUserSession()},[{key:"ngOnInit",value:function(){var t=this;this.userName=this.userSession.name,this.englishLevelService.findAll(
1).subscribe(function(l){t.englishLevel=l.englishLevels.find(function(c){return c.id===t.userSession.level}).description}),this.updateImage(),this.studentService.getStudent(this.userSession.id).subscribe(function(l){t.student=l}),this.activatedRoute.params.subscribe(function(l){t.engagementId=l.engagementId,t.engagementService.getEgagementById(t.engagementId).subscribe({next:function(g){t.engagement=g;var C=(0,s.p6)(g.dateStart,"dd/MM/yyyy","pt-BR"),d=(0,s.p6)(g.dateEnd,"dd/MM/yyyy","pt-BR"),m=C.split("/");t.dateObjectStart=new Date(parseInt(m[2]),parseInt(m[1])-1,parseInt(m[0]));var u=d.split("/");t.dateObjectEnd=new Date(parseInt(u[2]),parseInt(u[1])-1,parseInt(u[0])),t.totalDays=Math.floor((t.dateObjectEnd-t.dateObjectStart)/864e5),t.daysPassed=t.currentDate>=t.dateObjectEnd?t.totalDays:Math.max(Math.floor((t.currentDate-t.dateObjectStart)/864e5),0),t.daysRemaining=t.totalDays-t.daysPassed,t.percentageComplete=t.daysPassed>=t.totalDays?100:(t.daysPassed/t.totalDays*100).toFixed(0),t.searchObject.userId=t.userSession.id,t.searchObject.engagementId=t.engagementId,t.getDonation(),t.getKpis()},error:function(g){t.alertService.showAlertDanger(t.translateService.instant(ie.Z.ERROR_INTERNAL))}})})}},{key:"applyFilter",value:function(t){this.dataSource.filter=t.target.value.trim().toLowerCase()}},{key:"onSearchDonation",value:function(){}},{key:"updateImage",value:function(){var t=this;this.userService.findByEmail(this.userSession.email).subscribe(function(r){t.existsPhoto=!!r.photo,t.imgUrl=t.domSanitizer.bypassSecurityTrustUrl(t.urlBase+r.photo),t.metaImageUrl=t.urlBase+r.photo})}},{key:"share",value:function(){return te(this,void 0,void 0,W().m(function t(){var r=this;return W().w(function(l){for(;;)switch(l.n){case 0:this.donationService.createHashLinkDonation(this.userSession.id,this.engagement.id).subscribe(function(c){return te(r,void 0,void 0,W().m(function g(){var d,m,u,G,O,D,C=this;return W().w(function(k){for(;;)switch(k.n){case 0:return d=this.student.name,m="Oi, tudo bem? Estou com uma super oportunidade de interc\xe2mbio batendo na minha porta! Me ajude doando R$ 10 e concorra a pr\xeamios. Clique no link para saber mais:",G=this.imgUrl,this.copyToClipboard(u=c.url),k.n=1,fetch(G).then(function(J){return J.blob()});case 1:O=k.v,new File([O],"imagem.jpg",{type:O.type}),(D=window.navigator).share&&D.canShare({title:d,text:m,url:u})?function(ne,ae,V){te(C,void 0,void 0,W().m(function U(){return W().w(function(f){for(;;)switch(f.p=f.n){case 0:return f.p=0,f.n=1,D.share({title:ne,text:ae,url:V});case 1:f.n=3;break;case 2:f.p=2,f.v&&this.copyToClipboard(V);case 3:return f.a(2)}},U,this,[[0,2]])}))}("".concat(d),"".concat(m),"".concat(u)):this.copyToClipboard(u);case 2:return k.a(2)}},g,this)}))},function(c){r.alertService.showAlertDanger(r.translateService.instant(ie.Z.ERROR_INTERNAL))});case 1:return l.a(2)}},t,this)}))}},{key:"copyToClipboard",value:function(t){this.clipboard.copy(t)}},{key:"getKpis",value:function(){var t=this;this.donationService.getKpis(this.userSession.id,this.engagement.id).subscribe(function(r){t.distributionPointsFlag=!0,t.distributionPoints=r,t.distributionPoints.points>=t.engagement.score&&(t.distributionPoints.points=t.engagement.score)})}},{key:"getDonation",value:function(){var t=this;this.sort.sortChange.subscribe(function(){return t.paginator.pageIndex=1}),this.searchObject.sort.direction=this.sort.direction,this.searchObject.sort.propertie="name",(0,ge.T)(this.sort.sortChange,this.paginator.page).pipe((0,se.O)({}),(0,ce.w)(function(){return t.isLoadingResults=!0,t.donationService.searchDonation(Object.assign(Object.assign({},t.searchObject),{sort:Object.assign(Object.assign({},t.searchObject.sort),{direction:t.sort.direction})}),"?page=".concat(t.paginator.pageIndex,"&size=",20,"&sort=").concat(t.sort.direction)).pipe((0,le.K)(function(){return(0,de.of)(null)}))}),(0,ue.U)(function(r){return t.isLoadingResults=!1,t.isRateLimitReached=null===r,null===r?[]:(t.resultsLength=r.totalElements,r.content)})).subscribe(function(r){t.dataSource=r})}},{key:"openModal",value:function(t){"PG"===t.status?this.dialog.open(me.g,{maxWidth:"500px",panelClass:"custom-dialog-container",data:{content:t,isStudent:!0}}):"AG"===t.status?this.alertService.showAlertSuccess("Aguardando pagamento!"):this.alertService.showAlertWarning("Pagamento expirado!")}},{key:"getStatusColorClass",value:function(t){switch(t){case"PG":return"status-pago";case"EP":return"status-expirado";default:return"status-aguardando"}}}])}();return n.\u0275fac=function(a){return new(a||n)(e.Y36(pe.Yg),e.Y36(Y.B),e.Y36(fe.K),e.Y36(_e.H7),e.Y36(he.Q),e.Y36(ve.sK),e.Y36(Ce.l),e.Y36(S.V),e.Y36(Oe.TU),e.Y36(P.gz),e.Y36(_.M),e.Y36(Pe.uw),e.Y36(Se.c))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-student-engagement"]],viewQuery:function(a,t){var r;1&a&&(e.Gf(B.NW,5),e.Gf(ee.YE,5)),2&a&&(e.iGM(r=e.CRH())&&(t.paginator=r.first),e.iGM(r=e.CRH())&&(t.sort=r.first))},decls:97,vars:32,consts:[[1,"content"],["id","profile",1,"profile"],[1,"grow-1"],[1,"student-profile"],[1,"ph
1oto"],["class","profile-img-src","alt","photo profile",3,"src",4,"ngIf"],["src","./assets/img/img-default.png","class","profile-img-src",4,"ngIf"],[1,"name-level"],[1,"message"],[1,"button-share"],["mat-raised-button","","color","primary","type","button",3,"click",4,"ngIf"],[1,"donation"],[1,"engagers"],["class","spinner d-flex justify-content-center mb-2",4,"ngIf"],[4,"ngIf"],[1,"donations"],[1,"points"],["id","numbers",1,"numbers"],[1,"mat-card-header"],[1,"mat-card-title"],[1,"mat-card-content"],[1,"info-progress","d-flex","justify-content-between"],[1,"item"],[1,"progress-container"],["mode","determinate","diameter","200",1,"progress-circle",3,"value"],["class","progress-text",4,"ngIf"],[1,"info-last","d-flex","justify-content-center"],[1,"info-recent","mt-5","d-flex","align-items-center"],["id","engaged",1,"engaged"],[1,""],["class","",4,"ngIf"],[1,"mat-elevation-z4"],[1,"table-container"],["matSort","","matSortActive","created","matSortDisableClear","","matSortDirection","desc",3,"dataSource"],["table",""],["matColumnDef","name"],["mat-sort-header","","disableClear","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","dateRegister"],["disableClear","",4,"matHeaderCellDef"],["matColumnDef","status"],[3,"ngClass",4,"matCellDef"],["matColumnDef","value"],["matColumnDef","luckyNumber"],["disableClear","","class","sticky-end",4,"matHeaderCellDef"],["class","sticky-end-value",4,"matCellDef"],[4,"matHeaderRowDef"],["matRipple","",3,"click",4,"matRowDef","matRowDefColumns"],["class","mat-row d-flex justify-content-start align-items-center",4,"matNoDataRow"],["hidePageSize","","showFirstLastButtons","","aria-label","Select page of GitHub search results",3,"length","pageSize"],["alt","photo profile",1,"profile-img-src",3,"src"],["src","./assets/img/img-default.png",1,"profile-img-src"],["mat-raised-button","","color","primary","type","button",3,"click"],[1,"spinner","d-flex","justify-content-center","mb-2"],["diameter","30"],[1,"progress-text"],[1,"top"],[1,"bottom"],["mode","indeterminate"],["mat-sort-header","","disableClear",""],["disableClear",""],[3,"ngClass"],["disableClear","",1,"sticky-end"],[1,"sticky-end-value"],["matRipple","",3,"click"],[1,"mat-row","d-flex","justify-content-start","align-items-center"],["colspan","4",1,"mat-cell",2,"border-bottom-width","0px"]],template:function(a,t){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),e.YNc(5,ye,1,1,"img",5),e.YNc(6,Ae,1,0,"img",6),e.qZA(),e.TgZ(7,"div",7)(8,"h5"),e._uU(9),e.qZA(),e.TgZ(10,"h6"),e._uU(11,"Estudante Soul Bil\xedngue"),e.qZA()(),e.TgZ(12,"div",8)(13,"caption"),e._uU(14," Ol\xe1! Estou concorrendo a uma super oportunidade: um interc\xe2mbio para melhorar o meu ingl\xeas. Me ajude doando R$10 e concorra a pr\xeamios. Toque no link e saiba mais! "),e.qZA()(),e.TgZ(15,"div",9),e.YNc(16,Te,4,0,"button",10),e.qZA(),e.TgZ(17,"div",11)(18,"div",12),e.YNc(19,Ze,2,0,"div",13),e.YNc(20,Re,2,1,"h2",14),e.TgZ(21,"p"),e._uU(22,"Doadores"),e.qZA()(),e.TgZ(23,"div",15),e.YNc(24,De,2,0,"div",13),e.YNc(25,Ue,2,1,"h2",14),e.TgZ(26,"p"),e._uU(27,"Doa\xe7\xf5es"),e.qZA()(),e.TgZ(28,"div",16),e.YNc(29,Ie,2,0,"div",13),e.YNc(30,we,2,1,"h2",14),e.TgZ(31,"p"),e._uU(32,"Pontos"),e.qZA()()()()()(),e.TgZ(33,"div",17)(34,"mat-card",2)(35,"mat-card-header",18)(36,"mat-card-title",19),e._uU(37),e.qZA()(),e.TgZ(38,"mat-card-content",20)(39,"div",21)(40,"div",22)(41,"mat-icon"),e._uU(42,"calendar_month"),e.qZA(),e.TgZ(43,"b"),e._uU(44,"\xcdnicio:"),e.qZA(),e._uU(45),e.ALo(46,"date"),e.qZA(),e.TgZ(47,"div",22)(48,"mat-icon"),e._uU(49,"task_alt"),e.qZA(),e.TgZ(50,"b"),e._uU(51,"Fim:"),e.qZA(),e._uU(52),e.ALo(53,"date"),e.qZA()(),e.TgZ(54,"div",23),e._UZ(55,"mat-progress-spinner",24),e.YNc(56,je,5,1,"div",25),e.YNc(57,Le,3,0,"div",25),e.qZA(),e.TgZ(58,"div",26)(59,"h3"),e._uU(60),e.qZA()(),e.TgZ(61,"div",27)(62,"div",22)(63,"mat-icon"),e._uU(64,"today"),e.qZA(),e.TgZ(65,"b"),e._uU(66,"Engajamento recente:"),e.qZA(),e._uU(67),e.ALo(68,"date"),e.qZA()()()()(),e.TgZ(69,"div",28)(70,"div",29)(71,"h4"),e._uU(72,"Doa\xe7\xf5es recebidas"),e.qZA(),e.YNc(73,Ne,2,0,"div",30),e.qZA(),e.TgZ(74,"div",31)(75,"div",32)(76,"mat-table",33,34),e.ynx(78,35),e.YNc(79,Ye,2,0,"mat-header-cell",36),e.YNc(80,Fe,2,1,"mat-cell",37),e.BQk(),e.ynx(81,38),e.YNc(82,Be,2,0,"mat-header-cell",39),e.YNc(83,Ge,3,3,"mat-cell",37),e.BQk(),e.ynx(84,40),e.YNc(85,We,2,0,"mat-header-cell",36),e.YNc(86,Ke,2,2,"mat-cell",41),e.BQk(),e.ynx(87,42),e.YNc(88,Qe,2,0,"mat-header-cell",39),e.YNc(89,ke,2,1,"mat-cell",37),e.BQk(),e.ynx(90,43),e.YNc(91,ze,2,0,"mat-header-cell",44),e.YNc(92,Je,2,1,"mat-cell",45),e.BQk(),e.YNc(93,He,1,0,"mat-header-row",46),e.YNc(94,Ve,1,0,"mat-row",47),e.YNc(95,$e,3,0,"tr",48),e.qZA()(),e._UZ(96,"mat-paginator",49),e.qZA()()()),2&a&&(e.xp6(5),e.Q6J("ngIf",t.existsPhoto),e.xp6(1),e.Q6J("ngIf",!t.existsPhoto),e.xp6(3),e.hij(" ",null==t.userSession?null:t.userSession.name," "),e.xp6(7),e.Q6J("ngIf","S"==(null==t.engagement?null:t.engagement.status)),e.xp6(3),e.Q6J("ngIf",!t.distributionPointsFlag),e.xp6(1),e.Q6J("ngIf",t.distributionPointsFlag),e.xp6(4),e.Q6J("ngIf",!t.distributionPointsFlag),e.xp6(1),e.Q6J("ngIf",t.distributionPointsFlag),e.xp6(4),e.Q6J("ngIf",!t.distributionPointsFlag),e.xp6(1),e.Q6J("ngIf",t.distributionPointsFlag),e.xp6(7),e.hij(" ",null==t.engagement?null:t.engagement.title," "),e.xp6(8),e.hij(" ",e.xi3(46,24,t.dateObjectStart,"shortDate")," "),e.xp6(7),e.hij(" ",e.xi3(53,27,t.dateObjectEnd,"shortDate")," "),e.xp6(3),e.Q6J("value",t.percentageComplete),e.xp6(1),e.Q6J("ngIf","S"==(null==t.engagement?null:t.engagement.status)),e.xp6(1),e.Q6J("ngIf","N"==(null==t.engagement?null:t.engagement.status)),e.xp6(3),e.hij("",t.percentageComplete,"% do desafio realizado"),e.xp6(7),e.hij(" ",e.lcZ(68,30,null==t.engagement?null:t.engagement.dateRegister)," "),e.xp6(6),e.Q6J("ngIf",t.isLoadingResults||t.isRateLimitReached),e.xp6(3),e.Q6J("dataSource",t.dataSource),e.xp6(17),e.Q6J("matHeaderRowDef",t.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(2),e.Q6J("length",t.resultsLength)("pageSize",20))},directives:[E.a8,s.O5,v.lW,Me.Hw,Ee.Ou,E.dk,E.n5,E.dn,be.pW,h.BZ,ee.YE,h.w1,h.fO,h.ge,ee.nU,h.Dz,h.ev,s.mk,h.as,h.XQ,h.nj,h.Gk,xe.wG,h.Ee,B.NW],pipes:[s.uU],styles:['.content[_ngcontent-%COMP%]{margin-bottom:3rem;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr;grid-column-gap:16px;grid-row-gap:16px;grid-template-areas:"profile numbers" "engaged engaged"}@media (max-width: 992px){.content[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;grid-template-rows:1fr;grid-column-gap:16px;grid-row-gap:16px;grid-template-areas:"profile" "numbers" "engaged"}}.profile[_ngcontent-%COMP%], .numbers[_ngcontent-%COMP%]{display:flex}.profile[_ngcontent-%COMP%] .grow-1[_ngcontent-%COMP%], .numbers[_ngcontent-%COMP%] .grow-1[_ngcontent-%COMP%]{flex-grow:1}.profile[_ngcontent-%COMP%]{grid-area:profile}.profile[_ngcontent-%COMP%] .student-profile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.profile[_ngcontent-%COMP%] .student-profile[_ngcontent-%COMP%] .photo[_ngcontent-%COMP%]{display:flex;justify-content:center}.profile[_ngcontent-%COMP%] .student-profile[_ngcontent-%COMP%] .photo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:50%;object-fit:cover;width:100px;height:100px}.profile[_ngcontent-%COMP%] .student-profile[_ngcontent-%COMP%] .name-level[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column}.profile[_ngcontent-%COMP%] .student-profile[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{display:flex;justify-content:center;border:solid 1px #ccc;padding:8px;border-radius:4px}.profile[_ngcontent-%COMP%] .student-profile[_ngcontent-%COMP%] .button-share[_ngcontent-%COMP%]{display:flex;justify-content:center}.profile[_ngcontent-%COMP%] .student-profile[_ngcontent-%COMP%] .button-share[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.profile[_ngcontent-%COMP%] .student-profile[_ngcontent-%COMP%] .donation[_ngcontent-%COMP%]{display:flex;justify-content:space-around;align-items:center}.profile[_ngcontent-%COMP%] .student-profile[_ngcontent-%COMP%] .donation[_ngcontent-%COMP%] .engagers[_ngcontent-%COMP%], .profile[_ngcontent-%COMP%] .student-profile[_ngcontent-%COMP%] .donation[_ngcontent-%COMP%] .donations[_ngcontent-%COMP%], .profile[_ngcontent-%COMP%] .student-profile[_ngcontent-%COMP%] .donation[_ngcontent-%COMP%] .points[_ngcontent-%COMP%]{text-align:center}.profile[_ngcontent-%COMP%] .student-profile[_ngcontent-%COMP%] .donation[_ngcontent-%COMP%] .engagers[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .profile[_ngcontent-%COMP%] .student-profile[_ngcontent-%COMP%] .donation[_ngcontent-%COMP%] .donations[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .profile[_ngcontent-%COMP%] .student-profile[_ngcontent-%COMP%] .donation[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:700}.numbers[_ngcontent-%COMP%]{grid-area:numbers}.numbers[_ngcontent-%COMP%] .mat-card-header[_ngcontent-%COMP%]{justify-content:space-between;align-items:center;border-bottom:solid 1px #ccc;padding-bottom:16px}.numbers[_ngcontent-%COMP%] .mat-card-header[_ngcontent-%COMP%] .mat-card-header-text{margin:0}.numbers[_ngcontent-%COMP%] .mat-card-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%]{margin-bottom:0}.numbers[_ngcontent-%COMP%] .mat-card-header[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:gray}.numbers[_ngcontent-%COMP%] .info-progress[_ngcontent-%COMP%]{margin-top:16px}@media (max-width: 768px){.numbers[_ngcontent-%COMP%] .info-progress[_ngcontent-%COMP%]{flex-direction:column}}.numbers[_ngcontent-%COMP%] .info-progress[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;font-size:16px}.numbers[_ngcontent-%COMP%] .info-recent[_ngcontent-%COMP%]{margin-top:16px}@media (max-width: 768px){.numbers[_ngcontent-%COMP%] .info-recent[_ngcontent-%COMP%]{flex-direction:column}}.numbers[_ngcontent-%COMP%] .info-recent[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;font-size:16px}.numbers[_ngcontent-%COMP%] .progress-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column;height:300px}
1.numbers[_ngcontent-%COMP%] .progress-circle[_ngcontent-%COMP%]{width:200px;height:200px}.numbers[_ngcontent-%COMP%] .progress-text[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;font-weight:700}.numbers[_ngcontent-%COMP%] .progress-text[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{font-size:20px}.numbers[_ngcontent-%COMP%] .progress-text[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{font-size:14px}.engaged[_ngcontent-%COMP%]{grid-area:engaged}.full-width[_ngcontent-%COMP%]{width:100%;font-size:14px} .mat-form-field-wrapper{padding-bottom:0!important}.input-fields-search[_ngcontent-%COMP%]{display:flex;gap:16px}table[_ngcontent-%COMP%]{width:100%}.sticky-end[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.sticky-end-value[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:30px}@media screen and (max-width: 768px){.input-fields-search[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:0px}}.imageUrl[_ngcontent-%COMP%]{height:40px;width:40px;border-radius:50%;object-fit:cover;border:solid 1px #ccc}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}@media screen and (max-width: 768px){.header[_ngcontent-%COMP%]{align-items:flex-start;flex-direction:column}}.header[_ngcontent-%COMP%] .input-field[_ngcontent-%COMP%]{width:50%}@media screen and (max-width: 768px){.header[_ngcontent-%COMP%] .input-field[_ngcontent-%COMP%]{width:100%}}.table-container[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{cursor:pointer}.status-pago[_ngcontent-%COMP%]{color:#09a78f}.status-aguardando[_ngcontent-%COMP%]{color:#fcc002}.status-expirado[_ngcontent-%COMP%]{color:#ff4d4d}']}),n}(),canActivate:[N.p],resolve:{},data:{expectedRole:[M.Z.ALU]}},{path:"list",component:R,canActivate:[N.p],resolve:{},data:{expectedRole:[M.Z.ALU]}}],et=function(){var n=(0,A.Z)(function o(){(0,T.Z)(this,o)});return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[P.Bz.forChild(qe)],P.Bz]}),n}(),tt=i(3769),nt=i(3075),at=i(1279),ot=function(){var n=(0,A.Z)(function o(){(0,T.Z)(this,o)});return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[s.ez,et,tt.m,at.c,P.Bz,nt.UX]]}),n}()},5745:function(H,w,i){i.d(w,{V:function(){return E}});var A=i(5671),T=i(3144),s=i(245),P=i(8814),N=i(1120),M=i(136),e=i(1749),_=i(1891),S=i(1165),E=function(){var v=function(Z){function R(h,F){var B;return(0,A.Z)(this,R),B=function Y(v,Z,R){return Z=(0,N.Z)(Z),(0,s.Z)(v,(0,P.Z)()?Reflect.construct(Z,R||[],(0,N.Z)(v).constructor):Z.apply(v,R))}(this,R,[h,"api/admin/student"]),B.injector=h,B.userService=F,B}return(0,M.Z)(R,Z),(0,T.Z)(R,[{key:"disableEnable",value:function(F){return this.put(F,null,"/disable-enable")}},{key:"findAllPaginated",value:function(F,B){return this.search(F,B)}},{key:"getStudent",value:function(F){return this.get("/".concat(F))}}])}(e.b);return v.\u0275fac=function(R){return new(R||v)(_.LFG(_.zs3),_.LFG(S.K))},v.\u0275prov=_.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v}()},2709:function(H,w,i){i.d(w,{p:function(){return e}});var A=i(5671),T=i(3144),s=i(1891),P=i(8546),N=i(2302),M=i(1314),e=function(){var _=function(){return(0,T.Z)(function S(Y,E,v){(0,A.Z)(this,S),this.auth=Y,this.router=E,this.tokenService=v},[{key:"canActivate",value:function(E){var v=E.data.expectedRole,Z=JSON.parse(this.tokenService.getToken("user_session"));return!(!this.auth.isUserAuthenticated()||!v.includes(Z.role))||(console.log("Usu\xe1rio sem permiss\xe3o de acesso a funcionalidade"),this.router.navigate(["/admin/home"]),!1)}}])}();return _.\u0275fac=function(Y){return new(Y||_)(s.LFG(P.e),s.LFG(N.F0),s.LFG(M.B))},_.\u0275prov=s.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_}()},7469:function(H,w,i){i.d(w,{c:function(){return N}});var A=i(5671),T=i(3144),s=i(1891),P=i(4383),N=function(){var M=function(){return(0,T.Z)(function e(_){(0,A.Z)(this,e),this.toastrService=_},[{key:"showAlertSuccess",value:function(S){this.toastrService.success(S,"Conclu\xeddo")}},{key:"showAlertDanger",value:function(S){this.toastrService.error(S,"Erro")}},{key:"showAlertWarning",value:function(S){this.toastrService.warning(S,"Alerta")}}])}();return M.\u0275fac=function(_){return new(_||M)(s.LFG(P._W))},M.\u0275prov=s.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M}()},2149:function(H,w,i){i.d(w,{Z:function(){return s}});var A=i(3144),T=i(5671),s=(0,A.Z)(function P(){(0,T.Z)(this,P)});s.REQUIRED_FIELDS="messages.required.fields",s.ERROR_INTERNAL="messages.error.internal",s.INVALID_FIELD="messages.invalid.field",s.SUCCESS_SAVE="messages.success.save",s.SUCCESS_UPDATE="messages.success.update",s.ACTION_NOT_POSSIBLE="messages.action.not-possible",s.HOME_FIRST_ACCESS="messages.home.first.access",
1s.LOGIN_ERROR_USER_PASSWORD="login.error.user.password",s.LOGIN_ERROR_RESET_PASSWORD="login.error.reset.password",s.LOGIN_SUCCESS_RESET_PASSWORD="login.success.reset.password",s.LOGIN_WARNING_RESET_PASSWORD="login.warning.reset.password",s.USER_EMAIL_ALREADY_EXISTS="user.warning.email.already.exists",s.USER_CPF_ALREADY_EXISTS="user.warning.cpf.already.exists",s.USER_NOT_FOUND="user.warning.not.found",s.MENTOR_NOT_FOUND="mentor.warning.not.found",s.PROGRAM_STUDENT_EXISTS_BY_PROGRAM="program.warning.student.exists",s.PROGRAM_ACTIVITY_EXISTS_BY_REPORT="program.warning.report.exists",s.SECURITY_INVALID_PASSWORD="security.warning.invalid.password",s.SECURITY_INVALID_CONFIRM_PASSWORD="security.warning.invalid.confirmpassword",s.LIMIT_OF_MENTORING_REACHED="mentoring.messages.warning.limit.mentoring.reached",s.SUCCESS_MATCH="mentoring.messages.success.match",s.REPORT_CARD_ALREADY_EXISTS="report.card.warning.exists",s.REPORT_CARD_SUCCESS_SAVE_POINTS="report.card.success.save.points",s.REPORT_CARD_UPDATE_RANKING="report.card.label.update.ranking",s.REPORT_CARD_UPDATE_LAST_RANKING="report.card.label.update.last.ranking"}}]);
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.