PageSourceSearch

https://abem-nacional.com.br/5353.a60b0f270439c712.js

js abem-nacional.com.br collected 2026-10-04 06:08:52 UTC 15,797 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkabem=self.webpackChunkabem||[]).push([[5353],{95353(M,_,s){var g=s(29293).default,x=this&&this.__createBinding||(Object.create?function(i,r,t,o){void 0===o&&(o=t);var n=Object.getOwnPropertyDescriptor(r,t);(!n||("get"in n?!r.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(i,o,n)}:function(i,r,t,o){void 0===o&&(o=t),i[o]=r[t]}),C=this&&this.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),f=this&&this.__importStar||function(){var i=function(r){return(i=Object.getOwnPropertyNames||function(t){var o=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o[o.length]=n);return o})(r)};return function(r){if(r&&r.__esModule)return r;var t={};if(null!=r)for(var o=i(r),n=0;n<o.length;n++)"default"!==o[n]&&x(t,r,o[n]);return C(t,r),t}}();Object.defineProperty(_,"__esModule",{value:!0}),_.CandidatesComponent=void 0;const a=s(41853),v=s(89377),h=s(72589),E=s(45312),u=s(60177),c=s(84341),m=s(37723),d=s(61122),e=f(s(49849)),b=f(s(37554)),O=f(s(7901)),w=f(s(39078)),T=f(s(70226)),P=f(s(90586)),S=f(s(60177)),I=f(s(84341)),A=f(s(37723)),V=f(s(5779)),j=f(s(61122));function D(i,r){1&i&&(e.\u0275\u0275elementStart(0,"tr")(1,"th"),e.\u0275\u0275text(2," ID "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"th"),e.\u0275\u0275text(4," Nome "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"th"),e.\u0275\u0275text(6," Categoria do Associado "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"th"),e.\u0275\u0275text(8," Status "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"th"),e.\u0275\u0275text(10," Regional "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"th"),e.\u0275\u0275text(12," Data de associa\xe7\xe3o "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"th"),e.\u0275\u0275text(14," Entrada na regional "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"th"),e.\u0275\u0275text(16," Candidato a "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"th"),e.\u0275\u0275text(18," A\xe7\xf5es/Status "),e.\u0275\u0275elementEnd()())}function R(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",17),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(2),l=n.$implicit,p=n.rowIndex,y=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(y.edit(l,p))}),e.\u0275\u0275text(1," Ver recurso "),e.\u0275\u0275elementEnd()}}function N(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",18),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(2).$implicit,l=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(l.reprove(n))}),e.\u0275\u0275element(1,"span",19),e.\u0275\u0275elementEnd()}}function B(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",20),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(2).$implicit,l=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(l.approve(n))}),e.\u0275\u0275element(1,"span",21),e.\u0275\u0275elementEnd()}}function W(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"div",13),e.\u0275\u0275template(1,R,2,0,"button",14)(2,N,2,0,"button",15)(3,B,2,0,"button",16),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext().$implicit,o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(),e.\u0275\u0275property("ngIf",t.status==o.status.RECURSO),e.\u0275\u0275advance(),e.\u0275\u0275property("ngIf",t.status==o.status.ENVIADO),e.\u0275\u0275advance(),e.\u0275\u0275property("ngIf",t.status==o.status.ENVIADO)}}function F(i,r){1&i&&e.\u0275\u0275element(0,"span",21)}function U(i,r){1&i&&e.\u0275\u0275element(0,"span",22)}function H(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"tr")(1,"td"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"td"),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"td"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"td"),e.\u0275\u0275text(8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"td"),e.\u0275\u0275text(10),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"td"),e.\u0275\u0275text(12),e.\u0275\u0275pipe(13,"date"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"td"),e.\u0275\u0275text(15),e.\u0275\u0275pipe(16,"date"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"td"),e.\u0275\u0275text(18),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"td"),e.\u0275\u0275template(20,W,4,3,"div",10)(21,F,1,0,"span",11)(22,U,1,0,"span",12),e.\u0275\u0275elementEnd()()),2&i){const t=r.$implicit,o=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",t.associate_id," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",t.associate_name," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.category),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.associate_status),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.region),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(13,11,t.admission_date,"dd/MM/yyyy")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(16,14,t.region_date,"dd/MM/yyyy")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",t.position_name," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.status==o.status.ENVIADO||t.status==o.status.RECURSO),e.\u0275\u0275advance(),e.\u0275\u0275property("ngIf",t.status==o.status.APROVADO),e.\u0275\u0275advance(),e.\u0275\u0275property("ngIf",t.status==o.status.REPROVADO||t.status==o.status.RECURSO_REJEITADO)}}function L(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",18),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(n.refuse())}),e.\u0275\u0275text(1,"Recusar Recurso"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"button",20),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.approve(n.model))}),e.\u0275\u0275text(3,"Aprovar Candidatura"),e.\u0275\u0275elementEnd()}}_.CandidatesComponent=(()=>{class i{api;route;modal;loading;service;candidates;list;positions;position;election_id;associate_id;status;show_dialog=!1;model;title;cdn=E.environment.cdn;index;constructor(t,o,n,l,p){this.api=t,this.route=o,this.modal=n,this.loading=l,this.service=p,this.status=new h.CandidateStatus}edit(t,o){this.model.setup(t),this.index=o,this.show_dialog=!0}ngOnInit(){this.model=new h.Candidate,this.candidates=[],this.route.params.subscribe(o=>{if(!o.id)return void console.error("Pagina invalida");this.loading.start(1),this.election_id=o.id;let n={id:this.election_id};this.api.recover("elections/:id",n).toPromise().then(l=>{this.title=l.title}),this.api.recover("elections/:id/candidates",n).toPromise().then(l=>{this.candidates=l,this.loading.end()},l=>{this.loading.end(),this.modal.open(v.AlertModalComponent).componentInstance.error(l.error.message)})})}save(){this.api.insert("elections/:id/candidates",{associate_id:this.associate_id,position_id:this.position,id:this.election_id}).subscribe(t=>{this.candidates.push(t),console.log(t)})}refuse(){var t=this;return g(function*(){let o=t.modal.open(a.ConfirmModalComponent,{centered:!0});o.componentInstance.text="Confirma a reprova\xe7\xe3o do recurso do candidato "+t.model.associate_name+"?",o.componentInstance.destructive=!0;try{yield o.result}catch{return}try{yield t.service.reject(t.model.election_id,t.model.position_id,t.model.associate_id,t.model.reason),t.candidates[t.index].status=t.status.REPROVADO,t.show_dialog=!1}catch(n){t.modal.open(v.AlertModalComponent).componentInstance.error(n.error.message)}})()}reprove(t){var o=this;return g(function*(){let n=o.modal.open(a.ConfirmModalComponent,{centered:!0});n.componentInstance.text="Confirma a reprova\xe7\xe3o do candidato "+t.associate_name+"?",n.componentInstance.destructive=!0;try{yield n.result}catch{return}try{yield o.service.reprove(t.election_id,t.position_id,t.associate_id),t.status=o.status.REPROVADO}catch(l){o.modal.open(v.AlertModalComponent).componentInstance.error(l.error.message)}})()}approve(t){var o=this;return g(function*(){let n=o.modal.open(a.ConfirmModalComponent,{centered:!0});n.componentInstance.text="Confirma a aprova\xe7\xe3o do candidato "+t.associate_name+"?",n.componentInstance.destructive=!0;try{yield n.result}catch{return}try{yield o.service.approve(t.election_id,t.position_id,t.associate_id),t.status=o.status.APROVADO,o.show_dialog=!1}catch(l){o.modal.open(v.AlertModalComponent).componentInstance.error(l.error.message)}})()}remove(t,o){let n=this.modal.open(a.ConfirmModalComponent,{centered:!0});n.componentInstance.text="Confirma a exclusao do candidato "+t.associate_name+"?",n.componentInstance.destructive=!0,n.result.then(l=>{this.api.remove("/elections/:election_id/candidates/:associate_id/:position_id",t).subscribe(p=>{this.candidates.splice(o,1);let y=this.candidates;this.candidates=new Array,this.candidates=y},p=>{this.modal.open(v.AlertModalComponent).componentInstance.error(p.error.message)})})}static \u0275fac=function(o){return new(o||i)(e.\u0275\u0275directiveInject(b.ApiService),e.\u0275\u0275directiveInject(O.ActivatedRoute),e.\u0275\u0275directiveInject(w.NgbModal),e.\u0275\u0275directiveInject(T.LoadingService),e.\u0275\u0275directiveInject(P.CandidatesService))};static \u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["app-candidates"]],decls:21,vars:7,consts:[[1,"row"],["styleClass","p-datatable-gridlines",3,"value"],["pTemplate","header"],["pTemplate","body"],[3,"visibleChange","visible","header"],[1,"appeal-reason"],["target","_blank",3,"href"],[1,"form-group"],[1,"form-control",3,"ngModelChange","ngModel"],["pTemplate","footer"],["class","buttons",4,"ngIf"],["class","fa fa-check green",4,"ngIf"],["class","fa fa-times red",4,"ngIf"],[1,"buttons"],["class","btn btn-secondary",3,"click",4,"ngIf"],["class","btn btn-danger",3,"click",4,"ngIf"],["class","btn btn-primary",3,"click",4,"ngIf"],[1,"btn","btn-secondary",3,"click"],[1,"btn","btn-danger",3,"click"],[1,"fa","fa-times"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-check","green"],[1,"fa","fa-times","red"]],template:function(o,n){1&o&&(e.\u0275\u0275elementStart(0,"div",0)(1,"h1"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(3,"p-table",1),e.\u0275\u0275template(4,D,19,0,"ng-template",2)(5,H,23,17,"ng-template",3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"p-dialog",4),e.\u0275\u0275twoWayListener("visibleChange",function(p){return e.\u0275\u0275twoWayBindingSet(n.show_dialog,p)||(n.show_dialog=p),p}),e.\u0275\u0275elementStart(7,"div")(8,"div",5)(9,"b"),e.\u0275\u0275text(10,"Justificativa do recurso: "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div"),e.\u0275\u0275text(12),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"div")(14,"a",6),e.\u0275\u0275text(15," Arquivo anexo "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(16,"div",7)(17,"label"),e.\u0275\u0275text(18," Informe o motivo no caso de recusa do recurso: "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"textarea",8),e.\u0275\u0275twoWayListener("ngModelChange",function(p){return e.\u0275\u0275twoWayBindingSet(n.model.reason,p)||(n.model.reason=p),p}),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(20,L,4,0,"ng-template",9),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" Elei\xe7\xe3o: ",n.title),e.\u0275\u0275advance(),e.\u0275\u0275property("value",n.candidates),e.\u0275\u0275advance(3),e.\u0275\u0275twoWayProperty("visible",n.show_dialog),e.\u0275\u0275property("header",n.model.associate_name),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate1(" ",null==n.model.last_appeal?null:n.model.last_appeal.reason," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("href",n.cdn+(null==n.model.last_appeal?null:n.model.last_appeal.file),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(5),e.\u0275\u0275twoWayProperty("ngModel",n.model.reason))},dependencies:[u.CommonModule,S.NgIf,c.FormsModule,I.DefaultValueAccessor,I.NgControlStatus,I.NgModel,m.TableModule,A.Table,V.PrimeTemplate,d.DialogModule,j.Dialog,S.DatePipe],styles:[".appeal-reason[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:2em;row-gap:1em}"]})}return i})()},41853(M,_,s){var g=this&&this.__createBinding||(Object.create?function(u,c,m,d){void 0===d&&(d=m);var e=Object.getOwnPropertyDescriptor(c,m);(!e||("get"in e?!c.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return c[m]}}),Object.defineProperty(u,d,e)}:function(u,c,m,d){void 0===d&&(d=m),u[d]=c[m]}),x=this&&this.__setModuleDefault||(Object.create?function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}:function(u,c){u.default=c}),C=this&&this.__importStar||function(){var u=function(c){return(u=Object.getOwnPropertyNames||function(m){var d=[];for(var e in m)Object.prototype.hasOwnProperty.call(m,e)&&(d[d.length]=e);return d})(c)};return function(c){if(c&&c.__esModule)return c;var m={};if(null!=c)for(var d=u(c),e=0;e<d.length;e++)"default"!==d[e]&&g(m,c,d[e]);return x(m,c),m}}();
1Object.defineProperty(_,"__esModule",{value:!0}),_.ConfirmModalComponent=void 0;const f=s(60177),a=C(s(49849)),v=C(s(39078)),h=C(s(60177));_.ConfirmModalComponent=(()=>{class u{modal;title="Confirme";text;yes="SIM";no="N\xc3O";destructive=!0;closing;constructor(m){this.modal=m,this.closing=!1}ngOnInit(){}color(){return this.destructive?"btn-danger":"btn-primary"}close(){this.closing||(this.closing=!0,this.modal.close(!0))}static \u0275fac=function(d){return new(d||u)(a.\u0275\u0275directiveInject(v.NgbActiveModal))};static \u0275cmp=a.\u0275\u0275defineComponent({type:u,selectors:[["app-confirm-modal"]],decls:13,vars:5,consts:[[1,"modal-header"],["id","modal-title",1,"modal-title"],["type","button","aria-describedby","modal-title",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[3,"innerHtml"],[1,"modal-footer"],["type","button",1,"btn","btn-info",3,"click"],["type","button",1,"btn",3,"click","ngClass"]],template:function(d,e){1&d&&(a.\u0275\u0275elementStart(0,"div",0)(1,"h4",1),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(3,"button",2),a.\u0275\u0275listener("click",function(){return e.modal.dismiss(!1)}),a.\u0275\u0275elementStart(4,"span",3),a.\u0275\u0275text(5,"\xd7"),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementStart(6,"div",4),a.\u0275\u0275element(7,"div",5),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(8,"div",6)(9,"button",7),a.\u0275\u0275listener("click",function(){return e.modal.dismiss(!1)}),a.\u0275\u0275text(10),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(11,"button",8),a.\u0275\u0275listener("click",function(){return e.close()}),a.\u0275\u0275text(12),a.\u0275\u0275elementEnd()()),2&d&&(a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(e.title),a.\u0275\u0275advance(5),a.\u0275\u0275property("innerHtml",e.text,a.\u0275\u0275sanitizeHtml),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate(e.no),a.\u0275\u0275advance(),a.\u0275\u0275property("ngClass",e.color()),a.\u0275\u0275advance(),a.\u0275\u0275textInterpolate(e.yes))},dependencies:[f.CommonModule,h.NgClass],styles:[".modal-body[_ngcontent-%COMP%]{white-space:pre-line}"]})}return u})()}}]);

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.