PageSourceSearch

https://inscricao.mackenzie.br/2030.e29ad74f83832108.js

js mackenzie.br collected 2026-10-01 09:07:01 UTC 76,646 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkprocesso_seletivo=self.webpackChunkprocesso_seletivo||[]).push([[2030],{32157:(w,I,a)=>{a.d(I,{Q:()=>f});var e=a(6688),i=a(94219),x=a(45312),b=a(54438),M=a(21626);let f=(()=>{class s extends e.Q{constructor(t){super(t,`${x.c.API}`,"settings/totvs-query/show",new i.U)}static{this.\u0275fac=function(T){return new(T||s)(b.KVO(M.Qq))}}static{this.\u0275prov=b.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})()},62125:(w,I,a)=>{a.d(I,{r:()=>f});var e=a(6688),i=a(94219),x=a(45312),b=a(54438),M=a(21626);let f=(()=>{class s extends e.Q{constructor(t){super(t,`${x.c.API}`,"settings/totvs-query/list",new i.U)}static{this.\u0275fac=function(T){return new(T||s)(b.KVO(M.Qq))}}static{this.\u0275prov=b.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})()},66879:(w,I,a)=>{a.d(I,{YA:()=>M,lB:()=>x,zN:()=>b});const e=["selective_process_id","applyment_edit_page_id"];function i(f){return String(f??"").trim().toLowerCase().split(" ").join("_")}function x(f){const P=[],t={};return(f??[]).forEach((T,G)=>{const A=String(T?.name??"").trim()||`Novo campo ${G+1}`,v=i(A);P.push(A);const C=Number(T?.parameter_type_id);t[v]=1===C?T?.field_id?.label||T?.field_id?.name||"":4===C?T?.alias??"":2===C?T?.fixed_value??"":""}),{fields:P,data:t}}function b(f=e){return s=>{if(null==s.value||""===s.value)return null;const P=i(String(s.value));return f.includes(P)?{forbiddenName:!0}:null}}function M(f){return s=>{if(null==s.value||""===s.value)return null;const P=i(String(s.value));if(!P)return null;const t=f();if(!t?.controls?.length)return null;const G=t.controls.indexOf(s.parent);return G<0?null:t.controls.some((A,v)=>{if(v>=G)return!1;const C=A.get("name")?.value;return null!=C&&""!==C&&i(String(C))===P})?{duplicateKey:!0}:null}}},86616:(w,I,a)=>{a.d(I,{D:()=>b});var e=a(60177),i=a(4280),x=a(54438);let b=(()=>{class M{static{this.\u0275fac=function(P){return new(P||M)}}static{this.\u0275mod=x.$C({type:M})}static{this.\u0275inj=x.G2t({imports:[e.MD,i.G]})}}return M})()},27961:(w,I,a)=>{a.d(I,{T:()=>G});var e=a(89417),i=a(54438),x=a(32575),b=a(60177),M=a(88834),f=a(71997),s=a(34006),P=a(5951),t=a(52920);function T(B,A){if(1&B&&(i.j41(0,"mat-radio-button",16),i.EFF(1),i.k0s()),2&B){const v=A.$implicit;i.Y8G("value",v.id),i.R7$(),i.SpI(" ",v.title," ")}}let G=(()=>{class B{constructor(v,C){this.formBuilder=v,this.dateComponent=C,this.dialogOptions=[{id:"1",title:"Alterar configura\xe7\xf5es de todos os portais"},{id:"0",title:"Utilizar essa altera\xe7\xe3o como configura\xe7\xe3o padr\xe3o para todos os novos portais"}]}ngOnInit(){this.formulario=this.formBuilder.group({cascade_change:[null,e.k0.required]})}get f(){return this.formulario.controls}static{this.\u0275fac=function(C){return new(C||B)(i.rXU(e.ze),i.rXU(x.m))}}static{this.\u0275cmp=i.VBU({type:B,selectors:[["app-dialog-confirm-change-general-settings"]],decls:26,vars:5,consts:[[3,"formGroup"],["fxLayout","row"],["fxFlex","","fxLayoutAlign","center center"],[1,"ps-title-large","ps-confirm-change-settings-title"],["fxLayout","row",1,"ps-confirm-change-settings-desc-content"],[1,"ps-description-14"],["fxLayout","row",1,"ps-confirm-change-settings-opts-content"],["fxFlex",""],["fxLayout","column","color","primary","formControlName","cascade_change"],[3,"value",4,"ngFor","ngForOf"],[1,"ps-dialog-container-actions"],["fxFlex","100"],["fxLayout","row","fxFill","",2,"margin-top","2px"],["fxFlex","","fxLayoutAlign","end center",1,"ps-dialog-content-actions"],["mat-stroked-button","",3,"mat-dialog-close"],["mat-raised-button","","color","primary",3,"click","disabled","mat-dialog-close"],[3,"value"]],template:function(C,_){1&C&&(i.j41(0,"form",0)(1,"div")(2,"div",1)(3,"div",2)(4,"h3",3),i.EFF(5,"Voc\xea est\xe1 alterando uma configura\xe7\xe3o geral"),i.k0s()()(),i.j41(6,"div",4)(7,"div",2)(8,"p",5),i.EFF(9," Isso pode afetar todos os portais e consequentemente todos os "),i.nrm(10,"br"),i.EFF(11," processos seletivos j\xe1 editados. Escolha uma das op\xe7\xf5es abaixo: "),i.k0s()()(),i.j41(12,"div",6)(13,"div",7)(14,"mat-radio-group",8),i.DNE(15,T,2,2,"mat-radio-button",9),i.k0s()()(),i.j41(16,"mat-dialog-actions",10)(17,"div",1)(18,"div",11),i.nrm(19,"mat-divider"),i.k0s()(),i.j41(20,"div",12)(21,"div",13)(22,"a",14),i.EFF(23,"Cancelar"),i.k0s(),i.j41(24,"button",15),i.bIt("click",function(){return _.dateComponent.data.cascade_change=_.f.cascade_change.value}),i.EFF(25," Salvar "),i.k0s()()()()()()),2&C&&(i.Y8G("formGroup",_.formulario),i.R7$(15),i.Y8G("ngForOf",_.dialogOptions),i.R7$(7),i.Y8G("mat-dialog-close",!1),i.R7$(2),i.Y8G("disabled",!_.formulario.valid)("mat-dialog-close",!0))},dependencies:[b.Sq,e.qT,e.BC,e.cb,e.j4,e.JD,M.It,M.$z,f.q,s.tx,s.E7,P.VT,P._g,t.DJ,t.sA,t.G2,t.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;text-align:center;letter-spacing:.025em;margin-left:20%;margin-right:20%}.ps-confirm-change-settings-title[_ngcontent-%COMP%]{margin-top:2em}.ps-confirm-change-settings-desc-content[_ngcontent-%COMP%]{padding:0 40px;text-align:center}.ps-confirm-change-settings-opts-content[_ngcontent-%COMP%]{padding:24px}.ps-dialog-content-actions[_ngcontent-%COMP%]{padding:10px 20px}.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}  .mat-mdc-dialog-content{margin:0;padding:0;max-height:100%}"]})}}return B})()},40697:(w,I,a)=>{a.d(I,{A:()=>T});var e=a(54438),i=a(89417),x=a(32575),b=a(88834),M=a(32102),f=a(59042),s=a(34006),P=
1a(52920);class t{static macthValue(B){return A=>{const v=A.value;return v&&v==B?null:{macthValue:!0}}}}let T=(()=>{class G{constructor(A,v){this.formBuilder=A,this.dataComponent=v,this.formulario=this.formBuilder.group({element_name:[null,t.macthValue(v.data.element?.name)]})}ngOnInit(){}get f(){return this.formulario.controls}static{this.\u0275fac=function(v){return new(v||G)(e.rXU(i.ze),e.rXU(x.m))}}static{this.\u0275cmp=e.VBU({type:G,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(v,C){1&v&&(e.j41(0,"form",0)(1,"div")(2,"div",1)(3,"div",2)(4,"h3",3),e.EFF(5," Voc\xea tem certeza? "),e.k0s()()(),e.j41(6,"div",4)(7,"div",2)(8,"p",5),e.EFF(9," Esta a\xe7\xe3o "),e.j41(10,"strong"),e.EFF(11,"n\xe3o pode"),e.k0s(),e.EFF(12," ser desfeita. Isso excluir\xe1 permanentemente o "),e.j41(13,"strong",6),e.EFF(14),e.k0s(),e.EFF(15," e remover\xe1 todas as associa\xe7\xf5es dele. "),e.k0s()()(),e.j41(16,"div",7)(17,"p",5),e.EFF(18," Digite "),e.j41(19,"strong",6),e.EFF(20),e.k0s(),e.EFF(21," para confirmar. "),e.k0s(),e.j41(22,"div",8)(23,"mat-form-field",9),e.nrm(24,"input",10),e.k0s()()(),e.j41(25,"mat-dialog-actions",11)(26,"div",12)(27,"div",13)(28,"button",14),e.bIt("click",function(){return C.dataComponent.data.confirmed=C.formulario.valid}),e.EFF(29),e.k0s()()()()()()),2&v&&(e.Y8G("formGroup",C.formulario),e.R7$(14),e.JRh(C.dataComponent.data.element.name),e.R7$(6),e.JRh(C.dataComponent.data.element.name),e.R7$(3),e.Y8G("formGroup",C.formulario),e.R7$(5),e.Y8G("disabled",!C.formulario.valid)("mat-dialog-close",!0),e.R7$(),e.SpI(" ",C.dataComponent.data.titleButton," "))},dependencies:[i.qT,i.me,i.BC,i.cb,i.j4,i.JD,b.$z,M.rl,f.fg,s.tx,s.E7,P.DJ,P.sA,P.G2,P.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}
1.ps-dialog-element-name[_ngcontent-%COMP%]{white-space:pre-wrap}"]})}}return G})()},8073:(w,I,a)=>{a.d(I,{U:()=>nt});var e=a(89417),i=a(44089),x=a(70434),b=a(93337),M=a(99172),f=a(96354),s=a(32575),P=a(27961),t=a(54438),T=a(34006),G=a(60033),B=a(37505),A=a(60177),v=a(32102),C=a(82798),_=a(86600),W=a(59042),h=a(71997),S=a(30450),D=a(60850),y=a(52920),L=a(16038),F=a(85249),Y=a(93181),k=a(79354);const N=E=>({"ps-row-empty":E}),Q=E=>({"ps-display-table":E}),X=()=>["title","description","remove"],K=(E,$)=>({data:E,key:$});function z(E,$){if(1&E&&(t.j41(0,"div",27)(1,"p"),t.EFF(2,"Descri\xe7\xe3o"),t.k0s(),t.j41(3,"span"),t.EFF(4),t.k0s()()),2&E){const d=t.XpG();t.R7$(4),t.JRh(d.item.description)}}function J(E,$){if(1&E&&(t.j41(0,"mat-option",28),t.EFF(1),t.k0s()),2&E){const d=$.$implicit;t.Y8G("value",t.l_i(2,K,d,$.index)),t.R7$(),t.SpI(" ",d.label," ")}}function q(E,$){1&E&&(t.j41(0,"div",29)(1,"span"),t.EFF(2," Ainda n\xe3o foram selecionados os campos do sistema, clique em \u201cCampos do sistema\u201d para incluir na configura\xe7\xe3o da consulta. "),t.k0s()())}function H(E,$){1&E&&(t.j41(0,"mat-error"),t.EFF(1," Campo obrigat\xf3rio "),t.k0s())}function Z(E,$){1&E&&(t.j41(0,"mat-error"),t.EFF(1," Campo obrigat\xf3rio "),t.k0s())}function tt(E,$){1&E&&(t.j41(0,"mat-error"),t.EFF(1," Campo obrigat\xf3rio "),t.k0s())}function et(E,$){if(1&E&&(t.j41(0,"mat-option",28),t.EFF(1),t.k0s()),2&E){const d=$.$implicit;t.Y8G("value",d.value),t.R7$(),t.JRh(d.name)}}function at(E,$){if(1&E&&(t.j41(0,"mat-form-field",30)(1,"mat-label"),t.EFF(2,"Frequ\xeancia"),t.k0s(),t.j41(3,"mat-select",31),t.DNE(4,et,2,2,"mat-option",10),t.k0s()()),2&E){const d=t.XpG();t.R7$(4),t.Y8G("ngForOf",d.intervals)}}let nt=(()=>{class E{constructor(d,c,u,p,j,n,m){this.dialogRef=d,this.formBuilder=c,this.dataComponent=u,this.addsPareamentsService=p,this.saveEditQueryDataService=j,this.loaderService=n,this.dialog=m,this.contextConfig={control_name:"context",toggle_name:"active_context"},this.parametersConfig={control_name:"parameters",toggle_name:"active_paramn"},this.nameFields=[{name:"CODCOLIGADA",disabled:!1}],this.standardFieldsOne=[],this.standardFieldsTwo=[],this.selectedValue=[],this.intervals=[{value:1,name:"15 minutos"},{value:2,name:"30 minutos"},{value:3,name:"1 hora"},{value:4,name:"2 horas"},{value:5,name:"3 horas"},{value:6,name:"6 horas"},{value:7,name:"12 horas"},{value:8,name:"Di\xe1rio"},{value:9,name:"Semanal"}]}ngOnInit(){this.formulario=this.formBuilder.group({id:[null],fields:[null],colligate:[null,e.k0.required],system:[null,e.k0.required],code:[null,e.k0.required],use_cache:[null],cache_interval_type_id:[null],[this.contextConfig.toggle_name]:[!1],[this.contextConfig.control_name]:this.formBuilder.array([],b.W.slideToggle(this.contextConfig.toggle_name)),[this.parametersConfig.toggle_name]:[!1],[this.parametersConfig.control_name]:this.formBuilder.array([],b.W.slideToggle(this.parametersConfig.toggle_name))});const d=Array.isArray(this.dataComponent.data.standardFields)?this.dataComponent.data.standardFields:[];this.standardFieldsOne=JSON.parse(JSON.stringify(d)),this.standardFieldsTwo=JSON.parse(JSON.stringify(d)),this.item=this.dataComponent.data.queryData,this.tbcData=this.dataComponent.data.tbcData,this.buildAction(),this.initAutoComplete()}initAutoComplete(){this.filteredOptions=this.formulario.get("fields").valueChanges.pipe((0,M.Z)(""),(0,f.T)(d=>d?this._filter(d):this.standardFieldsOne.slice()))}optionSelected(d){d.option.value.data.title=this.tbcData.use_totvs_oracle?d.option.value.data.totvs_alternative_name:`${d.option.value.data.totvs_table}.${d.option.value.data.totvs_field}`,d.option.value.data.description="O valor presente ser\xe1 exibidos para o usu\xe1rio.",this.selectedValue.push(d.option.value.data),this.standardFieldsOne=this.standardFieldsOne.filter(u=>u.field_id!==d.option.value.data.field_id),this.initAutoComplete()}remove(d){this.standardFieldsOne.push(d);for(let c=this.selectedValue.length;c--;)this.selectedValue[c].field_id===d.field_id&&(console.log(this.selectedValue[c]),this.selectedValue.splice(c,1));this.initAutoComplete()}displayFn(d){return d?d.label:void 0}_filter(d){if("string"==typeof d){const c=d.toLowerCase();return this.standardFieldsOne.filter(u=>u.label.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(c)).sort((u,p)=>u.label.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")<p.label.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")?-1:u.label.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")>p.label.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")?1:0)}return[]}openDialog(){if(typeof this.dataComponent.data.queryData.portal_id>"u"||null===this.dataComponent.data.queryData.portal_id){const d=this.dialog.open(s.m,{width:"754px",height:"373px",data:{titleDialog:"Aten\xe7\xe3o",titleButton:"Salvar",component:P.T,cascade_change:null,headerRed:!0},autoFocus:!1,disableClose:!0});d.beforeClosed().subscribe(c=>{"boolean"==typeof c&&c&&d.afterClosed().subscribe(u=>{this.onSubmit((0,x.C$)(u.data.cascade_change,null))})})}else this.onSubmit(null)}onSubmit(d){this.item.parameters.filter(c=>{c.field_id&&(c.field_id=c.field_id.field_id)}),this.item.context.filter(c=>{c.field_id&&(c.field_id=c.field_id.field_id)}),this.item.fields=this.item.fields.filter(c=>1!==c.fixed),this.item.cascade_change=d,this.loaderService.setChangesLoaderState(!0),this.saveEditQueryDataService.create(this.item).subscribe(c=>{c.success?(this.loaderService.setChangesLoaderState(!1,"Consulta configurada com sucesso","ok","success"),this.dialogRef.close(!0)):this.loaderService.setChangesLoaderState(!1,"N\xe3o foi poss\xedvel configurar a consulta, tente novamente mais tarde !","ok","alert")},c=>{this.loaderService.setChangesLoaderState(!1,c.body,"","error",c.title,1e5)})}buildAction(){this.setFormulario([this.item]),this.standardFieldsOne.forEach(d=>{const c=this.item.fields.find(u=>u.field_id===d.field_id);c&&(c.label=d.label,c.totvs_field=d.totvs_field,c.totvs_table=d.totvs_table,c.totvs_alternative_name=d.totvs_alternative_name)}),this.standardFieldsOne=(0,x.HL)(this.standardFieldsOne,this.item.fields,"field_id"),this.selectedValue=this.item.fields,this.formulario.valueChanges.subscribe(d=>{this.item.colligate=d.colligate,this.item.code=d.code,this.item.system=d.system,this.item.use_cache=d.use_cache,this.item.cache_interval_type_id=d.cache_interval_type_id,this.item[this.contextConfig.control_name]=this.formulario.getRawValue()[this.contextConfig.control_name],this.item[this.parametersConfig.control_name]=this.formulario.getRawValue()[this.parametersConfig.control_name],this.item.fields=this.selectedValue})}setFormulario(d){d.filter(c=>{this.formulario.patchValue({id:c.id,colligate:c.colligate,system:c.system,code:c.code,use_cache:c.use_cache,cache_interval_type_id:c.cache_interval_type_id}),this.controlValuesParameters(c,this.contextConfig),this.controlValuesParameters(c,this.parametersConfig)}
1)}controlValuesParameters(d,c){const u=d[c.control_name];Array.isArray(u)&&u.length>0?(this[c.control_name]=u,this.addsPareamentsService.setValuesParameters(u,c.control_name)):typeof this[c.control_name]<"u"&&(this[c.control_name].controls=[],this[c.control_name].reset([]))}get f(){return this.formulario.controls}static{this.\u0275fac=function(c){return new(c||E)(t.rXU(T.CP),t.rXU(e.ze),t.rXU(s.m),t.rXU(G.g),t.rXU(i.j),t.rXU(B.Z),t.rXU(T.bZ))}}static{this.\u0275cmp=t.VBU({type:E,selectors:[["app-dialog-query-portal-edit"]],decls:47,vars:33,consts:[["auto","matAutocomplete"],["input",""],[3,"ngSubmit","formGroup"],[1,"ps-btn-totvs-consult-general-container"],["fxLayout","column","class","ps-row-custom description",4,"ngIf"],["fxLayout","row",1,"ps-row-custom"],["fxFlex",""],["appearance","fill","fxFlex","50"],["type","text","matInput","","formControlName","fields",3,"matAutocomplete"],[3,"optionSelected","displayWith"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row",1,"ps-row-custom-two",3,"ngClass"],["class","ps-btn-totvs-consult-general-info",4,"ngIf"],[3,"clickedButtonRemove","removeRow","dataSource","displayedColumns"],["fxLayout","row","fxLayoutGap","20px"],["appearance","fill","fxFlex","18"],["matInput","","formControlName","colligate","required",""],[4,"ngIf"],["matInput","","formControlName","system","required",""],["matInput","","formControlName","code","required",""],["color","primary","formControlName","use_cache"],["appearance","fill","fxFlex","20",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["nameToggle","Enviar contexto","clearParametersOnUncheckToggle","true",3,"identification","nameFields","nameFieldsDisabled","systemFields","parameters","formulario"],[3,"identification","systemFields","parameters","formulario"],[3,"form"],["fxLayout","column",1,"ps-row-custom","description"],[3,"value"],[1,"ps-btn-totvs-consult-general-info"],["appearance","fill","fxFlex","20"],["formControlName","cache_interval_type_id"]],template:function(c,u){if(1&c){const p=t.RV6();t.j41(0,"form",2),t.bIt("ngSubmit",function(){return t.eBV(p),t.Njj(u.openDialog())}),t.j41(1,"div",3),t.DNE(2,z,5,1,"div",4),t.j41(3,"div",5)(4,"div",6)(5,"mat-form-field",7)(6,"mat-label"),t.EFF(7,"Campos do sistema"),t.k0s(),t.nrm(8,"input",8),t.j41(9,"mat-autocomplete",9,0),t.bIt("optionSelected",function(n){return t.eBV(p),t.Njj(u.optionSelected(n))}),t.DNE(11,J,2,5,"mat-option",10),t.nI1(12,"async"),t.k0s()()()(),t.j41(13,"div",11)(14,"div",6),t.DNE(15,q,3,0,"div",12),t.k0s()(),t.j41(16,"div",11)(17,"div",6)(18,"app-totvs-query-fields",13),t.bIt("clickedButtonRemove",function(n){return t.eBV(p),t.Njj(u.remove(n))}),t.k0s()()(),t.j41(19,"div",14)(20,"mat-form-field",15)(21,"mat-label"),t.EFF(22,"Coligada"),t.k0s(),t.nrm(23,"input",16,1),t.DNE(25,H,2,0,"mat-error",17),t.k0s(),t.j41(26,"mat-form-field",15)(27,"mat-label"),t.EFF(28,"Cod Sistema"),t.k0s(),t.nrm(29,"input",18,1),t.DNE(31,Z,2,0,"mat-error",17),t.k0s(),t.j41(32,"mat-form-field",15)(33,"mat-label"),t.EFF(34,"Cod Consulta"),t.k0s(),t.nrm(35,"input",19,1),t.DNE(37,tt,2,0,"mat-error",17),t.k0s(),t.j41(38,"mat-slide-toggle",20),t.EFF(39," Utilizar cache "),t.k0s(),t.DNE(40,at,5,1,"mat-form-field",21),t.k0s()(),t.j41(41,"div",22)(42,"div",23),t.nrm(43,"mat-divider"),t.k0s()(),t.nrm(44,"app-adds-pareaments",24)(45,"app-adds-pareaments",25)(46,"app-save-dialog",26),t.k0s()}if(2&c){const p=t.sdS(10);t.Y8G("formGroup",u.formulario),t.R7$(2),t.Y8G("ngIf",u.item.description),t.R7$(6),t.Y8G("matAutocomplete",p),t.R7$(),t.Y8G("displayWith",u.displayFn),t.R7$(2),t.Y8G("ngForOf",t.bMT(12,26,u.filteredOptions)),t.R7$(2),t.Y8G("ngClass",t.eq3(28,N,u.selectedValue.length>0)),t.R7$(2),t.Y8G("ngIf",0===u.selectedValue.length),t.R7$(),t.Y8G("ngClass",t.eq3(30,Q,0===u.selectedValue.length)),t.R7$(2),t.Y8G("removeRow",!0)("dataSource",u.selectedValue)("displayedColumns",t.lJ4(32,X)),t.R7$(7),t.Y8G("ngIf",u.f.colligate.hasError("required")),t.R7$(6),t.Y8G("ngIf",u.f.system.hasError("required")),t.R7$(6),t.Y8G("ngIf",u.f.code.hasError("required")),t.R7$(3),t.Y8G("ngIf",u.formulario.controls.use_cache.value),t.R7$(4),t.Y8G("identification",u.contextConfig)("nameFields",u.nameFields)("nameFieldsDisabled",!0)("systemFields",u.standardFieldsTwo)("parameters",u.context)("formulario",u.formulario),t.R7$(),t.Y8G("identification",u.parametersConfig)("systemFields",u.standardFieldsTwo)("parameters",u.parameters)("formulario",u.formulario),t.R7$(),t.Y8G("form",u.formulario)}},dependencies:[A.YU,A.Sq,A.bT,e.qT,e.me,e.BC,e.cb,e.YS,e.j4,e.JD,v.rl,v.nJ,v.TL,C.VO,_.wT,W.fg,h.q,S.sG,D.$3,D.pN,y.DJ,y.BO,y.UI,L.PW,F.J,Y.go,k.x,A.Jj],styles:[".ps-btn-totvs-consult-general-container[_ngcontent-%COMP%]{padding:24px 24px 20px}.ps-btn-totvs-consult-general-info[_ngcontent-%COMP%]{background:#ffeac7;border-radius:9px;padding:12px}.ps-btn-totvs-consult-general-info[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:Roboto;font-style:italic;font-weight:400;font-size:14px;line-height:129.2%;letter-spacing:.025em;color:#0009;margin:10px 0}.ps-row-custom[_ngcontent-%COMP%]{margin-bottom:10px!important}.ps-row-custom-two[_ngcontent-%COMP%]{margin-bottom:31px}.ps-row-empty[_ngcontent-%COMP%]{margin-bottom:0!important}.ps-display-table[_ngcontent-%COMP%]{display:none!important}.description[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-weight:700}.description[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-bottom:2em}.ps-desc-btn-totvs-consult-general[_ngcontent-%COMP%]{display:block;font-family:Poppins;font-style:normal;font-weight:500;font-size:16px;line-height:24px;color:#4d4d4d;margin-bottom:1em}"]})}}return E})()},3376:(w,I,a)=>{a.d(I,{F:()=>h});var e=a(18359),i=a(6688),x=a(36671);class b extends x.F{}class M{fromJson(D){const y=new b;return typeof D.success<"u"?(y.success=D.success,y.data=this.toJson(D.data),y):this.toJson(D)}toJson(D){return"object"==typeof D?{id:D.id,query:D.sentence,system:D.system,colligate:D.colligate,tbc:D.tbc,description:D.description}:D}}var f=a(45312),s=a(54438),P=a(21626);let t=(()=>{class S extends i.Q{constructor(y){super(y,`${f.c.API}`,"settings/integrations/totvs-integrator/api",new M)}static{this.\u0275fac=function(L){return new(L||S)(s.KVO(P.Qq))}}static{this.\u0275prov=s.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})();
1var T=a(32575),G=a(34737),B=a(37505),A=a(34006),v=a(64052),C=a(89417),_=a(52920),W=a(79354);let h=(()=>{class S{constructor(y,L,F,Y,k){this.dataComponent=y,this.crudModel=L,this.loaderService=F,this.dialogRef=Y,this.totvsIntegratorApiService=k,this.columns=[{columnDef:"check",dataName:N=>`${N.id}`,action:this.optionsCheck},{columnDef:"query",header:"Senten\xe7a",dataName:N=>`${N.query}`},{columnDef:"system",header:"Sistema",dataName:N=>`${N.system}`},{columnDef:"colligate",header:"Coligada",dataName:N=>`${N.colligate}`},{columnDef:"tbc",header:"TBC",dataName:N=>`${N.tbc}`},{columnDef:"description",header:"Descri\xe7\xe3o",dataName:N=>this.formatDataOnCrud(N.description,60)}],this.msgCrudEmpty="Nenhuma a\xe7\xe3o dispon\xedvel para ser adicionada",this.identificationCrud="matSortDialogTotvsActions",this.optionsChecked=[],this.subscriptions=new e.yU,this.availableTotvsActions=[],this.allActions=[],this.loadTotvsActions()}ngOnInit(){}onSubmit(){this.optionsChecked.length>0?(this.dataComponent.data.data={seletedOptions:[...this.optionsChecked]},this.dialogRef.close()):this.loaderService.setChangesLoaderState(!1,"Selecione ao menos uma a\xe7\xe3o","ok","default")}optionsCheck(y,L,F,Y){F.optionsChecked=F.crudModel.getRowChecked(y,L,F.optionsChecked,F,Y)}formatDataOnCrud(y,L=100){return y&&null!==y?y.length>L?y.substring(0,L)+"...":y:"-"}loadTotvsActions(){this.loaderService.setChangesLoaderState(!0),this.totvsIntegratorApiService.listAll().subscribe(y=>{Array.isArray(y)?(this.allActions=[...y],this.removeUsedActions(),this.loaderService.setChangesLoaderState(!1)):this.loaderService.setChangesLoaderState(!1,"N\xe3o foi poss\xedvel listar as a\xe7\xf5es do integrador!","ok","alert")},y=>{this.loaderService.setChangesLoaderState(!1,"N\xe3o foi poss\xedvel listar as a\xe7\xf5es do integrador","ok","alert")})}removeUsedActions(){const y=this.dataComponent.data.data.usedActions??[];this.availableTotvsActions=y.length?[...this.allActions.filter(L=>-1===y.findIndex(F=>F.external_code==L.id))]:[...this.allActions]}ngOnDestroy(){this.subscriptions.unsubscribe()}static{this.\u0275fac=function(L){return new(L||S)(s.rXU(T.m),s.rXU(G.S),s.rXU(B.Z),s.rXU(A.CP),s.rXU(t))}}static{this.\u0275cmp=s.VBU({type:S,selectors:[["ng-component"]],decls:8,vars:10,consts:[[3,"ngSubmit"],[1,"dialog-container"],[1,"ps-reading-15","text-info"],["fxLayout","row"],["fxFlex",""],[3,"receivedDataChange","columnsChange","metaCountChange","receivedData","columns","metaCount","msgCrudEmpty","contentTableClassName","paginatorDisplayed","headerSticky","parentScope","matSortCrud"],[3,"noForm"]],template:function(L,F){1&L&&(s.j41(0,"form",0),s.bIt("ngSubmit",function(){return F.onSubmit()}),s.j41(1,"div",1)(2,"p",2),s.EFF(3,"Selecione as a\xe7\xf5es do Integrador TOTVS que deseja vincular"),s.k0s()(),s.j41(4,"div",3)(5,"div",4)(6,"app-crud",5),s.mxI("receivedDataChange",function(k){return s.DH7(F.availableTotvsActions,k)||(F.availableTotvsActions=k),k})("columnsChange",function(k){return s.DH7(F.columns,k)||(F.columns=k),k})("metaCountChange",function(k){return s.DH7(F.metaCount,k)||(F.metaCount=k),k}),s.k0s()()(),s.nrm(7,"app-save-dialog",6),s.k0s()),2&L&&(s.R7$(6),s.R50("receivedData",F.availableTotvsActions)("columns",F.columns)("metaCount",F.metaCount),s.Y8G("msgCrudEmpty",F.msgCrudEmpty)("contentTableClassName","table-content-dialog")("paginatorDisplayed",!1)("headerSticky",!0)("parentScope",F)("matSortCrud",F.identificationCrud),s.R7$(),s.Y8G("noForm",F.optionsChecked))},dependencies:[v.i,C.qT,C.cb,C.cV,_.DJ,_.UI,W.x],styles:[".dialog-container[_ngcontent-%COMP%]{padding:0 24px}.dialog-container[_ngcontent-%COMP%]:last-of-type{padding-bottom:40px}.text-info[_ngcontent-%COMP%]{color:gray;margin-bottom:10px;margin-top:25px}  .table-content-dialog{max-height:295px;overflow:auto}  .table-content-dialog::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.34);border-radius:0;background-color:#f5f5f5}  .table-content-dialog::-webkit-scrollbar{width:8px;background-color:#f5f5f5}  .table-content-dialog::-webkit-scrollbar-thumb{border-radius:0;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0);background-color:#a9a9a96e}  .dialog-content{max-height:448px!important}"]})}}return S})()},2769:(w,I,a)=>{a.d(I,{y:()=>u});var e=a(89417),i=a(32575),x=a(99172),b=a(96354),M=a(44089),f=a(27961),s=a(70434),P=a(93337),t=a(54438),T=a(34006),G=a(74710),B=a(37505
1),A=a(60033),v=a(60177),C=a(88834),_=a(32102),W=a(82798),h=a(86600),S=a(59042),D=a(71997),y=a(99213),L=a(14823),F=a(30450),Y=a(60850),k=a(52920),N=a(58717);let Q=(()=>{class p{constructor(n){this.el=n.nativeElement}ngAfterViewInit(){this.handleDisable()}ngOnChanges(){this.handleDisable()}handleDisable(){this.needsDisable()?this.el.setAttribute("disabled","true"):this.el.removeAttribute("disabled")}needsDisable(){return"3"===this.data.parameter_type&&"delete"===this.data.action||6==this.data.query_type&&("delete"===this.data.action&&this.data.index<=1||"add"===this.data.action&&0===this.data.index)}static{this.\u0275fac=function(m){return new(m||p)(t.rXU(t.aKT))}}static{this.\u0275dir=t.FsC({type:p,selectors:[["","parameterIconDisable",""]],inputs:{data:[t.Mj6.None,"parameterIconDisable","data"]},features:[t.OA$]})}}return p})();var X=a(85249),K=a(93181),z=a(79354);const J=()=>["title","description"],q=(p,j,n)=>({parameter_type:p,query_type:j,index:n,action:"delete"}),H=(p,j,n)=>({parameter_type:p,query_type:j,index:n,action:"add"});function Z(p,j){if(1&p&&(t.j41(0,"div",21)(1,"p"),t.EFF(2,"Descri\xe7\xe3o"),t.k0s(),t.j41(3,"span"),t.EFF(4),t.k0s()()),2&p){const n=t.XpG();t.R7$(4),t.JRh(n.queryData.description)}}function tt(p,j){if(1&p&&(t.j41(0,"mat-option",25),t.EFF(1),t.k0s()),2&p){const n=j.$implicit;t.Y8G("value",n.value),t.R7$(),t.JRh(n.name)}}function et(p,j){if(1&p){const n=t.RV6();t.j41(0,"mat-form-field",22)(1,"mat-label"),t.EFF(2,"Frequ\xeancia"),t.k0s(),t.j41(3,"mat-select",23),t.mxI("ngModelChange",function(l){t.eBV(n);const O=t.XpG();return t.DH7(O.queryData.cache_interval_type_id,l)||(O.queryData.cache_interval_type_id=l),t.Njj(l)}),t.DNE(4,tt,2,2,"mat-option",24),t.k0s()()}if(2&p){const n=t.XpG();t.R7$(3),t.Y8G("formControlName","cache_interval_type_id"),t.R50("ngModel",n.queryData.cache_interval_type_id),t.R7$(),t.Y8G("ngForOf",n.intervals)}}function at(p,j){1&p&&(t.j41(0,"mat-option",39),t.EFF(1," Coluna do sistema "),t.k0s())}function nt(p,j){if(1&p&&(t.j41(0,"mat-option",43)(1,"span"),t.EFF(2),t.k0s()()),2&p){const n=j.$implicit;t.Y8G("value",n)("matTooltip",n.label)("matTooltipShowDelay",200),t.R7$(2),t.JRh(n.label)}}function E(p,j){if(1&p&&(t.j41(0,"mat-form-field",29)(1,"mat-label"),t.EFF(2,"Campo sistema"),t.k0s(),t.nrm(3,"input",40),t.j41(4,"mat-autocomplete",41,2),t.DNE(6,nt,3,4,"mat-option",42),t.nI1(7,"async"),t.k0s(),t.j41(8,"mat-error"),t.EFF(9,"Selecione um campo"),t.k0s()()),2&p){const n=t.sdS(5),m=t.XpG(),l=m.$implicit,O=m.index,U=t.XpG(2);t.R7$(3),t.Y8G("matAutocomplete",n)("formControlName","field_id")("readonly","3"==l.get("parameter_type_id").value),t.R7$(),t.Y8G("displayWith",U.displayFn),t.R7$(2),t.Y8G("ngForOf",t.bMT(7,5,U.filteredFields[O]))}}function $(p,j){1&p&&(t.j41(0,"mat-form-field",29)(1,"mat-label"),t.EFF(2,"Valor fixo"),t.k0s(),t.nrm(3,"input",44,0),t.j41(5,"mat-error"),t.EFF(6,"Preencha este campo"),t.k0s()()),2&p&&(t.R7$(3),t.Y8G("formControlName","fixed_value"))}function d(p,j){if(1&p){const n=t.RV6();t.j41(0,"div",27)(1,"div",28)(2,"mat-form-field",29)(3,"mat-label"),t.EFF(4,"Nome campo"),t.k0s(),t.nrm(5,"input",30,0),t.j41(7,"mat-error"),t.EFF(8,"Preencha este campo"),t.k0s()(),t.j41(9,"mat-form-field",29)(10,"mat-label"),t.EFF(11,"Tipo do campo"),t.k0s(),t.j41(12,"mat-select",31),t.bIt("selectionChange",function(){const l=t.eBV(n).$implicit,O=t.XpG(2);return t.Njj(O.setUserCategoryValidators(l))}),t.j41(13,"mat-option",32),t.EFF(14,"Campo sistema"),t.k0s(),t.j41(15,"mat-option",33),t.EFF(16,"Valor fixo"),t.k0s(),t.DNE(17,at,2,0,"mat-option",34),t.k0s(),t.j41(18,"mat-error"),t.EFF(19,"Preencha este campo"),t.k0s()(),t.DNE(20,E,10,7,"mat-form-field",35)(21,$,7,1,"mat-form-field",35),t.j41(22,"div",36)(23,"button",37),t.bIt("click",function(l){const O=t.eBV(n).index,U=t.XpG(2);return t.Njj(U.removeParameter(l,O))}),t.j41(24,"mat-icon"),t.EFF(25,"delete"),t.k0s()(),t.j41(26,"button",38),t.bIt("click",function(l){const O=t.eBV(n).index,U=t.XpG(2);return t.Njj(U.addParameterSpecificPosition(l,O))}),t.j41(27,"mat-icon"),t.EFF(28,"add"),t.k0s()()()()()}if(2&p){const n=j.$implicit,m=j.index,l=t.XpG(2);t.R7$(),t.Y8G("formGroupName",m),t.R7$(4),t.Y8G("formControlName","name")("disableControl","3"!==n.get("parameter_type_id").value),t.R7$(7),t.Y8G("formControlName","parameter_type_id")("disableControl","3"!==n.get("parameter_type_id").value),t.R7$(5),t.Y8G("ngIf","3"===n.get("parameter_type_id").value),t.R7$(3),t.Y8G("ngIf",1==n.get("parameter_type_id").value),t.R7$(),t.Y8G("ngIf",2==n.get("parameter_type_id").value),t.R7$(2),t.Y8G("parameterIconDisable",t.sMw(10,q,n.get("parameter_type_id").value,l.queryData.type_id,m)),t.R7$(3),t.Y8G("parameterIconDisable",t.sMw(14,H,n.get("parameter_type_id").value,l.queryData.type_id,m))}}function c(p,j){if(1&p&&(t.j41(0,"div"),t.DNE(1,d,29,18,"div",26),t.k0s()),2&p){const n=t.XpG();t.R7$(),t.Y8G("ngForOf",n.queriesFormGroup.get("parameters").controls)}}let u=(()=>{class p{constructor(n,m,l,O,U,r,R,o,g){this.dialogRef=n,this.formBuilder=m,this.route=l,this.dateComponent=O,this.loaderService=U,this.changeDetectorRef=r,this.saveEditQueryDataService=R,this.dialog=o,this.addsPareamentsService=g,this.valueFixed=[],this.contextConfig={control_name:"context",toggle_name:"active_context"},this.nameFieldsContext=[{name:"CODCOLIGADA",disabled:!1}],this.systemFields=[],this.filteredFields=[],this.availableFieldOptions=new Array,this.queryData={active_paramn:!1},this.hideParameters=[],this.intervals=[{value:1,name:"15 minutos"},{value:2,name:"30 minutos"},{value:3,name:"1 hora"},{value:4,name:"2 horas"},{value:5,name:"3 horas"},{value:6,name:"6 horas"},{value:7,name:"12 horas"},{value:8,name:"Di\xe1rio"},{value:9,name:"Semanal"}],this.queriesFormGroup=this.formBuilder.group({colligate:new e.hs("",[e.k0.required]),system:new e.hs("",[e.k0.required]),code:new e.hs("",[e.k0.required]),use_cache:new e.hs(""),cache_interval_type_id:new e.hs(""),[this.contextConfig.toggle_name]:[!1],[this.contextConfig.control_name]:this.formBuilder.array([],P.W.slideToggle(this.contextConfig.toggle_name)),active_paramn:new e.hs(""),parameters:this.formBuilder.array([])})}ngOnInit(){this.availableFieldOptions=this.dateComponent.data.standardFields,this.systemFields=[...this.dateComponent.data.standardFields],this.queryData=this.dateComponent.data.queryData,this.queryData.parameters&&this.queryData.parameters.length?(this.queryData.active_paramn=!0,this.convertParamnsToString()):this.queryData.active_paramn=!1,this.buildFormControlMultivaluedField(),this.controlValuesContext(this.queryData,this.contextConfig)}convertParamnsToString(){for(const n of this.queryData.parameters)n.parameter_type_id=n.parameter_type_id?n.parameter_type_id.toString():"",n.field_id=n.field_id?this.buildSelectedAutocompleteOption(n.field_id,this.availableFieldOptions):"",n.fixed_value=n.fixed_value?n.fixed_value.toString():""}buildSelectedAutocompleteOption(n,m){if(m&&m.length)for(const l of m)if(l.field_id===n)return l;return null}buildFormControlMultivaluedField(){if(this.queryData&&this.queryData.parameters&&this.queryData.parameters.length)for(const n of this.queryData.parameters)this.formArray.push(this.createItem(n)),this.ManageNameControl(this.formArray.length-1),this.setUserCategoryValidators(this.formArray.controls[this.formArray.controls.length-1]);else this.addParameter(null)}get formArray(){return this.queriesFormGroup.get("parameters")}addParameter(n){n&&"function"==typeof n.preventDefault&&n.preventDefault(),this.queryData.parameters.push({name:"",parameter_type_id:"1",field_id:"",fixed_value:""}),this.formArray.push(this.createItem(this.queryData.parameters[this.queryData.parameters.length-1])),this.ManageNameControl(this.formArray.length-1),this.setUserCategoryValidators(this.formArray.controls[this.formArray.controls.length-1]),this.changeDetectorRef.detectChanges()}addParameterSpecificPosition(n,m){const l=m+1;n&&"function"==typeof n.preventDefault&&n.preventDefault(),this.queryData.parameters.splice(l,0,{name:"",parameter_type_id:"1",field_id:"",fixed_value:""}),this.formArray.insert(l,this.createItem(this.queryData.parameters[l])),this.ManageNameControl(l),this.setUserCategoryValidators(this.formArray.controls[l]),this.changeDetectorRef.detectChanges()}removeParameter(n,m){n&&"function"==typeof n.preventDefault&&n.preventDefault(),this.queriesFormGroup.controls.parameters.removeAt(m),this.queryData.parameters.splice(m,1),(!this.queryData.parameters||!this.queryData.parameters.length)&&(this.queryData.active_paramn=!1),this.changeDetectorRef.detectChanges()}createItem(n){return this.formBuilder.group({name:new e.hs(n.name,[]),parameter_type_id:new e.hs(n.parameter_type_id,[]),field_id:new e.hs(n.field_id,[]),fixed_value:new e.hs(n.fixed_value,[]),id:new e.hs(n.id,[])})}ManageNameControl(n){const m=this.queriesFormGroup.get("parameters");this.filteredFields[n]=m.at(n).get("field_id").valueChanges.pipe((0,x.Z)(""),
1(0,b.T)(l=>l?this.filterOptions(l):this.availableFieldOptions.slice()))}initParamsArray(){(!this.queryData.parameters||!this.queryData.parameters.length)&&(this.queryData.parameters=new Array,this.addParameter(null))}filterOptions(n){if("string"==typeof n){const m=n.toLowerCase();return this.availableFieldOptions.filter(l=>l.label.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(m)).sort((l,O)=>l.label.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")<O.label.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")?-1:l.label.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")>O.label.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")?1:0)}return[]}displayFn(n){return n?n.label:void 0}requireMatch(n){return"string"==typeof n.value?{incorrect:!0}:null}setUserCategoryValidators(n){!1===this.queryData.active_paramn?(n.get("field_id").clearValidators(),n.get("field_id").setErrors(null),n.get("field_id").setValidators(null),n.get("name").clearValidators(),n.get("name").setErrors(null),n.get("name").setValidators(null),n.get("parameter_type_id").clearValidators(),n.get("parameter_type_id").setErrors(null),n.get("parameter_type_id").setValidators(null),n.get("fixed_value").clearValidators(),n.get("fixed_value").setErrors(null),n.get("fixed_value").setValidators(null)):n.value&&1===parseInt(n.value.parameter_type_id)?(n.get("field_id").setValidators([this.requireMatch,e.k0.required]),n.get("fixed_value").clearValidators(),n.get("fixed_value").setErrors(null),n.get("fixed_value").setValidators(null)):n.value&&2===parseInt(n.value.parameter_type_id)&&(n.get("field_id").clearValidators(),n.get("field_id").setErrors(null),n.get("field_id").setValidators(null),n.get("fixed_value").setValidators([e.k0.required])),this.changeDetectorRef.detectChanges()}onSubmit(n){const m=this.buildDataToSubmit(this.queriesFormGroup.value,n);this.saveQueryData(m)}buildDataToSubmit(n,m){const l={id:this.queryData.id,title:this.queryData.title,local_id:this.queryData.local_id,stage_id:this.queryData.stage_id,step_id:this.queryData.step_id,feedback_id:this.queryData.feedback_id,portal_id:this.queryData.portal_id,component_id:this.queryData.component_id,field_settings_id:this.queryData.field_settings_id,client_id:this.queryData.client_id,type_id:this.queryData.type_id,c
1olligate:n.colligate,system:n.system,code:n.code,use_cache:n.use_cache,cache_interval_type_id:n.cache_interval_type_id,parameters:new Array,context:new Array,cascade_change:m};if(n.active_paramn&&n.parameters&&n.parameters.length){const O=this.queriesFormGroup.get("parameters");for(const U of O.getRawValue())this.valueFixed&&(this.valueFixed.find(R=>R.name===U.name),l.parameters.push(this.buildObjectParam(U)))}return n.context.filter(O=>{O.field_id&&(O.field_id=O.field_id.field_id)}),l.context=[...n.context],l}buildObjectParam(n){return{name:n.name,parameter_type_id:n.parameter_type_id,field_id:1===parseInt(n.parameter_type_id)&&n.field_id?n.field_id.field_id:null,fixed_value:2===parseInt(n.parameter_type_id)?n.fixed_value:null,id:n.id?n.id:null}}saveQueryData(n){this.loaderService.setChangesLoaderState(!0),this.saveEditQueryDataService.create(n).subscribe(m=>{m.success?(this.loaderService.setChangesLoaderState(!1,"Consulta configurada com sucesso","ok","success"),this.dialogRef.close(!0)):this.loaderService.setChangesLoaderState(!1,"N\xe3o foi poss\xedvel configurar a consulta, tente novamente mais tarde !","ok","alert")},m=>{this.loaderService.setChangesLoaderState(!1,m.body,"","error",m.title,1e5)})}controlValuesContext(n,m){if(n[m.control_name].length>0){this.queriesFormGroup.patchValue({[m.toggle_name]:!0});const l=n[m.control_name];this[m.control_name]=l,this.addsPareamentsService.setValuesParameters(l,m.control_name)}else typeof this[m.control_name]<"u"&&(this[m.control_name].controls=[],this[m.control_name].reset([]))}openDialog(){if(typeof this.dateComponent.data.portal_id>"u"){const n=this.dialog.open(i.m,{width:"754px",height:"373px",data:{titleDialog:"Aten\xe7\xe3o",titleButton:"Salvar",component:f.T,cascade_change:null,headerRed:!0},autoFocus:!1,disableClose:!0});n.beforeClosed().subscribe(m=>{"boolean"==typeof m&&m&&n.afterClosed().subscribe(l=>{this.onSubmit((0,s.C$)(l.data.cascade_change,null))})})}else this.onSubmit(null)}static{this.\u0275fac=function(m){return new(m||p)(t.rXU(T.CP),t.rXU(e.ze),t.rXU(G.Ix),t.rXU(i.m),t.rXU(B.Z),t.rXU(t.gRc),t.rXU(M.j),t.rXU(T.bZ),t.rXU(A.g))}}static{this.\u0275cmp=t.VBU({type:p,selectors:[["app-query-edit-dialog"]],decls:41,vars:24,consts:[["input",""],["matSlideToggle","matSlideToggle"],["auto","matAutocomplete"],[1,"",3,"ngSubmit","formGroup"],["fxLayout","column","class","ps-dialog-config-stage-table-container description",4,"ngIf"],[1,"ps-row","ps-dialog-config-stage-table-container"],[3,"dataSource","displayedColumns"],["fxLayout","row","fxLayoutGap","20px",1,"ps-row","ps-dialog-config-stage-container"],["appearance","fill","fxFlex","18"],["matInput","","required","",3,"ngModelChange","ngModel","formControlName"],["color","primary",3,"ngModelChange","formControlName","ngModel"],["appearance","fill","fxFlex","20",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["nameToggle","Enviar contexto","clearParametersOnUncheckToggle","true",3,"identification","nameFields","nameFieldsDisabled","systemFields","parameters","formulario"],[1,"ps-dialog-config-stage-container"],["fxLayout","row",1,"ps-send-param-query-totvs-content"],["fxFlex",""],["color","primary","name","active_paramn",3,"change","ngModelChange","formControlName","ngModel"],[4,"ngIf"],[3,"form"],["fxLayout","column",1,"ps-dialog-config-stage-table-container","description"],["appearance","fill","fxFlex","20"],[3,"ngModelChange","formControlName","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["formArrayName","parameters",4,"ngFor","ngForOf"],["formArrayName","parameters"],["fxLayout","row","fxLayoutGap","20px",1,"fade-in-bottom",3,"formGroupName"],["appearance","fill","fxFlex","25"],["matInput","","required","",3,"formControlName","disableControl"],["required","",3,"selectionChange","formControlName","disableControl"],["value","1"],["value","2"],["value","3",4,"ngIf"],["appearance","fill","fxFlex","25",4,"ngIf"],["fxLayoutGap","15px","fxFlex","","fxLayoutAlign","start center",1,"ps-btn-send-param-query-totvs-content"],["color","primary","mat-stroked-button","",1,"ps-send-param-query-totvs-del",3,"click","parameterIconDisable"],["color","primary","mat-stroked-button","",1,"ps-send-param-query-totvs-add",3,"click","parameterIconDisable"],["value","3"],["matInput","","placeholder","Selecione um campo","type","text","required","",3,"matAutocomplete","formControlName","readonly"],["autoActiveFirstOption","true",3,"displayWith"],["matTooltipPosition","below","matTooltipClass","ps-tooltip-content",3,"value","matTooltip","matTooltipShowDelay",4,"ngFor","ngForOf"],["matTooltipPosition","below","matTooltipClass","ps-tooltip-content",3,"value","matTooltip","matTooltipShowDelay"],["matInput","","required","","type","text",3,"formControlName"]],template:function(m,l){if(1&m){const O=t.RV6();t.j41(0,"form",3),t.bIt("ngSubmit",function(){return t.eBV(O),t.Njj(l.openDialog())}),t.DNE(1,Z,5,1,"div",4),t.j41(2,"div",5),t.nrm(3,"app-totvs-query-fields",6),t.k0s(),t.j41(4,"div",7)(5,"mat-form-field",8)(6,"mat-label"),t.EFF(7,"Coligada"),t.k0s(),t.j41(8,"input",9,0),t.mxI("ngModelChange",function(r){return t.eBV(O),t.DH7(l.queryData.colligate,r)||(l.queryData.colligate=r),t.Njj(r)}),t.k0s(),t.j41(10,"mat-error"),t.EFF(11,"Preencha este campo"),t.k0s()(),t.j41(12,"mat-form-field",8)(13,"mat-label"),t.EFF(14,"Cod Sistema"),t.k0s(),t.j41(15,"input",9,0),t.mxI("ngModelChange",function(r){return t.eBV(O),t.DH7(l.queryData.system,r)||(l.queryData.system=r),t.Njj(r)}),t.k0s(),t.j41(17,"mat-error"),t.EFF(18,"Preencha este campo"),t.k0s()(),t.j41(19,"mat-form-field",8)(20,"mat-label"),t.EFF(21,"Cod Consulta"),t.k0s(),t.j41(22,"input",9,0),t.mxI("ngModelChange",function(r){return t.eBV(O),t.DH7(l.queryData.code,r)||(l.queryData.code=r),t.Njj(r)}),t.k0s(),t.j41(24,"mat-error"),t.EFF(25,"Preencha este campo"),t.k0s()(),t.j41(26,"mat-slide-toggle",10),t.mxI("ngModelChange",function(r){return t.eBV(O),t.DH7(l.queryData.use_cache,r)||(l.queryData.use_cache=r),t.Njj(r)}),t.EFF(27," Utilizar cache "),t.k0s(),t.DNE(28,et,5,3,"mat-form-field",11),t.k0s(),t.j41(29,"div",12)(30,"div",13),t.nrm(31,"mat-divider"),t.k0s()(),t.nrm(32,"app-adds-pareaments",14),t.j41(33,"div",15)(34,"div",16)(35,"div",17)(36,"mat-slide-toggle",18,1),t.bIt("change",function(){return t.eBV(O),t.Njj(l.initParamsArray())}),t.mxI("ngModelChange",function(r){return t.eBV(O),t.DH7(l.queryData.active_paramn,r)||(l.queryData.active_paramn=r),t.Njj(r)}),t.EFF(38," Enviar par\xe2metros "),t.k0s()()(),t.DNE(39,c,2,1,"div",19),t.k0s(),t.nrm(40,"app-save-dialog",20),t.k0s()}if(2&m){const O=t.sdS(37);t.Y8G("formGroup",l.queriesFormGroup),t.R7$(),t.Y8G("ngIf",l.queryData.description),t.R7$(2),t.Y8G("dataSource",l.dateComponent.data.queryData.fields)("displayedColumns",t.lJ4(23,J)),t.R7$(5),t.R50("ngModel",l.queryData.colligate),t.Y8G("formControlName","colligate"),t.R7$(7),t.R50("ngModel",l.queryData.system),t.Y8G("formControlName","system"),t.R7$(7),t.R50("ngModel",l.queryData.code),t.Y8G("formControlName","code"),t.R7$(4),t.Y8G("formControlName","use_cache"),t.R50("ngModel",l.queryData.use_cache),t.R7$(2),t.Y8G("ngIf",l.queryData.use_cache),t.R7$(4),t.Y8G("identification",l.contextConfig)("nameFields",l.nameFieldsContext)("nameFieldsDisabled",!0)("systemFields",l.systemFields)("parameters",l.context)("formulario",l.queriesFormGroup),t.R7$(4),t.Y8G("formControlName","active_paramn"),t.R50("ngModel",l.queryData.active_paramn),t.R7$(3),t.Y8G("ngIf",O.checked),t.R7$(),t.Y8G("form",l.queriesFormGroup)}},dependencies:[v.Sq,v.bT,e.qT,e.me,e.BC,e.cb,e.YS,e.j4,e.JD,e.$R,e.v8,C.$z,_.rl,_.nJ,_.TL,W.VO,h.wT,S.fg,D.q,y.An,L.oV,F.sG,Y.$3,Y.pN,k.DJ,k.BO,k.sA,k.UI,N.j,Q,X.J,K.go,z.x,v.Jj],styles:[".ps-dialog-config-stage-container[_ngcontent-%COMP%]{padding:24px}.description[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-weight:700}.description[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-bottom:1em}.ps-dialog-config-stage-table-container[_ngcontent-%COMP%]{padding:10px 24px}.ps-dialog-config-stage-status[_ngcontent-%COMP%]{margin-bottom:7px}.ps-dialog-config-stage-matgroup[_ngcontent-%COMP%]{height:100%}.ps-dialog-config-stage-matgroup[_ngcontent-%COMP%]     .mat-mdc-tab-body-wrapper{height:100%}.ps-dialog-config-stage-matgroup[_ngcontent-%COMP%]     .mat-mdc-tab-body-wrapper .mat-mdc-tab-body-content{height:calc(100% - 57px);overflow-x:hidden;overflow-y:auto}.ps-send-param-query-totvs-del[_ngcontent-%COMP%]{padding:0 4px;line-height:34px;min-width:34px}.ps-send-param-query-totvs-del[_ngcontent-%COMP%]     mat-icon{height:17px;width:17px;font-size:17px}.ps-send-param-query-totvs-content[_ngcontent-%COMP%]{margin:6px 0 30px}.ps-send-param-query-totvs-add[_ngcontent-%COMP%]{padding:0 4px;line-height:34px;min-width:34px}.ps-send-param-query-totvs-add[_ngcontent-%COMP%]     mat-icon{height:20px;width:20px;font-size:20px}.ps-btn-send-param-query-totvs-content[_ngcontent-%COMP%]{height:60px}  .ps-dialog-config-stage-content{height:calc(100% - 39px)!important;margin-bottom:0!important}  .ps-dialog-config-stage-content .mat-mdc-dialog-content{height:100%}.fade-in-bottom[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fade-in-bottom .5s cubic-bezier(.39,.575,.565,1) both;transition-delay:3s}@keyframes _ngcontent-%COMP%_fade-in-bottom{0%{transform:translateY(50px);opacity:0}
1to{transform:translateY(0);opacity:1}}.fade-out-top[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fade-out-top .3s cubic-bezier(.25,.46,.45,.94) both}@keyframes _ngcontent-%COMP%_fade-out-top{0%{transform:translateY(0);opacity:1}to{transform:translateY(-50px);opacity:0}}.slide-in-left[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_slide-in-left .5s cubic-bezier(.25,.46,.45,.94) both}@keyframes _ngcontent-%COMP%_slide-in-left{0%{transform:translate(-1000px);opacity:0}to{transform:translate(0);opacity:1}}.slide-in-right[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_slide-in-right .5s cubic-bezier(.25,.46,.45,.94) both}@keyframes _ngcontent-%COMP%_slide-in-right{0%{transform:translate(1000px);opacity:0}to{transform:translate(0);opacity:1}}.ps-info-logic-empty[_ngcontent-%COMP%]{background:#ffeac7;border-radius:9px;padding:10px 20px;margin:0 0 10px;color:#0009}.ps-dialog-config-stage-add-logic[_ngcontent-%COMP%]{display:inline-flex;justify-content:center;align-items:center}.ps-dialog-config-stage-add-logic[_ngcontent-%COMP%]     .mat-button-wrapper{font-size:13px}.ps-dialog-config-stage-add-logic[_ngcontent-%COMP%]     .mat-button-wrapper mat-icon{height:17px;width:16px;line-height:14px;margin-right:5px;font-size:20px}.ps-dialog-config-stage-logic-card[_ngcontent-%COMP%]{border-radius:4px!important;box-shadow:0 1px 3px #0000001f,0 1px 1px #00000024,0 2px 1px #0003;width:80%}.ps-dialog-config-stage-logic-card[_ngcontent-%COMP%]   mat-card-content[_ngcontent-%COMP%]{padding-bottom:10px!important}.ps-dialog-config-stage-logic-del[_ngcontent-%COMP%]{position:absolute;top:3px;right:3px;width:35px;height:35px;line-height:35px}.ps-dialog-config-stage-logic-del[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:19px;width:19px;line-height:19px;font-size:19px}"]})}}return p})()},46637:(w,I,a)=>{a.d(I,{_:()=>U});var e=a(54438),i=a(89417),x=a(74710),b=a(45312),M=a(6688),f=a(36671);class s extends f.F{}class P{fromJson(R){const o=new s;return o.success=R.success,o.data=this.toJson(R.data),o}toJson(R){if("object"==typeof R)return R}}var t=a(21626);let T=(()=>{class r extends M.Q{constructor(o){super(o,`${b.c.API}`,"settings/login-settings",new P)}static{this.\u0275fac=function(g){return new(g||r)(e.KVO(t.Qq))}}static{this.\u0275prov=e.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})(),G=(()=>{class r extends M.Q{constructor(o){super(o,`${b.c.API}`,"portal/login-settings",new P)}static{this.\u0275fac=function(g){return new(g||r)(e.KVO(t.Qq))}}static{this.\u0275prov=e.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var B=a(37505),A=a(32575),v=a(27961),C=a(34006),_=a(51269),W=a(70434),h=a(60177),S=a(88834),D=a(32102),y=a(82798),L=a(86600),F=a(59042),Y=a(71997),k=a(99213),N=a(14823),Q=a(30450),X=a(43881),K=a(52920),z=a(99830),J=a(64629);const q=r=>["fields",r,"type"],H=r=>["fields",r,"label"];function Z(r,R){if(1&r&&(e.j41(0,"mat-option",36),e.EFF(1),e.k0s()),2&r){const o=R.$implicit;e.Y8G("value",o.type),e.R7$(),e.SpI(" ",o.name," ")}}function tt(r,R){1&r&&(e.j41(0,"mat-error"),e.EFF(1," Campo obrigat\xf3rio "),e.k0s())}function et(r,R){1&r&&(e.j41(0,"mat-error"),e.EFF(1," Campo obrigat\xf3rio "),e.k0s())}function at(r,R){if(1&r&&(e.j41(0,"div",6)(1,"p",30),e.EFF(2),e.k0s(),e.j41(3,"mat-form-field",31)(4,"mat-label"),e.EFF(5,"Tipo de login"),e.k0s(),e.j41(6,"mat-select",32),e.DNE(7,Z,2,2,"mat-option",33),e.k0s(),e.nrm(8,"span"),e.j41(9,"mat-hint",34),e.EFF(10,"Escolha o formato de entrada que ser\xe1 aceito no campo"),e.k0s(),e.DNE(11,tt,2,0,"mat-error"),e.k0s(),e.j41(12,"mat-form-field",31)(13,"mat-label"),e.EFF(14,"R\xf3tulo"),e.k0s(),e.nrm(15,"input",35)(16,"span"),e.j41(17,"mat-hint",34),e.EFF(18,"Defina o nome que ser\xe1 exibido como r\xf3tulo deste campo."),e.k0s(),e.DNE(19,et,2,0,"mat-error"),e.k0s()()),2&r){const o=R.$index,g=e.XpG();e.Y8G("formGroupName",o),e.R7$(2),e.SpI("Campo ",o+1,""),e.R7$(5),e.Y8G("ngForOf",g.options),e.R7$(4),e.vxM(11,g.form.get(e.eq3(5,q,o)).hasError("required")?11:-1),e.R7$(8),e.vxM(19,g.form.get(e.eq3(7,H,o)).hasError("required")?19:-1)}}function nt(r,R){if(1&r&&(e.j41(0,"mat-option",36),e.EFF(1),e.k0s()),2&r){const o=e.XpG().$implicit;
1e.Y8G("value",o.id),e.R7$(),e.SpI(" ",o.name," (DESATIVADA) ")}}function E(r,R){if(1&r&&(e.j41(0,"mat-option",36),e.EFF(1),e.k0s()),2&r){const o=e.XpG().$implicit;e.Y8G("value",o.id),e.R7$(),e.SpI(" ",o.name,"")}}function $(r,R){if(1&r&&e.DNE(0,nt,2,2,"mat-option",36)(1,E,2,2,"mat-option",36),2&r){const o=R.$implicit,g=e.XpG(2);e.vxM(0,o.id!=(null==g.captchaForm?null:g.captchaForm.id)||null!=g.captchaForm&&g.captchaForm.active?-1:0),e.R7$(),e.vxM(1,o.active?1:-1)}}function d(r,R){if(1&r&&(e.j41(0,"div",39)(1,"div",40)(2,"p",41),e.EFF(3," Defina a pontua\xe7\xe3o m\xednima "),e.nrm(4,"mat-icon",42),e.k0s()(),e.j41(5,"mat-slider",43),e.nrm(6,"input",44),e.k0s()()),2&r){const o=e.XpG(2);e.R7$(5),e.Y8G("discrete",!0)("displayWith",o.formatScore)}}function c(r,R){if(1&r&&(e.j41(0,"div",11)(1,"mat-form-field",37)(2,"mat-label"),e.EFF(3,"reCAPTCHA"),e.k0s(),e.j41(4,"mat-select",38),e.Z7z(5,$,2,2,null,null,e.fX1),e.k0s(),e.j41(7,"mat-hint",34),e.EFF(8,"Escolha a chave para o login"),e.k0s()(),e.DNE(9,d,7,2,"div",39),e.k0s()),2&r){const o=e.XpG();e.R7$(5),e.Dyx(o.keysCaptcha),e.R7$(4),e.vxM(9,"v3"==(null==o.captchaForm?null:o.captchaForm.type)?9:-1)}}function u(r,R){if(1&r&&(e.j41(0,"div",47)(1,"mat-form-field",48)(2,"mat-label"),e.EFF(3),e.k0s(),e.nrm(4,"input",49),e.k0s()()),2&r){const o=e.XpG().$implicit;e.R7$(3),e.JRh(o.value.label||"Exemplo")}}function p(r,R){if(1&r&&(e.j41(0,"div",47)(1,"mat-form-field",48)(2,"mat-label"),e.EFF(3),e.k0s(),e.nrm(4,"input",49),e.k0s()()),2&r){const o=e.XpG().$implicit;e.R7$(3),e.JRh(o.value.label||"Exemplo")}}function j(r,R){if(1&r&&(e.j41(0,"div",47)(1,"mat-form-field",48)(2,"mat-label"),e.EFF(3),e.k0s(),e.nrm(4,"input",50),e.k0s()()),2&r){const o=e.XpG().$implicit;e.R7$(3),e.JRh(o.value.label||"Exemplo")}}function n(r,R){if(1&r&&(e.j41(0,"div",47)(1,"mat-form-field",48)(2,"mat-label"),e.EFF(3),e.k0s(),e.nrm(4,"input",51),e.k0s()()),2&r){const o=e.XpG().$implicit;e.R7$(3),e.JRh(o.value.label||"Exemplo")}}function m(r,R){if(1&r&&(e.j41(0,"div",47)(1,"mat-form-field",48)(2,"mat-label"),e.EFF(3),e.k0s(),e.nrm(4,"input",52),e.k0s()()),2&r){const o=e.XpG().$implicit;e.R7$(3),e.JRh(o.value.label||"Exemplo")}}function l(r,R){if(1&r&&(e.j41(0,"div",45),e.DNE(1,u,5,1,"div",46)(2,p,5,1,"div",46)(3,j,5,1,"div",46)(4,n,5,1,"div",46)(5,m,5,1,"div",46),e.k0s()),2&r){const o=R.$implicit;e.R7$(),e.Y8G("ngIf",!o.value.type),e.R7$(),e.Y8G("ngIf","text"==o.value.type),e.R7$(),e.Y8G("ngIf","date"==o.value.type),e.R7$(),e.Y8G("ngIf","number"==o.value.type),e.R7$(),e.Y8G("ngIf","cpf"==o.value.type)}}function O(r,R){1&r&&(e.j41(0,"div",22),e.nrm(1,"img",53),e.k0s())}let U=(()=>{class r{constructor(){this.data=!1,this.cascade_change=!1,this.options=[{type:"cpf",name:"CPF"},{type:"date",name:"Data"},{type:"number",name:"N\xfamero"},{type:"text",name:"Texto"}],this.captchaForm=null,this.formBuilder=(0,e.WQX)(i.ok),this.loginSettingsGeneralService=(0,e.WQX)(T),this.loginSettingsPortalService=(0,e.WQX)(G),this.router=(0,e.WQX)(x.nX),this.loaderService=(0,e.WQX)(B.Z),this.dialog=(0,e.WQX)(C.bZ),this.integration=(0,e.hFB)(null,{alias:"integration"})}ngOnInit(){this.createForm(),"general"==this.integration()&&this.searchGeneral(),"portal"==this.integration()&&this.searchPortal(),this.onChanges()}formatScore(o){return o.toFixed(1)}searchGeneral(){this.loginSettingsGeneralService.readBasic().subscribe({next:o=>{this.success(o)},error:()=>{this.error("Ocorreu um erro ao buscar os dados de login.")}})}setForm(o){this.form.patchValue({last_change:o.date_changes.last_change,changed_by:o.date_changes.changed_by,captcha_id:o.captcha_id,captcha_active:!!o.captcha_active,score:o.score}),this.captchaForm=this.keysCaptcha.find(g=>g.id==o.captcha_id),o.fields.forEach((g,V)=>{this.form.get(["fields",V]).patchValue({id:g.id,label:g.label,type:g.type})})}onChanges(){this.form.get("captcha_active").valueChanges.subscribe({next:()=>this.form.get("captcha_id").updateValueAndValidity()}),this.form.get("captcha_id").valueChanges.subscribe({next:o=>{this.captchaForm=this.keysCaptcha.find(g=>g.id==o)}})}searchPortal(){this.loginSettingsPortalService.read(this.router.snapshot.params.id).subscribe({next:o=>{this.success(o)},error:()=>{this.error("Ocorreu um erro ao buscar os dados de login.")}})}success(o){o.success&&o.data&&o.data.fields.length>=1&&(this.data=o.data,this.keysCaptcha=o.data.captcha_keys,this.setForm(o.data))}error(o){this.loaderService.setChangesLoaderState(!1,o,"ok","error")}createForm(){this.form=this.formBuilder.group({fields:this.formBuilder.array([this.createField(),this.createField()]),captcha_active:[null,i.k0.required],captcha_id:[null,this.validateCaptchaKey],score:[.5,this.validateScore],last_change:[null],changed_by:[null]})}validateCaptchaKey(o){return o.parent?.get("captcha_active")?.value&&!o.value?{invalidCaptcha:!0}:null}validateScore(o){return"v3"!=this?.captchaForm?.type||o.value?null:{invali
1dCaptcha:!0}}createField(){return this.formBuilder.group({id:[null],type:["",i.k0.required],label:["",i.k0.required]})}resetValidation(){this.data.fields.forEach((o,g)=>{this.form.get(["fields",g]).patchValue({id:o.id,label:o.label,type:o.type})}),this.form.get("captcha_active").setValue(!!this.data.captcha_active),this.form.get("captcha_id").setValue(this.data.captcha_id),this.form.get("score").setValue(this.data.score)}onDialog(){if("portal"==this.integration()&&this.dialog.open(_.Y,{maxWidth:"60vw",width:"355px",minHeight:"210px",autoFocus:!1,data:{title:"Aten\xe7\xe3o",message:`Deseja realmente ${this.data?"alterar":"salvar"} as configura\xe7\xf5es de campos de login?`,btnOkText:"Salvar",btnCancelText:"Cancelar",reverseBtn:!1},disableClose:!1}).afterClosed().subscribe(g=>{g&&this.submit(0)}),"general"==this.integration()){const o=this.dialog.open(A.m,{width:"754px",height:"373px",data:{titleDialog:"Aten\xe7\xe3o",titleButton:"Salvar",component:v.T,cascadeChanges:this.cascade_change,headerRed:!0},autoFocus:!1,disableClose:!0});o.beforeClosed().subscribe(g=>{"boolean"==typeof g&&g&&o.afterClosed().subscribe(V=>{this.submit((0,W.C$)(V.data.cascade_change))})})}}submit(o){const g=this.form.getRawValue();"general"==this.integration()&&(g.cascade_change=o,this.submitedGeneral(g)),"portal"==this.integration()&&this.submitedPortal(g)}submitedGeneral(o){this.loginSettingsGeneralService.create(o).subscribe({next:g=>{if(!g.success)return this.error("Ocorreu um erro ao salvar os dados de login.");this.data=g.data,this.setForm(g.data),this.loaderService.setChangesLoaderState(!1,"Dados de login salvos com sucesso.","ok","success")},error:()=>this.error("Ocorreu um erro ao salvar os dados de login.")})}submitedPortal(o){o.portal_id=this.router.snapshot.params.id,this.loginSettingsPortalService.create(o).subscribe({next:g=>{if(!g.success)return this.error("Ocorreu um erro ao salvar os dados de login.");this.data=g.data,this.setForm(g.data),this.loaderService.setChangesLoaderState(!1,"Dados de login salvos com sucesso.","ok","success")},error:()=>this.error("Ocorreu um erro ao salvar os dados de login.")})}get fields(){return this.form.controls.fields}static{this.\u0275fac=function(g){return new(g||r)}}static{this.\u0275cmp=e.VBU({type:r,selectors:[["app-login-settings"]],inputs:{integration:[e.Mj6.SignalBased,"integration"]},decls:38,vars:12,consts:[[1,"container",3,"formGroup"],[1,"sub-container"],[1,"form","grid"],[1,"default-text","ps-title-grid"],["fxLayout","column","fxLayoutGap","32px",1,"fields",3,"formGroup"],["fxLayout.lt-lg","column","fxLayout","row","fxFlex","","fxLayoutGap","24px","formArrayName","fields",1,"fields-session"],["fxLayout","column","fxFlex","","fxLayoutGap","24px",1,"input-content",3,"formGroupName"],["fxLayout.lt-lg","column","fxLayout","column","fxFlex","","fxLayoutGap","24px"],["color","primary","formControlName","captcha_active","fxFlex",""],["fxLayoutAlign","center center"],["matTooltip","Ao ativar essa op\xe7\xe3o, ser\xe1 necess\xe1rio cumprir o desafio do reCAPTCHA no ato do login.","matTooltipPosition","after","matTooltipClass","ps-tooltip-content","svgIcon","help",1,"info-tooltip"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","24px",1,"input-content"],[3,"vertical"],[1,"preview","grid"],[1,"preview-grid-title"],[1,"default-text","preview-text"],[1,"simulation-login"],[1,"title-silulation-login"],[1,"default-text"],[1,"preview-input"],[1,"ps-content-inputs-preview"],["class","ps-row-inputs","fxLayout","row","fxLayoutGap","8px",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","center center",1,"parent-container"],["classfxLayout","column"],[3,"inset"],["fxLayout","row","fxLayoutAlign","end end",1,"ps-dialog-content-actions"],["fxFlex","","fxLayoutAlign","end end"],["mat-stroked-button","",1,"ps-input-preview-cancel"],["mat-raised-button","","color","primary"],[3,"emitSubmit","clickClearAlternateChanges","form","date","custumSubmit","clearForm","marginCustom"],[1,"default-text","ps-text-field"],["appearance","fill"],["formControlName","type","required",""],[3,"value",4,"ngFor","ngForOf"],[1,"mat-hint-form"],["matInput","","type","text","formControlName","label","required",""],[3,"value"],["appearance","fill","fxFlex","50"],["formControlName","captcha_id"],["fxFlex","50","fxLayout","column",1,"define-score"],["fxLayout","row"],["fxLayoutAlign","start center",1,"default-text","ps-text-field"],["matTooltip","Para definir a pontua\xe7\xe3o m\xednima do reCAPTCHA v3, \xe9 importante equilibrar a seguran\xe7a do seu site e a experi\xeancia do usu\xe1rio. O reCAPTCHA v3 atribui uma pontua\xe7\xe3o entre 0.0 e 1.0 para cada intera\xe7\xe3o, onde valores pr\xf3ximos de 1.0 indicam comportamento humano e valores pr\xf3ximos de 0.0 sugerem atividade de bots. O Google recomenda iniciar com um limite padr\xe3o de 0.5.","matTooltipPosition","after","matTooltipClass","ps-tooltip-content","svgIcon","help",1,"info-tooltip"],["color","primary","min","0.0","max","1.0","step","0.1",2,"width","100%",3,"discrete","displayWith"],["matSliderThumb","","formControlName","score"],["fxLayout","row","fxLayoutGap","8px",1,"ps-row-inputs"],["fxFlex","",4,"ngIf"],["fxFlex",""],["appearance","fill","fxFlex","",1,"field-infix-width-auto"],["matInput","","type","text"],["matInput","","type","text","mask","00/00/0000"],["matInput","","type","number"],["matInput","","type","text","mask","000.000.000-00"],["src","../../../../assets/images/recaptcha/not-robot.png","alt","Caixa de verifica\xe7\xe3o reCAPTCHA"]],template:function(g,V){1&g&&(e.j41(0,"form",0)(1,"div",1)(2,"div",2)(3,"p",3),e.
1EFF(4,"Defina o tipo e o r\xf3tulo que ficar\xe3o nos campos do login no portal. "),e.k0s(),e.j41(5,"form",4)(6,"div",5),e.Z7z(7,at,20,9,"div",6,e.Vm6),e.k0s(),e.j41(9,"div",7)(10,"mat-slide-toggle",8)(11,"p",9),e.EFF(12," Utilizar reCAPTCHA "),e.nrm(13,"mat-icon",10),e.k0s()()(),e.DNE(14,c,10,1,"div",11),e.k0s()(),e.nrm(15,"mat-divider",12),e.j41(16,"div",13)(17,"div",14)(18,"p",15),e.EFF(19,"Pr\xe9-visualiza\xe7\xe3o"),e.k0s()(),e.j41(20,"div",16)(21,"div",17)(22,"p",18),e.EFF(23,"Login"),e.k0s()(),e.j41(24,"div")(25,"div",19)(26,"div",20),e.DNE(27,l,6,5,"div",21)(28,O,2,0,"div",22),e.k0s(),e.j41(29,"div",23),e.nrm(30,"mat-divider",24),e.j41(31,"div",25)(32,"div",26)(33,"a",27),e.EFF(34," Cancelar "),e.k0s(),e.j41(35,"button",28),e.EFF(36," Acessar "),e.k0s()()()()()()()()(),e.j41(37,"app-save-editions",29),e.bIt("emitSubmit",function(){return V.onDialog()})("clickClearAlternateChanges",function(){return V.resetValidation()}),e.k0s()()),2&g&&(e.Y8G("formGroup",V.form),e.R7$(5),e.Y8G("formGroup",V.form),e.R7$(2),e.Dyx(V.fields.controls),e.R7$(7),e.vxM(14,V.form.value.captcha_active?14:-1),e.R7$(),e.Y8G("vertical",!0),e.R7$(12),e.Y8G("ngForOf",V.fields.controls),e.R7$(),e.vxM(28,V.form.value.captcha_active&&"checkbox"==(null==V.captchaForm?null:V.captchaForm.type)?28:-1),e.R7$(2),e.Y8G("inset",!0),e.R7$(7),e.Y8G("form",V.form)("date",V.data)("custumSubmit",!0)("clearForm",!1)("marginCustom","ps-custom-margin-save-editions"))},dependencies:[h.Sq,h.bT,i.qT,i.me,i.BC,i.cb,i.YS,i.j4,i.JD,i.$R,i.v8,S.It,S.$z,D.rl,D.nJ,D.MV,D.TL,y.VO,L.wT,F.fg,Y.q,k.An,N.oV,Q.sG,X.IV,X.OU,K.DJ,K.BO,K.sA,K.UI,z.Zr,J.m],styles:[".sub-container[_ngcontent-%COMP%]{display:flex;height:100%}.ps-session-recaptcha[_ngcontent-%COMP%]{display:flex;width:100%;height:100px;margin:30px}.fields[_ngcontent-%COMP%]{display:flex;margin-left:8px}.preview[_ngcontent-%COMP%]{padding:10px 20px 20px}.form[_ngcontent-%COMP%]{padding:20px}p[_ngcontent-%COMP%]{margin-left:8px}.default-text[_ngcontent-%COMP%]{font-size:15px;color:#4d4d4d}.ps-title-grid[_ngcontent-%COMP%]{padding-left:16px}.grid[_ngcontent-%COMP%]{width:50%}.ps-form-margin[_ngcontent-%COMP%]{width:50px}.input-login[_ngcontent-%COMP%]{width:350px;margin-left:10px;padding-bottom:10px}.preview-input[_ngcontent-%COMP%]   .ps-content-inputs-preview[_ngcontent-%COMP%]{padding:30px}.input-content[_ngcontent-%COMP%]{margin:0 8px 0 0}.simulation-login[_ngcontent-%COMP%]{margin:0 auto;justify-content:center;box-shadow:0 4px 8px #0003,0 6px 20px #00000030;border-radius:5px;width:500px}.slider-score[_ngcontent-%COMP%]{padding:20px}.define-score[_ngcontent-%COMP%]{position:relative;top:-18px}.info-tooltip[_ngcontent-%COMP%]{width:12px;margin-left:5px}.preview-grid-title[_ngcontent-%COMP%]{margin:0 auto;width:500px}.preview-text[_ngcontent-%COMP%]{font-size:20px}  .field-infix-width-auto .mat-form-field-infix{width:auto}  .ps-login-content{height:calc(100% - 39px)!important;margin-top:40px!important;margin-bottom:0!important}  .ps-crud-filter-mat-slider{width:100%!important}.ps-dialog-content-actions[_ngcontent-%COMP%]{padding:25px 28.1px}.content-singup-link[_ngcontent-%COMP%]{margin:1rem 0}.content-singup-link[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .content-singup-link[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#6c757d}.content-singup-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:var(--institutional-color)}.content-singup-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline}.title-silulation-login[_ngcontent-%COMP%]{display:flex;width:100%;height:30px;background-color:#0000000a;align-items:center}.title-silulation-login[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#4d4d4d;font-family:Poppins,sans-serif}.default-margin-input[_ngcontent-%COMP%]{margin-top:10px}.ps-input-preview-cancel[_ngcontent-%COMP%]{margin-right:15px}@media (max-width: 1532px){.fields-session[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:column!important}.fields[_ngcontent-%COMP%]{margin:0 auto;justify-content:center}.input-content[_ngcontent-%COMP%]{display:flex;text-align:center;flex-direction:column}}@media (max-width: 1020px){.grid[_ngcontent-%COMP%]{margin:0;width:100%}.sub-container[_ngcontent-%COMP%]{display:block}.fields[_ngcontent-%COMP%]{text-align:center;display:block}.input-content[_ngcontent-%COMP%]{display:block}.form[_ngcontent-%COMP%]{padding:0}.ps-title-grid[_ngcontent-%COMP%]{padding-left:0;text-align:center}}@media (max-width: 624px){.slider-score[_ngcontent-%COMP%]{padding:0}.simulation-login[_ngcontent-%COMP%]{width:calc(100% - 39px)!important;margin-left:10px}}  .ps-custom-margin-save-editions{margin-top:0!important}"]})}}return r})()},64629:(w,I,a)=>{a.d(I,{m:()=>C});var e=a(54438),i=a(60177),x=a(88834),b=a(71997),M=a(67575),f=a(52920),s=a(16038),P=a(69841);const t=_=>({"ps-save-progress-hidden":_});function T(_,W){if(1&_&&e.nrm(0,"mat-progress-bar",11),2&_){const h=e.XpG(2);
1e.Y8G("value",h.progress)("ngClass",e.eq3(2,t,100===h.progress))}}function G(_,W){if(1&_&&(e.j41(0,"div",8),e.DNE(1,T,1,4,"mat-progress-bar",9),e.j41(2,"div",10),e.nrm(3,"mat-divider"),e.k0s()()),2&_){const h=e.XpG();e.Y8G("ngClass",h.marginCustom),e.R7$(),e.Y8G("ngIf",h.progress>0)}}function B(_,W){if(1&_&&(e.j41(0,"div",12)(1,"span",13),e.EFF(2),e.nI1(3,"date"),e.nI1(4,"date"),e.k0s()()),2&_){const h=e.XpG();e.R7$(2),e.E5c(" \xdaltima atualiza\xe7\xe3o: ",e.i5U(3,3,h.last_change,"dd/MM/yyyy")," \xe0s ",e.i5U(4,6,h.last_change,"HH:mm:ss")," por ",h.changed_by," ")}}function A(_,W){if(1&_&&(e.j41(0,"button",14),e.EFF(1," Salvar "),e.k0s()),2&_){const h=e.XpG();e.Y8G("buttonLoader",h.uploadDone)("disabled",!h.form.valid)}}function v(_,W){if(1&_){const h=e.RV6();e.j41(0,"button",15),e.bIt("click",function(){e.eBV(h);const D=e.XpG();return e.Njj(D.custumSubmitEvent())}),e.EFF(1," Salvar "),e.k0s()}if(2&_){const h=e.XpG();e.Y8G("buttonLoader",h.uploadDone)("disabled",!h.form.valid)}}let C=(()=>{class _{constructor(){this.custumSubmit=!1,this.clearForm=!0,this.lastChange=!0,this.divider=!0,this.clickClearAlternateChanges=new e.bkB,this.emitSubmit=new e.bkB,this.uploadDone=!1}ngOnInit(){this.service?.tabChange.subscribe(h=>{h&&(this.clearForm?(this.resetForm(),this.checkForDifferentData()):this.clickClearAlternateChanges.emit())})}ngOnChanges(h){typeof this.progress<"u"&&(this.progress>0&&(this.uploadDone=!0),100===this.progress&&(this.uploadDone=!1)),this.setLastChangesValues()}setLastChangesValues(){let h=this.form.controls.changed_by;this.changed_by=h?h.value:"Valor padr\xe3o";let S=this.form.controls.last_change;this.last_change=S?S.value:new Date}restForm(h){h.disabled||(this.resetForm(),this.clearForm&&this.checkForDifferentData())}resetForm(){if(typeof this.date<"u"&&this.clearForm)for(const h in this.date)this.form.patchValue(this.date),this.form.reset(this.date)}checkForDifferentData(){if(typeof this.service<"u")for(const h in this.date)this.service.setInterceptTabChange(this.date[h]===this.form.value[h])}custumSubmitEvent(){this.emitSubmit.emit()}actionButtonOptional(h){this.clickClearAlternateChanges.emit(h)}ngOnDestroy(){}static{this.\u0275fac=function(S){return new(S||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["app-save-editions"]],inputs:{form:"form",custumSubmit:"custumSubmit",clearForm:"clearForm",date:"date",lastChange:"lastChange",divider:"divider",progress:"progress",service:"service",marginCustom:"marginCustom"},outputs:{clickClearAlternateChanges:"clickClearAlternateChanges",emitSubmit:"emitSubmit"},features:[e.OA$],decls:9,vars:5,consts:[["button",""],["fxLayout","row","class","ps-divider-container ps-divider-margin",3,"ngClass",4,"ngIf"],["fxLayout","row","fxLayout","row","fxLayout.xs","column",2,"padding","20px 0px"],["fxFlex","","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","","fxLayoutAlign","end center",1,"ps-save-edt-container-button"],["mat-stroked-button","",3,"click","disabled"],["mat-raised-button","","color","primary","type","submit",3,"buttonLoader","disabled",4,"ngIf"],["mat-raised-button","","color","primary","type","submit",3,"buttonLoader","disabled","click",4,"ngIf"],["fxLayout","row",1,"ps-divider-container","ps-divider-margin",3,"ngClass"],["mode","determinate","color","primary","class","ps-save-progress",3,"value","ngClass",4,"ngIf"],["fxFlex","100"],["mode","determinate","color","primary",1,"ps-save-progress",3,"value","ngClass"],["fxFlex","","fxLayoutAlign","start center"],[1,"ps-save-edt-info"],["mat-raised-button","","color","primary","type","submit",3,"buttonLoader","disabled"],["mat-raised-button","","color","primary","type","submit",3,"click","buttonLoader","disabled"]],template:function(S,D){if(1&S){const y=e.RV6();e.DNE(0,G,4,2,"div",1),e.j41(1,"div",2),e.DNE(2,B,5,9,"div",3),e.j41(3,"div",4)(4,"a",5,0),e.bIt("click",function(){e.eBV(y);const F=e.sdS(5);return e.Njj(D.actionButtonOptional(F))})("click",function(){e.eBV(y);const F=e.sdS(5);return e.Njj(D.restForm(F))}),e.EFF(6," Limpar altera\xe7\xf5es "),e.k0s(),e.DNE(7,A,2,2,"button",6)(8,v,2,2,"button",7),e.k0s()()}2&S&&(e.Y8G("ngIf",D.divider),e.R7$(2),e.Y8G("ngIf",D.lastChange),e.R7$(2),e.Y8G("disabled",D.form.pristine),e.R7$(3),e.Y8G("ngIf",!D.custumSubmit),e.R7$(),e.Y8G("ngIf",D.custumSubmit))},dependencies:[i.YU,i.bT,x.It,x.$z,b.q,M.HM,f.DJ,f.sA,f.UI,s.PW,P.n,i.vh],styles:[".ps-divider-margin[_ngcontent-%COMP%]{margin-bottom:0}.ps-save-edt-container-button[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:first-child{margin-right:21px}@media only screen and (max-width: 600px){.ps-save-edt-container-button[_ngcontent-%COMP%]{padding-top:20px}}  .mat-mdc-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 427ms linear!important}.ps-save-progress[_ngcontent-%COMP%]{position:absolute;
1left:0;width:100%}.ps-save-progress-hidden[_ngcontent-%COMP%]{display:none;transition:all 5s ease-in-out}"]})}}return _})()},69841:(w,I,a)=>{a.d(I,{n:()=>x});var e=a(9183),i=a(54438);let x=(()=>{class b{constructor(f,s,P,t){this.el=f,this.renderer=s,this.viewContainerRef=P,this.componentFactoryResolver=t}ngOnInit(){this.originalInnerText=this.el.nativeElement.innerText,this.el.nativeElement.style.display="flex",this.el.nativeElement.style.alignItems="center",this.el.nativeElement.style.justifyContent="center",this.el.nativeElement.style.minWidth="90px";const f=this.viewContainerRef.createComponent(e.LG);this.spinner=f.instance,this.spinner.diameter=18,this.renderer.setStyle(this.spinner._elementRef.nativeElement,"display","none"),this.renderer.setStyle(this.spinner._elementRef.nativeElement,"margin-left","10px")}ngOnChanges(f){"object"!=typeof f.showSpinner||f.showSpinner.isFirstChange()||(!0===f.showSpinner.currentValue&&(this.el.nativeElement.querySelector(".mat-button-wrapper").innerText="Processando",this.renderer.appendChild(this.el.nativeElement,this.spinner._elementRef.nativeElement),setTimeout(()=>{this.renderer.setStyle(this.spinner._elementRef.nativeElement,"display","inline-block")},230)),!1===f.showSpinner.currentValue&&(this.renderer.setStyle(this.spinner._elementRef.nativeElement,"display","none"),this.renderer.removeChild(this.el.nativeElement.firstChild,this.spinner._elementRef.nativeElement),this.el.nativeElement.style.minWidth="90px",this.el.nativeElement.querySelector(".mat-button-wrapper").innerText=this.originalInnerText),this.el.nativeElement.disabled=f.showSpinner.currentValue)}static{this.\u0275fac=function(s){return new(s||b)(i.rXU(i.aKT),i.rXU(i.sFG),i.rXU(i.c1b),i.rXU(i.OM3))}}static{this.\u0275dir=i.FsC({type:b,selectors:[["","buttonLoader",""]],inputs:{showSpinner:[i.Mj6.None,"buttonLoader","showSpinner"]},features:[i.OA$]})}}return b})()},32025:(w,I,a)=>{a.d(I,{g:()=>i});var e=a(54438);let i=(()=>{class x{constructor(M){this.el=M}ngOnChanges(){this.el.nativeElement.style.display=0===this.dataLength?"none":"block"}static{this.\u0275fac=function(f){return new(f||x)(e.rXU(e.aKT))}}static{this.\u0275dir=e.FsC({type:x,selectors:[["","displaycrud",""]],inputs:{dataLength:[e.Mj6.None,"displaycrud","dataLength"]},features:[e.OA$]})}}return x})()},5879:(w,I,a)=>{a.d(I,{s:()=>M});var e=a(54438),i=a(88834),x=a(99213),b=a(14823);let M=(()=>{class f{constructor(){}ngOnInit(){}static{this.\u0275fac=function(t){return new(t||f)}}static{this.\u0275cmp=e.VBU({type:f,selectors:[["ng-component"]],decls:4,vars:0,consts:[["mat-icon-button","","matTooltip","Existem configura\xe7\xf5es pendentes nesta aba.","matTooltipPosition","after","matTooltipClass","ps-tooltip-content",1,"ps-tooltip-button","pulse",2,"margin-left","-10px"],[2,"line-height","22px"],["width","22","height","22","viewBox","0 0 22 22","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.168 20.732C16.4147 20.732 20.668 16.4787 20.668 11.232C20.668 5.98526 16.4147 1.73196 11.168 1.73196C5.92126 1.73196 1.66797 5.98526 1.66797 11.232C1.66797 16.4787 5.92126 20.732 11.168 20.732ZM9.70763 6.16706C9.70763 5.61477 10.1553 5.16706 10.7076 5.16706H11.6307C12.183 5.16706 12.6307 5.61477 12.6307 6.16706V11.1138C12.6307 11.6661 12.183 12.1138 11.6307 12.1138H10.7076C10.1553 12.1138 9.70763 11.6661 9.70763 11.1138V6.16706ZM12.9961 15.4699C12.9961 16.4789 12.1782 17.2969 11.1692 17.2969C10.1602 17.2969 9.34225 16.4789 9.34225 15.4699C9.34225 14.4609 10.1602 13.643 11.1692 13.643C12.1782 13.643 12.9961 14.4609 12.9961 15.4699Z","fill","#FFB946"]],template:function(t,T){1&t&&(e.j41(0,"button",0)(1,"mat-icon",1),e.qSk(),e.j41(2,"svg",2),e.nrm(3,"path",3),e.k0s()()())},dependencies:[i.iY,x.An,b.oV]})}}return f})()}}]);

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.