mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
1 line
27 KiB
JavaScript
1 line
27 KiB
JavaScript
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[5895],{85895:function(e,t,n){"use strict";n.r(t),n.d(t,{EditEventToApprovePageModule:function(){return w}});var i=n(38583),o=n(3679),a=n(35957),s=n(39895),r=n(17071),c=n(37716);const d=[{path:"",component:r.I}];let l=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.oAB({type:e}),e.\u0275inj=c.cJS({imports:[[s.Bz.forChild(d)],s.Bz]}),e})();var p=n(72458),g=n(25653),u=n(51095),h=n(67441),f=n(94881),v=n(43220),m=n(49983),Z=n(22238);let w=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.oAB({type:e}),e.\u0275inj=c.cJS({imports:[[i.ez,o.u5,a.Pc,l,v.FA,m.c,p.XK,g.EC,g.Yy,g.K,f._W,h.LD,u.ot,o.UX,Z.Is]]}),e})()},17071:function(e,t,n){"use strict";n.d(t,{I:function(){return G}});var i=n(64762),o=n(37716),a=n(3679),s=n(16738),r=n(4528),c=n(44940),d=n(35957),l=n(80106),p=n(20985),g=n(28621),u=n(84465),h=n(38583),f=n(98295),v=n(67441),m=n(72458),Z=n(49983),w=n(25653),A=n(43220);const x=["picker"],P=["fim"],k=["inicio"],D=["picker1"];function T(e,t){1&e&&(o.TgZ(0,"div"),o._uU(1," Campo obrigat\xf3rio. "),o.qZA())}function C(e,t){1&e&&(o.TgZ(0,"div"),o._uU(1," O campo deve ter pelo menos 4 caracteres. "),o.qZA())}function I(e,t){if(1&e&&(o.TgZ(0,"div",64),o.YNc(1,T,2,0,"div",10),o.YNc(2,C,2,0,"div",10),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngIf",null==e.Form.get("Subject").errors?null:e.Form.get("Subject").errors.required),o.xp6(1),o.Q6J("ngIf",null==e.Form.get("Subject").errors?null:e.Form.get("Subject").errors.minlength)}}function M(e,t){if(1&e&&(o.TgZ(0,"div"),o.YNc(1,I,3,2,"div",63),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",e.Form.get("Subject").invalid)}}function q(e,t){1&e&&(o.TgZ(0,"div"),o._uU(1," Campo obrigat\xf3rio. "),o.qZA())}function b(e,t){if(1&e&&(o.TgZ(0,"div",64),o.YNc(1,q,2,0,"div",10),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngIf",null==e.Form.get("Location").errors?null:e.Form.get("Location").errors.required)}}function F(e,t){if(1&e&&(o.TgZ(0,"div"),o.YNc(1,b,2,1,"div",63),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",e.Form.get("Location").invalid)}}function S(e,t){1&e&&(o.TgZ(0,"div"),o._uU(1," Adicionar participant. "),o.qZA())}function _(e,t){if(1&e&&(o.TgZ(0,"div",64),o.YNc(1,S,2,0,"div",10),o.qZA()),2&e){const e=o.oxw(2);o.xp6(1),o.Q6J("ngIf",null==e.Form.get("participantes").errors?null:e.Form.get("participantes").errors.required)}}function O(e,t){if(1&e&&(o.TgZ(0,"div"),o.YNc(1,_,2,1,"div",63),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("ngIf",e.Form.get("participantes").invalid)}}function y(e,t){if(1&e&&(o.TgZ(0,"mat-option",65),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.s9C("value",e.Code),o.xp6(1),o.hij(" ",e.Description," ")}}function N(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",11),o.TgZ(1,"div",66),o.TgZ(2,"div",13),o._UZ(3,"ion-icon",17),o.qZA(),o.TgZ(4,"div",67),o.TgZ(5,"mat-form-field",68),o.TgZ(6,"input",69),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().eventProcess.workflowInstanceDataFields.LastOccurrence=t}),o.qZA(),o._UZ(7,"mat-datepicker-toggle",70),o._UZ(8,"ngx-mat-datetime-picker",29,71),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.MAs(9),t=o.oxw();o.xp6(6),o.Q6J("ngxMatDatetimePicker",e)("ngModel",t.eventProcess.workflowInstanceDataFields.LastOccurrence)("disabled",t.disabled),o.xp6(1),o.Q6J("for",e),o.xp6(1),o.Q6J("showSpinners",t.showSpinners)("showSeconds",t.showSeconds)("stepHour",t.stepHour)("stepMinute",t.stepMinute)("stepSecond",t.stepSecond)("touchUi",t.touchUi)}}function J(e,t){1&e&&(o.TgZ(0,"ion-label",72),o._uU(1,"Adicionar intervenientes*"),o.qZA())}function U(e,t){if(1&e&&(o.TgZ(0,"ion-label"),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(e.Name)}}function E(e,t){1&e&&(o.TgZ(0,"ion-label",72),o._uU(1,"Adicionar intervenientes"),o.qZA())}function Y(e,t){if(1&e&&(o.TgZ(0,"ion-label"),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(e.Name)}}function Q(e,t){1&e&&(o.TgZ(0,"span",82),o._uU(1," Correspondencia "),o.qZA())}function L(e,t){1&e&&(o.TgZ(0,"span",82),o._uU(1," AccoesPresidenciais "),o.qZA())}function j(e,t){1&e&&(o.TgZ(0,"span",82),o._uU(1," ArquivoDespachoElect "),o.qZA())}function R(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"ion-label",74),o.TgZ(1,"p",75),o.TgZ(2,"span",76),o._uU(3),o.qZA(),o.YNc(4,Q,2,0,"span",77),o.YNc(5,L,2,0,"span",77),o.YNc(6,j,2,0,"span",77),o.TgZ(7,"span",78),o.NdJ("click",function(){o.CHM(e);const t=o.oxw(),n=t.$implicit,i=t.index;return o.oxw().deleteAttachment(n,i)}),o._UZ(8,"ion-icon",79),o.qZA(),o.qZA(),o.TgZ(9,"p"),o.TgZ(10,"span",80),o._uU(11),o.qZA(),o.TgZ(12,"span",81),o._uU(13),o.ALo(14,"date"),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw().$implicit;o.xp6(3),o.Oqu(e.SourceName),o.xp6(1),o.Q6J("ngIf",8==e.ApplicationId),o.xp6(1),o.Q6J("ngIf",386==e.ApplicationId),o.xp6(1),o.Q6J("ngIf",361==e.ApplicationId),o.xp6(5),o.Oqu(e.Stakeholders),o.xp6(2),o.hij(" ",o.xi3(14,6,e.CreateDate,"dd-MM-yyyy HH:mm")," ")}}function H(e,t){if(1&e&&(o.TgZ(0,"ion-item",57),o.YNc(1,R,15,9,"ion-label",73),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Q6J("ngIf","delete"!=e.action)}}let G=(()=>{class e{constructor(e,t,n,i,r,c){this.modalController=e,this.eventsService=t,this.alertController=n,this.attachmentsService=i,this.processes=r,this.toastService=c,this.disabled=!1,this.showSpinners=!0,this.showSeconds=!1,this.touchUi=!1,this.enableMeridian=!1,this.minDate=(new Date).toISOString().slice(0,10),this.endMinDate=new Date((new Date).getTime()+9e5),this.stepHour=1,this.stepMinute=5,this.stepSecond=5,this.dateControlStart=new a.NI(s("DD MM YYYY hh")),this.dateControlEnd=new a.NI(s("DD MM YYYY hh")),this.showLoader=!1,this.loadedAttachments=[],this.eventProcess={serialNumber:"",taskStartDate:"",workflowInstanceDataFields:{Body:"",OccurrenceType:"",LastOccurrence:"",IsRecurring:!1,ParticipantsList:[],Agenda:"",EndDate:"",Location:"",Subject:"",InstanceId:"",EventType:"",StartDate:"",MDEmail:"",MDName:"",IsAllDayEvent:"",Message:""}},this.show=!1,this.adding="intervenient",this.showAttendees=!1,this.validateFrom=!1,this.openAttendeesComponent=new o.vpe,this.clearContact=new o.vpe,this.setIntervenient=new o.vpe,this.setIntervenientCC=new o.vpe,this.closeComponent=new o.vpe,this.closeEventToApprove=new o.vpe,this.isEventEdited=!1}get dateStart(){return this.dateControlStart.value}get dateEnd(){return this.dateControlEnd.value}ngOnInit(){console.log("EDITAR"),this.restoreTemporaryData()?this.setOtherData():this.getTask(),this.getRecurrenceTypes()}getTask(){return(0,i.mG)(this,void 0,void 0,function*(){this.processes.GetTask(this.serialNumber).subscribe(e=>{this.eventProcess=e,this.restoreDatepickerData();let t=this.eventProcess.workflowInstanceDataFields.Body.replace(/<[^>]+>/g,"");this.eventProcess.workflowInstanceDataFields.Body=t,this.InstanceId=this.eventProcess.workflowInstanceDataFields.InstanceId,this.getAttachments(),this.setOtherData(),this.saveTemporaryData()})})}getRecurrenceTypes(){this.eventsService.getRecurrenceTypes().subscribe(e=>{console.log(e),this.recurringTypes=e})}onSelectedRecurringChanged(e){console.log(e),e.length>1&&(console.log(e.filter(e=>"-1"!=e)),this.eventProcess.workflowInstanceDataFields.OccurrenceType=e.filter(e=>"-1"!=e)),0==e.length&&(this.eventProcess.workflowInstanceDataFields.OccurrenceType="-1")}setOtherData(){this.eventProcess.workflowInstanceDataFields.ParticipantsList&&this.eventProcess.workflowInstanceDataFields.ParticipantsList.forEach(e=>{e.IsRequired?this.taskParticipants.push(e):this.taskParticipantsCc.push(e)}),this.taskParticipants=(0,c.removeDuplicate)(this.taskParticipants),this.taskParticipantsCc=(0,c.removeDuplicate)(this.taskParticipantsCc),this.isRecurring=0==this.eventProcess.workflowInstanceDataFields.IsRecurring?"N\xe3o se repete":"Repete",this.InstanceId=this.eventProcess.workflowInstanceDataFields.InstanceId,this.getAttachments()}close(){window["temp.path:/shared/agenda/edit-event-to-approve.ts"]={},this.closeEventToApprove.emit()}runValidation(){this.validateFrom=!0}injectValidation(){this.Form=new a.cw({Subject:new a.NI(this.eventProcess.workflowInstanceDataFields.Subject,[a.kI.required]),Location:new a.NI(this.eventProcess.workflowInstanceDataFields.Location,[a.kI.required]),dateStart:new a.NI(this.dateStart,[a.kI.required]),dateEnd:new a.NI(this.dateEnd,[a.kI.required]),participantes:new a.NI(this.taskParticipants,[])})}save(){return(0,i.mG)(this,void 0,void 0,function*(){if(this.injectValidation(),this.runValidation(),this.Form.invalid)return!1;this.getDatepickerData(),this.taskParticipantsCc.forEach(e=>{e.IsRequired=!1}),this.eventProcess.workflowInstanceDataFields.ParticipantsList=this.taskParticipants.concat(this.taskParticipantsCc),this.eventProcess.workflowInstanceDataFields.ParticipantsList.forEach(e=>{e.hasOwnProperty("$type")&&delete e.$type});const e={SerialNumber:this.eventProcess.serialNumber,Body:this.eventProcess.workflowInstanceDataFields.Body,Location:this.eventProcess.workflowInstanceDataFields.Location,Subject:this.eventProcess.workflowInstanceDataFields.Subject,StartDate:this.eventProcess.workflowInstanceDataFields.StartDate,EndDate:this.eventProcess.workflowInstanceDataFields.EndDate,ReviewUserComment:"",MDName:this.eventProcess.workflowInstanceDataFields.MDName,MDEmail:this.eventProcess.workflowInstanceDataFields.MDEmail,IsAllDayEvent:this.eventProcess.workflowInstanceDataFields.IsAllDayEvent,Status:null,EventType:this.eventProcess.workflowInstanceDataFields.EventType,IsRecurring:this.eventProcess.workflowInstanceDataFields.IsRecurring,Message:this.eventProcess.workflowInstanceDataFields.Message,EventRecurrence:{Type:this.eventProcess.workflowInstanceDataFields.OccurrenceType,LastOccurrence:this.eventProcess.workflowInstanceDataFields.LastOccurrence},ParticipantsList:this.eventProcess.workflowInstanceDataFields.ParticipantsList};try{yield this.eventsService.postEventToApproveEdit(e).toPromise(),this.close(),this.toastService.successMessage("Evento editado")}catch(t){this.toastService.badRequest("Evento n\xe3o editado")}this.loadedAttachments.forEach(e=>{"add"==e.action?(delete e.action,this.attachmentsService.setEventAttachmentById(e).subscribe(()=>{},e=>{this.toastService.badRequest()})):"delete"==e.action&&(delete e.action,this.attachmentsService.deleteEventAttachmentById(e.Id).subscribe(e=>{},e=>{this.toastService.badRequest()}))})})}dynamicSetIntervenient({taskParticipants:e,taskParticipantsCc:t}){this.taskParticipants=(0,c.removeDuplicate)(e),this.taskParticipantsCc=(0,c.removeDuplicate)(t)}addParticipants(){return(0,i.mG)(this,void 0,void 0,function*(){this.openAttendeesComponent.emit({type:"intervenient"}),this.clearContact.emit()})}addParticipantsCC(){return(0,i.mG)(this,void 0,void 0,function*(){this.openAttendeesComponent.emit({type:"CC"}),this.clearContact.emit()})}saveTemporaryData(){this.getDatepickerData(),window["temp.path:/shared/agenda/edit-event-to-approve.ts"]={eventProcess:this.eventProcess}}restoreTemporaryData(){const e=window["temp.path:/shared/agenda/edit-event-to-approve.ts"];return"{}"!=JSON.stringify(e)&&null!=e&&(this.eventProcess=e.eventProcess,this.restoreDatepickerData(),!0)}getAttachments(){return(0,i.mG)(this,void 0,void 0,function*(){let e=yield this.attachmentsService.getAttachmentsById(this.InstanceId).toPromise();e.forEach(e=>{e.action=!1}),this.loadedAttachments=e})}deleteAttachment(e,t){this.loadedAttachments[t].action="delete"}getDoc(){return(0,i.mG)(this,void 0,void 0,function*(){const e=yield this.modalController.create({component:r.Z,cssClass:"modal-width-100-width-background modal",componentProps:{type:"AccoesPresidenciais & ArquivoDespachoElect",showSearchInput:!0,select:!0}});yield e.present(),e.onDidDismiss().then(e=>(0,i.mG)(this,void 0,void 0,function*(){if(e){const t=e.data.selected,n={SourceTitle:t.Assunto,ParentId:this.InstanceId,Source:"1",SourceId:t.Id,ApplicationId:t.ApplicationType.toString(),Id:"",Link:"",SerialNumber:"",action:"add",CreateDate:t.Data,Data:t.Data,Description:t.DocTypeDesc,SourceName:t.Assunto,Stakeholders:t.EntidadeOrganicaNome};this.loadedAttachments.push(n),console.log("push",n)}}))})}restoreDatepickerData(){this.dateControlStart=new a.NI(s(new Date(this.eventProcess.workflowInstanceDataFields.StartDate))),this.dateControlEnd=new a.NI(s(new Date(this.eventProcess.workflowInstanceDataFields.EndDate)))}getDatepickerData(){this.eventProcess.workflowInstanceDataFields.StartDate=this.dateStart,this.eventProcess.workflowInstanceDataFields.EndDate=this.dateEnd}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(d.IN),o.Y36(l.n),o.Y36(d.Br),o.Y36(p.o),o.Y36(g.$),o.Y36(u.k))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-edit-event-to-approve"]],viewQuery:function(e,t){if(1&e&&(o.Gf(x,5),o.Gf(P,5),o.Gf(k,5),o.Gf(D,5)),2&e){let e;o.iGM(e=o.CRH())&&(t.picker=e.first),o.iGM(e=o.CRH())&&(t.fim=e.first),o.iGM(e=o.CRH())&&(t.inicio=e.first),o.iGM(e=o.CRH())&&(t.picker1=e.first)}},inputs:{saveData:"saveData",serialNumber:"serialNumber",taskParticipants:"taskParticipants",taskParticipantsCc:"taskParticipantsCc"},outputs:{openAttendeesComponent:"openAttendeesComponent",clearContact:"clearContact",setIntervenient:"setIntervenient",setIntervenientCC:"setIntervenientCC",closeComponent:"closeComponent",closeEventToApprove:"closeEventToApprove"},decls:115,vars:49,consts:[[1,"main-content","height-100","d-flex"],[1,"content","d-flex","flex-column","width-md-100","height-100"],[1,"main-header","pt-30","px-20","background-white","pb-15"],[1,"title-content"],[1,"middle"],[1,"title"],[1,"overflow-y-auto"],[1,"px-20"],[1,"ion-item-container","width-100"],["placeholder","Assunto*",3,"ngModel","ngModelChange"],[4,"ngIf"],[1,"container-div","width-100"],[1,"ion-item-class-2"],[1,"ion-icon-class"],["slot","start","src","assets/images/icons-location.svg"],[1,"ion-input-class"],["placeholder","Localiza\xe7\xe3o*",3,"ngModel","ngModelChange"],["slot","start","src","assets/images/icons-calendar.svg"],["disabled","","placeholder","Selecione agenda*","interface","action-sheet","Cancel-text","Cancelar","required","",1,"d-block","d-md-none",3,"selectedText","ngModel","ngModelChange"],["value","Oficial"],["value","Pessoal"],["appearance","none",1,"d-none","d-md-block","width-100"],["placeholder","Selecione agenda",3,"ngModel","ngModelChange"],[1,"ion-item-class-2","width-100"],[1,"ion-input-class","width-100"],["placeholder","In\xedcio","displayFormat","D MMM YYYY H:mm","minuteValues","0,15,30,45","monthShortNames","Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez","max","2025",1,"d-block","d-md-none",3,"ngModel","min","ngModelChange"],["appearance","none",1,"width-100","date-hour-picker","d-none","d-md-block"],["matInput","","placeholder","Choose a date",3,"ngxMatDatetimePicker","formControl","min","max","disabled"],["id","new-inicio","matSuffix","",3,"for"],[3,"showSpinners","showSeconds","stepHour","stepMinute","stepSecond","touchUi"],["picker1",""],["placeholder","Fim","displayFormat","D MMM YYYY H:mm","minuteValues","0,15,30,45","monthShortNames","Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez","max","2025",1,"d-none","d-md-none",3,"ngModel","min","ngModelChange"],["id","new-fim","matSuffix","",3,"for"],["fim",""],["slot","start","src","assets/images/icons-refresh.svg"],["placeholder","Selecione repeti\xe7\xe3o","value","false","interface","action-sheet","required","","appearance","none",1,"width-100","d-block"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["class","container-div width-100",4,"ngIf"],["slot","start","src","assets/images/icons-person.svg"],[1,"ion-input-class-no-height","d-flex"],[1,"list-people","flex-grow-1"],["lines","none"],["class","list-people-title",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"add-people","cursor-pointer",3,"click"],["slot","start","src","assets/images/icons-arrow-forward.svg"],[1,"container-div","d-flex","width-100"],[1,"ion-item-class-2","d-flex","width-100"],["slot","start","src","assets/images/icons-description.svg"],[1,"ion-input-class-no-height","width-100","flex-grow-1"],["placeholder","Detalhes","rows","6","cols","20",3,"ngModel","ngModelChange"],[1,"cursor-pointer","d-flex","container-div","width-100","ion-item-container-no-border",3,"click"],[1,"attach-icon"],["src","assets/images/icons-attach-doc.svg"],[1,"attach-document"],[1,"d-flex","container-div","width-100"],[1,"width-100"],["class","width-100",4,"ngFor","ngForOf"],[1,"background-whit"],[1,"buttons"],["shape","round",1,"btn-cancel","cursor-pointer",3,"click"],["shape","round",1,"btn-ok","cursor-pointer",3,"click"],["class","input-errror-message",4,"ngIf"],[1,"input-errror-message"],[3,"value"],[1,"ion-item-class-2","d-flex"],[1,"ion-input-class","flex-grow-1"],[1,"date-hour-picker","d-none","d-md-block"],["matInput","","placeholder","Choose a date",3,"ngxMatDatetimePicker","ngModel","disabled","ngModelChange"],["id","last-occurrence","matSuffix","",3,"for"],["occurrrence",""],[1,"list-people-title"],["class","width-100 d-block list",4,"ngIf"],[1,"width-100","d-block","list"],[1,"d-flex","ion-justify-content-between"],[1,"attach-title-item"],["class","app-name",4,"ngIf"],[1,"close-button","text-black","cursor-pointer",3,"click"],["src","assets/images/icons-delete-25.svg",1,"font-20"],[1,"span-left"],[1,"span-right"],[1,"app-name"]],template:function(e,t){if(1&e&&(o.TgZ(0,"ion-content"),o.TgZ(1,"div",0),o.TgZ(2,"div",1),o.TgZ(3,"div",2),o.TgZ(4,"ion-header"),o.TgZ(5,"div",3),o.TgZ(6,"div",4),o.TgZ(7,"ion-label",5),o._uU(8,"Editar evento por aprovar"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(9,"ion-item-sliding",6),o.TgZ(10,"div",7),o.TgZ(11,"div",8),o.TgZ(12,"ion-input",9),o.NdJ("ngModelChange",function(e){return t.eventProcess.workflowInstanceDataFields.Subject=e}),o.qZA(),o.qZA(),o.YNc(13,M,2,1,"div",10),o.TgZ(14,"div",11),o.TgZ(15,"div",12),o.TgZ(16,"div",13),o._UZ(17,"ion-icon",14),o.qZA(),o.TgZ(18,"div",15),o.TgZ(19,"ion-input",16),o.NdJ("ngModelChange",function(e){return t.eventProcess.workflowInstanceDataFields.Location=e}),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.YNc(20,F,2,1,"div",10),o.TgZ(21,"div",11),o.TgZ(22,"div",12),o.TgZ(23,"div",13),o._UZ(24,"ion-icon",17),o.qZA(),o.TgZ(25,"div",15),o.TgZ(26,"ion-select",18),o.NdJ("ngModelChange",function(e){return t.eventProcess.workflowInstanceDataFields.Agenda=e}),o.TgZ(27,"ion-select-option",19),o._uU(28,"Oficial"),o.qZA(),o.TgZ(29,"ion-select-option",20),o._uU(30,"Pessoal"),o.qZA(),o.qZA(),o.TgZ(31,"mat-form-field",21),o.TgZ(32,"mat-select",22),o.NdJ("ngModelChange",function(e){return t.eventProcess.workflowInstanceDataFields.Agenda=e}),o.TgZ(33,"mat-option",19),o._uU(34," Oficial "),o.qZA(),o.TgZ(35,"mat-option",20),o._uU(36," Pessoal "),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.YNc(37,O,2,1,"div",10),o.TgZ(38,"div",11),o.TgZ(39,"div",23),o.TgZ(40,"div",13),o._UZ(41,"ion-icon",17),o.qZA(),o.TgZ(42,"div",24),o.TgZ(43,"ion-datetime",25),o.NdJ("ngModelChange",function(e){return t.eventProcess.workflowInstanceDataFields.StartDate=e}),o.qZA(),o.TgZ(44,"mat-form-field",26),o._UZ(45,"input",27),o._UZ(46,"mat-datepicker-toggle",28),o._UZ(47,"ngx-mat-datetime-picker",29,30),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(49,"div",11),o.TgZ(50,"div",12),o.TgZ(51,"div",13),o._UZ(52,"ion-icon",17),o.qZA(),o.TgZ(53,"div",15),o.TgZ(54,"ion-datetime",31),o.NdJ("ngModelChange",function(e){return t.eventProcess.workflowInstanceDataFields.EndDate=e}),o.qZA(),o.TgZ(55,"mat-form-field",26),o._UZ(56,"input",27),o._UZ(57,"mat-datepicker-toggle",32),o._UZ(58,"ngx-mat-datetime-picker",29,33),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(60,"div",11),o.TgZ(61,"div",12),o.TgZ(62,"div",13),o._UZ(63,"ion-icon",34),o.qZA(),o.TgZ(64,"div",15),o.TgZ(65,"mat-form-field",35),o.TgZ(66,"mat-select",36),o.NdJ("ngModelChange",function(e){return t.eventProcess.workflowInstanceDataFields.OccurrenceType=e})("ngModelChange",function(e){return t.onSelectedRecurringChanged(e)}),o.YNc(67,y,2,2,"mat-option",37),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.YNc(68,N,10,10,"div",38),o.TgZ(69,"div",11),o.TgZ(70,"div",12),o.TgZ(71,"div",13),o._UZ(72,"ion-icon",39),o.qZA(),o.TgZ(73,"div",40),o.TgZ(74,"div",41),o.TgZ(75,"ion-item",42),o.TgZ(76,"ion-list"),o.YNc(77,J,2,0,"ion-label",43),o.YNc(78,U,2,1,"ion-label",44),o.qZA(),o.qZA(),o.qZA(),o.TgZ(79,"div",45),o.NdJ("click",function(){return t.addParticipants()}),o._UZ(80,"ion-icon",46),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(81,"div",11),o.TgZ(82,"div",12),o.TgZ(83,"div",13),o._UZ(84,"ion-icon",39),o.qZA(),o.TgZ(85,"div",40),o.TgZ(86,"div",41),o.TgZ(87,"ion-item",42),o.TgZ(88,"ion-list"),o.YNc(89,E,2,0,"ion-label",43),o.YNc(90,Y,2,1,"ion-label",44),o.qZA(),o.qZA(),o.qZA(),o.TgZ(91,"div",45),o.NdJ("click",function(){return t.addParticipantsCC()}),o._UZ(92,"ion-icon",46),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(93,"div",47),o.TgZ(94,"div",48),o.TgZ(95,"div",13),o._UZ(96,"ion-icon",49),o.qZA(),o.TgZ(97,"div",50),o.TgZ(98,"ion-textarea",51),o.NdJ("ngModelChange",function(e){return t.eventProcess.workflowInstanceDataFields.Body=e}),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(99,"div",52),o.NdJ("click",function(){return t.getDoc()}),o.TgZ(100,"ion-label"),o.TgZ(101,"div",53),o._UZ(102,"ion-icon",54),o.qZA(),o.TgZ(103,"div",55),o.TgZ(104,"ion-label"),o._uU(105,"Adicionar documentos"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(106,"div",56),o.TgZ(107,"ion-list",57),o.YNc(108,H,2,1,"ion-item",58),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(109,"ion-footer",59),o.TgZ(110,"div",60),o.TgZ(111,"button",61),o.NdJ("click",function(){return t.close()}),o._uU(112,"Cancelar"),o.qZA(),o.TgZ(113,"button",62),o.NdJ("click",function(){return t.save()}),o._uU(114,"Gravar"),o.qZA(),o.qZA(),o.qZA()),2&e){const e=o.MAs(48),n=o.MAs(59);let i,a;o.xp6(11),o.ekj("input-error",(null==t.Form||null==(i=t.Form.get("Subject"))?null:i.invalid)&&t.validateFrom),o.xp6(1),o.Q6J("ngModel",t.eventProcess.workflowInstanceDataFields.Subject),o.xp6(1),o.Q6J("ngIf",t.Form&&t.validateFrom),o.xp6(5),o.ekj("input-error",(null==t.Form||null==(a=t.Form.get("Location"))?null:a.invalid)&&t.validateFrom),o.xp6(1),o.Q6J("ngModel",t.eventProcess.workflowInstanceDataFields.Location),o.xp6(1),o.Q6J("ngIf",t.Form&&t.validateFrom),o.xp6(6),o.s9C("selectedText",t.eventProcess.workflowInstanceDataFields.Agenda),o.Q6J("ngModel",t.eventProcess.workflowInstanceDataFields.Agenda),o.xp6(6),o.Q6J("ngModel",t.eventProcess.workflowInstanceDataFields.Agenda),o.xp6(5),o.Q6J("ngIf",t.Form&&t.validateFrom),o.xp6(6),o.s9C("min",t.minDate),o.Q6J("ngModel",t.eventProcess.workflowInstanceDataFields.StartDate),o.xp6(2),o.Q6J("ngxMatDatetimePicker",e)("formControl",t.dateControlStart)("min",t.minDate)("max",t.maxDate)("disabled",t.disabled),o.xp6(1),o.Q6J("for",e),o.xp6(1),o.Q6J("showSpinners",t.showSpinners)("showSeconds",t.showSeconds)("stepHour",t.stepHour)("stepMinute",t.stepMinute)("stepSecond",t.stepSecond)("touchUi",t.touchUi),o.xp6(7),o.s9C("min",t.minDate),o.Q6J("ngModel",t.eventProcess.workflowInstanceDataFields.EndDate),o.xp6(2),o.Q6J("ngxMatDatetimePicker",n)("formControl",t.dateControlEnd)("min",t.minDate)("max",t.maxDate)("disabled",t.disabled),o.xp6(1),o.Q6J("for",n),o.xp6(1),o.Q6J("showSpinners",t.showSpinners)("showSeconds",t.showSeconds)("stepHour",t.stepHour)("stepMinute",t.stepMinute)("stepSecond",t.stepSecond)("touchUi",t.touchUi),o.xp6(8),o.Q6J("ngModel",t.eventProcess.workflowInstanceDataFields.OccurrenceType),o.xp6(1),o.Q6J("ngForOf",t.recurringTypes),o.xp6(1),o.Q6J("ngIf","-1"!=t.eventProcess.workflowInstanceDataFields.OccurrenceType),o.xp6(9),o.Q6J("ngIf",(null==t.taskParticipants?null:t.taskParticipants.length)<1),o.xp6(1),o.Q6J("ngForOf",t.taskParticipants),o.xp6(11),o.Q6J("ngIf",(null==t.taskParticipantsCc?null:t.taskParticipantsCc.length)<1),o.xp6(1),o.Q6J("ngForOf",t.taskParticipantsCc),o.xp6(8),o.Q6J("ngModel",t.eventProcess.workflowInstanceDataFields.Body),o.xp6(10),o.Q6J("ngForOf",t.loadedAttachments)}},directives:[d.W2,d.Gu,d.Q$,d.td,d.pK,d.j9,a.JJ,a.On,h.O5,d.gu,d.t9,d.QI,a.Q7,d.n0,f.KE,v.gD,m.ey,d.x4,Z.Nt,w.g2,a.Fj,a.oH,A.nW,f.R9,w.AB,h.sg,d.Ie,d.q_,d.g2,d.fr],pipes:[h.uU],styles:[".header-md[_ngcontent-%COMP%]:after, .title-content[_ngcontent-%COMP%]:after{display:none}.content[_ngcontent-%COMP%]{margin:0;float:left;border-right:1px solid #d8d8d8!important}.main-header[_ngcontent-%COMP%]{font-family:Roboto;background-color:#fff;overflow:hidden;transform:translate3d(0,1px,0)}.main-header[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%]{margin:0 auto;padding:0!important;background:#fff}.main-header[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%] .middle[_ngcontent-%COMP%]{padding:0!important;float:left}.main-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:25px}.ion-item-container[_ngcontent-%COMP%]{margin:15px auto;border:1px solid #ebebeb;border-radius:5px;padding-left:10px}.ion-item-container-no-border[_ngcontent-%COMP%]{width:100%;margin:0 auto;padding:0!important}.container-div[_ngcontent-%COMP%]{margin-bottom:15px;float:left}.ion-item-class-2[_ngcontent-%COMP%]{margin:0 auto}.ion-icon-class[_ngcontent-%COMP%]{width:45px;height:45px;float:left;padding:10px;font-size:25px}ion-select[_ngcontent-%COMP%]{padding-left:5px;margin-left:0}.ion-input-class[_ngcontent-%COMP%]{height:45px;padding-left:5px;padding-right:10px;float:left}.ion-input-class[_ngcontent-%COMP%], .ion-input-class-no-height[_ngcontent-%COMP%]{width:calc(100% - 45px);border:1px solid #ebebeb;border-radius:5px}.list-people[_ngcontent-%COMP%]{float:left}.add-people[_ngcontent-%COMP%]{width:45px;float:right;overflow:auto;font-size:25px;padding:10px}.list-people-title[_ngcontent-%COMP%]{color:#797979}.attach-document[_ngcontent-%COMP%]{font-size:15px;color:#0d89d1;margin:5px 5px 5px 10px;padding:5px;float:left}.attach-icon[_ngcontent-%COMP%]{width:37px;font-size:35px;float:left}.attach-title-item[_ngcontent-%COMP%]{width:100%;font-size:15px;color:#0d89d1}.span-left[_ngcontent-%COMP%]{float:left;font-size:15x}.span-right[_ngcontent-%COMP%]{text-align:right;float:right;font-size:13px}.container-footer[_ngcontent-%COMP%]{margin:0 auto;overflow:auto}.button-cancel[_ngcontent-%COMP%]{--background:#e0e9ee;--color:#061b52}.button-cancel[_ngcontent-%COMP%], .button-save[_ngcontent-%COMP%]{width:170px;height:44px;border-radius:22.5px;margin:10px}.button-save[_ngcontent-%COMP%]{--background:#42b9fe;--color:#fff}.text-input[_ngcontent-%COMP%]{width:100%;border:1px solid #ebebeb;margin:0 15px 15px 0;padding:0!important;border-radius:5px}.error[_ngcontent-%COMP%]{font-size:12px;font-weight:700;padding-bottom:20px}.error[_ngcontent-%COMP%], .span-color[_ngcontent-%COMP%]{color:red}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:20px;overflow:auto}.app-name[_ngcontent-%COMP%]{background:#42b9f2;border-radius:18px;text-align:center;display:flex;align-items:center;padding:0 5px;color:#fff;font-size:9pt;font-weight:500;height:19px;-webkit-border-radius:18px;-moz-border-radius:18px;-ms-border-radius:18px;-o-border-radius:18px}.close-button[_ngcontent-%COMP%]{display:none}.list[_ngcontent-%COMP%]:hover .app-name[_ngcontent-%COMP%]{display:none}.list[_ngcontent-%COMP%]:hover .close-button[_ngcontent-%COMP%]{display:block!important}"]}),e})()}}]); |