mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
!function(){function e(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function n(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[9074,6527,5763,2417,3756,6055,5457,1087,4413,5183,5802,9391,1485,4176,9406],{6527:function(e,t,i){"use strict";i.d(t,{a:function(){return h}});var o=i(38583),r=i(3679),c=i(35957),a=i(39895),s=i(962),u=i(37716),l=[{path:"",component:s.E}],d=function(){var e=function e(){n(this,e)};return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=u.oAB({type:e}),e.\u0275inj=u.cJS({imports:[[a.Bz.forChild(l)],a.Bz]}),e}(),h=function(){var e=function e(){n(this,e)};return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=u.oAB({type:e}),e.\u0275inj=u.cJS({imports:[[o.ez,r.u5,c.Pc,d]]}),e}()},962:function(t,i,o){"use strict";o.d(i,{E:function(){return b}});var r=o(64762),c=o(4528),a=o(33559),s=o(37716),u=o(39895),l=o(35957),d=o(37556),h=o(38583),g=o(3679);function p(e,n){if(1&e){var t=s.EpF();s.TgZ(0,"div",21),s.TgZ(1,"div",22),s.NdJ("click",function(){return s.CHM(t),s.oxw().openSearch()}),s._UZ(2,"ion-icon",23),s.qZA(),s.qZA()}}function f(e,n){if(1&e){var t=s.EpF();s.TgZ(0,"div",28),s.NdJ("click",function(){s.CHM(t);var e=s.oxw(2);return e.openSearch(),e.showSearch=!0}),s._UZ(1,"ion-icon",23),s.qZA()}}function m(e,n){if(1&e){var t=s.EpF();s.TgZ(0,"button",29),s.NdJ("click",function(){s.CHM(t);var e=s.oxw(2);return e.closeSearch(),e.showSearch=!1,e.searchSubject=""}),s._UZ(1,"ion-icon",30),s.qZA()}}function v(e,n){if(1&e){var t=s.EpF();s.TgZ(0,"div",32),s.TgZ(1,"div",33),s.NdJ("click",function(){return s.CHM(t),s.oxw(3).basicSearch()}),s._UZ(2,"ion-icon",34),s.qZA(),s.TgZ(3,"div",35),s.TgZ(4,"ion-input",36),s.NdJ("keyup.enter",function(){return s.CHM(t),s.oxw(3).basicSearch()})("ngModelChange",function(e){return s.CHM(t),s.oxw(3).searchSubject=e})("ngModelChange",function(){return s.CHM(t),s.oxw(3).dynamicSearch()}),s.qZA(),s.qZA(),s.TgZ(5,"div",33),s.NdJ("click",function(){return s.CHM(t),s.oxw(3).clearSearchInput()}),s._UZ(6,"ion-icon",37),s.qZA(),s.qZA()}if(2&e){var i=s.oxw(3);s.xp6(4),s.Q6J("ngModel",i.searchSubject)}}function Z(e,n){if(1&e&&(s.TgZ(0,"div"),s.YNc(1,v,7,1,"div",31),s.qZA()),2&e){var t=s.oxw(2);s.xp6(1),s.Q6J("ngIf",t.showSearch)}}function w(e,n){if(1&e&&(s.TgZ(0,"div",24),s.YNc(1,f,2,0,"div",25),s.YNc(2,m,2,0,"button",26),s.YNc(3,Z,2,1,"div",27),s.qZA()),2&e){var t=s.oxw();s.xp6(1),s.Q6J("ngIf",!t.showSearch),s.xp6(1),s.Q6J("ngIf",t.showSearch),s.xp6(1),s.Q6J("ngIf",t.showSearch)}}var b=function(){var t=function(){function t(e,i,o,r){var c=this;n(this,t),this.router=e,this.modalController=i,this.animationController=o,this.searchSubject="",this.showSearch=!1,this.hideSearchBtn=!1,this.loggeduser=r.ValidatedUser,e.events.subscribe(function(e){c.showSearch=!1})}var i,o,s;return i=t,(o=[{key:"ngOnInit",value:function(){this.hideSearch()}},{key:"hideSearch",value:function(){"/home/events"!=this.router.url&&"/home/chat"!=this.router.url||(this.hideSearchBtn=!0)}},{key:"locationPathname",value:function(){return window.location.pathname}},{key:"openSearch",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var n,t,i,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return window.innerWidth<1366?(n="modal modal-width-100",t=!0):(n="modal modal-desktop desktop-search",t=!1),window.location.pathname.startsWith("/home/agenda")?i="Agenda":window.location.pathname.startsWith("/home/gabinete-digital")?i="AccoesPresidenciais & ArquivoDespachoElect":window.location.pathname.startsWith("/home/publications")&&(i="AccoesPresidenciais"),e.next=3,this.modalController.create({component:c.Z,cssClass:n,componentProps:{type:i,showSearchInput:t,select:!1}});case 3:return o=e.sent,e.next=6,o.present();case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e,this)}))}},{key:"changeRoute",value:function(e){this.router.navigateByUrl(e)}},{key:"openProfile",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var n,t,i=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=function(e){var n=i.animationController.create().addElement(e.querySelector("ion-backdrop")).fromTo("opacity","0.01","var(--backdrop-opacity)"),t=i.animationController.create().addElement(e.querySelector(".modal-wrapper")).keyframes([{offset:0,opacity:"1",right:"-100%"},{offset:1,opacity:"1",right:"0px"}]);return i.animationController.create().addElement(e).easing("ease-out").duration(500).addAnimation([n,t])},e.next=3,this.modalController.create({enterAnimation:n,leaveAnimation:function(e){return n(e).direction("reverse")},component:a.G,cssClass:"model profile-modal search-submodal",componentProps:{}});case 3:return t=e.sent,e.next=6,t.present();case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e,this)}))}},{key:"dynamicSearch",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:window.dynamicSearch(this.searchSubject);case 1:case"end":return e.stop()}},e,this)}))}},{key:"closeSearch",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.modalController.dismiss();case 1:case"end":return e.stop()}},e,this)}))}},{key:"clearSearchInput",value:function(){this.searchSubject="",window.dynamicSearch(this.searchSubject)}},{key:"basicSearch",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:window.searchTriger();case 1:case"end":return e.stop()}},e)}))}},{key:"profileLabel",value:function(e){return"MDGPR"==e?"MD":"PR"==e?e:"UN"}}])&&e(i.prototype,o),s&&e(i,s),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(u.F0),s.Y36(l.IN),s.Y36(l.vB),s.Y36(d.e))},t.\u0275cmp=s.Xpm({type:t,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&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.YNc(2,p,3,0,"div",2),s.TgZ(3,"div",3),s._UZ(4,"img",4),s.qZA(),s.TgZ(5,"div",5),s.NdJ("click",function(){return n.openProfile()}),s._UZ(6,"ion-icon",6),s.TgZ(7,"ion-label",7),s._uU(8),s.qZA(),s.qZA(),s.qZA(),s.TgZ(9,"div",8),s.TgZ(10,"div",9),s.TgZ(11,"div",10),s._UZ(12,"img",4),s.qZA(),s.TgZ(13,"div",11),s.TgZ(14,"div",12),s.NdJ("click",function(){return n.changeRoute("/home/events")}),s._UZ(15,"ion-icon",13),s.TgZ(16,"span"),s._uU(17,"In\xedcio"),s.qZA(),s.qZA(),s.TgZ(18,"div",12),s.NdJ("click",function(){return n.changeRoute("/home/agenda")}),s._UZ(19,"ion-icon",14),s.TgZ(20,"span"),s._uU(21,"Agenda"),s.qZA(),s.qZA(),s.TgZ(22,"div",12),s.NdJ("click",function(){return n.changeRoute("/home/gabinete-digital")}),s._UZ(23,"ion-icon",15),s.TgZ(24,"span"),s._uU(25,"Gabinete"),s.qZA(),s.qZA(),s.TgZ(26,"div",12),s.NdJ("click",function(){return n.changeRoute("/home/publications")}),s._UZ(27,"ion-icon",16),s.TgZ(28,"span"),s._uU(29,"Ac\xe7\xf5es"),s.qZA(),s.qZA(),s.TgZ(30,"div",12),s.NdJ("click",function(){return n.changeRoute("/home/chat")}),s._UZ(31,"ion-icon",17),s.TgZ(32,"span"),s._uU(33,"Chat"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(34,"div",18),s.YNc(35,w,4,3,"div",19),s.TgZ(36,"div",20),s.NdJ("click",function(){return n.openProfile()}),s._UZ(37,"ion-icon",6),s.TgZ(38,"ion-label",7),s._uU(39),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&e&&(s.xp6(2),s.Q6J("ngIf",!n.hideSearchBtn),s.xp6(6),s.Oqu(n.loggeduser.Profile),s.xp6(6),s.ekj("active","/home/events"==n.locationPathname()),s.xp6(4),s.ekj("active","/home/agenda"==n.locationPathname()),s.xp6(4),s.ekj("active","/home/gabinete-digital"==n.locationPathname()),s.xp6(4),s.ekj("active","/home/publications"==n.locationPathname()),s.xp6(4),s.ekj("active","/home/chat"==n.locationPathname()),s.xp6(5),s.Q6J("ngIf",!n.hideSearchBtn),s.xp6(4),s.Oqu(n.profileLabel(n.loggeduser.Profile)))},directives:[h.O5,l.gu,l.Q$,l.pK,l.j9,g.JJ,g.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}"]}),t}()}}])}(); |