PageSourceSearch

https://abem-nacional.com.br/2795.16d8b43888b61be7.js

js abem-nacional.com.br collected 2026-10-04 06:07:32 UTC 15,965 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkabem=self.webpackChunkabem||[]).push([[2795],{72795(w,d,u){var c=this&&this.__createBinding||(Object.create?function(i,s,t,n){void 0===n&&(n=t);var o=Object.getOwnPropertyDescriptor(s,t);(!o||("get"in o?!s.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return s[t]}}),Object.defineProperty(i,n,o)}:function(i,s,t,n){void 0===n&&(n=t),i[n]=s[t]}),S=this&&this.__setModuleDefault||(Object.create?function(i,s){Object.defineProperty(i,"default",{enumerable:!0,value:s})}:function(i,s){i.default=s}),f=this&&this.__importStar||function(){var i=function(s){return(i=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n})(s)};return function(s){if(s&&s.__esModule)return s;var t={};if(null!=s)for(var n=i(s),o=0;o<n.length;o++)"default"!==n[o]&&c(t,s,n[o]);return S(t,s),t}}();Object.defineProperty(d,"__esModule",{value:!0}),d.SpeakerComponent=void 0;const M=u(75809),r=u(41853),g=u(89377),v=u(60177),h=u(84341),e=f(u(49849)),m=f(u(7901)),_=f(u(37554)),p=f(u(39078)),l=f(u(70226)),y=f(u(60177)),C=f(u(84341)),E=(i,s)=>s.id;function I(i,s){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"input",15),e.\u0275\u0275twoWayListener("ngModelChange",function(o){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext().$implicit;return e.\u0275\u0275twoWayBindingSet(a.cpf,o)||(a.cpf=o),e.\u0275\u0275resetView(o)}),e.\u0275\u0275listener("focusout",function(){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext().$implicit,a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.find_user(o))}),e.\u0275\u0275elementEnd()}if(2&i){const t=e.\u0275\u0275nextContext().$implicit,n=e.\u0275\u0275nextContext();e.\u0275\u0275twoWayProperty("ngModel",t.cpf),e.\u0275\u0275property("ngModelOptions",n.options)}}function T(i,s){if(1&i&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(),e.\u0275\u0275textInterpolate1(" ",t.cpf," ")}}function A(i,s){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"input",16),e.\u0275\u0275twoWayListener("ngModelChange",function(o){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext().$implicit;return e.\u0275\u0275twoWayBindingSet(a.name,o)||(a.name=o),e.\u0275\u0275resetView(o)}),e.\u0275\u0275elementEnd()}if(2&i){const t=e.\u0275\u0275nextContext().$implicit,n=e.\u0275\u0275nextContext();e.\u0275\u0275property("disabled",!t.register),e.\u0275\u0275twoWayProperty("ngModel",t.name),e.\u0275\u0275property("ngModelOptions",n.options)}}function k(i,s){if(1&i&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(),e.\u0275\u0275textInterpolate1(" ",t.name," ")}}function x(i,s){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"input",16),e.\u0275\u0275twoWayListener("ngModelChange",function(o){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext().$implicit;return e.\u0275\u0275twoWayBindingSet(a.email,o)||(a.email=o),e.\u0275\u0275resetView(o)}),e.\u0275\u0275elementEnd()}if(2&i){const t=e.\u0275\u0275nextContext().$implicit,n=e.\u0275\u0275nextContext();e.\u0275\u0275property("disabled",!t.register),e.\u0275\u0275twoWayProperty("ngModel",t.email),e.\u0275\u0275property("ngModelOptions",n.options)}}function P(i,s){if(1&i&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(),e.\u0275\u0275textInterpolate1(" ",t.email," ")}}function R(i,s){if(1&i&&(e.\u0275\u0275elementStart(0,"option",17),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const t=s.$implicit;e.\u0275\u0275property("value",t.id),e.\u0275\u0275advance(),e.\u0275\u0275textInterpolate1(" ",t.name," ")}}function N(i,s){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tr")(1,"td"),e.\u0275\u0275template(2,I,1,2,"input",5)(3,T,2,1,"span",6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"td"),e.\u0275\u0275template(5,A,1,3,"input",7)(6,k,2,1,"span",6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"td"),e.\u0275\u0275template(8,x,1,3,"input",7)(9,P,2,1,"span",6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"td")(11,"select",8),e.\u0275\u0275twoWayListener("ngModelChange",function(o){const a=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275twoWayBindingSet(a.type_id,o)||(a.type_id=o),e.\u0275\u0275resetVie
1w(o)}),e.\u0275\u0275template(12,R,2,2,"option",9),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(13,"td")(14,"label",10)(15,"input",11),e.\u0275\u0275twoWayListener("ngModelChange",function(o){const a=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275twoWayBindingSet(a.allow_messages,o)||(a.allow_messages=o),e.\u0275\u0275resetView(o)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(16,"span",12),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(17,"td")(18,"button",13),e.\u0275\u0275listener("click",function(){const o=e.\u0275\u0275restoreView(t).$index,a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.remove_speaker(o))}),e.\u0275\u0275element(19,"span",14),e.\u0275\u0275elementEnd()()()}if(2&i){const t=s.$implicit,n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.is_new),e.\u0275\u0275advance(),e.\u0275\u0275property("ngIf",!t.is_new),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.is_new),e.\u0275\u0275advance(),e.\u0275\u0275property("ngIf",!t.is_new),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.is_new),e.\u0275\u0275advance(),e.\u0275\u0275property("ngIf",!t.is_new),e.\u0275\u0275advance(2),e.\u0275\u0275twoWayProperty("ngModel",t.type_id),e.\u0275\u0275property("ngModelOptions",n.options),e.\u0275\u0275advance(),e.\u0275\u0275property("ngForOf",n.types.list),e.\u0275\u0275advance(3),e.\u0275\u0275twoWayProperty("ngModel",t.allow_messages),e.\u0275\u0275property("ngModelOptions",n.options)}}d.SpeakerComponent=(()=>{class i{route;api;modal;loading;speakers;search;event_id;sub_event_id;types;options={standalone:!0};constructor(t,n,o,a){this.route=t,this.api=n,this.modal=o,this.loading=a,this.speakers=[],this.types=new M.SpeakerTypes}ngOnInit(){this.route.params.subscribe(t=>{this.speakers=[],this.loading.start(),this.event_id=t.event,this.sub_event_id=t.id,this.api.recover("event/:event_id/sub-event/:sub_id/speakers",{event_id:this.event_id,sub_id:this.sub_event_id}).subscribe({next:n=>{Array.isArray(n)&&n.forEach(o=>{let a=new O;a.setup(o,!1),this.speakers.push(a)}),this.loading.end()},error:n=>{this.loading.end()}})})}find_user(t){this.loading.start(),this.api.recover("user/cpf/:cpf",{cpf:t.cpf}).subscribe(n=>{n.cpf=t.cpf,t.setup(n,!0),this.loading.end()},n=>{t.register=!0,this.loading.end()})}add_speaker(){this.speakers.push(new O)}remove_speaker(t){let n=this.modal.open(r.ConfirmModalComponent,{centered:!0});n.componentInstance.text="Confirma a exclus\xe3o do palestrante "+this.speakers[t].name+"?",n.componentInstance.destructive=!0,n.result.then(o=>{if(this.speakers[t].is_new){this.speakers.splice(t,1);let b=this.speakers;this.speakers=null,this.speakers=b,this.modal.open(g.AlertModalComponent).componentInstance.success("Palestrante excluido com sucesso")}else this.api.remove("/event/:event_id/sub-event/:sub_id/speakers/:speaker_id",{event_id:this.event_id,sub_id:this.sub_event_id,speaker_id:this.speakers[t].id}).subscribe(a=>{this.speakers.splice(t,1);let b=this.speakers;this.speakers=null,this.speakers=b,this.modal.open(g.AlertModalComponent).componentInstance.success("Palestrante excluido com sucesso")},a=>{this.modal.open(g.AlertModalComponent).componentInstance.error(a.error.message)})})}save(){this.loading.start();let t=[];for(let n=0;n<this.speakers.length;n++)t.push(this.speakers[n].get_values());this.api.insert("/event/:event_id/sub-event/:sub_id/speakers",{event_id:this.event_id,sub_id:this.sub_event_id,speakers:t}).subscribe(n=>{this.loading.end(),this.modal.open(g.AlertModalComponent).componentInstance.success("Palestrantes salvos com sucesso!"),this.speakers.forEach(a=>{a.is_new=!1})},n=>{this.loading.end(),this.modal.open(g.AlertModalComponent).componentInstance.error(n.error.message)})}static \u0275fac=function(n){return new(n||i)(e.\u0275\u0275directiveInject(m.ActivatedRoute),e.\u0275\u0275directiveInject(_.ApiService),e.\u0275\u0275directiveInject(p.NgbModal),e.\u0275\u0275directiveInject(l.LoadingService))};static \u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["app-speaker"]],decls:21,vars:0,consts:[["width","20%"],["width","15%"],["width","5%"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-fw","fa-plus"],["class","form-control",3,"ngModel","ngModelOptions","ngModelChange","focusout",4,"ngIf"],[4,"ngIf"],["class","form-control",3,"disabled","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],[1,"form-control",3,"ngModelChange","ngModel","ngModelOptions"],[3,"value",4,"ngFor","ngForOf"],[1,"switch"],["type","checkbox",3,"ngModelChange","ngModel","ngModelOptions"],[1,"slider","round"],[1,"btn","btn-danger",3,"click"],[1,"fa","fa-fw","fa-times"],[1,"form-control",3,"ngModelChange","focusout","ngModel","ngModelOptions"],[1,"form-control",3,"ngModelChange","disabled","ngModel","ngModelOptions"],[3,"value"]],template:function(n,o){1&n&&(e.\u0275\u0275elementStart(0,"table")(1,"thead")(2,"tr")(3,"th",0),e.\u0275\u0275text(4,"Usu\xe1rio"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"th",0),e.\u0275\u0275text(6,"Nome"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"th",0),e.\u0275\u0275text(8,"E-mail"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"th",0),e.\u0275\u0275text(10,"Tipo"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"th",1),e.\u0275\u0275text(12,"Permite mensagens"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"th",2)(14,"button",3),e.\u0275\u0275listener("click",function(){return o.add_speaker()}),e.\u0275\u0275element(15,"span",4),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(16,"tbody"),e.\u0275\u0275repeaterCreate(17,N,20,11,"tr",null,E),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(19,"button",3),e.\u0275\u0275listener("click",function(){return o.save()}),e.\u0275\u0275text(20," Salvar "),e.\u0275\u0275elementEnd()),2&n&&(e.\u0275\u0275advance(17),e.\u0275\u0275repeater(o.speakers))},dependencies:[v.CommonModule,y.NgForOf,y.NgIf,h.FormsModule,C.NgSelectOption,C.\u0275NgSelectMultipleOption,C.DefaultValueAccessor,C.CheckboxControlValueAccessor,C.SelectControlValueAccessor,C.NgControlStatus,C.NgModel],styles:["table[_ngcontent-%COMP%], tr[_ngcontent-%COMP%], td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{border:1px solid}table[_ngcontent-%COMP%]{width:100%}"]})}return i})();class O{cpf;id;name;type_id;allow_messages;email;is_new;register;constructor(){this.register=!1,this.is_new=!0}setup(s,t){this.is_new=t,this.name=s.full_name,this.email=s.email,this.id=s.id,this.cpf=s.cpf,this.allow_messages=s.allow_messages,this.type_id=s.type_id}get_values(){return{cpf:this.cpf,id:this.id,name:this.name,type_id:this.type_id,allow_messages:this.allow_messages,email:this.email}}}},41853(w,d,u){var c=this&&this.__createBinding||(Object.create?function(e,m,_,p){void 0===p&&(p=_);var l=Object.getOwnPropertyDescriptor(m,_);(!l||("get"in l?!m.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return m[_]}}),Object.defineProperty(e,p,l)}:function(e,m,_,p){void 0===p&&(p=_),e[p]=m[_]}),S=this&&this.__setModuleDefault||(Object.create?function(e,m){Object.defineProperty(e,"default",{enumerable:!0,value:m})}:function(e,m){e.default=m}),f=this&&this.__importStar||function(){var e=function(m){return(e=Object.getOwnPropertyNames||function(_){var p=[];for(var l in _)Object.prototype.hasOwnProperty.call(_,l)&&(p[p.length]=l);return p})(m)};
1return function(m){if(m&&m.__esModule)return m;var _={};if(null!=m)for(var p=e(m),l=0;l<p.length;l++)"default"!==p[l]&&c(_,m,p[l]);return S(_,m),_}}();Object.defineProperty(d,"__esModule",{value:!0}),d.ConfirmModalComponent=void 0;const M=u(60177),r=f(u(49849)),g=f(u(39078)),v=f(u(60177));d.ConfirmModalComponent=(()=>{class e{modal;title="Confirme";text;yes="SIM";no="N\xc3O";destructive=!0;closing;constructor(_){this.modal=_,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(p){return new(p||e)(r.\u0275\u0275directiveInject(g.NgbActiveModal))};static \u0275cmp=r.\u0275\u0275defineComponent({type:e,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(p,l){1&p&&(r.\u0275\u0275elementStart(0,"div",0)(1,"h4",1),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(3,"button",2),r.\u0275\u0275listener("click",function(){return l.modal.dismiss(!1)}),r.\u0275\u0275elementStart(4,"span",3),r.\u0275\u0275text(5,"\xd7"),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275elementStart(6,"div",4),r.\u0275\u0275element(7,"div",5),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"div",6)(9,"button",7),r.\u0275\u0275listener("click",function(){return l.modal.dismiss(!1)}),r.\u0275\u0275text(10),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(11,"button",8),r.\u0275\u0275listener("click",function(){return l.close()}),r.\u0275\u0275text(12),r.\u0275\u0275elementEnd()()),2&p&&(r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate(l.title),r.\u0275\u0275advance(5),r.\u0275\u0275property("innerHtml",l.text,r.\u0275\u0275sanitizeHtml),r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate(l.no),r.\u0275\u0275advance(),r.\u0275\u0275property("ngClass",l.color()),r.\u0275\u0275advance(),r.\u0275\u0275textInterpolate(l.yes))},dependencies:[M.CommonModule,v.NgClass],styles:[".modal-body[_ngcontent-%COMP%]{white-space:pre-line}"]})}return e})()},75809(w,d,u){Object.defineProperty(d,"__esModule",{value:!0}),d.InputTypes=d.Certificates=d.RegimeJuridico=d.SpeakerTypes=d.EventDiscountTypes=d.Logs=void 0;const c=u(14765);d.Logs=class S{ACCESS=1;ERROR=2;TASK=3;list=[new c.ModelItem(this.ACCESS,"Acesso"),new c.ModelItem(this.ERROR,"Erro"),new c.ModelItem(this.TASK,"Tarefa")]},d.EventDiscountTypes=class f{REGIONAL=1;NACIONAL=2;list=[new c.ModelItem(this.REGIONAL,"Regional"),new c.ModelItem(this.NACIONAL,"Nacional")]},d.SpeakerTypes=class M{MINISTRANTE=1;COORDENADOR=2;PALESTRANTE=3;CONFERENCISTA=4;list=[new c.ModelItem(this.MINISTRANTE,"Ministrante"),new c.ModelItem(this.COORDENADOR,"Coordenador"),new c.ModelItem(this.PALESTRANTE,"Palestrante"),new c.ModelItem(this.CONFERENCISTA,"Conferencista")]},d.RegimeJuridico=class r{list=[new c.ModelItem(0,"P\xfablica Federal"),new c.ModelItem(0,"P\xfablica Estadual"),new c.ModelItem(0,"P\xfablica Municipal"),new c.ModelItem(0,"Privada sem fins lucrativos"),new c.ModelItem(0,"Privada com fins lucrativos")]},d.Certificates=class g{AVALIADOR=1;EVENTO=2;SUB_EVENTO=3;PROGRESSO_LEGACY=4;TRABALHO=5;PALESTRANTE=6;PERFIL=7;PROGRESSO_ESCOLA=8;PROGRESSO_PROVA=9;list=[new c.ModelItem([this.EVENTO,this.SUB_EVENTO,this.PERFIL,this.PALESTRANTE],"Congressos"),new c.ModelItem([this.TRABALHO,this.AVALIADOR],"Trabalhos Acad\xeamicos"),new c.ModelItem([this.PROGRESSO_LEGACY,this.PROGRESSO_PROVA,this.PROGRESSO_ESCOLA],"Teste de Progresso")]},d.InputTypes=class v{TEXT=1;SELECT=2;list=[new c.ModelItem(this.TEXT,"Texto"),new c.ModelItem(this.SELECT,"Select")]}}}]);

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.