var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Component } from '@angular/core';
import * as require from '../../assets/js/require.js';
//import * as jquery from 'src/assets/js/jquery';
var StatsComponent = /** @class */ (function () {
    //scripts : [ "../../assets/js/require.js" ];
    function StatsComponent() {
        this.sections = ['Overview', 'Historical'];
        this.tab = 'Overview';
        var config = {
            host: 'qmi-qs-72a4',
            prefix: 'office365',
            port: 443,
            isSecure: true
        };
        require.config({
            baseUrl: (config.isSecure ? "https://" : "http://") + config.host + (config.port ? ":" + config.port : "") + config.prefix + "resources"
        });
        require(["js/qlik"], function (qlik) {
            console.log("QLIK", qlik);
            //qlik.on( "error", function ( error ) {
            //$( '#popupText' ).append( error.message + "<br>" );
            //$( '#popup' ).fadeIn( 1000 );
            //} );
            //$( "#closePopup" ).click( function () {
            //$( '#popup' ).hide();
            /*var app = qlik.openApp('dae8a66d-facf-4554-9ca7-236680144b2c', config );
            app.getObject('QV01','dEAEcX' );
            } );
        
            //callbacks -- inserted here --
            //open apps -- inserted here --
            //get objects -- inserted here --
            //create cubes and lists -- inserted here --
        
            //var app = qlik.openApp('dae8a66d-facf-4554-9ca7-236680144b2c', config );
            //app.getObject('QV01','dEAEcX' );
          
        }
      
        ngOnInit(): void {
          console.log("I'm the TD BANK mashup", event);
        }
      
        tabSelect($event, tab) {
          $event.preventDefault();
          $event.stopPropagation();
          this.tab = tab;
        }
        
      }
             
        });
        //qlik.on( "error", function ( error ) {
        //$( '#popupText' ).append( error.message + "<br>" );
        //$( '#popup' ).fadeIn( 1000 );
        //} );
        //$( "#closePopup" ).click( function () {
        //$( '#popup' ).hide();
        /*var app = qlik.openApp('dae8a66d-facf-4554-9ca7-236680144b2c', config );
        app.getObject('QV01','dEAEcX' );
        } );
    
        //callbacks -- inserted here --
        //open apps -- inserted here --
        //get objects -- inserted here --
        //create cubes and lists -- inserted here --
    
        //var app = qlik.openApp('dae8a66d-facf-4554-9ca7-236680144b2c', config );
        //app.getObject('QV01','dEAEcX' );
      
    }
  
    ngOnInit(): void {
      console.log("I'm the TD BANK mashup", event);
    }
  
    tabSelect($event, tab) {
      $event.preventDefault();
      $event.stopPropagation();
      this.tab = tab;
    }
    
  }
         
    }
    StatsComponent = __decorate([
        Component({
            selector: 'app-stats',
            templateUrl: './stats.component.html',
            styleUrls: ['./stats.component.scss']
        }),
        __metadata("design:paramtypes", [])
    ], StatsComponent);
    return StatsComponent;
}());
export { StatsComponent };
//qlik.on( "error", function ( error ) {
//$( '#popupText' ).append( error.message + "<br>" );
//$( '#popup' ).fadeIn( 1000 );
//} );
//$( "#closePopup" ).click( function () {
//$( '#popup' ).hide();
/*var app = qlik.openApp('dae8a66d-facf-4554-9ca7-236680144b2c', config );
app.getObject('QV01','dEAEcX' );
} );

//callbacks -- inserted here --
//open apps -- inserted here --
//get objects -- inserted here --
//create cubes and lists -- inserted here --

//var app = qlik.openApp('dae8a66d-facf-4554-9ca7-236680144b2c', config );
//app.getObject('QV01','dEAEcX' );

}

ngOnInit(): void {
console.log("I'm the TD BANK mashup", event);
}

tabSelect($event, tab) {
$event.preventDefault();
$event.stopPropagation();
this.tab = tab;
}

}
 
//# sourceMappingURL=stats.component.js.map