Files
doneit-web/_platforms/browser/www/3047-es2015.991fa98cae5dd67681f1.js
T
tiago.kayaya 24e2a8f518 save
2021-08-18 18:58:02 +01:00

1 line
16 KiB
JavaScript

(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[3047],{43047:function(e,t,n){"use strict";n.r(t),n.d(t,{HomePageModule:function(){return T}});var o=n(38583),a=n(3679),i=n(35957),l=n(39895),r=n(37716),s=n(66096);let d=(()=>{class e{constructor(e,t){this.router=e,this.localstoreService=t}canActivate(e,t){return!(""!=window.location.pathname&&!this.localstoreService.get("UserData",!1)&&(this.router.navigate(["/"]),1))}}return e.\u0275fac=function(t){return new(t||e)(r.LFG(l.F0),r.LFG(s.L))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var h=n(37556);let c=(()=>{class e{constructor(e){this.authService=e}resolve(){return this.authService.getUserData()}}return e.\u0275fac=function(t){return new(t||e)(r.LFG(h.e))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var p=n(75837),u=n(79744),m=n(30883),g=n(96975),b=n(60852),v=n(54271),P=n(8500),C=n(42764),M=n(92173),f=n(75235);let S=(()=>{class e{constructor(){this.expedienteGbStore=b.a,this.pendentesStore=v.G,this.despachoStore=m.G,this.eventoAprovacaoStore=g.j,this.pedidosStore=P.d,this.expedientePrStore=C.s,this.despachoPrStore=M.d,this.deplomasStore=f.S}get mdTotalDocument(){return this.despachoStore.count+this.expedienteGbStore.count+this.pedidosStore.countdeferimento+this.pedidosStore.countparecer+this.expedientePrStore.count+this.despachoPrStore.count+this.pendentesStore.count+this.eventoAprovacaoStore.count+this.deplomasStore.diplomasListCount+this.deplomasStore.countDiplomasListCount}get prTotalDocument(){return this.despachoStore.count+this.expedienteGbStore.count+this.pedidosStore.countdeferimento+this.pedidosStore.countparecer+this.expedientePrStore.count+this.despachoPrStore.count+this.pendentesStore.count+this.eventoAprovacaoStore.count+this.deplomasStore.diplomasListCount+this.deplomasStore.countDiplomasListCount}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var A=n(96529);function w(e,t){if(1&e&&(r.TgZ(0,"ion-badge",4),r._uU(1),r.qZA()),2&e){const e=r.oxw();r.xp6(1),r.Oqu(e.documentCounterService.mdTotalDocument)}}function Z(e,t){if(1&e&&(r.TgZ(0,"ion-badge",4),r._uU(1),r.qZA()),2&e){const e=r.oxw();r.xp6(1),r.Oqu(e.documentCounterService.prTotalDocument)}}const x=function(){return["MDGPR"]},E=function(){return["PR"]},_=[{path:"home",component:(()=>{class e{constructor(e,t,n,o,a,i,l,r){this.zone=e,this.router=t,this.modalCtrl=n,this.notificatinsservice=o,this.platform=a,this.activeroute=i,this.documentCounterService=l,this.p=r,this.totalEvent=0,this.totalExpediente=0,this.toDayEventStorage=p.x,this.adding="intervenient",this.mobileComponent={showAddNewEvent:!1,showEditEvent:!1,showEventDetails:!1,showEventList:!1,transparentEventList:!1,transparentEventToApprove:!1,showEventToApprove:!1,showAttendees:!1,showAttendeeModal:!1},this.eventToaprove={back:!1,serialNumber:"",saveData:{}},this.router.events.subscribe(e=>{document.querySelectorAll("ion-modal").forEach(e=>e.remove())})}ngOnInit(){console.log("Active route ",this.router.url),this.platform.is("desktop")||this.platform.is("mobileweb")?console.log("Notifications not supported"):(this.mobilefirstConnect(),this.notificatinsservice.getAndpostToken2(),this.notificatinsservice.onReceviNotification())}mobilefirstConnect(){window.WLAuthorizationManager&&window.WLAuthorizationManager.obtainAccessToken&&window.WLAuthorizationManager.obtainAccessToken("").then(e=>{console.log("MobileFirst Server connect: Success "+e);var t=new WLResourceRequest("/adapters/javaAdapter/resource/greet/",WLResourceRequest.GET);t.setQueryParameter("name","world"),t.send().then(e=>{console.log("Connect with JavaAdapter Success: "+e.responseText)},e=>{console.log("Connect with JavaAdapter Failure: "+JSON.stringify(e))})},e=>{console.log("MobileFirst Server connect: failure "+e.responseText),console.log(JSON.stringify(e))})}}return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.R0b),r.Y36(l.F0),r.Y36(i.Br),r.Y36(u.T),r.Y36(i.t4),r.Y36(l.gz),r.Y36(S),r.Y36(A.$))},e.\u0275cmp=r.Xpm({type:e,selectors:[["app-home"]],decls:27,vars:5,consts:[[1,"tab"],["slot","bottom",1,"bottoms"],["tab","events"],["src","assets/images/icons-nav-home.svg",1,"nav-icon"],["color","danger"],["tab","agenda"],["src","assets/images/icons-nav-calendar.svg",1,"nav-icon"],[1,"overflow-visible"],["tab","gabinete-digital"],["src","assets/images/icons-nav-gabinete-inactive.svg",1,"nav-icon"],["color","danger",4,"ngIf"],["tab","publications"],["src","assets/images/icons-nav-actions.svg",1,"nav-icon"],["tab","chat"],["src","assets/images/icons-nav-chat-inactive.svg",1,"nav-icon"],["href","https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css","rel","stylesheet"]],template:function(e,t){1&e&&(r.TgZ(0,"ion-tabs",0),r.TgZ(1,"ion-tab-bar",1),r.TgZ(2,"ion-tab-button",2),r._UZ(3,"ion-icon",3),r.TgZ(4,"ion-badge",4),r._uU(5),r.qZA(),r.TgZ(6,"ion-label"),r._uU(7,"In\xedcio"),r.qZA(),r.qZA(),r.TgZ(8,"ion-tab-button",5),r._UZ(9,"ion-icon",6),r.TgZ(10,"ion-label",7),r._uU(11,"Agenda"),r.qZA(),r.qZA(),r.TgZ(12,"ion-tab-button",8),r._UZ(13,"ion-icon",9),r.YNc(14,w,2,1,"ion-badge",10),r.YNc(15,Z,2,1,"ion-badge",10),r.TgZ(16,"ion-label"),r._uU(17,"Gabinete"),r.qZA(),r.qZA(),r.TgZ(18,"ion-tab-button",11),r._UZ(19,"ion-icon",12),r.TgZ(20,"ion-label",7),r._uU(21,"A\xe7\xf5es"),r.qZA(),r.qZA(),r.TgZ(22,"ion-tab-button",13),r._UZ(23,"ion-icon",14),r.TgZ(24,"ion-label"),r._uU(25,"Chat"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r._UZ(26,"link",15)),2&e&&(r.xp6(5),r.Oqu(t.toDayEventStorage.eventsList.length),r.xp6(9),r.Q6J("ngIf",t.p.userRole(r.DdM(3,x))),r.xp6(1),r.Q6J("ngIf",t.p.userRole(r.DdM(4,E))))},directives:[i.UN,i.yq,i.ZU,i.gu,i.yp,i.Q$,o.O5],styles:["ion-tab-bar[_ngcontent-%COMP%]{--background:#f9f9f9;--color:#061b52}ion-badge[_ngcontent-%COMP%]{min-width:18px;font-size:15px}.tab[_ngcontent-%COMP%] .bottoms[_ngcontent-%COMP%]{display:flex;justify-content:space-around}@media only screen and (min-width: 1366px){ion-tabs.tab[_ngcontent-%COMP%] .bottoms[_ngcontent-%COMP%]{display:none}}"]}),e})(),resolve:{userData:c},children:[{path:"events",children:[{path:"",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(989),n.e(3289)]).then(n.bind(n,73289)).then(e=>e.EventsPageModule)},{path:":eventId/:caller",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(8592),n.e(5763)]).then(n.bind(n,91796)).then(e=>e.ViewEventPageModule)},{path:"expediente",children:[{path:":SerialNumber/:caller",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(8592),n.e(2417)]).then(n.bind(n,3961)).then(e=>e.ExpedienteDetailPageModule)}]},{path:"expedientes-pr",children:[{path:":SerialNumber/:caller",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(2344),n.e(8592),n.e(3756)]).then(n.bind(n,42344)).then(e=>e.ExpedientePrPageModule)}]}]},{path:"attachments",children:[{path:":eventId",loadChildren:()=>Promise.all([n.e(8592),n.e(4594)]).then(n.bind(n,99049)).then(e=>e.AttachmentsPageModule)}]},{path:"attendees",children:[{path:"",loadChildren:()=>Promise.all([n.e(8592),n.e(5199)]).then(n.bind(n,5099)).then(e=>e.AttendeesPageModule)}]},{path:"attendees-modal",children:[{path:"",loadChildren:()=>Promise.all([n.e(8592),n.e(7352)]).then(n.bind(n,2142)).then(e=>e.AttendeeModalPageModule)}]},{path:"agenda",children:[{path:"",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(6410),n.e(7732),n.e(2265),n.e(2138),n.e(8497),n.e(5895),n.e(8345),n.e(8592),n.e(1858)]).then(n.bind(n,61858)).then(e=>e.AgendaPageModule)},{path:":eventId/:caller",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(8592),n.e(5763)]).then(n.bind(n,91796)).then(e=>e.ViewEventPageModule)},{path:"eventId/:caller",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(8592),n.e(5763)]).then(n.bind(n,91796)).then(e=>e.ViewEventPageModule)},{path:"edit-event",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(8592)]).then(n.bind(n,97404)).then(e=>e.EditEventPageModule)},{path:"emend-message-modal",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(2265),n.e(8195),n.e(8592),n.e(5597)]).then(n.bind(n,6834)).then(e=>e.ApproveEventModalPageModule)},{path:"view-event",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(8592),n.e(5763)]).then(n.bind(n,91796)).then(e=>e.ViewEventPageModule)},{path:"event-list",children:[{path:"",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(2265),n.e(8195),n.e(3239),n.e(8592),n.e(6055)]).then(n.bind(n,13406)).then(e=>e.EventListPageModule)},{path:"approve-event",children:[{path:":serialNumber/:caller",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(2265),n.e(9014),n.e(8592),n.e(1895)]).then(n.bind(n,49014)).then(e=>e.ApproveEventPageModule)}]}]}]},{path:"gabinete-digital",children:[{path:"",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(562),n.e(7732),n.e(675),n.e(6176),n.e(8497),n.e(8088),n.e(9655),n.e(1515),n.e(4290),n.e(8592),n.e(4233)]).then(n.bind(n,14233)).then(e=>e.GabineteDigitalPageModule)},{path:"expediente",children:[{path:"",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(3437),n.e(5457)]).then(n.bind(n,73437)).then(e=>e.ExpedientePageModule)},{path:":SerialNumber",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(8592),n.e(2417)]).then(n.bind(n,3961)).then(e=>e.ExpedienteDetailPageModule)},{path:":SerialNumber/:caller",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(8592),n.e(2417)]).then(n.bind(n,3961)).then(e=>e.ExpedienteDetailPageModule)},{path:"events/:eventId/:caller",loadChildren:()=>Promise.all([n.e(2783),n.e(989),n.e(8592)]).then(n.bind(n,70937)).then(e=>e.EventDetailPageModule)},{path:"expediente-task-modal",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(8592)]).then(n.bind(n,16)).then(e=>e.ExpedientTaskModalPageModule)}]},{path:"expedientes-pr",children:[{path:"",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(7732),n.e(8142),n.e(8592),n.e(1087)]).then(n.bind(n,18142)).then(e=>e.ExpedientesPrPageModule)},{path:":SerialNumber/:caller",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(2344),n.e(8592),n.e(3756)]).then(n.bind(n,42344)).then(e=>e.ExpedientePrPageModule)}]},{path:"despachos",children:[{path:"",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(7732),n.e(6065),n.e(8592),n.e(4413)]).then(n.bind(n,56109)).then(e=>e.DespachosPageModule)},{path:":SerialNumber/:caller",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(562),n.e(5276),n.e(4917),n.e(944),n.e(5183)]).then(n.bind(n,29864)).then(e=>e.DespachoPageModule)}]},{path:"despachos-pr",children:[{path:"",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(562),n.e(7732),n.e(5276),n.e(4917),n.e(497),n.e(8592),n.e(6379)]).then(n.bind(n,40497)).then(e=>e.DespachosPrPageModule)},{path:":SerialNumber/:caller",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(562),n.e(3923),n.e(8176)]).then(n.bind(n,13923)).then(e=>e.DespachoPrPageModule)}]},{path:"pedidos",children:[{path:"",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(7732),n.e(3471),n.e(8592),n.e(5802)]).then(n.bind(n,73471)).then(e=>e.PedidosPageModule)},{path:":SerialNumber/:caller",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(562),n.e(675),n.e(6176),n.e(8592),n.e(9391)]).then(n.bind(n,7392)).then(e=>e.PedidoPageModule)}]},{path:"diplomas",children:[{path:"",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(2598),n.e(8592),n.e(1485)]).then(n.bind(n,92598)).then(e=>e.DiplomasPageModule)},{path:":SerialNumber/:caller",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(7932),n.e(8592),n.e(9074)]).then(n.bind(n,67932)).then(e=>e.DiplomaPageModule)}]},{path:"diplomas-assinar",children:[{path:"",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(8592),n.e(9763)]).then(n.bind(n,54234)).then(e=>e.DiplomasAssinarPageModule)},{path:":SerialNumber/:caller",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(1135),n.e(8592),n.e(4176)]).then(n.bind(n,61135)).then(e=>e.DiplomaAssinarPageModule)}]},{path:"event-list",children:[{path:"",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(2265),n.e(8195),n.e(3239),n.e(8592),n.e(6055)]).then(n.bind(n,13406)).then(e=>e.EventListPageModule)},{path:"approve-event",children:[{path:":serialNumber/:caller",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(2265),n.e(9014),n.e(8592),n.e(1895)]).then(n.bind(n,49014)).then(e=>e.ApproveEventPageModule)}]}]},{path:"events-to-approve",children:[{path:"",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(2265),n.e(319)]).then(n.bind(n,20319))}]}]},{path:"search",children:[{path:"",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(8592),n.e(6632)]).then(n.bind(n,16632)).then(e=>e.SearchPageModule)}]},{path:"publications",children:[{path:"",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(8052),n.e(4572),n.e(8592),n.e(3101)]).then(n.bind(n,93101)).then(e=>e.PublicationsPageModule)},{path:":folderId",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(8052),n.e(8592)]).then(n.bind(n,4175)).then(e=>e.ViewPublicationsPageModule)},{path:"view-publications",children:[{path:":folderId/:publicationId",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(8592),n.e(9406)]).then(n.bind(n,5305)).then(e=>e.PublicationDetailPageModule)}]},{path:"new-publication",loadChildren:()=>Promise.all([n.e(4572),n.e(910)]).then(n.bind(n,72774)).then(e=>e.NewPublicationPageModule)},{path:"request-options",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(562),n.e(675),n.e(8514)]).then(n.bind(n,8514)).then(e=>e.RequestOptionsPageModule)}]},{path:"chat",children:[{path:"",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(3559),n.e(6410),n.e(2138),n.e(927),n.e(265),n.e(1110),n.e(531),n.e(8592),n.e(4485)]).then(n.bind(n,54485)).then(e=>e.ChatPageModule)},{path:"messages",children:[{path:":roomId",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(6410),n.e(1110),n.e(8592),n.e(8442)]).then(n.bind(n,10333)).then(e=>e.MessagesPageModule)},{path:"contacts",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(6410),n.e(265),n.e(531),n.e(8943)]).then(n.bind(n,90531)).then(e=>e.ContactsPageModule)},{path:"contacts",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(6410),n.e(1110),n.e(8592),n.e(6059)]).then(n.bind(n,19630)).then(e=>e.ContactsPageModule)}]},{path:"group-messages",children:[{path:"",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(6410),n.e(927),n.e(8592)]).then(n.bind(n,96878)).then(e=>e.GroupMessagesPageModule)},{path:"group-contacts",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(6410),n.e(265),n.e(8592),n.e(7013)]).then(n.bind(n,88052)).then(e=>e.GroupContactsPageModule)},{path:"group-contacts",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(6410),n.e(927),n.e(8592),n.e(5503)]).then(n.bind(n,48077)).then(e=>e.GroupContactsPageModule)}]}]},{path:"document-detail",children:[{path:"",loadChildren:()=>Promise.all([n.e(2783),n.e(3416),n.e(4528),n.e(8592)]).then(n.bind(n,54330)).then(e=>e.DocumentDetailPageModule)}]},{path:"inactivity",children:[{path:"",loadChildren:()=>n.e(8459).then(n.bind(n,28459)).then(e=>e.InactivityPageModule)}]}],canActivate:[d]}];let D=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({imports:[[l.Bz.forChild(_)],l.Bz]}),e})(),T=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({imports:[[o.ez,a.u5,i.Pc,D]]}),e})()},75837:function(e,t,n){"use strict";n.d(t,{x:function(){return l}});var o=n(66096),a=n(2527),i=n(37716);const l=new((()=>{class e{constructor(){this._eventsList=[],this._count=0,this.keyName=(0,a.SHA1)(this.constructor.name+"home/eventSource").toString(),setTimeout(()=>{let e=o.I.get(this.keyName,{});this._eventsList=e.eventsList||[],this._count=parseInt(e.count)||0},10)}get eventsList(){return this._eventsList||[]}get count(){return this._count}set count(e){this._count=e,this.save()}reset(e){this._eventsList=e,this.count=this._eventsList.length,this.save()}save(){setTimeout(()=>{o.I.set(this.keyName,{eventsList:this._eventsList,count:this._eventsList})},10)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})())}}]);