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

1 line
35 KiB
JavaScript

!function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function n(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[3289,6527,5763,2417,3756,6055,5457,1087,4413,5183,5802,9391,1485,9074,4176,9406],{73289:function(e,o,i){"use strict";i.r(o),i.d(o,{EventsPageModule:function(){return I}});var r=i(38583),c=i(3679),a=i(35957),s=i(39895),g=i(64762),d=i(37716),l=i(47352),u=i(75837),h=i(887),p=i(80106),f=i(71188),v=i(25970),m=i(37556),x=i(28621),P=i(77370),_=i(962);function O(t,e){if(1&t&&(d.TgZ(0,"p",22),d.TgZ(1,"strong"),d._uU(2),d.qZA(),d._uU(3," evento agendado para hoje"),d.qZA()),2&t){var n=d.oxw();d.xp6(2),d.Oqu(n.totalEvent)}}function C(t,e){if(1&t&&(d.TgZ(0,"p",22),d.TgZ(1,"strong"),d._uU(2),d.qZA(),d._uU(3," eventos agendados para hoje"),d.qZA()),2&t){var n=d.oxw();d.xp6(2),d.Oqu(n.totalEvent)}}function M(t,e){if(1&t&&(d.TgZ(0,"div",23),d._uU(1),d.qZA()),2&t){var n=d.oxw();d.xp6(1),d.hij(' "',n.currentEvent,'"')}}function b(t,e){1&t&&d._UZ(0,"ion-progress-bar",24)}function w(t,e){if(1&t&&(d.TgZ(0,"div",33),d._uU(1),d.ALo(2,"date"),d.qZA()),2&t){var n=d.oxw().$implicit;d.xp6(1),d.Oqu(d.xi3(2,1,n.StartDate,"HH:mm"))}}function Z(t,e){if(1&t&&(d.TgZ(0,"div",34),d._uU(1),d.ALo(2,"date"),d.qZA()),2&t){var n=d.oxw().$implicit;d.xp6(1),d.Oqu(d.xi3(2,1,n.EndDate,"HH:mm"))}}function y(t,e){1&t&&(d.TgZ(0,"div",33),d._uU(1," Todo "),d.qZA())}function k(t,e){1&t&&(d.TgZ(0,"div",35),d._uU(1," o dia "),d.qZA())}function A(t,e){if(1&t){var n=d.EpF();d.TgZ(0,"ion-item",25),d.NdJ("click",function(){var t=d.CHM(n).$implicit;return d.oxw().goToEvent(t.EventId)}),d.TgZ(1,"div"),d.TgZ(2,"div",26),d.YNc(3,w,3,4,"div",27),d.YNc(4,Z,3,4,"div",28),d.YNc(5,y,2,0,"div",27),d.YNc(6,k,2,0,"div",29),d._UZ(7,"div"),d.qZA(),d.TgZ(8,"div",30),d.TgZ(9,"div",31),d._uU(10),d.qZA(),d.TgZ(11,"div",32),d.TgZ(12,"p"),d._uU(13),d.qZA(),d.qZA(),d.qZA(),d.qZA(),d.qZA()}if(2&t){var o=e.$implicit,i=d.oxw();d.xp6(1),d.MT6("d-flex content-",i.loggeduser.Profile,"-",o.CalendarName,""),d.xp6(2),d.Q6J("ngIf",!o.IsAllDayEvent),d.xp6(1),d.Q6J("ngIf",!o.IsAllDayEvent),d.xp6(1),d.Q6J("ngIf",o.IsAllDayEvent),d.xp6(1),d.Q6J("ngIf",o.IsAllDayEvent),d.xp6(4),d.Oqu(o.Location),d.xp6(3),d.Oqu(o.Subject)}}function T(t,e){if(1&t){var n=d.EpF();d.TgZ(0,"ion-item",25),d.NdJ("click",function(){var t=d.CHM(n).$implicit;return d.oxw().goToExpediente(t.serialNumber)}),d.TgZ(1,"div",36),d.TgZ(2,"div",37),d.TgZ(3,"div",34),d._uU(4),d.ALo(5,"date"),d.qZA(),d.TgZ(6,"div",33),d._uU(7),d.ALo(8,"date"),d.qZA(),d.qZA(),d.TgZ(9,"div",38),d.TgZ(10,"div",32),d._uU(11),d.qZA(),d.TgZ(12,"div",31),d._uU(13),d.qZA(),d.qZA(),d.qZA(),d.qZA()}if(2&t){var o=e.$implicit;d.xp6(4),d.Oqu(d.xi3(5,4,o.taskStartDate,"dd-MM-yyyy HH:mm")),d.xp6(3),d.Oqu(d.xi3(8,7,o.taskStartDate,"HH:mm")),d.xp6(4),d.Oqu(o.workflowInstanceDataFields.Subject),d.xp6(2),d.Oqu(o.workflowInstanceDataFields.Sender)}}var q,S,E=function(){return["/home/agenda"]},R=[{path:"",component:(q=function(){function e(n,o,i,r,c,a,s,l,p,f){var v=this;t(this,e),this.eventService=n,this.router=o,this.storageService=i,this.activatedRoute=r,this.alertController=c,this.authService=a,this.processes=s,this.modalController=l,this.screenOrientation=p,this.platform=f,this.today=new Date,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.customDate=this.days[this.today.getDay()]+", "+this.today.getDate()+" de "+this.months[this.today.getMonth()],this.grettings=["Bom dia","Boa tarde","Boa noite"],this.greetting="",this.timeDate=this.today.getHours()+":"+this.today.getMinutes(),this.maxSubjectLength=30,this.customText=!1,this.totalEvent=0,this.taskslist=[],this.hideSearchBtn=!1,this.toDayEventStorage=u.x,this.expedienteStorage=h.t,this.openExpedientListPage=new d.vpe,this.existingScreenOrientation=this.screenOrientation.type,console.log(this.existingScreenOrientation),this.loggeduser=a.ValidatedUser,this.prEventList=null,this.platform.resize.subscribe(function(){return(0,g.mG)(v,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:console.log("Resize event detected");case 1:case"end":return t.stop()}},t)}))})}return n(e,[{key:"ngOnInit",value:function(){var t=this;this.segment="Combinada",this.profile="mdgpr",this.showGreeting(),this.router.events.forEach(function(e){e instanceof s.m2&&"/home/events"==e.url&&(t.RefreshEvents(),t.LoadList())}),this.hideSearch()}},{key:"hideSearch",value:function(){"/home/events"==this.router.url&&(this.hideSearchBtn=!0)}},{key:"doRefresh",value:function(t){this.RefreshEvents(),this.LoadList(),t.target.complete()}},{key:"onSegmentChange",value:function(){this.RefreshEvents()}},{key:"lockToPortrait",value:function(){this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.PORTRAIT),console.log("set")}},{key:"lockToLandscape",value:function(){this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.LANDSCAPE)}},{key:"unlockScreenOrientation",value:function(){this.screenOrientation.unlock()}},{key:"checkScreenOrientation",value:function(){window.innerWidth<701?(this.lockToPortrait(),console.log("was here")):this.unlockScreenOrientation()}},{key:"RefreshEvents",value:function(){return(0,g.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var e,n,o,i,r,c,a,s,g;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.currentEvent="",this.showLoader=!0,(e=new Date).setMonth(e.getMonth()+1),n=e.getFullYear()+"-"+e.getMonth()+"-"+e.getDate()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds(),o=e.getFullYear()+"-"+e.getMonth()+"-"+e.getDate()+" 23:59:59","MDGPR"!=this.loggeduser.Profile){t.next=15;break}return t.next=7,this.eventService.getAllMdOficialEvents(n,o).toPromise();case 7:return i=t.sent,t.next=10,this.eventService.getAllMdPessoalEvents(n,o).toPromise();case 10:r=t.sent,c=i.concat(r),this.toDayEventStorage.reset(c),this.toDayEventStorage.eventsList.length>0&&(this.currentEvent=this.toDayEventStorage.eventsList[0].Subject,this.currentHoursMinutes=this.toDayEventStorage.eventsList[0].StartDate),this.totalEvent=this.toDayEventStorage.eventsList.length,this.showLoader=!1,t.next=24;break;case 15:if("PR"!=this.loggeduser.Profile){t.next=24;break}return t.next=18,this.eventService.getAllPrOficialEvents(n,o).toPromise();case 18:return a=t.sent,t.next=21,this.eventService.getAllPrPessoalEvents(n,o).toPromise();case 21:s=t.sent,g=a.concat(s),this.toDayEventStorage.reset(g),this.toDayEventStorage.eventsList.length>0&&(this.currentEvent=this.toDayEventStorage.eventsList[0].Subject,this.currentHoursMinutes=this.toDayEventStorage.eventsList[0].StartDate),this.totalEvent=this.toDayEventStorage.eventsList.length,this.showLoader=!1;case 24:case"end":return t.stop()}},t,this)}))}},{key:"showGreeting",value:function(){this.greetting=this.today.getHours()>=6&&this.today.getHours()<12?this.grettings[0]:this.today.getHours()>=12&&this.today.getHours()<18?this.grettings[1]:this.grettings[2]}},{key:"gotTo",value:function(){this.router.navigate(["/home/events"])}},{key:"changeProfile",value:function(){"mdgpr"==this.profile?(console.log("pr"),this.profile="pr",this.RefreshEvents()):(console.log("mdgpr"),this.profile="mdgpr",this.RefreshEvents())}},{key:"logout",value:function(){this.authService.ValidatedUser.BasicAuthKey="",this.router.navigate(["/home/login"])}},{key:"openEventDetail1",value:function(t){return(0,g.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(t),e.next=3,this.modalController.create({component:l.W,componentProps:{eventId:t},cssClass:"event-detail",backdropDismiss:!1});case 3:return n=e.sent,e.next=6,n.present();case 6:n.onDidDismiss();case 7:case"end":return e.stop()}},e,this)}))}},{key:"LoadList",value:function(){var t=this;switch(this.loggeduser.Profile){case"MDGPR":this.processes.GetTasksList("Expediente",!1).subscribe(function(e){console.log(e),t.expedienteStorage.reset(e)});break;case"PR":this.processes.GetTasksList("Expediente",!1).subscribe(function(e){t.expedienteStorage.reset(e)})}}},{key:"sortArrayISODate",value:function(t){return t.sort(function(t,e){return t.CreateDate<e.CreateDate?-1:t.CreateDate>e.CreateDate?1:0})}},{key:"goToEvent",value:function(t){this.router.navigate(["/home/events",t,"events"])}},{key:"goToExpediente",value:function(t){"MDGPR"==this.loggeduser.Profile?this.router.navigate(["/home/events/expediente",t,"events"]):"PR"==this.loggeduser.Profile&&this.router.navigate(["/home/events/expedientes-pr",t,"events"])}},{key:"viewExpedientListPage",value:function(){"MDGPR"==this.loggeduser.Profile?window.innerWidth<801?this.router.navigate(["/home/gabinete-digital/expediente"]):this.router.navigate(["/home/gabinete-digital"],{queryParams:{expedientes:!0}}):"PR"==this.loggeduser.Profile&&(window.innerWidth<801?this.router.navigate(["/home/gabinete-digital/expedientes-pr"]):this.router.navigate(["/home/gabinete-digital"],{queryParams:{"expedientes-pr":!0}}))}}]),e}(),q.\u0275fac=function(t){return new(t||q)(d.Y36(p.n),d.Y36(s.F0),d.Y36(f.V),d.Y36(s.gz),d.Y36(v.c),d.Y36(m.e),d.Y36(x.$),d.Y36(a.IN),d.Y36(P.E),d.Y36(a.t4))},q.\u0275cmp=d.Xpm({type:q,selectors:[["app-events"]],outputs:{openExpedientListPage:"openExpedientListPage"},decls:41,vars:13,consts:[[1,"ion-no-border"],[1,"ion-no-border","text-white"],[1,"time","ion-text-center"],["class","event-number p-small ion-text-center",4,"ngIf"],[1,"next-meeting"],[1,"meeting-time"],["class","meeting-description",4,"ngIf"],["ng-controller","AppController",1,"main"],["slot","fixed",3,"ionRefresh"],["type","indeterminate",4,"ngIf"],["ng-swipe-up","swipe($event)",1,"conteiner-box","px-20","height-100","overflow-y-auto"],[1,"schedule"],[1,"schedule-header"],[1,"title"],["slot","end","src","assets/images/icons-default-agenda.svg",1,"icon"],[1,"text"],[1,"btn-no-color",3,"routerLink"],["slot","end","src","assets/images/icons-arrow-circle-arrow-right.svg",1,"icon-next"],[1,"content"],["class","cursor-pointer","lines","none",3,"click",4,"ngFor","ngForOf"],["slot","end","src","assets/images/icons-correspondencias.svg",1,"icon"],[1,"btn-no-color","cursor-pointer",3,"click"],[1,"event-number","p-small","ion-text-center"],[1,"meeting-description"],["type","indeterminate"],["lines","none",1,"cursor-pointer",3,"click"],[1,"schedule-time"],["class","time-start",4,"ngIf"],["class","time-end",4,"ngIf"],["class","time-end text-center",4,"ngIf"],[1,"schedule-details"],[1,"location"],[1,"description"],[1,"time-start"],[1,"time-end"],[1,"time-end","text-center"],[1,"item-exp","d-flex"],[1,"schedule-date"],[1,"schedule-details","pointer"]],template:function(t,e){1&t&&(d.TgZ(0,"ion-header",0),d._UZ(1,"app-header"),d.qZA(),d.TgZ(2,"ion-header",1),d.TgZ(3,"ion-label"),d.TgZ(4,"p",2),d._uU(5),d.qZA(),d.qZA(),d.TgZ(6,"ion-label"),d.YNc(7,O,4,1,"p",3),d.YNc(8,C,4,1,"p",3),d.qZA(),d.TgZ(9,"div",4),d.TgZ(10,"div",5),d._uU(11),d.ALo(12,"date"),d.qZA(),d.YNc(13,M,2,1,"div",6),d.qZA(),d.qZA(),d.TgZ(14,"ion-content",7),d.TgZ(15,"ion-refresher",8),d.NdJ("ionRefresh",function(t){return e.doRefresh(t)}),d._UZ(16,"ion-refresher-content"),d.qZA(),d.YNc(17,b,1,0,"ion-progress-bar",9),d.TgZ(18,"div",10),d.TgZ(19,"div",11),d.TgZ(20,"div",12),d.TgZ(21,"div",13),d._UZ(22,"ion-icon",14),d.TgZ(23,"div",15),d._uU(24,"A sua Agenda"),d.qZA(),d.qZA(),d.TgZ(25,"button",16),d._UZ(26,"ion-icon",17),d.qZA(),d.qZA(),d.TgZ(27,"div",18),d.TgZ(28,"ion-list"),d.YNc(29,A,14,10,"ion-item",19),d.qZA(),d.qZA(),d.qZA(),d.TgZ(30,"div",11),d.TgZ(31,"div",12),d.TgZ(32,"div",13),d._UZ(33,"ion-icon",20),d.TgZ(34,"div",15),d._uU(35,"Correspond\xeancia por ler"),d.qZA(),d.qZA(),d.TgZ(36,"button",21),d.NdJ("click",function(){return e.viewExpedientListPage()}),d._UZ(37,"ion-icon",17),d.qZA(),d.qZA(),d.TgZ(38,"div",18),d.TgZ(39,"ion-list"),d.YNc(40,T,14,10,"ion-item",19),d.qZA(),d.qZA(),d.qZA(),d.qZA(),d.qZA()),2&t&&(d.xp6(5),d.Oqu(e.customDate),d.xp6(2),d.Q6J("ngIf",1==e.totalEvent),d.xp6(1),d.Q6J("ngIf",1!=e.totalEvent),d.xp6(3),d.Oqu(d.xi3(12,9,e.currentHoursMinutes,"HH:mm")),d.xp6(2),d.Q6J("ngIf",e.currentEvent),d.xp6(4),d.Q6J("ngIf",e.showLoader),d.xp6(8),d.Q6J("routerLink",d.DdM(12,E)),d.xp6(4),d.Q6J("ngForOf",e.toDayEventStorage.eventsList),d.xp6(11),d.Q6J("ngForOf",e.expedienteStorage.list))},directives:[a.Gu,_.E,a.Q$,r.O5,a.W2,a.nJ,a.Wo,a.gu,a.YI,s.rH,a.q_,r.sg,a.X7,a.Ie],pipes:[r.uU],styles:['.bg-blue[_ngcontent-%COMP%]{--background:#0782c9;background:#0782c9;--background-color:#0782c9;background-color:#0782c9;color:#fff;--color:#fff}ion-toolbar[_ngcontent-%COMP%]{--background:#fff}.ion-text-header-top[_ngcontent-%COMP%]{width:100%;--background:transparent;text-align:center;padding-top:15px;color:#fff}.div-top-header[_ngcontent-%COMP%]{width:400px;margin:0 auto;background-color:#0782c9;overflow:auto;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}.ion-text-header-top[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .ion-text-right[_ngcontent-%COMP%]{--background:transparent;color:#fff}.header-large[_ngcontent-%COMP%]{font-size:12.5pt;color:#fff}.header-large[_ngcontent-%COMP%], .header-xsmall[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif;background:transparent}.header-xsmall[_ngcontent-%COMP%]{font-size:9.7pt;font-weight:700;padding-bottom:3.5px;margin-bottom:3.5px;border-bottom:1px solid #ccc}.header-medium[_ngcontent-%COMP%]{font-size:12pt;text-align:left;font-family:roboto;background:transparent;margin-right:5px;line-height:25px}.p-small[_ngcontent-%COMP%]{font-size:13pt;margin-top:13px;color:#000;margin-right:25px!important;text-align:right}.item-list-small[_ngcontent-%COMP%]{font-size:14px;overflow:auto}.ion-item-class[_ngcontent-%COMP%]{padding:0}.label-text[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}.div-item-Oficial[_ngcontent-%COMP%]{background:#cab0dc}.div-item-Oficial[_ngcontent-%COMP%], .div-item-Pessoal[_ngcontent-%COMP%]{width:100%;overflow:auto;margin:10px 0 5px;border-radius:20px;padding:10px}.div-item-Pessoal[_ngcontent-%COMP%]{background:#cbeecb}.div-up[_ngcontent-%COMP%]{width:100%;overflow:auto}.div-up[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;font-size:17px;width:100%}.div-icon[_ngcontent-%COMP%]{width:10%;font-size:22px;float:left;color:grey}.div-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{display:block;margin:0 auto}.div-content-Oficial[_ngcontent-%COMP%]{width:85%;float:left;border-left:4px solid #cab0dc;padding:0 0 0 12px}.div-content-Pessoal[_ngcontent-%COMP%]{width:85%;float:left;border-left:4px solid #cbeecb;padding:0 0 0 12px}.div-content-Oficial[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .div-content-Pessoal[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:14pt}.div-content-Oficial[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .div-content-Pessoal[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:12pt;color:#5e5c5c;padding:0!important;margin:0!important}.div-botton[_ngcontent-%COMP%]{width:100%;overflow:auto;margin:10px 0 5px}.div-botton-left[_ngcontent-%COMP%]{width:10%;float:left}.ion-icon-location[_ngcontent-%COMP%]{text-align:center;display:block;color:#000;font-size:16px;margin:0 auto}.div-botton-middle[_ngcontent-%COMP%]{width:75%;float:left;margin-top:.5px}.div-botton-middle[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .div-botton-right[_ngcontent-%COMP%]{padding:0;margin:0}.div-botton-right[_ngcontent-%COMP%]{width:10%;float:left}.ion-icon-attach[_ngcontent-%COMP%]{color:#666;font-size:20px}.toggleBox[_ngcontent-%COMP%]{margin:20px 20px 0 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:inline;font-family:Montserrat,sans-serif;display:grid;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}.main[_ngcontent-%COMP%]{padding:0 1.25em}.event-number[_ngcontent-%COMP%]{color:#fff;font-size:15px}.event-number[_ngcontent-%COMP%], .event-number[_ngcontent-%COMP%] bold[_ngcontent-%COMP%]{font-family:Roboto;color:var(--white)}.event-number[_ngcontent-%COMP%] bold[_ngcontent-%COMP%]{font-size:25px;text-align:right}.time[_ngcontent-%COMP%]{font-family:Roboto;font-size:30px;text-align:center;color:var(--white);line-height:unset;margin-top:10px}.next-meeting[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:15px 20px 0}.next-meeting[_ngcontent-%COMP%] .meeting-time[_ngcontent-%COMP%]{font-size:1.5625em;font-family:Roboto;font-weight:300;color:var(--white);margin-right:7px}.next-meeting[_ngcontent-%COMP%] .meeting-description[_ngcontent-%COMP%]{margin-top:2px;font-family:Roboto;font-size:15px;color:var(--white)}.conteiner-box[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center}.schedule[_ngcontent-%COMP%]{max-width:400px;font-family:Roboto;padding:20px;background-color:#fff;box-shadow:0 0 10px 0 rgba(0,0,0,.07);border:1px solid #e9e9e9;margin:10px 0 20px;border-radius:25px}.schedule[_ngcontent-%COMP%] .schedule-header[_ngcontent-%COMP%]{display:flex;margin-bottom:20px;justify-content:space-between}.schedule[_ngcontent-%COMP%] .schedule-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;align-items:center}.schedule[_ngcontent-%COMP%] .schedule-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{color:#e8e8e8;height:35px;width:35px;margin-right:10px}.schedule[_ngcontent-%COMP%] .schedule-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-family:Roboto;font-size:20px;color:#000}.schedule[_ngcontent-%COMP%] .schedule-header[_ngcontent-%COMP%] .icon-next[_ngcontent-%COMP%]{color:#e8e8e8;height:35px;width:35px;font-size:35px}.schedule[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-exp[_ngcontent-%COMP%]{overflow:auto;padding-top:5px;padding-bottom:5px}.schedule[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%]{padding:0;margin:0}.schedule[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;align-items:center}.schedule[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%]{padding-bottom:5px;margin-top:5px;border-bottom:1px solid #ebebeb;display:flex;justify-content:space-between;align-items:center}.schedule[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] .schedule-time[_ngcontent-%COMP%]{margin-right:10px}.schedule[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] .schedule-time[_ngcontent-%COMP%] .time-end[_ngcontent-%COMP%], .schedule[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] .schedule-time[_ngcontent-%COMP%] .time-start[_ngcontent-%COMP%]{color:#797979!important;font-family:Roboto;font-size:13px}.schedule[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] .schedule-date[_ngcontent-%COMP%]{margin-right:10px;width:22%;color:#797979!important;font-size:13px}.schedule[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] .schedule-details[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;width:78%}.schedule[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] .schedule-details[_ngcontent-%COMP%] .location[_ngcontent-%COMP%]{font-family:Roboto;font-size:13px;color:#000;width:100%}.schedule[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] .schedule-details[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{width:100%;font-family:Roboto;font-size:15px;font-weight:700;color:#0d89d1}.schedule[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] .schedule-details[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis!important}.schedule[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] .color[_ngcontent-%COMP%]{width:5px;height:40px;border-top-right-radius:5px;border-bottom-right-radius:5px;background-color:#f05d5e}.schedule[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%]:last-child{border-bottom:unset!important;padding-bottom:unset!important}.schedule[_ngcontent-%COMP%] .resume[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-family:Roboto;font-size:15px;font-weight:500;color:#797979;margin-bottom:5px;margin-top:10px}.schedule[_ngcontent-%COMP%] .resume[_ngcontent-%COMP%] .event-num[_ngcontent-%COMP%], .schedule[_ngcontent-%COMP%] .resume[_ngcontent-%COMP%] .first-event-time[_ngcontent-%COMP%]{font-family:Roboto;font-size:15px;display:block;color:#000}.d-flex[_ngcontent-%COMP%]{display:flex}.pointer[_ngcontent-%COMP%]{cursor:pointer}@media only screen and (min-width: 804px){.schedule[_ngcontent-%COMP%]:first-child{margin-right:2%}}@media only screen and (min-width: 478px){.schedule[_ngcontent-%COMP%]{width:400px}}@media only screen and (max-width: 478px){.schedule[_ngcontent-%COMP%]{width:360px}}ion-title[_ngcontent-%COMP%]{border:1px solid red;text-overflow:ellipsis}']}),q)},{path:"event-detail",loadChildren:function(){return i.e(8592).then(i.bind(i,70937)).then(function(t){return t.EventDetailPageModule})}},{path:"attachments",loadChildren:function(){return i.e(8592).then(i.bind(i,99049)).then(function(t){return t.AttachmentsPageModule})}},{path:"attendees",loadChildren:function(){return i.e(8592).then(i.bind(i,5099)).then(function(t){return t.AttendeesPageModule})}},{path:"event-detail-modal",loadChildren:function(){return i.e(8743).then(i.bind(i,98743)).then(function(t){return t.EventDetailModalPageModule})}},{path:"edit-event",loadChildren:function(){return i.e(7016).then(i.bind(i,91135)).then(function(t){return t.EditEventPageModule})}}],D=function(){var e=function e(){t(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=d.oAB({type:e}),e.\u0275inj=d.cJS({imports:[[s.Bz.forChild(R)],s.Bz]}),e}(),U=i(6527),I=((S=function e(){t(this,e)}).\u0275fac=function(t){return new(t||S)},S.\u0275mod=d.oAB({type:S}),S.\u0275inj=d.cJS({imports:[[r.ez,c.u5,a.Pc,D,U.a]]}),S)},6527:function(e,n,o){"use strict";o.d(n,{a:function(){return u}});var i=o(38583),r=o(3679),c=o(35957),a=o(39895),s=o(962),g=o(37716),d=[{path:"",component:s.E}],l=function(){var e=function e(){t(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=g.oAB({type:e}),e.\u0275inj=g.cJS({imports:[[a.Bz.forChild(d)],a.Bz]}),e}(),u=function(){var e=function e(){t(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=g.oAB({type:e}),e.\u0275inj=g.cJS({imports:[[i.ez,r.u5,c.Pc,l]]}),e}()},962:function(e,o,i){"use strict";i.d(o,{E:function(){return _}});var r=i(64762),c=i(4528),a=i(33559),s=i(37716),g=i(39895),d=i(35957),l=i(37556),u=i(38583),h=i(3679);function p(t,e){if(1&t){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 f(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"div",28),s.NdJ("click",function(){s.CHM(n);var t=s.oxw(2);return t.openSearch(),t.showSearch=!0}),s._UZ(1,"ion-icon",23),s.qZA()}}function v(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"button",29),s.NdJ("click",function(){s.CHM(n);var t=s.oxw(2);return t.closeSearch(),t.showSearch=!1,t.searchSubject=""}),s._UZ(1,"ion-icon",30),s.qZA()}}function m(t,e){if(1&t){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(t){return s.CHM(n),s.oxw(3).searchSubject=t})("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&t){var o=s.oxw(3);s.xp6(4),s.Q6J("ngModel",o.searchSubject)}}function x(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,m,7,1,"div",31),s.qZA()),2&t){var n=s.oxw(2);s.xp6(1),s.Q6J("ngIf",n.showSearch)}}function P(t,e){if(1&t&&(s.TgZ(0,"div",24),s.YNc(1,f,2,0,"div",25),s.YNc(2,v,2,0,"button",26),s.YNc(3,x,2,1,"div",27),s.qZA()),2&t){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 _=function(){var e=function(){function e(n,o,i,r){var c=this;t(this,e),this.router=n,this.modalController=o,this.animationController=i,this.searchSubject="",this.showSearch=!1,this.hideSearchBtn=!1,this.loggeduser=r.ValidatedUser,n.events.subscribe(function(t){c.showSearch=!1})}return n(e,[{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,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var e,n,o,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return window.innerWidth<1366?(e="modal modal-width-100",n=!0):(e="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"),t.next=3,this.modalController.create({component:c.Z,cssClass:e,componentProps:{type:o,showSearchInput:n,select:!1}});case 3:return i=t.sent,t.next=6,i.present();case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}},t,this)}))}},{key:"changeRoute",value:function(t){this.router.navigateByUrl(t)}},{key:"openProfile",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var e,n,o=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=function(t){var e=o.animationController.create().addElement(t.querySelector("ion-backdrop")).fromTo("opacity","0.01","var(--backdrop-opacity)"),n=o.animationController.create().addElement(t.querySelector(".modal-wrapper")).keyframes([{offset:0,opacity:"1",right:"-100%"},{offset:1,opacity:"1",right:"0px"}]);return o.animationController.create().addElement(t).easing("ease-out").duration(500).addAnimation([e,n])},t.next=3,this.modalController.create({enterAnimation:e,leaveAnimation:function(t){return e(t).direction("reverse")},component:a.G,cssClass:"model profile-modal search-submodal",componentProps:{}});case 3:return n=t.sent,t.next=6,n.present();case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}},t,this)}))}},{key:"dynamicSearch",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:window.dynamicSearch(this.searchSubject);case 1:case"end":return t.stop()}},t,this)}))}},{key:"closeSearch",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.modalController.dismiss();case 1:case"end":return t.stop()}},t,this)}))}},{key:"clearSearchInput",value:function(){this.searchSubject="",window.dynamicSearch(this.searchSubject)}},{key:"basicSearch",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:window.searchTriger();case 1:case"end":return t.stop()}},t)}))}},{key:"profileLabel",value:function(t){return"MDGPR"==t?"MD":"PR"==t?t:"UN"}}]),e}();return e.\u0275fac=function(t){return new(t||e)(s.Y36(g.F0),s.Y36(d.IN),s.Y36(d.vB),s.Y36(l.e))},e.\u0275cmp=s.Xpm({type:e,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.YNc(2,p,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 e.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 e.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 e.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 e.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 e.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 e.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,P,4,3,"div",19),s.TgZ(36,"div",20),s.NdJ("click",function(){return e.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&t&&(s.xp6(2),s.Q6J("ngIf",!e.hideSearchBtn),s.xp6(6),s.Oqu(e.loggeduser.Profile),s.xp6(6),s.ekj("active","/home/events"==e.locationPathname()),s.xp6(4),s.ekj("active","/home/agenda"==e.locationPathname()),s.xp6(4),s.ekj("active","/home/gabinete-digital"==e.locationPathname()),s.xp6(4),s.ekj("active","/home/publications"==e.locationPathname()),s.xp6(4),s.ekj("active","/home/chat"==e.locationPathname()),s.xp6(5),s.Q6J("ngIf",!e.hideSearchBtn),s.xp6(4),s.Oqu(e.profileLabel(e.loggeduser.Profile)))},directives:[u.O5,d.gu,d.Q$,d.pK,d.j9,h.JJ,h.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}"]}),e}()},887:function(e,o,i){"use strict";i.d(o,{t:function(){return g}});var r,c=i(66096),a=i(2527),s=i(37716),g=new((r=function(){function e(){var n=this;t(this,e),this._list=[],this._count=0,this.keyName=(0,a.SHA1)(this.constructor.name+"ExpedienteStorage/forAll").toString(),setTimeout(function(){var t=c.I.get(n.keyName,[]);n._list=t.list||[],n._count=t.count||0},10)}return n(e,[{key:"list",get:function(){return this._list}},{key:"count",get:function(){return this._count},set:function(t){this._count=t,this.save()}},{key:"reset",value:function(t){this._list=t,this.count=this._list.length,this.save()}},{key:"save",value:function(){var t=this;setTimeout(function(){c.I.set(t.keyName,{list:t._list,count:t._count})},10)}}]),e}()).\u0275fac=function(t){return new(t||r)},r.\u0275prov=s.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r)}}])}();