Files
doneit-web/_platforms/browser/www/6410-es2015.28e7aaebcd34304e0225.js
T

1 line
20 KiB
JavaScript
Raw Normal View History

2021-08-18 18:58:02 +01:00
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[6410],{56410:function(t,e,n){"use strict";n.d(e,{h:function(){return M}});var i=n(64762),o=n(18119),a=n(55199),s=n(4528),r=n(3679),c=n(37716),l=n(35957),d=n(80106),g=n(20985),p=n(84465),u=n(37556),h=n(38583);function m(t,e){if(1&t&&(c.TgZ(0,"ion-select-option",53),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.s9C("value",t.Code),c.xp6(1),c.Oqu(t.Description)}}function Z(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",27),c.TgZ(1,"div",10),c.TgZ(2,"div",11),c._UZ(3,"ion-icon",15),c.qZA(),c.TgZ(4,"div",13),c.TgZ(5,"ion-datetime",54),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw().postEvent.EventRecurrence.LastOccurrence=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw();c.xp6(5),c.Q6J("ngModel",t.postEvent.EventRecurrence.LastOccurrence)}}function v(t,e){1&t&&(c.TgZ(0,"ion-label",55),c._uU(1,"Adicionar intervenientes*"),c.qZA())}function f(t,e){if(1&t&&(c.TgZ(0,"ion-label"),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.Oqu(t.Name)}}function C(t,e){1&t&&(c.TgZ(0,"ion-label",55),c._uU(1,"Com conhecimento"),c.qZA())}function A(t,e){if(1&t&&(c.TgZ(0,"ion-label"),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.Oqu(t.Name)}}function T(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"ion-list",56),c.TgZ(2,"ion-item"),c.TgZ(3,"ion-label"),c.TgZ(4,"p",57),c.TgZ(5,"span",58),c._uU(6),c.qZA(),c.TgZ(7,"span",59),c._uU(8),c.qZA(),c.TgZ(9,"span",60),c.NdJ("click",function(){const e=c.CHM(t).index;return c.oxw().removeAttachment(e)}),c._UZ(10,"ion-icon",61),c.qZA(),c.qZA(),c.TgZ(11,"p"),c.TgZ(12,"span",62),c._uU(13),c.qZA(),c.TgZ(14,"span",63),c._uU(15),c.ALo(16,"date"),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=e.$implicit;c.xp6(6),c.Oqu(t.Assunto),c.xp6(2),c.Oqu(t.appName),c.xp6(5),c.Oqu(t.EntidadeOrganicaNome),c.xp6(2),c.hij(" ",c.xi3(16,4,t.Data,"dd-MM-yyyy HH:mm")," ")}}let M=(()=>{class t{constructor(t,e,n,i,a,s,r){this.modalController=t,this.navParams=e,this.eventService=n,this.attachmentsService=i,this.animationController=a,this.toastService=s,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.color="primary",this.validateFrom=!1,this.segment="true",this.taskParticipants=[],this.taskParticipantsCc=[],this.documents=[],this.loggeduser=r.ValidatedUser,this.postEvent=new o.j,this.postEvent.EventRecurrence={Type:"-1"},this.eventBody={BodyType:"1",Text:""},this.postEvent.Body=this.eventBody,this.selectedSegment=this.navParams.get("segment"),this.selectedDate=this.navParams.get("eventSelectedDate"),this.taskParticipants=this.navParams.get("attendees"),console.log(this.taskParticipants),this.postEvent.StartDate=new Date,this.postEvent.EndDate=new Date((new Date).getTime()+9e5)}ngOnInit(){this.selectedRecurringType="-1",console.log(this.postEvent),this.getRecurrenceTypes();let t=this.selectedDate,e=new Date(this.selectedDate);e.setMinutes(this.selectedDate.getMinutes()+30),this.postEvent="Combinada"!=this.selectedSegment?{EventId:"",Subject:"",Body:this.eventBody,Location:"",CalendarId:"",CalendarName:"",StartDate:t,EndDate:new Date(e),EventType:"Reuni\xe3o",Attendees:null,IsMeeting:!1,IsRecurring:!1,AppointmentState:0,TimeZone:"",Organizer:"",Category:"Reuni\xe3o",HasAttachments:!1,EventRecurrence:{Type:"-1"}}:{EventId:"",Subject:"",Body:this.eventBody,Location:"",CalendarId:"",CalendarName:"Oficial",StartDate:t,EndDate:new Date(e),EventType:"Reuni\xe3o",Attendees:null,IsMeeting:!1,IsRecurring:!1,AppointmentState:0,TimeZone:"",Organizer:"",Category:"Reuni\xe3o",HasAttachments:!1,EventRecurrence:{Type:"-1"}},window.onresize=t=>{window.innerWidth>=1024&&this.modalController.dismiss()},console.log(this.postEvent)}close(){this.modalController.dismiss()}getRecurrenceTypes(){this.eventService.getRecurrenceTypes().subscribe(t=>{console.log(t),this.recurringTypes=t})}onSelectedRecurringChanged(t){console.log(t),t