Files
doneit-web/_platforms/browser/www/common-es2015.da63efafb900da6709d5.js
T
tiago.kayaya 24e2a8f518 save
2021-08-18 18:58:02 +01:00

1 line
122 KiB
JavaScript

(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[8592],{76507:function(t,e,n){"use strict";n.d(e,{c:function(){return s}});var o=n(31667),i=n(97279),r=n(52954);const s=(t,e)=>{let n,s;const a=(t,o,i)=>{if("undefined"==typeof document)return;const r=document.elementFromPoint(t,o);r&&e(r)?r!==n&&(l(),c(r,i)):l()},c=(t,e)=>{n=t,s||(s=n);const i=n;(0,o.c)(()=>i.classList.add("ion-activated")),e()},l=(t=!1)=>{if(!n)return;const e=n;(0,o.c)(()=>e.classList.remove("ion-activated")),t&&s!==n&&n.click(),n=void 0};return(0,i.createGesture)({el:t,gestureName:"buttonActiveDrag",threshold:0,onStart:t=>a(t.currentX,t.currentY,r.a),onMove:t=>a(t.currentX,t.currentY,r.b),onEnd:()=>{l(!0),(0,r.h)(),s=void 0}})}},60504:function(t,e,n){"use strict";n.d(e,{a:function(){return o},d:function(){return i}});const o=async(t,e,n,o,i)=>{if(t)return t.attachViewToDom(e,n,i,o);if("string"!=typeof n&&!(n instanceof HTMLElement))throw new Error("framework delegate is missing");const r="string"==typeof n?e.ownerDocument&&e.ownerDocument.createElement(n):n;return o&&o.forEach(t=>r.classList.add(t)),i&&Object.assign(r,i),e.appendChild(r),r.componentOnReady&&await r.componentOnReady(),r},i=(t,e)=>{if(e){if(t)return t.removeViewFromDom(e.parentElement,e);e.remove()}return Promise.resolve()}},52954:function(t,e,n){"use strict";n.d(e,{a:function(){return r},b:function(){return s},c:function(){return i},d:function(){return c},h:function(){return a}});const o={getEngine(){const t=window;return t.TapticEngine||t.Capacitor&&t.Capacitor.isPluginAvailable("Haptics")&&t.Capacitor.Plugins.Haptics},available(){return!!this.getEngine()},isCordova:()=>!!window.TapticEngine,isCapacitor:()=>!!window.Capacitor,impact(t){const e=this.getEngine();if(!e)return;const n=this.isCapacitor()?t.style.toUpperCase():t.style;e.impact({style:n})},notification(t){const e=this.getEngine();if(!e)return;const n=this.isCapacitor()?t.style.toUpperCase():t.style;e.notification({style:n})},selection(){this.impact({style:"light"})},selectionStart(){const t=this.getEngine();t&&(this.isCapacitor()?t.selectionStart():t.gestureSelectionStart())},selectionChanged(){const t=this.getEngine();t&&(this.isCapacitor()?t.selectionChanged():t.gestureSelectionChanged())},selectionEnd(){const t=this.getEngine();t&&(this.isCapacitor()?t.selectionEnd():t.gestureSelectionEnd())}},i=()=>{o.selection()},r=()=>{o.selectionStart()},s=()=>{o.selectionChanged()},a=()=>{o.selectionEnd()},c=t=>{o.impact(t)}},66575:function(t,e,n){"use strict";n.d(e,{s:function(){return o}});const o=t=>{try{if(t instanceof class{constructor(t){this.value=t}})return t.value;if(!s()||"string"!=typeof t||""===t)return t;const e=document.createDocumentFragment(),n=document.createElement("div");e.appendChild(n),n.innerHTML=t,c.forEach(t=>{const n=e.querySelectorAll(t);for(let o=n.length-1;o>=0;o--){const t=n[o];t.parentNode?t.parentNode.removeChild(t):e.removeChild(t);const s=r(t);for(let e=0;e<s.length;e++)i(s[e])}});const o=r(e);for(let t=0;t<o.length;t++)i(o[t]);const a=document.createElement("div");a.appendChild(e);const l=a.querySelector("div");return null!==l?l.innerHTML:a.innerHTML}catch(e){return console.error(e),""}},i=t=>{if(t.nodeType&&1!==t.nodeType)return;for(let n=t.attributes.length-1;n>=0;n--){const e=t.attributes.item(n),o=e.name;if(!a.includes(o.toLowerCase())){t.removeAttribute(o);continue}const i=e.value;null!=i&&i.toLowerCase().includes("javascript:")&&t.removeAttribute(o)}const e=r(t);for(let n=0;n<e.length;n++)i(e[n])},r=t=>null!=t.children?t.children:t.childNodes,s=()=>{const t=window,e=t&&t.Ionic&&t.Ionic.config;return!e||(e.get?e.get("sanitizerEnabled",!0):!0===e.sanitizerEnabled||void 0===e.sanitizerEnabled)},a=["class","id","href","src","name","slot"],c=["script","style","iframe","meta","link","object","embed"]},60408:function(t,e,n){"use strict";n.d(e,{S:function(){return o}});const o={bubbles:{dur:1e3,circles:9,fn:(t,e,n)=>{const o=t*e/n-t+"ms",i=2*Math.PI*e/n;return{r:5,style:{top:9*Math.sin(i)+"px",left:9*Math.cos(i)+"px","animation-delay":o}}}},circles:{dur:1e3,circles:8,fn:(t,e,n)=>{const o=e/n,i=t*o-t+"ms",r=2*Math.PI*o;return{r:5,style:{top:9*Math.sin(r)+"px",left:9*Math.cos(r)+"px","animation-delay":i}}}},circular:{dur:1400,elmDuration:!0,circles:1,fn:()=>({r:20,cx:48,cy:48,fill:"none",viewBox:"24 24 48 48",transform:"translate(0,0)",style:{}})},crescent:{dur:750,circles:1,fn:()=>({r:26,style:{}})},dots:{dur:750,circles:3,fn:(t,e)=>({r:6,style:{left:9-9*e+"px","animation-delay":-110*e+"ms"}})},lines:{dur:1e3,lines:12,fn:(t,e,n)=>({y1:17,y2:29,style:{transform:`rotate(${30*e+(e<6?180:-180)}deg)`,"animation-delay":t*e/n-t+"ms"}})},"lines-small":{dur:1e3,lines:12,fn:(t,e,n)=>({y1:12,y2:20,style:{transform:`rotate(${30*e+(e<6?180:-180)}deg)`,"animation-delay":t*e/n-t+"ms"}})}}},61269:function(t,e,n){"use strict";n.d(e,{c:function(){return i},g:function(){return r},h:function(){return o},o:function(){return a}});const o=(t,e)=>null!==e.closest(t),i=(t,e)=>"string"==typeof t&&t.length>0?Object.assign({"ion-color":!0,[`ion-color-${t}`]:!0},e):e,r=t=>{const e={};return(t=>void 0!==t?(Array.isArray(t)?t:t.split(" ")).filter(t=>null!=t).map(t=>t.trim()).filter(t=>""!==t):[])(t).forEach(t=>e[t]=!0),e},s=/^[a-z][a-z0-9+\-.]*:/,a=async(t,e,n,o)=>{if(null!=t&&"#"!==t[0]&&!s.test(t)){const i=document.querySelector("ion-router");if(i)return null!=e&&e.preventDefault(),i.push(t,n,o)}return!1}},96529:function(t,e,n){"use strict";n.d(e,{$:function(){return r}});var o=n(53413),i=n(37716);let r=(()=>{class t{constructor(){this.userStore=o.U}userRole(t){return Array.isArray(t)||(t=[t]),t.includes(this.userStore.user.Profile)}role(t){let e=this.userRole(t);return{permissionAnyOf:t=>(Array.isArray(t)||(t=[t]),!!e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},54330:function(t,e,n){"use strict";n.r(e),n.d(e,{DocumentDetailPageModule:function(){return g}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(33289),c=n(37716);const l=[{path:"",component:a.j}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})();var p=n(4502);let g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d,p.F]]}),t})()},97404:function(t,e,n){"use strict";n.r(e),n.d(e,{EditEventPageModule:function(){return g}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(97049),c=n(37716);const l=[{path:"",component:a.f}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})();var p=n(2142);let g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d,p.AttendeeModalPageModule]]}),t})()},91796:function(t,e,n){"use strict";n.r(e),n.d(e,{ViewEventPageModule:function(){return f}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(75008),c=n(37716);const l=[{path:"",component:a.u}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})();var p=n(6527),g=n(4502),u=n(962);let f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d,p.a,g.F]]}),t})();c.B6R(a.u,[r.Gu,u.E,r.W2,r.gu,r.Q$,o.O5,r.Ie,o.sg,r.q_],[o.uU])},48077:function(t,e,n){"use strict";n.r(e),n.d(e,{GroupContactsPageModule:function(){return u}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(80927),c=n(37716);const l=[{path:"",component:a.o}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})();var p=n(35503),g=n(6136);let u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,p.D,d,g.I]]}),t})()},96878:function(t,e,n){"use strict";n.r(e),n.d(e,{GroupMessagesPageModule:function(){return h}});var o=n(38583),i=n(3679),r=n(39075),s=n(35957),a=n(39895),c=n(70407),l=n(37716);const d=[{path:"",component:c.$},{path:"group-contacts",loadChildren:()=>Promise.all([n.e(8592),n.e(1424)]).then(n.bind(n,48077)).then(t=>t.GroupContactsPageModule)}];let p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[a.Bz.forChild(d)],a.Bz]}),t})();var g=n(27255),u=n(4502),f=n(39577);let h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[o.ez,r.b2,i.u5,f.uH,s.Pc,p,g.U,u.F]]}),t})()},19630:function(t,e,n){"use strict";n.r(e),n.d(e,{ContactsPageModule:function(){return g}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(16751),c=n(37716);const l=[{path:"",component:a.K}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})();var p=n(35503);let g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d,p.D]]}),t})()},10333:function(t,e,n){"use strict";n.r(e),n.d(e,{MessagesPageModule:function(){return p}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(92207),c=n(37716);const l=[{path:"",component:a.c},{path:"contacts",loadChildren:()=>Promise.all([n.e(8592),n.e(3216)]).then(n.bind(n,19630)).then(t=>t.ContactsPageModule)}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d]]}),t})()},99049:function(t,e,n){"use strict";n.r(e),n.d(e,{AttachmentsPageModule:function(){return p}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(94594),c=n(37716);const l=[{path:"",component:a.j}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d]]}),t})()},5099:function(t,e,n){"use strict";n.r(e),n.d(e,{AttendeesPageModule:function(){return p}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(55199),c=n(37716);const l=[{path:"",component:a.V}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d]]}),t})()},70937:function(t,e,n){"use strict";n.r(e),n.d(e,{EventDetailPageModule:function(){return p}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(47352),c=n(37716);const l=[{path:"",component:a.W}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,i.UX,d]]}),t})()},54234:function(t,e,n){"use strict";n.r(e),n.d(e,{DiplomasAssinarPageModule:function(){return O}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(64762),c=n(17690),l=n(37716),d=n(28621),p=n(25970),g=n(962),u=n(23890);function f(t,e){1&t&&l._UZ(0,"ion-progress-bar",17)}function h(t,e){if(1&t&&(l.TgZ(0,"label"),l._uU(1),l.qZA()),2&t){const t=l.oxw().$implicit;l.xp6(1),l.Oqu(t.DocumentsQty)}}function m(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",20),l.NdJ("click",function(){const e=l.CHM(t).$implicit;return l.oxw(3).goToDiploma(e.SerialNumber)}),l.TgZ(1,"div",21),l.TgZ(2,"div",22),l.TgZ(3,"div",23),l.TgZ(4,"ion-label"),l._uU(5),l.qZA(),l.qZA(),l.TgZ(6,"div",24),l._UZ(7,"ion-icon",25),l.YNc(8,h,2,1,"label",16),l.qZA(),l.qZA(),l.TgZ(9,"div",26),l.TgZ(10,"div",27),l.TgZ(11,"ion-label"),l._uU(12),l.qZA(),l.qZA(),l.qZA(),l.TgZ(13,"div",28),l.TgZ(14,"div",29),l.TgZ(15,"span",30),l._uU(16),l.qZA(),l.qZA(),l.TgZ(17,"div",31),l.TgZ(18,"ion-label"),l._uU(19),l.ALo(20,"date"),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit;l.xp6(5),l.Oqu(t.Folio),l.xp6(3),l.Q6J("ngIf",0!=t.DocumentsQty),l.xp6(4),l.Oqu(t.Senders),l.xp6(4),l.Oqu(t.activityInstanceName),l.xp6(3),l.Oqu(l.xi3(20,5,t.CreateDate,"dd-MM-yyyy HH:mm"))}}function x(t,e){if(1&t&&(l.TgZ(0,"div"),l.TgZ(1,"ion-list"),l.YNc(2,m,21,8,"div",19),l.qZA(),l.qZA()),2&t){const t=l.oxw(2);l.xp6(2),l.Q6J("ngForOf",t.diplomasList)}}function v(t,e){if(1&t&&(l.TgZ(0,"div",18),l.YNc(1,x,3,1,"div",16),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("ngIf",t.diplomasList)}}function _(t,e){1&t&&(l.TgZ(0,"div",32),l.TgZ(1,"span"),l._uU(2,"Lista vazia"),l.qZA(),l.qZA())}function P(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"ion-list"),l.TgZ(2,"ion-item"),l.TgZ(3,"ion-thumbnail",33),l._UZ(4,"ion-skeleton-text",34),l.qZA(),l.TgZ(5,"ion-label"),l.TgZ(6,"h3"),l._UZ(7,"ion-skeleton-text",35),l.qZA(),l.TgZ(8,"p"),l._UZ(9,"ion-skeleton-text",36),l.qZA(),l.TgZ(10,"p"),l._UZ(11,"ion-skeleton-text",37),l.qZA(),l.qZA(),l.qZA(),l.TgZ(12,"ion-item"),l.TgZ(13,"ion-thumbnail",33),l._UZ(14,"ion-skeleton-text",34),l.qZA(),l.TgZ(15,"ion-label"),l.TgZ(16,"h3"),l._UZ(17,"ion-skeleton-text",35),l.qZA(),l.TgZ(18,"p"),l._UZ(19,"ion-skeleton-text",36),l.qZA(),l.TgZ(20,"p"),l._UZ(21,"ion-skeleton-text",37),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA())}const M=[{path:"",component:(()=>{class t{constructor(t,e,n,o){this.processes=t,this.modalController=e,this.alertService=n,this.router=o,this.diplomasList=[],this.customTaskPipe=new c.g,this.skeletonLoader=!0}ngOnInit(){const t=window.location,e=t.pathname+t.search;this.LoadList(),this.router.events.forEach(t=>{t instanceof s.m2&&t.url.startsWith(e)&&(window.location.pathname.split("/").length>=4&&window.location.pathname.startsWith("/home/gabinete-digital")?this.refreshing():this.LoadList())})}goToDiploma(t){this.router.navigate(["/home/gabinete-digital/diplomas-assinar",t,"gabinete-digital"])}refreshing(){return(0,a.mG)(this,void 0,void 0,function*(){setTimeout(()=>{this.LoadList()},1e3)})}doRefresh(t){setTimeout(()=>{this.LoadList()},1e3)}LoadList(){return(0,a.mG)(this,void 0,void 0,function*(){this.skeletonLoader=!0;let t=yield this.processes.GetTasksList("Despacho do Presidente da Rep\xfablica",!1).toPromise();this.diplomasList=[];let e=t.reverse().filter(t=>"Assinar Diploma"==t.activityInstanceName);console.log(e),e.forEach(t=>{let e=this.customTaskPipe.transform(t);this.diplomasList.push(e)}),this.skeletonLoader=!1,this.showLoader=!1})}goBack(){this.router.navigate(["/home/gabinete-digital"])}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(d.$),l.Y36(r.IN),l.Y36(p.c),l.Y36(s.F0))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-diplomas-assinar"]],inputs:{profile:"profile",segment:"segment"},decls:22,vars:4,consts:[[1,"ion-no-border"],[1,"ion-no-border","header-2"],[1,"title"],[3,"click"],[1,"thetitle"],[1,"theicon","btn-refresh"],[1,"btn-no-color",3,"click"],["slot","end","name","reload-circle",1,"title-icon"],[1,"bottom-title","d-flex"],[1,"bottom-text"],[1,"main-content","width-100","overflow-y-auto","height-100"],["name","refresher","slot","fixed",3,"ionRefresh"],["pullingIcon","chevron-down-circle-outline","pullingText","deslize para actualizar","refreshingSpinner","circles","refreshingText","A actualizar..."],["type","indeterminate",4,"ngIf"],["class","width-100",4,"ngIf"],["class","empty-list d-flex height-100 align-center justify-content-center",4,"ngIf"],[4,"ngIf"],["type","indeterminate"],[1,"width-100"],["class","expediente ion-no-padding ion-no-margin cursor-pointer",3,"click",4,"ngFor","ngForOf"],[1,"expediente","ion-no-padding","ion-no-margin","cursor-pointer",3,"click"],[1,"item","width-100"],[1,"exp-top-detail"],[1,"subject"],[1,"exp-icon"],["src","assets/images/icons-expediente-attachment.svg"],[1,"exp-bottom-detail"],[1,"exp-remetente"],[1,"exp-middle-detail"],[1,"exp-workflow"],[1,"label"],[1,"exp-date"],[1,"empty-list","d-flex","height-100","align-center","justify-content-center"],["slot","end"],["animated",""],["animated","",2,"width","50%"],["animated","",2,"width","80%"],["animated","",2,"width","60%"]],template:function(t,e){1&t&&(l.TgZ(0,"ion-header",0),l._UZ(1,"app-header"),l.qZA(),l.TgZ(2,"ion-header",1),l.TgZ(3,"div",2),l.TgZ(4,"app-btn-modal-dismiss",3),l.NdJ("click",function(){return e.goBack()}),l.qZA(),l.TgZ(5,"div",4),l.TgZ(6,"ion-label"),l._uU(7,"Diplomas"),l.qZA(),l.qZA(),l.TgZ(8,"div",5),l.TgZ(9,"button",6),l.NdJ("click",function(t){return e.doRefresh(t)}),l._UZ(10,"ion-icon",7),l.qZA(),l.qZA(),l.TgZ(11,"div",8),l.TgZ(12,"h3",9),l._uU(13,"Diplomas por Assinar"),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.TgZ(14,"ion-content"),l.TgZ(15,"div",10),l.TgZ(16,"ion-refresher",11),l.NdJ("ionRefresh",function(t){return e.doRefresh(t)}),l._UZ(17,"ion-refresher-content",12),l.qZA(),l.YNc(18,f,1,0,"ion-progress-bar",13),l.YNc(19,v,2,1,"div",14),l.YNc(20,_,3,0,"div",15),l.YNc(21,P,22,0,"div",16),l.qZA(),l.qZA()),2&t&&(l.xp6(18),l.Q6J("ngIf",e.skeletonLoader),l.xp6(1),l.Q6J("ngIf",e.diplomasList.length>=1),l.xp6(1),l.Q6J("ngIf",!e.skeletonLoader&&0==e.diplomasList.length),l.xp6(1),l.Q6J("ngIf",e.skeletonLoader&&0==e.diplomasList.length))},directives:[r.Gu,g.E,u.E,r.Q$,r.gu,r.W2,r.nJ,r.Wo,o.O5,r.X7,r.q_,o.sg,r.Ie,r.Bs,r.CK],pipes:[o.uU],styles:["[_nghost-%COMP%]{margin:0}.header-2[_ngcontent-%COMP%]{border-top-right-radius:24px;border-top-left-radius:24px}.header-2[_ngcontent-%COMP%], .main-content[_ngcontent-%COMP%], ion-content[_ngcontent-%COMP%]{padding:30px 20px 0!important;background-color:#fff}.main-content[_ngcontent-%COMP%]{padding-top:0!important}.title[_ngcontent-%COMP%]{font-family:Roboto;font-size:25px;color:#000;overflow:auto}.title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{float:left}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%], .title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%]{float:right}.bottom-title[_ngcontent-%COMP%]{width:calc(100% - 40px);margin-left:20px!important;margin-right:20px!important;margin:0 auto;align-items:center;justify-content:center;border-bottom:5px solid #42b9fe}.bottom-title[_ngcontent-%COMP%] .bottom-text[_ngcontent-%COMP%]{font-size:15px!important;font-family:Roboto!important;color:#0d89d1!important}.item-list-small[_ngcontent-%COMP%]{font-size:11px;overflow:hidden}.ion-item-class[_ngcontent-%COMP%]{padding:0}.label-text[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}ion-item[_ngcontent-%COMP%]{--background:none}.item[_ngcontent-%COMP%]{background-color:var(--white);margin:0 auto;overflow:hidden}.div-content-expediente[_ngcontent-%COMP%]{width:100%;float:left;border-left:3px solid #dae3f3;padding:5px 5px 15px;margin:10px 0;background:#dae3f3;border-radius:20px}.div-content-pendentes[_ngcontent-%COMP%]{width:100%;float:left;border-left:3px solid #d9d9d9;padding:5px}.div-content-expediente[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .div-content-pendentes[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;font-size:14pt;width:100%}.div-icon[_ngcontent-%COMP%]{width:10%;font-size:20px;float:left;color:grey}.div-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{display:block;margin:0 auto}.div-content-expediente[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .div-content-pendentes[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14pt;color:#5e5c5c;padding:0;margin:0}.span-left[_ngcontent-%COMP%]{float:left;font-size:12px;padding-left:18px}.span-right[_ngcontent-%COMP%]{text-align:right;float:right;font-size:12px;padding-right:18px}.expediente[_ngcontent-%COMP%]{border-radius:15px;box-shadow:0 0 10px 0 rgba(0,0,0,.07);border:1px solid #e9e9e9!important;background-color:var(--white);margin-bottom:10px!important;padding:15px}.exp-list-item[_ngcontent-%COMP%]{overflow:auto;margin:10px auto}.exp-top-detail[_ngcontent-%COMP%]{width:100%;float:left;font-family:Roboto;font-size:12pt;font-weight:700;color:#0d89d1;padding-left:3px}.exp-top-detail[_ngcontent-%COMP%] .subject[_ngcontent-%COMP%]{width:84%;float:left}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;float:right;margin:0!important;padding:0!important}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:12pt;color:#42b9fe;float:left}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:10pt}.exp-bottom-detail[_ngcontent-%COMP%], .exp-middle-detail[_ngcontent-%COMP%]{margin-bottom:5px}.exp-middle-detail[_ngcontent-%COMP%]{font-size:12pt;width:100%;overflow:auto}.exp-middle-detail[_ngcontent-%COMP%] .exp-workflow[_ngcontent-%COMP%]{float:left;margin:0!important}.exp-middle-detail[_ngcontent-%COMP%] .exp-workflow[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:15px;background:#ffb703;float:right;padding:2.5px 13.5px;color:#fff}.exp-middle-detail[_ngcontent-%COMP%] .exp-date[_ngcontent-%COMP%]{width:auto;font-family:Roboto;font-size:10pt;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#797979;float:right}.exp-bottom-detail[_ngcontent-%COMP%]{font-size:8pt;width:100%;overflow:auto;padding-left:3px}.exp-bottom-detail[_ngcontent-%COMP%] .exp-remetente[_ngcontent-%COMP%]{font-family:Roboto;font-weight:400;color:#000;float:left}.div-top-header[_ngcontent-%COMP%]{width:400px;margin:6px auto;background-color:#0782c9;overflow:auto}.div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-logo[_ngcontent-%COMP%]{background:transparent;width:150px;margin:2.5px 0 2.5px 71px;float:left}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}"]}),t})()},{path:"diploma-assinar",loadChildren:()=>n.e(1135).then(n.bind(n,61135)).then(t=>t.DiplomaAssinarPageModule)}];let C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[s.Bz.forChild(M)],s.Bz]}),t})();var w=n(6527),b=n(4502);let O=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[o.ez,i.u5,r.Pc,C,w.a,b.F]]}),t})()},6834:function(t,e,n){"use strict";n.r(e),n.d(e,{ApproveEventModalPageModule:function(){return u}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(88195),c=n(37716);const l=[{path:"",component:a.A}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})();var p=n(6527),g=n(4502);let u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d,p.a,g.F]]}),t})()},16:function(t,e,n){"use strict";n.r(e),n.d(e,{ExpedientTaskModalPageModule:function(){return C}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(32379),c=n(37716);const l=[{path:"",component:a.F}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})();var p=n(2142),g=n(66089),u=n(4502),f=n(72458),h=n(25653),m=n(51095),x=n(67441),v=n(94881),_=n(43220),P=n(49983);const M={parse:{dateInput:"YYYY-MMMM-DD HH:mm"},display:{dateInput:"DD MMM YYYY H:mm",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({providers:[{provide:h.ab,useValue:M},{provide:f.Ad,useValue:"pt"}],imports:[[o.ez,i.u5,r.Pc,d,p.AttendeeModalPageModule,g.EmptyContainerPageModule,u.F,_.FA,P.c,f.XK,h.EC,h.Yy,h.K,v._W,x.LD,m.ot,i.UX]]}),t})()},3961:function(t,e,n){"use strict";n.r(e),n.d(e,{ExpedienteDetailPageModule:function(){return f}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(11055),c=n(37716);const l=[{path:"",component:a.C}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})();var p=n(6527),g=n(4502),u=n(962);let f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d,p.a,g.F]]}),t})();c.B6R(a.C,[r.Gu,u.E,r.fG,r.W2,o.O5,r.gu,r.Q$,r.Ie,o.sg,r.q_],[o.uU])},7392:function(t,e,n){"use strict";n.r(e),n.d(e,{PedidoPageModule:function(){return u}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(46176),c=n(37716);const l=[{path:"",component:a.k}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})();var p=n(6527),g=n(4502);let u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d,p.a,g.F]]}),t})()},5305:function(t,e,n){"use strict";n.r(e),n.d(e,{PublicationDetailPageModule:function(){return u}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(51230),c=n(37716);const l=[{path:"",component:a.e}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})();var p=n(6527),g=n(962);let u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d,p.a]]}),t})();c.B6R(a.e,[r.Gu,g.E,r.W2,r.nJ,o.O5,r.X7,r.Wo,r.gu,r.Q$,r.CK,r.fr,r.sr,r.Sm,r.YG],[o.uU])},4175:function(t,e,n){"use strict";n.r(e),n.d(e,{ViewPublicationsPageModule:function(){return g}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(3861),c=n(37716);const l=[{path:"",component:a.F},{path:"publication-detail",loadChildren:()=>n.e(8592).then(n.bind(n,5305)).then(t=>t.PublicationDetailPageModule)}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})();var p=n(6527);let g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d,p.a]]}),t})()},18903:function(t,e,n){"use strict";n.d(e,{G:function(){return i}});var o=n(37716);let i=(()=>{class t{createCollection(t,e){var n=t,o={markDirty:!0},i={};i[n]={},i[n].searchFields={UserId:"integer"},WL.JSONStore.init(i).then(function(){return WL.Logger.debug("Init done"),console.log("Init done"),WL.JSONStore.get(n).add(e,o)}).fail(function(t){WL.Logger.error(t),console.log(t)})}getCollection(t){var e={};return e[t]={},e[t].searchFields={UserId:"integer"},WL.JSONStore.init(e).then(function(){WL.Logger.debug("Find all colletion data"),console.log("Find all colletion data")}).fail(function(t){WL.Logger.error(t),console.log("JsonStore getColletion error ",t)}),WL.JSONStore.get(t).findAll({limit:10,offset:0,filter:["UserId","json"]}).then(t=>(console.log("Find all colletion data",t),JSON.parse(t)))}getColletionById(t,e){var n={UserId:e},o={limit:10,offset:0,filter:["UserId","json"]},i={};i[t]={},i[t].searchFields={UserId:"integer"},WL.JSONStore.init(i).then(function(){return WL.Logger.debug("Find colletion data by id"),console.log("Find colletion data by id"),WL.JSONStore.get(t).find(n,o).then(t=>{console.log("Find colletion data by id",t)})}).fail(function(t){WL.Logger.error(t),console.log(t)})}replaceDocument(t,e){WL.JSONStore.get(t).replace(e,{}).then(function(t){console.log("JsonStore replace document sucess: ",t)}).fail(function(t){console.log("JsonStore replace document error: ",t)})}removeDocument(t,e){WL.JSONStore.get(t).remove(e,{exact:!0}).then(function(t){console.log("JsonStore remove document sucess: ",t)}).fail(function(t){console.log("JsonStore remove document erro: ",t)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},79744:function(t,e,n){"use strict";n.d(e,{T:function(){return u}});var o=n(64762),i=n(92340),r=n(10027),s=n(37716),a=n(91841),c=n(71188),l=n(35957),d=n(39895),p=n(84465),g=n(18903);let u=(()=>{class t{constructor(t,e,n,o,i,r,s,a,c,l,d){this.http=t,this.storageService=e,this.modalController=n,this.modalCtrl=o,this.animationController=i,this.platform=r,this.router=s,this.toastService=a,this.zone=c,this.activeroute=l,this.jsonstore=d,this.adding="intervenient",this.DataArray=[],this.notificatinsRoutes=t=>{if("agenda"===t.Service)this.zone.run(()=>this.router.navigate(["/home/agenda",t.IdObject,"agenda"]));else if("gabinete-digital"===t.Service&&"expediente"===t.Object)this.zone.run(()=>this.router.navigate(["/home/gabinete-digital/expediente",t.IdObject,"gabinete-digital"]));else if("gabinete-digital"===t.Service&&"event-list"===t.Object)this.zone.run(()=>this.router.navigate(["/home/gabinete-digital/event-list/approve-event",t.IdObject,"gabinete-digital"]));else if("gabinete-digital"===t.Service&&"despachos"===t.Object)this.zone.run(()=>this.router.navigate(["/home/gabinete-digital/despachos",t.IdObject,"gabinete-digital"],{replaceUrl:!0}));else if("gabinete-digital"===t.Service&&"parecer"===t.Object)this.zone.run(()=>this.router.navigate(["/home/gabinete-digital/pedidos",t.IdObject,"gabinete-digital"]));else if("gabinete-digital"===t.Service&&"deferimento"===t.Object)this.zone.run(()=>this.router.navigate(["/home/gabinete-digital/pedidos",t.IdObject,"gabinete-digital"]));else if("gabinete-digital"===t.Service&&"despachos-pr"===t.Object){let e={queryParams:{serialNumber:t.IdObject}};this.zone.run(()=>this.router.navigate(["/home/gabinete-digital/despachos-pr/despacho-pr"],e))}else if("accoes"===t.Service&&"accao"===t.Object)this.zone.run(()=>this.router.navigate(["/home/publications",t.IdObject]));else if("accoes"===t.Service&&"publicacao"===t.Object)this.zone.run(()=>this.router.navigate(["/home/publications/view-publications",t.FolderId,t.IdObject]));else if("gabinete-digital"===t.Service&&"diplomas"===t.Object)this.zone.run(()=>this.router.navigate(["/home/gabinete-digital/diplomas",t.IdObject,"gabinete-digital"]));else if("gabinete-digital"===t.Service&&"diplomas-assinar"===t.Object){let e={queryParams:{serialNumber:t.IdObject}};this.zone.run(()=>this.router.navigate(["/home/gabinete-digital/diplomas-assinar/diploma-assinar"],e))}else"gabinete-digital"===t.Service&&"expedientes-pr"===t.Object&&this.zone.run(()=>this.router.navigate(["/home/gabinete-digital/expedientes-pr",t.IdObject,"gabinete-digital"]))}}getTokenByUserIdAndId(t,e){return this.http.get(i.N.apiURL+"notifications/user/"+e)}getAndpostToken(t){if(this.platform.is("desktop")||this.platform.is("mobileweb"))console.log("Notifications not supported");else{const e=i.N.apiURL+"notifications/token";window.WLAuthorizationManager&&window.WLAuthorizationManager.obtainAccessToken&&window.WLAuthorizationManager.obtainAccessToken("push.mobileclient").then(n=>{console.log("Push Notification: Success "+n),window.MFPPush.initialize(function(t){console.log("Push notification Successfully Service intialized: "+t)},function(t){console.log("Push notification failure Service intialized: "+t)}),window.MFPPush.registerDevice(null,n=>{console.log("Successfully registered: "+JSON.stringify(n)),console.log("token: ",n.deviceId),this.storageService.store(t,n.deviceId),this.storageService.get(t).then(t=>{console.log("STORAGE TOKEN",t),this.storageService.get(r.a.USER).then(t=>{console.log("USERID",t),this.http.post(`${e}`,{UserId:t.UserId,TokenId:n.deviceId,Status:1,Service:1},{headers:{Authorization:"Basic cGF1bG8ucGludG9AZ2FiaW5ldGVkaWdpdGFsLmxvY2FsOnRhYnRlc3RlQDAwNg=="}}).subscribe(t=>{console.log("TOKEN USER MIDLE",t)})})})},function(t){console.log("Successfully failue: "+JSON.stringify(t))})},t=>{console.log("Push notification recived: failure "+t.responseText),console.log(JSON.stringify(t))})}}getAndpostToken2(){this.platform.is("desktop")||this.platform.is("mobileweb")?console.log("Notifications not supported"):window.WLAuthorizationManager&&window.WLAuthorizationManager.obtainAccessToken&&window.WLAuthorizationManager.obtainAccessToken("push.mobileclient").then(t=>{console.log("Push Notification: Success "+t),window.MFPPush.initialize(function(t){console.log("Push notification Successfully Service intialized: "+t)},function(t){console.log("Push notification failure Service intialized: "+t)}),window.MFPPush.registerDevice(null,t=>{console.log("Successfully registered: "+JSON.stringify(t)),console.log("token: ",t.deviceId)},function(t){console.log("Successfully failue: "+JSON.stringify(t))})},t=>{console.log("Push notification recived: failure "+t.responseText),console.log(JSON.stringify(t))})}onReceviNotification(){return(0,o.mG)(this,void 0,void 0,function*(){window.WLAuthorizationManager&&window.WLAuthorizationManager.obtainAccessToken&&window.WLAuthorizationManager.obtainAccessToken("push.mobileclient").then(t=>{console.log("Push Notification: Success "+t),window.MFPPush.initialize(function(t){console.log("Push notification Successfully intialized: "+t),window.MFPPush.registerNotificationsCallback(e)},function(t){console.log("Push notification failure intialized: "+t)});var e=t=>{this.DataArray.push(t),this.storageService.store("Notifications",JSON.stringify(this.DataArray)),console.log(t);var e=JSON.parse(t.payload);console.log(e.Service),console.log(e.IdObject),console.log(e.Object),t.actionName?this.notificatinsRoutes(e):this.toastService.notificationMessage(t.alert,this.notificatinsRoutes,e)}},t=>{console.log("Push notification recived: failure "+t.responseText),console.log(JSON.stringify(t))})})}platformVerify(){this.platform.is("cordova")}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.eN),s.LFG(c.V),s.LFG(l.IN),s.LFG(l.Br),s.LFG(l.vB),s.LFG(l.t4),s.LFG(d.F0),s.LFG(p.k),s.LFG(s.R0b),s.LFG(d.gz),s.LFG(g.G))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},93556:function(t,e,n){"use strict";n.r(e),n.d(e,{EventListPageModule:function(){return p}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(30105),c=n(37716);const l=[{path:"",component:a.r}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d]]}),t})()},30105:function(t,e,n){"use strict";n.d(e,{r:function(){return C}});var o=n(64762),i=n(37716),r=n(39895),s=n(28621),a=n(35957),c=n(37556),l=n(3679),d=n(38583);function p(t,e){1&t&&i._UZ(0,"ion-progress-bar",13)}function g(t,e){if(1&t&&(i.TgZ(0,"p"),i._uU(1),i.ALo(2,"date"),i.ALo(3,"date"),i.qZA()),2&t){const t=i.oxw().$implicit;i.xp6(1),i.lnq("",i.xi3(2,3,t.workflowInstanceDataFields.StartDate,"d/M/yy")," - ",i.xi3(3,6,t.workflowInstanceDataFields.EndDate,"dd/M/yy")," | ",t.workflowInstanceDataFields.Location,"")}}function u(t,e){if(1&t&&(i.TgZ(0,"p"),i._uU(1),i.ALo(2,"date"),i.qZA()),2&t){const t=i.oxw().$implicit;i.xp6(1),i.AsE("",i.xi3(2,2,t.workflowInstanceDataFields.StartDate,"d/M/yy")," | ",t.workflowInstanceDataFields.Location,"")}}function f(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",18),i.NdJ("click",function(){const e=i.CHM(t).$implicit;return i.oxw(3).openApproveModal(e.serialNumber,e)}),i.TgZ(1,"div"),i.TgZ(2,"div",19),i.TgZ(3,"p"),i._uU(4),i.ALo(5,"date"),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.ALo(8,"date"),i.qZA(),i.qZA(),i.TgZ(9,"div",20),i.YNc(10,g,4,9,"p",21),i.YNc(11,u,3,5,"p",21),i.TgZ(12,"h3"),i._uU(13),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw(3);i.xp6(1),i.Gre("event-mdgpr-",t.workflowInstanceDataFields.Agenda," width-100"),i.xp6(3),i.Oqu(i.xi3(5,8,t.workflowInstanceDataFields.StartDate,"HH:mm")),i.xp6(3),i.Oqu(i.xi3(8,11,t.workflowInstanceDataFields.EndDate,"HH:mm")),i.xp6(3),i.Q6J("ngIf",n.toDateString(t.workflowInstanceDataFields.StartDate)!=n.toDateString(t.workflowInstanceDataFields.EndDate)),i.xp6(1),i.Q6J("ngIf",n.toDateString(t.workflowInstanceDataFields.StartDate)==n.toDateString(t.workflowInstanceDataFields.EndDate)),i.xp6(2),i.Oqu(t.workflowInstanceDataFields.Subject)}}function h(t,e){if(1&t&&(i.TgZ(0,"ion-list",16),i.YNc(1,f,14,14,"div",17),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngForOf",t.eventsMDGPRList)}}function m(t,e){if(1&t&&(i.TgZ(0,"p"),i._uU(1),i.ALo(2,"date"),i.ALo(3,"date"),i.qZA()),2&t){const t=i.oxw().$implicit;i.xp6(1),i.lnq("",i.xi3(2,3,t.workflowInstanceDataFields.StartDate,"d/M/yy")," - ",i.xi3(3,6,t.workflowInstanceDataFields.EndDate,"dd/M/yy")," | ",t.workflowInstanceDataFields.Location,"")}}function x(t,e){if(1&t&&(i.TgZ(0,"p"),i._uU(1),i.ALo(2,"date"),i.qZA()),2&t){const t=i.oxw().$implicit;i.xp6(1),i.AsE("",i.xi3(2,2,t.workflowInstanceDataFields.StartDate,"d/M/yy")," | ",t.workflowInstanceDataFields.Location,"")}}function v(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",18),i.NdJ("click",function(){const e=i.CHM(t).$implicit;return i.oxw(4).openApproveModal(e.serialNumber,e)}),i.TgZ(1,"div"),i.TgZ(2,"div",19),i.TgZ(3,"p"),i._uU(4),i.ALo(5,"date"),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.ALo(8,"date"),i.qZA(),i.qZA(),i.TgZ(9,"div",20),i.YNc(10,m,4,9,"p",21),i.YNc(11,x,3,5,"p",21),i.TgZ(12,"h3"),i._uU(13),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw(4);i.xp6(1),i.Gre("event-pr-",t.workflowInstanceDataFields.Agenda," width-100"),i.xp6(3),i.Oqu(i.xi3(5,8,t.workflowInstanceDataFields.StartDate,"HH:mm")),i.xp6(3),i.Oqu(i.xi3(8,11,t.workflowInstanceDataFields.EndDate,"HH:mm")),i.xp6(3),i.Q6J("ngIf",n.toDateString(t.workflowInstanceDataFields.StartDate)!=n.toDateString(t.workflowInstanceDataFields.EndDate)),i.xp6(1),i.Q6J("ngIf",n.toDateString(t.workflowInstanceDataFields.StartDate)==n.toDateString(t.workflowInstanceDataFields.EndDate)),i.xp6(2),i.Oqu(t.workflowInstanceDataFields.Subject)}}function _(t,e){if(1&t&&(i.TgZ(0,"div",16),i.YNc(1,v,14,14,"div",17),i.qZA()),2&t){const t=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",t.eventsPRList)}}function P(t,e){if(1&t&&(i.TgZ(0,"ion-list",16),i.YNc(1,_,2,1,"div",22),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngIf",t.eventsPRList)}}function M(t,e){if(1&t&&(i.TgZ(0,"div",14),i.YNc(1,h,2,1,"ion-list",15),i.YNc(2,P,2,1,"ion-list",15),i.qZA()),2&t){const t=i.oxw();i.Q6J("ngSwitch",t.segment),i.xp6(1),i.Q6J("ngSwitchCase","MDGPR"),i.xp6(1),i.Q6J("ngSwitchCase","PR")}}let C=(()=>{class t{constructor(t,e,n,o){this.processes=t,this.modalController=e,this.router=n,this.userAuth=o,this.eventsPRList=[],this.eventsMDGPRList=[],this.cloneAllmobileComponent=new i.vpe,this.approveEventDismiss=new i.vpe,this.loggeduser=o.ValidatedUser}ngOnInit(){this.segment=this.loggeduser.Profile;const t=window.location.pathname;this.router.events.forEach(e=>{e instanceof r.m2&&e.url==t&&this.LoadToApproveEvents()})}ngOnChanges(){this.LoadToApproveEvents()}segmentChanged(t){this.LoadToApproveEvents()}toDateString(t){return new Date(t).toDateString()}LoadToApproveEvents(){return(0,o.mG)(this,void 0,void 0,function*(){if(this.showLoader=!0,console.log(this.segment),"MDGPR"==this.segment){let t=yield this.processes.GetTasksList("Agenda Oficial MDGPR",!1).toPromise(),e=yield this.processes.GetTasksList("Agenda Pessoal MDGPR",!1).toPromise();this.eventsMDGPRList=t.concat(e)}else if("PR"==this.segment){let t=yield this.processes.GetTasksList("Agenda Oficial PR",!1).toPromise(),e=yield this.processes.GetTasksList("Agenda Pessoal PR",!1).toPromise();this.eventsPRList=t.concat(e)}this.showLoader=!1})}openApproveModal(t,e){return(0,o.mG)(this,void 0,void 0,function*(){this.eventsMDGPRList.filter(e=>(console.log(t," ",e.serialNumber),t==e.serialNumber)),this.approveEventDismiss.emit({serialNumber:t,action:"Aprovar",saveData:e})})}doRefresh(t){this.LoadToApproveEvents(),console.log("refresh"),setTimeout(()=>{t.target.complete()},2e3)}close(){console.log("close"),this.cloneAllmobileComponent.emit()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(s.$),i.Y36(a.IN),i.Y36(r.F0),i.Y36(c.e))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-event-list"]],inputs:{profile:"profile",showComponent:"showComponent"},outputs:{cloneAllmobileComponent:"cloneAllmobileComponent",approveEventDismiss:"approveEventDismiss"},features:[i.TTD],decls:19,vars:3,consts:[[1,"ion-no-border"],[1,"header-content"],[1,"header-title","d-flex","align-center","justify-between","width-100"],[1,"flex-grow-1"],[3,"click"],[1,"btn-no-color"],["slot","end","name","reload-circle",1,"title-icon"],[3,"ngModel","ngModelChange","ionChange"],["value","MDGPR"],["value","PR"],["name","refresher","slot","fixed",3,"ionRefresh"],["type","indeterminate",4,"ngIf"],["class","main-content overflow-y-auto height-100",3,"ngSwitch",4,"ngIf"],["type","indeterminate"],[1,"main-content","overflow-y-auto","height-100",3,"ngSwitch"],["class","width-100",4,"ngSwitchCase"],[1,"width-100"],["class","item ion-no-padding width-100 cursor-pointer",3,"click",4,"ngFor","ngForOf"],[1,"item","ion-no-padding","width-100","cursor-pointer",3,"click"],[1,"approve-event-time"],[1,"approve-event-detail"],[4,"ngIf"],["class","width-100",4,"ngIf"]],template:function(t,e){1&t&&(i.TgZ(0,"ion-header",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"div",3),i._uU(4,"Eventos para Aprova\xe7\xe3o"),i.qZA(),i.TgZ(5,"div",4),i.NdJ("click",function(){return e.ngOnChanges()}),i.TgZ(6,"button",5),i._UZ(7,"ion-icon",6),i.qZA(),i.qZA(),i.qZA(),i.TgZ(8,"ion-toolbar"),i.TgZ(9,"ion-segment",7),i.NdJ("ngModelChange",function(t){return e.segment=t})("ionChange",function(t){return e.segmentChanged(t)}),i.TgZ(10,"ion-segment-button",8),i._uU(11," Meu calend\xe1rio "),i.qZA(),i.TgZ(12,"ion-segment-button",9),i._uU(13," Presidente da Rep\xfablica "),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(14,"ion-content"),i.TgZ(15,"ion-refresher",10),i.NdJ("ionRefresh",function(t){return e.doRefresh(t)}),i.YNc(16,p,1,0,"ion-progress-bar",11),i._UZ(17,"ion-refresher-content"),i.qZA(),i.YNc(18,M,3,3,"div",12),i.qZA()),2&t&&(i.xp6(9),i.Q6J("ngModel",e.segment),i.xp6(7),i.Q6J("ngIf",e.showLoader),i.xp6(2),i.Q6J("ngIf",e.eventsMDGPRList))},directives:[a.Gu,a.gu,a.sr,a.cJ,a.QI,l.JJ,l.On,a.GO,a.W2,a.nJ,d.O5,a.Wo,a.X7,d.RF,d.n9,a.q_,d.sg],pipes:[d.uU],styles:["[_nghost-%COMP%]{padding:30px 20px 0!important;margin:0}.header-content[_ngcontent-%COMP%]{overflow:auto;margin:0 auto}.header-icon-left[_ngcontent-%COMP%]{font-size:33px;color:#42b9fe;float:left}.header-title[_ngcontent-%COMP%]{font-family:Roboto;font-size:25px;padding:0;color:#000;float:left}.main-content[_ngcontent-%COMP%]{margin-top:20px}.main-content[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{--inner-padding-end:0!important;--inner-padding-top:10px;--inner-padding-bottom:10px;border-radius:15px;box-shadow:0 0 10px 0 rgba(0,0,0,.07);border:1px solid #e9e9e9!important;background-color:var(--white);margin-bottom:10px!important;padding:15px}.main-content[_ngcontent-%COMP%] .event-pr-Oficial[_ngcontent-%COMP%]{background-color:var(--white);border-radius:5px;border-right:5px solid #99e47b;overflow:auto}.main-content[_ngcontent-%COMP%] .event-pr-Pessoal[_ngcontent-%COMP%]{background-color:var(--white);border-radius:5px;border-right:5px solid #958bfc;overflow:auto}.main-content[_ngcontent-%COMP%] .event-mdgpr-Oficial[_ngcontent-%COMP%]{border-radius:5px;border-right:5px solid #ffb703;overflow:auto}.main-content[_ngcontent-%COMP%] .event-mdgpr-Pessoal[_ngcontent-%COMP%]{border-radius:5px;border-right:5px solid #f05d5e;overflow:auto}.main-content[_ngcontent-%COMP%] .approve-event-time[_ngcontent-%COMP%]{float:left}.main-content[_ngcontent-%COMP%] .approve-event-time[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:33px;font-family:Roboto;font-size:13px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:var(--Antartic-grey);margin:0;padding-bottom:10px}.main-content[_ngcontent-%COMP%] .approve-event-detail[_ngcontent-%COMP%]{float:left;margin-left:10px}.main-content[_ngcontent-%COMP%] .approve-event-detail[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:13px;font-weight:400;color:var(--black);padding-bottom:10px}.main-content[_ngcontent-%COMP%] .approve-event-detail[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .main-content[_ngcontent-%COMP%] .approve-event-detail[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-family:Roboto;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;margin:0}.main-content[_ngcontent-%COMP%] .approve-event-detail[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{width:250px;font-size:15px;font-weight:700;color:#0d89d1;padding:0}"]}),t})()},4502:function(t,e,n){"use strict";n.d(e,{F:function(){return p}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(23890),c=n(37716);const l=[{path:"",component:a.E}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d]]}),t})()},6136:function(t,e,n){"use strict";n.d(e,{I:function(){return p}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(41849),c=n(37716);const l=[{path:"",component:a.m}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d]]}),t})()},65390:function(t,e,n){"use strict";n.r(e),n.d(e,{EditGroupPageModule:function(){return g}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(61552),c=n(37716);const l=[{path:"",component:a.h}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})();var p=n(6136);let g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d,p.I]]}),t})()},61552:function(t,e,n){"use strict";n.d(e,{h:function(){return f}});var o=n(64762),i=n(37716),r=n(35957),s=n(9014),a=n(37556),c=n(38583),l=n(3679),d=n(41849);function p(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"app-btn-seguinte",16),i.NdJ("click",function(){return i.CHM(t),i.oxw().changeGroupName()}),i.qZA()}}function g(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",17),i.TgZ(1,"ion-checkbox",18),i.NdJ("ionChange",function(e){return i.CHM(t),i.oxw()._ionChange(e)}),i.qZA(),i.TgZ(2,"ion-label"),i._uU(3,"Grupo Ultra-secreto"),i.qZA(),i.qZA()}}function u(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",19),i.TgZ(1,"div",20),i.TgZ(2,"div",21),i._UZ(3,"ion-icon",22),i.qZA(),i.TgZ(4,"div",23),i.TgZ(5,"ion-input",24),i.NdJ("click",function(){return i.CHM(t),i.oxw().showPicker()})("ngModelChange",function(e){return i.CHM(t),i.oxw().displayDuration=e}),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(5),i.Q6J("ngModel",t.displayDuration)}}let f=(()=>{class t{constructor(t,e,n,o){this.modalController=t,this.pickerController=e,this.chatService=n,this.authService=o,this.selectedDuration=["","",""],this.openGroupContacts=new i.vpe,this.openGroupMessage=new i.vpe,this.closeAllDesktopComponents=new i.vpe,this.loggedUser=o.ValidatedUserChat.data}ngOnInit(){this.getRoomInfo()}getRoomInfo(){this.chatService.getRoomInfo(this.roomId).subscribe(t=>{this.room=t.room,console.log(this.room),this.groupName=this.room.name.split("-").join(" ")})}close(){this.closeAllDesktopComponents.emit(),this.openGroupMessage.emit(this.roomId)}changeGroupName(){if(this.groupName.trim().length>1){let t=this.groupName.split(" ").join("-");this.chatService.renameGroup({roomId:this.room._id,name:t}).subscribe(t=>{this.modalController.dismiss(t.group)})}else console.log("Invalid name!");this.close()}_ionChange(t){this.showDuration=t.detail.checked}showPicker(){return(0,o.mG)(this,void 0,void 0,function*(){const t=yield this.pickerController.create({cssClass:"",buttons:[{text:"Cancelar",role:"cancel",cssClass:"btn-cancel"},{text:"Ok",cssClass:"btn-cancel",handler:t=>{console.log("button done pressed"),this.selectedDuration=[t.days.value,t.hours.value,t.minutes.value],console.log(this.selectedDuration),null!=t.days.value&&null!=t.hours.value&&null!=t.minutes.value&&(this.displayDuration=t.days.value>0?1==t.days.value?1==t.hours.value?t.days.value+" day "+t.hours.value+" hora "+t.minutes.value+" minutos":t.days.value+" days "+t.hours.value+" horas "+t.minutes.value+" minutos":1==t.hours.value?t.days.value+" days "+t.hours.value+" hora "+t.minutes.value+" minutos":t.days.value+" days "+t.hours.value+" horas "+t.minutes.value+" minutos":1==t.hours.value?t.hours.value+" hora "+t.minutes.value+" minutos":t.hours.value+" horas "+t.minutes.value+" minutos")}}],columns:[{name:"days",prefix:"Dias",options:[{text:"0",value:0},{text:"1",value:1},{text:"2",value:2},{text:"3",value:3},{text:"4",value:4}]},{name:"hours",prefix:"Horas",options:[{text:"0",value:0},{text:"1",value:1},{text:"2",value:2},{text:"3",value:3},{text:"4",value:4},{text:"5",value:5},{text:"6",value:6},{text:"7",value:7},{text:"8",value:8}]},{name:"minutes",prefix:"Minutos",selectedIndex:3,options:[{text:"0",value:0},{text:"5",value:5},{text:"10",value:10},{text:"15",value:15},{text:"20",value:20},{text:"25",value:25},{text:"30",value:30},{text:"35",value:35},{text:"45",value:45},{text:"50",value:50},{text:"55",value:55}]}]});yield t.present(),t.onDidDismiss().then(e=>(0,o.mG)(this,void 0,void 0,function*(){yield t.getColumn("days"),yield t.getColumn("hours"),yield t.getColumn("minutes")}))})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.IN),i.Y36(r.up),i.Y36(s.a),i.Y36(a.e))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-edit-group"]],inputs:{roomId:"roomId"},outputs:{openGroupContacts:"openGroupContacts",openGroupMessage:"openGroupMessage",closeAllDesktopComponents:"closeAllDesktopComponents"},decls:17,vars:4,consts:[[1,"ion-no-border"],[1,"header-toolbar"],[1,"main-header"],[1,"title-content"],[1,"left"],[1,"btn-no-color",3,"click"],["slot","end","src","assets/images/icons-arrow-arrow-left.svg"],[1,"middle"],[1,"title"],[3,"click",4,"ngIf"],[1,"width-100"],[1,"main-content","d-flex","width-100"],[1,"item-container","d-flex","flex-column","width-100"],["placeholder","T\xedtulo",3,"ngModel","ngModelChange"],["class","item-container-no-border",4,"ngIf"],["class","container-div width-100",4,"ngIf"],[3,"click"],[1,"item-container-no-border"],["color","primary",3,"ionChange"],[1,"container-div","width-100"],[1,"ion-item-class-2","width-100"],[1,"ion-icon-class"],["slot","start","src","assets/images/icons-duration.svg"],[1,"ion-input-class"],["placeholder","Dura\xe7\xe3o",3,"ngModel","click","ngModelChange"]],template:function(t,e){1&t&&(i.TgZ(0,"ion-header",0),i.TgZ(1,"ion-toolbar",1),i.TgZ(2,"div",2),i.TgZ(3,"div",3),i.TgZ(4,"div",4),i.TgZ(5,"button",5),i.NdJ("click",function(){return e.close()}),i._UZ(6,"ion-icon",6),i.qZA(),i.qZA(),i.TgZ(7,"div",7),i.TgZ(8,"ion-label",8),i._uU(9,"Alterar assunto"),i.qZA(),i.qZA(),i.YNc(10,p,1,0,"app-btn-seguinte",9),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(11,"ion-content",10),i.TgZ(12,"div",11),i.TgZ(13,"div",12),i.TgZ(14,"ion-input",13),i.NdJ("ngModelChange",function(t){return e.groupName=t}),i.qZA(),i.qZA(),i.YNc(15,g,4,0,"div",14),i.YNc(16,u,6,1,"div",15),i.qZA(),i.qZA()),2&t&&(i.xp6(10),i.Q6J("ngIf",e.groupName),i.xp6(4),i.Q6J("ngModel",e.groupName),i.xp6(1),i.Q6J("ngIf",!1),i.xp6(1),i.Q6J("ngIf",e.showDuration))},directives:[r.Gu,r.sr,r.gu,r.Q$,c.O5,r.W2,r.pK,r.j9,l.JJ,l.On,d.m,r.nz,r.w],styles:[".header-toolbar[_ngcontent-%COMP%], ion-content[_ngcontent-%COMP%]{--background:transparent}.header-toolbar[_ngcontent-%COMP%]{--opacity:1}.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}.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:30px 20px 0;color:#000;transform:translate3d(0,1px,0)}.main-header[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%]{margin:0 auto;overflow:auto;padding:0!important;background:#fff}.main-header[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:37px;float:left;font-size:35px;overflow:auto}.main-header[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%] .middle[_ngcontent-%COMP%]{padding:0!important;float:left;width:221px;margin:2.5px 0 0 5px}.main-header[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{padding:0!important;float:right;font-size:15px;color:#0782c9;margin:8px 0 0 5px}.main-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:25px}.main-header[_ngcontent-%COMP%] .div-icon[_ngcontent-%COMP%]{width:40px;float:right;font-size:35px;overflow:auto;padding:1px}.main-header[_ngcontent-%COMP%] .div-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{float:right;padding-left:20px}.main-content[_ngcontent-%COMP%]{font-family:Roboto;margin:0 auto;background-color:#fff;overflow:auto;padding:15px 20px 0}.main-content[_ngcontent-%COMP%] .item-container[_ngcontent-%COMP%]{margin:15px auto;border:1px solid #ebebeb;border-radius:5px;padding-left:10px}.main-content[_ngcontent-%COMP%] .item-container-no-border[_ngcontent-%COMP%]{display:flex;margin:25px auto;border-radius:5px;align-items:center}.main-content[_ngcontent-%COMP%] .item-container-no-border[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{padding-left:10px;font-size:12px;color:#000}.container-div[_ngcontent-%COMP%]{margin-bottom:15px;overflow:auto}.container-div[_ngcontent-%COMP%] .ion-item-class-2[_ngcontent-%COMP%]{margin:0 auto}.container-div[_ngcontent-%COMP%] .ion-item-class-2[_ngcontent-%COMP%] .ion-icon-class[_ngcontent-%COMP%]{width:45px;height:45px;float:left;padding:10px;font-size:25px}.container-div[_ngcontent-%COMP%] .ion-input-class[_ngcontent-%COMP%]{width:calc(100% - 45px);height:45px;border:1px solid #ebebeb;border-radius:5px;padding-left:5px;padding-right:10px;float:left}"]}),t})()},54945:function(t,e,n){"use strict";n.r(e),n.d(e,{EmptyChatPageModule:function(){return p}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(14800),c=n(37716);const l=[{path:"",component:a.Q}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d]]}),t})()},14800:function(t,e,n){"use strict";n.d(e,{Q:function(){return r}});var o=n(37716),i=n(35957);let r=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-empty-chat"]],inputs:{texto:"texto"},decls:4,vars:1,consts:[[1,"center","height-100"]],template:function(t,e){1&t&&(o.TgZ(0,"ion-content"),o.TgZ(1,"div",0),o.TgZ(2,"p"),o._uU(3),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.xp6(3),o.Oqu(e.texto))},directives:[i.W2],styles:[".center[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}"]}),t})()},88052:function(t,e,n){"use strict";n.r(e),n.d(e,{GroupContactsPageModule:function(){return g}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(19606),c=n(37716);const l=[{path:"",component:a.o}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})();var p=n(35503);let g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d,p.D]]}),t})()},66089:function(t,e,n){"use strict";n.r(e),n.d(e,{EmptyContainerPageModule:function(){return p}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(1491),c=n(37716);const l=[{path:"",component:a.M}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d]]}),t})()},2142:function(t,e,n){"use strict";n.r(e),n.d(e,{AttendeeModalPageModule:function(){return p}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(17352),c=n(37716);const l=[{path:"",component:a.Y}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d]]}),t})()},88124:function(t,e,n){"use strict";n.r(e),n.d(e,{DespachosPageModule:function(){return g}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(45326),c=n(37716);const l=[{path:"",component:a.I}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})();var p=n(84747);let g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d,p.TaskListPageModule]]}),t})()},45326:function(t,e,n){"use strict";n.d(e,{I:function(){return p}});var o=n(64762),i=n(37716),r=n(39895),s=n(30883),a=n(17690),c=n(28621),l=n(35957),d=n(95526);let p=(()=>{class t{constructor(t,e){this.processes=t,this.router=e,this.openExpedientDetail=new i.vpe,this.skeletonLoader=!0,this.despachoStore=s.G,this.customTaskPipe=new a.g}ngOnInit(){this.LoadList(),this.router.events.forEach(t=>{t instanceof r.OD&&t.url.startsWith("/home/gabinete-digital?despachos=true")&&(window.location.pathname.split("/").length>=4&&window.location.pathname.startsWith("/home/gabinete-digital")?this.doRefresh():this.LoadList())})}goToDespacho({SerialNumber:t}){this.router.navigate(["/home/gabinete-digital/despachos",t,"gabinete-digital"])}LoadList(){return(0,o.mG)(this,void 0,void 0,function*(){this.skeletonLoader=!0;let t=yield this.processes.GetTasksList("Despacho",!1).toPromise();t=t.filter(t=>"Active"==t.workflowInstanceDataFields.Status);let e=new Array;t.forEach((t,n)=>{let o=this.customTaskPipe.transform(t);e.push(o)}),e=this.sortArrayISODate(e).reverse(),this.despachoStore.reset(e),this.skeletonLoader=!1})}sortArrayISODate(t){return t.sort(function(t,e){return t.CreateDate<e.CreateDate?-1:t.CreateDate>e.CreateDate?1:0})}doRefresh(){setTimeout(()=>{this.LoadList()},1e3)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(c.$),i.Y36(r.F0))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-despachos"]],outputs:{openExpedientDetail:"openExpedientDetail"},decls:12,vars:2,consts:[[1,"ion-no-border"],[1,"title"],[1,"thetitle"],[1,"theicon"],[1,"btn-no-color",3,"click"],["slot","end","name","reload-circle",1,"title-icon"],["name","refresher","slot","fixed",3,"ionRefresh"],["pullingIcon","chevron-down-circle-outline","pullingText","deslize para actualizar","refreshingSpinner","circles","refreshingText","A actualizar..."],[3,"taskList","skeletonLoader","viewTaskDetail"]],template:function(t,e){1&t&&(i.TgZ(0,"ion-header",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"ion-label"),i._uU(4,"Despachos"),i.qZA(),i.qZA(),i.TgZ(5,"div",3),i.TgZ(6,"button",4),i.NdJ("click",function(){return e.doRefresh()}),i._UZ(7,"ion-icon",5),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(8,"ion-content"),i.TgZ(9,"ion-refresher",6),i.NdJ("ionRefresh",function(){return e.doRefresh()}),i._UZ(10,"ion-refresher-content",7),i.qZA(),i.TgZ(11,"app-task-list",8),i.NdJ("viewTaskDetail",function(t){return e.goToDespacho(t)}),i.qZA(),i.qZA()),2&t&&(i.xp6(11),i.Q6J("taskList",e.despachoStore.list)("skeletonLoader",e.skeletonLoader))},directives:[l.Gu,l.Q$,l.gu,l.W2,l.nJ,l.Wo,d.V],styles:["ion-header[_ngcontent-%COMP%]{padding:30px 20px 0!important;margin:0}.title[_ngcontent-%COMP%]{font-family:Roboto;font-size:25px;color:#000;overflow:auto}.title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{float:left}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%], .title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%]{float:right}.item-list-small[_ngcontent-%COMP%]{font-size:11px;overflow:hidden}.ion-item-class[_ngcontent-%COMP%]{padding:0}.label-text[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}ion-item[_ngcontent-%COMP%]{--background:none}.item[_ngcontent-%COMP%]{background-color:var(--white);margin:0 auto;overflow:hidden}.div-content-expediente[_ngcontent-%COMP%]{width:100%;float:left;border-left:3px solid #dae3f3;padding:5px 5px 15px;margin:10px 0;background:#dae3f3;border-radius:20px}.div-content-pendentes[_ngcontent-%COMP%]{width:100%;float:left;border-left:3px solid #d9d9d9;padding:5px}.div-content-expediente[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .div-content-pendentes[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;font-size:14pt;width:100%}.div-icon[_ngcontent-%COMP%]{width:10%;font-size:20px;float:left;color:grey}.div-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{display:block;margin:0 auto}.div-content-expediente[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .div-content-pendentes[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14pt;color:#5e5c5c;padding:0;margin:0}.span-left[_ngcontent-%COMP%]{float:left;font-size:12px;padding-left:18px}.span-right[_ngcontent-%COMP%]{text-align:right;float:right;font-size:12px;padding-right:18px}.expediente[_ngcontent-%COMP%]{border-radius:15px;box-shadow:0 0 10px 0 rgba(0,0,0,.07);border:1px solid #e9e9e9!important;background-color:var(--white);margin-bottom:10px!important;padding:15px}.exp-list-item[_ngcontent-%COMP%]{overflow:auto;margin:10px auto}.exp-top-detail[_ngcontent-%COMP%]{width:100%;float:left;font-family:Roboto;font-size:12pt;font-weight:700;color:#0d89d1;padding-left:3px}.exp-top-detail[_ngcontent-%COMP%] .subject[_ngcontent-%COMP%]{width:84%;float:left}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;float:right;margin:0!important;padding:0!important}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:12pt;color:#42b9fe;float:left}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:10pt}.exp-bottom-detail[_ngcontent-%COMP%], .exp-middle-detail[_ngcontent-%COMP%]{margin-bottom:5px}.exp-middle-detail[_ngcontent-%COMP%]{font-size:12pt;width:100%;overflow:auto}.exp-middle-detail[_ngcontent-%COMP%] .exp-workflow[_ngcontent-%COMP%]{float:left;margin:0!important}.exp-middle-detail[_ngcontent-%COMP%] .exp-workflow[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:15px;background:#ffb703;float:right;padding:2.5px 13.5px;color:#fff}.exp-middle-detail[_ngcontent-%COMP%] .exp-date[_ngcontent-%COMP%]{width:auto;font-family:Roboto;font-size:10pt;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#797979;float:right}.exp-bottom-detail[_ngcontent-%COMP%]{font-size:8pt;width:100%;overflow:auto;padding-left:3px}.exp-bottom-detail[_ngcontent-%COMP%] .exp-remetente[_ngcontent-%COMP%]{font-family:Roboto;font-weight:400;color:#000;float:left}.div-top-header[_ngcontent-%COMP%]{width:400px;margin:6px auto;background-color:#0782c9;overflow:auto}.div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-logo[_ngcontent-%COMP%]{background:transparent;width:150px;margin:2.5px 0 2.5px 71px;float:left}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}"]}),t})()},65088:function(t,e,n){"use strict";n.r(e),n.d(e,{DiplomasAssinarPageModule:function(){return p}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(18846),c=n(37716);const l=[{path:"",component:a.p}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d]]}),t})()},18846:function(t,e,n){"use strict";n.d(e,{p:function(){return v}});var o=n(64762),i=n(39895),r=n(75235),s=n(17690),a=n(37716),c=n(28621),l=n(35957),d=n(25970),p=n(38583);function g(t,e){1&t&&a._UZ(0,"ion-progress-bar",14)}function u(t,e){if(1&t&&(a.TgZ(0,"label"),a._uU(1),a.qZA()),2&t){const t=a.oxw().$implicit;a.xp6(1),a.Oqu(t.DocumentsQty)}}function f(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",16),a.NdJ("click",function(){const e=a.CHM(t).$implicit;return a.oxw(2).goToDiploma(e.SerialNumber)}),a.TgZ(1,"div",17),a.TgZ(2,"div",18),a.TgZ(3,"div",19),a.TgZ(4,"ion-label"),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"div",20),a._UZ(7,"ion-icon",21),a.YNc(8,u,2,1,"label",12),a.qZA(),a.qZA(),a.TgZ(9,"div",22),a.TgZ(10,"div",23),a.TgZ(11,"ion-label"),a._uU(12),a.qZA(),a.qZA(),a.qZA(),a.TgZ(13,"div",24),a.TgZ(14,"div",25),a.TgZ(15,"span",26),a._uU(16),a.qZA(),a.qZA(),a.TgZ(17,"div",27),a.TgZ(18,"ion-label"),a._uU(19),a.ALo(20,"date"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit;a.xp6(5),a.Oqu(t.Folio),a.xp6(3),a.Q6J("ngIf",0!=t.DocumentsQty),a.xp6(4),a.Oqu(t.Senders),a.xp6(4),a.Oqu(t.activityInstanceName),a.xp6(3),a.Oqu(a.xi3(20,5,t.CreateDate,"dd-MM-yyyy HH:mm"))}}function h(t,e){if(1&t&&(a.TgZ(0,"div"),a.TgZ(1,"ion-list"),a.YNc(2,f,21,8,"div",15),a.qZA(),a.qZA()),2&t){const t=a.oxw();a.xp6(2),a.Q6J("ngForOf",t.diplomasList)}}function m(t,e){1&t&&(a.TgZ(0,"div",28),a.TgZ(1,"span"),a._uU(2,"Lista vazia"),a.qZA(),a.qZA())}function x(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"ion-list"),a.TgZ(2,"ion-item"),a.TgZ(3,"ion-thumbnail",29),a._UZ(4,"ion-skeleton-text",30),a.qZA(),a.TgZ(5,"ion-label"),a.TgZ(6,"h3"),a._UZ(7,"ion-skeleton-text",31),a.qZA(),a.TgZ(8,"p"),a._UZ(9,"ion-skeleton-text",32),a.qZA(),a.TgZ(10,"p"),a._UZ(11,"ion-skeleton-text",33),a.qZA(),a.qZA(),a.qZA(),a.TgZ(12,"ion-item"),a.TgZ(13,"ion-thumbnail",29),a._UZ(14,"ion-skeleton-text",30),a.qZA(),a.TgZ(15,"ion-label"),a.TgZ(16,"h3"),a._UZ(17,"ion-skeleton-text",31),a.qZA(),a.TgZ(18,"p"),a._UZ(19,"ion-skeleton-text",32),a.qZA(),a.TgZ(20,"p"),a._UZ(21,"ion-skeleton-text",33),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA())}let v=(()=>{class t{constructor(t,e,n,o){this.processes=t,this.modalController=e,this.alertService=n,this.router=o,this.diplomasList=[],this.skeletonLoader=!0,this.deplomasStore=r.S,this.customTaskPipe=new s.g}ngOnInit(){this.LoadList(),this.router.events.forEach(t=>{t instanceof i.OD&&"/home/gabinete-digital?diplomasassinar=true".startsWith(t.url)&&(window.location.pathname.split("/").length>=4&&window.location.pathname.startsWith("/home/gabinete-digital")?this.doRefresh():this.LoadList())})}goToDiploma(t){this.router.navigate(["/home/gabinete-digital/diplomas-assinar",t,"gabinete-digital"])}doRefresh(){setTimeout(()=>{this.LoadList()},1e3)}LoadList(){return(0,o.mG)(this,void 0,void 0,function*(){this.skeletonLoader=!0;let t=yield this.processes.GetTasksList("Despacho do Presidente da Rep\xfablica",!1).toPromise();this.diplomasList=new Array,this.skeletonLoader=!1,console.log(t);let e=t.reverse().filter(t=>"Assinar Diploma"==t.activityInstanceName);console.log(e),e.forEach(t=>{let e=this.customTaskPipe.transform(t);this.diplomasList.push(e),this.deplomasStore.resetDiplomasList(this.diplomasList)})})}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(c.$),a.Y36(l.IN),a.Y36(d.c),a.Y36(i.F0))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-diplomas-assinar"]],decls:19,vars:4,consts:[[1,"ion-no-border"],[1,"title"],[1,"thetitle"],[1,"theicon"],[1,"btn-no-color",3,"click"],["slot","end","name","reload-circle",1,"title-icon"],[1,"bottom-title","d-flex"],[1,"bottom-text"],["name","refresher","slot","fixed",3,"ionRefresh"],["pullingIcon","chevron-down-circle-outline","pullingText","deslize para actualizar","refreshingSpinner","circles","refreshingText","A actualizar..."],[1,"width-100","overflow-y-auto","height-100"],["type","indeterminate",4,"ngIf"],[4,"ngIf"],["class","empty-list d-flex height-100 align-center justify-content-center",4,"ngIf"],["type","indeterminate"],["class","expediente ion-no-padding ion-no-margin cursor-pointer",3,"click",4,"ngFor","ngForOf"],[1,"expediente","ion-no-padding","ion-no-margin","cursor-pointer",3,"click"],[1,"item","width-100"],[1,"exp-top-detail"],[1,"subject"],[1,"exp-icon"],["src","assets/images/icons-expediente-attachment.svg"],[1,"exp-bottom-detail"],[1,"exp-remetente"],[1,"exp-middle-detail"],[1,"exp-workflow"],[1,"label"],[1,"exp-date"],[1,"empty-list","d-flex","height-100","align-center","justify-content-center"],["slot","end"],["animated",""],["animated","",2,"width","50%"],["animated","",2,"width","80%"],["animated","",2,"width","60%"]],template:function(t,e){1&t&&(a.TgZ(0,"ion-header",0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a.TgZ(3,"ion-label"),a._uU(4,"Diplomas"),a.qZA(),a.qZA(),a.TgZ(5,"div",3),a.TgZ(6,"button",4),a.NdJ("click",function(){return e.doRefresh()}),a._UZ(7,"ion-icon",5),a.qZA(),a.qZA(),a.TgZ(8,"div",6),a.TgZ(9,"h3",7),a._uU(10,"Diplomas para Assinar"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(11,"ion-content"),a.TgZ(12,"ion-refresher",8),a.NdJ("ionRefresh",function(){return e.doRefresh()}),a._UZ(13,"ion-refresher-content",9),a.qZA(),a.TgZ(14,"div",10),a.YNc(15,g,1,0,"ion-progress-bar",11),a.YNc(16,h,3,1,"div",12),a.YNc(17,m,3,0,"div",13),a.YNc(18,x,22,0,"div",12),a.qZA(),a.qZA()),2&t&&(a.xp6(15),a.Q6J("ngIf",e.skeletonLoader),a.xp6(1),a.Q6J("ngIf",e.diplomasList.length>=1),a.xp6(1),a.Q6J("ngIf",!e.skeletonLoader&&0==e.diplomasList.length),a.xp6(1),a.Q6J("ngIf",e.skeletonLoader&&0==e.diplomasList.length))},directives:[l.Gu,l.Q$,l.gu,l.W2,l.nJ,l.Wo,p.O5,l.X7,l.q_,p.sg,l.Ie,l.Bs,l.CK],pipes:[p.uU],styles:["[_nghost-%COMP%]{padding:30px 20px 0!important;margin:0}.title[_ngcontent-%COMP%]{font-family:Roboto;font-size:25px;color:#000;overflow:auto}.title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{float:left}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%], .title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%]{float:right}.bottom-title[_ngcontent-%COMP%]{width:calc(100% - 40px);margin-left:20px!important;margin-right:20px!important;margin:0 auto;align-items:center;justify-content:center;border-bottom:5px solid #42b9fe}.bottom-title[_ngcontent-%COMP%] .bottom-text[_ngcontent-%COMP%]{font-size:15px!important;font-family:Roboto!important;color:#0d89d1!important}.item-list-small[_ngcontent-%COMP%]{font-size:11px;overflow:hidden}.ion-item-class[_ngcontent-%COMP%]{padding:0}.label-text[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}ion-item[_ngcontent-%COMP%]{--background:none}.item[_ngcontent-%COMP%]{background-color:var(--white);margin:0 auto;overflow:hidden}.div-content-expediente[_ngcontent-%COMP%]{width:100%;float:left;border-left:3px solid #dae3f3;padding:5px 5px 15px;margin:10px 0;background:#dae3f3;border-radius:20px}.div-content-pendentes[_ngcontent-%COMP%]{width:100%;float:left;border-left:3px solid #d9d9d9;padding:5px}.div-content-expediente[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .div-content-pendentes[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;font-size:14pt;width:100%}.div-icon[_ngcontent-%COMP%]{width:10%;font-size:20px;float:left;color:grey}.div-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{display:block;margin:0 auto}.div-content-expediente[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .div-content-pendentes[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14pt;color:#5e5c5c;padding:0;margin:0}.span-left[_ngcontent-%COMP%]{float:left;font-size:12px;padding-left:18px}.span-right[_ngcontent-%COMP%]{text-align:right;float:right;font-size:12px;padding-right:18px}.expediente[_ngcontent-%COMP%]{border-radius:15px;box-shadow:0 0 10px 0 rgba(0,0,0,.07);border:1px solid #e9e9e9!important;background-color:var(--white);margin-bottom:10px!important;padding:15px}.exp-list-item[_ngcontent-%COMP%]{overflow:auto;margin:10px auto}.exp-top-detail[_ngcontent-%COMP%]{width:100%;float:left;font-family:Roboto;font-size:12pt;font-weight:700;color:#0d89d1;padding-left:3px}.exp-top-detail[_ngcontent-%COMP%] .subject[_ngcontent-%COMP%]{width:84%;float:left}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;float:right;margin:0!important;padding:0!important}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:12pt;color:#42b9fe;float:left}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:10pt}.exp-bottom-detail[_ngcontent-%COMP%], .exp-middle-detail[_ngcontent-%COMP%]{margin-bottom:5px}.exp-middle-detail[_ngcontent-%COMP%]{font-size:12pt;width:100%;overflow:auto}.exp-middle-detail[_ngcontent-%COMP%] .exp-workflow[_ngcontent-%COMP%]{float:left;margin:0!important}.exp-middle-detail[_ngcontent-%COMP%] .exp-workflow[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:15px;background:#ffb703;float:right;padding:2.5px 13.5px;color:#fff}.exp-middle-detail[_ngcontent-%COMP%] .exp-date[_ngcontent-%COMP%]{width:auto;font-family:Roboto;font-size:10pt;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#797979;float:right}.exp-bottom-detail[_ngcontent-%COMP%]{font-size:8pt;width:100%;overflow:auto;padding-left:3px}.exp-bottom-detail[_ngcontent-%COMP%] .exp-remetente[_ngcontent-%COMP%]{font-family:Roboto;font-weight:400;color:#000;float:left}.div-top-header[_ngcontent-%COMP%]{width:400px;margin:6px auto;background-color:#0782c9;overflow:auto}.div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-logo[_ngcontent-%COMP%]{background:transparent;width:150px;margin:2.5px 0 2.5px 71px;float:left}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}"]}),t})()},93362:function(t,e,n){"use strict";n.r(e),n.d(e,{ExpedientesPrPageModule:function(){return p}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(65104),c=n(37716);const l=[{path:"",component:a.H}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d]]}),t})()},65104:function(t,e,n){"use strict";n.d(e,{H:function(){return v}});var o=n(37716),i=n(39895),r=n(42764),s=n(17690),a=n(28621),c=n(35957),l=n(25970),d=n(37556),p=n(38583);function g(t,e){1&t&&o._UZ(0,"ion-progress-bar",10)}function u(t,e){if(1&t&&(o.TgZ(0,"label"),o._uU(1),o.qZA()),2&t){const t=o.oxw().$implicit;o.xp6(1),o.Oqu(t.DocumentsQty)}}function f(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",12),o.NdJ("click",function(){const e=o.CHM(t).$implicit;return o.oxw(2).goToExpediente(e.SerialNumber)}),o.TgZ(1,"div",13),o.TgZ(2,"div",14),o.TgZ(3,"div",15),o.TgZ(4,"ion-label"),o._uU(5),o.qZA(),o.qZA(),o.TgZ(6,"div",16),o._UZ(7,"ion-icon",17),o.YNc(8,u,2,1,"label",8),o.qZA(),o.qZA(),o.TgZ(9,"div",18),o.TgZ(10,"div",19),o.TgZ(11,"ion-label"),o._uU(12),o.qZA(),o.qZA(),o.qZA(),o.TgZ(13,"div",20),o.TgZ(14,"div",21),o.TgZ(15,"span",22),o._uU(16),o.qZA(),o.qZA(),o.TgZ(17,"div",23),o.TgZ(18,"ion-label"),o._uU(19),o.ALo(20,"date"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&t){const t=e.$implicit;o.xp6(5),o.Oqu(t.Folio),o.xp6(3),o.Q6J("ngIf",0!=t.DocumentsQty),o.xp6(4),o.Oqu(t.Senders),o.xp6(4),o.Oqu(t.activityInstanceName),o.xp6(3),o.Oqu(o.xi3(20,5,t.CreateDate,"dd-MM-yyyy HH:mm"))}}function h(t,e){if(1&t&&(o.TgZ(0,"ion-list"),o.YNc(1,f,21,8,"div",11),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngForOf",t.expedienteprstore.list)}}function m(t,e){1&t&&(o.TgZ(0,"div",24),o.TgZ(1,"span"),o._uU(2,"Lista vazia"),o.qZA(),o.qZA())}function x(t,e){1&t&&(o.TgZ(0,"div"),o.TgZ(1,"ion-list"),o.TgZ(2,"ion-item"),o.TgZ(3,"ion-thumbnail",25),o._UZ(4,"ion-skeleton-text",26),o.qZA(),o.TgZ(5,"ion-label"),o.TgZ(6,"h3"),o._UZ(7,"ion-skeleton-text",27),o.qZA(),o.TgZ(8,"p"),o._UZ(9,"ion-skeleton-text",28),o.qZA(),o.TgZ(10,"p"),o._UZ(11,"ion-skeleton-text",29),o.qZA(),o.qZA(),o.qZA(),o.TgZ(12,"ion-item"),o.TgZ(13,"ion-thumbnail",25),o._UZ(14,"ion-skeleton-text",26),o.qZA(),o.TgZ(15,"ion-label"),o.TgZ(16,"h3"),o._UZ(17,"ion-skeleton-text",27),o.qZA(),o.TgZ(18,"p"),o._UZ(19,"ion-skeleton-text",28),o.qZA(),o.TgZ(20,"p"),o._UZ(21,"ion-skeleton-text",29),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA())}let v=(()=>{class t{constructor(t,e,n,i,a){this.processes=t,this.modalController=e,this.alertService=n,this.authService=i,this.router=a,this.taskslist=[],this.skeletonLoader=!0,this.expedienteprstore=r.s,this.customTaskPipe=new s.g,this.openExpedientDetail=new o.vpe,this.loggeduser=i.ValidatedUser}ngOnInit(){this.LoadList(),this.router.events.forEach(t=>{(t instanceof i.OD&&t.url.startsWith("/home/gabinete-digital?expedientespr=true")||t instanceof i.OD&&t.url.startsWith("/home/gabinete-digital?expedientes-pr=true"))&&(window.location.pathname.split("/").length>=4&&window.location.pathname.startsWith("/home/gabinete-digital")?this.refreshing():this.LoadList())})}openExpedientDetailPage(t){console.log(t),this.openExpedientDetail.emit(t)}LoadList(){this.skeletonLoader=!0,this.processes.GetTasksList("Expediente",!1).subscribe(t=>{this.taskslist=[],t.reverse().filter(t=>"Active"==t.workflowInstanceDataFields.Status).forEach(t=>{let e=this.customTaskPipe.transform(t);this.taskslist.push(e)}),this.expedienteprstore.reset(this.taskslist),this.skeletonLoader=!1})}refreshing(){setTimeout(()=>{this.LoadList()},1e3)}doRefresh(t){this.LoadList(),setTimeout(()=>{t.target.complete()},2e3)}goToExpediente(t){this.router.navigate(["/home/gabinete-digital/expedientes-pr",t,"gabinete-digital"])}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(a.$),o.Y36(c.IN),o.Y36(l.c),o.Y36(d.e),o.Y36(i.F0))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-expedientes-pr"]],outputs:{openExpedientDetail:"openExpedientDetail"},decls:14,vars:4,consts:[[1,"ion-no-border"],[1,"title"],[1,"thetitle"],[1,"theicon"],[1,"btn-no-color",3,"click"],["slot","end","name","reload-circle",1,"title-icon"],[1,"width-100","overflow-y-auto","height-100"],["type","indeterminate",4,"ngIf"],[4,"ngIf"],["class","empty-list d-flex height-100 align-center justify-content-center",4,"ngIf"],["type","indeterminate"],["class","expediente ion-no-padding ion-no-margin cursor-pointer",3,"click",4,"ngFor","ngForOf"],[1,"expediente","ion-no-padding","ion-no-margin","cursor-pointer",3,"click"],[1,"item","width-100"],[1,"exp-top-detail"],[1,"subject"],[1,"exp-icon"],["src","assets/images/icons-expediente-attachment.svg"],[1,"exp-bottom-detail"],[1,"exp-remetente"],[1,"exp-middle-detail"],[1,"exp-workflow"],[1,"label"],[1,"exp-date"],[1,"empty-list","d-flex","height-100","align-center","justify-content-center"],["slot","end"],["animated",""],["animated","",2,"width","50%"],["animated","",2,"width","80%"],["animated","",2,"width","60%"]],template:function(t,e){1&t&&(o.TgZ(0,"ion-header",0),o.TgZ(1,"div",1),o.TgZ(2,"div",2),o.TgZ(3,"ion-label"),o._uU(4,"Expediente"),o.qZA(),o.qZA(),o.TgZ(5,"div",3),o.TgZ(6,"button",4),o.NdJ("click",function(){return e.refreshing()}),o._UZ(7,"ion-icon",5),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(8,"ion-content"),o.TgZ(9,"div",6),o.YNc(10,g,1,0,"ion-progress-bar",7),o.YNc(11,h,2,1,"ion-list",8),o.YNc(12,m,3,0,"div",9),o.YNc(13,x,22,0,"div",8),o.qZA(),o.qZA()),2&t&&(o.xp6(10),o.Q6J("ngIf",e.skeletonLoader),o.xp6(1),o.Q6J("ngIf",e.expedienteprstore.list.length>=1),o.xp6(1),o.Q6J("ngIf",!e.skeletonLoader&&0==e.expedienteprstore.list.length&&0==e.expedienteprstore.list.length),o.xp6(1),o.Q6J("ngIf",e.skeletonLoader&&0==e.expedienteprstore.list.length))},directives:[c.Gu,c.Q$,c.gu,c.W2,p.O5,c.X7,c.q_,p.sg,c.Ie,c.Bs,c.CK],pipes:[p.uU],styles:["[_nghost-%COMP%]{padding:30px 20px 0!important;margin:0}.title[_ngcontent-%COMP%]{font-family:Roboto;font-size:25px;color:#000;overflow:auto}.title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{float:left}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%], .title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%]{float:right}.item-list-small[_ngcontent-%COMP%]{font-size:11px;overflow:auto}.ion-item-class[_ngcontent-%COMP%]{padding:0}.label-text[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}ion-item[_ngcontent-%COMP%]{--background:none}.item[_ngcontent-%COMP%]{background-color:var(--white);margin:0 auto;overflow:auto}.div-content-expediente[_ngcontent-%COMP%]{width:100%;float:left;border-left:3px solid #dae3f3;padding:5px 5px 15px;margin:10px 0;background:#dae3f3;border-radius:20px}.div-content-pendentes[_ngcontent-%COMP%]{width:100%;float:left;border-left:3px solid #d9d9d9;padding:5px}.div-content-expediente[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .div-content-pendentes[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;font-size:14pt;width:100%}.div-icon[_ngcontent-%COMP%]{width:10%;font-size:20px;float:left;color:grey}.div-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{display:block;margin:0 auto}.div-content-expediente[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .div-content-pendentes[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14pt;color:#5e5c5c;padding:0;margin:0}.span-left[_ngcontent-%COMP%]{float:left;font-size:12px;padding-left:18px}.span-right[_ngcontent-%COMP%]{text-align:right;float:right;font-size:12px;padding-right:18px}.expediente[_ngcontent-%COMP%]{border-radius:15px;box-shadow:0 0 10px 0 rgba(0,0,0,.07);border:1px solid #e9e9e9!important;background-color:var(--white);margin-bottom:10px!important;padding:15px}.exp-list-item[_ngcontent-%COMP%]{overflow:auto;margin:10px auto}.exp-top-detail[_ngcontent-%COMP%]{width:100%;float:left;font-family:Roboto;font-size:12pt;font-weight:700;color:#0d89d1;padding-left:3px}.exp-top-detail[_ngcontent-%COMP%] .subject[_ngcontent-%COMP%]{width:84%;float:left}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;float:right;margin:0!important;padding:0!important}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:12pt;color:#42b9fe;float:left}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:10pt}.exp-bottom-detail[_ngcontent-%COMP%], .exp-middle-detail[_ngcontent-%COMP%]{margin-bottom:5px}.exp-middle-detail[_ngcontent-%COMP%]{font-size:12pt;width:100%;overflow:auto}.exp-middle-detail[_ngcontent-%COMP%] .exp-workflow[_ngcontent-%COMP%]{float:left;margin:0!important}.exp-middle-detail[_ngcontent-%COMP%] .exp-workflow[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:15px;background:#ffb703;float:right;padding:2.5px 13.5px;color:#fff}.exp-middle-detail[_ngcontent-%COMP%] .exp-date[_ngcontent-%COMP%]{width:auto;font-family:Roboto;font-size:10pt;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#797979;float:right}.exp-bottom-detail[_ngcontent-%COMP%]{font-size:8pt;width:100%;overflow:auto;padding-left:3px}.exp-bottom-detail[_ngcontent-%COMP%] .exp-remetente[_ngcontent-%COMP%]{font-family:Roboto;font-weight:400;color:#000;float:left}.div-top-header[_ngcontent-%COMP%]{width:400px;margin:6px auto;background-color:#0782c9;overflow:auto}.div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-logo[_ngcontent-%COMP%]{background:transparent;width:150px;margin:2.5px 0 2.5px 71px;float:left}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}"]}),t})()},65300:function(t,e,n){"use strict";n.r(e),n.d(e,{ExpedientsPageModule:function(){return p}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(78814),c=n(37716);const l=[{path:"",component:a.o}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d]]}),t})()},78814:function(t,e,n){"use strict";n.d(e,{o:function(){return x}});var o=n(39895),i=n(87732),r=n(60852),s=n(37716),a=n(28621),c=n(35957),l=n(25970),d=n(38583);function p(t,e){1&t&&s._UZ(0,"ion-progress-bar",12)}function g(t,e){if(1&t&&(s.TgZ(0,"label"),s._uU(1),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.Oqu(t.DocumentsQty)}}function u(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",14),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(2).goToExpediente(e.SerialNumber)}),s.TgZ(1,"div",15),s.TgZ(2,"div",16),s.TgZ(3,"div",17),s.TgZ(4,"ion-label"),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"div",18),s._UZ(7,"ion-icon",19),s.YNc(8,g,2,1,"label",10),s.qZA(),s.qZA(),s.TgZ(9,"div",20),s.TgZ(10,"div",21),s.TgZ(11,"ion-label"),s._uU(12),s.qZA(),s.qZA(),s.qZA(),s.TgZ(13,"div",22),s.TgZ(14,"div",23),s.TgZ(15,"span",24),s._uU(16),s.qZA(),s.qZA(),s.TgZ(17,"div",25),s.TgZ(18,"ion-label"),s._uU(19),s.ALo(20,"date"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(5),s.Oqu(t.Folio),s.xp6(3),s.Q6J("ngIf",0!=t.DocumentsQty),s.xp6(4),s.Oqu(t.Senders),s.xp6(4),s.Oqu(t.activityInstanceName),s.xp6(3),s.Oqu(s.xi3(20,5,t.CreateDate,"dd-MM-yyyy HH:mm"))}}function f(t,e){if(1&t&&(s.TgZ(0,"ion-list"),s.YNc(1,u,21,8,"div",13),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngForOf",t.expedientegbstore.list)}}function h(t,e){1&t&&(s.TgZ(0,"div",26),s.TgZ(1,"span"),s._uU(2,"Lista vazia"),s.qZA(),s.qZA())}function m(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"ion-list"),s.TgZ(2,"ion-item"),s.TgZ(3,"ion-thumbnail",27),s._UZ(4,"ion-skeleton-text",28),s.qZA(),s.TgZ(5,"ion-label"),s.TgZ(6,"h3"),s._UZ(7,"ion-skeleton-text",29),s.qZA(),s.TgZ(8,"p"),s._UZ(9,"ion-skeleton-text",30),s.qZA(),s.TgZ(10,"p"),s._UZ(11,"ion-skeleton-text",31),s.qZA(),s.qZA(),s.qZA(),s.TgZ(12,"ion-item"),s.TgZ(13,"ion-thumbnail",27),s._UZ(14,"ion-skeleton-text",28),s.qZA(),s.TgZ(15,"ion-label"),s.TgZ(16,"h3"),s._UZ(17,"ion-skeleton-text",29),s.qZA(),s.TgZ(18,"p"),s._UZ(19,"ion-skeleton-text",30),s.qZA(),s.TgZ(20,"p"),s._UZ(21,"ion-skeleton-text",31),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA())}let x=(()=>{class t{constructor(t,e,n,o,i){this.processes=t,this.modalController=e,this.alertService=n,this.router=o,this.activatedRoute=i,this.taskslist=[],this.skeletonLoader=!0,this.expedientegbstore=r.a,this.profile="mdgpr"}ngOnInit(){this.segment="expedientes",this.LoadList(),this.router.events.forEach(t=>{t instanceof o.OD&&t.url.startsWith("/home/gabinete-digital?expedientes=true")&&(window.location.pathname.split("/").length>=4&&window.location.pathname.startsWith("/home/gabinete-digital")?this.doRefresh():this.LoadList())})}segmentChanged(){this.LoadList()}notImplemented(){this.alertService.presentAlert("Funcionalidade em desenvolvimento")}LoadList(){this.skeletonLoader=!0,this.processes.GetTasksList("Expediente",!1).subscribe(t=>{this.taskslist=[],this.skeletonLoader=!1,t.reverse().filter(t=>"Active"==t.workflowInstanceDataFields.Status).forEach(t=>{let e=new Date(t.taskStartDate);e.setMonth(e.getMonth()+1);let n=e.getFullYear()+"-"+e.getMonth()+"-"+e.getDate()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds();this.taskslist.push({SerialNumber:t.serialNumber,Folio:t.workflowInstanceDataFields.Subject,Senders:t.workflowInstanceDataFields.Sender,CreateDate:n,DocumentURL:t.workflowInstanceDataFields.ViewerRequest,Remetente:t.workflowInstanceDataFields.Remetente,DocumentsQty:t.totalDocuments,WorkflowName:t.workflowDisplayName,activityInstanceName:t.activityInstanceName,Status:t.workflowInstanceDataFields.Status})}),console.log("Buffer store",this.taskslist),this.expedientegbstore.reset(this.taskslist)})}doRefresh(){setTimeout(()=>{this.LoadList()},1e3)}goToExpediente(t){this.router.navigate(["/home/gabinete-digital/expediente",t,"gabinete-digital"])}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.$),s.Y36(c.IN),s.Y36(l.c),s.Y36(o.F0),s.Y36(o.gz))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-expedients"]],viewQuery:function(t,e){if(1&t&&s.Gf(i.eV,5),2&t){let t;s.iGM(t=s.CRH())&&(e.myCal=t.first)}},inputs:{profile:"profile"},decls:17,vars:4,consts:[[1,"ion-no-border"],[1,"title"],[1,"thetitle"],[1,"theicon"],[1,"btn-no-color",3,"click"],["slot","end","name","reload-circle",1,"title-icon"],["name","refresher","slot","fixed",3,"ionRefresh"],["pullingIcon","chevron-down-circle-outline","pullingText","deslize para actualizar","refreshingSpinner","circles","refreshingText","A actualizar..."],[1,"width-100","overflow-y-auto","height-100"],["type","indeterminate",4,"ngIf"],[4,"ngIf"],["class","empty-list d-flex height-100 align-center justify-content-center",4,"ngIf"],["type","indeterminate"],["class","expediente ion-no-padding ion-no-margin cursor-pointer",3,"click",4,"ngFor","ngForOf"],[1,"expediente","ion-no-padding","ion-no-margin","cursor-pointer",3,"click"],[1,"item","width-100"],[1,"exp-top-detail"],[1,"subject"],[1,"exp-icon"],["src","assets/images/icons-expediente-attachment.svg"],[1,"exp-bottom-detail"],[1,"exp-remetente"],[1,"exp-middle-detail"],[1,"exp-workflow"],[1,"label"],[1,"exp-date"],[1,"empty-list","d-flex","height-100","align-center","justify-content-center"],["slot","end"],["animated",""],["animated","",2,"width","50%"],["animated","",2,"width","80%"],["animated","",2,"width","60%"]],template:function(t,e){1&t&&(s.TgZ(0,"ion-header",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"ion-label"),s._uU(4,"Expediente"),s.qZA(),s.qZA(),s.TgZ(5,"div",3),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.doRefresh()}),s._UZ(7,"ion-icon",5),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(8,"ion-content"),s.TgZ(9,"ion-refresher",6),s.NdJ("ionRefresh",function(){return e.doRefresh()}),s._UZ(10,"ion-refresher-content",7),s.qZA(),s.TgZ(11,"div",8),s.TgZ(12,"div"),s.YNc(13,p,1,0,"ion-progress-bar",9),s.YNc(14,f,2,1,"ion-list",10),s.qZA(),s.YNc(15,h,3,0,"div",11),s.YNc(16,m,22,0,"div",10),s.qZA(),s.qZA()),2&t&&(s.xp6(13),s.Q6J("ngIf",e.skeletonLoader),s.xp6(1),s.Q6J("ngIf",e.expedientegbstore.list.length>=0),s.xp6(1),s.Q6J("ngIf",!e.skeletonLoader&&0==e.expedientegbstore.list.length&&0==e.expedientegbstore.list.length),s.xp6(1),s.Q6J("ngIf",e.skeletonLoader&&0==e.expedientegbstore.list.length))},directives:[c.Gu,c.Q$,c.gu,c.W2,c.nJ,c.Wo,d.O5,c.X7,c.q_,d.sg,c.Ie,c.Bs,c.CK],pipes:[d.uU],styles:["[_nghost-%COMP%]{padding:30px 20px 0!important;margin:0}.title[_ngcontent-%COMP%]{font-family:Roboto;font-size:25px;color:#000;overflow:auto}.title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{float:left}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%], .title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%]{float:right}.item-list-small[_ngcontent-%COMP%]{font-size:11px;overflow:auto}.ion-item-class[_ngcontent-%COMP%]{padding:0}.label-text[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}ion-item[_ngcontent-%COMP%]{--background:none}.item[_ngcontent-%COMP%]{background-color:var(--white);margin:0 auto;overflow:auto}.div-content-expediente[_ngcontent-%COMP%]{width:100%;float:left;border-left:3px solid #dae3f3;padding:5px 5px 15px;margin:10px 0;background:#dae3f3;border-radius:20px}.div-content-pendentes[_ngcontent-%COMP%]{width:100%;float:left;border-left:3px solid #d9d9d9;padding:5px}.div-content-expediente[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .div-content-pendentes[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;font-size:14pt;width:100%}.div-icon[_ngcontent-%COMP%]{width:10%;font-size:20px;float:left;color:grey}.div-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{display:block;margin:0 auto}.div-content-expediente[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .div-content-pendentes[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14pt;color:#5e5c5c;padding:0;margin:0}.span-left[_ngcontent-%COMP%]{float:left;font-size:12px;padding-left:18px}.span-right[_ngcontent-%COMP%]{text-align:right;float:right;font-size:12px;padding-right:18px}.expediente[_ngcontent-%COMP%]{border-radius:15px;box-shadow:0 0 10px 0 rgba(0,0,0,.07);border:1px solid #e9e9e9!important;background-color:var(--white);margin-bottom:10px!important;padding:15px}.exp-list-item[_ngcontent-%COMP%]{overflow:auto;margin:10px auto}.exp-top-detail[_ngcontent-%COMP%]{width:100%;float:left;font-family:Roboto;font-size:12pt;font-weight:700;color:#0d89d1;padding-left:3px}.exp-top-detail[_ngcontent-%COMP%] .subject[_ngcontent-%COMP%]{width:84%;float:left}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;float:right;margin:0!important;padding:0!important}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:12pt;color:#42b9fe;float:left}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:10pt}.exp-bottom-detail[_ngcontent-%COMP%], .exp-middle-detail[_ngcontent-%COMP%]{margin-bottom:5px}.exp-middle-detail[_ngcontent-%COMP%]{font-size:12pt;width:100%;overflow:auto}.exp-middle-detail[_ngcontent-%COMP%] .exp-workflow[_ngcontent-%COMP%]{float:left;margin:0!important}.exp-middle-detail[_ngcontent-%COMP%] .exp-workflow[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:15px;background:#ffb703;float:right;padding:2.5px 13.5px;color:#fff}.exp-middle-detail[_ngcontent-%COMP%] .exp-date[_ngcontent-%COMP%]{width:auto;font-family:Roboto;font-size:10pt;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#797979;float:right}.exp-bottom-detail[_ngcontent-%COMP%]{font-size:8pt;width:100%;overflow:auto;padding-left:3px}.exp-bottom-detail[_ngcontent-%COMP%] .exp-remetente[_ngcontent-%COMP%]{font-family:Roboto;font-weight:400;color:#000;float:left}.div-top-header[_ngcontent-%COMP%]{width:400px;margin:6px auto;background-color:#0782c9;overflow:auto}.div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-logo[_ngcontent-%COMP%]{background:transparent;width:150px;margin:2.5px 0 2.5px 71px;float:left}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}"]}),t})()},40160:function(t,e,n){"use strict";n.r(e),n.d(e,{PendentesPageModule:function(){return g}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(72964),c=n(37716);const l=[{path:"",component:a.G}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})();var p=n(84747);let g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d,p.TaskListPageModule]]}),t})()},72964:function(t,e,n){"use strict";n.d(e,{G:function(){return u}});var o=n(64762),i=n(37716),r=n(39895),s=n(44940),a=n(54271),c=n(17690),l=n(28621),d=n(37556),p=n(35957),g=n(95526);let u=(()=>{class t{constructor(t,e,n){this.processes=t,this.authService=e,this.router=n,this.skeletonLoader=!1,this.pendentesstore=a.G,this.customTaskPipe=new c.g,this.openExpedientDetail=new i.vpe,this.loggeduser=e.ValidatedUser}ngOnInit(){this.router.events.forEach(t=>{t instanceof r.OD&&t.url.startsWith("/home/gabinete-digital?pendentes=true")&&(window.location.pathname.split("/").length>=4&&window.location.pathname.startsWith("/home/gabinete-digital")?this.doRefresh():this.LoadList())})}LoadList(){return(0,o.mG)(this,void 0,void 0,function*(){this.skeletonLoader=!0;let t=yield this.processes.GetPendingTasks(!1).toPromise(),e=[];t.forEach(t=>{let n=this.customTaskPipe.transform(t);e.push(n)}),e=(0,s.removeDuplicate)(e),e=this.sortArrayISODate(e),this.pendentesstore.reset(e),this.skeletonLoader=!1})}sortArrayISODate(t){return t.sort(function(t,e){return t.CreateDate<e.CreateDate?-1:t.CreateDate>e.CreateDate?1:0})}doRefresh(){setTimeout(()=>{this.LoadList()},1e3)}viewTaskDetails({SerialNumber:t,WorkflowName:e,activityInstanceName:n}){return(0,o.mG)(this,void 0,void 0,function*(){"Despacho"==e?this.router.navigate(["/home/gabinete-digital/despachos",t,"gabinete-digital"]):"Pedido de Parecer"==e||"Pedido de Deferimento"==e||"Pedido de Parecer do Presidente"==e?this.router.navigate(["/home/gabinete-digital/pedidos",t,"gabinete-digital"]):"Expediente"==e?this.router.navigate(["/home/gabinete-digital/expediente",t,"gabinete-digital"]):"Expediente"==e&&"PR"==this.loggeduser.Profile?this.router.navigate(["/home/gabinete-digital/expedientes-pr",t,"gabinete-digital"]):"Tarefa de Parecer"==n?this.router.navigate(["/home/gabinete-digital/pedidos",t,"gabinete-digital"]):"Tarefa de Despacho"==n?this.router.navigate(["/home/gabinete-digital/despachos",t,"gabinete-digital"]):console.log("cant find page for this task",e,n)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(l.$),i.Y36(d.e),i.Y36(r.F0))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-pendentes"]],inputs:{profile:"profile"},outputs:{openExpedientDetail:"openExpedientDetail"},decls:12,vars:2,consts:[[1,"ion-no-border","px-20"],[1,"title"],[1,"thetitle"],[1,"theicon"],[1,"btn-no-color",3,"click"],["slot","end","name","reload-circle",1,"title-icon"],["name","refresher","slot","fixed",3,"ionRefresh"],["pullingIcon","chevron-down-circle-outline","pullingText","deslize para actualizar","refreshingSpinner","circles","refreshingText","A actualizar..."],[3,"taskList","skeletonLoader","viewTaskDetail"]],template:function(t,e){1&t&&(i.TgZ(0,"ion-header",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"ion-label"),i._uU(4,"Pendentes"),i.qZA(),i.qZA(),i.TgZ(5,"div",3),i.TgZ(6,"button",4),i.NdJ("click",function(){return e.doRefresh()}),i._UZ(7,"ion-icon",5),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(8,"ion-content"),i.TgZ(9,"ion-refresher",6),i.NdJ("ionRefresh",function(){return e.doRefresh()}),i._UZ(10,"ion-refresher-content",7),i.qZA(),i.TgZ(11,"app-task-list",8),i.NdJ("viewTaskDetail",function(t){return e.viewTaskDetails(t)}),i.qZA(),i.qZA()),2&t&&(i.xp6(11),i.Q6J("taskList",e.pendentesstore.list)("skeletonLoader",e.skeletonLoader))},directives:[p.Gu,p.Q$,p.gu,p.W2,p.nJ,p.Wo,g.V],styles:["[_nghost-%COMP%]{padding:30px 0 0!important;margin:0}.title[_ngcontent-%COMP%]{font-family:Roboto;font-size:25px;color:#000;overflow:auto}.title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{float:left}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%], .title[_ngcontent-%COMP%] .thetitle[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.title[_ngcontent-%COMP%] .theicon[_ngcontent-%COMP%]{float:right}.item-list-small[_ngcontent-%COMP%]{font-size:11px;overflow:hidden}.ion-item-class[_ngcontent-%COMP%]{padding:0}.label-text[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}ion-item[_ngcontent-%COMP%]{--background:none}.item[_ngcontent-%COMP%]{background-color:var(--white);margin:0 auto;overflow:hidden}.div-content-expediente[_ngcontent-%COMP%]{width:100%;float:left;border-left:3px solid #dae3f3;padding:5px 5px 15px;margin:10px 0;background:#dae3f3;border-radius:20px}.div-content-pendentes[_ngcontent-%COMP%]{width:100%;float:left;border-left:3px solid #d9d9d9;padding:5px}.div-content-expediente[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .div-content-pendentes[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;font-size:14pt;width:100%}.div-icon[_ngcontent-%COMP%]{width:10%;font-size:20px;float:left;color:grey}.div-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{display:block;margin:0 auto}.div-content-expediente[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .div-content-pendentes[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14pt;color:#5e5c5c;padding:0;margin:0}.span-left[_ngcontent-%COMP%]{float:left;font-size:12px;padding-left:18px}.span-right[_ngcontent-%COMP%]{text-align:right;float:right;font-size:12px;padding-right:18px}.expediente[_ngcontent-%COMP%]{border-radius:15px;box-shadow:0 0 10px 0 rgba(0,0,0,.07);border:1px solid #e9e9e9!important;background-color:var(--white);margin-bottom:10px!important;padding:15px}.exp-list-item[_ngcontent-%COMP%]{overflow:auto;margin:10px auto}.exp-top-detail[_ngcontent-%COMP%]{width:100%;float:left;font-family:Roboto;font-size:12pt;font-weight:700;color:#0d89d1;padding-left:3px}.exp-top-detail[_ngcontent-%COMP%] .subject[_ngcontent-%COMP%]{width:84%;float:left}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;float:right;margin:0!important;padding:0!important}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:12pt;color:#42b9fe;float:left}.exp-top-detail[_ngcontent-%COMP%] .exp-icon[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:10pt}.exp-bottom-detail[_ngcontent-%COMP%], .exp-middle-detail[_ngcontent-%COMP%]{margin-bottom:5px}.exp-middle-detail[_ngcontent-%COMP%]{font-size:12pt;width:100%;overflow:auto}.exp-middle-detail[_ngcontent-%COMP%] .exp-workflow[_ngcontent-%COMP%]{float:left;margin:0!important}.exp-middle-detail[_ngcontent-%COMP%] .exp-workflow[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-radius:15px;background:#ffb703;float:right;padding:2.5px 13.5px;color:#fff}.exp-middle-detail[_ngcontent-%COMP%] .exp-date[_ngcontent-%COMP%]{width:auto;font-family:Roboto;font-size:10pt;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#797979;float:right}.exp-bottom-detail[_ngcontent-%COMP%]{font-size:8pt;width:100%;overflow:auto;padding-left:3px}.exp-bottom-detail[_ngcontent-%COMP%] .exp-remetente[_ngcontent-%COMP%]{font-family:Roboto;font-weight:400;color:#000;float:left}.div-top-header[_ngcontent-%COMP%]{width:400px;margin:6px auto;background-color:#0782c9;overflow:auto}.div-search[_ngcontent-%COMP%]{font-size:45px;float:left;margin:0 0 0 10px}.div-logo[_ngcontent-%COMP%]{background:transparent;width:150px;margin:2.5px 0 2.5px 71px;float:left}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.div-profile[_ngcontent-%COMP%]{font-size:45px;float:right;margin-right:10px}"]}),t})()},76451:function(t,e,n){"use strict";n.d(e,{$:function(){return c}});var o=n(64762),i=n(37716),r=n(35957),s=n(86704),a=n(84465);let c=(()=>{class t{constructor(t,e,n,o){this.modalController=t,this.navParams=e,this.publicationsService=n,this.toastService=o,this.id=this.navParams.get("id")}ngOnInit(){}close(){this.modalController.dismiss()}editAction(){this.modalController.dismiss("edit")}deleteAction(){return(0,o.mG)(this,void 0,void 0,function*(){const t=this.toastService.loading();try{yield this.publicationsService.DeletePresidentialAction(this.id).toPromise(),this.toastService.successMessage(),this.modalController.dismiss("delete")}catch(e){this.toastService.badRequest()}finally{t.remove()}})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.IN),i.Y36(r.X1),i.Y36(s.H),i.Y36(a.k))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-actions-options"]],decls:10,vars:0,consts:[[1,"container"],[1,"arrow-right",3,"click"],[1,"btn-no-color"],["slot","end","src","assets/images/icons-arrow-arrow-right.svg",1,"arrow-right-icon"],[1,"buttons"],["shape","round",1,"btn-cancel",3,"click"],[1,"solid"],["shape","round",1,"btn-delete",3,"click"]],template:function(t,e){1&t&&(i.TgZ(0,"ion-content",0),i.TgZ(1,"div",1),i.NdJ("click",function(){return e.close()}),i.TgZ(2,"button",2),i._UZ(3,"ion-icon",3),i.qZA(),i.qZA(),i.TgZ(4,"div",4),i.TgZ(5,"button",5),i.NdJ("click",function(){return e.editAction()}),i._uU(6,"Editar"),i.qZA(),i._UZ(7,"div",6),i.TgZ(8,"button",7),i.NdJ("click",function(){return e.deleteAction()}),i._uU(9,"Eliminar"),i.qZA(),i.qZA(),i.qZA())},directives:[r.W2,r.gu],styles:[".container[_ngcontent-%COMP%]{--padding-top:20px!important;--padding-bottom:20px!important;--padding-start:20px!important;--padding-end:20px!important}.arrow-right[_ngcontent-%COMP%]{display:none;margin-bottom:20px}.arrow-right[_ngcontent-%COMP%] .arrow-right-icon[_ngcontent-%COMP%]{width:37px;float:right;font-size:35px;overflow:hidden}.buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-around}.solid[_ngcontent-%COMP%]{display:none;width:90%;border-top:1px solid #bbb;margin:0 auto!important}.btn-cancel[_ngcontent-%COMP%], .btn-ok[_ngcontent-%COMP%]{margin-bottom:5px!important;margin-top:5px!important}.btn-cancel[_ngcontent-%COMP%]:hover, .btn-delete[_ngcontent-%COMP%]:hover{color:#fff!important;background-color:#42b9fe}@media only screen and (max-width: 800px){.btn-cancel[_ngcontent-%COMP%], .btn-delete[_ngcontent-%COMP%], .btn-ok[_ngcontent-%COMP%]{width:47%!important}}@media only screen and (min-width: 1024px){.arrow-right[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.btn-cancel[_ngcontent-%COMP%], .btn-delete[_ngcontent-%COMP%], .btn-ok[_ngcontent-%COMP%]{width:100%!important;margin-bottom:10px!important}.btn-delete[_ngcontent-%COMP%], .btn-ok[_ngcontent-%COMP%]{margin-top:10px!important}.solid[_ngcontent-%COMP%]{display:block}}"]}),t})()},27255:function(t,e,n){"use strict";n.d(e,{U:function(){return p}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(40360),c=n(37716);const l=[{path:"",component:a.I}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d]]}),t})()},39510:function(t,e,n){"use strict";n.r(e),n.d(e,{EditActionPageModule:function(){return _}});var o=n(38583),i=n(3679),r=n(35957),s=n(39895),a=n(1565),c=n(37716);const l=[{path:"",component:a.Q}];let d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[s.Bz.forChild(l)],s.Bz]}),t})();var p=n(72458),g=n(25653),u=n(51095),f=n(67441),h=n(94881),m=n(43220),x=n(49983),v=n(22238);let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[o.ez,i.u5,r.Pc,d,m.FA,x.c,p.XK,g.EC,g.Yy,g.K,h._W,f.LD,u.ot,i.UX,v.Is]]}),t})()},1565:function(t,e,n){"use strict";n.d(e,{Q:function(){return h}});var o=n(64762),i=n(37716),r=n(3679),s=n(16738),a=n(28232),c=n(86704),l=n(84465),d=n(35957),p=n(98295),g=n(49983),u=n(25653),f=n(43220);let h=(()=>{class t{constructor(t,e){this.publicationsService=t,this.toastService=e,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.closeDesktopComponent=new i.vpe,this.updateDesktopComponent=new i.vpe,this.getActions=new i.vpe,this.folder=new a.Z}ngOnInit(){this.getPublicationDetail()}close(){this.closeDesktopComponent.emit()}getPublicationDetail(){this.publicationsService.GetPresidentialAction(this.folderId).subscribe(t=>{this.folder=t,this.dateControlStart=new r.NI(s(new Date(this.folder.DateBegin))),this.dateControlEnd=new r.NI(s(new Date(this.folder.DateEnd)))})}get dateValid(){return window.innerWidth<=800?this.folder.DateBegin<this.folder.DateEnd?["ok"]:[]:["ok"]}runValidation(){this.validateFrom=!0}injectValidation(){this.Form=new r.cw({Subject:new r.NI(this.folder.Description,[r.kI.required]),Date:new r.NI(this.dateValid,[r.kI.required])})}save(){return(0,o.mG)(this,void 0,void 0,function*(){let t={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(t);const e=this.toastService.loading();try{yield this.publicationsService.UpdatePresidentialAction(t).toPromise(),this.close(),this.updateDesktopComponent.emit(),this.toastService.successMessage("Ac\xe7\xe3o presidencial atualizada"),this.getActions.emit()}catch(n){this.toastService.badRequest("N\xe3o foi possivel atualizar a ac\xe7\xe3o presidencial")}finally{e.remove()}})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(c.H),i.Y36(l.k))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-edit-action"]],inputs:{folderId:"folderId"},outputs:{closeDesktopComponent:"closeDesktopComponent",updateDesktopComponent:"updateDesktopComponent",getActions:"getActions"},decls:47,vars:28,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,"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"],["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&&(i.TgZ(0,"ion-header",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"ion-label",3),i._uU(4,"Editar ac\xe7\xe3o presidencial"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(5,"ion-content"),i.TgZ(6,"div",4),i.TgZ(7,"div",5),i.TgZ(8,"ion-input",6),i.NdJ("ngModelChange",function(t){return e.folder.Description=t}),i.qZA(),i.qZA(),i.TgZ(9,"div",7),i.TgZ(10,"div",8),i.TgZ(11,"div",9),i._UZ(12,"ion-icon",10),i.qZA(),i.TgZ(13,"div",11),i.TgZ(14,"ion-datetime",12),i.NdJ("ngModelChange",function(t){return e.folder.DateBegin=t}),i.qZA(),i.TgZ(15,"mat-form-field",13),i._UZ(16,"input",14),i._UZ(17,"mat-datepicker-toggle",15),i._UZ(18,"ngx-mat-datetime-picker",16,17),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(20,"div",7),i.TgZ(21,"div",8),i.TgZ(22,"div",9),i._UZ(23,"ion-icon",10),i.qZA(),i.TgZ(24,"div",18),i.TgZ(25,"ion-datetime",19),i.NdJ("ngModelChange",function(t){return e.folder.DateEnd=t}),i.qZA(),i.TgZ(26,"mat-form-field",13),i._UZ(27,"input",14),i._UZ(28,"mat-datepicker-toggle",15),i._UZ(29,"ngx-mat-datetime-picker",16,17),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(31,"div",7),i.TgZ(32,"div",8),i.TgZ(33,"div",9),i._UZ(34,"ion-icon",20),i.qZA(),i.TgZ(35,"div",21),i.TgZ(36,"ion-textarea",22),i.NdJ("ngModelChange",function(t){return e.folder.Detail=t}),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(37,"ion-footer",23),i.TgZ(38,"ion-toolbar",24),i.TgZ(39,"ion-buttons",25),i.TgZ(40,"button",26),i.NdJ("click",function(){return e.close()}),i.TgZ(41,"ion-label"),i._uU(42,"Cancelar"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(43,"ion-buttons",27),i.TgZ(44,"button",28),i.NdJ("click",function(){return e.save()}),i.TgZ(45,"ion-label"),i._uU(46,"Gravar"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&t){const t=i.MAs(19);i.xp6(8),i.Q6J("ngModel",e.folder.Description),i.xp6(6),i.s9C("min",e.minDate),i.Q6J("ngModel",e.folder.DateBegin),i.xp6(2),i.Q6J("ngxMatDatetimePicker",t)("formControl",e.dateControlEnd)("min",e.minDate)("disabled",e.disabled),i.xp6(1),i.Q6J("for",t),i.xp6(1),i.Q6J("showSpinners",e.showSpinners)("showSeconds",e.showSeconds)("stepHour",e.stepHour)("stepMinute",e.stepMinute)("stepSecond",e.stepSecond)("touchUi",e.touchUi),i.xp6(7),i.s9C("min",e.minDate),i.Q6J("ngModel",e.folder.DateEnd),i.xp6(2),i.Q6J("ngxMatDatetimePicker",t)("formControl",e.dateControlEnd)("min",e.minDate)("disabled",e.disabled),i.xp6(1),i.Q6J("for",t),i.xp6(1),i.Q6J("showSpinners",e.showSpinners)("showSeconds",e.showSeconds)("stepHour",e.stepHour)("stepMinute",e.stepMinute)("stepSecond",e.stepSecond)("touchUi",e.touchUi),i.xp6(7),i.Q6J("ngModel",e.folder.Detail)}},directives:[d.Gu,d.Q$,d.W2,d.pK,d.j9,r.JJ,r.On,d.gu,d.x4,d.QI,p.KE,g.Nt,u.g2,r.Fj,r.oH,f.nW,p.R9,u.AB,d.g2,d.fr,d.sr,d.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}"]}),t})()},75235:function(t,e,n){"use strict";n.d(e,{S:function(){return s}});var o=n(66096),i=n(2527),r=n(37716);let s=new((()=>{class t{constructor(){this._diplomasAssinadoList=[],this._diplomasList=[],this._diplomasAssinadoListCount=0,this._diplomasListCount=0,this.keyNameDiplomasAssinado=(0,i.SHA1)(this.constructor.name+"diplomasAssinado").toString(),this.keyNameDiplomasList=(0,i.SHA1)(this.constructor.name+"diplomasList").toString(),setTimeout(()=>{let t=o.I.get(this.keyNameDiplomasAssinado,{}),e=o.I.get(this.keyNameDiplomasList,{});this._diplomasAssinadoList=t.list||[],this._diplomasAssinadoListCount=parseInt(t.count)||0,this._diplomasList=e.list||[],this._diplomasListCount=parseInt(e.count)||0},10)}get countDiplomasListCount(){return this._diplomasAssinadoListCount||0}set countDiplomasListCount(t){this._diplomasAssinadoListCount=t,this.saveDiplomasAssinadoList()}get diplomasListCount(){return this._diplomasListCount||0}set diplomasListCount(t){this._diplomasListCount=t,this.saveDiplomasList()}get diplomasList(){return this._diplomasList}get diplomasAssinadoList(){return this._diplomasAssinadoList}resetDiplomasAssinadoList(t){this._diplomasAssinadoListCount=t.length,this._diplomasAssinadoList=t,this.saveDiplomasAssinadoList()}resetDiplomasList(t){this._diplomasListCount=t.length,this._diplomasList=t,this.saveDiplomasList()}saveDiplomasAssinadoList(){setTimeout(()=>{o.I.set(this.keyNameDiplomasAssinado,{list:this._diplomasAssinadoList,count:this._diplomasAssinadoListCount})},10)}saveDiplomasList(){setTimeout(()=>{o.I.set(this.keyNameDiplomasList,{list:this._diplomasList,count:this._diplomasListCount})},10)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})())},30883:function(t,e,n){"use strict";n.d(e,{G:function(){return s}});var o=n(66096),i=n(2527),r=n(37716);const s=new((()=>{class t{constructor(){this._list=[],this._count=0,this.keyName=(0,i.SHA1)(this.constructor.name+"home/eventSource").toString(),setTimeout(()=>{let t=o.I.get(this.keyName,{});this._list=t.list||[],this._count=parseInt(t.count)||0},10)}get list(){return this._list||[]}get count(){return this._count}set count(t){this._count=t,this.save()}reset(t){this._list=t,this.count=this._list.length,this.save()}save(){setTimeout(()=>{o.I.set(this.keyName,{list:this._list,count:this._count})},10)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})())},92173:function(t,e,n){"use strict";n.d(e,{d:function(){return s}});var o=n(66096),i=n(2527),r=n(37716);const s=new((()=>{class t{constructor(){this._list=[],this._count=0,this.keyName=(0,i.SHA1)(this.constructor.name).toString(),setTimeout(()=>{let t=o.I.get(this.keyName,{});this._list=t.list||[],this._count=parseInt(t.count)||0},10)}get list(){return this._list||[]}get count(){return this._count}set count(t){this._count=t,this.save()}reset(t){this._list=t,this.count=this._list.length,this.save()}save(){setTimeout(()=>{o.I.set(this.keyName,{list:this._list,count:this._count})},10)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})())},96975:function(t,e,n){"use strict";n.d(e,{j:function(){return s}});var o=n(66096),i=n(2527),r=n(37716);const s=new((()=>{class t{constructor(){this._listPr=[],this._listMd=[],this._count=0,this._countPr=0,this._countMd=0,this.keyNamemd=(0,i.SHA1)(this.constructor.name+"md").toString(),this.keyNamepr=(0,i.SHA1)(this.constructor.name+"pr").toString(),setTimeout(()=>{let t=o.I.get(this.keyNamemd,{}),e=o.I.get(this.keyNamepr,{});this._listPr=e.lisMd||[],this._listMd=t.listPr||[],this._countMd=parseInt(t.countListMd)||0,this._countPr=parseInt(t.countListPr)||0,this._count=this._countMd+this._countPr||0},10)}get listpr(){return this._listPr}get listmd(){return this._listMd}get count(){return this._count}set count(t){this._count=t}get countPr(){return this._countPr}set countPr(t){this._countPr=t}get countMd(){return this._countMd}set countMd(t){this._countMd=t}resetpr(t){this._listPr=t,this.countPr=this._listPr.length,this.count=this.countPr+this.countMd,this.savePr()}resetmd(t){this._listMd=t,this.countMd=this._listMd.length,this.count=this.countPr+this.countMd,this.saveMd()}saveMd(){setTimeout(()=>{o.I.set(this.keyNamemd,{lisMd:this._listMd,countListMd:this._countMd})},10)}savePr(){setTimeout(()=>{o.I.set(this.keyNamepr,{listPr:this._listPr,countListPr:this._countPr})},10)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})())},60852:function(t,e,n){"use strict";n.d(e,{a:function(){return s}});var o=n(66096),i=n(2527),r=n(37716);const s=new((()=>{class t{constructor(){this._list=[],this._count=0,this.keyName=(0,i.SHA1)(this.constructor.name).toString(),setTimeout(()=>{let t=o.I.get(this.keyName,{});this._list=t.list||[],this._count=parseInt(t.count)||0},10)}get list(){return this._list}get count(){return this._count}set count(t){this._count=t,this.save()}reset(t){this._list=t,this.count=this._list.length,this.save()}save(){setTimeout(()=>{o.I.set(this.keyName,{list:this._list,count:this._count})},10)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})())},42764:function(t,e,n){"use strict";n.d(e,{s:function(){return s}});var o=n(66096),i=n(2527),r=n(37716);const s=new((()=>{class t{constructor(){this._list=[],this._count=0,this.keyName=(0,i.SHA1)(this.constructor.name).toString(),setTimeout(()=>{let t=o.I.get(this.keyName,{});this._list=t.list||[],this._count=parseInt(t.count)||0},10)}get list(){return this._list||[]}get count(){return this._count}set count(t){this._count=t,this.save()}reset(t){this._list=t,this.count=this._list.length,this.save()}save(){setTimeout(()=>{o.I.set(this.keyName,{list:this._list,count:this._count})},10)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})())},8500:function(t,e,n){"use strict";n.d(e,{d:function(){return s}});var o=n(66096),i=n(2527),r=n(37716);const s=new((()=>{class t{constructor(){this._listParecer=[],this._listDeferimento=[],this._countparecer=0,this._countDeferiemnto=0,this.keyNameparecer=(0,i.SHA1)(this.constructor.name+"parecer").toString(),this.keyNamedeferiemnto=(0,i.SHA1)(this.constructor.name+"deferimneto").toString(),setTimeout(()=>{let t=o.I.get(this.keyNameparecer,{}),e=o.I.get(this.keyNamedeferiemnto,{});this._listParecer=e.listDeferimento||[],this._listDeferimento=t.listParecer||[],this._countparecer=parseInt(t.count)||0,this._countDeferiemnto=parseInt(e.count)||0},10)}get listparecer(){return this._listParecer}get listdeferimento(){return this._listDeferimento}get countparecer(){return this._countparecer}set countparecer(t){this._countparecer=t,this.saveParecer()}get countdeferimento(){return this._countDeferiemnto}set countdeferimento(t){this._countDeferiemnto=t,this.saveDeferimento()}resetparecer(t){this._listParecer=t,this.countparecer=this._listParecer.length,this.saveDeferimento()}resetdeferimento(t){this._listDeferimento=t,this.countdeferimento=this._listDeferimento.length,this.saveParecer()}saveParecer(){setTimeout(()=>{o.I.set(this.keyNameparecer,{listParecer:this._listParecer,count:this._countparecer})},10)}saveDeferimento(){setTimeout(()=>{o.I.set(this.keyNamedeferiemnto,{listDeferimento:this._listParecer,count:this._countDeferiemnto})},10)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})())},54271:function(t,e,n){"use strict";n.d(e,{G:function(){return s}});var o=n(66096),i=n(2527),r=n(37716);const s=new((()=>{class t{constructor(){this._list=[],this._count=0,this.keyName=(0,i.SHA1)(this.constructor.name).toString(),setTimeout(()=>{let t=o.I.get(this.keyName,{});this._list=t.list||[],this._count=parseInt(t.count)||0},10)}get list(){return this._list}get count(){return this._count}set count(t){this._count=t}reset(t){this._list=t,this.count=this._list.length,this.save()}save(){setTimeout(()=>{o.I.set(this.keyName,{list:this._list,count:this._list.length})},10)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})())}}]);