PageSourceSearch

https://portalrh.uninove.br/web/app/RH/PortalMeuRH/6107.77f963098ff862ff.js

js uninove.br collected 2026-09-24 09:30:27 UTC 36,681 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkportal_meu_rh=self.webpackChunkportal_meu_rh||[]).push([[6107],{60787(P,b,i){i.d(b,{w:()=>_});var c=i(73308),O=i(46296),x=i(45888),g=i(56622),M=i(61288),C=i(86731);let _=(()=>{var u;class p{constructor(o){this.appTranslateService=o,this.removeTextKey="",this.id="",this.confirmEvent=new O.bkB}ngOnInit(){this.initializeComponent()}openModal(){this.modal.open()}confirm(){this.modal.close(),this.confirmEvent.emit(this.id)}initializeComponent(){var o=this;return(0,c.A)(function*(){yield o.initializeModalAction()})()}initializeModalAction(){var o=this;return(0,c.A)(function*(){o.cancelAction={action:()=>{o.modal.close()},label:yield o.appTranslateService.getI18n("l-cancel"),danger:!0},o.confirmAction={action:()=>{o.confirm()},label:yield o.appTranslateService.getI18n("l-yes")}})()}}return(u=p).\u0275fac=function(o){return new(o||u)(g.rXU(M.F))},u.\u0275cmp=g.VBU({type:u,selectors:[["app-delete-modal"]],viewQuery:function(o,r){if(1&o&&g.GBs(x.I3z,7),2&o){let a;g.mGM(a=g.lsd())&&(r.modal=a.first)}},inputs:{removeTextKey:"removeTextKey",id:"id"},outputs:{confirmEvent:"confirmEvent"},standalone:!1,decls:5,vars:5,consts:[["modal",""],["p-size","sm","p-hide-close","true",3,"p-primary-action","p-secondary-action"],[1,"po-sm-11","po-md-11","po-lg-11","po-xl-11"]],template:function(o,r){1&o&&(g.j41(0,"po-modal",1,0)(2,"div",2),g.EFF(3),g.nI1(4,"translate"),g.k0s()()),2&o&&(g.Y8G("p-primary-action",r.confirmAction)("p-secondary-action",r.cancelAction),g.R7$(3),g.SpI(" ",g.bMT(4,3,r.removeTextKey)," "))},dependencies:[x.I3z,C.D9],styles:["[_nghost-%COMP%]     .po-modal-body{font-family:Nunito Sans,sans-serif;font-size:16px;padding-left:5px}[_nghost-%COMP%]     .po-modal-header{padding:5px!important}[_nghost-%COMP%]     .po-modal-footer{padding:20px!important}@media screen and (min-width:769px){[_nghost-%COMP%]     .po-modal-sm{width:25%}[_nghost-%COMP%]     .po-modal-body{margin-bottom:70px}}@media screen and (max-width:480px){[_nghost-%COMP%]     .po-modal-body{margin-bottom:50px;padding-left:0}[_nghost-%COMP%]     .po-modal-footer{padding:10px 10px 20px!important}}"]}),p})()},6107(P,b,i){i.d(b,{o:()=>N});var c=i(73308),O=i(31806),x=i(45312),g=i(33772),M=i(2268),C=i(80371),_=i(28116),u=i(39299),p=i(25683),e=i(56622),o=i(61288),r=i(91132),a=i(41323),m=i(73123),h=i(46296),f=i(45888),y=i(47669),w=i(2444),k=i(6422),T=i(30693),R=i(2002),I=i(37222),D=i(58217),E=i(60787),A=i(86731);const j=["deleteModal"],z=["poModal"];function U(s,v){if(1&s&&(e.j41(0,"span",6),e.EFF(1),e.k0s()),2&s){const d=e.XpG();e.Y8G("ngClass",d.status),e.R7$(),e.SpI(" ",d.statusLabel," ")}}function V(s,v){if(1&s&&(e.j41(0,"div",15)(1,"h3",24),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"span",25),e.EFF(5),e.nI1(6,"translate"),e.k0s()()),2&s){const d=v.$implicit;e.Y8G("ngClass",d.class),e.R7$(2),e.JRh(e.bMT(3,3,d.label)),e.R7$(3),e.JRh(e.bMT(6,5,d.value))}}function L(s,v){if(1&s){const d=e.RV6();e.j41(0,"po-button",26),e.nI1(1,"translate"),e.bIt("click",function(){h.eBV(d);const n=e.XpG();return h.Njj(n.approve())}),e.k0s()}if(2&s){const d=e.XpG();e.Y8G("p-label",e.mNQ(e.bMT(1,3,d.isApprove?"l-approve":"l-edit")))("ngClass",d.isMobile?"po-sm-6 po-md-6 alignRight":"button-edit")}}function B(s,v){if(1&s&&(e.j41(0,"span",22),e.EFF(1),e.k0s()),2&s){const d=e.XpG();e.R7$(),e.JRh(d.modalText)}}function F(s,v){if(1&s){const d=e.RV6();e.j41(0,"po-textarea",27),e.nI1(1,"translate"),e.nI1(2,"translate"),e.mxI("ngModelChange",function(n){h.eBV(d);const l=e.XpG();return e.DH7(l.reprovedReason,n)||(l.reprovedReason=n),h.Njj(n)}),e.k0s()}if(2&s){const d=e.XpG();e.Y8G("p-label",e.mNQ(e.bMT(1,5,"l-justification")))("p-placeholder",e.mNQ(e.bMT(2,7,"l-reason-50-char"))),e.R50("ngModel",d.reprovedReason)}}let G=(()=>{var s;class v{constructor(t,n,l,S){this.translateService=t,this.managementRequestOnCallService=n,this.router=l,this.notificationService=S,this.labels=[],this.employeeId=y.c.loggedUser,this.onCallFields=[],this.daysToConsider=[],this.employeeCard={employee:void 0,image:void 0,originComponent:""},this.reasonVisible=!1,this.isApprove=!1,this.back=new h.bkB}ngOnInit(){var t=this;return(0,c.A)(function*(){t.isMobile=r.i.mdDeviceOrSmaller(window.innerWidth),t.getModalActions(),t.statusLabel=yield t.translateService.getI18n(t.getStatusLabel(t.status))})()}ngOnDestroy(){this.queryParamsSubscription&&this.queryParamsSubscription.unsubscribe()}getStatusLabel(t){let n;switch(t){case w.q.StatusEnum.Pending:n="l-approving";break;case w.q.StatusEnum.Reproved:n="l-reproved";break;case w.q.StatusEnum.Approved:n="l-status-approved"}return n}reprove(){this.approveIsTrue=!1,this.reasonVisible=!0,this.isApprove?this.poModal.open():(this.deleteModal.openModal(),this.deleteId=this.onCall.idName.split("|")[0]+"|"+this.onCall.id)}approve(){var t=this;return(0,c.A)(function*(){t.modalText=(yield t.translateString("l-approve-notification")).toString(),t.approveIsTrue=!0,t.reasonVisible=!1,t.isApprove?t.poModal.open():t.router.navigate(["teamManagement/timesheet/onCall/request",{employeeId:t.onCall.idName,isEdit:!0,editId:t.onCall.id}])})()}confirmDelete(){var t=this;this.managementRequestOnCallService.deleteOnCall(y.c.loggedUser,this.deleteId).then((0,c.A)(function*(){t.notificationService.showNotification(yield t.translateService.getI18n("l-delete-success"),f._yA.Success),t.back.emit()})).catch(n=>{this.notificationService.showNotification(n.message,f._yA.Error)})}getModalActions(){var t=this;return(0,c.A)(function*(){var n;t.closeAction={action:()=>{t.closeModal()},label:(yield t.translateString("l-cancel-title")).toString(),danger:!0},t.confirmAction={action:(n=(0,c.A)(function*(){yield t.confirmModal()}),function(){return n.apply(this,arguments)}),label:(yield t.translateString("l-confirm")).toString()}})()}translateString(t){return this.translateService.getI18n(t)}closeModal(){this.poModal.close()}confirmModal(){var t=this;return(0,c.A)(function*(){let n=t.defineMessageReturnStatus(),l=[];l.push(t.onCall),yield t.managementRequestOnCallService.createRequisitionsResponse(t.employeeId,l,t.approveIsTrue,n,t.reprovedReason,!0),t.poModal.close(),t.back.emit()})()}defineMessageReturnStatus(){let t;return t=this.approveIsTrue?"m-approved-request":"m-reprove-request",t}}return(s=v).\u0275fac=function(t){return new(t||s)(e.rXU(o.F),e.rXU(k.p),e.rXU(a.Ix),e.rXU(T.J))},s.\u0275cmp=e.VBU({type:s,selectors:[["app-view-details"]],viewQuery:function(t,n){if(1&t&&e.GBs(j,5)(z,5),2&t){let l;e.mGM(l=e.lsd())&&(n.deleteModal=l.first),e.mGM(l=e.lsd())&&(n.poMo
1dal=l.first)}},inputs:{cardTitle:"cardTitle",employeeImage:"employeeImage",name:"name",matricula:"matricula",status:"status",isApprove:"isApprove",fields:"fields",onCall:"onCall",canEdit:"canEdit"},outputs:{back:"back"},standalone:!1,decls:33,vars:31,consts:[["deleteModal",""],["poModal",""],[1,"on-call"],[1,"po-sm-12"],["card-header","",1,"mr-card-header","po-sm-12",3,"ngClass"],[1,"justify-title"],[1,"badge",3,"ngClass"],[1,"line"],["card-body","",3,"ngClass"],[1,"holder","po-sm-12"],[1,"item-avatar","avatar","avatar-medium","mouse-pointer"],[1,"info"],[1,"justify-mainName"],[1,"justify-id"],[1,"card-balance-summary","po-row"],["name","div-menu-itens",3,"ngClass"],[1,"marginTop15px","alignRight","actions-visualize","actions-visualize-others-resolutions"],[3,"ngClass"],["p-kind","secondary","p-danger","true",3,"click","ngClass","p-label"],["p-kind","primary",3,"ngClass","p-label"],["removeTextKey","l-delete-on-call-message",3,"confirmEvent"],["p-size","md",3,"p-title","p-primary-action","p-secondary-action"],[1,"po-lg-12","po-xl-12","po-md-12","po-sm-12","po-mb-3"],["name","textarea","p-maxlength","50",1,"po-lg-12","po-xl-12","po-md-12","po-sm-12",3,"ngModel","p-label","p-placeholder"],[1,"justify-subtitle"],[1,"justify-text"],["p-kind","primary",3,"click","ngClass","p-label"],["name","textarea","p-maxlength","50",1,"po-lg-12","po-xl-12","po-md-12","po-sm-12",3,"ngModelChange","ngModel","p-label","p-placeholder"]],template:function(t,n){1&t&&(e.j41(0,"div",2)(1,"div",3)(2,"app-card")(3,"div",4)(4,"h2",5),e.EFF(5),e.nI1(6,"translate"),e.nV
1h(7,U,2,2,"span",6),e.k0s(),e.nrm(8,"hr",7),e.k0s(),e.j41(9,"div",8)(10,"div",9),e.nrm(11,"span",10),e.j41(12,"div",11)(13,"h3",12),e.EFF(14),e.k0s(),e.j41(15,"div",13),e.EFF(16),e.nI1(17,"translate"),e.k0s()()(),e.j41(18,"div",14),e.Z7z(19,V,7,7,"div",15,e.fX1),e.k0s(),e.j41(21,"div",16)(22,"div",17)(23,"po-button",18),e.nI1(24,"translate"),e.bIt("click",function(){return n.reprove()}),e.k0s(),e.nVh(25,L,2,5,"po-button",19),e.k0s()()()()()(),e.j41(26,"app-delete-modal",20,0),e.bIt("confirmEvent",function(){return n.confirmDelete()}),e.k0s(),e.j41(28,"po-modal",21,1),e.nI1(30,"translate"),e.nVh(31,B,2,1,"span",22),e.nVh(32,F,3,9,"po-textarea",23),e.k0s()),2&t&&(e.R7$(3),e.Y8G("ngClass",n.isMobile?"mobile-card":""),e.R7$(2),e.SpI(" ",e.bMT(6,23,n.cardTitle)," "),e.R7$(2),e.vxM(!n.isMobile&&n.status?7:-1),e.R7$(2),e.Y8G("ngClass",n.isMobile?"mobile-card":""),e.R7$(2),e.xc7("background-image",n.employeeImage),e.R7$(3),e.JRh(n.name),e.R7$(2),e.Lme("",e.bMT(17,25,"l-registry")," ",n.matricula),e.R7$(3),e.Dyx(n.fields),e.R7$(3),e.Y8G("ngClass",n.isMobile?"pt-0":"po-pt-5 po-mt-2"),e.R7$(),e.Y8G("p-label",e.mNQ(e.bMT(24,27,n.isApprove?"l-reprove":"l-delete")))("ngClass",n.isMobile?"po-sm-6 po-md-6":"button-delete"),e.R7$(2),e.vxM(n.isApprove||n.canEdit?25:-1),e.R7$(3),e.AVh("modalApprove",n.approveIsTrue)("modalReprove",!n.approveIsTrue),e.Y8G("p-title",e.bMT(30,29,n.approveIsTrue?"l-confirmation":"l-reprove-oncall-requisition"))("p-primary-action",n.confirmAction)("p-secondary-action",n.closeAction),e.R7$(3),e.vxM(n.modalText?31:-1),e.R7$(),e.vxM(n.reasonVisible?32:-1))},dependencies:[R.YU,I.BC,I.vS,D.i,f.rmE,f.LH$,f.I3z,E.w,A.D9],styles:[".on-call-label[_ngcontent-%COMP%]{padding-top:15px;padding-left:1px}.period-label[_ngcontent-%COMP%]{padding-left:8px}.latest-requests[_ngcontent-%COMP%]{top:6px;display:inline-block;padding-bottom:8px;margin-left:-7px}@media screen and (max-width:491px){.latest-requests[_ngcontent-%COMP%]{padding-top:16px}}.on-call-history-header[_ngcontent-%COMP%]{font-weight:700;font-size:16px;color:#2b3639}.historic-value[_ngcontent-%COMP%]{float:right;font-weight:700;color:#2b3639}.historic-label[_ngcontent-%COMP%]{font-weight:700;color:#4a5c60;text-align:left}.margin-history[_ngcontent-%COMP%]{margin-top:-30px}.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:14px;font-weight:700;line-height:16px;text-align:left;text-transform:uppercase;vertical-align:middle}.timeline-status-approved[_ngcontent-%COMP%]{background-color:#00bc82;display:flex;align-items:center;justify-items:center;float:right}.timeline-status-reproved[_ngcontent-%COMP%]{background-color:#ca3f3f;display:flex;align-items:center;justify-items:center;float:right}.card-well[_ngcontent-%COMP%]{box-shadow:0 2px 8px #e3e6f1;border-radius:6px;padding:32px;margin-bottom:8px;position:relative;background:#fff}.space[_ngcontent-%COMP%]{margin-bottom:180px}.next-records[_ngcontent-%COMP%]{background-color:transparent;text-align:center;font-size:16px;font-weight:700;line-height:3;color:#00445b;padding-bottom:20px;cursor:pointer}[_nghost-%COMP%]     .mat-expansion-indicator:after{padding:5px;margin-top:-9px}.mat-expansion-panel[_ngcontent-%COMP%]{box-shadow:0 2px 8px #e3e6f1!important;border-radius:6px;position:relative;background:#fff;display:flow-root;padding:0;margin-bottom:16px}.historic-content[_ngcontent-%COMP%]{margin-right:2px;padding:0 24px}@media(max-width:425px){.historic-content[_ngcontent-%COMP%]{padding:0 16px}}.requested-title[_ngcontent-%COMP%]{margin:0;padding-left:8px;color:#fff;display:inline}.requested-value[_ngcontent-%COMP%]{color:#fff;font-weight:700}.requested-label[_ngcontent-%COMP%]{color:#fff;opacity:.7}.requested-title[_ngcontent-%COMP%]{margin-top:0;color:#fff}.to-request-value[_ngcontent-%COMP%]{color:#2b3639;font-weight:700}.to-request-label[_ngcontent-%COMP%]{color:#4a5c60}.dropdown[_ngcontent-%COMP%]{float:right}.dropdown-menu-itens[_ngcontent-%COMP%]{cursor:pointer!important;text-align:left;font-weight:400;background-color:#fff;line-height:44px;width:100%;padding-left:16px;margin-top:-4px;border-radius:3px}.dropdown-menu-itens[_ngcontent-%COMP%]:hover{background-color:#f0f8ff}.dropdown-menu[_ngcontent-%COMP%]{top:100%;min-width:100px;left:auto!important}.see-more[_ngcontent-%COMP%]{color:#fff;font-size:20px}[_nghost-%COMP%]     .avatar-small{height:42px;width:42px}.card-employee[_ngcontent-%COMP%]{padding-left:0}.aboutEmployee[_ngcontent-%COMP%]{padding-left:55px}@media screen and (max-width:480px){[_nghost-%COMP%]     .on-call-holder{width:100%;padding:8px}}[_nghost-%COMP%]     .on-call-holder .po-button{border-color:#fff;color:#fff;background-color:transparent}@media screen and (max-width:480px){[_nghost-%COMP%]     .on-call-holder .po-button{float:right}}.historic-actions[_ngcontent-%COMP%]{display:inline-block;padding-top:24px;padding-right:16px}@media screen and (max-width:480px){.historic-actions[_ngcontent-%COMP%]{padding-right:8px;padding-left:8px}}.historic-button[_ngcontent-%COMP%]{float:right}.flipflop[_ngcontent-%COMP%]{margin-top:10px}.on-call[_ngcontent-%COMP%]{position:relative}@media screen and (min-width:992px)and (max-width:1199px){.on-call-holder[_ngcontent-%COMP%]{position:absolute;bottom:22px;right:15px}}@media screen and (min-width:1200px){.on-call-holder[_ngcontent-%COMP%]{position:absolute;bottom:22px;right:15px}}@media(max-width:960px)and (min-width:481px){.on-call-holder[_ngcontent-%COMP%]{position:absolute;bottom:22px;right:15px}}-link[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]     .on-call-history-header .mat-content{align-items:center;align-content:center}@media(max-width:425px){[_nghost-%COMP%]     .on-call-history-header .mat-content{font-size:14px}}.type1[_ngcontent-%COMP%]{display:inline-block;width:14px;
1height:14px;background:#107048}.type2[_ngcontent-%COMP%]{display:inline-block;width:14px;height:14px;background:#be3e37}.circle-base[_ngcontent-%COMP%]{border-radius:50%}.historic-label-title[_ngcontent-%COMP%]{padding-left:7px;vertical-align:text-bottom}.page-margin[_ngcontent-%COMP%]{margin:0 40px 40px}.center[_ngcontent-%COMP%]{margin:0 auto}.load-more-arrow[_ngcontent-%COMP%]{color:#00445b;font-size:23px}.pointer[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:50%;background-color:#9da7a9;margin-left:10px}.activePointer[_ngcontent-%COMP%]{background-color:#00445b}.mobile-pointer[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:15px}.request-button[_ngcontent-%COMP%]{margin-top:auto!important;margin-bottom:auto!important}@media(min-width:768px){.on-call[_ngcontent-%COMP%]{padding:0 40px!important}}@media(max-width:870px){.on-call-label[_ngcontent-%COMP%]{padding-left:8px}}@media(max-width:460px){.ocurrence-line[_ngcontent-%COMP%]{display:inline-block!important;width:100%}.ocurrence-value[_ngcontent-%COMP%]{padding-right:0;text-align:right;width:66.6%}}.po-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:20px}@media screen and (max-width:480px){[_nghost-%COMP%]     .dialog .overlay{padding:15px}}@media screen and (min-width:961px){[_nghost-%COMP%]     .dialog .overlay{padding:0 35px 15px}}@media screen and (min-width:768px){[_nghost-%COMP%]     .dialog button{width:10rem}}@media screen and (min-width:961px){[_nghost-%COMP%]     .dialog .max-width-page-title{padding-left:0}}@media screen and (max-width:480px){[_nghost-%COMP%]     .dialog .thf-button{display:block;width:100%}}.justify-mainName[_ngcontent-%COMP%]{margin:0;font-family:NunitoSans-bold,sans-serif;font-size:16px;font-weight:700}.justify-title[_ngcontent-%COMP%]{font-family:NunitoSans,sans-serif;font-weight:300}.justify-subtitle[_ngcontent-%COMP%]{margin:0;font-family:NunitoSans-bold,sans-serif;font-size:14px;font-weight:700}.holder[_ngcontent-%COMP%]{position:relative;margin:0 0 30px}@media screen and (min-width:480px){.holder[_ngcontent-%COMP%]{margin-bottom:15px!important}}.subtitulo-modal[_ngcontent-%COMP%]{padding-left:0;padding-right:0}@media screen and (max-width:480px){.subtitulo-modal[_ngcontent-%COMP%]{padding-top:0!important}.justify-subtitle[_ngcontent-%COMP%]{padding-top:10px!important}.justify-text[_ngcontent-%COMP%], .pt-0[_ngcontent-%COMP%]{padding-top:0!important}}.info[_ngcontent-%COMP%]{display:inline-block;position:absolute;left:60px;top:8px}.marginTop15px[_ngcontent-%COMP%]{margin-top:15px}.avatar[_ngcontent-%COMP%]{display:inline-block}.badge[_ngcontent-%COMP%]{display:inline-block;height:20px;min-width:20px;overflow-y:hidden;padding:2px 8px;border-radius:3px;color:#fff;font-size:10px;line-height:16px;text-align:left;text-transform:uppercase;vertical-align:middle}.badge.pending[_ngcontent-%COMP%]{background-color:#efba2a}.badge.approved[_ngcontent-%COMP%], .badge.closed[_ngcontent-%COMP%]{background:#107048}.badge.rejected[_ngcontent-%COMP%], .badge.reject[_ngcontent-%COMP%], .badge.reproved[_ngcontent-%COMP%]{background:#be3e37}.badge.empty[_ngcontent-%COMP%], .badge.approving[_ngcontent-%COMP%]{background:#efba2a}@media(min-width:961px)and (max-height:620px){.demission-justify[_ngcontent-%COMP%]{max-height:50px;overflow-y:visible}}@media(min-width:961px)and (min-height:621px)and (max-height:700px){.demission-justify[_ngcontent-%COMP%]{max-height:70px;overflow-y:auto}}@media(min-width:961px)and (min-height:700px){.demission-justify[_ngcontent-%COMP%]{max-height:90px;overflow-y:auto}}po-button[_ngcontent-%COMP%]{margin-left:15px}@media screen and (max-width:480px){po-button[_ngcontent-%COMP%]{margin:0;width:100%}}@media screen and (min-width:991px){.alignRight[_ngcontent-%COMP%]{text-align:right}}[_nghost-%COMP%]     .button-delete .po-button{color:#be3e37;border-color:#be3e37;height:32px;width:120px}[_nghost-%COMP%]     .button-edit .po-button{height:32px;width:120px}@media(max-width:480px){[_nghost-%COMP%]     .actions-visualize po-button{display:block;width:50%;margin:auto}}[_nghost-%COMP%]     #dialogCloseBtn{color:#1ea2c3}@media(min-width:441px)and (max-width:480px){[_nghost-%COMP%]     #dialogCloseBtn{position:absolute;top:44px;right:25px;cursor:pointer}}@media(min-width:481px)and (max-width:960px){[_nghost-%COMP%]     .actions-visualize-others-resolutions po-button{width:50%;margin:0}}.panel-body[_ngcontent-%COMP%]{padding:0 8px}[_nghost-%COMP%]     div.card-well{padding:32px!important}.mobile-card[_ngcontent-%COMP%]{margin-left:-25px;margin-right:-25px}@media screen and (min-width:481px){.modalApprove[_ngcontent-%COMP%]     .po-modal-content{width:420px}}.modalApprove[_ngcontent-%COMP%]     .po-modal-header{display:none}.modalApprove[_ngcontent-%COMP%]     .po-modal-body{margin:20px 0 40px}.modalReprove[_ngcontent-%COMP%]     .po-modal-header{padding-bottom:0}"]}),v})();const K=["deleteModal"];let N=(()=>{var s;class v{constructor(t,n,l,S,$,X,W){this.translateService=t,this.onCallService=n,this.teamManagementService=l,this.windowUtilService=S,this.momentService=$,this.route=X,this.recurrenceService=W,this.onCallFields=[],this.employeeId=x.c.loggedUser,this.daysToConsider=[],this.employeeCard={employee:void 0,image:void 0,originComponent:""},this.labels=[],this.reasonRequired=!1}ngOnInit(){this.initialize()}getStatus(t){var n=this;return(0,c.A)(function*(){let l=t;return n.isPending(t)&&(l="approving"),yield n.translateService.getI18n("l-"+l)})()}isPending(t){return t===g.qO.StatusEnum.Pending}getConsiderDays(t){var n=this;return(0,c.A)(function*(){if(!t)return"";n.daysToConsider=t.map(l=>l.label);for(let l=0;l<n.daysToConsider.length;l++)"planned"===n.daysToConsider[l]&&(n.daysToConsider[l]=yield n.translateService.getI18n("l-planned-time")),"compensated"===n.daysToConsider[l]&&(n.daysToConsider[l]=yield n.translateService.getI18n("l-compensated")),"resting"===n.daysToConsider[l]&&(n.daysToConsider[l]=yield n.translateService.getI18n("l-resting")),"holiday"===n.daysToConsider[l]&&(n.daysToConsider[l]=yield n.translateService.getI18n("l-holiday"));return n.daysToConsider.join(", ")})()}back(){this.windowUtilService.back()}initialize(){var t=this;return(0,c.A)(function*(){t.isApprove="true"===t.route.snapshot.paramMap.get("isApprove"),t.employeeCard=t.teamManagementService.getEmployeeCard(),t.onCall=t.onCallService.getSelectedOnCall(),t.onCall?(yield t.updateOnCallHistoryView(),yield t.getOnCall()):t.windowUtilService.back()})()}updateOnCallHistoryView(){var t=this;return(0,c.A)(function*(){t.onCall&&t.labels.push({id:t.onCall.id,statusLabel:t.onCall.status,status:yield t.getStatus(t.onCall.status)})})()}getOnCall(){var t=this;return(0,c.A)(function*(){t.isApprove?t.onCallFields.push({label:"l-init-d
1ate",value:t.momentService.getInstance(t.onCall.initDate).utc().format("L"),class:"po-sm-6 po-md-3"},{label:"l-end-date",value:t.momentService.getInstance(t.onCall.endDate).utc().format("L"),class:"po-sm-6 po-md-3"},{label:"l-initial-hour",value:M.rL.getHoursByMilliseconds(6e4*t.onCall.initHour),class:"po-sm-6 po-md-3"},{label:"l-final-hour",value:M.rL.getHoursByMilliseconds(6e4*t.onCall.endHour),class:"po-sm-6 po-md-3"},{label:"l-recurrence",value:yield t.recurrenceService.getRecurrence(t.onCall.recurrence,t.onCall.initDate),class:"po-sm-6"},{label:"l-days-to-consider",value:yield t.getConsiderDays(t.onCall.considerDays),class:"po-sm-6"},{label:"l-justification",value:t.onCall.justification,class:"po-sm-6 po-md-3"},{label:"l-collaborator",value:t.onCall.requesterName,class:"po-sm-6 po-md-3"},{label:"l-on-call-justify-label",value:t.onCall.justification,class:"po-sm-6"},{label:"l-status",value:yield t.getStatus(t.onCall.status),class:"po-sm-6 po-md-3"}):(t.onCallFields.push({label:"l-init-date",value:t.momentService.getInstance(t.onCall.initDate).utc().format("L"),class:"po-sm-6 po-md-3"},{label:"l-end-date",value:t.momentService.getInstance(t.onCall.endDate).utc().format("L"),class:"po-sm-6 po-md-3"},{label:"l-initial-hour",value:M.rL.getHoursByMilliseconds(6e4*t.onCall.initHour),class:"po-sm-6 po-md-3"},{label:"l-final-hour",value:M.rL.getHoursByMilliseconds(6e4*t.onCall.endHour),class:"po-sm-6 po-md-3"},{label:"l-recurrence",value:yield t.recurrenceService.getRecurrence(t.onCall.recurrence,t.onCall.initDate),class:"po-sm-6"},{label:"l-days-to-consider",value:yield t.getConsiderDays(t.onCall.considerDays),class:"po-sm-6"},{label:"l-absence-type-justify",value:t.onCall.justification,class:"po-sm-6"},{label:"l-collaborator",value:t.onCall.requesterName,class:"po-sm-6 po-md-3"},{label:"l-requisition-responsible",value:t.onCall.responsibleName,class:"po-sm-6 po-md-3"},{label:"l-status",value:yield t.getStatus(t.onCall.status),class:"po-sm-6 po-md-3"}),t.onCall.status===g.qO.StatusEnum.Reproved&&t.onCallFields.push({label:"l-on-call-reprove-justify-label",value:t.onCall.reproveJustification,class:"po-sm-6"}))})()}checkIfDecodeIdUser(t){let n=O.Ay.checkIfDecode(t);return null==n?void 0:n.slice(2)}}return(s=v).\u0275fac=function(t){return new(t||s)(e.rXU(o.F),e.rXU(u.j),e.rXU(_.A),e.rXU(r.i),e.rXU(C.R),e.rXU(a.nX),e.rXU(p.K))},s.\u0275cmp=e.VBU({type:s,selectors:[["app-visualize"]],viewQuery:function(t,n){if(1&t&&e.GBs(K,5),2&t){let l;e.mGM(l=e.lsd())&&(n.deleteModal=l.first)}},standalone:!1,decls:5,vars:10,consts:[[1,"on-call"],[1,"po-row"],[1,"po-sm-12","po-md-12","po-lg-12","po-xl-12"],["backIsVisible","true",3,"pageTitle"],[3,"back","cardTitle","employeeImage","name","matricula","fields","status","isApprove","onCall","canEdit"]],template:function(t,n){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.nrm(3,"app-page-header",3),e.k0s()(),e.j41(4,"app-view-details",4),e.bIt("back",function(){return n.back()}),e.k0s()()),2&t&&(e.R7$(3),e.Y8G("pageTitle",n.isApprove?"l-approvals":"l-call-request-details-title"),e.R7$(),e.Y8G("cardTitle","l-on-call-requisition")("employeeImage",null==n.employeeCard?null:n.employeeCard.image)("name",null==n.onCall?null:n.onCall.name)("matricula",n.checkIfDecodeIdUser(null==n.onCall?null:n.onCall.idName))("fields",n.onCallFields)("status",null==n.onCall?null:n.onCall.status)("isApprove",n.isApprove)("onCall",n.onCall)("canEdit",!1))},dependencies:[m.y,G],styles:[".on-call-label[_ngcontent-%COMP%]{padding-top:15px;padding-left:1px}.period-label[_ngcontent-%COMP%]{padding-left:8px}.latest-requests[_ngcontent-%COMP%]{top:6px;display:inline-block;padding-bottom:8px;margin-left:-7px}@media screen and (max-width:491px){.latest-requests[_ngcontent-%COMP%]{padding-top:16px}}.on-call-history-header[_ngcontent-%COMP%]{font-weight:700;font-size:16px;color:#2b3639}.historic-value[_ngcontent-%COMP%]{float:right;font-weight:700;color:#2b3639}.historic-label[_ngcontent-%COMP%]{font-weight:700;color:#4a5c60;text-align:left}.margin-history[_ngcontent-%COMP%]{margin-top:-30px}.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:14px;font-weight:700;line-height:16px;text-align:left;text-transform:uppercase;vertical-align:middle}.timeline-status-approved[_ngcontent-%COMP%]{background-color:#00bc82;display:flex;align-items:center;justify-items:center;float:right}.timeline-status-reproved[_ngcontent-%COMP%]{background-color:#ca3f3f;display:flex;align-items:center;justify-items:center;float:right}.card-well[_ngcontent-%COMP%]{box-shadow:0 2px 8px #e3e6f1;border-radius:6px;padding:32px;margin-bottom:8px;position:relative;background:#fff}.space[_ngcontent-%COMP%]{margin-bottom:180px}.next-records[_ngcontent-%COMP%]{background-color:transparent;text-align:center;font-size:16px;font-weight:700;line-height:3;color:#00445b;padding-bottom:20px;cursor:pointer}[_nghost-%COMP%]     .mat-expansion-indicator:after{padding:5px;margin-top:-9px}.mat-expansion-panel[_ngcontent-%COMP%]{box-shadow:0 2px 8px #e3e6f1!important;border-radius:6px;position:relative;background:#fff;display:flow-root;padding:0;margin-bottom:16px}.historic-content[_ngcontent-%COMP%]{margin-right:2px;padding:0 24px}@media(max-width:425px){.historic-content[_ngcontent-%COMP%]{padding:0 16px}}.requested-title[_ngcontent-%COMP%]{margin:0;padding-left:8px;color:#fff;display:inline}.requested-value[_ngcontent-%COMP%]{color:#fff;font-weight:700}.requested-label[_ngcontent-%COMP%]{color:#fff;opacity:.7}.requested-title[_ngcontent-%COMP%]{margin-top:0;color:#fff}.to-request-value[_ngcontent-%COMP%]{color:#2b3639;font-weight:700}.to-request-label[_ngcontent-%COMP%]{color:#4a5c60}.dropdown[_ngcontent-%COMP%]{float:right}.dropdown-menu-itens[_ngcontent-%COMP%]{cursor:pointer!important;text-align:left;font-weight:400;background-color:#fff;line-height:44px;width:100%;padding-left:16px;margin-top:-4px;border-radius:3px}.dropdown-menu-itens[_ngcontent-%COMP%]:hover{background-color:#f0f8ff}.dropdown-menu[_ngcontent-%COMP%]{top:100%;min-width:100px;left:auto!important}.see-more[_ngcontent-%COMP%]{color:#fff;font-size:20px}[_nghost-%COMP%]     .avatar-small{height:42px;width:42px}.card-employee[_ngcontent-%COMP%]{padding-left:0}.aboutEmployee[_ngcontent-%COMP%]{padding-left:55px}@media screen and (max-width:480px){[_nghost-%COMP%]     .on-call-holder{width:100%;padding:8px}}[_nghost-%COMP%]     .on-call-holder .po-button{border-color:#fff;color:#fff;background-color:transparent}@media screen and (max-width:480px){[_nghost-%COMP%]     .on-call-holder .po-button{float:right}}.historic-actions[_ngcontent-%COMP%]{display:inline-block;padding-top:24px;padding-right:16px}@media screen and (max-width:480px){.historic-actions[_ngcontent-%COMP%]{padding-right:8px;padding-left:8px}}.historic-button[_ngcontent-%COMP%]{float:right}.flipflop[_ngcontent-%COMP%]{margin-top:10px}.on-call[_ngcontent-%COMP%]{position:relative}@media screen and (min-width:992px)and (max-width:1199px){.on-call-holder[_ngcontent-%COMP%]{position:absolute;bottom:22px;right:15px}}@media screen and (min-width:1200px){.on-call-holder[_ngcontent-%COMP%]{position:absolute;bottom:22px;right:15px}}@media(max-width:960px)and (min-width:481px){.on-call-holder[_ngcontent-%COMP%]{position:absolute;bottom:22px;right:15px}}-link[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]     .on-call-history-header .mat-content{align-items:center;align-content:center}@media(max-width:425px){[_nghost-%COMP%]     .on-call-history-header .mat-content{font-size:14px}}.type1[_ngcontent-%COMP%]{display:inline-block;width:14px;
1height:14px;background:#107048}.type2[_ngcontent-%COMP%]{display:inline-block;width:14px;height:14px;background:#be3e37}.circle-base[_ngcontent-%COMP%]{border-radius:50%}.historic-label-title[_ngcontent-%COMP%]{padding-left:7px;vertical-align:text-bottom}.page-margin[_ngcontent-%COMP%]{margin:0 40px 40px}.center[_ngcontent-%COMP%]{margin:0 auto}.load-more-arrow[_ngcontent-%COMP%]{color:#00445b;font-size:23px}.pointer[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:50%;background-color:#9da7a9;margin-left:10px}.activePointer[_ngcontent-%COMP%]{background-color:#00445b}.mobile-pointer[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:15px}.request-button[_ngcontent-%COMP%]{margin-top:auto!important;margin-bottom:auto!important}@media(min-width:768px){.on-call[_ngcontent-%COMP%]{padding:0 40px!important}}@media(max-width:870px){.on-call-label[_ngcontent-%COMP%]{padding-left:8px}}@media(max-width:460px){.ocurrence-line[_ngcontent-%COMP%]{display:inline-block!important;width:100%}.ocurrence-value[_ngcontent-%COMP%]{padding-right:0;text-align:right;width:66.6%}}.po-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:20px}@media screen and (max-width:480px){[_nghost-%COMP%]     .dialog .overlay{padding:15px}}@media screen and (min-width:961px){[_nghost-%COMP%]     .dialog .overlay{padding:0 35px 15px}}@media screen and (min-width:768px){[_nghost-%COMP%]     .dialog button{width:10rem}}@media screen and (min-width:961px){[_nghost-%COMP%]     .dialog .max-width-page-title{padding-left:0}}@media screen and (max-width:480px){[_nghost-%COMP%]     .dialog .thf-button{display:block;width:100%}}.justify-mainName[_ngcontent-%COMP%]{margin:0;font-family:NunitoSans-bold,sans-serif;font-size:16px;font-weight:700}.justify-title[_ngcontent-%COMP%]{font-family:NunitoSans,sans-serif;font-weight:300}.justify-subtitle[_ngcontent-%COMP%]{margin:0;font-family:NunitoSans-bold,sans-serif;font-size:14px;font-weight:700}.holder[_ngcontent-%COMP%]{position:relative;margin:0 0 30px}@media screen and (min-width:480px){.holder[_ngcontent-%COMP%]{margin-bottom:15px!important}}.subtitulo-modal[_ngcontent-%COMP%]{padding-left:0;padding-right:0}@media screen and (max-width:480px){.subtitulo-modal[_ngcontent-%COMP%]{padding-top:0!important}.justify-subtitle[_ngcontent-%COMP%]{padding-top:10px!important}.justify-text[_ngcontent-%COMP%], .pt-0[_ngcontent-%COMP%]{padding-top:0!important}}.info[_ngcontent-%COMP%]{display:inline-block;position:absolute;left:60px;top:8px}.marginTop15px[_ngcontent-%COMP%]{margin-top:15px}.avatar[_ngcontent-%COMP%]{display:inline-block}.badge[_ngcontent-%COMP%]{display:inline-block;height:20px;min-width:20px;overflow-y:hidden;padding:2px 8px;border-radius:3px;color:#fff;font-size:10px;line-height:16px;text-align:left;text-transform:uppercase;vertical-align:middle}.badge.pending[_ngcontent-%COMP%]{background-color:#efba2a}.badge.approved[_ngcontent-%COMP%], .badge.closed[_ngcontent-%COMP%]{background:#107048}.badge.rejected[_ngcontent-%COMP%], .badge.reject[_ngcontent-%COMP%], .badge.reproved[_ngcontent-%COMP%]{background:#be3e37}.badge.empty[_ngcontent-%COMP%], .badge.approving[_ngcontent-%COMP%]{background:#efba2a}@media(min-width:961px)and (max-height:620px){.demission-justify[_ngcontent-%COMP%]{max-height:50px;overflow-y:visible}}@media(min-width:961px)and (min-height:621px)and (max-height:700px){.demission-justify[_ngcontent-%COMP%]{max-height:70px;overflow-y:auto}}@media(min-width:961px)and (min-height:700px){.demission-justify[_ngcontent-%COMP%]{max-height:90px;overflow-y:auto}}po-button[_ngcontent-%COMP%]{margin-left:15px}@media screen and (max-width:480px){po-button[_ngcontent-%COMP%]{margin:0;width:100%}}@media screen and (min-width:991px){.alignRight[_ngcontent-%COMP%]{text-align:right}}[_nghost-%COMP%]     .button-delete .po-button{color:#be3e37;border-color:#be3e37;height:32px;width:120px}[_nghost-%COMP%]     .button-edit .po-button{height:32px;width:120px}@media(max-width:480px){[_nghost-%COMP%]     .actions-visualize po-button{display:block;width:50%;margin:auto}}[_nghost-%COMP%]     #dialogCloseBtn{color:#1ea2c3}@media(min-width:441px)and (max-width:480px){[_nghost-%COMP%]     #dialogCloseBtn{position:absolute;top:44px;right:25px;cursor:pointer}}@media(min-width:481px)and (max-width:960px){[_nghost-%COMP%]     .actions-visualize-others-resolutions po-button{width:50%;margin:0}}.panel-body[_ngcontent-%COMP%]{padding:0 8px}[_nghost-%COMP%]     div.card-well{padding:32px!important}.mobile-card[_ngcontent-%COMP%]{margin-left:-25px;margin-right:-25px}"]}),v})()}
1,39299(P,b,i){i.d(b,{j:()=>M});var c=i(52840),O=i(2105),x=i(31806),g=i(46296);let M=(()=>{var C;class _{constructor(p){this.genericService=p}getHistory(p,e,o){return new Promise(r=>{const a="timesheet/onCall/".concat(x.Ay.checkIfEncode(p)),m=[];this.genericService.parseParams(m,"page",e),this.genericService.parseParams(m,"pageSize",o),this.genericService.search(a,m).then(h=>{const f=new c.O(null==h?void 0:h.items);f.actualPage=e,f.hasMoreRecords=null==h?void 0:h.hasNext,r(f)})})}getOnCall(p,e){return new Promise(o=>{const r="timesheet/onCall/".concat(x.Ay.checkIfEncode(p)),a=[];this.genericService.parseParams(a,"id",e),this.genericService.parseParams(a,"page",1),this.genericService.parseParams(a,"pageSize",1),this.genericService.search(r,a).then(m=>{o(m.items[0])})})}requestOnCall(p,e){const o="timesheet/onCall/".concat(p);return this.genericService.post(o,e,!0)}onCallBatchRequest(p){return this.genericService.post("timesheet/onCall/batch",p,!0)}editOnCall(p,e){const o="team/onCall/".concat(p,"/");return this.genericService.put(o,e,!0)}getSelectedOnCall(){return _.onCall}setOnCall(p){_.onCall=p}}return(C=_).onCall=null,C.\u0275fac=function(p){return new(p||C)(g.KVO(O.X))},C.\u0275prov=g.jDH({token:C,factory:C.\u0275fac,providedIn:"root"}),_})()},25683(P,b,i){i.d(b,{K:()=>_});var c=i(73308),O=i(2268),x=i(46296),g=i(61288),M=i(85830),C=i(14424);let _=(()=>{var u;class p{constructor(o,r,a){this.translateService=o,this.sufixUtil=r,this.dayUtil=a}getRecurrence(o,r){var a=this;return(0,c.A)(function*(){if((r=O.rL.getDateUTCFormat(new Date(r))).setDate(r.getUTCDate()),!o)return yield a.translateService.getI18n("l-on-call-recurrence-message-doesnt-repeat");if(o.repetitions>0)switch(o.repetitionType){case"day":return yield a.getRecurrenceDay(o);case"month":return yield a.getRecurrenceMonth(o,r);case"week":return yield a.getRecurrenceWeek(o);default:return""}})()}getRecurrenceDay(o){var r=this;return(0,c.A)(function*(){let a;return 1===o.repetitions&&(o.maxOcurrences>1||!o.maxOcurrences)?a=yield r.translateService.getI18n("l-on-call-recurrence-message-all-days"):o.repetitions>1&&(a=yield r.translateService.getI18n("l-on-call-recurrence-message-days",{repetition:o.repetitions})),(1===o.maxOcurrences&&1===o.repetitions||o.repetitions>1&&1===o.maxOcurrences)&&(a=yield r.translateService.getI18n("l-on-call-recurrence-message-day")),a})()}getRecurrenceWeek(o){var r=this;return(0,c.A)(function*(){let a;if(o.weekDays.length>0){a=o.repetitions>1?yield r.translateService.getI18n("l-on-call-recurrence-message-week-repetition",{repetition:o.repetitions}):yield r.translateService.getI18n("l-on-call-recurrence-message-week2"),a+=" (";for(let f=0;f<(null===(m=o.weekDays)||void 0===m?void 0:m.length);f++){var m;const y=o.weekDays[f];f>=o.weekDays.length-1?a+=(yield r.translateService.getI18n("l-"+y.label)):(a+=(yield r.translateService.getI18n("l-"+y.label)),a+=", ")}a+=")"}return a})()}getRecurrenceMonth(o,r){var a=this;return(0,c.A)(function*(){let m;if(1===o.repetitions?m=(yield a.translateService.getI18n("l-monthly"))+", ":o.repetitions>1&&(m=(yield a.translateService.getI18n("l-on-each"))+" "+o.repetitions+" ",m+=(yield a.translateService.getI18n("l-months"))+", "),0===o.monthlyRule){const h=Math.ceil(r.getDate()/7);m+=(yield a.translateService.getI18n("l-on-call-week-day-monthly",{ordinal:h,sufix:a.sufixUtil.getSufix(h,r.getDay()),weekDay:yield a.dayUtil.getWeekDayLabel(r.getDay())})).toLowerCase()}else 1===o.monthlyRule&&(m+=(yield a.translateService.getI18n("l-on-call-month-day-monthly",{monthDay:r.getDate()})).toLowerCase());return m})()}}return(u=p).\u0275fac=function(o){return new(o||u)(x.KVO(g.F),x.KVO(M.y),x.KVO(C.b))},u.\u0275prov=x.jDH({token:u,factory:u.\u0275fac,providedIn:"root"}),p})()}}]);

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.