/**
 * Skipped minification because the original files appears to be already minified.
 * Original file: /npm/@mescius/wijmo.angular2.core@5.20261.52/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
﻿/*!
    *
    * Wijmo Library 5.20261.52
    * https://developer.mescius.com/wijmo
    *
    * Copyright(c) MESCIUS inc. All rights reserved.
    *
    * Licensed under the End-User License Agreement For MESCIUS Wijmo Software.
    * us.sales@mescius.com
    * https://developer.mescius.com/wijmo/licensing
    *
    */

"use strict";var _a,_b,_c,__spreadArray=this&&this.__spreadArray||function(e,o,t){if(t||2===arguments.length)for(var r,i=0,n=o.length;i<n;i++)if(r||!(i in o)){r||(r=Array.prototype.slice.call(o,0,i));r[i]=o[i]}return e.concat(r||Array.prototype.slice.call(o))};Object.defineProperty(exports,"__esModule",{value:!0});exports.wjTooltipMeta=exports.WjTooltip=exports.WjCoreModule=exports.WjComponentLoader=void 0;var common_1=require("@angular/common"),i0=require("@angular/core"),core_1=require("@angular/core"),wijmo_angular2_directivebase_1=require("@mescius/wijmo.angular2.directivebase"),wjcCore=require("@mescius/wijmo"),WjComponentLoader=function(){function WjComponentLoader(e,o,t){this._ngZone=e;this._cdRef=o;this._injector=t;this._cmpRef=null;this._isInit=!1;this._isZoneless=!1;this._isDestroyed=!1;this._pendingCheck=!1;this._propSubscriptions=new Map;this.propertiesChange=new i0.EventEmitter;this._isZoneless=this._detectZonelessMode()}Object.defineProperty(WjComponentLoader.prototype,"component",{get:function(){return this._component},set:function(e){if(this._component!==e){this._component=e;this._createComponent()}},enumerable:!1,configurable:!0});Object.defineProperty(WjComponentLoader.prototype,"properties",{get:function(){return this._properties},set:function(e){this._properties=e;this._updateProperties()},enumerable:!1,configurable:!0});WjComponentLoader.prototype.ngOnInit=function(){this._isInit=!0;this._createComponent()};WjComponentLoader.prototype.ngOnDestroy=function(){this._isDestroyed=!0;this._clearPropListeners();if(this._cmpRef){this._cmpRef.destroy();this._cmpRef=null}};WjComponentLoader.prototype._createComponent=function(){if(this._isInit){if(this._cmpRef){this._clearPropListeners();this._cmpRef.destroy();this._cmpRef=null}if(this._component&&this._anchor){this._cmpRef=this._anchor.createComponent(this._component,{injector:this._injector});this._updateProperties()}}};WjComponentLoader.prototype._updateProperties=function(){var e,o=null===(e=this._cmpRef)||void 0===e?void 0:e.instance;if(o&&this._properties)for(var t=0,r=Object.getOwnPropertyNames(this._properties);t<r.length;t++){var i=r[t];o[i]=this._properties[i];var n=o["".concat(i,"Change")];n instanceof core_1.EventEmitter&&this._addPropListener(o,i,n)}};WjComponentLoader.prototype._addPropListener=function(e,o,t){var r=this;if(!this._propSubscriptions.has(o)){var i=t.subscribe((function(){r._runInAngularContext((function(){if(r._properties){r._properties[o]=e[o];r.propertiesChange.next(r._properties);r._requestCheck()}}))}));this._propSubscriptions.set(o,i)}};WjComponentLoader.prototype._clearPropListeners=function(){for(var e=0,o=this._propSubscriptions.values();e<o.length;e++){o[e].unsubscribe()}this._propSubscriptions.clear()};WjComponentLoader.prototype._detectZonelessMode=function(){return!0===wijmo_angular2_directivebase_1.WjOptions.zonelessMode||!1!==wijmo_angular2_directivebase_1.WjOptions.zonelessMode&&(0,wijmo_angular2_directivebase_1.isNoopNgZoneLike)(this._ngZone)};WjComponentLoader.prototype._runInAngularContext=function(e){this._ngZone&&!this._isZoneless?i0.NgZone.isInAngularZone()?e():this._ngZone.run(e):e()};WjComponentLoader.prototype._requestCheck=function(){var e=this;if(this._isZoneless&&this._cdRef&&!this._pendingCheck){this._pendingCheck=!0;Promise.resolve().then((function(){var o;e._pendingCheck=!1;e._isDestroyed||null===(o=e._cdRef)||void 0===o||o.detectChanges()}))}};return WjComponentLoader}();exports.WjComponentLoader=WjComponentLoader;(_a=WjComponentLoader).ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"20.3.18",ngImport:i0,type:_a,deps:[{token:core_1.NgZone,optional:!0},{token:core_1.ChangeDetectorRef,optional:!0},{token:core_1.Injector}],target:i0.ɵɵFactoryTarget.Component});_a.ɵcmp=i0.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"20.3.18",type:_a,isStandalone:!0,selector:"wj-component-loader",inputs:{component:"component",properties:"properties"},outputs:{propertiesChange:"propertiesChange"},viewQueries:[{propertyName:"_anchor",first:!0,predicate:["anchor"],descendants:!0,read:core_1.ViewContainerRef,static:!0}],ngImport:i0,template:"<div #anchor></div>",isInline:!0});i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"20.3.18",ngImport:i0,type:WjComponentLoader,decorators:[{type:core_1.Component,args:[{selector:"wj-component-loader",template:"<div #anchor></div>",inputs:["component","properties"],outputs:["propertiesChange"],standalone:!0}]}],ctorParameters:function(){return[{type:i0.NgZone,decorators:[{type:core_1.Inject,args:[core_1.NgZone]},{type:core_1.Optional}]},{type:i0.ChangeDetectorRef,decorators:[{type:core_1.Inject,args:[core_1.ChangeDetectorRef]},{type:core_1.Optional}]},{type:i0.Injector,decorators:[{type:core_1.Inject,args:[core_1.Injector]}]}]},propDecorators:{_anchor:[{type:core_1.ViewChild,args:["anchor",{read:core_1.ViewContainerRef,static:!0}]}]}});var wjTooltipMeta={selector:"[wjTooltip]",inputs:[],outputs:["initialized"],exportAs:"wjTooltip",providers:[]};exports.wjTooltipMeta=wjTooltipMeta;var WjTooltip=function(){function WjTooltip(e,o,t){this._elRef=e;this.isInitialized=!1;this._wjBehavior=wijmo_angular2_directivebase_1.WjDirectiveBehavior.attach(this,this._elRef,o,t);_b._toolTip||(_b._toolTip=new wjcCore.Tooltip);this.created()}WjTooltip.prototype.created=function(){};WjTooltip.prototype.ngOnInit=function(){this._wjBehavior.ngOnInit()};WjTooltip.prototype.ngAfterViewInit=function(){this._wjBehavior.ngAfterViewInit()};WjTooltip.prototype.ngOnDestroy=function(){this._wjBehavior.ngOnDestroy();this.wjTooltip=null};Object.defineProperty(WjTooltip.prototype,"wjTooltip",{get:function(){return this._toolTipText},set:function(e){if(this._toolTipText!==e){this._toolTipText=e;_b._toolTip.setTooltip(this._elRef.nativeElement,e,this._toolTipPosition)}},enumerable:!1,configurable:!0});Object.defineProperty(WjTooltip.prototype,"wjTooltipPosition",{get:function(){return this._toolTipPosition},set:function(e){var o=wjcCore.asEnum(e,wjcCore.PopupPosition);if(this._toolTipPosition!==o){this._toolTipPosition=o;this._toolTipText&&_b._toolTip.setTooltip(this._elRef.nativeElement,this._toolTipText,o)}},enumerable:!1,configurable:!0});return WjTooltip}();exports.WjTooltip=WjTooltip;(_b=WjTooltip).meta={outputs:wjTooltipMeta.outputs};_b.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"20.3.18",ngImport:i0,type:_b,deps:[{token:core_1.ElementRef},{token:core_1.Injector},{token:"WjComponent",optional:!0,skipSelf:!0}],target:i0.ɵɵFactoryTarget.Directive});_b.ɵdir=i0.ɵɵngDeclareDirective({minVersion:"14.0.0",version:"20.3.18",type:_b,isStandalone:!0,selector:"[wjTooltip]",inputs:{wjTooltip:"wjTooltip",wjTooltipPosition:"wjTooltipPosition"},outputs:{initialized:"initialized"},providers:__spreadArray([{provide:"WjComponent",useExisting:(0,core_1.forwardRef)((function(){return _b}))}],wjTooltipMeta.providers,!0),exportAs:["wjTooltip"],ngImport:i0});i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"20.3.18",ngImport:i0,type:WjTooltip,decorators:[{type:core_1.Directive,args:[{selector:wjTooltipMeta.selector,inputs:wjTooltipMeta.inputs,outputs:wjTooltipMeta.outputs,exportAs:wjTooltipMeta.exportAs,standalone:!0,providers:__spreadArray([{provide:"WjComponent",useExisting:(0,core_1.forwardRef)((function(){return WjTooltip}))}],wjTooltipMeta.providers,!0)}]}],ctorParameters:function(){return[{type:i0.ElementRef,decorators:[{type:core_1.Inject,args:[core_1.ElementRef]}]},{type:i0.Injector,decorators:[{type:core_1.Inject,args:[core_1.Injector]}]},{type:void 0,decorators:[{type:core_1.Inject,args:["WjComponent"]},{type:core_1.SkipSelf},{type:core_1.Optional}]}]},propDecorators:{wjTooltip:[{type:core_1.Input}],wjTooltipPosition:[{type:core_1.Input}]}});var WJ_CORE_EXPORTS=[WjTooltip,WjComponentLoader],WjCoreModule=function WjCoreModule(){};exports.WjCoreModule=WjCoreModule;(_c=WjCoreModule).ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"20.3.18",ngImport:i0,type:_c,deps:[],target:i0.ɵɵFactoryTarget.NgModule});_c.ɵmod=i0.ɵɵngDeclareNgModule({minVersion:"14.0.0",version:"20.3.18",ngImport:i0,type:_c,imports:[common_1.CommonModule,WjTooltip,WjComponentLoader],exports:[WjTooltip,WjComponentLoader]});_c.ɵinj=i0.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"20.3.18",ngImport:i0,type:_c,imports:[common_1.CommonModule]});i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"20.3.18",ngImport:i0,type:WjCoreModule,decorators:[{type:core_1.NgModule,args:[{imports:__spreadArray([common_1.CommonModule],WJ_CORE_EXPORTS,!0),exports:__spreadArray([],WJ_CORE_EXPORTS,!0)}]}]});