mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
19 KiB
JavaScript
1 line
19 KiB
JavaScript
|
|
!function(){function e(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function n(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function t(e,t,o){return t&&n(e.prototype,t),o&&n(e,o),e}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[3047],{43047:function(n,o,i){"use strict";i.r(o),i.d(o,{HomePageModule:function(){return N}});var r=i(38583),a=i(3679),u=i(35957),l=i(39895),c=i(37716),s=i(66096),d=function(){var n=function(){function n(t,o){e(this,n),this.router=t,this.localstoreService=o}return t(n,[{key:"canActivate",value:function(e,n){return!(""!=window.location.pathname&&!this.localstoreService.get("UserData",!1)&&(this.router.navigate(["/"]),1))}}]),n}();return n.\u0275fac=function(e){return new(e||n)(c.LFG(l.F0),c.LFG(s.L))},n.\u0275prov=c.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n}(),h=i(37556),p=function(){var n=function(){function n(t){e(this,n),this.authService=t}return t(n,[{key:"resolve",value:function(){return this.authService.getUserData()}}]),n}();return n.\u0275fac=function(e){return new(e||n)(c.LFG(h.e))},n.\u0275prov=c.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n}(),f=i(75837),m=i(79744),v=i(30883),g=i(96975),b=i(60852),P=i(54271),C=i(8500),M=i(42764),S=i(92173),A=i(75235),w=function(){var n=function(){function n(){e(this,n),this.expedienteGbStore=b.a,this.pendentesStore=P.G,this.despachoStore=v.G,this.eventoAprovacaoStore=g.j,this.pedidosStore=C.d,this.expedientePrStore=M.s,this.despachoPrStore=S.d,this.deplomasStore=A.S}return t(n,[{key:"mdTotalDocument",get:function(){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}},{key:"prTotalDocument",get:function(){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}}]),n}();return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=c.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n}(),y=i(96529);function Z(e,n){if(1&e&&(c.TgZ(0,"ion-badge",4),c._uU(1),c.qZA()),2&e){var t=c.oxw();c.xp6(1),c.Oqu(t.documentCounterService.mdTotalDocument)}}function x(e,n){if(1&e&&(c.TgZ(0,"ion-badge",4),c._uU(1),c.qZA()),2&e){var t=c.oxw();c.xp6(1),c.Oqu(t.documentCounterService.prTotalDocument)}}var E,T,_=function(){return["MDGPR"]},D=function(){return["PR"]},k=[{path:"home",component:(E=function(){function n(t,o,i,r,a,u,l,c){e(this,n),this.zone=t,this.router=o,this.modalCtrl=i,this.notificatinsservice=r,this.platform=a,this.activeroute=u,this.documentCounterService=l,this.p=c,this.totalEvent=0,this.totalExpediente=0,this.toDayEventStorage=f.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(function(e){document.querySelectorAll("ion-modal").forEach(function(e){return e.remove()})})}return t(n,[{key:"ngOnInit",value:function(){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())}},{key:"mobilefirstConnect",value:function(){window.WLAuthorizationManager&&window.WLAuthorizationManager.obtainAccessToken&&window.WLAuthorizationManager.obtainAccessToken("").then(function(e){
|