File: //usr/local/CyberCP/public/imunifyav/assets/static/shared-dependencies/tooltip.min.fdbf4a8d3461.js
System.register(["@angular/cdk/overlay","@angular/cdk/a11y","@angular/common","@angular/core","@angular/material/core","@angular/cdk/scrolling","@angular/cdk/bidi","@angular/cdk/coercion","@angular/cdk/keycodes","@angular/cdk/layout","@angular/cdk/platform","@angular/cdk/portal","@angular/platform-browser/animations","rxjs","rxjs/operators","@angular/animations"],function(t){"use strict";var e,i,s,o,n,a,r,l,h,c,d,_,p,u,m,f,v,y,g,b,T,I,w,C,D,P,E,O,R,A,L,S,k;return{setters:[function(t){e=t,i=t.OverlayModule,s=t.Overlay},function(t){o=t,n=t.A11yModule},function(t){a=t.DOCUMENT,r=t,l=t.CommonModule},function(t){h=t.InjectionToken,c=t,t.Directive,t.Inject,t.Input,t.Optional,t.Component,t.ViewEncapsulation,t.ChangeDetectionStrategy,t.ViewChild,t.NgModule},function(t){d=t.MatCommonModule},function(t){_=t,p=t.CdkScrollableModule},function(t){u=t},function(t){m=t.coerceBooleanProperty,f=t.coerceNumberProperty},function(t){v=t.ESCAPE,y=t.hasModifierKey},function(t){g=t,b=t.Breakpoints},function(t){T=t.normalizePassiveListenerOptions,I=t},function(t){w=t.ComponentPortal},function(t){C=t.ANIMATION_MODULE_TYPE},function(t){D=t.Subject},function(t){P=t.takeUntil,E=t.take},function(t){O=t.trigger,R=t.state,A=t.style,L=t.transition,S=t.animate,k=t.keyframes}],execute:function(){t({MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY:G,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY:z,getMatTooltipInvalidPositionError:j});const M=["tooltip"],x=t("SCROLL_THROTTLE_MS",20),N=(t("TOOLTIP_PANEL_CLASS","mat-tooltip-panel"),"tooltip-panel"),V=T({passive:!0});function j(t){return Error(`Tooltip position "${t}" is invalid.`)}const Y=t("MAT_TOOLTIP_SCROLL_STRATEGY",new h("mat-tooltip-scroll-strategy"));function z(t){return()=>t.scrollStrategies.reposition({scrollThrottle:x})}const H=t("MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER",{provide:Y,deps:[s],useFactory:z}),F=t("MAT_TOOLTIP_DEFAULT_OPTIONS",new h("mat-tooltip-default-options",{providedIn:"root",factory:G}));function G(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}class X{constructor(t,e,i,s,o,n,a,r,l,h,c,d){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=s,this._ngZone=o,this._platform=n,this._ariaDescriber=a,this._focusMonitor=r,this._dir=h,this._defaultOptions=c,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new D,this._scrollStrategy=l,this._document=d,c&&(c.position&&(this.position=c.position),c.touchGestures&&(this.touchGestures=c.touchGestures)),h.change.pipe(P(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=m(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=f(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=f(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(P(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,V)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const e=this._createOverlay();this._detach(),this._portal=this._portal||new w(this._tooltipComponent,this._viewContainerRef);const i=this._tooltipInstance=e.attach(this._portal).instance;i._triggerElement=this._elementRef.nativeElement,i._mouseLeaveHideDelay=this._hideDelay,i.afterHidden().pipe(P(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),i.show(t)}hide(t=this.hideDelay){const e=this._tooltipInstance;e&&(e.isVisible()?e.hide(t):(e._cancelPendingAnimations(),this._detach()))}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe(P(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-${N}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(P(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(P(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(P(this._destroyed)).subscribe(t=>{this._isTooltipVisible()&&t.keyCode===v&&!y(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,i=this._getOrigin(),s=this._getOverlayPosition();e.withPositions([this._addOffset({...i.main,...s.main}),this._addOffset({...i.fallback,...s.fallback})])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:s,y:o}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:s,originY:o}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:s,y:o}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:s,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(E(1),P(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:i,originY:s}=t;let o;if(o="center"===e?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===e&&"top"===s?"above":"below",o!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-${N}-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",t=>{const e=t.relatedTarget;e&&this._overlayRef?.overlayElement.contains(e)||this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,V)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}t("_MatTooltipBase",X),X.\u0275fac=function(t){c.\u0275\u0275invalidFactory()},X.\u0275dir=c.\u0275\u0275defineDirective({type:X,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}});class U extends X{constructor(t,e,i,s,o,n,a,r,l,h,c,d){super(t,e,i,s,o,n,a,r,l,h,c,d),this._tooltipComponent=Z}}t("MatTooltip",U),U.\u0275fac=function(t){return new(t||U)(c.\u0275\u0275directiveInject(e.Overlay),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(_.ScrollDispatcher),c.\u0275\u0275directiveInject(c.ViewContainerRef),c.\u0275\u0275directiveInject(c.NgZone),c.\u0275\u0275directiveInject(I.Platform),c.\u0275\u0275directiveInject(o.AriaDescriber),c.\u0275\u0275directiveInject(o.FocusMonitor),c.\u0275\u0275directiveInject(Y),c.\u0275\u0275directiveInject(u.Directionality,8),c.\u0275\u0275directiveInject(F,8),c.\u0275\u0275directiveInject(a))},U.\u0275dir=c.\u0275\u0275defineDirective({type:U,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[c.\u0275\u0275InheritDefinitionFeature]});class B{constructor(t,e){this._changeDetectorRef=t,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new D,this._animationsDisabled="NoopAnimations"===e}show(t){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){t&&this._triggerElement.contains(t)||(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:t}){t!==this._showAnimation&&t!==this._hideAnimation||this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){const e=this._tooltip.nativeElement,i=this._showAnimation,s=this._hideAnimation;if(e.classList.remove(t?s:i),e.classList.add(t?i:s),this._isVisible=t,t&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const t=getComputedStyle(e);"0s"!==t.getPropertyValue("animation-duration")&&"none"!==t.getPropertyValue("animation-name")||(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(e.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}}t("_TooltipComponentBase",B),B.\u0275fac=function(t){return new(t||B)(c.\u0275\u0275directiveInject(c.ChangeDetectorRef),c.\u0275\u0275directiveInject(C,8))},B.\u0275dir=c.\u0275\u0275defineDirective({type:B});class Z extends B{constructor(t,e,i){super(t,i),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe(b.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}t("TooltipComponent",Z),Z.\u0275fac=function(t){return new(t||Z)(c.\u0275\u0275directiveInject(c.ChangeDetectorRef),c.\u0275\u0275directiveInject(g.BreakpointObserver),c.\u0275\u0275directiveInject(C,8))},Z.\u0275cmp=c.\u0275\u0275defineComponent({type:Z,selectors:[["mat-tooltip-component"]],viewQuery:function(t,e){if(1&t&&c.\u0275\u0275viewQuery(M,7),2&t){let t;c.\u0275\u0275queryRefresh(t=c.\u0275\u0275loadQuery())&&(e._tooltip=t.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&c.\u0275\u0275listener("mouseleave",function(t){return e._handleMouseLeave(t)}),2&t&&c.\u0275\u0275styleProp("zoom",e.isVisible()?1:null)},features:[c.\u0275\u0275InheritDefinitionFeature],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(t,e){if(1&t&&(c.\u0275\u0275elementStart(0,"div",0,1),c.\u0275\u0275listener("animationend",function(t){return e._handleAnimationEnd(t)}),c.\u0275\u0275pipe(2,"async"),c.\u0275\u0275text(3),c.\u0275\u0275elementEnd()),2&t){let t;c.\u0275\u0275classProp("mat-tooltip-handset",null==(t=c.\u0275\u0275pipeBind1(2,4,e._isHandset))?null:t.matches),c.\u0275\u0275property("ngClass",e.tooltipClass),c.\u0275\u0275advance(3),c.\u0275\u0275textInterpolate(e.message)}},dependencies:[r.NgClass,r.AsyncPipe],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0});class ${}t("MatTooltipModule",$),$.\u0275fac=function(t){return new(t||$)},$.\u0275mod=c.\u0275\u0275defineNgModule({type:$}),$.\u0275inj=c.\u0275\u0275defineInjector({providers:[H],imports:[n,l,i,d,d,p]});t("matTooltipAnimations",{tooltipState:O("state",[R("initial, void, hidden",A({opacity:0,transform:"scale(0)"})),R("visible",A({transform:"scale(1)"})),L("* => visible",S("200ms cubic-bezier(0, 0, 0.2, 1)",k([A({opacity:0,transform:"scale(0)",offset:0}),A({opacity:.5,transform:"scale(0.99)",offset:.5}),A({opacity:1,transform:"scale(1)",offset:1})]))),L("* => hidden",S("100ms cubic-bezier(0, 0, 0.2, 1)",A({opacity:0})))])})}}});