(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[2138],{52138:function(t,e,n){"use strict";n.r(e),n.d(e,{NewEventPageModule:function(){return At}});var i=n(38583),o=n(3679),s=n(35957),a=n(39895),r=n(94575),c=n(37716);const d=[{path:"",component:r.h}];let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[a.Bz.forChild(d)],a.Bz]}),t})();var p=n(69165),h=n(59193),u=n(25917),m=n(79765),g=n(22759),f=n(46797),v=n(98085),_=(n(26215),n(9112),n(17757),n(21571)),b=(n(66682),n(86804)),w=n(46782),C=n(45435),Z=n(15257),A=n(88002),y=(n(39761),n(87519),n(43190)),x=n(68307),E=n(57057);n(65792),n(19773),n(13653),n(78345);const M=["*"],T=["dialog"];function k(t){return null!=t}function S(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){let 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});const R={animation:!0,transitionTimerDelayMs:5};let q=(()=>{class t{constructor(){this.animation=R.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,c.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const O=()=>{},{transitionTimerDelayMs:P}=R,D=new Map,F=(t,e,n,i)=>{let o=i.context||{};const s=D.get(e);if(s)switch(i.runningTransition){case"continue":return h.E;case"stop":t.run(()=>s.transition$.complete()),o=Object.assign(s.context,o),D.delete(e)}const a=n(e,i.animation,o)||O;if(!i.animation||"none"===window.getComputedStyle(e).transitionProperty)return t.run(()=>a()),(0,u.of)(void 0).pipe(function(t){return e=>new p.y(n=>e.subscribe(e=>t.run(()=>n.next(e)),e=>t.run(()=>n.error(e)),()=>t.run(()=>n.complete())))}(t));const r=new m.xQ,c=new m.xQ,d=r.pipe((0,b.l)(!0));D.set(e,{transition$:r,complete:()=>{c.next(),c.complete()},context:o});const l=function(t){const{transitionDelay:e,transitionDuration:n}=window.getComputedStyle(t);return 1e3*(parseFloat(e)+parseFloat(n))}(e);return t.runOutsideAngular(()=>{const n=(0,g.R)(e,"transitionend").pipe((0,w.R)(d),(0,C.h)(({target:t})=>t===e)),i=(0,f.H)(l+P).pipe((0,w.R)(d));(0,v.S3)(i,n,c).pipe((0,w.R)(d)).subscribe(()=>{D.delete(e),t.run(()=>{a(),r.next(),r.complete()})})}),r.asObservable()};let I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[i.ez]]}),t})(),B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[i.ez]]}),t})(),L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({}),t})(),j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[i.ez]]}),t})(),J=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({}),t})();var N=(()=>(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"}(N||(N={})),N))();"undefined"!=typeof navigator&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const z=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function H(t){const e=Array.from(t.querySelectorAll(z)).filter(t=>-1!==t.tabIndex);return[e[0],e[e.length-1]]}new class{getAllStyles(t){return window.getComputedStyle(t)}getStyle(t,e){return this.getAllStyles(t)[e]}isStaticPositioned(t){return"static"===(this.getStyle(t,"position")||"static")}offsetParent(t){let e=t.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(t,e=!0){let n,i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n=t.getBoundingClientRect(),n={top:n.top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{const e=this.offsetParent(t);n=this.offset(t,!1),e!==document.documentElement&&(i=this.offset(e,!1)),i.top+=e.clientTop,i.left+=e.clientLeft}return n.top-=i.top,n.bottom-=i.top,n.left-=i.left,n.right-=i.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n}offset(t,e=!0){const n=t.getBoundingClientRect(),i=window.pageYOffset-document.documentElement.clientTop,o=window.pageXOffset-document.documentElement.clientLeft;let s={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&&(s.height=Math.round(s.height),s.width=Math.round(s.width),s.top=Math.round(s.top),s.bottom=Math.round(s.bottom),s.left=Math.round(s.left),s.right=Math.round(s.right)),s}positionElements(t,e,n,i){const[o="top",s="center"]=n.split("-"),a=i?this.offset(t,!1):this.position(t,!1),r=this.getAllStyles(e),c=parseFloat(r.marginTop),d=parseFloat(r.marginBottom),l=parseFloat(r.marginLeft),p=parseFloat(r.marginRight);let h=0,u=0;switch(o){case"top":h=a.top-(e.offsetHeight+c+d);break;case"bottom":h=a.top+a.height;break;case"left":u=a.left-(e.offsetWidth+l+p);break;case"right":u=a.left+a.width}switch(s){case"top":h=a.top;break;case"bottom":h=a.top+a.height-e.offsetHeight;break;case"left":u=a.left;break;case"right":u=a.left+a.width-e.offsetWidth;break;case"center":"top"===o||"bottom"===o?u=a.left+a.width/2-e.offsetWidth/2:h=a.top+a.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(u)}px, ${Math.round(h)}px)`;const m=e.getBoundingClientRect(),g=document.documentElement,f=window.innerHeight||g.clientHeight,v=window.innerWidth||g.clientWidth;return m.left>=0&&m.top>=0&&m.right<=v&&m.bottom<=f}},new Date(1882,10,12),new Date(2174,10,25);let U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[i.ez,o.u5]]}),t})(),Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({}),t})(),G=(()=>{class t{constructor(t){this._ngbConfig=t,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return t.\u0275fac=function(e){return new(e||t)(c.LFG(q))},t.\u0275prov=(0,c.Yz7)({factory:function(){return new t((0,c.LFG)(q))},token:t,providedIn:"root"}),t})();class Q{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}const V=()=>{};let W=(()=>{class t{constructor(t){this._document=t}compensate(){const t=this._getWidth();return this._isPresent(t)?this._adjustBody(t):V}_adjustBody(t){const e=this._document.body,n=e.style.paddingRight,i=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]=`${i+t}px`,()=>e.style["padding-right"]=n}_isPresent(t){const e=this._document.body.getBoundingClientRect();return window.innerWidth-(e.left+e.right)>=t-.1*t}_getWidth(){const t=this._document.createElement("div");t.className="modal-scrollbar-measure";const e=this._document.body;e.appendChild(t);const n=t.getBoundingClientRect().width-t.clientWidth;return e.removeChild(t),n}}return t.\u0275fac=function(e){return new(e||t)(c.LFG(i.K0))},t.\u0275prov=(0,c.Yz7)({factory:function(){return new t((0,c.LFG)(i.K0))},token:t,providedIn:"root"}),t})(),$=(()=>{class t{constructor(t,e){this._el=t,this._zone=e}ngOnInit(){this._zone.onStable.asObservable().pipe((0,Z.q)(1)).subscribe(()=>{F(this._zone,this._el.nativeElement,(t,e)=>{e&&S(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return F(this._zone,this._el.nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(c.SBq),c.Y36(c.R0b))},t.\u0275cmp=c.Xpm({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(t,e){2&t&&(c.Tol("modal-backdrop"+(e.backdropClass?" "+e.backdropClass:"")),c.ekj("show",!e.animation)("fade",e.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})();class K{close(t){}dismiss(t){}}class X{constructor(t,e,n,i){this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=n,this._beforeDismiss=i,this._closed=new m.xQ,this._dismissed=new m.xQ,this._hidden=new m.xQ,t.instance.dismissEvent.subscribe(t=>{this.dismiss(t)}),this.result=new Promise((t,e)=>{this._resolve=t,this._reject=e}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe((0,w.R)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe((0,w.R)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(t){this._windowCmptRef&&(this._closed.next(t),this._resolve(t),this._removeModalElements())}_dismiss(t){this._dismissed.next(t),this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(e=>{!1!==e&&this._dismiss(t)},()=>{}):!1!==e&&this._dismiss(t)}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,u.of)(void 0);t.subscribe(()=>{const{nativeElement:t}=this._windowCmptRef.location;t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:t}=this._backdropCmptRef.location;t.parentNode.removeChild(t),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),(0,_.$R)(t,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var tt=(()=>(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(tt||(tt={})),tt))();let et=(()=>{class t{constructor(t,e,n){this._document=t,this._elRef=e,this._zone=n,this._closed$=new m.xQ,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new c.vpe,this.shown=new m.xQ,this.hidden=new m.xQ}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,Z.q)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,e={animation:this.animation,runningTransition:"stop"},n=F(this._zone,t,()=>t.classList.remove("show"),e),i=F(this._zone,this._dialogEl.nativeElement,()=>{},e),o=(0,_.$R)(n,i);return o.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),o}_show(){const t={animation:this.animation,runningTransition:"continue"},e=F(this._zone,this._elRef.nativeElement,(t,e)=>{e&&S(t),t.classList.add("show")},t),n=F(this._zone,this._dialogEl.nativeElement,()=>{},t);(0,_.$R)(e,n).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{(0,g.R)(t,"keydown").pipe((0,w.R)(this._closed$),(0,C.h)(t=>t.which===N.Escape)).subscribe(t=>{this.keyboard?requestAnimationFrame(()=>{t.defaultPrevented||this._zone.run(()=>this.dismiss(tt.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let e=!1;(0,g.R)(this._dialogEl.nativeElement,"mousedown").pipe((0,w.R)(this._closed$),(0,x.b)(()=>e=!1),(0,y.w)(()=>(0,g.R)(t,"mouseup").pipe((0,w.R)(this._closed$),(0,Z.q)(1))),(0,C.h)(({target:e})=>t===e)).subscribe(()=>{e=!0}),(0,g.R)(t,"click").pipe((0,w.R)(this._closed$)).subscribe(({target:n})=>{t===n&&("static"===this.backdrop?this._bumpBackdrop():!0!==this.backdrop||e||this._zone.run(()=>this.dismiss(tt.BACKDROP_CLICK))),e=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){const e=t.querySelector("[ngbAutofocus]"),n=H(t)[0];(e||n||t).focus()}}_restoreFocus(){const t=this._document.body,e=this._elWithFocus;let n;n=e&&e.focus&&t.contains(e)?e:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&F(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(i.K0),c.Y36(c.SBq),c.Y36(c.R0b))},t.\u0275cmp=c.Xpm({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(t,e){if(1&t&&c.Gf(T,7),2&t){let t;c.iGM(t=c.CRH())&&(e._dialogEl=t.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,e){2&t&&(c.uIk("aria-modal",!0)("aria-labelledby",e.ariaLabelledBy)("aria-describedby",e.ariaDescribedBy),c.Tol("modal d-block"+(e.windowClass?" "+e.windowClass:"")),c.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:M,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,e){1&t&&(c.F$t(),c.TgZ(0,"div",0,1),c.TgZ(2,"div",2),c.Hsn(3),c.qZA(),c.qZA()),2&t&&c.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})(),nt=(()=>{class t{constructor(t,e,n,i,o,s){this._applicationRef=t,this._injector=e,this._document=n,this._scrollBar=i,this._rendererFactory=o,this._ngZone=s,this._activeWindowCmptHasChanged=new m.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 c.vpe,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const t=this._windowCmpts[this._windowCmpts.length-1];((t,e,n,i=!1)=>{this._ngZone.runOutsideAngular(()=>{const t=(0,g.R)(e,"focusin").pipe((0,w.R)(n),(0,A.U)(t=>t.target));(0,g.R)(e,"keydown").pipe((0,w.R)(n),(0,C.h)(t=>t.which===N.Tab),(0,E.M)(t)).subscribe(([t,n])=>{const[i,o]=H(e);n!==i&&n!==e||!t.shiftKey||(o.focus(),t.preventDefault()),n!==o||t.shiftKey||(i.focus(),t.preventDefault())}),i&&(0,g.R)(e,"click").pipe((0,w.R)(n),(0,E.M)(t),(0,A.U)(t=>t[1])).subscribe(t=>t.focus())})})(0,t.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(t.location.nativeElement)}})}open(t,e,n,i){const o=i.container instanceof HTMLElement?i.container:k(i.container)?this._document.querySelector(i.container):this._document.body,s=this._rendererFactory.createRenderer(null,null),a=this._scrollBar.compensate(),r=()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!o)throw new Error(`The specified modal container "${i.container||"body"}" was not found in the DOM.`);const c=new K,d=this._getContentRef(t,i.injector||e,n,c,i);let l=!1!==i.backdrop?this._attachBackdrop(t,o):void 0,p=this._attachWindowComponent(t,o,d),h=new X(p,d,l,i.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(p),h.result.then(a,a),h.result.then(r,r),c.close=t=>{h.close(t)},c.dismiss=t=>{h.dismiss(t)},this._applyWindowOptions(p.instance,i),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),l&&l.instance&&(this._applyBackdropOptions(l.instance,i),l.changeDetectorRef.detectChanges()),p.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(e=>e.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t,e){let n=t.resolveComponentFactory($).create(this._injector);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n}_attachWindowComponent(t,e,n){let i=t.resolveComponentFactory(et).create(this._injector,n.nodes);return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_applyWindowOptions(t,e){this._windowAttributes.forEach(n=>{k(e[n])&&(t[n]=e[n])})}_applyBackdropOptions(t,e){this._backdropAttributes.forEach(n=>{k(e[n])&&(t[n]=e[n])})}_getContentRef(t,e,n,i,o){return n?n instanceof c.Rgc?this._createFromTemplateRef(n,i):"string"==typeof n?this._createFromString(n):this._createFromComponent(t,e,n,i,o):new Q([])}_createFromTemplateRef(t,e){const n=t.createEmbeddedView({$implicit:e,close(t){e.close(t)},dismiss(t){e.dismiss(t)}});return this._applicationRef.attachView(n),new Q([n.rootNodes],n)}_createFromString(t){const e=this._document.createTextNode(`${t}`);return new Q([[e]])}_createFromComponent(t,e,n,i,o){const s=t.resolveComponentFactory(n),a=c.zs3.create({providers:[{provide:K,useValue:i}],parent:e}),r=s.create(a),d=r.location.nativeElement;return o.scrollable&&d.classList.add("component-host-scrollable"),this._applicationRef.attachView(r.hostView),new Q([[d]],r.hostView,r)}_setAriaHidden(t){const e=t.parentElement;e&&t!==this._document.body&&(Array.from(e.children).forEach(e=>{e!==t&&"SCRIPT"!==e.nodeName&&(this._ariaHiddenValues.set(e,e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}),this._setAriaHidden(e))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const e=()=>{const e=this._modalRefs.indexOf(t);e>-1&&(this._modalRefs.splice(e,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(e,e)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const e=this._windowCmpts.indexOf(t);e>-1&&(this._windowCmpts.splice(e,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(c.LFG(c.z2F),c.LFG(c.zs3),c.LFG(i.K0),c.LFG(W),c.LFG(c.FYo),c.LFG(c.R0b))},t.\u0275prov=(0,c.Yz7)({factory:function(){return new t((0,c.LFG)(c.z2F),(0,c.LFG)(c.gxx),(0,c.LFG)(i.K0),(0,c.LFG)(W),(0,c.LFG)(c.FYo),(0,c.LFG)(c.R0b))},token:t,providedIn:"root"}),t})(),it=(()=>{class t{constructor(t,e,n,i){this._moduleCFR=t,this._injector=e,this._modalStack=n,this._config=i}open(t,e={}){const n=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),e);return this._modalStack.open(this._moduleCFR,this._injector,t,n)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(c.LFG(c._Vd),c.LFG(c.zs3),c.LFG(nt),c.LFG(G))},t.\u0275prov=(0,c.Yz7)({factory:function(){return new t((0,c.LFG)(c._Vd),(0,c.LFG)(c.gxx),(0,c.LFG)(nt),(0,c.LFG)(G))},token:t,providedIn:"root"}),t})(),ot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({providers:[it]}),t})(),st=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[i.ez]]}),t})(),at=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[i.ez]]}),t})(),rt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[i.ez]]}),t})(),ct=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[i.ez]]}),t})(),dt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[i.ez]]}),t})(),lt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[i.ez]]}),t})(),pt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[i.ez]]}),t})(),ht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({}),t})();new c.OlP("live announcer delay",{providedIn:"root",factory:function(){return 100}});let ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[[i.ez]]}),t})();const mt=[I,B,L,j,J,U,Y,ot,st,at,rt,ct,dt,lt,pt,ht,ut];let gt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({imports:[mt,I,B,L,j,J,U,Y,ot,st,at,rt,ct,dt,lt,pt,ht,ut]}),t})();var ft=n(43220),vt=n(49983),_t=n(72458),bt=n(25653),wt=n(51095),Ct=n(67441),Zt=n(94881);let At=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({providers:[{provide:_t.Ad,useValue:"pt"}],imports:[[i.ez,o.u5,s.Pc,l,gt,ft.FA,vt.c,_t.XK,bt.EC,bt.Yy,bt.K,Zt._W,Ct.LD,wt.ot,o.UX]]}),t})()},94575:function(t,e,n){"use strict";n.d(e,{h:function(){return j}});var i=n(64762),o=n(37716),s=n(18119),a=n(44940),r=n(4528),c=n(16738),d=n(3679),l=n(25653),p=n(35957),h=n(80106),u=n(20985),m=n(84465),g=n(37556),f=n(72458),v=n(38583),_=n(98295),b=n(67441),w=n(49983),C=n(43220);const Z=["picker"],A=["fim"],y=["inicio"],x=["occurrence"],E=["picker1"];function M(t,e){1&t&&o._UZ(0,"ion-progress-bar",66)}function T(t,e){1&t&&(o.TgZ(0,"div"),o._uU(1," Campo obrigat\xf3rio. "),o.qZA())}function k(t,e){1&t&&(o.TgZ(0,"div"),o._uU(1," O campo deve ter pelo menos 4 caracteres. "),o.qZA())}function S(t,e){if(1&t&&(o.TgZ(0,"div",68),o.YNc(1,T,2,0,"div",10),o.YNc(2,k,2,0,"div",10),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Q6J("ngIf",null==t.Form.get("Subject").errors?null:t.Form.get("Subject").errors.required),o.xp6(1),o.Q6J("ngIf",null==t.Form.get("Subject").errors?null:t.Form.get("Subject").errors.minlength)}}function R(t,e){if(1&t&&(o.TgZ(0,"div"),o.YNc(1,S,3,2,"div",67),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngIf",t.Form.get("Subject").invalid)}}function q(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",39),o.TgZ(1,"div",12),o.TgZ(2,"div",13),o._UZ(3,"ion-icon",17),o.qZA(),o.TgZ(4,"div",69),o.NdJ("click",function(){return o.CHM(t),o.oxw().openLastOccurrence()}),o.TgZ(5,"mat-form-field",30),o._UZ(6,"input",70),o._UZ(7,"mat-datepicker-toggle",71),o._UZ(8,"ngx-mat-datetime-picker",33,72),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&t){const t=o.MAs(9),e=o.oxw();o.xp6(6),o.Q6J("ngxMatDatetimePicker",t)("formControl",e.dateControlOccurrence)("min",e.endMinDate)("disabled",e.disabled),o.xp6(1),o.Q6J("for",t),o.xp6(1),o.Q6J("showSpinners",e.showSpinners)("showSeconds",e.showSeconds)("stepHour",e.stepHour)("stepMinute",e.stepMinute)("stepSecond",e.stepSecond)("touchUi",e.touchUi)}}function O(t,e){1&t&&(o.TgZ(0,"ion-label",73),o._uU(1,"Adicionar intervenientes*"),o.qZA())}function P(t,e){if(1&t&&(o.TgZ(0,"ion-label"),o._uU(1),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(t.Name)}}function D(t,e){1&t&&(o.TgZ(0,"ion-label",73),o._uU(1,"Com conhecimento"),o.qZA())}function F(t,e){if(1&t&&(o.TgZ(0,"ion-label"),o._uU(1),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(t.Name)}}function I(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",74),o.TgZ(1,"ion-list"),o.TgZ(2,"ion-item"),o.TgZ(3,"ion-label"),o.TgZ(4,"p",75),o.TgZ(5,"span",76),o._uU(6),o.qZA(),o.TgZ(7,"span",77),o._uU(8),o.qZA(),o.TgZ(9,"span",78),o.NdJ("click",function(){const e=o.CHM(t).index;return o.oxw().removeAttachment(e)}),o._UZ(10,"ion-icon",79),o.qZA(),o.qZA(),o.TgZ(11,"p"),o.TgZ(12,"span",80),o._uU(13),o.qZA(),o.TgZ(14,"span",81),o._uU(15),o.ALo(16,"date"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&t){const t=e.$implicit;o.xp6(6),o.Oqu(t.Assunto),o.xp6(2),o.Oqu(t.appName),o.xp6(5),o.Oqu(t.EntidadeOrganicaNome),o.xp6(2),o.hij(" ",o.xi3(16,4,t.Data,"dd-MM-yyyy HH:mm")," ")}}const B=c||c,L={parse:{dateInput:"YYYY-MMMM-DD HH:mm"},display:{dateInput:"DD MMM YYYY H:mm",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let j=(()=>{class t{constructor(t,e,n,i,a,r){this.modalController=t,this.eventService=e,this.attachmentsService=n,this.toastService=i,this.userService=a,this.dateAdapter=r,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 o.vpe,this.setIntervenientCC=new o.vpe,this.onAddEvent=new o.vpe,this.openAttendeesComponent=new o.vpe,this.clearContact=new o.vpe,this.GoBackEditOrAdd=new o.vpe,this.cloneAllmobileComponent=new o.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(B("DD MM YYYY hh")),this.showLoader=!1,this.dateAdapter.setLocale("pt"),this.loggeduser=a.ValidatedUser,this.postEvent=new s.j,this.postEvent.StartDate=new Date,this.postEvent.EndDate=new Date((new Date).getTime()+9e5)}get dateOccurrence(){return this.dateControlOccurrence.value}ngOnInit(){if(this.getRecurrenceTypes(),!this.restoreTemporaryData()){this.eventBody={BodyType:"1",Text:""},this.postEvent.Body=this.eventBody;let t=this.selectedDate,e=new Date(this.selectedDate);e.setMinutes(this.selectedDate.getMinutes()+30),this.postEvent={EventId:"",Subject:"",Body:this.eventBody,Location:"",CalendarId:"",CalendarName:"Oficial",StartDate:t,EndDate:new Date(e),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(t=>{t.IsRequired?this.taskParticipants.push(t):this.taskParticipantsCc.push(t)}),this.taskParticipants=(0,a.removeDuplicate)(this.taskParticipants),this.taskParticipantsCc=(0,a.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()}runValidation(){this.validateFrom=!0}injectValidation(){if("number"==typeof this.postEvent.EventRecurrence.Type){const 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(){t&&this.documents.push(t.data.selected)})})}close(){this.deleteTemporaryData(),this.cloneAllmobileComponent.emit(),this.clearContact.emit(),this.setIntervenient.emit([]),this.setIntervenientCC.emit([])}getRecurrenceTypes(){this.eventService.getRecurrenceTypes().subscribe(t=>{console.log(t),this.recurringTypes=t})}onSelectedRecurringChanged(t){console.log(t),t.length>1&&(console.log(t.filter(t=>"-1"!=t)),this.postEvent.EventRecurrence.Type=t.filter(t=>"-1"!=t)),0==t.length&&(this.postEvent.EventRecurrence.Type="-1")}getDatepickerData(){this.postEvent&&(this.postEvent.EventRecurrence.LastOccurrence=this.dateOccurrence)}restoreDatepickerData(){this.postEvent&&(this.dateControlOccurrence=new d.NI(B(this.postEvent.EventRecurrence.LastOccurrence,"DD MM YYYY HH:mm")))}save(){return(0,i.mG)(this,void 0,void 0,function*(){if(this.injectValidation(),this.runValidation(),this.Form.invalid)return console.log("not passed"),!1;if(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);let t=this.toastService.loading();console.log(this.postEvent),this.eventService.postEventMd(this.postEvent,this.postEvent.CalendarName).subscribe(e=>(0,i.mG)(this,void 0,void 0,function*(){t.remove(),this.showLoader=!1;const n=e,i=this.documents.map(t=>({SourceTitle:t.Assunto,ParentId:n,Source:"1",SourceId:t.Id,ApplicationId:t.ApplicationType.toString(),Id:"",Link:"",SerialNumber:""}));yield i.forEach((t,e)=>{this.attachmentsService.setEventAttachmentById(t).subscribe(t=>{i.length==e+1&&this.afterSave()})}),0==i.length&&this.afterSave(),this.toastService.successMessage("Evento criado")}),e=>{t.remove(),this.showLoader=!1,this.toastService.badRequest("Evento n\xe3o criado")})}else"PR"==this.loggeduser.Profile&&(console.log("PR - Aqui"),console.log(this.postEvent),this.eventService.postEventPr(this.postEvent,this.postEvent.CalendarName).subscribe(t=>{console.log(t);const e=t,n=this.documents.map(t=>({SourceTitle:t.Assunto,ParentId:e,Source:"1",SourceId:t.Id,ApplicationId:t.ApplicationType.toString(),Id:"",Link:"",SerialNumber:""}));n.forEach((t,e)=>{this.attachmentsService.setEventAttachmentById(t).subscribe(t=>{n.length==e+1&&this.afterSave()})}),0==n.length&&this.afterSave(),this.toastService.successMessage("Evento criado")}))})}afterSave(){this.getDatepickerData(),this.deleteTemporaryData(),this.onAddEvent.emit(this.postEvent),this.GoBackEditOrAdd.emit(),this.setIntervenient.emit([]),this.setIntervenientCC.emit([])}removeAttachment(t){this.documents=this.documents.filter((e,n)=>t!=n)}addParticipants(){return(0,i.mG)(this,void 0,void 0,function*(){this.saveTemporaryData(),this.openAttendeesComponent.emit({type:"intervenient"}),this.clearContact.emit()})}addParticipantsCc(){return(0,i.mG)(this,void 0,void 0,function*(){this.saveTemporaryData(),this.openAttendeesComponent.emit({type:"CC"}),this.clearContact.emit()})}saveTemporaryData(){this.getDatepickerData(),window["temp.path:/home/agenda/new-event.component.ts"]={postEvent:this.postEvent,eventBody:this.eventBody,segment:this.segment}}restoreTemporaryData(){const 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)}deleteTemporaryData(){window["temp.path:/home/agenda/new-event.component.ts"]={}}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(p.IN),o.Y36(h.n),o.Y36(u.o),o.Y36(m.k),o.Y36(g.e),o.Y36(f._A))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-new-event"]],viewQuery:function(t,e){if(1&t&&(o.Gf(Z,5),o.Gf(A,5),o.Gf(y,5),o.Gf(x,5),o.Gf(E,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.picker=t.first),o.iGM(t=o.CRH())&&(e.fim=t.first),o.iGM(t=o.CRH())&&(e.inicio=t.first),o.iGM(t=o.CRH())&&(e.occurrence=t.first),o.iGM(t=o.CRH())&&(e.picker1=t.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:[o._Bn([{provide:l.ab,useValue:L}])],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&&(o.TgZ(0,"ion-header",0),o.TgZ(1,"ion-toolbar",1),o.TgZ(2,"div",2),o.TgZ(3,"div",3),o.TgZ(4,"div",4),o.TgZ(5,"ion-label",5),o._uU(6,"Novo Evento"),o.qZA(),o.qZA(),o.qZA(),o.YNc(7,M,1,0,"ion-progress-bar",6),o.qZA(),o.qZA(),o.qZA(),o.TgZ(8,"ion-content"),o.TgZ(9,"div",7),o.TgZ(10,"div",8),o.TgZ(11,"ion-input",9),o.NdJ("ngModelChange",function(t){return e.postEvent.Subject=t}),o.qZA(),o.qZA(),o.YNc(12,R,2,1,"div",10),o.TgZ(13,"div",11),o.TgZ(14,"div",12),o.TgZ(15,"div",13),o._UZ(16,"ion-icon",14),o.qZA(),o.TgZ(17,"div",15),o.TgZ(18,"ion-input",16),o.NdJ("ngModelChange",function(t){return e.postEvent.Location=t}),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(19,"div",11),o.TgZ(20,"div",12),o.TgZ(21,"div",13),o._UZ(22,"ion-icon",17),o.qZA(),o.TgZ(23,"div",18),o.TgZ(24,"mat-form-field",19),o.TgZ(25,"mat-select",20),o.NdJ("valueChange",function(t){return e.postEvent.CalendarName=t}),o.TgZ(26,"mat-option",21),o._uU(27," Oficial "),o.qZA(),o.TgZ(28,"mat-option",22),o._uU(29," Pessoal "),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(30,"div",11),o.TgZ(31,"div",12),o.TgZ(32,"div",13),o._UZ(33,"ion-icon",23),o.qZA(),o.TgZ(34,"div",18),o.TgZ(35,"mat-form-field",24),o.TgZ(36,"mat-select",20),o.NdJ("valueChange",function(t){return e.postEvent.Category=t}),o.TgZ(37,"mat-option",25),o._uU(38," Reuni\xe3o "),o.qZA(),o.TgZ(39,"mat-option",26),o._uU(40," Viagem "),o.qZA(),o.TgZ(41,"mat-option",27),o._uU(42," Confer\xeancia "),o.qZA(),o.TgZ(43,"mat-option",28),o._uU(44," Encontro "),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(45,"div",11),o.TgZ(46,"div",12),o.TgZ(47,"div",13),o._UZ(48,"ion-icon",17),o.qZA(),o.TgZ(49,"div",29),o.TgZ(50,"mat-form-field",30),o.TgZ(51,"input",31),o.NdJ("ngModelChange",function(t){return e.postEvent.StartDate=t}),o.qZA(),o._UZ(52,"mat-datepicker-toggle",32),o._UZ(53,"ngx-mat-datetime-picker",33,34),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(55,"div",11),o.TgZ(56,"div",12),o.TgZ(57,"div",13),o._UZ(58,"ion-icon",17),o.qZA(),o.TgZ(59,"div",35),o.NdJ("click",function(){return e.openFim()}),o.TgZ(60,"mat-form-field",30),o.TgZ(61,"input",31),o.NdJ("ngModelChange",function(t){return e.postEvent.EndDate=t}),o.qZA(),o._UZ(62,"mat-datepicker-toggle",36),o._UZ(63,"ngx-mat-datetime-picker",37,38),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(65,"div",39),o.TgZ(66,"div",12),o.TgZ(67,"div",13),o._UZ(68,"ion-icon",40),o.qZA(),o.TgZ(69,"div",41),o.TgZ(70,"mat-form-field",42),o.TgZ(71,"mat-select",43),o.NdJ("ngModelChange",function(t){return e.postEvent.EventRecurrence.Type=t})("ngModelChange",function(t){return e.onSelectedRecurringChanged(t)}),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.YNc(72,q,10,11,"div",44),o.TgZ(73,"div",39),o.TgZ(74,"div",12),o.TgZ(75,"div",13),o._UZ(76,"ion-icon",45),o.qZA(),o.TgZ(77,"div",46),o.TgZ(78,"div",47),o.TgZ(79,"ion-item",48),o.TgZ(80,"ion-list"),o.YNc(81,O,2,0,"ion-label",49),o.YNc(82,P,2,1,"ion-label",50),o.qZA(),o.qZA(),o.qZA(),o.TgZ(83,"div",51),o.NdJ("click",function(){return e.addParticipants()}),o._UZ(84,"ion-icon",52),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(85,"div",11),o.TgZ(86,"div",12),o.TgZ(87,"div",13),o._UZ(88,"ion-icon",53),o.qZA(),o.TgZ(89,"div",46),o.TgZ(90,"div",47),o.TgZ(91,"ion-item",48),o.TgZ(92,"ion-list"),o.YNc(93,D,2,0,"ion-label",49),o.YNc(94,F,2,1,"ion-label",50),o.qZA(),o.qZA(),o.qZA(),o.TgZ(95,"div",51),o.NdJ("click",function(){return e.addParticipantsCc()}),o._UZ(96,"ion-icon",52),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(97,"div",11),o.TgZ(98,"div",12),o.TgZ(99,"div",13),o._UZ(100,"ion-icon",23),o.qZA(),o.TgZ(101,"div",46),o.TgZ(102,"ion-textarea",54),o.NdJ("ngModelChange",function(t){return e.postEvent.Body.Text=t}),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(103,"div",55),o.NdJ("click",function(){return e.getDoc()}),o.TgZ(104,"ion-label"),o.TgZ(105,"div",56),o._UZ(106,"ion-icon",57),o.qZA(),o.TgZ(107,"div",58),o.TgZ(108,"ion-label"),o._uU(109,"Adicionar documentos"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.YNc(110,I,17,7,"div",59),o.qZA(),o.qZA(),o.TgZ(111,"ion-footer",60),o.TgZ(112,"ion-toolbar",61),o.TgZ(113,"ion-buttons",62),o.TgZ(114,"ion-button",63),o.NdJ("click",function(){return e.close()}),o.TgZ(115,"ion-label"),o._uU(116,"Cancelar"),o.qZA(),o.qZA(),o.qZA(),o._UZ(117,"ion-title"),o.TgZ(118,"ion-buttons",64),o.TgZ(119,"ion-button",65),o.NdJ("click",function(){return e.save()}),o.TgZ(120,"ion-label"),o._uU(121,"Gravar"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&t){const t=o.MAs(54),n=o.MAs(64);let i,s,a,r,c,d,l;o.xp6(7),o.Q6J("ngIf",e.showLoader),o.xp6(3),o.ekj("input-error",(null==e.Form||null==(i=e.Form.get("Subject"))?null:i.invalid)&&e.validateFrom),o.xp6(1),o.Q6J("ngModel",e.postEvent.Subject),o.xp6(1),o.Q6J("ngIf",e.Form&&e.validateFrom),o.xp6(5),o.ekj("input-error",(null==e.Form||null==(s=e.Form.get("Location"))?null:s.invalid)&&e.validateFrom),o.xp6(1),o.Q6J("ngModel",e.postEvent.Location),o.xp6(5),o.ekj("input-error",(null==e.Form||null==(a=e.Form.get("CalendarName"))?null:a.invalid)&&e.validateFrom),o.xp6(2),o.Q6J("value",e.postEvent.CalendarName),o.xp6(11),o.Q6J("value",e.postEvent.Category),o.xp6(15),o.Q6J("ngxMatDatetimePicker",t)("ngModel",e.postEvent.StartDate)("min",e.minDate)("disabled",e.disabled),o.xp6(1),o.Q6J("for",t),o.xp6(1),o.Q6J("showSpinners",e.showSpinners)("showSeconds",e.showSeconds)("stepHour",e.stepHour)("stepMinute",e.stepMinute)("stepSecond",e.stepSecond)("touchUi",e.touchUi),o.xp6(6),o.ekj("input-error",(null==e.Form||null==(r=e.Form.get("dateEnd"))?null:r.invalid)&&e.validateFrom),o.xp6(2),o.Q6J("ngxMatDatetimePicker",n)("ngModel",e.postEvent.EndDate)("min",e.endMinDate)("disabled",e.disabled),o.xp6(1),o.Q6J("for",n),o.xp6(1),o.Q6J("showSpinners",e.showSpinners)("showSeconds",e.showSeconds)("stepHour",e.stepHour)("stepMinute",e.stepMinute)("stepSecond",e.stepSecond),o.xp6(6),o.ekj("input-error",(null==e.Form||null==(c=e.Form.get("dateOccurrence"))?null:c.invalid)&&e.validateFrom),o.xp6(2),o.Q6J("ngModel",e.postEvent.EventRecurrence.Type),o.xp6(1),o.Q6J("ngIf","-1"!=e.postEvent.EventRecurrence.Type),o.xp6(5),o.ekj("input-error",(null==e.Form||null==(d=e.Form.get("participantes"))?null:d.invalid)&&e.validateFrom),o.xp6(4),o.Q6J("ngIf",0==e.taskParticipants.length),o.xp6(1),o.Q6J("ngForOf",e.taskParticipants),o.xp6(7),o.ekj("input-error",(null==e.Form||null==(l=e.Form.get("participantes"))?null:l.invalid)&&e.validateFrom),o.xp6(4),o.Q6J("ngIf",0==e.taskParticipantsCc.length),o.xp6(1),o.Q6J("ngForOf",e.taskParticipantsCc),o.xp6(8),o.Q6J("ngModel",e.postEvent.Body.Text),o.xp6(8),o.Q6J("ngForOf",e.documents)}},directives:[p.Gu,p.sr,p.Q$,v.O5,p.W2,p.pK,p.j9,d.JJ,d.On,p.gu,_.KE,b.gD,f.ey,w.Nt,l.g2,d.Fj,C.nW,_.R9,l.AB,p.Ie,p.q_,v.sg,p.g2,p.fr,p.Sm,p.YG,p.wd,p.X7,d.oH],pipes:[v.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})()}}]);