1(self.webpackChunkabem=self.webpackChunkabem||[]).push([[8792],{94114(N,c,r){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.routes=void 0;const l=r(84444),A=r(71774);c.routes=[{path:"admin",loadChildren:()=>r.e(8177).then(r.t.bind(r,48177,23)).then(g=>g.LayoutModule),canActivate:[A.AuthGuard]},{path:"",loadComponent:()=>r.e(7961).then(r.t.bind(r,87961,23)).then(g=>g.SelectComponent),canActivate:[A.NoAuthGuard]},{path:"evento/:event",loadChildren:()=>Promise.all([r.e(2076),r.e(4647)]).then(r.t.bind(r,4647,23)).then(g=>g.EventsModule)},{path:"login",loadComponent:()=>Promise.all([r.e(4635),r.e(5048)]).then(r.t.bind(r,62847,23)).then(g=>g.LoginComponent)},{path:"signup",loadComponent:()=>Promise.all([r.e(8312),r.e(3345),r.e(8165),r.e(1783),r.e(9393),r.e(7723),r.e(4635),r.e(9689),r.e(584),r.e(8841)]).then(r.t.bind(r,8841,23)).then(g=>g.SignupComponent)},{path:"recover-password",loadComponent:()=>Promise.all([r.e(8312),r.e(3345),r.e(4635),r.e(8872),r.e(749)]).then(r.t.bind(r,10749,23)).then(g=>g.RecoverPasswordComponent)},{path:"not-found",loadComponent:()=>r.e(1064).then(r.t.bind(r,81064,23)).then(g=>g.NotFoundComponent)},{path:"manutencao",loadComponent:()=>r.e(8504).then(r.t.bind(r,28504,23)).then(g=>g.MaintenanceComponent)},{path:"eventos/pagamentos/:event/recibo/:user/:type",loadComponent:()=>r.e(2274).then(r.t.bind(r,92274,23)).then(g=>g.ReciboComponent),canActivate:[A.AuthGuard]},{path:"eventos/pagamentos/:event/recibo/:user",loadComponent:()=>r.e(2274).then(r.t.bind(r,92274,23)).then(g=>g.ReciboComponent),canActivate:[A.AuthGuard]},{path:"associado/recibo/:id",loadComponent:()=>r.e(1652).then(r.t.bind(r,71652,23)).then(g=>g.ReceiptComponent)},{path:"associado",loadChildren:()=>Promise.all([r.e(2076),r.e(9075)]).then(r.t.bind(r,39075,23)).then(g=>g.AssociateModule),canActivate:[A.AuthGuard]},{path:"sistema",loadChildren:()=>r.e(1687).then(r.t.bind(r,91687,23)).then(g=>g.SystemModule),canActivate:[A.AuthGuard,l.AdminGuard]},{path:"evento/:event/certificado",loadComponent:()=>Promise.all([r.e(5398),r.e(422)]).then(r.t.bind(r,30422,23)).then(g=>g.CertificateComponent),canActivate:[A.AuthGuard]},{path:"evento/:event/certificado/adicionais/:role",loadComponent:()=>Promise.all([r.e(5398),r.e(422)]).then(r.t.bind(r,30422,23)).then(g=>g.CertificateComponent),canActivate:[A.AuthGuard]},{path:"evento/:event/certificado/trabalhos/:id",loadComponent:()=>Promise.all([r.e(5398),r.e(9107)]).then(r.t.bind(r,29107,23)).then(g=>g.CertificateComponent)},{path:"evento/:event/certificado/avaliador/:user",loadComponent:()=>Promise.all([r.e(5398),r.e(1442)]).then(r.t.bind(r,71442,23)).then(g=>g.CertificateComponent),canActivate:[A.AuthGuard]},{path:"evento/:event/certificado/sub-evento/:sub_event/palestrante/:speaker",loadComponent:()=>Promise.all([r.e(5398),r.e(2042)]).then(r.t.bind(r,42042,23)).then(g=>g.CertificateComponent),canActivate:[A.AuthGuard]},{path:"evento/:event/certificado/:sub_event",loadComponent:()=>Promise.all([r.e(5398),r.e(33)]).then(r.t.bind(r,40033,23)).then(g=>g.CertificateComponent),canActivate:[A.AuthGuard]},{path:"associado/eventos/:event/certificado/:associate",loadComponent:()=>Promise.all([r.e(5398),r.e(6350)]).then(r.t.bind(r,16350,23)).then(g=>g.CertificateComponent),canActivate:[A.AuthGuard]},{path:"evento/:event/valida-certificado/:user",loadComponent:()=>r.e(8207).then(r.t.bind(r,38207,23)).then(g=>g.CertificateComponent)},{path:"evento/:event/valida-certificado/:user/:role",loadComponent:()=>r.e(8207).then(r.t.bind(r,38207,23)).then(g=>g.CertificateComponent)},{path:"evento/:event/valida-certificado/trabalhos/:id",loadChildren:()=>r.e(3922).then(r.t.bind(r,83922,23)).then(g=>g.CertificateComponent)},{path:"evento/:event/valida-certificado/avaliador/:user",loadComponent:()=>r.e(6977).then(r.t.bind(r,86977,23)).then(g=>g.CertificateComponent)},{path:"evento/:event/valida-certificado/sub-evento/:sub_event/palestrante/:speaker",loadComponent:()=>r.e(965).then(r.t.bind(r,20965,23)).then(g=>g.CertificateComponent)},{path:"evento/:event/valida-certificado/:sub_event/:user",loadComponent:()=>r.e(8580).then(r.t.bind(r,38580,23)).then(g=>g.CertificateComponent)},{path:"evento/:event/site/sub-eventos",loadComponent:()=>r.e(9286).then(r.t.bind(r,59286,23)).then(g=>g.EventSubEventsComponent)},{path:"admin/eventos/inscricoes/:event",loadComponent:()=>Promise.all([r.e(8312),r.e(3345),r.e(8165),r.e(1783),r.e(9393),r.e(7723),r.e(4635),r.e(8405),r.e(2076),r.e(6917)]).then(r.t.bind(r,26917,23)).then(g=>g.CheckinEventsComponent),canActivate:[A.AuthGuard,l.AdminGuard]},{path:"eventos/sub-eventos/:event/propostas/:sub_event/ativa",loadComponent:()=>
1Promise.all([r.e(2076),r.e(3642)]).then(r.t.bind(r,53642,23)).then(g=>g.ProposalVotesComponent)},{path:"teste-de-progresso",loadChildren:()=>Promise.all([r.e(2076),r.e(8503)]).then(r.t.bind(r,68503,23)).then(g=>g.ProgressoModule)},{path:"certificados",loadComponent:()=>Promise.all([r.e(8312),r.e(3345),r.e(3842)]).then(r.t.bind(r,23842,23)).then(g=>g.CertificatesComponent)},{path:"pdf/progresso/analise/:prova/:tipo",loadComponent:()=>r.e(7978).then(r.t.bind(r,7978,23)).then(g=>g.PdfAnaliseComponent)},{path:"**",redirectTo:"not-found",pathMatch:"full"}]},20092(N,c,r){"use strict";var l=this&&this.__createBinding||(Object.create?function(R,P,T,w){void 0===w&&(w=T);var j=Object.getOwnPropertyDescriptor(P,T);(!j||("get"in j?!P.__esModule:j.writable||j.configurable))&&(j={enumerable:!0,get:function(){return P[T]}}),Object.defineProperty(R,w,j)}:function(R,P,T,w){void 0===w&&(w=T),R[w]=P[T]}),A=this&&this.__setModuleDefault||(Object.create?function(R,P){Object.defineProperty(R,"default",{enumerable:!0,value:P})}:function(R,P){R.default=P}),g=this&&this.__importStar||function(){var R=function(P){return(R=Object.getOwnPropertyNames||function(T){var w=[];for(var j in T)Object.prototype.hasOwnProperty.call(T,j)&&(w[w.length]=j);return w})(P)};return function(P){if(P&&P.__esModule)return P;var T={};if(null!=P)for(var w=R(P),j=0;j<w.length;j++)"default"!==w[j]&&l(T,P,w[j]);return A(T,P),T}}();Object.defineProperty(c,"__esModule",{value:!0}),c.AppComponent=void 0;const v=r(7901),O=r(45312),m=r(60177),p=r(61122),f=r(1718),o=r(50198),n=g(r(49849)),s=g(r(37554)),i=g(r(70226)),t=g(r(29555)),e=g(r(7901)),u=g(r(89656)),h=g(r(60177)),_=g(r(61122)),y=g(r(1718)),b=g(r(50198)),d=()=>({"min-width":"300px","max-width":"80vw"});function I(R,P){1&R&&(n.\u0275\u0275elementStart(0,"p-blockUI",8),n.\u0275\u0275element(1,"p-progressSpinner"),n.\u0275\u0275elementEnd()),2&R&&n.\u0275\u0275property("blocked",!0)}function E(R,P){if(1&R&&n.\u0275\u0275element(0,"i",9),2&R){const T=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("color",T.alert.icon_color),n.\u0275\u0275property("ngClass",T.alert.icon)}}c.AppComponent=(()=>{class R{api;loading;prime_config;router;alerts;changes;tawkId=O.environment.tawkto;alert;is_loading=!1;constructor(T,w,j,B,V,J){this.api=T,this.loading=w,this.prime_config=j,this.router=B,this.alerts=V,this.changes=J,this.alert={show:!1},this.loading.loading.subscribe({next:a=>{this.is_loading=a>0,this.changes.detectChanges()}}),this.prime_config.setTranslation({dayNames:["Domingo","Segunda","Ter\xe7a","Quarta","Quinta","Sexta","Sabado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayNamesMin:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],monthNames:["Janeiro","Fevereiro","Mar\xe7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dateFormat:"dd/mm/yy",today:"Hoje",clear:"Limpar",emptyFilterMessage:"Nenhum resultado encontrado",emptyMessage:"Nenhum item encontrado"});let U=this.router.events.subscribe(a=>{a instanceof v.NavigationEnd&&window.innerWidth<600&&(this.prime_config.overlayOptions={mode:"modal"},U.unsubscribe())})}ngOnInit(){this.alerts.listener().subscribe(w=>{this.alert=w});let T=localStorage.getItem("auth");null!=T&&this.api.setAuth(JSON.parse(T))}dismiss_alert(){this.alert.show=!1,this.alert.on_close.next(!0),this.alert.on_close.complete()}ngOnDestroy(){}static \u0275fac=function(w){return new(w||R)(n.\u0275\u0275directiveInject(s.ApiService),n.\u0275\u0275directiveInject(i.LoadingService),n.\u0275\u0275directiveInject(t.PrimeNG),n.\u0275\u0275directiveInject(e.Router),n.\u0275\u0275directiveInject(u.AlertService),n.\u0275\u0275directiveInject(n.ChangeDetectorRef))};static \u0275cmp=n.\u0275\u0275defineComponent({type:R,selectors:[["app-root"]],decls:10,vars:11,consts:[[3,"blocked",4,"ngIf"],[3,"visibleChange","visible","appendTo","draggable","header"],[1,"modal-body"],[1,"text-center"],["class","large-icon",3,"ngClass","color",4,"ngIf"],[1,"full",3,"innerHtml"],[1,"modal-footer","text-center"],["type","button",1,"btn","btn-primary",3,"click"],[3,"blocked"],[1,"large-icon",3,"ngClass"]],template:function(w,j){1&w&&(n.\u0275\u0275template(0,I,2,1,"p-blockUI",0),n.\u0275\u0275elementStart(1,"p-dialog",1),n.\u0275\u0275twoWayListener("visibleChange",function(V){return n.\u0275\u0275twoWayBindingSet(j.alert.show,V)||(j.alert.show=V),V}),n.\u0275\u0275elementStart(2,"div",2)(3,"div",3),n.\u0275\u0275template(4,E,1,3,"i",4),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(5,"div",5),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(6,"div",6)(7,"button",7),n.\u0275\u0275listener("click",function(){return j.dismiss_alert()}),n.\u0275\u0275text(8),n.\u0275\u0275elementEnd()()(),n.\u0275\u0275element(9,"router-outlet")),2&w&&(n.\u0275\u0275property("ngIf",j.is_loading),n.\u0275\u0275advance(),n.\u0275\u0275styleMap(n.\u0275\u0275pureFunction0(10,d)),n.\u0275\u0275twoWayProperty("visible",j.alert.show),n.\u0275\u0275property("appendTo","body")("draggable",!1)("header",j.alert.title),n.\u0275\u0275advance(3),n.\u0275\u0275property("ngIf",j.alert.icon),n.\u0275\u0275advance(),n.\u0275\u0275property("innerHtml",j.alert.text,n.\u0275\u0275sanitizeHtml),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate1(" ",j.alert.ok," "))},dependencies:[m.CommonModule,h.NgClass,h.NgIf,v.RouterModule,e.RouterOutlet,p.DialogModule,_.Dialog,f.BlockUIModule,y.BlockUI,o.ProgressSpinnerModule,b.ProgressSpinner],encapsulation:2})}return R})()},12607(N,c,r){"use strict";var l=this&&this.__createBinding||(Object.create?function(f,o,n,s){void 0===s&&(s=n);var i=Object.getOwnPropertyDescriptor(o,n);(!i||("get"in i?!o.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return o[n]}}),Object.defineProperty(f,s,i)}:function(f,o,n,s){void 0===s&&(s=n),f[s]=o[n]}),A=this&&this.__setModuleDefault||(Object.create?function(f,o){Object.defineProperty(f,"default",{enumerable:!0,value:o})}:function(f,o){f.default=o}),g=this&&this.__importStar||function(){var f=function(o){return(f=Object.getOwnPropertyNames||function(n){var s=[];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(s[s.length]=i);return s})(o)};
1return function(o){if(o&&o.__esModule)return o;var n={};if(null!=o)for(var s=f(o),i=0;i<s.length;i++)"default"!==s[i]&&l(n,o,s[i]);return A(n,o),n}}();Object.defineProperty(c,"__esModule",{value:!0}),c.CustomDateParserFormatter=c.CustomAdapter=void 0;const v=r(39078),O=g(r(49849));c.CustomAdapter=(()=>{class f extends v.NgbDateAdapter{DELIMITER="-";fromModel(n){if(n){let s=n.split(this.DELIMITER);return{day:parseInt(s[0],10),month:parseInt(s[1],10),year:parseInt(s[2],10)}}return null}toModel(n){return n?n.day+this.DELIMITER+n.month+this.DELIMITER+n.year:null}static \u0275fac=(()=>{let n;return function(i){return(n||(n=O.\u0275\u0275getInheritedFactory(f)))(i||f)}})();static \u0275prov=O.\u0275\u0275defineInjectable({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})(),c.CustomDateParserFormatter=(()=>{class f extends v.NgbDateParserFormatter{DELIMITER="/";parse(n){if(n){let s=n.split(this.DELIMITER);return{day:parseInt(s[0],10),month:parseInt(s[1],10),year:parseInt(s[2],10)}}return null}format(n){return n?n.day+this.DELIMITER+n.month+this.DELIMITER+n.year:""}static \u0275fac=(()=>{let n;return function(i){return(n||(n=O.\u0275\u0275getInheritedFactory(f)))(i||f)}})();static \u0275prov=O.\u0275\u0275defineInjectable({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})()},89377(N,c,r){"use strict";var l=this&&this.__createBinding||(Object.create?function(s,i,t,e){void 0===e&&(e=t);var u=Object.getOwnPropertyDescriptor(i,t);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[t]}}),Object.defineProperty(s,e,u)}:function(s,i,t,e){void 0===e&&(e=t),s[e]=i[t]}),A=this&&this.__setModuleDefault||(Object.create?function(s,i){Object.defineProperty(s,"default",{enumerable:!0,value:i})}:function(s,i){s.default=i}),g=this&&this.__importStar||function(){var s=function(i){return(s=Object.getOwnPropertyNames||function(t){var e=[];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(e[e.length]=u);return e})(i)};return function(i){if(i&&i.__esModule)return i;var t={};if(null!=i)for(var e=s(i),u=0;u<e.length;u++)"default"!==e[u]&&l(t,i,e[u]);return A(t,i),t}}();Object.defineProperty(c,"__esModule",{value:!0}),c.AlertModalComponent=void 0;const v=r(60177),O=r(62480),m=g(r(49849)),p=g(r(39078)),f=g(r(60177));function o(s,i){if(1&s&&(m.\u0275\u0275elementStart(0,"div",7)(1,"div",8),m.\u0275\u0275element(2,"i",9),m.\u0275\u0275elementEnd()()),2&s){const t=m.\u0275\u0275nextContext();m.\u0275\u0275advance(2),m.\u0275\u0275styleProp("color",t.icon_color),m.\u0275\u0275property("ngClass",t.icon)}}c.AlertModalComponent=(()=>{class s{modal;title;text;ok="OK";icon=null;icon_color;constructor(t){this.modal=t}ngOnInit(){}error(t){this.text=t&&t.length>0?t:"Ocorreu um erro, verifique sua conex\xe3o com a internet e tente novamente. Caso o problema persista tente acessar utilizando uma guia an\xf4nima do navegador (Google Chrome ou Mozilla Firefox).",this.icon="fas fa-exclamation-triangle",this.icon_color="red"}success(t){this.text=t,this.icon="fas fa-check",this.icon_color="green"}warning(t){this.text=t,this.title="ATEN\xc7\xc3O",this.icon="fas fa-exclamation-triangle",this.icon_color="#ffbb00"}info(t){this.text=t,this.title="ATEN\xc7\xc3O",this.icon="fas fa-info-circle",this.icon_color="green"}static \u0275fac=function(e){return new(e||s)(m.\u0275\u0275directiveInject(p.NgbActiveModal))};static \u0275cmp=m.\u0275\u0275defineComponent({type:s,selectors:[["app-alert-modal"]],decls:9,vars:4,consts:[[1,"modal-header","text-center"],["id","modal-title",1,"modal-title"],[1,"modal-body","text-center"],["class","row",4,"ngIf"],[3,"innerHtml"],[1,"modal-footer","text-center"],["type","button",1,"btn","btn-info",3,"click"],[1,"row"],[1,"col-md-12"],[1,"large-icon",3,"ngClass"]],template:function(e,u){1&e&&(m.\u0275\u0275elementStart(0,"div",0)(1,"h4",1),m.\u0275\u0275text(2),m.\u0275\u0275elementEnd()(),m.\u0275\u0275elementStart(3,"div",2),m.\u0275\u0275template(4,o,3,3,"div",3),m.\u0275\u0275element(5,"div",4),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(6,"div",5)(7,"button",6),m.\u0275\u0275listener("click",function(){return u.modal.dismiss("ok")}),m.\u0275\u0275text(8),m.\u0275\u0275elementEnd()()),2&e&&(m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate1(" ",u.title," "),m.\u0275\u0275advance(2),m.\u0275\u0275property("ngIf",u.icon),m.\u0275\u0275advance(),m.\u0275\u0275property("innerHtml",u.text,m.\u0275\u0275sanitizeHtml),m.\u0275\u0275advance(3),m.\u0275\u0275textInterpolate1(" ",u.ok," "))},dependencies:[v.CommonModule,f.NgClass,f.NgIf,O.MessageModule],styles:[".modal-body[_ngcontent-%COMP%]{white-space:pre-line}.modal-footer[_ngcontent-%COMP%]{justify-content:center}.large-icon[_ngcontent-%COMP%]{font-size:10em}.modal-header[_ngcontent-%COMP%]{align-items:center;justify-content:center}"]})}return s})()},84444(N,c,r){"use strict";var l=r(29293).default,A=this&&this.__createBinding||(Object.create?function(s,i,t,e){void 0===e&&(e=t);var u=Object.getOwnPropertyDescriptor(i,t);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[t]}}),Object.defineProperty(s,e,u)}:function(s,i,t,e){void 0===e&&(e=t),s[e]=i[t]}),g=this&&this.__setModuleDefault||(Object.create?function(s,i){Object.defineProperty(s,"default",{enumerable:!0,value:i})}:function(s,i){s.default=i}),v=this&&this.__importStar||function(){var s=function(i){return(s=Object.getOwnPropertyNames||function(t){var e=[];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(e[e.length]=u);return e})(i)};return function(i){if(i&&i.__esModule)return i;var t={};if(null!=i)for(var e=s(i),u=0;u<e.length;u++)"default"!==e[u]&&A(t,i,e[u]);
1return g(t,i),t}}();Object.defineProperty(c,"__esModule",{value:!0}),c.AdminGuard=void 0;const O=r(45312),m=v(r(49849)),p=v(r(7901)),f=v(r(37554)),o=v(r(13664));let n=(()=>{class s{router;api;auth;permissions;constructor(t,e,u){this.router=t,this.api=e,this.auth=u}canActivate(t){var e=this;return l(function*(){let u=parseInt(localStorage.getItem("role"));if(u&&(u%O.environment.funcionario===0||u%O.environment.admin===0||u%O.environment.kacto===0))return yield e.full_check(t);let h=localStorage.getItem("event");return h?(e.router.navigate(["/evento/",h]),!1):e.associate()})()}canActivateChild(t){var e=this;return l(function*(){let u=parseInt(localStorage.getItem("role"));if(u&&(u%O.environment.funcionario===0||u%O.environment.admin===0||u%O.environment.kacto===0))return yield e.full_check(t);let h=localStorage.getItem("event");return h?(e.router.navigate(["/evento/",h]),!1):e.associate()})()}associate(){return this.router.navigate(["/associado"]),!1}full_check(t){var e=this;return l(function*(){let u=yield e.auth.permissions(),h=t.data.permissions;
1if(null==h)return!0;let _=u;if(yield h.forEach(E=>{null!=_&&(_=_[E])}),_)return!0;if(u.default_route?.length>0)return e.router.navigate([u.default_route]),!1;let y=t.data.depth;null==y&&(y=0);let b=t,d={};for(let E=0;E<y;E++)b=b.parent,d=Object.assign(d,b.params);let I=yield e.parse(t.data.return_to,d,t.data.keys);return e.router.navigate([I]),!1})()}parse(t,e){return l(function*(u,h,_=[]){return yield _.forEach(y=>{u=u.replace(":"+y,h[y])}),"/"+u}).apply(this,arguments)}static \u0275fac=function(e){return new(e||s)(m.\u0275\u0275inject(p.Router),m.\u0275\u0275inject(f.ApiService),m.\u0275\u0275inject(o.AuthService))};static \u0275prov=m.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();c.AdminGuard=n},38861(N,c,r){"use strict";var l=r(29293).default,A=this&&this.__createBinding||(Object.create?function(t,e,u,h){void 0===h&&(h=u);var _=Object.getOwnPropertyDescriptor(e,u);(!_||("get"in _?!e.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return e[u]}}),Object.defineProperty(t,h,_)}:function(t,e,u,h){void 0===h&&(h=u),t[h]=e[u]}),g=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),v=this&&this.__importStar||function(){var t=function(e){return(t=Object.getOwnPropertyNames||function(u){var h=[];for(var _ in u)Object.prototype.hasOwnProperty.call(u,_)&&(h[h.length]=_);return h})(e)};return function(e){if(e&&e.__esModule)return e;var u={};if(null!=e)for(var h=t(e),_=0;_<h.length;_++)"default"!==h[_]&&A(u,e,h[_]);return g(u,e),u}}();Object.defineProperty(c,"__esModule",{value:!0}),c.AssociateGuard=void 0;const O=r(89377),m=r(72718),p=v(r(49849)),f=v(r(7901)),o=v(r(37554)),n=v(r(13664)),s=v(r(39078));c.AssociateGuard=(()=>{class t{router;api;auth;modal;permissions;constructor(u,h,_,y){this.router=u,this.api=h,this.auth=_,this.modal=y}canActivate(u){var h=this;return l(function*(){yield h.auth.name();let _=h.auth.status();if(h.auth.admin)return!0;if(_==h.auth.NAO_ASSOCIADO){let E=h.modal.open(O.AlertModalComponent);return E.componentInstance.error("Esse acesso \xe9 exclusivo para associados da ABEM"),E.result.then(()=>{h.router.navigate(["/login"])},()=>{h.router.navigate(["/login"])}),!1}if(h.auth.missing())return h.router.navigate(["/associado","salvar"]),!1;if(u.data.active){if(h.auth.status_id()==(new m.AssociateStatus).ATIVO)return!0;h.router.navigate(["/associado"])}let I=u.data.type_id;if(I){if((yield h.auth.type_id())==I)return!0;h.router.navigate(["/associado"])}return!0})()}static \u0275fac=function(h){return new(h||t)(p.\u0275\u0275inject(f.Router),p.\u0275\u0275inject(o.ApiService),p.\u0275\u0275inject(n.AuthService),p.\u0275\u0275inject(s.NgbModal))};static \u0275prov=p.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},59271(N,c,r){"use strict";var l=r(29293).default,A=this&&this.__createBinding||(Object.create?function(o,n,s,i){void 0===i&&(i=s);var t=Object.getOwnPropertyDescriptor(n,s);(!t||("get"in t?!n.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return n[s]}}),Object.defineProperty(o,i,t)}:function(o,n,s,i){void 0===i&&(i=s),o[i]=n[s]}),g=this&&this.__setModuleDefault||(Object.create?function(o,n){Object.defineProperty(o,"default",{enumerable:!0,value:n})}:function(o,n){o.default=n}),v=this&&this.__importStar||function(){var o=function(n){return(o=Object.getOwnPropertyNames||function(s){var i=[];for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&(i[i.length]=t);return i})(n)};return function(n){if(n&&n.__esModule)return n;var s={};if(null!=n)for(var i=o(n),t=0;t<i.length;t++)"default"!==i[t]&&A(s,n,i[t]);return g(s,n),s}}();Object.defineProperty(c,"__esModule",{value:!0}),c.AuthGuard=void 0;const O=v(r(49849)),m=v(r(7901)),p=v(r(37554));c.AuthGuard=(()=>{class o{router;api;permissions;constructor(s,i){this.router=s,this.api=i}canActivate(){var s=this;return l(function*(){s.permissions=s.api.permissions;let i=localStorage.getItem("auth");return null==i?s.login():(s.api.setAuth(JSON.parse(i)),!0)})()}canActivateChild(){var s=this;return l(function*(){return s.canActivate()})()}login(){return localStorage.clear(),this.router.navigate(["/"]),!1}static \u0275fac=function(i){return new(i||o)(O.\u0275\u0275inject(m.Router),O.\u0275\u0275inject(p.ApiService))};static \u0275prov=O.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac,providedIn:"root"})}return o}
1)()},85064(N,c,r){"use strict";var l=r(29293).default,A=this&&this.__createBinding||(Object.create?function(n,s,i,t){void 0===t&&(t=i);var e=Object.getOwnPropertyDescriptor(s,i);(!e||("get"in e?!s.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return s[i]}}),Object.defineProperty(n,t,e)}:function(n,s,i,t){void 0===t&&(t=i),n[t]=s[i]}),g=this&&this.__setModuleDefault||(Object.create?function(n,s){Object.defineProperty(n,"default",{enumerable:!0,value:s})}:function(n,s){n.default=s}),v=this&&this.__importStar||function(){var n=function(s){return(n=Object.getOwnPropertyNames||function(i){var t=[];for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[t.length]=e);return t})(s)};return function(s){if(s&&s.__esModule)return s;var i={};if(null!=s)for(var t=n(s),e=0;e<t.length;e++)"default"!==t[e]&&A(i,s,t[e]);return g(i,s),i}}();Object.defineProperty(c,"__esModule",{value:!0}),c.EscolaGuard=void 0;const O=v(r(49849)),m=v(r(7901)),p=v(r(37554)),f=v(r(13664));c.EscolaGuard=(()=>{class n{router;api;auth;constructor(i,t,e){this.router=i,this.api=t,this.auth=e}canActivate(){var i=this;return l(function*(){return i.canActivateChild()})()}canActivateChild(){var i=this;return l(function*(){try{let t=yield i.auth.schools();return 0==t.length?i.aluno():(i.auth.set_school(t[0]),!0)}catch{return i.aluno()}})()}coordenador(){return console.log("Navigate to escola"),this.router.navigate(["/teste-de-progresso/escola"]),!1}escola(){return console.log("Navigate to responsavel"),this.router.navigate(["/teste-de-progresso/escola/responsavel"]),!1}aluno(){let i="/teste-de-progresso/aluno";return console.log("Navigate to ",i),this.router.navigate([i]),!1}static \u0275fac=function(t){return new(t||n)(O.\u0275\u0275inject(m.Router),O.\u0275\u0275inject(p.ApiService),O.\u0275\u0275inject(f.AuthService))};static \u0275prov=O.\u0275\u0275defineInjectable({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})()},78011(N,c,r){"use strict";var l=this&&this.__createBinding||(Object.create?function(o,n,s,i){void 0===i&&(i=s);var t=Object.getOwnPropertyDescriptor(n,s);(!t||("get"in t?!n.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return n[s]}}),Object.defineProperty(o,i,t)}:function(o,n,s,i){void 0===i&&(i=s),o[i]=n[s]}),A=this&&this.__setModuleDefault||(Object.create?function(o,n){Object.defineProperty(o,"default",{enumerable:!0,value:n})}:function(o,n){o.default=n}),g=this&&this.__importStar||function(){var o=function(n){return(o=Object.getOwnPropertyNames||function(s){var i=[];for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&(i[i.length]=t);return i})(n)};return function(n){if(n&&n.__esModule)return n;var s={};if(null!=n)for(var i=o(n),t=0;t<i.length;t++)"default"!==i[t]&&l(s,n,i[t]);return A(s,n),s}}();Object.defineProperty(c,"__esModule",{value:!0}),c.EventGuard=void 0;const v=g(r(49849)),O=g(r(7901)),m=g(r(37554)),p=g(r(65335));c.EventGuard=(()=>{class o{router;api;event;permissions;constructor(s,i,t){this.router=s,this.api=i,this.event=t}canActivate(s){this.permissions=this.api.permissions;let i=localStorage.getItem("auth");return null==i?this.login():(this.api.setAuth(JSON.parse(i)),!0)}login(){return this.router.navigate(["/evento",this.event.slug,"login"]),!1}static \u0275fac=function(i){return new(i||o)(v.\u0275\u0275inject(O.Router),v.\u0275\u0275inject(m.ApiService),v.\u0275\u0275inject(p.EventsService))};static \u0275prov=v.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},44540(N,c,r){"use strict";var l=this&&this.__createBinding||(Object.create?function(g,v,O,m){void 0===m&&(m=O);var p=Object.getOwnPropertyDescriptor(v,O);(!p||("get"in p?!v.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return v[O]}}),Object.defineProperty(g,m,p)}:function(g,v,O,m){void 0===m&&(m=O),g[m]=v[O]}),A=this&&this.__exportStar||function(g,v){for(var O in g)"default"!==O&&!Object.prototype.hasOwnProperty.call(v,O)&&l(v,g,O)};Object.defineProperty(c,"__esModule",{value:!0}),A(r(59271),c),A(r(11872),c)},11872(N,c,r){"use strict";var l=r(29293).default,A=this&&this.__createBinding||(Object.create?function(s,i,t,e){void 0===e&&(e=t);var u=Object.getOwnPropertyDescriptor(i,t);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[t]}}),Object.defineProperty(s,e,u)}:function(s,i,t,e){void 0===e&&(e=t),s[e]=i[t]}),g=this&&this.__setModuleDefault||(Object.create?function(s,i){Object.defineProperty(s,"default",{enumerable:!0,value:i})}:function(s,i){s.default=i}),v=this&&this.__importStar||function(){var s=function(i){return(s=Object.getOwnPropertyNames||function(t){var e=[];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(e[e.length]=u);return e})(i)};return function(i){if(i&&i.__esModule)return i;var t={};if(null!=i)for(var e=s(i),u=0;u<e.length;u++)"default"!==e[u]&&A(t,i,e[u]);
1return g(t,i),t}}();Object.defineProperty(c,"__esModule",{value:!0}),c.NoAuthGuard=void 0;const O=r(45312),m=v(r(49849)),p=v(r(7901)),f=v(r(37554)),o=v(r(13664));c.NoAuthGuard=(()=>{class s{router;api;auth;permissions;constructor(t,e,u){this.router=t,this.api=e,this.auth=u}canActivate(){var t=this;return l(function*(){try{let e=localStorage.getItem("auth");null!=e&&t.api.setAuth(JSON.parse(e));let u=yield t.auth.role();if(u%O.environment.funcionario===0||u%O.environment.admin===0||u%O.environment.kacto===0)return t.router.navigate(["/admin"]),!1;let h=localStorage.getItem("event");return h?(t.router.navigate(["/evento/",h]),!1):11===u&&(t.router.navigate(["/teste-de-progresso"]),!1)}catch{}return!0})()}canActivateChild(){var t=this;return l(function*(){return t.canActivate()})()}static \u0275fac=function(e){return new(e||s)(m.\u0275\u0275inject(p.Router),m.\u0275\u0275inject(f.ApiService),m.\u0275\u0275inject(o.AuthService))};static \u0275prov=m.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})()},67707(N,c,r){"use strict";var l=r(29293).default,A=this&&this.__createBinding||(Object.create?function(o,n,s,i){void 0===i&&(i=s);var t=Object.getOwnPropertyDescriptor(n,s);(!t||("get"in t?!n.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return n[s]}}),Object.defineProperty(o,i,t)}:function(o,n,s,i){void 0===i&&(i=s),o[i]=n[s]}),g=this&&this.__setModuleDefault||(Object.create?function(o,n){Object.defineProperty(o,"default",{enumerable:!0,value:n})}:function(o,n){o.default=n}),v=this&&this.__importStar||function(){var o=function(n){return(o=Object.getOwnPropertyNames||function(s){var i=[];for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&(i[i.length]=t);return i})(n)};return function(n){if(n&&n.__esModule)return n;var s={};if(null!=n)for(var i=o(n),t=0;t<i.length;t++)"default"!==i[t]&&A(s,n,i[t]);return g(s,n),s}}();Object.defineProperty(c,"__esModule",{value:!0}),c.ProgressoGuard=void 0;const O=v(r(49849)),m=v(r(7901)),p=v(r(37554));c.ProgressoGuard=(()=>{class o{router;api;constructor(s,i){this.router=s,this.api=i}canActivate(){var s=this;return l(function*(){let i=localStorage.getItem("auth");return null==i?s.login():(s.api.setAuth(JSON.parse(i)),!0)})()}canActivateChild(){var s=this;return l(function*(){let i=localStorage.getItem("auth");return null==i?s.login():(s.api.setAuth(JSON.parse(i)),!0)})()}login(){return this.router.navigate(["/teste-de-progresso/login"]),!1}static \u0275fac=function(i){return new(i||o)(O.\u0275\u0275inject(m.Router),O.\u0275\u0275inject(p.ApiService))};static \u0275prov=O.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},69573(N,c,r){"use strict";var l=r(29293).default,A=this&&this.__createBinding||(Object.create?function(n,s,i,t){void 0===t&&(t=i);var e=Object.getOwnPropertyDescriptor(s,i);(!e||("get"in e?!s.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return s[i]}}),Object.defineProperty(n,t,e)}:function(n,s,i,t){void 0===t&&(t=i),n[t]=s[i]}),g=this&&this.__setModuleDefault||(Object.create?function(n,s){Object.defineProperty(n,"default",{enumerable:!0,value:s})}:function(n,s){n.default=s}),v=this&&this.__importStar||function(){var n=function(s){return(n=Object.getOwnPropertyNames||function(i){var t=[];for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[t.length]=e);return t})(s)};return function(s){if(s&&s.__esModule)return s;var i={};if(null!=s)for(var t=n(s),e=0;e<t.length;e++)"default"!==t[e]&&A(i,s,t[e]);return g(i,s),i}}();Object.defineProperty(c,"__esModule",{value:!0}),c.ProvaGuard=void 0;const O=v(r(49849)),m=v(r(7901)),p=v(r(82060)),f=v(r(91571));c.ProvaGuard=(()=>{class n{router;prova;auth;constructor(i,t,e){this.router=i,this.prova=t,this.auth=e}canActivate(i){var t=this;return l(function*(){return 0===(yield t.auth.find())?(t.router.navigate(["/teste-de-progresso"]),!1):(yield t.prova.horario_inicio())>0?t.home():!((yield t.prova.horario_encerramento())<=0)||t.finalizado()})()}home(){return this.router.navigate(["/teste-de-progresso/prova/instrucoes"]),!1}finalizado(){return this.router.navigate(["/teste-de-progresso/prova/encerrar"]),!1}static \u0275fac=function(t){return new(t||n)(O.\u0275\u0275inject(m.Router),O.\u0275\u0275inject(p.ProvaService),O.\u0275\u0275inject(f.AuthProvaService))};static \u0275prov=O.\u0275\u0275defineInjectable({token:n,factory:n.\u0275fac})}return n})()},71774(N,c,r){"use strict";var l=this&&this.__createBinding||(Object.create?function(g,v,O,m){void 0===m&&(m=O);var p=Object.getOwnPropertyDescriptor(v,O);(!p||("get"in p?!v.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return v[O]}}),Object.defineProperty(g,m,p)}:function(g,v,O,m){void 0===m&&(m=O),g[m]=v[O]}),A=this&&this.__exportStar||function(g,v){for(var O in g)"default"!==O&&!Object.prototype.hasOwnProperty.call(v,O)&&l(v,g,O)};Object.defineProperty(c,"__esModule",{value:!0}),A(r(44540),c)},70112(N,c,r){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Address=void 0;const l=r(14765);c.Address=class A extends l.Form{address;number;complement;district;city;city_id;state;zip_code;id;constructor(){super();let v="";this.address=v,this.number=v,this.complement=v,this.district=v,this.state=v,this.city=v,this.zip_code=v,this.validations=[],this.initial_validation()}initial_validation(){this.validations.cep=new l.Validation,this.validations.address=new l.Validation,this.validations.city=new l.Validation,this.validations.district=new l.Validation,this.validations.number=new l.Validation,this.validations.state=new l.Validation}setup(v){let O="";this.address=v.address?v.address:O,this.city=v.city?v.city:O,this.complement=v.complement?v.complement:O,this.district=v.district?v.district:O,this.number=v.number?v.number:O,this.state=v.state_id?v.state_id:O,this.zip_code=v.zip_code?v.zip_code:O,this.id=v.address_id,this.city_id=v.city_id}fulfill(v){this.address=v.address,this.city_id=v.city_id,this.district=v.neighborhood,this.state=v.state_id}validate_all(){this.validate_zip()}validate_address(){let v=this.validations.address;v.clear(),0==this.address.length?v.add_message("O endere\xe7o \xe9 obrigatorio"):this.address.length<5&&v.add_message("Endere\xe7o muito curto")}validate_number(){let v=this.validations.number;v.clear(),0==this.number.length&&v.add_message("O numero \xe9 obrigatorio")}validate_district(){let v=this.validations.district;v.clear(),0==this.district.length?v.add_message("O bairro \xe9 obrigatorio"):this.address.length<5&&v.add_message("Bairro muito curto")}validate_city(){let v=this.validations.city;v.clear(),0==this.city.length?v.add_message("A cidade \xe9 obrigatoria"):this.address.length<5&&v.add_message("Cidade muito curta")}validate_state(){let v=this.validations.state;v.clear(),2!==this.state.length&&v.add_message("Coloque apenas a sigla do estado")}validate_zip(){let v=this.validations.cep;return v.clear(),!(this.zip_code.length<8&&(v.add_message("CEP muito curto"),1))}is_valid(){this.validate_all();for(let v in this.validations)if(1==this.validations[v].failed)return!1;return!0}}},72718(N,c,r){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.MedicalSchools=c.Consorcios=c.YearlyRates=c.Positions=c.Graduations=c.AssociateEventsTypes=c.AssociateStatus=c.Region=c.AssociateTypes=c.Associate=void 0;const l=r(14765);c.Associate=class A extends l.Form{id;full_name;category;admission;email;status;region;next_payment;observation;cpf;cnpj;mantenedora;cnpj_mantenedora;cnpj_selecionado;has_payment;created_at;file_status};class g{ESTUDANTE=1;PROFESSOR=2;RESIDENTE=3;ESCOLA=5;INSTITUICAO=4;COLABORADOR=6;DISCENTE_OUTROS=7;POS_GRADUANDO=8;HONORARIO=9;BENEMERITO=10;list=[new l.ModelItem(this.ESTUDANTE,"Discente de Curso de Medicina"),new l.ModelItem(this.PROFESSOR,"Educador em Medicina"),new l.ModelItem(this.RESIDENTE,"M\xe9dico Residente"),new l.ModelItem(this.COLABORADOR,"Colaborador"),new l.ModelItem(this.DISCENTE_OUTROS,"Discente de Outros Cursos de Gradua\xe7\xe3o"),new l.ModelItem(this.POS_GRADUANDO,"P\xf3s Graduando"),new l.ModelItem(this.ESCOLA,"Escola M\xe9dica"),new l.ModelItem(this.INSTITUICAO,"Demais Institui\xe7\xf5es"),new l.ModelItem(this.HONORARIO,"Honor\xe1rio"),new l.ModelItem(this.BENEMERITO,"Benem\xe9rito")];individual_list=[new l.ModelItem(this.ESTUDANTE,"Discente de Curso de Medicina"),new l.ModelItem(this.PROFESSOR,"Educador em Medicina"),new l.ModelItem(this.RESIDENTE,"M\xe9dico Residente"),new l.ModelItem(this.COLABORADOR,"Colaborador"),new l.ModelItem(this.DISCENTE_OUTROS,"Discente de Outros Cursos de Gradua\xe7\xe3o"),new l.ModelItem(this.POS_GRADUANDO,"P\xf3s Graduando")];admin_list=[new l.ModelItem(this.ESTUDANTE,"Discente de Curso de Medicina"),new l.ModelItem(this.PROFESSOR,"Educador em Medicina"),new l.ModelItem(this.RESIDENTE,"M\xe9dico Residente"),new l.ModelItem(this.COLABORADOR,"Colaborador"),new l.ModelItem(this.DISCENTE_OUTROS,"Discente de Outros Cursos de Gradua\xe7\xe3o"),new l.ModelItem(this.POS_GRADUANDO,"P\xf3s Graduando"),new l.ModelItem(this.HONORARIO,"Honor\xe1rio"),new l.ModelItem(this.BENEMERITO,"Benem\xe9rito")]}c.AssociateTypes=g,c.Region=class v{NORTE=1;NORDESTE_I=2;CENTRO_OESTE=3;SUL_I=4;SUL_II=5;SAO_PAULO=6;MINAS_GERAIS=7;RIO_ESPIRITO_SANTO=8;INDEFINIDA=9;NORDESTE_II=10;list=[new l.ModelItem(this.NORTE,"Norte"),new l.ModelItem(this.NORDESTE_I,"Nordeste I"),new l.ModelItem(this.NORDESTE_II,"Nordeste II"),new l.ModelItem(this.CENTRO_OESTE,"Centro Oeste"),new l.ModelItem(this.SUL_I,"Sul I"),new l.ModelItem(this.SUL_II,"Sul II"),new l.ModelItem(this.SAO_PAULO,"S\xe3o Paulo"),new l.ModelItem(this.MINAS_GERAIS,"Minas Gerais"),new l.ModelItem(this.RIO_ESPIRITO_SANTO,"Rio de Janeiro / Espirito Santo")]},c.AssociateStatus=class O{ATIVO=1;INATIVO=2;INADIMPLENTE=3;CANCELADO=4;PRE_CADASTRO=0;NAO_ASSOCIADO=5;list=[new l.ModelItem(this.ATIVO,"Ativo"),new l.ModelItem(this.INATIVO,"Inativo"),new l.ModelItem(this.INADIMPLENTE,"Inadimplente"),new l.ModelItem(this.CANCELADO,"Cancelado"),new l.ModelItem(this.PRE_CADASTRO,"Pr\xe9 cadastro"),new l.ModelItem(this.NAO_ASSOCIADO,"N\xe3o associado")]},c.AssociateEventsTypes=class m{PALESTRA=1;OFICINA=2;CURSOS=3;list=[new l.ModelItem(this.PALESTRA,"Palestra"),new l.ModelItem(this.OFICINA,"Oficina"),new l.ModelItem(this.CURSOS,"Cursos")]},c.Graduations=class p{GRADUACAO=1;ESPECIALIZACAO=2;RESIDENCIA=3;MESTRADO=4;DOUTORADO=5;list=[new l.ModelItem(this.ESPECIALIZACAO,"Especializa\xe7\xe3o"),new l.ModelItem(this.MESTRADO,"Mestrado"),new l.ModelItem(this.DOUTORADO,"Doutorado")]},c.Positions=class f{DIRETOR_PRESIDENTE=1;DIRETOR_VICE_PRESIDENTE=2;DIRETOR_TESOUREIRO=3;DIRETOR_SECRETARIO=4;CONSELHO_FISCAL_TITULAR=5;
1CONSELHO_FISCAL_SUPLENTE=6;DIRETOR_REGIONAL=8;COORDENADOR_DOCENTE_TITULAR=9;COORDENADOR_DOCENTE_SUPLENTE=10;COORDENADOR_DISCENTE_TITULAR=11;COORDENADOR_DISCENTE_SUPLENTE=12;COORDENADOR_RESIDENTE_TITULAR=13;COORDENADOR_RESIDENTE_SUPLENTE=14;DELEGADO_INDIVIDUAL_DOCENTE=15;DELEGADO_INDIVIDUAL_DISCENTE=16;DELEGADO_INSTITUCIONAL_DOCENTE=17;DELEGADO_INSTITUCIONAL_DISCENTE=18;REPRESENTANTE_DISCENTE_CA_TITULAR=19;REPRESENTANTE_RESIDENTE_CA_TITULAR=21;CONSELHO_ADMIN_TITULAR=23;DIRETOR_INOVACAO=25;DIRETOR_RESIDENTE=26;DIRETOR_DISCENTE=27;DELEGADO_INDIVIDUAL_DOCENTE_SUPLENTE=28;DELEGADO_INDIVIDUAL_DISCENTE_SUPLENTE=29;COORDENADOR_TP=1;SECRETARIA_TP=2;list_progresso=[new l.ModelItem(this.COORDENADOR_TP,"Coordenador"),new l.ModelItem(this.SECRETARIA_TP,"Secretaria")];list_conselho=[new l.ModelItem(this.CONSELHO_ADMIN_TITULAR,"Conselho de Administra\xe7\xe3o"),new l.ModelItem(this.REPRESENTANTE_DISCENTE_CA_TITULAR,"Representante Discente CA"),new l.ModelItem(this.REPRESENTANTE_RESIDENTE_CA_TITULAR,"Representante Residente CA")];school_list=[new l.ModelItem(this.DELEGADO_INSTITUCIONAL_DOCENTE,"Delegado Institucional Docente"),new l.ModelItem(this.DELEGADO_INSTITUCIONAL_DISCENTE,"Delegado Institucional Discente")];list=[new l.ModelItem(this.DIRETOR_PRESIDENTE,"Diretor Presidente"),new l.ModelItem(this.DIRETOR_VICE_PRESIDENTE,"Diretor Vice Presidente"),new l.ModelItem(this.DIRETOR_TESOUREIRO,"Diretor Tesoureiro"),new l.ModelItem(this.DIRETOR_SECRETARIO,"Diretor Secret\xe1rio"),new l.ModelItem(this.CONSELHO_FISCAL_TITULAR,"Conselho Fiscal Titular"),new l.ModelItem(this.CONSELHO_FISCAL_SUPLENTE,"Conselho Fiscal Suplente"),new l.ModelItem(this.DIRETOR_REGIONAL,"Diretor Regional"),new l.ModelItem(this.COORDENADOR_DOCENTE_TITULAR,"Coordenador Docente"),new l.ModelItem(this.COORDENADOR_DOCENTE_SUPLENTE,"Vice Coordenador Docente"),new l.ModelItem(this.COORDENADOR_DISCENTE_TITULAR,"Coordenador Discente"),new l.ModelItem(this.COORDENADOR_DISCENTE_SUPLENTE,"Vice Coordenador Discente"),new l.ModelItem(this.COORDENADOR_RESIDENTE_TITULAR,"Coordenador Medico Residente"),new l.ModelItem(this.COORDENADOR_RESIDENTE_SUPLENTE,"Vice Coordenador Medico Residente"),new l.ModelItem(this.DELEGADO_INDIVIDUAL_DOCENTE,"Delegado Educador"),new l.ModelItem(this.DELEGADO_INDIVIDUAL_DISCENTE,"Delegado Educando"),new l.ModelItem(this.DELEGADO_INDIVIDUAL_DOCENTE_SUPLENTE,"Delegado Educador Suplente"),new l.ModelItem(this.DELEGADO_INDIVIDUAL_DISCENTE_SUPLENTE,"Delegado Educando Suplente"),new l.ModelItem(this.DIRETOR_INOVACAO,"Diretor de Inova\xe7\xe3o"),new l.ModelItem(this.DIRETOR_RESIDENTE,"Diretor M\xe9dico Residente"),new l.ModelItem(this.DIRETOR_DISCENTE,"Diretor Discente")];full_list=[new l.ModelItem(this.DIRETOR_PRESIDENTE,"Diretor Presidente"),new l.ModelItem(this.DIRETOR_VICE_PRESIDENTE,"Diretor Vice Presidente"),new l.ModelItem(this.DIRETOR_TESOUREIRO,"Diretor Tesoureiro"),new l.ModelItem(this.DIRETOR_SECRETARIO,"Diretor Secret\xe1rio"),new l.ModelItem(this.CONSELHO_FISCAL_TITULAR,"Conselho Fiscal Titular"),new l.ModelItem(this.CONSELHO_FISCAL_SUPLENTE,"Conselho Fiscal Suplente"),new l.ModelItem(this.DIRETOR_REGIONAL,"Diretor Regional"),new l.ModelItem(this.COORDENADOR_DOCENTE_TITULAR,"Coordenador Docente"),new l.ModelItem(this.COORDENADOR_DOCENTE_SUPLENTE,"Vice Coordenador Docente"),new l.ModelItem(this.COORDENADOR_DISCENTE_TITULAR,"Coordenador Discente"),new l.ModelItem(this.COORDENADOR_DISCENTE_SUPLENTE,"Vice Coordenador Discente"),new l.ModelItem(this.COORDENADOR_RESIDENTE_TITULAR,"Coordenador Medico Residente"),new l.ModelItem(this.COORDENADOR_RESIDENTE_SUPLENTE,"Vice Coordenador Medico Residente"),new l.ModelItem(this.DELEGADO_INDIVIDUAL_DOCENTE,"Delegado Educador"),new l.ModelItem(this.DELEGADO_INDIVIDUAL_DISCENTE,"Delegado Educando"),new l.ModelItem(this.DELEGADO_INDIVIDUAL_DOCENTE_SUPLENTE,"Delegado Educador Suplente"),new l.ModelItem(this.DELEGADO_INDIVIDUAL_DISCENTE_SUPLENTE,"Delegado Educando Suplente"),new l.ModelItem(this.REPRESENTANTE_DISCENTE_CA_TITULAR,"Representante Discente CA"),new l.ModelItem(this.REPRESENTANTE_RESIDENTE_CA_TITULAR,"Representante Residente CA"),new l.ModelItem(this.DELEGADO_INSTITUCIONAL_DOCENTE,"Delegado Institucional Docente"),new l.ModelItem(this.DELEGADO_INSTITUCIONAL_DISCENTE,"Delegado Institucional Discente"),new l.ModelItem(this.CONSELHO_ADMIN_TITULAR,"Conselho de Administra\xe7\xe3o"),new l.ModelItem(this.DIRETOR_INOVACAO,"Diretor de Inova\xe7\xe3o"),new l.ModelItem(this.DIRETOR_RESIDENTE,"Diretor M\xe9dico Residente"),new l.ModelItem(this.DIRETOR_DISCENTE,"Diretor Discente")]},c.YearlyRates=class o extends l.Form{year;types;goal;constructor(){super();let t=new g;this.types=[];for(let u=0;u<t.list.length;u++)this.types.push({id:t.list[u].id,name:t.list[u].name,value:0});this.year=(new Date).getFullYear()}get_values(){let t={year:this.year,types:[],goal:100*this.goal};for(let e=0;
1e<this.types.length;e++)t.types.push({id:this.types[e].id,value:100*this.types[e].value});return t}setup(t){for(let e=0;e<t.rates.length;e++)for(let u=0;u<this.types.length;u++)t.rates[e].associate_type==this.types[u].id&&(this.types[u].value=t.rates[e].value/100);t.rates.length>0&&(this.year=t.rates[0].reference_year),this.goal=t.goal/100}},c.Consorcios=class n{list=[new l.ModelItem(1,"CIN - Cons\xf3rcio Interinstitucional Nordeste"),new l.ModelItem(2,"CIN II - Cons\xf3rcio Interinstitucional Nordeste II"),new l.ModelItem(3,"Cons\xf3rcio Alagoas I"),new l.ModelItem(4,"Cons\xf3rcio Bahia I"),new l.ModelItem(5,"Cons\xf3rcio Caipira"),new l.ModelItem(6,"Cons\xf3rcio Ga\xfacho"),new l.ModelItem(7,"Cons\xf3rcio NAPISUL II.1"),new l.ModelItem(8,"Cons\xf3rcio NAPISUL II.2"),new l.ModelItem(9,"Cons\xf3rcio RJ/ES"),new l.ModelItem(10,"Cons\xf3rcio S\xe3o Paulo I"),new l.ModelItem(15,"Cons\xf3rcio S\xe3o Paulo II"),new l.ModelItem(11,"Cons\xf3rcio S\xe3o Paulo III"),new l.ModelItem(12,"NIEPAEM"),new l.ModelItem(13,"TEP MINAS I"),new l.ModelItem(14,"TEP MINAS II")]};var s=function(i){return i.OUTRA="OUTRA",i}(s||(c.MedicalSchools=s={}))},64159(N,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.BoxPlot=c.MonetaryChart=c.Single=c.Bi=void 0;class r{datasets;labels;options;type;colors;constructor(O=1,m="",p=""){this.datasets=[],this.colors=["rgba(96,152,87,1)","rgba(240,127,61,1)","rgba(219,198,6,1)","rgba(53,123,176,1)","rgba(170,189,80,1)","rgba(8,148,163,1)","rgba(91, 61, 175, 1)"],this.handle_datasets(O),this.labels=["January","February","March","April","May","June","July"],this.options={scales:{y:{display:!0,beginAtZero:!0,title:{text:p,display:p.length>0}},x:{display:!0,title:{text:m,display:m.length>0}}}}}handle_datasets(O){for(let m=0;m<O;m++)this.datasets.push({data:[Math.round(100*Math.random()),Math.round(100*Math.random()),Math.round(100*Math.random()),Math.round(100*Math.random()),Math.round(100*Math.random()),Math.round(100*Math.random()),Math.round(100*Math.random())],label:"Series "+(m+1),tension:.5})}as_percent(){this.options.plugins={tooltip:{callbacks:{label:function(O){let m=O.dataset.label||"";return m+=": "+O.parsed.y+"%",m}}}},this.options.scales.y.min=0,this.options.scales.y.max=100}add_legend(O){this.options.plugins.legend=O}add_title(O){this.options.plugins.title=O}x_label(O){}y_label(O){}disable_fill(){}setup(O,m=[]){let p=[];for(let o=0;o<O.datasets.length;o++){let n=this.colors[o%this.colors.length],s=[],i=0;for(let e=O.datasets[o].values.length-1;e>=i;e--)s.push(O.datasets[o].values[e]);p.push({data:s.reverse(),label:O.datasets[o].series,backgroundColor:n,borderColor:n,hidden:m.includes(O.datasets[o].series)})}this.datasets=p;let f=JSON.parse(JSON.stringify(O.labels));this.labels=f}normalize_dataset(O){let m=O.datasets.length;for(let p=0;p<m;p++){let f=O.datasets[p].values,o=[];for(let n=0;n<f.length;n++)o.push(parseFloat(f[n]).toFixed(2));O.datasets[p].values=o}return O}}c.Bi=r,c.Single=class l extends r{handle_datasets(O){for(let m=0;m<O;m++)this.datasets.push({data:[Math.round(100*Math.random())]})}setup(O){let m=[];m=[{data:[],backgroundColor:[]}];for(let f=0;f<O.datasets.length;f++){let o=this.colors[f%this.colors.length];m[0].data.push(O.datasets[f]),m[0].backgroundColor.push(o)}this.datasets=m;let p=JSON.parse(JSON.stringify(O.labels));this.labels=p}},c.MonetaryChart=class A extends r{constructor(O=1,m="",p=""){super(O,m,p),this.options.plugins={tooltip:{callbacks:{label:function(f){let o=f.dataset.label||"";return o&&(o+=": "),null!==f.parsed.y&&(o+=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(f.parsed.y)),o}}}}}},c.BoxPlot=class g extends r{datasets=[];tooltips(O,m){this.options.plugins.tooltip={callbacks:{label:function(p){if(!O)return"";let f=[p.dataset.label],o=p.formattedValue.hoveredOutlierIndex;if(-1===o){let n=[],i=Object.keys(O).sort((t,e)=>O[t].order>O[e].order?1:-1);for(let t of i)n.push(O[t].text+":"+p.parsed[t]),f.push(O[t].text+":"+p.parsed[t])}else f.push(m?m[o]+": "+p.parsed.outliers[o]:p.parsed.outliers[o]+"");return f}}},this.options.scales.y.min=-5,this.options.scales.y.max=105,this.options.scales.y.grid={drawBorder:!1}}setup(O){let m=[];for(let f=0;f<O.datasets.length;f++){let o=this.colors[f%this.colors.length],n=[],s=0;for(let t=O.datasets[f].values.length-1;t>=s;t--)n.push(O.datasets[f].values[t]);m.push({data:n,label:O.datasets[f].series,backgroundColor:o,borderColor:o,outlierBackgroun
1dColor:"#000",outlierRadius:8,outlierHitRadius:5,outlierBorderColor:"#fff",outlierBorderWidth:1,outlierStyle:"rectRot"})}this.datasets=m;let p=JSON.parse(JSON.stringify(O.labels));this.labels=p}normalize_dataset(O){}handle_datasets(O){for(let m=0;m<O;m++)this.datasets.push({data:[{min:10,q1:2,median:3,q3:80,max:95,outliers:[55],mean:3,items:[]}],label:"Series "+(m+1),borderWidth:5,outlierStyle:"crossRot"})}}},89210(N,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.ErrorCodes=void 0;var r=function(l){return l[l.FORBIDDEN=403]="FORBIDDEN",l[l.MAINTENANCE=503]="MAINTENANCE",l}(r||(c.ErrorCodes=r={}))},56806(N,c,r){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Refund=c.ScheduleStatus=c.Repasse=c.Schedule=c.PaymentType=c.PaymentWays=void 0;const l=r(14765);c.PaymentWays=class A{IUGU=1;CREDITO=2;DEBITO=3;DINHEIRO=4;DEPOSITO=5;PACOTE=6;EMPENHO=7;OUTROS=8;DESCONTO_FOLHA=9;ISENTO=10;IUGU_BOLETO=11;IUGU_CARTAO=12;IUGU_PACOTE=13;IUGU_PIX=14;list=[new l.ModelItem(this.IUGU,"Iugu"),new l.ModelItem(this.IUGU_BOLETO,"Iugu - Boleto"),new l.ModelItem(this.IUGU_CARTAO,"Iugu - Cart\xe3o"),new l.ModelItem(this.IUGU_PIX,"Iugu - Pix"),new l.ModelItem(this.IUGU_PACOTE,"Iugu - Pacote"),new l.ModelItem(this.CREDITO,"Cr\xe9dito"),new l.ModelItem(this.DEBITO,"D\xe9bito"),new l.ModelItem(this.DINHEIRO,"Dinheiro"),new l.ModelItem(this.DEPOSITO,"Dep\xf3sito"),new l.ModelItem(this.PACOTE,"Pacote"),new l.ModelItem(this.EMPENHO,"Empenho"),new l.ModelItem(this.DESCONTO_FOLHA,"Desconto na folha"),new l.ModelItem(this.OUTROS,"Outros"),new l.ModelItem(this.ISENTO,"Isento")];block=[new l.ModelItem(this.PACOTE,"Pacote - Baixa Manual"),new l.ModelItem(this.EMPENHO,"Empenho - Baixa Manual"),new l.ModelItem(this.IUGU_PACOTE,"Pacote - Gerar fatura IUGU")]},c.PaymentType=class g{ASSOCIADO=1;EVENTO=2;SUB_EVENTO=3},c.Schedule=class v extends l.Form{value;reference_year;associate_type;associate_status;title;additional_info;due_date;region;associates;constructor(){super();let o=new Date;this.additional_info="",this.title="",this.associate_type=null,this.associate_status=null,this.value=null,this.region=null,this.associates=[],this.reference_year=o.getFullYear(),this.due_date=o.getFullYear()+"-"+(o.getMonth()+1)+"-"+o.getDate()}initial_validation(){this.validations.type=new l.Validation,this.validations.region=new l.Validation,this.validations.status=new l.Validation}validate_type(){let o=this.validations.type;o.clear(),this.associate_type||o.add_message("Selecione uma categoria")}validate_status(){let o=this.validations.status;o.clear(),this.associate_status||o.add_message("Selecione um status")}validate_region(){let o=this.validations.region;o.clear(),this.region||o.add_message("Selecione uma regi\xe3o")}remove_associate(o){let n;this.associates.splice(o,1),n=this.associates,this.associates=null,this.associates=n}get_search_values(){return{type:this.associate_type,status:this.associate_status,region:this.region,limit:9e3,year:this.reference_year}}get_values(){let o=super.get_values(),n=[];for(let s=0;s<this.associates.length;s++)n.push(this.associates[s].id);return o.associates=n,o.value=100*this.value,o}validate_search(){this.validate_region(),this.validate_status(),this.validate_type()}is_valid(o=!0){o?this.validate_search():this.validate_all();for(let n in this.validations)if(1==this.validations[n].failed)return!1;return!0}},c.Repasse=class O extends l.Form{start;end;region;type},c.ScheduleStatus=class m{AGENDADO=1;PROCESSANDO=2;FINALIZADO=3;ERRO=4;CANCELADO=5;list=[new l.ModelItem(this.AGENDADO,"Agendado"),new l.ModelItem(this.PROCESSANDO,"Processando"),new l.ModelItem(this.FINALIZADO,"Finalizado"),new l.ModelItem(this.ERRO,"Erro"),new l.ModelItem(this.CANCELADO,"Cancelado")]},c.Refund=class p extends l.Form{file_name;file;id;event_id;name;cpf;bank;account;agency;info;is_valid(){this.validate_all();for(let o in this.validations)if(1==this.validations[o].failed)return!1;return!0}validate_file(){let o=this.validations.file;o.clear(),this.file||o.add_message("\xc9 obrigat\xf3rio enviar o arquivo")}handle_file(o){var n=o.target.files,s=n[0];if(n&&s){var i=new FileReader;this.file_name=s.name,i.onload=this._handle_reader_loaded.bind(this),i.readAsDataURL(s)}}_handle_reader_loaded(o){this.file=o.target.result,this.validations.file.clear()}setup(o){this.name=o.refund_name,this.cpf=o.cpf,this.bank=o.bank,this.account=o.account,this.agency=o.agency}initial_validation(){this.validations.cpf=new l.Validation,this.validations.name=new l.Validation,this.validations.bank=new l.Validation,this.validations.account=new l.Validation,this.validations.agency=new l.Validation,this.validations.file=new l.Validation,this.validations.info=new l.Validation}validate_info(){let o=this.validations.info;o.clear(),(!this.info||this.info.length<10)&&o.add_message("Informe o motivo do reembolso")}validate_cpf(){let o=this.validations.cpf;o.clear(),(!this.cpf||this.cpf.length<11)&&o.add_message("Preencha o CPF")}validate_name(){let o=this.validations.name;o.clear(),(!this.name||this.name.split(" ").length<2)&&o.add_message("Preencha o nome completo")}validate_bank(){let o=this.validations.bank;o.clear(),(!this.bank||this.bank.length<1)&&o.add_message("Preencha o banco")}validate_account(){let o=this.validations.account;o.clear(),(!this.account||this.account.length<1)&&o.add_message("Preencha o numero da conta")}validate_agency(){let o=this.validations.agency;o.clear(),(!this.agency||this.agency.length<1)&&o.add_message("Preencha a ag\xeancia")}validate_all(){this.validate_account(),this.validate_agency(),this.validate_bank(),this.validate_cpf(),this.validate_name(),this.validate_file(),this.validate_info()}}},46148(N,c,r){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.EventPermissions=c.Permissions=void 0;const l=r(14765);class A extends l.Form{associado;associados;anuidades;documentos;relatorios;eventos;questionarios;eleicoes;teste_progresso;admin;default_route;constructor(){super(),this.associados={listar:!1,novo:!1,home:!1,escolas:!1},this.anuidades={bloco:!1,boleto:!1,listar:!1,agendados:!1,menu:!1,configuracoes:!1},this.documentos={enviar:!1,excluir:!1,menu:!1},this.relatorios={geral:!1,historico:!1,repasse:!1,menu:!1,bi:!1},this.eventos={novo:!1,acesso:!1,menu:!1,delete:!1,update:!1,check_in:!1,sub_events:!1,certificates:!1,surveys:!1,maps:!1,reports:!1,submissions:!1,refund:!1,payments:!1,menu_associados:!1,new_payments:!1},this.admin=!1,this.associado={faturas:!0,arquivos:!0,eventos:!0},this.eleicoes={menu:!1,resultado:!1,editar:!1,candidatos:!1},this.default_route="",this.teste_progresso={menu:!1,provas:!1,alunos:!1,editar:!1,matrizes:!1},this.questionarios=!1}
1setup(O){this.admin=O.admin,this.admin?Object.keys(this).forEach(f=>{"boolean"==typeof this[f]?this[f]=!0:Object.keys(this[f]).forEach(n=>{this[f][n]=!0})}):Object.keys(O).forEach(p=>{if("boolean"==typeof this[p])this[p]=O[p];else{let f=Object.keys(O[p]);"default_route"==p?this.default_route=O.default_route:f.forEach(o=>{this[p][o]=O[p][o]})}})}isAllowed(O){return"relatorios/geral"===O&&this.relatorios.geral}}c.Permissions=A,c.EventPermissions=class g extends A{user_id;event_id;setup(O){O&&("string"==typeof O&&(O=JSON.parse(O)),this.eventos=O)}get_values(){return{user_id:this.user_id,event_id:this.event_id,permissions:this.eventos}}}},55624(N,c,r){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Alternativa=c.Questao=c.Prova=c.ArquivosProva=c.Avaliador=c.Avaliadores=c.PerfisAvaliadores=c.EAcessos=void 0;const l=r(50965),A=r(27321),g=r(14765);var v=function(i){return i[i.ESCOLA=0]="ESCOLA",i[i.COORDENADOR=1]="COORDENADOR",i[i.SECRETARIA=2]="SECRETARIA",i}(v||(c.EAcessos=v={}));class O{COLABORADOR=5;AVALIADOR=2;COORDENADOR=3;REVISOR=7;list=[{value:this.COLABORADOR,label:"Envio de quest\xf5es"},{value:this.AVALIADOR,label:"Avalia\xe7\xe3o de quest\xf5es"},{value:this.COORDENADOR,label:"Caderno de Prova"},{value:this.REVISOR,label:"Revisor"}]}c.PerfisAvaliadores=O,c.Avaliadores=class m extends g.Form{users;prova;constructor(){super(),this.users=[]}get_values(){let t=[];for(let e=0;e<this.users.length;e++){let u=1,h=this.users[e];for(let _=0;_<h.perfil.length;_++)u*=h.perfil[_];t.push({id:this.users[e].id,perfil:u,nucleo:this.users[e].nucleo})}return{users:t,prova:this.prova}}add_user(t){this.users.push(t)}find_user(t){for(let e=0;e<this.users.length;e++)if(t.id===this.users[e].id)return this.users[e];return!1}remove_user(t){this.users.splice(t,1);let e=this.users;this.users=new Array,this.users=e}},c.Avaliador=class p extends A.User{questoes;perfil;nucleo;constructor(){super(),this.questoes=0,this.perfil=[]}setup(t){super.setup(t),this.id=t.id,this.login=t.cpf?t.cpf:t.login,this.name=t.full_name?t.full_name:t.name,this.questoes=t.questoes?t.questoes:0,this.nucleo=t.nucleo;let e=(new O).list;this.perfil=[],e.forEach(u=>{t.perfil%u.value==0&&this.perfil.push(u.value)})}},c.ArquivosProva=class f extends g.Form{id;caderno;gabarito;certificado;handle_caderno(t){var e=t.target.files,u=e[0];if(e&&u){var h=new FileReader;h.onload=this._handle_caderno_loaded.bind(this),h.readAsDataURL(u)}}_handle_caderno_loaded(t){this.caderno=t.target.result}handle_gabarito(t){var e=t.target.files,u=e[0];if(e&&u){var h=new FileReader;h.onload=this._handle_gabarito_loaded.bind(this),h.readAsDataURL(u)}}_handle_gabarito_loaded(t){this.gabarito=t.target.result}handle_certificado(t){var e=t.target.files,u=e[0];if(e&&u){var h=new FileReader;h.onload=this._handle_certificado_loaded.bind(this),h.readAsDataURL(u)}}_handle_certificado_loaded(t){this.certificado=t.target.result}},c.Prova=class o extends g.Form{id;titulo;ano;nucleos;compilado;limite_inscricoes;data_limite_questoes;matriz;inicio;encerramento;tempo;data_limite_aprovacao;data_realizacao;certificado;imagem_certificado;certificado_escola;certificado_coordenador;certificado_avaliador;boletim;assinatura_boletim;instrucoes;legenda_graficos;constructor(){super(),this.nucleos=[]}setup(t){let e=new l.Formatter;this.id=t.id,this.legenda_graficos=t.legenda_graficos,this.ano=t.ano,this.compilado=t.compilado,this.certificado=t.certificado,this.imagem_certificado=t.imagem_certificado,this.certificado_escola=t.certificado_escola,this.certificado_coordenador=t.certificado_coordenador,this.certificado_avaliador=t.certificado_avaliador,this.boletim=t.boletim,this.assinatura_boletim=t.assinatura_boletim,this.matriz=t.matriz,this.titulo=t.titulo,this.inicio=t.inicio,this.encerramento=t.encerramento,this.tempo=t.tempo,this.limite_inscricoes=e.date_model(t.limite_inscricoes),this.data_limite_questoes=e.date_model(t.data_limite_questoes),this.data_limite_aprovacao=e.date_model(t.data_limite_aprovacao),this.data_realizacao=e.date_model(t.data_realizacao),this.nucleos=[],t.nucleos?.forEach(u=>{this.nucleos.push(u)}),this.instrucoes=Array.isArray(t.instrucoes)?t.instrucoes:"string"==typeof t.instrucoes?JSON.parse(t.instrucoes):[]}get_values(){let t=new l.Formatter,e=super.get_values();return e.limite_inscricoes=t.date_model(e.limite_inscricoes),e.data_limite_questoes=t.date_model(e.data_limite_questoes),e.data_limite_aprovacao=t.date_model(e.data_limite_aprovacao),e.data_realizacao=t.date_model(e.data_realizacao),e}},c.Questao=class n extends g.Form{area;matriz;questao;gabarito;bibliografia;id;prova;comentario;alternativas;metadata={};constructor(){super(),this.area=0,this.matriz=[],this.questao="",this.gabarito="",this.bibliografia="",this.alternativas={correta:new s,incorretas:[new s,new s,new s]}}setup(t,e=[]){this.area=t.id_area,this.questao=t.questao,this.gabarito=t.gabarito,this.bibliografia=t.bibliografia;let h,u=t.correta,_=[];for(let y=0;y<t.alternativas.length;y++)t.alternativas[y].id==u?h=t.alternativas[y]:_.push(t.alternativas[y]);this.metadata=t.metadata;for(let y of e)y.max_options>1&&!Array.isArray(this.metadata["id-"+y.id])&&(this.metadata["id-"+y.id]=[this.metadata["id-"+y.id]]);this.alternativas={correta:h,incorretas:_}}setup_matriz(t){console.log(this.matriz,t),this.matriz.forEach(e
1=>{t.forEach(u=>{e.campo==u.campo&&(e.opcao=u.opcao)})})}};class s{id;resposta;constructor(){this.resposta=""}}c.Alternativa=s},75652(N,c,r){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.SubmissionStatus=c.Sex=c.FileStatus=c.UserStatus=c.PaymentStatus=c.EventStatus=c.UserEventStatus=void 0;const l=r(14765);c.UserEventStatus=class A{AGUARDANDO_PAGAMENTO=1;PAGO=2;CHECKIN_REALIZADO=10;CERTIFICADO_GERADO=50;CERTIFICADO_LIBERADO=60;IMPRESSO=20;NA_FILA=500;PAGAMENTO_CANCELADO=600;REENVIO=1e3;list=[new l.ModelItem(this.AGUARDANDO_PAGAMENTO,"Aguardando pagamento"),new l.ModelItem(this.PAGO,"Pago"),new l.ModelItem(this.CHECKIN_REALIZADO,"Checkin realizado"),new l.ModelItem(this.CERTIFICADO_LIBERADO,"Certificado liberado"),new l.ModelItem(this.PAGAMENTO_CANCELADO,"Pagamento cancelado")]},c.EventStatus=class g{INSCRICOES_ABERTAS=1;INSCRICOES_ENCERRADAS=2;EM_PROGRESSO=3;ENCERRADO=4;list=[new l.ModelItem(this.INSCRICOES_ABERTAS,"Inscri\xe7\xf5es abertas"),new l.ModelItem(this.INSCRICOES_ENCERRADAS,"Inscri\xe7\xf5es encerradas"),new l.ModelItem(this.EM_PROGRESSO,"Em progresso"),new l.ModelItem(this.ENCERRADO,"Encerrado")]},c.PaymentStatus=class v{PROCESSANDO=1;PAGO=2;CANCELADO=3;ESTORNADO=4;ATRASADO=5;EXPIRADO=6;REEMBOLSO_NEGADO=10;REEMBOLSO_SOLICITADO=9;CONTESTADO=11;CHARGEBACK=12;list=[new l.ModelItem(this.PROCESSANDO,"Aguardando pagamento"),new l.ModelItem(this.PAGO,"Pago"),new l.ModelItem(this.CANCELADO,"Cancelado"),new l.ModelItem(this.ESTORNADO,"Estornado"),new l.ModelItem(this.ATRASADO,"Atrasado"),new l.ModelItem(this.EXPIRADO,"Expirado"),new l.ModelItem(this.CONTESTADO,"Contestado"),new l.ModelItem(this.CHARGEBACK,"Chargeback")]},c.UserStatus=class O{PRE_CADASTRO=1;ATIVO=2;INATIVO=3;INADIMPLENTE=4;EVENTO=5},c.FileStatus=class m{APROVADO=1;REPROVADO=0;AGUARDANDO=2;DELETADO=3;list=[new l.ModelItem(this.AGUARDANDO,"Aguardando avalia\xe7\xe3o"),new l.ModelItem(this.APROVADO,"Aprovado"),new l.ModelItem(this.REPROVADO,"Reprovado")]},c.Sex=class p{MASCULINO="M";FEMININO="F";MULHER_TRANS="A";HOMEM_TRANS="B";TRAVESTI="C";NAO_BINARIO="D";OUTRO="O";NAO_INFORMAR="N";list=[new l.ModelItem(this.FEMININO,"Mulher"),new l.ModelItem(this.MASCULINO,"Homem"),new l.ModelItem(this.MULHER_TRANS,"Mulher Transexual"),new l.ModelItem(this.HOMEM_TRANS,"Homem Transexual"),new l.ModelItem(this.TRAVESTI,"Travesti"),new l.ModelItem(this.NAO_BINARIO,"N\xe3o Bin\xe1rio"),new l.ModelItem(this.OUTRO,"Outro"),new l.ModelItem(this.NAO_INFORMAR,"Prefiro n\xe3o informar")]},c.SubmissionStatus=class f extends l.Form{ENVIADO=1;AGUARDANDO=2;REPROVADO=3;APROVADO=4;APRESENTADO=5;AVALIANDO=6;DESCLASSIFICADO=7;CERTIFICADO_LIBERADO=8;constructor(){super()}}},96507(N,c,r){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.OffsetDate=c.Logs=c.Area=c.Routes=c.Roles=void 0;const l=r(14765);c.Roles=class A{ADMIN=7;FUNCIONARIO_ABEM=5;SECRETARIA_ABEM=25;ASSOCIADO_INDIVIDUAL=3;ASSOCIADO_INSTITUCIONAL=2;EVENTO=11;GUEST=0;IUGU=13;EXTERNO=17;SECRETARIA_EVENTOS=65;ADMIN_LEITURA=85;ESTAGIARIO_ABEM=95;CONSELHO_DIRETOR=125;PUBLICACOES=155;COMITE_ELEICOES=185;list=[new l.ModelItem(this.GUEST,"Guest"),new l.ModelItem(this.ESTAGIARIO_ABEM,"Associados Consulta"),new l.ModelItem(this.SECRETARIA_ABEM,"Secretaria"),new l.ModelItem(this.FUNCIONARIO_ABEM,"Financeiro"),new l.ModelItem(this.ASSOCIADO_INDIVIDUAL,"Associado"),new l.ModelItem(this.SECRETARIA_EVENTOS,"Secretaria Eventos"),new l.ModelItem(this.EVENTO,"Evento"),new l.ModelItem(this.EXTERNO,"Externo"),new l.ModelItem(this.ADMIN_LEITURA,"Admin - Somente leitura"),new l.ModelItem(this.CONSELHO_DIRETOR,"Conselho diretor"),new l.ModelItem(this.PUBLICACOES,"Publica\xe7\xf5es"),new l.ModelItem(this.COMITE_ELEICOES,"Comite eleitoral")];admin_list=[new l.ModelItem(this.GUEST,"Guest"),new l.ModelItem(this.ADMIN,"Admin"),new l.ModelItem(this.ESTAGIARIO_ABEM,"Associados Consulta"),new l.ModelItem(this.SECRETARIA_ABEM,"Secretaria"),new l.ModelItem(this.FUNCIONARIO_ABEM,"Financeiro"),new l.ModelItem(this.SECRETARIA_EVENTOS,"Secretaria Eventos"),new l.ModelItem(this.ASSOCIADO_INDIVIDUAL,"Associado"),new l.ModelItem(this.EVENTO,"Evento"),new l.ModelItem(this.EXTERNO,"Externo"),new l.ModelItem(this.ADMIN_LEITURA,"Admin - Somente leitura"),new l.ModelItem(this.CONSELHO_DIRETOR,"Conselho diretor"),new l.ModelItem(this.PUBLICACOES,"Publica\xe7\xf5es"),new l.ModelItem(this.COMITE_ELEICOES,"Comite eleitoral")]},c.Routes=class g extends l.Form{UNDEFINED=-1;matrix;lines;menu;name;id;global;role_id;constructor(){super()}setup(f,o){let n=[];this.lines=f.lines,f.access.forEach(s=>{let i=s.x+1;for(;n.length<i;)n.push([]);for(i=s.y+1;n[s.x]<i;)n[s.x].push({id:-1})}),f.access.forEach(s=>
1{null==s.allow&&(s.allow=this.UNDEFINED),n[s.x][s.y]=s}),this.matrix=n,this.menu=f.menu,this.name=f.name,this.global=null,this.role_id=o||null,this.id=f.id}get_values(){let f=[];for(let o=0;o<this.matrix.length;o++)for(let n=0;n<this.matrix[o].length;n++)this.matrix[o][n]&&this.matrix[o][n].id>0&&f.push({id:this.matrix[o][n].id,allowed:this.matrix[o][n].allow,method:this.matrix[o][n].method,default:this.matrix[o][n].default});return{role_id:this.role_id,routes:f}}},c.Area=class v extends l.Form{area;active;id;menu;lines;matrix;setup(f){this.active=[];let o=f.routes;this.id=f.area.id,this.area=f.area.area,this.menu=f.area.menu?f.area.menu:["Recurso"],this.lines=f.area.lines?f.area.lines:[];for(let s=0;s<o.length;s++)o[s].area_id==this.id&&this.active.push(o[s]);this.update_matrix();let n=[];for(let s=0;s<this.active.length;s++)(!this.matrix[this.active[s].x_axis]||!this.matrix[this.active[s].x_axis][this.active[s].y_axis]||this.matrix[this.active[s].x_axis][this.active[s].y_axis].role_id!=this.active[s].id)&&(n.push(this.active[s]),this.active.splice(s,1),s--);return n}get_values(){let f={area:this.area,routes:[],id:this.id,lines:this.lines,menu:this.menu};for(let o=0;o<this.matrix.length;o++)for(let n=0;n<this.matrix[o].length;n++)this.matrix[o][n].role_id>0&&f.routes.push(this.matrix[o][n]);return f}update_matrix(){let f=[];this.lines.forEach(n=>{f.push([])});let o=this.menu.length-1;for(let n=0;n<o;n++)f.forEach((s,i)=>{let e,t=-1;void 0!==this.matrix&&void 0!==this.matrix[i]&&void 0!==this.matrix[i][n]?(t=this.matrix[i][n].role_id,e=this.matrix[i][n].description):this.active.forEach(u=>{u.x_axis==i&&u.y_axis==n&&(e=u.description,t=u.id)}),s.push({role_id:t,x:i,y:n,description:e})});this.matrix=null,this.matrix=f}select(f,o,n){this.matrix[f][o]={role_id:n.id,x:f,y:o,description:n.description}}clear(f,o){let n=JSON.parse(JSON.stringify(this.matrix[f][o]));return this.matrix[f][o].role_id=-1,{id:n.role_id,description:n.description}}},c.Logs=class O{type_name;created;id;details};class m extends Date{constructor(f=null){f?super(f):super(),this.setTime(this.getTime()+60*this.getTimezoneOffset()*1e3)}}
1c.OffsetDate=m},27321(N,c,r){"use strict";var l=r(29293).default;Object.defineProperty(c,"__esModule",{value:!0}),c.Payer=c.Files=c.AssociatePaymentsView=c.AssociatePayments=c.Payments=c.Employee=c.Ethnicity=c.PostGraduation=c.Graduation=c.IndividualUserEvent=c.CurrentPosition=c.Contact=c.SchoolAssociate=c.InstitutionalAssociate=c.Delegate=c.IndividualAssociate=c.AssociateUser=c.EventUser=c.AdminUser=c.User=c.Author=c.Alunos=c.Escola=c.Person=void 0;const A=r(72718),g=r(56806),v=r(14765),O=r(70112),m=r(96507);function p(U,a){U.clear();let M,L,F,S="CPF inv\xe1lido",D=a.replace(".","").replace(".","").replace("-","");if(L=0,"00000000000"==D)return U.add_message(S),!1;for(M=1;M<=9;M++)L+=parseInt(D.substring(M-1,M))*(11-M);if(F=10*L%11,(10==F||11==F)&&(F=0),F!=parseInt(D.substring(9,10)))return U.add_message(S),!1;for(L=0,M=1;M<=10;M++)L+=parseInt(D.substring(M-1,M))*(12-M);return F=10*L%11,(10==F||11==F)&&(F=0),F==parseInt(D.substring(10,11))||(U.add_message(S),!1)}class f extends v.Form{nome;cpf;email;id;type_id;user_id;tempo;is_new;constructor(){super(),this.cpf="",this.nome="",this.is_new=!1}initial_validation(){this.validations.cpf=new v.Validation,this.validations.nome=new v.Validation}setup(a){a&&(this.id=a.id,this.nome=a.nome,this.cpf=a.cpf,this.type_id=a.type_id,this.user_id=a.user_id,this.tempo=!0===a.tempo)}get_values(){return{nome:this.nome,cpf:this.cpf,email:this.email,type_id:this.type_id,tempo:this.tempo}}validate_nome(){let a=this.validations.nome;a.clear(),this.nome.length<5&&a.add_message("Preencha o nome")}validate_cpf(){p(this.validations.cpf,this.cpf)}validate_all(){this.validate_cpf(),this.validate_nome()}}c.Person=f,c.Escola=class o extends v.Form{coordenadores;save;consorcio;ano_teste;whatsapp;remove_ids;constructor(){super(),this.remove_ids=[],this.coordenadores=[]}initial_validation(){this.validations.cpf=new v.Validation,this.validations.tipo=new v.Validation}setup(a){if(this.coordenadores=[],this.ano_teste=a.ano_teste,this.consorcio=a.consorcio,a.employees)for(let D of a.employees){let M=new f;M.setup(D),this.coordenadores.push(M)}const S=[];for(let D of a.whatsapp)S.push({number:D});this.whatsapp=S}add(a){const S=this.remove_ids.indexOf(a.id);let D=!0;-1!==S&&this.remove_ids.splice(S,1),null==a.type_id&&(this.validations.tipo.add_message("Selecione um cargo"),D=!1);for(let M of this.coordenadores)M.cpf==a.cpf&&(this.validations.cpf.add_message("Usu\xe1rio j\xe1 est\xe1 presente na lista"),D=!1);return D&&this.coordenadores.push(a),D}remove(a){let S=this.coordenadores.splice(a,1)[0];S.user_id&&this.remove_ids.push(S.user_id)}add_whatsapp(){this.whatsapp.push({number:55})}remove_whatsapp(a){this.whatsapp.splice(a,1)}get_values(){let a=[];for(let D of this.coordenadores)a.push(D.get_values());const S=[];for(let D of this.whatsapp)S.push(D.number);return{save:a,remove:this.remove_ids,consorcio:this.consorcio,ano_teste:this.ano_teste,whatsapp:S}}},c.Alunos=class n extends v.Form{periodo;alunos;delete;prova;school_id;constructor(){super(),this.alunos=[new f],this.delete=[],this.periodo=-1,this.school_id=null}setup(a){this.periodo=a.periodo,this.prova=a.prova,this.alunos=[],this.delete=[];for(let S=0;S<a.alunos.length;S++){let D=new f;D.setup(a.alunos[S]),this.alunos.push(D)}}initial_validation(){this.validations.periodo=new v.Validation,this.validations.prova=new v.Validation}add(){this.alunos.unshift(new f)}remove(a){let S=this.alunos.splice(a,1).pop();S.id&&this.delete.push(S.id)}validate_periodo(){let a=this.validations.periodo;a.clear(),this.periodo<=0&&a.add_message("Selecione o ano do curs
1o")}validate_prova(){let a=this.validations.prova;a.clear(),null==this.prova&&a.add_message("Selecione a prova")}validate_all(){this.validate_periodo();for(let a=0;a<this.alunos.length;a++)this.alunos[a].is_valid()}is_valid(){let a=super.is_valid();for(let S=0;S<this.alunos.length&&a;S++)this.alunos[S].is_valid()||(a=!1);return a}get_values(){let a={periodo:this.periodo,alunos:[],remove:this.delete,prova:this.prova,school_id:this.school_id};for(let S=0;S<this.alunos.length;S++)a.alunos.push(this.alunos[S].get_values());return a}},c.Author=class s extends v.Form{full_name;email;cpf;school;other;coordenator;estrangeiro;constructor(){super(),this.cpf="",this.full_name="",this.email="",this.school=""}initial_validation(){this.validations.email=new v.Validation,this.validations.cpf=new v.Validation,this.validations.name=new v.Validation,this.validations.school=new v.Validation}validate_all(){this.validate_document(),this.validate_name(),this.validate_school()}validate_name(){let a=this.validations.name;a.clear(),0==this.full_name.length&&a.add_message("Informe um CPF cadastrado no sistema")}validate_school(){let a=this.validations.school;a.clear(),this.school.length<3&&a.add_message("Preencha a institui\xe7\xe3o")}validate_document(){if(!this.estrangeiro)return p(this.validations.cpf,this.cpf);let a=this.validations.cpf;return a.clear(),!(this.cpf.length<5&&(a.add_message("Preencha o documento"),1))}setup(a){this.full_name=a.full_name,this.cpf=a.cpf,this.email=a.email,this.school=a.school?a.school:"",this.coordenator=a.coordenator,this.other=a.other?a.other:""}get_values(){let a=super.get_values();return a.school=this.school.toUpperCase(),a}};class i extends v.Form{id;name;login;last_password;password;confirm_password;email;address;role;phone;phone_prefix;terms_accepted;estrangeiro;constructor(){super();let a="";this.address=new O.Address,this.id=a,this.name=a,this.login=a,this.last_password=a,this.password=a,this.confirm_password=a,this.email=a,this.role=null,this.phone="",this.phone_prefix="",this.terms_accepted=!1,this.initial_validation()}duplicate(a){return this.address=a.address,this.id=a.id,this.name=a.name,this.login=a.login,this.password=a.password,this.confirm_password=a.confirm_password,this.email=a.email,this.phone=a.phone,this.phone_prefix=a.phone_prefix,this}initial_validation(){this.validations.password=new v.Validation,this.validations.email=new v.Validation,this.validations.name=new v.Validation,this.validations.phone=new v.Validation}validate_password(){let a=this.validations.password;a.clear(),(0==this.password.length||0==this.confirm_password.length)&&a.add_message("Coloque a senha"),this.password!==this.confirm_password&&this.validations.password.add_message("Senhas diferentes")}validate_last_password(){0==this.last_password.length&&this.validations.password.add_message("Coloque a senha anterior")}validate_email(){let a=this.validations.email;a.clear(),this.email.length<8&&a.add_message("E-mail invalido")}validate_name(){let a=this.validations.name;a.clear(),this.name.length<5&&a.add_message("Nome muito curto"),this.name.split(" ").length<2&&a.add_message("Informe o nome completo - Ele ser\xe1 utilizado na emiss\xe3o de certificados e n\xe3o poder\xe1 ser alterado.")}validate_phone(){let a=this.validations.phone;a.clear();let S=this.phone;if(S.includes("__")||0==S.length)return a.add_message("Preencha o telefone"),!1}validate_all(a=!0){a&&(this.validate_password(),this.validate_document(),this.validate_email(),this.validate_name()),this.validate_phone(),super.validate_all()}is_valid(a=!0,S=!0){let D;this.validate_all(a),D=!S||this.address.is_valid();for(let M in this.validations)1==this.validations[M].failed&&(D=!1);return D}is_password_valid(){return this.validate_last_password(),this.validate_password(),!this.validations.password.failed}validate_document(){return!1}get_values(){let a=super.get_values();return delete a.address.validations,a.address.zip_code=parseInt(this.address.zip_code),this.phone_values(a),a}phone_values(a){this.estrangeiro||this.phone&&(a.phone=this.phone.substring(4).replace("-","").replace("_",""),a.phone_prefix=this.phone.substring(1,3))}user_values(){let a={id:this.id,name:this.name,login:this.login,password:this.password,email:this.email};return this.phone_values(a),a}get_address(){let a=this.address.get_values();return a.user_id=this.id,a}setup(a){a.address&&this.address.setup(a.address),this.id=a.uuid,this.name=a.full_name,this.login=a.login,this.password="",this.email=a.email,this.role=a.role,this.estrangeiro=a.estrangeiro,this.estrangeiro?(this.phone=a.phone,this.phone_prefix=a.phone_prefix):this.phone="("+a.phone_prefix+")"+a.phone}}c.User=i,c.AdminUser=class t extends i{get_values(){let a=JSON.parse(JSON.stringify(this));return delete a.validations,delete a.address,a}is_valid(){this.validate_all();let a=!0;for(let S in this.validations)1==this.validations[S].failed&&(a=!1);return a}validate_all(){this.validate_password(),this.validate_email(),this.validate_name()}};class e extends i{sex;code;cpf;constructor(){super(),this.sex="",this.cpf="",this.estrangeiro=!1}setup(a){super.setup(a),this.sex=a.sex,this.cpf=a.cpf,this.last_password="",this.password="",this.confirm_password=""}generate_password(){this.password=(+new Date).toString(36).slice(0,5),this.confirm_password=this.password}validate_sex(){return this.validations.sex.clear(),!0}validate_document(){return p(this.validations.cpf,this.cpf)}initial_validation(){super.initial_validation(),this.validations.cpf=new v.Validation,this.validations.sex=new v.Validation,this.validations.school=new v.Validation}validate_all(a=!0,S=!0){super.validate_all(a),this.validate_document(),this.validate_sex()}
1clear_validations(){this.validations.cpf.clear(),this.validations.phone.clear()}is_valid(a=!1,S=!1,D=!0){let M;this.validate_all(a,D),this.estrangeiro&&this.clear_validations(),M=!(S&&!this.estrangeiro)||this.address.is_valid();for(let L in this.validations)1==this.validations[L].failed&&(M=!1);return M}}c.EventUser=e;class u extends i{associate_id;type_id;admission;status;status_info;region;next_payment;observation;contact;payments;files;history;position_history;constructor(){super(),this.payments=[],this.files=[],this.position_history=[],this.history=[]}set_lists(){}get_values(){return super.get_values()}setup(a,S,D){if(super.setup(a),this.associate_id=a.id,this.type_id=a.type_id,a.admission&&(this.admission=new m.OffsetDate(a.admission)),this.status=a.status_id,this.status_info=a.status,this.region=a.region,this.next_payment=a.next_payment,this.observation=a.observation,this.contact=a.contact,a.history&&(this.history=JSON.parse(a.history)),S){this.payments=[];for(let M=0;M<S.length;M++){let L=new j;L.setup(S[M]),this.payments.push(L)}}if(D){this.files=[];for(let M=0;M<D.length;M++){let L=new V;L.setup(D[M]),this.files.push(L)}}}remove_file(a){this.files.splice(a,1);let S=this.files;this.files=null,this.files=S}initial_validation(){super.initial_validation(),this.validations.type=new v.Validation}validate_all(a){super.validate_all(a),a&&this.validate_type()}validate_type(){let a=this.validations.type;a.clear(),this.type_id||a.add_message("Selecione uma categoria")}}c.AssociateUser=u,c.IndividualAssociate=class h extends u{sex;birthday;council;council_state;council_code;rg_issuing_agency;rg_issued_date;rg;cpf;graduation;post_graduation;has_masters;has_doctorate;residency;position;extra_position;institute_1;institute_2;institute_3;lates;not_has_lates;ethnicity;file;new_type;constructor(){super(),this.position=new I,this.extra_position=new I,this.cpf="",this.rg="",this.rg_issuing_agency="";let a=new A.Graduations;this.graduation=new C,this.graduation.type=a.GRADUACAO,this.residency=new C,this.residency.type=a.RESIDENCIA,this.post_graduation=new R,this.post_graduation.type=a.ESPECIALIZACAO,this.has_masters=!1,this.has_doctorate=!1,this.lates="",this.institute_1="",this.institute_2="",this.institute_3="",this.ethnicity="",this.not_has_lates=!1,this.file=new v.FormFile,this.new_type=null}set_lists(a=[],S=[],D=[]){this.graduation.lists(D,S),this.residency.lists(a,S)}validate_sex(){return this.validations.sex.clear(),!!this.sex||(this.validations.sex.add_message("Selecione um genero"),!1)}validate_ethnicity(){return this.validations.ethnicity.clear(),!!this.ethnicity||(this.validations.ethnicity.add_message("Selecione uma ra\xe7a / cor"),!1)}validate_lates(){return this.validations.lates.clear(),0==this.not_has_lates&&this.lates.length>10||1==this.not_has_lates||(this.validations.lates.add_message("Informe o link completo do lates"),!1)}validate_institute(){return this.validations.institute.clear(),this.institute_1.length>0||(this.validations.institute.add_message("Selecione a institui\xe7\xe3o principal"),!1)}validate_document(){return p(this.validations.cpf,this.cpf)}validate_birthday(){let a=this.validations.birthday;if(a.clear(),!this.birthday)return a.add_message("Selecione uma data"),!1;let S=new m.OffsetDate;return!(this.birthday.getFullYear()+15>S.getFullYear()&&(a.add_message("Data de nascimento invalida"),1))}is_valid(a=!1,S=!1){let D=!0;super.is_valid(a,S)||(D=!1),D=this.graduation.is_valid()&&D;let M=new A.AssociateTypes;return this.type_id==M.POS_GRADUANDO?this.post_graduation.is_valid()&&D:this.type_id==M.RESIDENTE?this.residency.is_valid()&&D:D}initial_validation(){super.initial_validation(),this.validations.cpf=new v.Validation,this.validations.sex=new v.Validation,this.validations.birthday=new v.Validation,this.validations.lates=new v.Validation,this.validations.institute=new v.Validation,this.validations.ethnicity=new v.Validation}validate_all(a=!0){super.validate_all(a),this.validate_document(),this.validate_sex(),this.validate_birthday(),this.validate_lates(),this.validate_institute(),this.validate_ethnicity()}duplicate(a){super.duplicate(a);let S=new A.AssociateTypes;return a.type_id==S.ESCOLA||a.type_id==S.INSTITUICAO||(this.sex=a.sex,this.birthday=a.birthday,this.council=a.council,this.council_code=a.council_code,this.council_state=a.council_state,this.rg=a.rg,this.rg_issued_date=a.rg_issued_date,this.rg_issuing_agency=a.rg_issuing_agency,this.cpf=a.cpf,this.graduation=a.graduation),this}setup(a,S,D,M){super.setup(a,S,D),this.sex=a.sex,a.birthday&&(this.birthday=new m.OffsetDate(a.birthday)),this.council=a.council,this.council_code=a.council_code,this.contact="string"==typeof a.contact?JSON.parse(a.contact):a.contact,this.council_state=a.council_state,this.rg=a.rg,this.rg_issued_date=a.rg_issued_date,this.rg_issuing_agency=a.rg_issuing_agency,this.cpf=a.cpf,this.lates=a.lates?a.lates:"",this.graduation.setup(M.graduation),this.residency.setup(M.residency),this.post_graduation.setup(M.post_graduation),this.position.setup(M.position),this.extra_position.setup(M.extra_position),this.institute_1=a.institute_1?a.institute_1:"",this.institute_2=a.institute_2,this.institute_3=a.institute_3,this.ethnicity=a.ethnicity,this.has_doctorate=a.has_doctorate,this.has_masters=a.has_masters,this.position_history=M.positions_history,this.order_history()}order_history(){this.position_history&&this.position_history.sort((a,S)=>{let D=new Date(a.start_date),M=new Date(S.start_date);return D.getTime()-M.getTime()})}get_values(){let a=super.get_values();return a.graduation=this.graduation.get_values(),a.residency=this.residency.get_values(),a.post_graduation=this.post_graduation.get_values(),a.position=this.position.get_values(),a.extra_position=this.extra_position.get_values(),this.new_type&&(a.type_id=this.new_type),a}};class _{id;full_name;cpf;associate_id;user_id;position;position_id;start_date;end_date;constructor(){this.full_name="",this.cpf="",this.associate_id=null,this.position_id=0,this.user_id="",this.position="",this.start_date=null,this.end_date=null}setup(a){this.full_name=a.user_name,this.cpf=a.cpf,this.associate_id=a.associate_id,this.user_id=a.user_id,this.position=a.position_name,this.position_id=a.position_id,a.start_date&&(this.start_date=new m.OffsetDate(a.start_date)),a.end_date&&(this.end_date=new m.OffsetDate(a.end_date)),this.id=a.id}get_values(){return JSON.parse(JSON.stringify(this))}}c.Delegate=_;class y extends u{cnpj;delegates;remove_delegates;employees;remove_employees;MAX_DELEGATES=2;constructor(){super(),this.cnpj="",this.delegates=[],this.remove_delegates=[],this.remove_employees=[],this.employees=[]}add_employee(){this.employees.push(new T)}remove_employee(a){let S=this.employees.splice(a,1)[0];S.id&&this.remove_employees.push({id:S.id})}add_delegate(){this.delegates.length<this.MAX_DELEGATES&&this.delegates.push(new _)}remove_delegate(a){let S=this.delegates.splice(a,1);S[0].id&&this.remove_delegates.push({id:S[0].id,associate_id:S[0].associate_id,user_id:S[0].user_id})}duplicate(a){super.duplicate(a);let S=new A.AssociateTypes;return a.type_id!=S.ESCOLA&&a.type_id!=S.INSTITUICAO||(this.cnpj=a.cnpj),this}validate_document(){let a;if(a=this.cnpj.replace(/[^\d]+/g,""),""==a||14!=a.length||"00000000000000"==a||"11111111111111"==a||"22222222222222"==a||"33333333333333"==a||"44444444444444"==a||"55555555555555"==a||"66666666666666"==a||"77777777777777"==a||"88888888888888"==a||"99999999999999"==a)return!1;let G,S=a.length-2,D=a.substring(0,S),M=a.substring(S),L=0,F=S-7;for(G=S;G>=1;G--)L+=D.charAt(S-G)*F--,F<2&&(F=9);let H=L%11<2?0:11-L%11;if(H!=M.charAt(0))return!1;for(S+=1,D=a.substring(0,S),L=0,F=S-7,G=S;G>=1;G--)L+=D.charAt(S-G)*F--,F<2&&(F=9);return H=L%11<2?0:11-L%11,H==M.charAt(1)}setup(a,S,D,M){super.setup(a,S,D),this.cnpj=a.cnpj,this.delegates=[];let L=M.delegates.current;for(let G=0;G<L.length;G++){let H=new _;H.setup(L[G]),this.delegates.push(H)}this.position_history=M.delegates.history,this.employees=[];let F=M.employees;for(let G=0;G<F.length;G++){let H=new T;H.setup(F[G]),this.employees.push(H)}}get_values(){let a=super.get_values();a.employees=[];for(let S=0;S<this.employees.length;S++)a.employees.push(this.employees[S].get_values());a.delegates=[];for(let S=0;S<this.delegates.length;S++)a.delegates.push(this.delegates[S].get_values());return a}}c.InstitutionalAssociate=y,c.SchoolAssociate=class b extends y{mantenedora;cnpj_mantenedora;course_name;course_vacancies;course_created_year;short_name;regime_juridico;logo;course_hours;frequency;teachers;has_hospital;has_ambulatory;has_local_partnerships;consorcio;has_consorcio;ano_teste;progresso_employees;remove_progresso_employees;constructor(){super(),this.cnpj_mantenedora="",this.has_consorcio=!1,this.progresso_employees=[],this.remove_progresso_employees=[]}handle_file(a){var S=a.target.files,D=S[0];if(S&&D){var M=new FileReader;M.onload=this._handle_reader_loaded.bind(this),M.readAsDataURL(D)}}_handle_reader_loaded(a){this.logo=a.target.result}get_values(){let a=super.get_values();return a.mantenedora=this.mantenedora,a.course_name=this.course_name,a.course_vacancies=this.course_vacancies,a.course_created_year=this.course_created_year,a.short_name=this.short_name,a.regime_juridico=this.regime_juridico,a.logo=this.logo,a.course_hours=this.course_hours,a.frequency=this.frequency,a.teachers=this.teachers,a.has_hospital=this.has_hospital,a.has_ambulatory=this.has_ambulatory,a.has_local_partnerships=this.has_local_partnerships,a.consorcio=this.has_consorcio?this.consorcio:null,a.progresso_employees=this.progresso_employees,a}setup(a,S,D,M){super.setup(a,S,D,M),this.mantenedora=a.mantenedora,this.cnpj_mantenedora=a.cnpj_mantenedora,this.course_name=a.course_name,this.course_vacancies=a.course_vacancies,this.course_created_year=a.course_created_year,this.short_name=a.short_name,this.regime_juridico=a.regime_juridico,this.logo=a.logo,this.course_hours=a.course_hours,this.frequency=a.frequency,this.teachers=a.teachers,this.has_hospital=a.has_hospital,this.has_ambulatory=a.has_ambulatory,this.has_local_partnerships=a.has_local_partnerships,this.consorcio=a.consorcio,this.ano_teste=a.ano_teste,this.progresso_employees=M.progresso_employees,this.has_consorcio=!!this.consorcio}add_progresso(){this.progresso_employees.push(new f)}remove_progresso(a){var S=this;return l(function*(){let D=S.progresso_employees.splice(a,1)[0],M=!1;
1yield S.remove_progresso_employees.forEach(L=>{L.cpf==D.cpf&&(M=!0)}),D.user_id&&(M||S.remove_progresso_employees.push(D))})()}},c.Contact=class d{emails;phones;constructor(){this.emails=[""],this.phones=[""]}};class I extends v.Form{start_date;end_date;session_date;position_id;id;institutional_id;remove;name;cpf;associate_id;user_id;constructor(){super(),this.start_date=null,this.end_date=null,this.session_date=null}setup(a){a?(this.id=a.id,a.session_date?.length>0&&(this.session_date=new m.OffsetDate(a.session_date)),a.start_date?.length>0&&(this.start_date=new m.OffsetDate(a.start_date)),a.end_date?.length>0&&(this.end_date=new m.OffsetDate(a.end_date)),this.position_id=a.position_id,this.institutional_id=a.institutional_id,this.name=a.full_name,this.associate_id=a.associate_id,this.user_id=a.user_id):this.position_id=0}}c.CurrentPosition=I,c.IndividualUserEvent=class E extends e{event_id;badge_name;owner;constructor(){super(),this.event_id=null,this.badge_name=""}setup(a){super.setup(a),this.badge_name=a.badge_name}};class C extends v.Form{id;type;area;institute;start;end;areas;institutes;constructor(){super(),this.area=null,this.institute=null,this.initial_validation()}get_values(){return super.get_values()}setup(a){a&&(this.id=a.id,this.type=a.type,this.area=a.area,this.institute=a.institute,this.start=new m.OffsetDate(a.start),this.end=new m.OffsetDate(a.end))}initial_validation(){super.initial_validation(),this.validations.date=new v.Validation,this.validations.area=new v.Validation,this.validations.institute=new v.Validation}lists(a,S){var D=this;return l(function*(){D.areas=a,D.institutes=S})()}validate_all(){super.validate_all(),this.validate_date(),this.validate_area(),this.validate_institute()}validate_date(){let a=this.validations.date;a.clear(),this.end||a.add_message("A data de conclus\xe3o \xe9 obrigatoria")}validate_area(){let a=this.validations.area;return a.clear(),-1!=this.areas.indexOf(this.area)||(a.add_message("\xc1rea inv\xe1lida"),!1)}validate_institute(){let a=this.validations.institute;return a.clear(),-1!=this.institutes.indexOf(this.institute)||(a.add_message("Institui\xe7\xe3o inv\xe1lida"),!1)}}c.Graduation=C;class R extends C{constructor(){super(),this.area="P\xf3s gradua\xe7\xe3o",this.institute="",this.initial_validation()}get_values(){return super.get_values()}setup(a){a&&(this.id=a.id,this.type=a.type,this.area=a.area,this.institute=a.institute,a.start&&(this.start=new m.OffsetDate(a.start)),a.end&&(this.end=new m.OffsetDate(a.end)))}initial_validation(){super.initial_validation()}validate_all(){this.validate_date(),this.validate_institute()}is_valid(){this.validate_all();for(let a in this.validations)if(1==this.validations[a].failed)return!1;return!0}validate_date(){let a=this.validations.date;a.clear(),this.end||a.add_message("A data de conclus\xe3o \xe9 obrigatoria")}validate_institute(){let a=this.validations.institute;return a.clear(),!(this.institute.length<5&&(a.add_message("Institui\xe7\xe3o inv\xe1lida"),1))}}c.PostGraduation=R,c.Ethnicity=class P{PRETO="Negro: Preto";PARDO="Negro: Pardo";BRANCO="Branco";AMARELO="Amarelo";INDIGENA="Ind\xedgena";OUTROS="Outra";list=[new v.ModelItem(this.PRETO,this.PRETO),new v.ModelItem(this.PARDO,this.PARDO),new v.ModelItem(this.BRANCO,this.BRANCO),new v.ModelItem(this.AMARELO,this.AMARELO),new v.ModelItem(this.INDIGENA,this.INDIGENA),new v.ModelItem(this.OUTROS,this.OUTROS)]};class T extends v.Form{id;name;position;start;end;contact;setup(a){this.id=a.id,this.name=a.name,this.position=a.position,a.start&&(this.start=new m.OffsetDate(a.start)),a.end&&(this.end=new m.OffsetDate(a.end)),this.contact="null"!=a.contact?a.contact:{email:"",phone:""}}get_values(){return super.get_values()}constructor(){super(),this.contact={email:"",phone:""}}}c.Employee=T;class w extends v.Form{id;value;status_id;status;type;gateway_code;gateway_secure;additional_info;paid_date;due_date;way_id;receipt_number;menu;constructor(){super();let a=new g.PaymentWays;this.way_id=a.IUGU,this.value=null,this.status_id=null,this.additional_info="",this.paid_date=null;let S=new m.OffsetDate;this.due_date=S.getFullYear()+"-"+(S.getMonth()+1)+"-"+S.getDate(),this.id=null}setup(a){this.way_id=a.way_id,this.value=a.total/100,this.status_id=a.status_id,this.status=a.status,this.type=a.type,this.gateway_code=a.gateway_code,this.gateway_secure=a.gateway_secure,this.due_date=a.due_date,a.paid_date&&(this.paid_date=new m.OffsetDate(a.paid_date)),this.additional_info=a.additional_info,this.id=a.id,this.receipt_number=a.receipt_number}get_values(){let a=super.get_values();return a.value=100*a.value,a}}c.Payments=w;class j extends w{reference_year;boleto;associate_id;mantenedora;constructor(){super();let a=new m.OffsetDate;this.reference_year=a.getFullYear(),this.mantenedora=!1;let S=new g.PaymentType;this.type=S.ASSOCIADO,this.boleto=!1}setup(a){super.setup(a),this.reference_year=a.reference_year,this.associate_id=a.associate_id}}c.AssociatePayments=j,c.AssociatePaymentsView=class B extends j{way;total};class V extends v.Form{id;name;description;status_id;path;new_type;setup(a){this.id=a.id,this.name=a.path,this.description=a.description,this.status_id=a.status_id,this.new_type=a.new_type}}c.Files=V,c.Payer=class J{address;name;email;phone;phone_prefix;cpf_cnpj;cc_emails;constructor(){this.cc_emails=[],this.address=new O.Address,this.name="",this.email="",this.phone="",this.phone_prefix="",this.cpf_cnpj=""}get_values(){let a=JSON.parse(JSON.stringify(this));return a.address=this.address.get_values(),a.address.street=this.address.address,delete a.address.adress,a}}},14765(N,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.ImportFile=c.ModelItem=c.FormFile=c.FormImage=c.Form=c.Validation=void 0;class r{failed;_messages;constructor(){this.failed=!1,this._messages=[]}add_message(p){this._messages.push(p),this.failed=!0}clear(){this.failed=!1,this._messages=[]}messages(){return this._messages}}c.Validation=r,c.Form=class l{validations;constructor(){this.validations=[],this.initial_validation()}initial_validation(){}validate_all(){}is_valid(){this.validate_all();for(let p in this.validations)if(1==this.validations[p].failed)return!1;return!0}
1clear_validations(){for(let p in this.validations)this.validations[p].clear()}get_values(){let p=JSON.parse(JSON.stringify(this));return delete p.validations,p}},c.FormImage=class A{image;id;validation;set_validator(p){this.validation=p}handle_file(p){var f=p.target.files,o=f[0];if(f&&o){var n=new FileReader;n.onload=this._handle_reader_loaded.bind(this),n.readAsDataURL(o)}}_handle_reader_loaded(p){this.image=p.target.result,this.validate()}validate(){return this.validation.clear(),!!(this.id>0||this.image&&this.image.length>0)||(this.validation.add_message("Selecione uma imagem"),!1)}get_values(){let p=JSON.parse(JSON.stringify(this));return delete p.validation,p}},c.FormFile=class g{name;path;id;description;extension;file;created_at;status;status_id;validation;constructor(){this.validation=new r}handle_file(p){var f=p.target.files,o=f[0];if(f&&o){var n=new FileReader;this.path=o.name,n.onload=this._handle_reader_loaded.bind(this),n.readAsDataURL(o)}else this.validate()}_handle_reader_loaded(p){this.file=p.target.result,this.validate()}validate(){return this.validation.clear(),!!(this.id>0||this.file&&this.file.length>0)||(this.validation.add_message("Selecione um arquivo"),!1)}is_valid(){return this.validate(),!this.validation.failed}get_values(){let p=JSON.parse(JSON.stringify(this));return delete p.validation,p}},c.ModelItem=class v{id;name;title;label;value;constructor(p,f){this.id=p,this.name=f,this.title=f,this.value=p,this.label=f}},c.ImportFile=class O{file;file_name;handle_file(p){var f=p.target.files,o=f[0];if(f&&o){var n=new FileReader;n.onload=this._handle_reader_loaded.bind(this),this.file_name=o.name,n.readAsDataURL(o)}}_handle_reader_loaded(p){this.file=p.target.result}get_values(){return JSON.parse(JSON.stringify(this))}}},87688(N,c,r){"use strict";var l=this&&this.__createBinding||(Object.create?function(p,f,o,n){void 0===n&&(n=o);var s=Object.getOwnPropertyDescriptor(f,o);
1(!s||("get"in s?!f.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return f[o]}}),Object.defineProperty(p,n,s)}:function(p,f,o,n){void 0===n&&(n=o),p[n]=f[o]}),A=this&&this.__setModuleDefault||(Object.create?function(p,f){Object.defineProperty(p,"default",{enumerable:!0,value:f})}:function(p,f){p.default=f}),g=this&&this.__importStar||function(){var p=function(f){return(p=Object.getOwnPropertyNames||function(o){var n=[];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[n.length]=s);return n})(f)};return function(f){if(f&&f.__esModule)return f;var o={};if(null!=f)for(var n=p(f),s=0;s<n.length;s++)"default"!==n[s]&&l(o,f,n[s]);return A(o,f),o}}();Object.defineProperty(c,"__esModule",{value:!0}),c.AcessibilidadeService=void 0;const v=r(49849),O=g(r(49849));c.AcessibilidadeService=(()=>{class p{size=1;emitter=new v.EventEmitter;size_changes(){return this.emitter}set_size(o){this.size=o,this.emitter.emit(this.get_size_class())}get_size_class(){return"x"+this.size}static \u0275fac=function(n){return new(n||p)};static \u0275prov=O.\u0275\u0275defineInjectable({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},21334(N,c,r){"use strict";var l=r(29293).default,A=this&&this.__createBinding||(Object.create?function(n,s,i,t){void 0===t&&(t=i);var e=Object.getOwnPropertyDescriptor(s,i);(!e||("get"in e?!s.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return s[i]}}),Object.defineProperty(n,t,e)}:function(n,s,i,t){void 0===t&&(t=i),n[t]=s[i]}),g=this&&this.__setModuleDefault||(Object.create?function(n,s){Object.defineProperty(n,"default",{enumerable:!0,value:s})}:function(n,s){n.default=s}),v=this&&this.__importStar||function(){var n=function(s){return(n=Object.getOwnPropertyNames||function(i){var t=[];for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[t.length]=e);return t})(s)};return function(s){if(s&&s.__esModule)return s;var i={};if(null!=s)for(var t=n(s),e=0;e<t.length;e++)"default"!==t[e]&&A(i,s,t[e]);return g(i,s),i}}();Object.defineProperty(c,"__esModule",{value:!0}),c.AddressService=void 0;const O=r(59091),m=v(r(49849)),p=v(r(37554)),f=v(r(30489));c.AddressService=(()=>{class n{api;error;states=[{label:"AC",value:"AC"},{label:"AL",value:"AL"},{label:"AM",value:"AM"},{label:"AP",value:"AP"},{label:"BA",value:"BA"},{label:"CE",value:"CE"},{label:"DF",value:"DF"},{label:"ES",value:"ES"},{label:"GO",value:"GO"},{label:"MA",value:"MA"},{label:"MG",value:"MG"},{label:"MS",value:"MS"},{label:"MT",value:"MT"},{label:"PA",value:"PA"},{label:"PB",value:"PB"},{label:"PE",value:"PE"},{label:"PI",value:"PI"},{label:"PR",value:"PR"},{label:"RJ",value:"RJ"},{label:"RN",value:"RN"},{label:"RO",value:"RO"},{label:"RR",value:"RR"},{label:"RS",value:"RS"},{label:"SC",value:"SC"},{label:"SE",value:"SE"},{label:"SP",value:"SP"},{label:"TO",value:"TO"}];_cities=[];constructor(i,t){this.api=i,this.error=t}cities(i){var t=this;return l(function*(){for(let e of t._cities)if(e.state_id==i)return Promise.resolve(e.cities);try{const e=yield(0,O.lastValueFrom)(t.api.recover("cities/:state",{state:i}));return t._cities.push({state_id:i,cities:e}),Promise.resolve(e)}catch(e){return t.error.open_modal(e.error),Promise.reject(e)}})()}zip_code(i){var t=this;return l(function*(){try{const e=yield(0,O.lastValueFrom)(t.api.recover("zip-code/:code",{code:i}));return yield t.cities(e.state_id),Promise.resolve(e)}catch(e){t.error.open_modal(e.error)}})()}static \u0275fac=function(t){return new(t||n)(m.\u0275\u0275inject(p.ApiService),m.\u0275\u0275inject(f.CustomErrorHandler))};static \u0275prov=m.\u0275\u0275defineInjectable({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})()},89656(N,c,r){"use strict";var l=this&&this.__createBinding||(Object.create?function(o,n,s,i){void 0===i&&(i=s);var t=Object.getOwnPropertyDescriptor(n,s);(!t||("get"in t?!n.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return n[s]}}),Object.defineProperty(o,i,t)}:function(o,n,s,i){void 0===i&&(i=s),o[i]=n[s]}),A=this&&this.__setModuleDefault||(Object.create?function(o,n){Object.defineProperty(o,"default",{enumerable:!0,value:n})}:function(o,n){o.default=n}),g=this&&this.__importStar||function(){var o=function(n){return(o=Object.getOwnPropertyNames||function(s){var i=[];for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&(i[i.length]=t);return i})(n)};return function(n){if(n&&n.__esModule)return n;var s={};if(null!=n)for(var i=o(n),t=0;t<i.length;t++)"default"!==i[t]&&l(s,n,i[t]);return A(s,n),s}}();Object.defineProperty(c,"__esModule",{value:!0}),c.AlertService=void 0;const v=r(49849),O=r(89377),m=g(r(49849)),p=g(r(39078));c.AlertService=(()=>{class o{modal;emitter;constructor(s){this.modal=s,this.emitter=new v.EventEmitter}error(s,i="Erro",t="OK"){let e=this.modal.open(O.AlertModalComponent);e.componentInstance.error(s),e.componentInstance.ok=t}success(s,i="Sucesso",t="OK"){let e=this.modal.open(O.AlertModalComponent);e.componentInstance.success(s),e.componentInstance.ok=t}custom(s){this.emitter.emit(s)}listener(){return this.emitter}static \u0275fac=function(i){return new(i||o)(m.\u0275\u0275inject(p.NgbModal))};static \u0275prov=m.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac,providedIn:"root"})}return o}
1)()},79185(N,c,r){"use strict";var l=r(29293).default,A=this&&this.__createBinding||(Object.create?function(i,t,e,u){void 0===u&&(u=e);var h=Object.getOwnPropertyDescriptor(t,e);(!h||("get"in h?!t.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(i,u,h)}:function(i,t,e,u){void 0===u&&(u=e),i[u]=t[e]}),g=this&&this.__setModuleDefault||(Object.create?function(i,t){Object.defineProperty(i,"default",{enumerable:!0,value:t})}:function(i,t){i.default=t}),v=this&&this.__importStar||function(){var i=function(t){return(i=Object.getOwnPropertyNames||function(e){var u=[];for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&(u[u.length]=h);return u})(t)};return function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var u=i(t),h=0;h<u.length;h++)"default"!==u[h]&&A(e,t,u[h]);return g(e,t),e}}();Object.defineProperty(c,"__esModule",{value:!0}),c.ApiProvaService=void 0;const O=r(45312),m=r(37554),p=v(r(49849)),f=v(r(6127)),o=v(r(39078)),n=v(r(70226));c.ApiProvaService=(()=>{class i extends m.ApiService{STATIC_URL;constructor(e,u,h){super(e,u,h),this.API_URL=O.environment.edge_api_url,this.STATIC_URL=O.environment.cdn,this.params={}}download_prova(e){var u=this;return l(function*(){return u.http.get(u.STATIC_URL+e).toPromise()})()}static \u0275fac=function(u){return new(u||i)(p.\u0275\u0275inject(f.HttpClient),p.\u0275\u0275inject(o.NgbModal),p.\u0275\u0275inject(n.LoadingService))};static \u0275prov=p.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},22418(N,c,r){"use strict";var l=this&&this.__createBinding||(Object.create?function(i,t,e,u){void 0===u&&(u=e);var h=Object.getOwnPropertyDescriptor(t,e);(!h||("get"in h?!t.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(i,u,h)}:function(i,t,e,u){void 0===u&&(u=e),i[u]=t[e]}),A=this&&this.__setModuleDefault||(Object.create?function(i,t){Object.defineProperty(i,"default",{enumerable:!0,value:t})}:function(i,t){i.default=t}),g=this&&this.__importStar||function(){var i=function(t){return(i=Object.getOwnPropertyNames||function(e){var u=[];for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&(u[u.length]=h);return u})(t)};return function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var u=i(t),h=0;h<u.length;h++)"default"!==u[h]&&l(e,t,u[h]);return A(e,t),e}}();Object.defineProperty(c,"__esModule",{value:!0}),c.ApiWordpressService=void 0;const v=r(89377),O=r(45312),m=r(6127),p=r(53125),f=g(r(49849)),o=g(r(6127)),n=g(r(39078));c.ApiWordpressService=(()=>{class i{http;modal;API_URL;cache;params;headers;AUTH_TOKEN;permissions;constructor(e,u){this.http=e,this.modal=u,this.API_URL="https://website.abem-educmed.org.br/wp-json/wp/v2/",this.cache=!0,this.params={},this.headers=new m.HttpHeaders,this.setHeaders()}getLoginHeaders(){return this.headers=this.headers.delete("authorization"),this.headers}getHeaders(){return this.headers=this.headers.delete("content-type"),this.headers}getHeadersPost(){return this.headers=this.headers.delete("content-type"),this.headers=this.headers.append("Content-Type","application/json"),this.headers}setAuth(e){}setHeaders(){}urlEncode(e,u,h=null,_=0){let y,b=u,d=0===_?"?":"&";var I=!1;let E="";for(let C in e){if("object"==typeof e[C]){_++;let R=this.urlEncode(e[C],u,C,_);e[C]=R.params,u=R.endpoint,I=!0}else I=!1;null===h?(y=new RegExp(":"+C+"\\b"),(u=b.replace(y,e[C]+""))==b?(E+=I?d+e[C]:d+C+"="+e[C],d="&"):b=u):E+=h+"["+C+"]="+e[C]+"&"}for(;E.includes("&&");)E=E.replace("&&","&");return{params:E,endpoint:u}}paramsToUrl(e,u){let h,_=u;for(let y in e)h=new RegExp(":"+y+"\\b"),u=_.replace(h,e[y]+""),_=u;return u}recover(e,u){this.params=u;var h="";if(null!=this.params){let _=this.urlEncode(this.params,e);e=_.endpoint,""!=(h=_.params)&&(h=encodeURI(h))}return this.http.get(this.API_URL+e+h,{headers:this.getHeaders()})}download(e,u,h,_,y){this.params=u;var b="";if(null!=this.params){let I=this.urlEncode(this.params,e);e=I.endpoint,""!=(b=I.params)&&(b=encodeURI(b))}let d;return d=_?O.environment.static_url:this.API_URL,this.http.get(d+e+b,{headers:this.getHeaders(),responseType:"blob"}).subscribe(I=>{(0,p.saveAs)(I,h),y&&(y.status=!1)},I=>{this.modal.open(v.AlertModalComponent).componentInstance.success("Arquivo n\xe3o encontrado"),y&&(y.status=!1)})}insert(e,u){var h;return this.params=u,e=this.paramsToUrl(this.params,e),this.params=JSON.stringify(this.params),h={headers:this.getHeadersPost()},this.http.post(this.API_URL+e,this.params,h)}search(e,u){return this.insert(e,u)}remove(e,u){this.params=u;var h={headers:this.getHeaders(),body:this.params};return e=this.paramsToUrl(this.params,e),this.http.delete(this.API_URL+e,h)}update(e,u){this.params=u;var h={headers:this.getHeadersPost(),body:JSON.stringify(this.params)};return e=this.paramsToUrl(this.params,e),this.http.put(this.API_URL+e,this.params,h)}login(e,u){this.params=u;var h={headers:this.getLoginHeaders()};return this.http.post(this.API_URL+e,this.params,h)}static \u0275fac=function(u){return new(u||i)(f.\u0275\u0275inject(o.HttpClient),f.\u0275\u0275inject(n.NgbModal))};static \u0275prov=f.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},37554(N,c,r){"use strict";var l=r(29293).default,A=this&&this.__createBinding||(Object.create?function(e,u,h,_){void 0===_&&(_=h);var y=Object.getOwnPropertyDescriptor(u,h);(!y||("get"in y?!u.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return u[h]}}),Object.defineProperty(e,_,y)}:function(e,u,h,_){void 0===_&&(_=h),e[_]=u[h]}),g=this&&this.__setModuleDefault||(Object.create?function(e,u){Object.defineProperty(e,"default",{enumerable:!0,value:u})}:function(e,u){e.default=u}),v=this&&this.__importStar||function(){var e=function(u){return(e=Object.getOwnPropertyNames||function(h){var _=[];for(var y in h)Object.prototype.hasOwnProperty.call(h,y)&&(_[_.length]=y);return _})(u)};
1return function(u){if(u&&u.__esModule)return u;var h={};if(null!=u)for(var _=e(u),y=0;y<_.length;y++)"default"!==_[y]&&A(h,u,_[y]);return g(h,u),h}}();Object.defineProperty(c,"__esModule",{value:!0}),c.ApiService=void 0;const O=r(89377),m=r(45312),p=r(6127),f=r(53125),o=v(r(49849)),n=v(r(6127)),s=v(r(39078)),i=v(r(70226));let t=(()=>{class e{http;modal;loading;API_URL;cache;params;headers;AUTH_TOKEN;permissions;constructor(h,_,y){this.http=h,this.modal=_,this.loading=y,this.API_URL=m.environment.api_url,this.cache=!0,this.params={},this.headers=new p.HttpHeaders,this.setHeaders()}getLoginHeaders(){return this.headers=this.headers.delete("authorization"),this.headers}getHeaders(){return this.headers=this.headers.delete("content-type"),this.headers}getHeadersPost(){return this.headers=this.headers.delete("content-type"),this.headers=this.headers.append("Content-Type","application/json"),this.headers}setAuth(h){this.headers=this.headers.delete("authorization"),h&&(this.AUTH_TOKEN=h.access_token,this.headers=this.headers.append("authorization","Bearer "+h.access_token))}setHeaders(){}urlEncode(h,_,y=null,b=0){let d,I=_,E=0===b?"?":"&";var C=!1;let R="";for(let P in h){if("object"==typeof h[P]){b++;let T=this.urlEncode(h[P],_,P,b);h[P]=T.params,_=T.endpoint,C=!0}else C=!1;null===y?(d=new RegExp(":"+P+"\\b"),(_=I.replace(d,h[P]+""))==I?(R+=C?E+h[P]:E+P+"="+h[P],E="&"):I=_):R+=y+"["+P+"]="+h[P]+"&"}for(;R.includes("&&");)R=R.replace("&&","&");return{params:R,endpoint:_}}paramsToUrl(h,_){let y,b=_;for(let d in h)y=new RegExp(":"+d+"\\b"),_=b.replace(y,h[d]+""),b=_;return _}recover(h,_){this.params=_;var y="";if(null!=this.params){let b=this.urlEncode(this.params,h);h=b.endpoint,""!=(y=b.params)&&(y=encodeURI(y))}return this.http.get(this.API_URL+h+y,{headers:this.getHeaders()})}download(h){var _=this;return l(function*(y,b={},d=null){_.params=b,_.loading.start();var I="";if(null!=_.params){let E=_.urlEncode(_.params,y);y=E.endpoint,""!=(I=E.params)&&(I=encodeURI(I))}try{const E=yield _.http.get(_.API_URL+y+I,{headers:_.getHeaders()}).toPromise();_.external_download(E.download_file,{},d),_.loading.end()}catch{_.modal.open(O.AlertModalComponent).componentInstance.error("Arquivo n\xe3o encontrado"),_.loading.end()}}).apply(this,arguments)}external_download(h,_={},y=null){this.params=_,this.loading.start();var b="";if(null!=this.params){let d=this.urlEncode(this.params,h);h=d.endpoint,""!=(b=d.params)&&(b=encodeURI(b))}return this.http.get(h+b,{headers:new p.HttpHeaders,responseType:"blob"}).subscribe(d=>{y||(y=h.split("/").pop().split("?")[0]),(0,f.saveAs)(d,y),this.loading.end()},d=>{this.modal.open(O.AlertModalComponent).componentInstance.error("Arquivo n\xe3o encontrado"),this.loading.end()})}insert(h,_){var y;return this.params=_,h=this.paramsToUrl(this.params,h),this.params=JSON.stringify(this.params),y={headers:this.getHeadersPost()},this.http.post(this.API_URL+h,this.params,y)}search(h,_){return this.insert(h,_)}remove(h,_){this.params=_;var y={headers:this.getHeaders(),body:this.params};return h=this.paramsToUrl(this.params,h),this.http.delete(this.API_URL+h,y)}update(h,_){this.params=_;var y={headers:this.getHeadersPost(),body:JSON.stringify(this.params)};return h=this.paramsToUrl(this.params,h),this.http.put(this.API_URL+h,this.params,y)}login(h,_){this.params=_;let y=new p.HttpHeaders;return y=y.append("Content-Type","application/json"),this.http.post(this.API_URL+h,this.params,{headers:y})}static \u0275fac=function(_){return new(_||e)(o.\u0275\u0275inject(n.HttpClient),o.\u0275\u0275inject(s.NgbModal),o.\u0275\u0275inject(i.LoadingService))};static \u0275prov=o.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();c.ApiService=t},48848(N,c,r){"use strict";var l=r(29293).default,A=this&&this.__createBinding||(Object.create?function(n,s,i,t){void 0===t&&(t=i);var e=Object.getOwnPropertyDescriptor(s,i);(!e||("get"in e?!s.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return s[i]}}),Object.defineProperty(n,t,e)}:function(n,s,i,t){void 0===t&&(t=i),n[t]=s[i]}),g=this&&this.__setModuleDefault||(Object.create?function(n,s){Object.defineProperty(n,"default",{enumerable:!0,value:s})}:function(n,s){n.default=s}),v=this&&this.__importStar||function(){var n=function(s){return(n=Object.getOwnPropertyNames||function(i){var t=[];for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[t.length]=e);return t})(s)};return function(s){if(s&&s.__esModule)return s;var i={};if(null!=s)for(var t=n(s),e=0;e<t.length;e++)"default"!==t[e]&&A(i,s,t[e]);return g(i,s),i}}();Object.defineProperty(c,"__esModule",{value:!0}),c.AssociateService=void 0;const O=r(72718),m=r(14765),p=v(r(49849)),f=v(r(37554));c.AssociateService=(()=>{class n{api;loading_pos;loading_area;loading_school;_positions;_areas;_courses;_schools;constructor(i){this.api=i,this.loading_pos=!1,this.loading_area=!1,this.loading_school=!1,this._areas=null,this._positions=null,this._schools=null}sleep(i){return new Promise(t=>setTimeout(t,i))}positions(){var i=this;return l(function*(){return null!=i._positions?Promise.resolve(i._positions):i.loading_pos?(yield i.sleep(1e3),i.positions()):(i.loading_pos=!0,i.api.recover("associate/positions").toProm
1ise().then(t=>(i._positions=t,i.loading_pos=!1,i._positions),t=>(i.loading_pos=!1,[])))})()}areas(){var i=this;return l(function*(){return null!=i._areas?Promise.resolve(i._areas):i.loading_area?(yield i.sleep(1e3),i.areas()):(i.loading_area=!0,i.api.recover("associate/areas").toPromise().then(t=>(i._areas=[],i._courses=[],t.forEach(e=>{if(1==e.type_id)return i._areas.push(new m.ModelItem(e.id,e.title));i._courses.push(new m.ModelItem(e.id,e.title))}),i._areas.push(new m.ModelItem(null,"Outra")),i._courses.push(new m.ModelItem(null,"Outro")),i.loading_area=!1,i._areas),t=>(i.loading_area=!1,[])))})()}courses(){var i=this;return l(function*(){return null!=i._courses?Promise.resolve(i._courses):(yield i.sleep(1e3),i.courses())})()}schools(){var i=this;return l(function*(){return null!=i._schools?Promise.resolve(i._schools):i.loading_school?(yield i.sleep(1e3),i.schools()):(i.loading_school=!0,i.api.recover("associate/schools").toPromise().then(t=>(i._schools=t,i._schools.unshift(new m.ModelItem(null,O.MedicalSchools.OUTRA)),i.loading_school=!1,i._schools),t=>(i.loading_school=!1,[])))})()}static \u0275fac=function(t){return new(t||n)(p.\u0275\u0275inject(f.ApiService))};static \u0275prov=p.\u0275\u0275defineInjectable({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})()},91571(N,c,r){"use strict";var l=this&&this.__createBinding||(Object.create?function(o,n,s,i){void 0===i&&(i=s);var t=Object.getOwnPropertyDescriptor(n,s);(!t||("get"in t?!n.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return n[s]}}),Object.defineProperty(o,i,t)}:function(o,n,s,i){void 0===i&&(i=s),o[i]=n[s]}),A=this&&this.__setModuleDefault||(Object.create?function(o,n){Object.defineProperty(o,"default",{enumerable:!0,value:n})}:function(o,n){o.default=n}),g=this&&this.__importStar||function(){var o=function(n){return(o=Object.getOwnPropertyNames||function(s){var i=[];for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&(i[i.length]=t);return i})(n)};return function(n){if(n&&n.__esModule)return n;var s={};if(null!=n)for(var i=o(n),t=0;t<i.length;t++)"default"!==i[t]&&l(s,n,i[t]);return A(s,n),s}}();Object.defineProperty(c,"__esModule",{value:!0}),c.AuthProvaService=void 0;const v=r(49849),O=g(r(49849)),m=g(r(79185)),p=g(r(30065));c.AuthProvaService=(()=>{class o{api;loadingCtrl;user;loading;_status;id;connected;KEY="USER-PROVA";constructor(s,i){this.api=s,this.loadingCtrl=i,this.loading=!1,this.user=null,this.connected=new v.EventEmitter}status(){return this._status}get_user(){return this.user}set_user(s){this.user=s,this.connected.emit(null!=s)}showLoading(s){this.loading=this.loadingCtrl.create({message:s}),this.loading.present()}find(){let s=JSON.parse(localStorage.getItem(this.KEY));if(null!=s&&void 0!==s.access_token){let e=1e3*this.parse_jwt(s.access_token).exp;return(new Date).getTime()<e?(this.api.setAuth({access_token:s.access_token}),this.user=this.parse_jwt(s.access_token).info,console.log("user find"),this.connected.emit(!0),Promise.resolve(1)):(this.clear(),Promise.resolve(0))}return Promise.resolve(0)}clear(){localStorage.removeItem(this.KEY),this.user=null,this.connected.emit(!1)}logout(){return this.api.remove("login",{}).subscribe({next:()=>{this.clear()},error:()=>{this.clear()}})}save(s){this.user=this.parse_jwt(s.access_token).info,localStorage.setItem(this.KEY,JSON.stringify(s)),this.connected.emit(!0)}login_token(s){return this.api.setAuth(s),this.save(s),!0}parse_jwt(s){let t=s.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),e=decodeURIComponent(atob(t).split("").map(function(u){return"%"+("00"+u.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(e)}static \u0275fac=function(i){return new(i||o)(O.\u0275\u0275inject(m.ApiProvaService),O.\u0275\u0275inject(p.LoadingController))};static \u0275prov=O.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},13664(N,c,r){"use strict";var l=r(29293).default,A=this&&this.__createBinding||(Object.create?function(y,b,d,I){void 0===I&&(I=d);var E=Object.getOwnPropertyDescriptor(b,d);
1(!E||("get"in E?!b.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return b[d]}}),Object.defineProperty(y,I,E)}:function(y,b,d,I){void 0===I&&(I=d),y[I]=b[d]}),g=this&&this.__setModuleDefault||(Object.create?function(y,b){Object.defineProperty(y,"default",{enumerable:!0,value:b})}:function(y,b){y.default=b}),v=this&&this.__importStar||function(){var y=function(b){return(y=Object.getOwnPropertyNames||function(d){var I=[];for(var E in d)Object.prototype.hasOwnProperty.call(d,E)&&(I[I.length]=E);return I})(b)};return function(b){if(b&&b.__esModule)return b;var d={};if(null!=b)for(var I=y(b),E=0;E<I.length;E++)"default"!==I[E]&&A(d,b,I[E]);return g(d,b),d}}();Object.defineProperty(c,"__esModule",{value:!0}),c.AuthService=void 0;const O=r(46148),m=r(49849),p=r(55624),f=r(6127),o=r(96507),n=r(45312),s=r(72718),i=v(r(49849)),t=v(r(37554)),e=v(r(70226)),u=v(r(30489)),h=v(r(7901));let _=(()=>{class y{api;pre_loader;error;router;KEY="auth";_name;_id;_status;_permissions;_auth;_cpf;_status_id;_missing;_email;_associate_id;_type_id;next_payment;loading_school;_schools;_selected_school;NAO_ASSOCIADO="N\xe3o associado";admin;incomplete_user;loading;_role_id;notifier;recording=!1;_refresh=!0;constructor(d,I,E,C){this.api=d,this.pre_loader=I,this.error=E,this.router=C,this._id=null,this._name=null,this._cpf=null,this.admin=!1,this._auth=new m.EventEmitter,this.loading_school=!1,this.notifier=new m.EventEmitter}auth(){return this._auth}is_authenticated(){return!!localStorage.getItem(this.KEY)}is_recording(){return this.recording}set_school(d){this._selected_school=d,this.notifier.emit(!0)}selected_school(){return this._selected_school}schools(){var d=this;return l(function*(){if(void 0!==d._schools&&d._schools.length>0)return Promise.resolve(d._schools);if(d.loading_school)return yield d.sleep(100),d.schools();d.loading_school=!0,d.pre_loader.start();try{let I=yield d.api.recover("progresso/minhas-escolas").toPromise();return d._schools=I,d.loading_school=!1,d.pre_loader.end(),d._schools}catch{return d.pre_loader.end(),[]}})()}is_school(){var d=this;return l(function*(){return null==d._selected_school?Promise.reject("Escola indefinida"):Promise.resolve({secretaria:d._selected_school.type_id==p.EAcessos.SECRETARIA,coordenador:d._selected_school.type_id==p.EAcessos.COORDENADOR,escola:d._selected_school.type_id==p.EAcessos.ESCOLA})})()}sleep(d){return new Promise(I=>setTimeout(I,d))}set_status(d){this._status=d||this.NAO_ASSOCIADO}status(){return this._status}status_id(){return this._status_id}missing(){return this._missing}permissions(){var d=this;return l(function*(){return d._name?Promise.resolve(d._permissions):d.loading?(yield d.sleep(1e3),d.permissions()):d.name().then(I=>Promise.resolve(d._permissions))})()}associate_id(){var d=this;return l(function*(){return d._name?Promise.resolve(d._associate_id):d.loading?(yield d.sleep(1e3),d.associate_id()):d.name().then(I=>Promise.resolve(d._associate_id))})()}id(){var d=this;return l(function*(){return d._name?Promise.resolve(d._id):d.loading?(yield d.sleep(1e3),d.id()):d.name().then(I=>Promise.resolve(d._id))})()}type_id(){var d=this;return l(function*(){return d._name?Promise.resolve(d._type_id):d.loading?(yield d.sleep(1e3),d.type_id()):d.name().then(I=>Promise.resolve(d._type_id))})()}cpf(){var d=this;return l(function*(){return d._cpf?Promise.resolve(d._cpf):d.loading?(yield d.sleep(1e3),d.cpf()):d.name().then(I=>Promise.resolve(d._cpf))})()}email(){var d=this;return l(function*(){return d._email?Promise.resolve(d._email):d.loading?(yield d.sleep(1e3),d.email()):d.name().then(I=>Promise.resolve(d._email))})()}role(){var d=this;return l(function*(){return d._role_id?Promise.resolve(d._role_id):d.loading?(yield d.sleep(1e3),d.role()):d.name().then(I=>Promise.resolve(d._role_id),I=>Promise.reject(!1))})()}name(){var d=this;return l(function*(I=!1){return d._name&&0==I?Promise.resolve(d._name):d.loading&&!I?(yield d.sleep(1e3),d.name()):(d.pre_loader.start(),d.loading=!0,d.api.recover("user/me").toPromise().then(E=>{d._refresh&&d.refresh_token(),d._name=E.full_name,d._id=E.uuid,d.error.set_user(d._id),d._associate_id=E.associate_id,d._cpf=E.cpf,d.set_status(E.status),d._status_id=E.status_id;let C=new O.Permissions;C.setup(E.menu),d._permissions=C,d._missing=E.missing,d._email=E.email,d.next_payment=E.next_payment_year,d._type_id=E.type_id,d.loading=!1,d._role_id=E.role_id,d.pre_loader.end(),new o.Roles;let T=new s.AssociateTypes;return E.colaborador_tp&&d._type_id!=T.PROFESSOR&&d.error.warn("Voc\xea foi cadastrado no teste de progresso como colaborador, mas o seu cadastro n\xe3o \xe9 de Educador Associado, atualize o seu cadastro para ter acesso a elabora\xe7\xe3o das provas."),Promise.resolve(d._name)}).catch(E=>(console.error(E),d.loading=!1,d.pre_loader.end(),E.error?.code==f.HttpStatusCode.Unauthorized&&d.logout(),E.error.code==f.HttpStatusCode.ServiceUnavailable&&d.router.navigate(["/manutencao"]),Promise.reject(E))))}).apply(this,arguments)}refresh(){this._name=null,this.name()}login(d){this._auth.emit(d),this._refresh=!1}refresh_token(){if(!n.environment.production)return;this._refresh=!1;const d=JSON.parse(localStorage.getItem(this.KEY));this.api.login("refresh-token",{token:d.refresh}).subscribe(I=>{localStorage.setItem(this.KEY,JSON.stringify(I)),this.api.setAuth(I)})}logout(){let d=this.api.remove("login",{}).subscribe(()=>{this._name=null,this._id=null,this._cpf=null,this._email=null,this._auth.emit(!1),this.api.setAuth(null),localStorage.clear(),d.unsubscribe(),window.location.reload()},()=>{this._name=null,this._id=null,this._cpf=null,this._email=null,this._auth.emit(!1),this.api.setAuth(null),localStorage.clear(),d.unsubscribe(),window.location.reload()})}reset(){this._name=null,this._id=null,this._email=null,this._cpf=null}token(){let d=localStorage.getItem(this.KEY);return null==d?"":(d=JSON.parse(d),d.access_token)}static \u0275fac=function(I){return new(I||y)(i.\u0275\u0275inject(t.ApiService),i.\u0275\u0275inject(e.LoadingService),i.\u0275\u0275inject(u.CustomErrorHandler),i.\u0275\u0275inject(h.Router))};static \u0275prov=i.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})();c.AuthService=_}
1,30489(N,c,r){"use strict";var l=this&&this.__createBinding||(Object.create?function(e,u,h,_){void 0===_&&(_=h);var y=Object.getOwnPropertyDescriptor(u,h);(!y||("get"in y?!u.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return u[h]}}),Object.defineProperty(e,_,y)}:function(e,u,h,_){void 0===_&&(_=h),e[_]=u[h]}),A=this&&this.__setModuleDefault||(Object.create?function(e,u){Object.defineProperty(e,"default",{enumerable:!0,value:u})}:function(e,u){e.default=u}),g=this&&this.__importStar||function(){var e=function(u){return(e=Object.getOwnPropertyNames||function(h){var _=[];for(var y in h)Object.prototype.hasOwnProperty.call(h,y)&&(_[_.length]=y);return _})(u)};return function(u){if(u&&u.__esModule)return u;var h={};if(null!=u)for(var _=e(u),y=0;y<_.length;y++)"default"!==_[y]&&l(h,u,_[y]);return A(h,u),h}}();Object.defineProperty(c,"__esModule",{value:!0}),c.CustomErrorHandler=void 0;const v=r(49849),O=r(89377),m=r(59091),p=g(r(49849)),f=g(r(5779)),o=g(r(39078)),n=g(r(37554)),s=g(r(7901)),i=g(r(30065));c.CustomErrorHandler=(()=>{class e extends v.ErrorHandler{message;modal;api;route;platform;logged=[];user_id;constructor(h,_,y,b,d){super(),this.message=h,this.modal=_,this.api=y,this.route=b,this.platform=d}handle_front_validations(h){h.forEach(_=>
1{_.messages().forEach(y=>{this.message.add({severity:"error",summary:"Valida\xe7\xe3o falhou",detail:y,life:3e3})})})}handle_validations(h){h.validations&&h.validations.length>0&&h.validations.forEach(_=>{this.message.add({severity:"error",summary:"Valida\xe7\xe3o falhou",detail:_,life:3e3})})}handle_message(h){this.message.add({severity:"error",summary:"Erro "+h.code,detail:h.message,life:3e3})}open_modal(h){this.modal.open(O.AlertModalComponent).componentInstance.error(h.message)}warn(h){this.modal.open(O.AlertModalComponent).componentInstance.warning(h)}handleError(h){try{const _={message:h.message,originalStack:h.originalStack,cause:h.cause,name:h.name,stack:h.stack,zoneAwareStack:h.zoneAwareStack},y=this.route.snapshot._routerState.url+"-"+_.message;this.logged[y]||(this.logged[y]=!0,console.error(_.message),"HttpErrorResponse"!==_.name&&(0,m.lastValueFrom)(this.api.login("logs",{data:_,origin:this.route.snapshot._routerState.url,client:{device:window.navigator.userAgent,outer_width:window.outerWidth,outer_height:window.outerHeight,inner_width:window.innerWidth,inner_height:window.innerHeight,memory:window.navigator.deviceMemory,cpus:window.navigator.hardwareConcurrency,platforms:this.platform.platforms()},user:this.user_id}))),setTimeout(()=>{this.logged[y]=!1},5e3)}catch{}}set_user(h){this.user_id=h}static \u0275fac=function(_){return new(_||e)(p.\u0275\u0275inject(f.MessageService),p.\u0275\u0275inject(o.NgbModal),p.\u0275\u0275inject(n.ApiService),p.\u0275\u0275inject(s.ActivatedRoute),p.\u0275\u0275inject(i.Platform))};static \u0275prov=p.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})()},65335(N,c,r){"use strict";var l=r(29293).default,A=this&&this.__createBinding||(Object.create?function(s,i,t,e){void 0===e&&(e=t);var u=Object.getOwnPropertyDescriptor(i,t);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[t]}}),Object.defineProperty(s,e,u)}:function(s,i,t,e){void 0===e&&(e=t),s[e]=i[t]}),g=this&&this.__setModuleDefault||(Object.create?function(s,i){Object.defineProperty(s,"default",{enumerable:!0,value:i})}:function(s,i){s.default=i}),v=this&&this.__importStar||function(){var s=function(i){return(s=Object.getOwnPropertyNames||function(t){var e=[];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(e[e.length]=u);return e})(i)};return function(i){if(i&&i.__esModule)return i;var t={};if(null!=i)for(var e=s(i),u=0;u<e.length;u++)"default"!==e[u]&&A(t,i,e[u]);return g(t,i),t}}();Object.defineProperty(c,"__esModule",{value:!0}),c.EventsService=void 0;const O=r(75652),m=r(50965),p=v(r(49849)),f=v(r(37554)),o=v(r(70226));let n=(()=>{class s{api;loading;slug;_id;_name;_info;_logo;_status;_appraiser;_open_submission;_open_final_submission;_resume_limit;_languages;permissions;_dates;_sub_dates;_sub_types;sleep_time=1e3;site_iframe_params;menus;event_loading;constructor(t,e){this.api=t,this.loading=e,this._id=null,this._info=null,this.event_loading=!1}sleep(t){return new Promise(e=>setTimeout(e,t))}resume_limit(){return this._resume_limit}languages(){return JSON.parse(JSON.stringify(this._languages))}id(t){var e=this;return l(function*(){return t==e.slug&&null!=e._id?Promise.resolve(e._id):e.event_loading?(yield e.sleep(e.sleep_time),e.id(t)):e.info(t).then(()=>e._id)})()}status(t){var e=this;return l(function*(){return t==e.slug&&null!=e._status?Promise.resolve(e._status):e.event_loading?(yield e.sleep(e.sleep_time),e.status(t)):e.info(t).then(()=>e._status)})()}name(t){var e=this;return l(function*(){return t==e.slug&&null!=e._name?Promise.resolve(e._name):e.event_loading?(yield e.sleep(e.sleep_time),e.name(t)):e.info(t).then(()=>e._name)})()}appraiser(t){var e=this;return l(function*(u,h=!1){if(!h){if(u==e.slug&&null!=e._appraiser)return Promise.resolve(e._appraiser);if(e.event_loading)return yield e.sleep(e.sleep_time),e.appraiser(u)}return e.info(u,h).then(()=>e._appraiser)}).apply(this,arguments)}logo(t){var e=this;return l(function*(){return t==e.slug&&null!=e._logo?Promise.resolve(e._logo):e.event_loading?(yield e.sleep(e.sleep_time),e.logo(t)):e.info(t).then(()=>e._logo)})()}sub_types(t){var e=this;return l(function*(){return t==e.slug&&e._sub_types?Promise.resolve(e._sub_types):e.event_loading?(yield e.sleep(e.sleep_time),e.sub_types(t)):e.info(t).then(()=>e._sub_types)})()}dates(t){var e=this;return l(function*(){return t==e.slug&&null!=e._dates?Promise.resolve(e._dates):e.event_loading?(yield e.sleep(e.sleep_time),e.dates(t)):e.info(t).then(()=>e._dates)})()}sub_dates(t){var e=this;return l(function*(){return t==e.slug&&null!=e._sub_dates?Promise.resolve(e._sub_dates):e.event_loading?(yield e.sleep(e.sleep_time),e.sub_dates(t)):e.info(t).then(()=>e._sub_dates)})()}set_open(){let t=this._info.open_submission.split("-"),e=this._info.close_submission.split("-"),u=this._info.open_final_submission.split("-"),h=this._info.close_final_submission.split("-");this._open_submission=this.is_open(t,e),this._open_final_submission=this.is_open(u,h)}is_open(t,e){let u=new Date,h=new Date,_=new Date;return u.setHours(0,0,0,0),h.setHours(0,0,0,0),_.setHours(0,0,0,0),h.setDate(parseInt(t[2])),h.setMonth(parseInt(t[1])-1),h.setFullYear(parseInt(t[0])
1),_.setDate(parseInt(e[2])),_.setMonth(parseInt(e[1])-1),_.setFullYear(parseInt(e[0])),h.getTime()<=u.getTime()&&_.getTime()>=u.getTime()}open_submision(t){var e=this;return l(function*(){return t==e.slug&&null!=e._info?(e.set_open(),Promise.resolve(e._open_submission)):e.event_loading?(yield e.sleep(e.sleep_time),e.open_submision(t)):e.info(t).then(()=>(e.set_open(),e._open_submission))})()}open_final_submision(t){var e=this;return l(function*(){return t==e.slug&&null!=e._info?(e.set_open(),Promise.resolve(e._open_final_submission)):e.event_loading?(yield e.sleep(e.sleep_time),e.open_final_submision(t)):e.info(t).then(()=>(e.set_open(),e._open_final_submission))})()}info(t){var e=this;return l(function*(u,h=!1){return h&&(e._info=null),u==e.slug&&e._info?Promise.resolve(e._info):e.event_loading?(yield e.sleep(e.sleep_time),e.info(u)):(e.loading.start(),e.event_loading=!0,e.api.recover("event/:slug/info",{slug:u}).toPromise().then(_=>{e._id=_.id,e.slug=u,e._info=_,e._name=_.name,e._logo=_.image,e._status=_.status,e._appraiser=_.appraiser,e.permissions=_.permissions,e._dates={start:_.start_date,end:_.end_date},e._sub_dates=_.sub_dates,e._sub_types=_.sub_types;let y=new m.Formatter;return e._resume_limit=y.date(_.close_submission),e._languages=_.languages,e.site_iframe_params=_.site_iframe_params,e.menus=_.menus,e.loading.end(),e.event_loading=!1,e._info},_=>(e.slug=null,e._id=null,e._dates=null,e._sub_dates=null,e.loading.end(),e.event_loading=!1,e._info)))}).apply(this,arguments)}can_join(t){let e=new O.UserEventStatus;return e.PAGAMENTO_CANCELADO==t||t==e.REENVIO||null==t||null==t}static \u0275fac=function(e){return new(e||s)(p.\u0275\u0275inject(f.ApiService),p.\u0275\u0275inject(o.LoadingService))};static \u0275prov=p.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();c.EventsService=n},50965(N,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Formatter=void 0,c.Formatter=class r{money(A){if(0==A)return"Gratuito";if(null==A)return"R$ 0,00";let g=Math.floor(A/100).toFixed(0),v=Math.floor(A%100).toFixed(0);return g=g.replace(/\d(?=(?:\d{3})+$)/g,"$&."),v<10&&(v="0"+v),"R$ "+g+","+v}date(A,g=!1){if(!A)return"";let v;return g&&(A=A.split(":")[0].substring(0,10)),v=A.split("-"),v[2]+"/"+v[1]+"/"+v[0]}date_model(A){if(!A)return"";let g=A.split("-");return parseInt(g[1],10)<10&&(g[1]="0"+parseInt(g[1],10)),parseInt(g[0],10)<10&&(g[0]="0"+parseInt(g[0],10)),g[2]+"-"+g[1]+"-"+g[0]}time(A){let g=A.split(":");return g[0]+":"+g[1]}document(A,g){return A?A.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/g,"$1.$2.$3-$4"):g?g.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/g,"$1.$2.$3/$4-$5"):""}explode(A,g){return A.split(g)[0]}}},70226(N,c,r){"use strict";var l=this&&this.__createBinding||(Object.create?function(p,f,o,n){void 0===n&&(n=o);var s=Object.getOwnPropertyDescriptor(f,o);
1(!s||("get"in s?!f.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return f[o]}}),Object.defineProperty(p,n,s)}:function(p,f,o,n){void 0===n&&(n=o),p[n]=f[o]}),A=this&&this.__setModuleDefault||(Object.create?function(p,f){Object.defineProperty(p,"default",{enumerable:!0,value:f})}:function(p,f){p.default=f}),g=this&&this.__importStar||function(){var p=function(f){return(p=Object.getOwnPropertyNames||function(o){var n=[];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[n.length]=s);return n})(f)};return function(f){if(f&&f.__esModule)return f;var o={};if(null!=f)for(var n=p(f),s=0;s<n.length;s++)"default"!==n[s]&&l(o,f,n[s]);return A(o,f),o}}();Object.defineProperty(c,"__esModule",{value:!0}),c.LoadingService=void 0;const v=r(49849),O=g(r(49849));c.LoadingService=(()=>{class p{loading;_count;constructor(){this._count=0,this.loading=new v.EventEmitter}start(o=1){this._count+=o,this.loading.emit(this._count)}end(){this._count--,this.loading.emit(this._count)}is_loading(){return this._count>0}static \u0275fac=function(n){return new(n||p)};static \u0275prov=O.\u0275\u0275defineInjectable({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},71029(N,c,r){"use strict";var l=r(29293).default,A=this&&this.__createBinding||(Object.create?function(p,f,o,n){void 0===n&&(n=o);var s=Object.getOwnPropertyDescriptor(f,o);
1(!s||("get"in s?!f.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return f[o]}}),Object.defineProperty(p,n,s)}:function(p,f,o,n){void 0===n&&(n=o),p[n]=f[o]}),g=this&&this.__setModuleDefault||(Object.create?function(p,f){Object.defineProperty(p,"default",{enumerable:!0,value:f})}:function(p,f){p.default=f}),v=this&&this.__importStar||function(){var p=function(f){return(p=Object.getOwnPropertyNames||function(o){var n=[];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[n.length]=s);return n})(f)};return function(f){if(f&&f.__esModule)return f;var o={};if(null!=f)for(var n=p(f),s=0;s<n.length;s++)"default"!==n[s]&&A(o,f,n[s]);return g(o,f),o}}();Object.defineProperty(c,"__esModule",{value:!0}),c.ProvaMessageService=void 0;const O=v(r(49849));c.ProvaMessageService=(()=>{class p{alert;constructor(){}show_confirm(o,n,s,i,t){var e=this;return l(function*(){let u=yield e.alert.create({cssClass:"large-alert",header:t,message:o,buttons:[{text:s,handler:n},{text:i}]});return u.present(),Promise.resolve(u)})()}show_error(o){var n=this;return l(function*(){let s=yield n.alert.create({header:"Erro",message:o});return s.present(),Promise.resolve(s)})()}show_warning(o){var n=this;return l(function*(){let s=yield n.alert.create({cssClass:"large-alert",header:"Aviso!",message:o});return s.present(),Promise.resolve(s)})()}static \u0275fac=function(n){return new(n||p)};static \u0275prov=O.\u0275\u0275defineInjectable({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},32994(N,c,r){"use strict";var l=r(29293).default,A=this&&this.__createBinding||(Object.create?function(i,t,e,u){void 0===u&&(u=e);var h=Object.getOwnPropertyDescriptor(t,e);(!h||("get"in h?!t.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(i,u,h)}:function(i,t,e,u){void 0===u&&(u=e),i[u]=t[e]}),g=this&&this.__setModuleDefault||(Object.create?function(i,t){Object.defineProperty(i,"default",{enumerable:!0,value:t})}:function(i,t){i.default=t}),v=this&&this.__importStar||function(){var i=function(t){return(i=Object.getOwnPropertyNames||function(e){var u=[];for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&(u[u.length]=h);return u})(t)};return function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var u=i(t),h=0;h<u.length;h++)"default"!==u[h]&&A(e,t,u[h]);return g(e,t),e}}();Object.defineProperty(c,"__esModule",{value:!0}),c.Questoes=c.ProgressoService=void 0;const O=r(55624),m=r(14765),p=r(64159),f=v(r(49849)),o=v(r(37554));c.ProgressoService=(()=>{class i{api;_prova;_matriz;APROVADO=2;REPROVADO=3;APROVADO_EDICAO=4;constructor(e){this.api=e,this._prova=new O.Prova}matrizes(e){var u=this;return l(function*(){let h=yield u.api.recover("progresso/matriz/:id",{id:e}).toPromise();u._matriz=h;for(let _ of u._matriz.areas)for(let y of _.metadata)for(let b of y.options)if(b.maximum){y.used=!0;break}return Promise.resolve(u._matriz)})()}areas(){return[new m.ModelItem(0,"SELECIONE:"),new m.ModelItem(1,"CI\xcaNCIAS B\xc1SICAS"),new m.ModelItem(2,"CL\xcdNICA M\xc9DICA"),new m.ModelItem(3,"PEDIATRIA"),new m.ModelItem(4,"CIRURGIA"),new m.ModelItem(5,"GINECO - OBS"),new m.ModelItem(6,"SA\xdaDE COLETIVA"),new m.ModelItem(7,"MFC")]}convert_api(e){var u=this;return l(function*(){let h=[];return yield e.forEach(_=>{let y=new s;if(_.matriz){let d={id:0,metadata:[],title:""};for(let E of u._matriz.areas)if(E.id==_.area){d=E;break}y.metadata=[];let I=JSON.parse(_.matriz);I.sort((E,C)=>E.metadata_id-C.metadata_id),y.matriz=I;for(let E of y.matriz){let C;for(let R of y.metadata)if(R.id===E.metadata_id){C=R;break}if(C)C.options.push(u.option_title(E,d));else for(let R of d.metadata)if(R.id===E.metadata_id&&R.used){y.metadata.push({id:E.metadata_id,title:u.metadata_title(E,d),options:[u.option_title(E,d)]});break}}for(let E of y.metadata)E.options=E.options.join(" - ")}y.id_area=_.area,y.area=_.area,y.bibliografia=_.bibliografia,y.gabarito=_.gabarito,y.enunciado=_.questao,y.exibir=!1,y.id=_.id,y.indice=_.indice,y.instituicao=_.instituicao,y.total=_.total,y.usuario=_.usuario,y.status=_.status,y.comentario=_.comentario,y.user_id=_.user_id,y.selected=_.selected,y.id_sequencial=_.codigo+" - "+_.id_sequencial;let b=JSON.parse(_.alternativas);for(let d=0,I=!1;d<b.length&&!I;d++)b[d].id==_.correta&&(y.correta=b[d],b.splice(d,1),I=!0);y.incorretas=b,h.push(y)}),Promise.resolve(h)})()}option_title(e,u){for(let h of u.metadata)if(h.id==e.metadata_id)for(let _ of h.options)if(_.id==e.metadata_option_id)return _.title;return"N\xe3o encontrado"}metadata_title(e,u){for(let h of u.metadata)if(h.id==e.metadata_id)return h.title;return"N\xe3o encontrado"}prova(e){var u=this;return l(function*(){if(u._prova?.id==e)return Promise.resolve(u._prova);try{let h=yield u.api.recover("progresso/prova/:id",{id:e}).toPromise();return u._prova.setup(h),Promise.resolve(u._prova)}catch(h){return Promise.reject(h)}})()}gabarito(e,u,h){var _=this;return l(function*(){const y={escola:e,prova:u,semestre:h},b=yield _.api.recover("progresso/escola/respostas/:escola/:prova/:semestre",
1y).toPromise();b.forEach(P=>{null===P.escola&&(P.escola="0"),P.escola=parseFloat(P.escola).toFixed(2),P.consorcio=parseFloat(P.consorcio).toFixed(2),P.nacional=parseFloat(P.nacional).toFixed(2)});let d=[],I=_.areas();d.push(I[0]);let E=!0,C=!0,R=new Set;for(let P of b)R.add(P.area),P.alternativas=JSON.parse(P.alternativas),"string"==typeof P.analise&&(P.analise=JSON.parse(P.analise)),E=E&&null!=P.analise,P.analise&&(_.rank(P.analise,P.correta),_.charts_analise(P.analise)),"string"==typeof P.analise_concluintes&&(P.analise_concluintes=JSON.parse(P.analise_concluintes)),P.analise_concluintes&&(_.rank(P.analise_concluintes,P.correta),_.charts_analise(P.analise_concluintes)),C=C&&null!=P.analise_concluintes;for(let P of R)d.push(I[P]);return Promise.resolve({gabarito:b,enable_analise:E,enable_analise_concluintes:C,areas:d})})()}resultados(e,u,h,_){var y=this;return l(function*(){let b={semestre:e,ano:u,escola:h,prova:_},d={self_results:new p.BoxPlot(7),medias:new p.BoxPlot(3),history_self_results:new p.Bi(3),history_school_results:new p.Bi(3)};try{const I=yield y.gabarito(b.escola,b.prova,b.semestre);d.gabarito=I.gabarito,d.enable_analise=I.enable_analise,d.enable_analise_concluintes=I.enable_analise_concluintes,d.areas=I.areas}catch(I){console.log(I)}try{const I=yield y.api.recover("progresso/escola/resultados/:escola/:prova/:semestre",b).toPromise();let E=["\xc1rea B\xe1sica","Cl\xednica M\xe9dica","Pediatria","Cirurgia","Ginecologia e Obstetr\xedcia","Sa\xfade Coletiva","MFC"];d.self_results.setup(I.areas_ano),d.self_results.as_percent(),d.self_results.tooltips({whiskerMax:{order:0,text:"Maior M\xe9dia Nacional"},whiskerMin:{order:1,text:"Menor M\xe9dia Nacional"},q1:{order:3,text:"Menor M\xe9dia do N\xfacleo"},q3:{order:2,text:"Maior M\xe9dia do N\xfacleo"},mean:{order:4,text:"M\xe9dia da Escola"}},["Menor nota da escola","M\xe9dia da escola","Maior nota da escola"]),d.medias.setup(I.medias),d.medias.as_percent(),d.medias.tooltips({whiskerMax:{order:0,text:"Maior m\xe9dia"},whiskerMin:{order:1,text:"Menor m\xe9dia"},mean:{order:2,text:"M\xe9dia geral"},median:{order:3,text:"M\xe9dia da escola"}},["M\xe9dial geral","M\xe9dia da escola"]),d.history_self_results.normalize_dataset(I.areas),d.history_self_results.setup(I.areas),d.history_self_results.disable_fill(),d.history_school_results.normalize_dataset(I.compare),d.history_school_results.setup(I.compare),d.history_school_results.disable_fill(),d.history_self_results.as_percent(),d.history_school_results.as_percent(),d.history_school_results.type=1==I.compare.labels.length?"bar":"line",I.evolucao&&(d.evolucao=new p.Bi,d.evolucao.normalize_dataset(I.evolucao),d.evolucao.setup(I.evolucao,E),d.evolucao.disable_fill(),d.evolucao.as_percent())}catch(I){console.error(I)}return Promise.resolve(d)})()}charts_analise(e){e.real_chart=new p.Bi(5,"Escore","Propor\xe7\xe3o de acertos (%)"),e.real_chart.setup(e.chart),e.real_chart.as_percent(),e.real_chart.disable_fill(),e.real_chart.options.elements={line:{cubicInterpolationMode:"monotone"}}}rank_number_to_string(e,u){for(let h of u)if(e<h.range)return h.description}rank(e,u){switch(e.dificuldade_desc=this.rank_number_to_string(e.dificuldade,[{range:.15,description:"Muito Dif\xedcil"},{range:.35,description:"Dif\xedcil"},{range:.65,description:"M\xe9dio"},{range:.85,description:"F\xe1cil"},{range:1,description:"Muito F\xe1cil"}]),e.discriminacao_desc=this.rank_number_to_string(e.discriminacao,[{range:0,description:"N\xe3o discrimina"},{range:.1,description:"Baixa"},{range:.2,description:"Moderada"},{range:.3,description:"Adequada"},{range:1,description:"Excelente"}]),e.biserial_correta=0,u){case"A":e.biserial_correta=e.biserial_a;break;case"B":e.biserial_correta=e.biserial_b;break;case"C":e.biserial_correta=e.biserial_c;break;case"D":e.biserial_correta=e.biserial_d}e.biserial_correta_desc=this.rank_number_to_string(e.biserial_correta,[{range:0,description:"Inapropriado"},{range:.1,description:"Inadequado"},{range:.2,description:"Moderado"},{range:.3,description:"Adequado"},{range:1,description:"Excelente"}])}static \u0275fac=function(u){return new(u||i)(f.\u0275\u0275inject(o.ApiService))};static \u0275prov=f.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();class s{area;usuario;user_id;instituicao;exibir;enunciado;correta;incorreta1;incorreta2;incorreta3;incorretas;gabarito;bibliografia;total;indice;id;status;comentario;matriz;metadata;selected;id_area;id_sequencial;codigo;constructor(){this.matriz=[]}}c.Questoes=s},82797(N,c,r){"use strict";var l=r(29293).default,A=this&&this.__createBinding||(Object.create?function(o,n,s,i){void 0===i&&(i=s);var t=Object.getOwnPropertyDescriptor(n,s);(!t||("get"in t?!n.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return n[s]}}),Object.defineProperty(o,i,t)}:function(o,n,s,i){void 0===i&&(i=s),o[i]=n[s]}),g=this&&this.__setModuleDefault||(Object.create?function(o,n){Object.defineProperty(o,"default",{enumerable:!0,value:n})}:function(o,n){o.default=n}),v=this&&this.__importStar||function(){var o=function(n){return(o=Object.getOwnPropertyNames||function(s){var i=[];for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&(i[i.length]=t);return i})(n)};return function(n){if(n&&n.__esModule)return n;var s={};if(null!=n)for(var i=o(n),t=0;t<i.length;t++)"default"!==i[t]&&A(s,n,i[t]);return g(s,n),s}}();Object.defineProperty(c,"__esModule",{value:!0}),c.ProposalsService=void 0;const O=r(49849),m=v(r(49849)),p=v(r(37554));c.ProposalsService=(()=>{class o{api;active;VOTES="votes";NEW="new";emitter;bc;constructor(s){this.api=s,this.emitter=new O.EventEmitter,this.bc=new BroadcastChannel("proposals_channel")}close(s){s.is_open=!1,this.api.update("proposals/:event_id/:sub_event_id/:id",s).subscribe(i=>{this.active.id==s.id&&this.update_votes(s)})}update_votes(s){var i=this;return l(function*(){try{return yield i.api.recover("proposals/:event_id/:sub_event_id/:id/votes",{event_id:s.event_id,sub_event_id:s.sub_event_id,id:s.id}).toPromise()}catch(t){console.error(t.error)}})()}open(s){return s.is_open=!0,this.api.update("proposals/:event_id/:sub_event_id/:id",s).toPromise().then(i=>(this.set_active(s),Promise.resolve(i)))}set_active(s){this.active=s,this.emitter.emit(this.NEW),this.bc.postMessage({name:this.NEW,data:null})}static \u0275fac=function(i){return new(i||o)(m.\u0275\u0275inject(p.ApiService))};static \u0275prov=m.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac,providedIn:"root"})}return o}
1)()},51285(N,c,r){"use strict";var l=this&&this.__createBinding||(Object.create?function(m,p,f,o){void 0===o&&(o=f);var n=Object.getOwnPropertyDescriptor(p,f);(!n||("get"in n?!p.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return p[f]}}),Object.defineProperty(m,o,n)}:function(m,p,f,o){void 0===o&&(o=f),m[o]=p[f]}),A=this&&this.__setModuleDefault||(Object.create?function(m,p){Object.defineProperty(m,"default",{enumerable:!0,value:p})}:function(m,p){m.default=p}),g=this&&this.__importStar||function(){var m=function(p){return(m=Object.getOwnPropertyNames||function(f){var o=[];for(var n in f)Object.prototype.hasOwnProperty.call(f,n)&&(o[o.length]=n);return o})(p)};return function(p){if(p&&p.__esModule)return p;var f={};if(null!=p)for(var o=m(p),n=0;n<o.length;n++)"default"!==o[n]&&l(f,p,o[n]);return A(f,p),f}}();Object.defineProperty(c,"__esModule",{value:!0}),c.ProvaDemonstracaoService=void 0;const v=g(r(49849));c.ProvaDemonstracaoService=(()=>{class m{_questoes;_instrucoes;TOTAL_QUESTOES=120;started;starts_in;ends_in;error_count=0;finished_hash;constructor(){this._questoes=[],this.started=!1,this.starts_in=25,this.ends_in=900}start(){this.started=!0}list(){return this._questoes}load(){const f=[{area:"Demonstra\xe7\xe3o",numero:1,questao:"<p>Quem \xe9 considerado o gladiador mais famoso da \xe9poca do imp\xe9rio romano?</p>",alternativas:[{resposta:"<p>Spartacus</p>",alternativa:"A"},{resposta:"<p>Crixus</p>",alternativa:"B"},{resposta:"<p>Hermes</p>",alternativa:"C"},{resposta:"<p>Commodus</p>",alternativa:"D"}]},{area:"Demonstra\xe7\xe3o",numero:2,questao:"<p>Qual foi a primeira guerra televisionada da hist\xf3ria?</p>",alternativas:[{resposta:"<p>Guerra do Iraque</p>",alternativa:"A"},{resposta:"<p>Guerra Fria</p>",alternativa:"B"},{resposta:"<p>Guerra Santa</p>",alternativa:"C"},{resposta:"<p>Guerra do Golfo </p>",alternativa:"D"}]},{area:"Demonstra\xe7\xe3o",numero:3,questao:"<p>Quem liderou os sertanejos na guerra de canudos, ocorrida no interior da Bahia, no final do s\xe9culo XIX?</p>",alternativas:[{resposta:"<p>Zumbi dos Palmares</p>",alternativa:"A"},{resposta:"<p>Ant\xf4nio Conselheiro</p>",alternativa:"B"},{resposta:"<p>Frei Caneca</p>",alternativa:"C"},{resposta:"<p>Regente Feij\xf3 </p>",alternativa:"D"}]},{area:"Demonstra\xe7\xe3o",numero:4,questao:'<p>Qual astronauta, o primeiro a viajar pelo espa\xe7o, disse a frase: "A terra \xe9 Azul"?</p>',alternativas:[{resposta:"<p>Buzz Aldrin</p>",alternativa:"A"},{resposta:"<p>Michael Collins</p>",alternativa:"B"},{resposta:"<p>Yuri Gagarin</p>",alternativa:"C"},{resposta:"<p>Neil Armstrong </p>",alternativa:"D"}]},{area:"Demonstra\xe7\xe3o",numero:5,questao:"<p>Qual foi o primeiro produto agr\xedcola a ser cultivado em larga escala no brasil?</p>",alternativas:[{resposta:"<p>Pau-brasil</p>",alternativa:"A"},{resposta:"<p>Cana-de-a\xe7\xfacar</p>",alternativa:"B"},{resposta:"<p>Caf\xe9</p>",alternativa:"C"},{resposta:"<p>Milho </p>",alternativa:"D"}]},{area:"Demonstra\xe7\xe3o",numero:6,questao:"<p>O Banco do Brasil foi criado em 1808 por quem?</p>",alternativas:[{resposta:"<p>Dom Jo\xe3o VI </p>",alternativa:"A"},{resposta:"<p>Carlota Joaquina</p>",alternativa:"B"},{resposta:"<p>Jos\xe9 Bonif\xe1cio</p>",alternativa:"C"},{resposta:"<p>Dom Pedro I </p>",alternativa:"D"}]}];for(;this._questoes.length<this.TOTAL_QUESTOES+1;)for(let o of f)this._questoes.push(JSON.parse(JSON.stringify(o)))}horario_inicio(){return this.starts_in}horario_encerramento(){return this.ends_in}instrucoes(){return this._instrucoes=[{text:"Utilize, preferencialmente, os navegadores <b>Mozilla Firefox</b> ou <b>Google Chrome</b>."},{text:"Clique no bot\xe3o \u201c <b>Iniciar Prova On-line </b>\u201d para acessar o ambiente de prova."},{text:"As quest\xf5es apresentadas s\xe3o apenas exemplos e <b>n\xe3o correspondem ao conte\xfado da avalia\xe7\xe3o oficial</b>."},{text:"Para navegar entre as quest\xf5es, clique em \u201c <b>Caderno de Prova</b> \u201d e selecione o n\xfamero da quest\xe3o desejada."},{text:"O ambiente simula as <b>120 quest\xf5es da prova oficial</b> , utilizando a repeti\xe7\xe3o de <b>6 quest\xf5es de conhecimentos gerais</b>."},{text:"<b>N\xe3o \xe9 necess\xe1rio responder \xe0s 120 quest\xf5es</b>."},{text:"Ao chegar \xe0 quest\xe3o 120, clique em \u201c <b>Finalizar Prova</b> \u201d para simular corretamente o procedimento de encerramento da avalia\xe7\xe3o."}],this._instrucoes}static \u0275fac=function(o){return new(o||m)};static \u0275prov=v.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})()},82060(N,c,r){"use strict";var l=r(29293).default,A=this&&this.__createBinding||(Object.create?function(y,b,d,I){void 0===I&&(I=d);var E=Object.getOwnPropertyDescriptor(b,d);
1(!E||("get"in E?!b.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return b[d]}}),Object.defineProperty(y,I,E)}:function(y,b,d,I){void 0===I&&(I=d),y[I]=b[d]}),g=this&&this.__setModuleDefault||(Object.create?function(y,b){Object.defineProperty(y,"default",{enumerable:!0,value:b})}:function(y,b){y.default=b}),v=this&&this.__importStar||function(){var y=function(b){return(y=Object.getOwnPropertyNames||function(d){var I=[];for(var E in d)Object.prototype.hasOwnProperty.call(d,E)&&(I[I.length]=E);return I})(b)};return function(b){if(b&&b.__esModule)return b;var d={};if(null!=b)for(var I=y(b),E=0;E<I.length;E++)"default"!==I[E]&&A(d,b,I[E]);return g(d,b),d}}();Object.defineProperty(c,"__esModule",{value:!0}),c.ProvaService=void 0;const O=r(49849),m=r(59091),p=r(89210),f=r(6127),o=r(39474),n=v(r(49849)),s=v(r(79185)),i=v(r(91571)),t=v(r(89656)),e=v(r(70226)),u=v(r(7901)),h=v(r(30065));let _=(()=>{class y{api;auth;alert;loader;router;platform;_encrypted;_questoes;_encerrado;_respostas;_instrucoes;loading;loading_time;PROVA="prova";ERROR="error";RESPOSTAS="respostas";_emitter;_is_ready;TOTAL_QUESTOES=120;saved;saved_hash;DEFAULT="x";timer;started;starts_in;ends_in;error_count=0;finished_hash;constructor(d,I,E,C,R,P){this.api=d,this.auth=I,this.alert=E,this.loader=C,this.router=R,this.platform=P,this._questoes=[],this.loading=!1;let T="";for(let w=1;w<=this.TOTAL_QUESTOES;w++)T+=this.DEFAULT;this._is_ready=!1,this._emitter=new O.EventEmitter,this.saved=!0,this._encerrado=!1,this.saved_hash=T,this.timer=null,this.started=!1,this.loading_time=!1}create_alert(){var d=this;return l(function*(){d.alert.custom({show:!0,text:"<p>Verifique a sua conex\xe3o com a internet, as respostas n\xe3o est\xe3o sendo enviadas corretamente.</p>",title:"Aviso"})})()}start(){var d=this;if(!this.timer){let I=60,E=1e3;this.timer=(0,m.timer)(.5*I*E,I*E).subscribe(function(){var P=l(function*(T){try{yield d.save(),d.error_count=0}catch(w){if(w==p.ErrorCodes.FORBIDDEN)return d.timer?.unsubscribe(),d.timer=null,d.router.navigate(["/teste-de-progresso/prova/encerrar"]);d.error_count++,d.error_count>1&&d.create_alert()}});return function(T){return P.apply(this,arguments)}}())}this.started=!0}is_ready(){return this._is_ready}save(){var d=this;return l(function*(){if(0==d.started)return Promise.resolve(!0);let I=yield d.hash_respostas();if(I.hash==d.saved_hash&&d.saved||d._encerrado)return Promise.resolve(!0);try{let E=yield(0,m.lastValueFrom)(d.api.update("respostas",I.respostas));return d._respostas=E,d.saved_hash=I.hash,d.saved=!0,localStorage.removeItem(d.ERROR),localStorage.removeItem(d.RESPOSTAS),Promise.resolve(!0)}catch(E){return d.saved=!1,E.status==p.ErrorCodes.FORBIDDEN?(d._encerrado=!0,Promise.reject(p.ErrorCodes.FORBIDDEN)):(localStorage.setItem(d.ERROR,"1"),localStorage.setItem(d.RESPOSTAS,JSON.stringify(I.respostas)),Promise.reject(E))}})()}hash_respostas(){var d=this;return l(function*(){let I={atual:0,respostas:[]},E="";return yield d._questoes.forEach(C=>{E+=C.resposta,C.resposta!=d.DEFAULT&&(I.respostas.push({questao:C.numero,alternativa:C.resposta}),I.atual=C.numero)}),Promise.resolve({hash:E,respostas:I})})()}ready(){return this._emitter}load(){var d=this;return l(function*(){if(d.loading)return Promise.resolve(!0);d.saved_hash="",d.loading=!0;let E,I=d.auth.get_user();for(;void 0===E;)try{let C="teste-de-progresso/provas/"+I.prova+"/"+I.versao+"/prova.json";E={download:yield d.api.download_prova(C),prova:I.prova},d._instrucoes=E.download.instrucoes,d._encrypted=E.download.prova}catch(C){if(C.status==p.ErrorCodes.FORBIDDEN)return d._encerrado=!0,Promise.reject(p.ErrorCodes.FORBIDDEN);yield(0,o.sleep)(3)}return d._is_ready=!0,d._emitter.emit(d._is_ready),Promise.resolve(!0)})()}decrypt(d,I){return l(function*(){try{const E=d.slice(0,32),C=d.slice(32),R=new Uint8Array(E.match(/.{1,2}/g).map(a=>parseInt(a,16))),P=atob(C),T=new Uint8Array(P.split("").map(a=>a.charCodeAt(0))),w=(new TextEncoder).encode(I),j=yield window.crypto.subtle.digest("SHA-256",w),B={name:"AES-CBC",iv:R},V=yield window.crypto.subtle.importKey("raw",j,B,!1,["decrypt"]),J=yield window.crypto.subtle.decrypt(B,V,T),U=(new TextDecoder).decode(J);return Promise.resolve(JSON.parse(U))}catch(E){console.error(E)}})()}list(){var d=this;return l(function*(){if(d._questoes.length>0)return Promise.resolve(d._questoes);d.loader.is_loading()||d.loader.start();try{const I=yield(0,m.lastValueFrom)(d.api.recover("password"));
1return yield(yield d.decrypt(d._encrypted,I.message)).forEach(C=>{d._questoes.push(C)}),d.loader.end(),Promise.resolve(d._questoes)}catch{return d.list()}})()}respostas(){var d=this;return l(function*(){if(localStorage.getItem(d.ERROR))return d._respostas=JSON.parse(localStorage.getItem(d.RESPOSTAS)),Promise.resolve(d._respostas);try{let E=yield d.api.recover("respostas").toPromise();d._respostas=E}catch{d._respostas={atual:0,respostas:[]}}return Promise.resolve(d._respostas)})()}encerrar(){var d=this;return l(function*(){try{let I=yield d.hash_respostas(),E=yield(0,m.lastValueFrom)(d.api.update("encerrar-prova",I.respostas));return d._encerrado=!0,d.timer?.unsubscribe(),d.timer=null,d.started=!1,d.finished_hash=E,Promise.resolve(E)}catch(I){return I instanceof f.HttpErrorResponse&&I.error.code==p.ErrorCodes.FORBIDDEN?(d.timer?.unsubscribe(),d._encerrado=!0,Promise.resolve(!1)):Promise.reject(I)}})()}clear(){localStorage.removeItem(this.PROVA),localStorage.removeItem(this.ERROR),localStorage.removeItem(this.RESPOSTAS)}tab_control(d,I){var E=this;return l(function*(){try{yield E.api.insert("log",{event:"tab-control",data:{start:d.toISOString(),end:I.toISOString()}})}catch{}})()}iniciar(){this._encerrado=!1;try{let I={timestamp:(new Date).toISOString(),device:window.navigator.userAgent,outer_width:window.outerWidth,outer_height:window.outerHeight,inner_width:window.innerWidth,inner_height:window.innerHeight,memory:window.navigator.deviceMemory,cpus:window.navigator.hardwareConcurrency,platforms:this.platform.platforms()};this.api.insert("log",{event:"start",data:I}).subscribe({next:E=>{console.log(I)},error:()=>{}})}catch(d){console.log(d)}}encerrada(){return this._encerrado}horario_inicio(){var d=this;return l(function*(){return yield d.horario(),d.starts_in})()}horario_encerramento(){var d=this;return l(function*(){return yield d.horario(),d.ends_in})()}horario(){var d=this;return l(function*(){try{d.loading_time=!0;let I=yield(0,m.lastValueFrom)(d.api.recover("horario"));d.starts_in=I.starts_in,d.ends_in=I.ends_in,d._encerrado=I.finished}catch{d.starts_in=1,d.ends_in=1}d.loading_time=!1})()}instrucoes(){var d=this;return l(function*(){return d._instrucoes?Promise.resolve(d._instrucoes):(yield(0,o.sleep)(1),d.instrucoes())})()}set_instrucoes(d){this._instrucoes=d}static \u0275fac=function(I){return new(I||y)(n.\u0275\u0275inject(s.ApiProvaService),n.\u0275\u0275inject(i.AuthProvaService),n.\u0275\u0275inject(t.AlertService),n.\u0275\u0275inject(e.LoadingService),n.\u0275\u0275inject(u.Router),n.\u0275\u0275inject(h.Platform))};static \u0275prov=n.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})();c.ProvaService=_},43707(N,c,r){"use strict";var l=this&&this.__createBinding||(Object.create?function(o,n,s,i){void 0===i&&(i=s);var t=Object.getOwnPropertyDescriptor(n,s);(!t||("get"in t?!n.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return n[s]}}),Object.defineProperty(o,i,t)}:function(o,n,s,i){void 0===i&&(i=s),o[i]=n[s]}),A=this&&this.__setModuleDefault||(Object.create?function(o,n){Object.defineProperty(o,"default",{enumerable:!0,value:n})}:function(o,n){o.default=n}),g=this&&this.__importStar||function(){var o=function(n){return(o=Object.getOwnPropertyNames||function(s){var i=[];for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&(i[i.length]=t);return i})(n)};return function(n){if(n&&n.__esModule)return n;var s={};if(null!=n)for(var i=o(n),t=0;t<i.length;t++)"default"!==i[t]&&l(s,n,i[t]);return A(s,n),s}}();Object.defineProperty(c,"__esModule",{value:!0}),c.SocketService=void 0;const v=r(49849),O=r(45312),m=g(r(49849)),p=g(r(13664));c.SocketService=(()=>{class o{auth;connection;emitter=new v.EventEmitter;constructor(s){this.auth=s}connect(){this.connection||(this.connection=new WebSocket(O.environment.socket_url),this.connection.onmessage=s=>{this.on_message(s)},this.connection.onclose=s=>{this.disconnect(s)})}disconnect(s){this.connection&&this.connection.close(),this.connection=null,this.emitter.emit({event:"disconnected"})}join(s){const i=this.connection.readyState;i===this.connection.OPEN&&this.connection.send(JSON.stringify({event:"join",data:{room:s,token:this.auth.token()}})),i===this.connection.CONNECTING&&setTimeout(()=>{this.join(s)},500)}leave(s){this.connection.send(JSON.stringify({event:"leave",room:s}))}on_message(s){const i=JSON.parse(s.data);if("ping"===i.event)return this.connection.send(JSON.stringify({event:"pong",data:[]}));this.emitter.emit(i)}listen(){return this.emitter}static \u0275fac=function(i){return new(i||o)(m.\u0275\u0275inject(p.AuthService))};static \u0275prov=m.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac,providedIn:"root"})}return o}
1)()},39474(N,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.sleep=function r(l){return new Promise(A=>setTimeout(A,1e3*l))}},45312(N,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.environment=void 0,c.environment={production:!0,api_url:"https://api.abem-nacional.com.br/",static_url:"https://cdn.abem-nacional.com.br/",prova_url:"https://prova.abem-nacional.com.br/front/",socket_url:"wss://api.abem-nacional.com.br/ws",funcionario:5,admin:7,kacto:19,users:[],abem_school:"11f5d4ff-bd08-4e97-b8d0-09358d82323d",cdn:"https://cdn.abem-nacional.com.br/",pixel_id:"1887154241486431",tawkto:"5cbf3947c1fe2560f3002d69",edge_api_url:"https://api-prova.abem-nacional.com.br/api/"}},84429(N,c,r){"use strict";var l=this&&this.__importDefault||function(z){return z&&z.__esModule?z:{default:z}};Object.defineProperty(c,"__esModule",{value:!0}),c.CustomCurrencyMaskConfig=void 0;const A=r(49849),g=r(38903),v=r(20092),O=r(7901),m=r(67707),p=r(12607),f=r(38861),o=r(82797),n=r(65335),s=r(22418),i=r(48848),t=r(84444),e=r(13664),u=r(94114),h=r(71774),_=r(37554),y=r(24210),b=r(78011),d=r(39078),I=r(32994),E=r(5779),C=r(83072),R=r(47580),P=r(85064),T=r(89656),w=r(43707),j=r(33510),B=r(32662),V=r(29555),J=r(6127),U=l(r(22046)),a=r(93329),S=r(79185),D=r(87688),M=r(91571),L=r(82060),F=r(69573),G=r(71029),H=r(30065),W=r(30489),Y=r(51285),Q=r(21334);j.Chart.register(B.BoxPlotChart,B.BoxAndWiskers,B.BoxPlotController,{id:"customCanvasBackgroundColor",beforeDraw:z=>{const K=z.ctx,{width:x,height:q}=z;K.save(),K.globalCompositeOperation="destination-over",K.fillStyle="#ffffff",K.fillRect(0,0,x,q),K.restore()}},{id:"customCanvasLogo",afterDraw:z=>{if(window.outerWidth<500)return;const K=z.ctx,x=new Image;x.src="assets/images/logo-grafico.png",K.drawImage(x,50,30,100,100)}});const Z={cookie:{domain:window.location.hostname},position:"bottom",theme:"classic",palette:{popup:{background:"#ffffff",text:"#000000",link:"#ffffff"},button:{background:"#8cbf26",text:"#ffffff",border:"transparent"}},type:"info",content:{message:"Este website segue as diretrizes da LGPD e utiliza cookies para garantir a melhor experi\xeancia aos usu\xe1rios.",dismiss:"Entendido",deny:"",link:"",href:"",policy:"Cookie Policy"}};c.CustomCurrencyMaskConfig={align:"left",allowNegative:!0,decimal:",",precision:2,prefix:"R$ ",suffix:"",thousands:"."},(0,g.bootstrapApplication)(v.AppComponent,{providers:[h.AuthGuard,_.ApiService,s.ApiWordpressService,e.AuthService,t.AdminGuard,b.EventGuard,i.AssociateService,n.EventsService,o.ProposalsService,m.ProgressoGuard,{provide:y.CURRENCY_MASK_CONFIG,useValue:c.CustomCurrencyMaskConfig},f.AssociateGuard,{provide:d.NgbDateAdapter,useClass:p.CustomAdapter},{provide:d.NgbDateParserFormatter,useClass:p.CustomDateParserFormatter},I.ProgressoService,E.MessageService,P.EscolaGuard,T.AlertService,w.SocketService,h.NoAuthGuard,R.PixelService,C.NgcCookieConsentService,(0,a.provideAnimationsAsync)(),(0,V.providePrimeNG)({theme:{preset:U.default,options:{darkModeSelector:"none"}}}),(0,O.provideRouter)(u.routes,(0,O.withPreloading)(O.PreloadAllModules)),(0,J.provideHttpClient)((0,J.withFetch)()),(0,C.provideNgcCookieConsent)(Z),{provide:A.ErrorHandler,useClass:W.CustomErrorHandler},S.ApiProvaService,D.AcessibilidadeService,M.AuthProvaService,L.ProvaService,F.ProvaGuard,G.ProvaMessageService,H.Platform,(0,A.provideZoneChangeDetection)(),Y.ProvaDemonstracaoService,Q.AddressService]})},86120(N,c,r){var l={"./ion-accordion_2.entry.js":[32375,[2076,2375]],"./ion-action-sheet.entry.js":[18814,[2076,8814]],"./ion-alert.entry.js":[45222,[2076,5222]],"./ion-app_8.entry.js":[77720,[2076,7720]],"./ion-avatar_3.entry.js":[81049,[1049]],"./ion-back-button.entry.js":[93162,[2076,3162]],"./ion-backdrop.entry.js":[77240,[7240]],"./ion-breadcrumb_2.entry.js":[68314,[2076,8314]],"./ion-button_2.entry.js":[64591,[4591]],"./ion-card_5.entry.js":[48584,[8584]],"./ion-checkbox.entry.js":[83511,[2076,3511]],"./ion-chip.entry.js":[56024,[6024]],"./ion-col_3.entry.js":[25100,[5100]],"./ion-datetime-button.entry.js":[67428,[4896,7428]],"./ion-datetime_3.entry.js":[32885,[4896,2076,2885]],"./ion-fab_3.entry.js":[14463,[2076,4463]],"./ion-img.entry.js":[74183,[6564]],"./ion-infinite-scroll_2.entry.js":[44171,[2076,4171]],"./ion-input-otp.entry.js":[67676,[7676]],"./ion-input-password-toggle.entry.js":[6521,[2076,6521]],"./ion-input.entry.js":[9344,[2076,9344]],"./ion-item-option_3.entry.js":[25949,[2076,5949]],"./ion-item_8.entry.js":[73506,[2076,3506]],"./ion-loading.entry.js":[97372,[2076,7372]],"./ion-menu_3.entry.js":[82075,[2076,2075]],"./ion-modal.entry.js":[40441,[2076,441]],"./ion-nav_2.entry.js":[45712,[5712]],"./ion-picker-column-option.entry.js":[89013,[9013]],"./ion-picker-column.entry.js":[51459,[2076,1459]],"./ion-picker.entry.js":[16840,[6840]],"./ion-popover.entry.js":[96433,[2076,6433]],"./ion-progress-bar.entry.js":[59977,[9977]],"./ion-radio_2.entry.js":[8066,[2076,8066]],"./ion-range.entry.js":[98477,[2076,8477]],"./ion-refresher_2.entry.js":[35197,[2076,5197]],"./ion-reorder_2.entry.js":[7030,[2076,7030]],"./ion-ripple-effect.entry.js":[80964,[964]],"./ion-route_4.entry.js":[38970,[2076,8970]],"./ion-searchbar.entry.js":[48193,[2076,8193]],"./ion-segment-content.entry.js":[49073,[9073]],"./ion-segment-view.entry.js":[30323,[323]],"./ion-segment_2.entry.js":[62560,[2560]],"./ion-select-modal.entry.js":[90770,[770]],"./ion-select_3.entry.js":[27076,[2076,7076]],"./ion-spinner.entry.js":[28805,[2076,8805]],"./ion-split-pane.entry.js":[95887,[5887]],"./ion-tab-bar_2.entry.js":[84406,[2076,4406]],"./ion-tab_2.entry.js":[91102,[1102]],"./ion-text.entry.js":[41577,[1577]],"./ion-textarea.entry.js":[52348,[2076,2348]],"./ion-toast.entry.js":[62415,[2076,2415]],"./ion-toggle.entry.js":[3814,[2076,3814]]};function A(g){if(!r.o(l,g))return Promise.resolve().then(()=>{var m=new Error("Cannot find module '"+g+"'");throw m.code="MODULE_NOT_FOUND",m});var v=l[g],O=v[0];return Promise.all(v[1].map(r.e)).then(()=>r(O))}A.keys=()=>
1Object.keys(l),A.id=86120,N.exports=A}},N=>{N.O(0,[4121],()=>N(N.s=84429)),N.O()}]);
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.