Files
doneit-web/_platforms/browser/www/3101-es5.5c59e2b019e312d6a200.js
T
tiago.kayaya 24e2a8f518 save
2021-08-18 18:58:02 +01:00

1 line
82 KiB
JavaScript

!function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function n(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[3101],{8272:function(e,o,i){"use strict";i.d(o,{Q:function(){return b}});var a=i(64762),r=i(37716),s=i(3679),c=i(16738),d=i(28232),l=i(86704),u=i(84465),p=i(35957),g=i(98295),f=i(49983),h=i(25653),m=i(43220),b=function(){var e=function(){function e(n,o,i,a){t(this,e),this.publicationsService=n,this.toastService=o,this.navParams=i,this.modalController=a,this.validateFrom=!1,this.disabled=!1,this.showSpinners=!0,this.showSeconds=!1,this.touchUi=!1,this.enableMeridian=!1,this.minDate=(new Date).toISOString().slice(0,10),this.stepHour=1,this.stepMinute=5,this.stepSecond=5,this.dateControlStart=new s.NI(c("DD MM YYYY hh")),this.dateControlEnd=new s.NI(c("DD MM YYYY hh")),this.closeDesktopComponent=new r.vpe,this.updateDesktopComponent=new r.vpe,this.folder=new d.Z,this.folderId=this.navParams.get("folderId")}return n(e,[{key:"ngOnInit",value:function(){this.getPublicationDetail()}},{key:"close",value:function(){this.modalController.dismiss()}},{key:"getPublicationDetail",value:function(){var t=this;this.publicationsService.GetPresidentialAction(this.folderId).subscribe(function(e){t.folder=e,t.dateControlStart=new s.NI(c(new Date(t.folder.DateBegin))),t.dateControlEnd=new s.NI(c(new Date(t.folder.DateEnd)))})}},{key:"dateValid",get:function(){return window.innerWidth<=800?this.folder.DateBegin<this.folder.DateEnd?["ok"]:[]:["ok"]}},{key:"runValidation",value:function(){this.validateFrom=!0}},{key:"injectValidation",value:function(){this.Form=new s.cw({Subject:new s.NI(this.folder.Description,[s.kI.required]),Date:new s.NI(this.dateValid,[s.kI.required])})}},{key:"save",value:function(){return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var e,n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e={ProcessId:this.folderId,Description:this.folder.Description,Detail:this.folder.Detail,DateBegin:this.folder.DateBegin,DateEnd:this.folder.DateEnd,ActionType:this.folder.ActionType},console.log(e),n=this.toastService.loading(),t.prev=3,t.next=6,this.publicationsService.UpdatePresidentialAction(e).toPromise();case 6:this.close(),this.updateDesktopComponent.emit(),this.toastService.successMessage("Ac\xe7\xe3o presidencial atualizada"),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(3),this.toastService.badRequest("N\xe3o foi possivel atualizar a ac\xe7\xe3o presidencial");case 14:return t.prev=14,n.remove(),t.finish(14);case 17:case"end":return t.stop()}},t,this,[[3,11,14,17]])}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(l.H),r.Y36(u.k),r.Y36(p.X1),r.Y36(p.IN))},e.\u0275cmp=r.Xpm({type:e,selectors:[["app-edit-action"]],outputs:{closeDesktopComponent:"closeDesktopComponent",updateDesktopComponent:"updateDesktopComponent"},decls:47,vars:28,consts:[[1,"ion-no-border","pt-20","px-20"],[1,"title-content","width-100","d-flex","align-center","justify-space-between"],[1,"div-title"],[1,"title"],[1,"content-container"],[1,"ion-item-container"],["placeholder","Assunto",3,"ngModel","ngModelChange"],[1,"container-div"],[1,"ion-item-class-2","d-flex"],[1,"ion-icon-class"],["slot","start","src","assets/images/icons-calendar.svg"],[1,"ion-input-class","flex-grow-1"],["placeholder","In\xedcio","displayFormat","D MMM YYYY H:mm","minuteValues","0,15,30,45","monthShortNames","Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez","max","2025",1,"d-block","d-md-none",3,"ngModel","min","ngModelChange"],["appearance","none",1,"width-100","date-hour-picker","d-none","d-md-block"],["matInput","","placeholder","Choose a date*",3,"ngxMatDatetimePicker","formControl","min","disabled"],["id","new-inicio","matSuffix","",3,"for"],[3,"showSpinners","showSeconds","stepHour","stepMinute","stepSecond","touchUi"],["picker1",""],[1,"ion-input-class","d-flex","flex-grow-1"],["placeholder","Fim","displayFormat","D MMM YYYY H:mm","minuteValues","0,15,30,45","monthShortNames","Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez","max","2022",1,"flex-grow-1","d-block","d-md-none",3,"ngModel","min","ngModelChange"],[1,"width-100","date-hour-picker","d-none","d-md-block"],["slot","start","src","assets/images/icons-description.svg"],[1,"ion-textarea-class","flex-grow-1"],["rows","12","cols","20","placeholder","Descri\xe7\xe3o da ac\xe7\xe3o...",3,"ngModel","ngModelChange"],[1,"ion-no-border"],[1,"footer-toolbar","width-100","justify-space-between","d-flex","px-20"],["slot","start"],["fill","clear","color","#061b52",1,"btn-cancel",3,"click"],["slot","end"],["fill","clear","color","#fff",1,"btn-ok",3,"click"]],template:function(t,e){if(1&t&&(r.TgZ(0,"ion-header",0),r.TgZ(1,"div",1),r.TgZ(2,"div",2),r.TgZ(3,"ion-label",3),r._uU(4,"Editar ac\xe7\xe3o presidencial"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.TgZ(5,"ion-content"),r.TgZ(6,"div",4),r.TgZ(7,"div",5),r.TgZ(8,"ion-input",6),r.NdJ("ngModelChange",function(t){return e.folder.Description=t}),r.qZA(),r.qZA(),r.TgZ(9,"div",7),r.TgZ(10,"div",8),r.TgZ(11,"div",9),r._UZ(12,"ion-icon",10),r.qZA(),r.TgZ(13,"div",11),r.TgZ(14,"ion-datetime",12),r.NdJ("ngModelChange",function(t){return e.folder.DateBegin=t}),r.qZA(),r.TgZ(15,"mat-form-field",13),r._UZ(16,"input",14),r._UZ(17,"mat-datepicker-toggle",15),r._UZ(18,"ngx-mat-datetime-picker",16,17),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.TgZ(20,"div",7),r.TgZ(21,"div",8),r.TgZ(22,"div",9),r._UZ(23,"ion-icon",10),r.qZA(),r.TgZ(24,"div",18),r.TgZ(25,"ion-datetime",19),r.NdJ("ngModelChange",function(t){return e.folder.DateEnd=t}),r.qZA(),r.TgZ(26,"mat-form-field",20),r._UZ(27,"input",14),r._UZ(28,"mat-datepicker-toggle",15),r._UZ(29,"ngx-mat-datetime-picker",16,17),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.TgZ(31,"div",7),r.TgZ(32,"div",8),r.TgZ(33,"div",9),r._UZ(34,"ion-icon",21),r.qZA(),r.TgZ(35,"div",22),r.TgZ(36,"ion-textarea",23),r.NdJ("ngModelChange",function(t){return e.folder.Detail=t}),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.TgZ(37,"ion-footer",24),r.TgZ(38,"ion-toolbar",25),r.TgZ(39,"ion-buttons",26),r.TgZ(40,"button",27),r.NdJ("click",function(){return e.close()}),r.TgZ(41,"ion-label"),r._uU(42,"Cancelar"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(43,"ion-buttons",28),r.TgZ(44,"button",29),r.NdJ("click",function(){return e.save()}),r.TgZ(45,"ion-label"),r._uU(46,"Gravar"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t){var n=r.MAs(19);r.xp6(8),r.Q6J("ngModel",e.folder.Description),r.xp6(6),r.s9C("min",e.minDate),r.Q6J("ngModel",e.folder.DateBegin),r.xp6(2),r.Q6J("ngxMatDatetimePicker",n)("formControl",e.dateControlEnd)("min",e.minDate)("disabled",e.disabled),r.xp6(1),r.Q6J("for",n),r.xp6(1),r.Q6J("showSpinners",e.showSpinners)("showSeconds",e.showSeconds)("stepHour",e.stepHour)("stepMinute",e.stepMinute)("stepSecond",e.stepSecond)("touchUi",e.touchUi),r.xp6(7),r.s9C("min",e.minDate),r.Q6J("ngModel",e.folder.DateEnd),r.xp6(2),r.Q6J("ngxMatDatetimePicker",n)("formControl",e.dateControlEnd)("min",e.minDate)("disabled",e.disabled),r.xp6(1),r.Q6J("for",n),r.xp6(1),r.Q6J("showSpinners",e.showSpinners)("showSeconds",e.showSeconds)("stepHour",e.stepHour)("stepMinute",e.stepMinute)("stepSecond",e.stepSecond)("touchUi",e.touchUi),r.xp6(7),r.Q6J("ngModel",e.folder.Detail)}},directives:[p.Gu,p.Q$,p.W2,p.pK,p.j9,s.JJ,s.On,p.gu,p.x4,p.QI,g.KE,f.Nt,h.g2,s.Fj,s.oH,m.nW,g.R9,h.AB,p.g2,p.fr,p.sr,p.Sm],styles:["[_nghost-%COMP%]{background:#fff}ion-content[_ngcontent-%COMP%]{--background:transparent;transform:translate3d(0,5px,0);--border-radius:30px}ion-footer[_ngcontent-%COMP%]{background:#fff}ion-toolbar[_ngcontent-%COMP%]{border-width:0!important}.div-top-header[_ngcontent-%COMP%]{margin:0 auto;background-color:#0782c9;overflow:auto;padding-top:15px;border:0!important}.div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-logo[_ngcontent-%COMP%]{background:transparent;width:140px;margin:5px 0 0 71px;float:left}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}.content-top[_ngcontent-%COMP%]{background:#f3f2f2;height:20px}.content-container[_ngcontent-%COMP%], .content-top[_ngcontent-%COMP%]{margin:0 auto;border-top-left-radius:25px;border-top-right-radius:25px}.content-container[_ngcontent-%COMP%]{width:100%;background:#fff;height:100%;padding:25px 20px 0;overflow:auto}.title-content[_ngcontent-%COMP%]{margin:0 auto;overflow:auto;padding:0!important}.div-title[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;float:left;margin:2.5px 0 0 5px}.title[_ngcontent-%COMP%]{font-size:25px}.container-div[_ngcontent-%COMP%]{margin-bottom:15px;overflow:auto}.ion-item-container[_ngcontent-%COMP%]{margin:15px auto;border:1px solid #ebebeb;border-radius:5px;padding-left:10px}.ion-item-container-no-border[_ngcontent-%COMP%]{width:100%;margin:0 auto;padding:0!important;overflow:auto}.ion-item-class-2[_ngcontent-%COMP%]{margin:0 auto}.ion-icon-class[_ngcontent-%COMP%]{width:45px;height:45px;float:left;padding:10px;font-size:25px}.ion-input-class[_ngcontent-%COMP%], .ion-textarea-class[_ngcontent-%COMP%]{height:auto;border:1px solid #ebebeb;border-radius:5px;padding-left:5px;padding-right:10px;float:left}.ion-textarea-class[_ngcontent-%COMP%]{width:315px}.ion-input-class-no-height[_ngcontent-%COMP%]{border:1px solid #ebebeb;border-radius:5px;overflow:auto}.actionType[_ngcontent-%COMP%]{float:right;overflow:auto;border-radius:30px}.ion-segment[_ngcontent-%COMP%]{--background:#0782c9}"]}),e}()},59123:function(e,o,i){"use strict";i.d(o,{Q:function(){return v}});var a=i(64762),r=i(3679),s=i(16738),c=i(28232),d=i(25653),l=i(37716),u=i(35957),p=i(86704),g=i(84465),f=i(98295),h=i(49983),m=i(43220),b={parse:{dateInput:"YYYY-MMMM-DD HH:mm"},display:{dateInput:"DD MMM YYYY H:mm",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},v=function(){var e=function(){function e(n,o,i){t(this,e),this.modalController=n,this.publication=o,this.toastService=i,this.validateFrom=!1,this.disabled=!1,this.showSpinners=!0,this.showSeconds=!1,this.touchUi=!1,this.enableMeridian=!1,this.minDate=(new Date).toISOString().slice(0,10),this.endMinDate=new Date((new Date).getTime()+9e5),this.stepHour=1,this.stepMinute=5,this.stepSecond=5,this.dateControlStart=new r.NI(s("DD MM YYYY hh")),this.dateControlEnd=new r.NI(s("DD MM YYYY hh")),this.showLoader=!1,this.folder=new c.Z,this.dateControlStart=new r.NI(s(new Date)),this.dateControlEnd=new r.NI(s(new Date((new Date).getTime()+9e5))),this.folder.DateBegin=(new Date).toISOString(),this.folder.DateEnd=new Date((new Date).getTime()+9e5).toISOString()}return n(e,[{key:"dateStart",get:function(){return this.dateControlStart.value}},{key:"dateEnd",get:function(){return this.dateControlEnd.value}},{key:"ngOnInit",value:function(){this.segment="Viagem",this.setDefaultTime()}},{key:"setDefaultTime",value:function(){this.folder.DateBegin=(new Date).toISOString(),this.folder.DateEnd=new Date((new Date).getTime()+9e5).toISOString()}},{key:"segmentChanged",value:function(t){console.log(t.detail.value)}},{key:"dateValid",get:function(){return window.innerWidth<=800?this.folder.DateBegin<this.folder.DateEnd?["ok"]:[]:["ok"]}},{key:"runValidation",value:function(){this.validateFrom=!0}},{key:"injectValidation",value:function(){this.Form=new r.cw({Subject:new r.NI(this.folder.Description,[r.kI.required]),Date:new r.NI(this.dateValid,[r.kI.required])})}},{key:"save",value:function(){return(0,a.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.injectValidation(),this.runValidation(),!this.Form.invalid){t.next=2;break}return t.abrupt("return",!1);case 2:return this.folder={ProcessId:null,Description:this.folder.Description,Detail:this.folder.Detail,DateBegin:this.folder.DateBegin,DateEnd:this.folder.DateEnd,ActionType:this.segment},e=this.toastService.loading(),t.prev=4,t.next=7,this.publication.CreatePublicationFolder(this.folder).toPromise();case 7:this.toastService.successMessage("A\xe7\xe3o presidencial criado"),this.close(),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(4),this.toastService.badRequest("A\xe7\xe3o presidencial n\xe3o criado");case 14:return t.prev=14,e.remove(),t.finish(14);case 17:case"end":return t.stop()}},t,this,[[4,11,14,17]])}))}},{key:"close",value:function(){this.modalController.dismiss()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Y36(u.IN),l.Y36(p.H),l.Y36(g.k))},e.\u0275cmp=l.Xpm({type:e,selectors:[["app-new-action"]],features:[l._Bn([{provide:d.ab,useValue:b}])],decls:54,vars:35,consts:[[1,"content-container"],[1,"title-content","width-100"],[1,"div-title"],[1,"title"],[1,"actionType"],[3,"ngModel","ngModelChange","ionChange"],["value","Viagem"],["value","Evento"],[1,"ion-item-container"],["placeholder","Assunto",3,"ngModel","ngModelChange"],[1,"container-div"],[1,"ion-item-class-2"],[1,"ion-icon-class"],["slot","start","src","assets/images/icons-calendar.svg"],[1,"ion-input-class"],["placeholder","In\xedcio","displayFormat","D MMM YYYY H:mm","minuteValues","0,15,30,45","monthShortNames","Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez","max","2025",1,"d-block","d-md-none",3,"ngModel","min","ngModelChange"],["appearance","none",1,"date-hour-picker","d-none","d-md-block"],["matInput","","placeholder","Choose a date",3,"ngxMatDatetimePicker","formControl","min","disabled"],["id","new-inicio","matSuffix","",3,"for"],[3,"showSpinners","showSeconds","stepHour","stepMinute","stepSecond","touchUi"],["picker1",""],["placeholder","Fim","displayFormat","D MMM YYYY H:mm","minuteValues","0,15,30,45","monthShortNames","Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez","max","2025",1,"d-block","d-md-none",3,"ngModel","min","ngModelChange"],[1,"date-hour-picker","d-none","d-md-block"],["id","new-fim","matSuffix","",3,"for"],["fim",""],["slot","start","src","assets/images/icons-description.svg"],[1,"ion-textarea-class"],["rows","12","cols","20","placeholder","Descri\xe7\xe3o da ac\xe7\xe3o...",3,"ngModel","ngModelChange"],[1,"ion-no-border"],[1,"footer-toolbar","width-100"],["slot","start"],["fill","clear","color","#061b52",1,"btn-cancel",3,"click"],["slot","end"],["fill","clear","color","#fff",1,"btn-ok",3,"click"]],template:function(t,e){if(1&t&&(l.TgZ(0,"ion-content"),l.TgZ(1,"div",0),l.TgZ(2,"div",1),l.TgZ(3,"div",2),l.TgZ(4,"ion-label",3),l._uU(5," Nova Ac\xe7\xe3o"),l.qZA(),l.qZA(),l.TgZ(6,"div",4),l.TgZ(7,"ion-segment",5),l.NdJ("ngModelChange",function(t){return e.segment=t})("ionChange",function(t){return e.segmentChanged(t)}),l.TgZ(8,"ion-segment-button",6),l.TgZ(9,"ion-label"),l._uU(10,"Viagem"),l.qZA(),l.qZA(),l.TgZ(11,"ion-segment-button",7),l.TgZ(12,"ion-label"),l._uU(13,"Evento"),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.TgZ(14,"div",8),l.TgZ(15,"ion-input",9),l.NdJ("ngModelChange",function(t){return e.folder.Description=t}),l.qZA(),l.qZA(),l.TgZ(16,"div",10),l.TgZ(17,"div",11),l.TgZ(18,"div",12),l._UZ(19,"ion-icon",13),l.qZA(),l.TgZ(20,"div",14),l.TgZ(21,"ion-datetime",15),l.NdJ("ngModelChange",function(t){return e.folder.DateBegin=t}),l.qZA(),l.TgZ(22,"mat-form-field",16),l._UZ(23,"input",17),l._UZ(24,"mat-datepicker-toggle",18),l._UZ(25,"ngx-mat-datetime-picker",19,20),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.TgZ(27,"div",10),l.TgZ(28,"div",11),l.TgZ(29,"div",12),l._UZ(30,"ion-icon",13),l.qZA(),l.TgZ(31,"div",14),l.TgZ(32,"ion-datetime",21),l.NdJ("ngModelChange",function(t){return e.folder.DateEnd=t}),l.qZA(),l.TgZ(33,"mat-form-field",22),l._UZ(34,"input",17),l._UZ(35,"mat-datepicker-toggle",23),l._UZ(36,"ngx-mat-datetime-picker",19,24),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.TgZ(38,"div",10),l.TgZ(39,"div",11),l.TgZ(40,"div",12),l._UZ(41,"ion-icon",25),l.qZA(),l.TgZ(42,"div",26),l.TgZ(43,"ion-textarea",27),l.NdJ("ngModelChange",function(t){return e.folder.Detail=t}),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.TgZ(44,"ion-footer",28),l.TgZ(45,"ion-toolbar",29),l.TgZ(46,"ion-buttons",30),l.TgZ(47,"ion-button",31),l.NdJ("click",function(){return e.close()}),l.TgZ(48,"ion-label"),l._uU(49,"Cancelar"),l.qZA(),l.qZA(),l.qZA(),l.TgZ(50,"ion-buttons",32),l.TgZ(51,"ion-button",33),l.NdJ("click",function(){return e.save()}),l.TgZ(52,"ion-label"),l._uU(53,"Criar"),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&t){var n,o,i,a=l.MAs(26),r=l.MAs(37);l.xp6(7),l.Q6J("ngModel",e.segment),l.xp6(7),l.ekj("input-error",(null==e.Form||null==(n=e.Form.get("Subject"))?null:n.invalid)&&e.validateFrom),l.xp6(1),l.Q6J("ngModel",e.folder.Description),l.xp6(5),l.ekj("input-error",(null==e.Form||null==(o=e.Form.get("Date"))?null:o.invalid)&&e.validateFrom),l.xp6(1),l.s9C("min",e.minDate),l.Q6J("ngModel",e.folder.DateBegin),l.xp6(2),l.Q6J("ngxMatDatetimePicker",a)("formControl",e.dateControlStart)("min",e.minDate)("disabled",e.disabled),l.xp6(1),l.Q6J("for",a),l.xp6(1),l.Q6J("showSpinners",e.showSpinners)("showSeconds",e.showSeconds)("stepHour",e.stepHour)("stepMinute",e.stepMinute)("stepSecond",e.stepSecond)("touchUi",e.touchUi),l.xp6(6),l.ekj("input-error",(null==e.Form||null==(i=e.Form.get("Date"))?null:i.invalid)&&e.validateFrom),l.xp6(1),l.s9C("min",e.minDate),l.Q6J("ngModel",e.folder.DateEnd),l.xp6(2),l.Q6J("ngxMatDatetimePicker",r)("formControl",e.dateControlEnd)("min",e.endMinDate)("disabled",e.disabled),l.xp6(1),l.Q6J("for",r),l.xp6(1),l.Q6J("showSpinners",e.showSpinners)("showSeconds",e.showSeconds)("stepHour",e.stepHour)("stepMinute",e.stepMinute)("stepSecond",e.stepSecond)("touchUi",e.touchUi),l.xp6(7),l.Q6J("ngModel",e.folder.Detail)}},directives:[u.W2,u.Q$,u.cJ,u.QI,r.JJ,r.On,u.GO,u.pK,u.j9,u.gu,u.x4,f.KE,h.Nt,d.g2,r.Fj,r.oH,m.nW,f.R9,d.AB,u.g2,u.fr,u.sr,u.Sm,u.YG],styles:["[_nghost-%COMP%]{background:#0782c9}ion-content[_ngcontent-%COMP%]{--background:transparent;transform:translate3d(0,5px,0);--border-radius:30px}ion-footer[_ngcontent-%COMP%]{background:#fff}ion-toolbar[_ngcontent-%COMP%]{border-width:0!important}.div-top-header[_ngcontent-%COMP%]{margin:0 auto;background-color:#0782c9;overflow:auto;padding-top:15px;border:0!important}.div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-logo[_ngcontent-%COMP%]{background:transparent;width:140px;margin:5px 0 0 71px;float:left}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}.content-top[_ngcontent-%COMP%]{background:#f3f2f2;height:20px}.content-container[_ngcontent-%COMP%], .content-top[_ngcontent-%COMP%]{margin:0 auto;border-top-left-radius:25px;border-top-right-radius:25px}.content-container[_ngcontent-%COMP%]{width:100%;background:#fff;height:100%;box-shadow:0 0 18px rgba(0,0,0,.6);padding:25px 20px 0;overflow:auto}.title-content[_ngcontent-%COMP%]{margin:0 auto;overflow:auto;padding:0!important}.div-title[_ngcontent-%COMP%]{width:180px;float:left;margin:2.5px 0 0 5px}.title[_ngcontent-%COMP%]{font-size:25px}.container-div[_ngcontent-%COMP%]{margin-bottom:15px;overflow:auto}.ion-item-container[_ngcontent-%COMP%]{margin:15px auto;border:1px solid #ebebeb;border-radius:5px;padding-left:10px}.ion-item-container-no-border[_ngcontent-%COMP%]{width:100%;margin:0 auto;padding:0!important;overflow:auto}.ion-item-class-2[_ngcontent-%COMP%]{margin:0 auto;display:flex}.ion-icon-class[_ngcontent-%COMP%]{width:45px;height:45px;float:left;padding:10px;font-size:25px}.ion-input-class[_ngcontent-%COMP%], .ion-textarea-class[_ngcontent-%COMP%]{height:auto;border:1px solid #ebebeb;border-radius:5px;padding-left:5px;padding-right:10px;flex:1}.ion-input-class-no-height[_ngcontent-%COMP%]{border:1px solid #ebebeb;border-radius:5px;overflow:auto}.actionType[_ngcontent-%COMP%]{width:170px;padding:10px;float:right;overflow:auto;border-radius:30px}.ion-segment[_ngcontent-%COMP%]{--background:#0782c9}"]}),e}()},93101:function(e,o,i){"use strict";i.r(o),i.d(o,{PublicationsPageModule:function(){return _t}});var a=i(38583),r=i(3679),s=i(35957),c=i(39895),d=i(64762),l=i(59123),u=i(3861),p=i(76451),g=i(8272),f=i(42199),h=i(55749),m=i(37716),b=i(86704),v=i(84465),w=i(962),x=i(28232),Z=i(58970),C=i(29777);function M(t,e){1&t&&m._UZ(0,"ion-progress-bar",18)}function P(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div",19),m.TgZ(1,"img",20),m.NdJ("click",function(){m.CHM(n);var t=m.oxw(2);return t.openPreview(t.publication.FileBase64)}),m.qZA(),m.qZA()}if(2&t){var o=m.oxw(2);m.xp6(1),m.s9C("src",o.publication.FileBase64,m.LSH)}}function k(t,e){1&t&&(m.TgZ(0,"div",19),m._UZ(1,"img",21),m.qZA())}function A(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"div",7),m.TgZ(2,"div",8),m.TgZ(3,"ion-icon",9),m.NdJ("click",function(){return m.CHM(n),m.oxw().close()}),m.qZA(),m.qZA(),m.TgZ(4,"div",10),m.TgZ(5,"ion-label",11),m._uU(6),m.qZA(),m.TgZ(7,"p",12),m._uU(8),m.ALo(9,"date"),m.qZA(),m.qZA(),m.qZA(),m.TgZ(10,"ion-refresher",13),m.NdJ("ionRefresh",function(t){return m.CHM(n),m.oxw().doRefresh(t)}),m.YNc(11,M,1,0,"ion-progress-bar",14),m._UZ(12,"ion-refresher-content"),m.qZA(),m.TgZ(13,"div",15),m.YNc(14,P,2,1,"div",16),m.YNc(15,k,2,0,"div",16),m.TgZ(16,"div",17),m.TgZ(17,"p"),m._uU(18),m.qZA(),m.qZA(),m.qZA(),m.qZA()}if(2&t){var o=m.oxw();m.xp6(6),m.hij(" ",o.publication.Title,""),m.xp6(2),m.Oqu(m.xi3(9,6,o.publication.DatePublication,"dd-MM-yy | h:mm")),m.xp6(3),m.Q6J("ngIf",o.showLoader),m.xp6(3),m.Q6J("ngIf",o.publication.FileBase64.length>30),m.xp6(1),m.Q6J("ngIf",o.publication.FileBase64.length<30),m.xp6(3),m.Oqu(o.publication.Message)}}function T(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"div",7),m.TgZ(2,"div",8),m.TgZ(3,"ion-icon",22),m.NdJ("click",function(){return m.CHM(n),m.oxw().close()}),m.qZA(),m.qZA(),m.TgZ(4,"div",10),m.TgZ(5,"ion-label",11),m._UZ(6,"ion-skeleton-text",23),m.qZA(),m.TgZ(7,"p",12),m._UZ(8,"ion-skeleton-text",24),m.qZA(),m.qZA(),m.qZA(),m.TgZ(9,"div",15),m.TgZ(10,"div",19),m._UZ(11,"img",21),m.qZA(),m.TgZ(12,"div",17),m.TgZ(13,"p"),m._UZ(14,"ion-skeleton-text",25),m.qZA(),m.TgZ(15,"p"),m._UZ(16,"ion-skeleton-text",25),m.qZA(),m.qZA(),m.qZA(),m.qZA()}}var D=function(){var e=function(){function e(n,o,i,a,r){t(this,e),this.modalController=n,this.navParams=o,this.publications=i,this.animationController=a,this.toastService=r,this.publicationId=this.navParams.get("publicationId"),this.publication={DateIndex:null,DocumentId:"",ProcessId:"",Title:"",Message:"",DatePublication:null,FileBase64:"",OriginalFileName:"",FileExtension:""}}return n(e,[{key:"ngOnInit",value:function(){this.getPublicationDetail()}},{key:"doRefresh",value:function(t){this.getPublicationDetail(),setTimeout(function(){t.target.complete()},2e3)}},{key:"getPublicationDetail",value:function(){var t=this;this.showLoader=!0,console.log(this.publicationId),this.publications.GetPublicationById(this.publicationId).subscribe(function(e){console.log(e),t.publication={DateIndex:e.DateIndex,DocumentId:e.DocumentId,ProcessId:e.ProcessId,Title:e.Title,Message:e.Message,DatePublication:e.DatePublication,FileBase64:"data:image/jpg;base64,"+e.FileBase64,OriginalFileName:e.OriginalFileName,FileExtension:"jpeg"},t.showLoader=!1})}},{key:"close",value:function(){this.modalController.dismiss()}},{key:"deletePost",value:function(){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.toastService.loading(),t.prev=1,t.next=4,this.publications.DeletePublication(this.folderId,this.publicationId).toPromise();case 4:this.toastService.successMessage("Publica\xe7\xe3o eliminado"),this.close(),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),this.toastService.badRequest("Publica\xe7\xe3o n\xe3o eliminado");case 11:return t.prev=11,e.remove(),t.finish(11);case 14:case"end":return t.stop()}},t,this,[[1,8,11,14]])}))}},{key:"editPost",value:function(t){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var n,o=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(this.publication),e.next=3,this.modalController.create({component:C.i,componentProps:{publicationType:t,publication:this.publication},cssClass:"new-publication modal modal-desktop",backdropDismiss:!1});case 3:return n=e.sent,e.next=6,n.present();case 6:n.onDidDismiss().then(function(){setTimeout(function(){o.getPublicationDetail()},5e3)});case 7:case"end":return e.stop()}},e,this)}))}},{key:"openPreview",value:function(t){this.modalController.create({component:Z.e,componentProps:{imageUrl:t}}).then(function(t){return t.present()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(m.Y36(s.IN),m.Y36(s.X1),m.Y36(b.H),m.Y36(s.vB),m.Y36(v.k))},e.\u0275cmp=m.Xpm({type:e,selectors:[["app-publication-detail"]],decls:14,vars:2,consts:[[1,"content-container"],[4,"ngIf"],[1,"footer-toolbar"],["slot","start"],["fill","clear","color","#ffe0e0",1,"btn-delete",3,"click"],["slot","end"],["fill","clear","color","#fff",1,"btn-ok",3,"click"],[1,"title-content"],[1,"back-icon"],["tappable","","slot","end","src","assets/images/icons-arrow-arrow-left.svg",3,"click"],[1,"div-title"],[1,"title"],[1,"post-data"],["name","refresher","slot","fixed",3,"ionRefresh"],["type","indeterminate",4,"ngIf"],[1,"post-item"],["class","post-img",4,"ngIf"],[1,"post-description"],["type","indeterminate"],[1,"post-img"],["alt","image","tappable","",3,"src","click"],["src","/assets/icon/icon-no-image.svg","alt","image"],["slot","end","src","assets/images/icons-arrow-arrow-left.svg",3,"click"],["animated","",2,"width","60%"],["animated","",2,"width","20%"],["animated",""]],template:function(t,e){1&t&&(m.TgZ(0,"ion-content"),m.TgZ(1,"div",0),m.YNc(2,A,19,9,"div",1),m.YNc(3,T,17,0,"div",1),m.qZA(),m.qZA(),m.TgZ(4,"ion-footer"),m.TgZ(5,"ion-toolbar",2),m.TgZ(6,"ion-buttons",3),m.TgZ(7,"ion-button",4),m.NdJ("click",function(){return e.deletePost()}),m.TgZ(8,"ion-label"),m._uU(9,"Eliminar"),m.qZA(),m.qZA(),m.qZA(),m.TgZ(10,"ion-buttons",5),m.TgZ(11,"ion-button",6),m.NdJ("click",function(){return e.editPost("3")}),m.TgZ(12,"ion-label"),m._uU(13,"Editar"),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.qZA()),2&t&&(m.xp6(2),m.Q6J("ngIf",""!=e.publication.Title),m.xp6(1),m.Q6J("ngIf",""==e.publication.Title))},directives:[s.W2,a.O5,s.fr,s.sr,s.Sm,s.YG,s.Q$,s.gu,s.nJ,s.Wo,s.X7,s.CK],pipes:[a.uU],styles:["ion-content[_ngcontent-%COMP%]{--background:transparent;--border-radius:30px}ion-footer[_ngcontent-%COMP%]{background:#fff}ion-toolbar[_ngcontent-%COMP%]{border-width:0!important}.div-top-header[_ngcontent-%COMP%]{margin:0 auto;background-color:#0782c9;overflow:auto;padding-top:15px;border:0!important}.div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-logo[_ngcontent-%COMP%]{background:transparent;width:140px;margin:5px 0 0 71px;float:left}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}.content-top[_ngcontent-%COMP%]{background:#f3f2f2;height:20px}.content-container[_ngcontent-%COMP%], .content-top[_ngcontent-%COMP%]{margin:0 auto;border-top-left-radius:25px;border-top-right-radius:25px}.content-container[_ngcontent-%COMP%]{width:100%;background:#fff;height:100%;padding:25px 0 0;overflow:auto}.title-content[_ngcontent-%COMP%]{margin:0 auto;overflow:auto;padding:0!important}.back-icon[_ngcontent-%COMP%]{width:auto;float:left;font-size:35px;overflow:auto}.div-title[_ngcontent-%COMP%]{float:left;margin:2.5px 0 0 5px}.title[_ngcontent-%COMP%]{font-size:25px}.post-img[_ngcontent-%COMP%]{width:100%;height:400px;margin:0 auto;border-radius:0!important;overflow:hidden}.post-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.post-description[_ngcontent-%COMP%]{margin:0 auto 35px}"]}),e}(),_=i(54601),O=function(){var e=function(){function e(n){t(this,e),this.loadingController=n}return n(e,[{key:"simpleLoading",value:function(){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadingController.create({cssClass:"my-custom-class",message:"A carregar!...",duration:2e3});case 2:return this.loading=t.sent,t.next=5,this.loading.present();case 5:case"end":return t.stop()}},t,this)}))}},{key:"customizedLoading",value:function(){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadingController.create({cssClass:"my-custom-class",spinner:null,duration:5e3,message:"Click the backdrop to dismiss early...",translucent:!0,backdropDismiss:!0});case 2:return e=t.sent,t.next=5,e.present();case 5:return t.next=7,e.onDidDismiss();case 7:case"end":return t.stop()}},t,this)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(m.LFG(s.HT))},e.\u0275prov=m.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function q(t,e){1&t&&m._UZ(0,"ion-progress-bar",16)}function I(t,e){if(1&t&&(m.TgZ(0,"div",25),m._UZ(1,"img",26),m.qZA()),2&t){var n=m.oxw().$implicit;m.xp6(1),m.s9C("src",n.FileBase64,m.LSH)}}function y(t,e){1&t&&(m.TgZ(0,"div",27),m._UZ(1,"img",28),m.qZA())}function S(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div",17),m.NdJ("click",function(){var t=m.CHM(n).$implicit;return m.oxw().viewPublicationDetail(t.DocumentId)}),m.YNc(1,I,2,1,"div",18),m.YNc(2,y,2,0,"div",19),m.TgZ(3,"div",20),m.TgZ(4,"div",21),m.TgZ(5,"div",22),m.TgZ(6,"ion-label"),m._uU(7),m.qZA(),m.qZA(),m.TgZ(8,"div",23),m._uU(9),m.ALo(10,"date"),m.qZA(),m.qZA(),m.TgZ(11,"div",24),m.TgZ(12,"p"),m._uU(13),m.qZA(),m.qZA(),m.qZA(),m.qZA()}if(2&t){var o=e.$implicit;m.xp6(1),m.Q6J("ngIf",o.FileBase64.length>30),m.xp6(1),m.Q6J("ngIf",o.FileBase64.length<30),m.xp6(5),m.Oqu(o.Title),m.xp6(2),m.Oqu(m.xi3(10,5,o.DatePublication,"dd-MM-yy | HH:mm")),m.xp6(4),m.Oqu(o.Message)}}function J(t,e){if(1&t&&(m.TgZ(0,"div",29),m.TgZ(1,"p"),m._uU(2),m.qZA(),m.qZA()),2&t){var n=m.oxw();m.xp6(2),m.Oqu(n.error)}}var N=function(){var e=function(){function e(n,o,i){t(this,e),this.loadingController=n,this.modalController=o,this.publications=i,this.addNewPublication=new m.vpe,this.openPublicationDetails=new m.vpe,this.goBackToViewPublications=new m.vpe,this.closeDesktopComponent=new m.vpe,this.goBacktoPublicationDetails=new m.vpe,this.publicationListStorage=_.B,this.publicationEventFolderStorage=f.t,this.publicationTravelFolderService=h.e,this.item=new x.Z}return n(e,[{key:"ngOnInit",value:function(){"object"==typeof this.folderId&&(this.folderId=this.folderId.ProcessId),this.getPublications(),this.getPublicationDetail()}},{key:"ngOnChanges",value:function(t){var e=this;"object"==typeof this.folderId&&(this.folderId=this.folderId.ProcessId),console.log("change view to ",this.folderId),setTimeout(function(){e.getPublications(),e.getPublicationDetail()},100)}},{key:"doRefresh",value:function(t){var e=this;this.getPublications(),setTimeout(function(){e.getPublicationDetail()},3e3)}},{key:"close",value:function(){this.closeDesktopComponent.emit()}},{key:"getPublicationDetail",value:function(){var t=this,e=this.publicationEventFolderStorage.list.concat(this.publicationTravelFolderService.list);this.item=e.find(function(e){return e.ProcessId==t.folderId})}},{key:"getPublications",value:function(){var t=this;this.showLoader=!0;var e=this.folderId;this.publications.GetPublications(e).subscribe(function(n){t.publicationList=new Array,n.forEach(function(e){t.publicationList.push({DateIndex:e.DateIndex,DocumentId:e.DocumentId,ProcessId:e.ProcessId,Title:e.Title,Message:e.Message,DatePublication:e.DatePublication,FileBase64:"data:image/jpg;base64,"+e.FileBase64,OriginalFileName:"",FileExtension:""})}),t.publicationListStorage.add(e,t.publicationList),t.showLoader=!1},function(e){"404"==e.status&&(t.error="Sem publica\xe7\xf5es dispon\xedveis!"),t.showLoader=!1})}},{key:"AddPublication",value:function(t,e){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function n(){var o,i=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!(window.innerWidth<=1024)){n.next=9;break}return n.next=3,this.modalController.create({component:C.i,componentProps:{publicationType:t,folderId:e},cssClass:"new-publication modal modal-desktop",backdropDismiss:!1});case 3:return o=n.sent,n.next=6,o.present();case 6:o.onDidDismiss().then(function(){i.doRefresh(event)}),n.next=10;break;case 9:this.addNewPublication.emit({publicationType:t,folderId:e});case 10:case"end":return n.stop()}},n,this)}))}},{key:"viewPublicationDetail",value:function(t){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var n,o=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log(t),!(window.innerWidth<=1024)){e.next=9;break}return e.next=3,this.modalController.create({component:D,componentProps:{publicationId:t},cssClass:"publication-detail modal modal-desktop"});case 3:return n=e.sent,e.next=6,n.present();case 6:n.onDidDismiss().then(function(){o.doRefresh(event)}),e.next=10;break;case 9:this.openPublicationDetails.emit(t);case 10:case"end":return e.stop()}},e,this)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(m.Y36(O),m.Y36(s.IN),m.Y36(b.H))},e.\u0275cmp=m.Xpm({type:e,selectors:[["app-view-publications"]],inputs:{folderId:"folderId"},outputs:{addNewPublication:"addNewPublication",openPublicationDetails:"openPublicationDetails",goBackToViewPublications:"goBackToViewPublications",closeDesktopComponent:"closeDesktopComponent",goBacktoPublicationDetails:"goBacktoPublicationDetails"},features:[m.TTD],decls:24,vars:9,consts:[[1,"ion-no-border"],[1,"main-header"],[1,"title-content","d-flex","flex-end"],[1,"div-title","flex-grow-1"],[1,"title"],[1,"item-content-detail"],[1,"item-content-date"],[1,"actions-icon"],[1,"btn-no-color",3,"click"],["src","assets/images/icons-add.svg"],["name","reload-circle",1,"title-icon"],["name","refresher","slot","fixed",3,"ionRefresh"],["type","indeterminate",4,"ngIf"],[1,"main-container","px-20"],["class","post-item d-md-block mb-10",3,"click",4,"ngFor","ngForOf"],["class","center height-100",4,"ngIf"],["type","indeterminate"],[1,"post-item","d-md-block","mb-10",3,"click"],["class","mb-10 post-img width-md-100",4,"ngIf"],["class","mb-10 post-img",4,"ngIf"],[1,"post-content","px-20","width-md-100"],[1,"post-title-time"],[1,"post-title"],[1,"post-data"],[1,"post-description"],[1,"mb-10","post-img","width-md-100"],["alt","image",3,"src"],[1,"mb-10","post-img"],["src","/assets/icon/icon-no-image.svg","alt","image"],[1,"center","height-100"]],template:function(t,e){1&t&&(m.TgZ(0,"ion-header",0),m.TgZ(1,"div",1),m.TgZ(2,"div",2),m.TgZ(3,"div",3),m.TgZ(4,"ion-label",4),m._uU(5),m.qZA(),m.TgZ(6,"p",5),m._uU(7),m.qZA(),m.TgZ(8,"p",6),m._uU(9),m.ALo(10,"date"),m.qZA(),m.qZA(),m.TgZ(11,"div",7),m.TgZ(12,"button",8),m.NdJ("click",function(){return e.AddPublication("2",e.item.ProcessId)}),m._UZ(13,"ion-icon",9),m.qZA(),m.TgZ(14,"button",8),m.NdJ("click",function(t){return e.doRefresh(t)}),m._UZ(15,"ion-icon",10),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.TgZ(16,"ion-content"),m.TgZ(17,"ion-refresher",11),m.NdJ("ionRefresh",function(t){return e.doRefresh(t)}),m.YNc(18,q,1,0,"ion-progress-bar",12),m._UZ(19,"ion-refresher-content"),m.qZA(),m.TgZ(20,"div",13),m.TgZ(21,"ion-list"),m.YNc(22,S,14,8,"div",14),m.YNc(23,J,3,1,"div",15),m.qZA(),m.qZA(),m.qZA()),2&t&&(m.xp6(5),m.Oqu(e.item.Description),m.xp6(2),m.Oqu(e.item.Detail),m.xp6(2),m.Oqu(m.xi3(10,6,e.item.DateBegin,"dd-MM-yy | HH:mm")),m.xp6(9),m.Q6J("ngIf",e.showLoader),m.xp6(4),m.Q6J("ngForOf",e.publicationListStorage.documents[e.folderId]),m.xp6(1),m.Q6J("ngIf",!e.publicationList))},directives:[s.Gu,s.Q$,s.gu,s.W2,s.nJ,a.O5,s.Wo,s.q_,a.sg,s.X7],pipes:[a.uU],styles:["[_nghost-%COMP%]{background:transparent;padding:0!important}[_nghost-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar{width:7px;height:7px}ion-content[_ngcontent-%COMP%]{--background:transparent;transform:translate3d(0,5px,0);--border-radius:30px}ion-toolbar[_ngcontent-%COMP%]{--border-width:0!important;--border-style:none;--padding-top:0px!important;--padding-start:0px!important;--padding-right:0px!important;--padding-end:0px!important}.div-top-header[_ngcontent-%COMP%]{width:400px;margin:0 auto;background-color:#0782c9;overflow:auto;padding-top:15px;border:0!important}.div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-logo[_ngcontent-%COMP%]{background:transparent;width:140px;margin:5px 0 0 71px;float:left}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}.main-header[_ngcontent-%COMP%]{width:100%;height:100%;font-family:Roboto;border-top-left-radius:25px;border-top-right-radius:25px;background-color:#fff;overflow:hidden;padding:25px 20px 0;color:#000}.main-container[_ngcontent-%COMP%]{width:100%;height:100%!important;overflow-y:auto}.content-top[_ngcontent-%COMP%]{background:#f3f2f2;height:20px;margin:0 auto;border-top-left-radius:25px;border-top-right-radius:25px;transform:translate3d(0,1px,0)}.title-content[_ngcontent-%COMP%]{margin:0 auto;overflow:auto;padding:0!important}.back-icon[_ngcontent-%COMP%]{float:left;font-size:35px}.div-title[_ngcontent-%COMP%]{float:left;margin:2.5px 0 0 5px}.title[_ngcontent-%COMP%]{font-size:25px}.actions-icon[_ngcontent-%COMP%]{display:flex;align-items:top;justify-content:flex-end;padding:0!important}.actions-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{margin-left:5px;font-size:35px;padding:0!important}.item-content-date[_ngcontent-%COMP%]{color:#797979;font-size:13px}.item-content-detail[_ngcontent-%COMP%]{color:#000;font-size:13px}.post-item[_ngcontent-%COMP%]{width:100%;border-radius:0;padding:0!important}.post-img[_ngcontent-%COMP%]{width:100%;height:56.25vh!important;border-radius:0!important;overflow:hidden}.post-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.post-content[_ngcontent-%COMP%]{margin:0 auto 35px}.post-title-time[_ngcontent-%COMP%]{width:100%;overflow:auto}.post-title[_ngcontent-%COMP%]{width:60%;float:left;font-size:15px;color:#0d89d1}.post-data[_ngcontent-%COMP%]{width:40%;float:left;font-size:13px;color:#797979;text-align:right}.post-description[_ngcontent-%COMP%]{font-size:13px;color:#000}"]}),e}(),Y=i(56144);function F(t,e){1&t&&m._UZ(0,"ion-progress-bar",18)}function U(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div",19),m.TgZ(1,"img",20),m.NdJ("click",function(){m.CHM(n);var t=m.oxw(2);return t.openPreview(t.publication.FileBase64)}),m.qZA(),m.qZA()}if(2&t){var o=m.oxw(2);m.xp6(1),m.s9C("src",o.publication.FileBase64,m.LSH)}}function B(t,e){1&t&&(m.TgZ(0,"div",19),m._UZ(1,"img",21),m.qZA())}function E(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"div",7),m.TgZ(2,"div",8),m.NdJ("click",function(){return m.CHM(n),m.oxw().goBack()}),m._UZ(3,"ion-icon",9),m.qZA(),m.TgZ(4,"div",10),m.TgZ(5,"ion-label",11),m._uU(6),m.qZA(),m.TgZ(7,"p",12),m._uU(8),m.ALo(9,"date"),m.qZA(),m.qZA(),m.qZA(),m.TgZ(10,"ion-refresher",13),m.NdJ("ionRefresh",function(t){return m.CHM(n),m.oxw().doRefresh(t)}),m.YNc(11,F,1,0,"ion-progress-bar",14),m._UZ(12,"ion-refresher-content"),m.qZA(),m.TgZ(13,"div",15),m.YNc(14,U,2,1,"div",16),m.YNc(15,B,2,0,"div",16),m.TgZ(16,"div",17),m.TgZ(17,"p"),m._uU(18),m.qZA(),m.qZA(),m.qZA(),m.qZA()}if(2&t){var o=m.oxw();m.xp6(6),m.hij(" ",o.publication.Title,""),m.xp6(2),m.Oqu(m.xi3(9,6,o.publication.DatePublication,"dd-MM-yy | h:mm")),m.xp6(3),m.Q6J("ngIf",o.showLoader),m.xp6(3),m.Q6J("ngIf",o.publication.FileBase64.length>30),m.xp6(1),m.Q6J("ngIf",o.publication.FileBase64.length<30),m.xp6(3),m.Oqu(o.publication.Message)}}function H(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"div",22),m.TgZ(2,"div",23),m.TgZ(3,"ion-icon",24),m.NdJ("click",function(){return m.CHM(n),m.oxw().close()}),m.qZA(),m.qZA(),m.TgZ(4,"div",10),m.TgZ(5,"ion-label",11),m._UZ(6,"ion-skeleton-text",25),m.qZA(),m.TgZ(7,"p",12),m._UZ(8,"ion-skeleton-text",26),m.qZA(),m.qZA(),m.qZA(),m.TgZ(9,"div",27),m.TgZ(10,"div",19),m._UZ(11,"img",21),m.qZA(),m.TgZ(12,"div",17),m.TgZ(13,"p"),m._UZ(14,"ion-skeleton-text",28),m.qZA(),m.TgZ(15,"p"),m._UZ(16,"ion-skeleton-text",28),m.qZA(),m.qZA(),m.qZA(),m.qZA()}}var R=function(){var e=function(){function e(n,o,i,a){t(this,e),this.modalController=n,this.publications=o,this.animationController=i,this.toastService=a,this.addNewPublication=new m.vpe,this.closeDesktopComponent=new m.vpe,this.goBackToViewPublications=new m.vpe,this.publication={DateIndex:null,DocumentId:"",ProcessId:"",Title:"",Message:"",DatePublication:null,FileBase64:"",OriginalFileName:"",FileExtension:""}}return n(e,[{key:"ngOnInit",value:function(){console.log(this.folderId),this.getPublicationDetail()}},{key:"doRefresh",value:function(t){this.getPublicationDetail(),setTimeout(function(){t.target.complete()},2e3)}},{key:"getPublicationDetail",value:function(){var t=this;this.showLoader=!0,console.log(this.publicationId),this.publications.GetPublicationById(this.publicationId).subscribe(function(e){console.log(e),t.publication={DateIndex:e.DateIndex,DocumentId:e.DocumentId,ProcessId:e.ProcessId,Title:e.Title,Message:e.Message,DatePublication:e.DatePublication,FileBase64:"data:image/jpg;base64,"+e.FileBase64,OriginalFileName:e.OriginalFileName,FileExtension:"jpeg"},t.showLoader=!1})}},{key:"close",value:function(){this.modalController.dismiss()}},{key:"deletePost",value:function(){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.publications.DeletePublication(this.folderId,this.publicationId).toPromise();case 3:this.toastService.successMessage("Publica\xe7\xe3o eliminado"),this.goBackToViewPublications.emit(),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),this.toastService.badRequest("Publica\xe7\xe3o n\xe3o eliminado");case 10:case"end":return t.stop()}},t,this,[[0,7]])}))}},{key:"editPost",value:function(t){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var n,o=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log(this.publication),!(window.innerWidth<=1024)){e.next=9;break}return e.next=3,this.modalController.create({component:C.i,componentProps:{publicationType:t,publication:this.publication},cssClass:"new-publication",backdropDismiss:!1});case 3:return n=e.sent,e.next=6,n.present();case 6:n.onDidDismiss().then(function(){setTimeout(function(){o.getPublicationDetail()},5e3)}),e.next=10;break;case 9:this.addNewPublication.emit({publicationType:t,folderId:this.folderId,publication:this.publication});case 10:case"end":return e.stop()}},e,this)}))}},{key:"openPreview",value:function(t){this.modalController.create({component:Z.e,componentProps:{imageUrl:t}}).then(function(t){return t.present()})}},{key:"goBack",value:function(){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.goBackToViewPublications.emit();case 1:case"end":return t.stop()}},t,this)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(m.Y36(s.IN),m.Y36(b.H),m.Y36(s.vB),m.Y36(v.k))},e.\u0275cmp=m.Xpm({type:e,selectors:[["app-publication-detail-shared"]],inputs:{publicationId:"publicationId",folderId:"folderId"},outputs:{addNewPublication:"addNewPublication",closeDesktopComponent:"closeDesktopComponent",goBackToViewPublications:"goBackToViewPublications"},decls:14,vars:2,consts:[[1,"content-container"],[4,"ngIf"],[1,"footer-toolbar","width-md-100","px-md-20"],["slot","start"],["fill","clear","color","#ffe0e0",1,"btn-delete",3,"click"],["slot","end"],["fill","clear","color","#fff",1,"btn-ok",3,"click"],[1,"title-content","d-flex","pl-20"],[1,"back-icon",3,"click"],["slot","end","src","assets/images/icons-arrow-arrow-left.svg",1,"font-30"],[1,"div-title"],[1,"title"],[1,"post-data"],["name","refresher","slot","fixed",3,"ionRefresh"],["type","indeterminate",4,"ngIf"],[1,"post-item","px-20"],["class","post-img",4,"ngIf"],[1,"post-description"],["type","indeterminate"],[1,"post-img"],["alt","image","tappable","",3,"src","click"],["src","/assets/icon/icon-no-image.svg","alt","image"],[1,"title-content"],[1,"back-icon"],["slot","end","src","assets/images/icons-arrow-arrow-left.svg",3,"click"],["animated","",2,"width","60%"],["animated","",2,"width","20%"],[1,"post-item"],["animated",""]],template:function(t,e){1&t&&(m.TgZ(0,"ion-content"),m.TgZ(1,"div",0),m.YNc(2,E,19,9,"div",1),m.YNc(3,H,17,0,"div",1),m.qZA(),m.qZA(),m.TgZ(4,"ion-footer"),m.TgZ(5,"ion-toolbar",2),m.TgZ(6,"ion-buttons",3),m.TgZ(7,"ion-button",4),m.NdJ("click",function(){return e.deletePost()}),m.TgZ(8,"ion-label"),m._uU(9,"Eliminar"),m.qZA(),m.qZA(),m.qZA(),m.TgZ(10,"ion-buttons",5),m.TgZ(11,"ion-button",6),m.NdJ("click",function(){return e.editPost("3")}),m.TgZ(12,"ion-label"),m._uU(13,"Editar"),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.qZA()),2&t&&(m.xp6(2),m.Q6J("ngIf",""!=e.publication.Title),m.xp6(1),m.Q6J("ngIf",""==e.publication.Title))},directives:[s.W2,a.O5,s.fr,s.sr,s.Sm,s.YG,s.Q$,s.gu,s.nJ,s.Wo,s.X7,s.CK],pipes:[a.uU],styles:["ion-content[_ngcontent-%COMP%]{--background:transparent;--border-radius:30px}ion-footer[_ngcontent-%COMP%]{background:#fff}ion-toolbar[_ngcontent-%COMP%]{border-width:0!important}.div-top-header[_ngcontent-%COMP%]{width:400px;margin:0 auto;background-color:#0782c9;overflow:auto;padding-top:15px;border:0!important}.div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-logo[_ngcontent-%COMP%]{background:transparent;width:140px;margin:5px 0 0 71px;float:left}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}.content-top[_ngcontent-%COMP%]{width:344px;background:#f3f2f2;height:20px}.content-container[_ngcontent-%COMP%], .content-top[_ngcontent-%COMP%]{margin:0 auto;border-top-left-radius:25px;border-top-right-radius:25px}.content-container[_ngcontent-%COMP%]{width:100%;background:#fff;height:100%;padding:25px 0 0;overflow:auto}.back-icon[_ngcontent-%COMP%], .title-content[_ngcontent-%COMP%]{overflow:auto}.back-icon[_ngcontent-%COMP%]{width:auto;float:left;font-size:35px}.div-title[_ngcontent-%COMP%]{width:270px;float:left;margin:2.5px 0 0 5px}.title[_ngcontent-%COMP%]{font-size:25px}.post-img[_ngcontent-%COMP%]{width:100%;margin:0 auto;border-radius:0!important;overflow:hidden}.post-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.post-description[_ngcontent-%COMP%]{margin:0 auto 35px}"]}),e}(),Q=i(16738),z=i(98295),V=i(49983),j=i(25653),L=i(43220),G=function(){var e=function(){function e(n,o){t(this,e),this.publication=n,this.toastService=o,this.disabled=!1,this.showSpinners=!0,this.showSeconds=!1,this.touchUi=!1,this.enableMeridian=!1,this.minDate=(new Date).toISOString().slice(0,10),this.stepHour=1,this.stepMinute=5,this.stepSecond=5,this.endMinDate=new Date((new Date).getTime()+9e5),this.validateFrom=!1,this.dateControlStart=new r.NI(Q("DD MM YYYY hh")),this.dateControlEnd=new r.NI(Q("DD MM YYYY hh")),this.closeDesktopComponent=new m.vpe,this.getActions=new m.vpe,this.folder=new x.Z,this.folder=Object.assign(this.folder,{DateBegin:Q(new Date),DateEnd:Q(new Date((new Date).getTime()+9e5))})}return n(e,[{key:"dateStart",get:function(){return this.dateControlStart.value}},{key:"dateEnd",get:function(){return this.dateControlEnd.value}},{key:"ngOnInit",value:function(){this.segment="Viagem"}},{key:"segmentChanged",value:function(t){console.log(t.detail.value)}},{key:"dateValid",get:function(){return window.innerWidth>=800?new Date(this.folder.DateBegin).toLocaleString("pt")<new Date(this.folder.DateEnd).toLocaleString("pt")?["ok"]:[]:["ok"]}},{key:"runValidation",value:function(){this.validateFrom=!0}},{key:"injectValidation",value:function(){console.log(this.dateValid),this.Form=new r.cw({Subject:new r.NI(this.folder.Description,[r.kI.required]),Date:new r.NI(this.dateValid,[r.kI.required])})}},{key:"save",value:function(){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.injectValidation(),this.runValidation(),!this.Form.invalid){t.next=2;break}return t.abrupt("return",!1);case 2:return console.log("not passded"),console.log("pass"),this.folder={ProcessId:null,Description:this.folder.Description,Detail:this.folder.Detail,DateBegin:this.folder.DateBegin,DateEnd:this.folder.DateEnd,ActionType:this.segment},console.log(this.folder),e=this.toastService.loading(),t.prev=4,t.next=7,this.publication.CreatePublicationFolder(this.folder).toPromise();case 7:this.close(),this.toastService.successMessage("Ac\xe7\xe3o presidencial criada"),this.getActions.emit(),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(4),this.toastService.badRequest("N\xe3o foi possivel criar a ac\xe7\xe3o presidencial");case 15:return t.prev=15,e.remove(),t.finish(15);case 18:case"end":return t.stop()}},t,this,[[4,12,15,18]])}))}},{key:"close",value:function(){this.closeDesktopComponent.emit()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(m.Y36(b.H),m.Y36(v.k))},e.\u0275cmp=m.Xpm({type:e,selectors:[["app-new-action"]],outputs:{closeDesktopComponent:"closeDesktopComponent",getActions:"getActions"},decls:55,vars:30,consts:[[1,"ion-no-border","pt-20","px-20"],[1,"title-content","d-flex","align-center","justify-space-between"],[1,"div-title"],[1,"title"],[1,"actionType"],[3,"ngModel","ngModelChange","ionChange"],["value","Viagem"],["value","Evento"],[1,"content-container"],[1,"ion-item-container"],["placeholder","Assunto",3,"ngModel","ngModelChange"],[1,"container-div"],[1,"ion-item-class-2","d-flex"],[1,"ion-icon-class"],["slot","start","src","assets/images/icons-calendar.svg"],[1,"ion-input-class","flex-grow-1"],["placeholder","In\xedcio","displayFormat","D MMM YYYY H:mm","minuteValues","0,15,30,45","monthShortNames","Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez","max","2025",1,"d-block","d-md-none",3,"ngModel","min","ngModelChange"],["appearance","none",1,"width-100","date-hour-picker","d-md-block"],["matInput","","placeholder","Choose a date*",3,"ngxMatDatetimePicker","ngModel","min","disabled","ngModelChange"],["id","new-inicio","matSuffix","",3,"for"],[3,"showSpinners","showSeconds","stepHour","stepMinute","stepSecond","touchUi"],["picker1",""],[1,"ion-input-class","d-flex","flex-grow-1"],["placeholder","Fim","displayFormat","D MMM YYYY H:mm","minuteValues","0,15,30,45","monthShortNames","Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez","max","2025",1,"flex-grow-1","d-md-none",3,"ngModel","min","ngModelChange"],[3,"showSpinners","showSeconds","stepHour","stepMinute","stepSecond"],["picker2",""],["slot","start","src","assets/images/icons-description.svg"],[1,"ion-textarea-class","flex-grow-1"],["rows","12","cols","20","placeholder","Descri\xe7\xe3o da ac\xe7\xe3o...",3,"ngModel","ngModelChange"],[1,"ion-no-border"],[1,"footer-toolbar","width-100","justify-space-between","d-flex","px-20"],["slot","start"],["fill","clear","color","#061b52",1,"btn-cancel",3,"click"],["slot","end"],["fill","clear","color","#fff",1,"btn-ok",3,"click"]],template:function(t,e){if(1&t&&(m.TgZ(0,"ion-header",0),m.TgZ(1,"div",1),m.TgZ(2,"div",2),m.TgZ(3,"ion-label",3),m._uU(4," Nova Ac\xe7\xe3o"),m.qZA(),m.qZA(),m.TgZ(5,"div",4),m.TgZ(6,"ion-segment",5),m.NdJ("ngModelChange",function(t){return e.segment=t})("ionChange",function(t){return e.segmentChanged(t)}),m.TgZ(7,"ion-segment-button",6),m.TgZ(8,"ion-label"),m._uU(9,"Viagem"),m.qZA(),m.qZA(),m.TgZ(10,"ion-segment-button",7),m.TgZ(11,"ion-label"),m._uU(12,"Evento"),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.TgZ(13,"ion-content"),m.TgZ(14,"div",8),m.TgZ(15,"div",9),m.TgZ(16,"ion-input",10),m.NdJ("ngModelChange",function(t){return e.folder.Description=t}),m.qZA(),m.qZA(),m.TgZ(17,"div",11),m.TgZ(18,"div",12),m.TgZ(19,"div",13),m._UZ(20,"ion-icon",14),m.qZA(),m.TgZ(21,"div",15),m.TgZ(22,"ion-datetime",16),m.NdJ("ngModelChange",function(t){return e.folder.DateBegin=t}),m.qZA(),m.TgZ(23,"mat-form-field",17),m.TgZ(24,"input",18),m.NdJ("ngModelChange",function(t){return e.folder.DateBegin=t}),m.qZA(),m._UZ(25,"mat-datepicker-toggle",19),m._UZ(26,"ngx-mat-datetime-picker",20,21),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.TgZ(28,"div",11),m.TgZ(29,"div",12),m.TgZ(30,"div",13),m._UZ(31,"ion-icon",14),m.qZA(),m.TgZ(32,"div",22),m.TgZ(33,"ion-datetime",23),m.NdJ("ngModelChange",function(t){return e.folder.DateEnd=t}),m.qZA(),m.TgZ(34,"mat-form-field",17),m.TgZ(35,"input",18),m.NdJ("ngModelChange",function(t){return e.folder.DateEnd=t}),m.qZA(),m._UZ(36,"mat-datepicker-toggle",19),m._UZ(37,"ngx-mat-datetime-picker",24,25),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.TgZ(39,"div",11),m.TgZ(40,"div",12),m.TgZ(41,"div",13),m._UZ(42,"ion-icon",26),m.qZA(),m.TgZ(43,"div",27),m.TgZ(44,"ion-textarea",28),m.NdJ("ngModelChange",function(t){return e.folder.Detail=t}),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.TgZ(45,"ion-footer",29),m.TgZ(46,"ion-toolbar",30),m.TgZ(47,"ion-buttons",31),m.TgZ(48,"ion-button",32),m.NdJ("click",function(){return e.close()}),m.TgZ(49,"ion-label"),m._uU(50,"Cancelar"),m.qZA(),m.qZA(),m.qZA(),m.TgZ(51,"ion-buttons",33),m.TgZ(52,"ion-button",34),m.NdJ("click",function(){return e.save()}),m.TgZ(53,"ion-label"),m._uU(54,"Criar"),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.qZA()),2&t){var n,o=m.MAs(27),i=m.MAs(38);m.xp6(6),m.Q6J("ngModel",e.segment),m.xp6(9),m.ekj("input-error",(null==e.Form||null==(n=e.Form.get("Subject"))?null:n.invalid)&&e.validateFrom),m.xp6(1),m.Q6J("ngModel",e.folder.Description),m.xp6(6),m.s9C("min",e.minDate),m.Q6J("ngModel",e.folder.DateBegin),m.xp6(2),m.Q6J("ngxMatDatetimePicker",o)("ngModel",e.folder.DateBegin)("min",e.minDate)("disabled",e.disabled),m.xp6(1),m.Q6J("for",o),m.xp6(1),m.Q6J("showSpinners",e.showSpinners)("showSeconds",e.showSeconds)("stepHour",e.stepHour)("stepMinute",e.stepMinute)("stepSecond",e.stepSecond)("touchUi",e.touchUi),m.xp6(7),m.s9C("min",e.minDate),m.Q6J("ngModel",e.folder.DateEnd),m.xp6(2),m.Q6J("ngxMatDatetimePicker",i)("ngModel",e.folder.DateEnd)("min",e.minDate)("disabled",e.disabled),m.xp6(1),m.Q6J("for",i),m.xp6(1),m.Q6J("showSpinners",e.showSpinners)("showSeconds",e.showSeconds)("stepHour",e.stepHour)("stepMinute",e.stepMinute)("stepSecond",e.stepSecond),m.xp6(7),m.Q6J("ngModel",e.folder.Detail)}},directives:[s.Gu,s.Q$,s.cJ,s.QI,r.JJ,r.On,s.GO,s.W2,s.pK,s.j9,s.gu,s.x4,z.KE,V.Nt,j.g2,r.Fj,L.nW,z.R9,j.AB,s.g2,s.fr,s.sr,s.Sm,s.YG],styles:["[_nghost-%COMP%]{background:#fff}ion-content[_ngcontent-%COMP%]{--background:transparent;transform:translate3d(0,5px,0);--border-radius:30px}ion-footer[_ngcontent-%COMP%]{background:#fff}ion-toolbar[_ngcontent-%COMP%]{border-width:0!important}.div-top-header[_ngcontent-%COMP%]{margin:0 auto;background-color:#0782c9;overflow:auto;padding-top:15px;border:0!important}.div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-logo[_ngcontent-%COMP%]{background:transparent;width:140px;margin:5px 0 0 71px;float:left}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}.content-top[_ngcontent-%COMP%]{background:#f3f2f2;height:20px}.content-container[_ngcontent-%COMP%], .content-top[_ngcontent-%COMP%]{margin:0 auto;border-top-left-radius:25px;border-top-right-radius:25px}.content-container[_ngcontent-%COMP%]{width:100%;background:#fff;height:100%;padding:25px 20px 0;overflow:auto}.title-content[_ngcontent-%COMP%]{margin:0 auto;overflow:auto;padding:0!important}.div-title[_ngcontent-%COMP%]{width:180px;float:left;margin:2.5px 0 0 5px}.title[_ngcontent-%COMP%]{font-size:25px}.container-div[_ngcontent-%COMP%]{margin-bottom:15px;overflow:auto}.ion-item-container[_ngcontent-%COMP%]{margin:15px auto;border:1px solid #ebebeb;border-radius:5px;padding-left:10px}.ion-item-container-no-border[_ngcontent-%COMP%]{width:100%;margin:0 auto;padding:0!important;overflow:auto}.ion-item-class-2[_ngcontent-%COMP%]{margin:0 auto}.ion-icon-class[_ngcontent-%COMP%]{width:45px;height:45px;float:left;padding:10px;font-size:25px}.ion-input-class[_ngcontent-%COMP%], .ion-textarea-class[_ngcontent-%COMP%]{height:auto;border:1px solid #ebebeb;border-radius:5px;padding-left:5px;padding-right:10px;float:left}.ion-textarea-class[_ngcontent-%COMP%]{width:315px}.ion-input-class-no-height[_ngcontent-%COMP%]{border:1px solid #ebebeb;border-radius:5px;overflow:auto}.actionType[_ngcontent-%COMP%]{float:right;overflow:auto;border-radius:30px}.ion-segment[_ngcontent-%COMP%]{--background:#0782c9}"]}),e}(),W=i(1565);function $(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"div",23),m.TgZ(1,"ion-refresher",24),m.NdJ("ionRefresh",function(t){return m.CHM(n),m.oxw().doRefresh(t)}),m._UZ(2,"ion-refresher-content"),m.qZA(),m.qZA()}}function X(t,e){1&t&&m._UZ(0,"ion-progress-bar",25)}function K(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"button",10),m.NdJ("click",function(){return m.CHM(n),m.oxw().refreshing()}),m._UZ(1,"ion-icon",26),m.qZA()}}function tt(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"ion-item-sliding",27),m.TgZ(1,"ion-item",28),m.TgZ(2,"div",29),m.NdJ("click",function(){var t=m.CHM(n).$implicit;return m.oxw().goToPublicationsList(t.ProcessId)}),m._UZ(3,"ion-icon",30),m.qZA(),m.TgZ(4,"div",31),m.NdJ("click",function(){var t=m.CHM(n).$implicit;return m.oxw().goToPublicationsList(t.ProcessId)}),m.TgZ(5,"p",32),m._uU(6),m.qZA(),m.TgZ(7,"p",33),m._uU(8),m.qZA(),m.TgZ(9,"p",34),m._uU(10),m.qZA(),m.qZA(),m.TgZ(11,"div",35),m.NdJ("click",function(){var t=m.CHM(n).$implicit;return m.oxw().openOptions(t.ProcessId)}),m._UZ(12,"ion-icon",36),m.qZA(),m.qZA(),m.TgZ(13,"ion-item-options",37),m.TgZ(14,"ion-item-option",38),m.NdJ("click",function(){var t=m.CHM(n).$implicit;return m.oxw().editAction(t.ProcessId)}),m.TgZ(15,"button",39),m._UZ(16,"ion-icon",40),m.qZA(),m.qZA(),m.TgZ(17,"ion-item-option",41),m.NdJ("click",function(){var t=m.CHM(n).$implicit;return m.oxw().deleteAction(t.ProcessId)}),m.TgZ(18,"button",39),m._UZ(19,"ion-icon",42),m.qZA(),m.qZA(),m.qZA(),m.qZA()}if(2&t){var o=e.$implicit,i=m.oxw();m.s9C("disabled",i.showSlidingOptions),m.xp6(6),m.AsE("De ",i.getDate(o.DateBegin)," a ",i.getDate(o.DateEnd),""),m.xp6(2),m.Oqu(o.Description),m.xp6(2),m.Oqu(o.Detail)}}function et(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"ion-item-sliding",43),m.TgZ(1,"ion-item",44),m.NdJ("click",function(){var t=m.CHM(n).$implicit;return m.oxw().goToPublicationsList(t.ProcessId)}),m.TgZ(2,"div",45),m._UZ(3,"ion-icon",46),m.qZA(),m.TgZ(4,"div",47),m.TgZ(5,"ion-label"),m.TgZ(6,"p",48),m._uU(7),m.qZA(),m.TgZ(8,"p",49),m._uU(9),m.qZA(),m.qZA(),m.qZA(),m.TgZ(10,"div",35),m.NdJ("click",function(){var t=m.CHM(n).$implicit;return m.oxw().openOptions(t.ProcessId)}),m._UZ(11,"ion-icon",36),m.qZA(),m.qZA(),m.TgZ(12,"ion-item-options",37),m.TgZ(13,"ion-item-option",38),m.NdJ("click",function(){var t=m.CHM(n).$implicit;return m.oxw().editAction(t.ProcessId)}),m.TgZ(14,"button",39),m._UZ(15,"ion-icon",40),m.qZA(),m.qZA(),m.TgZ(16,"ion-item-option",41),m.NdJ("click",function(){var t=m.CHM(n).$implicit;return m.oxw().deleteAction(t.ProcessId)}),m.TgZ(17,"button",39),m._UZ(18,"ion-icon",42),m.qZA(),m.qZA(),m.qZA(),m.qZA()}if(2&t){var o=e.$implicit,i=m.oxw();m.s9C("disabled",i.showSlidingOptions),m.xp6(7),m.Oqu(i.getDate(o.DateBegin)),m.xp6(2),m.Oqu(o.Description)}}function nt(t,e){1&t&&(m.TgZ(0,"div",50),m.TgZ(1,"div"),m._uU(2,"Nenhuma a\xe7\xe3o presidencial selecionada"),m.qZA(),m.qZA())}function ot(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"app-view-publications",51),m.NdJ("addNewPublication",function(t){return m.CHM(n),m.oxw().addNewPublication(t)})("openPublicationDetails",function(t){return m.CHM(n),m.oxw().openPublicationDetails(t)})("goBacktoPublicationDetails",function(){return m.CHM(n),m.oxw().goBacktoPublicationDetails()})("goBackToViewPublications",function(){return m.CHM(n),m.oxw().goBackToViewPublications()})("closeDesktopComponent",function(t){return m.CHM(n),m.oxw().closeDesktopComponent(t)})("getActions",function(){return m.CHM(n),m.oxw().getActions()}),m.qZA()}if(2&t){var o=m.oxw();m.Q6J("folderId",o.folderId)}}function it(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"app-new-publication",52),m.NdJ("closeDesktopComponent",function(t){return m.CHM(n),m.oxw().closeDesktopComponent(t)})("goBacktoPublicationDetails",function(){return m.CHM(n),m.oxw().goBacktoPublicationDetails()})("goBackToViewPublications",function(){return m.CHM(n),m.oxw().goBackToViewPublications()})("getActions",function(){return m.CHM(n),m.oxw().getActions()}),m.qZA()}if(2&t){var o=m.oxw();m.Q6J("folderId",o.folderId)("publicationType",o.publicationType)("publicationId",o.publicationId)}}function at(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"app-publication-detail-shared",53),m.NdJ("addNewPublication",function(t){return m.CHM(n),m.oxw().addNewPublication(t)})("closeDesktopComponent",function(t){return m.CHM(n),m.oxw().closeDesktopComponent(t)})("goBacktoPublicationDetails",function(){return m.CHM(n),m.oxw().goBacktoPublicationDetails()})("goBackToViewPublications",function(){return m.CHM(n),m.oxw().goBackToViewPublications()})("getActions",function(){return m.CHM(n),m.oxw().getActions()}),m.qZA()}if(2&t){var o=m.oxw();m.Q6J("publicationId",o.publicationId)("folderId",o.folderId)}}function rt(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"app-new-action",54),m.NdJ("closeDesktopComponent",function(t){return m.CHM(n),m.oxw().closeDesktopComponent(t)})("getActions",function(){return m.CHM(n),m.oxw().getActions()}),m.qZA()}}function st(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"app-edit-action",55),m.NdJ("closeDesktopComponent",function(t){return m.CHM(n),m.oxw().closeDesktopComponent(t)})("updateDesktopComponent",function(t){return m.CHM(n),m.oxw().updateDesktopComponent(t)})("getActions",function(){return m.CHM(n),m.oxw().getActions()}),m.qZA()}if(2&t){var o=m.oxw();m.Q6J("folderId",o.folderId)}}var ct,dt,lt=[{path:"",component:(ct=function(){function e(n,o,i,a,r){t(this,e),this.router=n,this.modalController=o,this.animationController=i,this.publications=a,this.toastService=r,this.actionsListStorage=new Array,this.publicationEventFolderStorage=f.t,this.publicationTravelFolderService=h.e,this.desktopComponent={showViewPublication:!1,showAddNewPublication:!1,showPublicationDetail:!1,showAddActions:!1,showEditActions:!1},this.hideRefreshBtn=!0,this.showSlidingOptions=!0,this.months=["Janeiro","Fevereiro","Mar\xe7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],this.days=["Domingo","Segunda-feira","Ter\xe7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\xe1bado"]}return n(e,[{key:"ngOnInit",value:function(){var t=this,e=window.location.pathname;this.router.events.forEach(function(n){n instanceof c.m2&&n.url==e&&t.getActions()}),this.hideRefreshButton()}},{key:"hideRefreshButton",value:function(){var t=this;window.onresize=function(e){window.innerWidth<801?(t.hideRefreshBtn=!1,t.showSlidingOptions=!1):(t.hideRefreshBtn=!0,t.showSlidingOptions=!0)},window.innerWidth<801?(this.hideRefreshBtn=!1,this.showSlidingOptions=!1):(this.hideRefreshBtn=!0,this.showSlidingOptions=!0)}},{key:"refreshing",value:function(){var t=this;setTimeout(function(){t.getActions()},1500)}},{key:"doRefresh",value:function(t){this.getActions(),setTimeout(function(){t.target.complete()},250)}},{key:"windowInnerWidth",get:function(){return window.innerWidth}},{key:"getDate",value:function(t){return this.theDate=new Date(t),this.theDate.getDate()+" de "+this.months[this.theDate.getMonth()]+" de "+this.theDate.getFullYear()}},{key:"getActions",value:function(){var t=this;this.showLoader=!0,this.publications.GetPublicationFolderList().subscribe(function(e){t.publicationsEventFolderList=new Array,t.publicationsTravelFolderList=new Array,e.forEach(function(e){var n={ProcessId:e.ProcessId,Description:e.Description,Detail:e.Detail,DateBegin:e.DateBegin,DateEnd:e.DateEnd,ActionType:e.ActionType};"Evento"==e.ActionType?t.publicationsEventFolderList.push(n):t.publicationsTravelFolderList.push(n),t.showLoader=!1,t.publicationEventFolderStorage.reset(t.publicationsEventFolderList),t.publicationTravelFolderService.reset(t.publicationsTravelFolderList)})})}},{key:"editAction",value:function(t){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var n,o=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:g.Q,componentProps:{folderId:t},cssClass:"new-action modal modal-desktop",backdropDismiss:!0});case 2:return n=e.sent,e.next=5,n.present();case 5:n.onDidDismiss().then(function(){o.getActions()});case 6:case"end":return e.stop()}},e,this)}))}},{key:"deleteAction",value:function(t){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.toastService.loading(),e.prev=1,e.next=4,this.publications.DeletePresidentialAction(t).toPromise();case 4:this.toastService.successMessage(),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),this.toastService.badRequest();case 10:return e.prev=10,n.remove(),e.finish(10);case 13:this.refreshing();case 14:case"end":return e.stop()}},e,this,[[1,7,10,13]])}))}},{key:"AddPublicationFolder",value:function(t){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var n,o=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.closeDesktopComponent(),!(window.innerWidth<=1024)){e.next=9;break}return e.next=3,this.modalController.create({component:l.Q,componentProps:{item:t},cssClass:"new-action modal modal-desktop",backdropDismiss:!1});case 3:return n=e.sent,e.next=6,n.present();case 6:n.onDidDismiss().then(function(){o.getActions()}),e.next=10;break;case 9:this.desktopComponent.showAddActions=!0;case 10:case"end":return e.stop()}},e,this)}))}},{key:"goToPublicationsList",value:function(t){this.folderId=t,window.innerWidth<=800?this.router.navigate(["/home/publications",t]):(this.closeDesktopComponent(),this.folderId=t,this.desktopComponent.showViewPublication=!0)}},{key:"viewPublications",value:function(t){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.folderId=t,this.closeDesktopComponent(),!(window.innerWidth<=800)){e.next=9;break}return e.next=3,this.modalController.create({component:u.F,componentProps:{folderId:t},cssClass:"new-action modal modal-desktop",backdropDismiss:!1});case 3:return n=e.sent,e.next=6,n.present();case 6:n.onDidDismiss(),e.next=10;break;case 9:this.folderId=t,this.desktopComponent.showViewPublication=!0;case 10:case"end":return e.stop()}},e,this)}))}},{key:"goBackToViewPublications",value:function(){this.closeDesktopComponent(),this.desktopComponent.showViewPublication=!0}},{key:"goBackToPubications",value:function(){this.closeDesktopComponent(),this.desktopComponent.showViewPublication=!0}},{key:"goBacktoPublicationDetails",value:function(){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.closeDesktopComponent(),this.desktopComponent.showPublicationDetail=!0;case 1:case"end":return t.stop()}},t,this)}))}},{key:"addNewPublication",value:function(t){var e=t.publicationType,n=t.folderId,o=t.publication;return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.closeDesktopComponent(),this.publicationType=e,null!=n&&(this.folderId=n),this.publication=o,this.desktopComponent.showAddNewPublication=!0;case 1:case"end":return t.stop()}},t,this)}))}},{key:"openPublicationDetails",value:function(t){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.publicationId=t,this.closeDesktopComponent(),this.desktopComponent.showPublicationDetail=!0;case 1:case"end":return e.stop()}},e,this)}))}},{key:"updateDesktopComponent",value:function(t){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.getActions();case 1:case"end":return t.stop()}},t,this)}))}},{key:"closeDesktopComponent",value:function(t){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.desktopComponent={showViewPublication:!1,showAddNewPublication:!1,showPublicationDetail:!1,showAddActions:!1,showEditActions:!1};case 1:case"end":return t.stop()}},t,this)}))}},{key:"openOptions",value:function(t){return(0,d.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var n,o,i=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.folderId=t,n=function(t){var e=i.animationController.create().addElement(t.querySelector("ion-backdrop")).fromTo("opacity","0.01","var(--backdrop-opacity)"),n=i.animationController.create().addElement(t.querySelector(".modal-wrapper")).keyframes([{offset:0,opacity:"1",right:"-100%"},{offset:1,opacity:"1",right:"0px"}]);return i.animationController.create().addElement(t).easing("ease-out").duration(500).addAnimation([e,n])},e.next=4,this.modalController.create({enterAnimation:n,leaveAnimation:function(t){return n(t).direction("reverse")},component:p.$,cssClass:"model profile-modal search-submodal",componentProps:{id:t}});case 4:return o=e.sent,e.next=7,o.present();case 7:o.onDidDismiss().then(function(t){"edit"==t.data?(i.closeDesktopComponent(),i.desktopComponent.showEditActions=!0):"delete"==t.data&&(setTimeout(function(){i.getActions()},1e3),i.closeDesktopComponent())});case 8:case"end":return e.stop()}},e,this)}))}}]),e}(),ct.\u0275fac=function(t){return new(t||ct)(m.Y36(c.F0),m.Y36(s.IN),m.Y36(s.vB),m.Y36(b.H),m.Y36(v.k))},ct.\u0275cmp=m.Xpm({type:ct,selectors:[["app-publications"]],decls:27,vars:11,consts:[[1,"ion-no-border"],["class","d-md-none",4,"ngIf"],[1,"main-content","d-flex","height-100","background-white","overflow-hidden","border-t-radius"],[1,"aside-left","app-default-padding","d-flex","flex-grow-1","flex-column","width-30"],["type","indeterminate",4,"ngIf"],[1,"main-header"],[1,"title-content","width-100","d-flex","justify-space-between"],[1,"div-title","flex-grow-1"],[1,"title"],[1,"div-icon"],[1,"btn-no-color",3,"click"],["slot","icon-only","src","assets/images/icons-add.svg"],["class","btn-no-color",3,"click",4,"ngIf"],[1,"aside","overflow-y-auto","d-flex","flex-wrap","width-100"],["class","item width-100 cursor-pointer",3,"disabled",4,"ngFor","ngForOf"],["class","item width-100",3,"disabled",4,"ngFor","ngForOf"],[1,"content","content-right","d-none","flex-grow-1","flex-column"],["class","width-100 height-100 d-flex align-center justify-center",4,"ngIf"],["class","height-100 d-flex flex-column overflow-hidden flex-grow-1",3,"folderId","addNewPublication","openPublicationDetails","goBacktoPublicationDetails","goBackToViewPublications","closeDesktopComponent","getActions",4,"ngIf"],["class","height-100 d-flex flex-column overflow-hidden background-white flex-grow-1",3,"folderId","publicationType","publicationId","closeDesktopComponent","goBacktoPublicationDetails","goBackToViewPublications","getActions",4,"ngIf"],["class","height-100 d-flex flex-column overflow-hidden background-white flex-grow-1",3,"publicationId","folderId","addNewPublication","closeDesktopComponent","goBacktoPublicationDetails","goBackToViewPublications","getActions",4,"ngIf"],["class","height-100 d-flex flex-column overflow-hidden background-white flex-grow-1",3,"closeDesktopComponent","getActions",4,"ngIf"],["class","height-100 d-flex flex-column overflow-hidden background-white flex-grow-1",3,"folderId","closeDesktopComponent","updateDesktopComponent","getActions",4,"ngIf"],[1,"d-md-none"],["name","refresher","slot","fixed",3,"ionRefresh"],["type","indeterminate"],["slot","icon-only","name","reload-circle","title","Actualizar",1,"title-icon"],[1,"item","width-100","cursor-pointer",3,"disabled"],["lines","none",1,"width-100","d-flex","ion-no-border","ion-no-margin","ion-no-padding"],[1,"item-icon","cursor-pointer",3,"click"],["slot","end","src","assets/images/icons-plane-active.svg"],[1,"item-content","flex-grow-1","cursor-pointer",3,"click"],[1,"item-content-date","my-5"],[1,"item-content-title","my-10"],[1,"item-content-detail","my-5"],["autoHide","false",1,"item-options","d-none","cursor-pointer",3,"click"],["src","assets/images/icons-menu.svg"],["side","end",1,"members-options"],[1,"edit-option",3,"click"],[1,"btn-no-color"],["slot","end","src","assets/images/icons-edit.svg",1,"edit"],[1,"delete-option",3,"click"],["name","trash-sharp",1,"delete"],[1,"item","width-100",3,"disabled"],["lines","none",1,"width-100","d-flex","ion-no-border","ion-no-margin","ion-no-padding",3,"click"],[1,"item-icon2"],["slot","end","src","assets/images/icons-nav-actions.svg"],[1,"item-content","flex-grow-1"],[1,"item-content-date"],[1,"item-content-title"],[1,"width-100","height-100","d-flex","align-center","justify-center"],[1,"height-100","d-flex","flex-column","overflow-hidden","flex-grow-1",3,"folderId","addNewPublication","openPublicationDetails","goBacktoPublicationDetails","goBackToViewPublications","closeDesktopComponent","getActions"],[1,"height-100","d-flex","flex-column","overflow-hidden","background-white","flex-grow-1",3,"folderId","publicationType","publicationId","closeDesktopComponent","goBacktoPublicationDetails","goBackToViewPublications","getActions"],[1,"height-100","d-flex","flex-column","overflow-hidden","background-white","flex-grow-1",3,"publicationId","folderId","addNewPublication","closeDesktopComponent","goBacktoPublicationDetails","goBackToViewPublications","getActions"],[1,"height-100","d-flex","flex-column","overflow-hidden","background-white","flex-grow-1",3,"closeDesktopComponent","getActions"],[1,"height-100","d-flex","flex-column","overflow-hidden","background-white","flex-grow-1",3,"folderId","closeDesktopComponent","updateDesktopComponent","getActions"]],template:function(t,e){1&t&&(m.TgZ(0,"ion-header",0),m._UZ(1,"app-header"),m.qZA(),m.TgZ(2,"ion-content"),m.YNc(3,$,3,0,"div",1),m.TgZ(4,"div",2),m.TgZ(5,"div",3),m.YNc(6,X,1,0,"ion-progress-bar",4),m.TgZ(7,"ion-toolbar"),m.TgZ(8,"div",5),m.TgZ(9,"div",6),m.TgZ(10,"div",7),m.TgZ(11,"ion-label",8),m._uU(12,"Ac\xe7\xf5es Presidenciais"),m.qZA(),m.qZA(),m.TgZ(13,"div",9),m.TgZ(14,"button",10),m.NdJ("click",function(){return e.AddPublicationFolder()}),m._UZ(15,"ion-icon",11),m.qZA(),m.YNc(16,K,2,0,"button",12),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.TgZ(17,"div",13),m.YNc(18,tt,20,5,"ion-item-sliding",14),m.YNc(19,et,19,3,"ion-item-sliding",15),m.qZA(),m.qZA(),m.TgZ(20,"div",16),m.YNc(21,nt,3,0,"div",17),m.YNc(22,ot,1,1,"app-view-publications",18),m.YNc(23,it,1,3,"app-new-publication",19),m.YNc(24,at,1,2,"app-publication-detail-shared",20),m.YNc(25,rt,1,0,"app-new-action",21),m.YNc(26,st,1,1,"app-edit-action",22),m.qZA(),m.qZA(),m.qZA()),2&t&&(m.xp6(3),m.Q6J("ngIf",e.hideRefreshBtn),m.xp6(3),m.Q6J("ngIf",e.showLoader),m.xp6(10),m.Q6J("ngIf",e.hideRefreshBtn),m.xp6(2),m.Q6J("ngForOf",e.publicationTravelFolderService.list),m.xp6(1),m.Q6J("ngForOf",e.publicationEventFolderStorage.list),m.xp6(2),m.Q6J("ngIf",0==e.desktopComponent.showViewPublication&&0==e.desktopComponent.showAddNewPublication&&0==e.desktopComponent.showPublicationDetail&&0==e.desktopComponent.showAddActions&&0==e.desktopComponent.showEditActions),m.xp6(1),m.Q6J("ngIf",e.desktopComponent.showViewPublication),m.xp6(1),m.Q6J("ngIf",e.desktopComponent.showAddNewPublication),m.xp6(1),m.Q6J("ngIf",e.desktopComponent.showPublicationDetail),m.xp6(1),m.Q6J("ngIf",e.desktopComponent.showAddActions),m.xp6(1),m.Q6J("ngIf",e.desktopComponent.showEditActions))},directives:[s.Gu,w.E,s.W2,a.O5,s.sr,s.Q$,s.gu,a.sg,s.nJ,s.Wo,s.X7,s.td,s.Ie,s.IK,s.u8,N,Y.i,R,G,W.Q],styles:["ion-content[_ngcontent-%COMP%]{--background:transparent}ion-toolbar[_ngcontent-%COMP%]{border-width:0!important;--padding-top:0px!important;--padding-start:0px!important;--padding-right:0px!important;--padding-end:0px!important}.div-top-header[_ngcontent-%COMP%]{margin:0 auto;background-color:#0782c9;overflow:auto;padding-top:15px;border:0!important}.div-top-header[_ngcontent-%COMP%] .div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-top-header[_ngcontent-%COMP%] .div-logo[_ngcontent-%COMP%]{background:transparent;width:140px;margin:5px 0 0 71px;float:left}.div-top-header[_ngcontent-%COMP%] .div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-top-header[_ngcontent-%COMP%] .div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}ion-content[_ngcontent-%COMP%]{--border:none}.main-header[_ngcontent-%COMP%]{width:100%;height:100%;font-family:Roboto;background-color:#fff;overflow:hidden;color:#000;transform:translate3d(0,1px,0)}.main-header[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%]{margin:0 auto;padding:0!important;background:#fff}.main-header[_ngcontent-%COMP%] .div-title[_ngcontent-%COMP%]{padding:0!important}.main-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:25px}.main-header[_ngcontent-%COMP%] .div-icon[_ngcontent-%COMP%]{display:flex;font-size:35px;padding:0!important;align-items:center;justify-content:flex-end}.main-header[_ngcontent-%COMP%] .div-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{float:right;padding-left:10px}.main-content[_ngcontent-%COMP%]{font-family:Roboto;background-color:#fff;overflow:auto}.main-content[_ngcontent-%COMP%] .aside-left[_ngcontent-%COMP%]{border-right:1px solid #d8d8d8;margin:0!important;padding:0!important}.main-content[_ngcontent-%COMP%] .aside-left[_ngcontent-%COMP%] .main-header[_ngcontent-%COMP%]{padding:30px 20px 15px!important}.main-content[_ngcontent-%COMP%] .aside-left[_ngcontent-%COMP%] .aside[_ngcontent-%COMP%]{padding:0 20px!important}.item[_ngcontent-%COMP%]{width:100%!important;padding:0!important;border-bottom:1px solid #ebebeb;align-items:center;justify-content:space-between;flex-direction:row}.item[_ngcontent-%COMP%] .item-icon[_ngcontent-%COMP%]{width:45px;float:left;font-size:40px}.item[_ngcontent-%COMP%] .item-icon[_ngcontent-%COMP%] .item-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{color:#061b52}.item[_ngcontent-%COMP%] .item-icon2[_ngcontent-%COMP%]{width:45px;float:left;font-size:40px}.item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%]{width:100%;padding:15px 0 15px 10px;overflow:auto}.item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis!important}.item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%] .item-content-date[_ngcontent-%COMP%]{color:#797979;font-size:13px;margin:0!important;padding:0!important}.item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%] .item-content-title[_ngcontent-%COMP%]{color:#0d89d1;font-size:15px;margin:0!important;padding:0!important}.item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%] .item-content-detail[_ngcontent-%COMP%]{color:#000;font-size:13px;margin:0!important;padding:0!important}.item[_ngcontent-%COMP%] .item-options[_ngcontent-%COMP%]{width:25px;font-size:20px}ion-item-options[_ngcontent-%COMP%]{border:1px solid #fff;overflow:auto}.delete-option[_ngcontent-%COMP%], ion-item-option[_ngcontent-%COMP%]{display:flex;background:#ffe0e0;align-items:center;align-content:center}.delete-option[_ngcontent-%COMP%]{border:1px solid #d30a0a67}.edit-option[_ngcontent-%COMP%]{display:flex;background:#fff;align-items:center;align-content:center;margin-right:5px!important;border:1px solid #42b9feb9}.edit[_ngcontent-%COMP%]{padding:6px;font-size:35px;color:#061b52;margin:7px}.delete[_ngcontent-%COMP%], .edit[_ngcontent-%COMP%]{border-radius:20px}.delete[_ngcontent-%COMP%]{padding:7px;font-size:21px;color:#d30a0a;margin:12px;border:1px solid #d30a0a}@media only screen and (min-width: 801px){.content-right[_ngcontent-%COMP%]{display:flex!important;width:65%}.aside-left[_ngcontent-%COMP%]{width:35%}.item-options[_ngcontent-%COMP%]{display:block!important}}"]}),ct)},{path:"new-publication",loadChildren:function(){return i.e(7248).then(i.bind(i,77248)).then(function(t){return t.NewPublicationPageModule})}},{path:"gallery",loadChildren:function(){return i.e(5437).then(i.bind(i,95437)).then(function(t){return t.GalleryPageModule})}},{path:"new-action",loadChildren:function(){return i.e(5030).then(i.bind(i,35030)).then(function(t){return t.NewActionPageModule})}},{path:"view-publications",children:[{path:"",loadChildren:function(){return i.e(8592).then(i.bind(i,4175)).then(function(t){return t.ViewPublicationsPageModule})}},{path:"publication-detail",loadChildren:function(){return i.e(8592).then(i.bind(i,5305)).then(function(t){return t.PublicationDetailPageModule})}}]},{path:"edit-action",loadChildren:function(){return i.e(7515).then(i.bind(i,87515)).then(function(t){return t.EditActionPageModule})}}],ut=function(){var e=function e(){t(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=m.oAB({type:e}),e.\u0275inj=m.cJS({imports:[[c.Bz.forChild(lt)],c.Bz]}),e}(),pt=[],gt=function(){var e=function e(){t(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=m.oAB({type:e}),e.\u0275inj=m.cJS({imports:[[c.Bz.forChild(pt)],c.Bz]}),e}(),ft=function(){var e=function e(){t(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=m.oAB({type:e}),e.\u0275inj=m.cJS({imports:[[a.ez,r.u5,s.Pc,gt]]}),e}(),ht=i(72774),mt=[{path:"",component:G}],bt=function(){var e=function e(){t(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=m.oAB({type:e}),e.\u0275inj=m.cJS({imports:[[c.Bz.forChild(mt)],c.Bz]}),e}(),vt=i(72458),wt=i(51095),xt=i(67441),Zt=i(94881),Ct=i(22238),Mt=function(){var e=function e(){t(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=m.oAB({type:e}),e.\u0275inj=m.cJS({imports:[[a.ez,r.u5,s.Pc,bt,L.FA,V.c,vt.XK,j.EC,j.Yy,j.K,Zt._W,xt.LD,wt.ot,r.UX,Ct.Is]]}),e}(),Pt=[{path:"",component:R}],kt=function(){var e=function e(){t(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=m.oAB({type:e}),e.\u0275inj=m.cJS({imports:[[c.Bz.forChild(Pt)],c.Bz]}),e}(),At=function(){var e=function e(){t(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=m.oAB({type:e}),e.\u0275inj=m.cJS({imports:[[a.ez,r.u5,s.Pc,kt]]}),e}(),Tt=i(6527),Dt=i(39510),_t=((dt=function e(){t(this,e)}).\u0275fac=function(t){return new(t||dt)},dt.\u0275mod=m.oAB({type:dt}),dt.\u0275inj=m.cJS({imports:[[a.ez,r.u5,s.Pc,ut,Tt.a,ft,ht.NewPublicationPageModule,At,Mt,Dt.EditActionPageModule]]}),dt)}}])}();