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

1 line
128 KiB
JavaScript

!function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function n(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,o=r(e);if(t){var i=r(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[1858,6527,5763,2417,3756,6055,5457,1087,4413,5183,5802,9391,1485,9074,4176,9406],{42482:function(e,t,n){var o,i,a;!function(r){if("object"==typeof e.exports){var c=r(0,t);void 0!==c&&(e.exports=c)}else i=[n,t],void 0===(a="function"==typeof(o=r)?o.apply(t,i):o)||(e.exports=a)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["pt",[["AM","PM"],n,n],n,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."],["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],n,[["a.C.","d.C."],n,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",n,n,n],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00","#E0"],"BRL","R$","Real brasileiro",{AUD:["AU$","$"],JPY:["JP\xa5","\xa5"],PTE:["Esc."],RON:[n,"L"],SYP:[n,"S\xa3"],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"]},"ltr",function(e){var t=Math.floor(Math.abs(e));return t===Math.floor(t)&&t>=0&&t<=1?1:5}]})},61858:function(t,a,r){"use strict";r.r(a),r.d(a,{AgendaPageModule:function(){return pn}});var c=r(37716),s=r(38583),d=r(3679),l=r(35957),p=r(39895),u=r(64762),g=r(87732),v=r(86807),m=r(44940),f=r(32743),h=r(59326),C=r(313),x=r(90104),w=function(){var t,a=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,t);var a=i(r);function r(){return e(this,r),a.apply(this,arguments)}return n(r,[{key:"dayViewHour",value:function(e){var t=e.date,n=e.locale;return(0,s.p6)(t,"HH",n)}},{key:"weekViewHour",value:function(e){var t=e.date,n=e.locale;return this.dayViewHour({date:t,locale:n})}}]),r}(C.m$);return a.\u0275fac=function(e){return(t||(t=c.n5z(a)))(e||a)},a.\u0275prov=c.Yz7({token:a,factory:a.\u0275fac}),a}(),M=r(56410),Z=function(){function t(){e(this,t)}return n(t,[{key:"EventEndDateTreatment",value:function(e){var t=e.startTime,n=e.endTime,o=new Date(t).toLocaleDateString(),i=new Date(n).toLocaleDateString(),a=new Date(n).getMinutes(),r=new Date(n).getHours();return o<i&&a+r==0?((n=new Date(n)).setSeconds(n.getSeconds()-1),new Date(n)):new Date(n)}},{key:"filterProfile",value:function(e,t){return e.filter(function(e){return e.profile==t})}},{key:"getEventInsideRange",value:function(e,t,n){return e.filter(function(e){return new Date(t).getTime()<=new Date(e.startTime).getTime()&&new Date(n).getTime()>=new Date(e.endTime).getTime()})}},{key:"daysBetween",value:function(){}},{key:"list",value:function(e,t,n,o,i){return"all"!=t&&(e=this.filterProfile(e,t)),e=this.getEventInsideRange(e,n,o),e=this.encapsulation(e,"md"==t?"mdgpr":"pr"),this.display(e)}},{key:"display",value:function(e){var t=this,n={};return e.forEach(function(e,o){var i=new Date(e.start),a=t.EventEndDateTreatment({startTime:i,endTime:e.end}),r=new Date(e.start).getDate().toString().padStart(2,"0");if(e.manyDays=!1,e.todayOnly=new Date(e.start).toLocaleDateString()==new Date(e.end).toLocaleDateString(),n.hasOwnProperty(r)||(n[r]=[]),new Date(i).toLocaleDateString()!=new Date(a).toLocaleDateString()){var c=Math.abs(a-i),s=Math.ceil(c/864e5);if(s<=150&&!e.event.IsAllDayEvent)if(s>=1){var d=Object.assign({},{title:e.title,start:e.start,end:e.end,color:e.color,id:e.id,index:e.index,profile:e.profile,CalendarName:e.CalendarName,event:{Subject:e.event.Subject,StartDate:e.event.StartDate,EndDate:e.event.EndDate,Location:e.event.Location,EventId:e.event.EventId,CalendarName:e.event.CalendarName},startMany:!0,endMany:!1,middle:!1});n[r].push(d);for(;i.getFullYear()!=a.getFullYear()||i.getMonth()!=a.getMonth()||i.getDate()!=a.getDate();){var l=i.setDate(i.getDate()+1),p=new Date(l).getDate().toString().padStart(2,"0");if(e.other=!0,e.start=l,n.hasOwnProperty(p)||(n[p]=[]),i.getFullYear()==a.getFullYear()&&i.getMonth()==a.getMonth()&&i.getDate()==a.getDate()){var u=Object.assign({},{title:e.title,start:e.start,end:e.end,color:e.color,id:e.id,index:e.index,profile:e.profile,CalendarName:e.CalendarName,event:{Subject:e.event.Subject,StartDate:e.event.StartDate,EndDate:e.event.EndDate,Location:e.event.Location,EventId:e.event.EventId,CalendarName:e.event.CalendarName},Subject:e.Subject,startMany:!1,endMany:!0,middle:!1});n[p].push(u)}else{var g=Object.assign({},{title:e.title,start:e.start,end:e.end,color:e.color,id:e.id,index:e.index,profile:e.profile,CalendarName:e.CalendarName,event:{Subject:e.event.Subject,StartDate:e.event.StartDate,EndDate:e.event.EndDate,Location:e.event.Location,EventId:e.event.EventId,CalendarName:e.event.CalendarName},Subject:e.Subject,startMany:!1,endMany:!0,middle:!0});n[p].push(g)}}}else n[r].push(e);else n[r].push(e)}n[r].push(e)}),setTimeout(function(){document.querySelectorAll(".EventListBox-container .EventListBox").forEach(function(e){e.parentElement.style.display=0==e.childElementCount?"none":"block"})},10),n}},{key:"encapsulation",value:function(e,t){var n=[];return e.forEach(function(e,o){n.push({start:new Date(e.StartDate||e.startTime),end:new Date(e.EndDate||e.endTime),color:{primary:"#0000",secondary:"#0000"},id:e.EventId||e.id,index:o,profile:t,CalendarName:e.calendarName,event:e.event})}),n}}]),t}(),b=r(80106),y=r(25970),P=r(39075),A=r(37556),E=r(72458),_=r(84465),O=r(2527),T=r(66096),k=function(){var t=function(){function t(n){var o=this;e(this,t),this.localstoreService=n,this._eventSource=[],this.keyName=(0,O.SHA1)(this.constructor.name+"eventSource").toString();var i=n.get(this.keyName,[]);setTimeout(function(){i.forEach(function(e,t){o._eventSource.push({title:e.title,startTime:new Date(e.startTime),endTime:new Date(e.endTime),allDay:e.allDay,event:e.event,calendarName:e.calendarName,profile:e.profile,id:e.id})})},10)}return n(t,[{key:"ResetList",value:function(e){var t=this;this._eventSource=e,setTimeout(function(){t.localstoreService.set(t.keyName,t._eventSource)},10)}},{key:"eventSource",get:function(){return this._eventSource}},{key:"removeRange",value:function(e,t,n){this._eventSource=this._eventSource.filter(function(o){return!(new Date(e).getTime()<=new Date(o.startTime).getTime()&&new Date(t).getTime()>=new Date(o.endTime).getTime()&&o.profile==n)})}},{key:"pushEvent",value:function(e,t){var n=this,o=[];e.forEach(function(e,n){o.push({title:e.Subject,startTime:new Date(e.StartDate),endTime:new Date(e.EndDate),allDay:!1,event:e,calendarName:e.CalendarName,profile:t,id:e.EventId})});var i=this._eventSource.concat(o),a=i.map(function(e){return e.id}),r=i.filter(function(e,t){var n=e.id;return!a.includes(n,t+1)});this._eventSource=r,setTimeout(function(){n.localstoreService.set(n.keyName,n._eventSource)},10)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(T.L))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),D=r(962),S=r(30105),q=r(94575),I=r(4528),N=r(16738),R=r(20985),J=r(98295),U=r(67441),L=r(49983),Y=r(25653),H=r(43220),Q=["picker"],j=["fim"],F=["inicio"],G=["picker1"];function B(e,t){1&e&&c._UZ(0,"ion-progress-bar",69)}function z(e,t){1&e&&(c.TgZ(0,"div"),c._uU(1," Campo obrigat\xf3rio. "),c.qZA())}function $(e,t){1&e&&(c.TgZ(0,"div"),c._uU(1," O campo deve ter pelo menos 4 caracteres. "),c.qZA())}function V(e,t){if(1&e&&(c.TgZ(0,"div",71),c.YNc(1,z,2,0,"div",10),c.YNc(2,$,2,0,"div",10),c.qZA()),2&e){var n=c.oxw(2);c.xp6(1),c.Q6J("ngIf",null==n.Form.get("Subject").errors?null:n.Form.get("Subject").errors.required),c.xp6(1),c.Q6J("ngIf",null==n.Form.get("Subject").errors?null:n.Form.get("Subject").errors.minlength)}}function W(e,t){if(1&e&&(c.TgZ(0,"div"),c.YNc(1,V,3,2,"div",70),c.qZA()),2&e){var n=c.oxw();c.xp6(1),c.Q6J("ngIf",n.Form.get("Subject").invalid)}}function X(e,t){1&e&&(c.TgZ(0,"div"),c._uU(1," Campo obrigat\xf3rio. "),c.qZA())}function K(e,t){1&e&&(c.TgZ(0,"div"),c._uU(1," O campo deve ter pelo menos 4 caracteres. "),c.qZA())}function ee(e,t){if(1&e&&(c.TgZ(0,"div",71),c.YNc(1,X,2,0,"div",10),c.YNc(2,K,2,0,"div",10),c.qZA()),2&e){var n=c.oxw(2);c.xp6(1),c.Q6J("ngIf",null==n.Form.get("Location").errors?null:n.Form.get("Location").errors.required),c.xp6(1),c.Q6J("ngIf",null==n.Form.get("Location").errors?null:n.Form.get("Location").errors.minlength)}}function te(e,t){if(1&e&&(c.TgZ(0,"div"),c.YNc(1,ee,3,2,"div",70),c.qZA()),2&e){var n=c.oxw();c.xp6(1),c.Q6J("ngIf",n.Form.get("Location").invalid)}}function ne(e,t){if(1&e&&(c.TgZ(0,"mat-option",72),c._uU(1),c.qZA()),2&e){var n=t.$implicit;c.s9C("value",n.Code),c.xp6(1),c.hij(" ",n.Description," ")}}function oe(e,t){if(1&e){var n=c.EpF();c.TgZ(0,"div",73),c.TgZ(1,"div",55),c.TgZ(2,"div",13),c._UZ(3,"ion-icon",17),c.qZA(),c.TgZ(4,"div",74),c.NdJ("click",function(){return c.CHM(n),c.oxw().openLastOccurrence()}),c.TgZ(5,"mat-form-field",75),c._UZ(6,"input",76),c._UZ(7,"mat-datepicker-toggle",77),c._UZ(8,"ngx-mat-datetime-picker",31,78),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&e){var o=c.MAs(9),i=c.oxw();c.xp6(6),c.Q6J("ngxMatDatetimePicker",o)("formControl",i.dateControlOccurrence)("disabled",i.disabled),c.xp6(1),c.Q6J("for",o),c.xp6(1),c.Q6J("showSpinners",i.showSpinners)("showSeconds",i.showSeconds)("stepHour",i.stepHour)("stepMinute",i.stepMinute)("stepSecond",i.stepSecond)("touchUi",i.touchUi)}}function ie(e,t){1&e&&(c.TgZ(0,"ion-label",79),c._uU(1,"Adicionar intervenientes"),c.qZA())}function ae(e,t){if(1&e&&(c.TgZ(0,"ion-label"),c._uU(1),c.qZA()),2&e){var n=t.$implicit;c.xp6(1),c.Oqu(n.Name)}}function re(e,t){1&e&&(c.TgZ(0,"ion-label",79),c._uU(1,"Com conhecimento"),c.qZA())}function ce(e,t){if(1&e&&(c.TgZ(0,"ion-label"),c._uU(1),c.qZA()),2&e){var n=t.$implicit;c.xp6(1),c.Oqu(n.Name)}}function se(e,t){1&e&&(c.TgZ(0,"span",91),c._uU(1," Correspondencia "),c.qZA())}function de(e,t){1&e&&(c.TgZ(0,"span",91),c._uU(1," AccoesPresidenciais "),c.qZA())}function le(e,t){1&e&&(c.TgZ(0,"span",91),c._uU(1," ArquivoDespachoElect "),c.qZA())}function pe(e,t){if(1&e){var n=c.EpF();c.TgZ(0,"ion-list",82),c.TgZ(1,"ion-item",83),c.TgZ(2,"ion-label",83),c.TgZ(3,"p",84),c.TgZ(4,"span",85),c._uU(5),c.qZA(),c.YNc(6,se,2,0,"span",86),c.YNc(7,de,2,0,"span",86),c.YNc(8,le,2,0,"span",86),c.TgZ(9,"span",87),c.NdJ("click",function(){c.CHM(n);var e=c.oxw(),t=e.$implicit,o=e.index;return c.oxw().deleteAttachment(t.Id,o)}),c._UZ(10,"ion-icon",88),c.qZA(),c.qZA(),c.TgZ(11,"p"),c.TgZ(12,"span",89),c._uU(13),c.qZA(),c.TgZ(14,"span",90),c._uU(15),c.ALo(16,"date"),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&e){var o=c.oxw().$implicit;c.xp6(5),c.Oqu(o.SourceName),c.xp6(1),c.Q6J("ngIf","8"==o.ApplicationId),c.xp6(1),c.Q6J("ngIf","386"==o.ApplicationId),c.xp6(1),c.Q6J("ngIf","361"==o.ApplicationId),c.xp6(5),c.Oqu(o.Stakeholders),c.xp6(2),c.hij(" ",c.xi3(16,6,o.CreateDate,"dd-MM-yyyy HH:mm")," ")}}function ue(e,t){if(1&e&&(c.TgZ(0,"div",80),c.YNc(1,pe,17,9,"ion-list",81),c.qZA()),2&e){var n=t.$implicit;c.xp6(1),c.Q6J("ngIf",!n.remove)}}var ge=function(){var t=function(){function t(n,o,i,a,r){e(this,t),this.modalController=n,this.eventsService=o,this.alertController=i,this.attachmentsService=a,this.toastService=r,this.segment="true",this.loadedEventAttachments=[],this.dateControlOccurrence=new d.NI(N("DD MM YYYY hh")),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).toISOString().slice(0,10),this.stepHour=1,this.stepMinute=5,this.stepSecond=5,this.validateFrom=!1,this.clearContact=new c.vpe,this.openAttendeesComponent=new c.vpe,this.closeComponent=new c.vpe,this.setIntervenient=new c.vpe,this.setIntervenientCC=new c.vpe,this.clearPostEvent=new c.vpe,this.dateControlStart=new d.NI(N("DD MM YYYY hh")),this.dateControlEnd=new d.NI(N("DD MM YYYY hh")),this.showLoader=!1,this.options=[{value:!0,label:"True"},{value:!1,label:"False"}],this.listColors=["primary","accent","warn"],this.stepHours=[1,2,3,4,5],this.stepMinutes=[1,5,10,15,20,25],this.stepSeconds=[1,5,10,15,20,25]}return n(t,[{key:"dateStart",get:function(){return this.dateControlStart.value}},{key:"dateEnd",get:function(){return this.dateControlEnd.value}},{key:"dateOccurrence",get:function(){return this.dateControlOccurrence.value}},{key:"ngOnInit",value:function(){var e=this;this.dateControlOccurrence=new d.NI(N(this.postEvent.EventRecurrence.LastOccurrence)),this.restoreTemporaryData()||(this.postEvent&&this.postEvent.Body&&"string"==typeof this.postEvent.Body.Text&&(this.postEvent.Body.Text=this.postEvent.Body.Text.replace(/<[^>]+>/g,"")),null!=this.postEvent.Attendees&&this.postEvent.Attendees.forEach(function(t){t.IsRequired?e.taskParticipants.push(t):e.taskParticipantsCc.push(t)}),this.taskParticipants=(0,m.removeDuplicate)(this.taskParticipants),this.taskParticipantsCc=(0,m.removeDuplicate)(this.taskParticipantsCc),this.setIntervenient.emit(this.taskParticipants),this.setIntervenientCC.emit(this.taskParticipantsCc),this.isEventEdited=!1,this.isRecurring=0==this.postEvent.IsRecurring?"N\xe3o se repete":"Repete"),this.getAttachments(this.postEvent.EventId),this.restoreDatepickerData(),this.getRecurrenceTypes(),this.postEvent.EventRecurrence.Type=this.postEvent.EventRecurrence.Type.toString(),setTimeout(function(){e.postEvent.EventRecurrence.Type=e.postEvent.EventRecurrence.Type.toString(),console.log(e.postEvent.EventRecurrence.Type)},1e3)}},{key:"close",value:function(){this.closeComponent.emit(),this.setIntervenient.emit([]),this.setIntervenientCC.emit([]),this.clearContact.emit(),this.deleteTemporaryData()}},{key:"getRecurrenceTypes",value:function(){var e=this;this.eventsService.getRecurrenceTypes().subscribe(function(t){console.log(t),e.recurringTypes=t})}},{key:"runValidation",value:function(){this.validateFrom=!0}},{key:"injectValidation",value:function(){if("number"==typeof this.postEvent.EventRecurrence.Type){var e=this.postEvent.EventRecurrence.Type.toString();this.postEvent.EventRecurrence.Type=e}this.Form=new d.cw({Subject:new d.NI(this.postEvent.Subject,[d.kI.required]),Location:new d.NI(this.postEvent.Location,[d.kI.required]),CalendarName:new d.NI(this.postEvent.CalendarName),Categories:new d.NI(this.postEvent.Category,[d.kI.required]),dateStart:new d.NI(this.dateStart,[d.kI.required]),dateEnd:new d.NI(this.dateEnd,[d.kI.required]),dateOccurrence:new d.NI(this.dateOccurrence,[d.kI.required]),participantes:new d.NI(this.taskParticipants,[]),Date:new d.NI(new Date(this.dateControlStart.value).toLocaleString()<new Date(this.dateControlEnd.value).toLocaleString()?"ok":null,[d.kI.required])})}},{key:"openInicio",value:function(){var e=document.querySelector("#new-inicio");e&&(console.log(e),e.click())}},{key:"openFim",value:function(){var e=document.querySelector("#new-fim");e&&e.click()}},{key:"openLastOccurrence",value:function(){var e=document.querySelector("#last-occurrence");e&&e.click()}},{key:"onSelectedRecurringChanged",value:function(e){console.log(e),e.length>1&&(console.log(e.filter(function(e){return"-1"!=e})),this.postEvent.EventRecurrence.Type=e.filter(function(e){return"-1"!=e})),0==e.length&&(this.postEvent.EventRecurrence.Type="-1")}},{key:"save",value:function(){return(0,u.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:if(this.injectValidation(),this.runValidation(),!this.Form.invalid){e.next=2;break}return e.abrupt("return",!1);case 2:return this.getDatepickerData(),this.postEvent.Attendees=this.taskParticipants.concat(this.taskParticipantsCc),this.postEvent.EventRecurrence.hasOwnProperty("Type")||(this.postEvent.EventRecurrence.Type="-1"),null==this.postEvent.EventRecurrence.Type&&(this.postEvent.EventRecurrence.Type="-1"),this.showLoader=!0,e.next=9,this.eventsService.editEvent(this.postEvent,2,3).subscribe(function(){return(0,u.mG)(t,void 0,void 0,regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.initCalendarName==this.postEvent.CalendarName){e.next=9;break}return t={EventId:this.postEvent.EventId,CalendarDestinationName:this.postEvent.CalendarName},e.prev=2,e.next=5,this.eventsService.changeAgenda(t).toPromise();case 5:e.next=9;break;case 7:e.prev=7,e.t0=e.catch(2);case 9:this.showLoader=!1,this.toastService.successMessage();case 10:case"end":return e.stop()}},e,this,[[2,7]])}))},function(e){t.showLoader=!1,t.toastService.badRequest()});case 9:this.clearPostEvent.emit(),this.deleteTemporaryData(),this.close(),this.saveDocument();case 13:case"end":return e.stop()}},e,this)}))}},{key:"saveDocument",value:function(){var e=this;this.loadedEventAttachments.forEach(function(t){var n=t.remove;if("add"==t.Id){var o={SourceTitle:t.SourceName,ParentId:e.postEvent.EventId,Source:"1",SourceId:t.SourceId,ApplicationId:t.ApplicationId.toString(),Id:"0",Link:"",SerialNumber:""};e.attachmentsService.setEventAttachmentById(o).subscribe(function(){e.getAttachments(e.postEvent.EventId)})}else n&&e.attachmentsService.deleteEventAttachmentById(t.Id).subscribe(function(e){})})}},{key:"addParticipants",value:function(){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.saveTemporaryData(),this.openAttendeesComponent.emit({type:"intervenient"}),this.clearContact.emit();case 1:case"end":return e.stop()}},e,this)}))}},{key:"addParticipantsCc",value:function(){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.saveTemporaryData(),this.openAttendeesComponent.emit({type:"CC"}),this.clearContact.emit();case 1:case"end":return e.stop()}},e,this)}))}},{key:"getDatepickerData",value:function(){this.postEvent&&(this.postEvent.StartDate=this.dateStart,this.postEvent.EndDate=this.dateEnd,this.postEvent.EventRecurrence.LastOccurrence=this.dateOccurrence)}},{key:"restoreDatepickerData",value:function(){this.postEvent&&(this.dateControlStart=new d.NI(N(this.postEvent.StartDate)),this.dateControlEnd=new d.NI(N(this.postEvent.EndDate)))}},{key:"saveTemporaryData",value:function(){this.getDatepickerData(),window["temp.path:/home/agenda/edit-event.component.ts"]={postEvent:this.postEvent,eventBody:this.eventBody,segment:this.segment}}},{key:"restoreTemporaryData",value:function(){var e=window["temp.path:/home/agenda/edit-event.component.ts"];return"{}"!=JSON.stringify(e)&&null!=e&&(this.postEvent=e.postEvent,this.eventBody=e.eventBody,this.segment=e.segment,this.restoreDatepickerData(),!0)}},{key:"deleteTemporaryData",value:function(){window["temp.path:/home/agenda/edit-event.component.ts"]={}}},{key:"getAttachments",value:function(e){var t=this;this.attachmentsService.getAttachmentsById(e).subscribe(function(e){t.loadedEventAttachments=e,console.log("res",e)})}},{key:"deleteAttachment",value:function(e,t){"add"==this.loadedEventAttachments[t].Id?this.loadedEventAttachments=this.loadedEventAttachments.filter(function(e,n){return n!=t}):this.loadedEventAttachments[t].remove=!0}},{key:"getDoc",value:function(){return(0,u.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:I.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,u.mG)(n,void 0,void 0,regeneratorRuntime.mark(function t(){var n,o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e&&(n=e.data,o={SourceName:n.selected.Assunto,ParentId:this.postEvent.EventId,SourceId:n.selected.Id,Stakeholders:!1,ApplicationId:n.selected.ApplicationType.toString(),CreateDate:!1,Id:"add",SourceTitle:n.selected.Assunto,Source:"1",Link:"",SerialNumber:""},console.log(this.loadedEventAttachments),this.loadedEventAttachments.push(o));case 1:case"end":return t.stop()}},t,this)}))});case 6:case"end":return e.stop()}},e,this)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Y36(l.IN),c.Y36(b.n),c.Y36(l.Br),c.Y36(R.o),c.Y36(_.k))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-edit-event"]],viewQuery:function(e,t){var n;(1&e&&(c.Gf(Q,5),c.Gf(j,5),c.Gf(F,5),c.Gf(G,5)),2&e)&&(c.iGM(n=c.CRH())&&(t.picker=n.first),c.iGM(n=c.CRH())&&(t.fim=n.first),c.iGM(n=c.CRH())&&(t.inicio=n.first),c.iGM(n=c.CRH())&&(t.picker1=n.first))},inputs:{taskParticipants:"taskParticipants",taskParticipantsCc:"taskParticipantsCc",profile:"profile",selectedSegment:"selectedSegment",postEvent:"postEvent"},outputs:{clearContact:"clearContact",openAttendeesComponent:"openAttendeesComponent",closeComponent:"closeComponent",setIntervenient:"setIntervenient",setIntervenientCC:"setIntervenientCC",clearPostEvent:"clearPostEvent"},decls:126,vars:53,consts:[[1,"ion-no-border"],[1,"header-toolbar"],[1,"main-header"],[1,"title-content"],[1,"middle"],[1,"title"],["class","calendar-progress-bar","type","indeterminate",4,"ngIf"],[1,"main-content"],[1,"ion-item-container"],["placeholder","Assunto*",3,"ngModel","ngModelChange"],[4,"ngIf"],[1,"container-div"],[1,"ion-item-class-2","width-100","d-flex"],[1,"ion-icon-class"],["slot","start","src","assets/images/icons-location.svg"],[1,"ion-input-class","flex-grow-1"],["placeholder","Localiza\xe7\xe3o*",3,"ngModel","ngModelChange"],["slot","start","src","assets/images/icons-calendar.svg"],["appearance","none","floatLabel","never",1,"width-100"],["placeholder","Selecione agenda*",3,"ngModel","ngModelChange"],["value","Oficial"],["value","Pessoal"],["appearance","none","floatLabel","never","required","",1,"width-100"],["placeholder","Selecione o tipo de evento*","matInput","",3,"ngModel","ngModelChange"],["value","Reuni\xe3o"],["value","Viagem"],["value","Confer\xeancia"],["value","Encontro"],["appearance","none","floatLabel","never",1,"date-hour-picker"],["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",""],["appearance","none","floatLabel","never","floatLabel","never",1,"date-hour-picker"],["id","new-fim","matSuffix","",3,"for"],[3,"showSpinners","showSeconds","stepHour","stepMinute","stepSecond"],["fim",""],[1,"container-div","d-flex"],["slot","start","src","assets/images/icons-refresh.svg"],["appearance","none","floatLabel","never","value","false","interface","action-sheet","required","",1,"width-100"],["placeholder","Selecione repeti\xe7\xe3o*",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["class","container-div width-100",4,"ngIf"],[1,"d-flex","width-100"],[1,"ion-item-class-2","width-100"],["slot","start","src","assets/images/icons-person.svg"],[1,"ion-input-class-no-height"],[1,"list-people"],["lines","none"],["class","list-people-title",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"add-people"],[1,"btn-no-color","cursor-pointer",3,"click"],["slot","start","src","assets/images/icons-arrow-forward.svg",1,"font-35"],["slot","start","src","assets/images/icons-people-cc.svg"],[1,"ion-item-class-2","d-flex"],["slot","start","src","assets/images/icons-description.svg"],[1,"ion-input-class-no-height","width-100"],["placeholder","Detalhes","rows","6","cols","20",3,"ngModel","ngModelChange"],[1,"d-flex","container-div","width-100","ion-item-container-no-border","cursor-pointer",3,"click"],[1,"attach-icon"],["src","assets/images/icons-attach-doc.svg"],[1,"attach-document"],["class","d-flex container-div width-100",4,"ngFor","ngForOf"],[1,"width-100","d-flex","justify-space-between","px-20"],["slot","start"],["fill","clear","color","#061b52",1,"btn-cancel",3,"click"],["slot","end"],["fill","clear","color","#fff",1,"btn-ok",3,"click"],["type","indeterminate",1,"calendar-progress-bar"],["class","input-errror-message",4,"ngIf"],[1,"input-errror-message"],[3,"value"],[1,"container-div","width-100"],[1,"ion-input-class","flex-grow-1",3,"click"],[1,"date-hour-picker"],["matInput","","placeholder","Choose a date",3,"ngxMatDatetimePicker","formControl","disabled"],["id","last-occurrence","matSuffix","",3,"for"],["occurrrence",""],[1,"list-people-title"],[1,"d-flex","container-div","width-100"],["class","width-100 list",4,"ngIf"],[1,"width-100","list"],[1,"width-100"],[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&&(c.TgZ(0,"ion-header",0),c.TgZ(1,"ion-toolbar",1),c.TgZ(2,"div",2),c.TgZ(3,"div",3),c.TgZ(4,"div",4),c.TgZ(5,"ion-label",5),c._uU(6,"Editar Evento"),c.qZA(),c.qZA(),c.qZA(),c.YNc(7,B,1,0,"ion-progress-bar",6),c.qZA(),c.qZA(),c.qZA(),c.TgZ(8,"ion-content"),c.TgZ(9,"div",7),c.TgZ(10,"div",8),c.TgZ(11,"ion-input",9),c.NdJ("ngModelChange",function(e){return t.postEvent.Subject=e}),c.qZA(),c.qZA(),c.YNc(12,W,2,1,"div",10),c.TgZ(13,"div",11),c.TgZ(14,"div",12),c.TgZ(15,"div",13),c._UZ(16,"ion-icon",14),c.qZA(),c.TgZ(17,"div",15),c.TgZ(18,"ion-input",16),c.NdJ("ngModelChange",function(e){return t.postEvent.Location=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.YNc(19,te,2,1,"div",10),c.TgZ(20,"div",11),c.TgZ(21,"div",12),c.TgZ(22,"div",13),c._UZ(23,"ion-icon",17),c.qZA(),c.TgZ(24,"div",15),c.TgZ(25,"mat-form-field",18),c.TgZ(26,"mat-select",19),c.NdJ("ngModelChange",function(e){return t.postEvent.CalendarName=e}),c.TgZ(27,"mat-option",20),c._uU(28," Oficial "),c.qZA(),c.TgZ(29,"mat-option",21),c._uU(30," Pessoal "),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.TgZ(31,"div",11),c.TgZ(32,"div",12),c.TgZ(33,"div",13),c._UZ(34,"ion-icon",17),c.qZA(),c.TgZ(35,"div",15),c.TgZ(36,"mat-form-field",22),c.TgZ(37,"mat-select",23),c.NdJ("ngModelChange",function(e){return t.postEvent.Category=e}),c.TgZ(38,"mat-option",24),c._uU(39," Reuni\xe3o "),c.qZA(),c.TgZ(40,"mat-option",25),c._uU(41," Viagem "),c.qZA(),c.TgZ(42,"mat-option",26),c._uU(43," Confer\xeancia "),c.qZA(),c.TgZ(44,"mat-option",27),c._uU(45," Encontro "),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.TgZ(46,"div",11),c.TgZ(47,"div",12),c.TgZ(48,"div",13),c._UZ(49,"ion-icon",17),c.qZA(),c.TgZ(50,"div",15),c.TgZ(51,"mat-form-field",28),c._UZ(52,"input",29),c._UZ(53,"mat-datepicker-toggle",30),c._UZ(54,"ngx-mat-datetime-picker",31,32),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.TgZ(56,"div",11),c.TgZ(57,"div",12),c.TgZ(58,"div",13),c._UZ(59,"ion-icon",17),c.qZA(),c.TgZ(60,"div",15),c.TgZ(61,"mat-form-field",33),c._UZ(62,"input",29),c._UZ(63,"mat-datepicker-toggle",34),c._UZ(64,"ngx-mat-datetime-picker",35,36),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.TgZ(66,"div",37),c.TgZ(67,"div",12),c.TgZ(68,"div",13),c._UZ(69,"ion-icon",38),c.qZA(),c.TgZ(70,"div",15),c.TgZ(71,"mat-form-field",39),c.TgZ(72,"mat-select",40),c.NdJ("ngModelChange",function(e){return t.postEvent.EventRecurrence.Type=e})("ngModelChange",function(e){return t.onSelectedRecurringChanged(e)}),c.YNc(73,ne,2,2,"mat-option",41),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.YNc(74,oe,10,10,"div",42),c.TgZ(75,"div",43),c.TgZ(76,"div",44),c.TgZ(77,"div",13),c._UZ(78,"ion-icon",45),c.qZA(),c.TgZ(79,"div",46),c.TgZ(80,"div",47),c.TgZ(81,"ion-item",48),c.TgZ(82,"ion-list"),c.YNc(83,ie,2,0,"ion-label",49),c.YNc(84,ae,2,1,"ion-label",50),c.qZA(),c.qZA(),c.qZA(),c.TgZ(85,"div",51),c.TgZ(86,"button",52),c.NdJ("click",function(){return t.addParticipants()}),c._UZ(87,"ion-icon",53),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.TgZ(88,"div",43),c.TgZ(89,"div",44),c.TgZ(90,"div",13),c._UZ(91,"ion-icon",54),c.qZA(),c.TgZ(92,"div",46),c.TgZ(93,"div",47),c.TgZ(94,"ion-item",48),c.TgZ(95,"ion-list"),c.YNc(96,re,2,0,"ion-label",49),c.YNc(97,ce,2,1,"ion-label",50),c.qZA(),c.qZA(),c.qZA(),c.TgZ(98,"div",51),c.TgZ(99,"button",52),c.NdJ("click",function(){return t.addParticipantsCc()}),c._UZ(100,"ion-icon",53),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.TgZ(101,"div",11),c.TgZ(102,"div",55),c.TgZ(103,"div",13),c._UZ(104,"ion-icon",56),c.qZA(),c.TgZ(105,"div",57),c.TgZ(106,"ion-textarea",58),c.NdJ("ngModelChange",function(e){return t.postEvent.Body.Text=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.TgZ(107,"div",59),c.NdJ("click",function(){return t.getDoc()}),c.TgZ(108,"ion-label"),c.TgZ(109,"div",60),c._UZ(110,"ion-icon",61),c.qZA(),c.TgZ(111,"div",62),c.TgZ(112,"ion-label"),c._uU(113,"Adicionar documentos"),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.YNc(114,ue,2,1,"div",63),c.qZA(),c.qZA(),c.TgZ(115,"ion-footer",0),c.TgZ(116,"ion-toolbar",64),c.TgZ(117,"ion-buttons",65),c.TgZ(118,"button",66),c.NdJ("click",function(){return t.close()}),c.TgZ(119,"ion-label"),c._uU(120,"Cancelar"),c.qZA(),c.qZA(),c.qZA(),c._UZ(121,"ion-title"),c.TgZ(122,"ion-buttons",67),c.TgZ(123,"button",68),c.NdJ("click",function(){return t.save()}),c.TgZ(124,"ion-label"),c._uU(125,"Gravar"),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA()),2&e){var n,o,i,a,r,s,d,l=c.MAs(55),p=c.MAs(65);c.xp6(7),c.Q6J("ngIf",t.showLoader),c.xp6(3),c.ekj("input-error",(null==t.Form||null==(n=t.Form.get("Subject"))?null:n.invalid)&&t.validateFrom),c.xp6(1),c.Q6J("ngModel",t.postEvent.Subject),c.xp6(1),c.Q6J("ngIf",t.Form&&t.validateFrom),c.xp6(5),c.ekj("input-error",(null==t.Form||null==(o=t.Form.get("Location"))?null:o.invalid)&&t.validateFrom),c.xp6(1),c.Q6J("ngModel",t.postEvent.Location),c.xp6(1),c.Q6J("ngIf",t.Form&&t.validateFrom),c.xp6(7),c.Q6J("ngModel",t.postEvent.CalendarName),c.xp6(9),c.ekj("input-error",(null==t.Form||null==(i=t.Form.get("Categories"))?null:i.invalid)&&t.validateFrom),c.xp6(2),c.Q6J("ngModel",t.postEvent.Category),c.xp6(13),c.ekj("input-error",(null==t.Form||null==(a=t.Form.get("Date"))?null:a.invalid)&&t.validateFrom),c.xp6(2),c.Q6J("ngxMatDatetimePicker",l)("formControl",t.dateControlStart)("min",t.minDate)("max",t.maxDate)("disabled",t.disabled),c.xp6(1),c.Q6J("for",l),c.xp6(1),c.Q6J("showSpinners",t.showSpinners)("showSeconds",t.showSeconds)("stepHour",t.stepHour)("stepMinute",t.stepMinute)("stepSecond",t.stepSecond)("touchUi",t.touchUi),c.xp6(6),c.ekj("input-error",(null==t.Form||null==(r=t.Form.get("Date"))?null:r.invalid)&&t.validateFrom),c.xp6(2),c.Q6J("ngxMatDatetimePicker",p)("formControl",t.dateControlEnd)("min",t.minDate)("max",t.maxDate)("disabled",t.disabled),c.xp6(1),c.Q6J("for",p),c.xp6(1),c.Q6J("showSpinners",t.showSpinners)("showSeconds",t.showSeconds)("stepHour",t.stepHour)("stepMinute",t.stepMinute)("stepSecond",t.stepSecond),c.xp6(8),c.Q6J("ngModel",t.postEvent.EventRecurrence.Type),c.xp6(1),c.Q6J("ngForOf",t.recurringTypes),c.xp6(1),c.Q6J("ngIf","-1"!=t.postEvent.EventRecurrence.Type),c.xp6(5),c.ekj("input-error",(null==t.Form||null==(s=t.Form.get("participantes"))?null:s.invalid)&&t.validateFrom),c.xp6(4),c.Q6J("ngIf",(null==t.taskParticipants?null:t.taskParticipants.length)<1),c.xp6(1),c.Q6J("ngForOf",t.taskParticipants),c.xp6(8),c.ekj("input-error",(null==t.Form||null==(d=t.Form.get("participantes"))?null:d.invalid)&&t.validateFrom),c.xp6(4),c.Q6J("ngIf",(null==t.taskParticipantsCc?null:t.taskParticipantsCc.length)<1),c.xp6(1),c.Q6J("ngForOf",t.taskParticipantsCc),c.xp6(9),c.Q6J("ngModel",t.postEvent.Body.Text),c.xp6(8),c.Q6J("ngForOf",t.loadedEventAttachments)}},directives:[l.Gu,l.sr,l.Q$,s.O5,l.W2,l.pK,l.j9,d.JJ,d.On,l.gu,J.KE,U.gD,E.ey,L.Nt,Y.g2,d.Fj,d.oH,H.nW,J.R9,Y.AB,s.sg,l.Ie,l.q_,l.g2,l.fr,l.Sm,l.wd,l.X7],pipes:[s.uU],styles:[".header-toolbar[_ngcontent-%COMP%], ion-content[_ngcontent-%COMP%]{--background:transparent}.header-toolbar[_ngcontent-%COMP%]{--opacity:1}.main-header[_ngcontent-%COMP%]{width:100%;height:100%;font-family:Roboto;border-top-left-radius:25px;border-top-right-radius:25px;background-color:#fff;overflow:hidden;padding:30px 20px 0;color:#000;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;margin:2.5px 0 0 5px}.main-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:25px}.main-content[_ngcontent-%COMP%]{width:100%;height:100%;font-family:Roboto;margin:0 auto;background-color:#fff;padding:15px 20px 0}.main-content[_ngcontent-%COMP%] .ion-item-container[_ngcontent-%COMP%]{margin:15px auto;border:1px solid #ebebeb;border-radius:5px;padding-left:10px}.main-content[_ngcontent-%COMP%] .ion-item-container-no-border[_ngcontent-%COMP%]{width:100%;margin:0 auto;padding:0!important}.main-content[_ngcontent-%COMP%] .container-div[_ngcontent-%COMP%]{margin-bottom:15px}.main-content[_ngcontent-%COMP%] .ion-item-class-2[_ngcontent-%COMP%]{margin:0 auto}.main-content[_ngcontent-%COMP%] .ion-icon-class[_ngcontent-%COMP%]{width:45px;height:45px;float:left;padding:10px;font-size:25px}.main-content[_ngcontent-%COMP%] ion-select[_ngcontent-%COMP%]{padding-left:5px;margin-left:0}.main-content[_ngcontent-%COMP%] .ion-input-class[_ngcontent-%COMP%]{height:45px;border:1px solid #ebebeb;border-radius:5px;padding-left:5px;padding-right:10px;float:left}.main-content[_ngcontent-%COMP%] .ion-input-class-no-height[_ngcontent-%COMP%]{height:auto!important;border:1px solid #ebebeb;border-radius:5px;margin-bottom:15px;overflow:auto}.main-content[_ngcontent-%COMP%] .list-people[_ngcontent-%COMP%]{float:left}.main-content[_ngcontent-%COMP%] .add-people[_ngcontent-%COMP%]{width:45px;float:right;font-size:25px;padding:10px}.main-content[_ngcontent-%COMP%] .list-people-title[_ngcontent-%COMP%]{color:#a3a3a3}.main-content[_ngcontent-%COMP%] .attach-document[_ngcontent-%COMP%]{font-size:15px;color:#0d89d1;margin:5px 5px 5px 10px;padding:5px;float:left}.main-content[_ngcontent-%COMP%] .attach-icon[_ngcontent-%COMP%]{width:37px;font-size:35px;float:left}.main-content[_ngcontent-%COMP%] .attach-title-item[_ngcontent-%COMP%]{width:100%;font-size:15px;color:#0d89d1}.main-content[_ngcontent-%COMP%] .span-left[_ngcontent-%COMP%]{float:left;font-size:15x}.main-content[_ngcontent-%COMP%] .span-right[_ngcontent-%COMP%]{text-align:right;float:right;font-size:13px}.main-content[_ngcontent-%COMP%] .container-footer[_ngcontent-%COMP%]{margin:0 auto}.main-content[_ngcontent-%COMP%] .button-cancel[_ngcontent-%COMP%]{--background:#e0e9ee;--color:#061b52}.main-content[_ngcontent-%COMP%] .button-cancel[_ngcontent-%COMP%], .main-content[_ngcontent-%COMP%] .button-save[_ngcontent-%COMP%]{width:170px;height:44px;border-radius:22.5px;margin:10px}.main-content[_ngcontent-%COMP%] .button-save[_ngcontent-%COMP%]{--background:#42b9fe;--color:#fff}.main-content[_ngcontent-%COMP%] .text-input[_ngcontent-%COMP%]{width:100%;border:1px solid #ebebeb;margin:0 15px 15px 0;padding:0!important;border-radius:5px}.main-content[_ngcontent-%COMP%] .error[_ngcontent-%COMP%]{color:red;font-size:12px;font-weight:700;padding-bottom:20px}.main-content[_ngcontent-%COMP%] .span-color[_ngcontent-%COMP%]{color:red}.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}.materia-top[_ngcontent-%COMP%]{padding-top:7px}"]}),t}(),ve=r(18119),me=r(23066),fe=r(97047),he=r(53760),Ce=r(28621);function xe(e,t){if(1&e&&(c.TgZ(0,"span",23),c._uU(1),c.qZA()),2&e){var n=c.oxw(2);c.xp6(1),c.Oqu(n.loadedEvent.CalendarName)}}function we(e,t){if(1&e&&(c.TgZ(0,"span",24),c._uU(1),c.qZA()),2&e){var n=c.oxw(2);c.xp6(1),c.Oqu(n.loadedEvent.CalendarName)}}function Me(e,t){if(1&e&&(c.TgZ(0,"div"),c.YNc(1,xe,2,1,"span",21),c.YNc(2,we,2,1,"span",22),c.qZA()),2&e){var n=c.oxw();c.xp6(1),c.Q6J("ngIf","Oficial"==n.loadedEvent.CalendarName),c.xp6(1),c.Q6J("ngIf","Pessoal"==n.loadedEvent.CalendarName)}}function Ze(e,t){if(1&e&&(c.TgZ(0,"span",27),c._uU(1),c.qZA()),2&e){var n=c.oxw(2);c.xp6(1),c.Oqu(n.loadedEvent.CalendarName)}}function be(e,t){if(1&e&&(c.TgZ(0,"span",28),c._uU(1),c.qZA()),2&e){var n=c.oxw(2);c.xp6(1),c.Oqu(n.loadedEvent.CalendarName)}}function ye(e,t){if(1&e&&(c.TgZ(0,"div"),c.YNc(1,Ze,2,1,"span",25),c.YNc(2,be,2,1,"span",26),c.qZA()),2&e){var n=c.oxw();c.xp6(1),c.Q6J("ngIf","Oficial"==n.loadedEvent.CalendarName),c.xp6(1),c.Q6J("ngIf","Pessoal"==n.loadedEvent.CalendarName)}}function Pe(e,t){if(1&e&&(c.TgZ(0,"p"),c._uU(1),c.ALo(2,"date"),c.ALo(3,"date"),c.qZA()),2&e){var n=c.oxw();c.xp6(1),c.AsE("das ",c.xi3(2,2,n.loadedEvent.StartDate,"HH:mm")," \xe0s ",c.xi3(3,5,n.loadedEvent.EndDate,"HH:mm"),"")}}function Ae(e,t){if(1&e&&(c.TgZ(0,"p"),c._uU(1),c.ALo(2,"date"),c.ALo(3,"date"),c.qZA()),2&e){var n=c.oxw();c.xp6(1),c.AsE("",c.xi3(2,2,n.loadedEvent.StartDate,"d/M/yy")," - ",c.xi3(3,5,n.loadedEvent.StartDate,"dd/M/yy")," ")}}function Ee(e,t){1&e&&(c.TgZ(0,"p"),c._uU(1,"(N\xe3o se repete)"),c.qZA())}function _e(e,t){1&e&&(c.TgZ(0,"p"),c._uU(1,"Repete"),c.qZA())}function Oe(e,t){if(1&e&&(c.TgZ(0,"div"),c.TgZ(1,"p"),c._uU(2),c.qZA(),c.qZA()),2&e){var n=t.$implicit;c.xp6(2),c.Oqu(n.Name)}}function Te(e,t){if(1&e&&(c.TgZ(0,"div"),c.TgZ(1,"h5"),c._uU(2,"Intervenientes"),c.qZA(),c.TgZ(3,"ion-item",29),c.TgZ(4,"ion-label"),c.YNc(5,Oe,3,1,"div",30),c.qZA(),c.qZA(),c.qZA()),2&e){var n=c.oxw();c.xp6(5),c.Q6J("ngForOf",n.loadedEvent.Attendees)}}function ke(e,t){if(1&e&&(c.TgZ(0,"div"),c.TgZ(1,"h5"),c._uU(2,"Detalhes"),c.qZA(),c.TgZ(3,"ion-item",31),c._UZ(4,"div",32),c.qZA(),c._UZ(5,"div",18),c.qZA()),2&e){var n=c.oxw();c.xp6(4),c.Q6J("innerHTML",n.loadedEvent.Body.Text,c.oJD)}}function De(e,t){if(1&e){var n=c.EpF();c.TgZ(0,"li",36),c.TgZ(1,"ion-label",37),c.TgZ(2,"p",38),c.NdJ("click",function(){var e=c.CHM(n).$implicit;return c.oxw(2).viewDocument(e.SourceId)}),c.TgZ(3,"span",39),c._uU(4),c.qZA(),c.TgZ(5,"span",40),c._uU(6),c.qZA(),c.qZA(),c.TgZ(7,"div",41),c.TgZ(8,"span",42),c._uU(9),c.ALo(10,"date"),c.qZA(),c.qZA(),c.TgZ(11,"div",43),c.NdJ("click",function(){var e=c.CHM(n).index,t=c.oxw(2);return t.docIndex(e),t.openTaskOptions()}),c._UZ(12,"ion-icon",44),c.qZA(),c.qZA(),c.qZA()}if(2&e){var o=t.$implicit;c.xp6(4),c.Oqu(o.SourceName),c.xp6(2),c.Oqu(o.Stakeholders),c.xp6(3),c.Oqu(c.xi3(10,3,o.CreateDate,"dd-MM-yyyy HH:mm"))}}function Se(e,t){if(1&e&&(c.TgZ(0,"div",33),c.TgZ(1,"h5"),c._uU(2,"Documentos Anexados"),c.qZA(),c.TgZ(3,"ion-list",34),c.YNc(4,De,13,6,"li",35),c.qZA(),c.qZA()),2&e){var n=c.oxw();c.xp6(4),c.Q6J("ngForOf",n.loadedAttachments)}}var qe=function(){var t=function(){function t(n,o,i,a,r,s,d,l){e(this,t),this.eventsService=n,this.attachmentsService=o,this.alertController=i,this.iab=a,this.processes=r,this.modalController=s,this.popoverController=d,this.toastService=l,this.months=["Janeiro","Fevereiro","Mar\xe7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],this.days=["Domingo","Segunda-feira","Ter\xe7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\xe1bado"],this.documents=[],this.dicIndex=0,this.viewEventDetailDismiss=new c.vpe,this.isEventEdited=!1,this.loadedEvent=new ve.j,this.eventBody={BodyType:"1",Text:""},this.loadedEvent.Body=this.eventBody}return n(t,[{key:"ngOnInit",value:function(){this.loadEvent()}},{key:"ngOnChanges",value:function(e){this.loadedAttachments=null,this.loadEvent()}},{key:"toDateString",value:function(e){return new Date(e).toDateString()}},{key:"openOptions",value:function(){}},{key:"docIndex",value:function(e){this.dicIndex=e}},{key:"close",value:function(){console.log(this.isEventEdited),this.viewEventDetailDismiss.emit({type:"close"})}},{key:"loadEvent",value:function(){var e=this;this.eventsService.getEvent(this.eventId).subscribe(function(t){console.log(t),e.loadedEvent=t,e.today=new Date(t.StartDate),e.customDate=e.days[e.today.getDay()]+", "+e.today.getDate()+" de "+e.months[e.today.getMonth()],e.getAttachments(e.loadedEvent.EventId)},function(t){console.log("errer"),e.viewEventDetailDismiss.emit({type:"close"}),e.toastService.badRequest(0==t.status?"N\xe3o \xe9 poss\xedvel visualizar este evento no modo offline":"Este evento j\xe1 n\xe3o existe na sua agenda")})}},{key:"deleteEvent",value:function(){return(0,u.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.loadedEvent.IsRecurring||this.eventsService.deleteEvent(this.loadedEvent.EventId,0).subscribe(function(){return(0,u.mG)(t,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.toastService.successMessage("Evento apagado"),this.close();case 1:case"end":return e.stop()}},e,this)}))});case 1:case"end":return e.stop()}},e,this)}))}},{key:"deleteRecurringEvent",value:function(){return(0,u.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.modalController.create({component:fe.L,componentProps:{},cssClass:"discart-expedient-modal"});case 2:return t=e.sent,e.next=5,t.present();case 5:t.onDidDismiss().then(function(e){});case 6:case"end":return e.stop()}},e,this)}))}},{key:"getAttachments",value:function(e){var t=this;this.attachmentsService.getAttachmentsById(e).subscribe(function(e){t.loadedAttachments=e,console.log(e)})}},{key:"editEvent",value:function(){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.viewEventDetailDismiss.emit({type:"edit",event:this.loadedEvent});case 1:case"end":return e.stop()}},e,this)}))}},{key:"viewDocument",value:function(e){var t=this;this.processes.GetDocumentUrl(e,"8").subscribe(function(e){console.log(e);var n=e.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");t.iab.create(n,"_blank").show()})}},{key:"openTaskOptions",value:function(){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return 361==(t=this.loadedAttachments[this.dicIndex]).ApplicationID||361==t.ApplicationId?n={serialNumber:t.DispatchNumber,taskStartDate:t.DateDispatch,isEvent:!0,workflowInstanceDataFields:{FsId:t.ApplicationID,FolderID:null,DocId:t.DispatchNumber,Subject:t.Assunto}}:8!=t.ApplicationID&&8!=t.ApplicationId||(n={serialNumber:t.DocId,taskStartDate:t.DocDate,isEvent:!0,workflowInstanceDataFields:{FsId:t.ApplicationID||t.ApplicationId,FolderID:null,DocId:t.DocId,Subject:t.Assunto}}),console.log(t),n.Status="",e.next=4,this.modalController.create({component:me.M,cssClass:"model aside-modal search-submodal",componentProps:{fulltask:n,task:n}});case 4:return o=e.sent,e.next=7,o.present();case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}},e,this)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Y36(b.n),c.Y36(R.o),c.Y36(l.Br),c.Y36(he.i),c.Y36(Ce.$),c.Y36(l.IN),c.Y36(l.Dh),c.Y36(_.k))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-view-event"]],inputs:{profile:"profile",eventId:"eventId"},outputs:{viewEventDetailDismiss:"viewEventDetailDismiss"},features:[c.TTD],decls:36,vars:12,consts:[[1,"ion-no-border"],[1,"header-toolbar"],[1,"main-header","px-20",2,"overflow","unset !important"],[1,"title-content","d-flex"],[1,"left"],[1,"btn-no-color",3,"click"],["slot","end","src","assets/images/icons-arrow-arrow-left.svg"],[1,"middle",3,"click"],[1,"title"],[1,"div-icon","d-flex","align-base"],["slot","end","src","assets/images/icons-edit.svg",1,"edit"],["name","trash-sharp",1,"delete"],[1,"main-content"],[1,"upper-content"],[1,"content-location"],[1,"date"],[4,"ngIf"],[1,"content-details"],[1,"line"],[1,"middle-content"],["class","bottom-content width-100",4,"ngIf"],["class","label","style","background-color: #99e47b;",4,"ngIf"],["class","label","style","background-color: #958bfc;",4,"ngIf"],[1,"label",2,"background-color","#99e47b"],[1,"label",2,"background-color","#958bfc"],["class","label","style","background-color: #ffb703;",4,"ngIf"],["class","label","style","background-color: #f05d5e;",4,"ngIf"],[1,"label",2,"background-color","#ffb703"],[1,"label",2,"background-color","#f05d5e"],[1,"ion-no-margin","ion-no-padding"],[4,"ngFor","ngForOf"],["lines","none",1,"ion-no-margin","ion-no-padding"],[3,"innerHTML"],[1,"bottom-content","width-100"],[1,"width-100"],["class","width-100","lines","none","class","ion-no-margin ion-no-padding pa-0",4,"ngFor","ngForOf"],["lines","none",1,"ion-no-margin","ion-no-padding","pa-0"],[1,"width-100","d-flex","align-center"],[1,"flex-grow-1",3,"click"],[1,"attach-title-item","d-block"],[1,"span-left","d-block"],[1,"d-flex","pr-10"],[1,"span-right"],[1,"doc-options",3,"click"],["src","assets/images/icons-menu.svg"]],template:function(e,t){1&e&&(c.TgZ(0,"ion-header",0),c.TgZ(1,"ion-toolbar",1),c.TgZ(2,"div",2),c.TgZ(3,"div",3),c.TgZ(4,"div",4),c.TgZ(5,"button",5),c.NdJ("click",function(){return t.close()}),c._UZ(6,"ion-icon",6),c.qZA(),c.qZA(),c.TgZ(7,"div",7),c.NdJ("click",function(){return t.openOptions()}),c.TgZ(8,"p",8),c._uU(9),c.qZA(),c.qZA(),c.TgZ(10,"div",9),c.TgZ(11,"button",5),c.NdJ("click",function(){return t.editEvent()}),c._UZ(12,"ion-icon",10),c.qZA(),c.TgZ(13,"button",5),c.NdJ("click",function(){return t.deleteEvent()}),c._UZ(14,"ion-icon",11),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.TgZ(15,"ion-content"),c.TgZ(16,"div",12),c.TgZ(17,"div",13),c.TgZ(18,"div",14),c.TgZ(19,"span",15),c._uU(20),c.qZA(),c.YNc(21,Me,3,2,"div",16),c.YNc(22,ye,3,2,"div",16),c.qZA(),c.TgZ(23,"div",17),c.TgZ(24,"ion-label"),c.TgZ(25,"p"),c._uU(26),c.qZA(),c.YNc(27,Pe,4,8,"p",16),c.YNc(28,Ae,4,8,"p",16),c.YNc(29,Ee,2,0,"p",16),c.YNc(30,_e,2,0,"p",16),c.qZA(),c.qZA(),c.qZA(),c._UZ(31,"div",18),c.TgZ(32,"div",19),c.YNc(33,Te,6,1,"div",16),c.YNc(34,ke,6,1,"div",16),c.qZA(),c.YNc(35,Se,5,1,"div",20),c.qZA(),c.qZA()),2&e&&(c.xp6(9),c.Oqu(t.loadedEvent.Subject),c.xp6(11),c.Oqu(t.loadedEvent.Location),c.xp6(1),c.Q6J("ngIf","Agenda do Presidente da Rep\xfablica"==t.loadedEvent.Organizer.Name),c.xp6(1),c.Q6J("ngIf","Agenda do Ministro e Director do Gabinete do PR"==t.loadedEvent.Organizer.Name),c.xp6(4),c.Oqu(t.customDate),c.xp6(1),c.Q6J("ngIf",t.toDateString(t.loadedEvent.StartDate)==t.toDateString(t.loadedEvent.EndDate)),c.xp6(1),c.Q6J("ngIf",t.toDateString(t.loadedEvent.StartDate)!=t.toDateString(t.loadedEvent.EndDate)),c.xp6(1),c.Q6J("ngIf",!t.loadedEvent.IsRecurring),c.xp6(1),c.Q6J("ngIf",t.loadedEvent.IsRecurring),c.xp6(3),c.Q6J("ngIf",t.loadedEvent.Attendees),c.xp6(1),c.Q6J("ngIf",t.loadedEvent.Body.Text),c.xp6(1),c.Q6J("ngIf",t.loadedAttachments))},directives:[l.Gu,l.sr,l.gu,l.W2,s.O5,l.Q$,l.Ie,s.sg,l.q_],pipes:[s.uU],styles:["ion-content[_ngcontent-%COMP%]{--background:transparent;--padding-top:0px;--padding-start:20px;--padding-end:20px;font-size:18px;overflow:auto}.header-toolbar[_ngcontent-%COMP%]{--background:transparent;--opacity:1}.main-header[_ngcontent-%COMP%]{width:100%;height:100%;font-family:Roboto;border-top-left-radius:25px;border-top-right-radius:25px;background-color:#fff;padding:30px 0 0;color:#000;transform:translate3d(0,1px,0);overflow:auto}.main-header[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%]{width:100%!important;margin:0 auto;padding:0!important;background:#fff;overflow:auto}.main-header[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:37px;float:left;font-size:35px}.main-header[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%] .middle[_ngcontent-%COMP%]{width:calc(100% - 138.5px)!important;padding:0!important;float:left;margin:0!important;overflow:auto}.main-header[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%] .middle[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0!important}.main-header[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%] .header-icon-right[_ngcontent-%COMP%]{width:45px;font-size:45px;float:right}.main-header[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%] .div-icon[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;display:flex;align-items:flex-start;justify-content:flex-start;float:right;padding:1px!important;top:0!important;margin:0 0 0 15px!important}.main-header[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%] .div-icon[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{font-size:35px;float:left}.main-header[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%] .div-icon[_ngcontent-%COMP%] .delete[_ngcontent-%COMP%]{padding:7px;font-size:21px;color:#fff;background:#d30606;border-radius:20px;margin-left:10px}.main-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:25px}.main-content[_ngcontent-%COMP%]{width:100%;font-family:Roboto;margin:0 auto;background-color:#fff;padding:15px 0 0;overflow:auto!important}.main-content[_ngcontent-%COMP%] .upper-content[_ngcontent-%COMP%]{width:calc(100%-50px);margin-left:50px;font-size:18px;overflow:auto}.main-content[_ngcontent-%COMP%] .upper-content[_ngcontent-%COMP%] .content-location[_ngcontent-%COMP%]{width:100%;margin:0 auto!important;padding:0!important;overflow:auto}.main-content[_ngcontent-%COMP%] .upper-content[_ngcontent-%COMP%] .content-location[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{width:calc(100% - 105px);float:left}.main-content[_ngcontent-%COMP%] .upper-content[_ngcontent-%COMP%] .content-location[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-radius:20px;background:#ffb703;float:right!important;padding:5px 13.5px;color:#fff}.main-content[_ngcontent-%COMP%] .upper-content[_ngcontent-%COMP%] .location-detail[_ngcontent-%COMP%]{font-weight:700;font-size:18px;float:left;margin:5px 5px 5px 0}.main-content[_ngcontent-%COMP%] .upper-content[_ngcontent-%COMP%] .button-calendar-type[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{height:25px}.main-content[_ngcontent-%COMP%] .upper-content[_ngcontent-%COMP%] .button-edit-event[_ngcontent-%COMP%]{width:140px;height:44px;border-radius:22.5px;--background:#e0e9ee;--color:#061b52}.main-content[_ngcontent-%COMP%] .upper-content[_ngcontent-%COMP%] .content-details[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px}.main-content[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{width:100%!important;margin-top:15px;border-top:1px solid #d8d8d8}.main-content[_ngcontent-%COMP%] .middle-content[_ngcontent-%COMP%]{width:100%!important;overflow:auto}.main-content[_ngcontent-%COMP%] .middle-content[_ngcontent-%COMP%] .middle-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .main-content[_ngcontent-%COMP%] .middle-content[_ngcontent-%COMP%] .middle-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px}.main-content[_ngcontent-%COMP%] .bottom-content[_ngcontent-%COMP%]{margin:0 auto}.main-content[_ngcontent-%COMP%] .bottom-content[_ngcontent-%COMP%] .bottom-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;margin:0 0 0 10px}.main-content[_ngcontent-%COMP%] .bottom-content[_ngcontent-%COMP%] .attach-document[_ngcontent-%COMP%]{font-size:15px;color:#0d89d1;margin:5px 5px 5px 10px;padding:5px;float:left}.main-content[_ngcontent-%COMP%] .bottom-content[_ngcontent-%COMP%] .attach-icon[_ngcontent-%COMP%]{width:37px;font-size:35px;float:left}.main-content[_ngcontent-%COMP%] .bottom-content[_ngcontent-%COMP%] .attach-title-item[_ngcontent-%COMP%]{width:100%;font-size:15px;color:#0d89d1}.main-content[_ngcontent-%COMP%] .bottom-content[_ngcontent-%COMP%] .span-left[_ngcontent-%COMP%]{float:left;font-size:15x}.main-content[_ngcontent-%COMP%] .bottom-content[_ngcontent-%COMP%] .span-right[_ngcontent-%COMP%]{text-align:right;float:right;font-size:13px}.chat-popover[_ngcontent-%COMP%] .popover-content[_ngcontent-%COMP%]{width:100%!important;left:0!important;bottom:0!important;right:0!important;top:calc(100% - 160px)!important;max-height:160px;min-height:160px}.doc-options[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;width:35px;height:41px;align-items:center}"]}),t}(),Ie=r(3541),Ne=r(17071),Re=r(17352);function Je(e,t){1&e&&c._UZ(0,"ion-progress-bar",48)}function Ue(e,t){if(1&e){var n=c.EpF();c.TgZ(0,"button",49),c.NdJ("click",function(){return c.CHM(n),c.oxw().changeProfile()}),c._UZ(1,"ion-icon",50),c.qZA()}}function Le(e,t){if(1&e){var n=c.EpF();c.TgZ(0,"button",12),c.NdJ("click",function(){return c.CHM(n),c.oxw().changeProfile()}),c._UZ(1,"ion-icon",51),c.qZA()}}function Ye(e,t){if(1&e){var n=c.EpF();c.TgZ(0,"button",12),c.NdJ("click",function(){return c.CHM(n),c.oxw().viewEventsToApprove()}),c._UZ(1,"ion-icon",52),c.qZA()}}function He(e,t){if(1&e&&(c.TgZ(0,"div",53),c.TgZ(1,"div",54),c.TgZ(2,"div",55),c.TgZ(3,"div",56),c._uU(4),c.qZA(),c.qZA(),c.qZA(),c.qZA()),2&e){var n=t.view,o=t.row,i=t.col,a=c.oxw();c.xp6(1),c.ekj("with-event",n.dates[7*o+i].events.length),c.Q6J("className",a.currentDayEventDisplayBorder(n.dates,7*o+i)),c.xp6(3),c.hij(" ",n.dates[7*o+i].label,"")}}function Qe(e,t){if(1&e){var n=c.EpF();c.TgZ(0,"button",12),c.NdJ("click",function(){c.CHM(n);var e=c.oxw();return e.calendarHeight="75px",e.showCalendar=!1}),c._UZ(1,"ion-icon",57),c.qZA()}}function je(e,t){if(1&e){var n=c.EpF();c.TgZ(0,"button",12),c.NdJ("click",function(){c.CHM(n);var e=c.oxw();return e.calendarHeight="320px",e.showCalendar=!0}),c._UZ(1,"ion-icon",58),c.qZA()}}function Fe(e,t){1&e&&(c.TgZ(0,"span"),c._uU(1,"Hoje, \xa0"),c.qZA())}function Ge(e,t){if(1&e){var n=c.EpF();c.TgZ(0,"ul"),c.TgZ(1,"li",59),c.NdJ("click",function(){return c.CHM(n),c.oxw().changeSegment("Combinado")}),c._uU(2,"Todos"),c.qZA(),c.TgZ(3,"li",59),c.NdJ("click",function(){return c.CHM(n),c.oxw().changeSegment("Oficial")}),c._uU(4,"Oficial"),c.qZA(),c.TgZ(5,"li",59),c.NdJ("click",function(){return c.CHM(n),c.oxw().changeSegment("Pessoal")}),c._uU(6,"Pessoal"),c.qZA(),c.qZA()}if(2&e){var o=c.oxw();c.xp6(1),c.ekj("active","Combinado"==o.segment),c.xp6(2),c.ekj("active","Oficial"==o.segment),c.xp6(2),c.ekj("active","Pessoal"==o.segment)}}function Be(e,t){1&e&&(c.TgZ(0,"div",60),c.TgZ(1,"div",61),c.TgZ(2,"div"),c._uU(3,"Pr\xf3pria"),c.qZA(),c.qZA(),c.TgZ(4,"div",62),c.TgZ(5,"div",61),c.TgZ(6,"div"),c._uU(7,"Presidente da Rep\xfablica"),c.qZA(),c.qZA(),c.qZA(),c.qZA())}function ze(e,t){if(1&e&&(c.TgZ(0,"div",67),c._uU(1),c.qZA()),2&e){var n=c.oxw(2).$implicit,o=c.oxw();c.xp6(1),c.hij(" ",o.TimelineDayEvent(n.key)," ")}}function $e(e,t){if(1&e&&(c.TgZ(0,"div",78),c._uU(1),c.ALo(2,"date"),c.qZA()),2&e){var n=c.oxw(3).$implicit;c.xp6(1),c.Oqu(c.xi3(2,1,n.event.StartDate,"HH:mm"))}}function Ve(e,t){1&e&&(c.TgZ(0,"div",78),c._uU(1,"--"),c.qZA())}function We(e,t){if(1&e&&(c.TgZ(0,"div",79),c._uU(1),c.ALo(2,"date"),c.qZA()),2&e){var n=c.oxw(3).$implicit;c.xp6(1),c.Oqu(c.xi3(2,1,n.event.EndDate,"HH:mm"))}}function Xe(e,t){1&e&&(c.TgZ(0,"div",79),c._uU(1," -- "),c.qZA())}function Ke(e,t){1&e&&(c.TgZ(0,"div",78),c._uU(1," Todo "),c.qZA())}function et(e,t){1&e&&(c.TgZ(0,"div",80),c._uU(1," o dia "),c.qZA())}function tt(e,t){if(1&e&&(c.TgZ(0,"div",74),c.YNc(1,$e,3,4,"div",75),c.YNc(2,Ve,2,0,"div",75),c.YNc(3,We,3,4,"div",76),c.YNc(4,Xe,2,0,"div",76),c.YNc(5,Ke,2,0,"div",75),c.YNc(6,et,2,0,"div",77),c.qZA()),2&e){var n=c.oxw(2).$implicit;c.xp6(1),c.Q6J("ngIf",!n.endMany&&!n.middle),c.xp6(1),c.Q6J("ngIf",n.endMany&&!n.middle),c.xp6(1),c.Q6J("ngIf",!n.startMany&&!n.middle),c.xp6(1),c.Q6J("ngIf",n.startMany&&!n.middle),c.xp6(1),c.Q6J("ngIf",n.middle),c.xp6(1),c.Q6J("ngIf",n.middle)}}function nt(e,t){1&e&&(c.TgZ(0,"div",74),c.TgZ(1,"div",78),c._uU(2,"Todo"),c.qZA(),c.TgZ(3,"div",80),c._uU(4,"o dia"),c.qZA(),c.qZA())}function ot(e,t){if(1&e){var n=c.EpF();c.TgZ(0,"div",59),c.NdJ("click",function(){c.CHM(n);var e=c.oxw().$implicit;return c.oxw(3).eventClicked(e)}),c.YNc(1,tt,7,6,"div",70),c.YNc(2,nt,5,0,"div",70),c.TgZ(3,"div",71),c._uU(4),c.TgZ(5,"div",72),c._uU(6),c.qZA(),c.TgZ(7,"div",73),c.TgZ(8,"p"),c._uU(9),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&e){var o=c.oxw().$implicit;c.MT6("d-flex content-",o.profile,"-",o.event.CalendarName," mt-10 cursor-pointer width-100 "),c.xp6(1),c.Q6J("ngIf",!o.event.IsAllDayEvent),c.xp6(1),c.Q6J("ngIf",o.event.IsAllDayEvent),c.xp6(2),c.hij(" ",o.event.CalendarName," "),c.xp6(2),c.Oqu(o.event.Location),c.xp6(3),c.Oqu(o.event.Subject)}}function it(e,t){if(1&e&&(c.TgZ(0,"div",68),c.YNc(1,ot,10,9,"div",69),c.qZA()),2&e){var n=t.$implicit,o=c.oxw(3);c.xp6(1),c.Q6J("ngIf",o.viewEventMonth<=o.dateMonth(n)&&o.showEventBox(n))}}function at(e,t){if(1&e&&(c.TgZ(0,"div",64),c.YNc(1,ze,2,1,"div",65),c.YNc(2,it,2,1,"div",66),c.qZA()),2&e){var n=c.oxw().$implicit,o=c.oxw();c.xp6(1),c.Q6J("ngIf",o.shoeEventDay(n.value)),c.xp6(1),c.Q6J("ngForOf",n.value)}}function rt(e,t){if(1&e&&(c.TgZ(0,"div"),c.YNc(1,at,3,2,"div",63),c.qZA()),2&e){var n=t.$implicit,o=c.oxw();c.xp6(1),c.Q6J("ngIf",o.CalendarCurrentDay<=n.key)}}function ct(e,t){if(1&e&&(c.TgZ(0,"div",83),c._uU(1),c.qZA()),2&e){var n=c.oxw(2).$implicit,o=c.oxw(2);c.xp6(1),c.hij(" ",o.TimelineDayEvent(n.key)," ")}}function st(e,t){if(1&e&&(c.TgZ(0,"div",78),c._uU(1),c.ALo(2,"date"),c.qZA()),2&e){var n=c.oxw(3).$implicit;c.xp6(1),c.Oqu(c.xi3(2,1,n.event.StartDate,"HH:mm"))}}function dt(e,t){1&e&&(c.TgZ(0,"div",78),c._uU(1,"--"),c.qZA())}function lt(e,t){if(1&e&&(c.TgZ(0,"div",79),c._uU(1),c.ALo(2,"date"),c.qZA()),2&e){var n=c.oxw(3).$implicit;c.xp6(1),c.Oqu(c.xi3(2,1,n.event.EndDate,"HH:mm"))}}function pt(e,t){1&e&&(c.TgZ(0,"div",79),c._uU(1," -- "),c.qZA())}function ut(e,t){1&e&&(c.TgZ(0,"div",78),c._uU(1," Todo "),c.qZA())}function gt(e,t){1&e&&(c.TgZ(0,"div",80),c._uU(1," o dia "),c.qZA())}function vt(e,t){if(1&e&&(c.TgZ(0,"div",74),c.YNc(1,st,3,4,"div",75),c.YNc(2,dt,2,0,"div",75),c.YNc(3,lt,3,4,"div",76),c.YNc(4,pt,2,0,"div",76),c.YNc(5,ut,2,0,"div",75),c.YNc(6,gt,2,0,"div",77),c.qZA()),2&e){var n=c.oxw(2).$implicit;c.xp6(1),c.Q6J("ngIf",!n.endMany&&!n.middle),c.xp6(1),c.Q6J("ngIf",n.endMany&&!n.middle),c.xp6(1),c.Q6J("ngIf",!n.startMany&&!n.middle),c.xp6(1),c.Q6J("ngIf",n.startMany&&!n.middle),c.xp6(1),c.Q6J("ngIf",n.middle),c.xp6(1),c.Q6J("ngIf",n.middle)}}function mt(e,t){1&e&&(c.TgZ(0,"div",74),c.TgZ(1,"div",78),c._uU(2,"Todo"),c.qZA(),c.TgZ(3,"div",79),c._uU(4,"o dia"),c.qZA(),c.qZA())}function ft(e,t){if(1&e){var n=c.EpF();c.TgZ(0,"div",59),c.NdJ("click",function(){c.CHM(n);var e=c.oxw().$implicit;return c.oxw(4).eventClicked(e)}),c.YNc(1,vt,7,6,"div",70),c.YNc(2,mt,5,0,"div",70),c.TgZ(3,"div",71),c.TgZ(4,"div",72),c._uU(5),c.qZA(),c.TgZ(6,"div",73),c.TgZ(7,"p"),c._uU(8),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&e){var o=c.oxw().$implicit;c.Gre("d-flex content-mdgpr-",o.event.CalendarName," mt-10 cursor-pointer"),c.xp6(1),c.Q6J("ngIf",!o.event.IsAllDayEvent),c.xp6(1),c.Q6J("ngIf",o.event.IsAllDayEvent),c.xp6(3),c.Oqu(o.event.Location),c.xp6(3),c.Oqu(o.event.Subject)}}function ht(e,t){if(1&e&&(c.TgZ(0,"div",68),c.YNc(1,ft,9,7,"div",69),c.qZA()),2&e){var n=t.$implicit,o=c.oxw(4);c.xp6(1),c.Q6J("ngIf",o.viewEventMonth<=o.dateMonth(n)&&o.showEventBox(n))}}function Ct(e,t){if(1&e&&(c.TgZ(0,"div",64),c.YNc(1,ct,2,1,"div",82),c.YNc(2,ht,2,1,"div",66),c.qZA()),2&e){var n=c.oxw().$implicit,o=c.oxw(2);c.xp6(1),c.Q6J("ngIf",o.shoeEventDay(n.value)),c.xp6(1),c.Q6J("ngForOf",n.value)}}function xt(e,t){if(1&e&&(c.TgZ(0,"div"),c.YNc(1,Ct,3,2,"div",63),c.qZA()),2&e){var n=t.$implicit,o=c.oxw(2);c.xp6(1),c.Q6J("ngIf",o.CalendarCurrentDay<=n.key)}}function wt(e,t){if(1&e&&(c.TgZ(0,"div",81),c.YNc(1,xt,2,1,"div",36),c.ALo(2,"keyvalue"),c.qZA()),2&e){var n=c.oxw();c.xp6(1),c.Q6J("ngForOf",c.lcZ(2,1,n.TimelineMDList))}}function Mt(e,t){if(1&e&&(c.TgZ(0,"div",67),c._uU(1),c.qZA()),2&e){var n=c.oxw(2).$implicit,o=c.oxw();c.xp6(1),c.hij(" ",o.TimelineDayEvent(n.key)," ")}}function Zt(e,t){if(1&e&&(c.TgZ(0,"div",78),c._uU(1),c.ALo(2,"date"),c.qZA()),2&e){var n=c.oxw(3).$implicit;c.xp6(1),c.Oqu(c.xi3(2,1,n.event.StartDate,"HH:mm"))}}function bt(e,t){1&e&&(c.TgZ(0,"div",78),c._uU(1,"--"),c.qZA())}function yt(e,t){if(1&e&&(c.TgZ(0,"div",79),c._uU(1),c.ALo(2,"date"),c.qZA()),2&e){var n=c.oxw(3).$implicit;c.xp6(1),c.Oqu(c.xi3(2,1,n.event.EndDate,"HH:mm"))}}function Pt(e,t){1&e&&(c.TgZ(0,"div",79),c._uU(1," -- "),c.qZA())}function At(e,t){1&e&&(c.TgZ(0,"div",78),c._uU(1," Todo "),c.qZA())}function Et(e,t){1&e&&(c.TgZ(0,"div",80),c._uU(1," o dia "),c.qZA())}function _t(e,t){if(1&e&&(c.TgZ(0,"div",74),c.YNc(1,Zt,3,4,"div",75),c.YNc(2,bt,2,0,"div",75),c.YNc(3,yt,3,4,"div",76),c.YNc(4,Pt,2,0,"div",76),c.YNc(5,At,2,0,"div",75),c.YNc(6,Et,2,0,"div",77),c.qZA()),2&e){var n=c.oxw(2).$implicit;c.xp6(1),c.Q6J("ngIf",!n.endMany&&!n.middle),c.xp6(1),c.Q6J("ngIf",n.endMany&&!n.middle),c.xp6(1),c.Q6J("ngIf",!n.startMany&&!n.middle),c.xp6(1),c.Q6J("ngIf",n.startMany&&!n.middle),c.xp6(1),c.Q6J("ngIf",n.middle),c.xp6(1),c.Q6J("ngIf",n.middle)}}function Ot(e,t){1&e&&(c.TgZ(0,"div",74),c.TgZ(1,"div",78),c._uU(2,"Todo"),c.qZA(),c.TgZ(3,"div",79),c._uU(4,"o dia"),c.qZA(),c.qZA())}function Tt(e,t){if(1&e){var n=c.EpF();c.TgZ(0,"div",59),c.NdJ("click",function(){c.CHM(n);var e=c.oxw().$implicit;return c.oxw(3).eventClicked(e)}),c.YNc(1,_t,7,6,"div",70),c.YNc(2,Ot,5,0,"div",70),c.TgZ(3,"div",71),c.TgZ(4,"div",72),c._uU(5),c.qZA(),c.TgZ(6,"div",73),c.TgZ(7,"p"),c._uU(8),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&e){var o=c.oxw().$implicit;c.Gre("d-flex content-pr-",o.event.CalendarName," mt-10 cursor-pointer"),c.xp6(1),c.Q6J("ngIf",!o.event.IsAllDayEvent),c.xp6(1),c.Q6J("ngIf",o.event.IsAllDayEvent),c.xp6(3),c.Oqu(o.event.Location),c.xp6(3),c.Oqu(o.event.Subject)}}function kt(e,t){if(1&e&&(c.TgZ(0,"div",68),c.YNc(1,Tt,9,7,"div",69),c.qZA()),2&e){var n=t.$implicit,o=c.oxw(3);c.xp6(1),c.Q6J("ngIf",o.viewEventMonth<=o.dateMonth(n)&&o.showEventBox(n))}}function Dt(e,t){if(1&e&&(c.TgZ(0,"div",64),c.YNc(1,Mt,2,1,"div",65),c.YNc(2,kt,2,1,"div",66),c.qZA()),2&e){var n=c.oxw().$implicit,o=c.oxw();c.xp6(1),c.Q6J("ngIf",o.shoeEventDay(n.value)),c.xp6(1),c.Q6J("ngForOf",n.value)}}function St(e,t){if(1&e&&(c.TgZ(0,"div"),c.YNc(1,Dt,3,2,"div",63),c.qZA()),2&e){var n=t.$implicit,o=c.oxw();c.xp6(1),c.Q6J("ngIf",o.CalendarCurrentDay<=n.key)}}function qt(e,t){1&e&&(c.TgZ(0,"div",84),c._uU(1," Nenhum evento selecionado "),c.qZA())}function It(e,t){if(1&e){var n=c.EpF();c.TgZ(0,"app-new-event",85),c.NdJ("onAddEvent",function(e){return c.CHM(n),c.oxw().openAddEventDismiss(e)})("openAttendeesComponent",function(e){return c.CHM(n),c.oxw().openAttendeesComponent(e)})("cloneAllmobileComponent",function(){return c.CHM(n),c.oxw().cloneAllmobileComponent()})("clearContact",function(){return c.CHM(n),c.oxw().clearContact()})("setContact",function(e){return c.CHM(n),c.oxw().setContact(e)})("setIntervenient",function(e){return c.CHM(n),c.oxw().setIntervenient(e)})("setIntervenientCC",function(e){return c.CHM(n),c.oxw().setIntervenientCC(e)}),c.qZA()}if(2&e){var o=c.oxw();c.Q6J("profile",o.profile)("selectedSegment",o.segment)("taskParticipants",o.taskParticipants)("taskParticipantsCc",o.taskParticipantsCc)("selectedDate",o.eventSelectedDate)("eventAttendees",o.contacts)}}function Nt(e,t){if(1&e){var n=c.EpF();c.TgZ(0,"app-edit-event",86),c.NdJ("clearPostEvent",function(){return c.CHM(n),c.oxw().clearPostEvent})("clearContact",function(){return c.CHM(n),c.oxw().clearContact()})("openAttendeesComponent",function(e){return c.CHM(n),c.oxw().openAttendeesComponent(e)})("setContact",function(e){return c.CHM(n),c.oxw().setContact(e)})("closeComponent",function(){return c.CHM(n),c.oxw().closeComponentEditEventOrAdd()})("setIntervenient",function(e){return c.CHM(n),c.oxw().setIntervenient(e)})("setIntervenientCC",function(e){return c.CHM(n),c.oxw().setIntervenientCC(e)}),c.qZA()}if(2&e){var o=c.oxw();c.Q6J("taskParticipants",o.taskParticipants)("taskParticipantsCc",o.taskParticipantsCc)("profile",o.profile)("selectedSegment",o.segment)("postEvent",o.postEvent)}}function Rt(e,t){if(1&e){var n=c.EpF();c.TgZ(0,"app-view-event",87),c.NdJ("viewEventDetailDismiss",function(e){return c.CHM(n),c.oxw().viewEventDetailDismiss(e)}),c.qZA()}if(2&e){var o=c.oxw();c.Q6J("profile",o.profile)("eventId",o.selectedEventId)("eventAttendees",o.contacts)}}function Jt(e,t){if(1&e){var n=c.EpF();c.TgZ(0,"app-approve-event",88),c.NdJ("cloneAllmobileComponent",function(e){return c.CHM(n),c.oxw().viewEventDetailDismiss(e)})("closeEventToApprove",function(){return c.CHM(n),c.oxw().closeEventToApproveGoBack()})("AproveEventEditEvent",function(e){return c.CHM(n),c.oxw().AproveEventEditEvent(e)})("EditApproveEventDismiss",function(){return c.CHM(n),c.oxw().EditApproveEventDismiss()}),c.qZA()}if(2&e){var o=c.oxw();c.Udp("display",o.mobileComponent.transparentEventToApprove?"flex":"none"),c.Q6J("showComponent",o.mobileComponent.showEventToApprove)("componentTransparent",o.mobileComponent.transparentEventToApprove)("serialNumber",o.eventToaprove.serialNumber)("InstanceId",o.eventToaprove.InstanceId)("saveData",o.eventToaprove.saveData)("eventAttendees",o.contacts)}}function Ut(e,t){if(1&e){var n=c.EpF();c.TgZ(0,"app-edit-event-to-approve",89),c.NdJ("setContact",function(e){return c.CHM(n),c.oxw().setContact(e)})("clearContact",function(){return c.CHM(n),c.oxw().clearContact()})("openAttendeesComponent",function(e){return c.CHM(n),c.oxw().openAttendeesComponent(e)})("closeComponent",function(){return c.CHM(n),c.oxw().approveEventDismissGoBack()})("setIntervenient",function(e){return c.CHM(n),c.oxw().setIntervenient(e)})("setIntervenientCC",function(e){return c.CHM(n),c.oxw().setIntervenientCC(e)})("closeEventToApprove",function(){return c.CHM(n),c.oxw().closeEventToApproveGoBack()}),c.qZA()}if(2&e){var o=c.oxw();c.Q6J("taskParticipants",o.taskParticipants)("taskParticipantsCc",o.taskParticipantsCc)("saveData",o.eventToaprove.saveData)("serialNumber",o.eventToaprove.serialNumber)}}function Lt(e,t){if(1&e){var n=c.EpF();c.TgZ(0,"app-attendee-modal",90),c.NdJ("closeComponent",function(){return c.CHM(n),c.oxw().GoBackEditOrAdd()})("setContact",function(e){return c.CHM(n),c.oxw().setContact(e)})("setIntervenient",function(e){return c.CHM(n),c.oxw().setIntervenient(e)})("setIntervenientCC",function(e){return c.CHM(n),c.oxw().setIntervenientCC(e)}),c.qZA()}if(2&e){var o=c.oxw();c.Q6J("footer",!0)("adding",o.adding)("taskParticipants",o.taskParticipants)("taskParticipantsCc",o.taskParticipantsCc)}}var Yt,Ht=[{path:"",component:(Yt=function(){function t(n,o,i,a,r,c,s,d,l,p,u){var g=this;e(this,t),this.alertCtrl=n,this.locale=o,this.modalCtrl=i,this.eventService=a,this.router=r,this.alertController=c,this.sanitizer=s,this.dateAdapter=l,this.toastService=p,this.calendarService=u,this.view=C.wr.Day,this.viewDate=new Date,this.weekStartsOn=x.sb.MONDAY,this.weekendDays=[x.sb.FRIDAY,x.sb.SATURDAY],this.CalendarView=C.wr,this.events=[],this.TimelinePR=[],this.TimelinePRList={},this.TimelineMD=[],this.TimelineMDList={},this.showTimelinePR=!1,this.showTimelineMD=!1,this.timelineFilterState="Todos",this.showTimeline=!0,this.eventSource=[],this.calendar={mode:"month",currentDate:new Date},this.eventSelectedDate=new Date,this.taskParticipants=[],this.taskParticipantsCc=[],this.adding="intervenient",this.segment="Combinado",this.showEventEditOrOpen="",this.eventListBoxComponent=new Z,this.mobileComponent={showAddNewEvent:!1,showEditEvent:!1,showEventDetails:!1,showEventList:!1,transparentEventList:!1,transparentEventToApprove:!1,showEventToApprove:!1,showAttendees:!1,showAttendeeModal:!1,showEditEventToApprove:!1},this.eventToaprove={back:!1,serialNumber:"",saveData:{}},this.onCurrentChanged=function(e){g.timelineDate=(0,v.momentG)(new Date(e),"dd MMMM yyyy"),g.viewDate=new Date(e),g.eventSelectedDate=new Date(e)},this.onTimeSelected=function(e){g.eventSelectedDate2=e.selectedTime},this.dateAdapter.setLocale("es"),this.locale="pt",this.loggeduser=d.ValidatedUser,this.calendarHeight="320px",this.showCalendar=!0,this.timelineDate=(0,v.momentG)(new Date,"dd MMMM yyyy"),this.showLoader=!1,this.showTimelineFilterState=!1,this.showTimeline=!1,"MDGPR"==this.loggeduser.Profile&&(this.mobileComponent.showEventList=!0),setTimeout(function(){try{g.myCal.update(),g.myCal.loadEvents()}catch(e){}g.updateEventListBox()},1e3)}return n(t,[{key:"setView",value:function(e){this.view=e}},{key:"ngOnInit",value:function(){var e=this;this.profile="mdgpr";var t=window.location.pathname,n=0;this.router.events.forEach(function(o){o instanceof p.m2&&o.url==t&&(null==e.segment&&(e.segment="Combinado"),0!=n&&e.loadRangeEvents(e.rangeStartDate,e.rangeEndDate),n++)}),window.onresize=function(t){window.innerWidth<=1024&&e.cloneAllmobileComponent()}}},{key:"next",value:function(){this.myCal.slideNext(),this.myCal.loadEvents(),this.myCal.update()}},{key:"back",value:function(){this.myCal.slidePrev(),this.myCal.loadEvents(),this.myCal.update()}},{key:"onViewTitleChanged",value:function(e){this.viewTitle=e}},{key:"eventClicked",value:function(e){this.setIntervenient([]),this.setIntervenientCC([]),this.clearPostEvent(),this.IsEvent="view",this.viewingEventObject=e,this.eventSelectedDate=e.start,this.selectedEventId=e.id,this.cloneAllmobileComponent(),this.showEventEditOrOpen="edit",window.innerWidth<=1024?this.viewEventDetail(e.id):(this.cloneAllmobileComponent(),this.mobileComponent.showEventDetails=!0)}},{key:"onEventSelected",value:function(e){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.router.navigate(["/home/agenda",e.event.EventId,"agenda"]);case 1:case"end":return t.stop()}},t,this)}))}},{key:"dropDownChangeDate",value:function(e){}},{key:"onRangeChanged",value:function(e){this.rangeStartDate=e.startTime,this.rangeEndDate=e.endTime,this.loadRangeEvents(this.rangeStartDate,this.rangeEndDate);try{this.myCal.update(),this.myCal.loadEvents()}catch(t){}this.updateEventListBox()}},{key:"currentDayEventDisplayBorder",value:function(e,t){var n=e[t].events;if(0==n.length)return"";if(n.length>=1){var o=[];return n.forEach(function(e){o.push("calendar-event-border calendar-".concat("md"==e.profile?"mdgpr":"pr","-event-type-").concat(e.event.CalendarName))}),o.join(" ")}return""}},{key:"CalendarCurrentDay",get:function(){return this.viewDate.getDate()}},{key:"timelineIsCurrentDate",value:function(){return(0,v.momentG)(new Date,"dd MMMM yyyy","pt")==(0,v.momentG)(this.eventSelectedDate,"dd MMMM yyyy","pt")}},{key:"momentG",value:function(e,t,n){return(0,v.momentG)(e,t,n)}},{key:"timelineFilter",value:function(e,t,n){this.timelineFilterState=e;var o=[];return this.showTimelineFilterState=!1,t.forEach(function(e,t){var i=new Date(e.StartDate).getHours().toLocaleString(),a=new Date(e.EndDate).getHours().toLocaleString();o.push({start:(0,f.Z)((0,h.Z)(new Date(e.StartDate),0),parseInt(i)),end:(0,f.Z)((0,h.Z)(new Date(e.EndDate),0),parseInt(a)),color:{primary:"#0000",secondary:"#0000"},id:e.EventId,index:t,profile:n,CalendarName:e.CalendarName,event:e,Subject:e.Subject})}),o}},{key:"eventFilter",value:function(){}},{key:"TimelineDayEvent",value:function(e){return e.padStart(2,"0")+" "+this.viewTitle}},{key:"calendarDay",get:function(){return new Date(this.timelineDate).getDate().toString().padStart(2,"0")}},{key:"EventTretment",value:function(e){var t=e.startTime,n=e.endTime,o=new Date(t).toLocaleDateString(),i=new Date(n).toLocaleDateString(),a=new Date(n).getMinutes(),r=new Date(n).getHours();return o<i&&a+r==0?((n=new Date(n)).setSeconds(n.getSeconds()-1),new Date(n)):new Date(n)}},{key:"loadRangeEvents",value:function(e,t){var n=this;if(this.showLoader=!0,window.innerWidth<800)switch(this.segment){case"Combinado":"mdgpr"==this.profile&&"MDGPR"==this.loggeduser.Profile?this.eventService.getAllMdEvents((0,v.momentG)(new Date(e),"yyyy-MM-dd HH:mm:ss"),(0,v.momentG)(new Date(t),"yyyy-MM-dd 23:59:59")).then(function(o){console.log(o),n.calendarService.removeRange(e,t,"md"),n.calendarService.pushEvent(o,"md"),n.TimelineMDList=n.eventListBoxComponent.list(n.calendarService.eventSource,"md",n.rangeStartDate,n.rangeEndDate,"date"),n.myCal.update(),n.myCal.loadEvents(),n.showLoader=!1,n.showTimeline=!0}).finally(function(){n.showLoader=!1}):"pr"==this.profile&&"MDGPR"==this.loggeduser.Profile?this.eventService.getAllSharedEvents((0,v.momentG)(new Date(e),"yyyy-MM-dd HH:mm:ss"),(0,v.momentG)(new Date(t),"yyyy-MM-dd 23:59:59")).then(function(o){n.calendarService.removeRange(e,t,"pr"),n.calendarService.pushEvent(o,"pr"),n.TimelineMDList=n.eventListBoxComponent.list(n.calendarService.eventSource,"pr",n.rangeStartDate,n.rangeEndDate,"date"),n.myCal.update(),n.myCal.loadEvents(),n.showLoader=!1,n.showTimeline=!0}).finally(function(){n.showLoader=!1}):"PR"==this.loggeduser.Profile&&this.eventService.getAllPrEvents((0,v.momentG)(new Date(e),"yyyy-MM-dd HH:mm:ss"),(0,v.momentG)(new Date(t),"yyyy-MM-dd 23:59:59")).then(function(o){n.calendarService.removeRange(e,t,"pr"),n.calendarService.pushEvent(o,"pr"),n.TimelineMDList=n.eventListBoxComponent.list(n.calendarService.eventSource,"pr",n.rangeStartDate,n.rangeEndDate,"date"),n.myCal.update(),n.myCal.loadEvents(),n.showLoader=!1,n.showTimeline=!0}).finally(function(){n.showLoader=!1});break;case"Pessoal":"mdgpr"==this.profile&&"MDGPR"==this.loggeduser.Profile?this.eventService.getAllMdPessoalEvents((0,v.momentG)(new Date(e),"yyyy-MM-dd HH:mm:ss"),(0,v.momentG)(new Date(t),"yyyy-MM-dd 23:59:59")).then(function(o){n.calendarService.removeRange(e,t,"md");var i=o.filter(function(e){return"Pessoal"==e.CalendarName});n.calendarService.pushEvent(i,"md"),n.TimelineMDList=n.eventListBoxComponent.list(n.calendarService.eventSource,"md",n.rangeStartDate,n.rangeEndDate,"date"),n.myCal.update(),n.myCal.loadEvents(),n.showLoader=!1,n.showTimeline=!0}).finally(function(){n.showLoader=!1}):this.eventService.getAllPrEvents((0,v.momentG)(new Date(e),"yyyy-MM-dd HH:mm:ss"),(0,v.momentG)(new Date(t),"yyyy-MM-dd 23:59:59")).then(function(o){n.calendarService.removeRange(e,t,"pr");var i=o.filter(function(e){return"Pessoal"==e.CalendarName});n.calendarService.pushEvent(i,"pr"),n.TimelineMDList=n.eventListBoxComponent.list(n.calendarService.eventSource,"pr",n.rangeStartDate,n.rangeEndDate,"date"),n.myCal.update(),n.myCal.loadEvents(),n.showLoader=!1,n.showTimeline=!0}).finally(function(){n.showLoader=!1});break;case"Oficial":"mdgpr"==this.profile&&"MDGPR"==this.loggeduser.Profile?this.eventService.getAllMdEvents((0,v.momentG)(new Date(e),"yyyy-MM-dd HH:mm:ss"),(0,v.momentG)(new Date(t),"yyyy-MM-dd 23:59:59")).then(function(o){n.calendarService.removeRange(e,t,"md");var i=o.filter(function(e){return"Oficial"==e.CalendarName});n.calendarService.pushEvent(i,"md"),n.TimelineMDList=n.eventListBoxComponent.list(n.calendarService.eventSource,"md",n.rangeStartDate,n.rangeEndDate,"date"),n.myCal.update(),n.myCal.loadEvents(),n.showLoader=!1,n.showTimeline=!0}).finally(function(){n.showLoader=!1}):this.eventService.getAllPrEvents((0,v.momentG)(new Date(e),"yyyy-MM-dd HH:mm:ss"),(0,v.momentG)(new Date(t),"yyyy-MM-dd 23:59:59")).then(function(o){n.calendarService.removeRange(e,t,"pr");var i=o.filter(function(e){return"Oficial"==e.CalendarName});n.calendarService.pushEvent(i,"pr"),n.TimelineMDList=n.eventListBoxComponent.list(n.calendarService.eventSource,"pr",n.rangeStartDate,n.rangeEndDate,"date"),n.myCal.update(),n.myCal.loadEvents(),n.showLoader=!1,n.showTimeline=!0}).finally(function(){n.showLoader=!1})}else{var o=0;"MDGPR"==this.loggeduser.Profile?(this.eventService.getAllMdEvents((0,v.momentG)(new Date(e),"yyyy-MM-dd HH:mm:ss"),(0,v.momentG)(new Date(t),"yyyy-MM-dd 23:59:59")).then(function(i){var a=i;n.calendarService.removeRange(e,t,"md"),n.calendarService.pushEvent(a,"md"),n.TimelineMDList=n.eventListBoxComponent.list(n.calendarService.eventSource,"md",n.rangeStartDate,n.rangeEndDate,"date"),n.myCal.update(),n.myCal.loadEvents(),n.showTimelineMD=!0,2==++o&&(n.showLoader=!1)}).finally(function(){2==++o&&(n.showLoader=!1)}),this.eventService.getAllSharedEvents((0,v.momentG)(new Date(e),"yyyy-MM-dd HH:mm:ss"),(0,v.momentG)(new Date(t),"yyyy-MM-dd 23:59:59")).then(function(i){var a=i;n.calendarService.removeRange(e,t,"pr"),n.calendarService.pushEvent(a,"pr"),n.TimelinePRList=n.eventListBoxComponent.list(n.calendarService.eventSource,"pr",n.rangeStartDate,n.rangeEndDate,"date"),n.myCal.update(),n.myCal.loadEvents(),n.showTimelinePR=!0,2!=++o&&"PR"!=n.loggeduser.Profile||(n.showLoader=!1)}).finally(function(){2==++o&&(n.showLoader=!1)})):this.eventService.getAllPrEvents((0,v.momentG)(new Date(e),"yyyy-MM-dd HH:mm:ss"),(0,v.momentG)(new Date(t),"yyyy-MM-dd 23:59:59")).then(function(i){var a;a="Oficial"==n.segment?i.filter(function(e){return"Oficial"==e.CalendarName}):"Pessoal"==n.segment?i.filter(function(e){return"Pessoal"==e.CalendarName}):i,n.calendarService.removeRange(e,t,"pr"),n.calendarService.pushEvent(a,"pr"),n.TimelinePRList=n.eventListBoxComponent.list(n.calendarService.eventSource,"pr",n.rangeStartDate,n.rangeEndDate,"date"),n.myCal.update(),n.myCal.loadEvents(),n.showTimelinePR=!0,1!=++o&&"PR"!=n.loggeduser.Profile||(n.showLoader=!1)}).finally(function(){1!=o&&"PR"!=n.loggeduser.Profile||(n.showLoader=!1)})}}},{key:"updateEventListBox",value:function(){this.TimelinePRList=this.eventListBoxComponent.list(this.calendarService.eventSource,"pr",this.rangeStartDate,this.rangeEndDate,"date"),this.TimelineMDList=this.eventListBoxComponent.list(this.calendarService.eventSource,"md",this.rangeStartDate,this.rangeEndDate,"date")}},{key:"eventListBox",value:function(e,t){var n=this,o={};return e.forEach(function(e){var t=new Date(e.start),i=n.EventTretment({startTime:t,endTime:e.end}),a=new Date(e.start).getDate().toString().padStart(2,"0");if(e.manyDays=!1,e.todayOnly=new Date(e.start).toLocaleDateString()==new Date(e.end).toLocaleDateString(),o.hasOwnProperty(a)||(o[a]=[]),new Date(t).toLocaleDateString()!=new Date(i).toLocaleDateString()){var r=Math.abs(i-t),c=Math.ceil(r/864e5);if(c<=150&&!e.event.IsAllDayEvent)if(c>=1){var s=Object.assign({},{title:e.title,start:e.start,end:e.end,color:e.color,id:e.id,index:e.index,profile:e.profile,CalendarName:e.CalendarName,event:{Subject:e.event.Subject,StartDate:e.event.StartDate,EndDate:e.event.EndDate,Location:e.event.Location,EventId:e.event.EventId,CalendarName:e.event.CalendarName},startMany:!0,endMany:!1,middle:!1});for(o[a].push(s);t.getFullYear()!=i.getFullYear()||t.getMonth()!=i.getMonth()||t.getDate()!=i.getDate();){var d=t.setDate(t.getDate()+1),l=new Date(d).getDate().toString().padStart(2,"0");if(e.other=!0,e.start=d,o.hasOwnProperty(l)||(o[l]=[]),t.getFullYear()==i.getFullYear()&&t.getMonth()==i.getMonth()&&t.getDate()==i.getDate()){var p=Object.assign({},{title:e.title,start:e.start,end:e.end,color:e.color,id:e.id,index:e.index,profile:e.profile,CalendarName:e.CalendarName,event:{Subject:e.event.Subject,StartDate:e.event.StartDate,EndDate:e.event.EndDate,Location:e.event.Location,EventId:e.event.EventId,CalendarName:e.event.CalendarName},Subject:e.Subject,startMany:!1,endMany:!0,middle:!1});o[l].push(p)}else{var u=Object.assign({},{title:e.title,start:e.start,end:e.end,color:e.color,id:e.id,index:e.index,profile:e.profile,CalendarName:e.CalendarName,event:{Subject:e.event.Subject,StartDate:e.event.StartDate,EndDate:e.event.EndDate,Location:e.event.Location,EventId:e.event.EventId,CalendarName:e.event.CalendarName},Subject:e.Subject,startMany:!1,endMany:!0,middle:!0});o[l].push(u)}}}else o[a].push(e);else o[a].push(e)}o[a].push(e)}),setTimeout(function(){document.querySelectorAll(".EventListBox-container .EventListBox").forEach(function(e){e.parentElement.style.display=0==e.childElementCount?"none":"block"})},10),o}},{key:"viewEventMonth",get:function(){return this.viewDate.getMonth()}},{key:"dateMonth",value:function(e){return new Date(e.start).getMonth()}},{key:"eventListVisible",value:function(e){return(0,v.momentG)(e,"MMMM yyyy")==(0,v.momentG)(this.calendar.currentDate,"MMMM yyyy")}},{key:"actions",value:function(){}},{key:"doRefresh",value:function(e){this.loadRangeEvents(this.rangeStartDate,this.rangeEndDate),setTimeout(function(){e.target.complete()},250)}},{key:"showAlert",value:function(){this.alertController.presentAlert("Funcionalidade em desenvolvimento.")}},{key:"changeProfile",value:function(){"mdgpr"==this.profile?(this.profile="pr",this.loadRangeEvents(this.rangeStartDate,this.rangeEndDate),this.TimelineMDList=this.eventListBoxComponent.list(this.calendarService.eventSource,"pr",this.rangeStartDate,this.rangeEndDate,"date")):(this.profile="mdgpr",this.loadRangeEvents(this.rangeStartDate,this.rangeEndDate),this.TimelineMDList=this.eventListBoxComponent.list(this.calendarService.eventSource,"md",this.rangeStartDate,this.rangeEndDate,"date"))}},{key:"openAddEvent",value:function(){return(0,u.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.cloneAllmobileComponent();case 2:if(this.showEventEditOrOpen="add",this.IsEvent="add",!(window.innerWidth<=1024)){e.next=13;break}return e.next=7,this.modalCtrl.create({component:M.h,componentProps:{segment:this.segment,profile:this.profile,eventSelectedDate:this.eventSelectedDate},cssClass:"modal modal-desktop",backdropDismiss:!1});case 7:return t=e.sent,e.next=10,t.present();case 10:t.onDidDismiss().then(function(e){n.openAddEventDismiss(e.data)}),e.next=14;break;case 13:this.mobileComponent.showAddNewEvent=!0;case 14:case"end":return e.stop()}},e,this)}))}},{key:"openEditEvent",value:function(){this.showEventEditOrOpen="edit"}},{key:"openAddEventDismiss",value:function(e){null!=e.Subject&&(this.myCal.update(),this.myCal.loadEvents(),this.loadRangeEvents(this.rangeStartDate,this.rangeEndDate)),this.cloneAllmobileComponent()}},{key:"viewEventDetail",value:function(e){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.router.navigate(["/home/agenda",e,"agenda"]);case 1:case"end":return t.stop()}},t,this)}))}},{key:"viewEventDetailDismiss",value:function(e){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.cloneAllmobileComponent();case 2:"edit"==e.type&&(this.selectedEvent=e.event,this.postEvent=e.event,this.mobileComponent.showEditEvent=!0),this.loadRangeEvents(this.rangeStartDate,this.rangeEndDate);case 4:case"end":return t.stop()}},t,this)}))}},{key:"viewEventsToApprove",value:function(){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.cloneAllmobileComponent();case 2:window.innerWidth<=801?this.router.navigate(["/home/agenda/event-list"]):(this.cloneAllmobileComponent(),this.mobileComponent.transparentEventList=!1,this.mobileComponent.showEventList=!0);case 3:case"end":return e.stop()}},e,this)}))}},{key:"approveEventDismissGoBack",value:function(){window["temp.path:/shared/agenda/edit-event-to-approve.ts"]={},this.cloneAllmobileComponent(),this.mobileComponent.showEventToApprove=!0,this.mobileComponent.showEditEventToApprove=!1}},{key:"approveEventDismiss",value:function(e){var t=e.saveData,n=e.serialNumber,o=e.action;window["temp.path:/shared/agenda/edit-event-to-approve.ts"]={},"Aprovar"==o&&(this.eventToaprove={back:!0,saveData:t,serialNumber:n,action:o,InstanceId:t.workflowInstanceDataFields.InstanceId||""},this.mobileComponent.showEventToApprove=!0,this.mobileComponent.showEventList=!1),this.showEventEditOrOpen="eventoToApprove"}},{key:"closeEventToApprove",value:function(){1==this.eventToaprove.back&&1==this.mobileComponent.showEventList?(this.mobileComponent.transparentEventList=!1,this.mobileComponent.showEventToApprove=!1,this.eventToaprove.back=!1):(this.mobileComponent.showEventToApprove=!1,this.mobileComponent.showEventList=!1)}},{key:"closeEventToApproveGoBack",value:function(){window.innerWidth<=801?this.router.navigate(["/home/agenda/event-list"]):(this.cloneAllmobileComponent(),this.mobileComponent.transparentEventList=!1,this.mobileComponent.showEventList=!0)}},{key:"EditApproveEventDismiss",value:function(){this.cloneAllmobileComponent(),this.mobileComponent.showEditEventToApprove=!0}},{key:"cloneAllmobileComponent",value:function(){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.mobileComponent.showAddNewEvent=!1,this.mobileComponent.showEditEvent=!1,this.mobileComponent.showEventDetails=!1,this.mobileComponent.showEventList=!1,this.mobileComponent.showEventToApprove=!1,this.mobileComponent.showAttendees=!1,this.mobileComponent.showAttendeeModal=!1,this.mobileComponent.showEditEventToApprove=!1,this.closeEventToApprove();case 1:case"end":return e.stop()}},e,this)}))}},{key:"AproveEventEditEvent",value:function(e){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.postEvent=e,this.mobileComponent.transparentEventToApprove=!0,this.mobileComponent.showAddNewEvent=!0;case 1:case"end":return t.stop()}},t,this)}))}},{key:"openAttendeesComponent",value:function(e){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.adding=e.type,this.cloneAllmobileComponent(),this.mobileComponent.showAttendees=!0;case 1:case"end":return t.stop()}},t,this)}))}},{key:"clearContact",value:function(){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.contacts=[];case 1:case"end":return e.stop()}},e,this)}))}},{key:"setContact",value:function(e){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.contacts=e;case 1:case"end":return t.stop()}},t,this)}))}},{key:"openAttendeeModal",value:function(){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.cloneAllmobileComponent(),this.mobileComponent.showAttendeeModal=!0;case 1:case"end":return e.stop()}},e,this)}))}},{key:"GoBackEditOrAdd",value:function(){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:"edit"==this.showEventEditOrOpen?(this.cloneAllmobileComponent(),this.mobileComponent.showEditEvent=!0):"add"==this.showEventEditOrOpen?(this.cloneAllmobileComponent(),this.mobileComponent.showAddNewEvent=!0):"eventoToApprove"==this.showEventEditOrOpen&&(this.cloneAllmobileComponent(),this.mobileComponent.showEditEventToApprove=!0);case 1:case"end":return e.stop()}},e,this)}))}},{key:"closeComponentEditEventOrAdd",value:function(){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(this.IsEvent="edit")?this.eventClicked(this.viewingEventObject):(this.IsEvent="add")&&this.cloneAllmobileComponent();case 1:case"end":return e.stop()}},e,this)}))}},{key:"EventToApproveGoBack",value:function(){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)}))}},{key:"setIntervenient",value:function(e){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.taskParticipants=(0,m.removeDuplicate)(e);case 1:case"end":return t.stop()}},t,this)}))}},{key:"setIntervenientCC",value:function(e){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.taskParticipantsCc=(0,m.removeDuplicate)(e);case 1:case"end":return t.stop()}},t,this)}))}},{key:"setAdding",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"intervenient";return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.adding=e;case 1:case"end":return t.stop()}},t,this)}))}},{key:"clearPostEvent",value:function(){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.postEvent=!1;case 1:case"end":return e.stop()}},e,this)}))}},{key:"changeSegment",value:function(e){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.segment=e,this.timelineFilterState="Combinado"==e?"Todos":e,this.showTimelineFilterState=!1,setTimeout(function(){document.querySelectorAll(".EventListBox-container .EventListBox").forEach(function(e){e.parentElement.style.display=0==e.childElementCount?"none":"block"})},10),setTimeout(function(){document.querySelectorAll(".EventListBox-container .EventListBox").forEach(function(e){e.parentElement.style.display=0==e.childElementCount?"none":"block"})},100);case 1:case"end":return t.stop()}},t,this)}))}},{key:"showEventBox",value:function(e){return(0,u.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.event.CalendarName==this.segment||"Combinado"==this.segment);case 1:case"end":return t.stop()}},t,this)}))}},{key:"shoeEventDay",value:function(e){var t=this;return"Combinado"==this.segment||0!=e.filter(function(e){return e.CalendarName==t.segment}).length}}]),t}(),Yt.\u0275fac=function(e){return new(e||Yt)(c.Y36(l.Br),c.Y36(c.soG),c.Y36(l.IN),c.Y36(b.n),c.Y36(p.F0),c.Y36(y.c),c.Y36(P.H7),c.Y36(A.e),c.Y36(E._A),c.Y36(_.k),c.Y36(k))},Yt.\u0275cmp=c.Xpm({type:Yt,selectors:[["app-agenda"]],viewQuery:function(e,t){var n;1&e&&c.Gf(g.eV,5),2&e&&c.iGM(n=c.CRH())&&(t.myCal=n.first)},features:[c._Bn([{provide:C.m$,useClass:w}])],decls:81,vars:44,consts:[[1,"ion-no-border"],["name","refresher","slot","fixed",3,"ionRefresh"],["id","timeline-conteiner agenda-container",1,"timeline"],[1,"d-flex","container-wrapper"],[1,"calendar-timeline","d-flex","flex-column","height-100","bg-blue"],[1,"calendar-wrapper"],[1,"main-content"],["type","indeterminate",4,"ngIf"],[1,"calendar-container"],[1,"ion-justify-content-between","calendar-tool-tip"],[1,"ion-align-items-center"],[1,"arrow"],[1,"btn-no-color",3,"click"],["slot","icon-only","src","assets/images/icons-calendar-arrow-left.svg"],[1,"capitaliseText"],[1,"arrow",3,"click"],["slot","icon-only","src","assets/images/icons-calendar-arrow-right.svg"],["class","d-md-none btn-no-color",3,"click",4,"ngIf"],["class","btn-no-color",3,"click",4,"ngIf"],[1,"btn-no-color","cy-add-event",3,"click"],["src","assets/images/icons-add-new-event.svg",1,"right-icons"],[1,"custom-calendar-header"],["queryMode","remote","startHour","6","endHour","20","step","30","startingDayMonth","1","noEventsLabel","Sem Eventos","allDayLabel","Todo o dia",1,"calendar-component",3,"eventSource","calendarMode","currentDate","monthviewDisplayEventTemplate","onEventSelected","onTitleChanged","onRangeChanged","onCurrentDateChanged"],["template",""],[1,"calendar-border"],[1,"timeline-header","pb-0","ion-justify-content-between","ion-align-items-center","currente-date-timelien"],[1,"timeline-date","align-center"],[4,"ngIf"],[1,"filter","ion-align-items-center"],[1,"filter-name"],[1,"arrow-down","btn-no-color",3,"click"],["src","assets/images/icons-arrow-arrow-down.svg"],["class","d-none d-md-flex",4,"ngIf"],[1,"timeline-wrapper","flex-grow-1","height-100"],[1,"height-100"],[1,"ss-timeline","timeline-mobile","flex-grow-1","d-md-none","text-black","height-100","width-100","overflow-y-auto"],[4,"ngFor","ngForOf"],["class","fs-timeline flex-grow-1 d-none d-md-block d-md-block text-black pr-20 width-100 height-100 overflow-y-auto",4,"ngIf"],[1,"sd-timeline","flex-grow-1","d-none","d-md-block","timeline-md","text-black","pl-20","pr-20","width-100","height-100","overflow-y-auto"],[1,"event-details","bg-blue"],["class","text-black nothing-to-show",4,"ngIf"],[3,"profile","selectedSegment","taskParticipants","taskParticipantsCc","selectedDate","eventAttendees","onAddEvent","openAttendeesComponent","cloneAllmobileComponent","clearContact","setContact","setIntervenient","setIntervenientCC",4,"ngIf"],[3,"taskParticipants","taskParticipantsCc","profile","selectedSegment","postEvent","clearPostEvent","clearContact","openAttendeesComponent","setContact","closeComponent","setIntervenient","setIntervenientCC",4,"ngIf"],[3,"profile","eventId","eventAttendees","viewEventDetailDismiss",4,"ngIf"],[3,"profile","showComponent","approveEventDismiss","cloneAllmobileComponent"],["class","d-flex flex-column",3,"display","showComponent","componentTransparent","serialNumber","InstanceId","saveData","eventAttendees","cloneAllmobileComponent","closeEventToApprove","AproveEventEditEvent","EditApproveEventDismiss",4,"ngIf"],["class","d-flex flex-column height-100",3,"taskParticipants","taskParticipantsCc","saveData","serialNumber","setContact","clearContact","openAttendeesComponent","closeComponent","setIntervenient","setIntervenientCC","closeEventToApprove",4,"ngIf"],["class","d-flex flex-column height-100",3,"footer","adding","taskParticipants","taskParticipantsCc","closeComponent","setContact","setIntervenient","setIntervenientCC",4,"ngIf"],["type","indeterminate"],[1,"d-md-none","btn-no-color",3,"click"],["src","assets/images/icons-profile-calendar-md.svg",1,"right-icons"],["src","assets/images/icons-profile-calendar-pr.svg",1,"right-icons","d-md-none"],["src","assets/images/icons-received-event.svg",1,"right-icons"],[1,"day-container"],[1,"d-flex","justify-center","align-center",3,"className"],[1,"day"],[1,"number"],["src","assets/images/icons-collaps-up.svg",1,"collaps","btn-no-color"],["src","assets/images/icons-collaps-down.svg",1,"collaps","btn-no-color"],[3,"click"],[1,"d-none","d-md-flex"],[1,"flex-grow-1","text-grey","d-flex","justify-center","align-center"],[1,"flex-grow-1","text-black"],["class","EventListBox-container",4,"ngIf"],[1,"EventListBox-container"],["class","day mt-10",4,"ngIf"],["class","EventListBox",4,"ngFor","ngForOf"],[1,"day","mt-10"],[1,"EventListBox"],[3,"class","click",4,"ngIf"],["class","schedule-time",4,"ngIf"],[1,"schedule-details"],[1,"location"],[1,"description"],[1,"schedule-time"],["class","time-start",4,"ngIf"],["class","time-end",4,"ngIf"],["class","time-end text-center",4,"ngIf"],[1,"time-start"],[1,"time-end"],[1,"time-end","text-center"],[1,"fs-timeline","flex-grow-1","d-none","d-md-block","d-md-block","text-black","pr-20","width-100","height-100","overflow-y-auto"],["class","day EventListBox-day mt-10",4,"ngIf"],[1,"day","EventListBox-day","mt-10"],[1,"text-black","nothing-to-show"],[3,"profile","selectedSegment","taskParticipants","taskParticipantsCc","selectedDate","eventAttendees","onAddEvent","openAttendeesComponent","cloneAllmobileComponent","clearContact","setContact","setIntervenient","setIntervenientCC"],[3,"taskParticipants","taskParticipantsCc","profile","selectedSegment","postEvent","clearPostEvent","clearContact","openAttendeesComponent","setContact","closeComponent","setIntervenient","setIntervenientCC"],[3,"profile","eventId","eventAttendees","viewEventDetailDismiss"],[1,"d-flex","flex-column",3,"showComponent","componentTransparent","serialNumber","InstanceId","saveData","eventAttendees","cloneAllmobileComponent","closeEventToApprove","AproveEventEditEvent","EditApproveEventDismiss"],[1,"d-flex","flex-column","height-100",3,"taskParticipants","taskParticipantsCc","saveData","serialNumber","setContact","clearContact","openAttendeesComponent","closeComponent","setIntervenient","setIntervenientCC","closeEventToApprove"],[1,"d-flex","flex-column","height-100",3,"footer","adding","taskParticipants","taskParticipantsCc","closeComponent","setContact","setIntervenient","setIntervenientCC"]],template:function(e,t){if(1&e&&(c.TgZ(0,"ion-header",0),c._UZ(1,"app-header"),c.qZA(),c.TgZ(2,"ion-refresher",1),c.NdJ("ionRefresh",function(e){return t.doRefresh(e)}),c._UZ(3,"ion-refresher-content"),c.qZA(),c.TgZ(4,"ion-content",2),c.TgZ(5,"div",3),c.TgZ(6,"div",4),c.TgZ(7,"div",5),c.TgZ(8,"div",6),c.YNc(9,Je,1,0,"ion-progress-bar",7),c.TgZ(10,"div"),c.TgZ(11,"div"),c.TgZ(12,"div",8),c.TgZ(13,"ion-row",9),c.TgZ(14,"ion-row",10),c.TgZ(15,"div",11),c.TgZ(16,"button",12),c.NdJ("click",function(){return t.back()}),c._UZ(17,"ion-icon",13),c.qZA(),c.qZA(),c.TgZ(18,"h2",14),c._uU(19),c.qZA(),c.TgZ(20,"div",15),c.NdJ("click",function(){return t.next()}),c._UZ(21,"ion-icon",16),c.qZA(),c.qZA(),c.TgZ(22,"ion-row",10),c.YNc(23,Ue,2,0,"button",17),c.YNc(24,Le,2,0,"button",18),c.YNc(25,Ye,2,0,"button",18),c.TgZ(26,"button",19),c.NdJ("click",function(){return t.clearContact(),t.openAddEvent()}),c._UZ(27,"ion-icon",20),c.qZA(),c.qZA(),c.qZA(),c.TgZ(28,"table",21),c.TgZ(29,"thead"),c.TgZ(30,"th"),c._uU(31,"S"),c.qZA(),c.TgZ(32,"th"),c._uU(33,"T"),c.qZA(),c.TgZ(34,"th"),c._uU(35,"Q"),c.qZA(),c.TgZ(36,"th"),c._uU(37,"Q"),c.qZA(),c.TgZ(38,"th"),c._uU(39,"S"),c.qZA(),c.TgZ(40,"th"),c._uU(41,"S"),c.qZA(),c.TgZ(42,"th"),c._uU(43,"D"),c.qZA(),c.qZA(),c.qZA(),c.TgZ(44,"calendar",22),c.NdJ("onEventSelected",function(e){return t.onEventSelected(e)})("onTitleChanged",function(e){return t.onViewTitleChanged(e)})("onRangeChanged",function(e){return t.onRangeChanged(e)})("onCurrentDateChanged",function(e){return t.onCurrentChanged(e)}),c.qZA(),c.YNc(45,He,5,4,"ng-template",null,23,c.W1O),c.qZA(),c.qZA(),c._UZ(47,"div",24),c.TgZ(48,"ion-row",25),c.TgZ(49,"ion-row",26),c.YNc(50,Qe,2,0,"button",18),c.YNc(51,je,2,0,"button",18),c.qZA(),c.TgZ(52,"ion-row",26),c.YNc(53,Fe,2,0,"span",27),c._uU(54),c.qZA(),c.TgZ(55,"ion-row",28),c.TgZ(56,"div",29),c._uU(57),c.qZA(),c.TgZ(58,"button",30),c.NdJ("click",function(){return t.showTimelineFilterState=!t.showTimelineFilterState}),c._UZ(59,"ion-icon",31),c.qZA(),c.YNc(60,Ge,7,6,"ul",27),c.qZA(),c.qZA(),c.YNc(61,Be,8,0,"div",32),c.qZA(),c.qZA(),c.qZA(),c.TgZ(62,"div",33),c.TgZ(63,"div",34),c.TgZ(64,"div"),c.TgZ(65,"div",35),c.YNc(66,rt,2,1,"div",36),c.ALo(67,"keyvalue"),c.qZA(),c.YNc(68,wt,3,3,"div",37),c.TgZ(69,"div",38),c.YNc(70,St,2,1,"div",36),c.ALo(71,"keyvalue"),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.TgZ(72,"div",39),c.YNc(73,qt,2,0,"div",40),c.YNc(74,It,1,6,"app-new-event",41),c.YNc(75,Nt,1,5,"app-edit-event",42),c.YNc(76,Rt,1,3,"app-view-event",43),c.TgZ(77,"app-event-list",44),c.NdJ("approveEventDismiss",function(e){return t.approveEventDismiss(e)})("cloneAllmobileComponent",function(e){return t.viewEventDetailDismiss(e)}),c.qZA(),c.YNc(78,Jt,1,8,"app-approve-event",45),c.YNc(79,Ut,1,4,"app-edit-event-to-approve",46),c.YNc(80,Lt,1,4,"app-attendee-modal",47),c.qZA(),c.qZA(),c.qZA()),2&e){var n=c.MAs(46);c.xp6(9),c.Q6J("ngIf",t.showLoader),c.xp6(2),c.Gre("calendar-segment-",t.profile,""),c.ekj("calendar-segment-pr-force","PR"==t.loggeduser.Profile),c.xp6(1),c.Udp("height",t.calendarHeight),c.xp6(7),c.Oqu(t.viewTitle),c.xp6(4),c.Q6J("ngIf","mdgpr"==t.profile&&"MDGPR"==t.loggeduser.Profile),c.xp6(1),c.Q6J("ngIf","pr"==t.profile&&"MDGPR"==t.loggeduser.Profile),c.xp6(1),c.Q6J("ngIf","MDGPR"==t.loggeduser.Profile),c.xp6(19),c.Q6J("eventSource",t.calendarService.eventSource)("calendarMode",t.calendar.mode)("currentDate",t.calendar.currentDate)("monthviewDisplayEventTemplate",n),c.xp6(6),c.Q6J("ngIf",t.showCalendar),c.xp6(1),c.Q6J("ngIf",!t.showCalendar),c.xp6(2),c.Q6J("ngIf",t.timelineIsCurrentDate()),c.xp6(1),c.hij(" ",t.timelineDate," "),c.xp6(3),c.Oqu(t.timelineFilterState),c.xp6(3),c.Q6J("ngIf",t.showTimelineFilterState),c.xp6(1),c.Q6J("ngIf","MDGPR"==t.loggeduser.Profile),c.xp6(3),c.Gre("timeline-container height-100 d-flex pt-20 pl-20 pl-20 filter-",t.segment,""),c.xp6(2),c.Q6J("ngForOf",c.lcZ(67,40,t.TimelineMDList)),c.xp6(2),c.Q6J("ngIf","MDGPR"==t.loggeduser.Profile),c.xp6(2),c.Q6J("ngForOf",c.lcZ(71,42,t.TimelinePRList)),c.xp6(3),c.Q6J("ngIf",0==t.mobileComponent.showAddNewEvent&&0==t.mobileComponent.showEditEvent&&0==t.mobileComponent.showEventDetails&&0==t.mobileComponent.showEventList&&0==t.mobileComponent.showEventToApprove&&0==t.mobileComponent.showAttendees&&0==t.mobileComponent.showAttendeeModal&&0==t.mobileComponent.showEditEventToApprove),c.xp6(1),c.Q6J("ngIf",t.mobileComponent.showAddNewEvent),c.xp6(1),c.Q6J("ngIf",t.mobileComponent.showEditEvent),c.xp6(1),c.Q6J("ngIf",t.mobileComponent.showEventDetails),c.xp6(1),c.Udp("display",t.mobileComponent.showEventList?"flex":"none"),c.Q6J("profile",t.profile)("showComponent",t.mobileComponent.showEventList),c.xp6(1),c.Q6J("ngIf",t.mobileComponent.showEventToApprove),c.xp6(1),c.Q6J("ngIf",t.mobileComponent.showEditEventToApprove),c.xp6(1),c.Q6J("ngIf",t.mobileComponent.showAttendees)}},directives:[l.Gu,D.E,l.nJ,l.Wo,l.W2,s.O5,l.Nd,l.gu,g.eV,s.sg,S.r,l.X7,q.h,ge,qe,Ie.c,Ne.I,Re.Y],pipes:[s.Nd,s.uU],styles:['.event-indicator[_ngcontent-%COMP%]{background:#333;width:5px;height:5px;border-radius:5px;display:table-cell}[_nghost-%COMP%] .monthview-current{border-bottom:1px solid #87cefa!important}[_nghost-%COMP%] .item{text-transform:capitalize}[_nghost-%COMP%] .input-wrapper{border-left:red!important;margin-left:1px solid red}.main-header[_ngcontent-%COMP%]{width:100%;height:100%;font-family:Roboto;border-top-left-radius:25px;border-top-right-radius:25px;background-color:#fff;overflow:hidden;padding:15px 5px 0;color:#000;transform:translate3d(0,1px,0)}.main-header[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%]{width:360px;margin:0 auto;padding:0!important;background:#ecf8ff}.main-header[_ngcontent-%COMP%] .div-title[_ngcontent-%COMP%]{padding:0!important;float:left}.main-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:25px}.main-header[_ngcontent-%COMP%] .div-icon[_ngcontent-%COMP%]{width:40px;float:right;font-size:35px;overflow:auto;padding:1px}.main-header[_ngcontent-%COMP%] .div-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{float:right;padding-left:20px}.switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:90px;height:34px;float:right;right:-4px!important;margin:20px 20px 0 0}.switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#fff;border:1px solid #e16817;color:#e16817;transition:.4s}.slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:23.5px;width:24px;left:4px;bottom:4px;background-color:#fff;transition:.4s}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#e16817}input[_ngcontent-%COMP%]:focus + .slider[_ngcontent-%COMP%]{box-shadow:0 0 1px #2196f3}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translateX(55px)}.pr[_ngcontent-%COMP%]{display:none;text-align:left!important;left:25px!important;color:#fff}.mdgpr[_ngcontent-%COMP%]{left:58px!important;color:#e16817}.mdgpr[_ngcontent-%COMP%], .pr[_ngcontent-%COMP%]{position:absolute;transform:translate(-50%,-50%);top:50%;left:50%;font-size:12px;font-family:Verdana,sans-serif}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%] .pr[_ngcontent-%COMP%]{display:block;background:#e16817}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%] .mdgpr[_ngcontent-%COMP%]{display:none}.slider.round[_ngcontent-%COMP%]{border-radius:34px}.slider.round[_ngcontent-%COMP%]:before{border-radius:50%;border:1px solid #e16817}.toggleBox[_ngcontent-%COMP%]{margin:20px 12px 7px 0}input[type=checkbox][_ngcontent-%COMP%]{position:relative;width:96px;height:34px;background:#fff;-webkit-appearance:none;border-radius:20px;outline:none;transition:.4s;cursor:pointer;border:1px solid #e16817}input[_ngcontent-%COMP%]:checked[type=checkbox]{background:#e16817}input[type=checkbox][_ngcontent-%COMP%]:before{z-index:2;position:absolute;content:"";left:0;width:30px;height:30px;background:#fff;border-radius:50%;box-shadow:inset 0 2px 5px rgba(0,0,0,.2);border:1px solid #e16817}input[_ngcontent-%COMP%]:checked[type=checkbox]:before{left:65px}.toggle[_ngcontent-%COMP%]{position:relative;display:block;font-family:Montserrat,sans-serif;text-align:center}label[_ngcontent-%COMP%]{position:absolute;color:#fff;font-weight:600;font-size:12px;pointer-events:none}.onbtn[_ngcontent-%COMP%]{left:15px}.ofbtn[_ngcontent-%COMP%], .onbtn[_ngcontent-%COMP%]{top:10px;bottom:15px}.ofbtn[_ngcontent-%COMP%]{right:14px;color:#e16817}td.monthview-primary-with-event[_ngcontent-%COMP%]{background-color:#fff!important}.header-title[_ngcontent-%COMP%]{font-family:Roboto;font-size:25px;margin:0 5px 0 25px;padding:0;color:#000}.div-top-header[_ngcontent-%COMP%]{width:400px;margin:0 auto;background-color:#0782c9;padding-top:15px;border:0!important}.div-top-header[_ngcontent-%COMP%] .div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-top-header[_ngcontent-%COMP%] .div-logo[_ngcontent-%COMP%]{background:transparent;width:140px;margin:5px 0 0 71px;float:left}.div-top-header[_ngcontent-%COMP%] .div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-top-header[_ngcontent-%COMP%] .div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}.main-content[_ngcontent-%COMP%]{width:100%;height:100%;font-family:Roboto;margin:0 auto;border-top-left-radius:25px;border-top-right-radius:25px;background-color:#fff;overflow:auto;color:#000!important}.cal-hour-segment[_ngcontent-%COMP%]{border-bottom:none!important}.cal-current-time-marker[_ngcontent-%COMP%]{background-color:#42b9fe!important}.calendar-tool-tip[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:35px}.calendar-tool-tip[_ngcontent-%COMP%] .arrow-down[_ngcontent-%COMP%]{font-size:28px}.drop-down[_ngcontent-%COMP%] .drop-down-container[_ngcontent-%COMP%]{display:none;border-top:2px solid #42b9fe;position:absolute;background:#fff;z-index:100000;box-shadow:0 4px 9px 0 rgba(0,0,0,.3);border-bottom-right-radius:5px;border-bottom-left-radius:5px;margin-left:-122px;padding:4px 15px}.drop-down[_ngcontent-%COMP%] .drop-down-container[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0}.drop-down[_ngcontent-%COMP%] .drop-down-container[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;height:35px;display:flex;align-items:center}.capitaliseText[_ngcontent-%COMP%]{min-width:155px;text-align:center;font-weight:400;padding:0;margin:0}.arrow[_ngcontent-%COMP%]{padding:0}.calendar-profile[_ngcontent-%COMP%], .right-icons[_ngcontent-%COMP%]{padding:0 9px}.capitaliseText[_ngcontent-%COMP%]{font-size:20px}.calendar-tool-tip[_ngcontent-%COMP%]{padding:30px 10px 20px}.custom-calendar-header[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.custom-calendar-header[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.custom-calendar-header[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-family:Roboto;font-size:15px;color:rgba(52,72,94,.54);font-weight:400}.currente-date-timelien[_ngcontent-%COMP%]{padding:10px 20px}.currente-date-timelien[_ngcontent-%COMP%] .timeline-date[_ngcontent-%COMP%]{font-size:15px;font-weight:700}.currente-date-timelien[_ngcontent-%COMP%] .collaps[_ngcontent-%COMP%]{font-size:26px;padding-right:8px}.currente-date-timelien[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%]{font-size:15px;font-weight:400}.currente-date-timelien[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:35px;color:#0d89d1}.currente-date-timelien[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .filter-name[_ngcontent-%COMP%]{color:#0d89d1;font-family:Roboto;font-size:15px;margin-right:25px;width:55px}.currente-date-timelien[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{background-color:#fff!important;position:absolute;list-style:none;margin:140px 0 0;padding:0;box-shadow:0 0 10px gray!important;border-radius:5px;width:96px;z-index:1000000}.currente-date-timelien[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:5px 10px;font-size:15px;font-weight:400}.currente-date-timelien[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background-color:rgba(66,185,254,.1)}.showcalendar[_ngcontent-%COMP%]{display:none}.timeline-header[_ngcontent-%COMP%]{z-index:1000000;width:100%;background-color:#fff}.timeline-container[_ngcontent-%COMP%] .day[_ngcontent-%COMP%]{font-weight:700;color:#2e2e2e!important;font-size:13px}.timeline-container[_ngcontent-%COMP%] .EventListBoxBorder[_ngcontent-%COMP%]{padding-bottom:5px;border-bottom:1px solid #d8d8d8}.timeline-container[_ngcontent-%COMP%] .content-mdgpr-Oficial[_ngcontent-%COMP%], .timeline-container[_ngcontent-%COMP%] .content-mdgpr-Pessoal[_ngcontent-%COMP%], .timeline-container[_ngcontent-%COMP%] .content-pr-Oficial[_ngcontent-%COMP%], .timeline-container[_ngcontent-%COMP%] .content-pr-Pessoal[_ngcontent-%COMP%]{width:100%!important;padding:0 10px!important}.timeline-container[_ngcontent-%COMP%] .schedule-time[_ngcontent-%COMP%]{margin-right:10px;min-width:33px}.timeline-container[_ngcontent-%COMP%] .schedule-time[_ngcontent-%COMP%] .time-end[_ngcontent-%COMP%], .timeline-container[_ngcontent-%COMP%] .schedule-time[_ngcontent-%COMP%] .time-start[_ngcontent-%COMP%]{color:#797979!important;font-family:Roboto;font-size:13px}.timeline-container[_ngcontent-%COMP%] .schedule-date[_ngcontent-%COMP%]{margin-right:10px;width:22%;color:#797979!important;font-size:13px}.timeline-container[_ngcontent-%COMP%] .schedule-details[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;width:100%;overflow:auto}.timeline-container[_ngcontent-%COMP%] .schedule-details[_ngcontent-%COMP%] .location[_ngcontent-%COMP%]{width:100%;font-family:Roboto;font-size:13px;color:#000}.timeline-container[_ngcontent-%COMP%] .schedule-details[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{width:100%;font-family:Roboto;font-size:15px;font-weight:700;color:#0d89d1}.timeline-container[_ngcontent-%COMP%] .schedule-details[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis!important}.timeline-container[_ngcontent-%COMP%] .color[_ngcontent-%COMP%]{width:5px;height:40px;border-top-right-radius:5px;border-bottom-right-radius:5px;background-color:#f05d5e}.timeline-container[_ngcontent-%COMP%] .div-content-Oficial[_ngcontent-%COMP%]{width:85%;float:left;border-left:4px solid #cab0dc;padding:0 0 0 12px}.timeline-container[_ngcontent-%COMP%] .div-content-Pessoal[_ngcontent-%COMP%]{width:85%;float:left;border-left:4px solid #cbeecb;padding:0 0 0 12px}.timeline-container[_ngcontent-%COMP%] .div-content-Oficial[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .timeline-container[_ngcontent-%COMP%] .div-content-Pessoal[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:14pt}.timeline-container[_ngcontent-%COMP%] .div-content-Oficial[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .timeline-container[_ngcontent-%COMP%] .div-content-Pessoal[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:12pt;color:#5e5c5c;padding:0!important;margin:0!important}.timeline-container[_ngcontent-%COMP%] .content-pr-Pessoal[_ngcontent-%COMP%]{background-color:var(--white);border-radius:5px;border-right:5px solid #958bfc;overflow:auto}.timeline-container[_ngcontent-%COMP%] .content-mdgpr-Oficial[_ngcontent-%COMP%]{border-radius:5px;border-right:5px solid #ffb703;overflow:auto}.timeline-container[_ngcontent-%COMP%] .content-mdgpr-Pessoal[_ngcontent-%COMP%]{border-radius:5px;border-right:5px solid #f05d5e;overflow:auto}.calendar-timeline[_ngcontent-%COMP%]{height:100%;background-color:#fff;border-top-left-radius:25px}.calendar-border[_ngcontent-%COMP%]{background:#ebebeb;margin:13px 20px;height:2px}.calendar-progress-bar[_ngcontent-%COMP%]{position:absolute;width:100%;margin-left:10px}.agenda-container[_ngcontent-%COMP%]{overflow:hidden}.container-wrapper[_ngcontent-%COMP%]{height:100%;overflow:hidden}.container-wrapper[_ngcontent-%COMP%] .calendar-timeline[_ngcontent-%COMP%]{border-top-right-radius:24px;width:calc(100%);overflow:hidden}.container-wrapper[_ngcontent-%COMP%] .calendar-timeline[_ngcontent-%COMP%] .calendar-wrapper[_ngcontent-%COMP%]{width:100%}.container-wrapper[_ngcontent-%COMP%] .calendar-timeline[_ngcontent-%COMP%] .timeline-wrapper[_ngcontent-%COMP%]{width:100%;overflow:auto}.event-details[_ngcontent-%COMP%]{width:40%;background:#fff;border-top-right-radius:25px;display:none}@media only screen and (min-width: 1024px){.container-wrapper[_ngcontent-%COMP%]{height:100%}.container-wrapper[_ngcontent-%COMP%] .calendar-timeline[_ngcontent-%COMP%]{border-top-right-radius:0;width:calc(100% - 40%);border-right:1px solid #d8d8d8;display:flex;flex-direction:column;height:100%;flex-wrap:unset}.event-details[_ngcontent-%COMP%]{display:block}}app-view-event[_ngcontent-%COMP%]{flex-wrap:wrap-reverse}app-edit-event[_ngcontent-%COMP%], app-new-event[_ngcontent-%COMP%], app-view-event[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;z-index:1000}app-new-event[_ngcontent-%COMP%]{flex-wrap:wrap}app-event-list[_ngcontent-%COMP%]{flex-wrap:wrap-reverse}app-approve-event[_ngcontent-%COMP%], app-event-list[_ngcontent-%COMP%]{flex-direction:column;height:100%;z-index:1000}app-approve-event[_ngcontent-%COMP%]{display:flex}.transparent[_ngcontent-%COMP%]{position:absolute;z-index:0;opacity:0}.nothing-to-show[_ngcontent-%COMP%]{justify-content:center;display:flex;align-items:center;height:100%}.fs-timeline[_ngcontent-%COMP%]{border-right:1px solid #909090}.filter-Oficial[_ngcontent-%COMP%] .content-md-Pessoal[_ngcontent-%COMP%], .filter-Oficial[_ngcontent-%COMP%] .content-mdgpr-Pessoal[_ngcontent-%COMP%], .filter-Oficial[_ngcontent-%COMP%] .content-pr-Pessoal[_ngcontent-%COMP%], .filter-Pessoal[_ngcontent-%COMP%] .content-md-Pessoal[_ngcontent-%COMP%], .filter-Pessoal[_ngcontent-%COMP%] .content-mdgpr-Oficial[_ngcontent-%COMP%], .filter-Pessoal[_ngcontent-%COMP%] .content-pr-Oficial[_ngcontent-%COMP%]{display:none!important}']}),Yt)},{path:"approve-event-modal",loadChildren:function(){return Promise.all([r.e(8195),r.e(8592)]).then(r.bind(r,6834)).then(function(e){return e.ApproveEventModalPageModule})}},{path:"event-actions-popover",loadChildren:function(){return r.e(4192).then(r.bind(r,94192)).then(function(e){return e.EventActionsPopoverPageModule})}},{path:"emend-message-modal",loadChildren:function(){return r.e(8654).then(r.bind(r,58654)).then(function(e){return e.EmendMessageModalPageModule})}},{path:"new-event",loadChildren:function(){return r.e(1372).then(r.bind(r,1372)).then(function(e){return e.NewEventPageModule})}},{path:"edit-event",loadChildren:function(){return r.e(8592).then(r.bind(r,97404)).then(function(e){return e.EditEventPageModule})}},{path:"view-event",loadChildren:function(){return r.e(8592).then(r.bind(r,91796)).then(function(e){return e.ViewEventPageModule})}}],Qt=function(){var t=function t(){e(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[p.Bz.forChild(Ht)],p.Bz]}),t}(),jt=r(42482),Ft=r.n(jt),Gt=r(67671),Bt=r(2142),zt=r(6527),$t=[{path:"",component:qe}],Vt=function(){var t=function t(){e(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[p.Bz.forChild($t)],p.Bz]}),t}(),Wt=function(){var t=function t(){e(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.ez,d.u5,l.Pc,Vt]]}),t}(),Xt=r(668),Kt=r(52138),en=r(28497),tn=r(93556),nn=[{path:"",component:ge}],on=function(){var t=function t(){e(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[p.Bz.forChild(nn)],p.Bz]}),t}(),an=r(51095),rn=r(94881),cn=r(22238),sn=function(){var t=function t(){e(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({providers:[{provide:E.Ad,useValue:"pt"}],imports:[[s.ez,d.u5,l.Pc,on,H.FA,L.c,E.XK,Y.EC,Y.Yy,Y.K,rn._W,U.LD,an.ot,d.UX,cn.Is]]}),t}(),dn=r(85895);(0,s.qS)(Ft());var ln,pn=((ln=function t(){e(this,t)}).\u0275fac=function(e){return new(e||ln)},ln.\u0275mod=c.oAB({type:ln}),ln.\u0275inj=c.cJS({providers:[{provide:c.soG,useValue:"pt-PT"}],imports:[[s.ez,d.u5,l.Pc,C._8.forRoot({provide:C._A,useFactory:Gt.x}),Qt,g.S4,zt.a,Wt,Bt.AttendeeModalPageModule,en.EventsToApprovePageModule,Xt.ApproveEventPageModule,Kt.NewEventPageModule,tn.EventListPageModule,sn,dn.EditEventToApprovePageModule]]}),ln)},6527:function(t,n,o){"use strict";o.d(n,{a:function(){return u}});var i=o(38583),a=o(3679),r=o(35957),c=o(39895),s=o(962),d=o(37716),l=[{path:"",component:s.E}],p=function(){var t=function t(){e(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[[c.Bz.forChild(l)],c.Bz]}),t}(),u=function(){var t=function t(){e(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[[i.ez,a.u5,r.Pc,p]]}),t}()},962:function(t,o,i){"use strict";i.d(o,{E:function(){return w}});var a=i(64762),r=i(4528),c=i(33559),s=i(37716),d=i(39895),l=i(35957),p=i(37556),u=i(38583),g=i(3679);function v(e,t){if(1&e){var n=s.EpF();s.TgZ(0,"div",21),s.TgZ(1,"div",22),s.NdJ("click",function(){return s.CHM(n),s.oxw().openSearch()}),s._UZ(2,"ion-icon",23),s.qZA(),s.qZA()}}function m(e,t){if(1&e){var n=s.EpF();s.TgZ(0,"div",28),s.NdJ("click",function(){s.CHM(n);var e=s.oxw(2);return e.openSearch(),e.showSearch=!0}),s._UZ(1,"ion-icon",23),s.qZA()}}function f(e,t){if(1&e){var n=s.EpF();s.TgZ(0,"button",29),s.NdJ("click",function(){s.CHM(n);var e=s.oxw(2);return e.closeSearch(),e.showSearch=!1,e.searchSubject=""}),s._UZ(1,"ion-icon",30),s.qZA()}}function h(e,t){if(1&e){var n=s.EpF();s.TgZ(0,"div",32),s.TgZ(1,"div",33),s.NdJ("click",function(){return s.CHM(n),s.oxw(3).basicSearch()}),s._UZ(2,"ion-icon",34),s.qZA(),s.TgZ(3,"div",35),s.TgZ(4,"ion-input",36),s.NdJ("keyup.enter",function(){return s.CHM(n),s.oxw(3).basicSearch()})("ngModelChange",function(e){return s.CHM(n),s.oxw(3).searchSubject=e})("ngModelChange",function(){return s.CHM(n),s.oxw(3).dynamicSearch()}),s.qZA(),s.qZA(),s.TgZ(5,"div",33),s.NdJ("click",function(){return s.CHM(n),s.oxw(3).clearSearchInput()}),s._UZ(6,"ion-icon",37),s.qZA(),s.qZA()}if(2&e){var o=s.oxw(3);s.xp6(4),s.Q6J("ngModel",o.searchSubject)}}function C(e,t){if(1&e&&(s.TgZ(0,"div"),s.YNc(1,h,7,1,"div",31),s.qZA()),2&e){var n=s.oxw(2);s.xp6(1),s.Q6J("ngIf",n.showSearch)}}function x(e,t){if(1&e&&(s.TgZ(0,"div",24),s.YNc(1,m,2,0,"div",25),s.YNc(2,f,2,0,"button",26),s.YNc(3,C,2,1,"div",27),s.qZA()),2&e){var n=s.oxw();s.xp6(1),s.Q6J("ngIf",!n.showSearch),s.xp6(1),s.Q6J("ngIf",n.showSearch),s.xp6(1),s.Q6J("ngIf",n.showSearch)}}var w=function(){var t=function(){function t(n,o,i,a){var r=this;e(this,t),this.router=n,this.modalController=o,this.animationController=i,this.searchSubject="",this.showSearch=!1,this.hideSearchBtn=!1,this.loggeduser=a.ValidatedUser,n.events.subscribe(function(e){r.showSearch=!1})}return n(t,[{key:"ngOnInit",value:function(){this.hideSearch()}},{key:"hideSearch",value:function(){"/home/events"!=this.router.url&&"/home/chat"!=this.router.url||(this.hideSearchBtn=!0)}},{key:"locationPathname",value:function(){return window.location.pathname}},{key:"openSearch",value:function(){return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n,o,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return window.innerWidth<1366?(t="modal modal-width-100",n=!0):(t="modal modal-desktop desktop-search",n=!1),window.location.pathname.startsWith("/home/agenda")?o="Agenda":window.location.pathname.startsWith("/home/gabinete-digital")?o="AccoesPresidenciais & ArquivoDespachoElect":window.location.pathname.startsWith("/home/publications")&&(o="AccoesPresidenciais"),e.next=3,this.modalController.create({component:r.Z,cssClass:t,componentProps:{type:o,showSearchInput:n,select:!1}});case 3:return i=e.sent,e.next=6,i.present();case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e,this)}))}},{key:"changeRoute",value:function(e){this.router.navigateByUrl(e)}},{key:"openProfile",value:function(){return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t,n,o=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=function(e){var t=o.animationController.create().addElement(e.querySelector("ion-backdrop")).fromTo("opacity","0.01","var(--backdrop-opacity)"),n=o.animationController.create().addElement(e.querySelector(".modal-wrapper")).keyframes([{offset:0,opacity:"1",right:"-100%"},{offset:1,opacity:"1",right:"0px"}]);return o.animationController.create().addElement(e).easing("ease-out").duration(500).addAnimation([t,n])},e.next=3,this.modalController.create({enterAnimation:t,leaveAnimation:function(e){return t(e).direction("reverse")},component:c.G,cssClass:"model profile-modal search-submodal",componentProps:{}});case 3:return n=e.sent,e.next=6,n.present();case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e,this)}))}},{key:"dynamicSearch",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:window.dynamicSearch(this.searchSubject);case 1:case"end":return e.stop()}},e,this)}))}},{key:"closeSearch",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.modalController.dismiss();case 1:case"end":return e.stop()}},e,this)}))}},{key:"clearSearchInput",value:function(){this.searchSubject="",window.dynamicSearch(this.searchSubject)}},{key:"basicSearch",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:window.searchTriger();case 1:case"end":return e.stop()}},e)}))}},{key:"profileLabel",value:function(e){return"MDGPR"==e?"MD":"PR"==e?e:"UN"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(d.F0),s.Y36(l.IN),s.Y36(l.vB),s.Y36(p.e))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-header"]],decls:40,vars:14,consts:[[1,"pb-10","ion-toolbar","text-white"],[1,"mobile","d-flex","div-top-header","justify-space-between"],["class","div-search",4,"ngIf"],[1,"div-logo","height-fit-content"],["src","assets/images/logo-no-bg.png","alt","logo"],[1,"div-profile","cursor-pointer",3,"click"],["src","assets/images/icons-profile.svg",1,"icon"],[1,"profile-text"],[1,"desktop","mx-20"],[1,"d-flex","justify-space-between","align-center"],["tab","events",1,"div-logo","height-fit-content"],[1,"d-flex","flex-1","pr-20","pl-50"],[1,"tab","mr-20","d-flex","align-center","cursor-pointer",3,"click"],["src","assets/images/icons-nav-home-active.svg",1,"font-40"],["src","assets/images/icons-nav-agenda-inactive.svg",1,"font-40"],["src","assets/images/icons-nav-home-dk.svg",1,"font-40"],["src","assets/images/icons-nav-a-es-inactive.svg",1,"font-40"],["src","assets/images/icons-nav-grupos-inactive-dk-white.svg",1,"font-40"],[1,"header-btns","d-flex"],["class","mr-10 d-flex align-center cursor-pointer",4,"ngIf"],[1,"div-profile","d-flex","cursor-pointer",3,"click"],[1,"div-search"],[3,"click"],["src","assets/images/icons-search.svg",1,"font-45"],[1,"mr-10","d-flex","align-center","cursor-pointer"],["style","padding-top: 5px;",3,"click",4,"ngIf"],["class","btn-no-color",3,"click",4,"ngIf"],[4,"ngIf"],[2,"padding-top","5px",3,"click"],[1,"btn-no-color",3,"click"],["name","restaurant-outline","src","assets/images/icons-search-close.svg",1,"font-40"],["class","d-flex search-input-container ml-10 justify-between",4,"ngIf"],[1,"d-flex","search-input-container","ml-10","justify-between"],[1,"icon",3,"click"],["slot","end","name","search",1,"icon-z"],[1,"input-text","d-flex","ion-align-items-center"],["type","search","placeholder","Pesquisar",1,"search-input","text-black",3,"ngModel","keyup.enter","ngModelChange"],["name","restaurant-outline","src","assets/images/icons-search-close.svg"]],template:function(e,t){1&e&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.YNc(2,v,3,0,"div",2),s.TgZ(3,"div",3),s._UZ(4,"img",4),s.qZA(),s.TgZ(5,"div",5),s.NdJ("click",function(){return t.openProfile()}),s._UZ(6,"ion-icon",6),s.TgZ(7,"ion-label",7),s._uU(8),s.qZA(),s.qZA(),s.qZA(),s.TgZ(9,"div",8),s.TgZ(10,"div",9),s.TgZ(11,"div",10),s._UZ(12,"img",4),s.qZA(),s.TgZ(13,"div",11),s.TgZ(14,"div",12),s.NdJ("click",function(){return t.changeRoute("/home/events")}),s._UZ(15,"ion-icon",13),s.TgZ(16,"span"),s._uU(17,"In\xedcio"),s.qZA(),s.qZA(),s.TgZ(18,"div",12),s.NdJ("click",function(){return t.changeRoute("/home/agenda")}),s._UZ(19,"ion-icon",14),s.TgZ(20,"span"),s._uU(21,"Agenda"),s.qZA(),s.qZA(),s.TgZ(22,"div",12),s.NdJ("click",function(){return t.changeRoute("/home/gabinete-digital")}),s._UZ(23,"ion-icon",15),s.TgZ(24,"span"),s._uU(25,"Gabinete"),s.qZA(),s.qZA(),s.TgZ(26,"div",12),s.NdJ("click",function(){return t.changeRoute("/home/publications")}),s._UZ(27,"ion-icon",16),s.TgZ(28,"span"),s._uU(29,"Ac\xe7\xf5es"),s.qZA(),s.qZA(),s.TgZ(30,"div",12),s.NdJ("click",function(){return t.changeRoute("/home/chat")}),s._UZ(31,"ion-icon",17),s.TgZ(32,"span"),s._uU(33,"Chat"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(34,"div",18),s.YNc(35,x,4,3,"div",19),s.TgZ(36,"div",20),s.NdJ("click",function(){return t.openProfile()}),s._UZ(37,"ion-icon",6),s.TgZ(38,"ion-label",7),s._uU(39),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&e&&(s.xp6(2),s.Q6J("ngIf",!t.hideSearchBtn),s.xp6(6),s.Oqu(t.loggeduser.Profile),s.xp6(6),s.ekj("active","/home/events"==t.locationPathname()),s.xp6(4),s.ekj("active","/home/agenda"==t.locationPathname()),s.xp6(4),s.ekj("active","/home/gabinete-digital"==t.locationPathname()),s.xp6(4),s.ekj("active","/home/publications"==t.locationPathname()),s.xp6(4),s.ekj("active","/home/chat"==t.locationPathname()),s.xp6(5),s.Q6J("ngIf",!t.hideSearchBtn),s.xp6(4),s.Oqu(t.profileLabel(t.loggeduser.Profile)))},directives:[u.O5,l.gu,l.Q$,l.pK,l.j9,g.JJ,g.On],styles:[".div-top-header[_ngcontent-%COMP%]{margin:0 1.25em;padding-top:.9375em;border:0!important}.div-logo[_ngcontent-%COMP%]{background:transparent;width:8.75em;justify-content:center;display:flex}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;margin:0 auto}.header-btns[_ngcontent-%COMP%]{justify-content:center;align-items:center}.div-profile[_ngcontent-%COMP%]{width:90px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;font-size:45px;justify-content:flex-end;display:flex;background-color:transparent;justify-content:center;align-items:center;overflow:auto}.div-profile[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{position:relative;border:none!important}.div-profile[_ngcontent-%COMP%] .profile-text[_ngcontent-%COMP%]{font-size:20px;font-weight:300;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:absolute}.desktop[_ngcontent-%COMP%]{display:none}@media only screen and (min-width: 1366px){.mobile[_ngcontent-%COMP%]{display:none!important}.desktop[_ngcontent-%COMP%]{display:block}}.tab[_ngcontent-%COMP%]{height:65px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.active[_ngcontent-%COMP%]{border-top:7px solid #fff}.search-input-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:27.5px;border:1px solid #ebebeb}.search-input-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{color:#797979;width:45px;height:45px;display:flex;justify-content:center;font-size:25px;align-items:center}.search-input-container[_ngcontent-%COMP%] .input-text[_ngcontent-%COMP%]{width:100%}.search-input-container[_ngcontent-%COMP%] .icon-z[_ngcontent-%COMP%]{width:20px}"]}),t}()}}])}();