/**
 * 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 './tab';
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 './tabs';
import * as import9 from '../app/app';
import * as import10 from '../../config/config';
import * as import11 from '../../util/keyboard';
import * as import12 from '@angular/core/src/linker/element_ref';
import * as import13 from '@angular/core/src/zone/ng_zone';
import * as import14 from '@angular/core/src/linker/component_factory_resolver';
import * as import15 from '../../gestures/gesture-controller';
import * as import16 from '../../transitions/transition-controller';
import * as import17 from '../../navigation/deep-linker';
import * as import18 from '@angular/core/src/metadata/view';
import * as import19 from '@angular/core/src/linker/component_factory';
import * as import20 from '@angular/core/src/linker/query_list';
var renderType_Tab_Host:import0.RenderComponentType = (null as any);
class _View_Tab_Host0 extends import1.AppView<any> {
  _el_0:any;
  /*private*/ _appEl_0:import2.AppElement;
  _Tab_0_4:import3.Tab;
  /*private*/ _expr_0:any;
  /*private*/ _expr_1:any;
  constructor(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement) {
    super(_View_Tab_Host0,renderType_Tab_Host,import6.ViewType.HOST,viewUtils,parentInjector,declarationEl,import7.ChangeDetectorStatus.CheckAlways);
  }
  createInternal(rootSelector:string):import2.AppElement {
    this._el_0 = this.selectOrCreateHostElement('ion-tab',rootSelector,(null as any));
    this.renderer.setElementAttribute(this._el_0,'role','tabpanel');
    this._appEl_0 = new import2.AppElement(0,(null as any),this,this._el_0);
    var compView_0:any = viewFactory_Tab0(this.viewUtils,this.injector(0),this._appEl_0);
    this._Tab_0_4 = new import3.Tab(this.parentInjector.get(import8.Tabs),this.parentInjector.get(import9.App),this.parentInjector.get(import10.Config),this.parentInjector.get(import11.Keyboard),new import12.ElementRef(this._el_0),this.parentInjector.get(import13.NgZone),this.renderer,this.parentInjector.get(import14.ComponentFactoryResolver),compView_0.ref,this.parentInjector.get(import15.GestureController),this.parentInjector.get(import16.TransitionController),this.parentInjector.get(import17.DeepLinker,(null as any)));
    this._appEl_0.initComponent(this._Tab_0_4,[],compView_0);
    compView_0.create(this._Tab_0_4,this.projectableNodes,(null as any));
    this._expr_0 = import7.UNINITIALIZED;
    this._expr_1 = import7.UNINITIALIZED;
    this.init([].concat([this._el_0]),[this._el_0],[],[]);
    return this._appEl_0;
  }
  injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
    if (((token === import3.Tab) && (0 === requestNodeIndex))) { return this._Tab_0_4; }
    return notFoundResult;
  }
  detectChangesInternal(throwOnChange:boolean):void {
    if (((this.numberOfChecks === 0) && !throwOnChange)) { this._Tab_0_4.ngOnInit(); }
    this.detectContentChildrenChanges(throwOnChange);
    const currVal_0:any = this._Tab_0_4._tabId;
    if (import4.checkBinding(throwOnChange,this._expr_0,currVal_0)) {
      this.renderer.setElementAttribute(this._el_0,'id',((currVal_0 == (null as any))? (null as any): currVal_0.toString()));
      this._expr_0 = currVal_0;
    }
    const currVal_1:any = this._Tab_0_4._btnId;
    if (import4.checkBinding(throwOnChange,this._expr_1,currVal_1)) {
      this.renderer.setElementAttribute(this._el_0,'aria-labelledby',((currVal_1 == (null as any))? (null as any): currVal_1.toString()));
      this._expr_1 = currVal_1;
    }
    this.detectViewChildrenChanges(throwOnChange);
  }
}
function viewFactory_Tab_Host0(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement):import1.AppView<any> {
  if ((renderType_Tab_Host === (null as any))) { (renderType_Tab_Host = viewUtils.createRenderComponentType('',0,import18.ViewEncapsulation.None,[],{})); }
  return new _View_Tab_Host0(viewUtils,parentInjector,declarationEl);
}
export const TabNgFactory:import19.ComponentFactory<import3.Tab> = new import19.ComponentFactory<import3.Tab>('ion-tab',viewFactory_Tab_Host0,import3.Tab);
const styles_Tab:any[] = [];
var renderType_Tab:import0.RenderComponentType = (null as any);
class _View_Tab0 extends import1.AppView<import3.Tab> {
  _viewQuery_viewport_0:import20.QueryList<any>;
  _el_0:any;
  /*private*/ _appEl_0:import2.AppElement;
  _el_1:any;
  constructor(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement) {
    super(_View_Tab0,renderType_Tab,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 import20.QueryList<any>();
    this._el_0 = this.renderer.createElement(parentRenderNode,'div',(null as any));
    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,'class','nav-decor');
    this._viewQuery_viewport_0.reset([this._appEl_0.vcRef]);
    this.context._vp = this._viewQuery_viewport_0.first;
    this.init([],[
      this._el_0,
      this._el_1
    ]
    ,[],[]);
    return (null as any);
  }
}
export function viewFactory_Tab0(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement):import1.AppView<import3.Tab> {
  if ((renderType_Tab === (null as any))) { (renderType_Tab = viewUtils.createRenderComponentType('/Users/dan/Dev/ionic2-build/dist/ionic-angular/esm/components/tabs/tab.ts class Tab - inline template',0,import18.ViewEncapsulation.None,styles_Tab,{})); }
  return new _View_Tab0(viewUtils,parentInjector,declarationEl);
}