Files
doneit-web/_platforms/browser/www/5895-es5.10d2ea9cd929546f47de.js
T
tiago.kayaya 24e2a8f518 save
2021-08-18 18:58:02 +01:00

1 line
29 KiB
JavaScript

!function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[5895],{85895:function(e,n,i){"use strict";i.r(n),i.d(n,{EditEventToApprovePageModule:function(){return A}});var o,a=i(38583),s=i(3679),r=i(35957),c=i(39895),d=i(17071),l=i(37716),p=[{path:"",component:d.I}],u=function(){var e=function e(){t(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.oAB({type:e}),e.\u0275inj=l.cJS({imports:[[c.Bz.forChild(p)],c.Bz]}),e}(),g=i(72458),f=i(25653),h=i(51095),v=i(67441),m=i(94881),Z=i(43220),w=i(49983),k=i(22238),A=((o=function e(){t(this,e)}).\u0275fac=function(e){return new(e||o)},o.\u0275mod=l.oAB({type:o}),o.\u0275inj=l.cJS({imports:[[a.ez,s.u5,r.Pc,u,Z.FA,w.c,g.XK,f.EC,f.Yy,f.K,m._W,v.LD,h.ot,s.UX,k.Is]]}),o)},17071:function(n,i,o){"use strict";o.d(i,{I:function(){return B}});var a=o(64762),s=o(37716),r=o(3679),c=o(16738),d=o(4528),l=o(44940),p=o(35957),u=o(80106),g=o(20985),f=o(28621),h=o(84465),v=o(38583),m=o(98295),Z=o(67441),w=o(72458),k=o(49983),A=o(25653),x=o(43220),P=["picker"],T=["fim"],D=["inicio"],C=["picker1"];function I(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1," Campo obrigat\xf3rio. "),s.qZA())}function b(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1," O campo deve ter pelo menos 4 caracteres. "),s.qZA())}function M(e,t){if(1&e&&(s.TgZ(0,"div",64),s.YNc(1,I,2,0,"div",10),s.YNc(2,b,2,0,"div",10),s.qZA()),2&e){var n=s.oxw(2);s.xp6(1),s.Q6J("ngIf",null==n.Form.get("Subject").errors?null:n.Form.get("Subject").errors.required),s.xp6(1),s.Q6J("ngIf",null==n.Form.get("Subject").errors?null:n.Form.get("Subject").errors.minlength)}}function q(e,t){if(1&e&&(s.TgZ(0,"div"),s.YNc(1,M,3,2,"div",63),s.qZA()),2&e){var n=s.oxw();s.xp6(1),s.Q6J("ngIf",n.Form.get("Subject").invalid)}}function F(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1," Campo obrigat\xf3rio. "),s.qZA())}function S(e,t){if(1&e&&(s.TgZ(0,"div",64),s.YNc(1,F,2,0,"div",10),s.qZA()),2&e){var n=s.oxw(2);s.xp6(1),s.Q6J("ngIf",null==n.Form.get("Location").errors?null:n.Form.get("Location").errors.required)}}function _(e,t){if(1&e&&(s.TgZ(0,"div"),s.YNc(1,S,2,1,"div",63),s.qZA()),2&e){var n=s.oxw();s.xp6(1),s.Q6J("ngIf",n.Form.get("Location").invalid)}}function y(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1," Adicionar participant. "),s.qZA())}function O(e,t){if(1&e&&(s.TgZ(0,"div",64),s.YNc(1,y,2,0,"div",10),s.qZA()),2&e){var n=s.oxw(2);s.xp6(1),s.Q6J("ngIf",null==n.Form.get("participantes").errors?null:n.Form.get("participantes").errors.required)}}function N(e,t){if(1&e&&(s.TgZ(0,"div"),s.YNc(1,O,2,1,"div",63),s.qZA()),2&e){var n=s.oxw();s.xp6(1),s.Q6J("ngIf",n.Form.get("participantes").invalid)}}function J(e,t){if(1&e&&(s.TgZ(0,"mat-option",65),s._uU(1),s.qZA()),2&e){var n=t.$implicit;s.s9C("value",n.Code),s.xp6(1),s.hij(" ",n.Description," ")}}function U(e,t){if(1&e){var n=s.EpF();s.TgZ(0,"div",11),s.TgZ(1,"div",66),s.TgZ(2,"div",13),s._UZ(3,"ion-icon",17),s.qZA(),s.TgZ(4,"div",67),s.TgZ(5,"mat-form-field",68),s.TgZ(6,"input",69),s.NdJ("ngModelChange",function(e){return s.CHM(n),s.oxw().eventProcess.workflowInstanceDataFields.LastOccurrence=e}),s.qZA(),s._UZ(7,"mat-datepicker-toggle",70),s._UZ(8,"ngx-mat-datetime-picker",29,71),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&e){var i=s.MAs(9),o=s.oxw();s.xp6(6),s.Q6J("ngxMatDatetimePicker",i)("ngModel",o.eventProcess.workflowInstanceDataFields.LastOccurrence)("disabled",o.disabled),s.xp6(1),s.Q6J("for",i),s.xp6(1),s.Q6J("showSpinners",o.showSpinners)("showSeconds",o.showSeconds)("stepHour",o.stepHour)("stepMinute",o.stepMinute)("stepSecond",o.stepSecond)("touchUi",o.touchUi)}}function E(e,t){1&e&&(s.TgZ(0,"ion-label",72),s._uU(1,"Adicionar intervenientes*"),s.qZA())}function Y(e,t){if(1&e&&(s.TgZ(0,"ion-label"),s._uU(1),s.qZA()),2&e){var n=t.$implicit;s.xp6(1),s.Oqu(n.Name)}}function Q(e,t){1&e&&(s.TgZ(0,"ion-label",72),s._uU(1,"Adicionar intervenientes"),s.qZA())}function R(e,t){if(1&e&&(s.TgZ(0,"ion-label"),s._uU(1),s.qZA()),2&e){var n=t.$implicit;s.xp6(1),s.Oqu(n.Name)}}function L(e,t){1&e&&(s.TgZ(0,"span",82),s._uU(1," Correspondencia "),s.qZA())}function j(e,t){1&e&&(s.TgZ(0,"span",82),s._uU(1," AccoesPresidenciais "),s.qZA())}function H(e,t){1&e&&(s.TgZ(0,"span",82),s._uU(1," ArquivoDespachoElect "),s.qZA())}function G(e,t){if(1&e){var n=s.EpF();s.TgZ(0,"ion-label",74),s.TgZ(1,"p",75),s.TgZ(2,"span",76),s._uU(3),s.qZA(),s.YNc(4,L,2,0,"span",77),s.YNc(5,j,2,0,"span",77),s.YNc(6,H,2,0,"span",77),s.TgZ(7,"span",78),s.NdJ("click",function(){s.CHM(n);var e=s.oxw(),t=e.$implicit,i=e.index;return s.oxw().deleteAttachment(t,i)}),s._UZ(8,"ion-icon",79),s.qZA(),s.qZA(),s.TgZ(9,"p"),s.TgZ(10,"span",80),s._uU(11),s.qZA(),s.TgZ(12,"span",81),s._uU(13),s.ALo(14,"date"),s.qZA(),s.qZA(),s.qZA()}if(2&e){var i=s.oxw().$implicit;s.xp6(3),s.Oqu(i.SourceName),s.xp6(1),s.Q6J("ngIf",8==i.ApplicationId),s.xp6(1),s.Q6J("ngIf",386==i.ApplicationId),s.xp6(1),s.Q6J("ngIf",361==i.ApplicationId),s.xp6(5),s.Oqu(i.Stakeholders),s.xp6(2),s.hij(" ",s.xi3(14,6,i.CreateDate,"dd-MM-yyyy HH:mm")," ")}}function z(e,t){if(1&e&&(s.TgZ(0,"ion-item",57),s.YNc(1,G,15,9,"ion-label",73),s.qZA()),2&e){var n=t.$implicit;s.xp6(1),s.Q6J("ngIf","delete"!=n.action)}}var B=function(){var n=function(){function n(e,i,o,a,d,l){t(this,n),this.modalController=e,this.eventsService=i,this.alertController=o,this.attachmentsService=a,this.processes=d,this.toastService=l,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 r.NI(c("DD MM YYYY hh")),this.dateControlEnd=new r.NI(c("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 s.vpe,this.clearContact=new s.vpe,this.setIntervenient=new s.vpe,this.setIntervenientCC=new s.vpe,this.closeComponent=new s.vpe,this.closeEventToApprove=new s.vpe,this.isEventEdited=!1}var i,o,p;return i=n,(o=[{key:"dateStart",get:function(){return this.dateControlStart.value}},{key:"dateEnd",get:function(){return this.dateControlEnd.value}},{key:"ngOnInit",value:function(){console.log("EDITAR"),this.restoreTemporaryData()?this.setOtherData():this.getTask(),this.getRecurrenceTypes()}},{key:"getTask",value:function(){return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.processes.GetTask(this.serialNumber).subscribe(function(e){t.eventProcess=e,t.restoreDatepickerData();var n=t.eventProcess.workflowInstanceDataFields.Body.replace(/<[^>]+>/g,"");t.eventProcess.workflowInstanceDataFields.Body=n,t.InstanceId=t.eventProcess.workflowInstanceDataFields.InstanceId,t.getAttachments(),t.setOtherData(),t.saveTemporaryData()});case 1:case"end":return e.stop()}},e,this)}))}},{key:"getRecurrenceTypes",value:function(){var e=this;this.eventsService.getRecurrenceTypes().subscribe(function(t){console.log(t),e.recurringTypes=t})}},{key:"onSelectedRecurringChanged",value:function(e){console.log(e),e.length>1&&(console.log(e.filter(function(e){return"-1"!=e})),this.eventProcess.workflowInstanceDataFields.OccurrenceType=e.filter(function(e){return"-1"!=e})),0==e.length&&(this.eventProcess.workflowInstanceDataFields.OccurrenceType="-1")}},{key:"setOtherData",value:function(){var e=this;this.eventProcess.workflowInstanceDataFields.ParticipantsList&&this.eventProcess.workflowInstanceDataFields.ParticipantsList.forEach(function(t){t.IsRequired?e.taskParticipants.push(t):e.taskParticipantsCc.push(t)}),this.taskParticipants=(0,l.removeDuplicate)(this.taskParticipants),this.taskParticipantsCc=(0,l.removeDuplicate)(this.taskParticipantsCc),this.isRecurring=0==this.eventProcess.workflowInstanceDataFields.IsRecurring?"N\xe3o se repete":"Repete",this.InstanceId=this.eventProcess.workflowInstanceDataFields.InstanceId,this.getAttachments()}},{key:"close",value:function(){window["temp.path:/shared/agenda/edit-event-to-approve.ts"]={},this.closeEventToApprove.emit()}},{key:"runValidation",value:function(){this.validateFrom=!0}},{key:"injectValidation",value:function(){this.Form=new r.cw({Subject:new r.NI(this.eventProcess.workflowInstanceDataFields.Subject,[r.kI.required]),Location:new r.NI(this.eventProcess.workflowInstanceDataFields.Location,[r.kI.required]),dateStart:new r.NI(this.dateStart,[r.kI.required]),dateEnd:new r.NI(this.dateEnd,[r.kI.required]),participantes:new r.NI(this.taskParticipants,[])})}},{key:"save",value:function(){return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.injectValidation(),this.runValidation(),!this.Form.invalid){e.next=2;break}return e.abrupt("return",!1);case 2:return this.getDatepickerData(),this.taskParticipantsCc.forEach(function(e){e.IsRequired=!1}),this.eventProcess.workflowInstanceDataFields.ParticipantsList=this.taskParticipants.concat(this.taskParticipantsCc),this.eventProcess.workflowInstanceDataFields.ParticipantsList.forEach(function(e){e.hasOwnProperty("$type")&&delete e.$type}),t={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},e.prev=4,e.next=7,this.eventsService.postEventToApproveEdit(t).toPromise();case 7:this.close(),this.toastService.successMessage("Evento editado"),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),this.toastService.badRequest("Evento n\xe3o editado");case 14:this.loadedAttachments.forEach(function(e){"add"==e.action?(delete e.action,n.attachmentsService.setEventAttachmentById(e).subscribe(function(){},function(e){n.toastService.badRequest()})):"delete"==e.action&&(delete e.action,n.attachmentsService.deleteEventAttachmentById(e.Id).subscribe(function(e){},function(e){n.toastService.badRequest()}))});case 15:case"end":return e.stop()}},e,this,[[4,11]])}))}},{key:"dynamicSetIntervenient",value:function(e){var t=e.taskParticipants,n=e.taskParticipantsCc;this.taskParticipants=(0,l.removeDuplicate)(t),this.taskParticipantsCc=(0,l.removeDuplicate)(n)}},{key:"addParticipants",value:function(){return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.openAttendeesComponent.emit({type:"intervenient"}),this.clearContact.emit();case 1:case"end":return e.stop()}},e,this)}))}},{key:"addParticipantsCC",value:function(){return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.openAttendeesComponent.emit({type:"CC"}),this.clearContact.emit();case 1:case"end":return e.stop()}},e,this)}))}},{key:"saveTemporaryData",value:function(){this.getDatepickerData(),window["temp.path:/shared/agenda/edit-event-to-approve.ts"]={eventProcess:this.eventProcess}}},{key:"restoreTemporaryData",value:function(){var e=window["temp.path:/shared/agenda/edit-event-to-approve.ts"];return"{}"!=JSON.stringify(e)&&null!=e&&(this.eventProcess=e.eventProcess,this.restoreDatepickerData(),!0)}},{key:"getAttachments",value:function(){return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.attachmentsService.getAttachmentsById(this.InstanceId).toPromise();case 2:(t=e.sent).forEach(function(e){e.action=!1}),this.loadedAttachments=t;case 4:case"end":return e.stop()}},e,this)}))}},{key:"deleteAttachment",value:function(e,t){this.loadedAttachments[t].action="delete"}},{key:"getDoc",value:function(){return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:d.Z,cssClass:"modal-width-100-width-background modal",componentProps:{type:"AccoesPresidenciais & ArquivoDespachoElect",showSearchInput:!0,select:!0}});case 2:return t=e.sent,e.next=5,t.present();case 5:t.onDidDismiss().then(function(e){return(0,a.mG)(n,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e&&(n=e.data.selected,i={SourceTitle:n.Assunto,ParentId:this.InstanceId,Source:"1",SourceId:n.Id,ApplicationId:n.ApplicationType.toString(),Id:"",Link:"",SerialNumber:"",action:"add",CreateDate:n.Data,Data:n.Data,Description:n.DocTypeDesc,SourceName:n.Assunto,Stakeholders:n.EntidadeOrganicaNome},this.loadedAttachments.push(i),console.log("push",i));case 1:case"end":return t.stop()}},t,this)}))});case 6:case"end":return e.stop()}},e,this)}))}},{key:"restoreDatepickerData",value:function(){this.dateControlStart=new r.NI(c(new Date(this.eventProcess.workflowInstanceDataFields.StartDate))),this.dateControlEnd=new r.NI(c(new Date(this.eventProcess.workflowInstanceDataFields.EndDate)))}},{key:"getDatepickerData",value:function(){this.eventProcess.workflowInstanceDataFields.StartDate=this.dateStart,this.eventProcess.workflowInstanceDataFields.EndDate=this.dateEnd}}])&&e(i.prototype,o),p&&e(i,p),n}();return n.\u0275fac=function(e){return new(e||n)(s.Y36(p.IN),s.Y36(u.n),s.Y36(p.Br),s.Y36(g.o),s.Y36(f.$),s.Y36(h.k))},n.\u0275cmp=s.Xpm({type:n,selectors:[["app-edit-event-to-approve"]],viewQuery:function(e,t){var n;(1&e&&(s.Gf(P,5),s.Gf(T,5),s.Gf(D,5),s.Gf(C,5)),2&e)&&(s.iGM(n=s.CRH())&&(t.picker=n.first),s.iGM(n=s.CRH())&&(t.fim=n.first),s.iGM(n=s.CRH())&&(t.inicio=n.first),s.iGM(n=s.CRH())&&(t.picker1=n.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&&(s.TgZ(0,"ion-content"),s.TgZ(1,"div",0),s.TgZ(2,"div",1),s.TgZ(3,"div",2),s.TgZ(4,"ion-header"),s.TgZ(5,"div",3),s.TgZ(6,"div",4),s.TgZ(7,"ion-label",5),s._uU(8,"Editar evento por aprovar"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(9,"ion-item-sliding",6),s.TgZ(10,"div",7),s.TgZ(11,"div",8),s.TgZ(12,"ion-input",9),s.NdJ("ngModelChange",function(e){return t.eventProcess.workflowInstanceDataFields.Subject=e}),s.qZA(),s.qZA(),s.YNc(13,q,2,1,"div",10),s.TgZ(14,"div",11),s.TgZ(15,"div",12),s.TgZ(16,"div",13),s._UZ(17,"ion-icon",14),s.qZA(),s.TgZ(18,"div",15),s.TgZ(19,"ion-input",16),s.NdJ("ngModelChange",function(e){return t.eventProcess.workflowInstanceDataFields.Location=e}),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.YNc(20,_,2,1,"div",10),s.TgZ(21,"div",11),s.TgZ(22,"div",12),s.TgZ(23,"div",13),s._UZ(24,"ion-icon",17),s.qZA(),s.TgZ(25,"div",15),s.TgZ(26,"ion-select",18),s.NdJ("ngModelChange",function(e){return t.eventProcess.workflowInstanceDataFields.Agenda=e}),s.TgZ(27,"ion-select-option",19),s._uU(28,"Oficial"),s.qZA(),s.TgZ(29,"ion-select-option",20),s._uU(30,"Pessoal"),s.qZA(),s.qZA(),s.TgZ(31,"mat-form-field",21),s.TgZ(32,"mat-select",22),s.NdJ("ngModelChange",function(e){return t.eventProcess.workflowInstanceDataFields.Agenda=e}),s.TgZ(33,"mat-option",19),s._uU(34," Oficial "),s.qZA(),s.TgZ(35,"mat-option",20),s._uU(36," Pessoal "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.YNc(37,N,2,1,"div",10),s.TgZ(38,"div",11),s.TgZ(39,"div",23),s.TgZ(40,"div",13),s._UZ(41,"ion-icon",17),s.qZA(),s.TgZ(42,"div",24),s.TgZ(43,"ion-datetime",25),s.NdJ("ngModelChange",function(e){return t.eventProcess.workflowInstanceDataFields.StartDate=e}),s.qZA(),s.TgZ(44,"mat-form-field",26),s._UZ(45,"input",27),s._UZ(46,"mat-datepicker-toggle",28),s._UZ(47,"ngx-mat-datetime-picker",29,30),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(49,"div",11),s.TgZ(50,"div",12),s.TgZ(51,"div",13),s._UZ(52,"ion-icon",17),s.qZA(),s.TgZ(53,"div",15),s.TgZ(54,"ion-datetime",31),s.NdJ("ngModelChange",function(e){return t.eventProcess.workflowInstanceDataFields.EndDate=e}),s.qZA(),s.TgZ(55,"mat-form-field",26),s._UZ(56,"input",27),s._UZ(57,"mat-datepicker-toggle",32),s._UZ(58,"ngx-mat-datetime-picker",29,33),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(60,"div",11),s.TgZ(61,"div",12),s.TgZ(62,"div",13),s._UZ(63,"ion-icon",34),s.qZA(),s.TgZ(64,"div",15),s.TgZ(65,"mat-form-field",35),s.TgZ(66,"mat-select",36),s.NdJ("ngModelChange",function(e){return t.eventProcess.workflowInstanceDataFields.OccurrenceType=e})("ngModelChange",function(e){return t.onSelectedRecurringChanged(e)}),s.YNc(67,J,2,2,"mat-option",37),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.YNc(68,U,10,10,"div",38),s.TgZ(69,"div",11),s.TgZ(70,"div",12),s.TgZ(71,"div",13),s._UZ(72,"ion-icon",39),s.qZA(),s.TgZ(73,"div",40),s.TgZ(74,"div",41),s.TgZ(75,"ion-item",42),s.TgZ(76,"ion-list"),s.YNc(77,E,2,0,"ion-label",43),s.YNc(78,Y,2,1,"ion-label",44),s.qZA(),s.qZA(),s.qZA(),s.TgZ(79,"div",45),s.NdJ("click",function(){return t.addParticipants()}),s._UZ(80,"ion-icon",46),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(81,"div",11),s.TgZ(82,"div",12),s.TgZ(83,"div",13),s._UZ(84,"ion-icon",39),s.qZA(),s.TgZ(85,"div",40),s.TgZ(86,"div",41),s.TgZ(87,"ion-item",42),s.TgZ(88,"ion-list"),s.YNc(89,Q,2,0,"ion-label",43),s.YNc(90,R,2,1,"ion-label",44),s.qZA(),s.qZA(),s.qZA(),s.TgZ(91,"div",45),s.NdJ("click",function(){return t.addParticipantsCC()}),s._UZ(92,"ion-icon",46),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(93,"div",47),s.TgZ(94,"div",48),s.TgZ(95,"div",13),s._UZ(96,"ion-icon",49),s.qZA(),s.TgZ(97,"div",50),s.TgZ(98,"ion-textarea",51),s.NdJ("ngModelChange",function(e){return t.eventProcess.workflowInstanceDataFields.Body=e}),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(99,"div",52),s.NdJ("click",function(){return t.getDoc()}),s.TgZ(100,"ion-label"),s.TgZ(101,"div",53),s._UZ(102,"ion-icon",54),s.qZA(),s.TgZ(103,"div",55),s.TgZ(104,"ion-label"),s._uU(105,"Adicionar documentos"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(106,"div",56),s.TgZ(107,"ion-list",57),s.YNc(108,z,2,1,"ion-item",58),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(109,"ion-footer",59),s.TgZ(110,"div",60),s.TgZ(111,"button",61),s.NdJ("click",function(){return t.close()}),s._uU(112,"Cancelar"),s.qZA(),s.TgZ(113,"button",62),s.NdJ("click",function(){return t.save()}),s._uU(114,"Gravar"),s.qZA(),s.qZA(),s.qZA()),2&e){var n,i,o=s.MAs(48),a=s.MAs(59);s.xp6(11),s.ekj("input-error",(null==t.Form||null==(n=t.Form.get("Subject"))?null:n.invalid)&&t.validateFrom),s.xp6(1),s.Q6J("ngModel",t.eventProcess.workflowInstanceDataFields.Subject),s.xp6(1),s.Q6J("ngIf",t.Form&&t.validateFrom),s.xp6(5),s.ekj("input-error",(null==t.Form||null==(i=t.Form.get("Location"))?null:i.invalid)&&t.validateFrom),s.xp6(1),s.Q6J("ngModel",t.eventProcess.workflowInstanceDataFields.Location),s.xp6(1),s.Q6J("ngIf",t.Form&&t.validateFrom),s.xp6(6),s.s9C("selectedText",t.eventProcess.workflowInstanceDataFields.Agenda),s.Q6J("ngModel",t.eventProcess.workflowInstanceDataFields.Agenda),s.xp6(6),s.Q6J("ngModel",t.eventProcess.workflowInstanceDataFields.Agenda),s.xp6(5),s.Q6J("ngIf",t.Form&&t.validateFrom),s.xp6(6),s.s9C("min",t.minDate),s.Q6J("ngModel",t.eventProcess.workflowInstanceDataFields.StartDate),s.xp6(2),s.Q6J("ngxMatDatetimePicker",o)("formControl",t.dateControlStart)("min",t.minDate)("max",t.maxDate)("disabled",t.disabled),s.xp6(1),s.Q6J("for",o),s.xp6(1),s.Q6J("showSpinners",t.showSpinners)("showSeconds",t.showSeconds)("stepHour",t.stepHour)("stepMinute",t.stepMinute)("stepSecond",t.stepSecond)("touchUi",t.touchUi),s.xp6(7),s.s9C("min",t.minDate),s.Q6J("ngModel",t.eventProcess.workflowInstanceDataFields.EndDate),s.xp6(2),s.Q6J("ngxMatDatetimePicker",a)("formControl",t.dateControlEnd)("min",t.minDate)("max",t.maxDate)("disabled",t.disabled),s.xp6(1),s.Q6J("for",a),s.xp6(1),s.Q6J("showSpinners",t.showSpinners)("showSeconds",t.showSeconds)("stepHour",t.stepHour)("stepMinute",t.stepMinute)("stepSecond",t.stepSecond)("touchUi",t.touchUi),s.xp6(8),s.Q6J("ngModel",t.eventProcess.workflowInstanceDataFields.OccurrenceType),s.xp6(1),s.Q6J("ngForOf",t.recurringTypes),s.xp6(1),s.Q6J("ngIf","-1"!=t.eventProcess.workflowInstanceDataFields.OccurrenceType),s.xp6(9),s.Q6J("ngIf",(null==t.taskParticipants?null:t.taskParticipants.length)<1),s.xp6(1),s.Q6J("ngForOf",t.taskParticipants),s.xp6(11),s.Q6J("ngIf",(null==t.taskParticipantsCc?null:t.taskParticipantsCc.length)<1),s.xp6(1),s.Q6J("ngForOf",t.taskParticipantsCc),s.xp6(8),s.Q6J("ngModel",t.eventProcess.workflowInstanceDataFields.Body),s.xp6(10),s.Q6J("ngForOf",t.loadedAttachments)}},directives:[p.W2,p.Gu,p.Q$,p.td,p.pK,p.j9,r.JJ,r.On,v.O5,p.gu,p.t9,p.QI,r.Q7,p.n0,m.KE,Z.gD,w.ey,p.x4,k.Nt,A.g2,r.Fj,r.oH,x.nW,m.R9,A.AB,v.sg,p.Ie,p.q_,p.g2,p.fr],pipes:[v.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}"]}),n}()}}])}();