mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
|
|
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[6055,6527,5763,2417,3756,5457,1087,4413,5183,5802,9391,1485,9074,4176,9406],{6527:function(e,n,t){"use strict";t.d(n,{a:function(){return h}});var i=t(38583),o=t(3679),c=t(35957),r=t(39895),a=t(962),s=t(37716);const d=[{path:"",component:a.E}];let l=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=s.oAB({type:e}),e.\u0275inj=s.cJS({imports:[[r.Bz.forChild(d)],r.Bz]}),e})(),h=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=s.oAB({type:e}),e.\u0275inj=s.cJS({imports:[[i.ez,o.u5,c.Pc,l]]}),e})()},962:function(e,n,t){"use strict";t.d(n,{E:function(){return Z}});var i=t(64762),o=t(4528),c=t(33559),r=t(37716),a=t(39895),s=t(35957),d=t(37556),l=t(38583),h=t(3679);function g(e,n){if(1&e){const e=r.EpF();r.TgZ(0,"div",21),r.TgZ(1,"div",22),r.NdJ("click",function(){return r.CHM(e),r.oxw().openSearch()}),r._UZ(2,"ion-icon",23),r.qZA(),r.qZA()}}function u(e,n){if(1&e){const e=r.EpF();r.TgZ(0,"div",28),r.NdJ("click",function(){r.CHM(e);const n=r.oxw(2);return n.openSearch(),n.showSearch=!0}),r._UZ(1,"ion-icon",23),r.qZA()}}function p(e,n){if(1&e){const e=r.EpF();r.TgZ(0,"button",29),r.NdJ("click",function(){r.CHM(e);const n=r.oxw(2);return n.closeSearch(),n.showSearch=!1,n.searchSubject=""}),r._UZ(1,"ion-icon",30),r.qZA()}}function f(e,n){if(1&e){const e=r.EpF();r.TgZ(0,"div",32),r.TgZ(1,"div",33),r.NdJ("click",function(){return r.CHM(e),r.oxw(3).basicSearch()}),r._UZ(2,"ion-icon",34),r.qZA(),r.TgZ(3,"div",35),r.TgZ(4,"ion-input",36),r.NdJ("keyup.enter",function(){return r.CHM(e),r.oxw(3).basicSearch()})("ngModelChange",function(n){return r.CHM(e),r.oxw(3).searchSubject=n})("ngModelChange",function(){return r.CHM(e),r.oxw(3).dynamicSearch()}),r.qZA(),r.qZA(),r.TgZ(5,"div",33),r.NdJ("click",function(){return r.CHM(e),r.oxw(3).clearSearchInput()}),r._UZ(6,"ion-icon",37),r.qZA(),r.qZA()}if(2&e){const e=r.oxw(3);r.xp6(4),r.Q6J("ngModel",e.searchSubject)}}function m(e,n){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,f,7,1,"div",31),r.qZA()),2&e){const e=r.oxw(2);r.xp6(1),r.Q6J("ngIf",e.showSearch)}}function v(e,n){if(1&e&&(r.TgZ(0,"div",24),r.YNc(1,u,2,0,"div",25),r.YNc(2,p,2,0,"button",26),r.YNc(3,m,2,1,"div",27),r.qZA()),2&e){const e=r.oxw();r.xp6(1),r.Q6J("ngIf",!e.showSearch),r.xp6(1),r.Q6J("ngIf",e.showSearch),r.xp6(1),r.Q6J("ngIf",e.showSearch)}}let Z=(()=>{class e{constructor(e,n,t,i){this.router=e,this.modalController=n,this.animationController=t,this.searchSubject="",this.showSearch=!1,this.hideSearchBtn=!1,this.loggeduser=i.ValidatedUser,e.events.subscribe(e=>{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,i.mG)(this,void 0,void 0,function*(){let e,n,t;window.innerWidth<1366?(e="modal modal-width-100",n=!0):(e="modal modal-desktop desktop-search",n=!1),window.location.pathname.startsWith("/home/agenda")?t="Agenda":window.location.pathname.startsWith("/home/gabinete-digital")?t="AccoesPresidenciais & ArquivoDespachoElect":window.location.pathname.startsWith("/home/publications")&&(t="AccoesPresidenciais");const i=yield this.modalController.create({component:o.Z,cssClass:e,componentProps:{type:t,showSearchInput:n,select:!1}});return yield i.present()})}changeRoute(e){this.router.navigateByUrl(e)}openProfile(){return(0,i.mG)(this,void 0,void 0,function*(){const e=e=>{const n=this.animationController.create().addElement(e.querySelector("ion-backdrop")).fromTo("opacity","0.01","var(--backdrop-opacity)"),t=this.animationController.create().addElement(e.querySelector(".modal-wrapper")).keyframes([{offset:0,opacity:"1",right:"-100%"},{offset:1,opacity:"1",right:"0px"}]);return this.animationController.create().addElement(e).easing("ease-out").duration(500).addAnimation([n,t])},n=yield this.modalController.create({enterAnimation:e,leaveAnimation:n=>e(n).direction("reverse"),component:c.G,cssClass:"model profile-modal search-submodal",component
|