{"version":3,"sources":["../../node_modules/@angular/core/esm5 lazy","../../src lazy","../../src/pages/home/home.ts","../../src/providers/admin/admin.ts","../../src/app/main.ts","../../src/app/app.module.ts","../../src/app/app.component.ts"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,4CAA4C,WAAW;AACvD;AACA;AACA,kC;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,4CAA4C,WAAW;AACvD;AACA;AACA,kC;;;;;;;;;;;;;;;;;;;;;ACViE;AACnB;AACa;AAW3D;IAKE,kBAAmB,OAAsB,EAAU,YAA0B;QAA1D,YAAO,GAAP,OAAO,CAAe;QAAU,iBAAY,GAAZ,YAAY,CAAc;QAF7E,gBAAW,GAAG,EAAE,CAAC;IAIjB,CAAC;IAED,iCAAc,GAAd;QACE,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,IAAI,CAAC,WAAW,EAAE,CAAC;IACrB,CAAC;IAED,0BAAO,GAAP;QACE,IAAI,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,UAAU,CAAC,CAAC;QAC7D,IAAI,UAAU,GAAG;YACf,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,CAAC;YACP,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM;SACxC;QAED,IAAI,CAAC,GAAG,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;IAC5E,CAAC;IAED,8BAAW,GAAX;QAAA,iBAgCC;QA/BC,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC,UAAC,MAAM;YAC5C,IAAI,QAAa,CAAC;YAClB,QAAQ,GAAG,MAAM,CAAC;YAChB,EAAE,CAAC,CAAC,KAAI,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC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is used instead of new Promise() to prevent\n\t// uncatched exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 108;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/@angular/core/esm5 lazy\n// module id = 108\n// module chunks = 0","function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncatched exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 150;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src lazy\n// module id = 150\n// module chunks = 0","import { Component, ViewChild, ElementRef } from '@angular/core';\nimport { NavController } from 'ionic-angular';\nimport { AdminService } from '../../providers/admin/admin';\n\ndeclare var google;\ndeclare var StyledMarker: any;\ndeclare var StyledIcon: any;\ndeclare var StyledIconTypes: any;\n\n@Component({\n selector: 'page-home',\n templateUrl: 'home.html'\n})\nexport class HomePage {\n @ViewChild('map') mapElement: ElementRef;\n map: any;\n MapAgencies = [];\n\n constructor(public navCtrl: NavController, private adminservice: AdminService) {\n\n }\n\n ionViewDidLoad() {\n this.loadMap();\n this.AddAgencies();\n }\n\n loadMap() {\n let latLng = new google.maps.LatLng(40.0616535, -114.931643);\n let mapOptions = {\n center: latLng,\n zoom: 5,\n mapTypeId: google.maps.MapTypeId.HYBRID\n }\n\n this.map = new google.maps.Map(this.mapElement.nativeElement, mapOptions);\n }\n\n AddAgencies() {\n this.adminservice.GetAgencyList().then((result) => {\n var Agencies: any;\n Agencies = result;\n if (this.MapAgencies != null) {\n for (var i = 0; i < this.MapAgencies.length; i++) {\n this.MapAgencies[i].setMap(null);\n }\n }\n else this.MapAgencies = [];\n\n var AgencyCount = 0;\n for (let Agency of Agencies) {\n let latLng = new google.maps.LatLng(Agency.INITIALYCOORD, Agency.INITIALXCOORD);\n this.MapAgencies[AgencyCount] = new StyledMarker(\n {\n styleIcon: new StyledIcon(StyledIconTypes.BUBBLE,\n {\n color: '#0000ff',\n text: Agency.AGNAME,\n fore: '#ffffff'\n }\n ),\n position: latLng,\n map: this.map\n });\n google.maps.event.addListener(this.MapAgencies[AgencyCount], 'click', () => {\n window.open('https://'+Agency.AGCODE+'.crimegraphics.com', '_self');\n });\n AgencyCount = AgencyCount + 1;\n }\n });\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/home/home.ts","import { Injectable } from '@angular/core';\nimport { Http, Headers, RequestOptions } from '@angular/http';\nimport { Events } from 'ionic-angular';\nimport 'rxjs/add/operator/map';\nimport 'rxjs/add/operator/toPromise';\n\n@Injectable()\nexport class AdminService {\n _headers: any;\n _options: any;\n BaseURL: any;\n\n constructor(private http: Http) {\n\n \n }\n\n SetupConnection() {\n this._headers = new Headers({\n 'Content-Type': 'application/json'\n });\n this.BaseURL = 'https://api.crimegraphics.com/api';\n this._options = new RequestOptions({ headers: this._headers });\n }\n\n GetAgencyList() {\n this.SetupConnection();\n let MyURL = '/admin/GetAgenyList';\n let promise = new Promise((resolve, reject) => {\n this.http.get(this.BaseURL + MyURL, this._options).toPromise().then(res => {\n var data = res.json();\n resolve(data);\n },\n err => {\n console.log(\"Oops! - error: \" + err);\n resolve();\n }\n );\n });\n return promise;\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/providers/admin/admin.ts","import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n\nimport { AppModule } from './app.module';\n\nplatformBrowserDynamic().bootstrapModule(AppModule);\n\n\n\n// WEBPACK FOOTER //\n// ./src/app/main.ts","import { BrowserModule } from '@angular/platform-browser';\nimport { ErrorHandler, NgModule } from '@angular/core';\nimport { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';\nimport { SplashScreen } from '@ionic-native/splash-screen';\nimport { StatusBar } from '@ionic-native/status-bar';\nimport { HttpModule } from '@angular/http';\nimport { MyApp } from './app.component';\nimport { HomePage } from '../pages/home/home';\nimport { AdminService } from '../providers/admin/admin';\n\n@NgModule({\n declarations: [\n MyApp,\n HomePage\n ],\n imports: [\n BrowserModule,\n IonicModule.forRoot(MyApp),\n HttpModule,\n ],\n bootstrap: [IonicApp],\n entryComponents: [\n MyApp,\n HomePage\n ],\n providers: [\n StatusBar,\n SplashScreen,\n {provide: ErrorHandler, useClass: IonicErrorHandler},\n AdminService\n ]\n})\nexport class AppModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/app/app.module.ts","import { Component } from '@angular/core';\nimport { Platform } from 'ionic-angular';\nimport { StatusBar } from '@ionic-native/status-bar';\nimport { SplashScreen } from '@ionic-native/splash-screen';\n\nimport { HomePage } from '../pages/home/home';\n@Component({\n templateUrl: 'app.html'\n})\nexport class MyApp {\n rootPage:any = HomePage;\n\n constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) {\n platform.ready().then(() => {\n // Okay, so the platform is ready and our plugins are available.\n // Here you can do any higher level native things you might need.\n statusBar.styleDefault();\n splashScreen.hide();\n });\n }\n}\n\n\n\n\n// WEBPACK FOOTER //\n// ./src/app/app.component.ts"],"sourceRoot":""}