mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
53 KiB
JavaScript
1 line
53 KiB
JavaScript
!function(){function t(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,o,r=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(r.push(i.value),!e||r.length!==e);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return r}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return e(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function n(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function i(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[2138],{52138:function(e,n,r){"use strict";r.r(n),r.d(n,{NewEventPageModule:function(){return Tt}});var a=r(38583),s=r(3679),c=r(35957),u=r(39895),l=r(94575),d=r(37716),p=[{path:"",component:l.h}],h=function(){var t=function t(){o(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[[u.Bz.forChild(p)],u.Bz]}),t}(),f=r(69165),m=r(59193),g=r(25917),v=r(79765),b=r(22759),w=r(46797),_=r(98085),y=(r(26215),r(9112),r(17757),r(21571)),C=(r(66682),r(86804)),k=r(46782),Z=r(45435),A=r(15257),x=r(88002),E=(r(39761),r(87519),r(43190)),T=r(68307),M=r(57057);r(65792),r(19773),r(13653),r(78345);var S=["*"],R=["dialog"];function O(t){return null!=t}function q(t){return(t||document.body).getBoundingClientRect()}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){var e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});var P=!0,D=5,F=function(){var t=function t(){o(this,t),this.animation=P};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,d.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),I=function(){},B=D,j=new Map,L=function(t,e,n,i){var o=i.context||{},r=j.get(e);if(r)switch(i.runningTransition){case"continue":return m.E;case"stop":t.run(function(){return r.transition$.complete()}),o=Object.assign(r.context,o),j.delete(e)}var a=n(e,i.animation,o)||I;if(!i.animation||"none"===window.getComputedStyle(e).transitionProperty)return t.run(function(){return a()}),(0,g.of)(void 0).pipe(function(t){return function(e){return new f.y(function(n){return e.subscribe(function(e){return t.run(function(){return n.next(e)})},function(e){return t.run(function(){return n.error(e)})},function(){return t.run(function(){return n.complete()})})})}}(t));var s=new v.xQ,c=new v.xQ,u=s.pipe((0,C.l)(!0));j.set(e,{transition$:s,complete:function(){c.next(),c.complete()},context:o});var l=function(t){var e=window.getComputedStyle(t),n=e.transitionDelay,i=e.transitionDuration;return 1e3*(parseFloat(n)+parseFloat(i))}(e);return t.runOutsideAngular(function(){var n=(0,b.R)(e,"transitionend").pipe((0,k.R)(u),(0,Z.h)(function(t){return t.target===e})),i=(0,w.H)(l+B).pipe((0,k.R)(u));(0,_.S3)(i,n,c).pipe((0,k.R)(u)).subscribe(function(){j.delete(e),t.run(function(){a(),s.next(),s.complete()})})}),s.asObservable()},J=function(){var t=function t(){o(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[[a.ez]]}),t}(),N=function(){var t=function t(){o(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[[a.ez]]}),t}(),z=function(){var t=function t(){o(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({}),t}(),H=function(){var t=function t(){o(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[[a.ez]]}),t}(),U=function(){var t=function t(){o(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({}),t}(),Y=(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(Y||(Y={})),Y);"undefined"!=typeof navigator&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));var G=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Q(t){var e=Array.from(t.querySelectorAll(G)).filter(function(t){return-1!==t.tabIndex});return[e[0],e[e.length-1]]}new(function(){function e(){o(this,e)}return i(e,[{key:"getAllStyles",value:function(t){return window.getComputedStyle(t)}},{key:"getStyle",value:function(t,e){return this.getAllStyles(t)[e]}},{key:"isStaticPositioned",value:function(t){return"static"===(this.getStyle(t,"position")||"static")}},{key:"offsetParent",value:function(t){for(var e=t.offsetParent||document.documentElement;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}},{key:"position",value:function(t){var e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))e={top:(e=t.getBoundingClientRect()).top,bottom:e.bottom,left:e.left,right:e.right,height:e.height,width:e.width};else{var o=this.offsetParent(t);e=this.offset(t,!1),o!==document.documentElement&&(i=this.offset(o,!1)),i.top+=o.clientTop,i.left+=o.clientLeft}return e.top-=i.top,e.bottom-=i.top,e.left-=i.left,e.right-=i.left,n&&(e.top=Math.round(e.top),e.bottom=Math.round(e.bottom),e.left=Math.round(e.left),e.right=Math.round(e.right)),e}},{key:"offset",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.getBoundingClientRect(),i=window.pageYOffset-document.documentElement.clientTop,o=window.pageXOffset-document.documentElement.clientLeft,r={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+i,bottom:n.bottom+i,left:n.left+o,right:n.right+o};return e&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r}},{key:"positionElements",value:function(e,n,i,o){var r=t(i.split("-"),2),a=r[0],s=void 0===a?"top":a,c=r[1],u=void 0===c?"center":c,l=o?this.offset(e,!1):this.position(e,!1),d=this.getAllStyles(n),p=parseFloat(d.marginTop),h=parseFloat(d.marginBottom),f=parseFloat(d.marginLeft),m=parseFloat(d.marginRight),g=0,v=0;switch(s){case"top":g=l.top-(n.offsetHeight+p+h);break;case"bottom":g=l.top+l.height;break;case"left":v=l.left-(n.offsetWidth+f+m);break;case"right":v=l.left+l.width}switch(u){case"top":g=l.top;break;case"bottom":g=l.top+l.height-n.offsetHeight;break;case"left":v=l.left;break;case"right":v=l.left+l.width-n.offsetWidth;break;case"center":"top"===s||"bottom"===s?v=l.left+l.width/2-n.offsetWidth/2:g=l.top+l.height/2-n.offsetHeight/2}n.style.transform="translate(".concat(Math.round(v),"px, ").concat(Math.round(g),"px)");var b=n.getBoundingClientRect(),w=document.documentElement,_=window.innerHeight||w.clientHeight,y=window.innerWidth||w.clientWidth;return b.left>=0&&b.top>=0&&b.right<=y&&b.bottom<=_}}]),e}()),new Date(1882,10,12),new Date(2174,10,25);var V=function(){var t=function t(){o(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[[a.ez,s.u5]]}),t}(),W=function(){var t=function t(){o(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({}),t}(),$=function(){var t=function(){function t(e){o(this,t),this._ngbConfig=e,this.backdrop=!0,this.keyboard=!0}return i(t,[{key:"animation",get:function(){return void 0===this._animation?this._ngbConfig.animation:this._animation},set:function(t){this._animation=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.LFG(F))},t.\u0275prov=(0,d.Yz7)({factory:function(){return new t((0,d.LFG)(F))},token:t,providedIn:"root"}),t}(),K=function t(e,n,i){o(this,t),this.nodes=e,this.viewRef=n,this.componentRef=i},X=function(){},tt=function(){var t=function(){function t(e){o(this,t),this._document=e}return i(t,[{key:"compensate",value:function(){var t=this._getWidth();return this._isPresent(t)?this._adjustBody(t):X}},{key:"_adjustBody",value:function(t){var e=this._document.body,n=e.style.paddingRight,i=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]="".concat(i+t,"px"),function(){return e.style["padding-right"]=n}}},{key:"_isPresent",value:function(t){var e=this._document.body.getBoundingClientRect();return window.innerWidth-(e.left+e.right)>=t-.1*t}},{key:"_getWidth",value:function(){var t=this._document.createElement("div");t.className="modal-scrollbar-measure";var e=this._document.body;e.appendChild(t);var n=t.getBoundingClientRect().width-t.clientWidth;return e.removeChild(t),n}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.LFG(a.K0))},t.\u0275prov=(0,d.Yz7)({factory:function(){return new t((0,d.LFG)(a.K0))},token:t,providedIn:"root"}),t}(),et=function(){var t=function(){function t(e,n){o(this,t),this._el=e,this._zone=n}return i(t,[{key:"ngOnInit",value:function(){var t=this;this._zone.onStable.asObservable().pipe((0,A.q)(1)).subscribe(function(){L(t._zone,t._el.nativeElement,function(t,e){e&&q(t),t.classList.add("show")},{animation:t.animation,runningTransition:"continue"})})}},{key:"hide",value:function(){return L(this._zone,this._el.nativeElement,function(t){return t.classList.remove("show")},{animation:this.animation,runningTransition:"stop"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Y36(d.SBq),d.Y36(d.R0b))},t.\u0275cmp=d.Xpm({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(t,e){2&t&&(d.Tol("modal-backdrop"+(e.backdropClass?" "+e.backdropClass:"")),d.ekj("show",!e.animation)("fade",e.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),t}(),nt=function(){function t(){o(this,t)}return i(t,[{key:"close",value:function(t){}},{key:"dismiss",value:function(t){}}]),t}(),it=function(){function t(e,n,i,r){var a=this;o(this,t),this._windowCmptRef=e,this._contentRef=n,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new v.xQ,this._dismissed=new v.xQ,this._hidden=new v.xQ,e.instance.dismissEvent.subscribe(function(t){a.dismiss(t)}),this.result=new Promise(function(t,e){a._resolve=t,a._reject=e}),this.result.then(null,function(){})}return i(t,[{key:"componentInstance",get:function(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}},{key:"closed",get:function(){return this._closed.asObservable().pipe((0,k.R)(this._hidden))}},{key:"dismissed",get:function(){return this._dismissed.asObservable().pipe((0,k.R)(this._hidden))}},{key:"hidden",get:function(){return this._hidden.asObservable()}},{key:"shown",get:function(){return this._windowCmptRef.instance.shown.asObservable()}},{key:"close",value:function(t){this._windowCmptRef&&(this._closed.next(t),this._resolve(t),this._removeModalElements())}},{key:"_dismiss",value:function(t){this._dismissed.next(t),this._reject(t),this._removeModalElements()}},{key:"dismiss",value:function(t){var e=this;if(this._windowCmptRef)if(this._beforeDismiss){var n=this._beforeDismiss();n&&n.then?n.then(function(n){!1!==n&&e._dismiss(t)},function(){}):!1!==n&&this._dismiss(t)}else this._dismiss(t)}},{key:"_removeModalElements",value:function(){var t=this,e=this._windowCmptRef.instance.hide(),n=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,g.of)(void 0);e.subscribe(function(){var e=t._windowCmptRef.location.nativeElement;e.parentNode.removeChild(e),t._windowCmptRef.destroy(),t._contentRef&&t._contentRef.viewRef&&t._contentRef.viewRef.destroy(),t._windowCmptRef=null,t._contentRef=null}),n.subscribe(function(){if(t._backdropCmptRef){var e=t._backdropCmptRef.location.nativeElement;e.parentNode.removeChild(e),t._backdropCmptRef.destroy(),t._backdropCmptRef=null}}),(0,y.$R)(e,n).subscribe(function(){t._hidden.next(),t._hidden.complete()})}}]),t}(),ot=(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(ot||(ot={})),ot),rt=function(){var t=function(){function t(e,n,i){o(this,t),this._document=e,this._elRef=n,this._zone=i,this._closed$=new v.xQ,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new d.vpe,this.shown=new v.xQ,this.hidden=new v.xQ}return i(t,[{key:"dismiss",value:function(t){this.dismissEvent.emit(t)}},{key:"ngOnInit",value:function(){var t=this;this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,A.q)(1)).subscribe(function(){t._show()})}},{key:"ngOnDestroy",value:function(){this._disableEventHandling()}},{key:"hide",value:function(){var t=this,e=this._elRef.nativeElement,n={animation:this.animation,runningTransition:"stop"},i=L(this._zone,e,function(){return e.classList.remove("show")},n),o=L(this._zone,this._dialogEl.nativeElement,function(){},n),r=(0,y.$R)(i,o);return r.subscribe(function(){t.hidden.next(),t.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),r}},{key:"_show",value:function(){var t=this,e={animation:this.animation,runningTransition:"continue"},n=L(this._zone,this._elRef.nativeElement,function(t,e){e&&q(t),t.classList.add("show")},e),i=L(this._zone,this._dialogEl.nativeElement,function(){},e);(0,y.$R)(n,i).subscribe(function(){t.shown.next(),t.shown.complete()}),this._enableEventHandling(),this._setFocus()}},{key:"_enableEventHandling",value:function(){var t=this,e=this._elRef.nativeElement;this._zone.runOutsideAngular(function(){(0,b.R)(e,"keydown").pipe((0,k.R)(t._closed$),(0,Z.h)(function(t){return t.which===Y.Escape})).subscribe(function(e){t.keyboard?requestAnimationFrame(function(){e.defaultPrevented||t._zone.run(function(){return t.dismiss(ot.ESC)})}):"static"===t.backdrop&&t._bumpBackdrop()});var n=!1;(0,b.R)(t._dialogEl.nativeElement,"mousedown").pipe((0,k.R)(t._closed$),(0,T.b)(function(){return n=!1}),(0,E.w)(function(){return(0,b.R)(e,"mouseup").pipe((0,k.R)(t._closed$),(0,A.q)(1))}),(0,Z.h)(function(t){var n=t.target;return e===n})).subscribe(function(){n=!0}),(0,b.R)(e,"click").pipe((0,k.R)(t._closed$)).subscribe(function(i){var o=i.target;e===o&&("static"===t.backdrop?t._bumpBackdrop():!0!==t.backdrop||n||t._zone.run(function(){return t.dismiss(ot.BACKDROP_CLICK)})),n=!1})})}},{key:"_disableEventHandling",value:function(){this._closed$.next()}},{key:"_setFocus",value:function(){var t=this._elRef.nativeElement;if(!t.contains(document.activeElement)){var e=t.querySelector("[ngbAutofocus]"),n=Q(t)[0];(e||n||t).focus()}}},{key:"_restoreFocus",value:function(){var t,e=this,n=this._document.body,i=this._elWithFocus;t=i&&i.focus&&n.contains(i)?i:n,this._zone.runOutsideAngular(function(){setTimeout(function(){return t.focus()}),e._elWithFocus=null})}},{key:"_bumpBackdrop",value:function(){"static"===this.backdrop&&L(this._zone,this._elRef.nativeElement,function(t){var e=t.classList;return e.add("modal-static"),function(){return e.remove("modal-static")}},{animation:this.animation,runningTransition:"continue"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Y36(a.K0),d.Y36(d.SBq),d.Y36(d.R0b))},t.\u0275cmp=d.Xpm({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(t,e){var n;(1&t&&d.Gf(R,7),2&t)&&(d.iGM(n=d.CRH())&&(e._dialogEl=n.first))},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,e){2&t&&(d.uIk("aria-modal",!0)("aria-labelledby",e.ariaLabelledBy)("aria-describedby",e.ariaDescribedBy),d.Tol("modal d-block"+(e.windowClass?" "+e.windowClass:"")),d.ekj("fade",e.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:S,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,e){1&t&&(d.F$t(),d.TgZ(0,"div",0,1),d.TgZ(2,"div",2),d.Hsn(3),d.qZA(),d.qZA()),2&t&&d.Tol("modal-dialog"+(e.size?" modal-"+e.size:"")+(e.centered?" modal-dialog-centered":"")+(e.scrollable?" modal-dialog-scrollable":"")+(e.modalDialogClass?" "+e.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),t}(),at=function(){var e=function(){function e(n,i,r,a,s,c){var u=this;o(this,e),this._applicationRef=n,this._injector=i,this._document=r,this._scrollBar=a,this._rendererFactory=s,this._ngZone=c,this._activeWindowCmptHasChanged=new v.xQ,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new d.vpe,this._activeWindowCmptHasChanged.subscribe(function(){if(u._windowCmpts.length){var e=u._windowCmpts[u._windowCmpts.length-1];(function(e,n,i){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];u._ngZone.runOutsideAngular(function(){var e=(0,b.R)(n,"focusin").pipe((0,k.R)(i),(0,x.U)(function(t){return t.target}));(0,b.R)(n,"keydown").pipe((0,k.R)(i),(0,Z.h)(function(t){return t.which===Y.Tab}),(0,M.M)(e)).subscribe(function(e){var i=t(e,2),o=i[0],r=i[1],a=t(Q(n),2),s=a[0],c=a[1];r!==s&&r!==n||!o.shiftKey||(c.focus(),o.preventDefault()),r!==c||o.shiftKey||(s.focus(),o.preventDefault())}),o&&(0,b.R)(n,"click").pipe((0,k.R)(i),(0,M.M)(e),(0,x.U)(function(t){return t[1]})).subscribe(function(t){return t.focus()})})})(0,e.location.nativeElement,u._activeWindowCmptHasChanged),u._revertAriaHidden(),u._setAriaHidden(e.location.nativeElement)}})}return i(e,[{key:"open",value:function(t,e,n,i){var o=this,r=i.container instanceof HTMLElement?i.container:O(i.container)?this._document.querySelector(i.container):this._document.body,a=this._rendererFactory.createRenderer(null,null),s=this._scrollBar.compensate(),c=function(){o._modalRefs.length||(a.removeClass(o._document.body,"modal-open"),o._revertAriaHidden())};if(!r)throw new Error('The specified modal container "'.concat(i.container||"body",'" was not found in the DOM.'));var u=new nt,l=this._getContentRef(t,i.injector||e,n,u,i),d=!1!==i.backdrop?this._attachBackdrop(t,r):void 0,p=this._attachWindowComponent(t,r,l),h=new it(p,l,d,i.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(p),h.result.then(s,s),h.result.then(c,c),u.close=function(t){h.close(t)},u.dismiss=function(t){h.dismiss(t)},this._applyWindowOptions(p.instance,i),1===this._modalRefs.length&&a.addClass(this._document.body,"modal-open"),d&&d.instance&&(this._applyBackdropOptions(d.instance,i),d.changeDetectorRef.detectChanges()),p.changeDetectorRef.detectChanges(),h}},{key:"activeInstances",get:function(){return this._activeInstances}},{key:"dismissAll",value:function(t){this._modalRefs.forEach(function(e){return e.dismiss(t)})}},{key:"hasOpenModals",value:function(){return this._modalRefs.length>0}},{key:"_attachBackdrop",value:function(t,e){var n=t.resolveComponentFactory(et).create(this._injector);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n}},{key:"_attachWindowComponent",value:function(t,e,n){var i=t.resolveComponentFactory(rt).create(this._injector,n.nodes);return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}},{key:"_applyWindowOptions",value:function(t,e){this._windowAttributes.forEach(function(n){O(e[n])&&(t[n]=e[n])})}},{key:"_applyBackdropOptions",value:function(t,e){this._backdropAttributes.forEach(function(n){O(e[n])&&(t[n]=e[n])})}},{key:"_getContentRef",value:function(t,e,n,i,o){return n?n instanceof d.Rgc?this._createFromTemplateRef(n,i):"string"==typeof n?this._createFromString(n):this._createFromComponent(t,e,n,i,o):new K([])}},{key:"_createFromTemplateRef",value:function(t,e){var n=t.createEmbeddedView({$implicit:e,close:function(t){e.close(t)},dismiss:function(t){e.dismiss(t)}});return this._applicationRef.attachView(n),new K([n.rootNodes],n)}},{key:"_createFromString",value:function(t){var e=this._document.createTextNode("".concat(t));return new K([[e]])}},{key:"_createFromComponent",value:function(t,e,n,i,o){var r=t.resolveComponentFactory(n),a=d.zs3.create({providers:[{provide:nt,useValue:i}],parent:e}),s=r.create(a),c=s.location.nativeElement;return o.scrollable&&c.classList.add("component-host-scrollable"),this._applicationRef.attachView(s.hostView),new K([[c]],s.hostView,s)}},{key:"_setAriaHidden",value:function(t){var e=this,n=t.parentElement;n&&t!==this._document.body&&(Array.from(n.children).forEach(function(n){n!==t&&"SCRIPT"!==n.nodeName&&(e._ariaHiddenValues.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}),this._setAriaHidden(n))}},{key:"_revertAriaHidden",value:function(){this._ariaHiddenValues.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}},{key:"_registerModalRef",value:function(t){var e=this,n=function(){var n=e._modalRefs.indexOf(t);n>-1&&(e._modalRefs.splice(n,1),e._activeInstances.emit(e._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(n,n)}},{key:"_registerWindowCmpt",value:function(t){var e=this;this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(function(){var n=e._windowCmpts.indexOf(t);n>-1&&(e._windowCmpts.splice(n,1),e._activeWindowCmptHasChanged.next())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.LFG(d.z2F),d.LFG(d.zs3),d.LFG(a.K0),d.LFG(tt),d.LFG(d.FYo),d.LFG(d.R0b))},e.\u0275prov=(0,d.Yz7)({factory:function(){return new e((0,d.LFG)(d.z2F),(0,d.LFG)(d.gxx),(0,d.LFG)(a.K0),(0,d.LFG)(tt),(0,d.LFG)(d.FYo),(0,d.LFG)(d.R0b))},token:e,providedIn:"root"}),e}(),st=function(){var t=function(){function t(e,n,i,r){o(this,t),this._moduleCFR=e,this._injector=n,this._modalStack=i,this._config=r}return i(t,[{key:"open",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),e);return this._modalStack.open(this._moduleCFR,this._injector,t,n)}},{key:"activeInstances",get:function(){return this._modalStack.activeInstances}},{key:"dismissAll",value:function(t){this._modalStack.dismissAll(t)}},{key:"hasOpenModals",value:function(){return this._modalStack.hasOpenModals()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.LFG(d._Vd),d.LFG(d.zs3),d.LFG(at),d.LFG($))},t.\u0275prov=(0,d.Yz7)({factory:function(){return new t((0,d.LFG)(d._Vd),(0,d.LFG)(d.gxx),(0,d.LFG)(at),(0,d.LFG)($))},token:t,providedIn:"root"}),t}(),ct=function(){var t=function t(){o(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({providers:[st]}),t}(),ut=function(){var t=function t(){o(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[[a.ez]]}),t}(),lt=function(){var t=function t(){o(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[[a.ez]]}),t}(),dt=function(){var t=function t(){o(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[[a.ez]]}),t}(),pt=function(){var t=function t(){o(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[[a.ez]]}),t}(),ht=function(){var t=function t(){o(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[[a.ez]]}),t}(),ft=function(){var t=function t(){o(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[[a.ez]]}),t}(),mt=function(){var t=function t(){o(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[[a.ez]]}),t}(),gt=function(){var t=function t(){o(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({}),t}();new d.OlP("live announcer delay",{providedIn:"root",factory:function(){return 100}});var vt,bt=function(){var t=function t(){o(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[[a.ez]]}),t}(),wt=[J,N,z,H,U,V,W,ct,ut,lt,dt,pt,ht,ft,mt,gt,bt],_t=function(){var t=function t(){o(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[wt,J,N,z,H,U,V,W,ct,ut,lt,dt,pt,ht,ft,mt,gt,bt]}),t}(),yt=r(43220),Ct=r(49983),kt=r(72458),Zt=r(25653),At=r(51095),xt=r(67441),Et=r(94881),Tt=((vt=function t(){o(this,t)}).\u0275fac=function(t){return new(t||vt)},vt.\u0275mod=d.oAB({type:vt}),vt.\u0275inj=d.cJS({providers:[{provide:kt.Ad,useValue:"pt"}],imports:[[a.ez,s.u5,c.Pc,h,_t,yt.FA,Ct.c,kt.XK,Zt.EC,Zt.Yy,Zt.K,Et._W,xt.LD,At.ot,s.UX]]}),vt)},94575:function(t,e,n){"use strict";n.d(e,{h:function(){return N}});var r=n(64762),a=n(37716),s=n(18119),c=n(44940),u=n(4528),l=n(16738),d=n(3679),p=n(25653),h=n(35957),f=n(80106),m=n(20985),g=n(84465),v=n(37556),b=n(72458),w=n(38583),_=n(98295),y=n(67441),C=n(49983),k=n(43220),Z=["picker"],A=["fim"],x=["inicio"],E=["occurrence"],T=["picker1"];function M(t,e){1&t&&a._UZ(0,"ion-progress-bar",66)}function S(t,e){1&t&&(a.TgZ(0,"div"),a._uU(1," Campo obrigat\xf3rio. "),a.qZA())}function R(t,e){1&t&&(a.TgZ(0,"div"),a._uU(1," O campo deve ter pelo menos 4 caracteres. "),a.qZA())}function O(t,e){if(1&t&&(a.TgZ(0,"div",68),a.YNc(1,S,2,0,"div",10),a.YNc(2,R,2,0,"div",10),a.qZA()),2&t){var n=a.oxw(2);a.xp6(1),a.Q6J("ngIf",null==n.Form.get("Subject").errors?null:n.Form.get("Subject").errors.required),a.xp6(1),a.Q6J("ngIf",null==n.Form.get("Subject").errors?null:n.Form.get("Subject").errors.minlength)}}function q(t,e){if(1&t&&(a.TgZ(0,"div"),a.YNc(1,O,3,2,"div",67),a.qZA()),2&t){var n=a.oxw();a.xp6(1),a.Q6J("ngIf",n.Form.get("Subject").invalid)}}function P(t,e){if(1&t){var n=a.EpF();a.TgZ(0,"div",39),a.TgZ(1,"div",12),a.TgZ(2,"div",13),a._UZ(3,"ion-icon",17),a.qZA(),a.TgZ(4,"div",69),a.NdJ("click",function(){return a.CHM(n),a.oxw().openLastOccurrence()}),a.TgZ(5,"mat-form-field",30),a._UZ(6,"input",70),a._UZ(7,"mat-datepicker-toggle",71),a._UZ(8,"ngx-mat-datetime-picker",33,72),a.qZA(),a.qZA(),a.qZA(),a.qZA()}if(2&t){var i=a.MAs(9),o=a.oxw();a.xp6(6),a.Q6J("ngxMatDatetimePicker",i)("formControl",o.dateControlOccurrence)("min",o.endMinDate)("disabled",o.disabled),a.xp6(1),a.Q6J("for",i),a.xp6(1),a.Q6J("showSpinners",o.showSpinners)("showSeconds",o.showSeconds)("stepHour",o.stepHour)("stepMinute",o.stepMinute)("stepSecond",o.stepSecond)("touchUi",o.touchUi)}}function D(t,e){1&t&&(a.TgZ(0,"ion-label",73),a._uU(1,"Adicionar intervenientes*"),a.qZA())}function F(t,e){if(1&t&&(a.TgZ(0,"ion-label"),a._uU(1),a.qZA()),2&t){var n=e.$implicit;a.xp6(1),a.Oqu(n.Name)}}function I(t,e){1&t&&(a.TgZ(0,"ion-label",73),a._uU(1,"Com conhecimento"),a.qZA())}function B(t,e){if(1&t&&(a.TgZ(0,"ion-label"),a._uU(1),a.qZA()),2&t){var n=e.$implicit;a.xp6(1),a.Oqu(n.Name)}}function j(t,e){if(1&t){var n=a.EpF();a.TgZ(0,"div",74),a.TgZ(1,"ion-list"),a.TgZ(2,"ion-item"),a.TgZ(3,"ion-label"),a.TgZ(4,"p",75),a.TgZ(5,"span",76),a._uU(6),a.qZA(),a.TgZ(7,"span",77),a._uU(8),a.qZA(),a.TgZ(9,"span",78),a.NdJ("click",function(){var t=a.CHM(n).index;return a.oxw().removeAttachment(t)}),a._UZ(10,"ion-icon",79),a.qZA(),a.qZA(),a.TgZ(11,"p"),a.TgZ(12,"span",80),a._uU(13),a.qZA(),a.TgZ(14,"span",81),a._uU(15),a.ALo(16,"date"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()}if(2&t){var i=e.$implicit;a.xp6(6),a.Oqu(i.Assunto),a.xp6(2),a.Oqu(i.appName),a.xp6(5),a.Oqu(i.EntidadeOrganicaNome),a.xp6(2),a.hij(" ",a.xi3(16,4,i.Data,"dd-MM-yyyy HH:mm")," ")}}var L=l||l,J={parse:{dateInput:"YYYY-MMMM-DD HH:mm"},display:{dateInput:"DD MMM YYYY H:mm",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},N=function(){var t=function(){function t(e,n,i,r,c,u){o(this,t),this.modalController=e,this.eventService=n,this.attachmentsService=i,this.toastService=r,this.userService=c,this.dateAdapter=u,this.segment="true",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.color="primary",this.taskParticipants=[],this.taskParticipantsCc=[],this.setIntervenient=new a.vpe,this.setIntervenientCC=new a.vpe,this.onAddEvent=new a.vpe,this.openAttendeesComponent=new a.vpe,this.clearContact=new a.vpe,this.GoBackEditOrAdd=new a.vpe,this.cloneAllmobileComponent=new a.vpe,this.documents=[],this.validateFrom=!1,this.options=[{value:!0,label:"True"},{value:!1,label:"False"}],this.listColors=["primary","accent","warn"],this.stepHours=[1,2,3,4,5],this.stepMinutes=[1,5,10,15,20,25],this.stepSeconds=[1,5,10,15,20,25],this.dateControlOccurrence=new d.NI(L("DD MM YYYY hh")),this.showLoader=!1,this.dateAdapter.setLocale("pt"),this.loggeduser=c.ValidatedUser,this.postEvent=new s.j,this.postEvent.StartDate=new Date,this.postEvent.EndDate=new Date((new Date).getTime()+9e5)}return i(t,[{key:"dateOccurrence",get:function(){return this.dateControlOccurrence.value}},{key:"ngOnInit",value:function(){var t=this;if(this.getRecurrenceTypes(),!this.restoreTemporaryData()){this.eventBody={BodyType:"1",Text:""},this.postEvent.Body=this.eventBody;var e=this.selectedDate,n=new Date(this.selectedDate);n.setMinutes(this.selectedDate.getMinutes()+30),this.postEvent={EventId:"",Subject:"",Body:this.eventBody,Location:"",CalendarId:"",CalendarName:"Oficial",StartDate:e,EndDate:new Date(n),EventType:"Reuni\xe3o",Attendees:null,IsMeeting:!1,IsRecurring:!1,AppointmentState:0,TimeZone:"",Organizer:"",Category:"Reuni\xe3o",HasAttachments:!1,EventRecurrence:{Type:"-1"}},null!=this.postEvent.Attendees&&this.postEvent.Attendees.forEach(function(e){e.IsRequired?t.taskParticipants.push(e):t.taskParticipantsCc.push(e)}),this.taskParticipants=(0,c.removeDuplicate)(this.taskParticipants),this.taskParticipantsCc=(0,c.removeDuplicate)(this.taskParticipantsCc),this.setIntervenient.emit(this.taskParticipants),this.setIntervenientCC.emit(this.taskParticipantsCc)}this.date=new Date(2021,9,4,5,6,7),this.getDatepickerData(),this.injectValidation()}},{key:"runValidation",value:function(){this.validateFrom=!0}},{key:"injectValidation",value:function(){if("number"==typeof this.postEvent.EventRecurrence.Type){var t=this.postEvent.EventRecurrence.Type.toString();this.postEvent.EventRecurrence.Type=t}this.Form=new d.cw({Subject:new d.NI(this.postEvent.Subject,[d.kI.required]),Location:new d.NI(this.postEvent.Location,[d.kI.required]),CalendarName:new d.NI(this.postEvent.CalendarName),Categories:new d.NI(this.postEvent.Category,[d.kI.required]),dateStart:new d.NI(this.postEvent.StartDate,[d.kI.required]),dateEnd:new d.NI(this.postEvent.EndDate,[d.kI.required]),dateOccurrence:new d.NI("-1"==this.postEvent.EventRecurrence.Type.toString()?["ok"]:this.dateOccurrence,[d.kI.required]),participantes:new d.NI(this.taskParticipants,[]),Date:new d.NI(new Date(this.postEvent.StartDate).getTime()<new Date(this.postEvent.EndDate).getTime()?"ok":null,[d.kI.required])})}},{key:"openInicio",value:function(){var t=document.querySelector("#new-inicio");t&&(console.log(t),t.click())}},{key:"openFim",value:function(){var t=document.querySelector("#new-fim");t&&t.click()}},{key:"openLastOccurrence",value:function(){var t=document.querySelector("#last-occurrence");t&&t.click()}},{key:"getDoc",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var e,n=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.modalController.create({component:u.Z,cssClass:"modal-width-100-width-background modal",componentProps:{type:"AccoesPresidenciais & ArquivoDespachoElect",showSearchInput:!0,select:!0}});case 2:return e=t.sent,t.next=5,e.present();case 5:e.onDidDismiss().then(function(t){t&&n.documents.push(t.data.selected)});case 6:case"end":return t.stop()}},t,this)}))}},{key:"close",value:function(){this.deleteTemporaryData(),this.cloneAllmobileComponent.emit(),this.clearContact.emit(),this.setIntervenient.emit([]),this.setIntervenientCC.emit([])}},{key:"getRecurrenceTypes",value:function(){var t=this;this.eventService.getRecurrenceTypes().subscribe(function(e){console.log(e),t.recurringTypes=e})}},{key:"onSelectedRecurringChanged",value:function(t){console.log(t),t.length>1&&(console.log(t.filter(function(t){return"-1"!=t})),this.postEvent.EventRecurrence.Type=t.filter(function(t){return"-1"!=t})),0==t.length&&(this.postEvent.EventRecurrence.Type="-1")}},{key:"getDatepickerData",value:function(){this.postEvent&&(this.postEvent.EventRecurrence.LastOccurrence=this.dateOccurrence)}},{key:"restoreDatepickerData",value:function(){this.postEvent&&(this.dateControlOccurrence=new d.NI(L(this.postEvent.EventRecurrence.LastOccurrence,"DD MM YYYY HH:mm")))}},{key:"save",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var e,n=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.injectValidation(),this.runValidation(),!this.Form.invalid){t.next=2;break}return t.abrupt("return",(console.log("not passed"),!1));case 2:this.getDatepickerData(),this.postEvent.Attendees=this.taskParticipants.concat(this.taskParticipantsCc),this.documents.length>=0&&(this.postEvent.HasAttachments=!0),"-1"!=this.selectedRecurringType&&(this.postEvent.EventRecurrence.Type=this.selectedRecurringType),null==this.postEvent.EventRecurrence.Type&&(this.postEvent.EventRecurrence.Type="-1"),"MDGPR"==this.loggeduser.Profile?(this.showLoader=!0,console.log(this.postEvent),e=this.toastService.loading(),console.log(this.postEvent),this.eventService.postEventMd(this.postEvent,this.postEvent.CalendarName).subscribe(function(t){return(0,r.mG)(n,void 0,void 0,regeneratorRuntime.mark(function n(){var i,o,r=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return e.remove(),this.showLoader=!1,i=t,o=this.documents.map(function(t){return{SourceTitle:t.Assunto,ParentId:i,Source:"1",SourceId:t.Id,ApplicationId:t.ApplicationType.toString(),Id:"",Link:"",SerialNumber:""}}),n.next=4,o.forEach(function(t,e){r.attachmentsService.setEventAttachmentById(t).subscribe(function(t){o.length==e+1&&r.afterSave()})});case 4:0==o.length&&this.afterSave(),this.toastService.successMessage("Evento criado");case 6:case"end":return n.stop()}},n,this)}))},function(t){e.remove(),n.showLoader=!1,n.toastService.badRequest("Evento n\xe3o criado")})):"PR"==this.loggeduser.Profile&&(console.log("PR - Aqui"),console.log(this.postEvent),this.eventService.postEventPr(this.postEvent,this.postEvent.CalendarName).subscribe(function(t){console.log(t);var e=t,i=n.documents.map(function(t){return{SourceTitle:t.Assunto,ParentId:e,Source:"1",SourceId:t.Id,ApplicationId:t.ApplicationType.toString(),Id:"",Link:"",SerialNumber:""}});i.forEach(function(t,e){n.attachmentsService.setEventAttachmentById(t).subscribe(function(t){i.length==e+1&&n.afterSave()})}),0==i.length&&n.afterSave(),n.toastService.successMessage("Evento criado")}));case 3:case"end":return t.stop()}},t,this)}))}},{key:"afterSave",value:function(){this.getDatepickerData(),this.deleteTemporaryData(),this.onAddEvent.emit(this.postEvent),this.GoBackEditOrAdd.emit(),this.setIntervenient.emit([]),this.setIntervenientCC.emit([])}},{key:"removeAttachment",value:function(t){this.documents=this.documents.filter(function(e,n){return t!=n})}},{key:"addParticipants",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.saveTemporaryData(),this.openAttendeesComponent.emit({type:"intervenient"}),this.clearContact.emit();case 1:case"end":return t.stop()}},t,this)}))}},{key:"addParticipantsCc",value:function(){return(0,r.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.saveTemporaryData(),this.openAttendeesComponent.emit({type:"CC"}),this.clearContact.emit();case 1:case"end":return t.stop()}},t,this)}))}},{key:"saveTemporaryData",value:function(){this.getDatepickerData(),window["temp.path:/home/agenda/new-event.component.ts"]={postEvent:this.postEvent,eventBody:this.eventBody,segment:this.segment}}},{key:"restoreTemporaryData",value:function(){var t=window["temp.path:/home/agenda/new-event.component.ts"];return"{}"!=JSON.stringify(t)&&null!=t&&(this.postEvent=t.postEvent,this.eventBody=t.eventBody,this.segment=t.segment,this.restoreDatepickerData(),!0)}},{key:"deleteTemporaryData",value:function(){window["temp.path:/home/agenda/new-event.component.ts"]={}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(h.IN),a.Y36(f.n),a.Y36(m.o),a.Y36(g.k),a.Y36(v.e),a.Y36(b._A))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-new-event"]],viewQuery:function(t,e){var n;(1&t&&(a.Gf(Z,5),a.Gf(A,5),a.Gf(x,5),a.Gf(E,5),a.Gf(T,5)),2&t)&&(a.iGM(n=a.CRH())&&(e.picker=n.first),a.iGM(n=a.CRH())&&(e.fim=n.first),a.iGM(n=a.CRH())&&(e.inicio=n.first),a.iGM(n=a.CRH())&&(e.occurrence=n.first),a.iGM(n=a.CRH())&&(e.picker1=n.first))},inputs:{profile:"profile",selectedSegment:"selectedSegment",selectedDate:"selectedDate",taskParticipants:"taskParticipants",taskParticipantsCc:"taskParticipantsCc"},outputs:{setIntervenient:"setIntervenient",setIntervenientCC:"setIntervenientCC",onAddEvent:"onAddEvent",openAttendeesComponent:"openAttendeesComponent",clearContact:"clearContact",GoBackEditOrAdd:"GoBackEditOrAdd",cloneAllmobileComponent:"cloneAllmobileComponent"},features:[a._Bn([{provide:p.ab,useValue:J}])],decls:122,vars:49,consts:[[1,"ion-no-border"],[1,"header-toolbar"],[1,"main-header"],[1,"title-content"],[1,"middle"],[1,"title"],["class","calendar-progress-bar","type","indeterminate",4,"ngIf"],[1,"main-content"],[1,"ion-item-container"],["type","text","placeholder","Assunto*",3,"ngModel","ngModelChange"],[4,"ngIf"],[1,"container-div"],[1,"ion-item-class-2","d-flex"],[1,"ion-icon-class"],["slot","start","src","assets/images/icons-location.svg"],[1,"ion-input-class","flex-grow-1","width-100"],["type","text","placeholder","Localiza\xe7\xe3o*",3,"ngModel","ngModelChange"],["slot","start","src","assets/images/icons-calendar.svg"],[1,"ion-input-class","flex-grow-1","justify-center","align-center","material-inputs"],["appearance","none","color","ion-color-secondary","placeholder","Selecione agenda",1,"width-100"],[3,"value","valueChange"],["value","Oficial"],["value","Pessoal"],["slot","start","src","assets/images/icons-description.svg"],["appearance","none","placeholder","Sample Type","required","",1,"width-100"],["value","Reuni\xe3o"],["value","Viagem"],["value","Confer\xeancia"],["value","Encontro"],[1,"ion-input-class","flex-grow-1","justify-center","align-center","material-inputs","materia-top"],[1,"date-hour-picker"],["matInput","","placeholder","Choose a date",3,"ngxMatDatetimePicker","ngModel","min","disabled","ngModelChange"],["id","new-inicio","matSuffix","",3,"for"],[3,"showSpinners","showSeconds","stepHour","stepMinute","stepSecond","touchUi"],["picker1",""],[1,"ion-input-class","flex-grow-1","justify-center","align-center","materia-top",3,"click"],["id","new-fim","matSuffix","",3,"for"],[3,"showSpinners","showSeconds","stepHour","stepMinute","stepSecond"],["fim",""],[1,"container-div","width-100"],["slot","start","src","assets/images/icons-refresh.svg"],[1,"ion-input-class","flex-grow-1"],["appearance","none","floatLabel","never","value","false","interface","action-sheet","required","",1,"width-100"],["placeholder","Selecione repeti\xe7\xe3o*",3,"ngModel","ngModelChange"],["class","container-div width-100",4,"ngIf"],["slot","start","src","assets/images/icons-person.svg"],[1,"ion-input-class-no-height","flex-grow-1"],[1,"list-people"],["lines","none"],["class","list-people-title",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"add-people","cursor-pointer",3,"click"],["slot","start","src","assets/images/icons-arrow-forward.svg"],["slot","start","src","assets/images/icons-people-cc.svg"],["placeholder","Detalhes",3,"ngModel","ngModelChange"],[1,"ion-item-container-no-border","cursor-pointer",3,"click"],[1,"attach-icon"],["src","assets/images/icons-attach-doc.svg"],[1,"attach-document"],["class","list ",4,"ngFor","ngForOf"],[1,"ion-no-border","px-20"],[1,"d-flex","justify-space-between"],["slot","start"],["fill","clear","color","#061b52",1,"btn-cancel",3,"click"],["slot","end"],["fill","clear","color","#fff",1,"btn-ok",3,"click"],["type","indeterminate",1,"calendar-progress-bar"],["class","input-errror-message",4,"ngIf"],[1,"input-errror-message"],[1,"ion-input-class","flex-grow-1",3,"click"],["matInput","","placeholder","Choose a date",3,"ngxMatDatetimePicker","formControl","min","disabled"],["id","last-occurrence","matSuffix","",3,"for"],["occurrrence",""],[1,"list-people-title"],[1,"list"],[1,"d-flex","ion-justify-content-between"],[1,"attach-title-item"],[1,"app-name"],[1,"close-button","text-black","cursor-pointer",3,"click"],["src","assets/images/icons-delete-25.svg",1,"font-20"],[1,"span-left"],[1,"span-right"]],template:function(t,e){if(1&t&&(a.TgZ(0,"ion-header",0),a.TgZ(1,"ion-toolbar",1),a.TgZ(2,"div",2),a.TgZ(3,"div",3),a.TgZ(4,"div",4),a.TgZ(5,"ion-label",5),a._uU(6,"Novo Evento"),a.qZA(),a.qZA(),a.qZA(),a.YNc(7,M,1,0,"ion-progress-bar",6),a.qZA(),a.qZA(),a.qZA(),a.TgZ(8,"ion-content"),a.TgZ(9,"div",7),a.TgZ(10,"div",8),a.TgZ(11,"ion-input",9),a.NdJ("ngModelChange",function(t){return e.postEvent.Subject=t}),a.qZA(),a.qZA(),a.YNc(12,q,2,1,"div",10),a.TgZ(13,"div",11),a.TgZ(14,"div",12),a.TgZ(15,"div",13),a._UZ(16,"ion-icon",14),a.qZA(),a.TgZ(17,"div",15),a.TgZ(18,"ion-input",16),a.NdJ("ngModelChange",function(t){return e.postEvent.Location=t}),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(19,"div",11),a.TgZ(20,"div",12),a.TgZ(21,"div",13),a._UZ(22,"ion-icon",17),a.qZA(),a.TgZ(23,"div",18),a.TgZ(24,"mat-form-field",19),a.TgZ(25,"mat-select",20),a.NdJ("valueChange",function(t){return e.postEvent.CalendarName=t}),a.TgZ(26,"mat-option",21),a._uU(27," Oficial "),a.qZA(),a.TgZ(28,"mat-option",22),a._uU(29," Pessoal "),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(30,"div",11),a.TgZ(31,"div",12),a.TgZ(32,"div",13),a._UZ(33,"ion-icon",23),a.qZA(),a.TgZ(34,"div",18),a.TgZ(35,"mat-form-field",24),a.TgZ(36,"mat-select",20),a.NdJ("valueChange",function(t){return e.postEvent.Category=t}),a.TgZ(37,"mat-option",25),a._uU(38," Reuni\xe3o "),a.qZA(),a.TgZ(39,"mat-option",26),a._uU(40," Viagem "),a.qZA(),a.TgZ(41,"mat-option",27),a._uU(42," Confer\xeancia "),a.qZA(),a.TgZ(43,"mat-option",28),a._uU(44," Encontro "),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(45,"div",11),a.TgZ(46,"div",12),a.TgZ(47,"div",13),a._UZ(48,"ion-icon",17),a.qZA(),a.TgZ(49,"div",29),a.TgZ(50,"mat-form-field",30),a.TgZ(51,"input",31),a.NdJ("ngModelChange",function(t){return e.postEvent.StartDate=t}),a.qZA(),a._UZ(52,"mat-datepicker-toggle",32),a._UZ(53,"ngx-mat-datetime-picker",33,34),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(55,"div",11),a.TgZ(56,"div",12),a.TgZ(57,"div",13),a._UZ(58,"ion-icon",17),a.qZA(),a.TgZ(59,"div",35),a.NdJ("click",function(){return e.openFim()}),a.TgZ(60,"mat-form-field",30),a.TgZ(61,"input",31),a.NdJ("ngModelChange",function(t){return e.postEvent.EndDate=t}),a.qZA(),a._UZ(62,"mat-datepicker-toggle",36),a._UZ(63,"ngx-mat-datetime-picker",37,38),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(65,"div",39),a.TgZ(66,"div",12),a.TgZ(67,"div",13),a._UZ(68,"ion-icon",40),a.qZA(),a.TgZ(69,"div",41),a.TgZ(70,"mat-form-field",42),a.TgZ(71,"mat-select",43),a.NdJ("ngModelChange",function(t){return e.postEvent.EventRecurrence.Type=t})("ngModelChange",function(t){return e.onSelectedRecurringChanged(t)}),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.YNc(72,P,10,11,"div",44),a.TgZ(73,"div",39),a.TgZ(74,"div",12),a.TgZ(75,"div",13),a._UZ(76,"ion-icon",45),a.qZA(),a.TgZ(77,"div",46),a.TgZ(78,"div",47),a.TgZ(79,"ion-item",48),a.TgZ(80,"ion-list"),a.YNc(81,D,2,0,"ion-label",49),a.YNc(82,F,2,1,"ion-label",50),a.qZA(),a.qZA(),a.qZA(),a.TgZ(83,"div",51),a.NdJ("click",function(){return e.addParticipants()}),a._UZ(84,"ion-icon",52),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(85,"div",11),a.TgZ(86,"div",12),a.TgZ(87,"div",13),a._UZ(88,"ion-icon",53),a.qZA(),a.TgZ(89,"div",46),a.TgZ(90,"div",47),a.TgZ(91,"ion-item",48),a.TgZ(92,"ion-list"),a.YNc(93,I,2,0,"ion-label",49),a.YNc(94,B,2,1,"ion-label",50),a.qZA(),a.qZA(),a.qZA(),a.TgZ(95,"div",51),a.NdJ("click",function(){return e.addParticipantsCc()}),a._UZ(96,"ion-icon",52),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(97,"div",11),a.TgZ(98,"div",12),a.TgZ(99,"div",13),a._UZ(100,"ion-icon",23),a.qZA(),a.TgZ(101,"div",46),a.TgZ(102,"ion-textarea",54),a.NdJ("ngModelChange",function(t){return e.postEvent.Body.Text=t}),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(103,"div",55),a.NdJ("click",function(){return e.getDoc()}),a.TgZ(104,"ion-label"),a.TgZ(105,"div",56),a._UZ(106,"ion-icon",57),a.qZA(),a.TgZ(107,"div",58),a.TgZ(108,"ion-label"),a._uU(109,"Adicionar documentos"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.YNc(110,j,17,7,"div",59),a.qZA(),a.qZA(),a.TgZ(111,"ion-footer",60),a.TgZ(112,"ion-toolbar",61),a.TgZ(113,"ion-buttons",62),a.TgZ(114,"ion-button",63),a.NdJ("click",function(){return e.close()}),a.TgZ(115,"ion-label"),a._uU(116,"Cancelar"),a.qZA(),a.qZA(),a.qZA(),a._UZ(117,"ion-title"),a.TgZ(118,"ion-buttons",64),a.TgZ(119,"ion-button",65),a.NdJ("click",function(){return e.save()}),a.TgZ(120,"ion-label"),a._uU(121,"Gravar"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&t){var n,i,o,r,s,c,u,l=a.MAs(54),d=a.MAs(64);a.xp6(7),a.Q6J("ngIf",e.showLoader),a.xp6(3),a.ekj("input-error",(null==e.Form||null==(n=e.Form.get("Subject"))?null:n.invalid)&&e.validateFrom),a.xp6(1),a.Q6J("ngModel",e.postEvent.Subject),a.xp6(1),a.Q6J("ngIf",e.Form&&e.validateFrom),a.xp6(5),a.ekj("input-error",(null==e.Form||null==(i=e.Form.get("Location"))?null:i.invalid)&&e.validateFrom),a.xp6(1),a.Q6J("ngModel",e.postEvent.Location),a.xp6(5),a.ekj("input-error",(null==e.Form||null==(o=e.Form.get("CalendarName"))?null:o.invalid)&&e.validateFrom),a.xp6(2),a.Q6J("value",e.postEvent.CalendarName),a.xp6(11),a.Q6J("value",e.postEvent.Category),a.xp6(15),a.Q6J("ngxMatDatetimePicker",l)("ngModel",e.postEvent.StartDate)("min",e.minDate)("disabled",e.disabled),a.xp6(1),a.Q6J("for",l),a.xp6(1),a.Q6J("showSpinners",e.showSpinners)("showSeconds",e.showSeconds)("stepHour",e.stepHour)("stepMinute",e.stepMinute)("stepSecond",e.stepSecond)("touchUi",e.touchUi),a.xp6(6),a.ekj("input-error",(null==e.Form||null==(r=e.Form.get("dateEnd"))?null:r.invalid)&&e.validateFrom),a.xp6(2),a.Q6J("ngxMatDatetimePicker",d)("ngModel",e.postEvent.EndDate)("min",e.endMinDate)("disabled",e.disabled),a.xp6(1),a.Q6J("for",d),a.xp6(1),a.Q6J("showSpinners",e.showSpinners)("showSeconds",e.showSeconds)("stepHour",e.stepHour)("stepMinute",e.stepMinute)("stepSecond",e.stepSecond),a.xp6(6),a.ekj("input-error",(null==e.Form||null==(s=e.Form.get("dateOccurrence"))?null:s.invalid)&&e.validateFrom),a.xp6(2),a.Q6J("ngModel",e.postEvent.EventRecurrence.Type),a.xp6(1),a.Q6J("ngIf","-1"!=e.postEvent.EventRecurrence.Type),a.xp6(5),a.ekj("input-error",(null==e.Form||null==(c=e.Form.get("participantes"))?null:c.invalid)&&e.validateFrom),a.xp6(4),a.Q6J("ngIf",0==e.taskParticipants.length),a.xp6(1),a.Q6J("ngForOf",e.taskParticipants),a.xp6(7),a.ekj("input-error",(null==e.Form||null==(u=e.Form.get("participantes"))?null:u.invalid)&&e.validateFrom),a.xp6(4),a.Q6J("ngIf",0==e.taskParticipantsCc.length),a.xp6(1),a.Q6J("ngForOf",e.taskParticipantsCc),a.xp6(8),a.Q6J("ngModel",e.postEvent.Body.Text),a.xp6(8),a.Q6J("ngForOf",e.documents)}},directives:[h.Gu,h.sr,h.Q$,w.O5,h.W2,h.pK,h.j9,d.JJ,d.On,h.gu,_.KE,y.gD,b.ey,C.Nt,p.g2,d.Fj,k.nW,_.R9,p.AB,h.Ie,h.q_,w.sg,h.g2,h.fr,h.Sm,h.YG,h.wd,h.X7,d.oH],pipes:[w.uU],styles:[".header-toolbar[_ngcontent-%COMP%], ion-content[_ngcontent-%COMP%]{--background:transparent}.header-toolbar[_ngcontent-%COMP%]{--opacity:1}.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%] .middle[_ngcontent-%COMP%]{padding:0!important;float:left;width:221px;margin:2.5px 0 0 5px}.main-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:25px}.main-content[_ngcontent-%COMP%]{width:100%;height:100%;font-family:Roboto;margin:0 auto;background-color:#fff;overflow:auto;padding:15px 20px 0}.main-content[_ngcontent-%COMP%] .ion-item-container[_ngcontent-%COMP%]{margin:15px auto;border:1px solid #ebebeb;border-radius:5px;padding-left:10px}.main-content[_ngcontent-%COMP%] .ion-item-container-no-border[_ngcontent-%COMP%]{width:100%;margin:0 auto;padding:0!important;overflow:auto}.main-content[_ngcontent-%COMP%] .container-div[_ngcontent-%COMP%]{margin-bottom:15px}.main-content[_ngcontent-%COMP%] .ion-item-class-2[_ngcontent-%COMP%]{margin:0 auto}.main-content[_ngcontent-%COMP%] .ion-icon-class[_ngcontent-%COMP%]{width:45px;height:45px;float:left;padding:10px;font-size:25px}.main-content[_ngcontent-%COMP%] ion-select[_ngcontent-%COMP%]{padding-left:5px;margin-left:0}.main-content[_ngcontent-%COMP%] .ion-input-class[_ngcontent-%COMP%]{height:45px;border:1px solid #ebebeb;border-radius:5px;padding-left:5px;padding-right:10px;float:left}.main-content[_ngcontent-%COMP%] .ion-input-class-no-height[_ngcontent-%COMP%]{border:1px solid #ebebeb;border-radius:5px;overflow:auto}.main-content[_ngcontent-%COMP%] .list-people[_ngcontent-%COMP%]{width:256px;float:left}.main-content[_ngcontent-%COMP%] .add-people[_ngcontent-%COMP%]{width:45px;float:right;overflow:auto;font-size:25px;padding:10px}.main-content[_ngcontent-%COMP%] .list-people-title[_ngcontent-%COMP%]{color:#a3a3a3}.main-content[_ngcontent-%COMP%] .attach-document[_ngcontent-%COMP%]{font-size:15px;color:#0d89d1;margin:5px 5px 5px 10px;padding:5px;float:left}.main-content[_ngcontent-%COMP%] .attach-icon[_ngcontent-%COMP%]{width:37px;font-size:35px;float:left}.main-content[_ngcontent-%COMP%] .attach-title-item[_ngcontent-%COMP%]{width:100%;font-size:15px;color:#0d89d1}.main-content[_ngcontent-%COMP%] .span-left[_ngcontent-%COMP%]{float:left;font-size:15x}.main-content[_ngcontent-%COMP%] .span-right[_ngcontent-%COMP%]{text-align:right;float:right;font-size:13px}.main-content[_ngcontent-%COMP%] .container-footer[_ngcontent-%COMP%]{margin:0 auto;overflow:auto}.main-content[_ngcontent-%COMP%] .button-cancel[_ngcontent-%COMP%]{--background:#e0e9ee;--color:#061b52}.main-content[_ngcontent-%COMP%] .button-cancel[_ngcontent-%COMP%], .main-content[_ngcontent-%COMP%] .button-save[_ngcontent-%COMP%]{width:170px;height:44px;border-radius:22.5px;margin:10px}.main-content[_ngcontent-%COMP%] .button-save[_ngcontent-%COMP%]{--background:#42b9fe;--color:#fff}.main-content[_ngcontent-%COMP%] .text-input[_ngcontent-%COMP%]{width:100%;border:1px solid #ebebeb;margin:0 15px 15px 0;padding:0!important;border-radius:5px}.main-content[_ngcontent-%COMP%] .error[_ngcontent-%COMP%]{color:red;font-size:12px;font-weight:700;padding-bottom:20px}.main-content[_ngcontent-%COMP%] .span-color[_ngcontent-%COMP%]{color:red}.container-div[_ngcontent-%COMP%] ion-textarea[_ngcontent-%COMP%]{height:81px}.app-name[_ngcontent-%COMP%]{background:#42b9f2;border-radius:18px;text-align:center;display:flex;align-items:center;padding:0 5px;color:#fff;font-size:9pt;font-weight:500;height:19px;-webkit-border-radius:18px;-moz-border-radius:18px;-ms-border-radius:18px;-o-border-radius:18px}.close-button[_ngcontent-%COMP%]{display:none}.list[_ngcontent-%COMP%]:hover .app-name[_ngcontent-%COMP%]{display:none}.list[_ngcontent-%COMP%]:hover .close-button[_ngcontent-%COMP%]{display:block!important}.materia-top[_ngcontent-%COMP%]{padding-top:7px}"]}),t}()}}])}(); |