Files
doneit-web/_platforms/browser/www/3047-es2015.991fa98cae5dd67681f1.js
T

1 line
16 KiB
JavaScript
Raw Normal View History

2021-08-18 18:58:02 +01:00
(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({t