mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
32 KiB
JavaScript
1 line
32 KiB
JavaScript
(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(t,e,n){"use strict";n.r(e),n.d(e,{EventsPageModule:function(){return E}});var o=n(38583),i=n(3679),c=n(35957),s=n(39895),r=n(64762),a=n(37716),g=n(47352),d=n(75837),l=n(887),h=n(80106),p=n(71188),u=n(25970),f=n(37556),m=n(28621),v=n(77370),x=n(962);function P(t,e){if(1&t&&(a.TgZ(0,"p",22),a.TgZ(1,"strong"),a._uU(2),a.qZA(),a._uU(3," evento agendado para hoje"),a.qZA()),2&t){const t=a.oxw();a.xp6(2),a.Oqu(t.totalEvent)}}function _(t,e){if(1&t&&(a.TgZ(0,"p",22),a.TgZ(1,"strong"),a._uU(2),a.qZA(),a._uU(3," eventos agendados para hoje"),a.qZA()),2&t){const t=a.oxw();a.xp6(2),a.Oqu(t.totalEvent)}}function O(t,e){if(1&t&&(a.TgZ(0,"div",23),a._uU(1),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.hij(' "',t.currentEvent,'"')}}function C(t,e){1&t&&a._UZ(0,"ion-progress-bar",24)}function M(t,e){if(1&t&&(a.TgZ(0,"div",33),a._uU(1),a.ALo(2,"date"),a.qZA()),2&t){const t=a.oxw().$implicit;a.xp6(1),a.Oqu(a.xi3(2,1,t.StartDate,"HH:mm"))}}function b(t,e){if(1&t&&(a.TgZ(0,"div",34),a._uU(1),a.ALo(2,"date"),a.qZA()),2&t){const t=a.oxw().$implicit;a.xp6(1),a.Oqu(a.xi3(2,1,t.EndDate,"HH:mm"))}}function Z(t,e){1&t&&(a.TgZ(0,"div",33),a._uU(1," Todo "),a.qZA())}function w(t,e){1&t&&(a.TgZ(0,"div",35),a._uU(1," o dia "),a.qZA())}function y(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"ion-item",25),a.NdJ("click",function(){const e=a.CHM(t).$implicit;return a.oxw().goToEvent(e.EventId)}),a.TgZ(1,"div"),a.TgZ(2,"div",26),a.YNc(3,M,3,4,"div",27),a.YNc(4,b,3,4,"div",28),a.YNc(5,Z,2,0,"div",27),a.YNc(6,w,2,0,"div",29),a._UZ(7,"div"),a.qZA(),a.TgZ(8,"div",30),a.TgZ(9,"div",31),a._uU(10),a.qZA(),a.TgZ(11,"div",32),a.TgZ(12,"p"),a._uU(13),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,n=a.oxw();a.xp6(1),a.MT6("d-flex content-",n.loggeduser.Profile,"-",t.CalendarName,""),a.xp6(2),a.Q6J("ngIf",!t.IsAllDayEvent),a.xp6(1),a.Q6J("ngIf",!t.IsAllDayEvent),a.xp6(1),a.Q6J("ngIf",t.IsAllDayEvent),a.xp6(1),a.Q6J("ngIf",t.IsAllDayEvent),a.xp6(4),a.Oqu(t.Location),a.xp6(3),a.Oqu(t.Subject)}}function A(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"ion-item",25),a.NdJ("click",function(){const e=a.CHM(t).$implicit;return a.oxw().goToExpediente(e.serialNumber)}),a.TgZ(1,"div",36),a.TgZ(2,"div",37),a.TgZ(3,"div",34),a._uU(4),a.ALo(5,"date"),a.qZA(),a.TgZ(6,"div",33),a._uU(7),a.ALo(8,"date"),a.qZA(),a.qZA(),a.TgZ(9,"div",38),a.TgZ(10,"div",32),a._uU(11),a.qZA(),a.TgZ(12,"div",31),a._uU(13),a.qZA(),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit;a.xp6(4),a.Oqu(a.xi3(5,4,t.taskStartDate,"dd-MM-yyyy HH:mm")),a.xp6(3),a.Oqu(a.xi3(8,7,t.taskStartDate,"HH:mm")),a.xp6(4),a.Oqu(t.workflowInstanceDataFields.Subject),a.xp6(2),a.Oqu(t.workflowInstanceDataFields.Sender)}}const k=function(){return["/home/agenda"]},T=[{path:"",component:(()=>{class t{constructor(t,e,n,o,i,c,s,g,h,p){this.eventService=t,this.router=e,this.storageService=n,this.activatedRoute=o,this.alertController=i,this.authService=c,this.processes=s,this.modalController=g,this.screenOrientation=h,this.platform=p,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=d.x,this.expedienteStorage=l.t,this.openExpedientListPage=new a.vpe,this.existingScreenOrientation=this.screenOrientation.type,console.log(this.existingScreenOrientation),this.loggeduser=c.ValidatedUser,this.prEventList=null,this.platform.resize.subscribe(()=>(0,r.mG)(this,void 0,void 0,function*(){console.log("Resize event detected")}))}ngOnInit(){this.segment="Combinada",this.profile="mdgpr",this.showGreeting(),this.router.events.forEach(t=>{t instanceof s.m2&&"/home/events"==t.url&&(this.RefreshEvents(),this.LoadList())}),this.hideSearch()}hideSearch(){"/home/events"==this.router.url&&(this.hideSearchBtn=!0)}doRefresh(t){this.RefreshEvents(),this.LoadList(),t.target.complete()}onSegmentChange(){this.RefreshEvents()}lockToPortrait(){this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.PORTRAIT),console.log("set")}lockToLandscape(){this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.LANDSCAPE)}unlockScreenOrientation(){this.screenOrientation.unlock()}checkScreenOrientation(){window.innerWidth<701?(this.lockToPortrait(),console.log("was here")):this.unlockScreenOrientation()}RefreshEvents(){return(0,r.mG)(this,void 0,void 0,function*(){this.currentEvent="",this.showLoader=!0;let t=new Date;t.setMonth(t.getMonth()+1);let e=t.getFullYear()+"-"+t.getMonth()+"-"+t.getDate()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds(),n=t.getFullYear()+"-"+t.getMonth()+"-"+t.getDate()+" 23:59:59";if("MDGPR"==this.loggeduser.Profile){let t=yield this.eventService.getAllMdOficialEvents(e,n).toPromise(),o=yield this.eventService.getAllMdPessoalEvents(e,n).toPromise();const i=t.concat(o);this.toDayEventStorage.reset(i),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}else if("PR"==this.loggeduser.Profile){let t=yield this.eventService.getAllPrOficialEvents(e,n).toPromise(),o=yield this.eventService.getAllPrPessoalEvents(e,n).toPromise();const i=t.concat(o);this.toDayEventStorage.reset(i),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}})}showGreeting(){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]}gotTo(){this.router.navigate(["/home/events"])}changeProfile(){"mdgpr"==this.profile?(console.log("pr"),this.profile="pr",this.RefreshEvents()):(console.log("mdgpr"),this.profile="mdgpr",this.RefreshEvents())}logout(){this.authService.ValidatedUser.BasicAuthKey="",this.router.navigate(["/home/login"])}openEventDetail1(t){return(0,r.mG)(this,void 0,void 0,function*(){console.log(t);const e=yield this.modalController.create({component:g.W,componentProps:{eventId:t},cssClass:"event-detail",backdropDismiss:!1});yield e.present(),e.onDidDismiss()})}LoadList(){switch(this.loggeduser.Profile){case"MDGPR":this.processes.GetTasksList("Expediente",!1).subscribe(t=>{console.log(t),this.expedienteStorage.reset(t)});break;case"PR":this.processes.GetTasksList("Expediente",!1).subscribe(t=>{this.expedienteStorage.reset(t)})}}sortArrayISODate(t){return t.sort(function(t,e){return t.CreateDate<e.CreateDate?-1:t.CreateDate>e.CreateDate?1:0})}goToEvent(t){this.router.navigate(["/home/events",t,"events"])}goToExpediente(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"])}viewExpedientListPage(){"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}}))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(h.n),a.Y36(s.F0),a.Y36(p.V),a.Y36(s.gz),a.Y36(u.c),a.Y36(f.e),a.Y36(m.$),a.Y36(c.IN),a.Y36(v.E),a.Y36(c.t4))},t.\u0275cmp=a.Xpm({type:t,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&&(a.TgZ(0,"ion-header",0),a._UZ(1,"app-header"),a.qZA(),a.TgZ(2,"ion-header",1),a.TgZ(3,"ion-label"),a.TgZ(4,"p",2),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"ion-label"),a.YNc(7,P,4,1,"p",3),a.YNc(8,_,4,1,"p",3),a.qZA(),a.TgZ(9,"div",4),a.TgZ(10,"div",5),a._uU(11),a.ALo(12,"date"),a.qZA(),a.YNc(13,O,2,1,"div",6),a.qZA(),a.qZA(),a.TgZ(14,"ion-content",7),a.TgZ(15,"ion-refresher",8),a.NdJ("ionRefresh",function(t){return e.doRefresh(t)}),a._UZ(16,"ion-refresher-content"),a.qZA(),a.YNc(17,C,1,0,"ion-progress-bar",9),a.TgZ(18,"div",10),a.TgZ(19,"div",11),a.TgZ(20,"div",12),a.TgZ(21,"div",13),a._UZ(22,"ion-icon",14),a.TgZ(23,"div",15),a._uU(24,"A sua Agenda"),a.qZA(),a.qZA(),a.TgZ(25,"button",16),a._UZ(26,"ion-icon",17),a.qZA(),a.qZA(),a.TgZ(27,"div",18),a.TgZ(28,"ion-list"),a.YNc(29,y,14,10,"ion-item",19),a.qZA(),a.qZA(),a.qZA(),a.TgZ(30,"div",11),a.TgZ(31,"div",12),a.TgZ(32,"div",13),a._UZ(33,"ion-icon",20),a.TgZ(34,"div",15),a._uU(35,"Correspond\xeancia por ler"),a.qZA(),a.qZA(),a.TgZ(36,"button",21),a.NdJ("click",function(){return e.viewExpedientListPage()}),a._UZ(37,"ion-icon",17),a.qZA(),a.qZA(),a.TgZ(38,"div",18),a.TgZ(39,"ion-list"),a.YNc(40,A,14,10,"ion-item",19),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(5),a.Oqu(e.customDate),a.xp6(2),a.Q6J("ngIf",1==e.totalEvent),a.xp6(1),a.Q6J("ngIf",1!=e.totalEvent),a.xp6(3),a.Oqu(a.xi3(12,9,e.currentHoursMinutes,"HH:mm")),a.xp6(2),a.Q6J("ngIf",e.currentEvent),a.xp6(4),a.Q6J("ngIf",e.showLoader),a.xp6(8),a.Q6J("routerLink",a.DdM(12,k)),a.xp6(4),a.Q6J("ngForOf",e.toDayEventStorage.eventsList),a.xp6(11),a.Q6J("ngForOf",e.expedienteStorage.list))},directives:[c.Gu,x.E,c.Q$,o.O5,c.W2,c.nJ,c.Wo,c.gu,c.YI,s.rH,c.q_,o.sg,c.X7,c.Ie],pipes:[o.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}']}),t})()},{path:"event-detail",loadChildren:()=>n.e(8592).then(n.bind(n,70937)).then(t=>t.EventDetailPageModule)},{path:"attachments",loadChildren:()=>n.e(8592).then(n.bind(n,99049)).then(t=>t.AttachmentsPageModule)},{path:"attendees",loadChildren:()=>n.e(8592).then(n.bind(n,5099)).then(t=>t.AttendeesPageModule)},{path:"event-detail-modal",loadChildren:()=>n.e(8743).then(n.bind(n,98743)).then(t=>t.EventDetailModalPageModule)},{path:"edit-event",loadChildren:()=>n.e(7016).then(n.bind(n,91135)).then(t=>t.EditEventPageModule)}];let q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[s.Bz.forChild(T)],s.Bz]}),t})();var S=n(6527);let E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[o.ez,i.u5,c.Pc,q,S.a]]}),t})()},6527:function(t,e,n){"use strict";n.d(e,{a:function(){return l}});var o=n(38583),i=n(3679),c=n(35957),s=n(39895),r=n(962),a=n(37716);const g=[{path:"",component:r.E}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[s.Bz.forChild(g)],s.Bz]}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[o.ez,i.u5,c.Pc,d]]}),t})()},962:function(t,e,n){"use strict";n.d(e,{E:function(){return x}});var o=n(64762),i=n(4528),c=n(33559),s=n(37716),r=n(39895),a=n(35957),g=n(37556),d=n(38583),l=n(3679);function h(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",21),s.TgZ(1,"div",22),s.NdJ("click",function(){return s.CHM(t),s.oxw().openSearch()}),s._UZ(2,"ion-icon",23),s.qZA(),s.qZA()}}function p(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",28),s.NdJ("click",function(){s.CHM(t);const e=s.oxw(2);return e.openSearch(),e.showSearch=!0}),s._UZ(1,"ion-icon",23),s.qZA()}}function u(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",29),s.NdJ("click",function(){s.CHM(t);const e=s.oxw(2);return e.closeSearch(),e.showSearch=!1,e.searchSubject=""}),s._UZ(1,"ion-icon",30),s.qZA()}}function f(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",32),s.TgZ(1,"div",33),s.NdJ("click",function(){return s.CHM(t),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(t),s.oxw(3).basicSearch()})("ngModelChange",function(e){return s.CHM(t),s.oxw(3).searchSubject=e})("ngModelChange",function(){return s.CHM(t),s.oxw(3).dynamicSearch()}),s.qZA(),s.qZA(),s.TgZ(5,"div",33),s.NdJ("click",function(){return s.CHM(t),s.oxw(3).clearSearchInput()}),s._UZ(6,"ion-icon",37),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(3);s.xp6(4),s.Q6J("ngModel",t.searchSubject)}}function m(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,f,7,1,"div",31),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("ngIf",t.showSearch)}}function v(t,e){if(1&t&&(s.TgZ(0,"div",24),s.YNc(1,p,2,0,"div",25),s.YNc(2,u,2,0,"button",26),s.YNc(3,m,2,1,"div",27),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngIf",!t.showSearch),s.xp6(1),s.Q6J("ngIf",t.showSearch),s.xp6(1),s.Q6J("ngIf",t.showSearch)}}let x=(()=>{class t{constructor(t,e,n,o){this.router=t,this.modalController=e,this.animationController=n,this.searchSubject="",this.showSearch=!1,this.hideSearchBtn=!1,this.loggeduser=o.ValidatedUser,t.events.subscribe(t=>{this.showSearch=!1})}ngOnInit(){this.hideSearch()}hideSearch(){"/home/events"!=this.router.url&&"/home/chat"!=this.router.url||(this.hideSearchBtn=!0)}locationPathname(){return window.location.pathname}openSearch(){return(0,o.mG)(this,void 0,void 0,function*(){let t,e,n;window.innerWidth<1366?(t="modal modal-width-100",e=!0):(t="modal modal-desktop desktop-search",e=!1),window.location.pathname.startsWith("/home/agenda")?n="Agenda":window.location.pathname.startsWith("/home/gabinete-digital")?n="AccoesPresidenciais & ArquivoDespachoElect":window.location.pathname.startsWith("/home/publications")&&(n="AccoesPresidenciais");const o=yield this.modalController.create({component:i.Z,cssClass:t,componentProps:{type:n,showSearchInput:e,select:!1}});return yield o.present()})}changeRoute(t){this.router.navigateByUrl(t)}openProfile(){return(0,o.mG)(this,void 0,void 0,function*(){const t=t=>{const e=this.animationController.create().addElement(t.querySelector("ion-backdrop")).fromTo("opacity","0.01","var(--backdrop-opacity)"),n=this.animationController.create().addElement(t.querySelector(".modal-wrapper")).keyframes([{offset:0,opacity:"1",right:"-100%"},{offset:1,opacity:"1",right:"0px"}]);return this.animationController.create().addElement(t).easing("ease-out").duration(500).addAnimation([e,n])},e=yield this.modalController.create({enterAnimation:t,leaveAnimation:e=>t(e).direction("reverse"),component:c.G,cssClass:"model profile-modal search-submodal",componentProps:{}});return yield e.present()})}dynamicSearch(){return(0,o.mG)(this,void 0,void 0,function*(){window.dynamicSearch(this.searchSubject)})}closeSearch(){return(0,o.mG)(this,void 0,void 0,function*(){this.modalController.dismiss()})}clearSearchInput(){this.searchSubject="",window.dynamicSearch(this.searchSubject)}basicSearch(){return(0,o.mG)(this,void 0,void 0,function*(){window.searchTriger()})}profileLabel(t){return"MDGPR"==t?"MD":"PR"==t?t:"UN"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.F0),s.Y36(a.IN),s.Y36(a.vB),s.Y36(g.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.YNc(2,h,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,v,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:[d.O5,a.gu,a.Q$,a.pK,a.j9,l.JJ,l.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})()},887:function(t,e,n){"use strict";n.d(e,{t:function(){return s}});var o=n(66096),i=n(2527),c=n(37716);const s=new((()=>{class t{constructor(){this._list=[],this._count=0,this.keyName=(0,i.SHA1)(this.constructor.name+"ExpedienteStorage/forAll").toString(),setTimeout(()=>{let t=o.I.get(this.keyName,[]);this._list=t.list||[],this._count=t.count||0},10)}get list(){return this._list}get count(){return this._count}set count(t){this._count=t,this.save()}reset(t){this._list=t,this.count=this._list.length,this.save()}save(){setTimeout(()=>{o.I.set(this.keyName,{list:this._list,count:this._count})},10)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})())}}]); |