PageSourceSearch

https://portal.unifapce.edu.br/FrameHTML/web/app/RH/PortalMeuRH/39.8adc09dc26caff7d.js

js unifapce.edu.br collected 2026-09-28 06:33:17 UTC 178,634 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkportal_meu_rh=self.webpackChunkportal_meu_rh||[]).push([[39],{11039:(gn,se,d)=>{d.r(se),d.d(se,{DataChangeModule:()=>cn});var I=d(56610),b=d(37222),k=d(51454),j=d(60564),q=d(86731),m=d(19364),le=d(753),Ce=d(26409),Ie=d(99452),Se=d(3564),Fe=d(76356),z=d(75834),E=d(12414),h=d(73308),D=d(19277),re=d(80371),U=d(19278),J=d(31930),V=d(68848),L=d(296),S=d(31806),e=d(23279),H=d(91132),A=d(61288),W=d(73123),xe=d(38555);function Re(a,r){if(1&a){const n=e.RV6();e.j41(0,"app-card-detail",5),e.bIt("back",function(){e.eBV(n);const i=e.XpG();return e.Njj(i.back())}),e.k0s()}if(2&a){const n=e.XpG();e.Y8G("cardTitle","l-data-change-details")("name",null==n.currentDataChange?null:n.currentDataChange.employeeName)("registry",null==n.currentDataChange?null:n.currentDataChange.employeeId)("fields",n.dataChangeFields)("status",null==n.currentDataChange?null:n.currentDataChange.status)("statusLabel",null==n.currentDataChange?null:n.currentDataChange.statusLabel)("hasAttachment",n.hasAttachment)("fileName",n.fileName)("loggedUser",n.loggedUser)("groupedFieldType",!0)("fileSize",n.fileSize)}}let Te=(()=>{var a;class r extends D.U{constructor(t,i,o,s,l,p){super(),this.fieldPropertiesService=t,this.windowUtilService=i,this.requisitionsService=o,this.appTranslateService=s,this.momentService=l,this.globals=p,this.currentDataChange={employeeId:"{current}",id:"",requestId:"",requestType:L.K.RequestTypeEnum.EmployeeDataChange,employeeName:"",startDate:new Date,status:L.K.StatusEnum.Empty,requesterName:""},this.dataChangeFields=[],this.translateStatusLabels=[],this.detailVisible=!1,this.hasAttachment=!1}ngOnInit(){this.initializeComponent()}translateString(t){return this.appTranslateService.getI18n(t)}loadFieldProperties(){var t=this;return(0,h.A)(function*(){t.fieldProperties=yield t.fieldPropertiesService.getFieldProperties("requisitionsDataChange"),t.fieldProperties&&t.fieldProperties.forEach(i=>{switch(i.field){case"categoryChangeType":t.categoryChangeType=i;break;case"costCenter":t.costCenter=i;break;case"classValue":t.classValue=i;break;case"accountingItem":t.accountingItem=i;break;case"newRole":t.newRole=i;break;case"currentHierarchicalStructure":t.currentHierarchicalStructure=i;break;case"newHierarchicalStructure":t.newHierarchicalStructure=i;break;case"requesterName":t.requesterName=i;break;case"salaryTable":t.salaryTable=i;break;case"levelSalaryTable":t.levelSalaryTable=i;break;case"rangeSalaryTable":t.rangeSalaryTable=i;break;case"editSalary":t.editSalary=i;break;case"editPercent":t.editPercent=i}})})()}getLabelForStatus(t){let i="";switch(t){case"N":i=this.translateStatusLabels[0].toString();break;case"A":i=this.translateStatusLabels[1].toString();break;case"D":i=this.translateStatusLabels[2].toString();break;case"F":i=this.translateStatusLabels[3].toString();break;default:i=this.translateStatusLabels[4].toString()}return i}back(){this.windowUtilService.back()}initializeComponent(){var t=this;return(0,h.A)(function*(){yield t.loadFieldProperties(),t.currentDataChange=yield t.requisitionsService.getSelectedRequisition(),t.loggedUser=yield t.globals.getEmployeeSummary(),t.getTranslateForStatusLabels(),t.currentDataChange?(yield t.getDataChangeDetails(),t.detailVisible=!0):t.windowUtilService.back()})()}getDataChangeDetails(){var t=this;return(0,h.A)(function*(){var i,o,s,l,p,u,v,C,f,R,T,_,g,y,x,w,P,F,G,$,Q,Z,ee,te,ie,ne,ae,oe;const pn=new I.oe("pt-BR","BRL"),c=yield t.requisitionsService.getDataChangeDetails(t.loggedUser.id,null===(i=t.currentDataChange)||void 0===i?void 0:i.id);t.fileName=null===(o=c.file)||void 0===o?void 0:o.name,t.hasAttachment=c.hasAttachment,t.fileSize=3*(null===(s=c.file)||void 0===s?void 0:s.content.length)/4,t.dataChangeFields.push({groupTitle:"",showLine:!1,items:[{label:"l-requisition-id",value:null===(l=t.currentDataChange)||void 0===l?void 0:l.requestId,class:"po-sm-6 po-md-3",visible:!0},{label:"l-role",value:c.role,class:"po-sm-6 po-md-3",visible:null!=c.role},{label:"l-data-change-date",value:t.momentService.getInstance(c.requisitionDate).utc().format("L"),class:"po-sm-6 po-md-3",visible:null!=c.requisitionDate},{label:"l-change-function-reason",value:null===(p=c.changeFunctionReason)||void 0===p?void 0:p.name,class:"po-sm-6 po-md-3",visible:null!=c.changeFunctionReason},{label:"l-new-role",value:c.newRole,class:"po-sm-6 po-md-3",visible:c.newRole&&(null===(u=t.newRole)||void 0===u?void 0:u.visible)},{label:"l-new-function",value:c.newFunction,class:"po-sm-6 po-md-3",visible:null!=c.newFunction},{label:"l-salary-table",value:null===(v=c.salaryInfo)||void 0===v?void 0:v.idSalaryTable,class:"po-sm-12 po-md-3",visible:null!=(null===(C=c.salaryInfo)||void 0===C?void 0:C.idSalaryTable)&&(null===(f=t.salaryTable)||void 0===f?void 0:f.visible)},{label:"l-salary-level",value:null===(R=c.salaryInfo)||void 0===R?void 0:R.salaryLevel,class:"po-sm-12 po-md-3",visible:null!=(null===(T=c.salaryInfo)||void 0===T?void 0:T.salaryLevel)&&(null===(_=t.levelSalaryTable)||void 0===_?void 0:_.visible)},{label:"l-salary-range",value:null===(g=c.salaryInfo)||void 0===g?void 0:g.salaryRange,class:"po-sm-12 po-md-3",visible:null!=(null===(y=c.salaryInfo)||void 0===y?void 0:y.salaryRange)&&(null===(x=t.rangeSalaryTable)||void 0===x?void 0:x.visible)},{label:"l-percentage-increase",value:Number.parseFloat(null===(w=c.salaryInfo)||void 0===w?void 0:w.percent.toString()).toFixed(2)+"%",class:"po-sm-12 po-md-3",visible:null!=(null===(P=c.salaryInfo)||void 0===P?void 0:P.percent)&&(null===(F=t.editPercent)||void 0===F?void 0:F.visible)},{label:t.isRM()&&"Horista"===(null==c?void 0:c.category)?"l-proposed-salary-hour":"l-proposed-salary",value:pn.transform(c.proposedSalary,"BRL","symbol","1.2-2"),class:"po-sm-6 po-md-3",visible:t.isRM()?null!=(null==c?void 0:c.proposedSalary)&&(null===(G=t.editSalary)||void 0===G?void 0:G.visible):null!=(null==c?void 0:c.proposedSalary)},{label:"l-change-salary-reason",value:null===($=c.changeSalaryReason)||void 0===$?void 0:$.name,class:"po-sm-6 po-md-3",visible:null!=(null==c?void 0:c.changeSalaryReason)},{label:"l-percentage-increase",value:null!=c.percentageIncrease?Number.parseFloat(c.percentageIncrease.toString()).toFixed(2)+"%":null,class:"po-sm-6 po-md-3",visible:null!=(null==c?void 0:c.percentageIncrease)},{label:"l-category",value:null==c||null===(Q=c.categoryChangeType)||void 0===Q?void 0:Q.name,class:"po-sm-6 po-md-3",visible:c.categoryChangeType&&(null===(Z=t.categoryChangeType)||void 0===Z?void 0:Z.visible)},{label:"l-cost-center",value:null==c?void 0:c.costCenter,class:"po-sm-6 po-md-3",visible:(null==c?void 0:c.costCenter)&&(null===(ee=t.costCenter)||void 0===ee?void 0:ee.visible)},{label:"l-class-value",value:null==c?void 0:c.classValue,class:"po-sm-6 po-md-3",visible:t.isRM()&&(null==c?void 0:c.classValue)&&(null===(te=t.classValue)||void 0===te?void 0:te.visible)},{label:"l-accounting-item",value:null==c?void 0:c.accountingItem,class:"po-sm-6 po-md-3",visible:t.isRM()&&(null==c?void 0:c.accountingItem)&&(null===(ie=t.accountingItem)||void 0===ie?void 0:ie.visible)},{label:"l-department",value:c.department,class:"po-sm-6 po-md-3",visible:null!=c.department},{label:"l-expected-date",value:t.momentService.getInstance(c.expectedDate).utc().format("L"),class:"po-sm-6 po-md-3",visible:null!=c.expectedDate},{label:"l-situation",value:t.getLabelForStatus(c.employeeSituation),class:"po-sm-6 po-md-3",visible:null!=c.employeeSituation},{label:"l-current-hierarchical-structure",value:c.currentHierarchicalStructure,class:"po-sm-6 po-md-3",visible:c.currentHierarchicalStructure&&(null===(ne=t.currentHierarchicalStructure)||void 0===ne?void 0:ne.visible)},{label:"l-new-hierarchical-structure",value:c.newHierarchicalStructure,class:"po-sm-6 po-md-3",visible:c.newHierarchicalStructure&&(null===(ae=t.newHierarchicalStructure)||void 0===ae?void 0:ae.visible)},{label:"l-collaborator",value:null===(oe=t.currentDataChange)||void 0===oe?void 0:oe.requesterName,class:"po-sm-12 po-md-3",visible:t.currentDataChange.requesterName&&t.requesterName.visible}]},{groupTitle:"",showLine:!(!c.complementaryField&&!c.progressiveIncrease),items:[{label:"l-requisition-justify-label",value:c.justification,class:"po-sm-12 po-md-12",visible:null!=c.justification}]}),t.mountProgressiveObject(c.progressiveIncrease,null==c?void 0:c.category).forEac
1h(un=>t.dataChangeFields.push(un));const dn=t.mountComplementaryObject(c.complementaryField);t.dataChangeFields.push(dn)})()}getTranslateForStatusLabels(){var t=this;return(0,h.A)(function*(){t.translateStatusLabels.push(yield t.translateString("l-active")),t.translateStatusLabels.push(yield t.translateString("l-away")),t.translateStatusLabels.push(yield t.translateString("l-fired")),t.translateStatusLabels.push(yield t.translateString("l-vacation")),t.translateStatusLabels.push(yield t.translateString("l-transferred"))})()}mountProgressiveObject(t=[],i){if(t){const o=new I.oe("pt-BR","BRL");let s=[];return s.push({groupTitle:"l-progressive-increase",showLine:!1,items:[]}),t.forEach(p=>{var u,v,C,f,R,T,_,g,y;let x={groupTitle:"",showLine:!0,items:[{label:"l-code",value:p.codProgressive,class:"po-sm-12 po-md-3",visible:!0},{label:"l-function",value:null===(u=p.jobFunction)||void 0===u?void 0:u.name,class:"po-sm-12 po-md-3",visible:!0},{label:"l-change-function-reason",value:null===(v=p.changeFunctionReason)||void 0===v?void 0:v.name,class:"po-sm-12 po-md-3",visible:!(null===(C=p.changeFunctionReason)||void 0===C||!C.name)},{label:"l-salary-table",value:null===(f=p.salaryInfo)||void 0===f?void 0:f.idSalaryTable,class:"po-sm-12 po-md-3",visible:!0},{label:"l-salary-level",value:null===(R=p.salaryInfo)||void 0===R?void 0:R.salaryLevel,class:"po-sm-12 po-md-3",visible:!0},{label:"l-salary-range",value:null===(T=p.salaryInfo)||void 0===T?void 0:T.salaryRange,class:"po-sm-12 po-md-3",visible:!0},{label:"l-percentage-increase",value:Number.parseFloat(null===(_=p.salaryInfo)||void 0===_?void 0:_.percent.toString()).toFixed(2)+"%",class:"po-sm-12 po-md-3",visible:!0},{label:this.isRM()&&"Horista"===i?"l-proposed-salary-hour":"l-proposed-salary",value:o.transform(null===(g=p.salaryInfo)||void 0===g?void 0:g.proposedSalary,"BRL","symbol","1.2-2"),class:"po-sm-12 po-md-3",visible:!this.isRM||this.editSalary.visible},{label:"l-salary-change-reason",value:null===(y=p.changeSalaryReason)||void 0===y?void 0:y.name,class:"po-sm-12 po-md-3",visible:!0},{label:"l-date",value:p.expectedDate?this.momentService.getInstance(p.expectedDate).utc().format("L"):null,class:"po-sm-12 po-md-3",visible:!!p.expectedDate}]};s.push(x)}),s}return[]}mountComplementaryObject(t){var i=this;if(t){let o={groupTitle:"l-infos",showLine:!1,items:[]};return t.sort(this.sortComplementaryField).forEach(function(){var s=(0,h.A)(function*(l){const p={label:l.label,value:yield i.returnFieldValue(l.exclusiveType,l.value),class:"po-sm-12 po-md-3",visible:l.visible};o.items.push(p)});return function(l){return s.apply(this,arguments)}}()),o}return[]}sortComplementaryField(t,i){return t.order-i.order}returnFieldValue(t,i){var o=this;return(0,h.A)(function*(){let s;switch(t){case"Data":s=i?o.momentService.getInstance(i).utc().format("L"):"";break;case"Texto":default:s=i;break;case"Logico":s="T"==i?"l-yes":"l-no";break;case"Alfanumerico":s=null!=i&&i.id?i.name:i}return s})()}isRM(){return S.Ay.isErpRM()}}return(a=r).\u0275fac=function(t){return new(t||a)(e.rXU(J.F),e.rXU(H.i),e.rXU(V.R),e.rXU(A.F),e.rXU(re.R),e.rXU(U.R))},a.\u0275cmp=e.VBU({type:a,selectors:[["app-data-change-visualize"]],standalone:!1,features:[e.Vt3],decls:5,vars:2,consts:[[1,"card-detail"],[1,"po-row"],[1,"po-sm-12","po-md-12","po-lg-12","po-xl-12"],["backIsVisible","true",3,"pageTitle"],[3,"cardTitle","name","registry","fields","status","statusLabel","hasAttachment","fileName","loggedUser","groupedFieldType","fileSize","back",4,"ngIf"],[3,"back","cardTitle","name","registry","fields","status","statusLabel","hasAttachment","fileName","loggedUser","groupedFieldType","fileSize"]],template:function(t,i){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.nrm(3,"app-page-header",3),e.k0s()(),e.DNE(4,Re,1,11,"app-card-detail",4),e.k0s()),2&t&&(e.R7$(3),e.Y8G("pageTitle","l-requisition-details-confirm"),e.R7$(),e.Y8G("ngIf",i.detailVisible))},dependencies:[I.bT,W.y,xe.X],styles:[".card-detail[_ngcontent-%COMP%]{position:relative}@media screen and (min-width: 992px) and (max-width: 1199px){.card-detail-holder[_ngcontent-%COMP%]{position:absolute;bottom:22px;right:15px}}@media screen and (min-width: 1200px){.card-detail-holder[_ngcontent-%COMP%]{position:absolute;bottom:22px;right:15px}}@media (max-width: 960px) and (min-width: 481px){.card-detail-holder[_ngcontent-%COMP%]{position:absolute;bottom:22px;right:15px}}@media (min-width: 768px){.card-detail[_ngcontent-%COMP%]{padding:0 40px!important}}@media (max-width: 480px){[_nghost-%COMP%]     .general{margin-left:-8px!important}}[_nghost-%COMP%]     .line-staffincrease{margin-left:8px;margin-right:8px}"]}),r})();var Me=d(91021),ce=d(8243),X=d(16104),B=d(333);let pe=(()=>{var a;
1class r{constructor(t){this.requisitionsService=t,this.lookupOpen=new X.B,this.lookupOpenObservable=this.lookupOpen.asObservable(),this.changeSalaryReason=[],this.emitModel=new X.B,this.emitModelObservable=this.emitModel.asObservable()}getFilteredItems(t){return this.lookupOpen.next(!0),(0,B.H)(this.requisitionsService.salaryChangeTypes(t,this.idDepartment).then(i=>(this.changeSalaryReason=i.items,i)))}getObjectByValue(t){let i;return(0,B.H)(this.requisitionsService.salaryChangeTypes({filter:t},this.idDepartment).then(s=>(this.changeSalaryReason=s.items,s.items.forEach(l=>{l.name.toString().toUpperCase()===t.toUpperCase()&&(i=l)}),i)))}}return(a=r).\u0275fac=function(t){return new(t||a)(e.KVO(V.R))},a.\u0275prov=e.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),r})();var de=d(7152),ue=d(29473),Pe=d(39114),ke=d(63174);let we=(()=>{var a;class r{constructor(t){this.requisitionsService=t,this.lookupOpen=new X.B,this.lookupOpenObservable=this.lookupOpen.asObservable(),this.categoryChangeType=[],this.emitModel=new X.B,this.emitModelObservable=this.emitModel.asObservable()}getFilteredItems(t){return this.lookupOpen.next(!0),(0,B.H)(this.requisitionsService.categoryChangeType(t,this.idDepartment).then(i=>(this.categoryChangeType=i.items,i)))}getObjectByValue(t){let i;return(0,B.H)(this.requisitionsService.categoryChangeType({filter:t},this.idDepartment).then(s=>(this.categoryChangeType=s.items,s.items.forEach(l=>{l.name.toString().toUpperCase()===t.toUpperCase()&&(i=l)}),i)))}}return(a=r).\u0275fac=function(t){return new(t||a)(e.KVO(V.R))},a.\u0275prov=e.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),r})();var ge=d(9029),O=function(a){return a.TypeMessageEnum={Error:"error",Warning:"warning",Success:"success"},a}(O||{}),K=d(30693),me=d(63993),he=d(63686);function je(a,r){if(1&a&&(e.j41(0,"div",11)(1,"label",12),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"strong",13),e.EFF(5),e.k0s()()),2&a){const n=e.XpG().$implicit;e.R7$(2),e.JRh(e.bMT(3,2,"l-function")),e.R7$(3),e.JRh(null==n.jobFunction?null:n.jobFunction.name)}}function Ve(a,r){if(1&a&&(e.j41(0,"div",11)(1,"label",12),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"strong",13),e.EFF(5),e.k0s()()),2&a){const n=e.XpG().$implicit;e.R7$(2),e.JRh(e.bMT(3,2,"l-change-function-reason")),e.R7$(3),e.JRh(null==n.changeFunctionReason?null:n.changeFunctionReason.name)}}function qe(a,r){if(1&a&&(e.j41(0,"div",11)(1,"label",12),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"strong",13),e.EFF(5),e.k0s()()),2&a){const n=e.XpG().$implicit,t=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,2,"l-salary-table")),e.R7$(3),e.JRh(t.formatLabel(null==n.salaryInfo?null:n.salaryInfo.idSalaryTable))}}function Ee(a,r){if(1&a&&(e.j41(0,"div",11)(1,"label",12),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"strong",13),e.EFF(5),e.k0s()()),2&a){const n=e.XpG().$implicit,t=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,2,"l-salary-level")),e.R7$(3),e.JRh(t.formatLabel(null==n.salaryInfo?null:n.salaryInfo.salaryLevel))}}function Oe(a,r){if(1&a&&(e.j41(0,"div",11)(1,"label",12),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"strong",13),e.EFF(5),e.k0s()()),2&a){const n=e.XpG().$implicit,t=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,2,"l-salary-range")),e.R7$(3),e.JRh(t.formatLabel(null==n.salaryInfo?null:n.salaryInfo.salaryRange))}}function Ne(a,r){if(1&a&&(e.j41(0,"div",11)(1,"label",12),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"strong",13),e.EFF(5),e.nI1(6,"currency"),e.k0s()()),2&a){const n=e.XpG().$implicit;e.R7$(2),e.JRh(e.bMT(3,2,"l-proposed-salary")),e.R7$(3),e.JRh(e.ii3(6,4,null==n.salaryInfo?null:n.salaryInfo.proposedSalary,"BRL",!0,"1.2-2"))}}function Ge(a,r){if(1&a&&(e.j41(0,"div",11)(1,"label",12),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"strong",13),e.EFF(5),e.nI1(6,"percent"),e.k0s()()),2&a){const n=e.XpG().$implicit;e.R7$(2),e.JRh(e.bMT(3,2,"l-percentage-increase")),e.R7$(3),e.JRh(e.i5U(6,4,(null==n.salaryInfo?null:n.salaryInfo.percent)/100,"2.2-2"))}}function $e(a,r){if(1&a&&(e.j41(0,"div",11)(1,"label",12),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"strong",13),e.EFF(5),e.k0s()()),2&a){const n=e.XpG().$implicit;e.R7$(2),e.JRh(e.bMT(3,2,"l-salary-change-reason")),e.R7$(3),e.JRh(null==n.changeSalaryReason?null:n.changeSalaryReason.name)}}
1function De(a,r){if(1&a&&(e.j41(0,"div",11)(1,"label",12),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"strong",13),e.EFF(5),e.nI1(6,"utcDate"),e.k0s()()),2&a){const n=e.XpG().$implicit;e.R7$(2),e.JRh(e.bMT(3,2,"l-date")),e.R7$(3),e.JRh(e.i5U(6,4,n.expectedDate,"shortDate"))}}function Le(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",14),e.qex(1),e.j41(2,"div",15)(3,"div",16)(4,"img",17),e.bIt("click",function(){e.eBV(n);const i=e.XpG(3);return e.Njj(i.remove())}),e.k0s()(),e.j41(5,"div",16),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.bVm(),e.k0s()}2&a&&(e.R7$(6),e.SpI(" ",e.bMT(7,1,"l-delete")," "))}function Ae(a,r){if(1&a&&(e.j41(0,"div",4)(1,"app-expansion-card")(2,"div",5),e.nrm(3,"div",6),e.j41(4,"div",7)(5,"strong"),e.EFF(6),e.nI1(7,"translate"),e.nI1(8,"percent"),e.k0s()()(),e.j41(9,"div",8),e.DNE(10,je,6,4,"div",9)(11,Ve,6,4,"div",9)(12,qe,6,4,"div",9)(13,Ee,6,4,"div",9)(14,Oe,6,4,"div",9)(15,Ne,7,9,"div",9)(16,Ge,7,7,"div",9)(17,$e,6,4,"div",9)(18,De,7,7,"div",9)(19,Le,8,3,"div",10),e.k0s()()()),2&a){const n=r.$implicit,t=r.index,i=e.XpG(2);e.R7$(6),e.Lme("",e.bMT(7,12,"l-progressive-increase"),"\xa0",e.i5U(8,14,(null==n.salaryInfo?null:n.salaryInfo.percent)/100,"2.2-2"),""),e.R7$(4),e.Y8G("ngIf",null==n.jobFunction?null:n.jobFunction.name),e.R7$(),e.Y8G("ngIf",null==n.changeFunctionReason?null:n.changeFunctionReason.name),e.R7$(),e.Y8G("ngIf",null==n.salaryInfo?null:n.salaryInfo.idSalaryTable),e.R7$(),e.Y8G("ngIf",null==n.salaryInfo?null:n.salaryInfo.salaryLevel),e.R7$(),e.Y8G("ngIf",null==n.salaryInfo?null:n.salaryInfo.salaryRange),e.R7$(),e.Y8G("ngIf",null==n.salaryInfo?null:n.salaryInfo.proposedSalary),e.R7$(),e.Y8G("ngIf",null==n.salaryInfo?null:n.salaryInfo.percent),e.R7$(),e.Y8G("ngIf",null==n.changeSalaryReason?null:n.changeSalaryReason.name),e.R7$(),e.Y8G("ngIf",n.expectedDate),e.R7$(),e.Y8G("ngIf",i.progressiveIncreaseItens.length-1==t&&i.showRemoveIcon)}}function Xe(a,r){if(1&a&&(e.j41(0,"div",1)(1,"div",2),e.DNE(2,Ae,20,17,"div",3),e.k0s()()),2&a){const n=e.XpG();e.R7$(2),e.Y8G("ngForOf",n.progressiveIncreaseItens)}}function Be(a,r){if(1&a&&(e.nrm(0,"po-info",23),e.nI1(1,"translate")),2&a){const n=e.XpG().$implicit;e.FS9("p-label",e.bMT(1,2,"l-function")),e.Y8G("p-value",null==n.jobFunction?null:n.jobFunction.name)}}function Ye(a,r){if(1&a&&(e.nrm(0,"po-info",23),e.nI1(1,"translate")),2&a){const n=e.XpG().$implicit;e.FS9("p-label",e.bMT(1,2,"l-change-function-reason")),e.Y8G("p-value",null==n.changeFunctionReason?null:n.changeFunctionReason.name)}}function ze(a,r){if(1&a&&(e.nrm(0,"po-info",23),e.nI1(1,"translate")),2&a){const n=e.XpG().$implicit,t=e.XpG(2);e.FS9("p-label",e.bMT(1,2,"l-salary-table")),e.Y8G("p-value",t.formatLabel(null==n.salaryInfo?null:n.salaryInfo.idSalaryTable))}}function Ue(a,r){if(1&a&&(e.nrm(0,"po-info",23),e.nI1(1,"translate")),2&a){const n=e.XpG().$implicit,t=e.XpG(2);e.FS9("p-label",e.bMT(1,2,"l-salary-level")),e.Y8G("p-value",t.formatLabel(null==n.salaryInfo?null:n.salaryInfo.salaryLevel))}}function Je(a,r){if(1&a&&(e.nrm(0,"po-info",23),e.nI1(1,"translate")),2&a){const n=e.XpG().$implicit,t=e.XpG(2);e.FS9("p-label",e.bMT(1,2,"l-salary-range")),e.Y8G("p-value",t.formatLabel(null==n.salaryInfo?null:n.salaryInfo.salaryRange))}}function He(a,r){if(1&a&&(e.nrm(0,"po-info",23),e.nI1(1,"translate"),e.nI1(2,"percent")),2&a){const n=e.XpG().$implicit;e.Mz_("p-label","",e.bMT(1,3,"l-percentage-increase")," "),e.Y8G("p-value",e.i5U(2,5,(null==n.salaryInfo?null:n.salaryInfo.percent)/100,"2.2-2"))}}function We(a,r){if(1&a&&(e.nrm(0,"po-info",23),e.nI1(1,"translate"),e.nI1(2,"currency")),2&a){const n=e.XpG().$implicit;e.FS9("p-label",e.bMT(1,2,"l-proposed-salary")),e.Y8G("p-value",e.ii3(2,4,null==n.salaryInfo?null:n.salaryInfo.proposedSalary,"BRL",!0,"1.2-2"))}}function Ke(a,r){if(1&a&&(e.nrm(0,"po-info",23),e.nI1(1,"translate")),2&a){const n=e.XpG().$implicit;e.FS9("p-label",e.bMT(1,2,"l-salary-change-reason")),e.Y8G("p-value",null==n.changeSalaryReason?null:n.changeSalaryReason.name)}}function Qe(a,r){if(1&a&&(e.nrm(0,"po-info",23),e.nI1(1,"translate"),e.nI1(2,"utcDate")),2&a){const n=e.XpG().$implicit;e.FS9("p-label",e.bMT(1,2,"l-date")),e.Y8G("p-value",e.i5U(2,4,n.expectedDate,"shortDate"))}}function Ze(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",15)(1,"div",16)(2,"img",17),e.bIt("click",function(){e.eBV(n);const i=e.XpG(4);return e.Njj(i.remove())}),e.k0s()(),e.j41(3,"div",27),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&a&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"l-delete")," "))}function et(a,r){if(1&a&&(e.j41(0,"div",24)(1,"div",25),e.qex(2),e.DNE(3,Ze,6,3,"div",26),e.bVm(),e.k0s()()),2&a){const n=e.XpG(),t=n.$implicit,i=n.index,o=e.XpG(2);e.Y8G("ngClass",t.changeFunctionReason?"":"actions-visualize-fix-padding"),e.R7$(3),e.Y8G("ngIf",o.progressiveIncreaseItens.length-1==i)}}function tt(a,r){if(1&a&&(e.j41(0,"div",19)(1,"po-container",16)(2,"div",20)(3,"div",1),e.DNE(4,Be,2,4,"po-info",21)(5,Ye,2,4,"po-info",21)(6,ze,2,4,"po-info",21)(7,Ue,2,4,"po-info",21)(8,Je,2,4,"po-info",21)(9,He,3,8,"po-info",21)(10,We,3,9,"po-info",21)(11,Ke,2,4,"po-info",21)(12,Qe,3,7,"po-info",21),e.k0s()(),e.DNE(13,et,4,2,"div",22),e.k0s()()),2&a){const n=r.$implicit,t=e.XpG(2);e.R7$(4),e.Y8G("ngIf",null==n.jobFunction?null:n.jobFunction.name),e.R7$(),e.Y8G("ngIf",null==n.changeFunctionReason?null:n.changeFunctionReason.name),e.R7$(),e.Y8G("ngIf",null==n.salaryInfo?null:n.salaryInfo.idSalaryTable),e.R7$(),e.Y8G("ngIf",null==n.salaryInfo?null:n.salaryInfo.salaryLevel),e.R7$(),e.Y8G("ngIf",null==n.salaryInfo?null:n.salaryInfo.salaryRange),e.R7$(),e.Y8G("ngIf",null==n.salaryInfo?null:n.salaryInfo.percent),e.R7$(),e.Y8G("ngIf",null==n.salaryInfo?null:n.salaryInfo.proposedSalary),e.R7$(),e.Y8G("ngIf",null==n.changeSalaryReason?null:n.changeSalaryReason.name),e.R7$(),e.Y8G("ngIf",n.expectedDate),e.R7$(),e.Y8G("ngIf",t.showRemoveIcon)}}function it(a,r){if(1&a&&(e.j41(0,"div",1),e.DNE(1,tt,14,10,"div",18),e.k0s()),2&a){const n=e.XpG();e.R7$(),e.Y8G("ngForOf",n.progressiveIncreaseItens)}}let nt=(()=>{var a;class r extends D.U{constructor(){super(),this.progressiveIncreaseItens=[],this.showRemoveIcon=!0,this.removeItem=new e.bkB}ngOnInit(){this.defineIsMobile(window.innerWidth,window.innerHeight)}remove(){this.removeItem.emit()}formatLabel(t){return t.split("|")[1]}}return(a=r).\u0275fac=function(t){return new(t||a)},a.\u0275cmp=e.VBU({type:a,selectors:[["app-progressive-increase-info"]],inputs:{progressiveIncreaseItens:"progressiveIncreaseItens",showRemoveIcon:"showRemoveIcon"},outputs:{removeItem:"removeItem"},standalone:!1,features:[e.Vt3],decls:2,vars:2,consts:[["class","po-row",4,"ngIf"],[1,"po-row"],[1,"margin-card","po-sm-12","po-md-12","pl-0","pr-0","po-mb-2"],["class","margin-card po-sm-12 po-md-12 pl-0 pr-0 po-mt-1",4,"ngFor","ngForOf"],[1,"margin-card","po-sm-12","po-md-12","pl-0","pr-0","po-mt-1"],["card-header","",1,"mr-card-header","po-sm-12","po-md-12","po-lg-12","po-xl-12"],[1,"pull-left"],[1,"title-expansion-card"],["card-body","",1,"card-body-
1padding"],["class","po-row card-line",4,"ngIf"],["class","po-row mb-2 mt-1 actions-visualize card-line",4,"ngIf"],[1,"po-row","card-line"],[1,"po-sm-6","po-md-6"],[1,"pull-right","po-sm-6","po-md-6","text-card-align"],[1,"po-row","mb-2","mt-1","actions-visualize","card-line"],[1,"po-row","mb-1"],[1,"po-xl-12","po-lg-12","po-md-12","po-sm-12"],["src","assets/img/icon-trash.svg",1,"cursor-pointer",3,"click"],["class","po-xl-12 po-lg-12 po-md-12 po-sm-12 po-mb-2",4,"ngFor","ngForOf"],[1,"po-xl-12","po-lg-12","po-md-12","po-sm-12","po-mb-2"],[1,"po-xl-11","po-lg-11","po-md-11","po-sm-11"],["class","po-xl-3 po-lg-3 po-md-3 po-sm-3",3,"p-label","p-value",4,"ngIf"],["class","po-xl-1 po-lg-1 po-md-1 po-sm-1 actions-visualize",3,"ngClass",4,"ngIf"],[1,"po-xl-3","po-lg-3","po-md-3","po-sm-3",3,"p-label","p-value"],[1,"po-xl-1","po-lg-1","po-md-1","po-sm-1","actions-visualize",3,"ngClass"],[1,"po-row","mb-2","mt-1"],["class","po-row mb-1",4,"ngIf"],[1,"po-xl-12","po-lg-12","po-md-12","po-sm-12","actions-visualize-name"]],template:function(t,i){1&t&&e.DNE(0,Xe,3,1,"div",0)(1,it,2,1,"div",0),2&t&&(e.Y8G("ngIf",i.viewIsMobile),e.R7$(),e.Y8G("ngIf",!i.viewIsMobile))},dependencies:[I.YU,I.Sq,I.bT,m.qzL,m.Xa0,me.F,I.m1,I.oe,q.D9,he.B],styles:["[_nghost-%COMP%]     div #expansion-card-body{padding-top:4px!important}.actions-visualize[_ngcontent-%COMP%]{text-align:center;padding-top:14%}.actions-visualize-fix-padding[_ngcontent-%COMP%]{padding-top:7%}@media screen and (max-width: 1480px){.actions-visualize[_ngcontent-%COMP%]{padding-top:13.5%!important}.actions-visualize-fix-padding[_ngcontent-%COMP%]{padding-top:7%!important}}[_nghost-%COMP%]     .po-page, [_nghost-%COMP%]     .po-page-content{height:auto!important}[_nghost-%COMP%]     .po-container{padding:8px}@media (max-width: 600px){[_nghost-%COMP%]     .po-container{padding:1px!important}}[_nghost-%COMP%]     #expansion-card-header{position:relative;padding:3px 0 2px}[_nghost-%COMP%]     #expansion-card-header .icon-collapsed{top:50%;margin-top:25px!important;transform:translateY(-50%);right:0}[_nghost-%COMP%]     #expansion-card-header .pull-right{padding-right:9px}[_nghost-%COMP%]     #expansion-card-header .mr-card-header{float:unset}[_nghost-%COMP%]     #expansion-card-header .mr-card-header .about-employee{display:flex;align-items:center;padding-right:15px}[_nghost-%COMP%]     #expansion-card-header .mr-card-header .about-employee .cut-title{margin:0;padding-left:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:16px}[_nghost-%COMP%]     #expansion-card-header .mr-card-header .about-employee .name{font-size:15px}[_nghost-%COMP%]     #expansion-card-header .mr-card-header .checkbox-list .po-checkbox{margin-top:4px;padding:4px 0}[_nghost-%COMP%]     #expansion-card-header .mr-card-header .po-checkbox .po-checkbox-label{font-weight:bolder!important}[_nghost-%COMP%]     #expansion-card-body .item-body .value{text-align:right;font-weight:700}[_nghost-%COMP%]     .po-page-content{padding:0!important}.card-line[_ngcontent-%COMP%]{font-size:14px;border-top:1px solid #eceeee;padding-top:16px}.actions-visualize-name[_ngcontent-%COMP%]{padding-left:0%}.title-expansion-card[_ngcontent-%COMP%]{padding-left:5px!important}.po-info-label-max[_ngcontent-%COMP%]{max-width:25ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-card-align[_ngcontent-%COMP%]{text-align:right!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),r})();const at=["modalDialog"],ot=["poModalSalaryTable"],st=["poModalProgressiveMessage"];function lt(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",22)(1,"po-lookup",36),e.nI1(2,"translate"),e.nI1(3,"translate"),e.bIt("p-selected",function(i){e.eBV(n);const o=e.XpG(2);return e.Njj(o.setSelectedFunctionChange(i))})("p-change",function(i){e.eBV(n);const o=e.XpG(2);return e.Njj(o.changeSelectedFunctionChange(i))}),e.k0s()()}if(2&a){const n=e.XpG(2);e.R7$(),e.FS9("p-placeholder",e.bMT(2,4,"l-select-change-function-reason")),e.FS9("p-label",e.bMT(3,6,"l-change-function-reason")),e.Y8G("p-filter-service",n.functionChangeTypesLookupService)("p-columns",n.lookupColumnsChangeReason)}}function rt(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",5)(1,"div",37),e.nrm(2,"po-input",38),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",39)(5,"div",40),e.bIt("click",function(){e.eBV(n);const i=e.XpG(2);return e.Njj(i.openSalarialTable())}),e.EFF(6),e.nI1(7,"translate"),e.k0s()()()}2&a&&(e.R7$(2),e.FS9("p-label",e.bMT(3,2,"l-salary-table")),e.R7$(4),e.JRh(e.bMT(7,4,"l-salary-table")))}function ct(a,r){1&a&&(e.j41(0,"div",31),e.nrm(1,"po-input",41),e.nI1(2,"translate"),e.nI1(3,"translate"),e.k0s()),2&a&&(e.R7$(),e.FS9("p-placeholder",e.bMT(2,2,"l-salary-level")),e.FS9("p-label",e.bMT(3,4,"l-salary-level")))}function pt(a,r){1&a&&(e.j41(0,"div",31),e.nrm(1,"po-input",42),e.nI1(2,"translate"),e.nI1(3,"translate"),e.k0s()),2&a&&(e.R7$(),e.FS9("p-placeholder",e.bMT(2,2,"l-salary-range")),e.FS9("p-label",e.bMT(3,4,"l-salary-range")))}function dt(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",5)(1,"div",31)(2,"po-number",43),e.nI1(3,"translate"),e.nI1(4,"translate"),e.bIt("focusin",function(){e.eBV(n);const i=e.XpG(2);return e.Njj(i.setCurrentValues())})("focusout",function(){e.eBV(n);const i=e.XpG(2);return e.Njj(i.calculateSalaryValue())}),e.k0s()(),e.j41(5,"div",31)(6,"po-number",44),e.nI1(7,"translate"),e.nI1(8,"translate"),e.bIt("focusin",function(){e.eBV(n);const i=e.XpG(2);return e.Njj(i.setCurrentValues())})("focusout",function(){e.eBV(n);const i=e.XpG(2);return e.Njj(i.calculatePercentage())}),e.k0s()()()}2&a&&(e.R7$(2),e.FS9("p-placeholder",e.bMT(3,4,"l-salary-percent-placeholder")),e.FS9("p-label",e.bMT(4,6,"l-percentage-increase")),e.R7$(4),e.FS9("p-placeholder",e.bMT(7,8,"l-salary-proposal-placeholder")),e.FS9("p-label",e.bMT(8,10,"l-proposed-salary")))}function ut(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",22)(1,"po-lookup",45),e.nI1(2,"translate"),e.nI1(3,"translate"),e.bIt("p-selected",function(i){e.eBV(n);const o=e.XpG(2);return e.Njj(o.setSelectedReasonSalaryChange(i))})("p-change",function(i){e.eBV(n);const o=e.XpG(2);return e.Njj(o.changeSelectedReasonSalaryChange(i))}),e.k0s()()}if(2&a){const n=e.XpG(2);e.R7$(),e.FS9("p-placeholder",e.bMT(2,4,"l-select-salary-change-reason")),e.FS9("p-label",e.bMT(3,6,"l-salary-change-reason")),e.Y8G("p-filter-service",n.salaryChangeTypesLookupService)("p-columns",n.lookupColumnSalaryChangeTypes)}}function gt(a,r){if(1&a&&(e.j41(0,"div",22),e.nrm(1,"po-datepicker",46,3),e.nI1(3,"translate"),e.k0s()),2&a){const n=e.XpG(2);e.R7$(),e.FS9("p-label",e.bMT(3,3,"l-expected-date")),e.Y8G("p-min-date",n.minDate)("p-iso-format",n.poDatepickerIsoFormat)}}function mt(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",5)(1,"po-tabs")(2,"po-tab",19),e.nI1(3,"translate"),e.j41(4,"div",20)(5,"div",21)(6,"div",22)(7,"po-lookup",23),e.nI1(8,"translate"),e.nI1(9,"translate"),e.bIt("p-selected",function(i){e.eBV(n);const o=e.XpG();return e.Njj(o.setSelectedJobFunction(i))})("p-change",function(i){e.eBV(n);const o=e.XpG();return e.Njj(o.changeSelectedFunction(i))}),e.k0s()(),e.DNE(10,lt,4,8,"div",24),e.k0s(),e.DNE(11,rt,8,6,"div",9),e.j41(12,"div",5),e.DNE(13,ct,4,6,"div",25)(14,pt,4,6,"div",25),e.k0s(),e.DNE(15,dt,9,12,"div",9),e.j41(16,"div",5),e.DNE(17,ut,4,8,"div",24)(18,gt,4,5,"div",24),e.k0s(),e.j41(19,"div",26)(20,"div",27),e.bIt("click",function(){e.eBV(n);const i=e.XpG();return e.Njj(i.addProgressiveIncrease())}),e.nrm(21,"img",28),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.nrm(24,"br"),e.k0s()()(),e.j41(25,"po-tab",29),e.nI1(26,"translate"),e.j41(27,"div",20)(28,"div",5)(29,"div",30),e.EFF(30),e.nI1(31,"translate"),e.k0s()(),e.j41(32,"div",5)(33,"div",31)(34,"po-number",32),e.nI1(35,"translate"),e.nI1(36,"translate"),e.bIt("focusout",function(){e.eBV(n);const i=e.XpG();return e.Njj(i.calculateSalaryValueSuggest())}),e.k0s()(),e.j41(37,"div",31)(38,"po-number",33),e.nI1(39,"translate"),e.nI1(40,"translate"),e.bIt("focusout",function(){e.eBV(n);const i=e.XpG();return e.Njj(i.calculatePercentageSuggest())}),e.k0s()()(),e.j41(41,"div",5)(42,"div",22)(43,"po-lookup",34),e.nI1(44,"translate"),e.nI1(45,"translate"),e.bIt("p-selected",function(i){e.eBV(n);const o=e.XpG();return e.Njj(o.setSelectedReasonSalaryChangeSuggest(i))})("p-change",function(i){e.eBV(n);const o=e.XpG();return e.Njj(o.changeSelectedReasonSalaryChangeSuggest(i))}),e.k0s()(),e.j41(46,"div",22),e.nrm(47,"po-datepicker",35),e.nI1(48,"translate"),e.k0s()(),e.j41(49,"div",26)(50,"div",27),e.bIt("click",function(){e.eBV(n);const i=e.XpG();return e.Njj(i.generateIncreaseSuggestion())}),e.nrm(51,"img",28),e.EFF(52),e.nI1(53,"translate"),e.k0s(),e.nrm(54,"br"),e.k0s()()()()()}if(2&a){const n=e.XpG();e.R7$(2),e.FS9("p-label",e.bMT(3,34,"l-include-progressive-increase")),e.Y8G("p-active",!0)("p-disabled",n.isDisableInclude),e.R7$(2),e.Y8G("formGroup",n.reactiveFormProgressiveIncrease),e.R7$(3),e.FS9("p-placeholder",e.bMT(8,36,"l-select-function")),e.FS9("p-label",e.bMT(9,38,"l-function")),e.Y8G("p-filter-service",n.jobFunctionLookupService)("p-columns",n.lookupColumnsFunction),e.R7$(3),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveFormProgressiveIncrease.controls.jobFunctionChangeReason.value),e.R7$(),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveFormProgressiveIncrease.controls.salaryTable.value),e.R7$(2),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveFormProgressiveIncrease.controls.levelSalaryTable.value),e.R7$(),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveFormProgressiveIncrease.controls.rangeSalaryTable.value),e.R7$(),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveFormProgressiveIncrease.controls.editSalary.value),e.R7$(2),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.value),e.R7$(),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveFormProgressiveIncrease.controls.expectedDate.value),e.R7$(2),e.Y8G("ngClass",n.reactiveFormProgressiveIncrease.valid?"":"disabled-icon"),e.R7$(2),e.SpI("",e.bMT(23,40,"l-save-progressive-increase-and-new")," "),e.R7$(3),e.FS9("p-label",e.bMT(26,42,"l-suggest-progressive-increase")),e.Y8G("p-disabled",n.isDisableSuggest),e.R7$(2),e.Y8G("formGroup",n.reactiveFormProgressiveIncreaseSuggestion),e.R7$(3),e.SpI(" ",e.bMT(31,44,"l-how-generate-suggest")," "),e.R7$(4),e.FS9("p-placeholder",e.bMT(35,46,"l-salary-percent-placeholder")),e.FS9("p-label",e.bMT(36,48,"l-percentage-increase")),e.R7$(4),e.FS9("p-placeholder",e.bMT(39,50,"l-salary-proposal-placeholder")),e.FS9("p-label",e.bMT(40,52,"l-salary-final-suggest")),e.R7$(5),e.FS9("p-placeholder",e.bMT(44,54,"l-select-salary-change-reason")),e.FS9("p-label",e.bMT(45,56,"l-salary-change-reason")),e.Y8G("p-filter-service",n.salaryChangeTypesLookupService)("p-columns",n.lookupColumnSalaryChangeTypes),e.R7$(4),e.FS9("p-label",e.bMT(48,58,"l-date-suggest")),e.Y8G("p-min-date",n.minDate)("p-iso-format",n.poDatepickerIsoFormat),e.R7$(3),e.Y8G("ngClass",n.reactiveFormProgressiveIncreaseSuggestion.valid?"":"disabled-icon"),e.R7$(2),e.SpI(" ",e.bMT(53,60,"l-generate-suggest")," ")}}function ht(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",6)(1,"po-button",49),e.nI1(2,"translate"),e.bIt("click",function(){e.eBV(n);const i=e.XpG(2);
1return e.Njj(i.addProgressiveIncreaseRequest())}),e.k0s(),e.j41(3,"po-button",50),e.nI1(4,"translate"),e.bIt("click",function(){e.eBV(n);const i=e.XpG(2);return e.Njj(i.cancel())}),e.k0s()()}2&a&&(e.R7$(),e.FS9("p-label",e.bMT(2,2,"l-save-progressive-increase")),e.R7$(2),e.FS9("p-label",e.bMT(4,4,"l-cancel")))}function vt(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",6)(1,"div",5)(2,"po-button",51),e.nI1(3,"translate"),e.bIt("click",function(){e.eBV(n);const i=e.XpG(2);return e.Njj(i.cancel())}),e.k0s(),e.j41(4,"po-button",52),e.nI1(5,"translate"),e.bIt("click",function(){e.eBV(n);const i=e.XpG(2);return e.Njj(i.addProgressiveIncreaseRequest())}),e.k0s()()()}2&a&&(e.R7$(2),e.FS9("p-label",e.bMT(3,2,"l-cancel")),e.R7$(2),e.FS9("p-label",e.bMT(5,4,"l-save-progressive-increase")))}function _t(a,r){if(1&a&&(e.j41(0,"div",47),e.DNE(1,ht,5,6,"div",48)(2,vt,6,6,"div",48),e.k0s()),2&a){const n=e.XpG();e.Y8G("ngClass",n.viewIsMobile?"po-mb-5 po-pb-5":""),e.R7$(),e.Y8G("ngIf",!n.viewIsMobile),e.R7$(),e.Y8G("ngIf",n.viewIsMobile)}}function bt(a,r){1&a&&(e.j41(0,"p",53),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a&&(e.R7$(),e.JRh(e.bMT(2,1,"l-salary-table-subtitle")))}function ft(a,r){if(1&a&&e.nrm(0,"po-table",54),2&a){const n=e.XpG();e.Y8G("p-columns",n.columnsView)("p-items",n.itemsView)("p-sort",!0)("p-striped",!0)("p-hide-columns-manager",!0)("p-loading",n.loading)}}function yt(a,r){if(1&a){const n=e.RV6();e.j41(0,"span"),e.nrm(1,"hr",65),e.j41(2,"div",66)(3,"span",67)(4,"input",68),e.bIt("click",function(){const i=e.eBV(n).$implicit,o=e.XpG().$implicit,s=e.XpG().$implicit,l=e.XpG(2);return e.Njj(l.setSelectedValue(o.descriptionLevel,i.labelLevel,i.valueLevel,s.description,s.id,o.codLevel,i.idLevel))}),e.k0s(),e.j41(5,"label",69),e.EFF(6),e.k0s()(),e.j41(7,"span",70),e.EFF(8),e.nI1(9,"currency"),e.k0s()()()}if(2&a){const n=r.$implicit;e.R7$(4),e.Y8G("id",n.idLevel)("value",n.labelLevel),e.R7$(),e.Y8G("for",n.idLevel),e.R7$(),e.JRh(n.labelLevel),e.R7$(2),e.JRh(e.brH(9,5,n.valueLevel,"BRL",!0))}}function Ct(a,r){if(1&a&&(e.j41(0,"mat-expansion-panel",61)(1,"mat-expansion-panel-header",62)(2,"div",63),e.EFF(3),e.k0s()(),e.DNE(4,yt,10,9,"span",64),e.k0s()),2&a){const n=r.$implicit;e.R7$(3),e.Lme("",n.codLevel," - ",n.descriptionLevel,""),e.R7$(),e.Y8G("ngForOf",n.items)}}function It(a,r){if(1&a&&(e.j41(0,"mat-accordion",59),e.DNE(1,Ct,5,3,"mat-expansion-panel",60),e.k0s()),2&a){const n=r.$implicit;e.R7$(),e.Y8G("ngForOf",n.items)}}function St(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",55),e.DNE(1,It,2,1,"mat-accordion",56),e.j41(2,"div",16)(3,"div",17)(4,"po-button",57),e.nI1(5,"translate"),e.bIt("p-click",function(){e.eBV(n);const i=e.XpG();return e.Njj(i.cancelModal())}),e.k0s(),e.j41(6,"po-button",58),e.nI1(7,"translate"),e.bIt("p-click",function(){e.eBV(n);const i=e.XpG();return e.Njj(i.confirmModal())}),e.k0s()()()()}if(2&a){const n=e.XpG();e.R7$(),e.Y8G("ngForOf",n.salaryTable.items),e.R7$(3),e.FS9("p-label",e.bMT(5,3,"l-cancel")),e.R7$(2),e.FS9("p-label",e.bMT(7,5,"l-confirm"))}}let ve=(()=>{var a;class r extends D.U{constructor(t,i,o,s,l,p,u,v){super(),this.salaryChangeTypesLookupService=t,this.functionChangeTypesLookupService=i,this.jobFunctionLookupService=o,this.fb=s,this.appTranslateService=l,this.requisitionsService=p,this.notificationService=u,this.momentService=v,this.minDate=new Date,this.poDatepickerIsoFormat=m.aW2.Basic,this.progressiveIncreaseItens=[],this.isDisableInclude=!1,this.isDisableSuggest=!1,this.isRequisitionEdit=!1,this.progressiveIncreaseItem=new e.bkB,this.viewCards=this.requisitionsService.getViewCards()}ngOnInit(){this.initializeComponent()}initializeComponent(){this.createReactiveForm(),this.createReactiveFormSuggestion(),this.defineIsMobile(window.innerWidth,window.innerHeight),this.initLookup(),this.isRequisitionEdit&&(this.progressiveIncreaseItens=this.requisitionsService.getProgressiveIncrease())}openModal(){this.setFieldProperties(),this.clearFields(),this.poModal.open()}closeModal(){this.poModal.close()}openSalarialTable(){var t=this;return(0,h.A)(function*(){var i,o;let s;t.columns=[],t.items=[],t.loading=!0,s={idCompanyDepartment:t.viewCards[0].getEmployeesRequisitions().id.split("|")[0],idDepartment:t.viewCards[0].getEmployeesRequisitions().idDepartment,idFunction:null!==(i=t.selectedJobFunction)&&void 0!==i&&i.id?null===(o=t.selectedJobFunction)||void 0===o?void 0:o.id:t.viewCards[0].getEmployeesRequisitions().idFunction},t.salaryTable=yield t.requisitionsService.getSalaryTables(s),t.modalTitle=t.salaryTable.items[0].description,t.poModalSalaryTable.o
1pen(),yield t.generateTable(t.salaryTable.items),t.columnsView=t.columns,t.itemsView=t.items,t.loading=!1,t.resetSelectedValue()})()}generateTable(t){var i=this;return(0,h.A)(function*(){const o=[],s=new I.oe("pt-BR","BRL");let l=[];t&&t.forEach(p=>{p.items.forEach(u=>{u.items.forEach(f=>{o.push({property:f.idLevel,label:f.labelLevel,type:"link",action:i.clickAction.bind(i,f.idLevel,f.labelLevel)}),l.push({[f.idLevel]:s.transform(f.valueLevel,"BRL","symbol","1.2-2")})});const v={cod:u.codLevel,nvl:u.descriptionLevel};let C;l.forEach(f=>{C=Object.assign(v,f)}),i.items.push(C)}),i.columns.push({property:"cod",label:"C\xf3digo",type:"string"}),i.columns.push({property:"nvl",label:"N\xedvel",type:"string"}),o.forEach(u=>{-1===i.columns.findIndex(C=>C.property===u.property)&&i.columns.push(u)})})})()}clickAction(t,i,o,s){const l=o.replace(/[^0-9,-]+/g,""),p=Number(l.replace(/,/g,"."));this.salaryTable.items.length>=0&&(this.reactiveFormProgressiveIncrease.controls.salaryTable.setValue(this.salaryTable.items[0].description),this.reactiveFormProgressiveIncrease.controls.levelSalaryTable.setValue(s.nvl),this.reactiveFormProgressiveIncrease.controls.rangeSalaryTable.setValue(i),this.reactiveFormProgressiveIncrease.controls.editSalary.setValue(p),this.selectedSalaryTableId=this.salaryTable.items[0].id+"|"+this.salaryTable.items[0].description,this.selectedSalaryTableLevelId=s.cod+"|"+s.nvl,this.selectedSalaryTableRangeId=t+"|"+i,o&&(this.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.enable(),this.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.addValidators([b.k0.required]),this.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.setValue(""))),this.poModalSalaryTable.close(),this.calculatePercentage()}resetSelectedValue(){this.descriptionLevel=null,this.labelLevel=null,this.valueLevel=null}setSelectedValue(t,i,o,s,l,p,u){const v=new I.oe("pt-BR","BRL");this.descriptionLevel=t,this.labelLevel=i,this.tableName=s,this.valueLevel=v.transform(o,"BRL","symbol","1.2-2"),this.selectedSalaryTableId=l+"|"+s,this.selectedSalaryTableLevelId=p+"|"+i,this.selectedSalaryTableRangeId=u+"|"+t}cancelModal(){this.resetSelectedValue(),this.poModalSalaryTable.close()}confirmModal(){const t=this.valueLevel.replace(/[^0-9,-]+/g,""),i=Number(t.replace(/,/g,"."));this.reactiveFormProgressiveIncrease.controls.salaryTable.setValue(this.tableName),this.reactiveFormProgressiveIncrease.controls.levelSalaryTable.setValue(this.labelLevel),this.reactiveFormProgressiveIncrease.controls.rangeSalaryTable.setValue(this.descriptionLevel),this.reactiveFormProgressiveIncrease.controls.editSalary.setValue(i),t&&(this.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.enable(),this.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.addValidators([b.k0.required]),this.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.setValue("")),this.poModalSalaryTable.close(),this.calculatePercentage()}initLookup(){this.lookupColumnsChangeReason=[{property:"id",label:"l-code",fieldLabel:!0},{property:"name",label:"l-description",fieldLabel:!0}],this.lookupColumnsFunction=[{property:"id",label:"l-code",fieldLabel:!0,width:"25%"},{property:"name",label:"l-name",fieldLabel:!0},{property:"cbo",label:"CBO",fieldLabel:!0}],this.lookupColumnSalaryChangeTypes=[{property:"id",label:"l-code",fieldLabel:!0},{property:"name",label:"l-name",fieldLabel:!0}],this.lookupColumnsChangeReason.forEach(t=>{this.appTranslateService.getI18n(t.label).then(i=>{t.label=i})}),this.lookupColumnsFunction.forEach(t=>{this.appTranslateService.getI18n(t.label).then(i=>{t.label=i})}),this.lookupColumnSalaryChangeTypes.forEach(t=>{this.appTranslateService.getI18n(t.label).then(i=>{t.label=i})})}setSelectedJobFunction(t){this.selectedJobFunction=t,this.reactiveFormProgressiveIncrease.controls.jobFunctionChangeReason.enable(),this.reactiveFormProgressiveIncrease.controls.jobFunctionChangeReason.addValidators([b.k0.required]),this.reactiveFormProgressiveIncrease.controls.jobFunctionChangeReason.setValue("")}changeSelectedFunction(t){t||(this.selectedJobFunction=null,this.reactiveFormProgressiveIncrease.controls.jobFunctionChangeReason.removeValidators([b.k0.required]),this.reactiveFormProgressiveIncrease.controls.jobFunctionChangeReason.setValue(""),this.changeSelectedFunctionChange(null),"hiddenFieldProperties"!==this.reactiveFormProgressiveIncrease.controls.salaryTable.value&&this.resetValueTable())}setSelectedFunctionChange(t){this.selectedChangeFunctionReason=t}changeSelectedFunctionChange(t){t||(this.selectedChangeFunctionReason=null)}setSelectedReasonSalaryChange(t){this.selectedChangeSalaryReason=t}setSelectedReasonSalaryChangeSuggest(t){this.selectedChangeSalaryReasonSuggest=t}changeSelectedReasonSalaryChange(t){t||(this.selectedChangeSalaryReason=null)}changeSelectedReasonSalaryChangeSuggest(t){t||(this.selectedChangeSalaryReasonSuggest=null)}createReactiveForm(){this.reactiveFormProgressiveIncrease=this.fb.group({newJobFunction:[""],jobFunctionChangeReason:[""],salaryTable:[""],levelSalaryTable:[""],rangeSalaryTable:[""],editSalary:[""],editPercent:[""],reasonSalaryChange:[""],expectedDate:[""]})}createReactiveFormSuggestion(){this.reactiveFormProgressiveIncreaseSuggestion=this.fb.group({editSalarySuggest:["",b.k0.required],editPercentSuggest:["",b.k0.required],reasonSalaryChangeSuggest:["",b.k0.required],expectedDateSuggest:["",b.k0.required]})}
1setFieldProperties(){this.fieldProperties.forEach(t=>{this.reactiveFormProgressiveIncrease.controls[t.field]&&(t.required&&this.reactiveFormProgressiveIncrease.controls[t.field].addValidators([b.k0.required]),t.editable||this.reactiveFormProgressiveIncrease.controls[t.field].disable(),t.visible||this.reactiveFormProgressiveIncrease.controls[t.field].setValue("hiddenFieldProperties")),"displayAlert"===t.field&&(this.visibleWarning=t.visible),"descriptionSalaryTable"===t.field&&(this.visibleTableDescription=t.visible)})}calculatePercentage(){var t=this;return(0,h.A)(function*(){const i=t.reactiveFormProgressiveIncrease.controls.editSalary.value,s=t.progressiveIncreaseItens.length>0?t.progressiveIncreaseItens[t.progressiveIncreaseItens.length-1].salaryInfo.proposedSalary:t.viewCards[0].getEmployeesRequisitions().salary;if(i!==t.currentSalary){let l;l={salary:i,percent:null,salaryCurrent:s},i?(t.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.enable(),t.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.addValidators([b.k0.required]),t.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.setValue("")):(t.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.setValue(""),t.selectedChangeSalaryReason=null,t.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.removeValidators([b.k0.required]),t.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.disable(),"hiddenFieldProperties"!==t.reactiveFormProgressiveIncrease.controls.salaryTable.value&&t.resetValueTableSalary());const p=yield t.requisitionsService.validateSalary(l);t.reactiveFormProgressiveIncrease.controls.editPercent.setValue(p.percent),0==i&&0==p.salary&&t.reactiveFormProgressiveIncrease.controls.editPercent.setValue(-100),t.checkIfSalaryisLower(i)}})()}calculateSalaryValue(){var t=this;return(0,h.A)(function*(){const i=t.reactiveFormProgressiveIncrease.controls.editPercent.value,s=t.progressiveIncreaseItens.length>0?t.progressiveIncreaseItens[t.progressiveIncreaseItens.length-1].salaryInfo.proposedSalary:t.viewCards[0].getEmployeesRequisitions().salary;if(i!==t.currentDiscount){let l;l={salary:null,percent:i,salaryCurrent:s},i?(t.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.enable(),t.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.addValidators([b.k0.required]),t.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.setValue("")):(t.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.setValue(""),t.selectedChangeSalaryReason=null,t.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.removeValidators([b.k0.required]),t.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.disable(),"hiddenFieldProperties"!==t.reactiveFormProgressiveIncrease.controls.salaryTable.value&&t.resetValueTableSalary());const p=yield t.requisitionsService.validateSalary(l);t.reactiveFormProgressiveIncrease.controls.editSalary.setValue(p.salary),0==i&&0==p.salary&&t.reactiveFormProgressiveIncrease.controls.editSalary.setValue(l.salaryCurrent),t.checkIfSalaryisLower(p.salary)}})()}calculatePercentageSuggest(){var t=this;return(0,h.A)(function*(){const i=t.reactiveFormProgressiveIncreaseSuggestion.controls.editSalarySuggest.value,s=t.viewCards[0].getEmployeesRequisitions().salary;if(i!==t.currentSalary){let l;l={salary:i,percent:null,salaryCurrent:s};const p=yield t.requisitionsService.validateSalary(l);t.reactiveFormProgressiveIncreaseSuggestion.controls.editPercentSuggest.setValue(p.percent),t.checkIfSalaryisLower(i)}})()}calculateSalaryValueSuggest(){var t=this;return(0,h.A)(function*(){const i=t.reactiveFormProgressiveIncreaseSuggestion.controls.editPercentSuggest.value,s=t.viewCards[0].getEmployeesRequisitions().salary;if(i!==t.currentDiscount){let l;l={salary:null,percent:i,salaryCurrent:s};const p=yield t.requisitionsService.validateSalary(l);t.reactiveFormProgressiveIncreaseSuggestion.controls.editSalarySuggest.setValue(p.salary),t.checkIfSalaryisLower(p.salary)}})()}resetValueTable(){this.resetValueTableSalary(),this.reactiveFormProgressiveIncrease.controls.jobFunctionChangeReason.setValue("")}resetValueTableSalary(){this.reactiveFormProgressiveIncrease.controls.salaryTable.setValue(""),this.reactiveFormProgressiveIncrease.controls.levelSalaryTable.setValue(""),this.reactiveFormProgressiveIncrease.controls.rangeSalaryTable.setValue(""),this.reactiveFormProgressiveIncrease.controls.editSalary.setValue(""),this.reactiveFormProgressiveIncrease.controls.editPercent.setValue(""),this.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.setValue(""),this.selectedChangeSalaryReason=null,this.selectedChangeFunctionReason=null,this.selectedJobFunction=null,this.selectedSalaryTableLevelId=null,this.selectedSalaryTableRangeId=null,this.selectedSalaryTableId=null,this.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.disable()}setCurrentValues(){const i=this.reactiveFormProgressiveIncrease.controls.editPercent.value;this.currentSalary=this.reactiveFormProgressiveIncrease.controls.editSalary.value,this.currentDiscount=i}checkIfSalaryisLower(t){var i=this;return(0,h.A)(function*(){const s=i.viewCards[0].getEmployeesRequisitions().salary;if(t<s){const l=yield i.appTranslateService.getI18n("l-salary-level-warning");i.visibleWarning&&i.notificationService.showNotification(l,m._yA.Warning)}else if(t==s){const l=yield i.appTranslateService.getI18n("l-salary-level-information");i.notificationService.showNotification(l,m._yA.Information)}})()}addProgressiveIncrease(){var t=this;return(0,h.A)(function*(){if(t.reactiveFormProgressiveIncrease.valid)if(t.validadeExpectedDate(
1)){const i=yield t.appTranslateService.getI18n("l-message-alert-date");t.notificationService.showNotification(i,m._yA.Warning)}else t.request=t.requisitionsService.getSaveSalaryAndFunctionRequest(),t.validadeProgressiveIncreaseItem()})()}processResultMessageProgressiveIncreaseItem(t,i){t.typeMessage.toLowerCase()===O.TypeMessageEnum.Error.toLowerCase()||t.typeMessage.toLowerCase()===O.TypeMessageEnum.Warning.toLowerCase()?(this.messageProgressiveIncrease=t,this.poModalProgressiveMessage.open()):(this.messageProgressiveIncrease=t,t.message&&this.poModalProgressiveMessage.open(),this.progressiveIncreaseItens.push(i),this.isDisableSuggest=!0,this.clearFields())}validadeProgressiveIncreaseItem(){let t=[];this.progressiveIncreaseItens.forEach(s=>t.push(s));const i=this.progressiveIncreaseElement();t.push(i);const o=this.validateProgressiveIncreaseElement(t);this.requisitionsService.validateProgressiveIncreaseitem(o).then(s=>{this.processResultMessageProgressiveIncreaseItem(s,i)})}clearFields(){const t=new Date(Date.now());this.resetSelectedValue(),this.selectedChangeFunctionReason=null,this.selectedJobFunction=null,this.selectedChangeSalaryReason=null,this.selectedSalaryTableId=null,this.selectedSalaryTableLevelId=null,this.selectedSalaryTableRangeId=null,this.currentSalary=null,this.currentDiscount=null,Object.entries(this.reactiveFormProgressiveIncrease.value).forEach(i=>{"hiddenFieldProperties"!==i[1]&&this.reactiveFormProgressiveIncrease.controls[i[0]].reset()}),this.reactiveFormProgressiveIncrease.controls.expectedDate.addValidators([b.k0.required]),this.reactiveFormProgressiveIncrease.controls.reasonSalaryChange.disable(),this.reactiveFormProgressiveIncrease.controls.expectedDate.setValue(t)}validateProgressiveIncreaseElement(t){var i;const o=this.viewCards[0];return{registry:o.getEmployeesRequisitions().id,idCurrentFunction:o.getEmployeesRequisitions().idFunction,salaryCurrent:o.getEmployeesRequisitions().salary,branch:null,idSection:null,salaryInfo:this.request.salaryInfo,types:"employeeDataChange",progressiveIncrease:t,changeFunctionReason:this.request.changeFunctionReason,changeSalaryReason:this.request.changeSalaryReason,idNewFunction:null!==(i=this.request.jobFunction)&&void 0!==i&&i.id?this.request.jobFunction.id:null}}progressiveIncreaseElement(){let t={proposedSalary:this.reactiveFormProgressiveIncrease.controls.editSalary.value?this.reactiveFormProgressiveIncrease.controls.editSalary.value:null,idSalaryTable:this.selectedSalaryTableId?this.selectedSalaryTableId:null,salaryLevel:this.selectedSalaryTableLevelId?this.selectedSalaryTableLevelId:null,salaryRange:this.selectedSalaryTableRangeId?this.selectedSalaryTableRangeId:null,percent:this.reactiveFormProgressiveIncrease.controls.editPercent.value?this.reactiveFormProgressiveIncrease.controls.editPercent.value:null};return!this.selectedSalaryTableId&&!this.selectedSalaryTableLevelId&&!this.selectedSalaryTableRangeId&&(""===this.reactiveFormProgressiveIncrease.controls.editSalary.value||void 0===this.reactiveFormProgressiveIncrease.controls.editSalary.value||null==this.reactiveFormProgressiveIncrease.controls.editSalary.value)&&(t=null),{changeFunctionReason:this.selectedChangeFunctionReason?this.selectedChangeFunctionReason:null,changeSalaryReason:this.selectedChangeSalaryReason?this.selectedChangeSalaryReason:null,expectedDate:this.reactiveFormProgressiveIncrease.controls.expectedDate.value?this.reactiveFormProgressiveIncrease.controls.expectedDate.value:null,jobFunction:this.selectedJobFunction?this.selectedJobFunction:null,salaryInfo:t}}progressiveIncreaseElementSuggest(){let t={proposedSalary:this.reactiveFormProgressiveIncreaseSuggestion.controls.editSalarySuggest.value?this.reactiveFormProgressiveIncreaseSuggestion.controls.editSalarySuggest.value:null,idSalaryTable:this.selectedSalaryTableId?this.selectedSalaryTableId:null,salaryLevel:this.selectedSalaryTableLevelId?this.selectedSalaryTableLevelId:null,salaryRange:this.selectedSalaryTableRangeId?this.selectedSalaryTableRangeId:null,percent:this.reactiveFormProgressiveIncreaseSuggestion.controls.editPercentSuggest.value?this.reactiveFormProgressiveIncreaseSuggestion.controls.editPercentSuggest.value:null};return!this.selectedSalaryTableId&&!this.selectedSalaryTableLevelId&&!this.selectedSalaryTableRangeId&&(""===this.reactiveFormProgressiveIncreaseSuggestion.controls.editSalarySuggest.value||void 0===this.reactiveFormProgressiveIncreaseSuggestion.controls.editSalarySuggest.value||null==this.reactiveFormProgressiveIncreaseSuggestion.controls.editSalarySuggest.value)&&(t=null),{changeFunctionReason:null,changeSalaryReason:this.selectedChangeSalaryReasonSuggest?this.selectedChangeSalaryReasonSuggest:null,expectedDate:this.reactiveFormProgressiveIncreaseSuggestion.controls.expectedDateSuggest.value?this.reactiveFormProgressiveIncreaseSuggestion.controls.expectedDateSuggest.value:null,jobFunction:null,salaryInfo:t}}
1addProgressiveIncreaseRequest(){this.reactiveFormProgressiveIncrease.controls.newJobFunction.value&&this.addProgressiveIncrease(),this.requisitionsService.setProgressiveIncrease(this.progressiveIncreaseItens),this.progressiveIncreaseItem.emit(),this.closeModal()}cancel(){this.closeModal()}confirmModalMessage(){this.poModalProgressiveMessage.close()}removeLastIndex(){this.progressiveIncreaseItens.pop(),0==this.progressiveIncreaseItens.length&&(this.isDisableInclude=!1,this.isDisableSuggest=!1)}generateIncreaseSuggestion(){this.reactiveFormProgressiveIncreaseSuggestion.valid&&(this.request=this.requisitionsService.getSaveSalaryAndFunctionRequest(),this.validadeProgressiveIncreaseSuggestItem())}validadeProgressiveIncreaseSuggestItem(){let t=[],i=this.progressiveIncreaseElementSuggest();t.push(i);const o=this.validateProgressiveIncreaseElement(t);this.requisitionsService.createProgressiveIncreaseSuggest(o).then(s=>{s.message&&(this.messageProgressiveIncrease={message:s.message},this.poModalProgressiveMessage.open()),s.items.forEach(l=>{this.progressiveIncreaseItens.push(l)}),this.clearIncreaseSuggestionFields(),this.isDisableInclude=!0})}clearIncreaseSuggestionFields(){this.reactiveFormProgressiveIncreaseSuggestion.reset()}validadeExpectedDate(){var t=!1;const i=this.momentService.getInstance(this.progressiveIncreaseElement().expectedDate).utc().format("L");return this.progressiveIncreaseItens.forEach(o=>{this.momentService.getInstance(o.expectedDate).utc().format("L")==i&&(t=!0)}),t}}return(a=r).\u0275fac=function(t){return new(t||a)(e.rXU(pe),e.rXU(de.D),e.rXU(ue.B),e.rXU(b.ok),e.rXU(A.F),e.rXU(V.R),e.rXU(K.J),e.rXU(re.R))},a.\u0275cmp=e.VBU({type:a,selectors:[["app-progressive-increase"]],viewQuery:function(t,i){if(1&t&&(e.GBs(at,5),e.GBs(ot,5),e.GBs(st,5)),2&t){let o;e.mGM(o=e.lsd())&&(i.poModal=o.first),e.mGM(o=e.lsd())&&(i.poModalSalaryTable=o.first),e.mGM(o=e.lsd())&&(i.poModalProgressiveMessage=o.first)}},inputs:{fieldProperties:"fieldProperties",isRequisitionEdit:"isRequisitionEdit"},outputs:{progressiveIncreaseItem:"progressiveIncreaseItem"},standalone:!1,features:[e.Vt3],decls:26,vars:22,consts:[["modalDialog",""],["poModalSalaryTable",""],["poModalProgressiveMessage",""],["expectedDate",""],["p-hide-close","!isRequisitionEdit","p-click-out","false","p-size","xl",1,"modal-hide-footer",3,"p-title"],[1,"po-row"],[1,"po-xl-12","po-lg-12","po-md-12","po-sm-12"],[1,"po-xl-12","po-lg-12","po-md-12","po-sm-12","po-pt-2","po-pb-2"],[3,"removeItem","progressiveIncreaseItens","showRemoveIcon"],["class","po-row",4,"ngIf"],["class","po-row",3,"ngClass",4,"ngIf"],[1,"modal-hide-footer",3,"p-title"],["class","table-description",4,"ngIf"],[3,"p-columns","p-items","p-sort","p-striped","p-hide-columns-manager","p-loading",4,"ngIf"],["class","accordion-itens",4,"ngIf"],[1,"po-xl-12","po-lg-12","po-md-12","po-sm-12","po-pl-3","po-pr-3","modal-message"],[1,"mobile-footer-btns"],[1,"po-row","po-pt-2"],["p-kind","primary",1,"float-button",3,"p-click","p-label"],[3,"p-label","p-active","p-disabled"],[3,"formGroup"],[1,"po-row","po-mt-1"],[1,"po-xl-6","po-lg-6","po-md-12","po-sm-12"],["p-field-label","name","p-field-value","id","name","newJobFunction","id","newJobFunction","formControlName","newJobFunction",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"p-selected","p-change","p-placeholder","p-label","p-filter-service","p-columns"],["class","po-xl-6 po-lg-6 po-md-12 po-sm-12",4,"ngIf"],["class","po-xl-6 po-lg-6 po-md-6 po-sm-6",4,"ngIf"],[1,"po-row","po-mt-3","po-mb-3"],[1,"po-xl-12","po-lg-12","po-md-12","po-sm-12","progressive-increase",3,"click","ngClass"],["src","assets/img/icon-plus.svg",1,"icon-plus"],[3,"p-label","p-disabled"],[1,"po-xl-12","po-lg-12","po-md-12","po-sm-12","po-ml-1","po-mt-1","po-mb-2"],[1,"po-xl-6","po-lg-6","po-md-6","po-sm-6"],["formControlName","editPercentSuggest",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"focusout","p-placeholder","p-label"],["formControlName","editSalarySuggest",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"focusout","p-placeholder","p-label"],["p-field-label","name","p-field-value","id","name","reasonSalaryChangeSuggest","formControlName","reasonSalaryChangeSuggest",1,"po-xl-12","po-lg-12","po-md-12","po-sm-12",3,"p-selected","p-change","p-placeholder","p-label","p-filter-service","p-columns"],["p-placeholder","dd/mm/aaaa","name","expectedDateSuggest","formControlName","expectedDateSuggest",1,"po-xl-12","po-lg-12","po-md-12","po-sm-12",3,"p-label","p-min-date","p-iso-format"],["p-field-label","name","p-field-value","id","name","jobFunctionChangeReason","id","jobFunctionChangeReason","formControlName","jobFunctionChangeReason",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"p-selected","p-change","p-placeholder","p-label","p-filter-service","p-columns"],[1,"po-xl-8","po-lg-8","po-md-8","po-sm-8","fix-padding"],["p-disabled","true","formControlName","salaryTable",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"p-label"],[1,"po-xl-4","po-lg-4","po-md-4","po-sm-4","table-btn"],[1,"salarial-table-btn",3,"click"],["p-disabled","true","formControlName","levelSalaryTable",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"p-placeholder","p-label"],["p-disabled","true","formControlName","rangeSalaryTable",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"p-placeholder","p-label"],["formControlName","editPercent",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"focusin","focusout","p-placeholder","p-label"],["formControlName","editSalary",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"focusin","focusout","p-placeholder","p-label"],["p-field-label","name","p-field-value","id","name","reasonSalaryChange","formControlName","reasonSalaryChange",1,"po-xl-12","po-lg-12","po-md-12","po-sm-12",3,"p-selected","p-change","p-placeholder","p-label","p-filter-service","p-columns"],["p-placeholder","dd/mm/aaaa","name","expectedDate","formControlName","expectedDate",1,"po-xl-12","po-lg-12","po-md-12","po-sm-12",3,"p-label","p-min-date","p-iso-format"],[1,"po-row",3,"ngClass"],["class","po-xl-12 po-lg-12 po-md-12 po-sm-12",4,"ngIf"],["p-kind","primary",1,"float-button",3,"click","p-label"],[1,"po-mr-1","po-ml-1","float-button",3,"click","p-label"],[1,"po-xl-4","po-lg-4","po-md-4","po-sm-4","po-pl-1","po-pr-0",3,"click","p-label"],["p-kind","primary",1,"po-xl-8","po-lg-8","po-md-8","po-sm-8","po-pl-1","po-pr-1",3,"click","p-label"],[1,"table-description"],[3,"p-columns","p-items","p-sort","p-striped","p-hide-columns-manager","p-loading"],[1,"accordion-itens"],["class","po-sm-12 po-md-12 po-lg-12 po-xl-12 no-padding",4,"ngFor","ngForOf"],[1,"po-xl-6","po-lg-6","po-md-6","po-sm-6",3,"p-click","p-label"],["p-kind","primary",1,"po-xl-6","po-lg-6","po-md-6","po-sm-6",3,"p-click","p-label"],[1,"po-sm-12","po-md-12","po-lg-12","po-xl-12","no-padding"],["hideToggle","false",4,"ngFor","ngForOf"],["hideToggle","false"],[1,"vacation-history-header"],[1,"mat-expansion-header-fix"],[4,"ngFor","ngForOf"],[1,"line"],[1,"historic-content"],[1,"historic-label"],["kind","radio","name","choosenField",3,"click","id","value"],[3,"for"],[1,"historic-value"]],template:function(t,i){if(1&t){const o=e.RV6();e.j41(0,"po-modal",4,0),e.nI1(2,"translate"),e.j41(3,"div",5)(4,"div",6)(5,"div",7)(6,"app-progressive-increase-info",8),e.bIt("removeItem",function(){return e.eBV(o),e.Njj(i.removeLastIndex())}),e.k0s()(),e.DNE(7,mt,55,62,"div",9)(8,_t,3,3,"div",10),e.k0s()()(),e.j41(9,"po-modal",11,1),e.nI1(11,"translate"),e.DNE(12,bt,3,3,"p",12)(13,ft,1,6,"po-table",13)(14,St,8,7,"div",14),e.k0s(),e.j41(15,"po-modal",11,2),e.nI1(17,"translate"),e.j41(18,"div",15)(19,"div"),e.EFF(20),e.k0s()(),e.j41(21,"div",16)(22,"div",17)(23,"div",6)(24,"po-button",18),e.nI1(25,"translate"),e.bIt("p-click",function(){return e.eBV(o),e.Njj(i.confirmModalMessage())}),e.k0s()()()()()}2&t&&(e.FS9("p-title",e.bMT(2,14,"l-progressive-increase")),e.R7$(6),e.Y8G("progressiveIncreaseItens",i.progressiveIncreaseItens)("showRemoveIcon",!i.isRequisitionEdit),e.R7$(),e.Y8G("ngIf",!i.isRequisitionEdit),e.R7$(),e.Y8G("ngIf",!i.isRequisitionEdit),e.R7$(),e.FCK("p-title","",e.bMT(11,16,"l-salary-table"),": ",i.modalTitle,""),e.R7$(3),e.Y8G("ngIf",i.visibleTableDescription),e.R7$(),e.Y8G("ngIf",!i.viewIsMobile),e.R7$(),e.Y8G("ngIf",i.salaryTable&&i.viewIsMobile),e.R7$(),e.FS9("p-title",e.bMT(17,18,"l-warning")),e.R7$(5),e.JRh(null==i.messageProgressiveIncrease?null:i.messageProgressiveIncrease.message),e.R7$(4),e.FS9("p-label",e.bMT(25,20,"l-close")))},dependencies:[I.YU,I.Sq,I.bT,b.BC,b.cb,k.BS,k.GK,k.Z2,m.rmE,m.zLt,m.hdu,m.P5q,m.Cus,m.I3z,m.NZw,m.OX9,m.pxt,b.j4,b.JD,nt,I.oe,q.D9],styles:[".icon-plus[_ngcontent-%COMP%]{margin-right:8px;margin-top:-4px}.progressive-increase[_ngcontent-%COMP%]{cursor:pointer;color:#1c9abe;font-size:16px;font-weight:700;line-height:1.63;text-align:center}.accordion-itens[_ngcontent-%COMP%]{display:flex;margin-bottom:25px;flex-direction:column}mat-expansion-panel[_ngcontent-%COMP%]{background:#fff;box-shadow:0 2px 8px #e3e6f1;margin:10px 1px}mat-expansion-panel-header[_ngcontent-%COMP%]     .avatar-holder{display:flex}mat-expansion-panel-header[_ngcontent-%COMP%]     .mat-expansion-indicator:after{padding:6px!important;vertical-align:inherit!important}mat-expansion-panel-header[_ngcontent-%COMP%]     .mat-expansion-header-fix{padding-top:1px!important}.historic-label[_ngcontent-%COMP%]{color:#4a5c60}.historic-label[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin:0;padding-left:1em}.historic-value[_ngcontent-%COMP%]{font-weight:700;color:#2b3639;max-width:100px;display:inline;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.historic-content[_ngcontent-%COMP%]{padding:0 24px;display:flex;justify-content:space-between;text-align:right;cursor:pointer;-webkit-user-select:none;user-select:none}.fix-padding[_ngcontent-%COMP%]{padding-left:7px;padding-right:7px}.salarial-table-btn[_ngcontent-%COMP%]{width:100%;color:#0c9abe;font-family:NunitoSans-bold;height:45px;border-radius:3px;border:1px solid #0c9abe;font-size:14px;text-align:center;padding-top:9px;
1cursor:pointer;margin-bottom:8px}@media screen and (max-width: 425px){  body po-lookup-modal   po-modal   .po-modal-header{font-size:14px!important}.fix-padding[_ngcontent-%COMP%]{padding-left:4px;padding-right:4px}}@media screen and (max-width: 768px){.salarial-table-btn[_ngcontent-%COMP%]{font-size:10px;padding-top:4px;height:32.5px}.progressive-increase[_ngcontent-%COMP%]{font-size:14px}.table-btn[_ngcontent-%COMP%]{padding-right:8px!important}.form-holder[_ngcontent-%COMP%]{background:none;border:none;padding:0}.po-sm-12[_ngcontent-%COMP%], .po-sm-6[_ngcontent-%COMP%]{padding:0 4px}.subtitle-form[_ngcontent-%COMP%]{padding:0 8px;font-size:1.2em}.salarial-table[_ngcontent-%COMP%]{padding:0;font-size:12px}.salarial-table[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   .eye-icon[_ngcontent-%COMP%]{font-size:18px}app-card-employee-info[_ngcontent-%COMP%]     mat-accordion   .mat-accordion .mat-expansion-panel:last-of-type{box-shadow:none}po-input[_ngcontent-%COMP%]     po-field-container   .po-field-title, po-number[_ngcontent-%COMP%]     po-field-container   .po-field-title, po-textarea[_ngcontent-%COMP%]     po-field-container   .po-field-title, po-lookup[_ngcontent-%COMP%]     po-field-container   .po-field-title, po-datepicker[_ngcontent-%COMP%]     po-field-container   .po-field-title, po-switch[_ngcontent-%COMP%]     po-field-container   .po-field-title{font-size:10px}po-tabs[_ngcontent-%COMP%]     .po-tab-button-md{font-size:11px!important}.send-form-mobile[_ngcontent-%COMP%]{width:100%;padding-left:8px;padding-right:8px}.send-form-mobile[_ngcontent-%COMP%]   po-button[_ngcontent-%COMP%]     button{margin-bottom:15px;width:100%;height:44px}.hide-element[_ngcontent-%COMP%]{visibility:hidden;height:0}.basic-data[_ngcontent-%COMP%]{margin-top:0}}@media screen and (max-width: 1480px){.salarial-table-btn[_ngcontent-%COMP%]{padding-top:5px;height:33px}}.table-btn[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;padding-right:16px}po-modal[_ngcontent-%COMP%]     .po-modal-header{padding:23px 8px 5px 10px}po-modal[_ngcontent-%COMP%]     .po-modal-header   .po-modal-title{white-space:inherit!important;padding-left:3%}@media screen and (min-width: 760px){po-modal[_ngcontent-%COMP%]     .po-modal-header   .po-modal-title{padding-left:4.4%}}po-modal[_ngcontent-%COMP%]     .po-modal-header-close-button{top:17px;padding-right:6%}po-modal[_ngcontent-%COMP%]     .po-modal-body{margin-bottom:24px}.modal-hide-footer[_ngcontent-%COMP%]     .po-modal-footer{display:none}.disabled-icon[_ngcontent-%COMP%]{color:#ababab}.float-button[_ngcontent-%COMP%]    {float:right!important;text-align:right!important}"]}),r})();var Y=d(75039),Ft=d(8027),xt=d(49903),Rt=d(15635),Tt=d(96287),Mt=d(70514),Pt=d(31028),kt=d(83227),wt=d(3373),jt=d(60083),Vt=d(57883);const qt=["poModalProgressiveMessage"],N=a=>({"hide-element":a}),Et=a=>({"pt-2":a}),Ot=a=>({"no-padding":a});function Nt(a,r){1&a&&(e.j41(0,"p",20),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a&&(e.R7$(),e.JRh(e.bMT(2,1,"l-salary-table-subtitle")))}function Gt(a,r){if(1&a&&e.nrm(0,"po-table",21),2&a){const n=e.XpG();e.Y8G("p-columns",n.columnsView)("p-items",n.itemsView)("p-sort",!0)("p-striped",!0)("p-hide-columns-manager",!0)("p-loading",n.loading)}}function $t(a,r){if(1&a){const n=e.RV6();e.j41(0,"span"),e.nrm(1,"hr",31),e.j41(2,"div",32)(3,"span",33)(4,"input",34),e.bIt("click",function(){const i=e.eBV(n).$implicit,o=e.XpG().$implicit,s=e.XpG().$implicit,l=e.XpG(2);return e.Njj(l.setSelectedValue(o.descriptionLevel,i.labelLevel,i.valueLevel,s.description,s.id,o.codLevel,i.idLevel))}),e.k0s(),e.j41(5,"label",35),e.EFF(6),e.k0s()(),e.j41(7,"span",36),e.EFF(8),e.nI1(9,"currency"),e.k0s()()()}if(2&a){const n=r.$implicit;e.R7$(4),e.Y8G("id",n.idLevel)("value",n.labelLevel),e.R7$(),e.Y8G("for",n.idLevel),e.R7$(),e.JRh(n.labelLevel),e.R7$(2),e.JRh(e.brH(9,5,n.valueLevel,"BRL",!0))}}function Dt(a,r){if(1&a&&(e.j41(0,"mat-expansion-panel",28)(1,"mat-expansion-panel-header",29),e.EFF(2),e.k0s(),e.DNE(3,$t,10,9,"span",30),e.k0s()),2&a){const n=r.$implicit;e.R7$(2),e.Lme(" ",n.codLevel," - ",n.descriptionLevel," "),e.R7$(),e.Y8G("ngForOf",n.items)}}function Lt(a,r){if(1&a&&(e.j41(0,"mat-accordion",26),e.DNE(1,Dt,4,3,"mat-expansion-panel",27),e.k0s()),2&a){const n=r.$implicit;e.R7$(),e.Y8G("ngForOf",n.items)}}function At(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",22),e.DNE(1,Lt,2,1,"mat-accordion",23),e.j41(2,"div",13)(3,"div",7)(4,"po-button",24),e.nI1(5,"translate"),e.bIt("p-click",function(){e.eBV(n);const i=e.XpG();return e.Njj(i.cancelModal())}),e.k0s(),e.j41(6,"po-button",25),e.nI1(7,"translate"),e.bIt("p-click",function(){e.eBV(n);const i=e.XpG();return e.Njj(i.confirmModal())}),e.k0s()()()()}if(2&a){const n=e.XpG();e.R7$(),e.Y8G("ngForOf",n.salaryTable.items),e.R7$(3),e.FS9("p-label",e.bMT(5,3,"l-cancel")),e.R7$(2),e.FS9("p-label",e.bMT(7,5,"l-confirm"))}}function Xt(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",7)(1,"div",15)(2,"po-lookup",58),e.nI1(3,"translate"),e.nI1(4,"translate"),e.bIt("p-selected",function(i){e.eBV(n);const o=e.XpG(2);return e.Njj(o.setSelectedFunctionChange(i))})("p-change",function(i){e.eBV(n);const o=e.XpG(2);return e.Njj(o.changeSelectedFunctionChange(i))}),e.k0s()()()}if(2&a){const n=e.XpG(2);e.R7$(2),e.FS9("p-placeholder",e.bMT(3,4,"l-select-change-function-reason")),e.FS9("p-label",e.bMT(4,6,"l-change-function-reason")),e.Y8G("p-filter-service",n.functionChangeTypesLookupService)("p-columns",n.lookupColumnsChangeReason)}}function Bt(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",7)(1,"div",15)(2,"po-lookup",59),e.nI1(3,"translate"),e.nI1(4,"translate"),e.bIt("p-selected",function(i){e.eBV(n);const o=e.XpG(2);return e.Njj(o.setSelectedJobRoles(i))}),e.k0s()()()}if(2&a){const n=e.XpG(2);e.R7$(2),e.FS9("p-placeholder",e.bMT(3,4,"l-select-role")),e.FS9("p-label",e.bMT(4,6,"l-role")),e.Y8G("p-filter-service",n.jobRolesLookupService)("p-columns",n.lookupColumnsRoles)}}function Yt(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",7)(1,"div",15)(2,"po-lookup",60),e.nI1(3,"translate"),e.nI1(4,"translate"),e.bIt("p-selected",function(i){e.eBV(n);const o=e.XpG(2);return e.Njj(o.setSelectedHierarchicalStructure(i))}),e.k0s()()()}if(2&a){const n=e.XpG(2);e.R7$(2),e.FS9("p-placeholder",e.bMT(3,5,"l-select-hierarchical-structure")),e.FS9("p-label",e.bMT(4,7,"l-hierarchical-structure")),e.Y8G("p-filter-service",n.hierarchicalStructureLookupService)("p-columns",n.lookupColumnsHierarchicalStructure)("p-filter-params",n.getFilterParams())}}function zt(a,r){1&a&&(e.j41(0,"div",61),e.nrm(1,"po-input",62),e.nI1(2,"translate"),e.k0s()),2&a&&(e.R7$(),e.FS9("p-label",e.bMT(2,1,"l-salary-table")))}function Ut(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",63)(1,"div",64),e.bIt("click",function(){e.eBV(n);const i=e.XpG(2);return e.Njj(i.openSalarialTable())}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&a&&(e.R7$(2),e.JRh(e.bMT(3,1,"l-salary-table")))}function Jt(a,r){1&a&&(e.j41(0,"div",65),e.nrm(1,"po-input",66),e.nI1(2,"translate"),e.nI1(3,"translate"),e.k0s()),2&a&&(e.R7$(),e.FS9("p-placeholder",e.bMT(2,2,"l-salary-level")),e.FS9("p-label",e.bMT(3,4,"l-salary-level")))}function Ht(a,r){1&a&&(e.j41(0,"div",65),e.nrm(1,"po-input",67),e.nI1(2,"translate"),e.nI1(3,"translate"),e.k0s()),2&a&&(e.R7$(),e.FS9("p-placeholder",e.bMT(2,2,"l-salary-range")),e.FS9("p-label",e.bMT(3,4,"l-salary-range")))}function Wt(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",65)(1,"po-number",68),e.nI1(2,"translate"),e.nI1(3,"translate"),e.bIt("focusin",function(){e.eBV(n);const i=e.XpG(2);return e.Njj(i.setCurrentValues())})("focusout",function(){e.eBV(n);const i=e.XpG(2);return e.Njj(i.calculateSalaryValue())}),e.k0s()()}if(2&a){const n=e.XpG(2);e.R7$(),e.FS9("p-placeholder",e.bMT(2,3,"l-salary-percent-placeholder")),e.FS9("p-label",e.bMT(3,5,"l-percentage-increase")),e.Y8G("p-disabled",n.disableSalaryAndPercent())}}function Kt(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",65)(1,"po-number",69),e.nI1(2,"translate"),e.nI1(3,"translate"),e.bIt("focusin",function(){e.eBV(n);const i=e.XpG(2);return e.Njj(i.setCurrentValues())})("focusout",function(){e.eBV(n);const i=e.XpG(2);return e.Njj(i.calculatePercentage())}),e.k0s()()}if(2&a){const n=e.XpG(2);e.R7$(),e.FS9("p-placeholder",e.bMT(2,3,"l-salary-proposal-placeholder")),e.FS9("p-label",e.bMT(3,5,"Horista"===n.category?"l-proposed-salary-hour":"l-proposed-salary")),e.Y8G("p-disabled",n.disableSalaryAndPercent())}}function Qt(a,r){if(1&a){const n=e.RV6();e.j41(0,"po-lookup",72),e.nI1(1,"translate"),e.nI1(2,"translate"),e.bIt("p-selected",function(i){e.eBV(n);const o=e.XpG(3);return e.Njj(o.setCostCenter(i))}),e.k0s()}if(2&a){const n=e.XpG(3);e.FS9("p-placeholder",e.bMT(1,5,"l-select-cost-center")),e.FS9("p-label",e.bMT(2,7,"l-cost-center")),e.Y8G("p-filter-service",n.costCenterLookupService)("p-columns",n.costCenterLookupColumns)("p-disabled",n.canViewFields("costCenter"))}}function Zt(a,r){if(1&a){const n=e.RV6();e.j41(0,"po-input",73),e.nI1(1,"translate"),e.mxI("ngModelChange",function(i){e.eBV(n);const o=e.XpG(3);return e.DH7(o.costCenter.name,i)||(o.costCenter.name=i),e.Njj(i)}),e.k0s()}if(2&a){const n=e.XpG(3);e.FS9("p-label",e.bMT(1,2,"l-cost-center")),e.R50("ngModel",n.costCenter.name)}}function ei(a,r){if(1&a&&(e.j41(0,"div",65),e.DNE(1,Qt,3,9,"po-lookup",70)(2,Zt,2,4,"po-input",71),e.k0s()),2&a){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",null===n.idRequisition),e.R7$(),e.Y8G("ngIf",null!==n.idRequisition)}}function ti(a,r){if(1&a){const n=e.RV6();e.j41(0,"po-lookup",76),e.nI1(1,"translate"),e.nI1(2,"translate"),e.bIt("p-selected",function(i){e.eBV(n);const o=e.XpG(3);return e.Njj(o.setAccountingItem(i))}),e.k0s()}if(2&a){const n=e.XpG(3);e.FS9("p-placeholder",e.bMT(1,5,"l-select-accounting-item")),e.FS9("p-label",e.bMT(2,7,"l-accounting-item")),e.Y8G("p-filter-service",n.accountingItemLookupService)("p-columns",n.accountingItemLookupColumns)("p-disabled",n.canViewFields("accountingItem"))}}function ii(a,r){if(1&a){const n=e.RV6();e.j41(0,"po-input",77),e.nI1(1,"translate"),e.mxI("ngModelChange",function(i){e.eBV(n);const o=e.XpG(3);return e.DH7(o.accountingItem.descricao,i)||(o.accountingItem.descricao=i),e.Njj(i)}),e.k0s()}if(2&a){const n=e.XpG(3);e.FS9("p-label",e.bMT(1,2,"l-accounting-item")),e.R50("ngModel",n.accountingItem.descricao)}}function ni(a,r){if(1&a&&(e.j41(0,"div",65),e.DNE(1,ti,3,9,"po-lookup",74)(2,ii,2,4,"po-input",75),e.k0s()),2&a){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",null===n.idRequisition),e.R7$(),e.Y8G("ngIf",null!==n.idRequisition)}}function ai(a,r){if(1&a){const n=e.RV6();e.j41(0,"po-lookup",80),e.nI1(1,"translate"),e.nI1(2,"translate"),e.bIt("p-selected",function(i){e.eBV(n);const o=e.XpG(3);return e.Njj(o.setClassValue(i))}),e.k0s()}if(2&a){const n=e.XpG(3);e.FS9("p-placeholder",e.bMT(1,5,"l-select-class-value")),e.FS9("p-label",e.bMT(2,7,"l-class-value")),e.Y8G("p-filter-service",n.classValueLookupService)("p-columns",n.classValueLookupColumns)("p-disabled",n.canViewFields("classValue"))}}function oi(a,r){if(1&a){const n=e.RV6();e.j41(0,"po-input",81),e.nI1(1,"translate"),e.mxI("ngModelChange",function(i){e.eBV(n);const o=e.XpG(3);return e.DH7(o.classValue.descricao,i)||(o.classValue.descricao=i),e.Njj(i)}),e.k0s()}if(2&a){const n=e.XpG(3);e.FS9("p-label",e.bMT(1,2,"l-class-value")),e.R50("ngModel",n.classValue.descricao)}}function si(a,r){if(1&a&&(e.j41(0,"div",65),e.DNE(1,ai,3,9,"po-lookup",78)(2,oi,2,4,"po-input",79),e.k0s()),2&a){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",null===n.idRequisition),e.R7$(),e.Y8G("ngIf",null!==n.idRequisition)}}function li(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",15)(1,"po-lookup",82),e.nI1(2,"translate"),e.nI1(3,"translate"),e.bIt("p-selected",function(i){e.eBV(n);const o=e.XpG(2);return e.Njj(o.setSelectedCategoryChangeType(i))}),e.k0s()()}if(2&a){const n=e.XpG(2);e.R7$(),e.FS9("p-placeholder",e.bMT(2,4,"l-select-category-change-type")),e.FS9("p-label",e.bMT(3,6,"l-category")),e.Y8G("p-filter-service",n.categoryChangeTypeLookupService)("p-columns",n.lookupColumnSalaryChangeType)}}function ri(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",15)(1,"po-lookup",83),e.nI1(2,"translate"),e.nI1(3,"translate"),e.bIt("p-selected",function(i){e.eBV(n);const o=e.XpG(2);return e.Njj(o.setSelectedReasonSalaryChange(i))})("p-change",function(i){e.eBV(n);const o=e.XpG(2);return e.Njj(o.changeSelectedReasonSalaryChange(i))}),e.k0s()()}if(2&a){const n=e.XpG(2);e.R7$(),e.FS9("p-placeholder",e.bMT(2,4,"l-select-salary-change-reason")),e.FS9("p-label",e.bMT(3,6,"l-salary-change-reason")),e.Y8G("p-filter-service",n.salaryChangeTypesLookupService)("p-columns",n.lookupColumnSalaryChangeTypes)}}function ci(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",7)(1,"div",85),e.bIt("click",function(){e.eBV(n);const i=e.XpG(3);return e.Njj(i.openProgressiveIncrease())}),e.nrm(2,"img",86),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}2&a&&(e.R7$(3),e.SpI(" ",e.bMT(4,1,"l-add-progressive-increase")," "))}function pi(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",7)(1,"div",87),e.bIt("click",function(){e.eBV(n);const i=e.XpG(3);return e.Njj(i.openProgressiveIncrease())}),e.nrm(2,"span",88),e.k0s(),e.j41(3,"div",89),e.bIt("click",function(){e.eBV(n);const i=e.XpG(3);return e.Njj(i.openProgressiveIncrease())}),e.j41(4,"div",90),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()}if(2&a){const n=e.XpG(3);e.R7$(5),e.SpI(" ",e.bMT(6,1,n.idRequisition?"l-view-progressive-increase":"l-view-edit-progressive-increase")," ")}}function di(a,r){if(1&a&&(e.j41(0,"div",84),e.DNE(1,ci,5,3,"div",42)(2,pi,7,3,"div",42),e.k0s()),2&a){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",!(n.idRequisition||n.progressiveIncreaseItens&&0!==n.progressiveIncreaseItens.length)),e.R7$(),e.Y8G("ngIf",n.progressiveIncreaseItens&&n.progressiveIncreaseItens.length>0)}}function ui(a,r){if(1&a&&(e.j41(0,"div",65),e.nrm(1,"po-datepicker",91),e.nI1(2,"translate"),e.k0s()),2&a){const n=e.XpG(2);e.R7$(),e.FS9("p-label",e.bMT(2,3,"l-expected-date")),e.Y8G("p-min-date",n.minDate)("p-iso-format",n.poDatepickerIsoFormat)}}function gi(a,r){1&a&&(e.j41(0,"div",92),e.nrm(1,"po-switch",93),e.nI1(2,"translate"),e.nI1(3,"translate"),e.nI1(4,"translate"),e.k0s()),2&a&&(e.R7$(),e.FS9("p-label-on",e.bMT(2,3,"l-yes")),e.FS9("p-label-off",e.bMT(3,5,"l-no")),e.FS9("p-label",e.bMT(4,7,"l-new-hire")))}function mi(a,r){if(1&a){const n=e.RV6();e.j41(0,"app-attach-file",97),e.bIt("attachedFileChange",function(i){e.eBV(n);const o=e.XpG(3);return e.Njj(o.fillFileInfo(i))}),e.k0s()}}function hi(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",15)(1,"div",98),e.bIt("click",function(){e.eBV(n);const i=e.XpG(3);return e.Njj(i.getAttachedFile())}),e.nrm(2,"span",99),e.j41(3,"span",100),e.EFF(4),e.k0s(),e.j41(5,"span",101),e.EFF(6),e.nI1(7,"bytes"),e.k0s()()()}if(2&a){const n=e.XpG(3);e.R7$(4),e.JRh(null==n.requisitionEdit||null==n.requisitionEdit.file?null:n.requisitionEdit.file.name),e.R7$(2),e.SpI("",e.bMT(7,2,3*(null==n.requisitionEdit||null==n.requisitionEdit.file?null:n.requisitionEdit.file.content.length)/4)," ")}}function vi(a,r){if(1&a&&(e.j41(0,"div",50)(1,"div",7)(2,"div",94),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"div",95)(6,"div",15),e.DNE(7,mi,1,0,"app-attach-file",96)(8,hi,8,4,"div",48),e.k0s()()()),2&a){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(6,N,!n.mobileFinish)),e.R7$(3),e.JRh(e.bMT(4,4,"l-attachment")),e.R7$(4),e.Y8G("ngIf",!n.idRequisition),e.R7$(),e.Y8G("ngIf",n.idRequisition&&n.hasAttachment)}}function _i(a,r){if(1&a&&(e.j41(0,"div",50)(1,"div",102)(2,"div",40),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"div",7)(6,"div",103),e.nrm(7,"app-dynamic-form"),e.k0s()()()),2&a){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(6,N,!n.mobileFinish)),e.R7$(),e.Y8G("ngClass",e.eq3(8,Et,n.viewIsMobile)),e.R7$(2),e.JRh(e.bMT(4,4,"l-infos")),e.R7$(3),e.Y8G("ngClass",e.eq3(10,Ot,n.viewIsMobile))}}function bi(a,r){if(1&a){const n=e.RV6();e.j41(0,"po-button",109),e.nI1(1,"translate"),e.bIt("p-click",function(){e.eBV(n);const i=e.XpG(3);return e.Njj(i.saveSalaryAndFunctionRequisition())}),e.k0s()}if(2&a){const n=e.XpG(3);e.FS9("p-label",e.bMT(1,2,"l-send-requisition")),e.Y8G("p-disabled",!n.validateIsChangeFunction())}}function fi(a,r){if(1&a){const n=e.RV6();e.j41(0,"po-button",110),e.nI1(1,"translate"),e.bIt("p-click",function(){e.eBV(n);const i=e.XpG(3);return e.Njj(i.selectRequisitionToStepAction())}),e.k0s()}if(2&a){const n=e.XpG(3);e.FS9("p-label",e.bMT(1,2,"l-next-step")),e.Y8G("p-disabled",
1!n.validateIsChangeFunction())}}function yi(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",104)(1,"po-button",105),e.nI1(2,"translate"),e.bIt("p-click",function(){e.eBV(n);const i=e.XpG(2);return e.Njj(i.cancelRequisition())}),e.k0s(),e.DNE(3,bi,2,4,"po-button",106),e.j41(4,"span",107),e.DNE(5,fi,2,4,"po-button",108),e.k0s()()}if(2&a){const n=e.XpG(2);e.R7$(),e.FS9("p-label",e.bMT(2,3,"l-cancel")),e.R7$(2),e.Y8G("ngIf",!n.idRequisition),e.R7$(2),e.Y8G("ngIf",n.idRequisition)}}function Ci(a,r){if(1&a){const n=e.RV6();e.j41(0,"po-button",114),e.nI1(1,"translate"),e.bIt("p-click",function(){e.eBV(n);const i=e.XpG(3);return e.Njj(i.nextStep())}),e.k0s()}2&a&&e.FS9("p-label",e.bMT(1,1,"advance"))}function Ii(a,r){if(1&a){const n=e.RV6();e.j41(0,"po-button",109),e.nI1(1,"translate"),e.bIt("p-click",function(){e.eBV(n);const i=e.XpG(3);return e.Njj(i.saveSalaryAndFunctionRequisition())}),e.k0s()}if(2&a){const n=e.XpG(3);e.FS9("p-label",e.bMT(1,2,"l-send-requisition")),e.Y8G("p-disabled",!n.validateIsChangeFunction())}}function Si(a,r){if(1&a){const n=e.RV6();e.j41(0,"po-button",109),e.nI1(1,"translate"),e.bIt("p-click",function(){e.eBV(n);const i=e.XpG(3);return e.Njj(i.selectRequisitionToStepAction())}),e.k0s()}if(2&a){const n=e.XpG(3);e.FS9("p-label",e.bMT(1,2,"l-next-step")),e.Y8G("p-disabled",!n.validateIsChangeFunction())}}function Fi(a,r){if(1&a){const n=e.RV6();e.j41(0,"po-button",105),e.nI1(1,"translate"),e.bIt("p-click",function(){e.eBV(n);const i=e.XpG(3);return e.Njj(i.cancelRequisition())}),e.k0s()}2&a&&e.FS9("p-label",e.bMT(1,1,"l-cancel"))}function xi(a,r){if(1&a){const n=e.RV6();e.j41(0,"po-button",105),e.nI1(1,"translate"),e.bIt("p-click",function(){e.eBV(n);const i=e.XpG(3);return e.Njj(i.backStep())}),e.k0s()}2&a&&e.FS9("p-label",e.bMT(1,1,"l-back"))}function Ri(a,r){if(1&a&&(e.j41(0,"div",111),e.DNE(1,Ci,2,3,"po-button",112)(2,Ii,2,4,"po-button",106)(3,Si,2,4,"po-button",106)(4,Fi,2,3,"po-button",113)(5,xi,2,3,"po-button",113),e.k0s()),2&a){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",!n.mobileFinish),e.R7$(),e.Y8G("ngIf",n.mobileFinish&&!n.idRequisition),e.R7$(),e.Y8G("ngIf",n.mobileFinish&&n.idRequisition),e.R7$(),e.Y8G("ngIf",!n.mobileFinish),e.R7$(),e.Y8G("ngIf",n.mobileFinish)}}function Ti(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",37)(1,"div",38)(2,"div",39)(3,"div",7)(4,"div",40),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",7)(8,"div",15)(9,"po-lookup",41),e.nI1(10,"translate"),e.nI1(11,"translate"),e.bIt("p-selected",function(i){e.eBV(n);const o=e.XpG();return e.Njj(o.setSelectedJobFunction(i))})("p-change",function(i){e.eBV(n);const o=e.XpG();return e.Njj(o.changeSelectedFunction(i))}),e.k0s()()(),e.DNE(12,Xt,5,8,"div",42)(13,Bt,5,8,"div",42)(14,Yt,5,9,"div",42),e.k0s(),e.j41(15,"div",43)(16,"div",7)(17,"div",44),e.EFF(18),e.nI1(19,"translate"),e.k0s()(),e.j41(20,"div",7),e.DNE(21,zt,3,3,"div",45)(22,Ut,4,3,"div",46),e.k0s(),e.j41(23,"div",7),e.DNE(24,Jt,4,6,"div",47)(25,Ht,4,6,"div",47),e.k0s(),e.j41(26,"div",7),e.DNE(27,Wt,4,7,"div",47)(28,Kt,4,7,"div",47)(29,ei,3,2,"div",47)(30,ni,3,2,"div",47)(31,si,3,2,"div",47),e.k0s(),e.j41(32,"div",7),e.DNE(33,li,4,8,"div",48),e.k0s(),e.j41(34,"div",7),e.DNE(35,ri,4,8,"div",48),e.k0s(),e.j41(36,"div",7),e.DNE(37,di,3,2,"div",49),e.k0s()(),e.j41(38,"div",50)(39,"div",7)(40,"div",40),e.EFF(41),e.nI1(42,"translate"),e.k0s()(),e.j41(43,"div",7)(44,"div",15),e.nrm(45,"po-textarea",51),e.nI1(46,"translate"),e.nI1(47,"translate"),e.k0s()(),e.j41(48,"div",7),e.DNE(49,ui,3,5,"div",47)(50,gi,5,9,"div",52),e.k0s()(),e.DNE(51,vi,9,8,"div",53)(52,_i,8,12,"div",53),e.k0s(),e.j41(53,"div",54),e.nrm(54,"app-alert-budget-integration",55),e.k0s(),e.DNE(55,yi,6,5,"div",56)(56,Ri,6,5,"div",57),e.k0s()}if(2&a){const n=e.XpG();e.R7$(),e.Y8G("formGroup",n.reactiveForm),e.R7$(),e.Y8G("ngClass",e.eq3(50,N,n.mobileFinish)),e.R7$(3),e.JRh(e.bMT(6,36,"l-function-change")),e.R7$(4),e.FS9("p-placeholder",e.bMT(10,38,"l-select-function")),e.FS9("p-label",e.bMT(11,40,"l-function")),e.Y8G("p-filter-service",n.jobFunctionLookupService)("p-columns",n.lookupColumnsFunction)("p-disabled",n.disableSalaryAndPercent()),e.R7$(3),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveForm.controls.jobFunctionChangeReason.value),e.R7$(),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveForm.controls.jobRoles.value),e.R7$(),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveForm.controls.hierarchy.value),e.R7$(),e.Y8G("ngClass",e.eq3(52,N,n.mobileFinish)),e.R7$(3),e.SpI(" ",e.bMT(19,42,"l-salary-change-form")," "),e.R7$(3),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveForm.controls.salaryTable.value),e.R7$(),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveForm.controls.salaryTable.value),e.R7$(2),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveForm.controls.levelSalaryTable.value),e.R7$(),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveForm.controls.rangeSalaryTable.value),e.R7$(2),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveForm.controls.editSalary.value&&!n.isRM||n.isRM&&n.visibleSalary),e.R7$(),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveForm.controls.editSalary.value&&!n.isRM||n.isRM&&n.visibleSalary),e.R7$(),e.Y8G("ngIf",n.isVisibleCostCenter&&n.isRM),e.R7$(),e.Y8G("ngIf",n.isVisibleAccountingItem),e.R7$(),e.Y8G("ngIf",n.isVisibleClassValue),e.R7$(2),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveForm.controls.categoryChangeType.value),e.R7$(2),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveForm.controls.reasonSalaryChange.value),e.R7$(2),e.Y8G("ngIf",n.visibleProgressiveIncrease),e.R7$(),e.Y8G("ngClass",e.eq3(54,N,!n.mobileFinish)),e.R7$(3),e.JRh(e.bMT(42,44,"l-basic-data")),e.R7$(4),e.FS9("p-placeholder",e.bMT(46,46,"l-insert-rh-reason")),e.FS9("p-label",e.bMT(47,48,"l-desmissal-justify")),e.R7$(4),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveForm.controls.expectedDate.value),e.R7$(),e.Y8G("ngIf","hiddenFieldProperties"!==n.reactiveForm.controls.generateNewHire.value),e.R7$(),e.Y8G("ngIf",n.visibleAttachment),e.R7$(),e.Y8G("ngIf",n.visibleComplementaryField),e.R7$(2),e.Y8G("isVisibleAlert",n.isVisibleCostCenter),e.R7$(),e.Y8G("ngIf",!n.viewIsMobile),e.R7$(),e.Y8G("ngIf",n.viewIsMobile)}}function Mi(a,r){if(1&a){const n=e.RV6();e.j41(0,"po-button",115),e.nI1(1,"translate"),e.bIt("p-click",function(){e.eBV(n);const i=e.XpG();return e.Njj(i.processRequisition())}),e.k0s()}2&a&&e.FS9("p-label",e.bMT(1,1,"l-confirm"))}function Pi(a,r){if(1&a){const n=e.RV6();e.j41(0,"app-progressive-increase",116),e.bIt("progressiveIncreaseItem",function(){e.eBV(n);const i=e.XpG();return e.Njj(i.getProgressiveIncreaseItem())}),e.k0s()}if(2&a){const n=e.XpG();e.Y8G("fieldProperties",n.fields)("isRequisitionEdit",n.idRequisition)}}let _e=(()=>{var a;class r extends D.U{constructor(t,i,o,s,l,p,u,v,C,f,R,T,_,g,y,x,w,P,F,G,$){super(),this.salaryChangeTypesLookupService=t,this.categoryChangeTypeLookupService=i,this.functionChangeTypesLookupService=o,this.jobFunctionLookupService=s,this.jobRolesLookupService=l,this.hierarchicalStructureLookupService=p,this.classValueLookupService=u,this.accountingItemLookupService=v,this.costCenterLookupService=C,this.requisitionsService=f,this.router=R,this.fb=T,this.notificationService=_,this.appTranslateService=g,this.fieldsPropertiesService=y,this.activatedRoute=x,this.dataChangeEmployee=w,this.globals=P,this.windowUtilService=F,this.fileManipulationService=G,this.spinnerService=$,this.minDate=new Date,this.poDatepickerIsoFormat=m.aW2.Basic,this.enableProcessRequisition=!1,this.progressiveIncreaseItens=[],this.title="l-data-change-salary-function",this.hasAttachment=!1,this.isRequiredClassValue=!1,this.isRequiredAccountingItem=!1,this.isVisibleClassValue=!1,this.isVisibleAccountingItem=!1,this.isVisibleCostCenter=!1,this.isRequiredCostCenter=!1,this.visibleSalary=!1,this.visibleCurrentSalary=!1,this.editSalary=!1,this.isEdit=!1,this.currentRequisition={employeeId:"{current}",id:"",requestId:"",requestType:L.K.RequestTypeEnum.EmployeeDataChange,employeeName:"",startDate:new Date,status:L.K.StatusEnum.Empty},this.canViewField=!1,this.category="",this.primaryAction={action:()=>{this.poModal.close()},label:"Confirm"},this.viewCards=this.requisitionsService.getViewCards(),this.modalTitle="",this.columns=[],this.items=[],this.salaryTable={hasNext:!1,items:[]},this.changeSalaryReason={id:null,name:null},this.categoryChangeType={id:null,name:null},this.visibleTableDescription=!0,this.visibleWarning=!0}ngOnInit(){var t=this;return(0,h.A)(function*(){yield t.initializeComponent()})()}ngOnDestroy(){this.destroy()}destroy(){this.requisitionsService.setSelectedRequisition(null),this.requisitionsService.setS
1aveSalaryAndFunctionRequest(null)}initializeComponent(){var t=this;return(0,h.A)(function*(){t.defineIsMobile(window.innerWidth,window.innerHeight),t.getParamsEdit()?yield t.setParamsEdit():t.checkIfEmployeeIsSelected(),yield t.getFieldsProps(),t.createReactiveForm(),t.setDefaultParams(),t.initLookup()})()}openSalarialTable(){var t=this;return(0,h.A)(function*(){var i;if(!t.progressiveIncreaseItens||0===(null===(i=t.progressiveIncreaseItens)||void 0===i?void 0:i.length)){var o,s;let l;t.columns=[],t.items=[],t.loading=!0,l={idCompanyDepartment:t.viewCards[0].getEmployeesRequisitions().id.split("|")[0],idDepartment:t.viewCards[0].getEmployeesRequisitions().idDepartment,idFunction:null!==(o=t.selectedJobFunction)&&void 0!==o&&o.id?null===(s=t.selectedJobFunction)||void 0===s?void 0:s.id:t.viewCards[0].getEmployeesRequisitions().idFunction},t.salaryTable=yield t.requisitionsService.getSalaryTables(l),t.modalTitle=t.salaryTable.items[0].description,t.poModal.open(),yield t.generateTable(t.salaryTable.items),t.columnsView=t.columns,t.itemsView=t.items,t.loading=!1,t.resetSelectedValue()}})()}isRM(){return S.Ay.isErpRM()}setSelectedFunctionChange(t){this.selectedChangeFunctionReason=t}changeSelectedFunctionChange(t){t||(this.selectedChangeFunctionReason=null)}changeSelectedFunction(t){t||(this.selectedJobFunction=null,S.Ay.isErpRM()&&(this.reactiveForm.controls.jobFunctionChangeReason.removeValidators([b.k0.required]),this.reactiveForm.controls.jobFunctionChangeReason.setValue(""),this.changeSelectedFunctionChange(null),"hiddenFieldProperties"!==this.reactiveForm.controls.salaryTable.value&&this.resetValueTable()))}setSelectedJobRoles(t){this.selecteJobRole=t}setSelectedHierarchicalStructure(t){this.selectedHierarchicalStructure=t}setSelectedJobFunction(t){this.selectedJobFunction=t,this.selectedJobFunction&&"hiddenFieldProperties"!==this.reactiveForm.controls.salaryTable.value&&!this.isEdit&&this.resetValueTable(),S.Ay.isErpRM()&&t&&!this.isEdit&&(this.reactiveForm.controls.jobFunctionChangeReason.enable(),this.reactiveForm.controls.jobFunctionChangeReason.addValidators([b.k0.required]),this.reactiveForm.controls.jobFunctionChangeReason.setValue(""))}setSelectedReasonSalaryChange(t){this.selectedChangeSalaryReason=t}changeSelectedReasonSalaryChange(t){var i=this;return(0,h.A)(function*(){if(t){if(S.Ay.isErpRM()){const o=i.viewCards[0].getEmployeesRequisitions().id,s=yield i.requisitionsService.getPermissionProgressiveIncrease(o,t);i.visibleProgressiveIncrease=s.allowed}}else i.selectedChangeSalaryReason=null,i.visibleProgressiveIncrease=!1})()}setSelectedCategoryChangeType(t){this.selectedCategoryChangeType=t}resetValueTable(){this.resetValueTableSalary(),this.reactiveForm.controls.jobFunctionChangeReason.setValue("")}resetValueTableSalary(){this.reactiveForm.controls.salaryTable.setValue(""),this.reactiveForm.controls.levelSalaryTable.setValue(""),this.reactiveForm.controls.rangeSalaryTable.setValue(""),this.reactiveForm.controls.editSalary.setValue(""),this.reactiveForm.controls.editPercent.setValue(""),this.reactiveForm.controls.reasonSalaryChange.setValue(""),this.selectedChangeSalaryReason=null,this.selectedChangeFunctionReason=null,this.selectedSalaryTableLevelId=null,this.selectedSalaryTableRangeId=null,this.selectedSalaryTableId=null,this.reactiveForm.controls.reasonSalaryChange.disable()}generateTable(t){var i=this;return(0,h.A)(function*(){const o=[],s=new I.oe("pt-BR","BRL");let l=[];t&&t.forEach(p=>{p.items.forEach(u=>{u.items.forEach(f=>{o.push({property:f.idLevel,label:f.labelLevel,type:"link",action:i.clickAction.bind(i,f.idLevel,f.labelLevel)}),l.push({[f.idLevel]:s.transform(f.valueLevel,"BRL","symbol","1.2-2")})});const v={cod:u.codLevel,nvl:u.descriptionLevel};let C;l.forEach(f=>{C=Object.assign(v,f)}),i.items.push(C)}),i.columns.push({property:"cod",label:"C\xf3digo",type:"string"}),i.columns.push({property:"nvl",label:"N\xedvel",type:"string"}),o.forEach(u=>{-1===i.columns.findIndex(C=>C.property===u.property)&&i.columns.push(u)})})})()}clickAction(t,i,o,s){const l=o.replace(/[^0-9,-]+/g,""),p=Number(l.replace(/,/g,"."));this.salaryTable.items.length>=0&&(this.reactiveForm.controls.salaryTable.setValue(this.salaryTable.items[0].description),this.reactiveForm.controls.levelSalaryTable.setValue(s.nvl),this.reactiveForm.controls.rangeSalaryTable.setValue(i),this.reactiveForm.controls.editSalary.setValue(p),this.selectedSalaryTableId=this.salaryTable.items[0].id,this.selectedSalaryTableLevelId=s.cod,this.selectedSalaryTableRangeId=t,S.Ay.isErpRM()&&o&&(this.reactiveForm.controls.reasonSalaryChange.enable(),this.reactiveForm.controls.reasonSalaryChange.addValidators([b.k0.required]),this.reactiveForm.controls.reasonSalaryChange.setValue(""))),this.poModal.close(),this.calculatePercentage()}setSelectedValue(t,i,o,s,l,p,u){const v=new I.oe("pt-BR","BRL");this.descriptionLevel=t,this.labelLevel=i,this.tableName=s,this.valueLevel=v.transform(o,"BRL","symbol","1.2-2"),this.selectedSalaryTableId=l,this.selectedSalaryTableLevelId=p,this.selectedSalaryTableRangeId=u}resetSelectedValue(){this.descriptionLevel=null,this.labelLevel=null,this.valueLevel=null}confirmModal(){const t=this.valueLevel.replace(/[^0-9,-]+/g,""),i=Number(t.replace(/,/g,"."));this.reactiveForm.controls.salaryTable.setValue(this.tableName),this.reactiveForm.controls.levelSalaryTable.setValue(this.labelLevel),this.reactiveForm.controls.rangeSalaryTable.setValue(this.descriptionLevel),this.reactiveForm.controls.editSalary.setValue(i),S.Ay.isErpRM()&&t&&(this.reactiveForm.controls.reasonSalaryChange.enable(),this.reactiveForm.controls.reasonSalaryChange.addValidators([b.k0.required]),this.reactiveForm.controls.reasonSalaryChange.setValue("")),this.poModal.close(),this.calculatePercentage()}getAttachedFile(){var t=this;return(0,h.A)(function*(){const i=t.getRequestAttachedFileId(t.currentRequisition.id,t.currentRequisition.requestId),o=yield t.requisitionsService.getAttachedFile(i);if(o)if(t.viewIsMobile)t.initializeFilePreviewDialog("request/requisitions/file/download",o,encodeURI(i));else{t.spinnerService.show();const s=t.fileManipulationService.returnMediaTypeByExtension(o.type);yield t.fileManipulationService.openFileFromFileInfo(o,o.name,s),t.spinnerService.hide()}})()}initializeFilePreviewDialog(t,i,o){this.previewFileDialog.initializeComponent(t,i,o)}getRequestAttachedFileId(t,i){return S.Ay.isErpRM()?"".concat(t.split("|")[2],"|").concat(i):t}initLookup(){this.lookupColumnsChangeReason=[{property:"id",label:"l-code",fieldLabel:!0},{property:"name",label:"l-description",fieldLabel:!0}],this.lookupColumnsFunction=[{property:"id",label:"l-code",fieldLabel:!0,width:"25%"},{property:"name",label:"l-name",fieldLabel:!0},{property:"cbo",label:"CBO",fieldLabel:!0}],this.lookupColumnsRoles=[{property:"id",label:"l-code",fieldLabel:!0,width:"25%"},{property:"name",label:"l-name",fieldLabel:!0}],this.lookupColumnsHierarchicalStructure=[{property:"idCompany",label:"l-company",fieldLabel:!0},{property:"hierarchy",label:"l-hierarchy",fieldLabel:!0},{property:"description",label:"l-description",fieldLabel:!0}],this.lookupColumnSalaryChangeTypes=[{property:"id",label:"l-code",fieldLabel:!0},{property:"name",label:"l-name",fieldLabel:!0}],this.lookupColumnCategoryChangeType=[{property:"id",label:"l-code",fieldLabel:!0},{property:"name",label:"l-name",fieldLabel:!0}],this.costCenterLookupColumns=[{property:"id",label:"l-code",fieldLabel:!0,width:"30%"},{property:"name",label:"l-cost-center"},{property:"codCusto",label:"l-code-cost-center"}],this.classValueLookupColumns=[{property:"id",label:"l-code",fieldLabel:!0,width:"30%"},{property:"descricao",label:"l-description"},{property:"classeValor",label:"l-class-value"}],this.accountingItemLookupColumns=[{property:"id",label:"l-code",fieldLabel:!0,width:"30%"},{property:"descricao",label:"l-description"},{property:"itemContabil",label:"l-accounting-item"}],this.lookupColumnsChangeReason.forEach(t=>{this.appTranslateService.getI18n(t.label).then(i=>{t.label=i})}),this.lookupColumnsFunction.forEach(t=>{this.appTranslateService.getI18n(t.label).then(i=>{t.label=i})}),this.lookupColumnsHierarchicalStructure.forEach(t=>{this.appTranslateService.getI18n(t.label).then(i=>{t.label=i})}
1),this.lookupColumnsRoles.forEach(t=>{this.appTranslateService.getI18n(t.label).then(i=>{t.label=i})}),this.lookupColumnCategoryChangeType.forEach(t=>{this.appTranslateService.getI18n(t.label).then(i=>{t.label=i})}),this.lookupColumnSalaryChangeTypes.forEach(t=>{this.appTranslateService.getI18n(t.label).then(i=>{t.label=i})}),this.costCenterLookupColumns.forEach(t=>{this.appTranslateService.getI18n(t.label).then(i=>{t.label=i})}),this.classValueLookupColumns.forEach(t=>{this.appTranslateService.getI18n(t.label).then(i=>{t.label=i})}),this.accountingItemLookupColumns.forEach(t=>{this.appTranslateService.getI18n(t.label).then(i=>{t.label=i})}),this.isRM()&&this.loadModel()}loadModel(){this.costCenterProperties&&this.costCenterProperties.visible&&this.costCenterLookupService.emitModelObservable.subscribe(t=>{this.costCenter=t}),this.classValueProperties&&this.classValueProperties.visible&&this.classValueLookupService.emitModelObservable.subscribe(t=>{this.classValue=t}),this.accountingItemProperties&&this.accountingItemProperties.visible&&this.accountingItemLookupService.emitModelObservable.subscribe(t=>{this.accountingItem=t})}setDefaultParams(){const t=this.viewCards[0];if(t){const{id:i,idDepartment:o}=t.getEmployeesRequisitions();if(this.category=this.isRM()?t.getEmployeesRequisitions().category:null,this.isRM()){const s=i.split("|")[0];this.jobFunctionLookupService.companyId=s}this.jobFunctionLookupService.employeeId=i,this.jobFunctionLookupService.idDepartment=o,this.jobRolesLookupService.idDepartment=o,this.categoryChangeTypeLookupService.idDepartment=o,this.isVisibleCostCenter&&(this.costCenterLookupService.idDepartment=this.jobFunctionLookupService.idDepartment,this.isRM()&&(this.costCenterLookupService.companyId=this.jobFunctionLookupService.companyId)),this.isVisibleClassValue&&(this.classValueLookupService.idDepartment=this.jobFunctionLookupService.idDepartment,this.classValueLookupService.companyId=this.jobFunctionLookupService.companyId),this.isVisibleAccountingItem&&(this.accountingItemLookupService.idDepartment=this.jobFunctionLookupService.idDepartment,this.accountingItemLookupService.companyId=this.jobFunctionLookupService.companyId),this.idRequisition&&null!==this.currentRequisition&&this.initFormEdit()}}initFormEdit(){var t,i,o,s,l,p,u,v,C,f,R,T,_,g;this.reactiveForm.controls.expectedDate.setValue(this.requisitionEdit.expectedDate),this.reactiveForm.controls.generateNewHire.setValue(this.requisitionEdit.generateSubstitution),this.reactiveForm.controls.justify.setValue(this.requisitionEdit.justify),this.reactiveForm.controls.newJobFunction.setValue(null===(t=this.requisitionEdit.jobFunction)||void 0===t?void 0:t.name),this.reactiveForm.controls.jobFunctionChangeReason.setValue(null===(i=this.requisitionEdit.changeFunctionReason)||void 0===i?void 0:i.name),"hiddenFieldProperties"!==this.reactiveForm.controls.jobRoles.value&&this.reactiveForm.controls.jobRoles.setValue(null===(o=this.requisitionEdit.jobRoles)||void 0===o?void 0:o.name),"hiddenFieldProperties"!==this.reactiveForm.controls.categoryChangeType.value&&this.reactiveForm.controls.categoryChangeType.setValue(null===(s=this.requisitionEdit.categoryChangeType)||void 0===s?void 0:s.name),"hiddenFieldProperties"!==this.reactiveForm.controls.salaryTable.value&&this.reactiveForm.controls.salaryTable.setValue(null===(l=this.requisitionEdit.salaryInfo)||void 0===l||null===(l=l.idSalaryTable)||void 0===l?void 0:l.split("|")[1]),"hiddenFieldProperties"!==this.reactiveForm.controls.levelSalaryTable.value&&this.reactiveForm.controls.levelSalaryTable.setValue(null===(p=this.requisitionEdit.salaryInfo)||void 0===p||null===(p=p.salaryLevel)||void 0===p?void 0:p.split("|")[1]),"hiddenFieldProperties"!==this.reactiveForm.controls.rangeSalaryTable.value&&this.reactiveForm.controls.rangeSalaryTable.setValue(null===(u=this.requisitionEdit.salaryInfo)||void 0===u||null===(u=u.salaryRange)||void 0===u?void 0:u.split("|")[1]),this.reactiveForm.controls.editSalary.setValue(null===(v=this.requisitionEdit.salaryInfo)||void 0===v?void 0:v.proposedSalary),this.reactiveForm.controls.editPercent.setValue(null===(C=this.requisitionEdit.salaryInfo)||void 0===C?void 0:C.percent),this.reactiveForm.controls.reasonSalaryChange.setValue(null===(f=this.requisitionEdit.changeSalaryReason)||void 0===f?void 0:f.name),"hiddenFieldProperties"!==this.reactiveForm.controls.hierarchy.value&&this.reactiveForm.controls.hierarchy.setValue(null===(R=this.requisitionEdit.hierarchicalStructure)||void 0===R?void 0:R.description),this.isVisibleCostCenter&&this.reactiveForm.controls.costCenter.setValue(null===(T=this.requisitionEdit.costCenter)||void 0===T?void 0:T.name),this.isVisibleClassValue&&this.reactiveForm.controls.classValue.setValue(null===(_=this.requisitionEdit.classValue)||void 0===_?void 0:_.id),this.isVisibleAccountingItem&&this.reactiveForm.controls.accountingItem.setValue(null===(g=this.requisitionEdit.accountingItem)||void 0===g?void 0:g.id),this.setModels()}setModels(){var t,i,o,s,l,p,u,v;this.selectedJobFunction=this.reactiveForm.controls.newJobFunction.value,this.selectedChangeFunctionReason=this.reactiveForm.controls.jobFunctionChangeReason.value,this.selectedSalaryTableId=null===(t=this.requisitionEdit.salaryInfo)||void 0===t?void 0:t.idSalaryTable,this.selectedSalaryTableLevelId=null===(i=this.requisitionEdit.salaryInfo)||void 0===i?void 0:i.salaryLevel,this.selectedSalaryTableRangeId=null===(o=this.requisitionEdit.salaryInfo)||void 0===o?void 0:o.salaryRange,this.selectedChangeSalaryReason=this.reactiveForm.controls.reasonSalaryChange.value,this.selectedChangeSalaryReason&&(this.changeSalaryReason=this.reactiveForm.controls.reasonSalaryChange.value),this.progressiveIncreaseItens=this.requisitionEdit.progressiveIncrease,this.visibleProgressiveIncrease=!!(this.progressiveIncreaseItens&&this.progressiveIncreaseItens.length>0),this.attachedFile=null===(s=this.requisitionEdit)||void 0===s?void 0:s.file,this.hasAttachment=null===(l=this.requisitionEdit)||void 0===l?void 0:l.hasAttachment,this.visibleAttachment&&(this.visibleAttachment=this.hasAttachment),this.isVisibleCostCenter&&(this.costCenter=null===(p=this.requisitionEdit)||void 0===p?void 0:p.costCenter),this.isVisibleClassValue&&(this.classValue=null===(u=this.requisitionEdit)||void 0===u?void 0:u.classValue),this.isVisibleAccountingItem&&(this.accountingItem=null===(v=this.requisitionEdit)||void 0===v?void 0:v.accountingItem)}disabledFields(t){"expectedDate"!==t&&"levelSalaryTable"!==t&&"rangeSalaryTable"!==t&&"editPercent"!==t&&("editSalary"!==t||"editSalary"==t&&null!=this.idRequisition&&this.editSalary&&this.isRM)&&"reasonSalaryChange"!==t&&"jobFunctionChangeReason"!==t&&this.reactiveForm.controls[t].disable()}selectRequisitionToStepAction(){this.requisitionEdit=this.createSendObject(),this.requisitionsService.setS
1aveSalaryAndFunctionRequest(this.requisitionEdit),this.nextStepDialogComponent.getSteps(),this.nextStepDialogComponent.openModal()}back(){this.destroy(),this.router.navigate(["/employeeDataChange"])}cancelModal(){this.resetSelectedValue(),this.poModal.close()}createReactiveForm(){this.reactiveForm=this.fb.group({salaryTable:[""],levelSalaryTable:[""],rangeSalaryTable:[""],editSalary:[""],editPercent:[""],categoryChangeType:[""],reasonSalaryChange:[""],jobFunctionChangeReason:[""],newJobFunction:[""],jobRoles:[""],hierarchy:[""],justify:[""],expectedDate:[""],generateNewHire:[""],costCenter:[""],classValue:[""],accountingItem:[""]}),this.fields.forEach(t=>{this.reactiveForm.controls[t.field]&&(t.required&&this.reactiveForm.controls[t.field].addValidators([b.k0.required]),t.editable||this.reactiveForm.controls[t.field].disable(),t.visible?this.idRequisition&&null!==this.currentRequisition&&this.disabledFields(t.field):this.reactiveForm.controls[t.field].setValue("hiddenFieldProperties")),"displayAlert"===t.field&&(this.visibleWarning=t.visible),"descriptionSalaryTable"===t.field&&(this.visibleTableDescription=t.visible),"attachment"===t.field&&(this.visibleAttachment=t.visible),"progressiveIncrease"===t.field&&(this.visibleProgressiveIncrease=t.visible),"costCenter"===t.field&&(this.isVisibleCostCenter=t.visible),"classValue"===t.field&&(this.isVisibleClassValue=t.visible),"accountingItem"===t.field&&(this.isVisibleAccountingItem=t.visible),"editSalary"===t.field&&(this.visibleSalary=t.visible,this.editSalary=t.editable),this.isRM()&&"currentSalary"===t.field&&(this.visibleCurrentSalary=t.visible),(S.Ay.isErpRM()||S.Ay.isErpNode())&&"complementaryField"===t.field&&(this.visibleComplementaryField=!this.idRequisition||this.idRequisition&&t.visible,this.visibleComplementaryField&&(this.idRequisition?this.initializeComplementaryField():this.getComplementaryFields()))})}calculatePercentage(){var t=this;return(0,h.A)(function*(){const i=t.reactiveForm.controls.editSalary.value;if(i!==t.currentSalary){let s;s={salary:i,percent:null,salaryCurrent:t.viewCards[0].getEmployeesRequisitions().salary};const l=yield t.requisitionsService.validateSalary(s);t.reactiveForm.controls.editPercent.setValue(l.percent),t.reactiveForm.controls.editSalary.setValue(l.salary),S.Ay.isErpRM()&&(null!=i&&l.salary>=0?(0==i&&0==l.salary&&t.reactiveForm.controls.editPercent.setValue(-100),t.reactiveForm.controls.reasonSalaryChange.enable(),t.reactiveForm.controls.reasonSalaryChange.addValidators([b.k0.required]),t.reactiveForm.controls.reasonSalaryChange.setValue("")):(t.reactiveForm.controls.reasonSalaryChange.setValue(""),t.selectedChangeSalaryReason=null,t.reactiveForm.controls.reasonSalaryChange.removeValidators([b.k0.required]),t.reactiveForm.controls.reasonSalaryChange.disable(),"hiddenFieldProperties"!==t.reactiveForm.controls.salaryTable.value&&t.resetValueTableSalary())),t.checkIfSalaryisLower(i)}})()}calculateSalaryValue(){var t=this;return(0,h.A)(function*(){const i=t.reactiveForm.controls.editPercent.value;if(i!==t.currentDiscount){let s;s={salary:null,percent:i,salaryCurrent:t.viewCards[0].getEmployeesRequisitions().salary};const l=yield t.requisitionsService.validateSalary(s);t.reactiveForm.controls.editPercent.setValue(l.percent),t.reactiveForm.controls.editSalary.setValue(l.salary),S.Ay.isErpRM()&&(null!=i&&l.salary>=0?(0==i&&0==l.salary&&t.reactiveForm.controls.editSalary.setValue(s.salaryCurrent),t.reactiveForm.controls.reasonSalaryChange.enable(),t.reactiveForm.controls.reasonSalaryChange.addValidators([b.k0.required]),t.reactiveForm.controls.reasonSalaryChange.setValue("")):(t.reactiveForm.controls.reasonSalaryChange.setValue(""),t.selectedChangeSalaryReason=null,t.reactiveForm.controls.reasonSalaryChange.removeValidators([b.k0.required]),t.reactiveForm.controls.reasonSalaryChange.disable(),"hiddenFieldProperties"!==t.reactiveForm.controls.salaryTable.value&&t.resetValueTableSalary())),t.checkIfSalaryisLower(l.salary)}})()}nextStep(){this.mobileFinish=!0}backStep(){this.mobileFinish=!1}validateIsChangeFunction(){return this.reactiveForm.controls.justify.value&&this.reactiveForm.controls.expectedDate.value&&(this.checkChangeFunction()||this.checkChangeSalary())&&this.reactiveForm.valid}cancelRequisition(){this.router.navigate(["/employeeDataChange/dataChangeEmployee"])}setCurrentValues(){const i=this.reactiveForm.controls.editPercent.value;this.currentSalary=this.reactiveForm.controls.editSalary.value,this.currentDiscount=i}checkIfSalaryisLower(t){var i=this;return(0,h.A)(function*(){const s=i.viewCards[0].getEmployeesRequisitions().salary;if(t<s){const l=yield i.appTranslateService.getI18n("l-salary-level-warning");i.visibleWarning&&i.notificationService.showNotification(l,m._yA.Warning)}else if(t==s){const l=yield i.appTranslateService.getI18n("l-salary-level-information");i.notificationService.showNotification(l,m._yA.Information)}})()}saveSalaryAndFunctionRequisition(){var t=this;return(0,h.A)(function*(){(S.Ay.isErpRM()||S.Ay.isErpNode())&&t.visibleProgressiveIncrease?t.validateProgressiveIncrease():t.saveRequisition()})()}saveRequisition(){const t=this.createSendObject();this.requisitionsService.saveSalaryAndFunctionRequisition(t).then(()=>{this.successDialogRequisitionComponent.openModal(),this.progressiveIncreaseItens=[],this.requisitionsService.setProgressiveIncrease(null)})}validateProgressiveIncrease(){const t=this.requisitionsService.getProgressiveIncrease(),i=this.validateProgressiveIncreaseElement(t);this.requisitionsService.validateProgressiveIncreaseitem(i).then(o=>{this.processResultMessageValidateProgressiveIncrease(o)})}processResultMessageValidateProgressiveIncrease(t){t.typeMessage.toLowerCase()===O.TypeMessageEnum.Error.toLowerCase()?(this.enableProcessRequisition=!1,this.messageProgressiveIncrease=t,this.poModalProgressiveMessage.open()):t.typeMessage.toLowerCase()===O.TypeMessageEnum.Warning.toLowerCase()?(this.enableProcessRequisition=!0,this.messageProgressiveIncrease=t,this.poModalProgressiveMessage.open()):(this.messageProgressiveIncrease=t,this.enableProcessRequisition=!0,t.message?this.poModalProgressiveMessage.open():this.saveRequisition())}confirmModalMessage(){this.poModalProgressiveMessage.close()}processRequisition(){this.poModalProgressiveMessage.close(),this.saveRequisition()}validateProgressiveIncreaseElement(t){var i;const o=this.viewCards[0];let s={proposedSalary:this.reactiveForm.controls.editSalary.value?this.reactiveForm.controls.editSalary.value:null,idSalaryTable:this.selectedSalaryTableId?this.selectedSalaryTableId:null,salaryLevel:this.selectedSalaryTableLevelId?this.selectedSalaryTableLevelId:null,salaryRange:this.selectedSalaryTableRangeId?this.selectedSalaryTableRangeId:null};return!this.selectedSalaryTableId&&!this.selectedSalaryTableLevelId&&!this.selectedSalaryTableRangeId&&(""===this.reactiveForm.controls.editSalary.value||void 0===this.reactiveForm.controls.editSalary.value||null==this.reactiveForm.controls.editSalary.value)&&(s=null),{registry:o.getEmployeesRequisitions().id,idCurrentFunction:o.getEmployeesRequisitions().idFunction,salaryCurrent:o.getEmployeesRequisitions().salary,branch:null,idSection:null,salaryInfo:s,types:"employeeDataChange",progressiveIncrease:(null==t?void 0:t.length)>0?t:null,changeFunctionReason:this.selectedChangeFunctionReason?this.selectedChangeFunctionReason:null,changeSalaryReason:this.selectedChangeSalaryReason?this.selectedChangeSalaryReason:null,idNewFunction:null!==(i=this.selectedJobFunction)&&void 0!==i&&i.id?this.selectedJobFunction.id:null}}createSendObject(){var t,i,o,s,l,p,u,v;const C=this.viewCards[0];let f={proposedSalary:this.reactiveForm.controls.editSalary.value?this.reactiveForm.controls.editSalary.value:null,idSalaryTable:this.selectedSalaryTableId?null===(t=this.selectedSalaryTableId)||void 0===t?void 0:t.split("|")[0]:null,salaryLevel:this.selectedSalaryTableLevelId?null===(i=this.selectedSalaryTableLevelId)||void 0===i?void 0:i.split("|")[0]:null,salaryRange:this.selectedSalaryTableRangeId?null===(o=this.selectedSalaryTableRangeId)||void 0===o?void 0:o.split("|")[0]:null};return!this.selectedSalaryTableId&&!this.selectedSalaryTableLevelId&&!this.selectedSalaryTableRangeId&&(""===this.reactiveForm.controls.editSalary.value||void 0===this.reactiveForm.controls.editSalary.value||null==this.reactiveForm.controls.editSalary.value)&&(f=null),null===(s=this.dynamicFormComponent)||void 0===s||s.setFieldValues(),{employeesRequisitions:C.getEmployeesRequisitions(),changeFunctionReason:this.selectedChangeFunctionReason?this.selectedChangeFunctionReason:null,jobFunction:this.selectedJobFunction?this.selectedJobFunction:null,jobRoles:this.selecteJobRole?this.selecteJobRole:null,hierarchicalStructure:this.selectedHierarchicalStructure?this.selectedHierarchicalStructure:null,categoryChangeType:this.selectedCategoryChangeType?this.selectedCategoryChangeType:null,changeSalaryReason:this.selectedChangeSalaryReason?this.selectedChangeSalaryReason:null,salaryInfo:f,expectedDate:this.reactiveForm.controls.expectedDate.value?this.reactiveForm.controls.expectedDate.value:null,justify:this.reactiveForm.controls.justify.value?this.reactiveForm.controls.justify.value:null,generateSubstitution:this.reactiveForm.controls.generateNewHire.value?this.reactiveForm.controls.generateNewHire.value:null,file:this.attachedFile?this.attachedFile:null,hasAttachment:!!this.attachedFile,complementaryField:this.validateComplementaryField(),progressiveIncrease:(null===(l=this.progressiveIncreaseItens)||void 0===l?void 0:l.length)>0?this.progressiveIncreaseItens:null,costCenter:null!==(p=this.costCenter)&&void 0!==p?p:null,classValue:null!==(u=this.classValue)&&void 0!==u?u:null,accountingItem:null!==(v=this.accountingItem)&&void 0!==v?v:null}}getFilterParams(){const t=[];return t[0]=null!=this.viewCards[0].getEmployeesRequisitions().id.split("|")[0]?this.viewCards[0].getEmployeesRequisitions().id.split("|")[0]:"",t[1]=this.viewCards[0].getEmployeesRequisitions().registry,t}
1validateComplementaryField(){let t=null;var i,o,s,l;return t=this.idRequisition?(null===(i=this.dynamicFormComponent)||void 0===i||null===(i=i.complementaryField)||void 0===i?void 0:i.length)>0&&(null===(o=this.dynamicFormComponent)||void 0===o||!o.complementaryField[0].disabled)?null===(s=this.dynamicFormComponent)||void 0===s?void 0:s.complementaryField:null:(null===(l=this.dynamicFormComponent)||void 0===l?void 0:l.complementaryField.length)>0?this.dynamicFormComponent.complementaryField:null,t}fillFileInfo(t){this.attachedFile=t}openProgressiveIncrease(){const t=this.createSendObject();this.requisitionsService.setSaveSalaryAndFunctionRequest(t),this.progressiveIncreaseComponent.openModal()}getProgressiveIncreaseItem(){this.progressiveIncreaseItens=this.requisitionsService.getProgressiveIncrease()}disableSalaryAndPercent(){var t;return(null===(t=this.progressiveIncreaseItens)||void 0===t?void 0:t.length)>0}getFieldsProps(){var t=this;return(0,h.A)(function*(){t.fields=yield t.fieldsPropertiesService.getFieldProperties("requisitionsDataChange")})()}checkIfEmployeeIsSelected(){this.viewCards.length||this.router.navigate(this.idRequisition?["/employeeDataChange"]:["/employeeDataChange/dataChangeEmployee"])}checkChangeFunction(){return this.selectedChangeFunctionReason&&this.selectedJobFunction&&(""===this.reactiveForm.controls.editSalary.value||""===this.reactiveForm.controls.editPercent.value)}checkChangeSalary(){return""!==this.reactiveForm.controls.editSalary.value&&""!==this.reactiveForm.controls.editPercent.value}getComplementaryFields(){const i=this.viewCards[0].getEmployeesRequisitions().id.split("|")[0];this.requisitionsService.getComplementaryFields("employeeDataChange",i).then(o=>{o&&(this.checkHasComplementaryFields(o),this.dynamicFormComponent.complementaryField=o,this.dynamicFormComponent.setDefaultValue(),this.dynamicFormComponent.setDefaultValueText(),this.dynamicFormComponent.setDefaultValueDynamic())})}checkHasComplementaryFields(t){0==t.length&&(this.visibleComplementaryField=!1)}getParamsEdit(){var t;return this.idRequisition=null===(t=this.activatedRoute.snapshot.paramMap)||void 0===t?void 0:t.get("id"),this.currentRequisition=this.requisitionsService.getSelectedRequisition(),this.isEdit=this.idRequisition&&null!=this.currentRequisition,this.isEdit}setParamsEdit(){var t=this;return(0,h.A)(function*(){var i,o;t.title="l-edit",t.viewCards=[],t.loggedUser=yield t.globals.getEmployeeSummary(),yield t.requisitionsService.getDataChangeRequisition(t.loggedUser.id,t.idRequisition).then(p=>{t.requisitionEdit=p,t.requisitionsService.setProgressiveIncrease(t.requisitionEdit.progressiveIncrease)}).catch(()=>{t.windowUtilService.back()}),yield t.dataChangeEmployee.getFieldsProps();let s=yield t.dataChangeEmployee.orderInfoDetails(null===(i=t.requisitionEdit)||void 0===i?void 0:i.employeesRequisitions);const l=new Me.CX;l.setEmployeesRequisitions(null===(o=t.requisitionEdit)||void 0===o?void 0:o.employeesRequisitions),l.setViewEmployeeInfo(s),t.viewCards.push(l)})()}initializeComplementaryField(){var t;null!==(t=this.requisitionEdit)&&void 0!==t&&t.complementaryField&&(this.checkHasComplementaryFields(this.requisitionEdit.complementaryField),setTimeout(()=>{var i,o,s;this.dynamicFormComponent.edit=!0,this.dynamicFormComponent.complementaryField=this.requisitionEdit.complementaryField,null===(i=this.dynamicFormComponent)||void 0===i||i.setDefaultValue(),null===(o=this.dynamicFormComponent)||void 0===o||o.setDefaultValueText(),null===(s=this.dynamicFormComponent)||void 0===s||s.setDefaultValueDynamic()},0))}setCostCenter(t){t&&(this.costCenter=t)}setClassValue(t){t&&(this.classValue=t)}setAccountingItem(t){t&&(this.accountingItem=t)}canViewFields(t){switch(t){case"costCenter":this.canViewField=this.isRM()&&this.isVisibleCostCenter&&!!this.idRequisition&&null!==this.currentRequisition;break;case"accountingItem":this.canViewField=this.isRM()&&this.isVisibleAccountingItem&&!!this.idRequisition&&null!==this.currentRequisition;break;case"classValue":this.canViewField=this.isRM()&&this.isVisibleClassValue&&!!this.idRequisition&&null!==this.currentRequisition;break;default:this.canViewField=!1}return this.canViewField}}return(a=r).\u0275fac=function(t){return new(t||a)(e.rXU(pe),e.rXU(we),e.rXU(de.D),e.rXU(ue.B),e.rXU(Pe.Y),e.rXU(ke.Q),e.rXU(Tt.V),e.rXU(Mt.c),e.rXU(Pt.Q),e.rXU(V.R),e.rXU(j.Ix),e.rXU(b.ok),e.rXU(K.J),e.rXU(A.F),e.rXU(J.F),e.rXU(j.nX),e.rXU(z.K),e.rXU(U.R),e.rXU(H.i),e.rXU(Ft.h),e.rXU(Rt.D))}
1,a.\u0275cmp=e.VBU({type:a,selectors:[["app-new-salary-function-requisition"]],viewQuery:function(t,i){if(1&t&&(e.GBs(m.I3z,7),e.GBs(qt,5),e.GBs(ce.V,5),e.GBs(ve,5),e.GBs(ge.f,5),e.GBs(Y.F,5),e.GBs(xt.S,5)),2&t){let o;e.mGM(o=e.lsd())&&(i.poModal=o.first),e.mGM(o=e.lsd())&&(i.poModalProgressiveMessage=o.first),e.mGM(o=e.lsd())&&(i.successDialogRequisitionComponent=o.first),e.mGM(o=e.lsd())&&(i.progressiveIncreaseComponent=o.first),e.mGM(o=e.lsd())&&(i.dynamicFormComponent=o.first),e.mGM(o=e.lsd())&&(i.nextStepDialogComponent=o.first),e.mGM(o=e.lsd())&&(i.previewFileDialog=o.first)}},standalone:!1,features:[e.Vt3],decls:27,vars:25,consts:[["modal",""],["poModalProgressiveMessage",""],["backIsVisible","viewIsMobile",3,"pageTitle"],[3,"p-title"],["class","table-description",4,"ngIf"],[3,"p-columns","p-items","p-sort","p-striped","p-hide-columns-manager","p-loading",4,"ngIf"],["class","accordion-itens",4,"ngIf"],[1,"po-row"],[1,"po-xl-4","po-lg-4","po-md-12","po-sm-12"],["isSidebar","true",3,"viewCards","isVisibleCurrentSalary"],["class","po-xl-8 po-lg-8 po-md-12 po-sm-12",4,"ngIf"],[1,"modal-hide-footer",3,"p-title"],[1,"po-xl-12","po-lg-12","po-md-12","po-sm-12","po-pl-3","po-pr-3","modal-message"],[1,"mobile-footer-btns"],[1,"po-row","po-pt-2"],[1,"po-xl-12","po-lg-12","po-md-12","po-sm-12"],["class","float-button po-pr-1 po-pl-1","p-kind","primary",3,"p-label","p-click",4,"ngIf"],[1,"float-button",3,"p-click","p-label"],[3,"fieldProperties","isRequisitionEdit","progressiveIncreaseItem",4,"ngIf"],["requiredJustify","true",3,"getRequisitions","title","isEdit"],[1,"table-description"],[3,"p-columns","p-items","p-sort","p-striped","p-hide-columns-manager","p-loading"],[1,"accordion-itens"],["class","po-sm-12 po-md-12 po-lg-12 po-xl-12 no-padding",4,"ngFor","ngForOf"],[1,"po-xl-6","po-lg-6","po-md-6","po-sm-6",3,"p-click","p-label"],["p-kind","primary",1,"po-xl-6","po-lg-6","po-md-6","po-sm-6",3,"p-click","p-label"],[1,"po-sm-12","po-md-12","po-lg-12","po-xl-12","no-padding"],["hideToggle","false",4,"ngFor","ngForOf"],["hideToggle","false"],[1,"vacation-history-header"],[4,"ngFor","ngForOf"],[1,"line"],[1,"historic-content"],[1,"historic-label"],["type","radio","name","choosenField",3,"click","id","value"],[3,"for"],[1,"historic-value"],[1,"po-xl-8","po-lg-8","po-md-12","po-sm-12"],[1,"form-holder",3,"formGroup"],[1,"job-function-change",3,"ngClass"],[1,"po-xl-12","po-lg-12","po-md-12","po-sm-12","subtitle-form"],["formControlName","newJobFunction","p-field-label","name","p-field-value","id","name","newJobFunction","id","newJobFunction",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"p-selected","p-change","p-placeholder","p-label","p-filter-service","p-columns","p-disabled"],["class","po-row",4,"ngIf"],[1,"salary-change",3,"ngClass"],[1,"po-xl-12","po-lg-12","po-md-12","po-sm-12","subtitle-form","fix-padding"],["class","po-xl-8 po-lg-8 po-md-8 po-sm-8 fix-padding",4,"ngIf"],["class","po-xl-4 po-lg-4 po-md-4 po-sm-4 table-btn",4,"ngIf"],["class","po-xl-6 po-lg-6 po-md-6 po-sm-6",4,"ngIf"],["class","po-xl-12 po-lg-12 po-md-12 po-sm-12",4,"ngIf"],["class","po-xl-12 po-lg-12 po-md-12 po-sm-12 po-mt-1",4,"ngIf"],[1,"basic-data",3,"ngClass"],["name","justify","formControlName","justify","p-rows","3",1,"po-xl-12","po-lg-12","po-md-12","po-sm-12",3,"p-placeholder","p-label"],["class","po-xl-6 po-lg-6 po-md-12 po-sm-12 po-pt-1",4,"ngIf"],["class","basic-data",3,"ngClass",4,"ngIf"],[1,"budget-integration"],[3,"isVisibleAlert"],["class","send-form po-pb-5",4,"ngIf"],["class","send-form-mobile",4,"ngIf"],["formControlName","jobFunctionChangeReason","p-field-label","name","p-field-value","id","name","jobFunctionChangeReason","id","jobFunctionChangeReason",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"p-selected","p-change","p-placeholder","p-label","p-filter-service","p-columns"],["formControlName","jobRoles","p-auto-label","true","p-field-label","name","p-field-value","id","name","jobRoles","id","jobRoles",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"p-selected","p-placeholder","p-label","p-filter-service","p-columns"],["p-field-label","description","p-field-value","hierarchy","formControlName","hierarchy","name","hierarchy","id","hierarchy",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"p-selected","p-placeholder","p-label","p-filter-service","p-columns","p-filter-params"],[1,"po-xl-8","po-lg-8","po-md-8","po-sm-8","fix-padding"],["p-disabled","true","formControlName","salaryTable",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"p-label"],[1,"po-xl-4","po-lg-4","po-md-4","po-sm-4","table-btn"],[1,"salarial-table-btn",3,"click"],[1,"po-xl-6","po-lg-6","po-md-6","po-sm-6"],["p-disabled","true","formControlName","levelSalaryTable",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"p-placeholder","p-label"],["p-disabled","true","formControlName","rangeSalaryTable",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"p-placeholder","p-label"],["formControlName","editPercent",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"focusin","focusout","p-placeholder","p-label","p-disabled"],["formControlName","editSalary",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"focusin","focusout","p-placeholder","p-label","p-disabled"],["class","po-sm-12 po-md-12 po-lg-12 po-xl-12","p-field-value","id","p-field-label","name","formControlName","costCenter","name","costCenter","id","costCenter",3,"p-filter-service","p-placeholder","p-label","p-columns","p-disabled","p-selected",4,"ngIf"],["class","po-sm-12 po-md-12 po-lg-12 po-xl-12","p-disabled","true","formControlName","costCenter",3,"ngModel","p-label","ngModelChange",4,"ngIf"],["p-field-value","id","p-field-label","name","formControlName","costCenter","name","costCenter","id","costCenter",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"p-selected","p-filter-service","p-placeholder","p-label","p-columns","p-disabled"],["p-disabled","true","formControlName","costCenter",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"ngModelChange","ngModel","p-label"],["class","po-sm-12 po-md-12 po-lg-12 po-xl-12","formControlName","accountingItem","p-field-value","id","p-field-label","descricao","name","accountingItem","id","accountingItem",3,"p-placeholder","p-label","p-filter-service","p-columns","p-disabled","p-selected",4,"ngIf"],["class","po-sm-12 po-md-12 po-lg-12 po-xl-12","p-disabled","true","formControlName","accountingItem",3,"ngModel","p-label","ngModelChange",4,"ngIf"],["formControlName","accountingItem","p-field-value","id","p-field-label","descricao","name","accountingItem","id","accountingItem",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"p-selected","p-placeholder","p-label","p-filter-service","p-columns","p-disabled"],["p-disabled","true","formControlName","accountingItem",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"ngModelChange","ngModel","p-label"],["class","po-sm-12 po-md-12 po-lg-12 po-xl-12","p-field-value","id","p-field-label","descricao","formControlName","classValue","name","classValue","id","classValue",3,"p-filter-service","p-placeholder","p-label","p-columns","p-disabled","p-selected",4,"ngIf"],["class","po-sm-12 po-md-12 po-lg-12 po-xl-12","p-disabled","true","formControlName","classValue",3,"ngModel","p-label","ngModelChange",4,"ngIf"],["p-field-value","id","p-field-label","descricao","formControlName","classValue","name","classValue","id","classValue",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"p-selected","p-filter-service","p-placeholder","p-label","p-columns","p-disabled"],["p-disabled","true","formControlName","classValue",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"ngModelChange","ngModel","p-label"],["formControlName","categoryChangeType","p-field-label","name","p-field-value","id","name","categoryChangeType",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"p-selected","p-placeholder","p-label","p-filter-service","p-columns"],["formControlName","reasonSalaryChange","p-field-label","name","p-field-value","id","name","reasonSalaryChange",1,"po-sm-12","po-md-12","po-lg-12","po-xl-12",3,"p-selected","p-change","p-placeholder","p-label","p-filter-service","p-columns"],[1,"po-xl-12","po-lg-12","po-md-12","po-sm-12","po-mt-1"],[1,"po-xl-12","po-lg-12","po-md-12","po-sm-12","progressive-increase",3,"click"],["src","assets/img/icon-plus.svg",1,"icon-plus"],[1,"po-xl-1","po-lg-1","po-md-1","po-sm-1","po-pr-0","progressive-increase",3,"click"],[1,"an","an-eye","fix-icon"],[1,"po-xl-11","po-lg-11","po-md-11","po-sm-11","po-pl-0","progressive-increase",3,"click"],[1,"progressive-increase-fix-label"],["p-placeholder","dd/mm/aaaa","formControlName","expectedDate","name","expectedDate",1,"po-xl-12","po-lg-12","po-md-12","po-sm-12",3,"p-label","p-min-date","p-iso-format"],[1,"po-xl-6","po-lg-6","po-md-12","po-sm-12","po-pt-1"],["formControlName","generateNewHire","name","generateNewHire","p-label-off","false","p-label-on","true",1,"po-xl-12","po-lg-12","po-md-12","po-sm-12",3,"p-label-on","p-label-off","p-label"],[1,"po-xl-12","po-lg-12","po-md-12","po-sm-12","subtitle-form","attach"],[1,"po-row","po-pb-2"],["requirementsCss","po-xl-12 po-lg-12 po-md-12 po-sm-12 po-pt-2","attachFileButtonCss","po-sm-6 po-md-6 po-lg-3 po-xl-3 po-pt-1","buttonType","primary",3,"attachedFileChange",4,"ngIf"],["requirementsCss","po-xl-12 po-lg-12 po-md-12 po-sm-12 po-pt-2","attachFileButtonCss","po-sm-6 po-md-6 po-lg-3 po-xl-3 po-pt-1","buttonType","primary",3,"attachedFileChange"],[1,"download-button",3,"click"],[1,"an","an-paperclip"],[1,"attach-file-name"],[1,"attach-file-size"],[1,"po-row",3,"ngClass"],[1,"po-xl-12","po-lg-12","po-md-12",3,"ngClass"],[1,"send-form","po-pb-5"],[3,"p-click","p-label"],["p-kind","primary",3,"p-label","p-disabled","p-click",4,"ngIf"],["id","nextStep"],["p-kind","primary",3,"p-disabled","p-label","p-click",4,"ngIf"],["p-kind","primary",3,"p-click","p-label","p-disabled"],["p-kind","primary",3,"p-click","p-disabled","p-label"],[1,"send-form-mobile"],["p-kind","primary",3,"p-label","p-click",4,"ngIf"],[3,"p-label","p-click",4,"ngIf"],["p-kind","primary",3,"p-click","p-label"],["p-kind","primary",1,"float-button","po-pr-1","po-pl-1",3,"p-click","p-label"],[3,"progressiveIncreaseItem","fieldProperties","isRequisitionEdit"]],template:function(t,i){if(1&t){const o=e.RV6();e.nrm(0,"app-page-header",2),e.j41(1,"po-modal",3,0),e.nI1(3,"translate"),e.DNE(4,Nt,3,3,"p",4)(5,Gt,1,6,"po-table",5)(6,At,8,7,"div",6),e.k0s(),e.j41(7,"div",7)(8,"div",8),e.nrm(9,"app-card-employee-info",9),e.k0s(),e.DNE(10,Ti,57,56,"div",10),e.k0s(),e.j41(11,"po-modal",11,1),e.nI1(13,"translate"),e.j41(14,"div",12)(15,"div"),e.EFF(16),e.k0s()(),e.j41(17,"div",13)(18,"div",14)(19,"div",15),e.DNE(20,Mi,2,3,"po-button",16),e.j41(21,"po-button",17),e.nI1(22,"translate"),e.bIt("p-click",function(){return e.eBV(o),e.Njj(i.confirmModalMessage())}),e.k0s()()()()(),e.nrm(23,"app-success-dialog-requisition"),e.DNE(24,Pi,1,2,"app-progressive-increase",18),e.j41(25,"app-next-step-dialog",19),e.nI1(26,"translate"),e.bIt("getRequisitions",function(){return e.eBV(o),e.Njj(i.back())}),e.k0s()}2&t&&(e.Y8G("pageTitle",i.title),e.R7$(),e.FCK("p-title","",e.bMT(3,17,"l-salary-table"),": ",i.modalTitle,""),e.R7$(3),e.Y8G("ngIf",i.visibleTableDescription),e.R7$(),e.Y8G("ngIf",!i.viewIsMobile),e.R7$(),e.Y8G("ngIf",i.salaryTable&&i.viewIsMobile),e.R7$(3),e.Y8G("viewCards",i.viewCards)("isVisibleCurrentSalary",i.visibleCurrentSalary),e.R7$(),e.Y8G("ngIf",i.reactiveForm),e.R7$(),e.FS9("p-title",e.bMT(13,19,"l-warning")),e.R7$(5),e.JRh(null==i.messageProgressiveIncrease?null:i.messageProgressiveIncrease.message),e.R7$(4),e.Y8G("ngIf",i.enableProcessRequisition),e.R7$(),e.FS9("p-label",e.bMT(22,21,"l-close")),e.R7$(3),e.Y8G("ngIf",i.visibleProgressiveIncrease),e.R7$(),e.FS9("title",e.bMT(26,23,"l-next-step")),e.Y8G("isEdit",null!==i.idRequisition))},dependencies:[I.YU,I.Sq,I.bT,b.BC,b.cb,m.rmE,m.zLt,m.hdu,m.P5q,m.Cus,m.LH$,m.rOH,m.I3z,m.NZw,W.y,kt.D,wt.g,Y.F,ce.V,ge.f,ve,jt.l,k.BS,k.GK,k.Z2,b.j4,b.JD,I.oe,q.D9,Vt.c],styles:[".form-holder[_ngcontent-%COMP%]{background:#fff;border:1px solid #edefef;padding:2em;margin-bottom:1em}.progressive-increase-fix-label[_ngcontent-%COMP%]{padding-top:2px!important;margin-left:-1%}@media screen and (max-width: 720px){.progressive-increase-fix-label[_ngcontent-%COMP%]{margin-left:4%!important}}@media screen and (min-width: 1400px){.progressive-increase-fix-label[_ngcontent-%COMP%]{margin-left:-4%!important}}.subtitle-form[_ngcontent-%COMP%]{font-family:NunitoSans;color:#4a5c60;font-size:1.4em;padding-left:16px;margin-bottom:.4em}.salarial-table[_ngcontent-%COMP%]{text-align:right;padding-right:11px;color:#045b8f;font-family:NunitoSans-bold;cursor:pointer;padding-top:5px}.salarial-table[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center}.salarial-table[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   .eye-icon[_ngcontent-%COMP%]{font-size:22px;padding-right:5px}.attach-btn[_ngcontent-%COMP%]{margin-left:8px}.attach-btn[_ngcontent-%COMP%]     button{height:44px;width:160px}.send-form[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-end}.send-form[_ngcontent-%COMP%]   po-button[_ngcontent-%COMP%]     button{height:40px;width:110px;margin-left:14px;margin-bottom:20px}.attach-text[_ngcontent-%COMP%]{font-size:12px;color:#707070;font-family:NunitoSans;margin-left:8px;margin-top:10px}.po-lookup-container-table[_ngcontent-%COMP%]{height:auto!important}po-table[_ngcontent-%COMP%]{margin-bottom:15px}po-table[_ngcontent-%COMP%]     .po-table-container-fixed-inner{height:auto}po-table[_ngcontent-%COMP%]     .po-table-container{height:auto!important}.basic-data[_ngcontent-%COMP%], .salary-change[_ngcontent-%COMP%], .attachment[_ngcontent-%COMP%]{margin-top:1em}po-modal[_ngcontent-%COMP%]     .po-modal-footer{display:none}po-modal[_ngcontent-%COMP%]     .po-modal-header{padding:23px 8px 5px 10px}po-modal[_ngcontent-%COMP%]     .po-modal-header   .po-modal-title{white-space:inherit!important}po-modal[_ngcontent-%COMP%]     .po-modal-header-close-button{top:17px}po-modal[_ngcontent-%COMP%]     .po-modal-body{margin-bottom:24px}
1po-modal[_ngcontent-%COMP%]     .mobile-footer-btns{display:flex;width:100%;justify-content:flex-end;margin-top:15px}po-modal[_ngcontent-%COMP%]     .mobile-footer-btns .confirm{margin-left:10px}.table-btn[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;padding-right:16px}.salarial-table-btn[_ngcontent-%COMP%]{width:100%;color:#045b8f;font-family:NunitoSans-bold;height:40px;border-radius:3px;border:1px solid #045b8f;font-size:14px;text-align:center;padding-top:9px;cursor:pointer;margin-bottom:10px}.historic-label[_ngcontent-%COMP%]{color:#4a5c60}.historic-label[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin:0;padding-left:1em}.historic-value[_ngcontent-%COMP%]{font-weight:700;color:#2b3639;max-width:100px;display:inline;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.historic-content[_ngcontent-%COMP%]{padding:0 24px;display:flex;justify-content:space-between;text-align:right;cursor:pointer;-webkit-user-select:none;user-select:none}.accordion-itens[_ngcontent-%COMP%]{display:flex;margin-bottom:25px;flex-direction:column}mat-expansion-panel[_ngcontent-%COMP%]{background:#fff;box-shadow:0 2px 8px #e3e6f1;margin:10px 1px}mat-expansion-panel-header[_ngcontent-%COMP%]     .avatar-holder{display:flex}mat-expansion-panel-header[_ngcontent-%COMP%]     .mat-expansion-indicator:after{padding:6px!important;vertical-align:inherit!important}po-input[_ngcontent-%COMP%]     input, po-number[_ngcontent-%COMP%]     input{height:40px!important}po-input[_ngcontent-%COMP%]     .po-field-container, po-number[_ngcontent-%COMP%]     .po-field-container{margin-bottom:8px}po-input[_ngcontent-%COMP%]     .po-field-container-content, po-number[_ngcontent-%COMP%]     .po-field-container-content{padding-top:2px;padding-bottom:2px}po-lookup[_ngcontent-%COMP%]     input{height:40px!important}po-lookup[_ngcontent-%COMP%]     .po-field-container{margin-bottom:8px}po-lookup[_ngcontent-%COMP%]     .po-field-container-content{padding-top:2px;padding-bottom:2px}@media screen and (max-width: 768px){.table-btn[_ngcontent-%COMP%]{padding-right:8px!important}.form-holder[_ngcontent-%COMP%]{background:none;border:none;padding:0}.po-sm-12[_ngcontent-%COMP%], .po-sm-6[_ngcontent-%COMP%]{padding:0 4px}.subtitle-form[_ngcontent-%COMP%]{padding:0 8px;font-size:1.2em}.salarial-table[_ngcontent-%COMP%]{padding:0;font-size:12px}.salarial-table[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   .eye-icon[_ngcontent-%COMP%]{font-size:18px}app-card-employee-info[_ngcontent-%COMP%]     mat-accordion   .mat-accordion .mat-expansion-panel:last-of-type{box-shadow:none}po-input[_ngcontent-%COMP%]     po-field-container   .po-field-title, po-number[_ngcontent-%COMP%]     po-field-container   .po-field-title, po-textarea[_ngcontent-%COMP%]     po-field-container   .po-field-title, po-lookup[_ngcontent-%COMP%]     po-field-container   .po-field-title, po-datepicker[_ngcontent-%COMP%]     po-field-container   .po-field-title, po-switch[_ngcontent-%COMP%]     po-field-container   .po-field-title{font-size:10px}.fix-padding[_ngcontent-%COMP%]{padding-left:4px;padding-right:4px}.send-form-mobile[_ngcontent-%COMP%]{width:100%;padding-left:8px;padding-right:8px}.send-form-mobile[_ngcontent-%COMP%]   po-button[_ngcontent-%COMP%]     button{margin-bottom:15px;width:100%;height:44px}.hide-element[_ngcontent-%COMP%]{visibility:hidden;height:0}.basic-data[_ngcontent-%COMP%]{margin-top:0}}@media screen and (max-width: 425px){.salarial-table-btn[_ngcontent-%COMP%]{font-size:10px;padding-top:13px}  body po-lookup-modal   po-modal   .po-modal-header{font-size:14px!important}  .po-switch-content{margin-top:0!important}.salary-change[_ngcontent-%COMP%]{margin-top:0!important}.attach[_ngcontent-%COMP%]{margin-top:14px}}@media screen and (max-width: 320px){.subtitle-form[_ngcontent-%COMP%]{font-size:.9em}.salarial-table[_ngcontent-qwf-c538][_ngcontent-%COMP%]   div[_ngcontent-qwf-c538][_ngcontent-%COMP%]   .eye-icon[_ngcontent-qwf-c538][_ngcontent-%COMP%]{font-size:17px;padding-right:5px}.salarial-table[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   .eye-icon[_ngcontent-%COMP%]{font-size:16px}}app-attach-file[_ngcontent-%COMP%]     .title  {visibility:hidden;height:0}app-attach-file[_ngcontent-%COMP%]     .po-button  {height:40px!important}app-attach-file[_ngcontent-%COMP%]     .requirements  {padding-left:0%!important}app-attach-file[_ngcontent-%COMP%]     p  {text-align:left!important}app-attach-file[_ngcontent-%COMP%]     .po-icon-attach  {color:#045b8f!important;margin-top:-1px!important}app-attach-file[_ngcontent-%COMP%]     .attach-file-box  {padding:0 5px}app-attach-file[_ngcontent-%COMP%]     .attach-file-size  {padding-top:6px!important}
1@media screen and (min-width: 961px){app-attach-file[_ngcontent-%COMP%]     .box-wrapper  {width:100%!important}app-attach-file[_ngcontent-%COMP%]     .attach-name {width:240px!important}app-attach-file[_ngcontent-%COMP%]     .attach-file-box  {padding:0 8px}}.icon-plus[_ngcontent-%COMP%]{margin-right:8px;margin-top:-4px}.progressive-increase[_ngcontent-%COMP%]{cursor:pointer;color:#045b8f;font-size:16px;font-weight:700;line-height:1.63}.float-button[_ngcontent-%COMP%]    {float:right!important;text-align:right!important}.fix-icon[_ngcontent-%COMP%]    {font-size:25px!important;padding-top:1px!important}#nextStep[_ngcontent-%COMP%]   po-button[_ngcontent-%COMP%]     button{width:140px!important}[_nghost-%COMP%]     .download-button{margin-left:0;height:46px;padding:12px 19px 12px 17px;border-radius:5px;border:solid 1px #b6bdbf;background-color:#fff;font-size:14px;line-height:1.71;letter-spacing:normal;text-align:left;color:#4a5c60;cursor:pointer}@media (min-width: 481px){[_nghost-%COMP%]     .download-button{width:482px}}[_nghost-%COMP%]     .po-icon-attach{color:#045b8f!important}[_nghost-%COMP%]     .attach-file-size{float:right}[_nghost-%COMP%]     .attach-file-name{margin-left:6px}[_nghost-%COMP%]     .po-lookup-buttons{top:11px;right:3px;bottom:11px;left:auto}"]}),r})();var be=d(30322),wi=d(42433),M=d(33772),ji=d(2268),Vi=d(52840),fe=d(54041),qi=d(12277),Ei=d(67520),Oi=d(51784),Ni=d(22783),Gi=d(77588),$i=d(35823);const Di=["demissionForm"],Li=["modalBatchAction"],ye=a=>({modalHide:a}),Ai=a=>({"desktop-batch-action":a});function Xi(a,r){if(1&a&&(e.j41(0,"div",22),e.nrm(1,"div",23),e.j41(2,"div",24)(3,"span"),e.EFF(4),e.k0s()()()),2&a){const n=r.$implicit,t=e.XpG(2);e.R7$(),e.xc7("background-image",t.getAvatar(n)),e.R7$(3),e.JRh(t.getNameById(n))}}function Bi(a,r){if(1&a&&(e.j41(0,"div")(1,"span",26),e.nI1(2,"lowercase"),e.EFF(3),e.k0s()()),2&a){const n=e.XpG().row;e.R7$(),e.Y8G("ngClass",e.bMT(2,2,n.status)),e.R7$(2),e.SpI(" ",n.statusLabel," ")}}function Yi(a,r){1&a&&e.DNE(0,Bi,4,4,"div",25),2&a&&e.Y8G("ngIf","status"===r.column.property)}function zi(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",16)(1,"po-table",17),e.bIt("p-selected",function(i){e.eBV(n);const o=e.XpG();return e.Njj(o.saveSelectedRow(i,!1,!1))})("p-all-selected",function(i){e.eBV(n);const o=e.XpG();return e.Njj(o.saveSelectedRow(i,!1,!1,!0))})("p-all-unselected",function(i){e.eBV(n);const o=e.XpG();return e.Njj(o.saveSelectedRow(i,!1,!0))})("p-unselected",function(i){e.eBV(n);const o=e.XpG();return e.Njj(o.saveSelectedRow(i,!0,!1))}),e.DNE(2,Xi,5,3,"ng-template",18)(3,Yi,1,1,"ng-template",19),e.k0s(),e.j41(4,"div",20)(5,"po-button",21),e.nI1(6,"translate"),e.bIt("p-click",function(){e.eBV(n);const i=e.XpG();return e.Njj(i.showMore())}),e.k0s()()()}if(2&a){const n=e.XpG();e.R7$(),e.Y8G("p-columns",n.columns)("p-items",n.items)("p-actions",n.tableActions)("p-loading",n.loading),e.R7$(),e.Y8G("p-property",n.collumnName),e.R7$(3),e.FS9("p-label",e.bMT(6,7,"l-load-more-results")),e.Y8G("p-disabled",n.showMoreDisable)}}function Ui(a,r){if(1&a){const n=e.RV6();e.j41(0,"po-button",34),e.nI1(1,"translate"),e.bIt("p-click",function(){e.eBV(n);const i=e.XpG(2);return e.Njj(i.dataChangeEmployee())}),e.k0s()}2&a&&e.FS9("p-label",e.bMT(1,1,"l-data-change-title"))}function Ji(a,r){if(1&a){const n=e.RV6();e.j41(0,"app-batch-action-select",35),e.bIt("changed",function(){e.eBV(n);const i=e.XpG(2);return e.Njj(i.getMethod())}),e.k0s()}if(2&a){const n=e.XpG(2);e.Y8G("options",n.batchOptions)}}function Hi(a,r){if(1&a&&(e.j41(0,"div",43)(1,"label",44),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"strong",45),e.EFF(5),e.k0s()()),2&a){const n=e.XpG().$implicit;e.R7$(2),e.JRh(e.bMT(3,2,"l-requisition-exception")),e.R7$(3),e.JRh(n.IsException)}}function Wi(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",50)(1,"po-button",51),e.nI1(2,"translate"),e.bIt("p-click",function(){e.eBV(n);const i=e.XpG().$implicit,o=e.XpG(2);return e.Njj(o.openEdit(i))}),e.k0s()()}2&a&&(e.R7$(),e.FS9("p-label",e.bMT(2,1,"l-edit")))}function Ki(a,r){if(1&a){const n=e.RV6();e.j41(0,"po-button",51),e.nI1(1,"translate"),e.bIt("p-click",function(){e.eBV(n);const i=e.XpG().$implicit,o=e.XpG(2);return e.Njj(o.selectRequisitionToStepAction(i))}),e.k0s()}2&a&&e.FS9("p-label",e.bMT(1,1,"l-next-step"))}function Qi(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",36)(1,"app-expansion-card")(2,"div",37),e.nrm(3,"div",38),e.j41(4,"div",39)(5,"po-checkbox",40),e.mxI("ngModelChange",function(i){const o=e.eBV(n).$implicit;
1return e.DH7(o.checked,i)||(o.checked=i),e.Njj(i)}),e.bIt("p-change",function(){const i=e.eBV(n).$implicit,o=e.XpG(2);return e.Njj(o.saveSelectedRow(i,!1,!1))}),e.k0s(),e.nrm(6,"div",23),e.j41(7,"div",41)(8,"strong"),e.EFF(9),e.nI1(10,"titleCase"),e.k0s()()()(),e.j41(11,"div",42)(12,"div",43)(13,"label",44),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"strong",45),e.EFF(17),e.k0s()(),e.j41(18,"div",43)(19,"label",44),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"strong",45),e.EFF(23),e.nI1(24,"utcDate"),e.k0s()(),e.j41(25,"div",43)(26,"label",44),e.EFF(27),e.nI1(28,"translate"),e.k0s(),e.j41(29,"strong",45),e.EFF(30),e.k0s()(),e.DNE(31,Hi,6,4,"div",46),e.j41(32,"div",43)(33,"label",47),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.j41(36,"div",48)(37,"span",26),e.nI1(38,"lowercase"),e.EFF(39),e.k0s()()(),e.j41(40,"div",49),e.qex(41),e.j41(42,"div",50)(43,"po-button",51),e.nI1(44,"translate"),e.bIt("p-click",function(){const i=e.eBV(n).$implicit,o=e.XpG(2);return e.Njj(o.openVisualize(i))}),e.k0s()(),e.DNE(45,Wi,3,3,"div",52),e.j41(46,"div",22),e.DNE(47,Ki,2,3,"po-button",53),e.k0s(),e.bVm(),e.k0s()()()()}if(2&a){const n=r.$implicit,t=e.XpG(2);e.R7$(5),e.R50("ngModel",n.checked),e.R7$(),e.xc7("background-image",t.getAvatar(n.employeeId)),e.R7$(3),e.JRh(e.bMT(10,17,n.employeeName)),e.R7$(5),e.JRh(e.bMT(15,19,"l-requisition-id")),e.R7$(3),e.JRh(n.requestId),e.R7$(3),e.JRh(e.bMT(21,21,"l-date")),e.R7$(3),e.JRh(e.i5U(24,23,n.date,"shortDate")),e.R7$(4),e.JRh(e.bMT(28,26,"l-requisition-responsible")),e.R7$(3),e.JRh(n.responsableName),e.R7$(),e.Y8G("ngIf",t.isErpRM()),e.R7$(3),e.JRh(e.bMT(35,28,"l-status")),e.R7$(3),e.Y8G("ngClass",e.bMT(38,30,n.status)),e.R7$(2),e.SpI(" ",n.statusLabel," "),e.R7$(4),e.FS9("p-label",e.bMT(44,32,"l-view")),e.R7$(2),e.Y8G("ngIf",(null==t.permissions?null:t.permissions.employeeDataChangeEdit)&&!t.isErpProtheus()),e.R7$(2),e.Y8G("ngIf",t.canApproveReprove(n)&&!t.isErpProtheus())}}function Zi(a,r){if(1&a){const n=e.RV6();e.j41(0,"div",27)(1,"div",28),e.qex(2),e.DNE(3,Ui,2,3,"po-button",29),e.bVm(),e.DNE(4,Ji,1,1,"app-batch-action-select",30),e.k0s(),e.DNE(5,Qi,48,34,"div",31),e.j41(6,"div",32)(7,"po-button",33),e.nI1(8,"translate"),e.bIt("p-click",function(){e.eBV(n);const i=e.XpG();return e.Njj(i.showMore())}),e.k0s()()()}if(2&a){const n=e.XpG();e.R7$(3),e.Y8G("ngIf",null==n.permissions?null:n.permissions.employeeDataChangeRequest),e.R7$(),e.Y8G("ngIf",n.isBatchAction&&n.items.length>0&&n.isErpRM()),e.R7$(),e.Y8G("ngForOf",n.items)("ngForTrackBy",n.trackByFunction),e.R7$(2),e.FS9("p-label",e.bMT(8,6,"l-load-more-results")),e.Y8G("p-disabled",n.showMoreDisable)}}function en(a,r){if(1&a){const n=e.RV6();e.j41(0,"app-batch-action-select",54),e.bIt("changed",function(){e.eBV(n);const i=e.XpG();return e.Njj(i.getMethod())}),e.k0s()}if(2&a){const n=e.XpG();e.Y8G("ngClass",e.eq3(2,Ai,!n.isMobile))("options",n.batchOptions)}}const on=[{path:"",component:(()=>{var a;class r{onResize(){this.isMobileCheck()}constructor(t,i,o,s,l,p,u,v,C,f,R,T){var _=this;this.requisitionsService=t,this.windowUtilService=i,this.navigationUtil=o,this.appTranslateService=s,this.globals=l,this.profileService=p,this.navigationUtilService=u,this.notificationService=v,this.permissionService=C,this.router=f,this.generalService=R,this.fieldProperties=T,this.requisitionsListView=new Vi.O([]),this.notificationsView=[],this.columns=[],this.pageActions=[],this.tableActions=[],this.actions=[],this.items=[],this.avatar=[],this.isReprove=!1,this.columnStatus="status",this.collumnName="idName",this.avatarsStyle=[],this.batchOptions=[],this.stepsSelectOptions=[],this.rowsSelected=[],this.isStepsModal=!1,this.defineNextStepOptions=[],this.nextStepSelectModel=null,this.nextStepTextModel=" ",this.nextStepTextxarea=!0,this.requisitionsTotalizer={alertTotalizer:0,errorTotalizer:0,successTotalizer:0,messages:null,status:null},this.isBatchAction=!0,this.searchActions=[{label:"",action:this.dataChangeEmployee.bind(this)}],this.initializeBatchActionField=(0,h.A)(function*(g=!0){_.batchOptions=[{label:yield _.translateLabel("l-next-step"),value:"1"}];const y=yield _.fieldProperties.getFieldProperties("requisitionsDataChange");
1y&&y.forEach(x=>{"globalApproval"===x.field&&(_.isBatchAction=x.visible)}),_.applyNextStep={action:()=>{_.loadNextModalView()},label:yield _.translateLabel("l-confirm"),disabled:g},_.cancelNextStep={action:()=>{_.cancelAndCleanModalView()},label:yield _.translateLabel("l-cancel")}}),this.loadNextModalView=(0,h.A)(function*(){const g={idCompany:_.loggedUser.id.split("|")[0],idRequisition:_.createSubTypeList(),justify:_.nextStepTextModel,stepCode:_.nextStepSelectModel,type:M.kw.TypeEnum.EmployeeDataChange};_.generalService.putBatchAction(g).then(y=>{_.isStepsModal=!0,_.requisitionsTotalizer={successTotalizer:y.successTotalizer,alertTotalizer:y.alertTotalizer,errorTotalizer:y.errorTotalizer,messages:y.messages,status:y.status},_.getNewButtons()})}),this.redirectToDetails=()=>{this.router.navigate(["/demission/details"],{state:{requisitions:this.requisitionsTotalizer,url:"dataChange"}})},this.checkValidation=g=>{null!=g&&(this.nextStepSelectModel=g),this.activateNextStepButton()},this.activateNextStepButton=()=>{var g;const y=null!=this.nextStepSelectModel&&(null===(g=this.nextStepTextModel)||void 0===g?void 0:g.length)>3;this.activateButton(!y)},this.getMethod=()=>{if(this.rowsSelected.length>0){const g={idCompany:this.loggedUser.id.split("|")[0],idRequisition:this.createSubTypeList(),type:M.kw.TypeEnum.EmployeeDataChange};this.generalService.putStepsBatchAction(g).then(y=>{this.modalBatchAction.openModal(),y.stepsRequisitionsResponse&&(this.nextStepTextModel=y.justify,y.stepsRequisitionsResponse.forEach(x=>{this.defineNextStepOptions=[...this.defineNextStepOptions,{label:x.description,value:x.id}]}))}).catch(()=>this.modalBatchAction.closeModal())}else this.appTranslateService.getI18n("l-batch-action-min-selection").then(g=>{this.notificationService.showNotification(g,m._yA.Error)})},this.createSubTypeList=()=>this.rowsSelected.map(g=>"".concat(this.loggedUser.id.split("|")[0],"|").concat(g.requestId)),this.saveSelectedRow=(g,y,x,w)=>{if(x)this.rowsSelected=[];else if(y)this.rowsSelected.splice(this.rowsSelected.indexOf(g),1);else if(g instanceof Array){for(const F of g)(F.status!=M.$K.StatusEnum.Approving||S.Ay.checkIfDecode(this.loggedUser.id)!=F.responsableId)&&(F.$selected=!1);const P=g.filter(F=>F.status===M.$K.StatusEnum.Approving&&S.Ay.checkIfDecode(this.loggedUser.id)===F.responsableId);if(P.length<20){if(this.rowsSelected=[],this.rowsSelected=this.rowsSelected.concat(P),0===P.length)for(const F of g)F.$selected=!1}else if(w&&P.length>20){this.rowsSelected=[],this.appTranslateService.getI18n("l-batch-action-max-selection").then(F=>{this.notificationService.showNotification(F,m._yA.Warning)});for(const F of g)F.$selected=!1}else{this.appTranslateService.getI18n("l-batch-action-max-selection").then(F=>{this.notificationService.showNotification(F,m._yA.Warning)});for(const F of g)F.$selected=!1}}else g.status===M.$K.StatusEnum.Approving&&S.Ay.checkIfDecode(this.loggedUser.id)===g.responsableId?this.checkForValidation(g):(g.$selected=!1,setTimeout(()=>{g.checked=!1},100),this.validateRequestAndShowWarning(g.status,g.responsableId))},this.checkTextareaValidation=g=>{this.nextStepTextModel=g.trimLeft(),this.activateNextStepButton()},this.validateRequestAndShowWarning=function(){var g=(0,h.A)(function*(y,x){S.Ay.checkIfDecode(_.loggedUser.id)!==x&&y.toLowerCase()===M.KF.StatusEnum.Approving.toLowerCase()?_.notificationService.showNotification(yield _.appTranslateService.getI18n("l-requisition-in-progress"),m._yA.Warning):_.isErpRM()&&y.toLowerCase()===M.KF.StatusEnum.ConsultingBudget.toLowerCase()?_.showMessage("l-alert-budget-integration",m._yA.Warning):_.notificationService.showNotification(yield _.appTranslateService.getI18n("l-requisition-finished"),m._yA.Warning)});return function(y,x){return g.apply(this,arguments)}}()}ngOnInit(){this.requisitionsListView.actualPage=1,this.requisitionsListView.pageSize=10,this.showMoreDisable=!1,this.loading=!1,this.initializeComponent()}initializeComponent(){var t=this;return(0,h.A)(function*(){t.isMobileCheck(),t.loggedUser=yield t.globals.getEmployeeSummary(),yield t.getPermissions(),t.getTableActions(),t.getLabelsSearch(),t.getColumns(),t.getPageActions(),t.getData(!0),t.initializeBatchActionField()})()}isMobileCheck(){this.isMobile=this.windowUtilService.isMobileDevice()}isErpProtheus(){return S.Ay.isErpProtheus()}isErpRM(){return S.Ay.isErpRM()}getData(t){var i=this;return(0,h.A)(function*(){yield i.getDataChangeList(i.requisitionsListView.actualPage,i.requisitionsListView.pageSize,t,i.employeeName,i.dateFilter,i.statusFilter)})()}showMore(){this.rowsSelected=[],this.getDataChangeList(this.requisitionsListView.getNextPage(),this.requisitionsListView.pageSize,!1,this.employeeName,this.dateFilter,this.statusFilter)}onAdvancedSearch(t){t?this.searchItems(t):this.resetFilters()}onChangeDisclaimers(t){const i={};t.forEach(o=>{i[o.property]=o.value}),this.searchItems(i)}onQuickSearch(t){t?this.searchItems({name:t}):this.resetFilters()}translateString(t){return this.appTranslateService.getI18n(t)}back(){this.navigationUtil.doNavigation("/requisitions")}getAvatar(t){return this.avatarsStyle[t]||(this.avatarsStyle[t]=this.profileService.getDefaultImageStyle(),this.profileService.getImageBase64Style(t).then(i=>{this.avatarsStyle[t]=i})),this.avatarsStyle[t]}openVisualize(t){let i;this.requisitionsListView.records.map(o=>{o.id===t.id&&(i=o)}),this.requisitionsService.setSelectedRequisition(i),this.navigationUtilService.doNavigation("employeeDataChange/detail")}openEdit(t){this.canApproveReprove(t)?(this.requisitionsService.setSelectedRequisition(t),this.router.navigate(["".concat("employeeDataChange/dataChangeEmployee/newSalaryFunctionRequisition","/").concat(t.id)])):S.Ay.checkIfDecode(this.loggedUser.id)!==t.responsableId&&t.status.toLowerCase()===M.KF.StatusEnum.Approving.toLowerCase()?this.showMessage("l-requisition-in-progress",m._yA.Warning):this.isErpRM()&&t.status.toLowerCase()===M.KF.StatusEnum.ConsultingBudget.toLowerCase()?this.showMessage("l-alert-budget-integration",m._yA.Warning):this.showMessage("l-requisition-finished",m._yA.Warning)}dataChangeEmployee(){this.navigationUtil.doNavigation("employeeDataChange/dataChangeEmployee")}canApproveReprove(t){return t.status.toLowerCase()===M.KF.StatusEnum.Approving.toLowerCase()&&""!==t.responsableName&&S.Ay.checkIfDecode(this.loggedUser.id)===t.responsableId||this.isErpRM()&&t.status.toLowerCase()===M.KF.StatusEnum.BudgetNotApproved.toLowerCase()}getRequisitions(){var t=this;return(0,h.A)(function*(){t.requisitionsListView.actualPage=1,t.requisitionsListView.pageSize=10,t.showMoreDisable=!1,t.loading=!1,yield t.getData(!0)})()}getNameById(t){const i=this.items.filter(o=>o.idName===t);return i&&i.length>0?i[0].employeeName:""}resetFilters(){this.requisitionsListView.actualPage>1&&(this.requisitionsListView.actualPage=1),this.getData(!0)}getDataChangeList(t,i,o,s,l,p){var u=this;return(0,h.A)(function*(){try{u.loading=!0;const v=yield u.requisitionsService.getAllRequisitions(u.loggedUser.id,t,i,s,null,null==l?void 0:l.toISOString(),p,"employeeDataChange");v?u.updateItemsForTable(v,o):u.requisitionsListView.hasMoreRecords=!1}catch(v){u.loading=!1}finally{u.loading=!1}})()}updateItemsForTable(t,i){var o=this;return(0,h.A)(function*(){o.clearData(i),o.requisitionsListView.records=o.requisitionsListView.records.concat(t.items),o.requisitionsListView.hasMoreRecords=t.hasNext;for(let l=0;l<o.requisitionsListView.records.length;l++){var s;const p=(0,be.A)((0,be.A)({id:o.requisitionsListView.records[l].id,idName:o.requisitionsListView.records[l].employeeId,requestId:o.requisitionsListView.records[l].requestId,employeeName:o.requisitionsListView.records[l].employeeName,employeeId:o.requisitionsListView.records[l].employeeId,responsableName:o.requisitionsListView.records[l].responsableName},o.isErpRM()&&{isException:"1"===(null===(s=o.requisitionsListView.records[l])||void 0===s?void 0:s.isException)?"Em exce\xe7\xe3o":"-"}),{},{responsableId:o.requisitionsListView.records[l].responsableId,status:o.requisitionsListView.records[l].status,statusLabel:o.requisitionsListView.records[l].statusLabel,date:ji.rL.formatUTCDate(new Date(o.requisitionsListView.records[l].startDate)),requesterName:o.requisitionsListView.records[l].requesterName});o.items[l]=p}o.showMoreDisable=!o.requisitionsListView.hasMoreRecords,o.loading=!1})()}clearData(t){(!this.requisitionsListView.records||t)&&(this.requisitionsListView.records=[],t&&(this.items=[]))}searchItems(t){var i,o;this.employeeName=null!==(i=t.name)&&void 0!==i?i:void 0,this.dateFilter=t.date?new Date(t.date):void 0,this.statusFilter=null!==(o=t.status)&&void 0!==o?o:void 0,this.requisitionsListView.actualPage>1&&(this.requisitionsListView.actualPage=1),this.getData(!0)}getLabelsSearch(){var t=this;return(0,h.A)(function*(){t.literals={disclaimerGroupTitle:yield t.translateString("l-filter-applied"),filterTitle:yield t.translateString("l-filter-title"),filterCancelLabel:yield t.translateString("l-cancel-title"),filterConfirmLabel:yield t.translateString("l-apply"),quickSearchLabel:yield t.translateString("l-researched-value"),searchPlaceholder:yield t.translateString("l-search-collaborator-placeholder")},t.filters=[{property:"name",label:yield t.translateString("l-name"),gridColumns:6},{property:"date",label:yield t.translateString("l-date"),type:"date",gridColumns:6},{property:"status",label:yield t.translateString("l-status"),options:[{value:"approving",label:yield t.translateString("l-requisition-approving")},{value:"approved",label:yield t.translateString("l-requisition-approved")},{value:"rejected",label:yield t.translateString("l-requisition-rejected")},{value:"closed",label:yield t.translateString("l-requisition-done")},...t.isErpRM()?[{value:"consultingBudget",label:yield t.translateString("l-requisition-consulting-budget")},{value:"budgetNotApproved",label:yield t.translateString("l-requisition-budget-not-approved")}]:[]],gridColumns:6}],t.searchActions=[{label:yield t.translateString("l-data-change-title"),action:t.dataChangeEmployee.bind(t),icon:"an an-plus",visible:t.permissions.employeeDataChangeRequest}]})()}getColumns(){var t=this;return(0,h.A)(function*(){t.columns=[{property:"idName",label:yield t.translateString("l-name"),type:"columnTemplate"},{property:"requestId",label:yield t.translateString("l-requisition-id")},{property:"employeeId",label:yield t.translateString("l-requisition-matricula")},{property:"date",label:yield t.translateString("l-date"),type:"date"},{property:"responsableName",label:yield t.translateString("l-requisition-responsible")},...t.isErpRM()?[{property:"isException",label:yield t.translateString("l-requisition-exception")}]:[],{property:t.columnStatus,label:yield t.translateString("l-status"),type:"cellTemplate"}]})()}getTableActions(){var t=this;return(0,h.A)(function*(){t.tableActions.push({action:t.openVisualize.bind(t),label:(yield t.translateString("l-view")).toString(),visible:!0}),S.Ay.isErpProtheus()||(t.tableActions.push({action:t.openEdit.bind(t),label:(yield t.translateString("l-edit")).toString(),visible:t.permissions.employeeDataChangeEdit}),t.tableActions.push({label:(yield t.translateString("l-next-step")).toString(),visible:!0,action:t.selectRequisitionToStepAction.bind(t)}))})()}getPageActions(){var t=this;return(0,h.A)(function*(){const i=[],s={label:yield t.translateString("l-data-change-title"),disabled:!1,visible:t.permissions.employeeDataChangeRequest,type:"primary"};i.push(s),t.pageActions=i})()}getPermissions(){var t=this;return(0,h.A)(function*(){t.permissions=yield t.permissionService.getPermissions(t.loggedUser.id)})()}showMessage(t,i){this.appTranslateService.getI18n(t).then(o=>{this.notificationService.showNotification(o,i)})}selectRequisitionToStepAction(t){this.canApproveReprove(t)?(this.requisitionsService.setSelectedRequisition(t),this.nextStepDialogComponent.getSteps(),this.nextStepDialogComponent.openModal()):S.Ay.checkIfDecode(this.loggedUser.id)!==t.responsableId&&t.status.toLowerCase()===M.KF.StatusEnum.Approving.toLowerCase()?this.showMessage("l-requisition-in-progress",m._yA.Warning):this.isErpRM()&&t.status.toLowerCase()===M.KF.StatusEnum.ConsultingBudget.toLowerCase()?this.showMessage("l-alert-budget-integration",m._yA.Warning):this.showMessage("l-requisition-finished",m._yA.Warning)}activateButton(t){var i=this;return(0,h.A)(function*(){i.applyNextStep={action:()=>{i.loadNextModalView()},label:yield i.translateLabel("l-confirm"),disabled:t}})()}getNewButtons(){var t=this;return(0,h.A)(function*(){t.applyNextStep={action:()=>
1{t.redirectToDetails()},label:yield t.translateLabel("l-show-details")},t.cancelNextStep=null})()}checkForValidation(t){let i_idReq=t.id;const o=this.rowsSelected.findIndex(s=>s.id===i_idReq);this.rowsSelected.length<20?-1===o?this.rowsSelected.push(t):this.rowsSelected.splice(o,1):(-1!=o?this.rowsSelected.splice(o,1):(this.appTranslateService.getI18n("l-batch-action-max-selection").then(l=>{this.notificationService.showNotification(l,m._yA.Warning)}),this.rowsSelected.length<20&&this.validateRequestAndShowWarning(t.status,t.responsableId)),t.$selected=!1,setTimeout(()=>{t.checked=!1},100))}translateLabel(t){return this.appTranslateService.getI18n(t)}cancelAndCleanModalView(){this.nextStepSelectModel=null,this.nextStepTextModel="",this.activateButton(!0),this.modalBatchAction.closeModal()}}return(a=r).\u0275fac=function(t){return new(t||a)(e.rXU(V.R),e.rXU(H.i),e.rXU(fe.u),e.rXU(A.F),e.rXU(U.R),e.rXU(wi.p),e.rXU(fe.u),e.rXU(K.J),e.rXU(Ei.n),e.rXU(j.Ix),e.rXU(Oi.O),e.rXU(J.F))},a.\u0275cmp=e.VBU({type:a,selectors:[["app-data-change"]],viewQuery:function(t,i){if(1&t&&(e.GBs(Di,7),e.GBs(m.NZw,5),e.GBs(Y.F,5),e.GBs(qi.e,5),e.GBs(Li,5)),2&t){let o;e.mGM(o=e.lsd())&&(i.demissionForm=o.first),e.mGM(o=e.lsd())&&(i.poTable=o.first),e.mGM(o=e.lsd())&&(i.nextStepDialogComponent=o.first),e.mGM(o=e.lsd())&&(i.confirmRequisitionComponent=o.first),e.mGM(o=e.lsd())&&(i.modalBatchAction=o.first)}},hostBindings:function(t,i){1&t&&e.bIt("resize",function(s){return i.onResize(s)},!1,e.tSv)},standalone:!1,decls:45,vars:49,consts:[["modalBatchAction",""],[1,"data-change-page"],["backIsVisible","viewIsMobile","pageTitle","l-data-change",3,"backFunction"],[1,"actions-holder"],["p-title"," ",3,"p-change-disclaimers","p-quick-search","p-advanced-search","p-actions","p-filters","p-literals"],["class","desktop",4,"ngIf"],["class","mobile",4,"ngIf"],[3,"ngClass","options","changed",4,"ngIf"],["requiredJustify","true",3,"getRequisitions","title"],[3,"title","applyAction","cancelAction"],["modal-body-steps","",3,"ngClass"],["name","select",3,"p-change","ngModelChange","p-label","p-options"],["name","textarea","p-minlength","3",3,"p-change-model","ngModelChange","p-label","ngModel"],["modal-body-details","",3,"ngClass"],[1,"req-response-number"],[1,"numbers"],[1,"desktop"],["p-container","","p-hide-select-all","false","p-hide-text-overflow","","p-sort","true","p-striped","true","p-selectable","true","p-actions-right","true",1,"po-table-custom-hide-text-overflow",3,"p-selected","p-all-selected","p-all-unselected","p-unselected","p-columns","p-items","p-actions","p-loading"],["p-table-column-template","",3,"p-property"],["p-table-cell-template",""],[1,"alignCenter","load-container"],[1,"load-more",3,"p-click","p-disabled","p-label"],[1,"po-row"],[1,"avatar-small"],[1,"po-table-column-cell","cell-content","po-ml-1"],[4,"ngIf"],[1,"flag",3,"ngClass"],[1,"mobile"],[1,"po-visible-sm-12","po-visible-md-12","mb-2","pl-0","pr-0"],["class","button-actions po-sm-12","p-kind","primary","p-icon"," an an-plus",3,"p-label","p-click",4,"ngIf"],[3,"options","changed",4,"ngIf"],["class","margin-card po-sm-12 po-md-12 pl-0 pr-0",4,"ngFor","ngForOf","ngForTrackBy"],[1,"po-sm-12","po-md-12"],[1,"po-sm-12","po-md-12","button-mobile",3,"p-click","p-disabled","p-label"],["p-kind","primary","p-icon"," an an-plus",1,"button-actions","po-sm-12",3,"p-click","p-label"],[3,"changed","options"],[1,"margin-card","po-sm-12","po-md-12","pl-0","pr-0"],["card-header","",1,"mr-card-header","po-sm-12","po-md-12","po-lg-12","po-xl-12"],[1,"pull-left"],[1,"aboutEmployee"],[1,"select-rows-mobile",3,"ngModelChange","p-change","ngModel"],[1,"name","cut-title"],["card-body",""],[1,"po-row","card-line"],[1,"po-sm-6","po-md-6"],[1,"pull-right","po-sm-6","po-md-6"],["class","po-row card-line",4,"ngIf"],[1,"po-sm-3","po-md-3"],[1,"pull-right","po-sm-9","po-md-9"],[1,"po-row","mb-2","mt-3","actions-visualize"],[1,"po-row","mb-3"],[1,"po-sm-12","po-md-12",3,"p-click","p-label"],["class","po-row mb-3",4,"ngIf"],["class","po-sm-12 po-md-12",3,"p-label","p-click",4,"ngIf"],[3,"changed","ngClass","options"]],template:function(t,i){if(1&t){const o=e.RV6();e.j41(0,"div",1)(1,"app-page-header",2),e.bIt("backFunction",function(){return e.eBV(o),e.Njj(i.back())}),e.k0s(),e.j41(2,"div",3)(3,"po-page-dynamic-search",4),e.bIt("p-change-disclaimers",function(l){return e.eBV(o),e.Njj(i.onChangeDisclaimers(l))})("p-quick-search",function(l){return e.eBV(o),e.Njj(i.onQuickSearch(l))})("p-advanced-search",function(l){return e.eBV(o),e.Njj(i.onAdvancedSearch(l))}),e.DNE(4,zi,7,9,"div",5)(5,Zi,9,8,"div",6),e.k0s(),e.DNE(6,en,1,4,"app-batch-action-select",7),e.k0s(),e.j41(7,"app-next-step-dialog",8),e.nI1(8,"translate"),e.bIt("getRequisitions",function(){return e.eBV(o),e.Njj(i.getRequisitions())}),e.k0s()(),e.j41(9,"app-modal-batch-action",9,0),e.nI1(11,"translate"),e.j41(12,"div",10)(13,"po-select",11),e.nI1(14,"translate"),e.bIt("p-change",function(l){return e.eBV(o),e.Njj(i.checkValidation(l))})("ngModelChange",function(){return e.eBV(o),e.Njj(i.nextStepSelectModel)}),e.k0s(),e.j41(15,"po-textarea",12),e.nI1(16,"translate"),e.bIt("p-change-model",function(l){return e.eBV(o),e.Njj(i.checkTextareaValidation(l))}),e.mxI("ngModelChange",function(l){return e.eBV(o),e.DH7(i.nextStepTextModel,l)||(i.nextStepTextModel=l),e.Njj(l)}),e.k0s()(),e.j41(17,"div",13)(18,"p"),e.EFF(19),e.nI1(20,"translate"),e.j41(21,"b"),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.EFF(24),e.nI1(25,"translate"),e.k0s(),e.j41(26,"div",14)(27,"span",15)(28,"p"),e.EFF(29),e.k0s(),e.j41(30,"b"),e.EFF(31),e.nI1(32,"translate"),e.k0s()(),e.j41(33,"span",15)(34,"p"),e.EFF(35),e.k0s(),e.j41(36,"b"),e.EFF(37),e.nI1(38,"translate"),e.k0s()(),e.j41(39,"span",15)(40,"p"),e.EFF(41),e.k0s(),e.j41(42,"b"),e.EFF(43),e.nI1(44,"translate"),e.k0s()()()()()}2&t&&(e.R7$(3),e.Y8G("p-actions",i.searchActions)("p-filters",i.filters)("p-literals",i.literals),e.R7$(),e.Y8G("ngIf",!i.isMobile),e.R7$(),e.Y8G("ngIf",i.isMobile),e.R7$(),e.Y8G("ngIf",i.isBatchAction&&!i.isMobile&&i.items.length>0&&i.isErpRM()),e.R7$(),e.FS9("title",e.bMT(8,25,"l-next-step")),e.R7$(2),e.Y8G("title",e.bMT(11,27,"l-next-step"))("applyAction",i.applyNextStep)("cancelAction",i.c
1ancelNextStep),e.R7$(3),e.Y8G("ngClass",e.eq3(45,ye,!0===i.isStepsModal)),e.R7$(),e.FS9("p-label",e.bMT(14,29,"l-modal-batch-action-select")),e.Y8G("p-options",i.defineNextStepOptions),e.R7$(2),e.FS9("p-label",e.bMT(16,31,"l-absence-type-justify")),e.R50("ngModel",i.nextStepTextModel),e.R7$(2),e.Y8G("ngClass",e.eq3(47,ye,!i.isStepsModal)),e.R7$(2),e.SpI(" ",e.bMT(20,33,"l-click-on")," "),e.R7$(3),e.JRh(e.bMT(23,35,"l-see-details")),e.R7$(2),e.SpI(" ",e.bMT(25,37,"l-see-more-info")," "),e.R7$(5),e.JRh(i.rowsSelected.length),e.R7$(2),e.JRh(e.bMT(32,39,"l-selected-requisitions")),e.R7$(4),e.JRh(i.requisitionsTotalizer.successTotalizer),e.R7$(2),e.JRh(e.bMT(38,41,"l-success-requisitions")),e.R7$(4),e.JRh(i.requisitionsTotalizer.errorTotalizer),e.R7$(2),e.JRh(e.bMT(44,43,"l-error-requisitions")))},dependencies:[I.YU,I.Sq,I.bT,b.BC,b.vS,m.rmE,m.TK5,m.LH$,m.CKz,m.NZw,m.D05,m.fNP,me.F,W.y,Y.F,Ni.h,le.z0,Gi.Q,I.GH,q.D9,he.B,$i.P],styles:["[_nghost-%COMP%]     div.po-page{width:100%;margin-left:0;height:-webkit-fit-content;height:fit-content}[_nghost-%COMP%]     div.po-page div.po-page-content{width:100%!important}@media (max-width: 480px){[_nghost-%COMP%]     div.po-page div.po-page-content{padding-left:8px!important}}@media (max-width: 480px){[_nghost-%COMP%]     .po-page-list-actions .po-button, [_nghost-%COMP%]     .load-more .po-button{height:44px;width:100%;padding:0}}[_nghost-%COMP%]     .load-more .po-button .po-text-ellipsis{padding:0 20px!important;margin-top:8px!important}@media (max-width: 480px){[_nghost-%COMP%]     .po-page-list-actions{margin-bottom:55px}}[_nghost-%COMP%]     div #expansion-card-body{padding-top:20px!important}[_nghost-%COMP%]     .aboutEmployee{display:flex;align-items:center}[_nghost-%COMP%]     .aboutEmployee .name{font-size:15px}[_nghost-%COMP%]     .aboutEmployee .office{font-size:12px}[_nghost-%COMP%]     .content-footer{padding-top:0!important}[_nghost-%COMP%]     .yes-or-no-buttons{float:right!important}.margin-card[_ngcontent-%COMP%]{margin-bottom:17px}.card-line[_ngcontent-%COMP%]{font-size:14px;border-top:1px solid #eceeee;padding-top:16px}.line[_ngcontent-%COMP%]{margin:35px 0 10px}.buttons-mobile[_ngcontent-%COMP%]{padding-bottom:7px}.avatar-small[_ngcontent-%COMP%]{float:left;margin:5px 8px 0 0}@media screen and (min-width: 768px){.avatar-small[_ngcontent-%COMP%]{width:27px!important;height:27px!important;margin:5px 5px 0 0!important}}.pull-right[_ngcontent-%COMP%]{padding:0 8px;text-align:right!important}.load-container[_ngcontent-%COMP%]{margin-bottom:30px;padding:20px 0}.alignCenter[_ngcontent-%COMP%]{text-align:center}.icon-size[_ngcontent-%COMP%]{font-size:20px;font-weight:700}.cut-title[_ngcontent-%COMP%]{margin:0;padding-left:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media screen and (min-width: 320px) and (max-width: 481px){.cut-title[_ngcontent-%COMP%]{width:calc(100vw - 220px)}}@media screen and (max-width: 320px){.cut-title[_ngcontent-%COMP%]{width:calc(100vw - 240px)}}@media screen and (max-width: 490px){[_nghost-%COMP%]     .po-page-list-filter-wrapper{margin-top:-42px!important}[_nghost-%COMP%]     .po-page-list-filter-wrapper .po-page-filter-content{width:calc(100% - 72px)}[_nghost-%COMP%]     .po-page-list-filter-wrapper .po-input, [_nghost-%COMP%]     .po-page-list-filter-wrapper .po-page-list-filter-search-link{height:44px}[_nghost-%COMP%]     .po-page-list-filter-wrapper .po-page-list-filter-search-link{font-size:12px}[_nghost-%COMP%]     .po-page-list-actions .po-button{height:36px;width:50%;padding:0}[_nghost-%COMP%]     .load-more .po-button{height:36px;width:60%;margin-top:10px;padding-left:5px!important;padding-right:5px!important}}[_nghost-%COMP%]     .po-page-list-filter-wrapper{float:left;padding:0}@media screen and (min-width: 490px){[_nghost-%COMP%]     .po-page-list-filter-wrapper{margin-top:0!important}}@media screen and (max-width: 1366px){[_nghost-%COMP%]     .checkbox-list .po-checkbox{margin-top:4px;padding:4px 0}[_nghost-%COMP%]     .po-checkbox .po-checkbox-label{font-weight:bolder!important}}.flag[_ngcontent-%COMP%]{display:inline-block;height:20px;min-width:20px;overflow-y:hidden;padding:2px 8px;background:#efba2a;border-radius:3px;color:#fff;font-size:10px;line-height:16px;text-align:left;text-transform:uppercase;vertical-align:middle}.approved[_ngcontent-%COMP%], .aprovado[_ngcontent-%COMP%], .fechado[_ngcontent-%COMP%], .closed[_ngcontent-%COMP%]{background:#107048}.rejected[_ngcontent-%COMP%], .rejeitado[_ngcontent-%COMP%], .reprovado[_ngcontent-%COMP%], .reproved[_ngcontent-%COMP%]{background:#be3e37}.consultingbudget[_ngcontent-%COMP%]{background:#e3e9f7;color:#173782;width:163px}.budgetnotapproved[_ngcontent-%COMP%]{background:#f6e6e5;color:#72211d}.empty[_ngcontent-%COMP%], .vazio[_ngcontent-%COMP%]{background:#cacaca}.approving[_ngcontent-%COMP%]{background:#efba2a}.cell-content[_ngcontent-%COMP%]{display:flex;max-width:64%!important;align-items:center}@media screen and (min-width: 1500px){.cell-content[_ngcontent-%COMP%]{max-width:80%!important}}img[_ngcontent-%COMP%]{width:24px}@media only screen and (max-width: 490px){[_nghost-%COMP%]     .button-actions .po-button.po-text-ellipsis{height:44px!important;margin-bottom:3px}[_nghost-%COMP%]     .button-actions .po-button.po-text-ellipsis .po-button-icon .po-icon-plus{vertical-align:.13rem;width:12px;padding-right:22px;font-size:20px}}@media (max-width: 720px){[_nghost-%COMP%]     .general{margin-left:-8px!important}}[_nghost-%COMP%]     .po-page-list-actions .po-button{margin-right:0}@media only screen and (min-width: 768px) and (max-width: 960px){[_nghost-%COMP%]     .po-page-list-actions .po-button{margin:2px 0 0!important}}[_nghost-%COMP%]     .po-page-list-actions .po-button .po-button-icon .po-icon{font-size:24px!important;vertical-align:-.14rem!important}@media screen and (min-width: 490px){[_nghost-%COMP%]     .po-page-list-actions{float:right;width:-webkit-fit-content;width:fit-content}}[_nghost-%COMP%]     .po-page-list-filter-wrapper{margin-top:-6px!important;margin-bottom:inherit;float:left}@media screen and (max-width: 490px){[_nghost-%COMP%]     .po-page-list-filter-wrapper{margin-top:-9px!important;margin-bottom:0}}@media screen and (max-width: 490px){[_nghost-%COMP%]     .po-page-list-filter-wrapper .po-page-filter-content{width:calc(100% - 72px)}[_nghost-%COMP%]     .po-page-list-actions{margin-bottom:0;margin-top:42px;display:none}[_nghost-%COMP%]     .po-page-list-actions .po-button{height:44px}[_nghost-%COMP%]     .po-page-list-filter-wrapper .po-input, [_nghost-%COMP%]     .po-page-list-filter-wrapper .po-page-list-filter-search-link{height:44px}[_nghost-%COMP%]     .po-page-list-filter-wrapper .po-page-list-filter-search-link{font-size:12px}}[_nghost-%COMP%]     .po-page-list-disclaimer-group{margin-top:80px;margin-bottom:18px}@media screen and (min-width: 821px){[_nghost-%COMP%]     .po-page-list-operations{margin-bottom:2px!important;margin-top:5px!important}}@media screen and (max-width: 820px){[_nghost-%COMP%]     .po-disclaimer-group{margin-top:-16px;margin-bottom:16px!important}}[_nghost-%COMP%]     .po-page-header{padding-right:8px;padding-bottom:inherit}@media screen and (max-width: 820px){[_nghost-%COMP%]     .po-page-header{padding-top:0}}@media (min-width: 768px){.data-change-page[_ngcontent-%COMP%]{padding:0 40px!important}}[_nghost-%COMP%]     .po-page, [_nghost-%COMP%]     .po-page-content{height:auto!important}[_nghost-%COMP%]     #expansion-card-header{position:relative;padding:3px 0 2px}[_nghost-%COMP%]     #expansion-card-header .icon-collapsed{top:50%;margin-top:25px!important;transform:translateY(-50%);right:0}[_nghost-%COMP%]     #expansion-card-header .mr-card-header{float:unset}[_nghost-%COMP%]     #expansion-card-header .mr-card-header .about-employee{display:flex;align-items:center;padding-right:15px}[_nghost-%COMP%]     #expansion-card-header .mr-card-header .about-employee .cut-title{margin:0;padding-left:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:16px}[_nghost-%COMP%]     #expansion-card-header .mr-card-header .about-employee .name{font-size:15px}[_nghost-%COMP%]     #expansion-card-header .mr-card-header .checkbox-list .po-checkbox{margin-top:4px;padding:4px 0}[_nghost-%COMP%]     #expansion-card-header .mr-card-header .po-checkbox .po-checkbox-label{font-weight:bolder!important}[_nghost-%COMP%]     #expansion-card-body .item-body .value{text-align:right;font-weight:700}[_nghost-%COMP%]     .po-page-content{padding:0!important}
1@media screen and (min-width: 961px){[_nghost-%COMP%]     div.po-page{margin-left:0!important;height:auto!important}[_nghost-%COMP%]     div.po-page, [_nghost-%COMP%]     div.po-page div.po-page-content{width:100%!important}[_nghost-%COMP%]     div.po-page div.po-page-header, [_nghost-%COMP%]     div.po-page div.po-page-content{padding-left:8px!important;padding-right:8px!important}}.border-top[_ngcontent-%COMP%]{border-top:1px solid #eceeee}.last-border-bottom[_ngcontent-%COMP%]{border-bottom:0!important}.border-bottom[_ngcontent-%COMP%]{border-bottom:1px solid #eceeee;padding-bottom:.5rem;padding-top:.5rem}.sub-title[_ngcontent-%COMP%]{display:block;font-size:13.8px}.size-title[_ngcontent-%COMP%]{font-size:15px}.mobile[_ngcontent-%COMP%]{padding:0 8px 0 0}[_nghost-%COMP%]     .button-actions{margin-bottom:5px;padding:2px 0}@media only screen and (min-width: 491px){[_nghost-%COMP%]     .button-actions{display:none}}@media screen and (min-width: 992px){.actions-holder[_ngcontent-%COMP%]   .search-holder[_ngcontent-%COMP%]{display:inline-block;max-width:450px;width:250px;float:right}}[_nghost-%COMP%]     .po-table-footer-show-more{padding:20px 0}[_nghost-%COMP%]     .general{margin-left:-5px!important}@media only screen and (max-width: 767px){[_nghost-%COMP%]     .general{margin-left:-2px!important}}@media (max-width: 767px){[_nghost-%COMP%]     .actions-visualize .button-actions{padding:2px 8px!important}[_nghost-%COMP%]     .actions-visualize .po-button.po-text-ellipsis{height:38px!important;padding:2px 8px!important}}@media (min-width: 768px){[_nghost-%COMP%]     .po-page-filter-content{width:300px}}@media screen and (min-width: 480px){[_nghost-%COMP%]     .po-modal-footer{display:flex;justify-content:end;gap:10px}}.desktop-batch-action[_ngcontent-%COMP%]{position:absolute;right:246px;top:103px;width:17%}@media screen and (max-width: 1366px){.desktop-batch-action[_ngcontent-%COMP%]{right:214px;top:98px}}@media screen and (max-width: 1200px){.desktop-batch-action[_ngcontent-%COMP%]{top:94px}}@media screen and (max-width: 960px){.desktop-batch-action[_ngcontent-%COMP%]{top:93px}}@media screen and (max-width: 767px){.desktop-batch-action[_ngcontent-%COMP%]{top:85px;right:174px}}@media screen and (max-width: 490px){.desktop-batch-action[_ngcontent-%COMP%]{position:relative!important;right:0!important;top:0!important}}.modalHide[_ngcontent-%COMP%]{display:none}.select-rows-mobile[_ngcontent-%COMP%]{width:16px;height:16px;margin-right:8px}[_nghost-%COMP%]     po-button.button-mobile{margin-bottom:70px}"]}),r})(),canActivate:[E.r]},{path:"detail",component:Te,canActivate:[E.r]},{path:"dataChangeEmployee",component:z.K,canActivate:[E.r]},{path:"dataChangeEmployee/newSalaryFunctionRequisition",component:_e,canActivate:[E.r]},{path:"dataChangeEmployee/newSalaryFunctionRequisition/:id",component:_e,canActivate:[E.r]}];let sn=(()=>{var a;class r{}return(a=r).\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.$C({type:a}),a.\u0275inj=e.G2t({imports:[j.iI.forChild(on),j.iI]}),r})();var ln=d(84193),rn=d(46419);let cn=(()=>{var a;class r{}return(a=r).\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.$C({type:a}),a.\u0275inj=e.G2t({providers:[{provide:Ce.a7,useClass:ln.L,multi:!0},z.K],imports:[I.MD,Fe.h,q.h,j.iI,b.YN,k.MY,m.Kgc,Se.k,Ie.D,le.S,sn,b.X1,rn.$]}),r})()}}]);

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.