PageSourceSearch

https://abem-nacional.com.br/459.1f883dc4a38ca978.js

js abem-nacional.com.br collected 2026-10-04 06:06:20 UTC 6,396 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkabem=self.webpackChunkabem||[]).push([[459],{30459(I,d,c){var h=this&&this.__createBinding||(Object.create?function(i,s,o,n){void 0===n&&(n=o);var e=Object.getOwnPropertyDescriptor(s,o);(!e||("get"in e?!s.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return s[o]}}),Object.defineProperty(i,n,e)}:function(i,s,o,n){void 0===n&&(n=o),i[n]=s[o]}),g=this&&this.__setModuleDefault||(Object.create?function(i,s){Object.defineProperty(i,"default",{enumerable:!0,value:s})}:function(i,s){i.default=s}),r=this&&this.__importStar||function(){var i=function(s){return(i=Object.getOwnPropertyNames||function(o){var n=[];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[n.length]=e);return n})(s)};return function(s){if(s&&s.__esModule)return s;var o={};if(null!=s)for(var n=i(s),e=0;e<n.length;e++)"default"!==n[e]&&h(o,s,n[e]);return g(o,s),o}}();Object.defineProperty(d,"__esModule",{value:!0}),d.SchoolsComponent=void 0;const a=c(89377),f=c(60177),_=c(84341),t=r(c(49849)),v=r(c(37554)),b=r(c(48848)),C=r(c(39078)),S=r(c(70226)),u=r(c(60177)),m=r(c(84341));function y(i,s){if(1&i){const o=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",10),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(o);const e=t.\u0275\u0275nextContext().$implicit,l=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(l.create(e))}),t.\u0275\u0275text(1," Salvar "),t.\u0275\u0275elementEnd()}}function M(i,s){if(1&i){const o=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",10),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(o);const e=t.\u0275\u0275nextContext().$implicit,l=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(l.update(e))}),t.\u0275\u0275text(1," Salvar "),t.\u0275\u0275elementEnd()}}function x(i,s){if(1&i){const o=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"input",7),t.\u0275\u0275twoWayListener("ngModelChange",function(e){const l=t.\u0275\u0275restoreView(o).$implicit;return t.\u0275\u0275twoWayBindingSet(l.title,e)||(l.title=e),t.\u0275\u0275resetView(e)}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(3,"div",2)(4,"input",7),t.\u0275\u0275twoWayListener("ngModelChange",function(e){const l=t.\u0275\u0275restoreView(o).$implicit;return t.\u0275\u0275twoWayBindingSet(l.associate_id,e)||(l.associate_id=e),t.\u0275\u0275resetView(e)}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(5,"div",2),t.\u0275\u0275template(6,y,2,0,"button",8)(7,M,2,0,"button",8),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(8,"div",2)(9,"button",9),t.\u0275\u0275listener("click",function(){const e=t.\u0275\u0275restoreView(o),l=e.$implicit,p=e.index,O=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(O.delete(l,p))}),t.\u0275\u0275text(10," Remover "),t.\u0275\u0275elementEnd()()()}if(2&i){const o=s.$implicit,n=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275twoWayProperty("ngModel",o.title),t.\u0275\u0275property("ngModelOptions",n.options),t.\u0275\u0275advance(2),t.\u0275\u0275twoWayProperty("ngModel",o.associate_id),t.\u0275\u0275property("ngModelOptions",n.options),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!o.id),t.\u0275\u0275advance(),t.\u0275\u0275property("ngIf",o.id)}}d.SchoolsComponent=(()=>{class i{api;associate;modal;change;loading;list;options;constructor(o,n,e,l,p){this.api=o,this.associate=n,this.modal=e,this.change=l,this.loading=p}ngOnInit(){this.loading.start(),this.associate.schools().then(o=>{this.list=JSON.parse(JSON.stringify(o)),this.list.pop(),this.loading.end()}),this.options={standalone:!0}}add(){this.list.push({id:null,title:"",associate_id:null})}create(o){this.loading.start(),this.api.insert("associate/schools",o).subscribe(n=>{o.id=n.id,this.modal.open(a.AlertModalComponent).componentInstance.success("Escola criada com sucesso"),this.loading.end()},n=>{this.modal.open(a.AlertModalComponent).componentInstance.error(n.error.message),this.loading.end()})}update(o){this.api.update("associate/schools/:id",o).subscribe(n=>{this.modal.open(a.AlertModalComponent).componentInstance.success(n.message),this.loading.end()},n=>{this.modal.open(a.AlertModalComponent).componentInstance.error(n.error.message),this.loading.end()})}delete(o,n){null!==o.id?this.api.remove("associate/schools/:id",o).subscribe(e=>{this.modal.open(a.AlertModalComponent).componentInstance.success(e.message),this.list.splice(n,1),this.change.detectChanges(),this.loading.end()},e=>{this.modal.open(a.AlertModalComponent).componentInstance.error(e.error.message),this.loading.end()}):(this.list.splice(n,1),this.change.detectChanges())}static \u0275fac=function(n){return new(n||i)(t.\u0275\u0275directiveInject(v.ApiService),t.\u0275\u0275directiveInject(b.AssociateService),t.\u0275\u0275directiveInject(C.NgbModal),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(S.LoadingService))};static \u0275cmp=t.\u0275\u0275defineComponent({type:i,selectors:[["app-schools"]],decls:13,vars:1,consts:[[1,"row"],[1,"col-md-6"],[1,"col-md-2"],[1,"col-md-4"],["class","row",4,"ngFor","ngForOf"],[1,"col-md-4","offset-8"],[1,"btn","btn-primary",3,"click"],[1,"form-control",3,"ngModelChange","ngModel","ngModelOptions"],["class","btn btn-primary btn-block",3,"click",4,"ngIf"],[1,"btn","btn-danger","btn-block",3,"click"],[1,"btn","btn-primary","btn-block",3,"click"]],template:function(n,e){1&n&&(t.\u0275\u0275elementStart(0,"h1"),t.\u0275\u0275text(1," Escolas "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(2,"div",0)(3,"div",1),t.\u0275\u0275text(4," Nome "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"div",2),t.\u0275\u0275text(6," ID associado "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"div",3),t.\u0275\u0275text(8," A\xe7\xf5es "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(9,x,11,6,"div",4),t.\u0275\u0275elementStart(10,"div",5)(11,"button",6),t.\u0275\u0275listener("click",function(){return e.add()}),t.\u0275\u0275text(12," Nova Escola "),t.\u0275\u0275elementEnd()()),2&n&&(t.\u0275\u0275advance(9),t.\u0275\u0275property("ngForOf",e.list))},dependencies:[f.CommonModule,u.NgForOf,u.NgIf,_.FormsModule,m.DefaultValueAccessor,m.NgControlStatus,m.NgModel],styles:[".row[_ngcontent-%COMP%]{border:1px solid;padding:5px}"]})}return i})()}}]);

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.