Files
doneit-web/_platforms/browser/www/562-es2015.97634364430e56a3e6ae.js
T

1 line
26 KiB
JavaScript
Raw Normal View History

2021-08-18 18:58:02 +01:00
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[562],{90562:function(t,e,i){"use strict";i.d(e,{A:function(){return N}});var s=i(64762),n=i(95336),o=i(45896),a=i(11055),r=i(4528),c=i(55199),l=i(3679),d=i(25653),p=i(37716),h=i(35957),u=i(28621),g=i(37556),m=i(84465),f=i(96529),v=i(40617);let P=(()=>{class t{constructor(t,e){this.processes=t,this.p=e}createParecer(t){return this.p.userRole(["PR"])?this.processes.postParecerPr(t):this.processes.postParecer(t)}createDeferimento(t){if(this.p.userRole(["PR"]))throw"PR cant create Deferimento";return this.processes.postDeferimento(t)}taskCompleteParecer({serialNumber:t}){return this.processes.CompleteTask({serialNumber:t,action:"Parecer",ActionTypeId:92,dataFields:{ReviewUserComment:""},AttachmentList:null})}taskCompleteDeferimento({serialNumber:t}){return this.processes.CompleteTask({serialNumber:t,action:"Deferimento",ActionTypeId:93,dataFields:{ReviewUserComment:""},AttachmentList:null})}}return t.\u0275fac=function(e){return new(e||t)(p.LFG(u.$),p.LFG(f.$))},t.\u0275prov=p.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var C=i(98295),Z=i(67441),y=i(72458),k=i(38583),D=i(1491),b=i(17352);function T(t,e){if(1&t&&(p.TgZ(0,"mat-option",46),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.s9C("value",t.Code),p.xp6(1),p.Oqu(t.Description)}}function x(t,e){1&t&&(p.TgZ(0,"ion-label",47),p._uU(1,"Adicionar intervenientes*"),p.qZA())}function A(t,e){if(1&t&&(p.TgZ(0,"ion-label"),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.Name)}}function M(t,e){1&t&&(p.TgZ(0,"ion-label",47),p._uU(1,"Com conhecimento"),p.qZA())}function q(t,e){if(1&t&&(p.TgZ(0,"ion-label"),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.Name)}}function w(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",48),p.TgZ(1,"ion-list"),p.TgZ(2,"ion-item"),p.TgZ(3,"ion-label"),p.TgZ(4,"p",49),p.TgZ(5,"span",50),p._uU(6),p.qZA(),p.TgZ(7,"span",51),p._uU(8),p.qZA(),p.TgZ(9,"span",52),p.NdJ("click",function(){const e=p.CHM(t).index;return p.oxw().removeAttachment(e)}),p._UZ(10,"ion-icon",53),p.qZA(),p.qZA(),p.TgZ(11,"p"),p.TgZ(12,"span",54),p._uU(13),p.qZA(),p.TgZ(14,"span",55),p._uU(15),p.ALo(16,"date"),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit;p.xp6(6),p.Oqu(t.Assunto),p.xp6(2),p.Oqu(t.appName),p.xp6(5),p.Oqu(t.EntidadeOrganicaNome),p.xp6(2),p.hij(" ",p.xi3(16,4,t.Data,"dd-MM-yyyy HH:mm")," ")}}function _(t,e){if(1&t&&p._UZ(0,"app-empty-container",59),2&t){const t=p.oxw(2);p.Q6J("texto",t.emptyTextDescription)}}function I(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-attendee-modal",60),p.NdJ("closeComponent",function(){return p.CHM(t),p.oxw(2).closeComponent()})("setIntervenient",function(e){return p.CHM(t),p.oxw(2).setIntervenient(e)})("setIntervenientCC",function(e){return p.CHM(t),p.oxw(2).setIntervenientCC(e)})("setContact",function(e){return p.CHM(t),p.oxw(2).setContact(e)})("dynamicSetIntervenient",function(e){return p.CHM(t),p.oxw(2).dynamicSetIntervenient(e)}),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("footer",!1)("adding",t.adding)("taskParticipants",t.taskParticipants)("taskParticipantsCc",t.taskParticipantsCc)}}function F(t,e){if(1&t&&(p.TgZ(0,"div",56),p.YNc(1,_,1,1,"app-empty-container",57),p.YNc(2,I,1,4,"app-attendee-modal",58),p.qZA()),2&t){const t=p.oxw();p.xp6(1),p.Q6J("ngIf",!t.showAttendees),p.xp6(1),p.Q6J("ngIf",t.showAttendees)}}const O={parse:{dateInput:"YYYY-MMMM-DD HH:mm"},display:{dateInput:"DD MMM YYYY H:mm",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let N=(()=>{class t{constructor(t,e,i,s,o,a,r,c,d,p){let h,u,g,m;this.modalController=t,this.processes=e,this.navParams=i,this.authService=s,this.userAuth=o,this.animationController=a,this.toastService=r,this.p=c,this.despachoService=d,this.pedidoService=p,this.modalTitle=["Efectuar Despacho","Solicitar Parecer","Solicitar Deferimento"],this.taskParticipants=[],this.taskParticipantsCc=[],this.selectedTypes=[],this.contacts=[],this.showAttendees=!1,this.adding="intervenient",this.validateFrom=!1,this.emptyTextDescription="Sem interven