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",componentProps:{}});return yield n.present()})}dynamicSearch(){return(0,i.mG)(this,void 0,void 0,function*(){window.dynamicSearch(this.searchSubject)})}closeSearch(){return(0,i.mG)(this,void 0,void 0,function*(){this.modalController.dismiss()})}clearSearchInput(){this.searchSubject="",window.dynamicSearch(this.searchSubject)}basicSearch(){return(0,i.mG)(this,void 0,void 0,function*(){window.searchTriger()})}profileLabel(e){return"MDGPR"==e?"MD":"PR"==e?e:"UN"}}return e.\u0275fac=function(n){return new(n||e)(r.Y36(a.F0),r.Y36(s.IN),r.Y36(s.vB),r.Y36(d.e))},e.\u0275cmp=r.Xpm({type:e,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(e,n){1&e&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.YNc(2,g,3,0,"div",2),r.TgZ(3,"div",3),r._UZ(4,"img",4),r.qZA(),r.TgZ(5,"div",5),r.NdJ("click",function(){return n.openProfile()}),r._UZ(6,"ion-icon",6),r.TgZ(7,"ion-label",7),r._uU(8),r.qZA(),r.qZA(),r.qZA(),r.TgZ(9,"div",8),r.TgZ(10,"div",9),r.TgZ(11,"div",10),r._UZ(12,"img",4),r.qZA(),r.TgZ(13,"div",11),r.TgZ(14,"div",12),r.NdJ("click",function(){return n.changeRoute("/home/events")}),r._UZ(15,"ion-icon",13),r.TgZ(16,"span"),r._uU(17,"In\xedcio"),r.qZA(),r.qZA(),r.TgZ(18,"div",12),r.NdJ("click",function(){return n.changeRoute("/home/agenda")}),r._UZ(19,"ion-icon",14),r.TgZ(20,"span"),r._uU(21,"Agenda"),r.qZA(),r.qZA(),r.TgZ(22,"div",12),r.NdJ("click",function(){return n.changeRoute("/home/gabinete-digital")}),r._UZ(23,"ion-icon",15),r.TgZ(24,"span"),r._uU(25,"Gabinete"),r.qZA(),r.qZA(),r.TgZ(26,"div",12),r.NdJ("click",function(){return n.changeRoute("/home/publications")}),r._UZ(27,"ion-icon",16),r.TgZ(28,"span"),r._uU(29,"Ac\xe7\xf5es"),r.qZA(),r.qZA(),r.TgZ(30,"div",12),r.NdJ("click",function(){return n.changeRoute("/home/chat")}),r._UZ(31,"ion-icon",17),r.TgZ(32,"span"),r._uU(33,"Chat"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(34,"div",18),r.YNc(35,v,4,3,"div",19),r.TgZ(36,"div",20),r.NdJ("click",function(){return n.openProfile()}),r._UZ(37,"ion-icon",6),r.TgZ(38,"ion-label",7),r._uU(39),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&e&&(r.xp6(2),r.Q6J("ngIf",!n.hideSearchBtn),r.xp6(6),r.Oqu(n.loggeduser.Profile),r.xp6(6),r.ekj("active","/home/events"==n.locationPathname()),r.xp6(4),r.ekj("active","/home/agenda"==n.locationPathname()),r.xp6(4),r.ekj("active","/home/gabinete-digital"==n.locationPathname()),r.xp6(4),r.ekj("active","/home/publications"==n.locationPathname()),r.xp6(4),r.ekj("active","/home/chat"==n.locationPathname()),r.xp6(5),r.Q6J("ngIf",!n.hideSearchBtn),r.xp6(4),r.Oqu(n.profileLabel(n.loggeduser.Profile)))},directives:[l.O5,s.gu,s.Q$,s.pK,s.j9,h.JJ,h.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}"]}),e})()}}]); |