/**
 * This file is generated by the Angular 2 template compiler.
 * Do not edit.
 */
 /* tslint:disable */

import * as import0 from '@angular/core/src/render/api';
import * as import1 from '@angular/core/src/linker/view';
import * as import2 from '@angular/core/src/linker/element';
import * as import3 from './app-root';
import * as import4 from '@angular/core/src/linker/view_utils';
import * as import5 from '@angular/core/src/di/injector';
import * as import6 from '@angular/core/src/linker/view_type';
import * as import7 from '@angular/core/src/change_detection/change_detection';
import * as import8 from '@angular/core/src/linker/component_factory_resolver';
import * as import9 from '@angular/core/src/linker/element_ref';
import * as import10 from '../../config/config';
import * as import11 from '../../platform/platform';
import * as import12 from '../../util/feature-detect';
import * as import13 from './app';
import * as import14 from '@angular/core/src/metadata/view';
import * as import15 from '@angular/core/src/linker/component_factory';
import * as import16 from '@angular/core/src/linker/query_list';
import * as import17 from '../nav/overlay-portal';
import * as import18 from '../../util/keyboard';
import * as import19 from '@angular/core/src/zone/ng_zone';
import * as import20 from '../../gestures/gesture-controller';
import * as import21 from '../../transitions/transition-controller';
import * as import22 from '../../navigation/deep-linker';
var renderType_IonicApp_Host:import0.RenderComponentType = (null as any);
class _View_IonicApp_Host0 extends import1.AppView<any> {
  _el_0:any;
  /*private*/ _appEl_0:import2.AppElement;
  _IonicApp_0_4:import3.IonicApp;
  constructor(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement) {
    super(_View_IonicApp_Host0,renderType_IonicApp_Host,import6.ViewType.HOST,viewUtils,parentInjector,declarationEl,import7.ChangeDetectorStatus.CheckAlways);
  }
  createInternal(rootSelector:string):import2.AppElement {
    this._el_0 = this.selectOrCreateHostElement('ion-app',rootSelector,(null as any));
    this._appEl_0 = new import2.AppElement(0,(null as any),this,this._el_0);
    var compView_0:any = viewFactory_IonicApp0(this.viewUtils,this.injector(0),this._appEl_0);
    this._IonicApp_0_4 = new import3.IonicApp(this.parentInjector.get(import3.UserRoot),this.parentInjector.get(import8.ComponentFactoryResolver),new import9.ElementRef(this._el_0),this.renderer,this.parentInjector.get(import10.Config),this.parentInjector.get(import11.Platform),this.parentInjector.get(import12.FeatureDetect),this.parentInjector.get(import13.App));
    this._appEl_0.initComponent(this._IonicApp_0_4,[],compView_0);
    compView_0.create(this._IonicApp_0_4,this.projectableNodes,(null as any));
    this.init([].concat([this._el_0]),[this._el_0],[],[]);
    return this._appEl_0;
  }
  injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
    if (((token === import3.IonicApp) && (0 === requestNodeIndex))) { return this._IonicApp_0_4; }
    return notFoundResult;
  }
  detectChangesInternal(throwOnChange:boolean):void {
    if (((this.numberOfChecks === 0) && !throwOnChange)) { this._IonicApp_0_4.ngOnInit(); }
    this.detectContentChildrenChanges(throwOnChange);
    this.detectViewChildrenChanges(throwOnChange);
  }
}
function viewFactory_IonicApp_Host0(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement):import1.AppView<any> {
  if ((renderType_IonicApp_Host === (null as any))) { (renderType_IonicApp_Host = viewUtils.createRenderComponentType('',0,import14.ViewEncapsulation.None,[],{})); }
  return new _View_IonicApp_Host0(viewUtils,parentInjector,declarationEl);
}
export const IonicAppNgFactory:import15.ComponentFactory<import3.IonicApp> = new import15.ComponentFactory<import3.IonicApp>('ion-app',viewFactory_IonicApp_Host0,import3.IonicApp);
const styles_IonicApp:any[] = [];
var renderType_IonicApp:import0.RenderComponentType = (null as any);
class _View_IonicApp0 extends import1.AppView<import3.IonicApp> {
  _viewQuery_viewport_0:import16.QueryList<any>;
  _viewQuery_overlayPortal_1:import16.QueryList<any>;
  _viewQuery_loadingPortal_2:import16.QueryList<any>;
  _viewQuery_toastPortal_3:import16.QueryList<any>;
  _el_0:any;
  /*private*/ _appEl_0:import2.AppElement;
  _el_1:any;
  /*private*/ _appEl_1:import2.AppElement;
  _OverlayPortal_1_5:import17.OverlayPortal;
  _el_2:any;
  /*private*/ _appEl_2:import2.AppElement;
  _OverlayPortal_2_5:import17.OverlayPortal;
  _el_3:any;
  /*private*/ _appEl_3:import2.AppElement;
  _OverlayPortal_3_5:import17.OverlayPortal;
  _el_4:any;
  constructor(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement) {
    super(_View_IonicApp0,renderType_IonicApp,import6.ViewType.COMPONENT,viewUtils,parentInjector,declarationEl,import7.ChangeDetectorStatus.CheckAlways);
  }
  createInternal(rootSelector:string):import2.AppElement {
    const parentRenderNode:any = this.renderer.createViewRoot(this.declarationAppElement.nativeElement);
    this._viewQuery_viewport_0 = new import16.QueryList<any>();
    this._viewQuery_overlayPortal_1 = new import16.QueryList<any>();
    this._viewQuery_loadingPortal_2 = new import16.QueryList<any>();
    this._viewQuery_toastPortal_3 = new import16.QueryList<any>();
    this._el_0 = this.renderer.createElement(parentRenderNode,'div',(null as any));
    this.renderer.setElementAttribute(this._el_0,'app-viewport','');
    this._appEl_0 = new import2.AppElement(0,(null as any),this,this._el_0);
    this._el_1 = this.renderer.createElement(parentRenderNode,'div',(null as any));
    this.renderer.setElementAttribute(this._el_1,'overlay-portal','');
    this._appEl_1 = new import2.AppElement(1,(null as any),this,this._el_1);
    this._OverlayPortal_1_5 = new import17.OverlayPortal(this.parentInjector.get(import13.App),this.parentInjector.get(import10.Config),this.parentInjector.get(import18.Keyboard),new import9.ElementRef(this._el_1),this.parentInjector.get(import19.NgZone),this.renderer,this.parentInjector.get(import8.ComponentFactoryResolver),this.parentInjector.get(import20.GestureController),this.parentInjector.get(import21.TransitionController),this.parentInjector.get(import22.DeepLinker,(null as any)),this._appEl_1.vcRef);
    this._el_2 = this.renderer.createElement(parentRenderNode,'div',(null as any));
    this.renderer.setElementAttribute(this._el_2,'class','loading-portal');
    this.renderer.setElementAttribute(this._el_2,'overlay-portal','');
    this._appEl_2 = new import2.AppElement(2,(null as any),this,this._el_2);
    this._OverlayPortal_2_5 = new import17.OverlayPortal(this.parentInjector.get(import13.App),this.parentInjector.get(import10.Config),this.parentInjector.get(import18.Keyboard),new import9.ElementRef(this._el_2),this.parentInjector.get(import19.NgZone),this.renderer,this.parentInjector.get(import8.ComponentFactoryResolver),this.parentInjector.get(import20.GestureController),this.parentInjector.get(import21.TransitionController),this.parentInjector.get(import22.DeepLinker,(null as any)),this._appEl_2.vcRef);
    this._el_3 = this.renderer.createElement(parentRenderNode,'div',(null as any));
    this.renderer.setElementAttribute(this._el_3,'class','toast-portal');
    this.renderer.setElementAttribute(this._el_3,'overlay-portal','');
    this._appEl_3 = new import2.AppElement(3,(null as any),this,this._el_3);
    this._OverlayPortal_3_5 = new import17.OverlayPortal(this.parentInjector.get(import13.App),this.parentInjector.get(import10.Config),this.parentInjector.get(import18.Keyboard),new import9.ElementRef(this._el_3),this.parentInjector.get(import19.NgZone),this.renderer,this.parentInjector.get(import8.ComponentFactoryResolver),this.parentInjector.get(import20.GestureController),this.parentInjector.get(import21.TransitionController),this.parentInjector.get(import22.DeepLinker,(null as any)),this._appEl_3.vcRef);
    this._el_4 = this.renderer.createElement(parentRenderNode,'div',(null as any));
    this.renderer.setElementAttribute(this._el_4,'class','click-block');
    this._viewQuery_viewport_0.reset([this._appEl_0.vcRef]);
    this.context._viewport = this._viewQuery_viewport_0.first;
    this._viewQuery_overlayPortal_1.reset([this._OverlayPortal_1_5]);
    this.context._overlayPortal = this._viewQuery_overlayPortal_1.first;
    this._viewQuery_loadingPortal_2.reset([this._OverlayPortal_2_5]);
    this.context._loadingPortal = this._viewQuery_loadingPortal_2.first;
    this._viewQuery_toastPortal_3.reset([this._OverlayPortal_3_5]);
    this.context._toastPortal = this._viewQuery_toastPortal_3.first;
    this.init([],[
      this._el_0,
      this._el_1,
      this._el_2,
      this._el_3,
      this._el_4
    ]
    ,[],[]);
    return (null as any);
  }
  injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
    if (((token === import17.OverlayPortal) && (1 === requestNodeIndex))) { return this._OverlayPortal_1_5; }
    if (((token === import17.OverlayPortal) && (2 === requestNodeIndex))) { return this._OverlayPortal_2_5; }
    if (((token === import17.OverlayPortal) && (3 === requestNodeIndex))) { return this._OverlayPortal_3_5; }
    return notFoundResult;
  }
}
export function viewFactory_IonicApp0(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement):import1.AppView<import3.IonicApp> {
  if ((renderType_IonicApp === (null as any))) { (renderType_IonicApp = viewUtils.createRenderComponentType('/Users/dan/Dev/ionic2-build/dist/ionic-angular/esm/components/app/app-root.ts class IonicApp - inline template',0,import14.ViewEncapsulation.None,styles_IonicApp,{})); }
  return new _View_IonicApp0(viewUtils,parentInjector,declarationEl);
}