PageSourceSearch

https://inscricao.mackenzie.br/7311.12756b34daad17bc.js

js mackenzie.br collected 2026-10-01 09:09:16 UTC 18,179 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkprocesso_seletivo=self.webpackChunkprocesso_seletivo||[]).push([[7311],{94219:(S,p,t)=>{t.d(p,{U:()=>c});var a=t(36671);class r extends a.F{}class c{fromJson(n){const g=new r;return typeof n.success<"u"?(g.success=n.success,g.data=this.toJson(n.data),g):this.toJson(n)}toJson(n){return"object"==typeof n?{local_id:n.local_id,portal_id:n.portal_id,id:n.id,title:n.title,code:n.code,use_cache:n.use_cache,cache_interval_type_id:n.cache_interval_type_id,colligate:n.colligate,system:n.system,client_id:n.client_id,type_id:n.type_id,component_id:n.component_id,field_settings_id:n.field_settings_id,stage_id:n.stage_id,step_id:n.step_id,feedback_id:n.feedback_id,fields:n.fields,fields_query:n.fields_query,parameters:n.parameters,context:n.context,status:n.status,status_title:n.status_title,updated_at:n.updated_at,cascade_change:n.cascade_change,selective_process_id:n.selective_process_id,description:n.description,lazy_load:n.lazy_load}:n}}},62125:(S,p,t)=>{t.d(p,{r:()=>g});var a=t(6688),r=t(94219),c=t(45312),m=t(54438),n=t(21626);let g=(()=>{class l extends a.Q{constructor(f){super(f,`${c.c.API}`,"settings/totvs-query/list",new r.U)}static{this.\u0275fac=function(y){return new(y||l)(m.KVO(n.Qq))}}static{this.\u0275prov=m.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}}return l})()},57311:(S,p,t)=>{t.r(p),t.d(p,{HomeModule:()=>V});var a=t(4280),r=t(74710),c=t(53811),m=t(70434),n=t(90998),g=t(62125),l=t(23886),h=t(40697),f=t(88274),y=t(32575),E=t(45312),e=t(54438),O=t(34006),C=t(37505),P=t(34737),L=t(1097),x=t(89417),b=t(83225),M=t(60177),T=t(88834),F=t(25596),D=t(52920),A=t(16038),I=t(32025),R=t(64052);const U=u=>({"ps-home-crud":u});function B(u,H){if(1&u){const o=e.RV6();e.j41(0,"div",8)(1,"div",9)(2,"button",10),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.createPortal())}),e.EFF(3,"Novo portal"),e.k0s()()()}}function K(u,H){if(1&u){const o=e.RV6();e.j41(0,"mat-card-content",11)(1,"div")(2,"div",12),e.nrm(3,"img",13),e.k0s(),e.j41(4,"div",14)(5,"h1",15),e.EFF(6,"Comece criando seu primeiro "),e.nrm(7,"br"),e.EFF(8," portal de inscri\xe7\xf5es e matr\xedculas"),e.k0s()(),e.j41(9,"div",14)(10,"span",16),e.EFF(11," Um portal poder\xe1 ter v\xe1rios processos seletivos onde os candidatos ir\xe3o realizar suas inscri\xe7\xf5es. "),e.k0s()(),e.j41(12,"div",14)(13,"button",10),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.createPortal())}),e.EFF(14," Novo portal "),e.k0s()()()()}}const W=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class u{constructor(o,s,i,v,d,z,X,$,k,J,Y){this.servicePortal=o,this.route=s,this.dialog=i,this.loaderService=v,this.crudModel=d,this.serviceTBC=z,this.systemQueriesService=X,this.domainPortalService=$,this.confirmService=k,this.formBuilder=J,this.serviceNotification=Y,this.msgCrudEmpty="Nenhum processo seletivo encontrado",this.dataSP=[],this.dataCrud=[],this.optionsCheck=[],this.display=!1,this.columns=[{columnDef:"status",header:"Situa\xe7\xe3o",dataName:_=>(0,m.d0)(_.status)},{columnDef:"name",header:"Nome",dataName:_=>`${_.name}`},{columnDef:"updated_at",header:"\xdaltima altera\xe7\xe3o",dataName:_=>(0,m.wl)(_.updated_at,!0)},{columnDef:"buttonOptions",dataName:_=>`${_.id}`,buttonConfig:{header:"",icon:null,title:"Op\xe7\xf5es",rowAction:!0}}],this.menuOptions=[{icon:"edit",title:"Editar",action:this.editPortal},{icon:"rbLinkIcon",title:"Visualizar",action:_=>this.viewProcess(_)},{icon:"rbDoubleIcon",title:"Copiar link",action:_=>this.copyLink(_)},{icon:"delete",title:"Excluir",style:{color:"#dc3545"},action:_=>this.openDeleteDialog(_)}],this.formulario=this.formBuilder.group({portal:this.formBuilder.array([])})}ngOnInit(){this.loaderService.setChangesLoaderState(!0),this.servicePortal.listAll().subscribe(o=>{Array.isArray(o)?(this.dataSP=o,this.metaCount=o.length,this.display=!0,this.setValueForm(o),0===o.length?this.getSettingsTbc():setTimeout(()=>{this.loaderService.setChangesLoaderState(!1)},500)):this.loaderService.setChangesLoaderState(!1,"N\xe3o foi poss\xedvel carregar os portais, tente novamente mais tarde !","ok","alert")},o=>{this.loaderService.setChangesLoaderState(!1,o.body,"","error",o.title,1e5)}),this.builderFilter()}createPortal(){this.loaderService.setChangesLoaderState(!0),this.servicePortal.createNoParam().subscribe(o=>{o.success?setTimeout(()=>{this.loaderService.setChangesLoaderState(!1),this.route.navigate(["administrativo/portal/",o.data])},1e3):this.loaderService.setChangesLoaderState(!1,"N\xe3o foi poss\xedvel criar o portal, tente novamente mais tarde !","ok","alert")},o=>{this.loaderService.setChangesLoaderState(!1,o.body,"","error",o.title,1e5)})}changeStatusPortal(o){this.loaderService.setChangesLoaderState(!0),this.servicePortal.update({id:o.id}).subscribe(i=>{i.success?(this.loaderService.setChangesLoaderState(!1,`Portal foi ${1===o.id?"desativado":"ativado"}
1 com sucesso !`,"ok","success"),this.changeStatusForm(o),this.crudModel.updateRowData(o)):this.loaderService.setChangesLoaderState(!1,"N\xe3o foi poss\xedvel ativar/desativar o portal, tente novamente mais tarde !","ok","alert")},i=>{this.loaderService.setChangesLoaderState(!1,i.body,"","error",i.title,1e5)})}editPortal(o,s){s.route.navigate(["administrativo/portal/",o.id])}getSettingsTbc(){this.serviceTBC.readBasic().subscribe(o=>{o.success&&((0,m.et)(o.data)?this.getSettingsSystemQuery():(this.loaderService.setChangesLoaderState(!1),setTimeout(()=>{this.confirmService.openSettingsPending("Aten\xe7\xe3o!","Algumas configura\xe7\xf5es n\xe3o foram feitas, utilize o bot\xe3o abaixo para acessar o painel e defini-las.","Configurar").afterClosed().subscribe(s=>{s&&(this.loaderService.setChangesLoaderState(!0),this.route.navigate(["administrativo/definicoes"]))})},300)))},o=>{this.loaderService.setChangesLoaderState(!1,o.body,"","error",o.title,1e5)})}getSettingsSystemQuery(){this.systemQueriesService.createArray({local_id:1}).subscribe(o=>{(0,l.isArray)(o)&&((0,m.Jb)(o)?setTimeout(()=>{this.loaderService.setChangesLoaderState(!1)},150):(this.loaderService.setChangesLoaderState(!1),setTimeout(()=>{this.confirmService.openSettingsPending("Aten\xe7\xe3o!","Algumas configura\xe7\xf5es n\xe3o foram feitas, utilize o bot\xe3o abaixo para acessar o painel e defini-las.","Configurar").afterClosed().subscribe(s=>{s&&(this.loaderService.setChangesLoaderState(!0),this.route.navigate(["administrativo/definicoes"]))})},300)))},o=>{this.loaderService.setChangesLoaderState(!1,o.body,"","error",o.title,1e5)})}changeStatusForm(o){o.status=1===o.status?0:1}setValueForm(o){if(o.length>0){const i=this.formulario.controls.portal.controls;o.forEach((v,d)=>{i.push(this.patchValues(o[d]))}),this.formulario.controls.portal.setValue(o)}}patchValues(o){return this.formBuilder.group(o)}builderFilter(){const o=[[{titulo:"Situa\xe7\xe3o",coluna:"status",optionsFilter:[1,0]},{titulo:"Nome",coluna:"name",optionsFilter:[]}]],[s,i]=o[0];this.formulario.controls.portal.valueChanges.subscribe(v=>{v.map(d=>{"name"===i.coluna&&!1===i.optionsFilter.includes(d.name)&&i.optionsFilter.push(d.name)})}),this.crudModel.buildFilter(o)}viewProcess(o){this.getLinkPortal(o).then(s=>{s&&window.open((E.c.production?"https://":"http://")+s,"_blank").focus()})}copyLink(o){this.getLinkPortal(o).then(s=>{if(s){const i=document.createElement("textarea");document.body.appendChild(i),i.value=s,i.select(),document.execCommand("copy"),document.body.removeChild(i),this.serviceNotification.notificationOpen("Link do Portal copiado com sucesso","Ok","success",1e5,"Sucesso")}})}getLinkPortal(o){return this.loaderService.setChangesLoaderState(!0),new Promise((s,i)=>{this.domainPortalService.read(o.id).subscribe(v=>{const d=0===v.data.option_domain?v.data.system_domain:v.data.client_domain;this.loaderService.setChangesLoaderState(!1),s(d)},v=>{this.loaderService.setChangesLoaderState(!1),this.serviceNotification.notificationOpen("Erro ao buscar dados de dom\xednio do portal","Ok","error",1e5,"ERROR TOTVS"),s(!1)})})}openDeleteDialog(o){this.dialog.open(y.m,{width:"445px",minHeight:"345px",data:{titleDialog:"Aten\xe7\xe3o",titleButton:"Eu entendo as consequ\xeancias, delete o portal",component:h.A,element:o,headerRed:!0},autoFocus:!1,disableClose:!0}).beforeClosed().subscribe(i=>{!0===i&&this.deletePortal(o)})}deletePortal(o){this.loaderService.setChangesLoaderState(!0),this.servicePortal.delete(o.id).subscribe(s=>{s.success?(this.servicePortal.listAll().subscribe(i=>{Array.isArray(i)&&(this.dataSP=i,this.metaCount=i.length,this.display=!0,0===i.length?this.getSettingsTbc():setTimeout(()=>{this.loaderService.setChangesLoaderState(!1)},500))}),this.crudModel.refreshTable(),this.loaderService.setChangesLoaderState(!1,s.data,"ok","success")):this.loaderService.setChangesLoaderState(!1,"N\xe3o foi poss\xedvel deletar o portal, tente novamente mais tarde !","ok","alert")},s=>{this.loaderService.setChangesLoaderState(!1,s.body,"","error",s.title,1e5)})}static{this.\u0275fac=function(s){return new(s||u)(e.rXU(c._),e.rXU(r.Ix),e.rXU(O.bZ),e.rXU(C.Z),e.rXU(P.S),e.rXU(n.F),e.rXU(g.r),e.rXU(f._),e.rXU(L.G),e.rXU(x.ze),e.rXU(b.J))}}static{this.\u0275cmp=e.VBU({type:u,selectors:[["app-home"]],decls:8,vars:13,consts:[["fxLayout","column","fxFlex","100","fxFill",""],["fxLayout","row","class","ps-row",4,"ngIf"],["appearance","outlined",1,"ps-home-card",3,"ngClass"],["fxFlex","","fxLayoutAlign","center center",4,"ngIf"],["fxFlex","",3,"displaycrud"],["fxLayout","row"],["fxFlex",""],[3,"re
1ceivedDataChange","columnsChange","metaCountChange","clickedMenuButton","receivedData","columns","metaCount","msgCrudEmpty","parentScope","menuOptions","statusFilter"],["fxLayout","row",1,"ps-row"],["fxFlex","","fxLayoutAlign","start center"],["mat-raised-button","","color","primary",3,"click"],["fxFlex","","fxLayoutAlign","center center"],["fxLayoutAlign","center center",1,"ps-home-content-logo"],["width","60","src","../../../../../../assets/images/logo/logo-ps.svg","alt","LOGO INSCRI\xc7\xd5ES E MATR\xcdCULAS"],["fxLayoutAlign","center center"],[1,"ps-title-info-large","ps-home-title"],[1,"ps-reading-15","ps-home-info"]],template:function(s,i){1&s&&(e.j41(0,"div",0),e.DNE(1,B,4,0,"div",1),e.j41(2,"mat-card",2),e.DNE(3,K,15,0,"mat-card-content",3),e.j41(4,"div",4)(5,"div",5)(6,"div",6)(7,"app-crud",7),e.mxI("receivedDataChange",function(d){return e.DH7(i.dataSP,d)||(i.dataSP=d),d})("columnsChange",function(d){return e.DH7(i.columns,d)||(i.columns=d),d})("metaCountChange",function(d){return e.DH7(i.metaCount,d)||(i.metaCount=d),d}),e.bIt("clickedMenuButton",function(d){return i.changeStatusPortal(d)}),e.k0s()()()()()()),2&s&&(e.R7$(),e.Y8G("ngIf",i.dataSP.length>0),e.R7$(),e.Y8G("ngClass",e.eq3(11,U,i.dataSP.length>0)),e.R7$(),e.Y8G("ngIf",0===i.dataSP.length&&i.display),e.R7$(),e.Y8G("displaycrud",i.dataSP.length),e.R7$(3),e.R50("receivedData",i.dataSP)("columns",i.columns)("metaCount",i.metaCount),e.Y8G("msgCrudEmpty",i.msgCrudEmpty)("parentScope",i)("menuOptions",i.menuOptions)("statusFilter",!0))},dependencies:[M.YU,M.bT,T.$z,F.RN,F.m2,D.DJ,D.sA,D.G2,D.UI,A.PW,I.g,R.i],styles:[".ps-home-title[_ngcontent-%COMP%]{text-align:center}.ps-home-info[_ngcontent-%COMP%]{color:gray;text-align:center;margin:.67em 0 2em}.ps-home-card[_ngcontent-%COMP%]{height:100%}.ps-home-card[_ngcontent-%COMP%]   mat-card-content[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%]{height:100%}.ps-home-crud[_ngcontent-%COMP%]{height:auto!important}"]})}}return u})()}];let j=(()=>{class u{static{this.\u0275fac=function(s){return new(s||u)}}static{this.\u0275mod=e.$C({type:u})}static{this.\u0275inj=e.G2t({imports:[r.iI.forChild(W),r.iI]})}}return u})();var G=t(80070),N=t(86616);let V=(()=>{class u{static{this.\u0275fac=function(s){return new(s||u)}}static{this.\u0275mod=e.$C({type:u})}static{this.\u0275inj=e.G2t({imports:[M.MD,j,a.G,G.B,N.D]})}}return u})()},86616:(S,p,t)=>{t.d(p,{D:()=>m});var a=t(60177),r=t(4280),c=t(54438);let m=(()=>{class n{static{this.\u0275fac=function(h){return new(h||n)}}static{this.\u0275mod=c.$C({type:n})}static{this.\u0275inj=c.G2t({imports:[a.MD,r.G]})}}return n})()},1097:(S,p,t)=>{t.d(p,{G:()=>m});var a=t(51269),r=t(54438),c=t(34006);let m=(()=>{class n{constructor(l){this.dialog=l}openConfirm(l,h,f="OK",y="Cancelar",E=!1,e=!0,O=""){return this.dialog.open(a.Y,{maxWidth:"80vw",width:"330px",minHeight:"187px",autoFocus:!1,data:{title:l,message:h,btnOkText:f,btnCancelText:y,reverseBtn:E,customClassContainer:O},disableClose:e})}openSettingsPending(l,h,f="OK"){return this.dialog.open(a.Y,{maxWidth:"60vw",width:"325px",minHeight:"250px",autoFocus:!1,data:{title:l,message:h,btnOkText:f},disableClose:!0})}static{this.\u0275fac=function(h){return new(h||n)(r.KVO(c.bZ))}}static{this.\u0275prov=r.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})()},80070:(S,p,t)=>{t.d(p,{B:()=>n});var a=t(60177),r=t(4280),c=t(58522),m=t(54438);let n=(()=>{class g{static{this.\u0275fac=function(f){return new(f||g)}}static{this.\u0275mod=m.$C({type:g})}static{this.\u0275inj=m.G2t({imports:[a.MD,r.G,c.T]})}}return g})()},40697:(S,p,t)=>{t.d(p,{A:()=>y});var a=t(54438),r=t(89417),c=t(32575),m=t(88834),n=t(32102),g=t(59042),l=t(34006),h=t(52920);class f{static macthValue(e){return O=>{const C=O.value;return C&&C==e?null:{macthValue:!0}}}}let y=(()=>{class E{constructor(O,C){this.formBuilder=O,this.dataComponent=C,this.formulario=this.formBuilder.group({element_name:[null,f.macthValue(C.data.element?.name)]})}ngOnInit(){}get f(){return this.formulario.controls}static{this.\u0275fac=function(C){return new(C||E)(a.rXU(r.ze),a.rXU(c.m))}}static{this.\u0275cmp=a.VBU({type:E,selectors:[["app-dialog-confirm-element-deletion"]],decls:30,vars:7,consts:[[3,"formGroup"],["fxLayout","row"],["fxFlex","","fxLayoutAlign","center center"],[1,"ps-title-large","ps-confirm-element-delete-title"],["fxLayout","row",1,"ps-confirm-element-delete-desc-content"],[1,"ps-description-14"],[1,"ps-dialog-element-name"],["fxLayout","column",1,"ps-confirm-element-delete-opts-content"],["fxFlex",""],["appearance","fill","fxFlex","",1,"ps-dialog-form-field",3,"formGroup"],["type","text","matInput","","formControlName","element_name"],[1,"ps-dialog-container-actions"],["fxLayout","row","fxFill","",2,"margin-top","2px"],["fxFlex","","fxLayoutAlign","end center",1,"ps-dialog-content-actions"],["mat-raised-button","","color","primary",1,"ps-dialog-delete-button","mat-raised-button",3,"click","disabled","mat-dialog-close"]],template:function(C,P){1&C&&(a.j41(0,"form",0)(1,"div")(2,"div",1)(3,"div",2)(4,"h3",3),a.EFF(5," Voc\xea tem certeza? "),a.k0s()()(),a.j41(6,"div",4)(7,"div",2)(8,"p",5),a.EFF(9," Esta a\xe7\xe3o "),a.j41(10,"strong"),a.EFF(11,"n\xe3o pode"),a.k0s(),a.EFF(12," ser desfeita. Isso excluir\xe1 permanentemente o "),a.j41(13,"strong",6),a.EFF(14),a.k0s(),a.EFF(1
15," e remover\xe1 todas as associa\xe7\xf5es dele. "),a.k0s()()(),a.j41(16,"div",7)(17,"p",5),a.EFF(18," Digite "),a.j41(19,"strong",6),a.EFF(20),a.k0s(),a.EFF(21," para confirmar. "),a.k0s(),a.j41(22,"div",8)(23,"mat-form-field",9),a.nrm(24,"input",10),a.k0s()()(),a.j41(25,"mat-dialog-actions",11)(26,"div",12)(27,"div",13)(28,"button",14),a.bIt("click",function(){return P.dataComponent.data.confirmed=P.formulario.valid}),a.EFF(29),a.k0s()()()()()()),2&C&&(a.Y8G("formGroup",P.formulario),a.R7$(14),a.JRh(P.dataComponent.data.element.name),a.R7$(6),a.JRh(P.dataComponent.data.element.name),a.R7$(3),a.Y8G("formGroup",P.formulario),a.R7$(5),a.Y8G("disabled",!P.formulario.valid)("mat-dialog-close",!0),a.R7$(),a.SpI(" ",P.dataComponent.data.titleButton," "))},dependencies:[r.qT,r.me,r.BC,r.cb,r.j4,r.JD,m.$z,n.rl,g.fg,l.tx,l.E7,h.DJ,h.sA,h.G2,h.UI],styles:[".mdc-label{white-space:pre-line!important;padding-bottom:8px;padding-top:8px;align-items:end!important}.confirm-action-message[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-family:Poppins;font-style:normal;font-weight:500;font-size:16px;line-height:24px;text-align:center}.confirm-action-message[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Roboto;font-style:italic;font-weight:400;font-size:14px;line-height:18px;letter-spacing:.025em;margin-left:20%;margin-right:20%}.ps-confirm-element-delete-title[_ngcontent-%COMP%]{margin-top:2em}.ps-confirm-element-delete-desc-content[_ngcontent-%COMP%]{padding:0 24px;text-align:justify}.ps-confirm-element-delete-opts-content[_ngcontent-%COMP%]{padding-inline:24px}.ps-dialog-content-actions[_ngcontent-%COMP%]{padding:10px 24px}.ps-dialog-content-actions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:first-child{margin-right:21px}.ps-divider-margin[_ngcontent-%COMP%]{margin-bottom:0!important}.ps-dialog-container-actions[_ngcontent-%COMP%]{display:block;position:absolute;bottom:0;left:0;min-height:unset;width:100%;padding:0;margin:0;background:#fff}  .mat-mdc-dialog-container{position:relative;padding:0;width:100%;height:auto;overflow:hidden}  .mat-mdc-dialog-content{margin:0;padding:0;max-height:100%}button.ps-dialog-delete-button[_ngcontent-%COMP%]{width:100%}button.ps-dialog-delete-button[_ngcontent-%COMP%]:enabled{color:#f7685b;background-color:#fff}button.ps-dialog-delete-button[_ngcontent-%COMP%]:hover:enabled{background-color:#f7685b;color:#fff}.ps-dialog-form-field[_ngcontent-%COMP%]     .mat-mdc-form-field-flex{padding:0 .75em}.ps-dialog-element-name[_ngcontent-%COMP%]{white-space:pre-wrap}"]})}}return E})()},83225:(S,p,t)=>{t.d(p,{J:()=>m});var a=t(76085),r=t(54438),c=t(95416);let m=(()=>{class n{constructor(l){this.snackBar=l}notificationOpen(l,h,f,y,E){this.snackBar.openFromComponent(a.z,{panelClass:f,duration:y,data:{title:E,msg:l,act:h,type:f}})}static{this.\u0275fac=function(h){return new(h||n)(r.KVO(c.UG))}}static{this.\u0275prov=r.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})()},32025:(S,p,t)=>{t.d(p,{g:()=>r});var a=t(54438);let r=(()=>{class c{constructor(n){this.el=n}ngOnChanges(){this.el.nativeElement.style.display=0===this.dataLength?"none":"block"}static{this.\u0275fac=function(g){return new(g||c)(a.rXU(a.aKT))}}static{this.\u0275dir=a.FsC({type:c,selectors:[["","displaycrud",""]],inputs:{dataLength:[a.Mj6.None,"displaycrud","dataLength"]},features:[a.OA$]})}}return c})()}}]);

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.